Variable action_attemptConst
action_attempt: ZodUnion<
[
ZodObject<
{ action_attempt_id: ZodString } & {
error: ZodNull;
result: ZodNull;
status: ZodLiteral<"pending">;
} & { action_type: ZodLiteral<"LOCK_DOOR"> },
"strip",
ZodTypeAny,
{
action_attempt_id: string;
action_type: "LOCK_DOOR";
error: null;
result: null;
status: "pending";
},
{
action_attempt_id: string;
action_type: "LOCK_DOOR";
error: null;
result: null;
status: "pending";
},
>,
ZodObject<
{ action_attempt_id: ZodString } & {
error: ZodNull;
status: ZodLiteral<"success">;
} & {
action_type: ZodLiteral<"LOCK_DOOR">;
result: ZodObject<{}, "strip", ZodTypeAny, {}, {}>;
},
"strip",
ZodTypeAny,
{
action_attempt_id: string;
action_type: "LOCK_DOOR";
error: null;
result: {};
status: "success";
},
{
action_attempt_id: string;
action_type: "LOCK_DOOR";
error: null;
result: {};
status: "success";
},
>,
ZodObject<
{ action_attempt_id: ZodString } & {
result: ZodNull;
status: ZodLiteral<"error">;
} & {
action_type: ZodLiteral<"LOCK_DOOR">;
error: ZodObject<
{ message: ZodString; type: ZodString },
"strip",
ZodTypeAny,
{ message: string; type: string },
{ message: string; type: string },
>;
},
"strip",
ZodTypeAny,
{
action_attempt_id: string;
action_type: "LOCK_DOOR";
error: { message: string; type: string };
result: null;
status: "error";
},
{
action_attempt_id: string;
action_type: "LOCK_DOOR";
error: { message: string; type: string };
result: null;
status: "error";
},
>,
],
> = ...