Variable workflowWorkItemClaimSchemaConst
workflowWorkItemClaimSchema: ZodObject<
{
data: ZodOptional<
ZodObject<
{
lease_owner: ZodString;
work_item: ZodObject<
{
agent: ZodString;
attempt_count: ZodNumber;
command_id: ZodString;
created_at: ZodString;
execution: ZodString;
id: ZodString;
lease_expires_at: ZodOptional<ZodString>;
node_id: ZodString;
payload: ZodRecord<
ZodString,
ZodType<{} | null, ZodTypeDef, {} | null>,
>;
routine_run: ZodOptional<ZodString>;
status: ZodString;
type: ZodString;
updated_at: ZodString;
},
"strip",
ZodTypeAny,
{
agent: string;
attempt_count: number;
command_id: string;
created_at: string;
execution: string;
id: string;
lease_expires_at?: string;
node_id: string;
payload: Record<string, {} | null>;
routine_run?: string;
status: string;
type: string;
updated_at: string;
},
{
agent: string;
attempt_count: number;
command_id: string;
created_at: string;
execution: string;
id: string;
lease_expires_at?: string;
node_id: string;
payload: Record<string, {} | null>;
routine_run?: string;
status: string;
type: string;
updated_at: string;
},
>;
},
"strip",
ZodTypeAny,
{
lease_owner: string;
work_item: {
agent: string;
attempt_count: number;
command_id: string;
created_at: string;
execution: string;
id: string;
lease_expires_at?: string;
node_id: string;
payload: Record<string, {} | null>;
routine_run?: string;
status: string;
type: string;
updated_at: string;
};
},
{
lease_owner: string;
work_item: {
agent: string;
attempt_count: number;
command_id: string;
created_at: string;
execution: string;
id: string;
lease_expires_at?: string;
node_id: string;
payload: Record<string, {} | null>;
routine_run?: string;
status: string;
type: string;
updated_at: string;
};
},
>,
>;
},
"strip",
ZodTypeAny,
{
data?: {
lease_owner: string;
work_item: {
agent: string;
attempt_count: number;
command_id: string;
created_at: string;
execution: string;
id: string;
lease_expires_at?: string;
node_id: string;
payload: Record<string, {} | null>;
routine_run?: string;
status: string;
type: string;
updated_at: string;
};
};
},
{
data?: {
lease_owner: string;
work_item: {
agent: string;
attempt_count: number;
command_id: string;
created_at: string;
execution: string;
id: string;
lease_expires_at?: string;
node_id: string;
payload: Record<string, {} | null>;
routine_run?: string;
status: string;
type: string;
updated_at: string;
};
};
},
> = ...
Runtime validator for WorkflowWorkItemClaim.