@memberjunction/core-entities 2.75.0 → 2.77.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,12 +8,12 @@ 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.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.ReportVersionSchema = exports.ReportUserStateSchema = exports.QueryParameterSchema = exports.DashboardUserStateSchema = exports.DashboardUserPreferenceSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = exports.ConversationArtifactPermissionSchema = 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.AIAgentRunSchema = exports.AIAgentRunStepSchema = exports.AIAgentPromptSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
12
- 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 = 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 = void 0;
13
- 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 = 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 = void 0;
14
- exports.AIModelVendorEntity = exports.AIModelPriceUnitTypeEntity = exports.AIModelPriceTypeEntity = exports.AIModelCostEntity = exports.AIConfigurationEntity = exports.AIConfigurationParamEntity = exports.AIAgentTypeEntity = exports.AIAgentRunEntity = exports.AIAgentRunStepEntity = exports.AIAgentPromptEntity = 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 = 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 = void 0;
15
- exports.TemplateContentEntity = exports.TemplateContentTypeEntity = exports.TemplateCategoryEntity = exports.TagEntity = exports.TaggedItemEntity = exports.SkillEntity = exports.SchemaInfoEntity = exports.ScheduledActionEntity = exports.ScheduledActionParamEntity = exports.RowLevelSecurityFilterEntity = exports.RoleEntity = exports.ResourceTypeEntity = exports.ResourcePermissionEntity = exports.ResourceLinkEntity = exports.ReportEntity = exports.ReportSnapshotEntity = exports.ReportCategoryEntity = exports.RecordMergeLogEntity = exports.RecordMergeDeletionLogEntity = exports.RecordChangeEntity = exports.RecordChangeReplayRunEntity = exports.RecommendationEntity = exports.RecommendationRunEntity = exports.RecommendationProviderEntity = exports.RecommendationItemEntity = exports.QueueEntity = exports.QueueTypeEntity = exports.QueueTaskEntity = exports.QueryPermissionEntity = exports.QueryFieldEntity = exports.QueryEntityEntity = exports.QueryCategoryEntity = exports.QueryEntity = exports.OutputTriggerTypeEntity = exports.OutputFormatTypeEntity = exports.OutputDeliveryTypeEntity = exports.ReportVersionEntity = exports.ReportUserStateEntity = exports.QueryParameterEntity = exports.DashboardUserStateEntity = exports.DashboardUserPreferenceEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = exports.ConversationArtifactPermissionEntity = exports.ArtifactTypeEntity = exports.AIVendorEntity = exports.AIVendorTypeEntity = exports.AIVendorTypeDefinitionEntity = exports.AIPromptRunEntity = exports.AIPromptModelEntity = void 0;
16
- 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 = void 0;
11
+ 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.ReportVersionSchema = exports.ReportUserStateSchema = exports.QueryParameterSchema = exports.DashboardUserStateSchema = exports.DashboardUserPreferenceSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = exports.ConversationArtifactPermissionSchema = 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.AIAgentPromptSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
12
+ 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 = 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 = void 0;
13
+ 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 = 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 = void 0;
14
+ exports.AIConfigurationEntity = exports.AIConfigurationParamEntity = exports.AIAgentTypeEntity = exports.AIAgentStepEntity = exports.AIAgentStepPathEntity = exports.AIAgentRunEntity = exports.AIAgentRunStepEntity = exports.AIAgentPromptEntity = 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 = 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 = void 0;
15
+ exports.TaggedItemEntity = exports.SkillEntity = exports.SchemaInfoEntity = exports.ScheduledActionEntity = exports.ScheduledActionParamEntity = exports.RowLevelSecurityFilterEntity = exports.RoleEntity = exports.ResourceTypeEntity = exports.ResourcePermissionEntity = exports.ResourceLinkEntity = exports.ReportEntity = exports.ReportSnapshotEntity = exports.ReportCategoryEntity = exports.RecordMergeLogEntity = exports.RecordMergeDeletionLogEntity = exports.RecordChangeEntity = exports.RecordChangeReplayRunEntity = exports.RecommendationEntity = exports.RecommendationRunEntity = exports.RecommendationProviderEntity = exports.RecommendationItemEntity = exports.QueueEntity = exports.QueueTypeEntity = exports.QueueTaskEntity = exports.QueryPermissionEntity = exports.QueryFieldEntity = exports.QueryEntityEntity = exports.QueryCategoryEntity = exports.QueryEntity = exports.OutputTriggerTypeEntity = exports.OutputFormatTypeEntity = exports.OutputDeliveryTypeEntity = exports.ReportVersionEntity = exports.ReportUserStateEntity = exports.QueryParameterEntity = exports.DashboardUserStateEntity = exports.DashboardUserPreferenceEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = exports.ConversationArtifactPermissionEntity = exports.ArtifactTypeEntity = exports.AIVendorEntity = exports.AIVendorTypeEntity = exports.AIVendorTypeDefinitionEntity = exports.AIPromptRunEntity = exports.AIPromptModelEntity = exports.AIModelVendorEntity = exports.AIModelPriceUnitTypeEntity = exports.AIModelPriceTypeEntity = exports.AIModelCostEntity = void 0;
16
+ 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 = void 0;
17
17
  const core_1 = require("@memberjunction/core");
18
18
  const global_1 = require("@memberjunction/global");
19
19
  const zod_1 = require("zod");
@@ -7572,6 +7572,204 @@ each time the agent processes a prompt step.`),
7572
7572
  * * Display Name: User
7573
7573
  * * SQL Data Type: nvarchar(100)`),
7574
7574
  });
