@memberjunction/core-entities 2.117.0 → 2.118.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,13 +8,14 @@ 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.EnvironmentSchema = exports.DashboardUserStateSchema = exports.DashboardUserPreferenceSchema = exports.ConversationDetailRatingSchema = exports.ConversationDetailArtifactSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = exports.ConversationArtifactPermissionSchema = exports.ComponentSchema = exports.ComponentRegistrySchema = exports.ComponentLibraryLinkSchema = exports.ComponentLibrarySchema = exports.ComponentDependencySchema = exports.CollectionSchema = exports.CollectionPermissionSchema = exports.CollectionArtifactSchema = exports.ArtifactSchema = exports.ArtifactVersionSchema = exports.ArtifactVersionAttributeSchema = exports.ArtifactUseSchema = exports.ArtifactTypeSchema = exports.ArtifactPermissionSchema = exports.AIVendorSchema = exports.AIVendorTypeSchema = exports.AIVendorTypeDefinitionSchema = exports.AIPromptRunSchema = exports.AIPromptModelSchema = exports.AIModelVendorSchema = exports.AIModelPriceUnitTypeSchema = exports.AIModelPriceTypeSchema = exports.AIModelCostSchema = exports.AIConfigurationSchema = exports.AIConfigurationParamSchema = exports.AIAgentTypeSchema = exports.AIAgentStepSchema = exports.AIAgentStepPathSchema = exports.AIAgentRunSchema = exports.AIAgentRunStepSchema = exports.AIAgentRelationshipSchema = exports.AIAgentPromptSchema = exports.AIAgentPermissionSchema = exports.AIAgentExampleSchema = exports.AIAgentDataSourceSchema = exports.AIAgentArtifactTypeSchema = exports.AccessControlRuleSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
12
- exports.TemplateSchema = exports.TemplateParamSchema = exports.TemplateContentSchema = exports.TemplateContentTypeSchema = exports.TemplateCategorySchema = exports.TagSchema = exports.TaggedItemSchema = exports.SkillSchema = exports.SchemaInfoSchema = exports.ScheduledActionSchema = exports.ScheduledActionParamSchema = exports.RowLevelSecurityFilterSchema = exports.RoleSchema = exports.ResourceTypeSchema = exports.ResourcePermissionSchema = exports.ResourceLinkSchema = exports.ReportSchema = exports.ReportSnapshotSchema = exports.ReportCategorySchema = exports.RecordMergeLogSchema = exports.RecordMergeDeletionLogSchema = exports.RecordChangeSchema = exports.RecordChangeReplayRunSchema = exports.RecommendationSchema = exports.RecommendationRunSchema = exports.RecommendationProviderSchema = exports.RecommendationItemSchema = exports.QueueSchema = exports.QueueTypeSchema = exports.QueueTaskSchema = exports.QueryPermissionSchema = exports.QueryFieldSchema = exports.QueryEntitySchema = exports.QueryCategorySchema = exports.QuerySchema = exports.OutputTriggerTypeSchema = exports.OutputFormatTypeSchema = exports.OutputDeliveryTypeSchema = exports.TaskSchema = exports.TaskTypeSchema = exports.TaskDependencySchema = exports.ScheduledJobSchema = exports.ScheduledJobTypeSchema = exports.ScheduledJobRunSchema = exports.ReportVersionSchema = exports.ReportUserStateSchema = exports.RecordLinkSchema = exports.QueryParameterSchema = exports.PublicLinkSchema = exports.ProjectSchema = void 0;
13
- exports.AuthorizationRoleEntity = exports.AuditLogEntity = exports.AuditLogTypeEntity = exports.ApplicationEntity = exports.ApplicationSettingEntity = exports.ApplicationEntityEntity = exports.AIResultCacheEntity = exports.AIPromptEntity = exports.AIPromptTypeEntity = exports.AIPromptCategoryEntity = exports.AIModelEntity = exports.AIModelTypeEntity = exports.AIModelActionEntity = exports.AIAgentEntity = exports.AIAgentRequestEntity = exports.AIAgentNoteEntity = exports.AIAgentNoteTypeEntity = exports.AIAgentModelEntity = exports.AIAgentLearningCycleEntity = exports.AIAgentActionEntity = exports.AIActionEntity = exports.ActionEntity = exports.ActionResultCodeEntity = exports.ActionParamEntity = exports.ActionLibraryEntity = exports.ActionFilterEntity = exports.ActionExecutionLogEntity = exports.ActionContextEntity = exports.ActionContextTypeEntity = exports.ActionCategoryEntity = exports.ActionAuthorizationEntity = exports.WorkspaceSchema = exports.WorkspaceItemSchema = exports.WorkflowSchema = exports.WorkflowRunSchema = exports.WorkflowEngineSchema = exports.VersionInstallationSchema = exports.VectorIndexSchema = exports.VectorDatabaseSchema = exports.UserSchema = exports.UserViewSchema = exports.UserViewRunSchema = exports.UserViewRunDetailSchema = exports.UserViewCategorySchema = exports.UserRoleSchema = exports.UserRecordLogSchema = exports.UserNotificationSchema = exports.UserFavoriteSchema = exports.UserApplicationSchema = exports.UserApplicationEntitySchema = void 0;
14
- exports.EntityDocumentTypeEntity = exports.EntityDocumentSettingEntity = exports.EntityDocumentRunEntity = exports.EntityCommunicationMessageTypeEntity = exports.EntityCommunicationFieldEntity = exports.EntityAIActionEntity = exports.EntityActionEntity = exports.EntityActionParamEntity = exports.EntityActionInvocationEntity = exports.EntityActionInvocationTypeEntity = exports.EntityActionFilterEntity = exports.EntityEntity = exports.EmployeeEntity = exports.EmployeeSkillEntity = exports.EmployeeRoleEntity = exports.EmployeeCompanyIntegrationEntity = exports.DuplicateRunEntity = exports.DuplicateRunDetailEntity = exports.DuplicateRunDetailMatchEntity = exports.DatasetEntity = exports.DatasetItemEntity = exports.DataContextEntity = exports.DataContextItemEntity = exports.DashboardEntity = exports.DashboardCategoryEntity = exports.ConversationEntity = exports.ConversationDetailEntity = exports.ContentTypeEntity = exports.ContentTypeAttributeEntity = exports.ContentSourceEntity = exports.ContentSourceTypeEntity = exports.ContentSourceTypeParamEntity = exports.ContentSourceParamEntity = exports.ContentProcessRunEntity = exports.ContentItemEntity = exports.ContentItemTagEntity = exports.ContentItemAttributeEntity = exports.ContentFileTypeEntity = exports.CompanyIntegrationEntity = exports.CompanyIntegrationRunEntity = exports.CompanyIntegrationRunDetailEntity = exports.CompanyIntegrationRunAPILogEntity = exports.CompanyIntegrationRecordMapEntity = exports.CompanyEntity = exports.CommunicationRunEntity = exports.CommunicationProviderEntity = exports.CommunicationProviderMessageTypeEntity = exports.CommunicationLogEntity = exports.CommunicationBaseMessageTypeEntity = exports.AuthorizationEntity = void 0;
15
- exports.ArtifactVersionAttributeEntity = exports.ArtifactUseEntity = exports.ArtifactTypeEntity = exports.ArtifactPermissionEntity = exports.AIVendorEntity = exports.AIVendorTypeEntity = exports.AIVendorTypeDefinitionEntity = exports.AIPromptRunEntity = exports.AIPromptModelEntity = exports.AIModelVendorEntity = exports.AIModelPriceUnitTypeEntity = exports.AIModelPriceTypeEntity = exports.AIModelCostEntity = exports.AIConfigurationEntity = exports.AIConfigurationParamEntity = exports.AIAgentTypeEntity = exports.AIAgentStepEntity = exports.AIAgentStepPathEntity = exports.AIAgentRunEntity = exports.AIAgentRunStepEntity = exports.AIAgentRelationshipEntity = exports.AIAgentPromptEntity = exports.AIAgentPermissionEntity = exports.AIAgentExampleEntity = exports.AIAgentDataSourceEntity = exports.AIAgentArtifactTypeEntity = exports.AccessControlRuleEntity = exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.GeneratedCodeEntity = exports.GeneratedCodeCategoryEntity = exports.FileEntity = exports.FileStorageProviderEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = exports.ExplorerNavigationItemEntity = exports.ErrorLogEntity = exports.EntitySettingEntity = exports.EntityRelationshipEntity = exports.EntityRelationshipDisplayComponentEntity = exports.EntityRecordDocumentEntity = exports.EntityPermissionEntity = exports.EntityFieldEntity = exports.EntityFieldValueEntity = exports.EntityDocumentEntity = void 0;
16
- exports.ReportCategoryEntity = exports.RecordMergeLogEntity = exports.RecordMergeDeletionLogEntity = exports.RecordChangeEntity = exports.RecordChangeReplayRunEntity = exports.RecommendationEntity = exports.RecommendationRunEntity = exports.RecommendationProviderEntity = exports.RecommendationItemEntity = exports.QueueEntity = exports.QueueTypeEntity = exports.QueueTaskEntity = exports.QueryPermissionEntity = exports.QueryFieldEntity = exports.QueryEntityEntity = exports.QueryCategoryEntity = exports.QueryEntity = exports.OutputTriggerTypeEntity = exports.OutputFormatTypeEntity = exports.OutputDeliveryTypeEntity = exports.TaskEntity = exports.TaskTypeEntity = exports.TaskDependencyEntity = exports.ScheduledJobEntity = exports.ScheduledJobTypeEntity = exports.ScheduledJobRunEntity = exports.ReportVersionEntity = exports.ReportUserStateEntity = exports.RecordLinkEntity = exports.QueryParameterEntity = exports.PublicLinkEntity = exports.ProjectEntity = exports.EnvironmentEntity = exports.DashboardUserStateEntity = exports.DashboardUserPreferenceEntity = exports.ConversationDetailRatingEntity = exports.ConversationDetailArtifactEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = exports.ConversationArtifactPermissionEntity = exports.ComponentEntity = exports.ComponentRegistryEntity = exports.ComponentLibraryLinkEntity = exports.ComponentLibraryEntity = exports.ComponentDependencyEntity = exports.CollectionEntity = exports.CollectionPermissionEntity = exports.CollectionArtifactEntity = exports.ArtifactEntity = exports.ArtifactVersionEntity = void 0;
17
- exports.WorkspaceEntity = exports.WorkspaceItemEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.WorkflowEngineEntity = exports.VersionInstallationEntity = exports.VectorIndexEntity = exports.VectorDatabaseEntity = exports.UserEntity = exports.UserViewEntity = exports.UserViewRunEntity = exports.UserViewRunDetailEntity = exports.UserViewCategoryEntity = exports.UserRoleEntity = exports.UserRecordLogEntity = exports.UserNotificationEntity = exports.UserFavoriteEntity = exports.UserApplicationEntity = exports.UserApplicationEntityEntity = exports.TemplateEntity = exports.TemplateParamEntity = exports.TemplateContentEntity = exports.TemplateContentTypeEntity = exports.TemplateCategoryEntity = exports.TagEntity = exports.TaggedItemEntity = exports.SkillEntity = exports.SchemaInfoEntity = exports.ScheduledActionEntity = exports.ScheduledActionParamEntity = exports.RowLevelSecurityFilterEntity = exports.RoleEntity = exports.ResourceTypeEntity = exports.ResourcePermissionEntity = exports.ResourceLinkEntity = exports.ReportEntity = exports.ReportSnapshotEntity = void 0;
11
+ exports.DashboardUserStateSchema = exports.DashboardUserPreferenceSchema = exports.ConversationDetailRatingSchema = exports.ConversationDetailArtifactSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = exports.ConversationArtifactPermissionSchema = exports.ComponentSchema = exports.ComponentRegistrySchema = exports.ComponentLibraryLinkSchema = exports.ComponentLibrarySchema = exports.ComponentDependencySchema = exports.CollectionSchema = exports.CollectionPermissionSchema = exports.CollectionArtifactSchema = exports.ArtifactSchema = exports.ArtifactVersionSchema = exports.ArtifactVersionAttributeSchema = exports.ArtifactUseSchema = exports.ArtifactTypeSchema = exports.ArtifactPermissionSchema = exports.AIVendorSchema = exports.AIVendorTypeSchema = exports.AIVendorTypeDefinitionSchema = exports.AIPromptRunSchema = exports.AIPromptModelSchema = exports.AIModelVendorSchema = exports.AIModelPriceUnitTypeSchema = exports.AIModelPriceTypeSchema = exports.AIModelCostSchema = exports.AIConfigurationSchema = exports.AIConfigurationParamSchema = exports.AIAgentTypeSchema = exports.AIAgentStepSchema = exports.AIAgentStepPathSchema = exports.AIAgentRunSchema = exports.AIAgentRunStepSchema = exports.AIAgentRelationshipSchema = exports.AIAgentPromptSchema = exports.AIAgentPermissionSchema = exports.AIAgentExampleSchema = exports.AIAgentDataSourceSchema = exports.AIAgentConfigurationSchema = exports.AIAgentArtifactTypeSchema = exports.AccessControlRuleSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
12
+ exports.ScheduledActionSchema = exports.ScheduledActionParamSchema = exports.RowLevelSecurityFilterSchema = exports.RoleSchema = exports.ResourceTypeSchema = exports.ResourcePermissionSchema = exports.ResourceLinkSchema = exports.ReportSchema = exports.ReportSnapshotSchema = exports.ReportCategorySchema = exports.RecordMergeLogSchema = exports.RecordMergeDeletionLogSchema = exports.RecordChangeSchema = exports.RecordChangeReplayRunSchema = exports.RecommendationSchema = exports.RecommendationRunSchema = exports.RecommendationProviderSchema = exports.RecommendationItemSchema = exports.QueueSchema = exports.QueueTypeSchema = exports.QueueTaskSchema = exports.QueryPermissionSchema = exports.QueryFieldSchema = exports.QueryEntitySchema = exports.QueryCategorySchema = exports.QuerySchema = exports.OutputTriggerTypeSchema = exports.OutputFormatTypeSchema = exports.OutputDeliveryTypeSchema = exports.TestSchema = exports.TestTypeSchema = exports.TestSuiteSchema = exports.TestSuiteTestSchema = exports.TestSuiteRunSchema = exports.TestRunSchema = exports.TestRunFeedbackSchema = exports.TestRubricSchema = exports.TaskSchema = exports.TaskTypeSchema = exports.TaskDependencySchema = exports.ScheduledJobSchema = exports.ScheduledJobTypeSchema = exports.ScheduledJobRunSchema = exports.ReportVersionSchema = exports.ReportUserStateSchema = exports.RecordLinkSchema = exports.QueryParameterSchema = exports.PublicLinkSchema = exports.ProjectSchema = exports.EnvironmentSchema = void 0;
13
+ exports.AIPromptCategoryEntity = exports.AIModelEntity = exports.AIModelTypeEntity = exports.AIModelActionEntity = exports.AIAgentEntity = exports.AIAgentRequestEntity = exports.AIAgentNoteEntity = exports.AIAgentNoteTypeEntity = exports.AIAgentModelEntity = exports.AIAgentLearningCycleEntity = exports.AIAgentActionEntity = exports.AIActionEntity = exports.ActionEntity = exports.ActionResultCodeEntity = exports.ActionParamEntity = exports.ActionLibraryEntity = exports.ActionFilterEntity = exports.ActionExecutionLogEntity = exports.ActionContextEntity = exports.ActionContextTypeEntity = exports.ActionCategoryEntity = exports.ActionAuthorizationEntity = exports.WorkspaceSchema = exports.WorkspaceItemSchema = exports.WorkflowSchema = exports.WorkflowRunSchema = exports.WorkflowEngineSchema = exports.VersionInstallationSchema = exports.VectorIndexSchema = exports.VectorDatabaseSchema = exports.UserSchema = exports.UserViewSchema = exports.UserViewRunSchema = exports.UserViewRunDetailSchema = exports.UserViewCategorySchema = exports.UserRoleSchema = exports.UserRecordLogSchema = exports.UserNotificationSchema = exports.UserFavoriteSchema = exports.UserApplicationSchema = exports.UserApplicationEntitySchema = exports.TemplateSchema = exports.TemplateParamSchema = exports.TemplateContentSchema = exports.TemplateContentTypeSchema = exports.TemplateCategorySchema = exports.TagSchema = exports.TaggedItemSchema = exports.SkillSchema = exports.SchemaInfoSchema = void 0;
14
+ exports.EntityActionInvocationTypeEntity = exports.EntityActionFilterEntity = exports.EntityEntity = exports.EmployeeEntity = exports.EmployeeSkillEntity = exports.EmployeeRoleEntity = exports.EmployeeCompanyIntegrationEntity = exports.DuplicateRunEntity = exports.DuplicateRunDetailEntity = exports.DuplicateRunDetailMatchEntity = exports.DatasetEntity = exports.DatasetItemEntity = exports.DataContextEntity = exports.DataContextItemEntity = exports.DashboardEntity = exports.DashboardCategoryEntity = exports.ConversationEntity = exports.ConversationDetailEntity = exports.ContentTypeEntity = exports.ContentTypeAttributeEntity = exports.ContentSourceEntity = exports.ContentSourceTypeEntity = exports.ContentSourceTypeParamEntity = exports.ContentSourceParamEntity = exports.ContentProcessRunEntity = exports.ContentItemEntity = exports.ContentItemTagEntity = exports.ContentItemAttributeEntity = exports.ContentFileTypeEntity = exports.CompanyIntegrationEntity = exports.CompanyIntegrationRunEntity = exports.CompanyIntegrationRunDetailEntity = exports.CompanyIntegrationRunAPILogEntity = exports.CompanyIntegrationRecordMapEntity = exports.CompanyEntity = exports.CommunicationRunEntity = exports.CommunicationProviderEntity = exports.CommunicationProviderMessageTypeEntity = exports.CommunicationLogEntity = exports.CommunicationBaseMessageTypeEntity = exports.AuthorizationEntity = exports.AuthorizationRoleEntity = exports.AuditLogEntity = exports.AuditLogTypeEntity = exports.ApplicationEntity = exports.ApplicationSettingEntity = exports.ApplicationEntityEntity = exports.AIResultCacheEntity = exports.AIPromptEntity = exports.AIPromptTypeEntity = void 0;
15
+ exports.AIModelPriceUnitTypeEntity = exports.AIModelPriceTypeEntity = exports.AIModelCostEntity = exports.AIConfigurationEntity = exports.AIConfigurationParamEntity = exports.AIAgentTypeEntity = exports.AIAgentStepEntity = exports.AIAgentStepPathEntity = exports.AIAgentRunEntity = exports.AIAgentRunStepEntity = exports.AIAgentRelationshipEntity = exports.AIAgentPromptEntity = exports.AIAgentPermissionEntity = exports.AIAgentExampleEntity = exports.AIAgentDataSourceEntity = exports.AIAgentConfigurationEntity = exports.AIAgentArtifactTypeEntity = exports.AccessControlRuleEntity = exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.GeneratedCodeEntity = exports.GeneratedCodeCategoryEntity = exports.FileEntity = exports.FileStorageProviderEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = exports.ExplorerNavigationItemEntity = exports.ErrorLogEntity = exports.EntitySettingEntity = exports.EntityRelationshipEntity = exports.EntityRelationshipDisplayComponentEntity = exports.EntityRecordDocumentEntity = exports.EntityPermissionEntity = exports.EntityFieldEntity = exports.EntityFieldValueEntity = exports.EntityDocumentEntity = exports.EntityDocumentTypeEntity = exports.EntityDocumentSettingEntity = exports.EntityDocumentRunEntity = exports.EntityCommunicationMessageTypeEntity = exports.EntityCommunicationFieldEntity = exports.EntityAIActionEntity = exports.EntityActionEntity = exports.EntityActionParamEntity = exports.EntityActionInvocationEntity = void 0;
16
+ exports.OutputFormatTypeEntity = exports.OutputDeliveryTypeEntity = exports.TestEntity = exports.TestTypeEntity = exports.TestSuiteEntity = exports.TestSuiteTestEntity = exports.TestSuiteRunEntity = exports.TestRunEntity = exports.TestRunFeedbackEntity = exports.TestRubricEntity = exports.TaskEntity = exports.TaskTypeEntity = exports.TaskDependencyEntity = exports.ScheduledJobEntity = exports.ScheduledJobTypeEntity = exports.ScheduledJobRunEntity = exports.ReportVersionEntity = exports.ReportUserStateEntity = exports.RecordLinkEntity = exports.QueryParameterEntity = exports.PublicLinkEntity = exports.ProjectEntity = exports.EnvironmentEntity = exports.DashboardUserStateEntity = exports.DashboardUserPreferenceEntity = exports.ConversationDetailRatingEntity = exports.ConversationDetailArtifactEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = exports.ConversationArtifactPermissionEntity = exports.ComponentEntity = exports.ComponentRegistryEntity = exports.ComponentLibraryLinkEntity = exports.ComponentLibraryEntity = exports.ComponentDependencyEntity = exports.CollectionEntity = exports.CollectionPermissionEntity = exports.CollectionArtifactEntity = exports.ArtifactEntity = exports.ArtifactVersionEntity = exports.ArtifactVersionAttributeEntity = exports.ArtifactUseEntity = exports.ArtifactTypeEntity = exports.ArtifactPermissionEntity = exports.AIVendorEntity = exports.AIVendorTypeEntity = exports.AIVendorTypeDefinitionEntity = exports.AIPromptRunEntity = exports.AIPromptModelEntity = exports.AIModelVendorEntity = void 0;
17
+ exports.VersionInstallationEntity = exports.VectorIndexEntity = exports.VectorDatabaseEntity = exports.UserEntity = exports.UserViewEntity = exports.UserViewRunEntity = exports.UserViewRunDetailEntity = exports.UserViewCategoryEntity = exports.UserRoleEntity = exports.UserRecordLogEntity = exports.UserNotificationEntity = exports.UserFavoriteEntity = exports.UserApplicationEntity = exports.UserApplicationEntityEntity = exports.TemplateEntity = exports.TemplateParamEntity = exports.TemplateContentEntity = exports.TemplateContentTypeEntity = exports.TemplateCategoryEntity = exports.TagEntity = exports.TaggedItemEntity = exports.SkillEntity = exports.SchemaInfoEntity = exports.ScheduledActionEntity = exports.ScheduledActionParamEntity = exports.RowLevelSecurityFilterEntity = 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 = void 0;
18
+ exports.WorkspaceEntity = exports.WorkspaceItemEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.WorkflowEngineEntity = void 0;
18
19
  const core_1 = require("@memberjunction/core");
19
20
  const global_1 = require("@memberjunction/global");
20
21
  const zod_1 = require("zod");
