Variable MJEntityAIActionSchemaConst
MJEntityAIActionSchema: ZodObject<
{
__mj_CreatedAt: ZodDate;
__mj_UpdatedAt: ZodDate;
AIAction: ZodString;
AIActionID: ZodString;
AIModel: ZodString;
AIModelID: ZodString;
Comments: ZodNullable<ZodString>;
Entity: ZodString;
EntityID: ZodString;
ID: ZodString;
Name: ZodString;
OutputEntity: ZodNullable<ZodString>;
OutputEntityID: ZodNullable<ZodString>;
OutputField: ZodNullable<ZodString>;
OutputType: ZodUnion<[ZodLiteral<"entity">, ZodLiteral<"field">]>;
Prompt: ZodNullable<ZodString>;
SkipIfOutputFieldNotEmpty: ZodBoolean;
TriggerEvent: ZodUnion<
[ZodLiteral<"after save">, ZodLiteral<"before save">],
>;
UserMessage: ZodString;
},
"strip",
ZodTypeAny,
{
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
AIAction?: string;
AIActionID?: string;
AIModel?: string;
AIModelID?: string;
Comments?: string;
Entity?: string;
EntityID?: string;
ID?: string;
Name?: string;
OutputEntity?: string;
OutputEntityID?: string;
OutputField?: string;
OutputType?: "entity"
| "field";
Prompt?: string;
SkipIfOutputFieldNotEmpty?: boolean;
TriggerEvent?: "after save" | "before save";
UserMessage?: string;
},
{
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
AIAction?: string;
AIActionID?: string;
AIModel?: string;
AIModelID?: string;
Comments?: string;
Entity?: string;
EntityID?: string;
ID?: string;
Name?: string;
OutputEntity?: string;
OutputEntityID?: string;
OutputField?: string;
OutputType?: "entity"
| "field";
Prompt?: string;
SkipIfOutputFieldNotEmpty?: boolean;
TriggerEvent?: "after save" | "before save";
UserMessage?: string;
},
> = ...
zod schema definition for the entity MJ: Entity AI Actions