DeploymentOptions
Properties
account?
optionalaccount: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?
optionalaxios: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?
optionalcancelToken:CancelToken
experimental?
optionalexperimental: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?
optionalgroupName:string
A [group] to use for the application instance.
If not set, the application is run in a separate, unnamed group.
healthcheckInterval?
optionalhealthcheckInterval:number
An interval, in milliseconds, to ping the server to check for connection issues.
maxReconnectCount?
optionalmaxReconnectCount:number
How many times to try to reconnect to server in case of connection issues. Set to zero to disable reconnection attempts.
onProgress?
optionalonProgress:ProgressHandler
A callback that, if set, receives the current status of the deployment process.
reconnectInterval?
optionalreconnectInterval: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?
optionalretention: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