CarmenCloudClientOptions

Interface Options of CarmenCloudClient.

Propertiesโ€‹

NameTypeDescription
accessToken?string | () => string | PromiseA 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?stringA Carmen Cloud API key with a workspace role (ADMIN, EDITOR or
ACCOUNTANT). It is exchanged for short-lived bearer tokens at
POST /auth/token automatically. Either this or accessToken is required.
cloudServiceRegion?CloudServiceRegionThe region to send requests to. AUTO (the default) uses latency-based
routing.
endpoint?stringOverrides the API base URL (e.g. https://api.dev.carmencloud.com).
Takes precedence over cloudServiceRegion.
retryCount?numberHow many times a failed request is retried. Default: 3.
workspaceId?stringThe workspace to operate on. With apiKey it defaults to the API key's
own workspace; with accessToken it is required.

Source: carmen-cloud/index.ts:48