Variable commandEventSchemaConst
commandEventSchema: ZodDiscriminatedUnion<
"type",
[
ZodObject<
{
code: ZodOptional<ZodString>;
level: ZodEnum<["debug", "info", "warning", "error"]>;
message: ZodString;
timestamp: ZodString;
type: ZodLiteral<"diagnostic">;
},
"strict",
ZodTypeAny,
{
code?: string;
level: "info"
| "error"
| "debug"
| "warning";
message: string;
timestamp: string;
type: "diagnostic";
},
{
code?: string;
level: "info"
| "error"
| "debug"
| "warning";
message: string;
timestamp: string;
type: "diagnostic";
},
>,
ZodObject<
{
current: ZodOptional<ZodNumber>;
message: ZodOptional<ZodString>;
operation: ZodString;
status: ZodEnum<["started", "updated", "completed"]>;
timestamp: ZodString;
total: ZodOptional<ZodNumber>;
type: ZodLiteral<"progress">;
},
"strict",
ZodTypeAny,
{
current?: number;
message?: string;
operation: string;
status: "started"
| "updated"
| "completed";
timestamp: string;
total?: number;
type: "progress";
},
{
current?: number;
message?: string;
operation: string;
status: "started"
| "updated"
| "completed";
timestamp: string;
total?: number;
type: "progress";
},
>,
],
> = ...
Schema for side events emitted while a command executes.