7575
+ /**
7576
+ * zod schema definition for the entity MJ: AI Agent Step Paths
7577
+ */
7578
+ exports.AIAgentStepPathSchema = zod_1.z.object({
7579
+ ID: zod_1.z.string().describe(`
7580
+ * * Field Name: ID
7581
+ * * Display Name: ID
7582
+ * * SQL Data Type: uniqueidentifier
7583
+ * * Default Value: newsequentialid()`),
7584
+ OriginStepID: zod_1.z.string().describe(`
7585
+ * * Field Name: OriginStepID
7586
+ * * Display Name: Origin Step ID
7587
+ * * SQL Data Type: uniqueidentifier
7588
+ * * Related Entity/Foreign Key: MJ: AI Agent Steps (vwAIAgentSteps.ID)`),
7589
+ DestinationStepID: zod_1.z.string().describe(`
7590
+ * * Field Name: DestinationStepID
7591
+ * * Display Name: Destination Step ID
7592
+ * * SQL Data Type: uniqueidentifier
7593
+ * * Related Entity/Foreign Key: MJ: AI Agent Steps (vwAIAgentSteps.ID)`),
7594
+ Condition: zod_1.z.string().nullable().describe(`
7595
+ * * Field Name: Condition
7596
+ * * Display Name: Condition
7597
+ * * SQL Data Type: nvarchar(MAX)
7598
+ * * Description: Boolean expression to evaluate. If null, path is always taken. Evaluated against payload and step results.`),
7599
+ Priority: zod_1.z.number().describe(`
7600
+ * * Field Name: Priority
7601
+ * * Display Name: Priority
7602
+ * * SQL Data Type: int
7603
+ * * Default Value: 0
7604
+ * * Description: Path evaluation priority. Higher values are evaluated first. Use 0 or negative values for default/fallback paths that execute when no other conditions match.`),
7605
+ Description: zod_1.z.string().nullable().describe(`
7606
+ * * Field Name: Description
7607
+ * * Display Name: Description
7608
+ * * SQL Data Type: nvarchar(255)`),
7609
+ PathPoints: zod_1.z.string().nullable().describe(`
7610
+ * * Field Name: PathPoints
7611
+ * * Display Name: Path Points
7612
+ * * SQL Data Type: nvarchar(MAX)`),
7613
+ __mj_CreatedAt: zod_1.z.date().describe(`
7614
+ * * Field Name: __mj_CreatedAt
7615
+ * * Display Name: Created At
7616
+ * * SQL Data Type: datetimeoffset
7617
+ * * Default Value: getutcdate()`),
7618
+ __mj_UpdatedAt: zod_1.z.date().describe(`
7619
+ * * Field Name: __mj_UpdatedAt
7620
+ * * Display Name: Updated At
7621
+ * * SQL Data Type: datetimeoffset
7622
+ * * Default Value: getutcdate()`),
7623
+ OriginStep: zod_1.z.string().describe(`
7624
+ * * Field Name: OriginStep
7625
+ * * Display Name: Origin Step
7626
+ * * SQL Data Type: nvarchar(255)`),
7627
+ DestinationStep: zod_1.z.string().describe(`
7628
+ * * Field Name: DestinationStep
7629
+ * * Display Name: Destination Step
7630
+ * * SQL Data Type: nvarchar(255)`),
7631
+ });
7632
+ /**
7633
+ * zod schema definition for the entity MJ: AI Agent Steps
7634
+ */
7635
+ exports.AIAgentStepSchema = zod_1.z.object({
7636
+ ID: zod_1.z.string().describe(`
7637
+ * * Field Name: ID
7638
+ * * Display Name: ID
7639
+ * * SQL Data Type: uniqueidentifier
7640
+ * * Default Value: newsequentialid()`),
7641
+ AgentID: zod_1.z.string().describe(`
7642
+ * * Field Name: AgentID
7643
+ * * Display Name: Agent ID
7644
+ * * SQL Data Type: uniqueidentifier
7645
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)`),
7646
+ Name: zod_1.z.string().describe(`
7647
+ * * Field Name: Name
7648
+ * * Display Name: Name
7649
+ * * SQL Data Type: nvarchar(255)`),
7650
+ Description: zod_1.z.string().nullable().describe(`
7651
+ * * Field Name: Description
7652
+ * * Display Name: Description
7653
+ * * SQL Data Type: nvarchar(MAX)`),
7654
+ StepType: zod_1.z.union([zod_1.z.literal('Action'), zod_1.z.literal('Sub-Agent'), zod_1.z.literal('Prompt')]).describe(`
7655
+ * * Field Name: StepType
7656
+ * * Display Name: Step Type
7657
+ * * SQL Data Type: nvarchar(20)
7658
+ * * Value List Type: List
7659
+ * * Possible Values
7660
+ * * Action
7661
+ * * Sub-Agent
7662
+ * * Prompt
7663
+ * * Description: Type of step: Action (execute an action), Sub-Agent (delegate to another agent), or Prompt (run an AI prompt)`),
7664
+ StartingStep: zod_1.z.boolean().describe(`
7665
+ * * Field Name: StartingStep
7666
+ * * Display Name: Starting Step
7667
+ * * SQL Data Type: bit
7668
+ * * Default Value: 0
7669
+ * * Description: If true, this step is executed when the agent starts`),
7670
+ TimeoutSeconds: zod_1.z.number().nullable().describe(`
7671
+ * * Field Name: TimeoutSeconds
7672
+ * * Display Name: Timeout Seconds
7673
+ * * SQL Data Type: int
7674
+ * * Default Value: 600`),
7675
+ RetryCount: zod_1.z.number().describe(`
7676
+ * * Field Name: RetryCount
7677
+ * * Display Name: Retry Count
7678
+ * * SQL Data Type: int
7679
+ * * Default Value: 0`),
7680
+ OnErrorBehavior: zod_1.z.union([zod_1.z.literal('fail'), zod_1.z.literal('continue'), zod_1.z.literal('retry')]).describe(`
7681
+ * * Field Name: OnErrorBehavior
7682
+ * * Display Name: On Error Behavior
7683
+ * * SQL Data Type: nvarchar(20)
7684
+ * * Default Value: fail
7685
+ * * Value List Type: List
7686
+ * * Possible Values
7687
+ * * fail
7688
+ * * continue
7689
+ * * retry`),
7690
+ ActionID: zod_1.z.string().nullable().describe(`
7691
+ * * Field Name: ActionID
7692
+ * * Display Name: Action ID
7693
+ * * SQL Data Type: uniqueidentifier
7694
+ * * Related Entity/Foreign Key: Actions (vwActions.ID)`),
7695
+ SubAgentID: zod_1.z.string().nullable().describe(`
7696
+ * * Field Name: SubAgentID
7697
+ * * Display Name: Sub Agent ID
7698
+ * * SQL Data Type: uniqueidentifier
7699
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)`),
7700
+ PromptID: zod_1.z.string().nullable().describe(`
7701
+ * * Field Name: PromptID
7702
+ * * Display Name: Prompt ID
7703
+ * * SQL Data Type: uniqueidentifier
7704
+ * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)`),
7705
+ ActionOutputMapping: zod_1.z.string().nullable().describe(`
7706
+ * * Field Name: ActionOutputMapping
7707
+ * * Display Name: Action Output Mapping
7708
+ * * SQL Data Type: nvarchar(MAX)
7709
+ * * Description: JSON configuration for mapping action output parameters to payload paths. Example: {"outputParam1": "payload.customer.status", "*": "payload.lastResult"}`),
7710
+ PositionX: zod_1.z.number().describe(`
7711
+ * * Field Name: PositionX
7712
+ * * Display Name: Position X
7713
+ * * SQL Data Type: int
7714
+ * * Default Value: 0`),
7715
+ PositionY: zod_1.z.number().describe(`
7716
+ * * Field Name: PositionY
7717
+ * * Display Name: Position Y
7718
+ * * SQL Data Type: int
7719
+ * * Default Value: 0`),
7720
+ Width: zod_1.z.number().describe(`
7721
+ * * Field Name: Width
7722
+ * * Display Name: Width
7723
+ * * SQL Data Type: int
7724
+ * * Default Value: 200`),
7725
+ Height: zod_1.z.number().describe(`
7726
+ * * Field Name: Height
7727
+ * * Display Name: Height
7728
+ * * SQL Data Type: int
7729
+ * * Default Value: 80`),
7730
+ __mj_CreatedAt: zod_1.z.date().describe(`
7731
+ * * Field Name: __mj_CreatedAt
7732
+ * * Display Name: Created At
7733
+ * * SQL Data Type: datetimeoffset
7734
+ * * Default Value: getutcdate()`),
7735
+ __mj_UpdatedAt: zod_1.z.date().describe(`
7736
+ * * Field Name: __mj_UpdatedAt
7737
+ * * Display Name: Updated At
7738
+ * * SQL Data Type: datetimeoffset
7739
+ * * Default Value: getutcdate()`),
7740
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Pending'), zod_1.z.literal('Disabled')]).describe(`
7741
+ * * Field Name: Status
7742
+ * * Display Name: Status
7743
+ * * SQL Data Type: nvarchar(20)
7744
+ * * Default Value: Active
7745
+ * * Value List Type: List
7746
+ * * Possible Values
7747
+ * * Active
7748
+ * * Pending
7749
+ * * Disabled
7750
+ * * Description: Controls whether this step is executed. Active=normal execution, Pending=skip but may activate later, Disabled=never execute`),
7751
+ ActionInputMapping: zod_1.z.string().nullable().describe(`
7752
+ * * Field Name: ActionInputMapping
7753
+ * * Display Name: Action Input Mapping
7754
+ * * SQL Data Type: nvarchar(MAX)
7755
+ * * Description: JSON configuration for mapping static values or payload paths to action input parameters. Example: {"param1": "staticValue", "param2": "payload.dynamicValue"}`),
7756
+ Agent: zod_1.z.string().nullable().describe(`
7757
+ * * Field Name: Agent
7758
+ * * Display Name: Agent
7759
+ * * SQL Data Type: nvarchar(255)`),
7760
+ Action: zod_1.z.string().nullable().describe(`
7761
+ * * Field Name: Action
7762
+ * * Display Name: Action
7763
+ * * SQL Data Type: nvarchar(425)`),
7764
+ SubAgent: zod_1.z.string().nullable().describe(`
7765
+ * * Field Name: SubAgent
7766
+ * * Display Name: Sub Agent
7767
+ * * SQL Data Type: nvarchar(255)`),
7768
+ Prompt: zod_1.z.string().nullable().describe(`
7769
+ * * Field Name: Prompt
7770
+ * * Display Name: Prompt
7771
+ * * SQL Data Type: nvarchar(255)`),
7772
+ });
7575
7773
  /**
7576
7774
  * zod schema definition for the entity MJ: AI Agent Types
7577
7775
  */
@@ -7624,6 +7822,22 @@ exports.AIAgentTypeSchema = zod_1.z.object({
7624
7822
  * * Display Name: Driver Class
7625
7823
  * * SQL Data Type: nvarchar(255)
7626
7824
  * * Description: The class name used by the MemberJunction class factory to instantiate the specific agent type implementation. For example, "LoopAgentType" for a looping agent pattern. If not specified, defaults to using the agent type Name for the DriverClass lookup key.`),
7825
+ UIFormSectionKey: zod_1.z.string().nullable().describe(`
7826
+ * * Field Name: UIFormSectionKey
7827
+ * * Display Name: UI Form Section Key
7828
+ * * SQL Data Type: nvarchar(500)
7829
+ * * Description: Optional Angular component key name for a subclass of BaseFormSectionComponent that provides a custom form section for this agent type. When specified, this component will be dynamically loaded and displayed as the first expandable section in the AI Agent form. This allows agent types to have specialized UI elements. The class must be registered with the MemberJunction class factory via @RegisterClass`),
7830
+ UIFormKey: zod_1.z.string().nullable().describe(`
7831
+ * * Field Name: UIFormKey
7832
+ * * Display Name: UI Form Key
7833
+ * * SQL Data Type: nvarchar(500)
7834
+ * * Description: Optional Angular component key name for a subclass of BaseFormComponent that will completely overrides the default AI Agent form for this agent type. When specified, this component will be used instead of the standard AI Agent form, allowing for completely custom form implementations. The class must be registered with the MemberJunction class factory via @RegisterClass. If both UIFormClass and UIFormSectionClass are specified, UIFormClass takes precedence.`),
7835
+ UIFormSectionExpandedByDefault: zod_1.z.boolean().describe(`
7836
+ * * Field Name: UIFormSectionExpandedByDefault
7837
+ * * Display Name: UI Form Section Expanded By Default
7838
+ * * SQL Data Type: bit
7839
+ * * Default Value: 1
7840
+ * * Description: Determines whether the custom form section (specified by UIFormSectionClass) should be expanded by default when the AI Agent form loads. True means the section starts expanded, False means it starts collapsed. Only applies when UIFormSectionClass is specified. Defaults to 1 (expanded).`),
7627
7841
  SystemPrompt: zod_1.z.string().nullable().describe(`
7628
7842
  * * Field Name: SystemPrompt
7629
7843
  * * Display Name: System Prompt
@@ -21541,6 +21755,41 @@ let ConversationDetailEntity = class ConversationDetailEntity extends core_1.Bas
21541
21755
  return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
21542
21756
  }
21543
21757
  /**
21758
+ * Conversation Details - Delete method override to wrap in transaction since CascadeDeletes is true.
21759
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
21760
+ * @public
21761
+ * @method
21762
+ * @override
21763
+ * @memberof ConversationDetailEntity
21764
+ * @returns {Promise<boolean>} - true if successful, false otherwise
21765
+ */
21766
+ async Delete(options) {
21767
+ if (core_1.Metadata.Provider.ProviderType === core_1.ProviderType.Database) {
21768
+ // For database providers, use the transaction methods directly
21769
+ const provider = core_1.Metadata.Provider;
21770
+ try {
21771
+ await provider.BeginTransaction();
21772
+ const result = await super.Delete(options);
21773
+ if (result) {
21774
+ await provider.CommitTransaction();
21775
+ return true;
21776
+ }
21777
+ else {
21778
+ await provider.RollbackTransaction();
21779
+ return false;
21780
+ }
21781
+ }
21782
+ catch (error) {
21783
+ await provider.RollbackTransaction();
21784
+ throw error;
21785
+ }
21786
+ }
21787
+ else {
21788
+ // For network providers, cascading deletes are handled server-side
21789
+ return super.Delete(options);
21790
+ }
21791
+ }
21792
+ /**
21544
21793
  * Validate() method override for Conversation Details entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
21545
21794
  * * UserRating: This rule ensures that the user rating is between 1 and 10, inclusive. Ratings below 1 or above 10 are not allowed.
21546
21795
  * @public
@@ -21829,6 +22078,41 @@ let ConversationEntity = class ConversationEntity extends core_1.BaseEntity {
21829
22078
  return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
21830
22079
  }
21831
22080
  /**
22081
+ * Conversations - Delete method override to wrap in transaction since CascadeDeletes is true.
22082
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
22083
+ * @public
22084
+ * @method
22085
+ * @override
22086
+ * @memberof ConversationEntity
22087
+ * @returns {Promise<boolean>} - true if successful, false otherwise
22088
+ */
22089
+ async Delete(options) {
22090
+ if (core_1.Metadata.Provider.ProviderType === core_1.ProviderType.Database) {
22091
+ // For database providers, use the transaction methods directly
22092
+ const provider = core_1.Metadata.Provider;
22093
+ try {
22094
+ await provider.BeginTransaction();
22095
+ const result = await super.Delete(options);
22096
+ if (result) {
22097
+ await provider.CommitTransaction();
22098
+ return true;
22099
+ }
22100
+ else {
22101
+ await provider.RollbackTransaction();
22102
+ return false;
22103
+ }
22104
+ }
22105
+ catch (error) {
22106
+ await provider.RollbackTransaction();
22107
+ throw error;
22108
+ }
22109
+ }
22110
+ else {
22111
+ // For network providers, cascading deletes are handled server-side
22112
+ return super.Delete(options);
22113
+ }
22114
+ }
22115
+ /**
21832
22116
  * * Field Name: ID
21833
22117
  * * Display Name: ID
21834
22118
  * * SQL Data Type: uniqueidentifier
@@ -31563,6 +31847,541 @@ exports.AIAgentRunEntity = AIAgentRunEntity;
31563
31847
  exports.AIAgentRunEntity = AIAgentRunEntity = __decorate([
31564
31848
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Agent Runs')
31565
31849
  ], AIAgentRunEntity);
31850
+ /**
31851
+ * MJ: AI Agent Step Paths - strongly typed entity sub-class
31852
+ * * Schema: __mj
31853
+ * * Base Table: AIAgentStepPath
31854
+ * * Base View: vwAIAgentStepPaths
31855
+ * * @description Defines paths (edges) between steps in a flow-based AI agent execution graph
31856
+ * * Primary Key: ID
31857
+ * @extends {BaseEntity}
31858
+ * @class
31859
+ * @public
31860
+ */
31861
+ let AIAgentStepPathEntity = class AIAgentStepPathEntity extends core_1.BaseEntity {
31862
+ /**
31863
+ * Loads the MJ: AI Agent Step Paths record from the database
31864
+ * @param ID: string - primary key value to load the MJ: AI Agent Step Paths record.
31865
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
31866
+ * @returns {Promise<boolean>} - true if successful, false otherwise
31867
+ * @public
31868
+ * @async
31869
+ * @memberof AIAgentStepPathEntity
31870
+ * @method
31871
+ * @override
31872
+ */
31873
+ async Load(ID, EntityRelationshipsToLoad) {
31874
+ const compositeKey = new core_1.CompositeKey();
31875
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
31876
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
31877
+ }
31878
+ /**
31879
+ * Validate() method override for MJ: AI Agent Step Paths entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
31880
+ * * Table-Level: This rule ensures that the origin step and destination step must be different. In other words, a step cannot connect to itself.
31881
+ * @public
31882
+ * @method
31883
+ * @override
31884
+ */
31885
+ Validate() {
31886
+ const result = super.Validate();
31887
+ this.ValidateOriginStepIDIsNotEqualToDestinationStepID(result);
31888
+ return result;
31889
+ }
31890
+ /**
31891
+ * This rule ensures that the origin step and destination step must be different. In other words, a step cannot connect to itself.
31892
+ * @param result - the ValidationResult object to add any errors or warnings to
31893
+ * @public
31894
+ * @method
31895
+ */
31896
+ ValidateOriginStepIDIsNotEqualToDestinationStepID(result) {
31897
+ if (this.OriginStepID === this.DestinationStepID) {
31898
+ result.Errors.push(new core_1.ValidationErrorInfo("OriginStepID", "Origin step and destination step must be different. A step cannot connect to itself.", this.OriginStepID, core_1.ValidationErrorType.Failure));
31899
+ }
31900
+ }
31901
+ /**
31902
+ * * Field Name: ID
31903
+ * * Display Name: ID
31904
+ * * SQL Data Type: uniqueidentifier
31905
+ * * Default Value: newsequentialid()
31906
+ */
31907
+ get ID() {
31908
+ return this.Get('ID');
31909
+ }
31910
+ set ID(value) {
31911
+ this.Set('ID', value);
31912
+ }
31913
+ /**
31914
+ * * Field Name: OriginStepID
31915
+ * * Display Name: Origin Step ID
31916
+ * * SQL Data Type: uniqueidentifier
31917
+ * * Related Entity/Foreign Key: MJ: AI Agent Steps (vwAIAgentSteps.ID)
31918
+ */
31919
+ get OriginStepID() {
31920
+ return this.Get('OriginStepID');
31921
+ }
31922
+ set OriginStepID(value) {
31923
+ this.Set('OriginStepID', value);
31924
+ }
31925
+ /**
31926
+ * * Field Name: DestinationStepID
31927
+ * * Display Name: Destination Step ID
31928
+ * * SQL Data Type: uniqueidentifier
31929
+ * * Related Entity/Foreign Key: MJ: AI Agent Steps (vwAIAgentSteps.ID)
31930
+ */
31931
+ get DestinationStepID() {
31932
+ return this.Get('DestinationStepID');
31933
+ }
31934
+ set DestinationStepID(value) {
31935
+ this.Set('DestinationStepID', value);
31936
+ }
31937
+ /**
31938
+ * * Field Name: Condition
31939
+ * * Display Name: Condition
31940
+ * * SQL Data Type: nvarchar(MAX)
31941
+ * * Description: Boolean expression to evaluate. If null, path is always taken. Evaluated against payload and step results.
31942
+ */
31943
+ get Condition() {
31944
+ return this.Get('Condition');
31945
+ }
31946
+ set Condition(value) {
31947
+ this.Set('Condition', value);
31948
+ }
31949
+ /**
31950
+ * * Field Name: Priority
31951
+ * * Display Name: Priority
31952
+ * * SQL Data Type: int
31953
+ * * Default Value: 0
31954
+ * * Description: Path evaluation priority. Higher values are evaluated first. Use 0 or negative values for default/fallback paths that execute when no other conditions match.
31955
+ */
31956
+ get Priority() {
31957
+ return this.Get('Priority');
31958
+ }
31959
+ set Priority(value) {
31960
+ this.Set('Priority', value);
31961
+ }
31962
+ /**
31963
+ * * Field Name: Description
31964
+ * * Display Name: Description
31965
+ * * SQL Data Type: nvarchar(255)
31966
+ */
31967
+ get Description() {
31968
+ return this.Get('Description');
31969
+ }
31970
+ set Description(value) {
31971
+ this.Set('Description', value);
31972
+ }
31973
+ /**
31974
+ * * Field Name: PathPoints
31975
+ * * Display Name: Path Points
31976
+ * * SQL Data Type: nvarchar(MAX)
31977
+ */
31978
+ get PathPoints() {
31979
+ return this.Get('PathPoints');
31980
+ }
31981
+ set PathPoints(value) {
31982
+ this.Set('PathPoints', value);
31983
+ }
31984
+ /**
31985
+ * * Field Name: __mj_CreatedAt
31986
+ * * Display Name: Created At
31987
+ * * SQL Data Type: datetimeoffset
31988
+ * * Default Value: getutcdate()
31989
+ */
31990
+ get __mj_CreatedAt() {
31991
+ return this.Get('__mj_CreatedAt');
31992
+ }
31993
+ /**
31994
+ * * Field Name: __mj_UpdatedAt
31995
+ * * Display Name: Updated At
31996
+ * * SQL Data Type: datetimeoffset
31997
+ * * Default Value: getutcdate()
31998
+ */
31999
+ get __mj_UpdatedAt() {
32000
+ return this.Get('__mj_UpdatedAt');
32001
+ }
32002
+ /**
32003
+ * * Field Name: OriginStep
32004
+ * * Display Name: Origin Step
32005
+ * * SQL Data Type: nvarchar(255)
32006
+ */
32007
+ get OriginStep() {
32008
+ return this.Get('OriginStep');
32009
+ }
32010
+ /**
32011
+ * * Field Name: DestinationStep
32012
+ * * Display Name: Destination Step
32013
+ * * SQL Data Type: nvarchar(255)
32014
+ */
32015
+ get DestinationStep() {
32016
+ return this.Get('DestinationStep');
32017
+ }
32018
+ };
32019
+ exports.AIAgentStepPathEntity = AIAgentStepPathEntity;
32020
+ exports.AIAgentStepPathEntity = AIAgentStepPathEntity = __decorate([
32021
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Agent Step Paths')
32022
+ ], AIAgentStepPathEntity);
32023
+ /**
32024
+ * MJ: AI Agent Steps - strongly typed entity sub-class
32025
+ * * Schema: __mj
32026
+ * * Base Table: AIAgentStep
32027
+ * * Base View: vwAIAgentSteps
32028
+ * * @description Defines individual steps (nodes) in a flow-based AI agent execution graph
32029
+ * * Primary Key: ID
32030
+ * @extends {BaseEntity}
32031
+ * @class
32032
+ * @public
32033
+ */
32034
+ let AIAgentStepEntity = class AIAgentStepEntity extends core_1.BaseEntity {
32035
+ /**
32036
+ * Loads the MJ: AI Agent Steps record from the database
32037
+ * @param ID: string - primary key value to load the MJ: AI Agent Steps record.
32038
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
32039
+ * @returns {Promise<boolean>} - true if successful, false otherwise
32040
+ * @public
32041
+ * @async
32042
+ * @memberof AIAgentStepEntity
32043
+ * @method
32044
+ * @override
32045
+ */
32046
+ async Load(ID, EntityRelationshipsToLoad) {
32047
+ const compositeKey = new core_1.CompositeKey();
32048
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
32049
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
32050
+ }
32051
+ /**
32052
+ * Validate() method override for MJ: AI Agent Steps entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
32053
+ * * RetryCount: This rule ensures that the RetryCount value cannot be negative. It must be zero or higher.
32054
+ * * TimeoutSeconds: This rule makes sure that the value for TimeoutSeconds must be greater than zero. Negative values or zero are not allowed.
32055
+ * @public
32056
+ * @method
32057
+ * @override
32058
+ */
32059
+ Validate() {
32060
+ const result = super.Validate();
32061
+ this.ValidateRetryCountIsNonNegative(result);
32062
+ this.ValidateTimeoutSecondsGreaterThanZero(result);
32063
+ return result;
32064
+ }
32065
+ /**
32066
+ * This rule ensures that the RetryCount value cannot be negative. It must be zero or higher.
32067
+ * @param result - the ValidationResult object to add any errors or warnings to
32068
+ * @public
32069
+ * @method
32070
+ */
32071
+ ValidateRetryCountIsNonNegative(result) {
32072
+ if (this.RetryCount < 0) {
32073
+ result.Errors.push(new core_1.ValidationErrorInfo("RetryCount", "Retry count cannot be negative.", this.RetryCount, core_1.ValidationErrorType.Failure));
32074
+ }
32075
+ }
32076
+ /**
32077
+ * This rule makes sure that the value for TimeoutSeconds must be greater than zero. Negative values or zero are not allowed.
32078
+ * @param result - the ValidationResult object to add any errors or warnings to
32079
+ * @public
32080
+ * @method
32081
+ */
32082
+ ValidateTimeoutSecondsGreaterThanZero(result) {
32083
+ if (this.TimeoutSeconds <= 0) {
32084
+ result.Errors.push(new core_1.ValidationErrorInfo("TimeoutSeconds", "TimeoutSeconds must be greater than zero.", this.TimeoutSeconds, core_1.ValidationErrorType.Failure));
32085
+ }
32086
+ }
32087
+ /**
32088
+ * * Field Name: ID
32089
+ * * Display Name: ID
32090
+ * * SQL Data Type: uniqueidentifier
32091
+ * * Default Value: newsequentialid()
32092
+ */
32093
+ get ID() {
32094
+ return this.Get('ID');
32095
+ }
32096
+ set ID(value) {
32097
+ this.Set('ID', value);
32098
+ }
32099
+ /**
32100
+ * * Field Name: AgentID
32101
+ * * Display Name: Agent ID
32102
+ * * SQL Data Type: uniqueidentifier
32103
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
32104
+ */
32105
+ get AgentID() {
32106
+ return this.Get('AgentID');
32107
+ }
32108
+ set AgentID(value) {
32109
+ this.Set('AgentID', value);
32110
+ }
32111
+ /**
32112
+ * * Field Name: Name
32113
+ * * Display Name: Name
32114
+ * * SQL Data Type: nvarchar(255)
32115
+ */
32116
+ get Name() {
32117
+ return this.Get('Name');
32118
+ }
32119
+ set Name(value) {
32120
+ this.Set('Name', value);
32121
+ }
32122
+ /**
32123
+ * * Field Name: Description
32124
+ * * Display Name: Description
32125
+ * * SQL Data Type: nvarchar(MAX)
32126
+ */
32127
+ get Description() {
32128
+ return this.Get('Description');
32129
+ }
32130
+ set Description(value) {
32131
+ this.Set('Description', value);
32132
+ }
32133
+ /**
32134
+ * * Field Name: StepType
32135
+ * * Display Name: Step Type
32136
+ * * SQL Data Type: nvarchar(20)
32137
+ * * Value List Type: List
32138
+ * * Possible Values
32139
+ * * Action
32140
+ * * Sub-Agent
32141
+ * * Prompt
32142
+ * * Description: Type of step: Action (execute an action), Sub-Agent (delegate to another agent), or Prompt (run an AI prompt)
32143
+ */
32144
+ get StepType() {
32145
+ return this.Get('StepType');
32146
+ }
32147
+ set StepType(value) {
32148
+ this.Set('StepType', value);
32149
+ }
32150
+ /**
32151
+ * * Field Name: StartingStep
32152
+ * * Display Name: Starting Step
32153
+ * * SQL Data Type: bit
32154
+ * * Default Value: 0
32155
+ * * Description: If true, this step is executed when the agent starts
32156
+ */
32157
+ get StartingStep() {
32158
+ return this.Get('StartingStep');
32159
+ }
32160
+ set StartingStep(value) {
32161
+ this.Set('StartingStep', value);
32162
+ }
32163
+ /**
32164
+ * * Field Name: TimeoutSeconds
32165
+ * * Display Name: Timeout Seconds
32166
+ * * SQL Data Type: int
32167
+ * * Default Value: 600
32168
+ */
32169
+ get TimeoutSeconds() {
32170
+ return this.Get('TimeoutSeconds');
32171
+ }
32172
+ set TimeoutSeconds(value) {
32173
+ this.Set('TimeoutSeconds', value);
32174
+ }
32175
+ /**
32176
+ * * Field Name: RetryCount
32177
+ * * Display Name: Retry Count
32178
+ * * SQL Data Type: int
32179
+ * * Default Value: 0
32180
+ */
32181
+ get RetryCount() {
32182
+ return this.Get('RetryCount');
32183
+ }
32184
+ set RetryCount(value) {
32185
+ this.Set('RetryCount', value);
32186
+ }
32187
+ /**
32188
+ * * Field Name: OnErrorBehavior
32189
+ * * Display Name: On Error Behavior
32190
+ * * SQL Data Type: nvarchar(20)
32191
+ * * Default Value: fail
32192
+ * * Value List Type: List
32193
+ * * Possible Values
32194
+ * * fail
32195
+ * * continue
32196
+ * * retry
32197
+ */
32198
+ get OnErrorBehavior() {
32199
+ return this.Get('OnErrorBehavior');
32200
+ }
32201
+ set OnErrorBehavior(value) {
32202
+ this.Set('OnErrorBehavior', value);
32203
+ }
32204
+ /**
32205
+ * * Field Name: ActionID
32206
+ * * Display Name: Action ID
32207
+ * * SQL Data Type: uniqueidentifier
32208
+ * * Related Entity/Foreign Key: Actions (vwActions.ID)
32209
+ */
32210
+ get ActionID() {
32211
+ return this.Get('ActionID');
32212
+ }
32213
+ set ActionID(value) {
32214
+ this.Set('ActionID', value);
32215
+ }
32216
+ /**
32217
+ * * Field Name: SubAgentID
32218
+ * * Display Name: Sub Agent ID
32219
+ * * SQL Data Type: uniqueidentifier
32220
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
32221
+ */
32222
+ get SubAgentID() {
32223
+ return this.Get('SubAgentID');
32224
+ }
32225
+ set SubAgentID(value) {
32226
+ this.Set('SubAgentID', value);
32227
+ }
32228
+ /**
32229
+ * * Field Name: PromptID
32230
+ * * Display Name: Prompt ID
32231
+ * * SQL Data Type: uniqueidentifier
32232
+ * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
32233
+ */
32234
+ get PromptID() {
32235
+ return this.Get('PromptID');
32236
+ }
32237
+ set PromptID(value) {
32238
+ this.Set('PromptID', value);
32239
+ }
32240
+ /**
32241
+ * * Field Name: ActionOutputMapping
32242
+ * * Display Name: Action Output Mapping
32243
+ * * SQL Data Type: nvarchar(MAX)
32244
+ * * Description: JSON configuration for mapping action output parameters to payload paths. Example: {"outputParam1": "payload.customer.status", "*": "payload.lastResult"}
32245
+ */
32246
+ get ActionOutputMapping() {
32247
+ return this.Get('ActionOutputMapping');
32248
+ }
32249
+ set ActionOutputMapping(value) {
32250
+ this.Set('ActionOutputMapping', value);
32251
+ }
32252
+ /**
32253
+ * * Field Name: PositionX
32254
+ * * Display Name: Position X
32255
+ * * SQL Data Type: int
32256
+ * * Default Value: 0
32257
+ */
32258
+ get PositionX() {
32259
+ return this.Get('PositionX');
32260
+ }
32261
+ set PositionX(value) {
32262
+ this.Set('PositionX', value);
32263
+ }
32264
+ /**
32265
+ * * Field Name: PositionY
32266
+ * * Display Name: Position Y
32267
+ * * SQL Data Type: int
32268
+ * * Default Value: 0
32269
+ */
32270
+ get PositionY() {
32271
+ return this.Get('PositionY');
32272
+ }
32273
+ set PositionY(value) {
32274
+ this.Set('PositionY', value);
32275
+ }
32276
+ /**
32277
+ * * Field Name: Width
32278
+ * * Display Name: Width
32279
+ * * SQL Data Type: int
32280
+ * * Default Value: 200
32281
+ */
32282
+ get Width() {
32283
+ return this.Get('Width');
32284
+ }
32285
+ set Width(value) {
32286
+ this.Set('Width', value);
32287
+ }
32288
+ /**
32289
+ * * Field Name: Height
32290
+ * * Display Name: Height
32291
+ * * SQL Data Type: int
32292
+ * * Default Value: 80
32293
+ */
32294
+ get Height() {
32295
+ return this.Get('Height');
32296
+ }
32297
+ set Height(value) {
32298
+ this.Set('Height', value);
32299
+ }
32300
+ /**
32301
+ * * Field Name: __mj_CreatedAt
32302
+ * * Display Name: Created At
32303
+ * * SQL Data Type: datetimeoffset
32304
+ * * Default Value: getutcdate()
32305
+ */
32306
+ get __mj_CreatedAt() {
32307
+ return this.Get('__mj_CreatedAt');
32308
+ }
32309
+ /**
32310
+ * * Field Name: __mj_UpdatedAt
32311
+ * * Display Name: Updated At
32312
+ * * SQL Data Type: datetimeoffset
32313
+ * * Default Value: getutcdate()
32314
+ */
32315
+ get __mj_UpdatedAt() {
32316
+ return this.Get('__mj_UpdatedAt');
32317
+ }
32318
+ /**
32319
+ * * Field Name: Status
32320
+ * * Display Name: Status
32321
+ * * SQL Data Type: nvarchar(20)
32322
+ * * Default Value: Active
32323
+ * * Value List Type: List
32324
+ * * Possible Values
32325
+ * * Active
32326
+ * * Pending
32327
+ * * Disabled
32328
+ * * Description: Controls whether this step is executed. Active=normal execution, Pending=skip but may activate later, Disabled=never execute
32329
+ */
32330
+ get Status() {
32331
+ return this.Get('Status');
32332
+ }
32333
+ set Status(value) {
32334
+ this.Set('Status', value);
32335
+ }
32336
+ /**
32337
+ * * Field Name: ActionInputMapping
32338
+ * * Display Name: Action Input Mapping
32339
+ * * SQL Data Type: nvarchar(MAX)
32340
+ * * Description: JSON configuration for mapping static values or payload paths to action input parameters. Example: {"param1": "staticValue", "param2": "payload.dynamicValue"}
32341
+ */
32342
+ get ActionInputMapping() {
32343
+ return this.Get('ActionInputMapping');
32344
+ }
32345
+ set ActionInputMapping(value) {
32346
+ this.Set('ActionInputMapping', value);
32347
+ }
32348
+ /**
32349
+ * * Field Name: Agent
32350
+ * * Display Name: Agent
32351
+ * * SQL Data Type: nvarchar(255)
32352
+ */
32353
+ get Agent() {
32354
+ return this.Get('Agent');
32355
+ }
32356
+ /**
32357
+ * * Field Name: Action
32358
+ * * Display Name: Action
32359
+ * * SQL Data Type: nvarchar(425)
32360
+ */
32361
+ get Action() {
32362
+ return this.Get('Action');
32363
+ }
32364
+ /**
32365
+ * * Field Name: SubAgent
32366
+ * * Display Name: Sub Agent
32367
+ * * SQL Data Type: nvarchar(255)
32368
+ */
32369
+ get SubAgent() {
32370
+ return this.Get('SubAgent');
32371
+ }
32372
+ /**
32373
+ * * Field Name: Prompt
32374
+ * * Display Name: Prompt
32375
+ * * SQL Data Type: nvarchar(255)
32376
+ */
32377
+ get Prompt() {
32378
+ return this.Get('Prompt');
32379
+ }
32380
+ };
32381
+ exports.AIAgentStepEntity = AIAgentStepEntity;
32382
+ exports.AIAgentStepEntity = AIAgentStepEntity = __decorate([
32383
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Agent Steps')
32384
+ ], AIAgentStepEntity);
31566
32385
  /**
31567
32386
  * MJ: AI Agent Types - strongly typed entity sub-class
31568
32387
  * * Schema: __mj
@@ -31697,6 +32516,43 @@ let AIAgentTypeEntity = class AIAgentTypeEntity extends core_1.BaseEntity {
31697
32516
  this.Set('DriverClass', value);
31698
32517
  }
31699
32518
  /**
32519
+ * * Field Name: UIFormSectionKey
32520
+ * * Display Name: UI Form Section Key
32521
+ * * SQL Data Type: nvarchar(500)
32522
+ * * Description: Optional Angular component key name for a subclass of BaseFormSectionComponent that provides a custom form section for this agent type. When specified, this component will be dynamically loaded and displayed as the first expandable section in the AI Agent form. This allows agent types to have specialized UI elements. The class must be registered with the MemberJunction class factory via @RegisterClass
32523
+ */
32524
+ get UIFormSectionKey() {
32525
+ return this.Get('UIFormSectionKey');
32526
+ }
32527
+ set UIFormSectionKey(value) {
32528
+ this.Set('UIFormSectionKey', value);
32529
+ }
32530
+ /**
32531
+ * * Field Name: UIFormKey
32532
+ * * Display Name: UI Form Key
32533
+ * * SQL Data Type: nvarchar(500)
32534
+ * * Description: Optional Angular component key name for a subclass of BaseFormComponent that will completely overrides the default AI Agent form for this agent type. When specified, this component will be used instead of the standard AI Agent form, allowing for completely custom form implementations. The class must be registered with the MemberJunction class factory via @RegisterClass. If both UIFormClass and UIFormSectionClass are specified, UIFormClass takes precedence.
32535
+ */
32536
+ get UIFormKey() {
32537
+ return this.Get('UIFormKey');
32538
+ }
32539
+ set UIFormKey(value) {
32540
+ this.Set('UIFormKey', value);
32541
+ }
32542
+ /**
32543
+ * * Field Name: UIFormSectionExpandedByDefault
32544
+ * * Display Name: UI Form Section Expanded By Default
32545
+ * * SQL Data Type: bit
32546
+ * * Default Value: 1
32547
+ * * Description: Determines whether the custom form section (specified by UIFormSectionClass) should be expanded by default when the AI Agent form loads. True means the section starts expanded, False means it starts collapsed. Only applies when UIFormSectionClass is specified. Defaults to 1 (expanded).
32548
+ */
32549
+ get UIFormSectionExpandedByDefault() {
32550
+ return this.Get('UIFormSectionExpandedByDefault');
32551
+ }
32552
+ set UIFormSectionExpandedByDefault(value) {
32553
+ this.Set('UIFormSectionExpandedByDefault', value);
32554
+ }
32555
+ /**
31700
32556
  * * Field Name: SystemPrompt
31701
32557
  * * Display Name: System Prompt
31702
32558
  * * SQL Data Type: nvarchar(255)
@@ -34634,6 +35490,41 @@ let ConversationArtifactVersionEntity = class ConversationArtifactVersionEntity
34634
35490
  return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
34635
35491
  }
34636
35492
  /**
35493
+ * MJ: Conversation Artifact Versions - Delete method override to wrap in transaction since CascadeDeletes is true.
35494
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
35495
+ * @public
35496
+ * @method
35497
+ * @override
35498
+ * @memberof ConversationArtifactVersionEntity
35499
+ * @returns {Promise<boolean>} - true if successful, false otherwise
35500
+ */
35501
+ async Delete(options) {
35502
+ if (core_1.Metadata.Provider.ProviderType === core_1.ProviderType.Database) {
35503
+ // For database providers, use the transaction methods directly
35504
+ const provider = core_1.Metadata.Provider;
35505
+ try {
35506
+ await provider.BeginTransaction();
35507
+ const result = await super.Delete(options);
35508
+ if (result) {
35509
+ await provider.CommitTransaction();
35510
+ return true;
35511
+ }
35512
+ else {
35513
+ await provider.RollbackTransaction();
35514
+ return false;
35515
+ }
35516
+ }
35517
+ catch (error) {
35518
+ await provider.RollbackTransaction();
35519
+ throw error;
35520
+ }
35521
+ }
35522
+ else {
35523
+ // For network providers, cascading deletes are handled server-side
35524
+ return super.Delete(options);
35525
+ }
35526
+ }
35527
+ /**
34637
35528
  * Validate() method override for MJ: Conversation Artifact Versions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
34638
35529
  * * Version: This rule ensures that the version number must be greater than zero.
34639
35530
  * @public
@@ -34789,6 +35680,41 @@ let ConversationArtifactEntity = class ConversationArtifactEntity extends core_1
34789
35680
  return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
34790
35681
  }
34791
35682
  /**
35683
+ * MJ: Conversation Artifacts - Delete method override to wrap in transaction since CascadeDeletes is true.
35684
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
35685
+ * @public
35686
+ * @method
35687
+ * @override
35688
+ * @memberof ConversationArtifactEntity
35689
+ * @returns {Promise<boolean>} - true if successful, false otherwise
35690
+ */
35691
+ async Delete(options) {
35692
+ if (core_1.Metadata.Provider.ProviderType === core_1.ProviderType.Database) {
35693
+ // For database providers, use the transaction methods directly
35694
+ const provider = core_1.Metadata.Provider;
35695
+ try {
35696
+ await provider.BeginTransaction();
35697
+ const result = await super.Delete(options);
35698
+ if (result) {
35699
+ await provider.CommitTransaction();
35700
+ return true;
35701
+ }
35702
+ else {
35703
+ await provider.RollbackTransaction();
35704
+ return false;
35705
+ }
35706
+ }
35707
+ catch (error) {
35708
+ await provider.RollbackTransaction();
35709
+ throw error;
35710
+ }
35711
+ }
35712
+ else {
35713
+ // For network providers, cascading deletes are handled server-side
35714
+ return super.Delete(options);
35715
+ }
35716
+ }
35717
+ /**
34792
35718
  * * Field Name: ID
34793
35719
  * * Display Name: ID
34794
35720
  * * SQL Data Type: uniqueidentifier
@@ -38865,6 +39791,41 @@ let ReportEntity = class ReportEntity extends core_1.BaseEntity {
38865
39791
  return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
38866
39792
  }
38867
39793
  /**
39794
+ * Reports - Delete method override to wrap in transaction since CascadeDeletes is true.
39795
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
39796
+ * @public
39797
+ * @method
39798
+ * @override
39799
+ * @memberof ReportEntity
39800
+ * @returns {Promise<boolean>} - true if successful, false otherwise
39801
+ */
39802
+ async Delete(options) {
39803
+ if (core_1.Metadata.Provider.ProviderType === core_1.ProviderType.Database) {
39804
+ // For database providers, use the transaction methods directly
39805
+ const provider = core_1.Metadata.Provider;
39806
+ try {
39807
+ await provider.BeginTransaction();
39808
+ const result = await super.Delete(options);
39809
+ if (result) {
39810
+ await provider.CommitTransaction();
39811
+ return true;
39812
+ }
39813
+ else {
39814
+ await provider.RollbackTransaction();
39815
+ return false;
39816
+ }
39817
+ }
39818
+ catch (error) {
39819
+ await provider.RollbackTransaction();
39820
+ throw error;
39821
+ }
39822
+ }
39823
+ else {
39824
+ // For network providers, cascading deletes are handled server-side
39825
+ return super.Delete(options);
39826
+ }
39827
+ }
39828
+ /**
38868
39829
  * * Field Name: ID
38869
39830
  * * Display Name: ID
38870
39831
  * * SQL Data Type: uniqueidentifier