CarmenCloudClientOptions
Interface Options of CarmenCloudClient.
Propertiesโ
| Name | Type | Description |
|---|---|---|
accessToken? | string | () => string | Promise | A bearer access token, or a function returning one, used instead of an API key, e.g. a signed-in user's session token. The few operations marked "requires a user session" only work with such a token. |
apiKey? | string | A Carmen Cloud API key with a workspace role (ADMIN, EDITOR orACCOUNTANT). It is exchanged for short-lived bearer tokens atPOST /auth/token automatically. Either this or accessToken is required. |
cloudServiceRegion? | CloudServiceRegion | The region to send requests to. AUTO (the default) uses latency-basedrouting. |
endpoint? | string | Overrides the API base URL (e.g. https://api.dev.carmencloud.com).Takes precedence over cloudServiceRegion. |
retryCount? | number | How many times a failed request is retried. Default: 3. |
workspaceId? | string | The workspace to operate on. With apiKey it defaults to the API key'sown workspace; with accessToken it is required. |
Source: carmen-cloud/index.ts:48