Skip to main content

@dialstack/sdk / index / Tos

Interface: Tos

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

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:153

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


body?

TypeScript
optional body?: string;

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

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:145

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


pricing?

TypeScript
optional pricing?: AccountPricing | null;

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

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


url

TypeScript
url: string;

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

Canonical URL of the full agreement.


version

TypeScript
version: string;

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

The current agreement version.