@memberjunction/core-entities 2.74.0 → 2.76.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
@@ -8468,6 +8682,12 @@ exports.AIPromptRunSchema = zod_1.z.object({
8468
8682
  * * Display Name: Total Failover Duration
8469
8683
  * * SQL Data Type: int
8470
8684
  * * Description: Total time spent in failover attempts in milliseconds`),
8685
+ RerunFromPromptRunID: zod_1.z.string().nullable().describe(`
8686
+ * * Field Name: RerunFromPromptRunID
8687
+ * * Display Name: Rerun From Prompt Run ID
8688
+ * * SQL Data Type: uniqueidentifier
8689
+ * * Related Entity/Foreign Key: MJ: AI Prompt Runs (vwAIPromptRuns.ID)
8690
+ * * Description: If this run was initiated as a re-run of another prompt run, this field links back to the original run ID`),
8471
8691
  Prompt: zod_1.z.string().describe(`
8472
8692
  * * Field Name: Prompt
8473
8693
  * * Display Name: Prompt
@@ -14109,8 +14329,8 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
14109
14329
  }
14110
14330
  /**
14111
14331
  * 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:
14112
- * * MinExecutionsPerRun: This rule ensures that if a value for 'Minimum Executions Per Run' is provided, it must be zero or greater. If the value is not provided (left blank), that's also allowed.
14113
14332
  * * MaxExecutionsPerRun: This rule ensures that if a value for the maximum number of executions per run is provided, it must be greater than zero. If no value is provided, that's acceptable.
14333
+ * * MinExecutionsPerRun: This rule ensures that if a value for 'Minimum Executions Per Run' is provided, it must be zero or greater. If the value is not provided (left blank), that's also allowed.
14114
14334
  * * Table-Level: This rule ensures that the minimum number of executions per run cannot be greater than the maximum number of executions per run. If either value is not specified, the rule is considered satisfied.
14115
14335
  * @public
14116
14336
  * @method
@@ -14118,31 +14338,31 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
14118
14338
  */
14119
14339
  Validate() {
14120
14340
  const result = super.Validate();
14121
- this.ValidateMinExecutionsPerRunIsNonNegative(result);
14122
14341
  this.ValidateMaxExecutionsPerRunGreaterThanZero(result);
14342
+ this.ValidateMinExecutionsPerRunIsNonNegative(result);
14123
14343
  this.ValidateMinExecutionsPerRunLessThanOrEqualToMax(result);
14124
14344
  return result;
14125
14345
  }
14126
14346
  /**
14127
- * This rule ensures that if a value for 'Minimum Executions Per Run' is provided, it must be zero or greater. If the value is not provided (left blank), that's also allowed.
14347
+ * This rule ensures that if a value for the maximum number of executions per run is provided, it must be greater than zero. If no value is provided, that's acceptable.
14128
14348
  * @param result - the ValidationResult object to add any errors or warnings to
14129
14349
  * @public
14130
14350
  * @method
14131
14351
  */
14132
- ValidateMinExecutionsPerRunIsNonNegative(result) {
14133
- if (this.MinExecutionsPerRun !== null && this.MinExecutionsPerRun < 0) {
14134
- result.Errors.push(new core_1.ValidationErrorInfo("MinExecutionsPerRun", "Minimum executions per run must be zero or greater.", this.MinExecutionsPerRun, core_1.ValidationErrorType.Failure));
14352
+ ValidateMaxExecutionsPerRunGreaterThanZero(result) {
14353
+ if (this.MaxExecutionsPerRun !== null && this.MaxExecutionsPerRun <= 0) {
14354
+ result.Errors.push(new core_1.ValidationErrorInfo("MaxExecutionsPerRun", "If a maximum executions per run is specified, it must be greater than zero.", this.MaxExecutionsPerRun, core_1.ValidationErrorType.Failure));
14135
14355
  }
14136
14356
  }
14137
14357
  /**
14138
- * This rule ensures that if a value for the maximum number of executions per run is provided, it must be greater than zero. If no value is provided, that's acceptable.
14358
+ * This rule ensures that if a value for 'Minimum Executions Per Run' is provided, it must be zero or greater. If the value is not provided (left blank), that's also allowed.
14139
14359
  * @param result - the ValidationResult object to add any errors or warnings to
14140
14360
  * @public
14141
14361
  * @method
14142
14362
  */
14143
- ValidateMaxExecutionsPerRunGreaterThanZero(result) {
14144
- if (this.MaxExecutionsPerRun !== null && this.MaxExecutionsPerRun <= 0) {
14145
- result.Errors.push(new core_1.ValidationErrorInfo("MaxExecutionsPerRun", "If a maximum executions per run is specified, it must be greater than zero.", this.MaxExecutionsPerRun, core_1.ValidationErrorType.Failure));
14363
+ ValidateMinExecutionsPerRunIsNonNegative(result) {
14364
+ if (this.MinExecutionsPerRun !== null && this.MinExecutionsPerRun < 0) {
14365
+ result.Errors.push(new core_1.ValidationErrorInfo("MinExecutionsPerRun", "Minimum executions per run must be zero or greater.", this.MinExecutionsPerRun, core_1.ValidationErrorType.Failure));
14146
14366
  }
14147
14367
  }
14148
14368
  /**
@@ -15019,25 +15239,36 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
15019
15239
  }
15020
15240
  /**
15021
15241
  * Validate() method override for AI Agents entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
15022
- * * MinExecutionsPerRun: This rule ensures that if the minimum executions per run value is provided, it must be zero or greater.
15023
15242
  * * MaxExecutionsPerRun: This rule ensures that the maximum number of executions per run can either be left blank (unspecified) or, if provided, it must be a positive number greater than zero.
15243
+ * * MinExecutionsPerRun: This rule ensures that if the minimum executions per run value is provided, it must be zero or greater.
15244
+ * * Table-Level: This rule ensures that if context compression is enabled, all related settings (message threshold, prompt ID, and message retention count) must be specified. If context compression is not enabled, these settings may be left unspecified.
15024
15245
  * * Table-Level: This rule ensures that if both 'Minimum Executions Per Run' and 'Maximum Executions Per Run' are specified, the minimum must not be greater than the maximum. If either field is not specified, this rule does not apply.
15025
15246
  * * Table-Level: This rule makes sure that if the ParentID is set (not empty), then the ExposeAsAction option must be disabled. If ExposeAsAction is enabled, ParentID must be empty.
15026
- * * Table-Level: This rule ensures that if context compression is enabled, all related settings (message threshold, prompt ID, and message retention count) must be specified. If context compression is not enabled, these settings may be left unspecified.
15027
15247
  * @public
15028
15248
  * @method
15029
15249
  * @override
15030
15250
  */
15031
15251
  Validate() {
15032
15252
  const result = super.Validate();
15033
- this.ValidateMinExecutionsPerRunIsNonNegative(result);
15034
15253
  this.ValidateMaxExecutionsPerRunIsNullOrPositive(result);
15254
+ this.ValidateMinExecutionsPerRunIsNonNegative(result);
15255
+ this.ValidateEnableContextCompressionRequiresContextFields(result);
15035
15256
  this.ValidateMinExecutionsPerRunLessThanOrEqualToMaxExecutionsPerRun(result);
15036
15257
  this.ValidateParentIDMustBeNullIfExposeAsActionTrue(result);
15037
- this.ValidateEnableContextCompressionRequiresContextFields(result);
15038
15258
  return result;
15039
15259
  }
15040
15260
  /**
15261
+ * This rule ensures that the maximum number of executions per run can either be left blank (unspecified) or, if provided, it must be a positive number greater than zero.
15262
+ * @param result - the ValidationResult object to add any errors or warnings to
15263
+ * @public
15264
+ * @method
15265
+ */
15266
+ ValidateMaxExecutionsPerRunIsNullOrPositive(result) {
15267
+ if (this.MaxExecutionsPerRun !== null && this.MaxExecutionsPerRun <= 0) {
15268
+ result.Errors.push(new core_1.ValidationErrorInfo("MaxExecutionsPerRun", "MaxExecutionsPerRun must be left blank or must be greater than zero.", this.MaxExecutionsPerRun, core_1.ValidationErrorType.Failure));
15269
+ }
15270
+ }
15271
+ /**
15041
15272
  * This rule ensures that if the minimum executions per run value is provided, it must be zero or greater.
15042
15273
  * @param result - the ValidationResult object to add any errors or warnings to
15043
15274
  * @public
@@ -15049,14 +15280,22 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
15049
15280
  }
15050
15281
  }
15051
15282
  /**
15052
- * This rule ensures that the maximum number of executions per run can either be left blank (unspecified) or, if provided, it must be a positive number greater than zero.
15283
+ * This rule ensures that if context compression is enabled, all related settings (message threshold, prompt ID, and message retention count) must be specified. If context compression is not enabled, these settings may be left unspecified.
15053
15284
  * @param result - the ValidationResult object to add any errors or warnings to
15054
15285
  * @public
15055
15286
  * @method
15056
15287
  */
15057
- ValidateMaxExecutionsPerRunIsNullOrPositive(result) {
15058
- if (this.MaxExecutionsPerRun !== null && this.MaxExecutionsPerRun <= 0) {
15059
- result.Errors.push(new core_1.ValidationErrorInfo("MaxExecutionsPerRun", "MaxExecutionsPerRun must be left blank or must be greater than zero.", this.MaxExecutionsPerRun, core_1.ValidationErrorType.Failure));
15288
+ ValidateEnableContextCompressionRequiresContextFields(result) {
15289
+ if (this.EnableContextCompression) {
15290
+ if (this.ContextCompressionMessageThreshold === null) {
15291
+ result.Errors.push(new core_1.ValidationErrorInfo("ContextCompressionMessageThreshold", "Context compression is enabled, so the context compression message threshold is required.", this.ContextCompressionMessageThreshold, core_1.ValidationErrorType.Failure));
15292
+ }
15293
+ if (this.ContextCompressionPromptID === null) {
15294
+ result.Errors.push(new core_1.ValidationErrorInfo("ContextCompressionPromptID", "Context compression is enabled, so the context compression prompt ID is required.", this.ContextCompressionPromptID, core_1.ValidationErrorType.Failure));
15295
+ }
15296
+ if (this.ContextCompressionMessageRetentionCount === null) {
15297
+ result.Errors.push(new core_1.ValidationErrorInfo("ContextCompressionMessageRetentionCount", "Context compression is enabled, so the context compression message retention count is required.", this.ContextCompressionMessageRetentionCount, core_1.ValidationErrorType.Failure));
15298
+ }
15060
15299
  }
15061
15300
  }
15062
15301
  /**
@@ -15082,25 +15321,6 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
15082
15321
  }
15083
15322
  }
15084
15323
  /**
15085
- * This rule ensures that if context compression is enabled, all related settings (message threshold, prompt ID, and message retention count) must be specified. If context compression is not enabled, these settings may be left unspecified.
15086
- * @param result - the ValidationResult object to add any errors or warnings to
15087
- * @public
15088
- * @method
15089
- */
15090
- ValidateEnableContextCompressionRequiresContextFields(result) {
15091
- if (this.EnableContextCompression) {
15092
- if (this.ContextCompressionMessageThreshold === null) {
15093
- result.Errors.push(new core_1.ValidationErrorInfo("ContextCompressionMessageThreshold", "Context compression is enabled, so the context compression message threshold is required.", this.ContextCompressionMessageThreshold, core_1.ValidationErrorType.Failure));
15094
- }
15095
- if (this.ContextCompressionPromptID === null) {
15096
- result.Errors.push(new core_1.ValidationErrorInfo("ContextCompressionPromptID", "Context compression is enabled, so the context compression prompt ID is required.", this.ContextCompressionPromptID, core_1.ValidationErrorType.Failure));
15097
- }
15098
- if (this.ContextCompressionMessageRetentionCount === null) {
15099
- result.Errors.push(new core_1.ValidationErrorInfo("ContextCompressionMessageRetentionCount", "Context compression is enabled, so the context compression message retention count is required.", this.ContextCompressionMessageRetentionCount, core_1.ValidationErrorType.Failure));
15100
- }
15101
- }
15102
- }
15103
- /**
15104
15324
  * * Field Name: ID
15105
15325
  * * Display Name: ID
15106
15326
  * * SQL Data Type: uniqueidentifier
@@ -15812,32 +16032,21 @@ let AIModelEntity = class AIModelEntity extends core_1.BaseEntity {
15812
16032
  }
15813
16033
  /**
15814
16034
  * Validate() method override for AI Models entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
15815
- * * SpeedRank: This rule ensures that the speed rank must be zero or a positive number.
15816
16035
  * * CostRank: This rule ensures that the cost rank of an item must be zero or higher. This means that the cost rank cannot be negative.
15817
16036
  * * PowerRank: This rule ensures that the power rank must be greater than or equal to zero, meaning that it cannot be negative.
16037
+ * * SpeedRank: This rule ensures that the speed rank must be zero or a positive number.
15818
16038
  * @public
15819
16039
  * @method
15820
16040
  * @override
15821
16041
  */
15822
16042
  Validate() {
15823
16043
  const result = super.Validate();
15824
- this.ValidateSpeedRank(result);
15825
16044
  this.ValidateCostRank(result);
15826
16045
  this.ValidatePowerRank(result);
16046
+ this.ValidateSpeedRank(result);
15827
16047
  return result;
15828
16048
  }
15829
16049
  /**
15830
- * This rule ensures that the speed rank must be zero or a positive number.
15831
- * @param result - the ValidationResult object to add any errors or warnings to
15832
- * @public
15833
- * @method
15834
- */
15835
- ValidateSpeedRank(result) {
15836
- if (this.SpeedRank < 0) {
15837
- result.Errors.push(new core_1.ValidationErrorInfo('SpeedRank', 'Speed rank must be zero or a positive number.', this.SpeedRank, core_1.ValidationErrorType.Failure));
15838
- }
15839
- }
15840
- /**
15841
16050
  * This rule ensures that the cost rank of an item must be zero or higher. This means that the cost rank cannot be negative.
15842
16051
  * @param result - the ValidationResult object to add any errors or warnings to
15843
16052
  * @public
@@ -15860,6 +16069,17 @@ let AIModelEntity = class AIModelEntity extends core_1.BaseEntity {
15860
16069
  }
15861
16070
  }
15862
16071
  /**
16072
+ * This rule ensures that the speed rank must be zero or a positive number.
16073
+ * @param result - the ValidationResult object to add any errors or warnings to
16074
+ * @public
16075
+ * @method
16076
+ */
16077
+ ValidateSpeedRank(result) {
16078
+ if (this.SpeedRank < 0) {
16079
+ result.Errors.push(new core_1.ValidationErrorInfo('SpeedRank', 'Speed rank must be zero or a positive number.', this.SpeedRank, core_1.ValidationErrorType.Failure));
16080
+ }
16081
+ }
16082
+ /**
15863
16083
  * * Field Name: ID
15864
16084
  * * Display Name: ID
15865
16085
  * * SQL Data Type: uniqueidentifier
@@ -16277,79 +16497,35 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
16277
16497
  }
16278
16498
  /**
16279
16499
  * Validate() method override for AI Prompts entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
16280
- * * FailoverStrategy: This rule ensures that the FailoverStrategy field, if specified, must be either 'None', 'PowerRank', 'NextBestModel', 'SameModelDifferentVendor', or left blank (unset).
16281
- * * FailoverModelStrategy: This rule ensures that the value for FailoverModelStrategy is either 'RequireSameModel', 'PreferDifferentModel', 'PreferSameModel', or left blank (not set). Any other value is not allowed.
16282
- * * FailoverErrorScope: This rule ensures that the FailoverErrorScope field can only be set to 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.
16283
16500
  * * CacheSimilarityThreshold: This rule ensures that if a cache similarity threshold is provided, it must be a value between 0 and 1, inclusive. If no value is provided, that's also allowed.
16284
16501
  * * CacheTTLSeconds: This rule ensures that if the cache expiration time in seconds is provided, it must be greater than zero.
16285
- * * Table-Level: This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
16502
+ * * FailoverErrorScope: This rule ensures that the FailoverErrorScope field can only be set to 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.
16503
+ * * FailoverModelStrategy: This rule ensures that the value for FailoverModelStrategy is either 'RequireSameModel', 'PreferDifferentModel', 'PreferSameModel', or left blank (not set). Any other value is not allowed.
16504
+ * * FailoverStrategy: This rule ensures that the FailoverStrategy field, if specified, must be either 'None', 'PowerRank', 'NextBestModel', 'SameModelDifferentVendor', or left blank (unset).
16286
16505
  * * Table-Level: This rule ensures that if the cache match type is set to 'Vector', the cache similarity threshold must be specified. If the match type is anything other than 'Vector', the similarity threshold can be left empty.
16287
- * * Table-Level: This rule ensures that if the parallelization mode is set to 'StaticCount', then the number of parallel tasks (ParallelCount) must be provided.
16288
- * * Table-Level: This rule ensures that if the Parallelization Mode is set to 'ConfigParam', then the Parallel Config Param field must be filled in. For any other mode, the Parallel Config Param can be left empty.
16289
16506
  * * Table-Level: This rule ensures that if the OutputType is set to 'object', an OutputExample must be provided. If the OutputType is anything other than 'object', providing an OutputExample is not required.
16507
+ * * Table-Level: This rule ensures that if the Parallelization Mode is set to 'ConfigParam', then the Parallel Config Param field must be filled in. For any other mode, the Parallel Config Param can be left empty.
16508
+ * * Table-Level: This rule ensures that if the parallelization mode is set to 'StaticCount', then the number of parallel tasks (ParallelCount) must be provided.
16509
+ * * Table-Level: This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
16290
16510
  * @public
16291
16511
  * @method
16292
16512
  * @override
16293
16513
  */
16294
16514
  Validate() {
16295
16515
  const result = super.Validate();
16296
- this.ValidateFailoverStrategyAllowedValues(result);
16297
- this.ValidateFailoverModelStrategyAgainstAllowedValues(result);
16298
- this.ValidateFailoverErrorScopeAgainstAllowedValues(result);
16299
16516
  this.ValidateCacheSimilarityThresholdIsBetweenZeroAndOne(result);
16300
16517
  this.ValidateCacheTTLSecondsGreaterThanZero(result);
16301
- this.ValidateResultSelectorPromptIDNotEqualID(result);
16518
+ this.ValidateFailoverErrorScopeAgainstAllowedValues(result);
16519
+ this.ValidateFailoverModelStrategyAgainstAllowedValues(result);
16520
+ this.ValidateFailoverStrategyAllowedValues(result);
16302
16521
  this.ValidateCacheSimilarityThresholdRequiredForVectorCache(result);
16303
- this.ValidateParallelCountWhenParallelizationModeIsStaticCount(result);
16304
- this.ValidateParallelConfigParamRequiredForConfigParamMode(result);
16305
16522
  this.ValidateOutputExampleWhenOutputTypeObject(result);
16523
+ this.ValidateParallelConfigParamRequiredForConfigParamMode(result);
16524
+ this.ValidateParallelCountWhenParallelizationModeIsStaticCount(result);
16525
+ this.ValidateResultSelectorPromptIDNotEqualID(result);
16306
16526
  return result;
16307
16527
  }
16308
16528
  /**
16309
- * This rule ensures that the FailoverStrategy field, if specified, must be either 'None', 'PowerRank', 'NextBestModel', 'SameModelDifferentVendor', or left blank (unset).
16310
- * @param result - the ValidationResult object to add any errors or warnings to
16311
- * @public
16312
- * @method
16313
- */
16314
- ValidateFailoverStrategyAllowedValues(result) {
16315
- const allowed = [
16316
- "None",
16317
- "PowerRank",
16318
- "NextBestModel",
16319
- "SameModelDifferentVendor",
16320
- null, // Allowing null/undefined as valid per the constraint
16321
- undefined
16322
- ];
16323
- if (!allowed.includes(this.FailoverStrategy)) {
16324
- result.Errors.push(new core_1.ValidationErrorInfo("FailoverStrategy", "The failover strategy must be 'None', 'PowerRank', 'NextBestModel', 'SameModelDifferentVendor', or left blank.", this.FailoverStrategy, core_1.ValidationErrorType.Failure));
16325
- }
16326
- }
16327
- /**
16328
- * This rule ensures that the value for FailoverModelStrategy is either 'RequireSameModel', 'PreferDifferentModel', 'PreferSameModel', or left blank (not set). Any other value is not allowed.
16329
- * @param result - the ValidationResult object to add any errors or warnings to
16330
- * @public
16331
- * @method
16332
- */
16333
- ValidateFailoverModelStrategyAgainstAllowedValues(result) {
16334
- const allowedValues = ["RequireSameModel", "PreferDifferentModel", "PreferSameModel", null];
16335
- if (this.FailoverModelStrategy !== null &&
16336
- !allowedValues.includes(this.FailoverModelStrategy)) {
16337
- result.Errors.push(new core_1.ValidationErrorInfo("FailoverModelStrategy", "FailoverModelStrategy must be null or one of: 'RequireSameModel', 'PreferDifferentModel', 'PreferSameModel'.", this.FailoverModelStrategy, core_1.ValidationErrorType.Failure));
16338
- }
16339
- }
16340
- /**
16341
- * This rule ensures that the FailoverErrorScope field can only be set to 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.
16342
- * @param result - the ValidationResult object to add any errors or warnings to
16343
- * @public
16344
- * @method
16345
- */
16346
- ValidateFailoverErrorScopeAgainstAllowedValues(result) {
16347
- const allowedValues = ["ServiceErrorOnly", "RateLimitOnly", "NetworkOnly", "All", null];
16348
- if (!allowedValues.includes(this.FailoverErrorScope)) {
16349
- result.Errors.push(new core_1.ValidationErrorInfo("FailoverErrorScope", "The failover error scope must be one of: 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.", this.FailoverErrorScope, core_1.ValidationErrorType.Failure));
16350
- }
16351
- }
16352
- /**
16353
16529
  * This rule ensures that if a cache similarity threshold is provided, it must be a value between 0 and 1, inclusive. If no value is provided, that's also allowed.
16354
16530
  * @param result - the ValidationResult object to add any errors or warnings to
16355
16531
  * @public
@@ -16372,14 +16548,47 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
16372
16548
  }
16373
16549
  }
16374
16550
  /**
16375
- * This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
16551
+ * This rule ensures that the FailoverErrorScope field can only be set to 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.
16376
16552
  * @param result - the ValidationResult object to add any errors or warnings to
16377
16553
  * @public
16378
16554
  * @method
16379
16555
  */
16380
- ValidateResultSelectorPromptIDNotEqualID(result) {
16381
- if (this.ResultSelectorPromptID === this.ID) {
16382
- result.Errors.push(new core_1.ValidationErrorInfo("ResultSelectorPromptID", "The ResultSelectorPromptID cannot be the same as the ID. A result selector prompt cannot reference itself.", this.ResultSelectorPromptID, core_1.ValidationErrorType.Failure));
16556
+ ValidateFailoverErrorScopeAgainstAllowedValues(result) {
16557
+ const allowedValues = ["ServiceErrorOnly", "RateLimitOnly", "NetworkOnly", "All", null];
16558
+ if (!allowedValues.includes(this.FailoverErrorScope)) {
16559
+ result.Errors.push(new core_1.ValidationErrorInfo("FailoverErrorScope", "The failover error scope must be one of: 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.", this.FailoverErrorScope, core_1.ValidationErrorType.Failure));
16560
+ }
16561
+ }
16562
+ /**
16563
+ * This rule ensures that the value for FailoverModelStrategy is either 'RequireSameModel', 'PreferDifferentModel', 'PreferSameModel', or left blank (not set). Any other value is not allowed.
16564
+ * @param result - the ValidationResult object to add any errors or warnings to
16565
+ * @public
16566
+ * @method
16567
+ */
16568
+ ValidateFailoverModelStrategyAgainstAllowedValues(result) {
16569
+ const allowedValues = ["RequireSameModel", "PreferDifferentModel", "PreferSameModel", null];
16570
+ if (this.FailoverModelStrategy !== null &&
16571
+ !allowedValues.includes(this.FailoverModelStrategy)) {
16572
+ result.Errors.push(new core_1.ValidationErrorInfo("FailoverModelStrategy", "FailoverModelStrategy must be null or one of: 'RequireSameModel', 'PreferDifferentModel', 'PreferSameModel'.", this.FailoverModelStrategy, core_1.ValidationErrorType.Failure));
16573
+ }
16574
+ }
16575
+ /**
16576
+ * This rule ensures that the FailoverStrategy field, if specified, must be either 'None', 'PowerRank', 'NextBestModel', 'SameModelDifferentVendor', or left blank (unset).
16577
+ * @param result - the ValidationResult object to add any errors or warnings to
16578
+ * @public
16579
+ * @method
16580
+ */
16581
+ ValidateFailoverStrategyAllowedValues(result) {
16582
+ const allowed = [
16583
+ "None",
16584
+ "PowerRank",
16585
+ "NextBestModel",
16586
+ "SameModelDifferentVendor",
16587
+ null, // Allowing null/undefined as valid per the constraint
16588
+ undefined
16589
+ ];
16590
+ if (!allowed.includes(this.FailoverStrategy)) {
16591
+ result.Errors.push(new core_1.ValidationErrorInfo("FailoverStrategy", "The failover strategy must be 'None', 'PowerRank', 'NextBestModel', 'SameModelDifferentVendor', or left blank.", this.FailoverStrategy, core_1.ValidationErrorType.Failure));
16383
16592
  }
16384
16593
  }
16385
16594
  /**
@@ -16394,14 +16603,14 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
16394
16603
  }
16395
16604
  }
16396
16605
  /**
16397
- * This rule ensures that if the parallelization mode is set to 'StaticCount', then the number of parallel tasks (ParallelCount) must be provided.
16606
+ * This rule ensures that if the OutputType is set to 'object', an OutputExample must be provided. If the OutputType is anything other than 'object', providing an OutputExample is not required.
16398
16607
  * @param result - the ValidationResult object to add any errors or warnings to
16399
16608
  * @public
16400
16609
  * @method
16401
16610
  */
16402
- ValidateParallelCountWhenParallelizationModeIsStaticCount(result) {
16403
- if (this.ParallelizationMode === "StaticCount" && this.ParallelCount === null) {
16404
- result.Errors.push(new core_1.ValidationErrorInfo("ParallelCount", "When ParallelizationMode is 'StaticCount', ParallelCount must be specified.", this.ParallelCount, core_1.ValidationErrorType.Failure));
16611
+ ValidateOutputExampleWhenOutputTypeObject(result) {
16612
+ if (this.OutputType === "object" && (this.OutputExample === null || this.OutputExample === undefined)) {
16613
+ result.Errors.push(new core_1.ValidationErrorInfo("OutputExample", "When OutputType is 'object', OutputExample must be provided.", this.OutputExample, core_1.ValidationErrorType.Failure));
16405
16614
  }
16406
16615
  }
16407
16616
  /**
@@ -16416,14 +16625,25 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
16416
16625
  }
16417
16626
  }
16418
16627
  /**
16419
- * This rule ensures that if the OutputType is set to 'object', an OutputExample must be provided. If the OutputType is anything other than 'object', providing an OutputExample is not required.
16628
+ * This rule ensures that if the parallelization mode is set to 'StaticCount', then the number of parallel tasks (ParallelCount) must be provided.
16420
16629
  * @param result - the ValidationResult object to add any errors or warnings to
16421
16630
  * @public
16422
16631
  * @method
16423
16632
  */
16424
- ValidateOutputExampleWhenOutputTypeObject(result) {
16425
- if (this.OutputType === "object" && (this.OutputExample === null || this.OutputExample === undefined)) {
16426
- result.Errors.push(new core_1.ValidationErrorInfo("OutputExample", "When OutputType is 'object', OutputExample must be provided.", this.OutputExample, core_1.ValidationErrorType.Failure));
16633
+ ValidateParallelCountWhenParallelizationModeIsStaticCount(result) {
16634
+ if (this.ParallelizationMode === "StaticCount" && this.ParallelCount === null) {
16635
+ result.Errors.push(new core_1.ValidationErrorInfo("ParallelCount", "When ParallelizationMode is 'StaticCount', ParallelCount must be specified.", this.ParallelCount, core_1.ValidationErrorType.Failure));
16636
+ }
16637
+ }
16638
+ /**
16639
+ * This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
16640
+ * @param result - the ValidationResult object to add any errors or warnings to
16641
+ * @public
16642
+ * @method
16643
+ */
16644
+ ValidateResultSelectorPromptIDNotEqualID(result) {
16645
+ if (this.ResultSelectorPromptID === this.ID) {
16646
+ result.Errors.push(new core_1.ValidationErrorInfo("ResultSelectorPromptID", "The ResultSelectorPromptID cannot be the same as the ID. A result selector prompt cannot reference itself.", this.ResultSelectorPromptID, core_1.ValidationErrorType.Failure));
16427
16647
  }
16428
16648
  }
16429
16649
  /**
@@ -30804,39 +31024,39 @@ let AIAgentRunStepEntity = class AIAgentRunStepEntity extends core_1.BaseEntity
30804
31024
  }
30805
31025
  /**
30806
31026
  * Validate() method override for MJ: AI Agent Run Steps entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
30807
- * * StepNumber: This rule ensures that the step number must always be greater than zero.
30808
31027
  * * FinalPayloadValidationResult: This rule ensures that the FinalPayloadValidationResult field is either left blank or is set to one of the following values: 'Warn', 'Fail', 'Retry', or 'Pass'. No other values are allowed.
31028
+ * * StepNumber: This rule ensures that the step number must always be greater than zero.
30809
31029
  * @public
30810
31030
  * @method
30811
31031
  * @override
30812
31032
  */
30813
31033
  Validate() {
30814
31034
  const result = super.Validate();
30815
- this.ValidateStepNumberGreaterThanZero(result);
30816
31035
  this.ValidateFinalPayloadValidationResultAllowedValues(result);
31036
+ this.ValidateStepNumberGreaterThanZero(result);
30817
31037
  return result;
30818
31038
  }
30819
31039
  /**
30820
- * This rule ensures that the step number must always be greater than zero.
31040
+ * This rule ensures that the FinalPayloadValidationResult field is either left blank or is set to one of the following values: 'Warn', 'Fail', 'Retry', or 'Pass'. No other values are allowed.
30821
31041
  * @param result - the ValidationResult object to add any errors or warnings to
30822
31042
  * @public
30823
31043
  * @method
30824
31044
  */
30825
- ValidateStepNumberGreaterThanZero(result) {
30826
- if (this.StepNumber <= 0) {
30827
- result.Errors.push(new core_1.ValidationErrorInfo("StepNumber", "Step number must be greater than zero.", this.StepNumber, core_1.ValidationErrorType.Failure));
31045
+ ValidateFinalPayloadValidationResultAllowedValues(result) {
31046
+ const allowedValues = ["Warn", "Fail", "Retry", "Pass"];
31047
+ if (this.FinalPayloadValidationResult !== null && !allowedValues.includes(this.FinalPayloadValidationResult)) {
31048
+ result.Errors.push(new core_1.ValidationErrorInfo("FinalPayloadValidationResult", "If a final payload validation result is specified, it must be either 'Warn', 'Fail', 'Retry', or 'Pass'.", this.FinalPayloadValidationResult, core_1.ValidationErrorType.Failure));
30828
31049
  }
30829
31050
  }
30830
31051
  /**
30831
- * This rule ensures that the FinalPayloadValidationResult field is either left blank or is set to one of the following values: 'Warn', 'Fail', 'Retry', or 'Pass'. No other values are allowed.
31052
+ * This rule ensures that the step number must always be greater than zero.
30832
31053
  * @param result - the ValidationResult object to add any errors or warnings to
30833
31054
  * @public
30834
31055
  * @method
30835
31056
  */
30836
- ValidateFinalPayloadValidationResultAllowedValues(result) {
30837
- const allowedValues = ["Warn", "Fail", "Retry", "Pass"];
30838
- if (this.FinalPayloadValidationResult !== null && !allowedValues.includes(this.FinalPayloadValidationResult)) {
30839
- result.Errors.push(new core_1.ValidationErrorInfo("FinalPayloadValidationResult", "If a final payload validation result is specified, it must be either 'Warn', 'Fail', 'Retry', or 'Pass'.", this.FinalPayloadValidationResult, core_1.ValidationErrorType.Failure));
31057
+ ValidateStepNumberGreaterThanZero(result) {
31058
+ if (this.StepNumber <= 0) {
31059
+ result.Errors.push(new core_1.ValidationErrorInfo("StepNumber", "Step number must be greater than zero.", this.StepNumber, core_1.ValidationErrorType.Failure));
30840
31060
  }
30841
31061
  }
30842
31062
  /**
@@ -31557,6 +31777,541 @@ exports.AIAgentRunEntity = AIAgentRunEntity;
31557
31777
  exports.AIAgentRunEntity = AIAgentRunEntity = __decorate([
31558
31778
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Agent Runs')
31559
31779
  ], AIAgentRunEntity);
31780
+ /**
31781
+ * MJ: AI Agent Step Paths - strongly typed entity sub-class
31782
+ * * Schema: __mj
31783
+ * * Base Table: AIAgentStepPath
31784
+ * * Base View: vwAIAgentStepPaths
31785
+ * * @description Defines paths (edges) between steps in a flow-based AI agent execution graph
31786
+ * * Primary Key: ID
31787
+ * @extends {BaseEntity}
31788
+ * @class
31789
+ * @public
31790
+ */
31791
+ let AIAgentStepPathEntity = class AIAgentStepPathEntity extends core_1.BaseEntity {
31792
+ /**
31793
+ * Loads the MJ: AI Agent Step Paths record from the database
31794
+ * @param ID: string - primary key value to load the MJ: AI Agent Step Paths record.
31795
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
31796
+ * @returns {Promise<boolean>} - true if successful, false otherwise
31797
+ * @public
31798
+ * @async
31799
+ * @memberof AIAgentStepPathEntity
31800
+ * @method
31801
+ * @override
31802
+ */
31803
+ async Load(ID, EntityRelationshipsToLoad) {
31804
+ const compositeKey = new core_1.CompositeKey();
31805
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
31806
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
31807
+ }
31808
+ /**
31809
+ * 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:
31810
+ * * Table-Level: This rule ensures that the origin step and destination step must be different. In other words, a step cannot connect to itself.
31811
+ * @public
31812
+ * @method
31813
+ * @override
31814
+ */
31815
+ Validate() {
31816
+ const result = super.Validate();
31817
+ this.ValidateOriginStepIDIsNotEqualToDestinationStepID(result);
31818
+ return result;
31819
+ }
31820
+ /**
31821
+ * This rule ensures that the origin step and destination step must be different. In other words, a step cannot connect to itself.
31822
+ * @param result - the ValidationResult object to add any errors or warnings to
31823
+ * @public
31824
+ * @method
31825
+ */
31826
+ ValidateOriginStepIDIsNotEqualToDestinationStepID(result) {
31827
+ if (this.OriginStepID === this.DestinationStepID) {
31828
+ 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));
31829
+ }
31830
+ }
31831
+ /**
31832
+ * * Field Name: ID
31833
+ * * Display Name: ID
31834
+ * * SQL Data Type: uniqueidentifier
31835
+ * * Default Value: newsequentialid()
31836
+ */
31837
+ get ID() {
31838
+ return this.Get('ID');
31839
+ }
31840
+ set ID(value) {
31841
+ this.Set('ID', value);
31842
+ }
31843
+ /**
31844
+ * * Field Name: OriginStepID
31845
+ * * Display Name: Origin Step ID
31846
+ * * SQL Data Type: uniqueidentifier
31847
+ * * Related Entity/Foreign Key: MJ: AI Agent Steps (vwAIAgentSteps.ID)
31848
+ */
31849
+ get OriginStepID() {
31850
+ return this.Get('OriginStepID');
31851
+ }
31852
+ set OriginStepID(value) {
31853
+ this.Set('OriginStepID', value);
31854
+ }
31855
+ /**
31856
+ * * Field Name: DestinationStepID
31857
+ * * Display Name: Destination Step ID
31858
+ * * SQL Data Type: uniqueidentifier
31859
+ * * Related Entity/Foreign Key: MJ: AI Agent Steps (vwAIAgentSteps.ID)
31860
+ */
31861
+ get DestinationStepID() {
31862
+ return this.Get('DestinationStepID');
31863
+ }
31864
+ set DestinationStepID(value) {
31865
+ this.Set('DestinationStepID', value);
31866
+ }
31867
+ /**
31868
+ * * Field Name: Condition
31869
+ * * Display Name: Condition
31870
+ * * SQL Data Type: nvarchar(MAX)
31871
+ * * Description: Boolean expression to evaluate. If null, path is always taken. Evaluated against payload and step results.
31872
+ */
31873
+ get Condition() {
31874
+ return this.Get('Condition');
31875
+ }
31876
+ set Condition(value) {
31877
+ this.Set('Condition', value);
31878
+ }
31879
+ /**
31880
+ * * Field Name: Priority
31881
+ * * Display Name: Priority
31882
+ * * SQL Data Type: int
31883
+ * * Default Value: 0
31884
+ * * 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.
31885
+ */
31886
+ get Priority() {
31887
+ return this.Get('Priority');
31888
+ }
31889
+ set Priority(value) {
31890
+ this.Set('Priority', value);
31891
+ }
31892
+ /**
31893
+ * * Field Name: Description
31894
+ * * Display Name: Description
31895
+ * * SQL Data Type: nvarchar(255)
31896
+ */
31897
+ get Description() {
31898
+ return this.Get('Description');
31899
+ }
31900
+ set Description(value) {
31901
+ this.Set('Description', value);
31902
+ }
31903
+ /**
31904
+ * * Field Name: PathPoints
31905
+ * * Display Name: Path Points
31906
+ * * SQL Data Type: nvarchar(MAX)
31907
+ */
31908
+ get PathPoints() {
31909
+ return this.Get('PathPoints');
31910
+ }
31911
+ set PathPoints(value) {
31912
+ this.Set('PathPoints', value);
31913
+ }
31914
+ /**
31915
+ * * Field Name: __mj_CreatedAt
31916
+ * * Display Name: Created At
31917
+ * * SQL Data Type: datetimeoffset
31918
+ * * Default Value: getutcdate()
31919
+ */
31920
+ get __mj_CreatedAt() {
31921
+ return this.Get('__mj_CreatedAt');
31922
+ }
31923
+ /**
31924
+ * * Field Name: __mj_UpdatedAt
31925
+ * * Display Name: Updated At
31926
+ * * SQL Data Type: datetimeoffset
31927
+ * * Default Value: getutcdate()
31928
+ */
31929
+ get __mj_UpdatedAt() {
31930
+ return this.Get('__mj_UpdatedAt');
31931
+ }
31932
+ /**
31933
+ * * Field Name: OriginStep
31934
+ * * Display Name: Origin Step
31935
+ * * SQL Data Type: nvarchar(255)
31936
+ */
31937
+ get OriginStep() {
31938
+ return this.Get('OriginStep');
31939
+ }
31940
+ /**
31941
+ * * Field Name: DestinationStep
31942
+ * * Display Name: Destination Step
31943
+ * * SQL Data Type: nvarchar(255)
31944
+ */
31945
+ get DestinationStep() {
31946
+ return this.Get('DestinationStep');
31947
+ }
31948
+ };
31949
+ exports.AIAgentStepPathEntity = AIAgentStepPathEntity;
31950
+ exports.AIAgentStepPathEntity = AIAgentStepPathEntity = __decorate([
31951
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Agent Step Paths')
31952
+ ], AIAgentStepPathEntity);
31953
+ /**
31954
+ * MJ: AI Agent Steps - strongly typed entity sub-class
31955
+ * * Schema: __mj
31956
+ * * Base Table: AIAgentStep
31957
+ * * Base View: vwAIAgentSteps
31958
+ * * @description Defines individual steps (nodes) in a flow-based AI agent execution graph
31959
+ * * Primary Key: ID
31960
+ * @extends {BaseEntity}
31961
+ * @class
31962
+ * @public
31963
+ */
31964
+ let AIAgentStepEntity = class AIAgentStepEntity extends core_1.BaseEntity {
31965
+ /**
31966
+ * Loads the MJ: AI Agent Steps record from the database
31967
+ * @param ID: string - primary key value to load the MJ: AI Agent Steps record.
31968
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
31969
+ * @returns {Promise<boolean>} - true if successful, false otherwise
31970
+ * @public
31971
+ * @async
31972
+ * @memberof AIAgentStepEntity
31973
+ * @method
31974
+ * @override
31975
+ */
31976
+ async Load(ID, EntityRelationshipsToLoad) {
31977
+ const compositeKey = new core_1.CompositeKey();
31978
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
31979
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
31980
+ }
31981
+ /**
31982
+ * 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:
31983
+ * * RetryCount: This rule ensures that the RetryCount value cannot be negative. It must be zero or higher.
31984
+ * * TimeoutSeconds: This rule makes sure that the value for TimeoutSeconds must be greater than zero. Negative values or zero are not allowed.
31985
+ * @public
31986
+ * @method
31987
+ * @override
31988
+ */
31989
+ Validate() {
31990
+ const result = super.Validate();
31991
+ this.ValidateRetryCountIsNonNegative(result);
31992
+ this.ValidateTimeoutSecondsGreaterThanZero(result);
31993
+ return result;
31994
+ }
31995
+ /**
31996
+ * This rule ensures that the RetryCount value cannot be negative. It must be zero or higher.
31997
+ * @param result - the ValidationResult object to add any errors or warnings to
31998
+ * @public
31999
+ * @method
32000
+ */
32001
+ ValidateRetryCountIsNonNegative(result) {
32002
+ if (this.RetryCount < 0) {
32003
+ result.Errors.push(new core_1.ValidationErrorInfo("RetryCount", "Retry count cannot be negative.", this.RetryCount, core_1.ValidationErrorType.Failure));
32004
+ }
32005
+ }
32006
+ /**
32007
+ * This rule makes sure that the value for TimeoutSeconds must be greater than zero. Negative values or zero are not allowed.
32008
+ * @param result - the ValidationResult object to add any errors or warnings to
32009
+ * @public
32010
+ * @method
32011
+ */
32012
+ ValidateTimeoutSecondsGreaterThanZero(result) {
32013
+ if (this.TimeoutSeconds <= 0) {
32014
+ result.Errors.push(new core_1.ValidationErrorInfo("TimeoutSeconds", "TimeoutSeconds must be greater than zero.", this.TimeoutSeconds, core_1.ValidationErrorType.Failure));
32015
+ }
32016
+ }
32017
+ /**
32018
+ * * Field Name: ID
32019
+ * * Display Name: ID
32020
+ * * SQL Data Type: uniqueidentifier
32021
+ * * Default Value: newsequentialid()
32022
+ */
32023
+ get ID() {
32024
+ return this.Get('ID');
32025
+ }
32026
+ set ID(value) {
32027
+ this.Set('ID', value);
32028
+ }
32029
+ /**
32030
+ * * Field Name: AgentID
32031
+ * * Display Name: Agent ID
32032
+ * * SQL Data Type: uniqueidentifier
32033
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
32034
+ */
32035
+ get AgentID() {
32036
+ return this.Get('AgentID');
32037
+ }
32038
+ set AgentID(value) {
32039
+ this.Set('AgentID', value);
32040
+ }
32041
+ /**
32042
+ * * Field Name: Name
32043
+ * * Display Name: Name
32044
+ * * SQL Data Type: nvarchar(255)
32045
+ */
32046
+ get Name() {
32047
+ return this.Get('Name');
32048
+ }
32049
+ set Name(value) {
32050
+ this.Set('Name', value);
32051
+ }
32052
+ /**
32053
+ * * Field Name: Description
32054
+ * * Display Name: Description
32055
+ * * SQL Data Type: nvarchar(MAX)
32056
+ */
32057
+ get Description() {
32058
+ return this.Get('Description');
32059
+ }
32060
+ set Description(value) {
32061
+ this.Set('Description', value);
32062
+ }
32063
+ /**
32064
+ * * Field Name: StepType
32065
+ * * Display Name: Step Type
32066
+ * * SQL Data Type: nvarchar(20)
32067
+ * * Value List Type: List
32068
+ * * Possible Values
32069
+ * * Action
32070
+ * * Sub-Agent
32071
+ * * Prompt
32072
+ * * Description: Type of step: Action (execute an action), Sub-Agent (delegate to another agent), or Prompt (run an AI prompt)
32073
+ */
32074
+ get StepType() {
32075
+ return this.Get('StepType');
32076
+ }
32077
+ set StepType(value) {
32078
+ this.Set('StepType', value);
32079
+ }
32080
+ /**
32081
+ * * Field Name: StartingStep
32082
+ * * Display Name: Starting Step
32083
+ * * SQL Data Type: bit
32084
+ * * Default Value: 0
32085
+ * * Description: If true, this step is executed when the agent starts
32086
+ */
32087
+ get StartingStep() {
32088
+ return this.Get('StartingStep');
32089
+ }
32090
+ set StartingStep(value) {
32091
+ this.Set('StartingStep', value);
32092
+ }
32093
+ /**
32094
+ * * Field Name: TimeoutSeconds
32095
+ * * Display Name: Timeout Seconds
32096
+ * * SQL Data Type: int
32097
+ * * Default Value: 600
32098
+ */
32099
+ get TimeoutSeconds() {
32100
+ return this.Get('TimeoutSeconds');
32101
+ }
32102
+ set TimeoutSeconds(value) {
32103
+ this.Set('TimeoutSeconds', value);
32104
+ }
32105
+ /**
32106
+ * * Field Name: RetryCount
32107
+ * * Display Name: Retry Count
32108
+ * * SQL Data Type: int
32109
+ * * Default Value: 0
32110
+ */
32111
+ get RetryCount() {
32112
+ return this.Get('RetryCount');
32113
+ }
32114
+ set RetryCount(value) {
32115
+ this.Set('RetryCount', value);
32116
+ }
32117
+ /**
32118
+ * * Field Name: OnErrorBehavior
32119
+ * * Display Name: On Error Behavior
32120
+ * * SQL Data Type: nvarchar(20)
32121
+ * * Default Value: fail
32122
+ * * Value List Type: List
32123
+ * * Possible Values
32124
+ * * fail
32125
+ * * continue
32126
+ * * retry
32127
+ */
32128
+ get OnErrorBehavior() {
32129
+ return this.Get('OnErrorBehavior');
32130
+ }
32131
+ set OnErrorBehavior(value) {
32132
+ this.Set('OnErrorBehavior', value);
32133
+ }
32134
+ /**
32135
+ * * Field Name: ActionID
32136
+ * * Display Name: Action ID
32137
+ * * SQL Data Type: uniqueidentifier
32138
+ * * Related Entity/Foreign Key: Actions (vwActions.ID)
32139
+ */
32140
+ get ActionID() {
32141
+ return this.Get('ActionID');
32142
+ }
32143
+ set ActionID(value) {
32144
+ this.Set('ActionID', value);
32145
+ }
32146
+ /**
32147
+ * * Field Name: SubAgentID
32148
+ * * Display Name: Sub Agent ID
32149
+ * * SQL Data Type: uniqueidentifier
32150
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
32151
+ */
32152
+ get SubAgentID() {
32153
+ return this.Get('SubAgentID');
32154
+ }
32155
+ set SubAgentID(value) {
32156
+ this.Set('SubAgentID', value);
32157
+ }
32158
+ /**
32159
+ * * Field Name: PromptID
32160
+ * * Display Name: Prompt ID
32161
+ * * SQL Data Type: uniqueidentifier
32162
+ * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
32163
+ */
32164
+ get PromptID() {
32165
+ return this.Get('PromptID');
32166
+ }
32167
+ set PromptID(value) {
32168
+ this.Set('PromptID', value);
32169
+ }
32170
+ /**
32171
+ * * Field Name: ActionOutputMapping
32172
+ * * Display Name: Action Output Mapping
32173
+ * * SQL Data Type: nvarchar(MAX)
32174
+ * * Description: JSON configuration for mapping action output parameters to payload paths. Example: {"outputParam1": "payload.customer.status", "*": "payload.lastResult"}
32175
+ */
32176
+ get ActionOutputMapping() {
32177
+ return this.Get('ActionOutputMapping');
32178
+ }
32179
+ set ActionOutputMapping(value) {
32180
+ this.Set('ActionOutputMapping', value);
32181
+ }
32182
+ /**
32183
+ * * Field Name: PositionX
32184
+ * * Display Name: Position X
32185
+ * * SQL Data Type: int
32186
+ * * Default Value: 0
32187
+ */
32188
+ get PositionX() {
32189
+ return this.Get('PositionX');
32190
+ }
32191
+ set PositionX(value) {
32192
+ this.Set('PositionX', value);
32193
+ }
32194
+ /**
32195
+ * * Field Name: PositionY
32196
+ * * Display Name: Position Y
32197
+ * * SQL Data Type: int
32198
+ * * Default Value: 0
32199
+ */
32200
+ get PositionY() {
32201
+ return this.Get('PositionY');
32202
+ }
32203
+ set PositionY(value) {
32204
+ this.Set('PositionY', value);
32205
+ }
32206
+ /**
32207
+ * * Field Name: Width
32208
+ * * Display Name: Width
32209
+ * * SQL Data Type: int
32210
+ * * Default Value: 200
32211
+ */
32212
+ get Width() {
32213
+ return this.Get('Width');
32214
+ }
32215
+ set Width(value) {
32216
+ this.Set('Width', value);
32217
+ }
32218
+ /**
32219
+ * * Field Name: Height
32220
+ * * Display Name: Height
32221
+ * * SQL Data Type: int
32222
+ * * Default Value: 80
32223
+ */
32224
+ get Height() {
32225
+ return this.Get('Height');
32226
+ }
32227
+ set Height(value) {
32228
+ this.Set('Height', value);
32229
+ }
32230
+ /**
32231
+ * * Field Name: __mj_CreatedAt
32232
+ * * Display Name: Created At
32233
+ * * SQL Data Type: datetimeoffset
32234
+ * * Default Value: getutcdate()
32235
+ */
32236
+ get __mj_CreatedAt() {
32237
+ return this.Get('__mj_CreatedAt');
32238
+ }
32239
+ /**
32240
+ * * Field Name: __mj_UpdatedAt
32241
+ * * Display Name: Updated At
32242
+ * * SQL Data Type: datetimeoffset
32243
+ * * Default Value: getutcdate()
32244
+ */
32245
+ get __mj_UpdatedAt() {
32246
+ return this.Get('__mj_UpdatedAt');
32247
+ }
32248
+ /**
32249
+ * * Field Name: Status
32250
+ * * Display Name: Status
32251
+ * * SQL Data Type: nvarchar(20)
32252
+ * * Default Value: Active
32253
+ * * Value List Type: List
32254
+ * * Possible Values
32255
+ * * Active
32256
+ * * Pending
32257
+ * * Disabled
32258
+ * * Description: Controls whether this step is executed. Active=normal execution, Pending=skip but may activate later, Disabled=never execute
32259
+ */
32260
+ get Status() {
32261
+ return this.Get('Status');
32262
+ }
32263
+ set Status(value) {
32264
+ this.Set('Status', value);
32265
+ }
32266
+ /**
32267
+ * * Field Name: ActionInputMapping
32268
+ * * Display Name: Action Input Mapping
32269
+ * * SQL Data Type: nvarchar(MAX)
32270
+ * * Description: JSON configuration for mapping static values or payload paths to action input parameters. Example: {"param1": "staticValue", "param2": "payload.dynamicValue"}
32271
+ */
32272
+ get ActionInputMapping() {
32273
+ return this.Get('ActionInputMapping');
32274
+ }
32275
+ set ActionInputMapping(value) {
32276
+ this.Set('ActionInputMapping', value);
32277
+ }
32278
+ /**
32279
+ * * Field Name: Agent
32280
+ * * Display Name: Agent
32281
+ * * SQL Data Type: nvarchar(255)
32282
+ */
32283
+ get Agent() {
32284
+ return this.Get('Agent');
32285
+ }
32286
+ /**
32287
+ * * Field Name: Action
32288
+ * * Display Name: Action
32289
+ * * SQL Data Type: nvarchar(425)
32290
+ */
32291
+ get Action() {
32292
+ return this.Get('Action');
32293
+ }
32294
+ /**
32295
+ * * Field Name: SubAgent
32296
+ * * Display Name: Sub Agent
32297
+ * * SQL Data Type: nvarchar(255)
32298
+ */
32299
+ get SubAgent() {
32300
+ return this.Get('SubAgent');
32301
+ }
32302
+ /**
32303
+ * * Field Name: Prompt
32304
+ * * Display Name: Prompt
32305
+ * * SQL Data Type: nvarchar(255)
32306
+ */
32307
+ get Prompt() {
32308
+ return this.Get('Prompt');
32309
+ }
32310
+ };
32311
+ exports.AIAgentStepEntity = AIAgentStepEntity;
32312
+ exports.AIAgentStepEntity = AIAgentStepEntity = __decorate([
32313
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Agent Steps')
32314
+ ], AIAgentStepEntity);
31560
32315
  /**
31561
32316
  * MJ: AI Agent Types - strongly typed entity sub-class
31562
32317
  * * Schema: __mj
@@ -31691,6 +32446,43 @@ let AIAgentTypeEntity = class AIAgentTypeEntity extends core_1.BaseEntity {
31691
32446
  this.Set('DriverClass', value);
31692
32447
  }
31693
32448
  /**
32449
+ * * Field Name: UIFormSectionKey
32450
+ * * Display Name: UI Form Section Key
32451
+ * * SQL Data Type: nvarchar(500)
32452
+ * * 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
32453
+ */
32454
+ get UIFormSectionKey() {
32455
+ return this.Get('UIFormSectionKey');
32456
+ }
32457
+ set UIFormSectionKey(value) {
32458
+ this.Set('UIFormSectionKey', value);
32459
+ }
32460
+ /**
32461
+ * * Field Name: UIFormKey
32462
+ * * Display Name: UI Form Key
32463
+ * * SQL Data Type: nvarchar(500)
32464
+ * * 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.
32465
+ */
32466
+ get UIFormKey() {
32467
+ return this.Get('UIFormKey');
32468
+ }
32469
+ set UIFormKey(value) {
32470
+ this.Set('UIFormKey', value);
32471
+ }
32472
+ /**
32473
+ * * Field Name: UIFormSectionExpandedByDefault
32474
+ * * Display Name: UI Form Section Expanded By Default
32475
+ * * SQL Data Type: bit
32476
+ * * Default Value: 1
32477
+ * * 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).
32478
+ */
32479
+ get UIFormSectionExpandedByDefault() {
32480
+ return this.Get('UIFormSectionExpandedByDefault');
32481
+ }
32482
+ set UIFormSectionExpandedByDefault(value) {
32483
+ this.Set('UIFormSectionExpandedByDefault', value);
32484
+ }
32485
+ /**
31694
32486
  * * Field Name: SystemPrompt
31695
32487
  * * Display Name: System Prompt
31696
32488
  * * SQL Data Type: nvarchar(255)
@@ -32457,38 +33249,38 @@ let AIModelPriceUnitTypeEntity = class AIModelPriceUnitTypeEntity extends core_1
32457
33249
  }
32458
33250
  /**
32459
33251
  * Validate() method override for MJ: AI Model Price Unit Types entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
32460
- * * Name: This rule ensures that the Name field cannot be empty or contain only spaces; it must have at least one non-space character.
32461
33252
  * * DriverClass: This rule ensures that the DriverClass field cannot be empty or consist only of spaces. The value must contain at least one character when leading and trailing spaces are ignored.
33253
+ * * Name: This rule ensures that the Name field cannot be empty or contain only spaces; it must have at least one non-space character.
32462
33254
  * @public
32463
33255
  * @method
32464
33256
  * @override
32465
33257
  */
32466
33258
  Validate() {
32467
33259
  const result = super.Validate();
32468
- this.ValidateNameNotEmptyOrWhitespace(result);
32469
33260
  this.ValidateDriverClassNotEmpty(result);
33261
+ this.ValidateNameNotEmptyOrWhitespace(result);
32470
33262
  return result;
32471
33263
  }
32472
33264
  /**
32473
- * This rule ensures that the Name field cannot be empty or contain only spaces; it must have at least one non-space character.
33265
+ * This rule ensures that the DriverClass field cannot be empty or consist only of spaces. The value must contain at least one character when leading and trailing spaces are ignored.
32474
33266
  * @param result - the ValidationResult object to add any errors or warnings to
32475
33267
  * @public
32476
33268
  * @method
32477
33269
  */
32478
- ValidateNameNotEmptyOrWhitespace(result) {
32479
- if (!this.Name || this.Name.trim().length === 0) {
32480
- result.Errors.push(new core_1.ValidationErrorInfo("Name", "The Name field must not be empty or contain only spaces.", this.Name, core_1.ValidationErrorType.Failure));
33270
+ ValidateDriverClassNotEmpty(result) {
33271
+ if (this.DriverClass === null || this.DriverClass.trim().length === 0) {
33272
+ result.Errors.push(new core_1.ValidationErrorInfo("DriverClass", "DriverClass must not be empty or only spaces.", this.DriverClass, core_1.ValidationErrorType.Failure));
32481
33273
  }
32482
33274
  }
32483
33275
  /**
32484
- * This rule ensures that the DriverClass field cannot be empty or consist only of spaces. The value must contain at least one character when leading and trailing spaces are ignored.
33276
+ * This rule ensures that the Name field cannot be empty or contain only spaces; it must have at least one non-space character.
32485
33277
  * @param result - the ValidationResult object to add any errors or warnings to
32486
33278
  * @public
32487
33279
  * @method
32488
33280
  */
32489
- ValidateDriverClassNotEmpty(result) {
32490
- if (this.DriverClass === null || this.DriverClass.trim().length === 0) {
32491
- result.Errors.push(new core_1.ValidationErrorInfo("DriverClass", "DriverClass must not be empty or only spaces.", this.DriverClass, core_1.ValidationErrorType.Failure));
33281
+ ValidateNameNotEmptyOrWhitespace(result) {
33282
+ if (!this.Name || this.Name.trim().length === 0) {
33283
+ result.Errors.push(new core_1.ValidationErrorInfo("Name", "The Name field must not be empty or contain only spaces.", this.Name, core_1.ValidationErrorType.Failure));
32492
33284
  }
32493
33285
  }
32494
33286
  /**
@@ -32592,32 +33384,21 @@ let AIModelVendorEntity = class AIModelVendorEntity extends core_1.BaseEntity {
32592
33384
  }
32593
33385
  /**
32594
33386
  * Validate() method override for MJ: AI Model Vendors entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
32595
- * * Priority: This rule ensures that the Priority value cannot be negative. It must be zero or greater.
32596
33387
  * * MaxInputTokens: This rule ensures that if the MaxInputTokens field is specified, it must be zero or a positive number. It cannot be negative.
32597
33388
  * * MaxOutputTokens: This rule ensures that the maximum output tokens value must be zero or higher. If no value is provided, that's also acceptable.
33389
+ * * Priority: This rule ensures that the Priority value cannot be negative. It must be zero or greater.
32598
33390
  * @public
32599
33391
  * @method
32600
33392
  * @override
32601
33393
  */
32602
33394
  Validate() {
32603
33395
  const result = super.Validate();
32604
- this.ValidatePriorityIsNonNegative(result);
32605
33396
  this.ValidateMaxInputTokensNonNegative(result);
32606
33397
  this.ValidateMaxOutputTokensNotNegative(result);
33398
+ this.ValidatePriorityIsNonNegative(result);
32607
33399
  return result;
32608
33400
  }
32609
33401
  /**
32610
- * This rule ensures that the Priority value cannot be negative. It must be zero or greater.
32611
- * @param result - the ValidationResult object to add any errors or warnings to
32612
- * @public
32613
- * @method
32614
- */
32615
- ValidatePriorityIsNonNegative(result) {
32616
- if (this.Priority < 0) {
32617
- result.Errors.push(new core_1.ValidationErrorInfo("Priority", "Priority must be zero or greater.", this.Priority, core_1.ValidationErrorType.Failure));
32618
- }
32619
- }
32620
- /**
32621
33402
  * This rule ensures that if the MaxInputTokens field is specified, it must be zero or a positive number. It cannot be negative.
32622
33403
  * @param result - the ValidationResult object to add any errors or warnings to
32623
33404
  * @public
@@ -32640,6 +33421,17 @@ let AIModelVendorEntity = class AIModelVendorEntity extends core_1.BaseEntity {
32640
33421
  }
32641
33422
  }
32642
33423
  /**
33424
+ * This rule ensures that the Priority value cannot be negative. It must be zero or greater.
33425
+ * @param result - the ValidationResult object to add any errors or warnings to
33426
+ * @public
33427
+ * @method
33428
+ */
33429
+ ValidatePriorityIsNonNegative(result) {
33430
+ if (this.Priority < 0) {
33431
+ result.Errors.push(new core_1.ValidationErrorInfo("Priority", "Priority must be zero or greater.", this.Priority, core_1.ValidationErrorType.Failure));
33432
+ }
33433
+ }
33434
+ /**
32643
33435
  * * Field Name: ID
32644
33436
  * * Display Name: ID
32645
33437
  * * SQL Data Type: uniqueidentifier
@@ -32896,9 +33688,9 @@ let AIPromptModelEntity = class AIPromptModelEntity extends core_1.BaseEntity {
32896
33688
  }
32897
33689
  /**
32898
33690
  * Validate() method override for MJ: AI Prompt Models entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
32899
- * * Priority: This rule ensures that the Priority value must be greater than or equal to zero. Negative priorities are not allowed.
32900
33691
  * * ExecutionGroup: This rule ensures that the ExecutionGroup value must be zero or a positive number. Negative numbers are not allowed.
32901
33692
  * * ParallelCount: This rule ensures that the number of parallel tasks (ParallelCount) must be at least 1. It cannot be zero or negative.
33693
+ * * Priority: This rule ensures that the Priority value must be greater than or equal to zero. Negative priorities are not allowed.
32902
33694
  * * Table-Level: This rule ensures that if the parallelization mode is 'None' or 'StaticCount', then the parallel config parameter must be empty. If the parallelization mode is 'ConfigParam', then the parallel config parameter must be provided.
32903
33695
  * @public
32904
33696
  * @method
@@ -32906,24 +33698,13 @@ let AIPromptModelEntity = class AIPromptModelEntity extends core_1.BaseEntity {
32906
33698
  */
32907
33699
  Validate() {
32908
33700
  const result = super.Validate();
32909
- this.ValidatePriorityIsNonNegative(result);
32910
33701
  this.ValidateExecutionGroupIsNonNegative(result);
32911
33702
  this.ValidateParallelCountAtLeastOne(result);
33703
+ this.ValidatePriorityIsNonNegative(result);
32912
33704
  this.ValidateParallelConfigParamBasedOnParallelizationMode(result);
32913
33705
  return result;
32914
33706
  }
32915
33707
  /**
32916
- * This rule ensures that the Priority value must be greater than or equal to zero. Negative priorities are not allowed.
32917
- * @param result - the ValidationResult object to add any errors or warnings to
32918
- * @public
32919
- * @method
32920
- */
32921
- ValidatePriorityIsNonNegative(result) {
32922
- if (this.Priority < 0) {
32923
- result.Errors.push(new core_1.ValidationErrorInfo("Priority", "Priority must be greater than or equal to zero.", this.Priority, core_1.ValidationErrorType.Failure));
32924
- }
32925
- }
32926
- /**
32927
33708
  * This rule ensures that the ExecutionGroup value must be zero or a positive number. Negative numbers are not allowed.
32928
33709
  * @param result - the ValidationResult object to add any errors or warnings to
32929
33710
  * @public
@@ -32946,6 +33727,17 @@ let AIPromptModelEntity = class AIPromptModelEntity extends core_1.BaseEntity {
32946
33727
  }
32947
33728
  }
32948
33729
  /**
33730
+ * This rule ensures that the Priority value must be greater than or equal to zero. Negative priorities are not allowed.
33731
+ * @param result - the ValidationResult object to add any errors or warnings to
33732
+ * @public
33733
+ * @method
33734
+ */
33735
+ ValidatePriorityIsNonNegative(result) {
33736
+ if (this.Priority < 0) {
33737
+ result.Errors.push(new core_1.ValidationErrorInfo("Priority", "Priority must be greater than or equal to zero.", this.Priority, core_1.ValidationErrorType.Failure));
33738
+ }
33739
+ }
33740
+ /**
32949
33741
  * This rule ensures that if the parallelization mode is 'None' or 'StaticCount', then the parallel config parameter must be empty. If the parallelization mode is 'ConfigParam', then the parallel config parameter must be provided.
32950
33742
  * @param result - the ValidationResult object to add any errors or warnings to
32951
33743
  * @public
@@ -33210,40 +34002,40 @@ let AIPromptRunEntity = class AIPromptRunEntity extends core_1.BaseEntity {
33210
34002
  }
33211
34003
  /**
33212
34004
  * Validate() method override for MJ: AI Prompt Runs entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
33213
- * * Table-Level: This rule ensures that either both TokensPrompt and TokensCompletion are missing, or TokensUsed is missing, or, if all values are present, the value of TokensUsed equals the sum of TokensPrompt and TokensCompletion.
33214
34005
  * * Table-Level: This rule ensures that if the 'CompletedAt' field has a value, it must be on or after the 'RunAt' field. Otherwise, if 'CompletedAt' is empty, there is no restriction.
34006
+ * * Table-Level: This rule ensures that either both TokensPrompt and TokensCompletion are missing, or TokensUsed is missing, or, if all values are present, the value of TokensUsed equals the sum of TokensPrompt and TokensCompletion.
33215
34007
  * @public
33216
34008
  * @method
33217
34009
  * @override
33218
34010
  */
33219
34011
  Validate() {
33220
34012
  const result = super.Validate();
33221
- this.ValidateTokensUsedSumMatchesPromptAndCompletion(result);
33222
34013
  this.ValidateCompletedAtIsNullOrAfterRunAt(result);
34014
+ this.ValidateTokensUsedSumMatchesPromptAndCompletion(result);
33223
34015
  return result;
33224
34016
  }
33225
34017
  /**
33226
- * This rule ensures that either both TokensPrompt and TokensCompletion are missing, or TokensUsed is missing, or, if all values are present, the value of TokensUsed equals the sum of TokensPrompt and TokensCompletion.
34018
+ * This rule ensures that if the 'CompletedAt' field has a value, it must be on or after the 'RunAt' field. Otherwise, if 'CompletedAt' is empty, there is no restriction.
33227
34019
  * @param result - the ValidationResult object to add any errors or warnings to
33228
34020
  * @public
33229
34021
  * @method
33230
34022
  */
33231
- ValidateTokensUsedSumMatchesPromptAndCompletion(result) {
33232
- if (!((this.TokensPrompt === null && this.TokensCompletion === null) ||
33233
- this.TokensUsed === null ||
33234
- (this.TokensPrompt !== null && this.TokensCompletion !== null && this.TokensUsed === (this.TokensPrompt + this.TokensCompletion)))) {
33235
- result.Errors.push(new core_1.ValidationErrorInfo("TokensUsed", "TokensUsed must be equal to the sum of TokensPrompt and TokensCompletion, unless one or more of these values are NULL (except if TokensPrompt and TokensCompletion are both NULL).", this.TokensUsed, core_1.ValidationErrorType.Failure));
34023
+ ValidateCompletedAtIsNullOrAfterRunAt(result) {
34024
+ if (this.CompletedAt !== null && this.CompletedAt < this.RunAt) {
34025
+ result.Errors.push(new core_1.ValidationErrorInfo("CompletedAt", "Completed date and time, if present, must not be earlier than the run start date and time.", this.CompletedAt, core_1.ValidationErrorType.Failure));
33236
34026
  }
33237
34027
  }
33238
34028
  /**
33239
- * This rule ensures that if the 'CompletedAt' field has a value, it must be on or after the 'RunAt' field. Otherwise, if 'CompletedAt' is empty, there is no restriction.
34029
+ * This rule ensures that either both TokensPrompt and TokensCompletion are missing, or TokensUsed is missing, or, if all values are present, the value of TokensUsed equals the sum of TokensPrompt and TokensCompletion.
33240
34030
  * @param result - the ValidationResult object to add any errors or warnings to
33241
34031
  * @public
33242
34032
  * @method
33243
34033
  */
33244
- ValidateCompletedAtIsNullOrAfterRunAt(result) {
33245
- if (this.CompletedAt !== null && this.CompletedAt < this.RunAt) {
33246
- result.Errors.push(new core_1.ValidationErrorInfo("CompletedAt", "Completed date and time, if present, must not be earlier than the run start date and time.", this.CompletedAt, core_1.ValidationErrorType.Failure));
34034
+ ValidateTokensUsedSumMatchesPromptAndCompletion(result) {
34035
+ if (!((this.TokensPrompt === null && this.TokensCompletion === null) ||
34036
+ this.TokensUsed === null ||
34037
+ (this.TokensPrompt !== null && this.TokensCompletion !== null && this.TokensUsed === (this.TokensPrompt + this.TokensCompletion)))) {
34038
+ result.Errors.push(new core_1.ValidationErrorInfo("TokensUsed", "TokensUsed must be equal to the sum of TokensPrompt and TokensCompletion, unless one or more of these values are NULL (except if TokensPrompt and TokensCompletion are both NULL).", this.TokensUsed, core_1.ValidationErrorType.Failure));
33247
34039
  }
33248
34040
  }
33249
34041
  /**
@@ -33979,6 +34771,19 @@ let AIPromptRunEntity = class AIPromptRunEntity extends core_1.BaseEntity {
33979
34771
  this.Set('TotalFailoverDuration', value);
33980
34772
  }
33981
34773
  /**
34774
+ * * Field Name: RerunFromPromptRunID
34775
+ * * Display Name: Rerun From Prompt Run ID
34776
+ * * SQL Data Type: uniqueidentifier
34777
+ * * Related Entity/Foreign Key: MJ: AI Prompt Runs (vwAIPromptRuns.ID)
34778
+ * * Description: If this run was initiated as a re-run of another prompt run, this field links back to the original run ID
34779
+ */
34780
+ get RerunFromPromptRunID() {
34781
+ return this.Get('RerunFromPromptRunID');
34782
+ }
34783
+ set RerunFromPromptRunID(value) {
34784
+ this.Set('RerunFromPromptRunID', value);
34785
+ }
34786
+ /**
33982
34787
  * * Field Name: Prompt
33983
34788
  * * Display Name: Prompt
33984
34789
  * * SQL Data Type: nvarchar(255)
@@ -40280,41 +41085,41 @@ let SchemaInfoEntity = class SchemaInfoEntity extends core_1.BaseEntity {
40280
41085
  }
40281
41086
  /**
40282
41087
  * Validate() method override for Schema Info entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
40283
- * * Table-Level: This rule ensures that both the minimum and maximum entity IDs must be greater than zero.
40284
41088
  * * Table-Level: This rule ensures that the maximum entity ID must be greater than the minimum entity ID, which helps to maintain valid and logical ranges for entity IDs.
41089
+ * * Table-Level: This rule ensures that both the minimum and maximum entity IDs must be greater than zero.
40285
41090
  * @public
40286
41091
  * @method
40287
41092
  * @override
40288
41093
  */
40289
41094
  Validate() {
40290
41095
  const result = super.Validate();
40291
- this.ValidateEntityIDMinAndEntityIDMaxGreaterThanZero(result);
40292
41096
  this.ValidateEntityIDMaxGreaterThanEntityIDMin(result);
41097
+ this.ValidateEntityIDMinAndEntityIDMaxGreaterThanZero(result);
40293
41098
  return result;
40294
41099
  }
40295
41100
  /**
40296
- * This rule ensures that both the minimum and maximum entity IDs must be greater than zero.
41101
+ * This rule ensures that the maximum entity ID must be greater than the minimum entity ID, which helps to maintain valid and logical ranges for entity IDs.
40297
41102
  * @param result - the ValidationResult object to add any errors or warnings to
40298
41103
  * @public
40299
41104
  * @method
40300
41105
  */
40301
- ValidateEntityIDMinAndEntityIDMaxGreaterThanZero(result) {
40302
- if (this.EntityIDMin <= 0) {
40303
- result.Errors.push(new core_1.ValidationErrorInfo("EntityIDMin", "The minimum entity ID must be greater than zero.", this.EntityIDMin, core_1.ValidationErrorType.Failure));
40304
- }
40305
- if (this.EntityIDMax <= 0) {
40306
- result.Errors.push(new core_1.ValidationErrorInfo("EntityIDMax", "The maximum entity ID must be greater than zero.", this.EntityIDMax, core_1.ValidationErrorType.Failure));
41106
+ ValidateEntityIDMaxGreaterThanEntityIDMin(result) {
41107
+ if (this.EntityIDMax <= this.EntityIDMin) {
41108
+ result.Errors.push(new core_1.ValidationErrorInfo("EntityIDMax", "The maximum entity ID must be greater than the minimum entity ID.", this.EntityIDMax, core_1.ValidationErrorType.Failure));
40307
41109
  }
40308
41110
  }
40309
41111
  /**
40310
- * This rule ensures that the maximum entity ID must be greater than the minimum entity ID, which helps to maintain valid and logical ranges for entity IDs.
41112
+ * This rule ensures that both the minimum and maximum entity IDs must be greater than zero.
40311
41113
  * @param result - the ValidationResult object to add any errors or warnings to
40312
41114
  * @public
40313
41115
  * @method
40314
41116
  */
40315
- ValidateEntityIDMaxGreaterThanEntityIDMin(result) {
40316
- if (this.EntityIDMax <= this.EntityIDMin) {
40317
- result.Errors.push(new core_1.ValidationErrorInfo("EntityIDMax", "The maximum entity ID must be greater than the minimum entity ID.", this.EntityIDMax, core_1.ValidationErrorType.Failure));
41117
+ ValidateEntityIDMinAndEntityIDMaxGreaterThanZero(result) {
41118
+ if (this.EntityIDMin <= 0) {
41119
+ result.Errors.push(new core_1.ValidationErrorInfo("EntityIDMin", "The minimum entity ID must be greater than zero.", this.EntityIDMin, core_1.ValidationErrorType.Failure));
41120
+ }
41121
+ if (this.EntityIDMax <= 0) {
41122
+ result.Errors.push(new core_1.ValidationErrorInfo("EntityIDMax", "The maximum entity ID must be greater than zero.", this.EntityIDMax, core_1.ValidationErrorType.Failure));
40318
41123
  }
40319
41124
  }
40320
41125
  /**