Variable MJTaskSchemaConst
MJTaskSchema: ZodObject<
{
__mj_CreatedAt: ZodDate;
__mj_UpdatedAt: ZodDate;
Action: ZodNullable<ZodString>;
ActionID: ZodNullable<ZodString>;
Agent: ZodNullable<ZodString>;
AgentID: ZodNullable<ZodString>;
AgentRun: ZodNullable<ZodString>;
AgentRunID: ZodNullable<ZodString>;
ClaimedBy: ZodNullable<ZodString>;
ClaimExpiresAt: ZodNullable<ZodDate>;
CompletedAt: ZodNullable<ZodDate>;
Configuration: ZodNullable<ZodAny>;
ConversationDetail: ZodNullable<ZodString>;
ConversationDetailID: ZodNullable<ZodString>;
Description: ZodNullable<ZodString>;
DueAt: ZodNullable<ZodDate>;
Environment: ZodString;
EnvironmentID: ZodString;
ErrorMessage: ZodNullable<ZodString>;
ID: ZodString;
InputPayload: ZodNullable<ZodString>;
Name: ZodString;
OutputPayload: ZodNullable<ZodString>;
Parent: ZodNullable<ZodString>;
ParentID: ZodNullable<ZodString>;
ParentIDChildCount: ZodNullable<ZodNumber>;
ParentIDDepth: ZodNullable<ZodNumber>;
ParentIDIsLeaf: ZodNullable<ZodBoolean>;
ParentIDPath: ZodNullable<ZodString>;
PercentComplete: ZodNullable<ZodNumber>;
Project: ZodNullable<ZodString>;
ProjectID: ZodNullable<ZodString>;
Prompt: ZodNullable<ZodString>;
PromptID: ZodNullable<ZodString>;
RootParentID: ZodNullable<ZodString>;
StartedAt: ZodNullable<ZodDate>;
Status: ZodUnion<
[
ZodLiteral<"Blocked">,
ZodLiteral<"Cancelled">,
ZodLiteral<"Complete">,
ZodLiteral<"Deferred">,
ZodLiteral<"Failed">,
ZodLiteral<"In Progress">,
ZodLiteral<"Pending">,
ZodLiteral<"Skipped">,
],
>;
StepType: ZodNullable<
ZodUnion<
[
ZodLiteral<"Action">,
ZodLiteral<"Agent">,
ZodLiteral<"External">,
ZodLiteral<"ForEach">,
ZodLiteral<"Human">,
ZodLiteral<"Prompt">,
ZodLiteral<"While">,
],
>,
>;
Type: ZodString;
TypeID: ZodString;
User: ZodNullable<ZodString>;
UserID: ZodNullable<ZodString>;
},
"strip",
ZodTypeAny,
{
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
Action?: string;
ActionID?: string;
Agent?: string;
AgentID?: string;
AgentRun?: string;
AgentRunID?: string;
ClaimedBy?: string;
ClaimExpiresAt?: Date;
CompletedAt?: Date;
Configuration?: any;
ConversationDetail?: string;
ConversationDetailID?: string;
Description?: string;
DueAt?: Date;
Environment?: string;
EnvironmentID?: string;
ErrorMessage?: string;
ID?: string;
InputPayload?: string;
Name?: string;
OutputPayload?: string;
Parent?: string;
ParentID?: string;
ParentIDChildCount?: number;
ParentIDDepth?: number;
ParentIDIsLeaf?: boolean;
ParentIDPath?: string;
PercentComplete?: number;
Project?: string;
ProjectID?: string;
Prompt?: string;
PromptID?: string;
RootParentID?: string;
StartedAt?: Date;
Status?: | "Pending"
| "Complete"
| "Failed"
| "Cancelled"
| "Skipped"
| "In Progress"
| "Blocked"
| "Deferred";
StepType?: | "Agent"
| "Action"
| "Prompt"
| "ForEach"
| "While"
| "Human"
| "External";
Type?: string;
TypeID?: string;
User?: string;
UserID?: string;
},
{
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
Action?: string;
ActionID?: string;
Agent?: string;
AgentID?: string;
AgentRun?: string;
AgentRunID?: string;
ClaimedBy?: string;
ClaimExpiresAt?: Date;
CompletedAt?: Date;
Configuration?: any;
ConversationDetail?: string;
ConversationDetailID?: string;
Description?: string;
DueAt?: Date;
Environment?: string;
EnvironmentID?: string;
ErrorMessage?: string;
ID?: string;
InputPayload?: string;
Name?: string;
OutputPayload?: string;
Parent?: string;
ParentID?: string;
ParentIDChildCount?: number;
ParentIDDepth?: number;
ParentIDIsLeaf?: boolean;
ParentIDPath?: string;
PercentComplete?: number;
Project?: string;
ProjectID?: string;
Prompt?: string;
PromptID?: string;
RootParentID?: string;
StartedAt?: Date;
Status?: | "Pending"
| "Complete"
| "Failed"
| "Cancelled"
| "Skipped"
| "In Progress"
| "Blocked"
| "Deferred";
StepType?: | "Agent"
| "Action"
| "Prompt"
| "ForEach"
| "While"
| "Human"
| "External";
Type?: string;
TypeID?: string;
User?: string;
UserID?: string;
},
> = ...
zod schema definition for the entity MJ: Tasks