Appearance
Variable: WorkflowTriggerItem
ts
const WorkflowTriggerItem: z.ZodObject<{
attempts: z.ZodNumber;
createdAt: z.ZodCoercedDate<unknown>;
definitionKey: z.ZodString;
dueAt: z.ZodCoercedDate<unknown>;
id: z.ZodGUID;
lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
payload: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
runId: z.ZodOptional<z.ZodNullable<z.ZodGUID>>;
source: z.ZodEnum<{
decision: "decision";
event: "event";
subject: "subject";
}>;
sourceId: z.ZodString;
sourceOccurredAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
startedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
status: z.ZodEnum<{
cancelled: "cancelled";
coalesced: "coalesced";
failed: "failed";
filtered: "filtered";
pending: "pending";
started: "started";
starting: "starting";
}>;
subjectId: z.ZodGUID;
tenantId: z.ZodGUID;
updatedAt: z.ZodCoercedDate<unknown>;
}, z.core.$strip>;One start a trigger queued, as GET /workflow-triggers lists it.