Variable MJAIAgentNoteSchemaConst
MJAIAgentNoteSchema: ZodObject<
{
__mj_CreatedAt: ZodDate;
__mj_UpdatedAt: ZodDate;
AccessCount: ZodNumber;
Agent: ZodNullable<ZodString>;
AgentID: ZodNullable<ZodString>;
AgentNoteType: ZodNullable<ZodString>;
AgentNoteTypeID: ZodNullable<ZodString>;
AuthorType: ZodUnion<
[ZodLiteral<"Agent">, ZodLiteral<"MemoryManager">, ZodLiteral<"User">],
>;
Comments: ZodNullable<ZodString>;
Company: ZodNullable<ZodString>;
CompanyID: ZodNullable<ZodString>;
ConsolidatedIntoNote: ZodNullable<ZodString>;
ConsolidatedIntoNoteID: ZodNullable<ZodString>;
ConsolidationCount: ZodNumber;
DerivedFromNoteIDs: ZodNullable<ZodString>;
EmbeddingModel: ZodNullable<ZodString>;
EmbeddingModelID: ZodNullable<ZodString>;
EmbeddingVector: ZodNullable<ZodString>;
ExpiresAt: ZodNullable<ZodDate>;
ID: ZodString;
ImportanceScore: ZodNullable<ZodNumber>;
IsAutoGenerated: ZodBoolean;
LastAccessedAt: ZodNullable<ZodDate>;
Note: ZodNullable<ZodString>;
PrimaryScopeEntity: ZodNullable<ZodString>;
PrimaryScopeEntityID: ZodNullable<ZodString>;
PrimaryScopeRecordID: ZodNullable<ZodString>;
ProtectionTier: ZodUnion<
[
ZodLiteral<"Ephemeral">,
ZodLiteral<"Immutable">,
ZodLiteral<"Protected">,
ZodLiteral<"Standard">,
],
>;
RootConsolidatedIntoNoteID: ZodNullable<ZodString>;
SecondaryScopes: ZodNullable<ZodAny>;
SourceAIAgentRun: ZodNullable<ZodString>;
SourceAIAgentRunID: ZodNullable<ZodString>;
SourceConversation: ZodNullable<ZodString>;
SourceConversationDetail: ZodNullable<ZodString>;
SourceConversationDetailID: ZodNullable<ZodString>;
SourceConversationID: ZodNullable<ZodString>;
Status: ZodUnion<
[
ZodLiteral<"Active">,
ZodLiteral<"Archived">,
ZodLiteral<"Pending">,
ZodLiteral<"Provisional">,
ZodLiteral<"Revoked">,
],
>;
Type: ZodUnion<
[
ZodLiteral<"Constraint">,
ZodLiteral<"Context">,
ZodLiteral<"Example">,
ZodLiteral<"Issue">,
ZodLiteral<"Preference">,
],
>;
User: ZodNullable<ZodString>;
UserID: ZodNullable<ZodString>;
},
"strip",
ZodTypeAny,
{
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
AccessCount?: number;
Agent?: string;
AgentID?: string;
AgentNoteType?: string;
AgentNoteTypeID?: string;
AuthorType?: "User"
| "Agent"
| "MemoryManager";
Comments?: string;
Company?: string;
CompanyID?: string;
ConsolidatedIntoNote?: string;
ConsolidatedIntoNoteID?: string;
ConsolidationCount?: number;
DerivedFromNoteIDs?: string;
EmbeddingModel?: string;
EmbeddingModelID?: string;
EmbeddingVector?: string;
ExpiresAt?: Date;
ID?: string;
ImportanceScore?: number;
IsAutoGenerated?: boolean;
LastAccessedAt?: Date;
Note?: string;
PrimaryScopeEntity?: string;
PrimaryScopeEntityID?: string;
PrimaryScopeRecordID?: string;
ProtectionTier?: "Ephemeral" | "Immutable" | "Protected" | "Standard";
RootConsolidatedIntoNoteID?: string;
SecondaryScopes?: any;
SourceAIAgentRun?: string;
SourceAIAgentRunID?: string;
SourceConversation?: string;
SourceConversationDetail?: string;
SourceConversationDetailID?: string;
SourceConversationID?: string;
Status?: "Active" | "Pending" | "Revoked" | "Archived" | "Provisional";
Type?: "Context" | "Constraint" | "Example" | "Issue" | "Preference";
User?: string;
UserID?: string;
},
{
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
AccessCount?: number;
Agent?: string;
AgentID?: string;
AgentNoteType?: string;
AgentNoteTypeID?: string;
AuthorType?: "User"
| "Agent"
| "MemoryManager";
Comments?: string;
Company?: string;
CompanyID?: string;
ConsolidatedIntoNote?: string;
ConsolidatedIntoNoteID?: string;
ConsolidationCount?: number;
DerivedFromNoteIDs?: string;
EmbeddingModel?: string;
EmbeddingModelID?: string;
EmbeddingVector?: string;
ExpiresAt?: Date;
ID?: string;
ImportanceScore?: number;
IsAutoGenerated?: boolean;
LastAccessedAt?: Date;
Note?: string;
PrimaryScopeEntity?: string;
PrimaryScopeEntityID?: string;
PrimaryScopeRecordID?: string;
ProtectionTier?: "Ephemeral" | "Immutable" | "Protected" | "Standard";
RootConsolidatedIntoNoteID?: string;
SecondaryScopes?: any;
SourceAIAgentRun?: string;
SourceAIAgentRunID?: string;
SourceConversation?: string;
SourceConversationDetail?: string;
SourceConversationDetailID?: string;
SourceConversationID?: string;
Status?: "Active" | "Pending" | "Revoked" | "Archived" | "Provisional";
Type?: "Context" | "Constraint" | "Example" | "Issue" | "Preference";
User?: string;
UserID?: string;
},
> = ...
zod schema definition for the entity MJ: AI Agent Notes