@memberjunction/core-entities 2.108.0 → 2.110.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.
@@ -8,13 +8,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  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.AIAgentSchema = exports.AIAgentRequestSchema = exports.AIAgentNoteSchema = exports.AIAgentNoteTypeSchema = exports.AIAgentModelSchema = exports.AIAgentLearningCycleSchema = exports.AIAgentActionSchema = 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
10
  exports.IntegrationSchema = exports.IntegrationURLFormatSchema = exports.GeneratedCodeSchema = exports.GeneratedCodeCategorySchema = 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 = exports.ContentSourceTypeParamSchema = void 0;
11
- exports.ReportUserStateSchema = exports.RecordLinkSchema = exports.QueryParameterSchema = exports.PublicLinkSchema = exports.ProjectSchema = exports.EnvironmentSchema = exports.DashboardUserStateSchema = exports.DashboardUserPreferenceSchema = exports.ConversationDetailArtifactSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = exports.ConversationArtifactPermissionSchema = exports.ComponentSchema = exports.ComponentRegistrySchema = exports.ComponentLibraryLinkSchema = exports.ComponentLibrarySchema = exports.ComponentDependencySchema = exports.CollectionSchema = exports.CollectionPermissionSchema = exports.CollectionArtifactSchema = exports.ArtifactSchema = exports.ArtifactVersionSchema = exports.ArtifactVersionAttributeSchema = exports.ArtifactTypeSchema = exports.AIVendorSchema = exports.AIVendorTypeSchema = exports.AIVendorTypeDefinitionSchema = exports.AIPromptRunSchema = exports.AIPromptModelSchema = exports.AIModelVendorSchema = exports.AIModelPriceUnitTypeSchema = exports.AIModelPriceTypeSchema = exports.AIModelCostSchema = exports.AIConfigurationSchema = exports.AIConfigurationParamSchema = exports.AIAgentTypeSchema = exports.AIAgentStepSchema = exports.AIAgentStepPathSchema = exports.AIAgentRunSchema = exports.AIAgentRunStepSchema = exports.AIAgentRelationshipSchema = exports.AIAgentPromptSchema = exports.AIAgentPermissionSchema = exports.AIAgentArtifactTypeSchema = exports.AccessControlRuleSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
12
- 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.TaskSchema = exports.TaskTypeSchema = exports.TaskDependencySchema = exports.ScheduledJobSchema = exports.ScheduledJobTypeSchema = exports.ScheduledJobRunSchema = exports.ReportVersionSchema = void 0;
13
- 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.AIAgentEntity = exports.AIAgentRequestEntity = exports.AIAgentNoteEntity = exports.AIAgentNoteTypeEntity = exports.AIAgentModelEntity = exports.AIAgentLearningCycleEntity = exports.AIAgentActionEntity = 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 = exports.UserViewRunSchema = exports.UserViewRunDetailSchema = exports.UserViewCategorySchema = exports.UserRoleSchema = void 0;
14
- 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 = exports.CompanyIntegrationRunDetailEntity = exports.CompanyIntegrationRunAPILogEntity = exports.CompanyIntegrationRecordMapEntity = exports.CompanyEntity = exports.CommunicationRunEntity = void 0;
15
- exports.ComponentRegistryEntity = exports.ComponentLibraryLinkEntity = exports.ComponentLibraryEntity = exports.ComponentDependencyEntity = exports.CollectionEntity = exports.CollectionPermissionEntity = exports.CollectionArtifactEntity = exports.ArtifactEntity = exports.ArtifactVersionEntity = exports.ArtifactVersionAttributeEntity = exports.ArtifactTypeEntity = exports.AIVendorEntity = exports.AIVendorTypeEntity = exports.AIVendorTypeDefinitionEntity = exports.AIPromptRunEntity = exports.AIPromptModelEntity = exports.AIModelVendorEntity = exports.AIModelPriceUnitTypeEntity = exports.AIModelPriceTypeEntity = exports.AIModelCostEntity = exports.AIConfigurationEntity = exports.AIConfigurationParamEntity = exports.AIAgentTypeEntity = exports.AIAgentStepEntity = exports.AIAgentStepPathEntity = exports.AIAgentRunEntity = exports.AIAgentRunStepEntity = exports.AIAgentRelationshipEntity = exports.AIAgentPromptEntity = exports.AIAgentPermissionEntity = exports.AIAgentArtifactTypeEntity = exports.AccessControlRuleEntity = exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.GeneratedCodeEntity = exports.GeneratedCodeCategoryEntity = exports.FileEntity = exports.FileStorageProviderEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = exports.ExplorerNavigationItemEntity = exports.ErrorLogEntity = exports.EntitySettingEntity = exports.EntityRelationshipEntity = exports.EntityRelationshipDisplayComponentEntity = void 0;
16
- 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.TaskEntity = exports.TaskTypeEntity = exports.TaskDependencyEntity = exports.ScheduledJobEntity = exports.ScheduledJobTypeEntity = exports.ScheduledJobRunEntity = exports.ReportVersionEntity = exports.ReportUserStateEntity = exports.RecordLinkEntity = exports.QueryParameterEntity = exports.PublicLinkEntity = exports.ProjectEntity = exports.EnvironmentEntity = exports.DashboardUserStateEntity = exports.DashboardUserPreferenceEntity = exports.ConversationDetailArtifactEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = exports.ConversationArtifactPermissionEntity = exports.ComponentEntity = void 0;
17
- 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 = exports.TemplateEntity = exports.TemplateParamEntity = exports.TemplateContentEntity = exports.TemplateContentTypeEntity = exports.TemplateCategoryEntity = exports.TagEntity = exports.TaggedItemEntity = exports.SkillEntity = void 0;
11
+ exports.QueryParameterSchema = exports.PublicLinkSchema = exports.ProjectSchema = exports.EnvironmentSchema = exports.DashboardUserStateSchema = exports.DashboardUserPreferenceSchema = exports.ConversationDetailArtifactSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = exports.ConversationArtifactPermissionSchema = exports.ComponentSchema = exports.ComponentRegistrySchema = exports.ComponentLibraryLinkSchema = exports.ComponentLibrarySchema = exports.ComponentDependencySchema = exports.CollectionSchema = exports.CollectionPermissionSchema = exports.CollectionArtifactSchema = exports.ArtifactSchema = exports.ArtifactVersionSchema = exports.ArtifactVersionAttributeSchema = exports.ArtifactTypeSchema = exports.ArtifactPermissionSchema = exports.AIVendorSchema = exports.AIVendorTypeSchema = exports.AIVendorTypeDefinitionSchema = exports.AIPromptRunSchema = exports.AIPromptModelSchema = exports.AIModelVendorSchema = exports.AIModelPriceUnitTypeSchema = exports.AIModelPriceTypeSchema = exports.AIModelCostSchema = exports.AIConfigurationSchema = exports.AIConfigurationParamSchema = exports.AIAgentTypeSchema = exports.AIAgentStepSchema = exports.AIAgentStepPathSchema = exports.AIAgentRunSchema = exports.AIAgentRunStepSchema = exports.AIAgentRelationshipSchema = exports.AIAgentPromptSchema = exports.AIAgentPermissionSchema = exports.AIAgentDataSourceSchema = exports.AIAgentArtifactTypeSchema = exports.AccessControlRuleSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
12
+ 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.TaskSchema = exports.TaskTypeSchema = exports.TaskDependencySchema = exports.ScheduledJobSchema = exports.ScheduledJobTypeSchema = exports.ScheduledJobRunSchema = exports.ReportVersionSchema = exports.ReportUserStateSchema = exports.RecordLinkSchema = void 0;
13
+ 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.AIAgentEntity = exports.AIAgentRequestEntity = exports.AIAgentNoteEntity = exports.AIAgentNoteTypeEntity = exports.AIAgentModelEntity = exports.AIAgentLearningCycleEntity = exports.AIAgentActionEntity = 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 = exports.UserViewRunSchema = exports.UserViewRunDetailSchema = exports.UserViewCategorySchema = exports.UserRoleSchema = exports.UserRecordLogSchema = exports.UserNotificationSchema = void 0;
14
+ 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 = exports.CompanyIntegrationRunDetailEntity = exports.CompanyIntegrationRunAPILogEntity = exports.CompanyIntegrationRecordMapEntity = exports.CompanyEntity = exports.CommunicationRunEntity = exports.CommunicationProviderEntity = exports.CommunicationProviderMessageTypeEntity = void 0;
15
+ exports.CollectionEntity = exports.CollectionPermissionEntity = exports.CollectionArtifactEntity = exports.ArtifactEntity = exports.ArtifactVersionEntity = exports.ArtifactVersionAttributeEntity = exports.ArtifactTypeEntity = exports.ArtifactPermissionEntity = exports.AIVendorEntity = exports.AIVendorTypeEntity = exports.AIVendorTypeDefinitionEntity = exports.AIPromptRunEntity = exports.AIPromptModelEntity = exports.AIModelVendorEntity = exports.AIModelPriceUnitTypeEntity = exports.AIModelPriceTypeEntity = exports.AIModelCostEntity = exports.AIConfigurationEntity = exports.AIConfigurationParamEntity = exports.AIAgentTypeEntity = exports.AIAgentStepEntity = exports.AIAgentStepPathEntity = exports.AIAgentRunEntity = exports.AIAgentRunStepEntity = exports.AIAgentRelationshipEntity = exports.AIAgentPromptEntity = exports.AIAgentPermissionEntity = exports.AIAgentDataSourceEntity = exports.AIAgentArtifactTypeEntity = exports.AccessControlRuleEntity = exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.GeneratedCodeEntity = exports.GeneratedCodeCategoryEntity = exports.FileEntity = exports.FileStorageProviderEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = exports.ExplorerNavigationItemEntity = exports.ErrorLogEntity = exports.EntitySettingEntity = exports.EntityRelationshipEntity = exports.EntityRelationshipDisplayComponentEntity = exports.EntityRecordDocumentEntity = exports.EntityPermissionEntity = void 0;
16
+ 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.TaskEntity = exports.TaskTypeEntity = exports.TaskDependencyEntity = exports.ScheduledJobEntity = exports.ScheduledJobTypeEntity = exports.ScheduledJobRunEntity = exports.ReportVersionEntity = exports.ReportUserStateEntity = exports.RecordLinkEntity = exports.QueryParameterEntity = exports.PublicLinkEntity = exports.ProjectEntity = exports.EnvironmentEntity = exports.DashboardUserStateEntity = exports.DashboardUserPreferenceEntity = exports.ConversationDetailArtifactEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = exports.ConversationArtifactPermissionEntity = exports.ComponentEntity = exports.ComponentRegistryEntity = exports.ComponentLibraryLinkEntity = exports.ComponentLibraryEntity = exports.ComponentDependencyEntity = void 0;
17
+ 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 = exports.TemplateEntity = exports.TemplateParamEntity = exports.TemplateContentEntity = exports.TemplateContentTypeEntity = exports.TemplateCategoryEntity = exports.TagEntity = exports.TaggedItemEntity = exports.SkillEntity = exports.SchemaInfoEntity = exports.ScheduledActionEntity = exports.ScheduledActionParamEntity = exports.RowLevelSecurityFilterEntity = void 0;
18
18
  const core_1 = require("@memberjunction/core");
19
19
  const global_1 = require("@memberjunction/global");
20
20
  const zod_1 = require("zod");
