@memberjunction/core-entities 2.16.0 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,13 +6,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.ConversationSchema = exports.ConversationDetailSchema = exports.ContentTypeSchema = exports.ContentTypeAttributeSchema = exports.ContentSourceSchema = exports.ContentSourceTypeSchema = exports.ContentSourceTypeParamSchema = exports.ContentSourceParamSchema = exports.ContentProcessRunSchema = exports.ContentItemSchema = exports.ContentItemTagSchema = exports.ContentItemAttributeSchema = exports.ContentFileTypeSchema = exports.CompanyIntegrationSchema = exports.CompanyIntegrationRunSchema = exports.CompanyIntegrationRunDetailSchema = exports.CompanyIntegrationRunAPILogSchema = exports.CompanyIntegrationRecordMapSchema = exports.CompanySchema = exports.CommunicationRunSchema = exports.CommunicationProviderSchema = exports.CommunicationProviderMessageTypeSchema = exports.CommunicationLogSchema = exports.CommunicationBaseMessageTypeSchema = exports.AuthorizationSchema = exports.AuthorizationRoleSchema = exports.AuditLogSchema = exports.AuditLogTypeSchema = exports.ApplicationSchema = exports.ApplicationSettingSchema = exports.ApplicationEntitySchema = exports.AIResultCacheSchema = exports.AIPromptSchema = exports.AIPromptTypeSchema = exports.AIPromptCategorySchema = exports.AIModelSchema = exports.AIModelTypeSchema = exports.AIModelActionSchema = exports.AIActionSchema = exports.ActionSchema = exports.ActionResultCodeSchema = exports.ActionParamSchema = exports.ActionLibrarySchema = exports.ActionFilterSchema = exports.ActionExecutionLogSchema = exports.ActionContextSchema = exports.ActionContextTypeSchema = exports.ActionCategorySchema = exports.ActionAuthorizationSchema = exports.loadModule = void 0;
10
- exports.OutputTriggerTypeSchema = exports.OutputFormatTypeSchema = exports.OutputDeliveryTypeSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = exports.IntegrationSchema = exports.IntegrationURLFormatSchema = exports.flyway_schema_historySchema = exports.FileSchema = exports.FileStorageProviderSchema = exports.FileEntityRecordLinkSchema = exports.FileCategorySchema = exports.ExplorerNavigationItemSchema = exports.ErrorLogSchema = exports.EntitySettingSchema = exports.EntityRelationshipSchema = exports.EntityRelationshipDisplayComponentSchema = exports.EntityRecordDocumentSchema = exports.EntityPermissionSchema = exports.EntityFieldSchema = exports.EntityFieldValueSchema = exports.EntityDocumentSchema = exports.EntityDocumentTypeSchema = exports.EntityDocumentSettingSchema = exports.EntityDocumentRunSchema = exports.EntityCommunicationMessageTypeSchema = exports.EntityCommunicationFieldSchema = exports.EntityAIActionSchema = exports.EntityActionSchema = exports.EntityActionParamSchema = exports.EntityActionInvocationSchema = exports.EntityActionInvocationTypeSchema = exports.EntityActionFilterSchema = exports.EntitySchema = exports.EmployeeSchema = exports.EmployeeSkillSchema = exports.EmployeeRoleSchema = exports.EmployeeCompanyIntegrationSchema = exports.DuplicateRunSchema = exports.DuplicateRunDetailSchema = exports.DuplicateRunDetailMatchSchema = exports.DatasetSchema = exports.DatasetItemSchema = exports.DataContextSchema = exports.DataContextItemSchema = exports.DashboardSchema = exports.DashboardCategorySchema = void 0;
11
- exports.WorkflowEngineSchema = exports.VersionInstallationSchema = exports.VectorIndexSchema = exports.VectorDatabaseSchema = exports.UserSchema = exports.UserViewSchema = exports.UserViewRunSchema = exports.UserViewRunDetailSchema = exports.UserViewCategorySchema = exports.UserRoleSchema = exports.UserRecordLogSchema = exports.UserNotificationSchema = exports.UserFavoriteSchema = exports.UserApplicationSchema = exports.UserApplicationEntitySchema = exports.TemplateSchema = exports.TemplateParamSchema = exports.TemplateContentSchema = exports.TemplateContentTypeSchema = exports.TemplateCategorySchema = exports.TagSchema = exports.TaggedItemSchema = exports.SkillSchema = exports.SchemaInfoSchema = exports.ScheduledActionSchema = exports.ScheduledActionParamSchema = exports.RowLevelSecurityFilterSchema = exports.RoleSchema = exports.ResourceTypeSchema = exports.ResourcePermissionSchema = exports.ResourceLinkSchema = exports.ReportSchema = exports.ReportSnapshotSchema = exports.ReportCategorySchema = exports.RecordMergeLogSchema = exports.RecordMergeDeletionLogSchema = exports.RecordChangeSchema = exports.RecordChangeReplayRunSchema = exports.RecommendationSchema = exports.RecommendationRunSchema = exports.RecommendationProviderSchema = exports.RecommendationItemSchema = exports.QueueSchema = exports.QueueTypeSchema = exports.QueueTaskSchema = exports.QueryPermissionSchema = exports.QueryFieldSchema = exports.QueryEntitySchema = exports.QueryCategorySchema = exports.QuerySchema = void 0;
12
- exports.ContentTypeAttributeEntity = exports.ContentSourceEntity = exports.ContentSourceTypeEntity = exports.ContentSourceTypeParamEntity = exports.ContentSourceParamEntity = exports.ContentProcessRunEntity = exports.ContentItemEntity = exports.ContentItemTagEntity = exports.ContentItemAttributeEntity = exports.ContentFileTypeEntity = exports.CompanyIntegrationEntity = exports.CompanyIntegrationRunEntity = exports.CompanyIntegrationRunDetailEntity = exports.CompanyIntegrationRunAPILogEntity = exports.CompanyIntegrationRecordMapEntity = exports.CompanyEntity = exports.CommunicationRunEntity = exports.CommunicationProviderEntity = exports.CommunicationProviderMessageTypeEntity = exports.CommunicationLogEntity = exports.CommunicationBaseMessageTypeEntity = exports.AuthorizationEntity = exports.AuthorizationRoleEntity = exports.AuditLogEntity = exports.AuditLogTypeEntity = exports.ApplicationEntity = exports.ApplicationSettingEntity = exports.ApplicationEntityEntity = exports.AIResultCacheEntity = exports.AIPromptEntity = exports.AIPromptTypeEntity = exports.AIPromptCategoryEntity = exports.AIModelEntity = exports.AIModelTypeEntity = exports.AIModelActionEntity = exports.AIActionEntity = exports.ActionEntity = exports.ActionResultCodeEntity = exports.ActionParamEntity = exports.ActionLibraryEntity = exports.ActionFilterEntity = exports.ActionExecutionLogEntity = exports.ActionContextEntity = exports.ActionContextTypeEntity = exports.ActionCategoryEntity = exports.ActionAuthorizationEntity = exports.WorkspaceSchema = exports.WorkspaceItemSchema = exports.WorkflowSchema = exports.WorkflowRunSchema = void 0;
13
- exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.flyway_schema_historyEntity = exports.FileEntity = exports.FileStorageProviderEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = exports.ExplorerNavigationItemEntity = exports.ErrorLogEntity = exports.EntitySettingEntity = exports.EntityRelationshipEntity = exports.EntityRelationshipDisplayComponentEntity = exports.EntityRecordDocumentEntity = exports.EntityPermissionEntity = exports.EntityFieldEntity = exports.EntityFieldValueEntity = exports.EntityDocumentEntity = exports.EntityDocumentTypeEntity = exports.EntityDocumentSettingEntity = exports.EntityDocumentRunEntity = exports.EntityCommunicationMessageTypeEntity = exports.EntityCommunicationFieldEntity = exports.EntityAIActionEntity = exports.EntityActionEntity = exports.EntityActionParamEntity = exports.EntityActionInvocationEntity = exports.EntityActionInvocationTypeEntity = exports.EntityActionFilterEntity = exports.EntityEntity = exports.EmployeeEntity = exports.EmployeeSkillEntity = exports.EmployeeRoleEntity = exports.EmployeeCompanyIntegrationEntity = exports.DuplicateRunEntity = exports.DuplicateRunDetailEntity = exports.DuplicateRunDetailMatchEntity = exports.DatasetEntity = exports.DatasetItemEntity = exports.DataContextEntity = exports.DataContextItemEntity = exports.DashboardEntity = exports.DashboardCategoryEntity = exports.ConversationEntity = exports.ConversationDetailEntity = exports.ContentTypeEntity = void 0;
14
- exports.VectorDatabaseEntity = exports.UserEntity = exports.UserViewEntity = exports.UserViewRunEntity = exports.UserViewRunDetailEntity = exports.UserViewCategoryEntity = exports.UserRoleEntity = exports.UserRecordLogEntity = exports.UserNotificationEntity = exports.UserFavoriteEntity = exports.UserApplicationEntity = exports.UserApplicationEntityEntity = exports.TemplateEntity = exports.TemplateParamEntity = exports.TemplateContentEntity = exports.TemplateContentTypeEntity = exports.TemplateCategoryEntity = exports.TagEntity = exports.TaggedItemEntity = exports.SkillEntity = exports.SchemaInfoEntity = exports.ScheduledActionEntity = exports.ScheduledActionParamEntity = exports.RowLevelSecurityFilterEntity = exports.RoleEntity = exports.ResourceTypeEntity = exports.ResourcePermissionEntity = exports.ResourceLinkEntity = exports.ReportEntity = exports.ReportSnapshotEntity = exports.ReportCategoryEntity = exports.RecordMergeLogEntity = exports.RecordMergeDeletionLogEntity = exports.RecordChangeEntity = exports.RecordChangeReplayRunEntity = exports.RecommendationEntity = exports.RecommendationRunEntity = exports.RecommendationProviderEntity = exports.RecommendationItemEntity = exports.QueueEntity = exports.QueueTypeEntity = exports.QueueTaskEntity = exports.QueryPermissionEntity = exports.QueryFieldEntity = exports.QueryEntityEntity = exports.QueryCategoryEntity = exports.QueryEntity = exports.OutputTriggerTypeEntity = exports.OutputFormatTypeEntity = exports.OutputDeliveryTypeEntity = void 0;
15
- exports.WorkspaceEntity = exports.WorkspaceItemEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.WorkflowEngineEntity = exports.VersionInstallationEntity = exports.VectorIndexEntity = void 0;
9
+ exports.ContentSourceTypeParamSchema = exports.ContentSourceParamSchema = exports.ContentProcessRunSchema = exports.ContentItemSchema = exports.ContentItemTagSchema = exports.ContentItemAttributeSchema = exports.ContentFileTypeSchema = exports.CompanyIntegrationSchema = exports.CompanyIntegrationRunSchema = exports.CompanyIntegrationRunDetailSchema = exports.CompanyIntegrationRunAPILogSchema = exports.CompanyIntegrationRecordMapSchema = exports.CompanySchema = exports.CommunicationRunSchema = exports.CommunicationProviderSchema = exports.CommunicationProviderMessageTypeSchema = exports.CommunicationLogSchema = exports.CommunicationBaseMessageTypeSchema = exports.AuthorizationSchema = exports.AuthorizationRoleSchema = exports.AuditLogSchema = exports.AuditLogTypeSchema = exports.ApplicationSchema = exports.ApplicationSettingSchema = exports.ApplicationEntitySchema = exports.AIAgentSchema = exports.AIAgentNoteSchema = exports.AIAgentNoteTypeSchema = exports.AIAgentModelSchema = exports.AIAgentLearningCycleSchema = exports.AIAgentActionSchema = exports.AIResultCacheSchema = exports.AIPromptSchema = exports.AIPromptTypeSchema = exports.AIPromptCategorySchema = exports.AIModelSchema = exports.AIModelTypeSchema = exports.AIModelActionSchema = exports.AIActionSchema = exports.ActionSchema = exports.ActionResultCodeSchema = exports.ActionParamSchema = exports.ActionLibrarySchema = exports.ActionFilterSchema = exports.ActionExecutionLogSchema = exports.ActionContextSchema = exports.ActionContextTypeSchema = exports.ActionCategorySchema = exports.ActionAuthorizationSchema = exports.loadModule = void 0;
10
+ exports.LibraryItemSchema = exports.LibrarySchema = exports.IntegrationSchema = exports.IntegrationURLFormatSchema = exports.flyway_schema_historySchema = exports.FileSchema = exports.FileStorageProviderSchema = exports.FileEntityRecordLinkSchema = exports.FileCategorySchema = exports.ExplorerNavigationItemSchema = exports.ErrorLogSchema = exports.EntitySettingSchema = exports.EntityRelationshipSchema = exports.EntityRelationshipDisplayComponentSchema = exports.EntityRecordDocumentSchema = exports.EntityPermissionSchema = exports.EntityFieldSchema = exports.EntityFieldValueSchema = exports.EntityDocumentSchema = exports.EntityDocumentTypeSchema = exports.EntityDocumentSettingSchema = exports.EntityDocumentRunSchema = exports.EntityCommunicationMessageTypeSchema = exports.EntityCommunicationFieldSchema = exports.EntityAIActionSchema = exports.EntityActionSchema = exports.EntityActionParamSchema = exports.EntityActionInvocationSchema = exports.EntityActionInvocationTypeSchema = exports.EntityActionFilterSchema = exports.EntitySchema = exports.EmployeeSchema = exports.EmployeeSkillSchema = exports.EmployeeRoleSchema = exports.EmployeeCompanyIntegrationSchema = exports.DuplicateRunSchema = exports.DuplicateRunDetailSchema = exports.DuplicateRunDetailMatchSchema = exports.DatasetSchema = exports.DatasetItemSchema = exports.DataContextSchema = exports.DataContextItemSchema = exports.DashboardSchema = exports.DashboardCategorySchema = exports.ConversationSchema = exports.ConversationDetailSchema = exports.ContentTypeSchema = exports.ContentTypeAttributeSchema = exports.ContentSourceSchema = exports.ContentSourceTypeSchema = void 0;
11
+ exports.UserViewRunSchema = exports.UserViewRunDetailSchema = exports.UserViewCategorySchema = exports.UserRoleSchema = exports.UserRecordLogSchema = exports.UserNotificationSchema = exports.UserFavoriteSchema = exports.UserApplicationSchema = exports.UserApplicationEntitySchema = exports.TemplateSchema = exports.TemplateParamSchema = exports.TemplateContentSchema = exports.TemplateContentTypeSchema = exports.TemplateCategorySchema = exports.TagSchema = exports.TaggedItemSchema = exports.SkillSchema = exports.SchemaInfoSchema = exports.ScheduledActionSchema = exports.ScheduledActionParamSchema = exports.RowLevelSecurityFilterSchema = exports.RoleSchema = exports.ResourceTypeSchema = exports.ResourcePermissionSchema = exports.ResourceLinkSchema = exports.ReportSchema = exports.ReportSnapshotSchema = exports.ReportCategorySchema = exports.RecordMergeLogSchema = exports.RecordMergeDeletionLogSchema = exports.RecordChangeSchema = exports.RecordChangeReplayRunSchema = exports.RecommendationSchema = exports.RecommendationRunSchema = exports.RecommendationProviderSchema = exports.RecommendationItemSchema = exports.QueueSchema = exports.QueueTypeSchema = exports.QueueTaskSchema = exports.QueryPermissionSchema = exports.QueryFieldSchema = exports.QueryEntitySchema = exports.QueryCategorySchema = exports.QuerySchema = exports.OutputTriggerTypeSchema = exports.OutputFormatTypeSchema = exports.OutputDeliveryTypeSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = void 0;
12
+ exports.CompanyIntegrationRunDetailEntity = exports.CompanyIntegrationRunAPILogEntity = exports.CompanyIntegrationRecordMapEntity = exports.CompanyEntity = exports.CommunicationRunEntity = exports.CommunicationProviderEntity = exports.CommunicationProviderMessageTypeEntity = exports.CommunicationLogEntity = exports.CommunicationBaseMessageTypeEntity = exports.AuthorizationEntity = exports.AuthorizationRoleEntity = exports.AuditLogEntity = exports.AuditLogTypeEntity = exports.ApplicationEntity = exports.ApplicationSettingEntity = exports.ApplicationEntityEntity = exports.AIAgentEntity = exports.AIAgentNoteEntity = exports.AIAgentNoteTypeEntity = exports.AIAgentModelEntity = exports.AIAgentLearningCycleEntity = exports.AIAgentActionEntity = exports.AIResultCacheEntity = exports.AIPromptEntity = exports.AIPromptTypeEntity = exports.AIPromptCategoryEntity = exports.AIModelEntity = exports.AIModelTypeEntity = exports.AIModelActionEntity = exports.AIActionEntity = exports.ActionEntity = exports.ActionResultCodeEntity = exports.ActionParamEntity = exports.ActionLibraryEntity = exports.ActionFilterEntity = exports.ActionExecutionLogEntity = exports.ActionContextEntity = exports.ActionContextTypeEntity = exports.ActionCategoryEntity = exports.ActionAuthorizationEntity = exports.WorkspaceSchema = exports.WorkspaceItemSchema = exports.WorkflowSchema = exports.WorkflowRunSchema = exports.WorkflowEngineSchema = exports.VersionInstallationSchema = exports.VectorIndexSchema = exports.VectorDatabaseSchema = exports.UserSchema = exports.UserViewSchema = void 0;
13
+ exports.ExplorerNavigationItemEntity = exports.ErrorLogEntity = exports.EntitySettingEntity = exports.EntityRelationshipEntity = exports.EntityRelationshipDisplayComponentEntity = exports.EntityRecordDocumentEntity = exports.EntityPermissionEntity = exports.EntityFieldEntity = exports.EntityFieldValueEntity = exports.EntityDocumentEntity = exports.EntityDocumentTypeEntity = exports.EntityDocumentSettingEntity = exports.EntityDocumentRunEntity = exports.EntityCommunicationMessageTypeEntity = exports.EntityCommunicationFieldEntity = exports.EntityAIActionEntity = exports.EntityActionEntity = exports.EntityActionParamEntity = exports.EntityActionInvocationEntity = exports.EntityActionInvocationTypeEntity = exports.EntityActionFilterEntity = exports.EntityEntity = exports.EmployeeEntity = exports.EmployeeSkillEntity = exports.EmployeeRoleEntity = exports.EmployeeCompanyIntegrationEntity = exports.DuplicateRunEntity = exports.DuplicateRunDetailEntity = exports.DuplicateRunDetailMatchEntity = exports.DatasetEntity = exports.DatasetItemEntity = exports.DataContextEntity = exports.DataContextItemEntity = exports.DashboardEntity = exports.DashboardCategoryEntity = exports.ConversationEntity = exports.ConversationDetailEntity = exports.ContentTypeEntity = exports.ContentTypeAttributeEntity = exports.ContentSourceEntity = exports.ContentSourceTypeEntity = exports.ContentSourceTypeParamEntity = exports.ContentSourceParamEntity = exports.ContentProcessRunEntity = exports.ContentItemEntity = exports.ContentItemTagEntity = exports.ContentItemAttributeEntity = exports.ContentFileTypeEntity = exports.CompanyIntegrationEntity = exports.CompanyIntegrationRunEntity = void 0;
14
+ exports.TemplateEntity = exports.TemplateParamEntity = exports.TemplateContentEntity = exports.TemplateContentTypeEntity = exports.TemplateCategoryEntity = exports.TagEntity = exports.TaggedItemEntity = exports.SkillEntity = exports.SchemaInfoEntity = exports.ScheduledActionEntity = exports.ScheduledActionParamEntity = exports.RowLevelSecurityFilterEntity = exports.RoleEntity = exports.ResourceTypeEntity = exports.ResourcePermissionEntity = exports.ResourceLinkEntity = exports.ReportEntity = exports.ReportSnapshotEntity = exports.ReportCategoryEntity = exports.RecordMergeLogEntity = exports.RecordMergeDeletionLogEntity = exports.RecordChangeEntity = exports.RecordChangeReplayRunEntity = exports.RecommendationEntity = exports.RecommendationRunEntity = exports.RecommendationProviderEntity = exports.RecommendationItemEntity = exports.QueueEntity = exports.QueueTypeEntity = exports.QueueTaskEntity = exports.QueryPermissionEntity = exports.QueryFieldEntity = exports.QueryEntityEntity = exports.QueryCategoryEntity = exports.QueryEntity = exports.OutputTriggerTypeEntity = exports.OutputFormatTypeEntity = exports.OutputDeliveryTypeEntity = exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.flyway_schema_historyEntity = exports.FileEntity = exports.FileStorageProviderEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = void 0;
15
+ exports.WorkspaceEntity = exports.WorkspaceItemEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.WorkflowEngineEntity = exports.VersionInstallationEntity = exports.VectorIndexEntity = exports.VectorDatabaseEntity = exports.UserEntity = exports.UserViewEntity = exports.UserViewRunEntity = exports.UserViewRunDetailEntity = exports.UserViewCategoryEntity = exports.UserRoleEntity = exports.UserRecordLogEntity = exports.UserNotificationEntity = exports.UserFavoriteEntity = exports.UserApplicationEntity = exports.UserApplicationEntityEntity = void 0;
16
16
  const core_1 = require("@memberjunction/core");
