OpenAITokenGrantSchema
constOpenAITokenGrantSchema:z.ZodObject<{expiresAt:z.ZodPipe<z.ZodNumber,z.ZodTransform<UnixSeconds,number>>;model:z.ZodString;provider:z.ZodLiteral<"openai">;value:z.ZodString; },z.core.$strip>
Defined in: packages/realtime-protocol/dist/lib/openai-token.d.ts:52
Wire schema for OpenAITokenGrant — validates the mint endpoint’s response as it crosses the server → browser boundary.
valuemust be a non-empty string (the opaque provider credential).expiresAtmust satisfy UnixSecondsSchema.modelmust be a non-empty string.