Skip to content

OpenAITokenGrant

Defined in: packages/realtime-protocol/dist/lib/openai-token.d.ts:35

The ephemeral OpenAI credential the browser uses to open the realtime session directly. value is provider-opaque (an OpenAI ek-… client secret) — the adapter, not this schema, interprets it.

  • TokenGrant

readonly expiresAt: UnixSeconds

Defined in: packages/realtime-protocol/dist/lib/token-grant.d.ts:15

Absolute Unix-epoch second at which the credential expires.

TokenGrant.expiresAt


readonly model: string

Defined in: packages/realtime-protocol/dist/lib/openai-token.d.ts:42

The model the credential was minted for. Informational for the client — the credential itself is already scoped to this model upstream.


readonly provider: "openai"

Defined in: packages/realtime-protocol/dist/lib/openai-token.d.ts:36


readonly value: string

Defined in: packages/realtime-protocol/dist/lib/openai-token.d.ts:37