@@ -95,8 +95,8 @@ exports.ActionCategorySchema = zod_1.z.object({
95
95
  * * Default Value: Pending
96
96
  * * Value List Type: List
97
97
  * * Possible Values
98
- * * Disabled
99
98
  * * Active
99
+ * * Disabled
100
100
  * * Pending
101
101
  * * Description: Status of the action category (Pending, Active, Disabled).`),
102
102
  __mj_CreatedAt: zod_1.z.date().describe(`
@@ -174,9 +174,9 @@ exports.ActionContextSchema = zod_1.z.object({
174
174
  * * Default Value: Pending
175
175
  * * Value List Type: List
176
176
  * * Possible Values
177
- * * Pending
178
177
  * * Active
179
178
  * * Disabled
179
+ * * Pending
180
180
  * * Description: Status of the action context (Pending, Active, Disabled).`),
181
181
  __mj_CreatedAt: zod_1.z.date().describe(`
182
182
  * * Field Name: __mj_CreatedAt
@@ -378,9 +378,9 @@ exports.ActionParamSchema = zod_1.z.object({
378
378
  * * SQL Data Type: nchar(10)
379
379
  * * Value List Type: List
380
380
  * * Possible Values
381
+ * * Both
381
382
  * * Input
382
383
  * * Output
383
- * * Both
384
384
  * * Description: Specifies whether this parameter is used for Input, Output, or Both directions in the action execution flow.`),
385
385
  ValueType: zod_1.z.union([zod_1.z.literal('BaseEntity Sub-Class'), zod_1.z.literal('BaseEntity Sub-Class'), zod_1.z.literal('Other'), zod_1.z.literal('Other'), zod_1.z.literal('Scalar'), zod_1.z.literal('Scalar'), zod_1.z.literal('Simple Object'), zod_1.z.literal('Simple Object')]).describe(`
386
386
  * * Field Name: ValueType
@@ -388,13 +388,13 @@ exports.ActionParamSchema = zod_1.z.object({
388
388
  * * SQL Data Type: nvarchar(30)
389
389
  * * Value List Type: List
390
390
  * * Possible Values
391
- * * Other
392
- * * Simple Object
393
391
  * * BaseEntity Sub-Class
394
- * * Scalar
395
- * * Scalar
396
392
  * * BaseEntity Sub-Class
397
393
  * * Other
394
+ * * Other
395
+ * * Scalar
396
+ * * Scalar
397
+ * * Simple Object
398
398
  * * Simple Object
399
399
  * * Description: Tracks the basic value type of the parameter, additional information can be provided in the Description field`),
400
400
  IsArray: zod_1.z.boolean().describe(`
@@ -533,9 +533,9 @@ exports.ActionSchema = zod_1.z.object({
533
533
  * * Default Value: Pending
534
534
  * * Value List Type: List
535
535
  * * Possible Values
536
- * * Rejected
537
536
  * * Approved
538
537
  * * Pending
538
+ * * Rejected
539
539
  * * Description: An action won't be usable until the code is approved.`),
540
540
  CodeApprovalComments: zod_1.z.string().nullable().describe(`
541
541
  * * Field Name: CodeApprovalComments
@@ -576,8 +576,8 @@ exports.ActionSchema = zod_1.z.object({
576
576
  * * Default Value: Pending
577
577
  * * Value List Type: List
578
578
  * * Possible Values
579
- * * Disabled
580
579
  * * Active
580
+ * * Disabled
581
581
  * * Pending
582
582
  * * Description: Status of the action (Pending, Active, Disabled).`),
583
583
  __mj_CreatedAt: zod_1.z.date().describe(`
@@ -710,8 +710,8 @@ exports.AIAgentActionSchema = zod_1.z.object({
710
710
  * * Default Value: Active
711
711
  * * Value List Type: List
712
712
  * * Possible Values
713
- * * Pending
714
713
  * * Active
714
+ * * Pending
715
715
  * * Revoked`),
716
716
  __mj_CreatedAt: zod_1.z.date().describe(`
717
717
  * * Field Name: __mj_CreatedAt
@@ -745,9 +745,9 @@ exports.AIAgentActionSchema = zod_1.z.object({
745
745
  * * Default Value: None
746
746
  * * Value List Type: List
747
747
  * * Possible Values
748
- * * Remove
749
- * * None
750
748
  * * Compact
749
+ * * None
750
+ * * Remove
751
751
  * * Description: How to handle expired action results: None (no expiration, default), Remove (delete message entirely), Compact (reduce size via CompactMode while preserving key information).`),
752
752
  CompactMode: zod_1.z.union([zod_1.z.literal('AI Summary'), zod_1.z.literal('First N Chars')]).nullable().describe(`
753
753
  * * Field Name: CompactMode
@@ -815,9 +815,9 @@ exports.AIAgentLearningCycleSchema = zod_1.z.object({
815
815
  * * SQL Data Type: nvarchar(20)
816
816
  * * Value List Type: List
817
817
  * * Possible Values
818
- * * In-Progress
819
- * * Failed
820
818
  * * Complete
819
+ * * Failed
820
+ * * In-Progress
821
821
  * * Description: Status of the learning cycle (In-Progress, Complete, or Failed).`),
822
822
  AgentSummary: zod_1.z.string().nullable().describe(`
823
823
  * * Field Name: AgentSummary
@@ -958,8 +958,8 @@ exports.AIAgentNoteSchema = zod_1.z.object({
958
958
  * * SQL Data Type: nvarchar(20)
959
959
  * * Value List Type: List
960
960
  * * Possible Values
961
- * * User
962
961
  * * Global
962
+ * * User
963
963
  * * Description: Indicates the type of note, either User-specific or Global.`),
964
964
  UserID: zod_1.z.string().nullable().describe(`
965
965
  * * Field Name: UserID
@@ -1013,10 +1013,10 @@ exports.AIAgentRequestSchema = zod_1.z.object({
1013
1013
  * * SQL Data Type: nvarchar(20)
1014
1014
  * * Value List Type: List
1015
1015
  * * Possible Values
1016
- * * Canceled
1017
1016
  * * Approved
1018
- * * Requested
1017
+ * * Canceled
1019
1018
  * * Rejected
1019
+ * * Requested
1020
1020
  * * Description: Current status of the request (Requested, Approved, Rejected, Canceled).`),
1021
1021
  Request: zod_1.z.string().describe(`
1022
1022
  * * Field Name: Request
@@ -1157,10 +1157,16 @@ exports.AIAgentSchema = zod_1.z.object({
1157
1157
  * * SQL Data Type: uniqueidentifier
1158
1158
  * * Related Entity/Foreign Key: MJ: AI Agent Types (vwAIAgentTypes.ID)
1159
1159
  * * Description: Reference to the AIAgentType that defines the category and system-level behavior for this agent. Cannot be null.`),
1160
- Status: zod_1.z.string().nullable().describe(`
1160
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Disabled'), zod_1.z.literal('Pending')]).describe(`
1161
1161
  * * Field Name: Status
1162
1162
  * * Display Name: Status
1163
1163
  * * SQL Data Type: nvarchar(20)
1164
+ * * Default Value: Pending
1165
+ * * Value List Type: List
1166
+ * * Possible Values
1167
+ * * Active
1168
+ * * Disabled
1169
+ * * Pending
1164
1170
  * * Description: Current status of the AI agent. Active agents can be executed, Disabled agents are inactive, and Pending agents are awaiting configuration or approval. Allowed values: Active, Disabled, Pending.`),
1165
1171
  DriverClass: zod_1.z.string().nullable().describe(`
1166
1172
  * * Field Name: DriverClass
@@ -1280,8 +1286,8 @@ if this limit is exceeded.`),
1280
1286
  * * Default Value: Fail
1281
1287
  * * Value List Type: List
1282
1288
  * * Possible Values
1283
- * * Warn
1284
1289
  * * Fail
1290
+ * * Warn
1285
1291
  * * Description: Determines how to handle StartingPayloadValidation failures. Fail = reject invalid input, Warn = log warning but proceed.`),
1286
1292
  DefaultPromptEffortLevel: zod_1.z.number().nullable().describe(`
1287
1293
  * * Field Name: DefaultPromptEffortLevel
@@ -1295,8 +1301,8 @@ if this limit is exceeded.`),
1295
1301
  * * Value List Type: List
1296
1302
  * * Possible Values
1297
1303
  * * Failed
1298
- * * Success
1299
1304
  * * Retry
1305
+ * * Success
1300
1306
  * * Description: Controls how Chat next steps are handled. When null (default), Chat propagates to caller. When set to Success, Failed, or Retry, Chat steps are remapped to that value and re-validated.`),
1301
1307
  DefaultArtifactTypeID: zod_1.z.string().nullable().describe(`
1302
1308
  * * Field Name: DefaultArtifactTypeID
@@ -1318,10 +1324,31 @@ if this limit is exceeded.`),
1318
1324
  * * Default Value: Any
1319
1325
  * * Value List Type: List
1320
1326
  * * Possible Values
1321
- * * Sub-Agent
1322
1327
  * * Any
1328
+ * * Sub-Agent
1323
1329
  * * Top-Level
1324
1330
  * * Description: Controls how the agent can be invoked: Any (default - can be top-level or sub-agent), Top-Level (only callable as primary agent), Sub-Agent (only callable as sub-agent). Used to filter available agents in tools like Sage.`),
1331
+ ArtifactCreationMode: zod_1.z.union([zod_1.z.literal('Always'), zod_1.z.literal('Never'), zod_1.z.literal('System Only')]).describe(`
1332
+ * * Field Name: ArtifactCreationMode
1333
+ * * Display Name: Artifact Creation Mode
1334
+ * * SQL Data Type: nvarchar(20)
1335
+ * * Default Value: Always
1336
+ * * Value List Type: List
1337
+ * * Possible Values
1338
+ * * Never
1339
+ * * Always
1340
+ * * System Only
1341
+ * * Description: Controls how artifacts are created from this agent's payloads. "Always" creates visible artifacts, "Never" skips artifact creation, "System Only" creates hidden system artifacts.`),
1342
+ FunctionalRequirements: zod_1.z.string().nullable().describe(`
1343
+ * * Field Name: FunctionalRequirements
1344
+ * * Display Name: Functional Requirements
1345
+ * * SQL Data Type: nvarchar(MAX)
1346
+ * * Description: Detailed markdown formatted requirements that explain the business goals of the agent without specific technical implementation details.`),
1347
+ TechnicalDesign: zod_1.z.string().nullable().describe(`
1348
+ * * Field Name: TechnicalDesign
1349
+ * * Display Name: Technical Design
1350
+ * * SQL Data Type: nvarchar(MAX)
1351
+ * * Description: Detailed markdown that explains the structure of the agent including agent architecture, actions, sub-agents, prompts, and payload structure.`),
1325
1352
  Parent: zod_1.z.string().nullable().describe(`
1326
1353
  * * Field Name: Parent
1327
1354
  * * Display Name: Parent
@@ -1644,11 +1671,11 @@ exports.AIPromptSchema = zod_1.z.object({
1644
1671
  * * Default Value: Any
1645
1672
  * * Value List Type: List
1646
1673
  * * Possible Values
1647
- * * Markdown
1674
+ * * Any
1648
1675
  * * JSON
1649
- * * Text
1676
+ * * Markdown
1650
1677
  * * ModelSpecific
1651
- * * Any
1678
+ * * Text
1652
1679
  * * Description: Specifies the expected response format for the AI model. Options include Any, Text, Markdown, JSON, and ModelSpecific. Defaults to Any if not specified.`),
1653
1680
  ModelSpecificResponseFormat: zod_1.z.string().nullable().describe(`
1654
1681
  * * Field Name: ModelSpecificResponseFormat
@@ -1674,8 +1701,8 @@ exports.AIPromptSchema = zod_1.z.object({
1674
1701
  * * Default Value: Default
1675
1702
  * * Value List Type: List
1676
1703
  * * Possible Values
1677
- * * Default
1678
1704
  * * ByPower
1705
+ * * Default
1679
1706
  * * Specific
1680
1707
  * * Description: Determines how models are selected for this prompt (Default, Specific, ByPower).`),
1681
1708
  PowerPreference: zod_1.z.union([zod_1.z.literal('Balanced'), zod_1.z.literal('Highest'), zod_1.z.literal('Lowest')]).describe(`
@@ -1686,8 +1713,8 @@ exports.AIPromptSchema = zod_1.z.object({
1686
1713
  * * Value List Type: List
1687
1714
  * * Possible Values
1688
1715
  * * Balanced
1689
- * * Lowest
1690
1716
  * * Highest
1717
+ * * Lowest
1691
1718
  * * Description: When using ByPower selection strategy, determines whether to prefer highest, lowest, or balanced power models.`),
1692
1719
  ParallelizationMode: zod_1.z.union([zod_1.z.literal('ConfigParam'), zod_1.z.literal('ModelSpecific'), zod_1.z.literal('None'), zod_1.z.literal('StaticCount')]).describe(`
1693
1720
  * * Field Name: ParallelizationMode
@@ -1697,9 +1724,9 @@ exports.AIPromptSchema = zod_1.z.object({
1697
1724
  * * Value List Type: List
1698
1725
  * * Possible Values
1699
1726
  * * ConfigParam
1700
- * * StaticCount
1701
- * * None
1702
1727
  * * ModelSpecific
1728
+ * * None
1729
+ * * StaticCount
1703
1730
  * * Description: Controls parallelization: None (no parallelization), StaticCount (use AIPrompt.ParallelCount for total runs), ConfigParam (use config param specified in ParallelConfigParam for total runs), or ModelSpecific (check each AIPromptModel's individual settings).`),
1704
1731
  ParallelCount: zod_1.z.number().nullable().describe(`
1705
1732
  * * Field Name: ParallelCount
@@ -1718,11 +1745,11 @@ exports.AIPromptSchema = zod_1.z.object({
1718
1745
  * * Default Value: string
1719
1746
  * * Value List Type: List
1720
1747
  * * Possible Values
1721
- * * number
1748
+ * * boolean
1722
1749
  * * date
1723
- * * string
1750
+ * * number
1724
1751
  * * object
1725
- * * boolean
1752
+ * * string
1726
1753
  * * Description: The expected data type of the prompt output: string, number, boolean, date, or object.`),
1727
1754
  OutputExample: zod_1.z.string().nullable().describe(`
1728
1755
  * * Field Name: OutputExample
@@ -1736,9 +1763,9 @@ exports.AIPromptSchema = zod_1.z.object({
1736
1763
  * * Default Value: Warn
1737
1764
  * * Value List Type: List
1738
1765
  * * Possible Values
1766
+ * * None
1739
1767
  * * Strict
1740
1768
  * * Warn
1741
- * * None
1742
1769
  * * Description: Determines how validation failures are handled: Strict (fail), Warn (log warning), or None (ignore).`),
1743
1770
  MaxRetries: zod_1.z.number().describe(`
1744
1771
  * * Field Name: MaxRetries
@@ -1759,9 +1786,9 @@ exports.AIPromptSchema = zod_1.z.object({
1759
1786
  * * Default Value: Fixed
1760
1787
  * * Value List Type: List
1761
1788
  * * Possible Values
1789
+ * * Exponential
1762
1790
  * * Fixed
1763
1791
  * * Linear
1764
- * * Exponential
1765
1792
  * * Description: Strategy for calculating retry delays: Fixed (same delay each time), Exponential (doubling delay), or Linear (linearly increasing delay).`),
1766
1793
  ResultSelectorPromptID: zod_1.z.string().nullable().describe(`
1767
1794
  * * Field Name: ResultSelectorPromptID
@@ -1826,10 +1853,10 @@ exports.AIPromptSchema = zod_1.z.object({
1826
1853
  * * Default Value: System
1827
1854
  * * Value List Type: List
1828
1855
  * * Possible Values
1829
- * * SystemOrUser
1830
1856
  * * Assistant
1831
- * * User
1832
1857
  * * System
1858
+ * * SystemOrUser
1859
+ * * User
1833
1860
  * * Description: Determines how the prompt is used in conversation: System (always first message), User (positioned by PromptPosition), Assistant (positioned by PromptPosition), or SystemOrUser (try system first, fallback to user last if system slot taken)`),
1834
1861
  PromptPosition: zod_1.z.union([zod_1.z.literal('First'), zod_1.z.literal('Last')]).describe(`
1835
1862
  * * Field Name: PromptPosition
@@ -1899,14 +1926,14 @@ exports.AIPromptSchema = zod_1.z.object({
1899
1926
  * * Default Value: SameModelDifferentVendor
1900
1927
  * * Value List Type: List
1901
1928
  * * Possible Values
1929
+ * * NextBestModel
1930
+ * * NextBestModel
1931
+ * * None
1902
1932
  * * None
1903
1933
  * * PowerRank
1904
1934
  * * PowerRank
1905
1935
  * * SameModelDifferentVendor
1906
- * * NextBestModel
1907
- * * NextBestModel
1908
1936
  * * SameModelDifferentVendor
1909
- * * None
1910
1937
  * * Description: Failover strategy to use when the primary model fails. Options: SameModelDifferentVendor, NextBestModel, PowerRank, None`),
1911
1938
  FailoverMaxAttempts: zod_1.z.number().nullable().describe(`
1912
1939
  * * Field Name: FailoverMaxAttempts
@@ -1927,12 +1954,12 @@ exports.AIPromptSchema = zod_1.z.object({
1927
1954
  * * Default Value: PreferSameModel
1928
1955
  * * Value List Type: List
1929
1956
  * * Possible Values
1930
- * * RequireSameModel
1931
- * * RequireSameModel
1932
1957
  * * PreferDifferentModel
1933
1958
  * * PreferDifferentModel
1934
1959
  * * PreferSameModel
1935
1960
  * * PreferSameModel
1961
+ * * RequireSameModel
1962
+ * * RequireSameModel
1936
1963
  * * Description: Strategy for selecting failover models. Options: PreferSameModel, PreferDifferentModel, RequireSameModel`),
1937
1964
  FailoverErrorScope: zod_1.z.union([zod_1.z.literal('All'), zod_1.z.literal('All'), zod_1.z.literal('NetworkOnly'), zod_1.z.literal('NetworkOnly'), zod_1.z.literal('RateLimitOnly'), zod_1.z.literal('RateLimitOnly'), zod_1.z.literal('ServiceErrorOnly'), zod_1.z.literal('ServiceErrorOnly')]).describe(`
1938
1965
  * * Field Name: FailoverErrorScope
@@ -1941,14 +1968,14 @@ exports.AIPromptSchema = zod_1.z.object({
1941
1968
  * * Default Value: All
1942
1969
  * * Value List Type: List
1943
1970
  * * Possible Values
1944
- * * ServiceErrorOnly
1945
- * * RateLimitOnly
1946
- * * NetworkOnly
1947
1971
  * * All
1972
+ * * All
1973
+ * * NetworkOnly
1948
1974
  * * NetworkOnly
1949
1975
  * * RateLimitOnly
1976
+ * * RateLimitOnly
1977
+ * * ServiceErrorOnly
1950
1978
  * * ServiceErrorOnly
1951
- * * All
1952
1979
  * * Description: Types of errors that should trigger failover. Options: All, NetworkOnly, RateLimitOnly, ServiceErrorOnly`),
1953
1980
  EffortLevel: zod_1.z.number().nullable().describe(`
1954
1981
  * * Field Name: EffortLevel
@@ -2022,8 +2049,8 @@ exports.AIResultCacheSchema = zod_1.z.object({
2022
2049
  * * SQL Data Type: nvarchar(50)
2023
2050
  * * Value List Type: List
2024
2051
  * * Possible Values
2025
- * * Expired
2026
2052
  * * Active
2053
+ * * Expired
2027
2054
  * * Description: The status of this result, indicating whether it is currently active or expired.`),
2028
2055
  ExpiredOn: zod_1.z.date().nullable().describe(`
2029
2056
  * * Field Name: ExpiredOn
@@ -2315,8 +2342,8 @@ exports.AuditLogSchema = zod_1.z.object({
2315
2342
  * * Default Value: Allow
2316
2343
  * * Value List Type: List
2317
2344
  * * Possible Values
2318
- * * Success
2319
- * * Failed`),
2345
+ * * Failed
2346
+ * * Success`),
2320
2347
  Description: zod_1.z.string().nullable().describe(`
2321
2348
  * * Field Name: Description
2322
2349
  * * Display Name: Description
@@ -2542,8 +2569,8 @@ exports.CommunicationLogSchema = zod_1.z.object({
2542
2569
  * * SQL Data Type: nvarchar(20)
2543
2570
  * * Value List Type: List
2544
2571
  * * Possible Values
2545
- * * Sending
2546
2572
  * * Receiving
2573
+ * * Sending
2547
2574
  * * Description: The direction of the communication log (Sending or Receiving).`),
2548
2575
  MessageDate: zod_1.z.date().describe(`
2549
2576
  * * Field Name: MessageDate
@@ -2557,8 +2584,8 @@ exports.CommunicationLogSchema = zod_1.z.object({
2557
2584
  * * Default Value: Pending
2558
2585
  * * Value List Type: List
2559
2586
  * * Possible Values
2560
- * * Failed
2561
2587
  * * Complete
2588
+ * * Failed
2562
2589
  * * In-Progress
2563
2590
  * * Pending
2564
2591
  * * Description: The status of the logged message (Pending, In-Progress, Complete, Failed).`),
@@ -2621,8 +2648,8 @@ exports.CommunicationProviderMessageTypeSchema = zod_1.z.object({
2621
2648
  * * Default Value: Disabled
2622
2649
  * * Value List Type: List
2623
2650
  * * Possible Values
2624
- * * Disabled
2625
2651
  * * Active
2652
+ * * Disabled
2626
2653
  * * Description: The status of the provider message type (Disabled or Active).`),
2627
2654
  AdditionalAttributes: zod_1.z.string().nullable().describe(`
2628
2655
  * * Field Name: AdditionalAttributes
@@ -2715,6 +2742,12 @@ exports.CommunicationProviderSchema = zod_1.z.object({
2715
2742
  * * SQL Data Type: bit
2716
2743
  * * Default Value: 0
2717
2744
  * * Description: Whether or not the provider supports replying to messages`),
2745
+ SupportsDrafts: zod_1.z.boolean().describe(`
2746
+ * * Field Name: SupportsDrafts
2747
+ * * Display Name: Supports Drafts
2748
+ * * SQL Data Type: bit
2749
+ * * Default Value: 0
2750
+ * * Description: Whether or not the provider supports creating draft messages`),
2718
2751
  });
2719
2752
  /**
2720
2753
  * zod schema definition for the entity Communication Runs
@@ -2736,8 +2769,8 @@ exports.CommunicationRunSchema = zod_1.z.object({
2736
2769
  * * SQL Data Type: nvarchar(20)
2737
2770
  * * Value List Type: List
2738
2771
  * * Possible Values
2739
- * * Sending
2740
2772
  * * Receiving
2773
+ * * Sending
2741
2774
  * * Description: The direction of the communication run (Sending or Receiving).`),
2742
2775
  Status: zod_1.z.union([zod_1.z.literal('Complete'), zod_1.z.literal('Failed'), zod_1.z.literal('In-Progress'), zod_1.z.literal('Pending')]).describe(`
2743
2776
  * * Field Name: Status
@@ -2747,8 +2780,8 @@ exports.CommunicationRunSchema = zod_1.z.object({
2747
2780
  * * Possible Values
2748
2781
  * * Complete
2749
2782
  * * Failed
2750
- * * Pending
2751
2783
  * * In-Progress
2784
+ * * Pending
2752
2785
  * * Description: The status of the communication run (Pending, In-Progress, Complete, Failed).`),
2753
2786
  StartedAt: zod_1.z.date().nullable().describe(`
2754
2787
  * * Field Name: StartedAt
@@ -2900,13 +2933,13 @@ exports.CompanyIntegrationRunAPILogSchema = zod_1.z.object({
2900
2933
  * * SQL Data Type: nvarchar(12)
2901
2934
  * * Value List Type: List
2902
2935
  * * Possible Values
2903
- * * PATCH
2904
- * * PUT
2905
2936
  * * DELETE
2937
+ * * GET
2906
2938
  * * HEAD
2907
2939
  * * OPTIONS
2940
+ * * PATCH
2908
2941
  * * POST
2909
- * * GET
2942
+ * * PUT
2910
2943
  * * Description: HTTP method used for the API call (GET, POST, PUT, DELETE, PATCH).`),
2911
2944
  URL: zod_1.z.string().nullable().describe(`
2912
2945
  * * Field Name: URL
@@ -3039,10 +3072,10 @@ exports.CompanyIntegrationRunSchema = zod_1.z.object({
3039
3072
  * * Default Value: Pending
3040
3073
  * * Value List Type: List
3041
3074
  * * Possible Values
3042
- * * Pending
3043
3075
  * * Failed
3044
- * * Success
3045
3076
  * * In Progress
3077
+ * * Pending
3078
+ * * Success
3046
3079
  * * Description: Status of the integration run. Possible values: Pending, In Progress, Success, Failed.`),
3047
3080
  ErrorLog: zod_1.z.string().nullable().describe(`
3048
3081
  * * Field Name: ErrorLog
@@ -3683,8 +3716,8 @@ exports.ConversationDetailSchema = zod_1.z.object({
3683
3716
  * * Value List Type: List
3684
3717
  * * Possible Values
3685
3718
  * * AI
3686
- * * User
3687
3719
  * * Error
3720
+ * * User
3688
3721
  * * Description: The role of the message sender (user, assistant, system, function).`),
3689
3722
  Message: zod_1.z.string().describe(`
3690
3723
  * * Field Name: Message
@@ -3780,9 +3813,9 @@ exports.ConversationDetailSchema = zod_1.z.object({
3780
3813
  * * Default Value: Complete
3781
3814
  * * Value List Type: List
3782
3815
  * * Possible Values
3783
- * * In-Progress
3784
3816
  * * Complete
3785
3817
  * * Error
3818
+ * * In-Progress
3786
3819
  * * Description: Status of the conversation message. Complete indicates finished processing, In-Progress indicates active agent work, Error indicates processing failed.`),
3787
3820
  SuggestedResponses: zod_1.z.string().nullable().describe(`
3788
3821
  * * Field Name: SuggestedResponses
@@ -4021,9 +4054,9 @@ exports.DashboardSchema = zod_1.z.object({
4021
4054
  * * Default Value: Config
4022
4055
  * * Value List Type: List
4023
4056
  * * Possible Values
4057
+ * * Code
4024
4058
  * * Config
4025
4059
  * * Dynamic Code
4026
- * * Code
4027
4060
  * * Description: Dashboard type supporting Config (metadata-driven), Code (compiled TypeScript), and Dynamic Code (Skip-generated runtime JavaScript/React) options`),
4028
4061
  Thumbnail: zod_1.z.string().nullable().describe(`
4029
4062
  * * Field Name: Thumbnail
@@ -4037,8 +4070,8 @@ exports.DashboardSchema = zod_1.z.object({
4037
4070
  * * Default Value: Global
4038
4071
  * * Value List Type: List
4039
4072
  * * Possible Values
4040
- * * Global
4041
4073
  * * App
4074
+ * * Global
4042
4075
  * * Description: Scope of the dashboard: Global or App-specific`),
4043
4076
  ApplicationID: zod_1.z.string().nullable().describe(`
4044
4077
  * * Field Name: ApplicationID
@@ -4369,8 +4402,8 @@ exports.DuplicateRunDetailMatchSchema = zod_1.z.object({
4369
4402
  * * Value List Type: List
4370
4403
  * * Possible Values
4371
4404
  * * Approved
4372
- * * Rejected
4373
4405
  * * Pending
4406
+ * * Rejected
4374
4407
  * * Description: Current approval status of the proposed action (Pending, Approved, Rejected).`),
4375
4408
  RecordMergeLogID: zod_1.z.string().nullable().describe(`
4376
4409
  * * Field Name: RecordMergeLogID
@@ -4431,10 +4464,10 @@ exports.DuplicateRunDetailSchema = zod_1.z.object({
4431
4464
  * * Default Value: Pending
4432
4465
  * * Value List Type: List
4433
4466
  * * Possible Values
4434
- * * Error
4435
4467
  * * Complete
4436
- * * Skipped
4468
+ * * Error
4437
4469
  * * Pending
4470
+ * * Skipped
4438
4471
  * * Description: Status of duplicate analysis for this record (Pending, Complete, Error).`),
4439
4472
  SkippedReason: zod_1.z.string().nullable().describe(`
4440
4473
  * * Field Name: SkippedReason
@@ -4453,10 +4486,10 @@ exports.DuplicateRunDetailSchema = zod_1.z.object({
4453
4486
  * * Default Value: Not Applicable
4454
4487
  * * Value List Type: List
4455
4488
  * * Possible Values
4456
- * * Pending
4489
+ * * Complete
4457
4490
  * * Error
4458
4491
  * * Not Applicable
4459
- * * Complete
4492
+ * * Pending
4460
4493
  * * Description: Status of any merge operations for this record (Not Applicable, Pending, Complete, Failed).`),
4461
4494
  MergeErrorMessage: zod_1.z.string().nullable().describe(`
4462
4495
  * * Field Name: MergeErrorMessage
@@ -4515,8 +4548,8 @@ exports.DuplicateRunSchema = zod_1.z.object({
4515
4548
  * * Value List Type: List
4516
4549
  * * Possible Values
4517
4550
  * * Approved
4518
- * * Rejected
4519
4551
  * * Pending
4552
+ * * Rejected
4520
4553
  * * Description: Overall approval status for the duplicate run results (Pending, Approved, Rejected).`),
4521
4554
  ApprovalComments: zod_1.z.string().nullable().describe(`
4522
4555
  * * Field Name: ApprovalComments
@@ -4536,9 +4569,9 @@ exports.DuplicateRunSchema = zod_1.z.object({
4536
4569
  * * Value List Type: List
4537
4570
  * * Possible Values
4538
4571
  * * Complete
4572
+ * * Failed
4539
4573
  * * In Progress
4540
4574
  * * Pending
4541
- * * Failed
4542
4575
  * * Description: Current processing status of the duplicate detection run (Pending, Running, Complete, Failed).`),
4543
4576
  ProcessingErrorMessage: zod_1.z.string().nullable().describe(`
4544
4577
  * * Field Name: ProcessingErrorMessage
@@ -4975,8 +5008,8 @@ exports.EntitySchema = zod_1.z.object({
4975
5008
  * * Default Value: Hard
4976
5009
  * * Value List Type: List
4977
5010
  * * Possible Values
4978
- * * Soft
4979
5011
  * * Hard
5012
+ * * Soft
4980
5013
  * * Description: Hard deletes physically remove rows from the underlying BaseTable. Soft deletes do not remove rows but instead mark the row as deleted by using the special field __mj_DeletedAt which will automatically be added to the entity's basetable by the CodeGen tool.`),
4981
5014
  AllowRecordMerge: zod_1.z.boolean().describe(`
4982
5015
  * * Field Name: AllowRecordMerge
@@ -4996,8 +5029,8 @@ exports.EntitySchema = zod_1.z.object({
4996
5029
  * * Default Value: Search
4997
5030
  * * Value List Type: List
4998
5031
  * * Possible Values
4999
- * * Search
5000
5032
  * * Dropdown
5033
+ * * Search
5001
5034
  * * Description: When another entity links to this entity with a foreign key, this is the default component type that will be used in the UI. CodeGen will populate the RelatedEntityDisplayType column in the Entity Fields entity with whatever is provided here whenever a new foreign key is detected by CodeGen. The selection can be overridden on a per-foreign-key basis in each row of the Entity Fields entity.`),
5002
5035
  UserFormGenerated: zod_1.z.boolean().describe(`
5003
5036
  * * Field Name: UserFormGenerated
@@ -5047,9 +5080,9 @@ exports.EntitySchema = zod_1.z.object({
5047
5080
  * * Default Value: None
5048
5081
  * * Value List Type: List
5049
5082
  * * Possible Values
5083
+ * * All
5050
5084
  * * None
5051
5085
  * * Sample
5052
- * * All
5053
5086
  * * Description: Determines how entity rows should be packaged for external use. Options include None, Sample, and All. Defaults to None.`),
5054
5087
  RowsToPackSampleMethod: zod_1.z.union([zod_1.z.literal('bottom n'), zod_1.z.literal('random'), zod_1.z.literal('top n')]).describe(`
5055
5088
  * * Field Name: RowsToPackSampleMethod
@@ -5058,9 +5091,9 @@ exports.EntitySchema = zod_1.z.object({
5058
5091
  * * Default Value: random
5059
5092
  * * Value List Type: List
5060
5093
  * * Possible Values
5061
- * * top n
5062
- * * random
5063
5094
  * * bottom n
5095
+ * * random
5096
+ * * top n
5064
5097
  * * Description: Defines the sampling method for row packing when RowsToPackWithSchema is set to Sample. Options include random, top n, and bottom n. Defaults to random.`),
5065
5098
  RowsToPackSampleCount: zod_1.z.number().describe(`
5066
5099
  * * Field Name: RowsToPackSampleCount
@@ -5095,9 +5128,9 @@ exports.EntitySchema = zod_1.z.object({
5095
5128
  * * Default Value: Active
5096
5129
  * * Value List Type: List
5097
5130
  * * Possible Values
5131
+ * * Active
5098
5132
  * * Deprecated
5099
5133
  * * Disabled
5100
- * * Active
5101
5134
  * * Description: Status of the entity. Active: fully functional; Deprecated: functional but generates console warnings when used; Disabled: not available for use even though metadata and physical table remain.`),
5102
5135
  DisplayName: zod_1.z.string().nullable().describe(`
5103
5136
  * * Field Name: DisplayName
@@ -5160,9 +5193,9 @@ exports.EntityActionFilterSchema = zod_1.z.object({
5160
5193
  * * Default Value: Pending
5161
5194
  * * Value List Type: List
5162
5195
  * * Possible Values
5163
- * * Pending
5164
- * * Disabled
5165
5196
  * * Active
5197
+ * * Disabled
5198
+ * * Pending
5166
5199
  * * Description: Status of the entity action filter (Pending, Active, Disabled).`),
5167
5200
  __mj_CreatedAt: zod_1.z.date().describe(`
5168
5201
  * * Field Name: __mj_CreatedAt
@@ -5237,8 +5270,8 @@ exports.EntityActionInvocationSchema = zod_1.z.object({
5237
5270
  * * Default Value: Pending
5238
5271
  * * Value List Type: List
5239
5272
  * * Possible Values
5240
- * * Disabled
5241
5273
  * * Active
5274
+ * * Disabled
5242
5275
  * * Pending
5243
5276
  * * Description: Status of the entity action invocation (Pending, Active, Disabled).`),
5244
5277
  __mj_CreatedAt: zod_1.z.date().describe(`
@@ -5281,9 +5314,9 @@ exports.EntityActionParamSchema = zod_1.z.object({
5281
5314
  * * SQL Data Type: nvarchar(20)
5282
5315
  * * Value List Type: List
5283
5316
  * * Possible Values
5284
- * * Script
5285
- * * Entity Object
5286
5317
  * * Entity Field
5318
+ * * Entity Object
5319
+ * * Script
5287
5320
  * * Static
5288
5321
  * * Description: Type of the value, which can be Static, Entity Object, or Script.`),
5289
5322
  Value: zod_1.z.string().nullable().describe(`
@@ -5400,8 +5433,8 @@ exports.EntityAIActionSchema = zod_1.z.object({
5400
5433
  * * Default Value: After Save
5401
5434
  * * Value List Type: List
5402
5435
  * * Possible Values
5403
- * * before save
5404
5436
  * * after save
5437
+ * * before save
5405
5438
  * * Description: The entity event that triggers this AI action (After Save, Before Delete, etc.).`),
5406
5439
  UserMessage: zod_1.z.string().describe(`
5407
5440
  * * Field Name: UserMessage
@@ -5574,8 +5607,8 @@ exports.EntityDocumentRunSchema = zod_1.z.object({
5574
5607
  * * Value List Type: List
5575
5608
  * * Possible Values
5576
5609
  * * Complete
5577
- * * Pending
5578
5610
  * * Failed
5611
+ * * Pending
5579
5612
  * * Description: Can be Pending, In Progress, Completed, or Failed`),
5580
5613
  __mj_CreatedAt: zod_1.z.date().describe(`
5581
5614
  * * Field Name: __mj_CreatedAt
@@ -5697,8 +5730,8 @@ exports.EntityDocumentSchema = zod_1.z.object({
5697
5730
  * * Default Value: Active
5698
5731
  * * Value List Type: List
5699
5732
  * * Possible Values
5700
- * * Inactive
5701
- * * Active`),
5733
+ * * Active
5734
+ * * Inactive`),
5702
5735
  TemplateID: zod_1.z.string().describe(`
5703
5736
  * * Field Name: TemplateID
5704
5737
  * * Display Name: Template ID
@@ -5902,9 +5935,9 @@ exports.EntityFieldSchema = zod_1.z.object({
5902
5935
  * * Default Value: None
5903
5936
  * * Value List Type: List
5904
5937
  * * Possible Values
5938
+ * * List
5905
5939
  * * ListOrUserEntry
5906
5940
  * * None
5907
- * * List
5908
5941
  * * Description: Possible Values of None, List, ListOrUserEntry - the last option meaning that the list of possible values are options, but a user can enter anything else desired too.`),
5909
5942
  ExtendedType: zod_1.z.union([zod_1.z.literal('Code'), zod_1.z.literal('Email'), zod_1.z.literal('FaceTime'), zod_1.z.literal('Geo'), zod_1.z.literal('MSTeams'), zod_1.z.literal('Other'), zod_1.z.literal('SIP'), zod_1.z.literal('SMS'), zod_1.z.literal('Skype'), zod_1.z.literal('Tel'), zod_1.z.literal('URL'), zod_1.z.literal('WhatsApp'), zod_1.z.literal('ZoomMtg')]).nullable().describe(`
5910
5943
  * * Field Name: ExtendedType
@@ -5912,18 +5945,18 @@ exports.EntityFieldSchema = zod_1.z.object({
5912
5945
  * * SQL Data Type: nvarchar(50)
5913
5946
  * * Value List Type: List
5914
5947
  * * Possible Values
5915
- * * SMS
5916
- * * Email
5917
- * * WhatsApp
5918
- * * MSTeams
5919
- * * URL
5920
- * * Skype
5921
5948
  * * Code
5949
+ * * Email
5922
5950
  * * FaceTime
5923
- * * SIP
5924
5951
  * * Geo
5952
+ * * MSTeams
5925
5953
  * * Other
5954
+ * * SIP
5955
+ * * SMS
5956
+ * * Skype
5926
5957
  * * Tel
5958
+ * * URL
5959
+ * * WhatsApp
5927
5960
  * * ZoomMtg
5928
5961
  * * Description: Defines extended behaviors for a field such as for Email, Web URLs, Code, etc.`),
5929
5962
  CodeType: zod_1.z.union([zod_1.z.literal('CSS'), zod_1.z.literal('HTML'), zod_1.z.literal('JavaScript'), zod_1.z.literal('Other'), zod_1.z.literal('SQL'), zod_1.z.literal('TypeScript')]).nullable().describe(`
@@ -5932,12 +5965,12 @@ exports.EntityFieldSchema = zod_1.z.object({
5932
5965
  * * SQL Data Type: nvarchar(50)
5933
5966
  * * Value List Type: List
5934
5967
  * * Possible Values
5968
+ * * CSS
5935
5969
  * * HTML
5936
5970
  * * JavaScript
5937
- * * CSS
5938
- * * TypeScript
5939
- * * SQL
5940
5971
  * * Other
5972
+ * * SQL
5973
+ * * TypeScript
5941
5974
  * * Description: The type of code associated with this field. Only used when the ExtendedType field is set to "Code"`),
5942
5975
  DefaultInView: zod_1.z.boolean().describe(`
5943
5976
  * * Field Name: DefaultInView
@@ -5998,8 +6031,8 @@ exports.EntityFieldSchema = zod_1.z.object({
5998
6031
  * * Value List Type: List
5999
6032
  * * Possible Values
6000
6033
  * * Category
6001
- * * Top
6002
6034
  * * Details
6035
+ * * Top
6003
6036
  * * Description: When set to Top, the field will be placed in a "top area" on the top of a generated form and visible regardless of which tab is displayed. When set to "category" Options: Top, Category, Details`),
6004
6037
  IsVirtual: zod_1.z.boolean().describe(`
6005
6038
  * * Field Name: IsVirtual
@@ -6073,9 +6106,9 @@ exports.EntityFieldSchema = zod_1.z.object({
6073
6106
  * * Default Value: Auto
6074
6107
  * * Value List Type: List
6075
6108
  * * Possible Values
6109
+ * * All
6076
6110
  * * Auto
6077
6111
  * * None
6078
- * * All
6079
6112
  * * Description: Determines whether values for the field should be included when the schema is packed. Options: Auto (include manually set or auto-derived values), None (exclude all values), All (include all distinct values from the table). Defaults to Auto.`),
6080
6113
  Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Deprecated'), zod_1.z.literal('Disabled')]).describe(`
6081
6114
  * * Field Name: Status
@@ -6084,8 +6117,8 @@ exports.EntityFieldSchema = zod_1.z.object({
6084
6117
  * * Default Value: Active
6085
6118
  * * Value List Type: List
6086
6119
  * * Possible Values
6087
- * * Deprecated
6088
6120
  * * Active
6121
+ * * Deprecated
6089
6122
  * * Disabled
6090
6123
  * * Description: Current status of the entity field - Active fields are available for use, Deprecated fields are discouraged but still functional, Disabled fields are not available for use`),
6091
6124
  FieldCodeName: zod_1.z.string().nullable().describe(`
@@ -6336,8 +6369,8 @@ exports.EntityRelationshipDisplayComponentSchema = zod_1.z.object({
6336
6369
  * * SQL Data Type: nvarchar(20)
6337
6370
  * * Value List Type: List
6338
6371
  * * Possible Values
6339
- * * Many to Many
6340
6372
  * * Both
6373
+ * * Many to Many
6341
6374
  * * One to Many
6342
6375
  * * Description: The type of relationship the component displays. Valid values are "One to Many", "Many to Many", or "Both".`),
6343
6376
  __mj_CreatedAt: zod_1.z.date().describe(`
@@ -6996,9 +7029,9 @@ exports.GeneratedCodeSchema = zod_1.z.object({
6996
7029
  * * Default Value: Pending
6997
7030
  * * Value List Type: List
6998
7031
  * * Possible Values
7032
+ * * Approved
6999
7033
  * * Pending
7000
7034
  * * Rejected
7001
- * * Approved
7002
7035
  * * Description: Status of the generated code, e.g., Pending, Approved, or Rejected.`),
7003
7036
  Language: zod_1.z.union([zod_1.z.literal('CSS'), zod_1.z.literal('HTML'), zod_1.z.literal('JavaScript'), zod_1.z.literal('Other'), zod_1.z.literal('Python'), zod_1.z.literal('SQL'), zod_1.z.literal('TypeScript')]).describe(`
7004
7037
  * * Field Name: Language
@@ -7007,13 +7040,13 @@ exports.GeneratedCodeSchema = zod_1.z.object({
7007
7040
  * * Default Value: TypeScript
7008
7041
  * * Value List Type: List
7009
7042
  * * Possible Values
7043
+ * * CSS
7044
+ * * HTML
7045
+ * * JavaScript
7010
7046
  * * Other
7011
7047
  * * Python
7012
- * * JavaScript
7013
7048
  * * SQL
7014
- * * HTML
7015
7049
  * * TypeScript
7016
- * * CSS
7017
7050
  * * Description: Programming language of the generated code (TypeScript, SQL, HTML, CSS, JavaScript, Python, or Other).`),
7018
7051
  __mj_CreatedAt: zod_1.z.date().describe(`
7019
7052
  * * Field Name: __mj_CreatedAt
@@ -7163,9 +7196,9 @@ exports.LibrarySchema = zod_1.z.object({
7163
7196
  * * Default Value: Pending
7164
7197
  * * Value List Type: List
7165
7198
  * * Possible Values
7199
+ * * Active
7166
7200
  * * Disabled
7167
7201
  * * Pending
7168
- * * Active
7169
7202
  * * Description: Status of the library, only libraries marked as Active will be available for use by generated code. If a library was once active but no longer is, existing code that used the library will not be affected.`),
7170
7203
  TypeDefinitions: zod_1.z.string().nullable().describe(`
7171
7204
  * * Field Name: TypeDefinitions
@@ -7212,12 +7245,12 @@ exports.LibraryItemSchema = zod_1.z.object({
7212
7245
  * * SQL Data Type: nvarchar(50)
7213
7246
  * * Value List Type: List
7214
7247
  * * Possible Values
7215
- * * Variable
7216
- * * Module
7217
- * * Function
7218
7248
  * * Class
7249
+ * * Function
7219
7250
  * * Interface
7251
+ * * Module
7220
7252
  * * Type
7253
+ * * Variable
7221
7254
  * * Description: Type of the library item for example Class, Interface, etc.`),
7222
7255
  __mj_CreatedAt: zod_1.z.date().describe(`
7223
7256
  * * Field Name: __mj_CreatedAt
@@ -7325,12 +7358,12 @@ exports.ListDetailSchema = zod_1.z.object({
7325
7358
  * * Value List Type: List
7326
7359
  * * Possible Values
7327
7360
  * * Active
7361
+ * * Complete
7328
7362
  * * Disabled
7329
7363
  * * Error
7330
7364
  * * Other
7331
- * * Rejected
7332
7365
  * * Pending
7333
- * * Complete
7366
+ * * Rejected
7334
7367
  * * Description: Tracks the status of each individual list detail row to enable processing of various types and the use of the status column for filtering list detail rows within a list that are in a particular state.`),
7335
7368
  AdditionalData: zod_1.z.string().nullable().describe(`
7336
7369
  * * Field Name: AdditionalData
@@ -7434,9 +7467,9 @@ exports.AccessControlRuleSchema = zod_1.z.object({
7434
7467
  * * Value List Type: List
7435
7468
  * * Possible Values
7436
7469
  * * Everyone
7470
+ * * Public
7437
7471
  * * Role
7438
7472
  * * User
7439
- * * Public
7440
7473
  * * Description: Type of grantee receiving permission (User, Role, Everyone, Public). "Everyone" means all authenticated users whereas "Public" means any authenticated OR anonymous user.`),
7441
7474
  GranteeID: zod_1.z.string().nullable().describe(`
7442
7475
  * * Field Name: GranteeID
@@ -7546,6 +7579,153 @@ exports.AIAgentArtifactTypeSchema = zod_1.z.object({
7546
7579
  * * Display Name: Artifact Type
7547
7580
  * * SQL Data Type: nvarchar(100)`),
7548
7581
  });
7582
+ /**
7583
+ * zod schema definition for the entity MJ: AI Agent Data Sources
7584
+ */
7585
+ exports.AIAgentDataSourceSchema = zod_1.z.object({
7586
+ ID: zod_1.z.string().describe(`
7587
+ * * Field Name: ID
7588
+ * * Display Name: ID
7589
+ * * SQL Data Type: uniqueidentifier
7590
+ * * Default Value: newsequentialid()`),
7591
+ AgentID: zod_1.z.string().describe(`
7592
+ * * Field Name: AgentID
7593
+ * * Display Name: Agent ID
7594
+ * * SQL Data Type: uniqueidentifier
7595
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)`),
7596
+ Name: zod_1.z.string().describe(`
7597
+ * * Field Name: Name
7598
+ * * Display Name: Name
7599
+ * * SQL Data Type: nvarchar(255)
7600
+ * * Description: Variable name for the data in the data parameter (e.g., "ALL_ENTITIES"). Must be unique within an agent.`),
7601
+ Description: zod_1.z.string().nullable().describe(`
7602
+ * * Field Name: Description
7603
+ * * Display Name: Description
7604
+ * * SQL Data Type: nvarchar(MAX)
7605
+ * * Description: Description of what this data source provides`),
7606
+ SourceType: zod_1.z.union([zod_1.z.literal('RunQuery'), zod_1.z.literal('RunView')]).describe(`
7607
+ * * Field Name: SourceType
7608
+ * * Display Name: Source Type
7609
+ * * SQL Data Type: nvarchar(20)
7610
+ * * Default Value: RunView
7611
+ * * Value List Type: List
7612
+ * * Possible Values
7613
+ * * RunQuery
7614
+ * * RunView
7615
+ * * Description: Type of data source: RunView or RunQuery. Determines which parameters are used.`),
7616
+ EntityName: zod_1.z.string().nullable().describe(`
7617
+ * * Field Name: EntityName
7618
+ * * Display Name: Entity Name
7619
+ * * SQL Data Type: nvarchar(255)
7620
+ * * Description: Entity name for RunView data sources (e.g., "Entities", "AI Models")`),
7621
+ ExtraFilter: zod_1.z.string().nullable().describe(`
7622
+ * * Field Name: ExtraFilter
7623
+ * * Display Name: Extra Filter
7624
+ * * SQL Data Type: nvarchar(MAX)
7625
+ * * Description: SQL WHERE clause filter for RunView data sources`),
7626
+ OrderBy: zod_1.z.string().nullable().describe(`
7627
+ * * Field Name: OrderBy
7628
+ * * Display Name: Order By
7629
+ * * SQL Data Type: nvarchar(500)
7630
+ * * Description: SQL ORDER BY clause for RunView data sources`),
7631
+ FieldsToRetrieve: zod_1.z.string().nullable().describe(`
7632
+ * * Field Name: FieldsToRetrieve
7633
+ * * Display Name: Fields To Retrieve
7634
+ * * SQL Data Type: nvarchar(MAX)
7635
+ * * Description: JSON array of field names to return for RunView data sources (e.g., ["ID", "Name", "Description"])`),
7636
+ ResultType: zod_1.z.union([zod_1.z.literal('entity_object'), zod_1.z.literal('simple')]).nullable().describe(`
7637
+ * * Field Name: ResultType
7638
+ * * Display Name: Result Type
7639
+ * * SQL Data Type: nvarchar(20)
7640
+ * * Default Value: simple
7641
+ * * Value List Type: List
7642
+ * * Possible Values
7643
+ * * entity_object
7644
+ * * simple
7645
+ * * Description: Result type for RunView: simple (default) or entity_object`),
7646
+ QueryName: zod_1.z.string().nullable().describe(`
7647
+ * * Field Name: QueryName
7648
+ * * Display Name: Query Name
7649
+ * * SQL Data Type: nvarchar(255)
7650
+ * * Description: Query name for RunQuery data sources`),
7651
+ CategoryPath: zod_1.z.string().nullable().describe(`
7652
+ * * Field Name: CategoryPath
7653
+ * * Display Name: Category Path
7654
+ * * SQL Data Type: nvarchar(500)
7655
+ * * Description: Category path for RunQuery data sources (e.g., "/MJ/AI/Agents/")`),
7656
+ Parameters: zod_1.z.string().nullable().describe(`
7657
+ * * Field Name: Parameters
7658
+ * * Display Name: Parameters
7659
+ * * SQL Data Type: nvarchar(MAX)
7660
+ * * Description: JSON object of parameters for RunQuery data sources (e.g., {"organizationId": "123"})`),
7661
+ MaxRows: zod_1.z.number().nullable().describe(`
7662
+ * * Field Name: MaxRows
7663
+ * * Display Name: Max Rows
7664
+ * * SQL Data Type: int
7665
+ * * Description: Maximum number of rows to return. Applies to both RunView and RunQuery.`),
7666
+ ExecutionOrder: zod_1.z.number().describe(`
7667
+ * * Field Name: ExecutionOrder
7668
+ * * Display Name: Execution Order
7669
+ * * SQL Data Type: int
7670
+ * * Default Value: 0
7671
+ * * Description: Execution order when multiple data sources are defined for an agent (lower numbers execute first)`),
7672
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Disabled')]).describe(`
7673
+ * * Field Name: Status
7674
+ * * Display Name: Status
7675
+ * * SQL Data Type: nvarchar(20)
7676
+ * * Default Value: Active
7677
+ * * Value List Type: List
7678
+ * * Possible Values
7679
+ * * Active
7680
+ * * Disabled
7681
+ * * Description: Status of the data source: Active or Disabled`),
7682
+ CachePolicy: zod_1.z.union([zod_1.z.literal('None'), zod_1.z.literal('PerAgent'), zod_1.z.literal('PerRun')]).describe(`
7683
+ * * Field Name: CachePolicy
7684
+ * * Display Name: Cache Policy
7685
+ * * SQL Data Type: nvarchar(20)
7686
+ * * Default Value: None
7687
+ * * Value List Type: List
7688
+ * * Possible Values
7689
+ * * None
7690
+ * * PerAgent
7691
+ * * PerRun
7692
+ * * Description: Cache policy: None (no caching), PerRun (cache for duration of agent run), PerAgent (cache across runs with timeout)`),
7693
+ CacheTimeoutSeconds: zod_1.z.number().nullable().describe(`
7694
+ * * Field Name: CacheTimeoutSeconds
7695
+ * * Display Name: Cache Timeout Seconds
7696
+ * * SQL Data Type: int
7697
+ * * Description: Time-to-live in seconds for PerAgent cache policy. Ignored for other cache policies.`),
7698
+ DestinationType: zod_1.z.union([zod_1.z.literal('Context'), zod_1.z.literal('Data'), zod_1.z.literal('Payload')]).describe(`
7699
+ * * Field Name: DestinationType
7700
+ * * Display Name: Destination Type
7701
+ * * SQL Data Type: nvarchar(20)
7702
+ * * Default Value: Data
7703
+ * * Value List Type: List
7704
+ * * Possible Values
7705
+ * * Context
7706
+ * * Data
7707
+ * * Payload
7708
+ * * Description: Destination for the preloaded data: Data (for Nunjucks templates in prompts), Context (for actions only), or Payload (for agent state)`),
7709
+ DestinationPath: zod_1.z.string().nullable().describe(`
7710
+ * * Field Name: DestinationPath
7711
+ * * Display Name: Destination Path
7712
+ * * SQL Data Type: nvarchar(500)
7713
+ * * Description: Path within the destination where data should be injected. Supports nested paths using dot notation (e.g., "config.api.endpoints", "analysis.orders.recent"). If null, uses Name as root-level key.`),
7714
+ __mj_CreatedAt: zod_1.z.date().describe(`
7715
+ * * Field Name: __mj_CreatedAt
7716
+ * * Display Name: Created At
7717
+ * * SQL Data Type: datetimeoffset
7718
+ * * Default Value: getutcdate()`),
7719
+ __mj_UpdatedAt: zod_1.z.date().describe(`
7720
+ * * Field Name: __mj_UpdatedAt
7721
+ * * Display Name: Updated At
7722
+ * * SQL Data Type: datetimeoffset
7723
+ * * Default Value: getutcdate()`),
7724
+ Agent: zod_1.z.string().nullable().describe(`
7725
+ * * Field Name: Agent
7726
+ * * Display Name: Agent
7727
+ * * SQL Data Type: nvarchar(255)`),
7728
+ });
7549
7729
  /**
7550
7730
  * zod schema definition for the entity MJ: AI Agent Permissions
7551
7731
  */
@@ -7669,9 +7849,9 @@ exports.AIAgentPromptSchema = zod_1.z.object({
7669
7849
  * * Default Value: Active
7670
7850
  * * Value List Type: List
7671
7851
  * * Possible Values
7672
- * * Inactive
7673
- * * Deprecated
7674
7852
  * * Active
7853
+ * * Deprecated
7854
+ * * Inactive
7675
7855
  * * Preview
7676
7856
  * * Description: The current status of this agent-prompt mapping. Values include Active, Inactive, Deprecated, and Preview.`),
7677
7857
  ContextBehavior: zod_1.z.union([zod_1.z.literal('Complete'), zod_1.z.literal('Custom'), zod_1.z.literal('InitialMessages'), zod_1.z.literal('None'), zod_1.z.literal('RecentMessages'), zod_1.z.literal('Smart')]).describe(`
@@ -7681,12 +7861,12 @@ exports.AIAgentPromptSchema = zod_1.z.object({
7681
7861
  * * Default Value: Complete
7682
7862
  * * Value List Type: List
7683
7863
  * * Possible Values
7864
+ * * Complete
7865
+ * * Custom
7684
7866
  * * InitialMessages
7685
7867
  * * None
7686
- * * Smart
7687
7868
  * * RecentMessages
7688
- * * Complete
7689
- * * Custom
7869
+ * * Smart
7690
7870
  * * Description: Determines how conversation context is filtered for this prompt: Complete, Smart, None, RecentMessages, InitialMessages, or Custom.`),
7691
7871
  ContextMessageCount: zod_1.z.number().nullable().describe(`
7692
7872
  * * Field Name: ContextMessageCount
@@ -7744,9 +7924,9 @@ exports.AIAgentRelationshipSchema = zod_1.z.object({
7744
7924
  * * SQL Data Type: nvarchar(50)
7745
7925
  * * Value List Type: List
7746
7926
  * * Possible Values
7747
- * * Revoked
7748
- * * Pending
7749
7927
  * * Active
7928
+ * * Pending
7929
+ * * Revoked
7750
7930
  * * Description: Status of the relationship: Pending (awaiting approval), Active (can invoke), or Revoked (no longer allowed)`),
7751
7931
  __mj_CreatedAt: zod_1.z.date().describe(`
7752
7932
  * * Field Name: __mj_CreatedAt
@@ -7811,11 +7991,11 @@ exports.AIAgentRunStepSchema = zod_1.z.object({
7811
7991
  * * Value List Type: List
7812
7992
  * * Possible Values
7813
7993
  * * Actions
7814
- * * Validation
7815
- * * Sub-Agent
7816
7994
  * * Chat
7817
7995
  * * Decision
7818
7996
  * * Prompt
7997
+ * * Sub-Agent
7998
+ * * Validation
7819
7999
  * * Description: Type of execution step: Prompt, Actions, Sub-Agent, Decision, Chat, Validation`),
7820
8000
  StepName: zod_1.z.string().describe(`
7821
8001
  * * Field Name: StepName
@@ -7834,10 +8014,10 @@ exports.AIAgentRunStepSchema = zod_1.z.object({
7834
8014
  * * Default Value: Running
7835
8015
  * * Value List Type: List
7836
8016
  * * Possible Values
8017
+ * * Cancelled
8018
+ * * Completed
7837
8019
  * * Failed
7838
8020
  * * Running
7839
- * * Completed
7840
- * * Cancelled
7841
8021
  * * Description: Current execution status of this step: Running, Completed, Failed, Cancelled`),
7842
8022
  StartedAt: zod_1.z.date().describe(`
7843
8023
  * * Field Name: StartedAt
@@ -7902,13 +8082,13 @@ exports.AIAgentRunStepSchema = zod_1.z.object({
7902
8082
  * * Value List Type: List
7903
8083
  * * Possible Values
7904
8084
  * * Fail
7905
- * * Pass
7906
- * * Warn
7907
8085
  * * Fail
7908
- * * Warn
8086
+ * * Pass
7909
8087
  * * Pass
7910
8088
  * * Retry
7911
8089
  * * Retry
8090
+ * * Warn
8091
+ * * Warn
7912
8092
  * * Description: Result of the final payload validation for this step. Pass indicates successful
7913
8093
  validation, Retry means validation failed but will retry, Fail means validation failed
7914
8094
  permanently, Warn means validation failed but execution continues.`),
@@ -7963,11 +8143,11 @@ exports.AIAgentRunSchema = zod_1.z.object({
7963
8143
  * * Default Value: Running
7964
8144
  * * Value List Type: List
7965
8145
  * * Possible Values
7966
- * * Failed
7967
- * * Running
7968
8146
  * * Cancelled
7969
- * * Paused
7970
8147
  * * Completed
8148
+ * * Failed
8149
+ * * Paused
8150
+ * * Running
7971
8151
  * * Description: Current status of the agent run. Running -> Completed/Failed/Cancelled`),
7972
8152
  StartedAt: zod_1.z.date().describe(`
7973
8153
  * * Field Name: StartedAt
@@ -8081,9 +8261,9 @@ exports.AIAgentRunSchema = zod_1.z.object({
8081
8261
  * * SQL Data Type: nvarchar(30)
8082
8262
  * * Value List Type: List
8083
8263
  * * Possible Values
8084
- * * User Request
8085
- * * Timeout
8086
8264
  * * System
8265
+ * * Timeout
8266
+ * * User Request
8087
8267
  * * Description: Reason for cancellation if the agent run was cancelled`),
8088
8268
  FinalStep: zod_1.z.union([zod_1.z.literal('Actions'), zod_1.z.literal('Chat'), zod_1.z.literal('Failed'), zod_1.z.literal('Retry'), zod_1.z.literal('Sub-Agent'), zod_1.z.literal('Success')]).nullable().describe(`
8089
8269
  * * Field Name: FinalStep
@@ -8091,12 +8271,12 @@ exports.AIAgentRunSchema = zod_1.z.object({
8091
8271
  * * SQL Data Type: nvarchar(30)
8092
8272
  * * Value List Type: List
8093
8273
  * * Possible Values
8274
+ * * Actions
8094
8275
  * * Chat
8276
+ * * Failed
8095
8277
  * * Retry
8096
- * * Actions
8097
8278
  * * Sub-Agent
8098
8279
  * * Success
8099
- * * Failed
8100
8280
  * * Description: The final step type that concluded the agent run`),
8101
8281
  FinalPayload: zod_1.z.string().nullable().describe(`
8102
8282
  * * Field Name: FinalPayload
@@ -8294,9 +8474,9 @@ exports.AIAgentStepSchema = zod_1.z.object({
8294
8474
  * * SQL Data Type: nvarchar(20)
8295
8475
  * * Value List Type: List
8296
8476
  * * Possible Values
8297
- * * Sub-Agent
8298
- * * Prompt
8299
8477
  * * Action
8478
+ * * Prompt
8479
+ * * Sub-Agent
8300
8480
  * * Description: Type of step: Action (execute an action), Sub-Agent (delegate to another agent), or Prompt (run an AI prompt)`),
8301
8481
  StartingStep: zod_1.z.boolean().describe(`
8302
8482
  * * Field Name: StartingStep
@@ -8321,8 +8501,8 @@ exports.AIAgentStepSchema = zod_1.z.object({
8321
8501
  * * Default Value: fail
8322
8502
  * * Value List Type: List
8323
8503
  * * Possible Values
8324
- * * fail
8325
8504
  * * continue
8505
+ * * fail
8326
8506
  * * retry`),
8327
8507
  ActionID: zod_1.z.string().nullable().describe(`
8328
8508
  * * Field Name: ActionID
@@ -8381,8 +8561,8 @@ exports.AIAgentStepSchema = zod_1.z.object({
8381
8561
  * * Default Value: Active
8382
8562
  * * Value List Type: List
8383
8563
  * * Possible Values
8384
- * * Disabled
8385
8564
  * * Active
8565
+ * * Disabled
8386
8566
  * * Pending
8387
8567
  * * Description: Controls whether this step is executed. Active=normal execution, Pending=skip but may activate later, Disabled=never execute`),
8388
8568
  ActionInputMapping: zod_1.z.string().nullable().describe(`
@@ -8506,11 +8686,11 @@ exports.AIConfigurationParamSchema = zod_1.z.object({
8506
8686
  * * Default Value: string
8507
8687
  * * Value List Type: List
8508
8688
  * * Possible Values
8509
- * * date
8510
8689
  * * boolean
8690
+ * * date
8511
8691
  * * number
8512
- * * string
8513
8692
  * * object
8693
+ * * string
8514
8694
  * * Description: The data type of the parameter (string, number, boolean, date, object).`),
8515
8695
  Value: zod_1.z.string().describe(`
8516
8696
  * * Field Name: Value
@@ -8569,9 +8749,9 @@ exports.AIConfigurationSchema = zod_1.z.object({
8569
8749
  * * Default Value: Active
8570
8750
  * * Value List Type: List
8571
8751
  * * Possible Values
8572
- * * Inactive
8573
- * * Deprecated
8574
8752
  * * Active
8753
+ * * Deprecated
8754
+ * * Inactive
8575
8755
  * * Preview
8576
8756
  * * Description: The current status of the configuration. Values include Active, Inactive, Deprecated, and Preview.`),
8577
8757
  DefaultPromptForContextCompressionID: zod_1.z.string().nullable().describe(`
@@ -8641,10 +8821,10 @@ exports.AIModelCostSchema = zod_1.z.object({
8641
8821
  * * SQL Data Type: nvarchar(20)
8642
8822
  * * Value List Type: List
8643
8823
  * * Possible Values
8644
- * * Pending
8645
- * * Expired
8646
8824
  * * Active
8825
+ * * Expired
8647
8826
  * * Invalid
8827
+ * * Pending
8648
8828
  * * Description: Current status of this pricing record. Active=currently in use, Pending=scheduled for future, Expired=no longer valid, Invalid=data error`),
8649
8829
  Currency: zod_1.z.string().describe(`
8650
8830
  * * Field Name: Currency
@@ -8809,10 +8989,10 @@ exports.AIModelVendorSchema = zod_1.z.object({
8809
8989
  * * Default Value: Active
8810
8990
  * * Value List Type: List
8811
8991
  * * Possible Values
8812
- * * Preview
8813
- * * Deprecated
8814
8992
  * * Active
8993
+ * * Deprecated
8815
8994
  * * Inactive
8995
+ * * Preview
8816
8996
  * * Description: The current status of this model-vendor combination. Values include Active, Inactive, Deprecated, and Preview.`),
8817
8997
  DriverClass: zod_1.z.string().nullable().describe(`
8818
8998
  * * Field Name: DriverClass
@@ -8943,9 +9123,9 @@ exports.AIPromptModelSchema = zod_1.z.object({
8943
9123
  * * Default Value: Active
8944
9124
  * * Value List Type: List
8945
9125
  * * Possible Values
8946
- * * Inactive
8947
9126
  * * Active
8948
9127
  * * Deprecated
9128
+ * * Inactive
8949
9129
  * * Preview
8950
9130
  * * Description: The current status of this model configuration. Values include Active, Inactive, Deprecated, and Preview.`),
8951
9131
  ParallelizationMode: zod_1.z.union([zod_1.z.literal('ConfigParam'), zod_1.z.literal('None'), zod_1.z.literal('StaticCount')]).describe(`
@@ -8955,9 +9135,9 @@ exports.AIPromptModelSchema = zod_1.z.object({
8955
9135
  * * Default Value: None
8956
9136
  * * Value List Type: List
8957
9137
  * * Possible Values
9138
+ * * ConfigParam
8958
9139
  * * None
8959
9140
  * * StaticCount
8960
- * * ConfigParam
8961
9141
  * * Description: Controls how this model participates in parallelization: None, StaticCount, or ConfigParam.`),
8962
9142
  ParallelCount: zod_1.z.number().describe(`
8963
9143
  * * Field Name: ParallelCount
@@ -9116,10 +9296,10 @@ exports.AIPromptRunSchema = zod_1.z.object({
9116
9296
  * * Default Value: Single
9117
9297
  * * Value List Type: List
9118
9298
  * * Possible Values
9119
- * * ParallelParent
9120
9299
  * * ParallelChild
9121
- * * Single
9300
+ * * ParallelParent
9122
9301
  * * ResultSelector
9302
+ * * Single
9123
9303
  * * Description: Type of prompt run execution: Single (standard single prompt), ParallelParent (coordinator for parallel execution), ParallelChild (individual parallel execution), ResultSelector (result selection prompt that chooses best result)`),
9124
9304
  ExecutionOrder: zod_1.z.number().nullable().describe(`
9125
9305
  * * Field Name: ExecutionOrder
@@ -9337,11 +9517,11 @@ exports.AIPromptRunSchema = zod_1.z.object({
9337
9517
  * * Default Value: Pending
9338
9518
  * * Value List Type: List
9339
9519
  * * Possible Values
9340
- * * Running
9341
- * * Pending
9342
- * * Failed
9343
9520
  * * Cancelled
9344
9521
  * * Completed
9522
+ * * Failed
9523
+ * * Pending
9524
+ * * Running
9345
9525
  * * Description: Current execution status of the prompt run. Valid values: Pending, Running, Completed, Failed, Cancelled`),
9346
9526
  Cancelled: zod_1.z.boolean().describe(`
9347
9527
  * * Field Name: Cancelled
@@ -9366,8 +9546,8 @@ exports.AIPromptRunSchema = zod_1.z.object({
9366
9546
  * * Value List Type: List
9367
9547
  * * Possible Values
9368
9548
  * * ByPower
9369
- * * Specific
9370
9549
  * * Default
9550
+ * * Specific
9371
9551
  * * Description: Strategy used for model selection. Valid values: Default (system default), Specific (specific models configured), ByPower (based on power ranking)`),
9372
9552
  CacheHit: zod_1.z.boolean().describe(`
9373
9553
  * * Field Name: CacheHit
@@ -9556,10 +9736,10 @@ exports.AIVendorTypeSchema = zod_1.z.object({
9556
9736
  * * Default Value: Active
9557
9737
  * * Value List Type: List
9558
9738
  * * Possible Values
9559
- * * Inactive
9560
9739
  * * Active
9561
- * * Preview
9562
9740
  * * Deprecated
9741
+ * * Inactive
9742
+ * * Preview
9563
9743
  * * Description: The current status of this vendor type. Values include Active, Inactive, Deprecated, and Preview.`),
9564
9744
  __mj_CreatedAt: zod_1.z.date().describe(`
9565
9745
  * * Field Name: __mj_CreatedAt
@@ -9610,6 +9790,78 @@ exports.AIVendorSchema = zod_1.z.object({
9610
9790
  * * SQL Data Type: datetimeoffset
9611
9791
  * * Default Value: getutcdate()`),
9612
9792
  });
9793
+ /**
9794
+ * zod schema definition for the entity MJ: Artifact Permissions
9795
+ */
9796
+ exports.ArtifactPermissionSchema = zod_1.z.object({
9797
+ ID: zod_1.z.string().describe(`
9798
+ * * Field Name: ID
9799
+ * * Display Name: ID
9800
+ * * SQL Data Type: uniqueidentifier
9801
+ * * Default Value: newsequentialid()`),
9802
+ ArtifactID: zod_1.z.string().describe(`
9803
+ * * Field Name: ArtifactID
9804
+ * * Display Name: Artifact ID
9805
+ * * SQL Data Type: uniqueidentifier
9806
+ * * Related Entity/Foreign Key: MJ: Artifacts (vwArtifacts.ID)`),
9807
+ UserID: zod_1.z.string().describe(`
9808
+ * * Field Name: UserID
9809
+ * * Display Name: User ID
9810
+ * * SQL Data Type: uniqueidentifier
9811
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)`),
9812
+ CanRead: zod_1.z.boolean().describe(`
9813
+ * * Field Name: CanRead
9814
+ * * Display Name: Can Read
9815
+ * * SQL Data Type: bit
9816
+ * * Default Value: 1
9817
+ * * Description: Whether the user can view/read the artifact`),
9818
+ CanEdit: zod_1.z.boolean().describe(`
9819
+ * * Field Name: CanEdit
9820
+ * * Display Name: Can Edit
9821
+ * * SQL Data Type: bit
9822
+ * * Default Value: 0
9823
+ * * Description: Whether the user can modify the artifact or create new versions`),
9824
+ CanDelete: zod_1.z.boolean().describe(`
9825
+ * * Field Name: CanDelete
9826
+ * * Display Name: Can Delete
9827
+ * * SQL Data Type: bit
9828
+ * * Default Value: 0
9829
+ * * Description: Whether the user can delete the artifact`),
9830
+ CanShare: zod_1.z.boolean().describe(`
9831
+ * * Field Name: CanShare
9832
+ * * Display Name: Can Share
9833
+ * * SQL Data Type: bit
9834
+ * * Default Value: 0
9835
+ * * Description: Whether the user can share the artifact with other users`),
9836
+ SharedByUserID: zod_1.z.string().nullable().describe(`
9837
+ * * Field Name: SharedByUserID
9838
+ * * Display Name: Shared By User ID
9839
+ * * SQL Data Type: uniqueidentifier
9840
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
9841
+ * * Description: Foreign key to the User who shared this artifact (if shared)`),
9842
+ __mj_CreatedAt: zod_1.z.date().describe(`
9843
+ * * Field Name: __mj_CreatedAt
9844
+ * * Display Name: Created At
9845
+ * * SQL Data Type: datetimeoffset
9846
+ * * Default Value: getutcdate()`),
9847
+ __mj_UpdatedAt: zod_1.z.date().describe(`
9848
+ * * Field Name: __mj_UpdatedAt
9849
+ * * Display Name: Updated At
9850
+ * * SQL Data Type: datetimeoffset
9851
+ * * Default Value: getutcdate()`),
9852
+ Artifact: zod_1.z.string().describe(`
9853
+ * * Field Name: Artifact
9854
+ * * Display Name: Artifact
9855
+ * * SQL Data Type: nvarchar(255)`),
9856
+ User: zod_1.z.string().describe(`
9857
+ * * Field Name: User
9858
+ * * Display Name: User
9859
+ * * SQL Data Type: nvarchar(100)`),
9860
+ SharedByUser: zod_1.z.string().nullable().describe(`
9861
+ * * Field Name: SharedByUser
9862
+ * * Display Name: Shared By User
9863
+ * * SQL Data Type: nvarchar(100)`),
9864
+ });
9613
9865
  /**
9614
9866
  * zod schema definition for the entity MJ: Artifact Types
9615
9867
  */
@@ -9710,10 +9962,10 @@ exports.ArtifactVersionAttributeSchema = zod_1.z.object({
9710
9962
  * * SQL Data Type: nvarchar(50)
9711
9963
  * * Value List Type: List
9712
9964
  * * Possible Values
9965
+ * * description
9713
9966
  * * displayHtml
9714
- * * name
9715
9967
  * * displayMarkdown
9716
- * * description
9968
+ * * name
9717
9969
  * * Description: Maps this attribute to a standard property for UI rendering: 'name', 'description', 'displayMarkdown', 'displayHtml', or NULL for custom attributes`),
9718
9970
  __mj_CreatedAt: zod_1.z.date().describe(`
9719
9971
  * * Field Name: __mj_CreatedAt
@@ -9853,6 +10105,16 @@ exports.ArtifactSchema = zod_1.z.object({
9853
10105
  * * Display Name: Updated At
9854
10106
  * * SQL Data Type: datetimeoffset
9855
10107
  * * Default Value: getutcdate()`),
10108
+ Visibility: zod_1.z.union([zod_1.z.literal('Always'), zod_1.z.literal('System Only')]).describe(`
10109
+ * * Field Name: Visibility
10110
+ * * Display Name: Visibility
10111
+ * * SQL Data Type: nvarchar(20)
10112
+ * * Default Value: Always
10113
+ * * Value List Type: List
10114
+ * * Possible Values
10115
+ * * System Only
10116
+ * * Always
10117
+ * * Description: Controls artifact visibility in user-facing lists. "Always" shows in all lists, "System Only" hides from normal views (for system-generated artifacts like agent routing payloads).`),
9856
10118
  Environment: zod_1.z.string().describe(`
9857
10119
  * * Field Name: Environment
9858
10120
  * * Display Name: Environment
@@ -10137,12 +10399,12 @@ exports.ComponentLibrarySchema = zod_1.z.object({
10137
10399
  * * SQL Data Type: nvarchar(100)
10138
10400
  * * Value List Type: List
10139
10401
  * * Possible Values
10140
- * * Other
10141
10402
  * * Charting
10142
- * * Runtime
10143
- * * Utility
10144
10403
  * * Core
10404
+ * * Other
10405
+ * * Runtime
10145
10406
  * * UI
10407
+ * * Utility
10146
10408
  * * Description: Library category: Core, Runtime, UI, Charting, Utility, or Other`),
10147
10409
  CDNUrl: zod_1.z.string().nullable().describe(`
10148
10410
  * * Field Name: CDNUrl
@@ -10176,9 +10438,9 @@ exports.ComponentLibrarySchema = zod_1.z.object({
10176
10438
  * * Default Value: Active
10177
10439
  * * Value List Type: List
10178
10440
  * * Possible Values
10179
- * * Disabled
10180
- * * Deprecated
10181
10441
  * * Active
10442
+ * * Deprecated
10443
+ * * Disabled
10182
10444
  * * Description: Status of the component library. Active: fully supported; Deprecated: works but shows console warning; Disabled: throws error if used`),
10183
10445
  LintRules: zod_1.z.string().nullable().describe(`
10184
10446
  * * Field Name: LintRules
@@ -10295,8 +10557,8 @@ exports.ComponentRegistrySchema = zod_1.z.object({
10295
10557
  * * Value List Type: List
10296
10558
  * * Possible Values
10297
10559
  * * Active
10298
- * * Offline
10299
10560
  * * Deprecated
10561
+ * * Offline
10300
10562
  * * Description: Current status of the registry: active, deprecated, or offline`),
10301
10563
  __mj_CreatedAt: zod_1.z.date().describe(`
10302
10564
  * * Field Name: __mj_CreatedAt
@@ -10356,16 +10618,16 @@ exports.ComponentSchema = zod_1.z.object({
10356
10618
  * * SQL Data Type: nvarchar(255)
10357
10619
  * * Value List Type: List
10358
10620
  * * Possible Values
10359
- * * Other
10360
- * * Widget
10361
10621
  * * Chart
10362
- * * Navigation
10363
10622
  * * Dashboard
10623
+ * * Form
10624
+ * * Navigation
10625
+ * * Other
10626
+ * * Report
10364
10627
  * * Search
10365
10628
  * * Table
10366
10629
  * * Utility
10367
- * * Report
10368
- * * Form
10630
+ * * Widget
10369
10631
  * * Description: Component type: report, dashboard, form, table, chart, navigation, search, widget, utility, or other`),
10370
10632
  Status: zod_1.z.union([zod_1.z.literal('Deprecated'), zod_1.z.literal('Draft'), zod_1.z.literal('Published')]).nullable().describe(`
10371
10633
  * * Field Name: Status
@@ -10373,9 +10635,9 @@ exports.ComponentSchema = zod_1.z.object({
10373
10635
  * * SQL Data Type: nvarchar(50)
10374
10636
  * * Value List Type: List
10375
10637
  * * Possible Values
10376
- * * Published
10377
- * * Draft
10378
10638
  * * Deprecated
10639
+ * * Draft
10640
+ * * Published
10379
10641
  * * Description: Publication status: draft, published, or deprecated`),
10380
10642
  DeveloperName: zod_1.z.string().nullable().describe(`
10381
10643
  * * Field Name: DeveloperName
@@ -10514,9 +10776,9 @@ exports.ConversationArtifactPermissionSchema = zod_1.z.object({
10514
10776
  * * SQL Data Type: nvarchar(20)
10515
10777
  * * Value List Type: List
10516
10778
  * * Possible Values
10779
+ * * Edit
10517
10780
  * * Owner
10518
10781
  * * Read
10519
- * * Edit
10520
10782
  * * Description: Level of access granted (Read, Edit, Owner)`),
10521
10783
  __mj_CreatedAt: zod_1.z.date().describe(`
10522
10784
  * * Field Name: __mj_CreatedAt
@@ -10621,9 +10883,9 @@ exports.ConversationArtifactSchema = zod_1.z.object({
10621
10883
  * * Value List Type: List
10622
10884
  * * Possible Values
10623
10885
  * * Everyone
10886
+ * * None
10624
10887
  * * Public
10625
10888
  * * SpecificUsers
10626
- * * None
10627
10889
  * * Description: Controls who can view this artifact (None, SpecificUsers, Everyone, Public)`),
10628
10890
  Comments: zod_1.z.string().nullable().describe(`
10629
10891
  * * Field Name: Comments
@@ -10930,8 +11192,8 @@ exports.PublicLinkSchema = zod_1.z.object({
10930
11192
  * * Value List Type: List
10931
11193
  * * Possible Values
10932
11194
  * * Artifact
10933
- * * Conversation
10934
11195
  * * Collection
11196
+ * * Conversation
10935
11197
  * * Description: Type of resource being shared (Artifact, Conversation, Collection)`),
10936
11198
  ResourceID: zod_1.z.string().describe(`
10937
11199
  * * Field Name: ResourceID
@@ -11014,11 +11276,11 @@ exports.QueryParameterSchema = zod_1.z.object({
11014
11276
  * * SQL Data Type: nvarchar(50)
11015
11277
  * * Value List Type: List
11016
11278
  * * Possible Values
11017
- * * date
11018
- * * string
11019
- * * boolean
11020
11279
  * * array
11280
+ * * boolean
11281
+ * * date
11021
11282
  * * number
11283
+ * * string
11022
11284
  * * Description: The data type of the parameter used for validation and type conversion. Valid values are: "string" for text values, "number" for integers or decimals, "date" for date/datetime values (ISO 8601 format expected), "boolean" for true/false values, and "array" for multiple values (typically used with IN clauses). The type determines which validation filters can be applied and how the parameter is processed.`),
11023
11285
  IsRequired: zod_1.z.boolean().nullable().describe(`
11024
11286
  * * Field Name: IsRequired
@@ -11269,11 +11531,11 @@ exports.ScheduledJobRunSchema = zod_1.z.object({
11269
11531
  * * Default Value: Running
11270
11532
  * * Value List Type: List
11271
11533
  * * Possible Values
11272
- * * Running
11273
- * * Timeout
11274
- * * Completed
11275
11534
  * * Cancelled
11535
+ * * Completed
11276
11536
  * * Failed
11537
+ * * Running
11538
+ * * Timeout
11277
11539
  * * Description: Current status of the job execution. Running=currently executing, Completed=finished (check Success for outcome), Failed=exception during execution, Cancelled=manually cancelled, Timeout=exceeded maximum execution time.`),
11278
11540
  Success: zod_1.z.boolean().nullable().describe(`
11279
11541
  * * Field Name: Success
@@ -11423,11 +11685,11 @@ exports.ScheduledJobSchema = zod_1.z.object({
11423
11685
  * * Default Value: Pending
11424
11686
  * * Value List Type: List
11425
11687
  * * Possible Values
11426
- * * Paused
11688
+ * * Active
11427
11689
  * * Disabled
11428
11690
  * * Expired
11691
+ * * Paused
11429
11692
  * * Pending
11430
- * * Active
11431
11693
  * * Description: Current status of the schedule. Pending=created but not yet active, Active=currently running on schedule, Paused=temporarily stopped, Disabled=manually disabled, Expired=past EndAt date.`),
11432
11694
  Configuration: zod_1.z.string().nullable().describe(`
11433
11695
  * * Field Name: Configuration
@@ -11525,8 +11787,8 @@ exports.ScheduledJobSchema = zod_1.z.object({
11525
11787
  * * Default Value: Skip
11526
11788
  * * Value List Type: List
11527
11789
  * * Possible Values
11528
- * * Queue
11529
11790
  * * Concurrent
11791
+ * * Queue
11530
11792
  * * Skip
11531
11793
  * * Description: Controls behavior when a new execution is scheduled while a previous execution is still running. Skip=do not start new execution (default), Queue=wait for current to finish then execute, Concurrent=allow multiple simultaneous executions.`),
11532
11794
  __mj_CreatedAt: zod_1.z.date().describe(`
@@ -11578,9 +11840,9 @@ exports.TaskDependencySchema = zod_1.z.object({
11578
11840
  * * Default Value: Prerequisite
11579
11841
  * * Value List Type: List
11580
11842
  * * Possible Values
11581
- * * Prerequisite
11582
11843
  * * Corequisite
11583
11844
  * * Optional
11845
+ * * Prerequisite
11584
11846
  * * Description: Type of dependency relationship (Prerequisite, Corequisite, Optional)`),
11585
11847
  __mj_CreatedAt: zod_1.z.date().describe(`
11586
11848
  * * Field Name: __mj_CreatedAt
@@ -11694,12 +11956,12 @@ exports.TaskSchema = zod_1.z.object({
11694
11956
  * * Value List Type: List
11695
11957
  * * Possible Values
11696
11958
  * * Blocked
11697
- * * Failed
11959
+ * * Cancelled
11960
+ * * Complete
11698
11961
  * * Deferred
11962
+ * * Failed
11699
11963
  * * In Progress
11700
11964
  * * Pending
11701
- * * Cancelled
11702
- * * Complete
11703
11965
  * * Description: Current status of the task (Pending, In Progress, Complete, Cancelled, Failed, Blocked, Deferred)`),
11704
11966
  PercentComplete: zod_1.z.number().nullable().describe(`
11705
11967
  * * Field Name: PercentComplete
@@ -11904,10 +12166,10 @@ exports.QuerySchema = zod_1.z.object({
11904
12166
  * * Default Value: Pending
11905
12167
  * * Value List Type: List
11906
12168
  * * Possible Values
11907
- * * Pending
11908
- * * Rejected
11909
12169
  * * Approved
11910
- * * Expired`),
12170
+ * * Expired
12171
+ * * Pending
12172
+ * * Rejected`),
11911
12173
  QualityRank: zod_1.z.number().nullable().describe(`
11912
12174
  * * Field Name: QualityRank
11913
12175
  * * Display Name: Quality Rank
@@ -12088,8 +12350,8 @@ exports.QueryEntitySchema = zod_1.z.object({
12088
12350
  * * Default Value: Manual
12089
12351
  * * Value List Type: List
12090
12352
  * * Possible Values
12091
- * * Manual
12092
12353
  * * AI
12354
+ * * Manual
12093
12355
  * * Description: Indicates how this entity-query relationship was identified. "AI" means the QueryEntityServer used LLM analysis to parse the SQL/template and identify which MemberJunction entities are referenced (by analyzing table names, joins, and query structure). "Manual" means a user explicitly marked this entity as being used by the query. AI detection helps maintain accurate metadata automatically as queries evolve.`),
12094
12356
  AutoDetectConfidenceScore: zod_1.z.number().nullable().describe(`
12095
12357
  * * Field Name: AutoDetectConfidenceScore
@@ -12267,8 +12529,8 @@ exports.QueueTaskSchema = zod_1.z.object({
12267
12529
  * * Default Value: Pending
12268
12530
  * * Value List Type: List
12269
12531
  * * Possible Values
12270
- * * Failed
12271
12532
  * * Completed
12533
+ * * Failed
12272
12534
  * * In Progress`),
12273
12535
  StartedAt: zod_1.z.date().nullable().describe(`
12274
12536
  * * Field Name: StartedAt
@@ -12567,11 +12829,11 @@ exports.RecommendationRunSchema = zod_1.z.object({
12567
12829
  * * SQL Data Type: nvarchar(50)
12568
12830
  * * Value List Type: List
12569
12831
  * * Possible Values
12570
- * * Pending
12832
+ * * Canceled
12571
12833
  * * Completed
12572
12834
  * * Error
12573
12835
  * * In Progress
12574
- * * Canceled
12836
+ * * Pending
12575
12837
  * * Description: The status of the recommendation run`),
12576
12838
  Description: zod_1.z.string().nullable().describe(`
12577
12839
  * * Field Name: Description
@@ -12666,9 +12928,9 @@ exports.RecordChangeReplayRunSchema = zod_1.z.object({
12666
12928
  * * Value List Type: List
12667
12929
  * * Possible Values
12668
12930
  * * Complete
12669
- * * Pending
12670
- * * In Progress
12671
12931
  * * Error
12932
+ * * In Progress
12933
+ * * Pending
12672
12934
  * * Description: Status of the replay run (Pending, In Progress, Complete, Error)`),
12673
12935
  UserID: zod_1.z.string().describe(`
12674
12936
  * * Field Name: UserID
@@ -12720,9 +12982,9 @@ exports.RecordChangeSchema = zod_1.z.object({
12720
12982
  * * Default Value: Create
12721
12983
  * * Value List Type: List
12722
12984
  * * Possible Values
12723
- * * Update
12724
12985
  * * Create
12725
12986
  * * Delete
12987
+ * * Update
12726
12988
  * * Description: Create, Update, or Delete`),
12727
12989
  Source: zod_1.z.union([zod_1.z.literal('External'), zod_1.z.literal('Internal')]).describe(`
12728
12990
  * * Field Name: Source
@@ -12761,9 +13023,9 @@ exports.RecordChangeSchema = zod_1.z.object({
12761
13023
  * * Default Value: Complete
12762
13024
  * * Value List Type: List
12763
13025
  * * Possible Values
12764
- * * Pending
12765
13026
  * * Complete
12766
13027
  * * Error
13028
+ * * Pending
12767
13029
  * * Description: For internal record changes generated within MJ, the status is immediately Complete. For external changes that are detected, the workflow starts off as Pending, then In Progress and finally either Complete or Error`),
12768
13030
  ErrorLog: zod_1.z.string().nullable().describe(`
12769
13031
  * * Field Name: ErrorLog
@@ -12835,8 +13097,8 @@ exports.RecordMergeDeletionLogSchema = zod_1.z.object({
12835
13097
  * * Value List Type: List
12836
13098
  * * Possible Values
12837
13099
  * * Complete
12838
- * * Pending
12839
- * * Error`),
13100
+ * * Error
13101
+ * * Pending`),
12840
13102
  ProcessingLog: zod_1.z.string().nullable().describe(`
12841
13103
  * * Field Name: ProcessingLog
12842
13104
  * * Display Name: Processing Log
@@ -12884,8 +13146,8 @@ exports.RecordMergeLogSchema = zod_1.z.object({
12884
13146
  * * Default Value: Pending
12885
13147
  * * Value List Type: List
12886
13148
  * * Possible Values
12887
- * * Pending
12888
13149
  * * Approved
13150
+ * * Pending
12889
13151
  * * Rejected
12890
13152
  * * Description: Field ApprovalStatus for entity Record Merge Logs.`),
12891
13153
  ApprovedByUserID: zod_1.z.string().nullable().describe(`
@@ -12901,8 +13163,8 @@ exports.RecordMergeLogSchema = zod_1.z.object({
12901
13163
  * * Value List Type: List
12902
13164
  * * Possible Values
12903
13165
  * * Complete
12904
- * * Started
12905
13166
  * * Error
13167
+ * * Started
12906
13168
  * * Description: Field ProcessingStatus for entity Record Merge Logs.`),
12907
13169
  ProcessingStartedAt: zod_1.z.date().describe(`
12908
13170
  * * Field Name: ProcessingStartedAt
@@ -13074,9 +13336,9 @@ exports.ReportSchema = zod_1.z.object({
13074
13336
  * * Default Value: Personal
13075
13337
  * * Value List Type: List
13076
13338
  * * Possible Values
13077
- * * Specific
13078
- * * None
13079
13339
  * * Everyone
13340
+ * * None
13341
+ * * Specific
13080
13342
  * * Description: Field SharingScope for entity Reports.`),
13081
13343
  ConversationID: zod_1.z.string().nullable().describe(`
13082
13344
  * * Field Name: ConversationID
@@ -13292,9 +13554,9 @@ exports.ResourcePermissionSchema = zod_1.z.object({
13292
13554
  * * SQL Data Type: nvarchar(20)
13293
13555
  * * Value List Type: List
13294
13556
  * * Possible Values
13295
- * * View
13296
13557
  * * Edit
13297
13558
  * * Owner
13559
+ * * View
13298
13560
  * * Description: Permission level defining the type of access (View, Edit, Owner)`),
13299
13561
  __mj_CreatedAt: zod_1.z.date().describe(`
13300
13562
  * * Field Name: __mj_CreatedAt
@@ -13313,9 +13575,9 @@ exports.ResourcePermissionSchema = zod_1.z.object({
13313
13575
  * * Default Value: Requested
13314
13576
  * * Value List Type: List
13315
13577
  * * Possible Values
13316
- * * Requested
13317
13578
  * * Approved
13318
13579
  * * Rejected
13580
+ * * Requested
13319
13581
  * * Revoked
13320
13582
  * * Description: Status of the resource permission request. Possible values are Requested, Approved, Rejected, or Revoked.`),
13321
13583
  ResourceType: zod_1.z.string().describe(`
@@ -13545,9 +13807,9 @@ exports.ScheduledActionSchema = zod_1.z.object({
13545
13807
  * * SQL Data Type: nvarchar(20)
13546
13808
  * * Value List Type: List
13547
13809
  * * Possible Values
13810
+ * * Custom
13548
13811
  * * Daily
13549
13812
  * * Monthly
13550
- * * Custom
13551
13813
  * * Weekly
13552
13814
  * * Yearly
13553
13815
  * * Description: Type of the scheduled action (Daily, Weekly, Monthly, Yearly, Custom)`),
@@ -13568,9 +13830,9 @@ exports.ScheduledActionSchema = zod_1.z.object({
13568
13830
  * * Default Value: Pending
13569
13831
  * * Value List Type: List
13570
13832
  * * Possible Values
13833
+ * * Active
13571
13834
  * * Disabled
13572
13835
  * * Expired
13573
- * * Active
13574
13836
  * * Pending
13575
13837
  * * Description: Status of the scheduled action (Pending, Active, Disabled, Expired)`),
13576
13838
  IntervalDays: zod_1.z.number().nullable().describe(`
@@ -13858,14 +14120,14 @@ exports.TemplateContentTypeSchema = zod_1.z.object({
13858
14120
  * * Default Value: Other
13859
14121
  * * Value List Type: List
13860
14122
  * * Possible Values
13861
- * * HTML
13862
14123
  * * CSS
14124
+ * * HTML
13863
14125
  * * JSON
13864
- * * Python
13865
- * * Other
13866
- * * TypeScript
13867
14126
  * * JavaScript
13868
14127
  * * Nunjucks
14128
+ * * Other
14129
+ * * Python
14130
+ * * TypeScript
13869
14131
  * * Description: Refers to the primary language or codetype of the templates of this type, HTML, JSON, JavaScript, etc`),
13870
14132
  __mj_CreatedAt: zod_1.z.date().describe(`
13871
14133
  * * Field Name: __mj_CreatedAt
@@ -13963,11 +14225,11 @@ exports.TemplateParamSchema = zod_1.z.object({
13963
14225
  * * Default Value: Scalar
13964
14226
  * * Value List Type: List
13965
14227
  * * Possible Values
13966
- * * Record
13967
14228
  * * Array
14229
+ * * Entity
13968
14230
  * * Object
14231
+ * * Record
13969
14232
  * * Scalar
13970
- * * Entity
13971
14233
  * * Description: Type of the parameter - Record is an individual record within the entity specified by EntityID. Entity means an entire Entity or an entity filtered by the LinkedParameterName/Field attributes and/or ExtraFilter. Object is any valid JSON object. Array and Scalar have their common meanings.`),
13972
14234
  DefaultValue: zod_1.z.string().nullable().describe(`
13973
14235
  * * Field Name: DefaultValue
@@ -14773,6 +15035,16 @@ exports.UserSchema = zod_1.z.object({
14773
15035
  * * Display Name: __mj _Updated At
14774
15036
  * * SQL Data Type: datetimeoffset
14775
15037
  * * Default Value: getutcdate()`),
15038
+ UserImageURL: zod_1.z.string().nullable().describe(`
15039
+ * * Field Name: UserImageURL
15040
+ * * Display Name: User Image URL
15041
+ * * SQL Data Type: nvarchar(MAX)
15042
+ * * Description: User avatar image. Can be a Base64 encoded data URI (e.g., "data:image/png;base64,...") or a URL to an image file. Preferred over UserImageIconClass when present. Recommended for small thumbnail images only to maintain performance.`),
15043
+ UserImageIconClass: zod_1.z.string().nullable().describe(`
15044
+ * * Field Name: UserImageIconClass
15045
+ * * Display Name: User Image Icon Class
15046
+ * * SQL Data Type: nvarchar(100)
15047
+ * * Description: Font Awesome icon class for user avatar (e.g., "fa-solid fa-user-astronaut"). Used as fallback when UserImageURL is not provided. Example classes: "fa-solid fa-user", "fa-regular fa-circle-user", "fa-solid fa-user-tie".`),
14776
15048
  FirstLast: zod_1.z.string().nullable().describe(`
14777
15049
  * * Field Name: FirstLast
14778
15050
  * * Display Name: First Last
@@ -14928,10 +15200,10 @@ exports.VersionInstallationSchema = zod_1.z.object({
14928
15200
  * * Default Value: Pending
14929
15201
  * * Value List Type: List
14930
15202
  * * Possible Values
14931
- * * In Progress
14932
15203
  * * Complete
14933
- * * Pending
14934
15204
  * * Failed
15205
+ * * In Progress
15206
+ * * Pending
14935
15207
  * * Description: Pending, Complete, Failed`),
14936
15208
  InstallLog: zod_1.z.string().nullable().describe(`
14937
15209
  * * Field Name: InstallLog
@@ -15088,12 +15360,12 @@ exports.WorkflowSchema = zod_1.z.object({
15088
15360
  * * SQL Data Type: nvarchar(20)
15089
15361
  * * Value List Type: List
15090
15362
  * * Possible Values
15091
- * * Weeks
15092
- * * Years
15093
- * * Hours
15094
- * * Months
15095
15363
  * * Days
15364
+ * * Hours
15096
15365
  * * Minutes
15366
+ * * Months
15367
+ * * Weeks
15368
+ * * Years
15097
15369
  * * Description: Minutes, Hours, Days, Weeks, Months, Years`),
15098
15370
  AutoRunInterval: zod_1.z.number().nullable().describe(`
15099
15371
  * * Field Name: AutoRunInterval
@@ -15415,8 +15687,8 @@ let ActionCategoryEntity = class ActionCategoryEntity extends core_1.BaseEntity
15415
15687
  * * Default Value: Pending
15416
15688
  * * Value List Type: List
15417
15689
  * * Possible Values
15418
- * * Disabled
15419
15690
  * * Active
15691
+ * * Disabled
15420
15692
  * * Pending
15421
15693
  * * Description: Status of the action category (Pending, Active, Disabled).
15422
15694
  */
@@ -15623,9 +15895,9 @@ let ActionContextEntity = class ActionContextEntity extends core_1.BaseEntity {
15623
15895
  * * Default Value: Pending
15624
15896
  * * Value List Type: List
15625
15897
  * * Possible Values
15626
- * * Pending
15627
15898
  * * Active
15628
15899
  * * Disabled
15900
+ * * Pending
15629
15901
  * * Description: Status of the action context (Pending, Active, Disabled).
15630
15902
  */
15631
15903
  get Status() {
@@ -16156,9 +16428,9 @@ let ActionParamEntity = class ActionParamEntity extends core_1.BaseEntity {
16156
16428
  * * SQL Data Type: nchar(10)
16157
16429
  * * Value List Type: List
16158
16430
  * * Possible Values
16431
+ * * Both
16159
16432
  * * Input
16160
16433
  * * Output
16161
- * * Both
16162
16434
  * * Description: Specifies whether this parameter is used for Input, Output, or Both directions in the action execution flow.
16163
16435
  */
16164
16436
  get Type() {
@@ -16173,13 +16445,13 @@ let ActionParamEntity = class ActionParamEntity extends core_1.BaseEntity {
16173
16445
  * * SQL Data Type: nvarchar(30)
16174
16446
  * * Value List Type: List
16175
16447
  * * Possible Values
16176
- * * Other
16177
- * * Simple Object
16178
16448
  * * BaseEntity Sub-Class
16179
- * * Scalar
16180
- * * Scalar
16181
16449
  * * BaseEntity Sub-Class
16182
16450
  * * Other
16451
+ * * Other
16452
+ * * Scalar
16453
+ * * Scalar
16454
+ * * Simple Object
16183
16455
  * * Simple Object
16184
16456
  * * Description: Tracks the basic value type of the parameter, additional information can be provided in the Description field
16185
16457
  */
@@ -16524,9 +16796,9 @@ let ActionEntity = class ActionEntity extends core_1.BaseEntity {
16524
16796
  * * Default Value: Pending
16525
16797
  * * Value List Type: List
16526
16798
  * * Possible Values
16527
- * * Rejected
16528
16799
  * * Approved
16529
16800
  * * Pending
16801
+ * * Rejected
16530
16802
  * * Description: An action won't be usable until the code is approved.
16531
16803
  */
16532
16804
  get CodeApprovalStatus() {
@@ -16616,8 +16888,8 @@ let ActionEntity = class ActionEntity extends core_1.BaseEntity {
16616
16888
  * * Default Value: Pending
16617
16889
  * * Value List Type: List
16618
16890
  * * Possible Values
16619
- * * Disabled
16620
16891
  * * Active
16892
+ * * Disabled
16621
16893
  * * Pending
16622
16894
  * * Description: Status of the action (Pending, Active, Disabled).
16623
16895
  */
@@ -16901,22 +17173,43 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
16901
17173
  }
16902
17174
  /**
16903
17175
  * Validate() method override for AI Agent Actions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
17176
+ * * CompactLength: This rule ensures that if a value is provided for CompactLength, it must be greater than zero. If CompactLength is left empty, no rule applies.
16904
17177
  * * MaxExecutionsPerRun: This rule ensures that if the maximum executions per run is specified, the number must be greater than zero. If it is not specified, no restriction applies.
16905
17178
  * * MinExecutionsPerRun: This rule ensures that if a minimum executions per run value is provided, it must be zero or greater.
17179
+ * * ResultExpirationTurns: This rule ensures that if the ResultExpirationTurns field has a value, it must be zero or greater (it cannot be negative). If ResultExpirationTurns is left empty, there is no restriction.
17180
+ * * Table-Level: This rule ensures that if the compact mode is set to 'First N Chars', a compact length must be specified. For any other compact mode, the compact length can be left empty.
17181
+ * * Table-Level: This rule ensures that if the result expiration mode is set to 'Compact', a compact mode value must also be provided. If the result expiration mode is not 'Compact', compact mode can be left empty.
16906
17182
  * * Table-Level: This rule ensures that if both minimum and maximum executions per run are specified, the minimum cannot be greater than the maximum. If either value is not specified, the rule is not enforced.
17183
+ * * Table-Level: This rule ensures that if the result expiration mode is set to 'Compact', then CompactMode, CompactLength, and CompactPromptID must all be empty (null). If the expiration mode is not 'Compact', these fields may be filled in.
16907
17184
  * @public
16908
17185
  * @method
16909
17186
  * @override
16910
17187
  */
16911
17188
  Validate() {
16912
17189
  const result = super.Validate();
17190
+ this.ValidateCompactLengthGreaterThanZero(result);
16913
17191
  this.ValidateMaxExecutionsPerRunGreaterThanZero(result);
16914
17192
  this.ValidateMinExecutionsPerRunIsNonNegative(result);
17193
+ this.ValidateResultExpirationTurnsNonNegative(result);
17194
+ this.ValidateCompactLengthRequiredForFirstNCharsMode(result);
17195
+ this.ValidateCompactModeWhenResultExpirationModeIsCompact(result);
16915
17196
  this.ValidateMinExecutionsPerRunIsLessThanOrEqualToMaxExecutionsPerRun(result);
17197
+ this.ValidateResultExpirationModeRequiresCompactFieldsEmpty(result);
16916
17198
  result.Success = result.Success && (result.Errors.length === 0);
16917
17199
  return result;
16918
17200
  }
16919
17201
  /**
17202
+ * This rule ensures that if a value is provided for CompactLength, it must be greater than zero. If CompactLength is left empty, no rule applies.
17203
+ * @param result - the ValidationResult object to add any errors or warnings to
17204
+ * @public
17205
+ * @method
17206
+ */
17207
+ ValidateCompactLengthGreaterThanZero(result) {
17208
+ if (this.CompactLength != null && this.CompactLength <= 0) {
17209
+ result.Errors.push(new core_1.ValidationErrorInfo("CompactLength", "CompactLength must be greater than zero if specified.", this.CompactLength, core_1.ValidationErrorType.Failure));
17210
+ }
17211
+ }
17212
+ /**
16920
17213
  * This rule ensures that if the maximum executions per run is specified, the number must be greater than zero. If it is not specified, no restriction applies.
16921
17214
  * @param result - the ValidationResult object to add any errors or warnings to
16922
17215
  * @public
@@ -16939,6 +17232,39 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
16939
17232
  }
16940
17233
  }
16941
17234
  /**
17235
+ * This rule ensures that if the ResultExpirationTurns field has a value, it must be zero or greater (it cannot be negative). If ResultExpirationTurns is left empty, there is no restriction.
17236
+ * @param result - the ValidationResult object to add any errors or warnings to
17237
+ * @public
17238
+ * @method
17239
+ */
17240
+ ValidateResultExpirationTurnsNonNegative(result) {
17241
+ if (this.ResultExpirationTurns != null && this.ResultExpirationTurns < 0) {
17242
+ result.Errors.push(new core_1.ValidationErrorInfo("ResultExpirationTurns", "If provided, ResultExpirationTurns must be zero or greater.", this.ResultExpirationTurns, core_1.ValidationErrorType.Failure));
17243
+ }
17244
+ }
17245
+ /**
17246
+ * This rule ensures that if the compact mode is set to 'First N Chars', a compact length must be specified. For any other compact mode, the compact length can be left empty.
17247
+ * @param result - the ValidationResult object to add any errors or warnings to
17248
+ * @public
17249
+ * @method
17250
+ */
17251
+ ValidateCompactLengthRequiredForFirstNCharsMode(result) {
17252
+ if (this.CompactMode === "First N Chars" && this.CompactLength == null) {
17253
+ result.Errors.push(new core_1.ValidationErrorInfo("CompactLength", "When CompactMode is set to 'First N Chars', CompactLength must be specified.", this.CompactLength, core_1.ValidationErrorType.Failure));
17254
+ }
17255
+ }
17256
+ /**
17257
+ * This rule ensures that if the result expiration mode is set to 'Compact', a compact mode value must also be provided. If the result expiration mode is not 'Compact', compact mode can be left empty.
17258
+ * @param result - the ValidationResult object to add any errors or warnings to
17259
+ * @public
17260
+ * @method
17261
+ */
17262
+ ValidateCompactModeWhenResultExpirationModeIsCompact(result) {
17263
+ if (this.ResultExpirationMode === "Compact" && this.CompactMode == null) {
17264
+ result.Errors.push(new core_1.ValidationErrorInfo("CompactMode", "CompactMode must be specified when ResultExpirationMode is 'Compact'.", this.CompactMode, core_1.ValidationErrorType.Failure));
17265
+ }
17266
+ }
17267
+ /**
16942
17268
  * This rule ensures that if both minimum and maximum executions per run are specified, the minimum cannot be greater than the maximum. If either value is not specified, the rule is not enforced.
16943
17269
  * @param result - the ValidationResult object to add any errors or warnings to
16944
17270
  * @public
@@ -16950,6 +17276,19 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
16950
17276
  }
16951
17277
  }
16952
17278
  /**
17279
+ * This rule ensures that if the result expiration mode is set to 'Compact', then CompactMode, CompactLength, and CompactPromptID must all be empty (null). If the expiration mode is not 'Compact', these fields may be filled in.
17280
+ * @param result - the ValidationResult object to add any errors or warnings to
17281
+ * @public
17282
+ * @method
17283
+ */
17284
+ ValidateResultExpirationModeRequiresCompactFieldsEmpty(result) {
17285
+ if (this.ResultExpirationMode === "Compact") {
17286
+ if (this.CompactMode != null || this.CompactLength != null || this.CompactPromptID != null) {
17287
+ result.Errors.push(new core_1.ValidationErrorInfo("ResultExpirationMode", "When ResultExpirationMode is set to 'Compact', the fields CompactMode, CompactLength, and CompactPromptID must be empty.", this.ResultExpirationMode, core_1.ValidationErrorType.Failure));
17288
+ }
17289
+ }
17290
+ }
17291
+ /**
16953
17292
  * * Field Name: ID
16954
17293
  * * Display Name: ID
16955
17294
  * * SQL Data Type: uniqueidentifier
@@ -16995,8 +17334,8 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
16995
17334
  * * Default Value: Active
16996
17335
  * * Value List Type: List
16997
17336
  * * Possible Values
16998
- * * Pending
16999
17337
  * * Active
17338
+ * * Pending
17000
17339
  * * Revoked
17001
17340
  */
17002
17341
  get Status() {
@@ -17066,9 +17405,9 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
17066
17405
  * * Default Value: None
17067
17406
  * * Value List Type: List
17068
17407
  * * Possible Values
17069
- * * Remove
17070
- * * None
17071
17408
  * * Compact
17409
+ * * None
17410
+ * * Remove
17072
17411
  * * Description: How to handle expired action results: None (no expiration, default), Remove (delete message entirely), Compact (reduce size via CompactMode while preserving key information).
17073
17412
  */
17074
17413
  get ResultExpirationMode() {
@@ -17232,9 +17571,9 @@ let AIAgentLearningCycleEntity = class AIAgentLearningCycleEntity extends core_1
17232
17571
  * * SQL Data Type: nvarchar(20)
17233
17572
  * * Value List Type: List
17234
17573
  * * Possible Values
17235
- * * In-Progress
17236
- * * Failed
17237
17574
  * * Complete
17575
+ * * Failed
17576
+ * * In-Progress
17238
17577
  * * Description: Status of the learning cycle (In-Progress, Complete, or Failed).
17239
17578
  */
17240
17579
  get Status() {
@@ -17602,8 +17941,8 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
17602
17941
  * * SQL Data Type: nvarchar(20)
17603
17942
  * * Value List Type: List
17604
17943
  * * Possible Values
17605
- * * User
17606
17944
  * * Global
17945
+ * * User
17607
17946
  * * Description: Indicates the type of note, either User-specific or Global.
17608
17947
  */
17609
17948
  get Type() {
@@ -17739,10 +18078,10 @@ let AIAgentRequestEntity = class AIAgentRequestEntity extends core_1.BaseEntity
17739
18078
  * * SQL Data Type: nvarchar(20)
17740
18079
  * * Value List Type: List
17741
18080
  * * Possible Values
17742
- * * Canceled
17743
18081
  * * Approved
17744
- * * Requested
18082
+ * * Canceled
17745
18083
  * * Rejected
18084
+ * * Requested
17746
18085
  * * Description: Current status of the request (Requested, Approved, Rejected, Canceled).
17747
18086
  */
17748
18087
  get Status() {
@@ -18175,6 +18514,12 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
18175
18514
  * * Field Name: Status
18176
18515
  * * Display Name: Status
18177
18516
  * * SQL Data Type: nvarchar(20)
18517
+ * * Default Value: Pending
18518
+ * * Value List Type: List
18519
+ * * Possible Values
18520
+ * * Active
18521
+ * * Disabled
18522
+ * * Pending
18178
18523
  * * Description: Current status of the AI agent. Active agents can be executed, Disabled agents are inactive, and Pending agents are awaiting configuration or approval. Allowed values: Active, Disabled, Pending.
18179
18524
  */
18180
18525
  get Status() {
@@ -18427,8 +18772,8 @@ if this limit is exceeded.
18427
18772
  * * Default Value: Fail
18428
18773
  * * Value List Type: List
18429
18774
  * * Possible Values
18430
- * * Warn
18431
18775
  * * Fail
18776
+ * * Warn
18432
18777
  * * Description: Determines how to handle StartingPayloadValidation failures. Fail = reject invalid input, Warn = log warning but proceed.
18433
18778
  */
18434
18779
  get StartingPayloadValidationMode() {
@@ -18456,8 +18801,8 @@ if this limit is exceeded.
18456
18801
  * * Value List Type: List
18457
18802
  * * Possible Values
18458
18803
  * * Failed
18459
- * * Success
18460
18804
  * * Retry
18805
+ * * Success
18461
18806
  * * Description: Controls how Chat next steps are handled. When null (default), Chat propagates to caller. When set to Success, Failed, or Retry, Chat steps are remapped to that value and re-validated.
18462
18807
  */
18463
18808
  get ChatHandlingOption() {
@@ -18500,8 +18845,8 @@ if this limit is exceeded.
18500
18845
  * * Default Value: Any
18501
18846
  * * Value List Type: List
18502
18847
  * * Possible Values
18503
- * * Sub-Agent
18504
18848
  * * Any
18849
+ * * Sub-Agent
18505
18850
  * * Top-Level
18506
18851
  * * Description: Controls how the agent can be invoked: Any (default - can be top-level or sub-agent), Top-Level (only callable as primary agent), Sub-Agent (only callable as sub-agent). Used to filter available agents in tools like Sage.
18507
18852
  */
@@ -18512,6 +18857,48 @@ if this limit is exceeded.
18512
18857
  this.Set('InvocationMode', value);
18513
18858
  }
18514
18859
  /**
18860
+ * * Field Name: ArtifactCreationMode
18861
+ * * Display Name: Artifact Creation Mode
18862
+ * * SQL Data Type: nvarchar(20)
18863
+ * * Default Value: Always
18864
+ * * Value List Type: List
18865
+ * * Possible Values
18866
+ * * Never
18867
+ * * Always
18868
+ * * System Only
18869
+ * * Description: Controls how artifacts are created from this agent's payloads. "Always" creates visible artifacts, "Never" skips artifact creation, "System Only" creates hidden system artifacts.
18870
+ */
18871
+ get ArtifactCreationMode() {
18872
+ return this.Get('ArtifactCreationMode');
18873
+ }
18874
+ set ArtifactCreationMode(value) {
18875
+ this.Set('ArtifactCreationMode', value);
18876
+ }
18877
+ /**
18878
+ * * Field Name: FunctionalRequirements
18879
+ * * Display Name: Functional Requirements
18880
+ * * SQL Data Type: nvarchar(MAX)
18881
+ * * Description: Detailed markdown formatted requirements that explain the business goals of the agent without specific technical implementation details.
18882
+ */
18883
+ get FunctionalRequirements() {
18884
+ return this.Get('FunctionalRequirements');
18885
+ }
18886
+ set FunctionalRequirements(value) {
18887
+ this.Set('FunctionalRequirements', value);
18888
+ }
18889
+ /**
18890
+ * * Field Name: TechnicalDesign
18891
+ * * Display Name: Technical Design
18892
+ * * SQL Data Type: nvarchar(MAX)
18893
+ * * Description: Detailed markdown that explains the structure of the agent including agent architecture, actions, sub-agents, prompts, and payload structure.
18894
+ */
18895
+ get TechnicalDesign() {
18896
+ return this.Get('TechnicalDesign');
18897
+ }
18898
+ set TechnicalDesign(value) {
18899
+ this.Set('TechnicalDesign', value);
18900
+ }
18901
+ /**
18515
18902
  * * Field Name: Parent
18516
18903
  * * Display Name: Parent
18517
18904
  * * SQL Data Type: nvarchar(255)
@@ -19497,11 +19884,11 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
19497
19884
  * * Default Value: Any
19498
19885
  * * Value List Type: List
19499
19886
  * * Possible Values
19500
- * * Markdown
19887
+ * * Any
19501
19888
  * * JSON
19502
- * * Text
19889
+ * * Markdown
19503
19890
  * * ModelSpecific
19504
- * * Any
19891
+ * * Text
19505
19892
  * * Description: Specifies the expected response format for the AI model. Options include Any, Text, Markdown, JSON, and ModelSpecific. Defaults to Any if not specified.
19506
19893
  */
19507
19894
  get ResponseFormat() {
@@ -19555,8 +19942,8 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
19555
19942
  * * Default Value: Default
19556
19943
  * * Value List Type: List
19557
19944
  * * Possible Values
19558
- * * Default
19559
19945
  * * ByPower
19946
+ * * Default
19560
19947
  * * Specific
19561
19948
  * * Description: Determines how models are selected for this prompt (Default, Specific, ByPower).
19562
19949
  */
@@ -19574,8 +19961,8 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
19574
19961
  * * Value List Type: List
19575
19962
  * * Possible Values
19576
19963
  * * Balanced
19577
- * * Lowest
19578
19964
  * * Highest
19965
+ * * Lowest
19579
19966
  * * Description: When using ByPower selection strategy, determines whether to prefer highest, lowest, or balanced power models.
19580
19967
  */
19581
19968
  get PowerPreference() {
@@ -19592,9 +19979,9 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
19592
19979
  * * Value List Type: List
19593
19980
  * * Possible Values
19594
19981
  * * ConfigParam
19595
- * * StaticCount
19596
- * * None
19597
19982
  * * ModelSpecific
19983
+ * * None
19984
+ * * StaticCount
19598
19985
  * * Description: Controls parallelization: None (no parallelization), StaticCount (use AIPrompt.ParallelCount for total runs), ConfigParam (use config param specified in ParallelConfigParam for total runs), or ModelSpecific (check each AIPromptModel's individual settings).
19599
19986
  */
19600
19987
  get ParallelizationMode() {
@@ -19634,11 +20021,11 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
19634
20021
  * * Default Value: string
19635
20022
  * * Value List Type: List
19636
20023
  * * Possible Values
19637
- * * number
20024
+ * * boolean
19638
20025
  * * date
19639
- * * string
20026
+ * * number
19640
20027
  * * object
19641
- * * boolean
20028
+ * * string
19642
20029
  * * Description: The expected data type of the prompt output: string, number, boolean, date, or object.
19643
20030
  */
19644
20031
  get OutputType() {
@@ -19666,9 +20053,9 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
19666
20053
  * * Default Value: Warn
19667
20054
  * * Value List Type: List
19668
20055
  * * Possible Values
20056
+ * * None
19669
20057
  * * Strict
19670
20058
  * * Warn
19671
- * * None
19672
20059
  * * Description: Determines how validation failures are handled: Strict (fail), Warn (log warning), or None (ignore).
19673
20060
  */
19674
20061
  get ValidationBehavior() {
@@ -19710,9 +20097,9 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
19710
20097
  * * Default Value: Fixed
19711
20098
  * * Value List Type: List
19712
20099
  * * Possible Values
20100
+ * * Exponential
19713
20101
  * * Fixed
19714
20102
  * * Linear
19715
- * * Exponential
19716
20103
  * * Description: Strategy for calculating retry delays: Fixed (same delay each time), Exponential (doubling delay), or Linear (linearly increasing delay).
19717
20104
  */
19718
20105
  get RetryStrategy() {
@@ -19847,10 +20234,10 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
19847
20234
  * * Default Value: System
19848
20235
  * * Value List Type: List
19849
20236
  * * Possible Values
19850
- * * SystemOrUser
19851
20237
  * * Assistant
19852
- * * User
19853
20238
  * * System
20239
+ * * SystemOrUser
20240
+ * * User
19854
20241
  * * Description: Determines how the prompt is used in conversation: System (always first message), User (positioned by PromptPosition), Assistant (positioned by PromptPosition), or SystemOrUser (try system first, fallback to user last if system slot taken)
19855
20242
  */
19856
20243
  get PromptRole() {
@@ -20004,14 +20391,14 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
20004
20391
  * * Default Value: SameModelDifferentVendor
20005
20392
  * * Value List Type: List
20006
20393
  * * Possible Values
20394
+ * * NextBestModel
20395
+ * * NextBestModel
20396
+ * * None
20007
20397
  * * None
20008
20398
  * * PowerRank
20009
20399
  * * PowerRank
20010
20400
  * * SameModelDifferentVendor
20011
- * * NextBestModel
20012
- * * NextBestModel
20013
20401
  * * SameModelDifferentVendor
20014
- * * None
20015
20402
  * * Description: Failover strategy to use when the primary model fails. Options: SameModelDifferentVendor, NextBestModel, PowerRank, None
20016
20403
  */
20017
20404
  get FailoverStrategy() {
@@ -20053,12 +20440,12 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
20053
20440
  * * Default Value: PreferSameModel
20054
20441
  * * Value List Type: List
20055
20442
  * * Possible Values
20056
- * * RequireSameModel
20057
- * * RequireSameModel
20058
20443
  * * PreferDifferentModel
20059
20444
  * * PreferDifferentModel
20060
20445
  * * PreferSameModel
20061
20446
  * * PreferSameModel
20447
+ * * RequireSameModel
20448
+ * * RequireSameModel
20062
20449
  * * Description: Strategy for selecting failover models. Options: PreferSameModel, PreferDifferentModel, RequireSameModel
20063
20450
  */
20064
20451
  get FailoverModelStrategy() {
@@ -20074,14 +20461,14 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
20074
20461
  * * Default Value: All
20075
20462
  * * Value List Type: List
20076
20463
  * * Possible Values
20077
- * * ServiceErrorOnly
20078
- * * RateLimitOnly
20079
- * * NetworkOnly
20464
+ * * All
20080
20465
  * * All
20081
20466
  * * NetworkOnly
20467
+ * * NetworkOnly
20468
+ * * RateLimitOnly
20082
20469
  * * RateLimitOnly
20083
20470
  * * ServiceErrorOnly
20084
- * * All
20471
+ * * ServiceErrorOnly
20085
20472
  * * Description: Types of errors that should trigger failover. Options: All, NetworkOnly, RateLimitOnly, ServiceErrorOnly
20086
20473
  */
20087
20474
  get FailoverErrorScope() {
@@ -20263,8 +20650,8 @@ let AIResultCacheEntity = class AIResultCacheEntity extends core_1.BaseEntity {
20263
20650
  * * SQL Data Type: nvarchar(50)
20264
20651
  * * Value List Type: List
20265
20652
  * * Possible Values
20266
- * * Expired
20267
20653
  * * Active
20654
+ * * Expired
20268
20655
  * * Description: The status of this result, indicating whether it is currently active or expired.
20269
20656
  */
20270
20657
  get Status() {
@@ -21020,8 +21407,8 @@ let AuditLogEntity = class AuditLogEntity extends core_1.BaseEntity {
21020
21407
  * * Default Value: Allow
21021
21408
  * * Value List Type: List
21022
21409
  * * Possible Values
21023
- * * Success
21024
21410
  * * Failed
21411
+ * * Success
21025
21412
  */
21026
21413
  get Status() {
21027
21414
  return this.Get('Status');
@@ -21598,8 +21985,8 @@ let CommunicationLogEntity = class CommunicationLogEntity extends core_1.BaseEnt
21598
21985
  * * SQL Data Type: nvarchar(20)
21599
21986
  * * Value List Type: List
21600
21987
  * * Possible Values
21601
- * * Sending
21602
21988
  * * Receiving
21989
+ * * Sending
21603
21990
  * * Description: The direction of the communication log (Sending or Receiving).
21604
21991
  */
21605
21992
  get Direction() {
@@ -21627,8 +22014,8 @@ let CommunicationLogEntity = class CommunicationLogEntity extends core_1.BaseEnt
21627
22014
  * * Default Value: Pending
21628
22015
  * * Value List Type: List
21629
22016
  * * Possible Values
21630
- * * Failed
21631
22017
  * * Complete
22018
+ * * Failed
21632
22019
  * * In-Progress
21633
22020
  * * Pending
21634
22021
  * * Description: The status of the logged message (Pending, In-Progress, Complete, Failed).
@@ -21784,8 +22171,8 @@ let CommunicationProviderMessageTypeEntity = class CommunicationProviderMessageT
21784
22171
  * * Default Value: Disabled
21785
22172
  * * Value List Type: List
21786
22173
  * * Possible Values
21787
- * * Disabled
21788
22174
  * * Active
22175
+ * * Disabled
21789
22176
  * * Description: The status of the provider message type (Disabled or Active).
21790
22177
  */
21791
22178
  get Status() {
@@ -22031,6 +22418,19 @@ let CommunicationProviderEntity = class CommunicationProviderEntity extends core
22031
22418
  set SupportsReplying(value) {
22032
22419
  this.Set('SupportsReplying', value);
22033
22420
  }
22421
+ /**
22422
+ * * Field Name: SupportsDrafts
22423
+ * * Display Name: Supports Drafts
22424
+ * * SQL Data Type: bit
22425
+ * * Default Value: 0
22426
+ * * Description: Whether or not the provider supports creating draft messages
22427
+ */
22428
+ get SupportsDrafts() {
22429
+ return this.Get('SupportsDrafts');
22430
+ }
22431
+ set SupportsDrafts(value) {
22432
+ this.Set('SupportsDrafts', value);
22433
+ }
22034
22434
  };
22035
22435
  exports.CommunicationProviderEntity = CommunicationProviderEntity;
22036
22436
  exports.CommunicationProviderEntity = CommunicationProviderEntity = __decorate([
@@ -22094,8 +22494,8 @@ let CommunicationRunEntity = class CommunicationRunEntity extends core_1.BaseEnt
22094
22494
  * * SQL Data Type: nvarchar(20)
22095
22495
  * * Value List Type: List
22096
22496
  * * Possible Values
22097
- * * Sending
22098
22497
  * * Receiving
22498
+ * * Sending
22099
22499
  * * Description: The direction of the communication run (Sending or Receiving).
22100
22500
  */
22101
22501
  get Direction() {
@@ -22112,8 +22512,8 @@ let CommunicationRunEntity = class CommunicationRunEntity extends core_1.BaseEnt
22112
22512
  * * Possible Values
22113
22513
  * * Complete
22114
22514
  * * Failed
22115
- * * Pending
22116
22515
  * * In-Progress
22516
+ * * Pending
22117
22517
  * * Description: The status of the communication run (Pending, In-Progress, Complete, Failed).
22118
22518
  */
22119
22519
  get Status() {
@@ -22525,13 +22925,13 @@ let CompanyIntegrationRunAPILogEntity = class CompanyIntegrationRunAPILogEntity
22525
22925
  * * SQL Data Type: nvarchar(12)
22526
22926
  * * Value List Type: List
22527
22927
  * * Possible Values
22528
- * * PATCH
22529
- * * PUT
22530
22928
  * * DELETE
22929
+ * * GET
22531
22930
  * * HEAD
22532
22931
  * * OPTIONS
22932
+ * * PATCH
22533
22933
  * * POST
22534
- * * GET
22934
+ * * PUT
22535
22935
  * * Description: HTTP method used for the API call (GET, POST, PUT, DELETE, PATCH).
22536
22936
  */
22537
22937
  get RequestMethod() {
@@ -22875,10 +23275,10 @@ let CompanyIntegrationRunEntity = class CompanyIntegrationRunEntity extends core
22875
23275
  * * Default Value: Pending
22876
23276
  * * Value List Type: List
22877
23277
  * * Possible Values
22878
- * * Pending
22879
23278
  * * Failed
22880
- * * Success
22881
23279
  * * In Progress
23280
+ * * Pending
23281
+ * * Success
22882
23282
  * * Description: Status of the integration run. Possible values: Pending, In Progress, Success, Failed.
22883
23283
  */
22884
23284
  get Status() {
@@ -24658,8 +25058,8 @@ let ConversationDetailEntity = class ConversationDetailEntity extends core_1.Bas
24658
25058
  * * Value List Type: List
24659
25059
  * * Possible Values
24660
25060
  * * AI
24661
- * * User
24662
25061
  * * Error
25062
+ * * User
24663
25063
  * * Description: The role of the message sender (user, assistant, system, function).
24664
25064
  */
24665
25065
  get Role() {
@@ -24787,7 +25187,8 @@ let ConversationDetailEntity = class ConversationDetailEntity extends core_1.Bas
24787
25187
  /**
24788
25188
  * * Field Name: ArtifactID
24789
25189
  * * Display Name: Artifact ID
24790
- * * SQL Data Type: uniqueidentifier
25190
+ * *
25191
+ * * @deprecated This field is deprecated and will be removed in a future version. Using it will result in console warnings.SQL Data Type: uniqueidentifier
24791
25192
  * * Related Entity/Foreign Key: MJ: Conversation Artifacts (vwConversationArtifacts.ID)
24792
25193
  * * Description: Optional reference to a conversation artifact associated with this conversation detail
24793
25194
  */
@@ -24800,7 +25201,8 @@ let ConversationDetailEntity = class ConversationDetailEntity extends core_1.Bas
24800
25201
  /**
24801
25202
  * * Field Name: ArtifactVersionID
24802
25203
  * * Display Name: Artifact Version ID
24803
- * * SQL Data Type: uniqueidentifier
25204
+ * *
25205
+ * * @deprecated This field is deprecated and will be removed in a future version. Using it will result in console warnings.SQL Data Type: uniqueidentifier
24804
25206
  * * Related Entity/Foreign Key: MJ: Conversation Artifact Versions (vwConversationArtifactVersions.ID)
24805
25207
  * * Description: Optional reference to a specific version of a conversation artifact associated with this conversation detail
24806
25208
  */
@@ -24868,9 +25270,9 @@ let ConversationDetailEntity = class ConversationDetailEntity extends core_1.Bas
24868
25270
  * * Default Value: Complete
24869
25271
  * * Value List Type: List
24870
25272
  * * Possible Values
24871
- * * In-Progress
24872
25273
  * * Complete
24873
25274
  * * Error
25275
+ * * In-Progress
24874
25276
  * * Description: Status of the conversation message. Complete indicates finished processing, In-Progress indicates active agent work, Error indicates processing failed.
24875
25277
  */
24876
25278
  get Status() {
@@ -25493,9 +25895,9 @@ let DashboardEntity = class DashboardEntity extends core_1.BaseEntity {
25493
25895
  * * Default Value: Config
25494
25896
  * * Value List Type: List
25495
25897
  * * Possible Values
25898
+ * * Code
25496
25899
  * * Config
25497
25900
  * * Dynamic Code
25498
- * * Code
25499
25901
  * * Description: Dashboard type supporting Config (metadata-driven), Code (compiled TypeScript), and Dynamic Code (Skip-generated runtime JavaScript/React) options
25500
25902
  */
25501
25903
  get Type() {
@@ -25523,8 +25925,8 @@ let DashboardEntity = class DashboardEntity extends core_1.BaseEntity {
25523
25925
  * * Default Value: Global
25524
25926
  * * Value List Type: List
25525
25927
  * * Possible Values
25526
- * * Global
25527
25928
  * * App
25929
+ * * Global
25528
25930
  * * Description: Scope of the dashboard: Global or App-specific
25529
25931
  */
25530
25932
  get Scope() {
@@ -26358,8 +26760,8 @@ let DuplicateRunDetailMatchEntity = class DuplicateRunDetailMatchEntity extends
26358
26760
  * * Value List Type: List
26359
26761
  * * Possible Values
26360
26762
  * * Approved
26361
- * * Rejected
26362
26763
  * * Pending
26764
+ * * Rejected
26363
26765
  * * Description: Current approval status of the proposed action (Pending, Approved, Rejected).
26364
26766
  */
26365
26767
  get ApprovalStatus() {
@@ -26505,10 +26907,10 @@ let DuplicateRunDetailEntity = class DuplicateRunDetailEntity extends core_1.Bas
26505
26907
  * * Default Value: Pending
26506
26908
  * * Value List Type: List
26507
26909
  * * Possible Values
26508
- * * Error
26509
26910
  * * Complete
26510
- * * Skipped
26911
+ * * Error
26511
26912
  * * Pending
26913
+ * * Skipped
26512
26914
  * * Description: Status of duplicate analysis for this record (Pending, Complete, Error).
26513
26915
  */
26514
26916
  get MatchStatus() {
@@ -26548,10 +26950,10 @@ let DuplicateRunDetailEntity = class DuplicateRunDetailEntity extends core_1.Bas
26548
26950
  * * Default Value: Not Applicable
26549
26951
  * * Value List Type: List
26550
26952
  * * Possible Values
26551
- * * Pending
26953
+ * * Complete
26552
26954
  * * Error
26553
26955
  * * Not Applicable
26554
- * * Complete
26956
+ * * Pending
26555
26957
  * * Description: Status of any merge operations for this record (Not Applicable, Pending, Complete, Failed).
26556
26958
  */
26557
26959
  get MergeStatus() {
@@ -26702,8 +27104,8 @@ let DuplicateRunEntity = class DuplicateRunEntity extends core_1.BaseEntity {
26702
27104
  * * Value List Type: List
26703
27105
  * * Possible Values
26704
27106
  * * Approved
26705
- * * Rejected
26706
27107
  * * Pending
27108
+ * * Rejected
26707
27109
  * * Description: Overall approval status for the duplicate run results (Pending, Approved, Rejected).
26708
27110
  */
26709
27111
  get ApprovalStatus() {
@@ -26744,9 +27146,9 @@ let DuplicateRunEntity = class DuplicateRunEntity extends core_1.BaseEntity {
26744
27146
  * * Value List Type: List
26745
27147
  * * Possible Values
26746
27148
  * * Complete
27149
+ * * Failed
26747
27150
  * * In Progress
26748
27151
  * * Pending
26749
- * * Failed
26750
27152
  * * Description: Current processing status of the duplicate detection run (Pending, Running, Complete, Failed).
26751
27153
  */
26752
27154
  get ProcessingStatus() {
@@ -27839,8 +28241,8 @@ let EntityEntity = class EntityEntity extends core_1.BaseEntity {
27839
28241
  * * Default Value: Hard
27840
28242
  * * Value List Type: List
27841
28243
  * * Possible Values
27842
- * * Soft
27843
28244
  * * Hard
28245
+ * * Soft
27844
28246
  * * Description: Hard deletes physically remove rows from the underlying BaseTable. Soft deletes do not remove rows but instead mark the row as deleted by using the special field __mj_DeletedAt which will automatically be added to the entity's basetable by the CodeGen tool.
27845
28247
  */
27846
28248
  get DeleteType() {
@@ -27881,8 +28283,8 @@ let EntityEntity = class EntityEntity extends core_1.BaseEntity {
27881
28283
  * * Default Value: Search
27882
28284
  * * Value List Type: List
27883
28285
  * * Possible Values
27884
- * * Search
27885
28286
  * * Dropdown
28287
+ * * Search
27886
28288
  * * Description: When another entity links to this entity with a foreign key, this is the default component type that will be used in the UI. CodeGen will populate the RelatedEntityDisplayType column in the Entity Fields entity with whatever is provided here whenever a new foreign key is detected by CodeGen. The selection can be overridden on a per-foreign-key basis in each row of the Entity Fields entity.
27887
28289
  */
27888
28290
  get RelationshipDefaultDisplayType() {
@@ -27989,9 +28391,9 @@ let EntityEntity = class EntityEntity extends core_1.BaseEntity {
27989
28391
  * * Default Value: None
27990
28392
  * * Value List Type: List
27991
28393
  * * Possible Values
28394
+ * * All
27992
28395
  * * None
27993
28396
  * * Sample
27994
- * * All
27995
28397
  * * Description: Determines how entity rows should be packaged for external use. Options include None, Sample, and All. Defaults to None.
27996
28398
  */
27997
28399
  get RowsToPackWithSchema() {
@@ -28007,9 +28409,9 @@ let EntityEntity = class EntityEntity extends core_1.BaseEntity {
28007
28409
  * * Default Value: random
28008
28410
  * * Value List Type: List
28009
28411
  * * Possible Values
28010
- * * top n
28011
- * * random
28012
28412
  * * bottom n
28413
+ * * random
28414
+ * * top n
28013
28415
  * * Description: Defines the sampling method for row packing when RowsToPackWithSchema is set to Sample. Options include random, top n, and bottom n. Defaults to random.
28014
28416
  */
28015
28417
  get RowsToPackSampleMethod() {
@@ -28086,9 +28488,9 @@ let EntityEntity = class EntityEntity extends core_1.BaseEntity {
28086
28488
  * * Default Value: Active
28087
28489
  * * Value List Type: List
28088
28490
  * * Possible Values
28491
+ * * Active
28089
28492
  * * Deprecated
28090
28493
  * * Disabled
28091
- * * Active
28092
28494
  * * Description: Status of the entity. Active: fully functional; Deprecated: functional but generates console warnings when used; Disabled: not available for use even though metadata and physical table remain.
28093
28495
  */
28094
28496
  get Status() {
@@ -28245,9 +28647,9 @@ let EntityActionFilterEntity = class EntityActionFilterEntity extends core_1.Bas
28245
28647
  * * Default Value: Pending
28246
28648
  * * Value List Type: List
28247
28649
  * * Possible Values
28248
- * * Pending
28249
- * * Disabled
28250
28650
  * * Active
28651
+ * * Disabled
28652
+ * * Pending
28251
28653
  * * Description: Status of the entity action filter (Pending, Active, Disabled).
28252
28654
  */
28253
28655
  get Status() {
@@ -28450,8 +28852,8 @@ let EntityActionInvocationEntity = class EntityActionInvocationEntity extends co
28450
28852
  * * Default Value: Pending
28451
28853
  * * Value List Type: List
28452
28854
  * * Possible Values
28453
- * * Disabled
28454
28855
  * * Active
28856
+ * * Disabled
28455
28857
  * * Pending
28456
28858
  * * Description: Status of the entity action invocation (Pending, Active, Disabled).
28457
28859
  */
@@ -28562,9 +28964,9 @@ let EntityActionParamEntity = class EntityActionParamEntity extends core_1.BaseE
28562
28964
  * * SQL Data Type: nvarchar(20)
28563
28965
  * * Value List Type: List
28564
28966
  * * Possible Values
28565
- * * Script
28566
- * * Entity Object
28567
28967
  * * Entity Field
28968
+ * * Entity Object
28969
+ * * Script
28568
28970
  * * Static
28569
28971
  * * Description: Type of the value, which can be Static, Entity Object, or Script.
28570
28972
  */
@@ -28857,8 +29259,8 @@ let EntityAIActionEntity = class EntityAIActionEntity extends core_1.BaseEntity
28857
29259
  * * Default Value: After Save
28858
29260
  * * Value List Type: List
28859
29261
  * * Possible Values
28860
- * * before save
28861
29262
  * * after save
29263
+ * * before save
28862
29264
  * * Description: The entity event that triggers this AI action (After Save, Before Delete, etc.).
28863
29265
  */
28864
29266
  get TriggerEvent() {
@@ -29296,8 +29698,8 @@ let EntityDocumentRunEntity = class EntityDocumentRunEntity extends core_1.BaseE
29296
29698
  * * Value List Type: List
29297
29699
  * * Possible Values
29298
29700
  * * Complete
29299
- * * Pending
29300
29701
  * * Failed
29702
+ * * Pending
29301
29703
  * * Description: Can be Pending, In Progress, Completed, or Failed
29302
29704
  */
29303
29705
  get Status() {
@@ -29663,8 +30065,8 @@ let EntityDocumentEntity = class EntityDocumentEntity extends core_1.BaseEntity
29663
30065
  * * Default Value: Active
29664
30066
  * * Value List Type: List
29665
30067
  * * Possible Values
29666
- * * Inactive
29667
30068
  * * Active
30069
+ * * Inactive
29668
30070
  */
29669
30071
  get Status() {
29670
30072
  return this.Get('Status');
@@ -30138,9 +30540,9 @@ let EntityFieldEntity = class EntityFieldEntity extends core_1.BaseEntity {
30138
30540
  * * Default Value: None
30139
30541
  * * Value List Type: List
30140
30542
  * * Possible Values
30543
+ * * List
30141
30544
  * * ListOrUserEntry
30142
30545
  * * None
30143
- * * List
30144
30546
  * * Description: Possible Values of None, List, ListOrUserEntry - the last option meaning that the list of possible values are options, but a user can enter anything else desired too.
30145
30547
  */
30146
30548
  get ValueListType() {
@@ -30155,18 +30557,18 @@ let EntityFieldEntity = class EntityFieldEntity extends core_1.BaseEntity {
30155
30557
  * * SQL Data Type: nvarchar(50)
30156
30558
  * * Value List Type: List
30157
30559
  * * Possible Values
30158
- * * SMS
30159
- * * Email
30160
- * * WhatsApp
30161
- * * MSTeams
30162
- * * URL
30163
- * * Skype
30164
30560
  * * Code
30561
+ * * Email
30165
30562
  * * FaceTime
30166
- * * SIP
30167
30563
  * * Geo
30564
+ * * MSTeams
30168
30565
  * * Other
30566
+ * * SIP
30567
+ * * SMS
30568
+ * * Skype
30169
30569
  * * Tel
30570
+ * * URL
30571
+ * * WhatsApp
30170
30572
  * * ZoomMtg
30171
30573
  * * Description: Defines extended behaviors for a field such as for Email, Web URLs, Code, etc.
30172
30574
  */
@@ -30182,12 +30584,12 @@ let EntityFieldEntity = class EntityFieldEntity extends core_1.BaseEntity {
30182
30584
  * * SQL Data Type: nvarchar(50)
30183
30585
  * * Value List Type: List
30184
30586
  * * Possible Values
30587
+ * * CSS
30185
30588
  * * HTML
30186
30589
  * * JavaScript
30187
- * * CSS
30188
- * * TypeScript
30189
- * * SQL
30190
30590
  * * Other
30591
+ * * SQL
30592
+ * * TypeScript
30191
30593
  * * Description: The type of code associated with this field. Only used when the ExtendedType field is set to "Code"
30192
30594
  */
30193
30595
  get CodeType() {
@@ -30318,8 +30720,8 @@ let EntityFieldEntity = class EntityFieldEntity extends core_1.BaseEntity {
30318
30720
  * * Value List Type: List
30319
30721
  * * Possible Values
30320
30722
  * * Category
30321
- * * Top
30322
30723
  * * Details
30724
+ * * Top
30323
30725
  * * Description: When set to Top, the field will be placed in a "top area" on the top of a generated form and visible regardless of which tab is displayed. When set to "category" Options: Top, Category, Details
30324
30726
  */
30325
30727
  get GeneratedFormSection() {
@@ -30475,9 +30877,9 @@ let EntityFieldEntity = class EntityFieldEntity extends core_1.BaseEntity {
30475
30877
  * * Default Value: Auto
30476
30878
  * * Value List Type: List
30477
30879
  * * Possible Values
30880
+ * * All
30478
30881
  * * Auto
30479
30882
  * * None
30480
- * * All
30481
30883
  * * Description: Determines whether values for the field should be included when the schema is packed. Options: Auto (include manually set or auto-derived values), None (exclude all values), All (include all distinct values from the table). Defaults to Auto.
30482
30884
  */
30483
30885
  get ValuesToPackWithSchema() {
@@ -30493,8 +30895,8 @@ let EntityFieldEntity = class EntityFieldEntity extends core_1.BaseEntity {
30493
30895
  * * Default Value: Active
30494
30896
  * * Value List Type: List
30495
30897
  * * Possible Values
30496
- * * Deprecated
30497
30898
  * * Active
30899
+ * * Deprecated
30498
30900
  * * Disabled
30499
30901
  * * Description: Current status of the entity field - Active fields are available for use, Deprecated fields are discouraged but still functional, Disabled fields are not available for use
30500
30902
  */
@@ -31105,8 +31507,8 @@ let EntityRelationshipDisplayComponentEntity = class EntityRelationshipDisplayCo
31105
31507
  * * SQL Data Type: nvarchar(20)
31106
31508
  * * Value List Type: List
31107
31509
  * * Possible Values
31108
- * * Many to Many
31109
31510
  * * Both
31511
+ * * Many to Many
31110
31512
  * * One to Many
31111
31513
  * * Description: The type of relationship the component displays. Valid values are "One to Many", "Many to Many", or "Both".
31112
31514
  */
@@ -32803,9 +33205,9 @@ let GeneratedCodeEntity = class GeneratedCodeEntity extends core_1.BaseEntity {
32803
33205
  * * Default Value: Pending
32804
33206
  * * Value List Type: List
32805
33207
  * * Possible Values
33208
+ * * Approved
32806
33209
  * * Pending
32807
33210
  * * Rejected
32808
- * * Approved
32809
33211
  * * Description: Status of the generated code, e.g., Pending, Approved, or Rejected.
32810
33212
  */
32811
33213
  get Status() {
@@ -32821,13 +33223,13 @@ let GeneratedCodeEntity = class GeneratedCodeEntity extends core_1.BaseEntity {
32821
33223
  * * Default Value: TypeScript
32822
33224
  * * Value List Type: List
32823
33225
  * * Possible Values
33226
+ * * CSS
33227
+ * * HTML
33228
+ * * JavaScript
32824
33229
  * * Other
32825
33230
  * * Python
32826
- * * JavaScript
32827
33231
  * * SQL
32828
- * * HTML
32829
33232
  * * TypeScript
32830
- * * CSS
32831
33233
  * * Description: Programming language of the generated code (TypeScript, SQL, HTML, CSS, JavaScript, Python, or Other).
32832
33234
  */
32833
33235
  get Language() {
@@ -33228,9 +33630,9 @@ let LibraryEntity = class LibraryEntity extends core_1.BaseEntity {
33228
33630
  * * Default Value: Pending
33229
33631
  * * Value List Type: List
33230
33632
  * * Possible Values
33633
+ * * Active
33231
33634
  * * Disabled
33232
33635
  * * Pending
33233
- * * Active
33234
33636
  * * Description: Status of the library, only libraries marked as Active will be available for use by generated code. If a library was once active but no longer is, existing code that used the library will not be affected.
33235
33637
  */
33236
33638
  get Status() {
@@ -33355,12 +33757,12 @@ let LibraryItemEntity = class LibraryItemEntity extends core_1.BaseEntity {
33355
33757
  * * SQL Data Type: nvarchar(50)
33356
33758
  * * Value List Type: List
33357
33759
  * * Possible Values
33358
- * * Variable
33359
- * * Module
33360
- * * Function
33361
33760
  * * Class
33761
+ * * Function
33362
33762
  * * Interface
33763
+ * * Module
33363
33764
  * * Type
33765
+ * * Variable
33364
33766
  * * Description: Type of the library item for example Class, Interface, etc.
33365
33767
  */
33366
33768
  get Type() {
@@ -33634,12 +34036,12 @@ let ListDetailEntity = class ListDetailEntity extends core_1.BaseEntity {
33634
34036
  * * Value List Type: List
33635
34037
  * * Possible Values
33636
34038
  * * Active
34039
+ * * Complete
33637
34040
  * * Disabled
33638
34041
  * * Error
33639
34042
  * * Other
33640
- * * Rejected
33641
34043
  * * Pending
33642
- * * Complete
34044
+ * * Rejected
33643
34045
  * * Description: Tracks the status of each individual list detail row to enable processing of various types and the use of the status column for filtering list detail rows within a list that are in a particular state.
33644
34046
  */
33645
34047
  get Status() {
@@ -33918,9 +34320,9 @@ let AccessControlRuleEntity = class AccessControlRuleEntity extends core_1.BaseE
33918
34320
  * * Value List Type: List
33919
34321
  * * Possible Values
33920
34322
  * * Everyone
34323
+ * * Public
33921
34324
  * * Role
33922
34325
  * * User
33923
- * * Public
33924
34326
  * * Description: Type of grantee receiving permission (User, Role, Everyone, Public). "Everyone" means all authenticated users whereas "Public" means any authenticated OR anonymous user.
33925
34327
  */
33926
34328
  get GranteeType() {
@@ -34185,6 +34587,383 @@ exports.AIAgentArtifactTypeEntity = AIAgentArtifactTypeEntity;
34185
34587
  exports.AIAgentArtifactTypeEntity = AIAgentArtifactTypeEntity = __decorate([
34186
34588
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Agent Artifact Types')
34187
34589
  ], AIAgentArtifactTypeEntity);
34590
+ /**
34591
+ * MJ: AI Agent Data Sources - strongly typed entity sub-class
34592
+ * * Schema: __mj
34593
+ * * Base Table: AIAgentDataSource
34594
+ * * Base View: vwAIAgentDataSources
34595
+ * * @description Defines data sources that should be preloaded into the data parameter before agent execution. Supports both RunView and RunQuery sources with configurable caching.
34596
+ * * Primary Key: ID
34597
+ * @extends {BaseEntity}
34598
+ * @class
34599
+ * @public
34600
+ */
34601
+ let AIAgentDataSourceEntity = class AIAgentDataSourceEntity extends core_1.BaseEntity {
34602
+ /**
34603
+ * Loads the MJ: AI Agent Data Sources record from the database
34604
+ * @param ID: string - primary key value to load the MJ: AI Agent Data Sources record.
34605
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
34606
+ * @returns {Promise<boolean>} - true if successful, false otherwise
34607
+ * @public
34608
+ * @async
34609
+ * @memberof AIAgentDataSourceEntity
34610
+ * @method
34611
+ * @override
34612
+ */
34613
+ async Load(ID, EntityRelationshipsToLoad) {
34614
+ const compositeKey = new core_1.CompositeKey();
34615
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
34616
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
34617
+ }
34618
+ /**
34619
+ * Validate() method override for MJ: AI Agent Data Sources entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
34620
+ * * Table-Level: This rule ensures that if the cache policy is set to 'PerAgent', a cache timeout value must be provided. For other cache policies, providing a cache timeout is optional.
34621
+ * * Table-Level: This rule makes sure that if the source type is 'RunView', the entity name must be provided. If the source type is anything else, the entity name can be left blank.
34622
+ * * Table-Level: This rule ensures that when the Source Type is set to 'RunQuery', a Query Name must be provided. If Source Type is anything other than 'RunQuery', Query Name is optional.
34623
+ * @public
34624
+ * @method
34625
+ * @override
34626
+ */
34627
+ Validate() {
34628
+ const result = super.Validate();
34629
+ this.ValidateCacheTimeoutSecondsRequiredForPerAgentPolicy(result);
34630
+ this.ValidateEntityNameRequiredWhenSourceTypeRunView(result);
34631
+ this.ValidateQueryNameRequiredWhenSourceTypeIsRunQuery(result);
34632
+ result.Success = result.Success && (result.Errors.length === 0);
34633
+ return result;
34634
+ }
34635
+ /**
34636
+ * This rule ensures that if the cache policy is set to 'PerAgent', a cache timeout value must be provided. For other cache policies, providing a cache timeout is optional.
34637
+ * @param result - the ValidationResult object to add any errors or warnings to
34638
+ * @public
34639
+ * @method
34640
+ */
34641
+ ValidateCacheTimeoutSecondsRequiredForPerAgentPolicy(result) {
34642
+ if (this.CachePolicy === "PerAgent" && this.CacheTimeoutSeconds == null) {
34643
+ result.Errors.push(new core_1.ValidationErrorInfo("CacheTimeoutSeconds", "When the cache policy is set to 'PerAgent', you must specify a cache timeout value.", this.CacheTimeoutSeconds, core_1.ValidationErrorType.Failure));
34644
+ }
34645
+ }
34646
+ /**
34647
+ * This rule makes sure that if the source type is 'RunView', the entity name must be provided. If the source type is anything else, the entity name can be left blank.
34648
+ * @param result - the ValidationResult object to add any errors or warnings to
34649
+ * @public
34650
+ * @method
34651
+ */
34652
+ ValidateEntityNameRequiredWhenSourceTypeRunView(result) {
34653
+ if (this.SourceType === "RunView" && this.EntityName == null) {
34654
+ result.Errors.push(new core_1.ValidationErrorInfo("EntityName", "EntityName is required when SourceType is 'RunView'.", this.EntityName, core_1.ValidationErrorType.Failure));
34655
+ }
34656
+ }
34657
+ /**
34658
+ * This rule ensures that when the Source Type is set to 'RunQuery', a Query Name must be provided. If Source Type is anything other than 'RunQuery', Query Name is optional.
34659
+ * @param result - the ValidationResult object to add any errors or warnings to
34660
+ * @public
34661
+ * @method
34662
+ */
34663
+ ValidateQueryNameRequiredWhenSourceTypeIsRunQuery(result) {
34664
+ if (this.SourceType === "RunQuery" && this.QueryName == null) {
34665
+ result.Errors.push(new core_1.ValidationErrorInfo("QueryName", "The query name must be provided when Source Type is 'RunQuery'.", this.QueryName, core_1.ValidationErrorType.Failure));
34666
+ }
34667
+ }
34668
+ /**
34669
+ * * Field Name: ID
34670
+ * * Display Name: ID
34671
+ * * SQL Data Type: uniqueidentifier
34672
+ * * Default Value: newsequentialid()
34673
+ */
34674
+ get ID() {
34675
+ return this.Get('ID');
34676
+ }
34677
+ set ID(value) {
34678
+ this.Set('ID', value);
34679
+ }
34680
+ /**
34681
+ * * Field Name: AgentID
34682
+ * * Display Name: Agent ID
34683
+ * * SQL Data Type: uniqueidentifier
34684
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
34685
+ */
34686
+ get AgentID() {
34687
+ return this.Get('AgentID');
34688
+ }
34689
+ set AgentID(value) {
34690
+ this.Set('AgentID', value);
34691
+ }
34692
+ /**
34693
+ * * Field Name: Name
34694
+ * * Display Name: Name
34695
+ * * SQL Data Type: nvarchar(255)
34696
+ * * Description: Variable name for the data in the data parameter (e.g., "ALL_ENTITIES"). Must be unique within an agent.
34697
+ */
34698
+ get Name() {
34699
+ return this.Get('Name');
34700
+ }
34701
+ set Name(value) {
34702
+ this.Set('Name', value);
34703
+ }
34704
+ /**
34705
+ * * Field Name: Description
34706
+ * * Display Name: Description
34707
+ * * SQL Data Type: nvarchar(MAX)
34708
+ * * Description: Description of what this data source provides
34709
+ */
34710
+ get Description() {
34711
+ return this.Get('Description');
34712
+ }
34713
+ set Description(value) {
34714
+ this.Set('Description', value);
34715
+ }
34716
+ /**
34717
+ * * Field Name: SourceType
34718
+ * * Display Name: Source Type
34719
+ * * SQL Data Type: nvarchar(20)
34720
+ * * Default Value: RunView
34721
+ * * Value List Type: List
34722
+ * * Possible Values
34723
+ * * RunQuery
34724
+ * * RunView
34725
+ * * Description: Type of data source: RunView or RunQuery. Determines which parameters are used.
34726
+ */
34727
+ get SourceType() {
34728
+ return this.Get('SourceType');
34729
+ }
34730
+ set SourceType(value) {
34731
+ this.Set('SourceType', value);
34732
+ }
34733
+ /**
34734
+ * * Field Name: EntityName
34735
+ * * Display Name: Entity Name
34736
+ * * SQL Data Type: nvarchar(255)
34737
+ * * Description: Entity name for RunView data sources (e.g., "Entities", "AI Models")
34738
+ */
34739
+ get EntityName() {
34740
+ return this.Get('EntityName');
34741
+ }
34742
+ set EntityName(value) {
34743
+ this.Set('EntityName', value);
34744
+ }
34745
+ /**
34746
+ * * Field Name: ExtraFilter
34747
+ * * Display Name: Extra Filter
34748
+ * * SQL Data Type: nvarchar(MAX)
34749
+ * * Description: SQL WHERE clause filter for RunView data sources
34750
+ */
34751
+ get ExtraFilter() {
34752
+ return this.Get('ExtraFilter');
34753
+ }
34754
+ set ExtraFilter(value) {
34755
+ this.Set('ExtraFilter', value);
34756
+ }
34757
+ /**
34758
+ * * Field Name: OrderBy
34759
+ * * Display Name: Order By
34760
+ * * SQL Data Type: nvarchar(500)
34761
+ * * Description: SQL ORDER BY clause for RunView data sources
34762
+ */
34763
+ get OrderBy() {
34764
+ return this.Get('OrderBy');
34765
+ }
34766
+ set OrderBy(value) {
34767
+ this.Set('OrderBy', value);
34768
+ }
34769
+ /**
34770
+ * * Field Name: FieldsToRetrieve
34771
+ * * Display Name: Fields To Retrieve
34772
+ * * SQL Data Type: nvarchar(MAX)
34773
+ * * Description: JSON array of field names to return for RunView data sources (e.g., ["ID", "Name", "Description"])
34774
+ */
34775
+ get FieldsToRetrieve() {
34776
+ return this.Get('FieldsToRetrieve');
34777
+ }
34778
+ set FieldsToRetrieve(value) {
34779
+ this.Set('FieldsToRetrieve', value);
34780
+ }
34781
+ /**
34782
+ * * Field Name: ResultType
34783
+ * * Display Name: Result Type
34784
+ * * SQL Data Type: nvarchar(20)
34785
+ * * Default Value: simple
34786
+ * * Value List Type: List
34787
+ * * Possible Values
34788
+ * * entity_object
34789
+ * * simple
34790
+ * * Description: Result type for RunView: simple (default) or entity_object
34791
+ */
34792
+ get ResultType() {
34793
+ return this.Get('ResultType');
34794
+ }
34795
+ set ResultType(value) {
34796
+ this.Set('ResultType', value);
34797
+ }
34798
+ /**
34799
+ * * Field Name: QueryName
34800
+ * * Display Name: Query Name
34801
+ * * SQL Data Type: nvarchar(255)
34802
+ * * Description: Query name for RunQuery data sources
34803
+ */
34804
+ get QueryName() {
34805
+ return this.Get('QueryName');
34806
+ }
34807
+ set QueryName(value) {
34808
+ this.Set('QueryName', value);
34809
+ }
34810
+ /**
34811
+ * * Field Name: CategoryPath
34812
+ * * Display Name: Category Path
34813
+ * * SQL Data Type: nvarchar(500)
34814
+ * * Description: Category path for RunQuery data sources (e.g., "/MJ/AI/Agents/")
34815
+ */
34816
+ get CategoryPath() {
34817
+ return this.Get('CategoryPath');
34818
+ }
34819
+ set CategoryPath(value) {
34820
+ this.Set('CategoryPath', value);
34821
+ }
34822
+ /**
34823
+ * * Field Name: Parameters
34824
+ * * Display Name: Parameters
34825
+ * * SQL Data Type: nvarchar(MAX)
34826
+ * * Description: JSON object of parameters for RunQuery data sources (e.g., {"organizationId": "123"})
34827
+ */
34828
+ get Parameters() {
34829
+ return this.Get('Parameters');
34830
+ }
34831
+ set Parameters(value) {
34832
+ this.Set('Parameters', value);
34833
+ }
34834
+ /**
34835
+ * * Field Name: MaxRows
34836
+ * * Display Name: Max Rows
34837
+ * * SQL Data Type: int
34838
+ * * Description: Maximum number of rows to return. Applies to both RunView and RunQuery.
34839
+ */
34840
+ get MaxRows() {
34841
+ return this.Get('MaxRows');
34842
+ }
34843
+ set MaxRows(value) {
34844
+ this.Set('MaxRows', value);
34845
+ }
34846
+ /**
34847
+ * * Field Name: ExecutionOrder
34848
+ * * Display Name: Execution Order
34849
+ * * SQL Data Type: int
34850
+ * * Default Value: 0
34851
+ * * Description: Execution order when multiple data sources are defined for an agent (lower numbers execute first)
34852
+ */
34853
+ get ExecutionOrder() {
34854
+ return this.Get('ExecutionOrder');
34855
+ }
34856
+ set ExecutionOrder(value) {
34857
+ this.Set('ExecutionOrder', value);
34858
+ }
34859
+ /**
34860
+ * * Field Name: Status
34861
+ * * Display Name: Status
34862
+ * * SQL Data Type: nvarchar(20)
34863
+ * * Default Value: Active
34864
+ * * Value List Type: List
34865
+ * * Possible Values
34866
+ * * Active
34867
+ * * Disabled
34868
+ * * Description: Status of the data source: Active or Disabled
34869
+ */
34870
+ get Status() {
34871
+ return this.Get('Status');
34872
+ }
34873
+ set Status(value) {
34874
+ this.Set('Status', value);
34875
+ }
34876
+ /**
34877
+ * * Field Name: CachePolicy
34878
+ * * Display Name: Cache Policy
34879
+ * * SQL Data Type: nvarchar(20)
34880
+ * * Default Value: None
34881
+ * * Value List Type: List
34882
+ * * Possible Values
34883
+ * * None
34884
+ * * PerAgent
34885
+ * * PerRun
34886
+ * * Description: Cache policy: None (no caching), PerRun (cache for duration of agent run), PerAgent (cache across runs with timeout)
34887
+ */
34888
+ get CachePolicy() {
34889
+ return this.Get('CachePolicy');
34890
+ }
34891
+ set CachePolicy(value) {
34892
+ this.Set('CachePolicy', value);
34893
+ }
34894
+ /**
34895
+ * * Field Name: CacheTimeoutSeconds
34896
+ * * Display Name: Cache Timeout Seconds
34897
+ * * SQL Data Type: int
34898
+ * * Description: Time-to-live in seconds for PerAgent cache policy. Ignored for other cache policies.
34899
+ */
34900
+ get CacheTimeoutSeconds() {
34901
+ return this.Get('CacheTimeoutSeconds');
34902
+ }
34903
+ set CacheTimeoutSeconds(value) {
34904
+ this.Set('CacheTimeoutSeconds', value);
34905
+ }
34906
+ /**
34907
+ * * Field Name: DestinationType
34908
+ * * Display Name: Destination Type
34909
+ * * SQL Data Type: nvarchar(20)
34910
+ * * Default Value: Data
34911
+ * * Value List Type: List
34912
+ * * Possible Values
34913
+ * * Context
34914
+ * * Data
34915
+ * * Payload
34916
+ * * Description: Destination for the preloaded data: Data (for Nunjucks templates in prompts), Context (for actions only), or Payload (for agent state)
34917
+ */
34918
+ get DestinationType() {
34919
+ return this.Get('DestinationType');
34920
+ }
34921
+ set DestinationType(value) {
34922
+ this.Set('DestinationType', value);
34923
+ }
34924
+ /**
34925
+ * * Field Name: DestinationPath
34926
+ * * Display Name: Destination Path
34927
+ * * SQL Data Type: nvarchar(500)
34928
+ * * Description: Path within the destination where data should be injected. Supports nested paths using dot notation (e.g., "config.api.endpoints", "analysis.orders.recent"). If null, uses Name as root-level key.
34929
+ */
34930
+ get DestinationPath() {
34931
+ return this.Get('DestinationPath');
34932
+ }
34933
+ set DestinationPath(value) {
34934
+ this.Set('DestinationPath', value);
34935
+ }
34936
+ /**
34937
+ * * Field Name: __mj_CreatedAt
34938
+ * * Display Name: Created At
34939
+ * * SQL Data Type: datetimeoffset
34940
+ * * Default Value: getutcdate()
34941
+ */
34942
+ get __mj_CreatedAt() {
34943
+ return this.Get('__mj_CreatedAt');
34944
+ }
34945
+ /**
34946
+ * * Field Name: __mj_UpdatedAt
34947
+ * * Display Name: Updated At
34948
+ * * SQL Data Type: datetimeoffset
34949
+ * * Default Value: getutcdate()
34950
+ */
34951
+ get __mj_UpdatedAt() {
34952
+ return this.Get('__mj_UpdatedAt');
34953
+ }
34954
+ /**
34955
+ * * Field Name: Agent
34956
+ * * Display Name: Agent
34957
+ * * SQL Data Type: nvarchar(255)
34958
+ */
34959
+ get Agent() {
34960
+ return this.Get('Agent');
34961
+ }
34962
+ };
34963
+ exports.AIAgentDataSourceEntity = AIAgentDataSourceEntity;
34964
+ exports.AIAgentDataSourceEntity = AIAgentDataSourceEntity = __decorate([
34965
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Agent Data Sources')
34966
+ ], AIAgentDataSourceEntity);
34188
34967
  /**
34189
34968
  * MJ: AI Agent Permissions - strongly typed entity sub-class
34190
34969
  * * Schema: __mj
@@ -34535,9 +35314,9 @@ let AIAgentPromptEntity = class AIAgentPromptEntity extends core_1.BaseEntity {
34535
35314
  * * Default Value: Active
34536
35315
  * * Value List Type: List
34537
35316
  * * Possible Values
34538
- * * Inactive
34539
- * * Deprecated
34540
35317
  * * Active
35318
+ * * Deprecated
35319
+ * * Inactive
34541
35320
  * * Preview
34542
35321
  * * Description: The current status of this agent-prompt mapping. Values include Active, Inactive, Deprecated, and Preview.
34543
35322
  */
@@ -34554,12 +35333,12 @@ let AIAgentPromptEntity = class AIAgentPromptEntity extends core_1.BaseEntity {
34554
35333
  * * Default Value: Complete
34555
35334
  * * Value List Type: List
34556
35335
  * * Possible Values
35336
+ * * Complete
35337
+ * * Custom
34557
35338
  * * InitialMessages
34558
35339
  * * None
34559
- * * Smart
34560
35340
  * * RecentMessages
34561
- * * Complete
34562
- * * Custom
35341
+ * * Smart
34563
35342
  * * Description: Determines how conversation context is filtered for this prompt: Complete, Smart, None, RecentMessages, InitialMessages, or Custom.
34564
35343
  */
34565
35344
  get ContextBehavior() {
@@ -34700,9 +35479,9 @@ let AIAgentRelationshipEntity = class AIAgentRelationshipEntity extends core_1.B
34700
35479
  * * SQL Data Type: nvarchar(50)
34701
35480
  * * Value List Type: List
34702
35481
  * * Possible Values
34703
- * * Revoked
34704
- * * Pending
34705
35482
  * * Active
35483
+ * * Pending
35484
+ * * Revoked
34706
35485
  * * Description: Status of the relationship: Pending (awaiting approval), Active (can invoke), or Revoked (no longer allowed)
34707
35486
  */
34708
35487
  get Status() {
@@ -34884,11 +35663,11 @@ let AIAgentRunStepEntity = class AIAgentRunStepEntity extends core_1.BaseEntity
34884
35663
  * * Value List Type: List
34885
35664
  * * Possible Values
34886
35665
  * * Actions
34887
- * * Validation
34888
- * * Sub-Agent
34889
35666
  * * Chat
34890
35667
  * * Decision
34891
35668
  * * Prompt
35669
+ * * Sub-Agent
35670
+ * * Validation
34892
35671
  * * Description: Type of execution step: Prompt, Actions, Sub-Agent, Decision, Chat, Validation
34893
35672
  */
34894
35673
  get StepType() {
@@ -34928,10 +35707,10 @@ let AIAgentRunStepEntity = class AIAgentRunStepEntity extends core_1.BaseEntity
34928
35707
  * * Default Value: Running
34929
35708
  * * Value List Type: List
34930
35709
  * * Possible Values
35710
+ * * Cancelled
35711
+ * * Completed
34931
35712
  * * Failed
34932
35713
  * * Running
34933
- * * Completed
34934
- * * Cancelled
34935
35714
  * * Description: Current execution status of this step: Running, Completed, Failed, Cancelled
34936
35715
  */
34937
35716
  get Status() {
@@ -35074,13 +35853,13 @@ let AIAgentRunStepEntity = class AIAgentRunStepEntity extends core_1.BaseEntity
35074
35853
  * * Value List Type: List
35075
35854
  * * Possible Values
35076
35855
  * * Fail
35077
- * * Pass
35078
- * * Warn
35079
35856
  * * Fail
35080
- * * Warn
35857
+ * * Pass
35081
35858
  * * Pass
35082
35859
  * * Retry
35083
35860
  * * Retry
35861
+ * * Warn
35862
+ * * Warn
35084
35863
  * * Description: Result of the final payload validation for this step. Pass indicates successful
35085
35864
  validation, Retry means validation failed but will retry, Fail means validation failed
35086
35865
  permanently, Warn means validation failed but execution continues.
@@ -35240,11 +36019,11 @@ let AIAgentRunEntity = class AIAgentRunEntity extends core_1.BaseEntity {
35240
36019
  * * Default Value: Running
35241
36020
  * * Value List Type: List
35242
36021
  * * Possible Values
35243
- * * Failed
35244
- * * Running
35245
36022
  * * Cancelled
35246
- * * Paused
35247
36023
  * * Completed
36024
+ * * Failed
36025
+ * * Paused
36026
+ * * Running
35248
36027
  * * Description: Current status of the agent run. Running -> Completed/Failed/Cancelled
35249
36028
  */
35250
36029
  get Status() {
@@ -35500,9 +36279,9 @@ let AIAgentRunEntity = class AIAgentRunEntity extends core_1.BaseEntity {
35500
36279
  * * SQL Data Type: nvarchar(30)
35501
36280
  * * Value List Type: List
35502
36281
  * * Possible Values
35503
- * * User Request
35504
- * * Timeout
35505
36282
  * * System
36283
+ * * Timeout
36284
+ * * User Request
35506
36285
  * * Description: Reason for cancellation if the agent run was cancelled
35507
36286
  */
35508
36287
  get CancellationReason() {
@@ -35517,12 +36296,12 @@ let AIAgentRunEntity = class AIAgentRunEntity extends core_1.BaseEntity {
35517
36296
  * * SQL Data Type: nvarchar(30)
35518
36297
  * * Value List Type: List
35519
36298
  * * Possible Values
36299
+ * * Actions
35520
36300
  * * Chat
36301
+ * * Failed
35521
36302
  * * Retry
35522
- * * Actions
35523
36303
  * * Sub-Agent
35524
36304
  * * Success
35525
- * * Failed
35526
36305
  * * Description: The final step type that concluded the agent run
35527
36306
  */
35528
36307
  get FinalStep() {
@@ -36067,9 +36846,9 @@ let AIAgentStepEntity = class AIAgentStepEntity extends core_1.BaseEntity {
36067
36846
  * * SQL Data Type: nvarchar(20)
36068
36847
  * * Value List Type: List
36069
36848
  * * Possible Values
36070
- * * Sub-Agent
36071
- * * Prompt
36072
36849
  * * Action
36850
+ * * Prompt
36851
+ * * Sub-Agent
36073
36852
  * * Description: Type of step: Action (execute an action), Sub-Agent (delegate to another agent), or Prompt (run an AI prompt)
36074
36853
  */
36075
36854
  get StepType() {
@@ -36122,8 +36901,8 @@ let AIAgentStepEntity = class AIAgentStepEntity extends core_1.BaseEntity {
36122
36901
  * * Default Value: fail
36123
36902
  * * Value List Type: List
36124
36903
  * * Possible Values
36125
- * * fail
36126
36904
  * * continue
36905
+ * * fail
36127
36906
  * * retry
36128
36907
  */
36129
36908
  get OnErrorBehavior() {
@@ -36253,8 +37032,8 @@ let AIAgentStepEntity = class AIAgentStepEntity extends core_1.BaseEntity {
36253
37032
  * * Default Value: Active
36254
37033
  * * Value List Type: List
36255
37034
  * * Possible Values
36256
- * * Disabled
36257
37035
  * * Active
37036
+ * * Disabled
36258
37037
  * * Pending
36259
37038
  * * Description: Controls whether this step is executed. Active=normal execution, Pending=skip but may activate later, Disabled=never execute
36260
37039
  */
@@ -36567,11 +37346,11 @@ let AIConfigurationParamEntity = class AIConfigurationParamEntity extends core_1
36567
37346
  * * Default Value: string
36568
37347
  * * Value List Type: List
36569
37348
  * * Possible Values
36570
- * * date
36571
37349
  * * boolean
37350
+ * * date
36572
37351
  * * number
36573
- * * string
36574
37352
  * * object
37353
+ * * string
36575
37354
  * * Description: The data type of the parameter (string, number, boolean, date, object).
36576
37355
  */
36577
37356
  get Type() {
@@ -36719,9 +37498,9 @@ let AIConfigurationEntity = class AIConfigurationEntity extends core_1.BaseEntit
36719
37498
  * * Default Value: Active
36720
37499
  * * Value List Type: List
36721
37500
  * * Possible Values
36722
- * * Inactive
36723
- * * Deprecated
36724
37501
  * * Active
37502
+ * * Deprecated
37503
+ * * Inactive
36725
37504
  * * Preview
36726
37505
  * * Description: The current status of the configuration. Values include Active, Inactive, Deprecated, and Preview.
36727
37506
  */
@@ -36957,10 +37736,10 @@ let AIModelCostEntity = class AIModelCostEntity extends core_1.BaseEntity {
36957
37736
  * * SQL Data Type: nvarchar(20)
36958
37737
  * * Value List Type: List
36959
37738
  * * Possible Values
36960
- * * Pending
36961
- * * Expired
36962
37739
  * * Active
37740
+ * * Expired
36963
37741
  * * Invalid
37742
+ * * Pending
36964
37743
  * * Description: Current status of this pricing record. Active=currently in use, Pending=scheduled for future, Expired=no longer valid, Invalid=data error
36965
37744
  */
36966
37745
  get Status() {
@@ -37493,10 +38272,10 @@ let AIModelVendorEntity = class AIModelVendorEntity extends core_1.BaseEntity {
37493
38272
  * * Default Value: Active
37494
38273
  * * Value List Type: List
37495
38274
  * * Possible Values
37496
- * * Preview
37497
- * * Deprecated
37498
38275
  * * Active
38276
+ * * Deprecated
37499
38277
  * * Inactive
38278
+ * * Preview
37500
38279
  * * Description: The current status of this model-vendor combination. Values include Active, Inactive, Deprecated, and Preview.
37501
38280
  */
37502
38281
  get Status() {
@@ -37871,9 +38650,9 @@ let AIPromptModelEntity = class AIPromptModelEntity extends core_1.BaseEntity {
37871
38650
  * * Default Value: Active
37872
38651
  * * Value List Type: List
37873
38652
  * * Possible Values
37874
- * * Inactive
37875
38653
  * * Active
37876
38654
  * * Deprecated
38655
+ * * Inactive
37877
38656
  * * Preview
37878
38657
  * * Description: The current status of this model configuration. Values include Active, Inactive, Deprecated, and Preview.
37879
38658
  */
@@ -37890,9 +38669,9 @@ let AIPromptModelEntity = class AIPromptModelEntity extends core_1.BaseEntity {
37890
38669
  * * Default Value: None
37891
38670
  * * Value List Type: List
37892
38671
  * * Possible Values
38672
+ * * ConfigParam
37893
38673
  * * None
37894
38674
  * * StaticCount
37895
- * * ConfigParam
37896
38675
  * * Description: Controls how this model participates in parallelization: None, StaticCount, or ConfigParam.
37897
38676
  */
37898
38677
  get ParallelizationMode() {
@@ -38312,10 +39091,10 @@ let AIPromptRunEntity = class AIPromptRunEntity extends core_1.BaseEntity {
38312
39091
  * * Default Value: Single
38313
39092
  * * Value List Type: List
38314
39093
  * * Possible Values
38315
- * * ParallelParent
38316
39094
  * * ParallelChild
38317
- * * Single
39095
+ * * ParallelParent
38318
39096
  * * ResultSelector
39097
+ * * Single
38319
39098
  * * Description: Type of prompt run execution: Single (standard single prompt), ParallelParent (coordinator for parallel execution), ParallelChild (individual parallel execution), ResultSelector (result selection prompt that chooses best result)
38320
39099
  */
38321
39100
  get RunType() {
@@ -38827,11 +39606,11 @@ let AIPromptRunEntity = class AIPromptRunEntity extends core_1.BaseEntity {
38827
39606
  * * Default Value: Pending
38828
39607
  * * Value List Type: List
38829
39608
  * * Possible Values
38830
- * * Running
38831
- * * Pending
38832
- * * Failed
38833
39609
  * * Cancelled
38834
39610
  * * Completed
39611
+ * * Failed
39612
+ * * Pending
39613
+ * * Running
38835
39614
  * * Description: Current execution status of the prompt run. Valid values: Pending, Running, Completed, Failed, Cancelled
38836
39615
  */
38837
39616
  get Status() {
@@ -38884,8 +39663,8 @@ let AIPromptRunEntity = class AIPromptRunEntity extends core_1.BaseEntity {
38884
39663
  * * Value List Type: List
38885
39664
  * * Possible Values
38886
39665
  * * ByPower
38887
- * * Specific
38888
39666
  * * Default
39667
+ * * Specific
38889
39668
  * * Description: Strategy used for model selection. Valid values: Default (system default), Specific (specific models configured), ByPower (based on power ranking)
38890
39669
  */
38891
39670
  get SelectionStrategy() {
@@ -39370,10 +40149,10 @@ let AIVendorTypeEntity = class AIVendorTypeEntity extends core_1.BaseEntity {
39370
40149
  * * Default Value: Active
39371
40150
  * * Value List Type: List
39372
40151
  * * Possible Values
39373
- * * Inactive
39374
40152
  * * Active
39375
- * * Preview
39376
40153
  * * Deprecated
40154
+ * * Inactive
40155
+ * * Preview
39377
40156
  * * Description: The current status of this vendor type. Values include Active, Inactive, Deprecated, and Preview.
39378
40157
  */
39379
40158
  get Status() {
@@ -39508,6 +40287,182 @@ exports.AIVendorEntity = AIVendorEntity;
39508
40287
  exports.AIVendorEntity = AIVendorEntity = __decorate([
39509
40288
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Vendors')
39510
40289
  ], AIVendorEntity);
40290
+ /**
40291
+ * MJ: Artifact Permissions - strongly typed entity sub-class
40292
+ * * Schema: __mj
40293
+ * * Base Table: ArtifactPermission
40294
+ * * Base View: vwArtifactPermissions
40295
+ * * @description Manages user permissions for artifacts with granular access control (Read, Edit, Delete, Share)
40296
+ * * Primary Key: ID
40297
+ * @extends {BaseEntity}
40298
+ * @class
40299
+ * @public
40300
+ */
40301
+ let ArtifactPermissionEntity = class ArtifactPermissionEntity extends core_1.BaseEntity {
40302
+ /**
40303
+ * Loads the MJ: Artifact Permissions record from the database
40304
+ * @param ID: string - primary key value to load the MJ: Artifact Permissions record.
40305
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
40306
+ * @returns {Promise<boolean>} - true if successful, false otherwise
40307
+ * @public
40308
+ * @async
40309
+ * @memberof ArtifactPermissionEntity
40310
+ * @method
40311
+ * @override
40312
+ */
40313
+ async Load(ID, EntityRelationshipsToLoad) {
40314
+ const compositeKey = new core_1.CompositeKey();
40315
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
40316
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
40317
+ }
40318
+ /**
40319
+ * * Field Name: ID
40320
+ * * Display Name: ID
40321
+ * * SQL Data Type: uniqueidentifier
40322
+ * * Default Value: newsequentialid()
40323
+ */
40324
+ get ID() {
40325
+ return this.Get('ID');
40326
+ }
40327
+ set ID(value) {
40328
+ this.Set('ID', value);
40329
+ }
40330
+ /**
40331
+ * * Field Name: ArtifactID
40332
+ * * Display Name: Artifact ID
40333
+ * * SQL Data Type: uniqueidentifier
40334
+ * * Related Entity/Foreign Key: MJ: Artifacts (vwArtifacts.ID)
40335
+ */
40336
+ get ArtifactID() {
40337
+ return this.Get('ArtifactID');
40338
+ }
40339
+ set ArtifactID(value) {
40340
+ this.Set('ArtifactID', value);
40341
+ }
40342
+ /**
40343
+ * * Field Name: UserID
40344
+ * * Display Name: User ID
40345
+ * * SQL Data Type: uniqueidentifier
40346
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
40347
+ */
40348
+ get UserID() {
40349
+ return this.Get('UserID');
40350
+ }
40351
+ set UserID(value) {
40352
+ this.Set('UserID', value);
40353
+ }
40354
+ /**
40355
+ * * Field Name: CanRead
40356
+ * * Display Name: Can Read
40357
+ * * SQL Data Type: bit
40358
+ * * Default Value: 1
40359
+ * * Description: Whether the user can view/read the artifact
40360
+ */
40361
+ get CanRead() {
40362
+ return this.Get('CanRead');
40363
+ }
40364
+ set CanRead(value) {
40365
+ this.Set('CanRead', value);
40366
+ }
40367
+ /**
40368
+ * * Field Name: CanEdit
40369
+ * * Display Name: Can Edit
40370
+ * * SQL Data Type: bit
40371
+ * * Default Value: 0
40372
+ * * Description: Whether the user can modify the artifact or create new versions
40373
+ */
40374
+ get CanEdit() {
40375
+ return this.Get('CanEdit');
40376
+ }
40377
+ set CanEdit(value) {
40378
+ this.Set('CanEdit', value);
40379
+ }
40380
+ /**
40381
+ * * Field Name: CanDelete
40382
+ * * Display Name: Can Delete
40383
+ * * SQL Data Type: bit
40384
+ * * Default Value: 0
40385
+ * * Description: Whether the user can delete the artifact
40386
+ */
40387
+ get CanDelete() {
40388
+ return this.Get('CanDelete');
40389
+ }
40390
+ set CanDelete(value) {
40391
+ this.Set('CanDelete', value);
40392
+ }
40393
+ /**
40394
+ * * Field Name: CanShare
40395
+ * * Display Name: Can Share
40396
+ * * SQL Data Type: bit
40397
+ * * Default Value: 0
40398
+ * * Description: Whether the user can share the artifact with other users
40399
+ */
40400
+ get CanShare() {
40401
+ return this.Get('CanShare');
40402
+ }
40403
+ set CanShare(value) {
40404
+ this.Set('CanShare', value);
40405
+ }
40406
+ /**
40407
+ * * Field Name: SharedByUserID
40408
+ * * Display Name: Shared By User ID
40409
+ * * SQL Data Type: uniqueidentifier
40410
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
40411
+ * * Description: Foreign key to the User who shared this artifact (if shared)
40412
+ */
40413
+ get SharedByUserID() {
40414
+ return this.Get('SharedByUserID');
40415
+ }
40416
+ set SharedByUserID(value) {
40417
+ this.Set('SharedByUserID', value);
40418
+ }
40419
+ /**
40420
+ * * Field Name: __mj_CreatedAt
40421
+ * * Display Name: Created At
40422
+ * * SQL Data Type: datetimeoffset
40423
+ * * Default Value: getutcdate()
40424
+ */
40425
+ get __mj_CreatedAt() {
40426
+ return this.Get('__mj_CreatedAt');
40427
+ }
40428
+ /**
40429
+ * * Field Name: __mj_UpdatedAt
40430
+ * * Display Name: Updated At
40431
+ * * SQL Data Type: datetimeoffset
40432
+ * * Default Value: getutcdate()
40433
+ */
40434
+ get __mj_UpdatedAt() {
40435
+ return this.Get('__mj_UpdatedAt');
40436
+ }
40437
+ /**
40438
+ * * Field Name: Artifact
40439
+ * * Display Name: Artifact
40440
+ * * SQL Data Type: nvarchar(255)
40441
+ */
40442
+ get Artifact() {
40443
+ return this.Get('Artifact');
40444
+ }
40445
+ /**
40446
+ * * Field Name: User
40447
+ * * Display Name: User
40448
+ * * SQL Data Type: nvarchar(100)
40449
+ */
40450
+ get User() {
40451
+ return this.Get('User');
40452
+ }
40453
+ /**
40454
+ * * Field Name: SharedByUser
40455
+ * * Display Name: Shared By User
40456
+ * * SQL Data Type: nvarchar(100)
40457
+ */
40458
+ get SharedByUser() {
40459
+ return this.Get('SharedByUser');
40460
+ }
40461
+ };
40462
+ exports.ArtifactPermissionEntity = ArtifactPermissionEntity;
40463
+ exports.ArtifactPermissionEntity = ArtifactPermissionEntity = __decorate([
40464
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Artifact Permissions')
40465
+ ], ArtifactPermissionEntity);
39511
40466
  /**
39512
40467
  * MJ: Artifact Types - strongly typed entity sub-class
39513
40468
  * * Schema: __mj
@@ -39767,10 +40722,10 @@ let ArtifactVersionAttributeEntity = class ArtifactVersionAttributeEntity extend
39767
40722
  * * SQL Data Type: nvarchar(50)
39768
40723
  * * Value List Type: List
39769
40724
  * * Possible Values
40725
+ * * description
39770
40726
  * * displayHtml
39771
- * * name
39772
40727
  * * displayMarkdown
39773
- * * description
40728
+ * * name
39774
40729
  * * Description: Maps this attribute to a standard property for UI rendering: 'name', 'description', 'displayMarkdown', 'displayHtml', or NULL for custom attributes
39775
40730
  */
39776
40731
  get StandardProperty() {
@@ -40129,6 +41084,23 @@ let ArtifactEntity = class ArtifactEntity extends core_1.BaseEntity {
40129
41084
  return this.Get('__mj_UpdatedAt');
40130
41085
  }
40131
41086
  /**
41087
+ * * Field Name: Visibility
41088
+ * * Display Name: Visibility
41089
+ * * SQL Data Type: nvarchar(20)
41090
+ * * Default Value: Always
41091
+ * * Value List Type: List
41092
+ * * Possible Values
41093
+ * * System Only
41094
+ * * Always
41095
+ * * Description: Controls artifact visibility in user-facing lists. "Always" shows in all lists, "System Only" hides from normal views (for system-generated artifacts like agent routing payloads).
41096
+ */
41097
+ get Visibility() {
41098
+ return this.Get('Visibility');
41099
+ }
41100
+ set Visibility(value) {
41101
+ this.Set('Visibility', value);
41102
+ }
41103
+ /**
40132
41104
  * * Field Name: Environment
40133
41105
  * * Display Name: Environment
40134
41106
  * * SQL Data Type: nvarchar(255)
@@ -40843,12 +41815,12 @@ let ComponentLibraryEntity = class ComponentLibraryEntity extends core_1.BaseEnt
40843
41815
  * * SQL Data Type: nvarchar(100)
40844
41816
  * * Value List Type: List
40845
41817
  * * Possible Values
40846
- * * Other
40847
41818
  * * Charting
40848
- * * Runtime
40849
- * * Utility
40850
41819
  * * Core
41820
+ * * Other
41821
+ * * Runtime
40851
41822
  * * UI
41823
+ * * Utility
40852
41824
  * * Description: Library category: Core, Runtime, UI, Charting, Utility, or Other
40853
41825
  */
40854
41826
  get Category() {
@@ -40918,9 +41890,9 @@ let ComponentLibraryEntity = class ComponentLibraryEntity extends core_1.BaseEnt
40918
41890
  * * Default Value: Active
40919
41891
  * * Value List Type: List
40920
41892
  * * Possible Values
40921
- * * Disabled
40922
- * * Deprecated
40923
41893
  * * Active
41894
+ * * Deprecated
41895
+ * * Disabled
40924
41896
  * * Description: Status of the component library. Active: fully supported; Deprecated: works but shows console warning; Disabled: throws error if used
40925
41897
  */
40926
41898
  get Status() {
@@ -41207,8 +42179,8 @@ let ComponentRegistryEntity = class ComponentRegistryEntity extends core_1.BaseE
41207
42179
  * * Value List Type: List
41208
42180
  * * Possible Values
41209
42181
  * * Active
41210
- * * Offline
41211
42182
  * * Deprecated
42183
+ * * Offline
41212
42184
  * * Description: Current status of the registry: active, deprecated, or offline
41213
42185
  */
41214
42186
  get Status() {
@@ -41360,16 +42332,16 @@ let ComponentEntity = class ComponentEntity extends core_1.BaseEntity {
41360
42332
  * * SQL Data Type: nvarchar(255)
41361
42333
  * * Value List Type: List
41362
42334
  * * Possible Values
41363
- * * Other
41364
- * * Widget
41365
42335
  * * Chart
41366
- * * Navigation
41367
42336
  * * Dashboard
42337
+ * * Form
42338
+ * * Navigation
42339
+ * * Other
42340
+ * * Report
41368
42341
  * * Search
41369
42342
  * * Table
41370
42343
  * * Utility
41371
- * * Report
41372
- * * Form
42344
+ * * Widget
41373
42345
  * * Description: Component type: report, dashboard, form, table, chart, navigation, search, widget, utility, or other
41374
42346
  */
41375
42347
  get Type() {
@@ -41384,9 +42356,9 @@ let ComponentEntity = class ComponentEntity extends core_1.BaseEntity {
41384
42356
  * * SQL Data Type: nvarchar(50)
41385
42357
  * * Value List Type: List
41386
42358
  * * Possible Values
41387
- * * Published
41388
- * * Draft
41389
42359
  * * Deprecated
42360
+ * * Draft
42361
+ * * Published
41390
42362
  * * Description: Publication status: draft, published, or deprecated
41391
42363
  */
41392
42364
  get Status() {
@@ -41658,6 +42630,7 @@ exports.ComponentEntity = ComponentEntity = __decorate([
41658
42630
  * @extends {BaseEntity}
41659
42631
  * @class
41660
42632
  * @public
42633
+ * @deprecated This entity is deprecated and will be removed in a future version. Using it will result in console warnings.
41661
42634
  */
41662
42635
  let ConversationArtifactPermissionEntity = class ConversationArtifactPermissionEntity extends core_1.BaseEntity {
41663
42636
  /**
@@ -41719,9 +42692,9 @@ let ConversationArtifactPermissionEntity = class ConversationArtifactPermissionE
41719
42692
  * * SQL Data Type: nvarchar(20)
41720
42693
  * * Value List Type: List
41721
42694
  * * Possible Values
42695
+ * * Edit
41722
42696
  * * Owner
41723
42697
  * * Read
41724
- * * Edit
41725
42698
  * * Description: Level of access granted (Read, Edit, Owner)
41726
42699
  */
41727
42700
  get AccessLevel() {
@@ -41771,6 +42744,7 @@ exports.ConversationArtifactPermissionEntity = ConversationArtifactPermissionEnt
41771
42744
  * @extends {BaseEntity}
41772
42745
  * @class
41773
42746
  * @public
42747
+ * @deprecated This entity is deprecated and will be removed in a future version. Using it will result in console warnings.
41774
42748
  */
41775
42749
  let ConversationArtifactVersionEntity = class ConversationArtifactVersionEntity extends core_1.BaseEntity {
41776
42750
  /**
@@ -41962,6 +42936,7 @@ exports.ConversationArtifactVersionEntity = ConversationArtifactVersionEntity =
41962
42936
  * @extends {BaseEntity}
41963
42937
  * @class
41964
42938
  * @public
42939
+ * @deprecated This entity is deprecated and will be removed in a future version. Using it will result in console warnings.
41965
42940
  */
41966
42941
  let ConversationArtifactEntity = class ConversationArtifactEntity extends core_1.BaseEntity {
41967
42942
  /**
@@ -42084,9 +43059,9 @@ let ConversationArtifactEntity = class ConversationArtifactEntity extends core_1
42084
43059
  * * Value List Type: List
42085
43060
  * * Possible Values
42086
43061
  * * Everyone
43062
+ * * None
42087
43063
  * * Public
42088
43064
  * * SpecificUsers
42089
- * * None
42090
43065
  * * Description: Controls who can view this artifact (None, SpecificUsers, Everyone, Public)
42091
43066
  */
42092
43067
  get SharingScope() {
@@ -42887,8 +43862,8 @@ let PublicLinkEntity = class PublicLinkEntity extends core_1.BaseEntity {
42887
43862
  * * Value List Type: List
42888
43863
  * * Possible Values
42889
43864
  * * Artifact
42890
- * * Conversation
42891
43865
  * * Collection
43866
+ * * Conversation
42892
43867
  * * Description: Type of resource being shared (Artifact, Conversation, Collection)
42893
43868
  */
42894
43869
  get ResourceType() {
@@ -43095,11 +44070,11 @@ let QueryParameterEntity = class QueryParameterEntity extends core_1.BaseEntity
43095
44070
  * * SQL Data Type: nvarchar(50)
43096
44071
  * * Value List Type: List
43097
44072
  * * Possible Values
43098
- * * date
43099
- * * string
43100
- * * boolean
43101
44073
  * * array
44074
+ * * boolean
44075
+ * * date
43102
44076
  * * number
44077
+ * * string
43103
44078
  * * Description: The data type of the parameter used for validation and type conversion. Valid values are: "string" for text values, "number" for integers or decimals, "date" for date/datetime values (ISO 8601 format expected), "boolean" for true/false values, and "array" for multiple values (typically used with IN clauses). The type determines which validation filters can be applied and how the parameter is processed.
43104
44079
  */
43105
44080
  get Type() {
@@ -43788,11 +44763,11 @@ let ScheduledJobRunEntity = class ScheduledJobRunEntity extends core_1.BaseEntit
43788
44763
  * * Default Value: Running
43789
44764
  * * Value List Type: List
43790
44765
  * * Possible Values
43791
- * * Running
43792
- * * Timeout
43793
- * * Completed
43794
44766
  * * Cancelled
44767
+ * * Completed
43795
44768
  * * Failed
44769
+ * * Running
44770
+ * * Timeout
43796
44771
  * * Description: Current status of the job execution. Running=currently executing, Completed=finished (check Success for outcome), Failed=exception during execution, Cancelled=manually cancelled, Timeout=exceeded maximum execution time.
43797
44772
  */
43798
44773
  get Status() {
@@ -44198,11 +45173,11 @@ let ScheduledJobEntity = class ScheduledJobEntity extends core_1.BaseEntity {
44198
45173
  * * Default Value: Pending
44199
45174
  * * Value List Type: List
44200
45175
  * * Possible Values
44201
- * * Paused
45176
+ * * Active
44202
45177
  * * Disabled
44203
45178
  * * Expired
45179
+ * * Paused
44204
45180
  * * Pending
44205
- * * Active
44206
45181
  * * Description: Current status of the schedule. Pending=created but not yet active, Active=currently running on schedule, Paused=temporarily stopped, Disabled=manually disabled, Expired=past EndAt date.
44207
45182
  */
44208
45183
  get Status() {
@@ -44419,8 +45394,8 @@ let ScheduledJobEntity = class ScheduledJobEntity extends core_1.BaseEntity {
44419
45394
  * * Default Value: Skip
44420
45395
  * * Value List Type: List
44421
45396
  * * Possible Values
44422
- * * Queue
44423
45397
  * * Concurrent
45398
+ * * Queue
44424
45399
  * * Skip
44425
45400
  * * Description: Controls behavior when a new execution is scheduled while a previous execution is still running. Skip=do not start new execution (default), Queue=wait for current to finish then execute, Concurrent=allow multiple simultaneous executions.
44426
45401
  */
@@ -44572,9 +45547,9 @@ let TaskDependencyEntity = class TaskDependencyEntity extends core_1.BaseEntity
44572
45547
  * * Default Value: Prerequisite
44573
45548
  * * Value List Type: List
44574
45549
  * * Possible Values
44575
- * * Prerequisite
44576
45550
  * * Corequisite
44577
45551
  * * Optional
45552
+ * * Prerequisite
44578
45553
  * * Description: Type of dependency relationship (Prerequisite, Corequisite, Optional)
44579
45554
  */
44580
45555
  get DependencyType() {
@@ -44903,12 +45878,12 @@ let TaskEntity = class TaskEntity extends core_1.BaseEntity {
44903
45878
  * * Value List Type: List
44904
45879
  * * Possible Values
44905
45880
  * * Blocked
44906
- * * Failed
45881
+ * * Cancelled
45882
+ * * Complete
44907
45883
  * * Deferred
45884
+ * * Failed
44908
45885
  * * In Progress
44909
45886
  * * Pending
44910
- * * Cancelled
44911
- * * Complete
44912
45887
  * * Description: Current status of the task (Pending, In Progress, Complete, Cancelled, Failed, Blocked, Deferred)
44913
45888
  */
44914
45889
  get Status() {
@@ -45491,10 +46466,10 @@ let QueryEntity = class QueryEntity extends core_1.BaseEntity {
45491
46466
  * * Default Value: Pending
45492
46467
  * * Value List Type: List
45493
46468
  * * Possible Values
45494
- * * Pending
45495
- * * Rejected
45496
46469
  * * Approved
45497
46470
  * * Expired
46471
+ * * Pending
46472
+ * * Rejected
45498
46473
  */
45499
46474
  get Status() {
45500
46475
  return this.Get('Status');
@@ -45929,8 +46904,8 @@ let QueryEntityEntity = class QueryEntityEntity extends core_1.BaseEntity {
45929
46904
  * * Default Value: Manual
45930
46905
  * * Value List Type: List
45931
46906
  * * Possible Values
45932
- * * Manual
45933
46907
  * * AI
46908
+ * * Manual
45934
46909
  * * Description: Indicates how this entity-query relationship was identified. "AI" means the QueryEntityServer used LLM analysis to parse the SQL/template and identify which MemberJunction entities are referenced (by analyzing table names, joins, and query structure). "Manual" means a user explicitly marked this entity as being used by the query. AI detection helps maintain accurate metadata automatically as queries evolve.
45935
46910
  */
45936
46911
  get DetectionMethod() {
@@ -46386,8 +47361,8 @@ let QueueTaskEntity = class QueueTaskEntity extends core_1.BaseEntity {
46386
47361
  * * Default Value: Pending
46387
47362
  * * Value List Type: List
46388
47363
  * * Possible Values
46389
- * * Failed
46390
47364
  * * Completed
47365
+ * * Failed
46391
47366
  * * In Progress
46392
47367
  */
46393
47368
  get Status() {
@@ -47203,11 +48178,11 @@ let RecommendationRunEntity = class RecommendationRunEntity extends core_1.BaseE
47203
48178
  * * SQL Data Type: nvarchar(50)
47204
48179
  * * Value List Type: List
47205
48180
  * * Possible Values
47206
- * * Pending
48181
+ * * Canceled
47207
48182
  * * Completed
47208
48183
  * * Error
47209
48184
  * * In Progress
47210
- * * Canceled
48185
+ * * Pending
47211
48186
  * * Description: The status of the recommendation run
47212
48187
  */
47213
48188
  get Status() {
@@ -47456,9 +48431,9 @@ let RecordChangeReplayRunEntity = class RecordChangeReplayRunEntity extends core
47456
48431
  * * Value List Type: List
47457
48432
  * * Possible Values
47458
48433
  * * Complete
47459
- * * Pending
47460
- * * In Progress
47461
48434
  * * Error
48435
+ * * In Progress
48436
+ * * Pending
47462
48437
  * * Description: Status of the replay run (Pending, In Progress, Complete, Error)
47463
48438
  */
47464
48439
  get Status() {
@@ -47592,9 +48567,9 @@ let RecordChangeEntity = class RecordChangeEntity extends core_1.BaseEntity {
47592
48567
  * * Default Value: Create
47593
48568
  * * Value List Type: List
47594
48569
  * * Possible Values
47595
- * * Update
47596
48570
  * * Create
47597
48571
  * * Delete
48572
+ * * Update
47598
48573
  * * Description: Create, Update, or Delete
47599
48574
  */
47600
48575
  get Type() {
@@ -47675,9 +48650,9 @@ let RecordChangeEntity = class RecordChangeEntity extends core_1.BaseEntity {
47675
48650
  * * Default Value: Complete
47676
48651
  * * Value List Type: List
47677
48652
  * * Possible Values
47678
- * * Pending
47679
48653
  * * Complete
47680
48654
  * * Error
48655
+ * * Pending
47681
48656
  * * Description: For internal record changes generated within MJ, the status is immediately Complete. For external changes that are detected, the workflow starts off as Pending, then In Progress and finally either Complete or Error
47682
48657
  */
47683
48658
  get Status() {
@@ -47853,8 +48828,8 @@ let RecordMergeDeletionLogEntity = class RecordMergeDeletionLogEntity extends co
47853
48828
  * * Value List Type: List
47854
48829
  * * Possible Values
47855
48830
  * * Complete
47856
- * * Pending
47857
48831
  * * Error
48832
+ * * Pending
47858
48833
  */
47859
48834
  get Status() {
47860
48835
  return this.Get('Status');
@@ -47980,8 +48955,8 @@ let RecordMergeLogEntity = class RecordMergeLogEntity extends core_1.BaseEntity
47980
48955
  * * Default Value: Pending
47981
48956
  * * Value List Type: List
47982
48957
  * * Possible Values
47983
- * * Pending
47984
48958
  * * Approved
48959
+ * * Pending
47985
48960
  * * Rejected
47986
48961
  * * Description: Field ApprovalStatus for entity Record Merge Logs.
47987
48962
  */
@@ -48011,8 +48986,8 @@ let RecordMergeLogEntity = class RecordMergeLogEntity extends core_1.BaseEntity
48011
48986
  * * Value List Type: List
48012
48987
  * * Possible Values
48013
48988
  * * Complete
48014
- * * Started
48015
48989
  * * Error
48990
+ * * Started
48016
48991
  * * Description: Field ProcessingStatus for entity Record Merge Logs.
48017
48992
  */
48018
48993
  get ProcessingStatus() {
@@ -48492,9 +49467,9 @@ let ReportEntity = class ReportEntity extends core_1.BaseEntity {
48492
49467
  * * Default Value: Personal
48493
49468
  * * Value List Type: List
48494
49469
  * * Possible Values
48495
- * * Specific
48496
- * * None
48497
49470
  * * Everyone
49471
+ * * None
49472
+ * * Specific
48498
49473
  * * Description: Field SharingScope for entity Reports.
48499
49474
  */
48500
49475
  get SharingScope() {
@@ -49045,9 +50020,9 @@ let ResourcePermissionEntity = class ResourcePermissionEntity extends core_1.Bas
49045
50020
  * * SQL Data Type: nvarchar(20)
49046
50021
  * * Value List Type: List
49047
50022
  * * Possible Values
49048
- * * View
49049
50023
  * * Edit
49050
50024
  * * Owner
50025
+ * * View
49051
50026
  * * Description: Permission level defining the type of access (View, Edit, Owner)
49052
50027
  */
49053
50028
  get PermissionLevel() {
@@ -49081,9 +50056,9 @@ let ResourcePermissionEntity = class ResourcePermissionEntity extends core_1.Bas
49081
50056
  * * Default Value: Requested
49082
50057
  * * Value List Type: List
49083
50058
  * * Possible Values
49084
- * * Requested
49085
50059
  * * Approved
49086
50060
  * * Rejected
50061
+ * * Requested
49087
50062
  * * Revoked
49088
50063
  * * Description: Status of the resource permission request. Possible values are Requested, Approved, Rejected, or Revoked.
49089
50064
  */
@@ -49709,9 +50684,9 @@ let ScheduledActionEntity = class ScheduledActionEntity extends core_1.BaseEntit
49709
50684
  * * SQL Data Type: nvarchar(20)
49710
50685
  * * Value List Type: List
49711
50686
  * * Possible Values
50687
+ * * Custom
49712
50688
  * * Daily
49713
50689
  * * Monthly
49714
- * * Custom
49715
50690
  * * Weekly
49716
50691
  * * Yearly
49717
50692
  * * Description: Type of the scheduled action (Daily, Weekly, Monthly, Yearly, Custom)
@@ -49753,9 +50728,9 @@ let ScheduledActionEntity = class ScheduledActionEntity extends core_1.BaseEntit
49753
50728
  * * Default Value: Pending
49754
50729
  * * Value List Type: List
49755
50730
  * * Possible Values
50731
+ * * Active
49756
50732
  * * Disabled
49757
50733
  * * Expired
49758
- * * Active
49759
50734
  * * Pending
49760
50735
  * * Description: Status of the scheduled action (Pending, Active, Disabled, Expired)
49761
50736
  */
@@ -50560,14 +51535,14 @@ let TemplateContentTypeEntity = class TemplateContentTypeEntity extends core_1.B
50560
51535
  * * Default Value: Other
50561
51536
  * * Value List Type: List
50562
51537
  * * Possible Values
50563
- * * HTML
50564
51538
  * * CSS
51539
+ * * HTML
50565
51540
  * * JSON
50566
- * * Python
50567
- * * Other
50568
- * * TypeScript
50569
51541
  * * JavaScript
50570
51542
  * * Nunjucks
51543
+ * * Other
51544
+ * * Python
51545
+ * * TypeScript
50571
51546
  * * Description: Refers to the primary language or codetype of the templates of this type, HTML, JSON, JavaScript, etc
50572
51547
  */
50573
51548
  get CodeType() {
@@ -50822,11 +51797,11 @@ let TemplateParamEntity = class TemplateParamEntity extends core_1.BaseEntity {
50822
51797
  * * Default Value: Scalar
50823
51798
  * * Value List Type: List
50824
51799
  * * Possible Values
50825
- * * Record
50826
51800
  * * Array
51801
+ * * Entity
50827
51802
  * * Object
51803
+ * * Record
50828
51804
  * * Scalar
50829
- * * Entity
50830
51805
  * * Description: Type of the parameter - Record is an individual record within the entity specified by EntityID. Entity means an entire Entity or an entity filtered by the LinkedParameterName/Field attributes and/or ExtraFilter. Object is any valid JSON object. Array and Scalar have their common meanings.
50831
51806
  */
50832
51807
  get Type() {
@@ -52882,6 +53857,30 @@ let UserEntity = class UserEntity extends core_1.BaseEntity {
52882
53857
  return this.Get('__mj_UpdatedAt');
52883
53858
  }
52884
53859
  /**
53860
+ * * Field Name: UserImageURL
53861
+ * * Display Name: User Image URL
53862
+ * * SQL Data Type: nvarchar(MAX)
53863
+ * * Description: User avatar image. Can be a Base64 encoded data URI (e.g., "data:image/png;base64,...") or a URL to an image file. Preferred over UserImageIconClass when present. Recommended for small thumbnail images only to maintain performance.
53864
+ */
53865
+ get UserImageURL() {
53866
+ return this.Get('UserImageURL');
53867
+ }
53868
+ set UserImageURL(value) {
53869
+ this.Set('UserImageURL', value);
53870
+ }
53871
+ /**
53872
+ * * Field Name: UserImageIconClass
53873
+ * * Display Name: User Image Icon Class
53874
+ * * SQL Data Type: nvarchar(100)
53875
+ * * Description: Font Awesome icon class for user avatar (e.g., "fa-solid fa-user-astronaut"). Used as fallback when UserImageURL is not provided. Example classes: "fa-solid fa-user", "fa-regular fa-circle-user", "fa-solid fa-user-tie".
53876
+ */
53877
+ get UserImageIconClass() {
53878
+ return this.Get('UserImageIconClass');
53879
+ }
53880
+ set UserImageIconClass(value) {
53881
+ this.Set('UserImageIconClass', value);
53882
+ }
53883
+ /**
52885
53884
  * * Field Name: FirstLast
52886
53885
  * * Display Name: First Last
52887
53886
  * * SQL Data Type: nvarchar(101)
@@ -53280,10 +54279,10 @@ let VersionInstallationEntity = class VersionInstallationEntity extends core_1.B
53280
54279
  * * Default Value: Pending
53281
54280
  * * Value List Type: List
53282
54281
  * * Possible Values
53283
- * * In Progress
53284
54282
  * * Complete
53285
- * * Pending
53286
54283
  * * Failed
54284
+ * * In Progress
54285
+ * * Pending
53287
54286
  * * Description: Pending, Complete, Failed
53288
54287
  */
53289
54288
  get Status() {
@@ -53710,12 +54709,12 @@ let WorkflowEntity = class WorkflowEntity extends core_1.BaseEntity {
53710
54709
  * * SQL Data Type: nvarchar(20)
53711
54710
  * * Value List Type: List
53712
54711
  * * Possible Values
53713
- * * Weeks
53714
- * * Years
53715
- * * Hours
53716
- * * Months
53717
54712
  * * Days
54713
+ * * Hours
53718
54714
  * * Minutes
54715
+ * * Months
54716
+ * * Weeks
54717
+ * * Years
53719
54718
  * * Description: Minutes, Hours, Days, Weeks, Months, Years
53720
54719
  */
53721
54720
  get AutoRunIntervalUnits() {