17
17
  const global_1 = require("@memberjunction/global");
18
18
  const zod_1 = require("zod");
@@ -988,6 +988,269 @@ exports.AIResultCacheSchema = zod_1.z.object({
988
988
  * * Display Name: AIModel
989
989
  * * SQL Data Type: nvarchar(50)`),
990
990
  });
991
+ /**
992
+ * zod schema definition for the entity AIAgent Actions
993
+ */
994
+ exports.AIAgentActionSchema = zod_1.z.object({
995
+ ID: zod_1.z.string().describe(`
996
+ * * Field Name: ID
997
+ * * Display Name: ID
998
+ * * SQL Data Type: uniqueidentifier
999
+ * * Default Value: newsequentialid()
1000
+ * * Description: The unique identifier for each AI agent-action mapping. Serves as the primary key.`),
1001
+ AgentID: zod_1.z.string().nullish().describe(`
1002
+ * * Field Name: AgentID
1003
+ * * Display Name: Agent ID
1004
+ * * SQL Data Type: uniqueidentifier
1005
+ * * Related Entity/Foreign Key: AIAgents (vwAIAgents.ID)
1006
+ * * Description: References the unique identifier of the associated AI agent from the AIAgent table.`),
1007
+ ActionID: zod_1.z.string().nullish().describe(`
1008
+ * * Field Name: ActionID
1009
+ * * Display Name: Action ID
1010
+ * * SQL Data Type: uniqueidentifier
1011
+ * * Related Entity/Foreign Key: Actions (vwActions.ID)
1012
+ * * Description: References the unique identifier of the associated action from the Action table.`),
1013
+ Status: zod_1.z.union([zod_1.z.literal('Pending'), zod_1.z.literal('Active'), zod_1.z.literal('Revoked')]).describe(`
1014
+ * * Field Name: Status
1015
+ * * Display Name: Status
1016
+ * * SQL Data Type: nvarchar(15)
1017
+ * * Default Value: Active
1018
+ * * Value List Type: List
1019
+ * * Possible Values
1020
+ * * Pending
1021
+ * * Active
1022
+ * * Revoked`),
1023
+ __mj_CreatedAt: zod_1.z.date().describe(`
1024
+ * * Field Name: __mj_CreatedAt
1025
+ * * Display Name: Created At
1026
+ * * SQL Data Type: datetimeoffset
1027
+ * * Default Value: getutcdate()`),
1028
+ __mj_UpdatedAt: zod_1.z.date().describe(`
1029
+ * * Field Name: __mj_UpdatedAt
1030
+ * * Display Name: Updated At
1031
+ * * SQL Data Type: datetimeoffset
1032
+ * * Default Value: getutcdate()`),
1033
+ Agent: zod_1.z.string().nullish().describe(`
1034
+ * * Field Name: Agent
1035
+ * * Display Name: Agent
1036
+ * * SQL Data Type: nvarchar(255)`),
1037
+ Action: zod_1.z.string().nullish().describe(`
1038
+ * * Field Name: Action
1039
+ * * Display Name: Action
1040
+ * * SQL Data Type: nvarchar(425)`),
1041
+ });
1042
+ /**
1043
+ * zod schema definition for the entity AIAgent Learning Cycles
1044
+ */
1045
+ exports.AIAgentLearningCycleSchema = zod_1.z.object({
1046
+ ID: zod_1.z.string().describe(`
1047
+ * * Field Name: ID
1048
+ * * Display Name: ID
1049
+ * * SQL Data Type: uniqueidentifier
1050
+ * * Default Value: newsequentialid()
1051
+ * * Description: Unique identifier for the learning cycle.`),
1052
+ AgentID: zod_1.z.string().describe(`
1053
+ * * Field Name: AgentID
1054
+ * * Display Name: Agent ID
1055
+ * * SQL Data Type: uniqueidentifier
1056
+ * * Related Entity/Foreign Key: AIAgents (vwAIAgents.ID)
1057
+ * * Description: Identifier for the AI Agent associated with this learning cycle.`),
1058
+ StartedAt: zod_1.z.date().describe(`
1059
+ * * Field Name: StartedAt
1060
+ * * Display Name: Started At
1061
+ * * SQL Data Type: datetimeoffset
1062
+ * * Default Value: getutcdate()
1063
+ * * Description: Timestamp indicating when the learning cycle started.`),
1064
+ EndedAt: zod_1.z.date().nullish().describe(`
1065
+ * * Field Name: EndedAt
1066
+ * * Display Name: Ended At
1067
+ * * SQL Data Type: datetimeoffset
1068
+ * * Description: Timestamp indicating when the learning cycle ended.`),
1069
+ Status: zod_1.z.union([zod_1.z.literal('In-Progress'), zod_1.z.literal('Complete'), zod_1.z.literal('Failed')]).describe(`
1070
+ * * Field Name: Status
1071
+ * * Display Name: Status
1072
+ * * SQL Data Type: nvarchar(20)
1073
+ * * Value List Type: List
1074
+ * * Possible Values
1075
+ * * In-Progress
1076
+ * * Complete
1077
+ * * Failed
1078
+ * * Description: Status of the learning cycle (In-Progress, Complete, or Failed).`),
1079
+ AgentSummary: zod_1.z.string().nullish().describe(`
1080
+ * * Field Name: AgentSummary
1081
+ * * Display Name: Agent Summary
1082
+ * * SQL Data Type: nvarchar(MAX)
1083
+ * * Description: Text summary provided by the agent about what it learned and any changes it requested for stored metadata.`),
1084
+ __mj_CreatedAt: zod_1.z.date().describe(`
1085
+ * * Field Name: __mj_CreatedAt
1086
+ * * Display Name: Created At
1087
+ * * SQL Data Type: datetimeoffset
1088
+ * * Default Value: getutcdate()`),
1089
+ __mj_UpdatedAt: zod_1.z.date().describe(`
1090
+ * * Field Name: __mj_UpdatedAt
1091
+ * * Display Name: Updated At
1092
+ * * SQL Data Type: datetimeoffset
1093
+ * * Default Value: getutcdate()`),
1094
+ Agent: zod_1.z.string().nullish().describe(`
1095
+ * * Field Name: Agent
1096
+ * * Display Name: Agent
1097
+ * * SQL Data Type: nvarchar(255)`),
1098
+ });
1099
+ /**
1100
+ * zod schema definition for the entity AIAgent Models
1101
+ */
1102
+ exports.AIAgentModelSchema = zod_1.z.object({
1103
+ ID: zod_1.z.string().describe(`
1104
+ * * Field Name: ID
1105
+ * * Display Name: ID
1106
+ * * SQL Data Type: uniqueidentifier
1107
+ * * Default Value: newsequentialid()
1108
+ * * Description: The unique identifier for each AI agent-model mapping. Serves as the primary key.`),
1109
+ AgentID: zod_1.z.string().nullish().describe(`
1110
+ * * Field Name: AgentID
1111
+ * * Display Name: Agent ID
1112
+ * * SQL Data Type: uniqueidentifier
1113
+ * * Related Entity/Foreign Key: AIAgents (vwAIAgents.ID)
1114
+ * * Description: References the unique identifier of the associated AI agent from AIAgent table.`),
1115
+ ModelID: zod_1.z.string().nullish().describe(`
1116
+ * * Field Name: ModelID
1117
+ * * Display Name: Model ID
1118
+ * * SQL Data Type: uniqueidentifier
1119
+ * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
1120
+ * * Description: The unique identifier of the associated AI model.`),
1121
+ Active: zod_1.z.boolean().nullish().describe(`
1122
+ * * Field Name: Active
1123
+ * * Display Name: Active
1124
+ * * SQL Data Type: bit`),
1125
+ Priority: zod_1.z.number().nullish().describe(`
1126
+ * * Field Name: Priority
1127
+ * * Display Name: Priority
1128
+ * * SQL Data Type: int
1129
+ * * Description: The priority level of the AI model for the agent, where higher values indicate higher priority.`),
1130
+ __mj_CreatedAt: zod_1.z.date().describe(`
1131
+ * * Field Name: __mj_CreatedAt
1132
+ * * Display Name: Created At
1133
+ * * SQL Data Type: datetimeoffset
1134
+ * * Default Value: getutcdate()`),
1135
+ __mj_UpdatedAt: zod_1.z.date().describe(`
1136
+ * * Field Name: __mj_UpdatedAt
1137
+ * * Display Name: Updated At
1138
+ * * SQL Data Type: datetimeoffset
1139
+ * * Default Value: getutcdate()`),
1140
+ Agent: zod_1.z.string().nullish().describe(`
1141
+ * * Field Name: Agent
1142
+ * * Display Name: Agent
1143
+ * * SQL Data Type: nvarchar(255)`),
1144
+ Model: zod_1.z.string().nullish().describe(`
1145
+ * * Field Name: Model
1146
+ * * Display Name: Model
1147
+ * * SQL Data Type: nvarchar(50)`),
1148
+ });
1149
+ /**
1150
+ * zod schema definition for the entity AIAgent Note Types
1151
+ */
1152
+ exports.AIAgentNoteTypeSchema = zod_1.z.object({
1153
+ ID: zod_1.z.string().describe(`
1154
+ * * Field Name: ID
1155
+ * * Display Name: ID
1156
+ * * SQL Data Type: uniqueidentifier
1157
+ * * Default Value: newsequentialid()`),
1158
+ Name: zod_1.z.string().nullish().describe(`
1159
+ * * Field Name: Name
1160
+ * * Display Name: Name
1161
+ * * SQL Data Type: nvarchar(255)`),
1162
+ Description: zod_1.z.string().nullish().describe(`
1163
+ * * Field Name: Description
1164
+ * * Display Name: Description
1165
+ * * SQL Data Type: nvarchar(MAX)`),
1166
+ __mj_CreatedAt: zod_1.z.date().describe(`
1167
+ * * Field Name: __mj_CreatedAt
1168
+ * * Display Name: Created At
1169
+ * * SQL Data Type: datetimeoffset
1170
+ * * Default Value: getutcdate()`),
1171
+ __mj_UpdatedAt: zod_1.z.date().describe(`
1172
+ * * Field Name: __mj_UpdatedAt
1173
+ * * Display Name: Updated At
1174
+ * * SQL Data Type: datetimeoffset
1175
+ * * Default Value: getutcdate()`),
1176
+ });
1177
+ /**
1178
+ * zod schema definition for the entity AIAgent Notes
1179
+ */
1180
+ exports.AIAgentNoteSchema = zod_1.z.object({
1181
+ ID: zod_1.z.string().describe(`
1182
+ * * Field Name: ID
1183
+ * * Display Name: ID
1184
+ * * SQL Data Type: uniqueidentifier
1185
+ * * Default Value: newsequentialid()`),
1186
+ AgentID: zod_1.z.string().nullish().describe(`
1187
+ * * Field Name: AgentID
1188
+ * * Display Name: Agent ID
1189
+ * * SQL Data Type: uniqueidentifier
1190
+ * * Related Entity/Foreign Key: AIAgents (vwAIAgents.ID)`),
1191
+ AgentNoteTypeID: zod_1.z.string().nullish().describe(`
1192
+ * * Field Name: AgentNoteTypeID
1193
+ * * Display Name: Agent Note Type ID
1194
+ * * SQL Data Type: uniqueidentifier
1195
+ * * Related Entity/Foreign Key: AIAgent Note Types (vwAIAgentNoteTypes.ID)`),
1196
+ Note: zod_1.z.string().nullish().describe(`
1197
+ * * Field Name: Note
1198
+ * * Display Name: Note
1199
+ * * SQL Data Type: nvarchar(MAX)`),
1200
+ __mj_CreatedAt: zod_1.z.date().describe(`
1201
+ * * Field Name: __mj_CreatedAt
1202
+ * * Display Name: Created At
1203
+ * * SQL Data Type: datetimeoffset
1204
+ * * Default Value: getutcdate()`),
1205
+ __mj_UpdatedAt: zod_1.z.date().describe(`
1206
+ * * Field Name: __mj_UpdatedAt
1207
+ * * Display Name: Updated At
1208
+ * * SQL Data Type: datetimeoffset
1209
+ * * Default Value: getutcdate()`),
1210
+ Agent: zod_1.z.string().nullish().describe(`
1211
+ * * Field Name: Agent
1212
+ * * Display Name: Agent
1213
+ * * SQL Data Type: nvarchar(255)`),
1214
+ AgentNoteType: zod_1.z.string().nullish().describe(`
1215
+ * * Field Name: AgentNoteType
1216
+ * * Display Name: Agent Note Type
1217
+ * * SQL Data Type: nvarchar(255)`),
1218
+ });
1219
+ /**
1220
+ * zod schema definition for the entity AIAgents
1221
+ */
1222
+ exports.AIAgentSchema = zod_1.z.object({
1223
+ ID: zod_1.z.string().describe(`
1224
+ * * Field Name: ID
1225
+ * * Display Name: ID
1226
+ * * SQL Data Type: uniqueidentifier
1227
+ * * Default Value: newsequentialid()
1228
+ * * Description: The unique identifier for each AI agent. Serves as the primary key.`),
1229
+ Name: zod_1.z.string().nullish().describe(`
1230
+ * * Field Name: Name
1231
+ * * Display Name: Name
1232
+ * * SQL Data Type: nvarchar(255)
1233
+ * * Description: The name of the AI agent.`),
1234
+ Description: zod_1.z.string().nullish().describe(`
1235
+ * * Field Name: Description
1236
+ * * Display Name: Description
1237
+ * * SQL Data Type: nvarchar(MAX)
1238
+ * * Description: A detailed description of the AI agent.`),
1239
+ LogoURL: zod_1.z.string().nullish().describe(`
1240
+ * * Field Name: LogoURL
1241
+ * * Display Name: Logo URL
1242
+ * * SQL Data Type: nvarchar(255)`),
1243
+ __mj_CreatedAt: zod_1.z.date().describe(`
1244
+ * * Field Name: __mj_CreatedAt
1245
+ * * Display Name: Created At
1246
+ * * SQL Data Type: datetimeoffset
1247
+ * * Default Value: getutcdate()`),
1248
+ __mj_UpdatedAt: zod_1.z.date().describe(`
1249
+ * * Field Name: __mj_UpdatedAt
1250
+ * * Display Name: Updated At
1251
+ * * SQL Data Type: datetimeoffset
1252
+ * * Default Value: getutcdate()`),
1253
+ });
991
1254
  /**
992
1255
  * zod schema definition for the entity Application Entities
993
1256
  */
@@ -5961,13 +6224,11 @@ exports.QueryEntitySchema = zod_1.z.object({
5961
6224
  Query: zod_1.z.string().describe(`
5962
6225
  * * Field Name: Query
5963
6226
  * * Display Name: Query
5964
- * * SQL Data Type: nvarchar(255)
5965
- * * Default Value: null`),
6227
+ * * SQL Data Type: nvarchar(255)`),
5966
6228
  Entity: zod_1.z.string().describe(`
5967
6229
  * * Field Name: Entity
5968
6230
  * * Display Name: Entity
5969
- * * SQL Data Type: nvarchar(255)
5970
- * * Default Value: null`),
6231
+ * * SQL Data Type: nvarchar(255)`),
5971
6232
  });
5972
6233
  /**
5973
6234
  * zod schema definition for the entity Query Fields
@@ -11374,6 +11635,675 @@ exports.AIResultCacheEntity = AIResultCacheEntity;
11374
11635
  exports.AIResultCacheEntity = AIResultCacheEntity = __decorate([
11375
11636
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Result Cache')
11376
11637
  ], AIResultCacheEntity);
11638
+ /**
11639
+ * AIAgent Actions - strongly typed entity sub-class
11640
+ * * Schema: __mj
11641
+ * * Base Table: AIAgentAction
11642
+ * * Base View: vwAIAgentActions
11643
+ * * @description Table to store the relationship between AI agents and actions.
11644
+ * * Primary Key: ID
11645
+ * @extends {BaseEntity}
11646
+ * @class
11647
+ * @public
11648
+ */
11649
+ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
11650
+ /**
11651
+ * Loads the AIAgent Actions record from the database
11652
+ * @param ID: string - primary key value to load the AIAgent Actions record.
11653
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
11654
+ * @returns {Promise<boolean>} - true if successful, false otherwise
11655
+ * @public
11656
+ * @async
11657
+ * @memberof AIAgentActionEntity
11658
+ * @method
11659
+ * @override
11660
+ */
11661
+ async Load(ID, EntityRelationshipsToLoad) {
11662
+ const compositeKey = new core_1.CompositeKey();
11663
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
11664
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
11665
+ }
11666
+ /**
11667
+ * * Field Name: ID
11668
+ * * Display Name: ID
11669
+ * * SQL Data Type: uniqueidentifier
11670
+ * * Default Value: newsequentialid()
11671
+ * * Description: The unique identifier for each AI agent-action mapping. Serves as the primary key.
11672
+ */
11673
+ get ID() {
11674
+ return this.Get('ID');
11675
+ }
11676
+ /**
11677
+ * * Field Name: AgentID
11678
+ * * Display Name: Agent ID
11679
+ * * SQL Data Type: uniqueidentifier
11680
+ * * Related Entity/Foreign Key: AIAgents (vwAIAgents.ID)
11681
+ * * Description: References the unique identifier of the associated AI agent from the AIAgent table.
11682
+ */
11683
+ get AgentID() {
11684
+ return this.Get('AgentID');
11685
+ }
11686
+ set AgentID(value) {
11687
+ this.Set('AgentID', value);
11688
+ }
11689
+ /**
11690
+ * * Field Name: ActionID
11691
+ * * Display Name: Action ID
11692
+ * * SQL Data Type: uniqueidentifier
11693
+ * * Related Entity/Foreign Key: Actions (vwActions.ID)
11694
+ * * Description: References the unique identifier of the associated action from the Action table.
11695
+ */
11696
+ get ActionID() {
11697
+ return this.Get('ActionID');
11698
+ }
11699
+ set ActionID(value) {
11700
+ this.Set('ActionID', value);
11701
+ }
11702
+ /**
11703
+ * * Field Name: Status
11704
+ * * Display Name: Status
11705
+ * * SQL Data Type: nvarchar(15)
11706
+ * * Default Value: Active
11707
+ * * Value List Type: List
11708
+ * * Possible Values
11709
+ * * Pending
11710
+ * * Active
11711
+ * * Revoked
11712
+ */
11713
+ get Status() {
11714
+ return this.Get('Status');
11715
+ }
11716
+ set Status(value) {
11717
+ this.Set('Status', value);
11718
+ }
11719
+ /**
11720
+ * * Field Name: __mj_CreatedAt
11721
+ * * Display Name: Created At
11722
+ * * SQL Data Type: datetimeoffset
11723
+ * * Default Value: getutcdate()
11724
+ */
11725
+ get __mj_CreatedAt() {
11726
+ return this.Get('__mj_CreatedAt');
11727
+ }
11728
+ /**
11729
+ * * Field Name: __mj_UpdatedAt
11730
+ * * Display Name: Updated At
11731
+ * * SQL Data Type: datetimeoffset
11732
+ * * Default Value: getutcdate()
11733
+ */
11734
+ get __mj_UpdatedAt() {
11735
+ return this.Get('__mj_UpdatedAt');
11736
+ }
11737
+ /**
11738
+ * * Field Name: Agent
11739
+ * * Display Name: Agent
11740
+ * * SQL Data Type: nvarchar(255)
11741
+ */
11742
+ get Agent() {
11743
+ return this.Get('Agent');
11744
+ }
11745
+ /**
11746
+ * * Field Name: Action
11747
+ * * Display Name: Action
11748
+ * * SQL Data Type: nvarchar(425)
11749
+ */
11750
+ get Action() {
11751
+ return this.Get('Action');
11752
+ }
11753
+ };
11754
+ exports.AIAgentActionEntity = AIAgentActionEntity;
11755
+ exports.AIAgentActionEntity = AIAgentActionEntity = __decorate([
11756
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'AIAgent Actions')
11757
+ ], AIAgentActionEntity);
11758
+ /**
11759
+ * AIAgent Learning Cycles - strongly typed entity sub-class
11760
+ * * Schema: __mj
11761
+ * * Base Table: AIAgentLearningCycle
11762
+ * * Base View: vwAIAgentLearningCycles
11763
+ * * @description Tracks the learning cycles for AI Agents where the Agent does offline reasoning, reflection, learning, and updates metadata.
11764
+ * * Primary Key: ID
11765
+ * @extends {BaseEntity}
11766
+ * @class
11767
+ * @public
11768
+ */
11769
+ let AIAgentLearningCycleEntity = class AIAgentLearningCycleEntity extends core_1.BaseEntity {
11770
+ /**
11771
+ * Loads the AIAgent Learning Cycles record from the database
11772
+ * @param ID: string - primary key value to load the AIAgent Learning Cycles record.
11773
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
11774
+ * @returns {Promise<boolean>} - true if successful, false otherwise
11775
+ * @public
11776
+ * @async
11777
+ * @memberof AIAgentLearningCycleEntity
11778
+ * @method
11779
+ * @override
11780
+ */
11781
+ async Load(ID, EntityRelationshipsToLoad) {
11782
+ const compositeKey = new core_1.CompositeKey();
11783
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
11784
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
11785
+ }
11786
+ /**
11787
+ * * Field Name: ID
11788
+ * * Display Name: ID
11789
+ * * SQL Data Type: uniqueidentifier
11790
+ * * Default Value: newsequentialid()
11791
+ * * Description: Unique identifier for the learning cycle.
11792
+ */
11793
+ get ID() {
11794
+ return this.Get('ID');
11795
+ }
11796
+ /**
11797
+ * * Field Name: AgentID
11798
+ * * Display Name: Agent ID
11799
+ * * SQL Data Type: uniqueidentifier
11800
+ * * Related Entity/Foreign Key: AIAgents (vwAIAgents.ID)
11801
+ * * Description: Identifier for the AI Agent associated with this learning cycle.
11802
+ */
11803
+ get AgentID() {
11804
+ return this.Get('AgentID');
11805
+ }
11806
+ set AgentID(value) {
11807
+ this.Set('AgentID', value);
11808
+ }
11809
+ /**
11810
+ * * Field Name: StartedAt
11811
+ * * Display Name: Started At
11812
+ * * SQL Data Type: datetimeoffset
11813
+ * * Default Value: getutcdate()
11814
+ * * Description: Timestamp indicating when the learning cycle started.
11815
+ */
11816
+ get StartedAt() {
11817
+ return this.Get('StartedAt');
11818
+ }
11819
+ set StartedAt(value) {
11820
+ this.Set('StartedAt', value);
11821
+ }
11822
+ /**
11823
+ * * Field Name: EndedAt
11824
+ * * Display Name: Ended At
11825
+ * * SQL Data Type: datetimeoffset
11826
+ * * Description: Timestamp indicating when the learning cycle ended.
11827
+ */
11828
+ get EndedAt() {
11829
+ return this.Get('EndedAt');
11830
+ }
11831
+ set EndedAt(value) {
11832
+ this.Set('EndedAt', value);
11833
+ }
11834
+ /**
11835
+ * * Field Name: Status
11836
+ * * Display Name: Status
11837
+ * * SQL Data Type: nvarchar(20)
11838
+ * * Value List Type: List
11839
+ * * Possible Values
11840
+ * * In-Progress
11841
+ * * Complete
11842
+ * * Failed
11843
+ * * Description: Status of the learning cycle (In-Progress, Complete, or Failed).
11844
+ */
11845
+ get Status() {
11846
+ return this.Get('Status');
11847
+ }
11848
+ set Status(value) {
11849
+ this.Set('Status', value);
11850
+ }
11851
+ /**
11852
+ * * Field Name: AgentSummary
11853
+ * * Display Name: Agent Summary
11854
+ * * SQL Data Type: nvarchar(MAX)
11855
+ * * Description: Text summary provided by the agent about what it learned and any changes it requested for stored metadata.
11856
+ */
11857
+ get AgentSummary() {
11858
+ return this.Get('AgentSummary');
11859
+ }
11860
+ set AgentSummary(value) {
11861
+ this.Set('AgentSummary', value);
11862
+ }
11863
+ /**
11864
+ * * Field Name: __mj_CreatedAt
11865
+ * * Display Name: Created At
11866
+ * * SQL Data Type: datetimeoffset
11867
+ * * Default Value: getutcdate()
11868
+ */
11869
+ get __mj_CreatedAt() {
11870
+ return this.Get('__mj_CreatedAt');
11871
+ }
11872
+ /**
11873
+ * * Field Name: __mj_UpdatedAt
11874
+ * * Display Name: Updated At
11875
+ * * SQL Data Type: datetimeoffset
11876
+ * * Default Value: getutcdate()
11877
+ */
11878
+ get __mj_UpdatedAt() {
11879
+ return this.Get('__mj_UpdatedAt');
11880
+ }
11881
+ /**
11882
+ * * Field Name: Agent
11883
+ * * Display Name: Agent
11884
+ * * SQL Data Type: nvarchar(255)
11885
+ */
11886
+ get Agent() {
11887
+ return this.Get('Agent');
11888
+ }
11889
+ };
11890
+ exports.AIAgentLearningCycleEntity = AIAgentLearningCycleEntity;
11891
+ exports.AIAgentLearningCycleEntity = AIAgentLearningCycleEntity = __decorate([
11892
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'AIAgent Learning Cycles')
11893
+ ], AIAgentLearningCycleEntity);
11894
+ /**
11895
+ * AIAgent Models - strongly typed entity sub-class
11896
+ * * Schema: __mj
11897
+ * * Base Table: AIAgentModel
11898
+ * * Base View: vwAIAgentModels
11899
+ * * @description Table to store the relationship between AI agents and AI models.
11900
+ * * Primary Key: ID
11901
+ * @extends {BaseEntity}
11902
+ * @class
11903
+ * @public
11904
+ */
11905
+ let AIAgentModelEntity = class AIAgentModelEntity extends core_1.BaseEntity {
11906
+ /**
11907
+ * Loads the AIAgent Models record from the database
11908
+ * @param ID: string - primary key value to load the AIAgent Models record.
11909
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
11910
+ * @returns {Promise<boolean>} - true if successful, false otherwise
11911
+ * @public
11912
+ * @async
11913
+ * @memberof AIAgentModelEntity
11914
+ * @method
11915
+ * @override
11916
+ */
11917
+ async Load(ID, EntityRelationshipsToLoad) {
11918
+ const compositeKey = new core_1.CompositeKey();
11919
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
11920
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
11921
+ }
11922
+ /**
11923
+ * * Field Name: ID
11924
+ * * Display Name: ID
11925
+ * * SQL Data Type: uniqueidentifier
11926
+ * * Default Value: newsequentialid()
11927
+ * * Description: The unique identifier for each AI agent-model mapping. Serves as the primary key.
11928
+ */
11929
+ get ID() {
11930
+ return this.Get('ID');
11931
+ }
11932
+ /**
11933
+ * * Field Name: AgentID
11934
+ * * Display Name: Agent ID
11935
+ * * SQL Data Type: uniqueidentifier
11936
+ * * Related Entity/Foreign Key: AIAgents (vwAIAgents.ID)
11937
+ * * Description: References the unique identifier of the associated AI agent from AIAgent table.
11938
+ */
11939
+ get AgentID() {
11940
+ return this.Get('AgentID');
11941
+ }
11942
+ set AgentID(value) {
11943
+ this.Set('AgentID', value);
11944
+ }
11945
+ /**
11946
+ * * Field Name: ModelID
11947
+ * * Display Name: Model ID
11948
+ * * SQL Data Type: uniqueidentifier
11949
+ * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
11950
+ * * Description: The unique identifier of the associated AI model.
11951
+ */
11952
+ get ModelID() {
11953
+ return this.Get('ModelID');
11954
+ }
11955
+ set ModelID(value) {
11956
+ this.Set('ModelID', value);
11957
+ }
11958
+ /**
11959
+ * * Field Name: Active
11960
+ * * Display Name: Active
11961
+ * * SQL Data Type: bit
11962
+ */
11963
+ get Active() {
11964
+ return this.Get('Active');
11965
+ }
11966
+ set Active(value) {
11967
+ this.Set('Active', value);
11968
+ }
11969
+ /**
11970
+ * * Field Name: Priority
11971
+ * * Display Name: Priority
11972
+ * * SQL Data Type: int
11973
+ * * Description: The priority level of the AI model for the agent, where higher values indicate higher priority.
11974
+ */
11975
+ get Priority() {
11976
+ return this.Get('Priority');
11977
+ }
11978
+ set Priority(value) {
11979
+ this.Set('Priority', value);
11980
+ }
11981
+ /**
11982
+ * * Field Name: __mj_CreatedAt
11983
+ * * Display Name: Created At
11984
+ * * SQL Data Type: datetimeoffset
11985
+ * * Default Value: getutcdate()
11986
+ */
11987
+ get __mj_CreatedAt() {
11988
+ return this.Get('__mj_CreatedAt');
11989
+ }
11990
+ /**
11991
+ * * Field Name: __mj_UpdatedAt
11992
+ * * Display Name: Updated At
11993
+ * * SQL Data Type: datetimeoffset
11994
+ * * Default Value: getutcdate()
11995
+ */
11996
+ get __mj_UpdatedAt() {
11997
+ return this.Get('__mj_UpdatedAt');
11998
+ }
11999
+ /**
12000
+ * * Field Name: Agent
12001
+ * * Display Name: Agent
12002
+ * * SQL Data Type: nvarchar(255)
12003
+ */
12004
+ get Agent() {
12005
+ return this.Get('Agent');
12006
+ }
12007
+ /**
12008
+ * * Field Name: Model
12009
+ * * Display Name: Model
12010
+ * * SQL Data Type: nvarchar(50)
12011
+ */
12012
+ get Model() {
12013
+ return this.Get('Model');
12014
+ }
12015
+ };
12016
+ exports.AIAgentModelEntity = AIAgentModelEntity;
12017
+ exports.AIAgentModelEntity = AIAgentModelEntity = __decorate([
12018
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'AIAgent Models')
12019
+ ], AIAgentModelEntity);
12020
+ /**
12021
+ * AIAgent Note Types - strongly typed entity sub-class
12022
+ * * Schema: __mj
12023
+ * * Base Table: AIAgentNoteType
12024
+ * * Base View: vwAIAgentNoteTypes
12025
+ * * Primary Key: ID
12026
+ * @extends {BaseEntity}
12027
+ * @class
12028
+ * @public
12029
+ */
12030
+ let AIAgentNoteTypeEntity = class AIAgentNoteTypeEntity extends core_1.BaseEntity {
12031
+ /**
12032
+ * Loads the AIAgent Note Types record from the database
12033
+ * @param ID: string - primary key value to load the AIAgent Note Types record.
12034
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
12035
+ * @returns {Promise<boolean>} - true if successful, false otherwise
12036
+ * @public
12037
+ * @async
12038
+ * @memberof AIAgentNoteTypeEntity
12039
+ * @method
12040
+ * @override
12041
+ */
12042
+ async Load(ID, EntityRelationshipsToLoad) {
12043
+ const compositeKey = new core_1.CompositeKey();
12044
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
12045
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
12046
+ }
12047
+ /**
12048
+ * * Field Name: ID
12049
+ * * Display Name: ID
12050
+ * * SQL Data Type: uniqueidentifier
12051
+ * * Default Value: newsequentialid()
12052
+ */
12053
+ get ID() {
12054
+ return this.Get('ID');
12055
+ }
12056
+ /**
12057
+ * * Field Name: Name
12058
+ * * Display Name: Name
12059
+ * * SQL Data Type: nvarchar(255)
12060
+ */
12061
+ get Name() {
12062
+ return this.Get('Name');
12063
+ }
12064
+ set Name(value) {
12065
+ this.Set('Name', value);
12066
+ }
12067
+ /**
12068
+ * * Field Name: Description
12069
+ * * Display Name: Description
12070
+ * * SQL Data Type: nvarchar(MAX)
12071
+ */
12072
+ get Description() {
12073
+ return this.Get('Description');
12074
+ }
12075
+ set Description(value) {
12076
+ this.Set('Description', value);
12077
+ }
12078
+ /**
12079
+ * * Field Name: __mj_CreatedAt
12080
+ * * Display Name: Created At
12081
+ * * SQL Data Type: datetimeoffset
12082
+ * * Default Value: getutcdate()
12083
+ */
12084
+ get __mj_CreatedAt() {
12085
+ return this.Get('__mj_CreatedAt');
12086
+ }
12087
+ /**
12088
+ * * Field Name: __mj_UpdatedAt
12089
+ * * Display Name: Updated At
12090
+ * * SQL Data Type: datetimeoffset
12091
+ * * Default Value: getutcdate()
12092
+ */
12093
+ get __mj_UpdatedAt() {
12094
+ return this.Get('__mj_UpdatedAt');
12095
+ }
12096
+ };
12097
+ exports.AIAgentNoteTypeEntity = AIAgentNoteTypeEntity;
12098
+ exports.AIAgentNoteTypeEntity = AIAgentNoteTypeEntity = __decorate([
12099
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'AIAgent Note Types')
12100
+ ], AIAgentNoteTypeEntity);
12101
+ /**
12102
+ * AIAgent Notes - strongly typed entity sub-class
12103
+ * * Schema: __mj
12104
+ * * Base Table: AIAgentNote
12105
+ * * Base View: vwAIAgentNotes
12106
+ * * Primary Key: ID
12107
+ * @extends {BaseEntity}
12108
+ * @class
12109
+ * @public
12110
+ */
12111
+ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
12112
+ /**
12113
+ * Loads the AIAgent Notes record from the database
12114
+ * @param ID: string - primary key value to load the AIAgent Notes record.
12115
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
12116
+ * @returns {Promise<boolean>} - true if successful, false otherwise
12117
+ * @public
12118
+ * @async
12119
+ * @memberof AIAgentNoteEntity
12120
+ * @method
12121
+ * @override
12122
+ */
12123
+ async Load(ID, EntityRelationshipsToLoad) {
12124
+ const compositeKey = new core_1.CompositeKey();
12125
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
12126
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
12127
+ }
12128
+ /**
12129
+ * * Field Name: ID
12130
+ * * Display Name: ID
12131
+ * * SQL Data Type: uniqueidentifier
12132
+ * * Default Value: newsequentialid()
12133
+ */
12134
+ get ID() {
12135
+ return this.Get('ID');
12136
+ }
12137
+ /**
12138
+ * * Field Name: AgentID
12139
+ * * Display Name: Agent ID
12140
+ * * SQL Data Type: uniqueidentifier
12141
+ * * Related Entity/Foreign Key: AIAgents (vwAIAgents.ID)
12142
+ */
12143
+ get AgentID() {
12144
+ return this.Get('AgentID');
12145
+ }
12146
+ set AgentID(value) {
12147
+ this.Set('AgentID', value);
12148
+ }
12149
+ /**
12150
+ * * Field Name: AgentNoteTypeID
12151
+ * * Display Name: Agent Note Type ID
12152
+ * * SQL Data Type: uniqueidentifier
12153
+ * * Related Entity/Foreign Key: AIAgent Note Types (vwAIAgentNoteTypes.ID)
12154
+ */
12155
+ get AgentNoteTypeID() {
12156
+ return this.Get('AgentNoteTypeID');
12157
+ }
12158
+ set AgentNoteTypeID(value) {
12159
+ this.Set('AgentNoteTypeID', value);
12160
+ }
12161
+ /**
12162
+ * * Field Name: Note
12163
+ * * Display Name: Note
12164
+ * * SQL Data Type: nvarchar(MAX)
12165
+ */
12166
+ get Note() {
12167
+ return this.Get('Note');
12168
+ }
12169
+ set Note(value) {
12170
+ this.Set('Note', value);
12171
+ }
12172
+ /**
12173
+ * * Field Name: __mj_CreatedAt
12174
+ * * Display Name: Created At
12175
+ * * SQL Data Type: datetimeoffset
12176
+ * * Default Value: getutcdate()
12177
+ */
12178
+ get __mj_CreatedAt() {
12179
+ return this.Get('__mj_CreatedAt');
12180
+ }
12181
+ /**
12182
+ * * Field Name: __mj_UpdatedAt
12183
+ * * Display Name: Updated At
12184
+ * * SQL Data Type: datetimeoffset
12185
+ * * Default Value: getutcdate()
12186
+ */
12187
+ get __mj_UpdatedAt() {
12188
+ return this.Get('__mj_UpdatedAt');
12189
+ }
12190
+ /**
12191
+ * * Field Name: Agent
12192
+ * * Display Name: Agent
12193
+ * * SQL Data Type: nvarchar(255)
12194
+ */
12195
+ get Agent() {
12196
+ return this.Get('Agent');
12197
+ }
12198
+ /**
12199
+ * * Field Name: AgentNoteType
12200
+ * * Display Name: Agent Note Type
12201
+ * * SQL Data Type: nvarchar(255)
12202
+ */
12203
+ get AgentNoteType() {
12204
+ return this.Get('AgentNoteType');
12205
+ }
12206
+ };
12207
+ exports.AIAgentNoteEntity = AIAgentNoteEntity;
12208
+ exports.AIAgentNoteEntity = AIAgentNoteEntity = __decorate([
12209
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'AIAgent Notes')
12210
+ ], AIAgentNoteEntity);
12211
+ /**
12212
+ * AIAgents - strongly typed entity sub-class
12213
+ * * Schema: __mj
12214
+ * * Base Table: AIAgent
12215
+ * * Base View: vwAIAgents
12216
+ * * @description Table to store information about AI agents.
12217
+ * * Primary Key: ID
12218
+ * @extends {BaseEntity}
12219
+ * @class
12220
+ * @public
12221
+ */
12222
+ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
12223
+ /**
12224
+ * Loads the AIAgents record from the database
12225
+ * @param ID: string - primary key value to load the AIAgents record.
12226
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
12227
+ * @returns {Promise<boolean>} - true if successful, false otherwise
12228
+ * @public
12229
+ * @async
12230
+ * @memberof AIAgentEntity
12231
+ * @method
12232
+ * @override
12233
+ */
12234
+ async Load(ID, EntityRelationshipsToLoad) {
12235
+ const compositeKey = new core_1.CompositeKey();
12236
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
12237
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
12238
+ }
12239
+ /**
12240
+ * * Field Name: ID
12241
+ * * Display Name: ID
12242
+ * * SQL Data Type: uniqueidentifier
12243
+ * * Default Value: newsequentialid()
12244
+ * * Description: The unique identifier for each AI agent. Serves as the primary key.
12245
+ */
12246
+ get ID() {
12247
+ return this.Get('ID');
12248
+ }
12249
+ /**
12250
+ * * Field Name: Name
12251
+ * * Display Name: Name
12252
+ * * SQL Data Type: nvarchar(255)
12253
+ * * Description: The name of the AI agent.
12254
+ */
12255
+ get Name() {
12256
+ return this.Get('Name');
12257
+ }
12258
+ set Name(value) {
12259
+ this.Set('Name', value);
12260
+ }
12261
+ /**
12262
+ * * Field Name: Description
12263
+ * * Display Name: Description
12264
+ * * SQL Data Type: nvarchar(MAX)
12265
+ * * Description: A detailed description of the AI agent.
12266
+ */
12267
+ get Description() {
12268
+ return this.Get('Description');
12269
+ }
12270
+ set Description(value) {
12271
+ this.Set('Description', value);
12272
+ }
12273
+ /**
12274
+ * * Field Name: LogoURL
12275
+ * * Display Name: Logo URL
12276
+ * * SQL Data Type: nvarchar(255)
12277
+ */
12278
+ get LogoURL() {
12279
+ return this.Get('LogoURL');
12280
+ }
12281
+ set LogoURL(value) {
12282
+ this.Set('LogoURL', value);
12283
+ }
12284
+ /**
12285
+ * * Field Name: __mj_CreatedAt
12286
+ * * Display Name: Created At
12287
+ * * SQL Data Type: datetimeoffset
12288
+ * * Default Value: getutcdate()
12289
+ */
12290
+ get __mj_CreatedAt() {
12291
+ return this.Get('__mj_CreatedAt');
12292
+ }
12293
+ /**
12294
+ * * Field Name: __mj_UpdatedAt
12295
+ * * Display Name: Updated At
12296
+ * * SQL Data Type: datetimeoffset
12297
+ * * Default Value: getutcdate()
12298
+ */
12299
+ get __mj_UpdatedAt() {
12300
+ return this.Get('__mj_UpdatedAt');
12301
+ }
12302
+ };
12303
+ exports.AIAgentEntity = AIAgentEntity;
12304
+ exports.AIAgentEntity = AIAgentEntity = __decorate([
12305
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'AIAgents')
12306
+ ], AIAgentEntity);
11377
12307
  /**
11378
12308
  * Application Entities - strongly typed entity sub-class
11379
12309
  * * Schema: __mj
@@ -24511,7 +25441,6 @@ let QueryEntityEntity = class QueryEntityEntity extends core_1.BaseEntity {
24511
25441
  * * Field Name: Query
24512
25442
  * * Display Name: Query
24513
25443
  * * SQL Data Type: nvarchar(255)
24514
- * * Default Value: null
24515
25444
  */
24516
25445
  get Query() {
24517
25446
  return this.Get('Query');
@@ -24520,7 +25449,6 @@ let QueryEntityEntity = class QueryEntityEntity extends core_1.BaseEntity {
24520
25449
  * * Field Name: Entity
24521
25450
  * * Display Name: Entity
24522
25451
  * * SQL Data Type: nvarchar(255)
24523
- * * Default Value: null
24524
25452
  */
24525
25453
  get Entity() {
24526
25454
  return this.Get('Entity');