Skip to main content

@dialstack/sdk-dev / server/src / AccountSessionCreateParams

Interface: AccountSessionCreateParams

Defined in: sdk/server/src/index.ts:731

Properties​

account​

TypeScript
account: string;

Defined in: sdk/server/src/index.ts:732


components​

TypeScript
components: object;

Defined in: sdk/server/src/index.ts:734

Components to enable for this session. At least one must be enabled.

Index Signature​

TypeScript
[key: string]: ComponentConfig | undefined

account_onboarding?​

TypeScript
optional account_onboarding?: ComponentConfig;

agreement_acceptance?​

TypeScript
optional agreement_acceptance?: ComponentConfig;

Lets this session record acceptance of the subscription agreement.

This is a capability, not a UI toggle: enabling it means the holder of this session can bind the account to the agreement. Enable it only for someone entitled to accept on the account's behalf — doing so asserts that you presented them the agreement.

Separate from account_onboarding on purpose. A session with only account_onboarding can still read the agreement and render the accept screen, so someone who may not sign still learns the account is blocked; submitting without this component is rejected.

ai_agent?​

TypeScript
optional ai_agent?: ComponentConfig;

call_history?​

TypeScript
optional call_history?: ComponentConfig;

call_logs?​

TypeScript
optional call_logs?: ComponentConfig;

dial_plan?​

TypeScript
optional dial_plan?: ComponentConfig;

phone_number_ordering?​

TypeScript
optional phone_number_ordering?: ComponentConfig;

phone_numbers?​

TypeScript
optional phone_numbers?: ComponentConfig;

voicemails?​

TypeScript
optional voicemails?: ComponentConfig;