Skip to main content

@dialstack/sdk / index / ClientSecretResponse

Type Alias: ClientSecretResponse

TypeScript
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:124

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

Union Members

string


Type Literal

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

accountId?

TypeScript
optional accountId?: string;

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

clientSecret

TypeScript
clientSecret: string;

expiresAt?

TypeScript
optional expiresAt?: string;

ISO 8601 datetime string when the session expires


Type Literal

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

account_id?

TypeScript
optional account_id?: string;

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

client_secret

TypeScript
client_secret: string;

expires_at?

TypeScript
optional expires_at?: string;

ISO 8601 datetime string when the session expires