Variable DialServerMessageSchemaConst
DialServerMessageSchema: ZodDiscriminatedUnion<
[
ZodObject<
{
call_id: ZodString;
direction: ZodEnum<{ inbound: "inbound"; outbound: "outbound" }>;
from: ZodString;
instruction: ZodOptional<ZodNullable<ZodString>>;
language: ZodOptional<ZodNullable<ZodString>>;
to: ZodString;
type: ZodLiteral<"call_connected">;
},
$strip,
>,
ZodObject<
{
transcript: ZodArray<
ZodObject<
{
content: ZodString;
role: ZodEnum<{ agent: "agent"; user: "user" }>;
},
$strip,
>,
>;
type: ZodLiteral<"transcript_update">;
},
$strip,
>,
ZodObject<
{
response_id: ZodNumber;
transcript: ZodArray<
ZodObject<
{
content: ZodString;
role: ZodEnum<{ agent: "agent"; user: "user" }>;
},
$strip,
>,
>;
type: ZodLiteral<"response_required">;
},
$strip,
>,
ZodObject<
{
response_id: ZodNumber;
transcript: ZodArray<
ZodObject<
{
content: ZodString;
role: ZodEnum<{ agent: "agent"; user: "user" }>;
},
$strip,
>,
>;
type: ZodLiteral<"reminder_required">;
},
$strip,
>,
ZodObject<{ timestamp: ZodNumber; type: ZodLiteral<"ping_pong"> }, $strip>,
],
"type",
> = ...
Any frame Dial sends to your server.