OpenAITokenRequestSchema
constOpenAITokenRequestSchema:ZodObject<{model:ZodOptional<ZodString>;provider:ZodLiteral<"openai">;sessionId:ZodPipe<ZodString,ZodTransform<SessionId,string>>; },$strip>
Defined in: packages/realtime-protocol/src/lib/openai-token.ts:29
Wire schema for OpenAITokenRequest — validates the request as it crosses the browser → mint-endpoint boundary.
sessionIdmust satisfy SessionIdSchema, binding the request to a specific Maelstrom session.model, when present, must be non-empty: an empty string is rejected rather than treated as “omitted”.