@memberjunction/core-entities 2.108.0 → 2.109.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");
@@ -7546,6 +7546,153 @@ exports.AIAgentArtifactTypeSchema = zod_1.z.object({
7546
7546
  * * Display Name: Artifact Type
7547
7547
  * * SQL Data Type: nvarchar(100)`),
7548
7548
  });
7549
+ /**
7550
+ * zod schema definition for the entity MJ: AI Agent Data Sources
7551
+ */
7552
+ exports.AIAgentDataSourceSchema = zod_1.z.object({
7553
+ ID: zod_1.z.string().describe(`
7554
+ * * Field Name: ID
7555
+ * * Display Name: ID
7556
+ * * SQL Data Type: uniqueidentifier
7557
+ * * Default Value: newsequentialid()`),
7558
+ AgentID: zod_1.z.string().describe(`
7559
+ * * Field Name: AgentID
7560
+ * * Display Name: Agent ID
7561
+ * * SQL Data Type: uniqueidentifier
7562
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)`),
7563
+ Name: zod_1.z.string().describe(`
7564
+ * * Field Name: Name
7565
+ * * Display Name: Name
7566
+ * * SQL Data Type: nvarchar(255)
7567
+ * * Description: Variable name for the data in the data parameter (e.g., "ALL_ENTITIES"). Must be unique within an agent.`),
7568
+ Description: zod_1.z.string().nullable().describe(`
7569
+ * * Field Name: Description
7570
+ * * Display Name: Description
7571
+ * * SQL Data Type: nvarchar(MAX)
7572
+ * * Description: Description of what this data source provides`),
7573
+ SourceType: zod_1.z.union([zod_1.z.literal('RunQuery'), zod_1.z.literal('RunView')]).describe(`
7574
+ * * Field Name: SourceType
7575
+ * * Display Name: Source Type
7576
+ * * SQL Data Type: nvarchar(20)
7577
+ * * Default Value: RunView
7578
+ * * Value List Type: List
7579
+ * * Possible Values
7580
+ * * RunQuery
7581
+ * * RunView
7582
+ * * Description: Type of data source: RunView or RunQuery. Determines which parameters are used.`),
7583
+ EntityName: zod_1.z.string().nullable().describe(`
7584
+ * * Field Name: EntityName
7585
+ * * Display Name: Entity Name
7586
+ * * SQL Data Type: nvarchar(255)
7587
+ * * Description: Entity name for RunView data sources (e.g., "Entities", "AI Models")`),
7588
+ ExtraFilter: zod_1.z.string().nullable().describe(`
7589
+ * * Field Name: ExtraFilter
7590
+ * * Display Name: Extra Filter
7591
+ * * SQL Data Type: nvarchar(MAX)
7592
+ * * Description: SQL WHERE clause filter for RunView data sources`),
7593
+ OrderBy: zod_1.z.string().nullable().describe(`
7594
+ * * Field Name: OrderBy
7595
+ * * Display Name: Order By
7596
+ * * SQL Data Type: nvarchar(500)
7597
+ * * Description: SQL ORDER BY clause for RunView data sources`),
7598
+ FieldsToRetrieve: zod_1.z.string().nullable().describe(`
7599
+ * * Field Name: FieldsToRetrieve
7600
+ * * Display Name: Fields To Retrieve
7601
+ * * SQL Data Type: nvarchar(MAX)
7602
+ * * Description: JSON array of field names to return for RunView data sources (e.g., ["ID", "Name", "Description"])`),
7603
+ ResultType: zod_1.z.union([zod_1.z.literal('entity_object'), zod_1.z.literal('simple')]).nullable().describe(`
7604
+ * * Field Name: ResultType
7605
+ * * Display Name: Result Type
7606
+ * * SQL Data Type: nvarchar(20)
7607
+ * * Default Value: simple
7608
+ * * Value List Type: List
7609
+ * * Possible Values
7610
+ * * entity_object
7611
+ * * simple
7612
+ * * Description: Result type for RunView: simple (default) or entity_object`),
7613
+ QueryName: zod_1.z.string().nullable().describe(`
7614
+ * * Field Name: QueryName
7615
+ * * Display Name: Query Name
7616
+ * * SQL Data Type: nvarchar(255)
7617
+ * * Description: Query name for RunQuery data sources`),
7618
+ CategoryPath: zod_1.z.string().nullable().describe(`
7619
+ * * Field Name: CategoryPath
7620
+ * * Display Name: Category Path
7621
+ * * SQL Data Type: nvarchar(500)
7622
+ * * Description: Category path for RunQuery data sources (e.g., "/MJ/AI/Agents/")`),
7623
+ Parameters: zod_1.z.string().nullable().describe(`
7624
+ * * Field Name: Parameters
7625
+ * * Display Name: Parameters
7626
+ * * SQL Data Type: nvarchar(MAX)
7627
+ * * Description: JSON object of parameters for RunQuery data sources (e.g., {"organizationId": "123"})`),
7628
+ MaxRows: zod_1.z.number().nullable().describe(`
7629
+ * * Field Name: MaxRows
7630
+ * * Display Name: Max Rows
7631
+ * * SQL Data Type: int
7632
+ * * Description: Maximum number of rows to return. Applies to both RunView and RunQuery.`),
7633
+ ExecutionOrder: zod_1.z.number().describe(`
7634
+ * * Field Name: ExecutionOrder
7635
+ * * Display Name: Execution Order
7636
+ * * SQL Data Type: int
7637
+ * * Default Value: 0
7638
+ * * Description: Execution order when multiple data sources are defined for an agent (lower numbers execute first)`),
7639
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Disabled')]).describe(`
7640
+ * * Field Name: Status
7641
+ * * Display Name: Status
7642
+ * * SQL Data Type: nvarchar(20)
7643
+ * * Default Value: Active
7644
+ * * Value List Type: List
7645
+ * * Possible Values
7646
+ * * Active
7647
+ * * Disabled
7648
+ * * Description: Status of the data source: Active or Disabled`),
7649
+ CachePolicy: zod_1.z.union([zod_1.z.literal('None'), zod_1.z.literal('PerAgent'), zod_1.z.literal('PerRun')]).describe(`
7650
+ * * Field Name: CachePolicy
7651
+ * * Display Name: Cache Policy
7652
+ * * SQL Data Type: nvarchar(20)
7653
+ * * Default Value: None
7654
+ * * Value List Type: List
7655
+ * * Possible Values
7656
+ * * PerRun
7657
+ * * PerAgent
7658
+ * * None
7659
+ * * Description: Cache policy: None (no caching), PerRun (cache for duration of agent run), PerAgent (cache across runs with timeout)`),
7660
+ CacheTimeoutSeconds: zod_1.z.number().nullable().describe(`
7661
+ * * Field Name: CacheTimeoutSeconds
7662
+ * * Display Name: Cache Timeout Seconds
7663
+ * * SQL Data Type: int
7664
+ * * Description: Time-to-live in seconds for PerAgent cache policy. Ignored for other cache policies.`),
7665
+ DestinationType: zod_1.z.union([zod_1.z.literal('Context'), zod_1.z.literal('Data'), zod_1.z.literal('Payload')]).describe(`
7666
+ * * Field Name: DestinationType
7667
+ * * Display Name: Destination Type
7668
+ * * SQL Data Type: nvarchar(20)
7669
+ * * Default Value: Data
7670
+ * * Value List Type: List
7671
+ * * Possible Values
7672
+ * * Data
7673
+ * * Context
7674
+ * * Payload
7675
+ * * Description: Destination for the preloaded data: Data (for Nunjucks templates in prompts), Context (for actions only), or Payload (for agent state)`),
7676
+ DestinationPath: zod_1.z.string().nullable().describe(`
7677
+ * * Field Name: DestinationPath
7678
+ * * Display Name: Destination Path
7679
+ * * SQL Data Type: nvarchar(500)
7680
+ * * 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.`),
7681
+ __mj_CreatedAt: zod_1.z.date().describe(`
7682
+ * * Field Name: __mj_CreatedAt
7683
+ * * Display Name: Created At
7684
+ * * SQL Data Type: datetimeoffset
7685
+ * * Default Value: getutcdate()`),
7686
+ __mj_UpdatedAt: zod_1.z.date().describe(`
7687
+ * * Field Name: __mj_UpdatedAt
7688
+ * * Display Name: Updated At
7689
+ * * SQL Data Type: datetimeoffset
7690
+ * * Default Value: getutcdate()`),
7691
+ Agent: zod_1.z.string().nullable().describe(`
7692
+ * * Field Name: Agent
7693
+ * * Display Name: Agent
7694
+ * * SQL Data Type: nvarchar(255)`),
7695
+ });
7549
7696
  /**
7550
7697
  * zod schema definition for the entity MJ: AI Agent Permissions
7551
7698
  */
@@ -9610,6 +9757,78 @@ exports.AIVendorSchema = zod_1.z.object({
9610
9757
  * * SQL Data Type: datetimeoffset
9611
9758
  * * Default Value: getutcdate()`),
