Variable MJUserRoutineSchemaConst
MJUserRoutineSchema: ZodObject<
{
__mj_CreatedAt: ZodDate;
__mj_UpdatedAt: ZodDate;
Conversation: ZodNullable<ZodString>;
ConversationID: ZodNullable<ZodString>;
CronExpression: ZodString;
Description: ZodNullable<ZodString>;
EndAt: ZodNullable<ZodDate>;
Environment: ZodNullable<ZodString>;
EnvironmentID: ZodNullable<ZodString>;
ID: ZodString;
InitialMessage: ZodNullable<ZodString>;
LastResultHash: ZodNullable<ZodString>;
LastRunAt: ZodNullable<ZodDate>;
LastRunStatus: ZodNullable<
ZodUnion<
[
ZodLiteral<"Failed">,
ZodLiteral<"Running">,
ZodLiteral<"Skipped">,
ZodLiteral<"Success">,
],
>,
>;
Name: ZodString;
NextRunAt: ZodNullable<ZodDate>;
NotificationTemplate: ZodNullable<ZodString>;
NotificationTemplateID: ZodNullable<ZodString>;
NotifyCondition: ZodUnion<
[
ZodLiteral<"Always">,
ZodLiteral<"OnChange">,
ZodLiteral<"OnFailure">,
ZodLiteral<"OnSuccess">,
],
>;
NotifyViaEmail: ZodBoolean;
NotifyViaInApp: ZodBoolean;
RequestedSkillIDs: ZodNullable<ZodString>;
RoutineType: ZodUnion<[ZodLiteral<"Monitoring">, ZodLiteral<"Scheduled">]>;
StartAt: ZodNullable<ZodDate>;
StartingPayload: ZodNullable<ZodString>;
Status: ZodUnion<
[ZodLiteral<"Active">, ZodLiteral<"Disabled">, ZodLiteral<"Paused">],
>;
TargetID: ZodString;
TargetType: ZodUnion<
[ZodLiteral<"Action">, ZodLiteral<"Agent">, ZodLiteral<"Prompt">],
>;
Timezone: ZodString;
User: ZodString;
UserID: ZodString;
},
"strip",
ZodTypeAny,
{
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
Conversation?: string;
ConversationID?: string;
CronExpression?: string;
Description?: string;
EndAt?: Date;
Environment?: string;
EnvironmentID?: string;
ID?: string;
InitialMessage?: string;
LastResultHash?: string;
LastRunAt?: Date;
LastRunStatus?: "Failed"
| "Running"
| "Success"
| "Skipped";
Name?: string;
NextRunAt?: Date;
NotificationTemplate?: string;
NotificationTemplateID?: string;
NotifyCondition?: "Always" | "OnChange" | "OnFailure" | "OnSuccess";
NotifyViaEmail?: boolean;
NotifyViaInApp?: boolean;
RequestedSkillIDs?: string;
RoutineType?: "Scheduled" | "Monitoring";
StartAt?: Date;
StartingPayload?: string;
Status?: "Active" | "Disabled" | "Paused";
TargetID?: string;
TargetType?: "Action" | "Agent" | "Prompt";
Timezone?: string;
User?: string;
UserID?: string;
},
{
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
Conversation?: string;
ConversationID?: string;
CronExpression?: string;
Description?: string;
EndAt?: Date;
Environment?: string;
EnvironmentID?: string;
ID?: string;
InitialMessage?: string;
LastResultHash?: string;
LastRunAt?: Date;
LastRunStatus?: "Failed"
| "Running"
| "Success"
| "Skipped";
Name?: string;
NextRunAt?: Date;
NotificationTemplate?: string;
NotificationTemplateID?: string;
NotifyCondition?: "Always" | "OnChange" | "OnFailure" | "OnSuccess";
NotifyViaEmail?: boolean;
NotifyViaInApp?: boolean;
RequestedSkillIDs?: string;
RoutineType?: "Scheduled" | "Monitoring";
StartAt?: Date;
StartingPayload?: string;
Status?: "Active" | "Disabled" | "Paused";
TargetID?: string;
TargetType?: "Action" | "Agent" | "Prompt";
Timezone?: string;
User?: string;
UserID?: string;
},
> = ...
zod schema definition for the entity MJ: User Routines