@@ -3980,7 +3981,28 @@ exports.ConversationDetailSchema = zod_1.z.object({
3980
3981
  * * Field Name: SuggestedResponses
3981
3982
  * * Display Name: Suggested Responses
3982
3983
  * * SQL Data Type: nvarchar(MAX)
3983
- * * Description: JSON array of suggested responses that can be displayed to the user for quick replies. Each response object contains: text (display text), allowInput (boolean), iconClass (optional Font Awesome class), and data (optional payload).`),
3984
+ * * Description: DEPRECATED: Use ResponseForm, ActionableCommands, and AutomaticCommands instead. Legacy field for simple text-based suggested responses. Replaced in v2.118 by more powerful structured forms and commands system. Retained for historical data only.`),
3985
+ TestRunID: zod_1.z.string().nullable().describe(`
3986
+ * * Field Name: TestRunID
3987
+ * * Display Name: Test Run ID
3988
+ * * SQL Data Type: uniqueidentifier
3989
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
3990
+ * * Description: Optional Foreign Key - Links this conversation detail to a test run if this message was part of a test conversation. Allows filtering and analyzing test-specific conversation turns.`),
3991
+ ResponseForm: zod_1.z.string().nullable().describe(`
3992
+ * * Field Name: ResponseForm
3993
+ * * Display Name: Response Form
3994
+ * * SQL Data Type: nvarchar(MAX)
3995
+ * * Description: JSON object containing agent response form definition with questions and validation rules. Supports 8 question types: text, textarea, email, number, currency, date, datetime, choices (buttongroup/radio/dropdown/checkbox). Used for collecting structured user input with proper validation.`),
3996
+ ActionableCommands: zod_1.z.string().nullable().describe(`
3997
+ * * Field Name: ActionableCommands
3998
+ * * Display Name: Actionable Commands
3999
+ * * SQL Data Type: nvarchar(MAX)
4000
+ * * Description: JSON array of actionable commands that user can trigger (shown as clickable buttons/links). Supports open:resource (navigate to records/dashboards/reports/forms) and open:url (external links). Typically used after completing work to provide easy navigation to created/modified resources.`),
4001
+ AutomaticCommands: zod_1.z.string().nullable().describe(`
4002
+ * * Field Name: AutomaticCommands
4003
+ * * Display Name: Automatic Commands
4004
+ * * SQL Data Type: nvarchar(MAX)
4005
+ * * Description: JSON array of automatic commands that execute immediately when received (no user interaction). Supports refresh:data (refresh entity data or caches) and notification (show toast messages). Used for keeping UI in sync after agent makes changes and providing user feedback.`),
3984
4006
  Conversation: zod_1.z.string().nullable().describe(`
3985
4007
  * * Field Name: Conversation
3986
4008
  * * Display Name: Conversation
@@ -3993,6 +4015,14 @@ exports.ConversationDetailSchema = zod_1.z.object({
3993
4015
  * * Field Name: Artifact
3994
4016
  * * Display Name: Artifact
3995
4017
  * * SQL Data Type: nvarchar(255)`),
4018
+ ArtifactVersion: zod_1.z.string().nullable().describe(`
4019
+ * * Field Name: ArtifactVersion
4020
+ * * Display Name: Artifact Version
4021
+ * * SQL Data Type: nvarchar(255)`),
4022
+ Parent: zod_1.z.string().nullable().describe(`
4023
+ * * Field Name: Parent
4024
+ * * Display Name: Parent
4025
+ * * SQL Data Type: nvarchar(MAX)`),
3996
4026
  Agent: zod_1.z.string().nullable().describe(`
3997
4027
  * * Field Name: Agent
3998
4028
  * * Display Name: Agent
@@ -4093,6 +4123,12 @@ exports.ConversationSchema = zod_1.z.object({
4093
4123
  * * SQL Data Type: bit
4094
4124
  * * Default Value: 0
4095
4125
  * * Description: Indicates if this conversation is pinned to the top of lists`),
4126
+ TestRunID: zod_1.z.string().nullable().describe(`
4127
+ * * Field Name: TestRunID
4128
+ * * Display Name: Test Run ID
4129
+ * * SQL Data Type: uniqueidentifier
4130
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
4131
+ * * Description: Optional Foreign Key - Links this conversation to a test run if this conversation was generated as part of a test. Enables tracking test conversations separately from production conversations.`),
4096
4132
  User: zod_1.z.string().describe(`
4097
4133
  * * Field Name: User
4098
4134
  * * Display Name: User
@@ -7773,6 +7809,85 @@ exports.AIAgentArtifactTypeSchema = zod_1.z.object({
7773
7809
  * * Display Name: Artifact Type
7774
7810
  * * SQL Data Type: nvarchar(100)`),
7775
7811
  });
7812
+ /**
7813
+ * zod schema definition for the entity MJ: AI Agent Configurations
7814
+ */
7815
+ exports.AIAgentConfigurationSchema = zod_1.z.object({
7816
+ ID: zod_1.z.string().describe(`
7817
+ * * Field Name: ID
7818
+ * * Display Name: ID
7819
+ * * SQL Data Type: uniqueidentifier
7820
+ * * Default Value: newsequentialid()
7821
+ * * Description: Primary Key - Unique identifier for the agent configuration preset`),
7822
+ AgentID: zod_1.z.string().describe(`
7823
+ * * Field Name: AgentID
7824
+ * * Display Name: Agent ID
7825
+ * * SQL Data Type: uniqueidentifier
7826
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
7827
+ * * Description: Foreign Key - The agent this configuration preset belongs to`),
7828
+ Name: zod_1.z.string().describe(`
7829
+ * * Field Name: Name
7830
+ * * Display Name: Name
7831
+ * * SQL Data Type: nvarchar(100)
7832
+ * * Description: Code-friendly name for the preset (e.g., HighPower, Fast, Balanced). Used in API calls and metadata references.`),
7833
+ DisplayName: zod_1.z.string().describe(`
7834
+ * * Field Name: DisplayName
7835
+ * * Display Name: Display Name
7836
+ * * SQL Data Type: nvarchar(200)
7837
+ * * Description: User-friendly display name shown in UI (e.g., "High Quality", "Quick Draft", "Maximum Detail")`),
7838
+ Description: zod_1.z.string().nullable().describe(`
7839
+ * * Field Name: Description
7840
+ * * Display Name: Description
7841
+ * * SQL Data Type: nvarchar(MAX)
7842
+ * * Description: Description shown to users explaining what this configuration does (e.g., "Uses Claude Opus for highest quality results")`),
7843
+ AIConfigurationID: zod_1.z.string().nullable().describe(`
7844
+ * * Field Name: AIConfigurationID
7845
+ * * Display Name: AI Configuration ID
7846
+ * * SQL Data Type: uniqueidentifier
7847
+ * * Related Entity/Foreign Key: MJ: AI Configurations (vwAIConfigurations.ID)
7848
+ * * Description: Foreign Key - Optional AI Configuration to use for this preset. If NULL, uses default configuration (prompts with ConfigurationID IS NULL)`),
7849
+ IsDefault: zod_1.z.boolean().describe(`
7850
+ * * Field Name: IsDefault
7851
+ * * Display Name: Is Default
7852
+ * * SQL Data Type: bit
7853
+ * * Default Value: 0
7854
+ * * Description: Whether this is the default preset for the agent. Should have exactly one default per agent.`),
7855
+ Priority: zod_1.z.number().describe(`
7856
+ * * Field Name: Priority
7857
+ * * Display Name: Priority
7858
+ * * SQL Data Type: int
7859
+ * * Default Value: 100
7860
+ * * Description: Display order for UI. Lower numbers appear first. Typical values: 100 (Default), 200 (Fast), 300 (Balanced), 400 (High Quality)`),
7861
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Pending'), zod_1.z.literal('Revoked')]).describe(`
7862
+ * * Field Name: Status
7863
+ * * Display Name: Status
7864
+ * * SQL Data Type: nvarchar(20)
7865
+ * * Default Value: Active
7866
+ * * Value List Type: List
7867
+ * * Possible Values
7868
+ * * Active
7869
+ * * Pending
7870
+ * * Revoked
7871
+ * * Description: Status of the preset: Pending (being configured), Active (available for use), Revoked (no longer available)`),
7872
+ __mj_CreatedAt: zod_1.z.date().describe(`
7873
+ * * Field Name: __mj_CreatedAt
7874
+ * * Display Name: Created At
7875
+ * * SQL Data Type: datetimeoffset
7876
+ * * Default Value: getutcdate()`),
7877
+ __mj_UpdatedAt: zod_1.z.date().describe(`
7878
+ * * Field Name: __mj_UpdatedAt
7879
+ * * Display Name: Updated At
7880
+ * * SQL Data Type: datetimeoffset
7881
+ * * Default Value: getutcdate()`),
7882
+ Agent: zod_1.z.string().nullable().describe(`
7883
+ * * Field Name: Agent
7884
+ * * Display Name: Agent
7885
+ * * SQL Data Type: nvarchar(255)`),
7886
+ AIConfiguration: zod_1.z.string().nullable().describe(`
7887
+ * * Field Name: AIConfiguration
7888
+ * * Display Name: AI Configuration
7889
+ * * SQL Data Type: nvarchar(100)`),
7890
+ });
7776
7891
  /**
7777
7892
  * zod schema definition for the entity MJ: AI Agent Data Sources
7778
7893
  */
@@ -8708,10 +8823,20 @@ each time the agent processes a prompt step.`),
8708
8823
  * * SQL Data Type: uniqueidentifier
8709
8824
  * * Related Entity/Foreign Key: MJ: Scheduled Job Runs (vwScheduledJobRuns.ID)
8710
8825
  * * Description: Links to the scheduled job run that triggered this agent execution. NULL for manually-triggered agent runs. Enables tracking which scheduled jobs spawned which agent executions.`),
8826
+ TestRunID: zod_1.z.string().nullable().describe(`
8827
+ * * Field Name: TestRunID
8828
+ * * Display Name: Test Run ID
8829
+ * * SQL Data Type: uniqueidentifier
8830
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
8831
+ * * Description: Optional Foreign Key - Links this agent run to a test run if this execution was part of a test. Allows navigation from agent execution to test context.`),
8711
8832
  Agent: zod_1.z.string().nullable().describe(`
8712
8833
  * * Field Name: Agent
8713
8834
  * * Display Name: Agent
8714
8835
  * * SQL Data Type: nvarchar(255)`),
8836
+ ParentRun: zod_1.z.string().nullable().describe(`
8837
+ * * Field Name: ParentRun
8838
+ * * Display Name: Parent Run
8839
+ * * SQL Data Type: nvarchar(255)`),
8715
8840
  Conversation: zod_1.z.string().nullable().describe(`
8716
8841
  * * Field Name: Conversation
8717
8842
  * * Display Name: Conversation
@@ -8720,6 +8845,14 @@ each time the agent processes a prompt step.`),
8720
8845
  * * Field Name: User
8721
8846
  * * Display Name: User
8722
8847
  * * SQL Data Type: nvarchar(100)`),
8848
+ ConversationDetail: zod_1.z.string().nullable().describe(`
8849
+ * * Field Name: ConversationDetail
8850
+ * * Display Name: Conversation Detail
8851
+ * * SQL Data Type: nvarchar(MAX)`),
8852
+ LastRun: zod_1.z.string().nullable().describe(`
8853
+ * * Field Name: LastRun
8854
+ * * Display Name: Last Run
8855
+ * * SQL Data Type: nvarchar(255)`),
8723
8856
  Configuration: zod_1.z.string().nullable().describe(`
8724
8857
  * * Field Name: Configuration
8725
8858
  * * Display Name: Configuration
@@ -8732,6 +8865,10 @@ each time the agent processes a prompt step.`),
8732
8865
  * * Field Name: OverrideVendor
8733
8866
  * * Display Name: Override Vendor
8734
8867
  * * SQL Data Type: nvarchar(50)`),
8868
+ ScheduledJobRun: zod_1.z.string().nullable().describe(`
8869
+ * * Field Name: ScheduledJobRun
8870
+ * * Display Name: Scheduled Job Run
8871
+ * * SQL Data Type: nvarchar(200)`),
8735
8872
  RootParentRunID: zod_1.z.string().nullable().describe(`
8736
8873
  * * Field Name: RootParentRunID
8737
8874
  * * Display Name: Root Parent Run ID