9612
9759
  });
9760
+ /**
9761
+ * zod schema definition for the entity MJ: Artifact Permissions
9762
+ */
9763
+ exports.ArtifactPermissionSchema = zod_1.z.object({
9764
+ ID: zod_1.z.string().describe(`
9765
+ * * Field Name: ID
9766
+ * * Display Name: ID
9767
+ * * SQL Data Type: uniqueidentifier
9768
+ * * Default Value: newsequentialid()`),
9769
+ ArtifactID: zod_1.z.string().describe(`
9770
+ * * Field Name: ArtifactID
9771
+ * * Display Name: Artifact ID
9772
+ * * SQL Data Type: uniqueidentifier
9773
+ * * Related Entity/Foreign Key: MJ: Artifacts (vwArtifacts.ID)`),
9774
+ UserID: zod_1.z.string().describe(`
9775
+ * * Field Name: UserID
9776
+ * * Display Name: User ID
9777
+ * * SQL Data Type: uniqueidentifier
9778
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)`),
9779
+ CanRead: zod_1.z.boolean().describe(`
9780
+ * * Field Name: CanRead
9781
+ * * Display Name: Can Read
9782
+ * * SQL Data Type: bit
9783
+ * * Default Value: 1
9784
+ * * Description: Whether the user can view/read the artifact`),
9785
+ CanEdit: zod_1.z.boolean().describe(`
9786
+ * * Field Name: CanEdit
9787
+ * * Display Name: Can Edit
9788
+ * * SQL Data Type: bit
9789
+ * * Default Value: 0
9790
+ * * Description: Whether the user can modify the artifact or create new versions`),
9791
+ CanDelete: zod_1.z.boolean().describe(`
9792
+ * * Field Name: CanDelete
9793
+ * * Display Name: Can Delete
9794
+ * * SQL Data Type: bit
9795
+ * * Default Value: 0
9796
+ * * Description: Whether the user can delete the artifact`),
9797
+ CanShare: zod_1.z.boolean().describe(`
9798
+ * * Field Name: CanShare
9799
+ * * Display Name: Can Share
9800
+ * * SQL Data Type: bit
9801
+ * * Default Value: 0
9802
+ * * Description: Whether the user can share the artifact with other users`),
9803
+ SharedByUserID: zod_1.z.string().nullable().describe(`
9804
+ * * Field Name: SharedByUserID
9805
+ * * Display Name: Shared By User ID
9806
+ * * SQL Data Type: uniqueidentifier
9807
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
9808
+ * * Description: Foreign key to the User who shared this artifact (if shared)`),
9809
+ __mj_CreatedAt: zod_1.z.date().describe(`
9810
+ * * Field Name: __mj_CreatedAt
9811
+ * * Display Name: Created At
9812
+ * * SQL Data Type: datetimeoffset
9813
+ * * Default Value: getutcdate()`),
9814
+ __mj_UpdatedAt: zod_1.z.date().describe(`
9815
+ * * Field Name: __mj_UpdatedAt
9816
+ * * Display Name: Updated At
9817
+ * * SQL Data Type: datetimeoffset
9818
+ * * Default Value: getutcdate()`),
9819
+ Artifact: zod_1.z.string().describe(`
9820
+ * * Field Name: Artifact
9821
+ * * Display Name: Artifact
9822
+ * * SQL Data Type: nvarchar(255)`),
9823
+ User: zod_1.z.string().describe(`
9824
+ * * Field Name: User
9825
+ * * Display Name: User
9826
+ * * SQL Data Type: nvarchar(100)`),
9827
+ SharedByUser: zod_1.z.string().nullable().describe(`
9828
+ * * Field Name: SharedByUser
9829
+ * * Display Name: Shared By User
9830
+ * * SQL Data Type: nvarchar(100)`),
9831
+ });
9613
9832
  /**
9614
9833
  * zod schema definition for the entity MJ: Artifact Types
9615
9834
  */
