(apiKeyValue: string)
| 161 | * @returns boolean - true if the format appears valid |
| 162 | */ |
| 163 | export function isValidApiKeyFormat(apiKeyValue: string): boolean { |
| 164 | return typeof apiKeyValue === 'string' && apiKeyValue.length > 10 && apiKeyValue.length < 200 |
| 165 | } |
| 166 | |
| 167 | export async function createWorkspaceApiKey(params: { |
| 168 | workspaceId: string |