Skip to content

StreamLineSchema

View as Markdown
const StreamLineSchema: ZodUnion<readonly [ZodObject<{
msg: ZodDiscriminatedUnion<[ZodObject<{
machineId: ZodString;
minAgentVersion: ZodString;
protocol: ZodNumber;
t: ZodLiteral<"welcome">;
}, $strip>, ZodObject<{
minAgentVersion: ZodString;
t: ZodLiteral<"upgrade_required">;
}, $strip>, ZodObject<{
args: ZodUnknown;
id: ZodString;
op: ZodEnum<{
addAttachment: "addAttachment";
cancelRun: "cancelRun";
createSession: "createSession";
decide: "decide";
listSessions: "listSessions";
readEvents: "readEvents";
snapshot: "snapshot";
startRun: "startRun";
updateSettings: "updateSettings";
}>;
t: ZodLiteral<"command">;
}, $strip>], "t">;
seq: ZodNumber;
}, $strip>, ZodObject<{
at: ZodOptional<ZodNumber>;
ctl: ZodEnum<{
closed: "closed";
ping: "ping";
replaced: "replaced";
revoked: "revoked";
rotate: "rotate";
}>;
}, $strip>]>;

Defined in: transport.ts:65