Skip to main content

@dialstack/sdk-dev / js/src / Tos

Interface: Tos

Defined in: sdk/js/src/types/account-onboarding.ts:314

The current subscription agreement plus this account's acceptance state. Returned by account.tos.retrieve(); pricing is only present when requested via expand: ['pricing'].

Properties​

acceptance​

TypeScript
acceptance: TosAcceptance | null;

Defined in: sdk/js/src/types/account-onboarding.ts:328

The latest acceptance for this account, or null if never accepted.


body?​

TypeScript
body?: string;

Defined in: sdk/js/src/types/account-onboarding.ts:326

Full agreement text (HTML) to render as the agreement body. Optional: an older API during a mixed-version deploy may omit it, so consumers must handle its absence (the acceptance gate fails closed when it is missing).


content​

TypeScript
content: string;

Defined in: sdk/js/src/types/account-onboarding.ts:320

The short affirmation to tick (the checkbox label, including the 911/E911 acknowledgement).


pricing?​

TypeScript
pricing?: AccountPricing | null;

Defined in: sdk/js/src/types/account-onboarding.ts:336

Present only when expanded; null when the account's pricing is incomplete.


service_setup_fee​

TypeScript
service_setup_fee: number;

Defined in: sdk/js/src/types/account-onboarding.ts:334

The one-time service set-up fee, in cents: the fee the account was shown when it accepted, otherwise the fee for an account accepting now. The agreement points to this amount rather than stating one, so show it with the agreement.


url​

TypeScript
url: string;

Defined in: sdk/js/src/types/account-onboarding.ts:318

Canonical URL of the full agreement.


version​

TypeScript
version: string;

Defined in: sdk/js/src/types/account-onboarding.ts:316

The current agreement version.