Variable MJAIAgentUserPolicySchemaConst
MJAIAgentUserPolicySchema: ZodObject<
{
__mj_CreatedAt: ZodDate;
__mj_UpdatedAt: ZodDate;
ActionPolicyRules: ZodNullable<ZodAny>;
Agent: ZodNullable<ZodString>;
AgentID: ZodString;
AllowInterAgentCoordination: ZodBoolean;
AutoApproveAmountThreshold: ZodNullable<ZodNumber>;
CalendarChannelMode: ZodUnion<
[
ZodLiteral<"Autonomous">,
ZodLiteral<"Disabled">,
ZodLiteral<"ProposeWithApproval">,
ZodLiteral<"ReadOnly">,
],
>;
CoordinationMode: ZodUnion<
[
ZodLiteral<"Autonomous">,
ZodLiteral<"Coordinator">,
ZodLiteral<"Observer">,
],
>;
DefaultDataAccessMode: ZodUnion<
[
ZodLiteral<"AllowListOnly">,
ZodLiteral<"ReadOnly">,
ZodLiteral<"UserCeiling">,
],
>;
DisplayNameOverride: ZodNullable<ZodString>;
EmailChannelMode: ZodUnion<
[
ZodLiteral<"Disabled">,
ZodLiteral<"DraftOnly">,
ZodLiteral<"ReadOnly">,
ZodLiteral<"SendAsAgent">,
ZodLiteral<"SendAsUser">,
],
>;
EntityAccessRules: ZodNullable<ZodAny>;
ID: ZodString;
InstructionsOverride: ZodNullable<ZodString>;
MessagingChannelMode: ZodUnion<
[ZodLiteral<"Disabled">, ZodLiteral<"Enabled">],
>;
OnboardedAt: ZodNullable<ZodDate>;
OnboardingStatus: ZodUnion<
[
ZodLiteral<"Completed">,
ZodLiteral<"InProgress">,
ZodLiteral<"NotStarted">,
],
>;
PhoneChannelMode: ZodUnion<
[
ZodLiteral<"Disabled">,
ZodLiteral<"InboundOnly">,
ZodLiteral<"OutboundAutonomous">,
ZodLiteral<"OutboundWithApproval">,
],
>;
PreferredPersona: ZodNullable<ZodString>;
PreferredPersonaID: ZodNullable<ZodString>;
RequireApprovalForDestructiveActions: ZodBoolean;
RequireApprovalForExternalComms: ZodBoolean;
RequireApprovalForFinancials: ZodBoolean;
Status: ZodUnion<
[ZodLiteral<"Active">, ZodLiteral<"Disabled">, ZodLiteral<"Paused">],
>;
User: ZodString;
UserID: ZodString;
},
"strip",
ZodTypeAny,
{
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
ActionPolicyRules?: any;
Agent?: string;
AgentID?: string;
AllowInterAgentCoordination?: boolean;
AutoApproveAmountThreshold?: number;
CalendarChannelMode?: | "Disabled"
| "Autonomous"
| "ReadOnly"
| "ProposeWithApproval";
CoordinationMode?: "Observer"
| "Autonomous"
| "Coordinator";
DefaultDataAccessMode?: "AllowListOnly" | "ReadOnly" | "UserCeiling";
DisplayNameOverride?: string;
EmailChannelMode?:
| "Disabled"
| "ReadOnly"
| "DraftOnly"
| "SendAsAgent"
| "SendAsUser";
EntityAccessRules?: any;
ID?: string;
InstructionsOverride?: string;
MessagingChannelMode?: "Disabled"
| "Enabled";
OnboardedAt?: Date;
OnboardingStatus?: "Completed" | "InProgress" | "NotStarted";
PhoneChannelMode?:
| "Disabled"
| "InboundOnly"
| "OutboundAutonomous"
| "OutboundWithApproval";
PreferredPersona?: string;
PreferredPersonaID?: string;
RequireApprovalForDestructiveActions?: boolean;
RequireApprovalForExternalComms?: boolean;
RequireApprovalForFinancials?: boolean;
Status?: "Active"
| "Disabled"
| "Paused";
User?: string;
UserID?: string;
},
{
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
ActionPolicyRules?: any;
Agent?: string;
AgentID?: string;
AllowInterAgentCoordination?: boolean;
AutoApproveAmountThreshold?: number;
CalendarChannelMode?: | "Disabled"
| "Autonomous"
| "ReadOnly"
| "ProposeWithApproval";
CoordinationMode?: "Observer"
| "Autonomous"
| "Coordinator";
DefaultDataAccessMode?: "AllowListOnly" | "ReadOnly" | "UserCeiling";
DisplayNameOverride?: string;
EmailChannelMode?:
| "Disabled"
| "ReadOnly"
| "DraftOnly"
| "SendAsAgent"
| "SendAsUser";
EntityAccessRules?: any;
ID?: string;
InstructionsOverride?: string;
MessagingChannelMode?: "Disabled"
| "Enabled";
OnboardedAt?: Date;
OnboardingStatus?: "Completed" | "InProgress" | "NotStarted";
PhoneChannelMode?:
| "Disabled"
| "InboundOnly"
| "OutboundAutonomous"
| "OutboundWithApproval";
PreferredPersona?: string;
PreferredPersonaID?: string;
RequireApprovalForDestructiveActions?: boolean;
RequireApprovalForExternalComms?: boolean;
RequireApprovalForFinancials?: boolean;
Status?: "Active"
| "Disabled"
| "Paused";
User?: string;
UserID?: string;
},
> = ...
zod schema definition for the entity MJ: AI Agent User Policies