Skip to main content

@dialstack/sdk / index / ClientSecretResponse

Type Alias: ClientSecretResponse

type ClientSecretResponse =
| string
| {
accountId?: string;
clientSecret: string;
expiresAt?: string;
}
| {
account_id?: string;
client_secret: string;
expires_at?: string;
};

Defined in: sdk/src/types/core.ts:93

Client secret response from fetchClientSecret Can be either a string (for backward compatibility) or an object with expiry info

Union Members

string


Type Literal

{
accountId?: string;
clientSecret: string;
expiresAt?: string;
}

accountId?

optional accountId?: string;

Account TypeID (e.g. acct_...) for account-scoped SDK methods

clientSecret

clientSecret: string;

expiresAt?

optional expiresAt?: string;

ISO 8601 datetime string when the session expires


Type Literal

{
account_id?: string;
client_secret: string;
expires_at?: string;
}

account_id?

optional account_id?: string;

Account TypeID (e.g. acct_...) for account-scoped SDK methods

client_secret

client_secret: string;

expires_at?

optional expires_at?: string;

ISO 8601 datetime string when the session expires