@@ -16901,22 +17120,43 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
16901
17120
  }
16902
17121
  /**
16903
17122
  * 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:
17123
+ * * 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
17124
  * * 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
17125
  * * MinExecutionsPerRun: This rule ensures that if a minimum executions per run value is provided, it must be zero or greater.
17126
+ * * 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.
17127
+ * * 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.
17128
+ * * 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
17129
  * * 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.
17130
+ * * 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
17131
  * @public
16908
17132
  * @method
16909
17133
  * @override
16910
17134
  */
16911
17135
  Validate() {
16912
17136
  const result = super.Validate();
17137
+ this.ValidateCompactLengthGreaterThanZero(result);
16913
17138
  this.ValidateMaxExecutionsPerRunGreaterThanZero(result);
16914
17139
  this.ValidateMinExecutionsPerRunIsNonNegative(result);
17140
+ this.ValidateResultExpirationTurnsNonNegative(result);
17141
+ this.ValidateCompactLengthRequiredForFirstNCharsMode(result);
17142
+ this.ValidateCompactModeWhenResultExpirationModeIsCompact(result);
16915
17143
  this.ValidateMinExecutionsPerRunIsLessThanOrEqualToMaxExecutionsPerRun(result);
17144
+ this.ValidateResultExpirationModeRequiresCompactFieldsEmpty(result);
16916
17145
  result.Success = result.Success && (result.Errors.length === 0);
16917
17146
  return result;
16918
17147
  }
