DeploymentOptions

Properties

account?

optional account: Account

A Dasha.AI API account to use.

If not set, defaults to a "current" account derived in a platform-specific way. For Node.js, the current account may be set using Dasha CLI.


axios?

optional axios: null | AxiosInstance

An instance of the axios HTTP client used for #httpRequest(). Set to null to disable #httpRequest() altogether.

Is also available as Application.axios


cancelToken?

optional cancelToken: CancelToken


experimental?

optional experimental: Record<string, string>

Free-form forward-compatible options dict, persisted server-side per application and instance.

The reattach key defaults to "true": on a dropped stream the SDK re-attaches to the same instance id, preserving in-flight conversations. Pass { reattach: "false" } to fall back to the legacy reconnect that mints a new instance id. Any value supplied here overrides the default.


groupName?

optional groupName: string

A [group] to use for the application instance.

If not set, the application is run in a separate, unnamed group.


healthcheckInterval?

optional healthcheckInterval: number

An interval, in milliseconds, to ping the server to check for connection issues.


maxReconnectCount?

optional maxReconnectCount: number

How many times to try to reconnect to server in case of connection issues. Set to zero to disable reconnection attempts.


onProgress?

optional onProgress: ProgressHandler

A callback that, if set, receives the current status of the deployment process.


reconnectInterval?

optional reconnectInterval: number | (retryCount) => number

An interval, in milliseconds, to retry connecting to server in case of connection issues. May be specified either as a constant, or as a function of the number of previous retries.


retention?

optional retention: Partial<RetentionPolicy>

Application-scope retention policy. Set at deploy-time only — the resulting Application.retention is read-only after construction. application === "Zero" is a deploy-time decision and is only honoured when passed here (or via customer-level policy on the server). logs and records set here become the application-scope defaults inherited by every conversation unless overridden per-conversation.

See

RetentionPolicy

Found a mistake? Let us know.

Enroll in beta

Request invite to our private Beta program for developers to join the waitlist. No spam, we promise.