@@ -10003,6 +10140,12 @@ exports.AIPromptRunSchema = zod_1.z.object({
10003
10140
  * * Display Name: Comments
10004
10141
  * * SQL Data Type: nvarchar(MAX)
10005
10142
  * * Description: Human-readable notes and comments about this prompt run`),
10143
+ TestRunID: zod_1.z.string().nullable().describe(`
10144
+ * * Field Name: TestRunID
10145
+ * * Display Name: Test Run ID
10146
+ * * SQL Data Type: uniqueidentifier
10147
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
10148
+ * * Description: Optional Foreign Key - Links this prompt run to a test run if this prompt execution was part of a test. Enables testing individual prompts for quality and consistency before agent integration.`),
10006
10149
  Prompt: zod_1.z.string().describe(`
10007
10150
  * * Field Name: Prompt
10008
10151
  * * Display Name: Prompt
@@ -10023,10 +10166,22 @@ exports.AIPromptRunSchema = zod_1.z.object({
10023
10166
  * * Field Name: Configuration
10024
10167
  * * Display Name: Configuration
10025
10168
  * * SQL Data Type: nvarchar(100)`),
10169
+ Parent: zod_1.z.string().nullable().describe(`
10170
+ * * Field Name: Parent
10171
+ * * Display Name: Parent
10172
+ * * SQL Data Type: nvarchar(255)`),
10173
+ AgentRun: zod_1.z.string().nullable().describe(`
10174
+ * * Field Name: AgentRun
10175
+ * * Display Name: Agent Run
10176
+ * * SQL Data Type: nvarchar(255)`),
10026
10177
  OriginalModel: zod_1.z.string().nullable().describe(`
10027
10178
  * * Field Name: OriginalModel
10028
10179
  * * Display Name: Original Model
10029
10180
  * * SQL Data Type: nvarchar(50)`),
10181
+ RerunFromPromptRun: zod_1.z.string().nullable().describe(`
10182
+ * * Field Name: RerunFromPromptRun
10183
+ * * Display Name: Rerun From Prompt Run
10184
+ * * SQL Data Type: nvarchar(255)`),
10030
10185
  Judge: zod_1.z.string().nullable().describe(`
10031
10186
  * * Field Name: Judge
10032
10187
  * * Display Name: Judge
@@ -10286,6 +10441,11 @@ exports.ArtifactTypeSchema = zod_1.z.object({
10286
10441
  * * Display Name: Driver Class
10287
10442
  * * SQL Data Type: nvarchar(255)
10288
10443
  * * Description: Driver class name for the artifact viewer plugin. References Angular component registered with @RegisterClass decorator.`),
10444
+ Icon: zod_1.z.string().nullable().describe(`
10445
+ * * Field Name: Icon
10446
+ * * Display Name: Icon
10447
+ * * SQL Data Type: nvarchar(255)
10448
+ * * Description: Font Awesome icon class name for displaying this artifact type in the UI (e.g., fa-file-code, fa-chart-line)`),
10289
10449
  Parent: zod_1.z.string().nullable().describe(`
10290
10450
  * * Field Name: Parent
10291
10451
  * * Display Name: Parent
@@ -12496,6 +12656,672 @@ exports.TaskSchema = zod_1.z.object({
12496
12656
  * * Display Name: Root Parent ID
12497
12657
  * * SQL Data Type: uniqueidentifier`),
12498
12658
  });
12659
+ /**
12660
+ * zod schema definition for the entity MJ: Test Rubrics
12661
+ */
12662
+ exports.TestRubricSchema = zod_1.z.object({
12663
+ ID: zod_1.z.string().describe(`
12664
+ * * Field Name: ID
12665
+ * * Display Name: ID
12666
+ * * SQL Data Type: uniqueidentifier
12667
+ * * Default Value: newsequentialid()`),
12668
+ TypeID: zod_1.z.string().describe(`
12669
+ * * Field Name: TypeID
12670
+ * * Display Name: Type ID
12671
+ * * SQL Data Type: uniqueidentifier
12672
+ * * Related Entity/Foreign Key: MJ: Test Types (vwTestTypes.ID)
12673
+ * * Description: Foreign Key - The test type this rubric applies to (e.g., Agent Eval, Code Generation)`),
12674
+ Name: zod_1.z.string().describe(`
12675
+ * * Field Name: Name
12676
+ * * Display Name: Name
12677
+ * * SQL Data Type: nvarchar(255)
12678
+ * * Description: Unique name for the rubric (e.g., "Component Quality Rubric v1", "Agent Response Quality")`),
12679
+ Description: zod_1.z.string().nullable().describe(`
12680
+ * * Field Name: Description
12681
+ * * Display Name: Description
12682
+ * * SQL Data Type: nvarchar(MAX)
12683
+ * * Description: Description of what this rubric evaluates and when to use it`),
12684
+ PromptTemplate: zod_1.z.string().nullable().describe(`
12685
+ * * Field Name: PromptTemplate
12686
+ * * Display Name: Prompt Template
12687
+ * * SQL Data Type: nvarchar(MAX)
12688
+ * * Description: LLM prompt template for automated judgment. Can include placeholders for test inputs/outputs (e.g., "Evaluate the following React component for correctness, UX, and maintainability...")`),
12689
+ Criteria: zod_1.z.string().nullable().describe(`
12690
+ * * Field Name: Criteria
12691
+ * * Display Name: Criteria
12692
+ * * SQL Data Type: nvarchar(MAX)
12693
+ * * Description: JSON object defining structured evaluation criteria with dimensions, weights, and scoring guidance (e.g., {correctness: {weight: 0.4, description: "..."}, ux: {weight: 0.3, description: "..."}})`),
12694
+ Version: zod_1.z.string().nullable().describe(`
12695
+ * * Field Name: Version
12696
+ * * Display Name: Version
12697
+ * * SQL Data Type: nvarchar(50)
12698
+ * * Description: Version identifier for the rubric. Allows tracking changes and comparing results across rubric versions.`),
12699
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Disabled'), zod_1.z.literal('Pending')]).describe(`
12700
+ * * Field Name: Status
12701
+ * * Display Name: Status
12702
+ * * SQL Data Type: nvarchar(20)
12703
+ * * Default Value: Active
12704
+ * * Value List Type: List
12705
+ * * Possible Values
12706
+ * * Active
12707
+ * * Disabled
12708
+ * * Pending
12709
+ * * Description: Status of the rubric: Pending (under development), Active (available for use), Disabled (deprecated)`),
12710
+ __mj_CreatedAt: zod_1.z.date().describe(`
12711
+ * * Field Name: __mj_CreatedAt
12712
+ * * Display Name: Created At
12713
+ * * SQL Data Type: datetimeoffset
12714
+ * * Default Value: getutcdate()`),
12715
+ __mj_UpdatedAt: zod_1.z.date().describe(`
12716
+ * * Field Name: __mj_UpdatedAt
12717
+ * * Display Name: Updated At
12718
+ * * SQL Data Type: datetimeoffset
12719
+ * * Default Value: getutcdate()`),
12720
+ Type: zod_1.z.string().describe(`
12721
+ * * Field Name: Type
12722
+ * * Display Name: Type
12723
+ * * SQL Data Type: nvarchar(100)`),
12724
+ });
12725
+ /**
12726
+ * zod schema definition for the entity MJ: Test Run Feedbacks
12727
+ */
12728
+ exports.TestRunFeedbackSchema = zod_1.z.object({
12729
+ ID: zod_1.z.string().describe(`
12730
+ * * Field Name: ID
12731
+ * * Display Name: ID
12732
+ * * SQL Data Type: uniqueidentifier
12733
+ * * Default Value: newsequentialid()`),
12734
+ TestRunID: zod_1.z.string().describe(`
12735
+ * * Field Name: TestRunID
12736
+ * * Display Name: Test Run ID
12737
+ * * SQL Data Type: uniqueidentifier
12738
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
12739
+ * * Description: Foreign Key - The test run being reviewed`),
12740
+ ReviewerUserID: zod_1.z.string().describe(`
12741
+ * * Field Name: ReviewerUserID
12742
+ * * Display Name: Reviewer User ID
12743
+ * * SQL Data Type: uniqueidentifier
12744
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
12745
+ * * Description: Foreign Key - The user providing the feedback`),
12746
+ Rating: zod_1.z.number().nullable().describe(`
12747
+ * * Field Name: Rating
12748
+ * * Display Name: Rating
12749
+ * * SQL Data Type: int
12750
+ * * Description: Numeric rating from 1 (poor) to 10 (excellent). Allows quantitative tracking of result quality.`),
12751
+ IsCorrect: zod_1.z.boolean().nullable().describe(`
12752
+ * * Field Name: IsCorrect
12753
+ * * Display Name: Is Correct
12754
+ * * SQL Data Type: bit
12755
+ * * Description: Boolean indicating if the automated test result was correct. Can override automated Pass/Fail status.`),
12756
+ CorrectionSummary: zod_1.z.string().nullable().describe(`
12757
+ * * Field Name: CorrectionSummary
12758
+ * * Display Name: Correction Summary
12759
+ * * SQL Data Type: nvarchar(MAX)
12760
+ * * Description: Summary of corrections or adjustments made by the human reviewer`),
12761
+ Comments: zod_1.z.string().nullable().describe(`
12762
+ * * Field Name: Comments
12763
+ * * Display Name: Comments
12764
+ * * SQL Data Type: nvarchar(MAX)
12765
+ * * Description: Free-form comments from the reviewer about the test result, quality, or issues found`),
12766
+ ReviewedAt: zod_1.z.date().describe(`
12767
+ * * Field Name: ReviewedAt
12768
+ * * Display Name: Reviewed At
12769
+ * * SQL Data Type: datetime
12770
+ * * Default Value: getdate()
12771
+ * * Description: Timestamp when the feedback was provided`),
12772
+ __mj_CreatedAt: zod_1.z.date().describe(`
12773
+ * * Field Name: __mj_CreatedAt
12774
+ * * Display Name: Created At
12775
+ * * SQL Data Type: datetimeoffset
12776
+ * * Default Value: getutcdate()`),
12777
+ __mj_UpdatedAt: zod_1.z.date().describe(`
12778
+ * * Field Name: __mj_UpdatedAt
12779
+ * * Display Name: Updated At
12780
+ * * SQL Data Type: datetimeoffset
12781
+ * * Default Value: getutcdate()`),
12782
+ ReviewerUser: zod_1.z.string().describe(`
12783
+ * * Field Name: ReviewerUser
12784
+ * * Display Name: Reviewer User
12785
+ * * SQL Data Type: nvarchar(100)`),
12786
+ });
12787
+ /**
12788
+ * zod schema definition for the entity MJ: Test Runs
12789
+ */
12790
+ exports.TestRunSchema = zod_1.z.object({
12791
+ ID: zod_1.z.string().describe(`
12792
+ * * Field Name: ID
12793
+ * * Display Name: ID
12794
+ * * SQL Data Type: uniqueidentifier
12795
+ * * Default Value: newsequentialid()`),
12796
+ TestID: zod_1.z.string().describe(`
12797
+ * * Field Name: TestID
12798
+ * * Display Name: Test ID
12799
+ * * SQL Data Type: uniqueidentifier
12800
+ * * Related Entity/Foreign Key: MJ: Tests (vwTests.ID)
12801
+ * * Description: Foreign Key - The test definition that was executed`),
12802
+ TestSuiteRunID: zod_1.z.string().nullable().describe(`
12803
+ * * Field Name: TestSuiteRunID
12804
+ * * Display Name: Test Suite Run ID
12805
+ * * SQL Data Type: uniqueidentifier
12806
+ * * Related Entity/Foreign Key: MJ: Test Suite Runs (vwTestSuiteRuns.ID)
12807
+ * * Description: Foreign Key - Optional parent suite run if this test was part of a suite execution. NULL for standalone test runs.`),
12808
+ RunByUserID: zod_1.z.string().describe(`
12809
+ * * Field Name: RunByUserID
12810
+ * * Display Name: Run By User ID
12811
+ * * SQL Data Type: uniqueidentifier
12812
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
12813
+ * * Description: Foreign Key - The user who triggered the test run (could be system user for automated runs)`),
12814
+ Sequence: zod_1.z.number().nullable().describe(`
12815
+ * * Field Name: Sequence
12816
+ * * Display Name: Sequence
12817
+ * * SQL Data Type: int
12818
+ * * Description: Execution sequence within the suite run. Indicates order of execution for tests in the same suite.`),
12819
+ TargetType: zod_1.z.string().nullable().describe(`
12820
+ * * Field Name: TargetType
12821
+ * * Display Name: Target Type
12822
+ * * SQL Data Type: nvarchar(100)
12823
+ * * Description: Type of the target being tested (e.g., "Agent Run", "Workflow Run", "Code Generation"). Polymorphic discriminator for TargetLogID.`),
12824
+ TargetLogID: zod_1.z.string().nullable().describe(`
12825
+ * * Field Name: TargetLogID
12826
+ * * Display Name: Target Log ID
12827
+ * * SQL Data Type: uniqueidentifier
12828
+ * * Description: ID of the target execution log (e.g., AIAgentRun.ID, WorkflowRun.ID). This is a soft FK - the actual entity depends on TargetType. The target entity should have a reverse FK back to TestRun for bidirectional navigation.`),
12829
+ Status: zod_1.z.union([zod_1.z.literal('Error'), zod_1.z.literal('Failed'), zod_1.z.literal('Passed'), zod_1.z.literal('Pending'), zod_1.z.literal('Running'), zod_1.z.literal('Skipped')]).describe(`
12830
+ * * Field Name: Status
12831
+ * * Display Name: Status
12832
+ * * SQL Data Type: nvarchar(20)
12833
+ * * Default Value: Pending
12834
+ * * Value List Type: List
12835
+ * * Possible Values
12836
+ * * Error
12837
+ * * Failed
12838
+ * * Passed
12839
+ * * Pending
12840
+ * * Running
12841
+ * * Skipped
12842
+ * * Description: Current status of the test run: Pending (queued), Running (in progress), Passed (all checks passed), Failed (at least one check failed), Skipped (not executed), Error (execution error before validation)`),
12843
+ StartedAt: zod_1.z.date().nullable().describe(`
12844
+ * * Field Name: StartedAt
12845
+ * * Display Name: Started At
12846
+ * * SQL Data Type: datetime
12847
+ * * Description: Timestamp when the test run started execution`),
12848
+ CompletedAt: zod_1.z.date().nullable().describe(`
12849
+ * * Field Name: CompletedAt
12850
+ * * Display Name: Completed At
12851
+ * * SQL Data Type: datetime
12852
+ * * Description: Timestamp when the test run completed`),
12853
+ DurationSeconds: zod_1.z.number().nullable().describe(`
12854
+ * * Field Name: DurationSeconds
12855
+ * * Display Name: Duration Seconds
12856
+ * * SQL Data Type: decimal(10, 3)
12857
+ * * Description: Execution time in seconds for this test`),
12858
+ InputData: zod_1.z.string().nullable().describe(`
12859
+ * * Field Name: InputData
12860
+ * * Display Name: Input Data
12861
+ * * SQL Data Type: nvarchar(MAX)
12862
+ * * Description: JSON object with the actual inputs used for this test run (may differ from test definition if parameterized)`),
12863
+ ExpectedOutputData: zod_1.z.string().nullable().describe(`
12864
+ * * Field Name: ExpectedOutputData
12865
+ * * Display Name: Expected Output Data
12866
+ * * SQL Data Type: nvarchar(MAX)
12867
+ * * Description: JSON object with the expected outputs/outcomes for this test run`),
12868
+ ActualOutputData: zod_1.z.string().nullable().describe(`
12869
+ * * Field Name: ActualOutputData
12870
+ * * Display Name: Actual Output Data
12871
+ * * SQL Data Type: nvarchar(MAX)
12872
+ * * Description: JSON object with the actual outputs produced by the test execution`),
12873
+ PassedChecks: zod_1.z.number().nullable().describe(`
12874
+ * * Field Name: PassedChecks
12875
+ * * Display Name: Passed Checks
12876
+ * * SQL Data Type: int
12877
+ * * Description: Number of validation checks that passed`),
12878
+ FailedChecks: zod_1.z.number().nullable().describe(`
12879
+ * * Field Name: FailedChecks
12880
+ * * Display Name: Failed Checks
12881
+ * * SQL Data Type: int
12882
+ * * Description: Number of validation checks that failed`),
12883
+ TotalChecks: zod_1.z.number().nullable().describe(`
12884
+ * * Field Name: TotalChecks
12885
+ * * Display Name: Total Checks
12886
+ * * SQL Data Type: int
12887
+ * * Description: Total number of validation checks performed`),
12888
+ Score: zod_1.z.number().nullable().describe(`
12889
+ * * Field Name: Score
12890
+ * * Display Name: Score
12891
+ * * SQL Data Type: decimal(5, 4)
12892
+ * * Description: Overall test score from 0.0000 to 1.0000 (0-100%). Calculated by test driver based on passed/failed checks and weights.`),
12893
+ CostUSD: zod_1.z.number().nullable().describe(`
12894
+ * * Field Name: CostUSD
12895
+ * * Display Name: Cost USD
12896
+ * * SQL Data Type: decimal(10, 6)
12897
+ * * Description: Cost in USD for running this test (e.g., LLM token costs, compute resources)`),
12898
+ ErrorMessage: zod_1.z.string().nullable().describe(`
12899
+ * * Field Name: ErrorMessage
12900
+ * * Display Name: Error Message
12901
+ * * SQL Data Type: nvarchar(MAX)
12902
+ * * Description: Error message if the test encountered an execution error`),
12903
+ ResultDetails: zod_1.z.string().nullable().describe(`
12904
+ * * Field Name: ResultDetails
12905
+ * * Display Name: Result Details
12906
+ * * SQL Data Type: nvarchar(MAX)
12907
+ * * Description: JSON object with detailed results including individual check results, metrics, oracle outputs, and diagnostic information`),
12908
+ __mj_CreatedAt: zod_1.z.date().describe(`
12909
+ * * Field Name: __mj_CreatedAt
12910
+ * * Display Name: Created At
12911
+ * * SQL Data Type: datetimeoffset
12912
+ * * Default Value: getutcdate()`),
12913
+ __mj_UpdatedAt: zod_1.z.date().describe(`
12914
+ * * Field Name: __mj_UpdatedAt
12915
+ * * Display Name: Updated At
12916
+ * * SQL Data Type: datetimeoffset
12917
+ * * Default Value: getutcdate()`),
12918
+ Test: zod_1.z.string().describe(`
12919
+ * * Field Name: Test
12920
+ * * Display Name: Test
12921
+ * * SQL Data Type: nvarchar(255)`),
12922
+ RunByUser: zod_1.z.string().describe(`
12923
+ * * Field Name: RunByUser
12924
+ * * Display Name: Run By User
12925
+ * * SQL Data Type: nvarchar(100)`),
12926
+ });
12927
+ /**
12928
+ * zod schema definition for the entity MJ: Test Suite Runs
12929
+ */
12930
+ exports.TestSuiteRunSchema = zod_1.z.object({
12931
+ ID: zod_1.z.string().describe(`
12932
+ * * Field Name: ID
12933
+ * * Display Name: ID
12934
+ * * SQL Data Type: uniqueidentifier
12935
+ * * Default Value: newsequentialid()`),
12936
+ SuiteID: zod_1.z.string().describe(`
12937
+ * * Field Name: SuiteID
12938
+ * * Display Name: Suite ID
12939
+ * * SQL Data Type: uniqueidentifier
12940
+ * * Related Entity/Foreign Key: MJ: Test Suites (vwTestSuites.ID)
12941
+ * * Description: Foreign Key - The test suite that was executed`),
12942
+ RunByUserID: zod_1.z.string().describe(`
12943
+ * * Field Name: RunByUserID
12944
+ * * Display Name: Run By User ID
12945
+ * * SQL Data Type: uniqueidentifier
12946
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
12947
+ * * Description: Foreign Key - The user who triggered the suite run (could be system user for automated runs)`),
12948
+ Environment: zod_1.z.string().nullable().describe(`
12949
+ * * Field Name: Environment
12950
+ * * Display Name: Environment
12951
+ * * SQL Data Type: nvarchar(50)
12952
+ * * Description: Environment where tests were executed (e.g., "dev", "staging", "prod", "ci")`),
12953
+ TriggerType: zod_1.z.string().nullable().describe(`
12954
+ * * Field Name: TriggerType
12955
+ * * Display Name: Trigger Type
12956
+ * * SQL Data Type: nvarchar(50)
12957
+ * * Description: How the run was triggered (e.g., "manual", "ci", "scheduled", "shadow", "release")`),
12958
+ GitCommit: zod_1.z.string().nullable().describe(`
12959
+ * * Field Name: GitCommit
12960
+ * * Display Name: Git Commit
12961
+ * * SQL Data Type: nvarchar(100)
12962
+ * * Description: Git commit SHA of the code version being tested. Enables correlation between test results and code changes.`),
12963
+ AgentVersion: zod_1.z.string().nullable().describe(`
12964
+ * * Field Name: AgentVersion
12965
+ * * Display Name: Agent Version
12966
+ * * SQL Data Type: nvarchar(100)
12967
+ * * Description: Version of the agent or system being tested (e.g., "skip-agent-2.1.0", "workflow-engine-3.4.2"). Enables version comparison and regression detection.`),
12968
+ Status: zod_1.z.union([zod_1.z.literal('Cancelled'), zod_1.z.literal('Completed'), zod_1.z.literal('Failed'), zod_1.z.literal('Pending'), zod_1.z.literal('Running')]).describe(`
12969
+ * * Field Name: Status
12970
+ * * Display Name: Status
12971
+ * * SQL Data Type: nvarchar(20)
12972
+ * * Default Value: Pending
12973
+ * * Value List Type: List
12974
+ * * Possible Values
12975
+ * * Cancelled
12976
+ * * Completed
12977
+ * * Failed
12978
+ * * Pending
12979
+ * * Running
12980
+ * * Description: Current status of the suite run: Pending (queued), Running (in progress), Completed (finished successfully), Failed (suite-level failure), Cancelled (stopped by user)`),
12981
+ StartedAt: zod_1.z.date().nullable().describe(`
12982
+ * * Field Name: StartedAt
12983
+ * * Display Name: Started At
12984
+ * * SQL Data Type: datetime
12985
+ * * Description: Timestamp when the suite run started execution`),
12986
+ CompletedAt: zod_1.z.date().nullable().describe(`
12987
+ * * Field Name: CompletedAt
12988
+ * * Display Name: Completed At
12989
+ * * SQL Data Type: datetime
12990
+ * * Description: Timestamp when the suite run completed (successfully or with failures)`),
12991
+ TotalTests: zod_1.z.number().nullable().describe(`
12992
+ * * Field Name: TotalTests
12993
+ * * Display Name: Total Tests
12994
+ * * SQL Data Type: int
12995
+ * * Description: Total number of tests executed in this suite run`),
12996
+ PassedTests: zod_1.z.number().nullable().describe(`
12997
+ * * Field Name: PassedTests
12998
+ * * Display Name: Passed Tests
12999
+ * * SQL Data Type: int
13000
+ * * Description: Number of tests that passed all checks`),
13001
+ FailedTests: zod_1.z.number().nullable().describe(`
13002
+ * * Field Name: FailedTests
13003
+ * * Display Name: Failed Tests
13004
+ * * SQL Data Type: int
13005
+ * * Description: Number of tests that failed at least one check`),
13006
+ SkippedTests: zod_1.z.number().nullable().describe(`
13007
+ * * Field Name: SkippedTests
13008
+ * * Display Name: Skipped Tests
13009
+ * * SQL Data Type: int
13010
+ * * Description: Number of tests that were skipped (not executed)`),
13011
+ ErrorTests: zod_1.z.number().nullable().describe(`
13012
+ * * Field Name: ErrorTests
13013
+ * * Display Name: Error Tests
13014
+ * * SQL Data Type: int
13015
+ * * Description: Number of tests that encountered execution errors (different from failing validation)`),
13016
+ TotalDurationSeconds: zod_1.z.number().nullable().describe(`
13017
+ * * Field Name: TotalDurationSeconds
13018
+ * * Display Name: Total Duration Seconds
13019
+ * * SQL Data Type: decimal(10, 3)
13020
+ * * Description: Total execution time in seconds for the entire suite`),
13021
+ TotalCostUSD: zod_1.z.number().nullable().describe(`
13022
+ * * Field Name: TotalCostUSD
13023
+ * * Display Name: Total Cost USD
13024
+ * * SQL Data Type: decimal(10, 6)
13025
+ * * Description: Total cost in USD for running the entire suite (sum of all test costs)`),
13026
+ Configuration: zod_1.z.string().nullable().describe(`
13027
+ * * Field Name: Configuration
13028
+ * * Display Name: Configuration
13029
+ * * SQL Data Type: nvarchar(MAX)
13030
+ * * Description: JSON snapshot of the runtime configuration used for this suite run`),
13031
+ ResultSummary: zod_1.z.string().nullable().describe(`
13032
+ * * Field Name: ResultSummary
13033
+ * * Display Name: Result Summary
13034
+ * * SQL Data Type: nvarchar(MAX)
13035
+ * * Description: JSON object with aggregated results and statistics from the suite run`),
13036
+ ErrorMessage: zod_1.z.string().nullable().describe(`
13037
+ * * Field Name: ErrorMessage
13038
+ * * Display Name: Error Message
13039
+ * * SQL Data Type: nvarchar(MAX)
13040
+ * * Description: Error message if the suite-level execution failed (before individual tests could run)`),
13041
+ __mj_CreatedAt: zod_1.z.date().describe(`
13042
+ * * Field Name: __mj_CreatedAt
13043
+ * * Display Name: Created At
13044
+ * * SQL Data Type: datetimeoffset
13045
+ * * Default Value: getutcdate()`),
13046
+ __mj_UpdatedAt: zod_1.z.date().describe(`
13047
+ * * Field Name: __mj_UpdatedAt
13048
+ * * Display Name: Updated At
13049
+ * * SQL Data Type: datetimeoffset
13050
+ * * Default Value: getutcdate()`),
13051
+ Suite: zod_1.z.string().describe(`
13052
+ * * Field Name: Suite
13053
+ * * Display Name: Suite
13054
+ * * SQL Data Type: nvarchar(255)`),
13055
+ RunByUser: zod_1.z.string().describe(`
13056
+ * * Field Name: RunByUser
13057
+ * * Display Name: Run By User
13058
+ * * SQL Data Type: nvarchar(100)`),
13059
+ });
13060
+ /**
13061
+ * zod schema definition for the entity MJ: Test Suite Tests
13062
+ */
13063
+ exports.TestSuiteTestSchema = zod_1.z.object({
13064
+ ID: zod_1.z.string().describe(`
13065
+ * * Field Name: ID
13066
+ * * Display Name: ID
13067
+ * * SQL Data Type: uniqueidentifier
13068
+ * * Default Value: newsequentialid()`),
13069
+ SuiteID: zod_1.z.string().describe(`
13070
+ * * Field Name: SuiteID
13071
+ * * Display Name: Suite ID
13072
+ * * SQL Data Type: uniqueidentifier
13073
+ * * Related Entity/Foreign Key: MJ: Test Suites (vwTestSuites.ID)
13074
+ * * Description: Foreign Key - The test suite this relationship belongs to`),
13075
+ TestID: zod_1.z.string().describe(`
13076
+ * * Field Name: TestID
13077
+ * * Display Name: Test ID
13078
+ * * SQL Data Type: uniqueidentifier
13079
+ * * Related Entity/Foreign Key: MJ: Tests (vwTests.ID)
13080
+ * * Description: Foreign Key - The test included in this suite`),
13081
+ Sequence: zod_1.z.number().describe(`
13082
+ * * Field Name: Sequence
13083
+ * * Display Name: Sequence
13084
+ * * SQL Data Type: int
13085
+ * * Default Value: 0
13086
+ * * Description: Execution sequence within the suite. Lower numbers run first. Tests with same sequence may run in parallel.`),
13087
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Disabled'), zod_1.z.literal('Skip')]).describe(`
13088
+ * * Field Name: Status
13089
+ * * Display Name: Status
13090
+ * * SQL Data Type: nvarchar(20)
13091
+ * * Default Value: Active
13092
+ * * Value List Type: List
13093
+ * * Possible Values
13094
+ * * Active
13095
+ * * Disabled
13096
+ * * Skip
13097
+ * * Description: Status of this test within this suite: Active (will run), Disabled (temporarily excluded), Skip (documented exclusion)`),
13098
+ Configuration: zod_1.z.string().nullable().describe(`
13099
+ * * Field Name: Configuration
13100
+ * * Display Name: Configuration
13101
+ * * SQL Data Type: nvarchar(MAX)
13102
+ * * Description: JSON object to override test configuration for this specific suite. Allows same test to run with different parameters in different suites.`),
13103
+ __mj_CreatedAt: zod_1.z.date().describe(`
13104
+ * * Field Name: __mj_CreatedAt
13105
+ * * Display Name: Created At
13106
+ * * SQL Data Type: datetimeoffset
13107
+ * * Default Value: getutcdate()`),
13108
+ __mj_UpdatedAt: zod_1.z.date().describe(`
13109
+ * * Field Name: __mj_UpdatedAt
13110
+ * * Display Name: Updated At
13111
+ * * SQL Data Type: datetimeoffset
13112
+ * * Default Value: getutcdate()`),
13113
+ Suite: zod_1.z.string().describe(`
13114
+ * * Field Name: Suite
13115
+ * * Display Name: Suite
13116
+ * * SQL Data Type: nvarchar(255)`),
13117
+ Test: zod_1.z.string().describe(`
13118
+ * * Field Name: Test
13119
+ * * Display Name: Test
13120
+ * * SQL Data Type: nvarchar(255)`),
13121
+ });
13122
+ /**
13123
+ * zod schema definition for the entity MJ: Test Suites
13124
+ */
13125
+ exports.TestSuiteSchema = zod_1.z.object({
13126
+ ID: zod_1.z.string().describe(`
13127
+ * * Field Name: ID
13128
+ * * Display Name: ID
13129
+ * * SQL Data Type: uniqueidentifier
13130
+ * * Default Value: newsequentialid()`),
13131
+ ParentID: zod_1.z.string().nullable().describe(`
13132
+ * * Field Name: ParentID
13133
+ * * Display Name: Parent ID
13134
+ * * SQL Data Type: uniqueidentifier
13135
+ * * Related Entity/Foreign Key: MJ: Test Suites (vwTestSuites.ID)
13136
+ * * Description: Optional parent suite ID for hierarchical organization. NULL for root-level suites.`),
13137
+ Name: zod_1.z.string().describe(`
13138
+ * * Field Name: Name
13139
+ * * Display Name: Name
13140
+ * * SQL Data Type: nvarchar(255)
13141
+ * * Description: Name of the test suite (e.g., "Skip Component Generation Suite", "Agent Memory Tests")`),
13142
+ Description: zod_1.z.string().nullable().describe(`
13143
+ * * Field Name: Description
13144
+ * * Display Name: Description
13145
+ * * SQL Data Type: nvarchar(MAX)
13146
+ * * Description: Detailed description of what this suite tests and its purpose`),
13147
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Disabled'), zod_1.z.literal('Pending')]).describe(`
13148
+ * * Field Name: Status
13149
+ * * Display Name: Status
13150
+ * * SQL Data Type: nvarchar(20)
13151
+ * * Default Value: Active
13152
+ * * Value List Type: List
13153
+ * * Possible Values
13154
+ * * Active
13155
+ * * Disabled
13156
+ * * Pending
13157
+ * * Description: Status of the suite: Pending (being configured), Active (available for use), Disabled (archived/not in use)`),
13158
+ Tags: zod_1.z.string().nullable().describe(`
13159
+ * * Field Name: Tags
13160
+ * * Display Name: Tags
13161
+ * * SQL Data Type: nvarchar(MAX)
13162
+ * * Description: JSON array of tags for categorization and filtering (e.g., ["smoke", "regression", "nightly"])`),
13163
+ Configuration: zod_1.z.string().nullable().describe(`
13164
+ * * Field Name: Configuration
13165
+ * * Display Name: Configuration
13166
+ * * SQL Data Type: nvarchar(MAX)
13167
+ * * Description: JSON configuration object for suite-level settings (e.g., environment defaults, retry policies, notification settings)`),
13168
+ __mj_CreatedAt: zod_1.z.date().describe(`
13169
+ * * Field Name: __mj_CreatedAt
13170
+ * * Display Name: Created At
13171
+ * * SQL Data Type: datetimeoffset
13172
+ * * Default Value: getutcdate()`),
13173
+ __mj_UpdatedAt: zod_1.z.date().describe(`
13174
+ * * Field Name: __mj_UpdatedAt
13175
+ * * Display Name: Updated At
13176
+ * * SQL Data Type: datetimeoffset
13177
+ * * Default Value: getutcdate()`),
13178
+ Parent: zod_1.z.string().nullable().describe(`
13179
+ * * Field Name: Parent
13180
+ * * Display Name: Parent
13181
+ * * SQL Data Type: nvarchar(255)`),
13182
+ RootParentID: zod_1.z.string().nullable().describe(`
13183
+ * * Field Name: RootParentID
13184
+ * * Display Name: Root Parent ID
13185
+ * * SQL Data Type: uniqueidentifier`),
13186
+ });
13187
+ /**
13188
+ * zod schema definition for the entity MJ: Test Types
13189
+ */
13190
+ exports.TestTypeSchema = zod_1.z.object({
13191
+ ID: zod_1.z.string().describe(`
13192
+ * * Field Name: ID
13193
+ * * Display Name: ID
13194
+ * * SQL Data Type: uniqueidentifier
13195
+ * * Default Value: newsequentialid()`),
13196
+ Name: zod_1.z.string().describe(`
13197
+ * * Field Name: Name
13198
+ * * Display Name: Name
13199
+ * * SQL Data Type: nvarchar(100)
13200
+ * * Description: Unique name for the test type (e.g., "Agent Eval", "Workflow Test", "Code Generation Test")`),
13201
+ Description: zod_1.z.string().nullable().describe(`
13202
+ * * Field Name: Description
13203
+ * * Display Name: Description
13204
+ * * SQL Data Type: nvarchar(MAX)
13205
+ * * Description: Detailed description of what this test type validates and how it works`),
13206
+ DriverClass: zod_1.z.string().describe(`
13207
+ * * Field Name: DriverClass
13208
+ * * Display Name: Driver Class
13209
+ * * SQL Data Type: nvarchar(255)
13210
+ * * Description: Class name for the driver implementation (e.g., "AgentEvalDriver"). Used with ClassFactory to instantiate the appropriate BaseTestDriver subclass.`),
13211
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Disabled'), zod_1.z.literal('Pending')]).describe(`
13212
+ * * Field Name: Status
13213
+ * * Display Name: Status
13214
+ * * SQL Data Type: nvarchar(20)
13215
+ * * Default Value: Active
13216
+ * * Value List Type: List
13217
+ * * Possible Values
13218
+ * * Active
13219
+ * * Disabled
13220
+ * * Pending
13221
+ * * Description: Status of the test type: Pending (under development), Active (available for use), Disabled (no longer available)`),
13222
+ __mj_CreatedAt: zod_1.z.date().describe(`
13223
+ * * Field Name: __mj_CreatedAt
13224
+ * * Display Name: Created At
13225
+ * * SQL Data Type: datetimeoffset
13226
+ * * Default Value: getutcdate()`),
13227
+ __mj_UpdatedAt: zod_1.z.date().describe(`
13228
+ * * Field Name: __mj_UpdatedAt
13229
+ * * Display Name: Updated At
13230
+ * * SQL Data Type: datetimeoffset
13231
+ * * Default Value: getutcdate()`),
13232
+ });
13233
+ /**
13234
+ * zod schema definition for the entity MJ: Tests
13235
+ */
13236
+ exports.TestSchema = zod_1.z.object({
13237
+ ID: zod_1.z.string().describe(`
13238
+ * * Field Name: ID
13239
+ * * Display Name: ID
13240
+ * * SQL Data Type: uniqueidentifier
13241
+ * * Default Value: newsequentialid()`),
13242
+ TypeID: zod_1.z.string().describe(`
13243
+ * * Field Name: TypeID
13244
+ * * Display Name: Type ID
13245
+ * * SQL Data Type: uniqueidentifier
13246
+ * * Related Entity/Foreign Key: MJ: Test Types (vwTestTypes.ID)
13247
+ * * Description: Foreign Key - The type of test (e.g., Agent Eval, Workflow Test). Determines which driver class handles execution.`),
13248
+ Name: zod_1.z.string().describe(`
13249
+ * * Field Name: Name
13250
+ * * Display Name: Name
13251
+ * * SQL Data Type: nvarchar(255)
13252
+ * * Description: Name of the test (e.g., "Pie Chart with Drilldown", "Memory Recall Accuracy")`),
13253
+ Description: zod_1.z.string().nullable().describe(`
13254
+ * * Field Name: Description
13255
+ * * Display Name: Description
13256
+ * * SQL Data Type: nvarchar(MAX)
13257
+ * * Description: Detailed description of what this test validates and why it matters`),
13258
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Disabled'), zod_1.z.literal('Pending')]).describe(`
13259
+ * * Field Name: Status
13260
+ * * Display Name: Status
13261
+ * * SQL Data Type: nvarchar(20)
13262
+ * * Default Value: Active
13263
+ * * Value List Type: List
13264
+ * * Possible Values
13265
+ * * Active
13266
+ * * Disabled
13267
+ * * Pending
13268
+ * * Description: Status of the test: Pending (being configured), Active (ready to run), Disabled (archived/not in use)`),
13269
+ InputDefinition: zod_1.z.string().nullable().describe(`
13270
+ * * Field Name: InputDefinition
13271
+ * * Display Name: Input Definition
13272
+ * * SQL Data Type: nvarchar(MAX)
13273
+ * * Description: JSON object defining the inputs/parameters for the test. Structure varies by test type (e.g., for Agent Eval: {prompt, context, conversationHistory})`),
13274
+ ExpectedOutcomes: zod_1.z.string().nullable().describe(`
13275
+ * * Field Name: ExpectedOutcomes
13276
+ * * Display Name: Expected Outcomes
13277
+ * * SQL Data Type: nvarchar(MAX)
13278
+ * * Description: JSON object defining what success looks like. Structure varies by test type (e.g., for Agent Eval: {toolCalls, outputFormat, semanticGoals, dataAssertions})`),
13279
+ Configuration: zod_1.z.string().nullable().describe(`
13280
+ * * Field Name: Configuration
13281
+ * * Display Name: Configuration
13282
+ * * SQL Data Type: nvarchar(MAX)
13283
+ * * Description: JSON object for test-specific configuration (e.g., oracles to use, rubrics, retry policies, timeout settings)`),
13284
+ Tags: zod_1.z.string().nullable().describe(`
13285
+ * * Field Name: Tags
13286
+ * * Display Name: Tags
13287
+ * * SQL Data Type: nvarchar(MAX)
13288
+ * * Description: JSON array of tags for categorization and filtering (e.g., ["smoke", "agent-quality", "performance"])`),
13289
+ Priority: zod_1.z.number().nullable().describe(`
13290
+ * * Field Name: Priority
13291
+ * * Display Name: Priority
13292
+ * * SQL Data Type: int
13293
+ * * Default Value: 0
13294
+ * * Description: Priority for execution ordering. Lower numbers run first. Useful for dependencies or critical path tests.`),
13295
+ EstimatedDurationSeconds: zod_1.z.number().nullable().describe(`
13296
+ * * Field Name: EstimatedDurationSeconds
13297
+ * * Display Name: Estimated Duration Seconds
13298
+ * * SQL Data Type: int
13299
+ * * Description: Estimated execution time in seconds. Used for scheduling and timeout calculations.`),
13300
+ EstimatedCostUSD: zod_1.z.number().nullable().describe(`
13301
+ * * Field Name: EstimatedCostUSD
13302
+ * * Display Name: Estimated Cost USD
13303
+ * * SQL Data Type: decimal(10, 6)
13304
+ * * Description: Estimated cost in USD for running this test (e.g., LLM token costs, compute resources). Used for budgeting and optimization.`),
13305
+ __mj_CreatedAt: zod_1.z.date().describe(`
13306
+ * * Field Name: __mj_CreatedAt
13307
+ * * Display Name: Created At
13308
+ * * SQL Data Type: datetimeoffset
13309
+ * * Default Value: getutcdate()`),
13310
+ __mj_UpdatedAt: zod_1.z.date().describe(`
13311
+ * * Field Name: __mj_UpdatedAt
13312
+ * * Display Name: Updated At
13313
+ * * SQL Data Type: datetimeoffset
13314
+ * * Default Value: getutcdate()`),
13315
+ RepeatCount: zod_1.z.number().nullable().describe(`
13316
+ * * Field Name: RepeatCount
13317
+ * * Display Name: Repeat Count
13318
+ * * SQL Data Type: int
13319
+ * * Description: Number of times to repeat this test execution. NULL or 1 = single execution. Values > 1 will create multiple test runs for statistical analysis.`),
13320
+ Type: zod_1.z.string().describe(`
13321
+ * * Field Name: Type
13322
+ * * Display Name: Type
13323
+ * * SQL Data Type: nvarchar(100)`),
13324
+ });
12499
13325
  /**
12500
13326
  * zod schema definition for the entity Output Delivery Types
12501
13327
  */
@@ -26086,8 +26912,9 @@ let ConversationDetailEntity = class ConversationDetailEntity extends core_1.Bas
26086
26912
  /**
26087
26913
  * * Field Name: SuggestedResponses
26088
26914
  * * Display Name: Suggested Responses
26089
- * * SQL Data Type: nvarchar(MAX)
26090
- * * Description: JSON array of suggested responses that can be displayed to the user for quick replies. Each response object contains: text (display text), allowInput (boolean), iconClass (optional Font Awesome class), and data (optional payload).
26915
+ * *
26916
+ * * @deprecated This field is deprecated and will be removed in a future version. Using it will result in console warnings.SQL Data Type: nvarchar(MAX)
26917
+ * * Description: DEPRECATED: Use ResponseForm, ActionableCommands, and AutomaticCommands instead. Legacy field for simple text-based suggested responses. Replaced in v2.118 by more powerful structured forms and commands system. Retained for historical data only.
26091
26918
  */
26092
26919
  get SuggestedResponses() {
26093
26920
  return this.Get('SuggestedResponses');
@@ -26096,6 +26923,55 @@ let ConversationDetailEntity = class ConversationDetailEntity extends core_1.Bas
26096
26923
  this.Set('SuggestedResponses', value);
26097
26924
  }
26098
26925
  /**
26926
+ * * Field Name: TestRunID
26927
+ * * Display Name: Test Run ID
26928
+ * * SQL Data Type: uniqueidentifier
26929
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
26930
+ * * Description: Optional Foreign Key - Links this conversation detail to a test run if this message was part of a test conversation. Allows filtering and analyzing test-specific conversation turns.
26931
+ */
26932
+ get TestRunID() {
26933
+ return this.Get('TestRunID');
26934
+ }
26935
+ set TestRunID(value) {
26936
+ this.Set('TestRunID', value);
26937
+ }
26938
+ /**
26939
+ * * Field Name: ResponseForm
26940
+ * * Display Name: Response Form
26941
+ * * SQL Data Type: nvarchar(MAX)
26942
+ * * Description: JSON object containing agent response form definition with questions and validation rules. Supports 8 question types: text, textarea, email, number, currency, date, datetime, choices (buttongroup/radio/dropdown/checkbox). Used for collecting structured user input with proper validation.
26943
+ */
26944
+ get ResponseForm() {
26945
+ return this.Get('ResponseForm');
26946
+ }
26947
+ set ResponseForm(value) {
26948
+ this.Set('ResponseForm', value);
26949
+ }
26950
+ /**
26951
+ * * Field Name: ActionableCommands
26952
+ * * Display Name: Actionable Commands
26953
+ * * SQL Data Type: nvarchar(MAX)
26954
+ * * Description: JSON array of actionable commands that user can trigger (shown as clickable buttons/links). Supports open:resource (navigate to records/dashboards/reports/forms) and open:url (external links). Typically used after completing work to provide easy navigation to created/modified resources.
26955
+ */
26956
+ get ActionableCommands() {
26957
+ return this.Get('ActionableCommands');
26958
+ }
26959
+ set ActionableCommands(value) {
26960
+ this.Set('ActionableCommands', value);
26961
+ }
26962
+ /**
26963
+ * * Field Name: AutomaticCommands
26964
+ * * Display Name: Automatic Commands
26965
+ * * SQL Data Type: nvarchar(MAX)
26966
+ * * Description: JSON array of automatic commands that execute immediately when received (no user interaction). Supports refresh:data (refresh entity data or caches) and notification (show toast messages). Used for keeping UI in sync after agent makes changes and providing user feedback.
26967
+ */
26968
+ get AutomaticCommands() {
26969
+ return this.Get('AutomaticCommands');
26970
+ }
26971
+ set AutomaticCommands(value) {
26972
+ this.Set('AutomaticCommands', value);
26973
+ }
26974
+ /**
26099
26975
  * * Field Name: Conversation
26100
26976
  * * Display Name: Conversation
26101
26977
  * * SQL Data Type: nvarchar(255)
@@ -26120,6 +26996,22 @@ let ConversationDetailEntity = class ConversationDetailEntity extends core_1.Bas
26120
26996
  return this.Get('Artifact');
26121
26997
  }
26122
26998
  /**
26999
+ * * Field Name: ArtifactVersion
27000
+ * * Display Name: Artifact Version
27001
+ * * SQL Data Type: nvarchar(255)
27002
+ */
27003
+ get ArtifactVersion() {
27004
+ return this.Get('ArtifactVersion');
27005
+ }
27006
+ /**
27007
+ * * Field Name: Parent
27008
+ * * Display Name: Parent
27009
+ * * SQL Data Type: nvarchar(MAX)
27010
+ */
27011
+ get Parent() {
27012
+ return this.Get('Parent');
27013
+ }
27014
+ /**
26123
27015
  * * Field Name: Agent
26124
27016
  * * Display Name: Agent
26125
27017
  * * SQL Data Type: nvarchar(255)
@@ -26397,6 +27289,19 @@ let ConversationEntity = class ConversationEntity extends core_1.BaseEntity {
26397
27289
  this.Set('IsPinned', value);
26398
27290
  }
26399
27291
  /**
27292
+ * * Field Name: TestRunID
27293
+ * * Display Name: Test Run ID
27294
+ * * SQL Data Type: uniqueidentifier
27295
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
27296
+ * * Description: Optional Foreign Key - Links this conversation to a test run if this conversation was generated as part of a test. Enables tracking test conversations separately from production conversations.
27297
+ */
27298
+ get TestRunID() {
27299
+ return this.Get('TestRunID');
27300
+ }
27301
+ set TestRunID(value) {
27302
+ this.Set('TestRunID', value);
27303
+ }
27304
+ /**
26400
27305
  * * Field Name: User
26401
27306
  * * Display Name: User
26402
27307
  * * SQL Data Type: nvarchar(100)
@@ -35467,25 +36372,25 @@ exports.AIAgentArtifactTypeEntity = AIAgentArtifactTypeEntity = __decorate([
35467
36372
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Agent Artifact Types')
35468
36373
  ], AIAgentArtifactTypeEntity);
35469
36374
  /**
35470
- * MJ: AI Agent Data Sources - strongly typed entity sub-class
36375
+ * MJ: AI Agent Configurations - strongly typed entity sub-class
35471
36376
  * * Schema: __mj
35472
- * * Base Table: AIAgentDataSource
35473
- * * Base View: vwAIAgentDataSources
35474
- * * @description Defines data sources that should be preloaded into the data parameter before agent execution. Supports both RunView and RunQuery sources with configurable caching.
36377
+ * * Base Table: AIAgentConfiguration
36378
+ * * Base View: vwAIAgentConfigurations
36379
+ * * @description Defines semantic configuration presets for agents, allowing users to select between different AI model configurations (e.g., Fast, Balanced, High Quality) when executing an agent. Each preset maps to an AI Configuration which controls model selection across all prompts.
35475
36380
  * * Primary Key: ID
35476
36381
  * @extends {BaseEntity}
35477
36382
  * @class
35478
36383
  * @public
35479
36384
  */
35480
- let AIAgentDataSourceEntity = class AIAgentDataSourceEntity extends core_1.BaseEntity {
36385
+ let AIAgentConfigurationEntity = class AIAgentConfigurationEntity extends core_1.BaseEntity {
35481
36386
  /**
35482
- * Loads the MJ: AI Agent Data Sources record from the database
35483
- * @param ID: string - primary key value to load the MJ: AI Agent Data Sources record.
36387
+ * Loads the MJ: AI Agent Configurations record from the database
36388
+ * @param ID: string - primary key value to load the MJ: AI Agent Configurations record.
35484
36389
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
35485
36390
  * @returns {Promise<boolean>} - true if successful, false otherwise
35486
36391
  * @public
35487
36392
  * @async
35488
- * @memberof AIAgentDataSourceEntity
36393
+ * @memberof AIAgentConfigurationEntity
35489
36394
  * @method
35490
36395
  * @override
35491
36396
  */
@@ -35495,60 +36400,11 @@ let AIAgentDataSourceEntity = class AIAgentDataSourceEntity extends core_1.BaseE
35495
36400
  return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
35496
36401
  }
35497
36402
  /**
35498
- * Validate() method override for MJ: AI Agent Data Sources entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
35499
- * * Table-Level: This rule ensures that if the cache policy is set to 'PerAgent', a cache timeout value must be provided. For other cache policies, providing a cache timeout is optional.
35500
- * * Table-Level: This rule makes sure that if the source type is 'RunView', the entity name must be provided. If the source type is anything else, the entity name can be left blank.
35501
- * * Table-Level: This rule ensures that when the Source Type is set to 'RunQuery', a Query Name must be provided. If Source Type is anything other than 'RunQuery', Query Name is optional.
35502
- * @public
35503
- * @method
35504
- * @override
35505
- */
35506
- Validate() {
35507
- const result = super.Validate();
35508
- this.ValidateCacheTimeoutSecondsRequiredForPerAgentPolicy(result);
35509
- this.ValidateEntityNameRequiredWhenSourceTypeRunView(result);
35510
- this.ValidateQueryNameRequiredWhenSourceTypeIsRunQuery(result);
35511
- result.Success = result.Success && (result.Errors.length === 0);
35512
- return result;
35513
- }
35514
- /**
35515
- * This rule ensures that if the cache policy is set to 'PerAgent', a cache timeout value must be provided. For other cache policies, providing a cache timeout is optional.
35516
- * @param result - the ValidationResult object to add any errors or warnings to
35517
- * @public
35518
- * @method
35519
- */
35520
- ValidateCacheTimeoutSecondsRequiredForPerAgentPolicy(result) {
35521
- if (this.CachePolicy === "PerAgent" && this.CacheTimeoutSeconds == null) {
35522
- result.Errors.push(new core_1.ValidationErrorInfo("CacheTimeoutSeconds", "When the cache policy is set to 'PerAgent', you must specify a cache timeout value.", this.CacheTimeoutSeconds, core_1.ValidationErrorType.Failure));
35523
- }
35524
- }
35525
- /**
35526
- * This rule makes sure that if the source type is 'RunView', the entity name must be provided. If the source type is anything else, the entity name can be left blank.
35527
- * @param result - the ValidationResult object to add any errors or warnings to
35528
- * @public
35529
- * @method
35530
- */
35531
- ValidateEntityNameRequiredWhenSourceTypeRunView(result) {
35532
- if (this.SourceType === "RunView" && this.EntityName == null) {
35533
- result.Errors.push(new core_1.ValidationErrorInfo("EntityName", "EntityName is required when SourceType is 'RunView'.", this.EntityName, core_1.ValidationErrorType.Failure));
35534
- }
35535
- }
35536
- /**
35537
- * This rule ensures that when the Source Type is set to 'RunQuery', a Query Name must be provided. If Source Type is anything other than 'RunQuery', Query Name is optional.
35538
- * @param result - the ValidationResult object to add any errors or warnings to
35539
- * @public
35540
- * @method
35541
- */
35542
- ValidateQueryNameRequiredWhenSourceTypeIsRunQuery(result) {
35543
- if (this.SourceType === "RunQuery" && this.QueryName == null) {
35544
- result.Errors.push(new core_1.ValidationErrorInfo("QueryName", "The query name must be provided when Source Type is 'RunQuery'.", this.QueryName, core_1.ValidationErrorType.Failure));
35545
- }
35546
- }
35547
- /**
35548
36403
  * * Field Name: ID
35549
36404
  * * Display Name: ID
35550
36405
  * * SQL Data Type: uniqueidentifier
35551
36406
  * * Default Value: newsequentialid()
36407
+ * * Description: Primary Key - Unique identifier for the agent configuration preset
35552
36408
  */
35553
36409
  get ID() {
35554
36410
  return this.Get('ID');
@@ -35561,6 +36417,7 @@ let AIAgentDataSourceEntity = class AIAgentDataSourceEntity extends core_1.BaseE
35561
36417
  * * Display Name: Agent ID
35562
36418
  * * SQL Data Type: uniqueidentifier
35563
36419
  * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
36420
+ * * Description: Foreign Key - The agent this configuration preset belongs to
35564
36421
  */
35565
36422
  get AgentID() {
35566
36423
  return this.Get('AgentID');
@@ -35571,8 +36428,8 @@ let AIAgentDataSourceEntity = class AIAgentDataSourceEntity extends core_1.BaseE
35571
36428
  /**
35572
36429
  * * Field Name: Name
35573
36430
  * * Display Name: Name
35574
- * * SQL Data Type: nvarchar(255)
35575
- * * Description: Variable name for the data in the data parameter (e.g., "ALL_ENTITIES"). Must be unique within an agent.
36431
+ * * SQL Data Type: nvarchar(100)
36432
+ * * Description: Code-friendly name for the preset (e.g., HighPower, Fast, Balanced). Used in API calls and metadata references.
35576
36433
  */
35577
36434
  get Name() {
35578
36435
  return this.Get('Name');
@@ -35581,10 +36438,22 @@ let AIAgentDataSourceEntity = class AIAgentDataSourceEntity extends core_1.BaseE
35581
36438
  this.Set('Name', value);
35582
36439
  }
35583
36440
  /**
36441
+ * * Field Name: DisplayName
36442
+ * * Display Name: Display Name
36443
+ * * SQL Data Type: nvarchar(200)
36444
+ * * Description: User-friendly display name shown in UI (e.g., "High Quality", "Quick Draft", "Maximum Detail")
36445
+ */
36446
+ get DisplayName() {
36447
+ return this.Get('DisplayName');
36448
+ }
36449
+ set DisplayName(value) {
36450
+ this.Set('DisplayName', value);
36451
+ }
36452
+ /**
35584
36453
  * * Field Name: Description
35585
36454
  * * Display Name: Description
35586
36455
  * * SQL Data Type: nvarchar(MAX)
35587
- * * Description: Description of what this data source provides
36456
+ * * Description: Description shown to users explaining what this configuration does (e.g., "Uses Claude Opus for highest quality results")
35588
36457
  */
35589
36458
  get Description() {
35590
36459
  return this.Get('Description');
@@ -35593,147 +36462,43 @@ let AIAgentDataSourceEntity = class AIAgentDataSourceEntity extends core_1.BaseE
35593
36462
  this.Set('Description', value);
35594
36463
  }
35595
36464
  /**
35596
- * * Field Name: SourceType
35597
- * * Display Name: Source Type
35598
- * * SQL Data Type: nvarchar(20)
35599
- * * Default Value: RunView
35600
- * * Value List Type: List
35601
- * * Possible Values
35602
- * * RunQuery
35603
- * * RunView
35604
- * * Description: Type of data source: RunView or RunQuery. Determines which parameters are used.
35605
- */
35606
- get SourceType() {
35607
- return this.Get('SourceType');
35608
- }
35609
- set SourceType(value) {
35610
- this.Set('SourceType', value);
35611
- }
35612
- /**
35613
- * * Field Name: EntityName
35614
- * * Display Name: Entity Name
35615
- * * SQL Data Type: nvarchar(255)
35616
- * * Description: Entity name for RunView data sources (e.g., "Entities", "AI Models")
35617
- */
35618
- get EntityName() {
35619
- return this.Get('EntityName');
35620
- }
35621
- set EntityName(value) {
35622
- this.Set('EntityName', value);
35623
- }
35624
- /**
35625
- * * Field Name: ExtraFilter
35626
- * * Display Name: Extra Filter
35627
- * * SQL Data Type: nvarchar(MAX)
35628
- * * Description: SQL WHERE clause filter for RunView data sources
35629
- */
35630
- get ExtraFilter() {
35631
- return this.Get('ExtraFilter');
35632
- }
35633
- set ExtraFilter(value) {
35634
- this.Set('ExtraFilter', value);
35635
- }
35636
- /**
35637
- * * Field Name: OrderBy
35638
- * * Display Name: Order By
35639
- * * SQL Data Type: nvarchar(500)
35640
- * * Description: SQL ORDER BY clause for RunView data sources
35641
- */
35642
- get OrderBy() {
35643
- return this.Get('OrderBy');
35644
- }
35645
- set OrderBy(value) {
35646
- this.Set('OrderBy', value);
35647
- }
35648
- /**
35649
- * * Field Name: FieldsToRetrieve
35650
- * * Display Name: Fields To Retrieve
35651
- * * SQL Data Type: nvarchar(MAX)
35652
- * * Description: JSON array of field names to return for RunView data sources (e.g., ["ID", "Name", "Description"])
35653
- */
35654
- get FieldsToRetrieve() {
35655
- return this.Get('FieldsToRetrieve');
35656
- }
35657
- set FieldsToRetrieve(value) {
35658
- this.Set('FieldsToRetrieve', value);
35659
- }
35660
- /**
35661
- * * Field Name: ResultType
35662
- * * Display Name: Result Type
35663
- * * SQL Data Type: nvarchar(20)
35664
- * * Default Value: simple
35665
- * * Value List Type: List
35666
- * * Possible Values
35667
- * * entity_object
35668
- * * simple
35669
- * * Description: Result type for RunView: simple (default) or entity_object
35670
- */
35671
- get ResultType() {
35672
- return this.Get('ResultType');
35673
- }
35674
- set ResultType(value) {
35675
- this.Set('ResultType', value);
35676
- }
35677
- /**
35678
- * * Field Name: QueryName
35679
- * * Display Name: Query Name
35680
- * * SQL Data Type: nvarchar(255)
35681
- * * Description: Query name for RunQuery data sources
35682
- */
35683
- get QueryName() {
35684
- return this.Get('QueryName');
35685
- }
35686
- set QueryName(value) {
35687
- this.Set('QueryName', value);
35688
- }
35689
- /**
35690
- * * Field Name: CategoryPath
35691
- * * Display Name: Category Path
35692
- * * SQL Data Type: nvarchar(500)
35693
- * * Description: Category path for RunQuery data sources (e.g., "/MJ/AI/Agents/")
35694
- */
35695
- get CategoryPath() {
35696
- return this.Get('CategoryPath');
35697
- }
35698
- set CategoryPath(value) {
35699
- this.Set('CategoryPath', value);
35700
- }
35701
- /**
35702
- * * Field Name: Parameters
35703
- * * Display Name: Parameters
35704
- * * SQL Data Type: nvarchar(MAX)
35705
- * * Description: JSON object of parameters for RunQuery data sources (e.g., {"organizationId": "123"})
36465
+ * * Field Name: AIConfigurationID
36466
+ * * Display Name: AI Configuration ID
36467
+ * * SQL Data Type: uniqueidentifier
36468
+ * * Related Entity/Foreign Key: MJ: AI Configurations (vwAIConfigurations.ID)
36469
+ * * Description: Foreign Key - Optional AI Configuration to use for this preset. If NULL, uses default configuration (prompts with ConfigurationID IS NULL)
35706
36470
  */
35707
- get Parameters() {
35708
- return this.Get('Parameters');
36471
+ get AIConfigurationID() {
36472
+ return this.Get('AIConfigurationID');
35709
36473
  }
35710
- set Parameters(value) {
35711
- this.Set('Parameters', value);
36474
+ set AIConfigurationID(value) {
36475
+ this.Set('AIConfigurationID', value);
35712
36476
  }
35713
36477
  /**
35714
- * * Field Name: MaxRows
35715
- * * Display Name: Max Rows
35716
- * * SQL Data Type: int
35717
- * * Description: Maximum number of rows to return. Applies to both RunView and RunQuery.
36478
+ * * Field Name: IsDefault
36479
+ * * Display Name: Is Default
36480
+ * * SQL Data Type: bit
36481
+ * * Default Value: 0
36482
+ * * Description: Whether this is the default preset for the agent. Should have exactly one default per agent.
35718
36483
  */
35719
- get MaxRows() {
35720
- return this.Get('MaxRows');
36484
+ get IsDefault() {
36485
+ return this.Get('IsDefault');
35721
36486
  }
35722
- set MaxRows(value) {
35723
- this.Set('MaxRows', value);
36487
+ set IsDefault(value) {
36488
+ this.Set('IsDefault', value);
35724
36489
  }
35725
36490
  /**
35726
- * * Field Name: ExecutionOrder
35727
- * * Display Name: Execution Order
36491
+ * * Field Name: Priority
36492
+ * * Display Name: Priority
35728
36493
  * * SQL Data Type: int
35729
- * * Default Value: 0
35730
- * * Description: Execution order when multiple data sources are defined for an agent (lower numbers execute first)
36494
+ * * Default Value: 100
36495
+ * * Description: Display order for UI. Lower numbers appear first. Typical values: 100 (Default), 200 (Fast), 300 (Balanced), 400 (High Quality)
35731
36496
  */
35732
- get ExecutionOrder() {
35733
- return this.Get('ExecutionOrder');
36497
+ get Priority() {
36498
+ return this.Get('Priority');
35734
36499
  }
35735
- set ExecutionOrder(value) {
35736
- this.Set('ExecutionOrder', value);
36500
+ set Priority(value) {
36501
+ this.Set('Priority', value);
35737
36502
  }
35738
36503
  /**
35739
36504
  * * Field Name: Status
@@ -35743,8 +36508,9 @@ let AIAgentDataSourceEntity = class AIAgentDataSourceEntity extends core_1.BaseE
35743
36508
  * * Value List Type: List
35744
36509
  * * Possible Values
35745
36510
  * * Active
35746
- * * Disabled
35747
- * * Description: Status of the data source: Active or Disabled
36511
+ * * Pending
36512
+ * * Revoked
36513
+ * * Description: Status of the preset: Pending (being configured), Active (available for use), Revoked (no longer available)
35748
36514
  */
35749
36515
  get Status() {
35750
36516
  return this.Get('Status');
@@ -35753,66 +36519,391 @@ let AIAgentDataSourceEntity = class AIAgentDataSourceEntity extends core_1.BaseE
35753
36519
  this.Set('Status', value);
35754
36520
  }
35755
36521
  /**
35756
- * * Field Name: CachePolicy
35757
- * * Display Name: Cache Policy
35758
- * * SQL Data Type: nvarchar(20)
35759
- * * Default Value: None
35760
- * * Value List Type: List
35761
- * * Possible Values
35762
- * * None
35763
- * * PerAgent
35764
- * * PerRun
35765
- * * Description: Cache policy: None (no caching), PerRun (cache for duration of agent run), PerAgent (cache across runs with timeout)
35766
- */
35767
- get CachePolicy() {
35768
- return this.Get('CachePolicy');
35769
- }
35770
- set CachePolicy(value) {
35771
- this.Set('CachePolicy', value);
35772
- }
35773
- /**
35774
- * * Field Name: CacheTimeoutSeconds
35775
- * * Display Name: Cache Timeout Seconds
35776
- * * SQL Data Type: int
35777
- * * Description: Time-to-live in seconds for PerAgent cache policy. Ignored for other cache policies.
35778
- */
35779
- get CacheTimeoutSeconds() {
35780
- return this.Get('CacheTimeoutSeconds');
35781
- }
35782
- set CacheTimeoutSeconds(value) {
35783
- this.Set('CacheTimeoutSeconds', value);
35784
- }
35785
- /**
35786
- * * Field Name: DestinationType
35787
- * * Display Name: Destination Type
35788
- * * SQL Data Type: nvarchar(20)
35789
- * * Default Value: Data
35790
- * * Value List Type: List
35791
- * * Possible Values
35792
- * * Context
35793
- * * Data
35794
- * * Payload
35795
- * * Description: Destination for the preloaded data: Data (for Nunjucks templates in prompts), Context (for actions only), or Payload (for agent state)
35796
- */
35797
- get DestinationType() {
35798
- return this.Get('DestinationType');
35799
- }
35800
- set DestinationType(value) {
35801
- this.Set('DestinationType', value);
35802
- }
35803
- /**
35804
- * * Field Name: DestinationPath
35805
- * * Display Name: Destination Path
35806
- * * SQL Data Type: nvarchar(500)
35807
- * * Description: Path within the destination where data should be injected. Supports nested paths using dot notation (e.g., "config.api.endpoints", "analysis.orders.recent"). If null, uses Name as root-level key.
35808
- */
35809
- get DestinationPath() {
35810
- return this.Get('DestinationPath');
35811
- }
35812
- set DestinationPath(value) {
35813
- this.Set('DestinationPath', value);
35814
- }
35815
- /**
36522
+ * * Field Name: __mj_CreatedAt
36523
+ * * Display Name: Created At
36524
+ * * SQL Data Type: datetimeoffset
36525
+ * * Default Value: getutcdate()
36526
+ */
36527
+ get __mj_CreatedAt() {
36528
+ return this.Get('__mj_CreatedAt');
36529
+ }
36530
+ /**
36531
+ * * Field Name: __mj_UpdatedAt
36532
+ * * Display Name: Updated At
36533
+ * * SQL Data Type: datetimeoffset
36534
+ * * Default Value: getutcdate()
36535
+ */
36536
+ get __mj_UpdatedAt() {
36537
+ return this.Get('__mj_UpdatedAt');
36538
+ }
36539
+ /**
36540
+ * * Field Name: Agent
36541
+ * * Display Name: Agent
36542
+ * * SQL Data Type: nvarchar(255)
36543
+ */
36544
+ get Agent() {
36545
+ return this.Get('Agent');
36546
+ }
36547
+ /**
36548
+ * * Field Name: AIConfiguration
36549
+ * * Display Name: AI Configuration
36550
+ * * SQL Data Type: nvarchar(100)
36551
+ */
36552
+ get AIConfiguration() {
36553
+ return this.Get('AIConfiguration');
36554
+ }
36555
+ };
36556
+ exports.AIAgentConfigurationEntity = AIAgentConfigurationEntity;
36557
+ exports.AIAgentConfigurationEntity = AIAgentConfigurationEntity = __decorate([
36558
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Agent Configurations')
36559
+ ], AIAgentConfigurationEntity);
36560
+ /**
36561
+ * MJ: AI Agent Data Sources - strongly typed entity sub-class
36562
+ * * Schema: __mj
36563
+ * * Base Table: AIAgentDataSource
36564
+ * * Base View: vwAIAgentDataSources
36565
+ * * @description Defines data sources that should be preloaded into the data parameter before agent execution. Supports both RunView and RunQuery sources with configurable caching.
36566
+ * * Primary Key: ID
36567
+ * @extends {BaseEntity}
36568
+ * @class
36569
+ * @public
36570
+ */
36571
+ let AIAgentDataSourceEntity = class AIAgentDataSourceEntity extends core_1.BaseEntity {
36572
+ /**
36573
+ * Loads the MJ: AI Agent Data Sources record from the database
36574
+ * @param ID: string - primary key value to load the MJ: AI Agent Data Sources record.
36575
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
36576
+ * @returns {Promise<boolean>} - true if successful, false otherwise
36577
+ * @public
36578
+ * @async
36579
+ * @memberof AIAgentDataSourceEntity
36580
+ * @method
36581
+ * @override
36582
+ */
36583
+ async Load(ID, EntityRelationshipsToLoad) {
36584
+ const compositeKey = new core_1.CompositeKey();
36585
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
36586
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
36587
+ }
36588
+ /**
36589
+ * Validate() method override for MJ: AI Agent Data Sources entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
36590
+ * * Table-Level: This rule ensures that if the cache policy is set to 'PerAgent', a cache timeout value must be provided. For other cache policies, providing a cache timeout is optional.
36591
+ * * Table-Level: This rule makes sure that if the source type is 'RunView', the entity name must be provided. If the source type is anything else, the entity name can be left blank.
36592
+ * * Table-Level: This rule ensures that when the Source Type is set to 'RunQuery', a Query Name must be provided. If Source Type is anything other than 'RunQuery', Query Name is optional.
36593
+ * @public
36594
+ * @method
36595
+ * @override
36596
+ */
36597
+ Validate() {
36598
+ const result = super.Validate();
36599
+ this.ValidateCacheTimeoutSecondsRequiredForPerAgentPolicy(result);
36600
+ this.ValidateEntityNameRequiredWhenSourceTypeRunView(result);
36601
+ this.ValidateQueryNameRequiredWhenSourceTypeIsRunQuery(result);
36602
+ result.Success = result.Success && (result.Errors.length === 0);
36603
+ return result;
36604
+ }
36605
+ /**
36606
+ * This rule ensures that if the cache policy is set to 'PerAgent', a cache timeout value must be provided. For other cache policies, providing a cache timeout is optional.
36607
+ * @param result - the ValidationResult object to add any errors or warnings to
36608
+ * @public
36609
+ * @method
36610
+ */
36611
+ ValidateCacheTimeoutSecondsRequiredForPerAgentPolicy(result) {
36612
+ if (this.CachePolicy === "PerAgent" && this.CacheTimeoutSeconds == null) {
36613
+ result.Errors.push(new core_1.ValidationErrorInfo("CacheTimeoutSeconds", "When the cache policy is set to 'PerAgent', you must specify a cache timeout value.", this.CacheTimeoutSeconds, core_1.ValidationErrorType.Failure));
36614
+ }
36615
+ }
36616
+ /**
36617
+ * This rule makes sure that if the source type is 'RunView', the entity name must be provided. If the source type is anything else, the entity name can be left blank.
36618
+ * @param result - the ValidationResult object to add any errors or warnings to
36619
+ * @public
36620
+ * @method
36621
+ */
36622
+ ValidateEntityNameRequiredWhenSourceTypeRunView(result) {
36623
+ if (this.SourceType === "RunView" && this.EntityName == null) {
36624
+ result.Errors.push(new core_1.ValidationErrorInfo("EntityName", "EntityName is required when SourceType is 'RunView'.", this.EntityName, core_1.ValidationErrorType.Failure));
36625
+ }
36626
+ }
36627
+ /**
36628
+ * This rule ensures that when the Source Type is set to 'RunQuery', a Query Name must be provided. If Source Type is anything other than 'RunQuery', Query Name is optional.
36629
+ * @param result - the ValidationResult object to add any errors or warnings to
36630
+ * @public
36631
+ * @method
36632
+ */
36633
+ ValidateQueryNameRequiredWhenSourceTypeIsRunQuery(result) {
36634
+ if (this.SourceType === "RunQuery" && this.QueryName == null) {
36635
+ result.Errors.push(new core_1.ValidationErrorInfo("QueryName", "The query name must be provided when Source Type is 'RunQuery'.", this.QueryName, core_1.ValidationErrorType.Failure));
36636
+ }
36637
+ }
36638
+ /**
36639
+ * * Field Name: ID
36640
+ * * Display Name: ID
36641
+ * * SQL Data Type: uniqueidentifier
36642
+ * * Default Value: newsequentialid()
36643
+ */
36644
+ get ID() {
36645
+ return this.Get('ID');
36646
+ }
36647
+ set ID(value) {
36648
+ this.Set('ID', value);
36649
+ }
36650
+ /**
36651
+ * * Field Name: AgentID
36652
+ * * Display Name: Agent ID
36653
+ * * SQL Data Type: uniqueidentifier
36654
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
36655
+ */
36656
+ get AgentID() {
36657
+ return this.Get('AgentID');
36658
+ }
36659
+ set AgentID(value) {
36660
+ this.Set('AgentID', value);
36661
+ }
36662
+ /**
36663
+ * * Field Name: Name
36664
+ * * Display Name: Name
36665
+ * * SQL Data Type: nvarchar(255)
36666
+ * * Description: Variable name for the data in the data parameter (e.g., "ALL_ENTITIES"). Must be unique within an agent.
36667
+ */
36668
+ get Name() {
36669
+ return this.Get('Name');
36670
+ }
36671
+ set Name(value) {
36672
+ this.Set('Name', value);
36673
+ }
36674
+ /**
36675
+ * * Field Name: Description
36676
+ * * Display Name: Description
36677
+ * * SQL Data Type: nvarchar(MAX)
36678
+ * * Description: Description of what this data source provides
36679
+ */
36680
+ get Description() {
36681
+ return this.Get('Description');
36682
+ }
36683
+ set Description(value) {
36684
+ this.Set('Description', value);
36685
+ }
36686
+ /**
36687
+ * * Field Name: SourceType
36688
+ * * Display Name: Source Type
36689
+ * * SQL Data Type: nvarchar(20)
36690
+ * * Default Value: RunView
36691
+ * * Value List Type: List
36692
+ * * Possible Values
36693
+ * * RunQuery
36694
+ * * RunView
36695
+ * * Description: Type of data source: RunView or RunQuery. Determines which parameters are used.
36696
+ */
36697
+ get SourceType() {
36698
+ return this.Get('SourceType');
36699
+ }
36700
+ set SourceType(value) {
36701
+ this.Set('SourceType', value);
36702
+ }
36703
+ /**
36704
+ * * Field Name: EntityName
36705
+ * * Display Name: Entity Name
36706
+ * * SQL Data Type: nvarchar(255)
36707
+ * * Description: Entity name for RunView data sources (e.g., "Entities", "AI Models")
36708
+ */
36709
+ get EntityName() {
36710
+ return this.Get('EntityName');
36711
+ }
36712
+ set EntityName(value) {
36713
+ this.Set('EntityName', value);
36714
+ }
36715
+ /**
36716
+ * * Field Name: ExtraFilter
36717
+ * * Display Name: Extra Filter
36718
+ * * SQL Data Type: nvarchar(MAX)
36719
+ * * Description: SQL WHERE clause filter for RunView data sources
36720
+ */
36721
+ get ExtraFilter() {
36722
+ return this.Get('ExtraFilter');
36723
+ }
36724
+ set ExtraFilter(value) {
36725
+ this.Set('ExtraFilter', value);
36726
+ }
36727
+ /**
36728
+ * * Field Name: OrderBy
36729
+ * * Display Name: Order By
36730
+ * * SQL Data Type: nvarchar(500)
36731
+ * * Description: SQL ORDER BY clause for RunView data sources
36732
+ */
36733
+ get OrderBy() {
36734
+ return this.Get('OrderBy');
36735
+ }
36736
+ set OrderBy(value) {
36737
+ this.Set('OrderBy', value);
36738
+ }
36739
+ /**
36740
+ * * Field Name: FieldsToRetrieve
36741
+ * * Display Name: Fields To Retrieve
36742
+ * * SQL Data Type: nvarchar(MAX)
36743
+ * * Description: JSON array of field names to return for RunView data sources (e.g., ["ID", "Name", "Description"])
36744
+ */
36745
+ get FieldsToRetrieve() {
36746
+ return this.Get('FieldsToRetrieve');
36747
+ }
36748
+ set FieldsToRetrieve(value) {
36749
+ this.Set('FieldsToRetrieve', value);
36750
+ }
36751
+ /**
36752
+ * * Field Name: ResultType
36753
+ * * Display Name: Result Type
36754
+ * * SQL Data Type: nvarchar(20)
36755
+ * * Default Value: simple
36756
+ * * Value List Type: List
36757
+ * * Possible Values
36758
+ * * entity_object
36759
+ * * simple
36760
+ * * Description: Result type for RunView: simple (default) or entity_object
36761
+ */
36762
+ get ResultType() {
36763
+ return this.Get('ResultType');
36764
+ }
36765
+ set ResultType(value) {
36766
+ this.Set('ResultType', value);
36767
+ }
36768
+ /**
36769
+ * * Field Name: QueryName
36770
+ * * Display Name: Query Name
36771
+ * * SQL Data Type: nvarchar(255)
36772
+ * * Description: Query name for RunQuery data sources
36773
+ */
36774
+ get QueryName() {
36775
+ return this.Get('QueryName');
36776
+ }
36777
+ set QueryName(value) {
36778
+ this.Set('QueryName', value);
36779
+ }
36780
+ /**
36781
+ * * Field Name: CategoryPath
36782
+ * * Display Name: Category Path
36783
+ * * SQL Data Type: nvarchar(500)
36784
+ * * Description: Category path for RunQuery data sources (e.g., "/MJ/AI/Agents/")
36785
+ */
36786
+ get CategoryPath() {
36787
+ return this.Get('CategoryPath');
36788
+ }
36789
+ set CategoryPath(value) {
36790
+ this.Set('CategoryPath', value);
36791
+ }
36792
+ /**
36793
+ * * Field Name: Parameters
36794
+ * * Display Name: Parameters
36795
+ * * SQL Data Type: nvarchar(MAX)
36796
+ * * Description: JSON object of parameters for RunQuery data sources (e.g., {"organizationId": "123"})
36797
+ */
36798
+ get Parameters() {
36799
+ return this.Get('Parameters');
36800
+ }
36801
+ set Parameters(value) {
36802
+ this.Set('Parameters', value);
36803
+ }
36804
+ /**
36805
+ * * Field Name: MaxRows
36806
+ * * Display Name: Max Rows
36807
+ * * SQL Data Type: int
36808
+ * * Description: Maximum number of rows to return. Applies to both RunView and RunQuery.
36809
+ */
36810
+ get MaxRows() {
36811
+ return this.Get('MaxRows');
36812
+ }
36813
+ set MaxRows(value) {
36814
+ this.Set('MaxRows', value);
36815
+ }
36816
+ /**
36817
+ * * Field Name: ExecutionOrder
36818
+ * * Display Name: Execution Order
36819
+ * * SQL Data Type: int
36820
+ * * Default Value: 0
36821
+ * * Description: Execution order when multiple data sources are defined for an agent (lower numbers execute first)
36822
+ */
36823
+ get ExecutionOrder() {
36824
+ return this.Get('ExecutionOrder');
36825
+ }
36826
+ set ExecutionOrder(value) {
36827
+ this.Set('ExecutionOrder', value);
36828
+ }
36829
+ /**
36830
+ * * Field Name: Status
36831
+ * * Display Name: Status
36832
+ * * SQL Data Type: nvarchar(20)
36833
+ * * Default Value: Active
36834
+ * * Value List Type: List
36835
+ * * Possible Values
36836
+ * * Active
36837
+ * * Disabled
36838
+ * * Description: Status of the data source: Active or Disabled
36839
+ */
36840
+ get Status() {
36841
+ return this.Get('Status');
36842
+ }
36843
+ set Status(value) {
36844
+ this.Set('Status', value);
36845
+ }
36846
+ /**
36847
+ * * Field Name: CachePolicy
36848
+ * * Display Name: Cache Policy
36849
+ * * SQL Data Type: nvarchar(20)
36850
+ * * Default Value: None
36851
+ * * Value List Type: List
36852
+ * * Possible Values
36853
+ * * None
36854
+ * * PerAgent
36855
+ * * PerRun
36856
+ * * Description: Cache policy: None (no caching), PerRun (cache for duration of agent run), PerAgent (cache across runs with timeout)
36857
+ */
36858
+ get CachePolicy() {
36859
+ return this.Get('CachePolicy');
36860
+ }
36861
+ set CachePolicy(value) {
36862
+ this.Set('CachePolicy', value);
36863
+ }
36864
+ /**
36865
+ * * Field Name: CacheTimeoutSeconds
36866
+ * * Display Name: Cache Timeout Seconds
36867
+ * * SQL Data Type: int
36868
+ * * Description: Time-to-live in seconds for PerAgent cache policy. Ignored for other cache policies.
36869
+ */
36870
+ get CacheTimeoutSeconds() {
36871
+ return this.Get('CacheTimeoutSeconds');
36872
+ }
36873
+ set CacheTimeoutSeconds(value) {
36874
+ this.Set('CacheTimeoutSeconds', value);
36875
+ }
36876
+ /**
36877
+ * * Field Name: DestinationType
36878
+ * * Display Name: Destination Type
36879
+ * * SQL Data Type: nvarchar(20)
36880
+ * * Default Value: Data
36881
+ * * Value List Type: List
36882
+ * * Possible Values
36883
+ * * Context
36884
+ * * Data
36885
+ * * Payload
36886
+ * * Description: Destination for the preloaded data: Data (for Nunjucks templates in prompts), Context (for actions only), or Payload (for agent state)
36887
+ */
36888
+ get DestinationType() {
36889
+ return this.Get('DestinationType');
36890
+ }
36891
+ set DestinationType(value) {
36892
+ this.Set('DestinationType', value);
36893
+ }
36894
+ /**
36895
+ * * Field Name: DestinationPath
36896
+ * * Display Name: Destination Path
36897
+ * * SQL Data Type: nvarchar(500)
36898
+ * * Description: Path within the destination where data should be injected. Supports nested paths using dot notation (e.g., "config.api.endpoints", "analysis.orders.recent"). If null, uses Name as root-level key.
36899
+ */
36900
+ get DestinationPath() {
36901
+ return this.Get('DestinationPath');
36902
+ }
36903
+ set DestinationPath(value) {
36904
+ this.Set('DestinationPath', value);
36905
+ }
36906
+ /**
35816
36907
  * * Field Name: __mj_CreatedAt
35817
36908
  * * Display Name: Created At
35818
36909
  * * SQL Data Type: datetimeoffset
@@ -37730,6 +38821,19 @@ each time the agent processes a prompt step.
37730
38821
  this.Set('ScheduledJobRunID', value);
37731
38822
  }
37732
38823
  /**
38824
+ * * Field Name: TestRunID
38825
+ * * Display Name: Test Run ID
38826
+ * * SQL Data Type: uniqueidentifier
38827
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
38828
+ * * Description: Optional Foreign Key - Links this agent run to a test run if this execution was part of a test. Allows navigation from agent execution to test context.
38829
+ */
38830
+ get TestRunID() {
38831
+ return this.Get('TestRunID');
38832
+ }
38833
+ set TestRunID(value) {
38834
+ this.Set('TestRunID', value);
38835
+ }
38836
+ /**
37733
38837
  * * Field Name: Agent
37734
38838
  * * Display Name: Agent
37735
38839
  * * SQL Data Type: nvarchar(255)
@@ -37738,6 +38842,14 @@ each time the agent processes a prompt step.
37738
38842
  return this.Get('Agent');
37739
38843
  }
37740
38844
  /**
38845
+ * * Field Name: ParentRun
38846
+ * * Display Name: Parent Run
38847
+ * * SQL Data Type: nvarchar(255)
38848
+ */
38849
+ get ParentRun() {
38850
+ return this.Get('ParentRun');
38851
+ }
38852
+ /**
37741
38853
  * * Field Name: Conversation
37742
38854
  * * Display Name: Conversation
37743
38855
  * * SQL Data Type: nvarchar(255)
@@ -37754,6 +38866,22 @@ each time the agent processes a prompt step.
37754
38866
  return this.Get('User');
37755
38867
  }
37756
38868
  /**
38869
+ * * Field Name: ConversationDetail
38870
+ * * Display Name: Conversation Detail
38871
+ * * SQL Data Type: nvarchar(MAX)
38872
+ */
38873
+ get ConversationDetail() {
38874
+ return this.Get('ConversationDetail');
38875
+ }
38876
+ /**
38877
+ * * Field Name: LastRun
38878
+ * * Display Name: Last Run
38879
+ * * SQL Data Type: nvarchar(255)
38880
+ */
38881
+ get LastRun() {
38882
+ return this.Get('LastRun');
38883
+ }
38884
+ /**
37757
38885
  * * Field Name: Configuration
37758
38886
  * * Display Name: Configuration
37759
38887
  * * SQL Data Type: nvarchar(100)
@@ -37778,6 +38906,14 @@ each time the agent processes a prompt step.
37778
38906
  return this.Get('OverrideVendor');
37779
38907
  }
37780
38908
  /**
38909
+ * * Field Name: ScheduledJobRun
38910
+ * * Display Name: Scheduled Job Run
38911
+ * * SQL Data Type: nvarchar(200)
38912
+ */
38913
+ get ScheduledJobRun() {
38914
+ return this.Get('ScheduledJobRun');
38915
+ }
38916
+ /**
37781
38917
  * * Field Name: RootParentRunID
37782
38918
  * * Display Name: Root Parent Run ID
37783
38919
  * * SQL Data Type: uniqueidentifier
@@ -41145,6 +42281,19 @@ let AIPromptRunEntity = class AIPromptRunEntity extends core_1.BaseEntity {
41145
42281
  this.Set('Comments', value);
41146
42282
  }
41147
42283
  /**
42284
+ * * Field Name: TestRunID
42285
+ * * Display Name: Test Run ID
42286
+ * * SQL Data Type: uniqueidentifier
42287
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
42288
+ * * Description: Optional Foreign Key - Links this prompt run to a test run if this prompt execution was part of a test. Enables testing individual prompts for quality and consistency before agent integration.
42289
+ */
42290
+ get TestRunID() {
42291
+ return this.Get('TestRunID');
42292
+ }
42293
+ set TestRunID(value) {
42294
+ this.Set('TestRunID', value);
42295
+ }
42296
+ /**
41148
42297
  * * Field Name: Prompt
41149
42298
  * * Display Name: Prompt
41150
42299
  * * SQL Data Type: nvarchar(255)
@@ -41185,6 +42334,22 @@ let AIPromptRunEntity = class AIPromptRunEntity extends core_1.BaseEntity {
41185
42334
  return this.Get('Configuration');
41186
42335
  }
41187
42336
  /**
42337
+ * * Field Name: Parent
42338
+ * * Display Name: Parent
42339
+ * * SQL Data Type: nvarchar(255)
42340
+ */
42341
+ get Parent() {
42342
+ return this.Get('Parent');
42343
+ }
42344
+ /**
42345
+ * * Field Name: AgentRun
42346
+ * * Display Name: Agent Run
42347
+ * * SQL Data Type: nvarchar(255)
42348
+ */
42349
+ get AgentRun() {
42350
+ return this.Get('AgentRun');
42351
+ }
42352
+ /**
41188
42353
  * * Field Name: OriginalModel
41189
42354
  * * Display Name: Original Model
41190
42355
  * * SQL Data Type: nvarchar(50)
@@ -41193,6 +42358,14 @@ let AIPromptRunEntity = class AIPromptRunEntity extends core_1.BaseEntity {
41193
42358
  return this.Get('OriginalModel');
41194
42359
  }
41195
42360
  /**
42361
+ * * Field Name: RerunFromPromptRun
42362
+ * * Display Name: Rerun From Prompt Run
42363
+ * * SQL Data Type: nvarchar(255)
42364
+ */
42365
+ get RerunFromPromptRun() {
42366
+ return this.Get('RerunFromPromptRun');
42367
+ }
42368
+ /**
41196
42369
  * * Field Name: Judge
41197
42370
  * * Display Name: Judge
41198
42371
  * * SQL Data Type: nvarchar(255)
@@ -41881,6 +43054,18 @@ let ArtifactTypeEntity = class ArtifactTypeEntity extends core_1.BaseEntity {
41881
43054
  this.Set('DriverClass', value);
41882
43055
  }
41883
43056
  /**
43057
+ * * Field Name: Icon
43058
+ * * Display Name: Icon
43059
+ * * SQL Data Type: nvarchar(255)
43060
+ * * Description: Font Awesome icon class name for displaying this artifact type in the UI (e.g., fa-file-code, fa-chart-line)
43061
+ */
43062
+ get Icon() {
43063
+ return this.Get('Icon');
43064
+ }
43065
+ set Icon(value) {
43066
+ this.Set('Icon', value);
43067
+ }
43068
+ /**
41884
43069
  * * Field Name: Parent
41885
43070
  * * Display Name: Parent
41886
43071
  * * SQL Data Type: nvarchar(100)
@@ -47576,6 +48761,1669 @@ exports.TaskEntity = TaskEntity;
47576
48761
  exports.TaskEntity = TaskEntity = __decorate([
47577
48762
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Tasks')
47578
48763
  ], TaskEntity);
48764
+ /**
48765
+ * MJ: Test Rubrics - strongly typed entity sub-class
48766
+ * * Schema: __mj
48767
+ * * Base Table: TestRubric
48768
+ * * Base View: vwTestRubrics
48769
+ * * @description Reusable evaluation criteria (rubrics) for consistent scoring across tests. Rubrics define structured evaluation dimensions and can include LLM prompts for automated judgment. Particularly useful for LLM-as-judge patterns where consistent evaluation criteria are critical.
48770
+ * * Primary Key: ID
48771
+ * @extends {BaseEntity}
48772
+ * @class
48773
+ * @public
48774
+ */
48775
+ let TestRubricEntity = class TestRubricEntity extends core_1.BaseEntity {
48776
+ /**
48777
+ * Loads the MJ: Test Rubrics record from the database
48778
+ * @param ID: string - primary key value to load the MJ: Test Rubrics record.
48779
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
48780
+ * @returns {Promise<boolean>} - true if successful, false otherwise
48781
+ * @public
48782
+ * @async
48783
+ * @memberof TestRubricEntity
48784
+ * @method
48785
+ * @override
48786
+ */
48787
+ async Load(ID, EntityRelationshipsToLoad) {
48788
+ const compositeKey = new core_1.CompositeKey();
48789
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
48790
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
48791
+ }
48792
+ /**
48793
+ * * Field Name: ID
48794
+ * * Display Name: ID
48795
+ * * SQL Data Type: uniqueidentifier
48796
+ * * Default Value: newsequentialid()
48797
+ */
48798
+ get ID() {
48799
+ return this.Get('ID');
48800
+ }
48801
+ set ID(value) {
48802
+ this.Set('ID', value);
48803
+ }
48804
+ /**
48805
+ * * Field Name: TypeID
48806
+ * * Display Name: Type ID
48807
+ * * SQL Data Type: uniqueidentifier
48808
+ * * Related Entity/Foreign Key: MJ: Test Types (vwTestTypes.ID)
48809
+ * * Description: Foreign Key - The test type this rubric applies to (e.g., Agent Eval, Code Generation)
48810
+ */
48811
+ get TypeID() {
48812
+ return this.Get('TypeID');
48813
+ }
48814
+ set TypeID(value) {
48815
+ this.Set('TypeID', value);
48816
+ }
48817
+ /**
48818
+ * * Field Name: Name
48819
+ * * Display Name: Name
48820
+ * * SQL Data Type: nvarchar(255)
48821
+ * * Description: Unique name for the rubric (e.g., "Component Quality Rubric v1", "Agent Response Quality")
48822
+ */
48823
+ get Name() {
48824
+ return this.Get('Name');
48825
+ }
48826
+ set Name(value) {
48827
+ this.Set('Name', value);
48828
+ }
48829
+ /**
48830
+ * * Field Name: Description
48831
+ * * Display Name: Description
48832
+ * * SQL Data Type: nvarchar(MAX)
48833
+ * * Description: Description of what this rubric evaluates and when to use it
48834
+ */
48835
+ get Description() {
48836
+ return this.Get('Description');
48837
+ }
48838
+ set Description(value) {
48839
+ this.Set('Description', value);
48840
+ }
48841
+ /**
48842
+ * * Field Name: PromptTemplate
48843
+ * * Display Name: Prompt Template
48844
+ * * SQL Data Type: nvarchar(MAX)
48845
+ * * Description: LLM prompt template for automated judgment. Can include placeholders for test inputs/outputs (e.g., "Evaluate the following React component for correctness, UX, and maintainability...")
48846
+ */
48847
+ get PromptTemplate() {
48848
+ return this.Get('PromptTemplate');
48849
+ }
48850
+ set PromptTemplate(value) {
48851
+ this.Set('PromptTemplate', value);
48852
+ }
48853
+ /**
48854
+ * * Field Name: Criteria
48855
+ * * Display Name: Criteria
48856
+ * * SQL Data Type: nvarchar(MAX)
48857
+ * * Description: JSON object defining structured evaluation criteria with dimensions, weights, and scoring guidance (e.g., {correctness: {weight: 0.4, description: "..."}, ux: {weight: 0.3, description: "..."}})
48858
+ */
48859
+ get Criteria() {
48860
+ return this.Get('Criteria');
48861
+ }
48862
+ set Criteria(value) {
48863
+ this.Set('Criteria', value);
48864
+ }
48865
+ /**
48866
+ * * Field Name: Version
48867
+ * * Display Name: Version
48868
+ * * SQL Data Type: nvarchar(50)
48869
+ * * Description: Version identifier for the rubric. Allows tracking changes and comparing results across rubric versions.
48870
+ */
48871
+ get Version() {
48872
+ return this.Get('Version');
48873
+ }
48874
+ set Version(value) {
48875
+ this.Set('Version', value);
48876
+ }
48877
+ /**
48878
+ * * Field Name: Status
48879
+ * * Display Name: Status
48880
+ * * SQL Data Type: nvarchar(20)
48881
+ * * Default Value: Active
48882
+ * * Value List Type: List
48883
+ * * Possible Values
48884
+ * * Active
48885
+ * * Disabled
48886
+ * * Pending
48887
+ * * Description: Status of the rubric: Pending (under development), Active (available for use), Disabled (deprecated)
48888
+ */
48889
+ get Status() {
48890
+ return this.Get('Status');
48891
+ }
48892
+ set Status(value) {
48893
+ this.Set('Status', value);
48894
+ }
48895
+ /**
48896
+ * * Field Name: __mj_CreatedAt
48897
+ * * Display Name: Created At
48898
+ * * SQL Data Type: datetimeoffset
48899
+ * * Default Value: getutcdate()
48900
+ */
48901
+ get __mj_CreatedAt() {
48902
+ return this.Get('__mj_CreatedAt');
48903
+ }
48904
+ /**
48905
+ * * Field Name: __mj_UpdatedAt
48906
+ * * Display Name: Updated At
48907
+ * * SQL Data Type: datetimeoffset
48908
+ * * Default Value: getutcdate()
48909
+ */
48910
+ get __mj_UpdatedAt() {
48911
+ return this.Get('__mj_UpdatedAt');
48912
+ }
48913
+ /**
48914
+ * * Field Name: Type
48915
+ * * Display Name: Type
48916
+ * * SQL Data Type: nvarchar(100)
48917
+ */
48918
+ get Type() {
48919
+ return this.Get('Type');
48920
+ }
48921
+ };
48922
+ exports.TestRubricEntity = TestRubricEntity;
48923
+ exports.TestRubricEntity = TestRubricEntity = __decorate([
48924
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Test Rubrics')
48925
+ ], TestRubricEntity);
48926
+ /**
48927
+ * MJ: Test Run Feedbacks - strongly typed entity sub-class
48928
+ * * Schema: __mj
48929
+ * * Base Table: TestRunFeedback
48930
+ * * Base View: vwTestRunFeedbacks
48931
+ * * @description Human-in-the-loop feedback on test run results. Allows human reviewers to validate, correct, or override automated test results. Essential for training and improving automated evaluation criteria.
48932
+ * * Primary Key: ID
48933
+ * @extends {BaseEntity}
48934
+ * @class
48935
+ * @public
48936
+ */
48937
+ let TestRunFeedbackEntity = class TestRunFeedbackEntity extends core_1.BaseEntity {
48938
+ /**
48939
+ * Loads the MJ: Test Run Feedbacks record from the database
48940
+ * @param ID: string - primary key value to load the MJ: Test Run Feedbacks record.
48941
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
48942
+ * @returns {Promise<boolean>} - true if successful, false otherwise
48943
+ * @public
48944
+ * @async
48945
+ * @memberof TestRunFeedbackEntity
48946
+ * @method
48947
+ * @override
48948
+ */
48949
+ async Load(ID, EntityRelationshipsToLoad) {
48950
+ const compositeKey = new core_1.CompositeKey();
48951
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
48952
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
48953
+ }
48954
+ /**
48955
+ * Validate() method override for MJ: Test Run Feedbacks entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
48956
+ * * Rating: When a rating is provided, it must be a whole number from 1 up to 10. This ensures that every recorded rating falls within the allowed scoring range.
48957
+ * @public
48958
+ * @method
48959
+ * @override
48960
+ */
48961
+ Validate() {
48962
+ const result = super.Validate();
48963
+ this.ValidateRatingRange(result);
48964
+ result.Success = result.Success && (result.Errors.length === 0);
48965
+ return result;
48966
+ }
48967
+ /**
48968
+ * When a rating is provided, it must be a whole number from 1 up to 10. This ensures that every recorded rating falls within the allowed scoring range.
48969
+ * @param result - the ValidationResult object to add any errors or warnings to
48970
+ * @public
48971
+ * @method
48972
+ */
48973
+ ValidateRatingRange(result) {
48974
+ if (this.Rating != null && (this.Rating < 1 || this.Rating > 10)) {
48975
+ result.Errors.push(new core_1.ValidationErrorInfo("Rating", "Rating must be between 1 and 10.", this.Rating, core_1.ValidationErrorType.Failure));
48976
+ }
48977
+ }
48978
+ /**
48979
+ * * Field Name: ID
48980
+ * * Display Name: ID
48981
+ * * SQL Data Type: uniqueidentifier
48982
+ * * Default Value: newsequentialid()
48983
+ */
48984
+ get ID() {
48985
+ return this.Get('ID');
48986
+ }
48987
+ set ID(value) {
48988
+ this.Set('ID', value);
48989
+ }
48990
+ /**
48991
+ * * Field Name: TestRunID
48992
+ * * Display Name: Test Run ID
48993
+ * * SQL Data Type: uniqueidentifier
48994
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
48995
+ * * Description: Foreign Key - The test run being reviewed
48996
+ */
48997
+ get TestRunID() {
48998
+ return this.Get('TestRunID');
48999
+ }
49000
+ set TestRunID(value) {
49001
+ this.Set('TestRunID', value);
49002
+ }
49003
+ /**
49004
+ * * Field Name: ReviewerUserID
49005
+ * * Display Name: Reviewer User ID
49006
+ * * SQL Data Type: uniqueidentifier
49007
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
49008
+ * * Description: Foreign Key - The user providing the feedback
49009
+ */
49010
+ get ReviewerUserID() {
49011
+ return this.Get('ReviewerUserID');
49012
+ }
49013
+ set ReviewerUserID(value) {
49014
+ this.Set('ReviewerUserID', value);
49015
+ }
49016
+ /**
49017
+ * * Field Name: Rating
49018
+ * * Display Name: Rating
49019
+ * * SQL Data Type: int
49020
+ * * Description: Numeric rating from 1 (poor) to 10 (excellent). Allows quantitative tracking of result quality.
49021
+ */
49022
+ get Rating() {
49023
+ return this.Get('Rating');
49024
+ }
49025
+ set Rating(value) {
49026
+ this.Set('Rating', value);
49027
+ }
49028
+ /**
49029
+ * * Field Name: IsCorrect
49030
+ * * Display Name: Is Correct
49031
+ * * SQL Data Type: bit
49032
+ * * Description: Boolean indicating if the automated test result was correct. Can override automated Pass/Fail status.
49033
+ */
49034
+ get IsCorrect() {
49035
+ return this.Get('IsCorrect');
49036
+ }
49037
+ set IsCorrect(value) {
49038
+ this.Set('IsCorrect', value);
49039
+ }
49040
+ /**
49041
+ * * Field Name: CorrectionSummary
49042
+ * * Display Name: Correction Summary
49043
+ * * SQL Data Type: nvarchar(MAX)
49044
+ * * Description: Summary of corrections or adjustments made by the human reviewer
49045
+ */
49046
+ get CorrectionSummary() {
49047
+ return this.Get('CorrectionSummary');
49048
+ }
49049
+ set CorrectionSummary(value) {
49050
+ this.Set('CorrectionSummary', value);
49051
+ }
49052
+ /**
49053
+ * * Field Name: Comments
49054
+ * * Display Name: Comments
49055
+ * * SQL Data Type: nvarchar(MAX)
49056
+ * * Description: Free-form comments from the reviewer about the test result, quality, or issues found
49057
+ */
49058
+ get Comments() {
49059
+ return this.Get('Comments');
49060
+ }
49061
+ set Comments(value) {
49062
+ this.Set('Comments', value);
49063
+ }
49064
+ /**
49065
+ * * Field Name: ReviewedAt
49066
+ * * Display Name: Reviewed At
49067
+ * * SQL Data Type: datetime
49068
+ * * Default Value: getdate()
49069
+ * * Description: Timestamp when the feedback was provided
49070
+ */
49071
+ get ReviewedAt() {
49072
+ return this.Get('ReviewedAt');
49073
+ }
49074
+ set ReviewedAt(value) {
49075
+ this.Set('ReviewedAt', value);
49076
+ }
49077
+ /**
49078
+ * * Field Name: __mj_CreatedAt
49079
+ * * Display Name: Created At
49080
+ * * SQL Data Type: datetimeoffset
49081
+ * * Default Value: getutcdate()
49082
+ */
49083
+ get __mj_CreatedAt() {
49084
+ return this.Get('__mj_CreatedAt');
49085
+ }
49086
+ /**
49087
+ * * Field Name: __mj_UpdatedAt
49088
+ * * Display Name: Updated At
49089
+ * * SQL Data Type: datetimeoffset
49090
+ * * Default Value: getutcdate()
49091
+ */
49092
+ get __mj_UpdatedAt() {
49093
+ return this.Get('__mj_UpdatedAt');
49094
+ }
49095
+ /**
49096
+ * * Field Name: ReviewerUser
49097
+ * * Display Name: Reviewer User
49098
+ * * SQL Data Type: nvarchar(100)
49099
+ */
49100
+ get ReviewerUser() {
49101
+ return this.Get('ReviewerUser');
49102
+ }
49103
+ };
49104
+ exports.TestRunFeedbackEntity = TestRunFeedbackEntity;
49105
+ exports.TestRunFeedbackEntity = TestRunFeedbackEntity = __decorate([
49106
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Test Run Feedbacks')
49107
+ ], TestRunFeedbackEntity);
49108
+ /**
49109
+ * MJ: Test Runs - strongly typed entity sub-class
49110
+ * * Schema: __mj
49111
+ * * Base Table: TestRun
49112
+ * * Base View: vwTestRuns
49113
+ * * @description Execution instance of a single test. Captures inputs, outputs, results, and links to the target being tested (e.g., Agent Run). Can be part of a suite run or standalone. The TargetLogID links to type-specific execution logs (AgentRun, WorkflowRun, etc.) which contain the detailed trace information.
49114
+ * * Primary Key: ID
49115
+ * @extends {BaseEntity}
49116
+ * @class
49117
+ * @public
49118
+ */
49119
+ let TestRunEntity = class TestRunEntity extends core_1.BaseEntity {
49120
+ /**
49121
+ * Loads the MJ: Test Runs record from the database
49122
+ * @param ID: string - primary key value to load the MJ: Test Runs record.
49123
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
49124
+ * @returns {Promise<boolean>} - true if successful, false otherwise
49125
+ * @public
49126
+ * @async
49127
+ * @memberof TestRunEntity
49128
+ * @method
49129
+ * @override
49130
+ */
49131
+ async Load(ID, EntityRelationshipsToLoad) {
49132
+ const compositeKey = new core_1.CompositeKey();
49133
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
49134
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
49135
+ }
49136
+ /**
49137
+ * * Field Name: ID
49138
+ * * Display Name: ID
49139
+ * * SQL Data Type: uniqueidentifier
49140
+ * * Default Value: newsequentialid()
49141
+ */
49142
+ get ID() {
49143
+ return this.Get('ID');
49144
+ }
49145
+ set ID(value) {
49146
+ this.Set('ID', value);
49147
+ }
49148
+ /**
49149
+ * * Field Name: TestID
49150
+ * * Display Name: Test ID
49151
+ * * SQL Data Type: uniqueidentifier
49152
+ * * Related Entity/Foreign Key: MJ: Tests (vwTests.ID)
49153
+ * * Description: Foreign Key - The test definition that was executed
49154
+ */
49155
+ get TestID() {
49156
+ return this.Get('TestID');
49157
+ }
49158
+ set TestID(value) {
49159
+ this.Set('TestID', value);
49160
+ }
49161
+ /**
49162
+ * * Field Name: TestSuiteRunID
49163
+ * * Display Name: Test Suite Run ID
49164
+ * * SQL Data Type: uniqueidentifier
49165
+ * * Related Entity/Foreign Key: MJ: Test Suite Runs (vwTestSuiteRuns.ID)
49166
+ * * Description: Foreign Key - Optional parent suite run if this test was part of a suite execution. NULL for standalone test runs.
49167
+ */
49168
+ get TestSuiteRunID() {
49169
+ return this.Get('TestSuiteRunID');
49170
+ }
49171
+ set TestSuiteRunID(value) {
49172
+ this.Set('TestSuiteRunID', value);
49173
+ }
49174
+ /**
49175
+ * * Field Name: RunByUserID
49176
+ * * Display Name: Run By User ID
49177
+ * * SQL Data Type: uniqueidentifier
49178
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
49179
+ * * Description: Foreign Key - The user who triggered the test run (could be system user for automated runs)
49180
+ */
49181
+ get RunByUserID() {
49182
+ return this.Get('RunByUserID');
49183
+ }
49184
+ set RunByUserID(value) {
49185
+ this.Set('RunByUserID', value);
49186
+ }
49187
+ /**
49188
+ * * Field Name: Sequence
49189
+ * * Display Name: Sequence
49190
+ * * SQL Data Type: int
49191
+ * * Description: Execution sequence within the suite run. Indicates order of execution for tests in the same suite.
49192
+ */
49193
+ get Sequence() {
49194
+ return this.Get('Sequence');
49195
+ }
49196
+ set Sequence(value) {
49197
+ this.Set('Sequence', value);
49198
+ }
49199
+ /**
49200
+ * * Field Name: TargetType
49201
+ * * Display Name: Target Type
49202
+ * * SQL Data Type: nvarchar(100)
49203
+ * * Description: Type of the target being tested (e.g., "Agent Run", "Workflow Run", "Code Generation"). Polymorphic discriminator for TargetLogID.
49204
+ */
49205
+ get TargetType() {
49206
+ return this.Get('TargetType');
49207
+ }
49208
+ set TargetType(value) {
49209
+ this.Set('TargetType', value);
49210
+ }
49211
+ /**
49212
+ * * Field Name: TargetLogID
49213
+ * * Display Name: Target Log ID
49214
+ * * SQL Data Type: uniqueidentifier
49215
+ * * Description: ID of the target execution log (e.g., AIAgentRun.ID, WorkflowRun.ID). This is a soft FK - the actual entity depends on TargetType. The target entity should have a reverse FK back to TestRun for bidirectional navigation.
49216
+ */
49217
+ get TargetLogID() {
49218
+ return this.Get('TargetLogID');
49219
+ }
49220
+ set TargetLogID(value) {
49221
+ this.Set('TargetLogID', value);
49222
+ }
49223
+ /**
49224
+ * * Field Name: Status
49225
+ * * Display Name: Status
49226
+ * * SQL Data Type: nvarchar(20)
49227
+ * * Default Value: Pending
49228
+ * * Value List Type: List
49229
+ * * Possible Values
49230
+ * * Error
49231
+ * * Failed
49232
+ * * Passed
49233
+ * * Pending
49234
+ * * Running
49235
+ * * Skipped
49236
+ * * Description: Current status of the test run: Pending (queued), Running (in progress), Passed (all checks passed), Failed (at least one check failed), Skipped (not executed), Error (execution error before validation)
49237
+ */
49238
+ get Status() {
49239
+ return this.Get('Status');
49240
+ }
49241
+ set Status(value) {
49242
+ this.Set('Status', value);
49243
+ }
49244
+ /**
49245
+ * * Field Name: StartedAt
49246
+ * * Display Name: Started At
49247
+ * * SQL Data Type: datetime
49248
+ * * Description: Timestamp when the test run started execution
49249
+ */
49250
+ get StartedAt() {
49251
+ return this.Get('StartedAt');
49252
+ }
49253
+ set StartedAt(value) {
49254
+ this.Set('StartedAt', value);
49255
+ }
49256
+ /**
49257
+ * * Field Name: CompletedAt
49258
+ * * Display Name: Completed At
49259
+ * * SQL Data Type: datetime
49260
+ * * Description: Timestamp when the test run completed
49261
+ */
49262
+ get CompletedAt() {
49263
+ return this.Get('CompletedAt');
49264
+ }
49265
+ set CompletedAt(value) {
49266
+ this.Set('CompletedAt', value);
49267
+ }
49268
+ /**
49269
+ * * Field Name: DurationSeconds
49270
+ * * Display Name: Duration Seconds
49271
+ * * SQL Data Type: decimal(10, 3)
49272
+ * * Description: Execution time in seconds for this test
49273
+ */
49274
+ get DurationSeconds() {
49275
+ return this.Get('DurationSeconds');
49276
+ }
49277
+ set DurationSeconds(value) {
49278
+ this.Set('DurationSeconds', value);
49279
+ }
49280
+ /**
49281
+ * * Field Name: InputData
49282
+ * * Display Name: Input Data
49283
+ * * SQL Data Type: nvarchar(MAX)
49284
+ * * Description: JSON object with the actual inputs used for this test run (may differ from test definition if parameterized)
49285
+ */
49286
+ get InputData() {
49287
+ return this.Get('InputData');
49288
+ }
49289
+ set InputData(value) {
49290
+ this.Set('InputData', value);
49291
+ }
49292
+ /**
49293
+ * * Field Name: ExpectedOutputData
49294
+ * * Display Name: Expected Output Data
49295
+ * * SQL Data Type: nvarchar(MAX)
49296
+ * * Description: JSON object with the expected outputs/outcomes for this test run
49297
+ */
49298
+ get ExpectedOutputData() {
49299
+ return this.Get('ExpectedOutputData');
49300
+ }
49301
+ set ExpectedOutputData(value) {
49302
+ this.Set('ExpectedOutputData', value);
49303
+ }
49304
+ /**
49305
+ * * Field Name: ActualOutputData
49306
+ * * Display Name: Actual Output Data
49307
+ * * SQL Data Type: nvarchar(MAX)
49308
+ * * Description: JSON object with the actual outputs produced by the test execution
49309
+ */
49310
+ get ActualOutputData() {
49311
+ return this.Get('ActualOutputData');
49312
+ }
49313
+ set ActualOutputData(value) {
49314
+ this.Set('ActualOutputData', value);
49315
+ }
49316
+ /**
49317
+ * * Field Name: PassedChecks
49318
+ * * Display Name: Passed Checks
49319
+ * * SQL Data Type: int
49320
+ * * Description: Number of validation checks that passed
49321
+ */
49322
+ get PassedChecks() {
49323
+ return this.Get('PassedChecks');
49324
+ }
49325
+ set PassedChecks(value) {
49326
+ this.Set('PassedChecks', value);
49327
+ }
49328
+ /**
49329
+ * * Field Name: FailedChecks
49330
+ * * Display Name: Failed Checks
49331
+ * * SQL Data Type: int
49332
+ * * Description: Number of validation checks that failed
49333
+ */
49334
+ get FailedChecks() {
49335
+ return this.Get('FailedChecks');
49336
+ }
49337
+ set FailedChecks(value) {
49338
+ this.Set('FailedChecks', value);
49339
+ }
49340
+ /**
49341
+ * * Field Name: TotalChecks
49342
+ * * Display Name: Total Checks
49343
+ * * SQL Data Type: int
49344
+ * * Description: Total number of validation checks performed
49345
+ */
49346
+ get TotalChecks() {
49347
+ return this.Get('TotalChecks');
49348
+ }
49349
+ set TotalChecks(value) {
49350
+ this.Set('TotalChecks', value);
49351
+ }
49352
+ /**
49353
+ * * Field Name: Score
49354
+ * * Display Name: Score
49355
+ * * SQL Data Type: decimal(5, 4)
49356
+ * * Description: Overall test score from 0.0000 to 1.0000 (0-100%). Calculated by test driver based on passed/failed checks and weights.
49357
+ */
49358
+ get Score() {
49359
+ return this.Get('Score');
49360
+ }
49361
+ set Score(value) {
49362
+ this.Set('Score', value);
49363
+ }
49364
+ /**
49365
+ * * Field Name: CostUSD
49366
+ * * Display Name: Cost USD
49367
+ * * SQL Data Type: decimal(10, 6)
49368
+ * * Description: Cost in USD for running this test (e.g., LLM token costs, compute resources)
49369
+ */
49370
+ get CostUSD() {
49371
+ return this.Get('CostUSD');
49372
+ }
49373
+ set CostUSD(value) {
49374
+ this.Set('CostUSD', value);
49375
+ }
49376
+ /**
49377
+ * * Field Name: ErrorMessage
49378
+ * * Display Name: Error Message
49379
+ * * SQL Data Type: nvarchar(MAX)
49380
+ * * Description: Error message if the test encountered an execution error
49381
+ */
49382
+ get ErrorMessage() {
49383
+ return this.Get('ErrorMessage');
49384
+ }
49385
+ set ErrorMessage(value) {
49386
+ this.Set('ErrorMessage', value);
49387
+ }
49388
+ /**
49389
+ * * Field Name: ResultDetails
49390
+ * * Display Name: Result Details
49391
+ * * SQL Data Type: nvarchar(MAX)
49392
+ * * Description: JSON object with detailed results including individual check results, metrics, oracle outputs, and diagnostic information
49393
+ */
49394
+ get ResultDetails() {
49395
+ return this.Get('ResultDetails');
49396
+ }
49397
+ set ResultDetails(value) {
49398
+ this.Set('ResultDetails', value);
49399
+ }
49400
+ /**
49401
+ * * Field Name: __mj_CreatedAt
49402
+ * * Display Name: Created At
49403
+ * * SQL Data Type: datetimeoffset
49404
+ * * Default Value: getutcdate()
49405
+ */
49406
+ get __mj_CreatedAt() {
49407
+ return this.Get('__mj_CreatedAt');
49408
+ }
49409
+ /**
49410
+ * * Field Name: __mj_UpdatedAt
49411
+ * * Display Name: Updated At
49412
+ * * SQL Data Type: datetimeoffset
49413
+ * * Default Value: getutcdate()
49414
+ */
49415
+ get __mj_UpdatedAt() {
49416
+ return this.Get('__mj_UpdatedAt');
49417
+ }
49418
+ /**
49419
+ * * Field Name: Test
49420
+ * * Display Name: Test
49421
+ * * SQL Data Type: nvarchar(255)
49422
+ */
49423
+ get Test() {
49424
+ return this.Get('Test');
49425
+ }
49426
+ /**
49427
+ * * Field Name: RunByUser
49428
+ * * Display Name: Run By User
49429
+ * * SQL Data Type: nvarchar(100)
49430
+ */
49431
+ get RunByUser() {
49432
+ return this.Get('RunByUser');
49433
+ }
49434
+ };
49435
+ exports.TestRunEntity = TestRunEntity;
49436
+ exports.TestRunEntity = TestRunEntity = __decorate([
49437
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Test Runs')
49438
+ ], TestRunEntity);
49439
+ /**
49440
+ * MJ: Test Suite Runs - strongly typed entity sub-class
49441
+ * * Schema: __mj
49442
+ * * Base Table: TestSuiteRun
49443
+ * * Base View: vwTestSuiteRuns
49444
+ * * @description Execution instance of a test suite. Captures who ran it, when, in what environment, and aggregates results from all tests in the suite. Supports versioning via GitCommit and AgentVersion fields to track system state during execution.
49445
+ * * Primary Key: ID
49446
+ * @extends {BaseEntity}
49447
+ * @class
49448
+ * @public
49449
+ */
49450
+ let TestSuiteRunEntity = class TestSuiteRunEntity extends core_1.BaseEntity {
49451
+ /**
49452
+ * Loads the MJ: Test Suite Runs record from the database
49453
+ * @param ID: string - primary key value to load the MJ: Test Suite Runs record.
49454
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
49455
+ * @returns {Promise<boolean>} - true if successful, false otherwise
49456
+ * @public
49457
+ * @async
49458
+ * @memberof TestSuiteRunEntity
49459
+ * @method
49460
+ * @override
49461
+ */
49462
+ async Load(ID, EntityRelationshipsToLoad) {
49463
+ const compositeKey = new core_1.CompositeKey();
49464
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
49465
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
49466
+ }
49467
+ /**
49468
+ * * Field Name: ID
49469
+ * * Display Name: ID
49470
+ * * SQL Data Type: uniqueidentifier
49471
+ * * Default Value: newsequentialid()
49472
+ */
49473
+ get ID() {
49474
+ return this.Get('ID');
49475
+ }
49476
+ set ID(value) {
49477
+ this.Set('ID', value);
49478
+ }
49479
+ /**
49480
+ * * Field Name: SuiteID
49481
+ * * Display Name: Suite ID
49482
+ * * SQL Data Type: uniqueidentifier
49483
+ * * Related Entity/Foreign Key: MJ: Test Suites (vwTestSuites.ID)
49484
+ * * Description: Foreign Key - The test suite that was executed
49485
+ */
49486
+ get SuiteID() {
49487
+ return this.Get('SuiteID');
49488
+ }
49489
+ set SuiteID(value) {
49490
+ this.Set('SuiteID', value);
49491
+ }
49492
+ /**
49493
+ * * Field Name: RunByUserID
49494
+ * * Display Name: Run By User ID
49495
+ * * SQL Data Type: uniqueidentifier
49496
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
49497
+ * * Description: Foreign Key - The user who triggered the suite run (could be system user for automated runs)
49498
+ */
49499
+ get RunByUserID() {
49500
+ return this.Get('RunByUserID');
49501
+ }
49502
+ set RunByUserID(value) {
49503
+ this.Set('RunByUserID', value);
49504
+ }
49505
+ /**
49506
+ * * Field Name: Environment
49507
+ * * Display Name: Environment
49508
+ * * SQL Data Type: nvarchar(50)
49509
+ * * Description: Environment where tests were executed (e.g., "dev", "staging", "prod", "ci")
49510
+ */
49511
+ get Environment() {
49512
+ return this.Get('Environment');
49513
+ }
49514
+ set Environment(value) {
49515
+ this.Set('Environment', value);
49516
+ }
49517
+ /**
49518
+ * * Field Name: TriggerType
49519
+ * * Display Name: Trigger Type
49520
+ * * SQL Data Type: nvarchar(50)
49521
+ * * Description: How the run was triggered (e.g., "manual", "ci", "scheduled", "shadow", "release")
49522
+ */
49523
+ get TriggerType() {
49524
+ return this.Get('TriggerType');
49525
+ }
49526
+ set TriggerType(value) {
49527
+ this.Set('TriggerType', value);
49528
+ }
49529
+ /**
49530
+ * * Field Name: GitCommit
49531
+ * * Display Name: Git Commit
49532
+ * * SQL Data Type: nvarchar(100)
49533
+ * * Description: Git commit SHA of the code version being tested. Enables correlation between test results and code changes.
49534
+ */
49535
+ get GitCommit() {
49536
+ return this.Get('GitCommit');
49537
+ }
49538
+ set GitCommit(value) {
49539
+ this.Set('GitCommit', value);
49540
+ }
49541
+ /**
49542
+ * * Field Name: AgentVersion
49543
+ * * Display Name: Agent Version
49544
+ * * SQL Data Type: nvarchar(100)
49545
+ * * Description: Version of the agent or system being tested (e.g., "skip-agent-2.1.0", "workflow-engine-3.4.2"). Enables version comparison and regression detection.
49546
+ */
49547
+ get AgentVersion() {
49548
+ return this.Get('AgentVersion');
49549
+ }
49550
+ set AgentVersion(value) {
49551
+ this.Set('AgentVersion', value);
49552
+ }
49553
+ /**
49554
+ * * Field Name: Status
49555
+ * * Display Name: Status
49556
+ * * SQL Data Type: nvarchar(20)
49557
+ * * Default Value: Pending
49558
+ * * Value List Type: List
49559
+ * * Possible Values
49560
+ * * Cancelled
49561
+ * * Completed
49562
+ * * Failed
49563
+ * * Pending
49564
+ * * Running
49565
+ * * Description: Current status of the suite run: Pending (queued), Running (in progress), Completed (finished successfully), Failed (suite-level failure), Cancelled (stopped by user)
49566
+ */
49567
+ get Status() {
49568
+ return this.Get('Status');
49569
+ }
49570
+ set Status(value) {
49571
+ this.Set('Status', value);
49572
+ }
49573
+ /**
49574
+ * * Field Name: StartedAt
49575
+ * * Display Name: Started At
49576
+ * * SQL Data Type: datetime
49577
+ * * Description: Timestamp when the suite run started execution
49578
+ */
49579
+ get StartedAt() {
49580
+ return this.Get('StartedAt');
49581
+ }
49582
+ set StartedAt(value) {
49583
+ this.Set('StartedAt', value);
49584
+ }
49585
+ /**
49586
+ * * Field Name: CompletedAt
49587
+ * * Display Name: Completed At
49588
+ * * SQL Data Type: datetime
49589
+ * * Description: Timestamp when the suite run completed (successfully or with failures)
49590
+ */
49591
+ get CompletedAt() {
49592
+ return this.Get('CompletedAt');
49593
+ }
49594
+ set CompletedAt(value) {
49595
+ this.Set('CompletedAt', value);
49596
+ }
49597
+ /**
49598
+ * * Field Name: TotalTests
49599
+ * * Display Name: Total Tests
49600
+ * * SQL Data Type: int
49601
+ * * Description: Total number of tests executed in this suite run
49602
+ */
49603
+ get TotalTests() {
49604
+ return this.Get('TotalTests');
49605
+ }
49606
+ set TotalTests(value) {
49607
+ this.Set('TotalTests', value);
49608
+ }
49609
+ /**
49610
+ * * Field Name: PassedTests
49611
+ * * Display Name: Passed Tests
49612
+ * * SQL Data Type: int
49613
+ * * Description: Number of tests that passed all checks
49614
+ */
49615
+ get PassedTests() {
49616
+ return this.Get('PassedTests');
49617
+ }
49618
+ set PassedTests(value) {
49619
+ this.Set('PassedTests', value);
49620
+ }
49621
+ /**
49622
+ * * Field Name: FailedTests
49623
+ * * Display Name: Failed Tests
49624
+ * * SQL Data Type: int
49625
+ * * Description: Number of tests that failed at least one check
49626
+ */
49627
+ get FailedTests() {
49628
+ return this.Get('FailedTests');
49629
+ }
49630
+ set FailedTests(value) {
49631
+ this.Set('FailedTests', value);
49632
+ }
49633
+ /**
49634
+ * * Field Name: SkippedTests
49635
+ * * Display Name: Skipped Tests
49636
+ * * SQL Data Type: int
49637
+ * * Description: Number of tests that were skipped (not executed)
49638
+ */
49639
+ get SkippedTests() {
49640
+ return this.Get('SkippedTests');
49641
+ }
49642
+ set SkippedTests(value) {
49643
+ this.Set('SkippedTests', value);
49644
+ }
49645
+ /**
49646
+ * * Field Name: ErrorTests
49647
+ * * Display Name: Error Tests
49648
+ * * SQL Data Type: int
49649
+ * * Description: Number of tests that encountered execution errors (different from failing validation)
49650
+ */
49651
+ get ErrorTests() {
49652
+ return this.Get('ErrorTests');
49653
+ }
49654
+ set ErrorTests(value) {
49655
+ this.Set('ErrorTests', value);
49656
+ }
49657
+ /**
49658
+ * * Field Name: TotalDurationSeconds
49659
+ * * Display Name: Total Duration Seconds
49660
+ * * SQL Data Type: decimal(10, 3)
49661
+ * * Description: Total execution time in seconds for the entire suite
49662
+ */
49663
+ get TotalDurationSeconds() {
49664
+ return this.Get('TotalDurationSeconds');
49665
+ }
49666
+ set TotalDurationSeconds(value) {
49667
+ this.Set('TotalDurationSeconds', value);
49668
+ }
49669
+ /**
49670
+ * * Field Name: TotalCostUSD
49671
+ * * Display Name: Total Cost USD
49672
+ * * SQL Data Type: decimal(10, 6)
49673
+ * * Description: Total cost in USD for running the entire suite (sum of all test costs)
49674
+ */
49675
+ get TotalCostUSD() {
49676
+ return this.Get('TotalCostUSD');
49677
+ }
49678
+ set TotalCostUSD(value) {
49679
+ this.Set('TotalCostUSD', value);
49680
+ }
49681
+ /**
49682
+ * * Field Name: Configuration
49683
+ * * Display Name: Configuration
49684
+ * * SQL Data Type: nvarchar(MAX)
49685
+ * * Description: JSON snapshot of the runtime configuration used for this suite run
49686
+ */
49687
+ get Configuration() {
49688
+ return this.Get('Configuration');
49689
+ }
49690
+ set Configuration(value) {
49691
+ this.Set('Configuration', value);
49692
+ }
49693
+ /**
49694
+ * * Field Name: ResultSummary
49695
+ * * Display Name: Result Summary
49696
+ * * SQL Data Type: nvarchar(MAX)
49697
+ * * Description: JSON object with aggregated results and statistics from the suite run
49698
+ */
49699
+ get ResultSummary() {
49700
+ return this.Get('ResultSummary');
49701
+ }
49702
+ set ResultSummary(value) {
49703
+ this.Set('ResultSummary', value);
49704
+ }
49705
+ /**
49706
+ * * Field Name: ErrorMessage
49707
+ * * Display Name: Error Message
49708
+ * * SQL Data Type: nvarchar(MAX)
49709
+ * * Description: Error message if the suite-level execution failed (before individual tests could run)
49710
+ */
49711
+ get ErrorMessage() {
49712
+ return this.Get('ErrorMessage');
49713
+ }
49714
+ set ErrorMessage(value) {
49715
+ this.Set('ErrorMessage', value);
49716
+ }
49717
+ /**
49718
+ * * Field Name: __mj_CreatedAt
49719
+ * * Display Name: Created At
49720
+ * * SQL Data Type: datetimeoffset
49721
+ * * Default Value: getutcdate()
49722
+ */
49723
+ get __mj_CreatedAt() {
49724
+ return this.Get('__mj_CreatedAt');
49725
+ }
49726
+ /**
49727
+ * * Field Name: __mj_UpdatedAt
49728
+ * * Display Name: Updated At
49729
+ * * SQL Data Type: datetimeoffset
49730
+ * * Default Value: getutcdate()
49731
+ */
49732
+ get __mj_UpdatedAt() {
49733
+ return this.Get('__mj_UpdatedAt');
49734
+ }
49735
+ /**
49736
+ * * Field Name: Suite
49737
+ * * Display Name: Suite
49738
+ * * SQL Data Type: nvarchar(255)
49739
+ */
49740
+ get Suite() {
49741
+ return this.Get('Suite');
49742
+ }
49743
+ /**
49744
+ * * Field Name: RunByUser
49745
+ * * Display Name: Run By User
49746
+ * * SQL Data Type: nvarchar(100)
49747
+ */
49748
+ get RunByUser() {
49749
+ return this.Get('RunByUser');
49750
+ }
49751
+ };
49752
+ exports.TestSuiteRunEntity = TestSuiteRunEntity;
49753
+ exports.TestSuiteRunEntity = TestSuiteRunEntity = __decorate([
49754
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Test Suite Runs')
49755
+ ], TestSuiteRunEntity);
49756
+ /**
49757
+ * MJ: Test Suite Tests - strongly typed entity sub-class
49758
+ * * Schema: __mj
49759
+ * * Base Table: TestSuiteTest
49760
+ * * Base View: vwTestSuiteTests
49761
+ * * @description Junction table linking tests to test suites. Allows many-to-many relationship where a test can belong to multiple suites and a suite can contain multiple tests. Includes sequence for execution order and configuration overrides specific to this suite-test pairing.
49762
+ * * Primary Key: ID
49763
+ * @extends {BaseEntity}
49764
+ * @class
49765
+ * @public
49766
+ */
49767
+ let TestSuiteTestEntity = class TestSuiteTestEntity extends core_1.BaseEntity {
49768
+ /**
49769
+ * Loads the MJ: Test Suite Tests record from the database
49770
+ * @param ID: string - primary key value to load the MJ: Test Suite Tests record.
49771
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
49772
+ * @returns {Promise<boolean>} - true if successful, false otherwise
49773
+ * @public
49774
+ * @async
49775
+ * @memberof TestSuiteTestEntity
49776
+ * @method
49777
+ * @override
49778
+ */
49779
+ async Load(ID, EntityRelationshipsToLoad) {
49780
+ const compositeKey = new core_1.CompositeKey();
49781
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
49782
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
49783
+ }
49784
+ /**
49785
+ * * Field Name: ID
49786
+ * * Display Name: ID
49787
+ * * SQL Data Type: uniqueidentifier
49788
+ * * Default Value: newsequentialid()
49789
+ */
49790
+ get ID() {
49791
+ return this.Get('ID');
49792
+ }
49793
+ set ID(value) {
49794
+ this.Set('ID', value);
49795
+ }
49796
+ /**
49797
+ * * Field Name: SuiteID
49798
+ * * Display Name: Suite ID
49799
+ * * SQL Data Type: uniqueidentifier
49800
+ * * Related Entity/Foreign Key: MJ: Test Suites (vwTestSuites.ID)
49801
+ * * Description: Foreign Key - The test suite this relationship belongs to
49802
+ */
49803
+ get SuiteID() {
49804
+ return this.Get('SuiteID');
49805
+ }
49806
+ set SuiteID(value) {
49807
+ this.Set('SuiteID', value);
49808
+ }
49809
+ /**
49810
+ * * Field Name: TestID
49811
+ * * Display Name: Test ID
49812
+ * * SQL Data Type: uniqueidentifier
49813
+ * * Related Entity/Foreign Key: MJ: Tests (vwTests.ID)
49814
+ * * Description: Foreign Key - The test included in this suite
49815
+ */
49816
+ get TestID() {
49817
+ return this.Get('TestID');
49818
+ }
49819
+ set TestID(value) {
49820
+ this.Set('TestID', value);
49821
+ }
49822
+ /**
49823
+ * * Field Name: Sequence
49824
+ * * Display Name: Sequence
49825
+ * * SQL Data Type: int
49826
+ * * Default Value: 0
49827
+ * * Description: Execution sequence within the suite. Lower numbers run first. Tests with same sequence may run in parallel.
49828
+ */
49829
+ get Sequence() {
49830
+ return this.Get('Sequence');
49831
+ }
49832
+ set Sequence(value) {
49833
+ this.Set('Sequence', value);
49834
+ }
49835
+ /**
49836
+ * * Field Name: Status
49837
+ * * Display Name: Status
49838
+ * * SQL Data Type: nvarchar(20)
49839
+ * * Default Value: Active
49840
+ * * Value List Type: List
49841
+ * * Possible Values
49842
+ * * Active
49843
+ * * Disabled
49844
+ * * Skip
49845
+ * * Description: Status of this test within this suite: Active (will run), Disabled (temporarily excluded), Skip (documented exclusion)
49846
+ */
49847
+ get Status() {
49848
+ return this.Get('Status');
49849
+ }
49850
+ set Status(value) {
49851
+ this.Set('Status', value);
49852
+ }
49853
+ /**
49854
+ * * Field Name: Configuration
49855
+ * * Display Name: Configuration
49856
+ * * SQL Data Type: nvarchar(MAX)
49857
+ * * Description: JSON object to override test configuration for this specific suite. Allows same test to run with different parameters in different suites.
49858
+ */
49859
+ get Configuration() {
49860
+ return this.Get('Configuration');
49861
+ }
49862
+ set Configuration(value) {
49863
+ this.Set('Configuration', value);
49864
+ }
49865
+ /**
49866
+ * * Field Name: __mj_CreatedAt
49867
+ * * Display Name: Created At
49868
+ * * SQL Data Type: datetimeoffset
49869
+ * * Default Value: getutcdate()
49870
+ */
49871
+ get __mj_CreatedAt() {
49872
+ return this.Get('__mj_CreatedAt');
49873
+ }
49874
+ /**
49875
+ * * Field Name: __mj_UpdatedAt
49876
+ * * Display Name: Updated At
49877
+ * * SQL Data Type: datetimeoffset
49878
+ * * Default Value: getutcdate()
49879
+ */
49880
+ get __mj_UpdatedAt() {
49881
+ return this.Get('__mj_UpdatedAt');
49882
+ }
49883
+ /**
49884
+ * * Field Name: Suite
49885
+ * * Display Name: Suite
49886
+ * * SQL Data Type: nvarchar(255)
49887
+ */
49888
+ get Suite() {
49889
+ return this.Get('Suite');
49890
+ }
49891
+ /**
49892
+ * * Field Name: Test
49893
+ * * Display Name: Test
49894
+ * * SQL Data Type: nvarchar(255)
49895
+ */
49896
+ get Test() {
49897
+ return this.Get('Test');
49898
+ }
49899
+ };
49900
+ exports.TestSuiteTestEntity = TestSuiteTestEntity;
49901
+ exports.TestSuiteTestEntity = TestSuiteTestEntity = __decorate([
49902
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Test Suite Tests')
49903
+ ], TestSuiteTestEntity);
49904
+ /**
49905
+ * MJ: Test Suites - strongly typed entity sub-class
49906
+ * * Schema: __mj
49907
+ * * Base Table: TestSuite
49908
+ * * Base View: vwTestSuites
49909
+ * * @description Hierarchical organization of tests into suites. Test suites can contain other suites (via ParentID) and tests (via TestSuiteTest junction table). Suites provide logical grouping for running batches of related tests.
49910
+ * * Primary Key: ID
49911
+ * @extends {BaseEntity}
49912
+ * @class
49913
+ * @public
49914
+ */
49915
+ let TestSuiteEntity = class TestSuiteEntity extends core_1.BaseEntity {
49916
+ /**
49917
+ * Loads the MJ: Test Suites record from the database
49918
+ * @param ID: string - primary key value to load the MJ: Test Suites record.
49919
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
49920
+ * @returns {Promise<boolean>} - true if successful, false otherwise
49921
+ * @public
49922
+ * @async
49923
+ * @memberof TestSuiteEntity
49924
+ * @method
49925
+ * @override
49926
+ */
49927
+ async Load(ID, EntityRelationshipsToLoad) {
49928
+ const compositeKey = new core_1.CompositeKey();
49929
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
49930
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
49931
+ }
49932
+ /**
49933
+ * * Field Name: ID
49934
+ * * Display Name: ID
49935
+ * * SQL Data Type: uniqueidentifier
49936
+ * * Default Value: newsequentialid()
49937
+ */
49938
+ get ID() {
49939
+ return this.Get('ID');
49940
+ }
49941
+ set ID(value) {
49942
+ this.Set('ID', value);
49943
+ }
49944
+ /**
49945
+ * * Field Name: ParentID
49946
+ * * Display Name: Parent ID
49947
+ * * SQL Data Type: uniqueidentifier
49948
+ * * Related Entity/Foreign Key: MJ: Test Suites (vwTestSuites.ID)
49949
+ * * Description: Optional parent suite ID for hierarchical organization. NULL for root-level suites.
49950
+ */
49951
+ get ParentID() {
49952
+ return this.Get('ParentID');
49953
+ }
49954
+ set ParentID(value) {
49955
+ this.Set('ParentID', value);
49956
+ }
49957
+ /**
49958
+ * * Field Name: Name
49959
+ * * Display Name: Name
49960
+ * * SQL Data Type: nvarchar(255)
49961
+ * * Description: Name of the test suite (e.g., "Skip Component Generation Suite", "Agent Memory Tests")
49962
+ */
49963
+ get Name() {
49964
+ return this.Get('Name');
49965
+ }
49966
+ set Name(value) {
49967
+ this.Set('Name', value);
49968
+ }
49969
+ /**
49970
+ * * Field Name: Description
49971
+ * * Display Name: Description
49972
+ * * SQL Data Type: nvarchar(MAX)
49973
+ * * Description: Detailed description of what this suite tests and its purpose
49974
+ */
49975
+ get Description() {
49976
+ return this.Get('Description');
49977
+ }
49978
+ set Description(value) {
49979
+ this.Set('Description', value);
49980
+ }
49981
+ /**
49982
+ * * Field Name: Status
49983
+ * * Display Name: Status
49984
+ * * SQL Data Type: nvarchar(20)
49985
+ * * Default Value: Active
49986
+ * * Value List Type: List
49987
+ * * Possible Values
49988
+ * * Active
49989
+ * * Disabled
49990
+ * * Pending
49991
+ * * Description: Status of the suite: Pending (being configured), Active (available for use), Disabled (archived/not in use)
49992
+ */
49993
+ get Status() {
49994
+ return this.Get('Status');
49995
+ }
49996
+ set Status(value) {
49997
+ this.Set('Status', value);
49998
+ }
49999
+ /**
50000
+ * * Field Name: Tags
50001
+ * * Display Name: Tags
50002
+ * * SQL Data Type: nvarchar(MAX)
50003
+ * * Description: JSON array of tags for categorization and filtering (e.g., ["smoke", "regression", "nightly"])
50004
+ */
50005
+ get Tags() {
50006
+ return this.Get('Tags');
50007
+ }
50008
+ set Tags(value) {
50009
+ this.Set('Tags', value);
50010
+ }
50011
+ /**
50012
+ * * Field Name: Configuration
50013
+ * * Display Name: Configuration
50014
+ * * SQL Data Type: nvarchar(MAX)
50015
+ * * Description: JSON configuration object for suite-level settings (e.g., environment defaults, retry policies, notification settings)
50016
+ */
50017
+ get Configuration() {
50018
+ return this.Get('Configuration');
50019
+ }
50020
+ set Configuration(value) {
50021
+ this.Set('Configuration', value);
50022
+ }
50023
+ /**
50024
+ * * Field Name: __mj_CreatedAt
50025
+ * * Display Name: Created At
50026
+ * * SQL Data Type: datetimeoffset
50027
+ * * Default Value: getutcdate()
50028
+ */
50029
+ get __mj_CreatedAt() {
50030
+ return this.Get('__mj_CreatedAt');
50031
+ }
50032
+ /**
50033
+ * * Field Name: __mj_UpdatedAt
50034
+ * * Display Name: Updated At
50035
+ * * SQL Data Type: datetimeoffset
50036
+ * * Default Value: getutcdate()
50037
+ */
50038
+ get __mj_UpdatedAt() {
50039
+ return this.Get('__mj_UpdatedAt');
50040
+ }
50041
+ /**
50042
+ * * Field Name: Parent
50043
+ * * Display Name: Parent
50044
+ * * SQL Data Type: nvarchar(255)
50045
+ */
50046
+ get Parent() {
50047
+ return this.Get('Parent');
50048
+ }
50049
+ /**
50050
+ * * Field Name: RootParentID
50051
+ * * Display Name: Root Parent ID
50052
+ * * SQL Data Type: uniqueidentifier
50053
+ */
50054
+ get RootParentID() {
50055
+ return this.Get('RootParentID');
50056
+ }
50057
+ };
50058
+ exports.TestSuiteEntity = TestSuiteEntity;
50059
+ exports.TestSuiteEntity = TestSuiteEntity = __decorate([
50060
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Test Suites')
50061
+ ], TestSuiteEntity);
50062
+ /**
50063
+ * MJ: Test Types - strongly typed entity sub-class
50064
+ * * Schema: __mj
50065
+ * * Base Table: TestType
50066
+ * * Base View: vwTestTypes
50067
+ * * @description Defines test type drivers that can be dynamically instantiated via MJGlobal.Instance.ClassFactory.CreateInstance(BaseTestDriver, DriverClass). Each test type represents a different category of testing (e.g., Agent Evals, Workflow Tests, Code Generation Tests).
50068
+ * * Primary Key: ID
50069
+ * @extends {BaseEntity}
50070
+ * @class
50071
+ * @public
50072
+ */
50073
+ let TestTypeEntity = class TestTypeEntity extends core_1.BaseEntity {
50074
+ /**
50075
+ * Loads the MJ: Test Types record from the database
50076
+ * @param ID: string - primary key value to load the MJ: Test Types record.
50077
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
50078
+ * @returns {Promise<boolean>} - true if successful, false otherwise
50079
+ * @public
50080
+ * @async
50081
+ * @memberof TestTypeEntity
50082
+ * @method
50083
+ * @override
50084
+ */
50085
+ async Load(ID, EntityRelationshipsToLoad) {
50086
+ const compositeKey = new core_1.CompositeKey();
50087
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
50088
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
50089
+ }
50090
+ /**
50091
+ * * Field Name: ID
50092
+ * * Display Name: ID
50093
+ * * SQL Data Type: uniqueidentifier
50094
+ * * Default Value: newsequentialid()
50095
+ */
50096
+ get ID() {
50097
+ return this.Get('ID');
50098
+ }
50099
+ set ID(value) {
50100
+ this.Set('ID', value);
50101
+ }
50102
+ /**
50103
+ * * Field Name: Name
50104
+ * * Display Name: Name
50105
+ * * SQL Data Type: nvarchar(100)
50106
+ * * Description: Unique name for the test type (e.g., "Agent Eval", "Workflow Test", "Code Generation Test")
50107
+ */
50108
+ get Name() {
50109
+ return this.Get('Name');
50110
+ }
50111
+ set Name(value) {
50112
+ this.Set('Name', value);
50113
+ }
50114
+ /**
50115
+ * * Field Name: Description
50116
+ * * Display Name: Description
50117
+ * * SQL Data Type: nvarchar(MAX)
50118
+ * * Description: Detailed description of what this test type validates and how it works
50119
+ */
50120
+ get Description() {
50121
+ return this.Get('Description');
50122
+ }
50123
+ set Description(value) {
50124
+ this.Set('Description', value);
50125
+ }
50126
+ /**
50127
+ * * Field Name: DriverClass
50128
+ * * Display Name: Driver Class
50129
+ * * SQL Data Type: nvarchar(255)
50130
+ * * Description: Class name for the driver implementation (e.g., "AgentEvalDriver"). Used with ClassFactory to instantiate the appropriate BaseTestDriver subclass.
50131
+ */
50132
+ get DriverClass() {
50133
+ return this.Get('DriverClass');
50134
+ }
50135
+ set DriverClass(value) {
50136
+ this.Set('DriverClass', value);
50137
+ }
50138
+ /**
50139
+ * * Field Name: Status
50140
+ * * Display Name: Status
50141
+ * * SQL Data Type: nvarchar(20)
50142
+ * * Default Value: Active
50143
+ * * Value List Type: List
50144
+ * * Possible Values
50145
+ * * Active
50146
+ * * Disabled
50147
+ * * Pending
50148
+ * * Description: Status of the test type: Pending (under development), Active (available for use), Disabled (no longer available)
50149
+ */
50150
+ get Status() {
50151
+ return this.Get('Status');
50152
+ }
50153
+ set Status(value) {
50154
+ this.Set('Status', value);
50155
+ }
50156
+ /**
50157
+ * * Field Name: __mj_CreatedAt
50158
+ * * Display Name: Created At
50159
+ * * SQL Data Type: datetimeoffset
50160
+ * * Default Value: getutcdate()
50161
+ */
50162
+ get __mj_CreatedAt() {
50163
+ return this.Get('__mj_CreatedAt');
50164
+ }
50165
+ /**
50166
+ * * Field Name: __mj_UpdatedAt
50167
+ * * Display Name: Updated At
50168
+ * * SQL Data Type: datetimeoffset
50169
+ * * Default Value: getutcdate()
50170
+ */
50171
+ get __mj_UpdatedAt() {
50172
+ return this.Get('__mj_UpdatedAt');
50173
+ }
50174
+ };
50175
+ exports.TestTypeEntity = TestTypeEntity;
50176
+ exports.TestTypeEntity = TestTypeEntity = __decorate([
50177
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Test Types')
50178
+ ], TestTypeEntity);
50179
+ /**
50180
+ * MJ: Tests - strongly typed entity sub-class
50181
+ * * Schema: __mj
50182
+ * * Base Table: Test
50183
+ * * Base View: vwTests
50184
+ * * @description Individual test definitions. Each test has a specific type (via TypeID) which determines how it executes. Tests store their inputs, expected outcomes, and configuration as JSON, allowing flexibility for different test types while maintaining a common schema.
50185
+ * * Primary Key: ID
50186
+ * @extends {BaseEntity}
50187
+ * @class
50188
+ * @public
50189
+ */
50190
+ let TestEntity = class TestEntity extends core_1.BaseEntity {
50191
+ /**
50192
+ * Loads the MJ: Tests record from the database
50193
+ * @param ID: string - primary key value to load the MJ: Tests record.
50194
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
50195
+ * @returns {Promise<boolean>} - true if successful, false otherwise
50196
+ * @public
50197
+ * @async
50198
+ * @memberof TestEntity
50199
+ * @method
50200
+ * @override
50201
+ */
50202
+ async Load(ID, EntityRelationshipsToLoad) {
50203
+ const compositeKey = new core_1.CompositeKey();
50204
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
50205
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
50206
+ }
50207
+ /**
50208
+ * Validate() method override for MJ: Tests entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
50209
+ * * RepeatCount: If a repeat count is entered, it must be a positive number greater than zero; otherwise it can be left empty.
50210
+ * @public
50211
+ * @method
50212
+ * @override
50213
+ */
50214
+ Validate() {
50215
+ const result = super.Validate();
50216
+ this.ValidateRepeatCountPositive(result);
50217
+ result.Success = result.Success && (result.Errors.length === 0);
50218
+ return result;
50219
+ }
50220
+ /**
50221
+ * If a repeat count is entered, it must be a positive number greater than zero; otherwise it can be left empty.
50222
+ * @param result - the ValidationResult object to add any errors or warnings to
50223
+ * @public
50224
+ * @method
50225
+ */
50226
+ ValidateRepeatCountPositive(result) {
50227
+ // If a repeat count is set, it must be greater than zero
50228
+ if (this.RepeatCount != null && this.RepeatCount <= 0) {
50229
+ result.Errors.push(new core_1.ValidationErrorInfo("RepeatCount", "Repeat count must be greater than zero if provided.", this.RepeatCount, core_1.ValidationErrorType.Failure));
50230
+ }
50231
+ }
50232
+ /**
50233
+ * * Field Name: ID
50234
+ * * Display Name: ID
50235
+ * * SQL Data Type: uniqueidentifier
50236
+ * * Default Value: newsequentialid()
50237
+ */
50238
+ get ID() {
50239
+ return this.Get('ID');
50240
+ }
50241
+ set ID(value) {
50242
+ this.Set('ID', value);
50243
+ }
50244
+ /**
50245
+ * * Field Name: TypeID
50246
+ * * Display Name: Type ID
50247
+ * * SQL Data Type: uniqueidentifier
50248
+ * * Related Entity/Foreign Key: MJ: Test Types (vwTestTypes.ID)
50249
+ * * Description: Foreign Key - The type of test (e.g., Agent Eval, Workflow Test). Determines which driver class handles execution.
50250
+ */
50251
+ get TypeID() {
50252
+ return this.Get('TypeID');
50253
+ }
50254
+ set TypeID(value) {
50255
+ this.Set('TypeID', value);
50256
+ }
50257
+ /**
50258
+ * * Field Name: Name
50259
+ * * Display Name: Name
50260
+ * * SQL Data Type: nvarchar(255)
50261
+ * * Description: Name of the test (e.g., "Pie Chart with Drilldown", "Memory Recall Accuracy")
50262
+ */
50263
+ get Name() {
50264
+ return this.Get('Name');
50265
+ }
50266
+ set Name(value) {
50267
+ this.Set('Name', value);
50268
+ }
50269
+ /**
50270
+ * * Field Name: Description
50271
+ * * Display Name: Description
50272
+ * * SQL Data Type: nvarchar(MAX)
50273
+ * * Description: Detailed description of what this test validates and why it matters
50274
+ */
50275
+ get Description() {
50276
+ return this.Get('Description');
50277
+ }
50278
+ set Description(value) {
50279
+ this.Set('Description', value);
50280
+ }
50281
+ /**
50282
+ * * Field Name: Status
50283
+ * * Display Name: Status
50284
+ * * SQL Data Type: nvarchar(20)
50285
+ * * Default Value: Active
50286
+ * * Value List Type: List
50287
+ * * Possible Values
50288
+ * * Active
50289
+ * * Disabled
50290
+ * * Pending
50291
+ * * Description: Status of the test: Pending (being configured), Active (ready to run), Disabled (archived/not in use)
50292
+ */
50293
+ get Status() {
50294
+ return this.Get('Status');
50295
+ }
50296
+ set Status(value) {
50297
+ this.Set('Status', value);
50298
+ }
50299
+ /**
50300
+ * * Field Name: InputDefinition
50301
+ * * Display Name: Input Definition
50302
+ * * SQL Data Type: nvarchar(MAX)
50303
+ * * Description: JSON object defining the inputs/parameters for the test. Structure varies by test type (e.g., for Agent Eval: {prompt, context, conversationHistory})
50304
+ */
50305
+ get InputDefinition() {
50306
+ return this.Get('InputDefinition');
50307
+ }
50308
+ set InputDefinition(value) {
50309
+ this.Set('InputDefinition', value);
50310
+ }
50311
+ /**
50312
+ * * Field Name: ExpectedOutcomes
50313
+ * * Display Name: Expected Outcomes
50314
+ * * SQL Data Type: nvarchar(MAX)
50315
+ * * Description: JSON object defining what success looks like. Structure varies by test type (e.g., for Agent Eval: {toolCalls, outputFormat, semanticGoals, dataAssertions})
50316
+ */
50317
+ get ExpectedOutcomes() {
50318
+ return this.Get('ExpectedOutcomes');
50319
+ }
50320
+ set ExpectedOutcomes(value) {
50321
+ this.Set('ExpectedOutcomes', value);
50322
+ }
50323
+ /**
50324
+ * * Field Name: Configuration
50325
+ * * Display Name: Configuration
50326
+ * * SQL Data Type: nvarchar(MAX)
50327
+ * * Description: JSON object for test-specific configuration (e.g., oracles to use, rubrics, retry policies, timeout settings)
50328
+ */
50329
+ get Configuration() {
50330
+ return this.Get('Configuration');
50331
+ }
50332
+ set Configuration(value) {
50333
+ this.Set('Configuration', value);
50334
+ }
50335
+ /**
50336
+ * * Field Name: Tags
50337
+ * * Display Name: Tags
50338
+ * * SQL Data Type: nvarchar(MAX)
50339
+ * * Description: JSON array of tags for categorization and filtering (e.g., ["smoke", "agent-quality", "performance"])
50340
+ */
50341
+ get Tags() {
50342
+ return this.Get('Tags');
50343
+ }
50344
+ set Tags(value) {
50345
+ this.Set('Tags', value);
50346
+ }
50347
+ /**
50348
+ * * Field Name: Priority
50349
+ * * Display Name: Priority
50350
+ * * SQL Data Type: int
50351
+ * * Default Value: 0
50352
+ * * Description: Priority for execution ordering. Lower numbers run first. Useful for dependencies or critical path tests.
50353
+ */
50354
+ get Priority() {
50355
+ return this.Get('Priority');
50356
+ }
50357
+ set Priority(value) {
50358
+ this.Set('Priority', value);
50359
+ }
50360
+ /**
50361
+ * * Field Name: EstimatedDurationSeconds
50362
+ * * Display Name: Estimated Duration Seconds
50363
+ * * SQL Data Type: int
50364
+ * * Description: Estimated execution time in seconds. Used for scheduling and timeout calculations.
50365
+ */
50366
+ get EstimatedDurationSeconds() {
50367
+ return this.Get('EstimatedDurationSeconds');
50368
+ }
50369
+ set EstimatedDurationSeconds(value) {
50370
+ this.Set('EstimatedDurationSeconds', value);
50371
+ }
50372
+ /**
50373
+ * * Field Name: EstimatedCostUSD
50374
+ * * Display Name: Estimated Cost USD
50375
+ * * SQL Data Type: decimal(10, 6)
50376
+ * * Description: Estimated cost in USD for running this test (e.g., LLM token costs, compute resources). Used for budgeting and optimization.
50377
+ */
50378
+ get EstimatedCostUSD() {
50379
+ return this.Get('EstimatedCostUSD');
50380
+ }
50381
+ set EstimatedCostUSD(value) {
50382
+ this.Set('EstimatedCostUSD', value);
50383
+ }
50384
+ /**
50385
+ * * Field Name: __mj_CreatedAt
50386
+ * * Display Name: Created At
50387
+ * * SQL Data Type: datetimeoffset
50388
+ * * Default Value: getutcdate()
50389
+ */
50390
+ get __mj_CreatedAt() {
50391
+ return this.Get('__mj_CreatedAt');
50392
+ }
50393
+ /**
50394
+ * * Field Name: __mj_UpdatedAt
50395
+ * * Display Name: Updated At
50396
+ * * SQL Data Type: datetimeoffset
50397
+ * * Default Value: getutcdate()
50398
+ */
50399
+ get __mj_UpdatedAt() {
50400
+ return this.Get('__mj_UpdatedAt');
50401
+ }
50402
+ /**
50403
+ * * Field Name: RepeatCount
50404
+ * * Display Name: Repeat Count
50405
+ * * SQL Data Type: int
50406
+ * * Description: Number of times to repeat this test execution. NULL or 1 = single execution. Values > 1 will create multiple test runs for statistical analysis.
50407
+ */
50408
+ get RepeatCount() {
50409
+ return this.Get('RepeatCount');
50410
+ }
50411
+ set RepeatCount(value) {
50412
+ this.Set('RepeatCount', value);
50413
+ }
50414
+ /**
50415
+ * * Field Name: Type
50416
+ * * Display Name: Type
50417
+ * * SQL Data Type: nvarchar(100)
50418
+ */
50419
+ get Type() {
50420
+ return this.Get('Type');
50421
+ }
50422
+ };
50423
+ exports.TestEntity = TestEntity;
50424
+ exports.TestEntity = TestEntity = __decorate([
50425
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Tests')
50426
+ ], TestEntity);
47579
50427
  /**
47580
50428
  * Output Delivery Types - strongly typed entity sub-class
47581
50429
  * * Schema: __mj