16919
17148
  /**
17149
+ * 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.
17150
+ * @param result - the ValidationResult object to add any errors or warnings to
17151
+ * @public
17152
+ * @method
17153
+ */
17154
+ ValidateCompactLengthGreaterThanZero(result) {
17155
+ if (this.CompactLength != null && this.CompactLength <= 0) {
17156
+ result.Errors.push(new core_1.ValidationErrorInfo("CompactLength", "CompactLength must be greater than zero if specified.", this.CompactLength, core_1.ValidationErrorType.Failure));
17157
+ }
17158
+ }
17159
+ /**
16920
17160
  * 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
17161
  * @param result - the ValidationResult object to add any errors or warnings to
16922
17162
  * @public
@@ -16939,6 +17179,39 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
16939
17179
  }
16940
17180
  }
16941
17181
  /**
17182
+ * 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.
17183
+ * @param result - the ValidationResult object to add any errors or warnings to
17184
+ * @public
17185
+ * @method
17186
+ */
17187
+ ValidateResultExpirationTurnsNonNegative(result) {
17188
+ if (this.ResultExpirationTurns != null && this.ResultExpirationTurns < 0) {
17189
+ result.Errors.push(new core_1.ValidationErrorInfo("ResultExpirationTurns", "If provided, ResultExpirationTurns must be zero or greater.", this.ResultExpirationTurns, core_1.ValidationErrorType.Failure));
17190
+ }
17191
+ }
17192
+ /**
17193
+ * 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.
17194
+ * @param result - the ValidationResult object to add any errors or warnings to
17195
+ * @public
17196
+ * @method
17197
+ */
17198
+ ValidateCompactLengthRequiredForFirstNCharsMode(result) {
17199
+ if (this.CompactMode === "First N Chars" && this.CompactLength == null) {
17200
+ 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));
17201
+ }
17202
+ }
17203
+ /**
17204
+ * 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.
17205
+ * @param result - the ValidationResult object to add any errors or warnings to
17206
+ * @public
17207
+ * @method
17208
+ */
17209
+ ValidateCompactModeWhenResultExpirationModeIsCompact(result) {
17210
+ if (this.ResultExpirationMode === "Compact" && this.CompactMode == null) {
17211
+ result.Errors.push(new core_1.ValidationErrorInfo("CompactMode", "CompactMode must be specified when ResultExpirationMode is 'Compact'.", this.CompactMode, core_1.ValidationErrorType.Failure));
17212
+ }
17213
+ }
17214
+ /**
16942
17215
  * 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
17216
  * @param result - the ValidationResult object to add any errors or warnings to
16944
17217
  * @public
@@ -16950,6 +17223,19 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
16950
17223
  }
16951
17224
  }
16952
17225
  /**
17226
+ * 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.
17227
+ * @param result - the ValidationResult object to add any errors or warnings to
17228
+ * @public
17229
+ * @method
17230
+ */
17231
+ ValidateResultExpirationModeRequiresCompactFieldsEmpty(result) {
17232
+ if (this.ResultExpirationMode === "Compact") {
17233
+ if (this.CompactMode != null || this.CompactLength != null || this.CompactPromptID != null) {
17234
+ 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));
17235
+ }
17236
+ }
17237
+ }
17238
+ /**
16953
17239
  * * Field Name: ID
16954
17240
  * * Display Name: ID
16955
17241
  * * SQL Data Type: uniqueidentifier
@@ -34185,6 +34471,383 @@ exports.AIAgentArtifactTypeEntity = AIAgentArtifactTypeEntity;
34185
34471
  exports.AIAgentArtifactTypeEntity = AIAgentArtifactTypeEntity = __decorate([
34186
34472
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Agent Artifact Types')
34187
34473
  ], AIAgentArtifactTypeEntity);
34474
+ /**
34475
+ * MJ: AI Agent Data Sources - strongly typed entity sub-class
34476
+ * * Schema: __mj
34477
+ * * Base Table: AIAgentDataSource
34478
+ * * Base View: vwAIAgentDataSources
34479
+ * * @description Defines data sources that should be preloaded into the data parameter before agent execution. Supports both RunView and RunQuery sources with configurable caching.
34480
+ * * Primary Key: ID
34481
+ * @extends {BaseEntity}
34482
+ * @class
34483
+ * @public
34484
+ */
34485
+ let AIAgentDataSourceEntity = class AIAgentDataSourceEntity extends core_1.BaseEntity {
34486
+ /**
34487
+ * Loads the MJ: AI Agent Data Sources record from the database
34488
+ * @param ID: string - primary key value to load the MJ: AI Agent Data Sources record.
34489
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
34490
+ * @returns {Promise<boolean>} - true if successful, false otherwise
34491
+ * @public
34492
+ * @async
34493
+ * @memberof AIAgentDataSourceEntity
34494
+ * @method
34495
+ * @override
34496
+ */
34497
+ async Load(ID, EntityRelationshipsToLoad) {
34498
+ const compositeKey = new core_1.CompositeKey();
34499
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
34500
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
34501
+ }
34502
+ /**
34503
+ * 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:
34504
+ * * 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.
34505
+ * * 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.
34506
+ * * 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.
34507
+ * @public
34508
+ * @method
34509
+ * @override
34510
+ */
34511
+ Validate() {
34512
+ const result = super.Validate();
34513
+ this.ValidateCacheTimeoutSecondsRequiredForPerAgentPolicy(result);
34514
+ this.ValidateEntityNameRequiredWhenSourceTypeRunView(result);
34515
+ this.ValidateQueryNameRequiredWhenSourceTypeIsRunQuery(result);
34516
+ result.Success = result.Success && (result.Errors.length === 0);
34517
+ return result;
34518
+ }
34519
+ /**
34520
+ * 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.
34521
+ * @param result - the ValidationResult object to add any errors or warnings to
34522
+ * @public
34523
+ * @method
34524
+ */
34525
+ ValidateCacheTimeoutSecondsRequiredForPerAgentPolicy(result) {
34526
+ if (this.CachePolicy === "PerAgent" && this.CacheTimeoutSeconds == null) {
34527
+ 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));
34528
+ }
34529
+ }
34530
+ /**
34531
+ * 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.
34532
+ * @param result - the ValidationResult object to add any errors or warnings to
34533
+ * @public
34534
+ * @method
34535
+ */
34536
+ ValidateEntityNameRequiredWhenSourceTypeRunView(result) {
34537
+ if (this.SourceType === "RunView" && this.EntityName == null) {
34538
+ result.Errors.push(new core_1.ValidationErrorInfo("EntityName", "EntityName is required when SourceType is 'RunView'.", this.EntityName, core_1.ValidationErrorType.Failure));
34539
+ }
34540
+ }
34541
+ /**
34542
+ * 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.
34543
+ * @param result - the ValidationResult object to add any errors or warnings to
34544
+ * @public
34545
+ * @method
34546
+ */
34547
+ ValidateQueryNameRequiredWhenSourceTypeIsRunQuery(result) {
34548
+ if (this.SourceType === "RunQuery" && this.QueryName == null) {
34549
+ 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));
34550
+ }
34551
+ }
34552
+ /**
34553
+ * * Field Name: ID
34554
+ * * Display Name: ID
34555
+ * * SQL Data Type: uniqueidentifier
34556
+ * * Default Value: newsequentialid()
34557
+ */
34558
+ get ID() {
34559
+ return this.Get('ID');
34560
+ }
34561
+ set ID(value) {
34562
+ this.Set('ID', value);
34563
+ }
34564
+ /**
34565
+ * * Field Name: AgentID
34566
+ * * Display Name: Agent ID
34567
+ * * SQL Data Type: uniqueidentifier
34568
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
34569
+ */
34570
+ get AgentID() {
34571
+ return this.Get('AgentID');
34572
+ }
34573
+ set AgentID(value) {
34574
+ this.Set('AgentID', value);
34575
+ }
34576
+ /**
34577
+ * * Field Name: Name
34578
+ * * Display Name: Name
34579
+ * * SQL Data Type: nvarchar(255)
34580
+ * * Description: Variable name for the data in the data parameter (e.g., "ALL_ENTITIES"). Must be unique within an agent.
34581
+ */
34582
+ get Name() {
34583
+ return this.Get('Name');
34584
+ }
34585
+ set Name(value) {
34586
+ this.Set('Name', value);
34587
+ }
34588
+ /**
34589
+ * * Field Name: Description
34590
+ * * Display Name: Description
34591
+ * * SQL Data Type: nvarchar(MAX)
34592
+ * * Description: Description of what this data source provides
34593
+ */
34594
+ get Description() {
34595
+ return this.Get('Description');
34596
+ }
34597
+ set Description(value) {
34598
+ this.Set('Description', value);
34599
+ }
34600
+ /**
34601
+ * * Field Name: SourceType
34602
+ * * Display Name: Source Type
34603
+ * * SQL Data Type: nvarchar(20)
34604
+ * * Default Value: RunView
34605
+ * * Value List Type: List
34606
+ * * Possible Values
34607
+ * * RunQuery
34608
+ * * RunView
34609
+ * * Description: Type of data source: RunView or RunQuery. Determines which parameters are used.
34610
+ */
34611
+ get SourceType() {
34612
+ return this.Get('SourceType');
34613
+ }
34614
+ set SourceType(value) {
34615
+ this.Set('SourceType', value);
34616
+ }
34617
+ /**
34618
+ * * Field Name: EntityName
34619
+ * * Display Name: Entity Name
34620
+ * * SQL Data Type: nvarchar(255)
34621
+ * * Description: Entity name for RunView data sources (e.g., "Entities", "AI Models")
34622
+ */
34623
+ get EntityName() {
34624
+ return this.Get('EntityName');
34625
+ }
34626
+ set EntityName(value) {
34627
+ this.Set('EntityName', value);
34628
+ }
34629
+ /**
34630
+ * * Field Name: ExtraFilter
34631
+ * * Display Name: Extra Filter
34632
+ * * SQL Data Type: nvarchar(MAX)
34633
+ * * Description: SQL WHERE clause filter for RunView data sources
34634
+ */
34635
+ get ExtraFilter() {
34636
+ return this.Get('ExtraFilter');
34637
+ }
34638
+ set ExtraFilter(value) {
34639
+ this.Set('ExtraFilter', value);
34640
+ }
34641
+ /**
34642
+ * * Field Name: OrderBy
34643
+ * * Display Name: Order By
34644
+ * * SQL Data Type: nvarchar(500)
34645
+ * * Description: SQL ORDER BY clause for RunView data sources
34646
+ */
34647
+ get OrderBy() {
34648
+ return this.Get('OrderBy');
34649
+ }
34650
+ set OrderBy(value) {
34651
+ this.Set('OrderBy', value);
34652
+ }
34653
+ /**
34654
+ * * Field Name: FieldsToRetrieve
34655
+ * * Display Name: Fields To Retrieve
34656
+ * * SQL Data Type: nvarchar(MAX)
34657
+ * * Description: JSON array of field names to return for RunView data sources (e.g., ["ID", "Name", "Description"])
34658
+ */
34659
+ get FieldsToRetrieve() {
34660
+ return this.Get('FieldsToRetrieve');
34661
+ }
34662
+ set FieldsToRetrieve(value) {
34663
+ this.Set('FieldsToRetrieve', value);
34664
+ }
34665
+ /**
34666
+ * * Field Name: ResultType
34667
+ * * Display Name: Result Type
34668
+ * * SQL Data Type: nvarchar(20)
34669
+ * * Default Value: simple
34670
+ * * Value List Type: List
34671
+ * * Possible Values
34672
+ * * entity_object
34673
+ * * simple
34674
+ * * Description: Result type for RunView: simple (default) or entity_object
34675
+ */
34676
+ get ResultType() {
34677
+ return this.Get('ResultType');
34678
+ }
34679
+ set ResultType(value) {
34680
+ this.Set('ResultType', value);
34681
+ }
34682
+ /**
34683
+ * * Field Name: QueryName
34684
+ * * Display Name: Query Name
34685
+ * * SQL Data Type: nvarchar(255)
34686
+ * * Description: Query name for RunQuery data sources
34687
+ */
34688
+ get QueryName() {
34689
+ return this.Get('QueryName');
34690
+ }
34691
+ set QueryName(value) {
34692
+ this.Set('QueryName', value);
34693
+ }
34694
+ /**
34695
+ * * Field Name: CategoryPath
34696
+ * * Display Name: Category Path
34697
+ * * SQL Data Type: nvarchar(500)
34698
+ * * Description: Category path for RunQuery data sources (e.g., "/MJ/AI/Agents/")
34699
+ */
34700
+ get CategoryPath() {
34701
+ return this.Get('CategoryPath');
34702
+ }
34703
+ set CategoryPath(value) {
34704
+ this.Set('CategoryPath', value);
34705
+ }
34706
+ /**
34707
+ * * Field Name: Parameters
34708
+ * * Display Name: Parameters
34709
+ * * SQL Data Type: nvarchar(MAX)
34710
+ * * Description: JSON object of parameters for RunQuery data sources (e.g., {"organizationId": "123"})
34711
+ */
34712
+ get Parameters() {
34713
+ return this.Get('Parameters');
34714
+ }
34715
+ set Parameters(value) {
34716
+ this.Set('Parameters', value);
34717
+ }
34718
+ /**
34719
+ * * Field Name: MaxRows
34720
+ * * Display Name: Max Rows
34721
+ * * SQL Data Type: int
34722
+ * * Description: Maximum number of rows to return. Applies to both RunView and RunQuery.
34723
+ */
34724
+ get MaxRows() {
34725
+ return this.Get('MaxRows');
34726
+ }
34727
+ set MaxRows(value) {
34728
+ this.Set('MaxRows', value);
34729
+ }
34730
+ /**
34731
+ * * Field Name: ExecutionOrder
34732
+ * * Display Name: Execution Order
34733
+ * * SQL Data Type: int
34734
+ * * Default Value: 0
34735
+ * * Description: Execution order when multiple data sources are defined for an agent (lower numbers execute first)
34736
+ */
34737
+ get ExecutionOrder() {
34738
+ return this.Get('ExecutionOrder');
34739
+ }
34740
+ set ExecutionOrder(value) {
34741
+ this.Set('ExecutionOrder', value);
34742
+ }
34743
+ /**
34744
+ * * Field Name: Status
34745
+ * * Display Name: Status
34746
+ * * SQL Data Type: nvarchar(20)
34747
+ * * Default Value: Active
34748
+ * * Value List Type: List
34749
+ * * Possible Values
34750
+ * * Active
34751
+ * * Disabled
34752
+ * * Description: Status of the data source: Active or Disabled
34753
+ */
34754
+ get Status() {
34755
+ return this.Get('Status');
34756
+ }
34757
+ set Status(value) {
34758
+ this.Set('Status', value);
34759
+ }
34760
+ /**
34761
+ * * Field Name: CachePolicy
34762
+ * * Display Name: Cache Policy
34763
+ * * SQL Data Type: nvarchar(20)
34764
+ * * Default Value: None
34765
+ * * Value List Type: List
34766
+ * * Possible Values
34767
+ * * PerRun
34768
+ * * PerAgent
34769
+ * * None
34770
+ * * Description: Cache policy: None (no caching), PerRun (cache for duration of agent run), PerAgent (cache across runs with timeout)
34771
+ */
34772
+ get CachePolicy() {
34773
+ return this.Get('CachePolicy');
34774
+ }
34775
+ set CachePolicy(value) {
34776
+ this.Set('CachePolicy', value);
34777
+ }
34778
+ /**
34779
+ * * Field Name: CacheTimeoutSeconds
34780
+ * * Display Name: Cache Timeout Seconds
34781
+ * * SQL Data Type: int
34782
+ * * Description: Time-to-live in seconds for PerAgent cache policy. Ignored for other cache policies.
34783
+ */
34784
+ get CacheTimeoutSeconds() {
34785
+ return this.Get('CacheTimeoutSeconds');
34786
+ }
34787
+ set CacheTimeoutSeconds(value) {
34788
+ this.Set('CacheTimeoutSeconds', value);
34789
+ }
34790
+ /**
34791
+ * * Field Name: DestinationType
34792
+ * * Display Name: Destination Type
34793
+ * * SQL Data Type: nvarchar(20)
34794
+ * * Default Value: Data
34795
+ * * Value List Type: List
34796
+ * * Possible Values
34797
+ * * Data
34798
+ * * Context
34799
+ * * Payload
34800
+ * * Description: Destination for the preloaded data: Data (for Nunjucks templates in prompts), Context (for actions only), or Payload (for agent state)
34801
+ */
34802
+ get DestinationType() {
34803
+ return this.Get('DestinationType');
34804
+ }
34805
+ set DestinationType(value) {
34806
+ this.Set('DestinationType', value);
34807
+ }
34808
+ /**
34809
+ * * Field Name: DestinationPath
34810
+ * * Display Name: Destination Path
34811
+ * * SQL Data Type: nvarchar(500)
34812
+ * * 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.
34813
+ */
34814
+ get DestinationPath() {
34815
+ return this.Get('DestinationPath');
34816
+ }
34817
+ set DestinationPath(value) {
34818
+ this.Set('DestinationPath', value);
34819
+ }
34820
+ /**
34821
+ * * Field Name: __mj_CreatedAt
34822
+ * * Display Name: Created At
34823
+ * * SQL Data Type: datetimeoffset
34824
+ * * Default Value: getutcdate()
34825
+ */
34826
+ get __mj_CreatedAt() {
34827
+ return this.Get('__mj_CreatedAt');
34828
+ }
34829
+ /**
34830
+ * * Field Name: __mj_UpdatedAt
34831
+ * * Display Name: Updated At
34832
+ * * SQL Data Type: datetimeoffset
34833
+ * * Default Value: getutcdate()
34834
+ */
34835
+ get __mj_UpdatedAt() {
34836
+ return this.Get('__mj_UpdatedAt');
34837
+ }
34838
+ /**
34839
+ * * Field Name: Agent
34840
+ * * Display Name: Agent
34841
+ * * SQL Data Type: nvarchar(255)
34842
+ */
34843
+ get Agent() {
34844
+ return this.Get('Agent');
34845
+ }
34846
+ };
34847
+ exports.AIAgentDataSourceEntity = AIAgentDataSourceEntity;
34848
+ exports.AIAgentDataSourceEntity = AIAgentDataSourceEntity = __decorate([
34849
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Agent Data Sources')
34850
+ ], AIAgentDataSourceEntity);
34188
34851
  /**
34189
34852
  * MJ: AI Agent Permissions - strongly typed entity sub-class
34190
34853
  * * Schema: __mj
@@ -39508,6 +40171,182 @@ exports.AIVendorEntity = AIVendorEntity;
39508
40171
  exports.AIVendorEntity = AIVendorEntity = __decorate([
39509
40172
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Vendors')
39510
40173
  ], AIVendorEntity);
40174
+ /**
40175
+ * MJ: Artifact Permissions - strongly typed entity sub-class
40176
+ * * Schema: __mj
40177
+ * * Base Table: ArtifactPermission
40178
+ * * Base View: vwArtifactPermissions
40179
+ * * @description Manages user permissions for artifacts with granular access control (Read, Edit, Delete, Share)
40180
+ * * Primary Key: ID
40181
+ * @extends {BaseEntity}
40182
+ * @class
40183
+ * @public
40184
+ */
40185
+ let ArtifactPermissionEntity = class ArtifactPermissionEntity extends core_1.BaseEntity {
40186
+ /**
40187
+ * Loads the MJ: Artifact Permissions record from the database
40188
+ * @param ID: string - primary key value to load the MJ: Artifact Permissions record.
40189
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
40190
+ * @returns {Promise<boolean>} - true if successful, false otherwise
40191
+ * @public
40192
+ * @async
40193
+ * @memberof ArtifactPermissionEntity
40194
+ * @method
40195
+ * @override
40196
+ */
40197
+ async Load(ID, EntityRelationshipsToLoad) {
40198
+ const compositeKey = new core_1.CompositeKey();
40199
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
40200
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
40201
+ }
40202
+ /**
40203
+ * * Field Name: ID
40204
+ * * Display Name: ID
40205
+ * * SQL Data Type: uniqueidentifier
40206
+ * * Default Value: newsequentialid()
40207
+ */
40208
+ get ID() {
40209
+ return this.Get('ID');
40210
+ }
40211
+ set ID(value) {
40212
+ this.Set('ID', value);
40213
+ }
40214
+ /**
40215
+ * * Field Name: ArtifactID
40216
+ * * Display Name: Artifact ID
40217
+ * * SQL Data Type: uniqueidentifier
40218
+ * * Related Entity/Foreign Key: MJ: Artifacts (vwArtifacts.ID)
40219
+ */
40220
+ get ArtifactID() {
40221
+ return this.Get('ArtifactID');
40222
+ }
40223
+ set ArtifactID(value) {
40224
+ this.Set('ArtifactID', value);
40225
+ }
40226
+ /**
40227
+ * * Field Name: UserID
40228
+ * * Display Name: User ID
40229
+ * * SQL Data Type: uniqueidentifier
40230
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
40231
+ */
40232
+ get UserID() {
40233
+ return this.Get('UserID');
40234
+ }
40235
+ set UserID(value) {
40236
+ this.Set('UserID', value);
40237
+ }
40238
+ /**
40239
+ * * Field Name: CanRead
40240
+ * * Display Name: Can Read
40241
+ * * SQL Data Type: bit
40242
+ * * Default Value: 1
40243
+ * * Description: Whether the user can view/read the artifact
40244
+ */
40245
+ get CanRead() {
40246
+ return this.Get('CanRead');
40247
+ }
40248
+ set CanRead(value) {
40249
+ this.Set('CanRead', value);
40250
+ }
40251
+ /**
40252
+ * * Field Name: CanEdit
40253
+ * * Display Name: Can Edit
40254
+ * * SQL Data Type: bit
40255
+ * * Default Value: 0
40256
+ * * Description: Whether the user can modify the artifact or create new versions
40257
+ */
40258
+ get CanEdit() {
40259
+ return this.Get('CanEdit');
40260
+ }
40261
+ set CanEdit(value) {
40262
+ this.Set('CanEdit', value);
40263
+ }
40264
+ /**
40265
+ * * Field Name: CanDelete
40266
+ * * Display Name: Can Delete
40267
+ * * SQL Data Type: bit
40268
+ * * Default Value: 0
40269
+ * * Description: Whether the user can delete the artifact
40270
+ */
40271
+ get CanDelete() {
40272
+ return this.Get('CanDelete');
40273
+ }
40274
+ set CanDelete(value) {
40275
+ this.Set('CanDelete', value);
40276
+ }
40277
+ /**
40278
+ * * Field Name: CanShare
40279
+ * * Display Name: Can Share
40280
+ * * SQL Data Type: bit
40281
+ * * Default Value: 0
40282
+ * * Description: Whether the user can share the artifact with other users
40283
+ */
40284
+ get CanShare() {
40285
+ return this.Get('CanShare');
40286
+ }
40287
+ set CanShare(value) {
40288
+ this.Set('CanShare', value);
40289
+ }
40290
+ /**
40291
+ * * Field Name: SharedByUserID
40292
+ * * Display Name: Shared By User ID
40293
+ * * SQL Data Type: uniqueidentifier
40294
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
40295
+ * * Description: Foreign key to the User who shared this artifact (if shared)
40296
+ */
40297
+ get SharedByUserID() {
40298
+ return this.Get('SharedByUserID');
40299
+ }
40300
+ set SharedByUserID(value) {
40301
+ this.Set('SharedByUserID', value);
40302
+ }
40303
+ /**
40304
+ * * Field Name: __mj_CreatedAt
40305
+ * * Display Name: Created At
40306
+ * * SQL Data Type: datetimeoffset
40307
+ * * Default Value: getutcdate()
40308
+ */
40309
+ get __mj_CreatedAt() {
40310
+ return this.Get('__mj_CreatedAt');
40311
+ }
40312
+ /**
40313
+ * * Field Name: __mj_UpdatedAt
40314
+ * * Display Name: Updated At
40315
+ * * SQL Data Type: datetimeoffset
40316
+ * * Default Value: getutcdate()
40317
+ */
40318
+ get __mj_UpdatedAt() {
40319
+ return this.Get('__mj_UpdatedAt');
40320
+ }
40321
+ /**
40322
+ * * Field Name: Artifact
40323
+ * * Display Name: Artifact
40324
+ * * SQL Data Type: nvarchar(255)
40325
+ */
40326
+ get Artifact() {
40327
+ return this.Get('Artifact');
40328
+ }
40329
+ /**
40330
+ * * Field Name: User
40331
+ * * Display Name: User
40332
+ * * SQL Data Type: nvarchar(100)
40333
+ */
40334
+ get User() {
40335
+ return this.Get('User');
40336
+ }
40337
+ /**
40338
+ * * Field Name: SharedByUser
40339
+ * * Display Name: Shared By User
40340
+ * * SQL Data Type: nvarchar(100)
40341
+ */
40342
+ get SharedByUser() {
40343
+ return this.Get('SharedByUser');
40344
+ }
40345
+ };
40346
+ exports.ArtifactPermissionEntity = ArtifactPermissionEntity;
40347
+ exports.ArtifactPermissionEntity = ArtifactPermissionEntity = __decorate([
40348
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Artifact Permissions')
40349
+ ], ArtifactPermissionEntity);
39511
40350
  /**
39512
40351
  * MJ: Artifact Types - strongly typed entity sub-class
39513
40352
  * * Schema: __mj