@memberjunction/core-entities 2.117.0 → 2.119.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");
@@ -1061,6 +1062,14 @@ exports.AIAgentNoteSchema = zod_1.z.object({
1061
1062
  * * Field Name: SourceConversation
1062
1063
  * * Display Name: Source Conversation
1063
1064
  * * SQL Data Type: nvarchar(255)`),
1065
+ SourceConversationDetail: zod_1.z.string().nullable().describe(`
1066
+ * * Field Name: SourceConversationDetail
1067
+ * * Display Name: Source Conversation Detail
1068
+ * * SQL Data Type: nvarchar(MAX)`),
1069
+ SourceAIAgentRun: zod_1.z.string().nullable().describe(`
1070
+ * * Field Name: SourceAIAgentRun
1071
+ * * Display Name: Source AI Agent Run
1072
+ * * SQL Data Type: nvarchar(255)`),
1064
1073
  Company: zod_1.z.string().nullable().describe(`
1065
1074
  * * Field Name: Company
1066
1075
  * * Display Name: Company
@@ -2275,6 +2284,10 @@ exports.AIResultCacheSchema = zod_1.z.object({
2275
2284
  * * Field Name: Configuration
2276
2285
  * * Display Name: Configuration
2277
2286
  * * SQL Data Type: nvarchar(100)`),
2287
+ PromptRun: zod_1.z.string().nullable().describe(`
2288
+ * * Field Name: PromptRun
2289
+ * * Display Name: Prompt Run
2290
+ * * SQL Data Type: nvarchar(255)`),
2278
2291
  });
2279
2292
  /**
2280
2293
  * zod schema definition for the entity Application Entities
@@ -2776,6 +2789,10 @@ exports.CommunicationLogSchema = zod_1.z.object({
2776
2789
  * * Field Name: CommunicationProviderMessageType
2777
2790
  * * Display Name: Communication Provider Message Type
2778
2791
  * * SQL Data Type: nvarchar(255)`),
2792
+ CommunicationRun: zod_1.z.string().nullable().describe(`
2793
+ * * Field Name: CommunicationRun
2794
+ * * Display Name: Communication Run
2795
+ * * SQL Data Type: nvarchar(100)`),
2779
2796
  });
2780
2797
  /**
2781
2798
  * zod schema definition for the entity Communication Provider Message Types
@@ -3118,6 +3135,10 @@ exports.CompanyIntegrationRunAPILogSchema = zod_1.z.object({
3118
3135
  * * Display Name: Updated At
3119
3136
  * * SQL Data Type: datetimeoffset
3120
3137
  * * Default Value: getutcdate()`),
3138
+ CompanyIntegrationRun: zod_1.z.string().describe(`
3139
+ * * Field Name: CompanyIntegrationRun
3140
+ * * Display Name: Company Integration Run
3141
+ * * SQL Data Type: nvarchar(100)`),
3121
3142
  });
3122
3143
  /**
3123
3144
  * zod schema definition for the entity Company Integration Run Details
@@ -3980,7 +4001,28 @@ exports.ConversationDetailSchema = zod_1.z.object({
3980
4001
  * * Field Name: SuggestedResponses
3981
4002
  * * Display Name: Suggested Responses
3982
4003
  * * 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).`),
4004
+ * * 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.`),
4005
+ TestRunID: zod_1.z.string().nullable().describe(`
4006
+ * * Field Name: TestRunID
4007
+ * * Display Name: Test Run ID
4008
+ * * SQL Data Type: uniqueidentifier
4009
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
4010
+ * * 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.`),
4011
+ ResponseForm: zod_1.z.string().nullable().describe(`
4012
+ * * Field Name: ResponseForm
4013
+ * * Display Name: Response Form
4014
+ * * SQL Data Type: nvarchar(MAX)
4015
+ * * 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.`),
4016
+ ActionableCommands: zod_1.z.string().nullable().describe(`
4017
+ * * Field Name: ActionableCommands
4018
+ * * Display Name: Actionable Commands
4019
+ * * SQL Data Type: nvarchar(MAX)
4020
+ * * 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.`),
4021
+ AutomaticCommands: zod_1.z.string().nullable().describe(`
4022
+ * * Field Name: AutomaticCommands
4023
+ * * Display Name: Automatic Commands
4024
+ * * SQL Data Type: nvarchar(MAX)
4025
+ * * 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
4026
  Conversation: zod_1.z.string().nullable().describe(`
3985
4027
  * * Field Name: Conversation
3986
4028
  * * Display Name: Conversation
@@ -3993,6 +4035,14 @@ exports.ConversationDetailSchema = zod_1.z.object({
3993
4035
  * * Field Name: Artifact
3994
4036
  * * Display Name: Artifact
3995
4037
  * * SQL Data Type: nvarchar(255)`),
4038
+ ArtifactVersion: zod_1.z.string().nullable().describe(`
4039
+ * * Field Name: ArtifactVersion
4040
+ * * Display Name: Artifact Version
4041
+ * * SQL Data Type: nvarchar(255)`),
4042
+ Parent: zod_1.z.string().nullable().describe(`
4043
+ * * Field Name: Parent
4044
+ * * Display Name: Parent
4045
+ * * SQL Data Type: nvarchar(MAX)`),
3996
4046
  Agent: zod_1.z.string().nullable().describe(`
3997
4047
  * * Field Name: Agent
3998
4048
  * * Display Name: Agent
@@ -4093,6 +4143,12 @@ exports.ConversationSchema = zod_1.z.object({
4093
4143
  * * SQL Data Type: bit
4094
4144
  * * Default Value: 0
4095
4145
  * * Description: Indicates if this conversation is pinned to the top of lists`),
4146
+ TestRunID: zod_1.z.string().nullable().describe(`
4147
+ * * Field Name: TestRunID
4148
+ * * Display Name: Test Run ID
4149
+ * * SQL Data Type: uniqueidentifier
4150
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
4151
+ * * 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
4152
  User: zod_1.z.string().describe(`
4097
4153
  * * Field Name: User
4098
4154
  * * Display Name: User
@@ -4596,6 +4652,14 @@ exports.DuplicateRunDetailMatchSchema = zod_1.z.object({
4596
4652
  * * Display Name: Updated At
4597
4653
  * * SQL Data Type: datetimeoffset
4598
4654
  * * Default Value: getutcdate()`),
4655
+ DuplicateRunDetail: zod_1.z.string().describe(`
4656
+ * * Field Name: DuplicateRunDetail
4657
+ * * Display Name: Duplicate Run Detail
4658
+ * * SQL Data Type: nvarchar(500)`),
4659
+ RecordMergeLog: zod_1.z.string().nullable().describe(`
4660
+ * * Field Name: RecordMergeLog
4661
+ * * Display Name: Record Merge Log
4662
+ * * SQL Data Type: nvarchar(450)`),
4599
4663
  });
4600
4664
  /**
4601
4665
  * zod schema definition for the entity Duplicate Run Details
@@ -4665,6 +4729,10 @@ exports.DuplicateRunDetailSchema = zod_1.z.object({
4665
4729
  * * Display Name: Updated At
4666
4730
  * * SQL Data Type: datetimeoffset
4667
4731
  * * Default Value: getutcdate()`),
4732
+ DuplicateRun: zod_1.z.string().describe(`
4733
+ * * Field Name: DuplicateRun
4734
+ * * Display Name: Duplicate Run
4735
+ * * SQL Data Type: nvarchar(255)`),
4668
4736
  });
4669
4737
  /**
4670
4738
  * zod schema definition for the entity Duplicate Runs
@@ -4803,6 +4871,10 @@ exports.EmployeeCompanyIntegrationSchema = zod_1.z.object({
4803
4871
  * * Display Name: Updated At
4804
4872
  * * SQL Data Type: datetimeoffset
4805
4873
  * * Default Value: getutcdate()`),
4874
+ Employee: zod_1.z.string().nullable().describe(`
4875
+ * * Field Name: Employee
4876
+ * * Display Name: Employee
4877
+ * * SQL Data Type: nvarchar(81)`),
4806
4878
  CompanyIntegration: zod_1.z.string().describe(`
4807
4879
  * * Field Name: CompanyIntegration
4808
4880
  * * Display Name: Company Integration
@@ -4837,6 +4909,10 @@ exports.EmployeeRoleSchema = zod_1.z.object({
4837
4909
  * * Display Name: __mj _Updated At
4838
4910
  * * SQL Data Type: datetimeoffset
4839
4911
  * * Default Value: getutcdate()`),
4912
+ Employee: zod_1.z.string().nullable().describe(`
4913
+ * * Field Name: Employee
4914
+ * * Display Name: Employee
4915
+ * * SQL Data Type: nvarchar(81)`),
4840
4916
  Role: zod_1.z.string().describe(`
4841
4917
  * * Field Name: Role
4842
4918
  * * Display Name: Role
@@ -4871,6 +4947,10 @@ exports.EmployeeSkillSchema = zod_1.z.object({
4871
4947
  * * Display Name: __mj _Updated At
4872
4948
  * * SQL Data Type: datetimeoffset
4873
4949
  * * Default Value: getutcdate()`),
4950
+ Employee: zod_1.z.string().nullable().describe(`
4951
+ * * Field Name: Employee
4952
+ * * Display Name: Employee
4953
+ * * SQL Data Type: nvarchar(81)`),
4874
4954
  Skill: zod_1.z.string().describe(`
4875
4955
  * * Field Name: Skill
4876
4956
  * * Display Name: Skill
@@ -5366,6 +5446,14 @@ exports.EntityActionFilterSchema = zod_1.z.object({
5366
5446
  * * Display Name: __mj _Updated At
5367
5447
  * * SQL Data Type: datetimeoffset
5368
5448
  * * Default Value: getutcdate()`),
5449
+ EntityAction: zod_1.z.string().describe(`
5450
+ * * Field Name: EntityAction
5451
+ * * Display Name: Entity Action
5452
+ * * SQL Data Type: nvarchar(425)`),
5453
+ ActionFilter: zod_1.z.string().describe(`
5454
+ * * Field Name: ActionFilter
5455
+ * * Display Name: Action Filter
5456
+ * * SQL Data Type: nvarchar(MAX)`),
5369
5457
  });
5370
5458
  /**
5371
5459
  * zod schema definition for the entity Entity Action Invocation Types
@@ -5443,6 +5531,10 @@ exports.EntityActionInvocationSchema = zod_1.z.object({
5443
5531
  * * Display Name: __mj _Updated At
5444
5532
  * * SQL Data Type: datetimeoffset
5445
5533
  * * Default Value: getutcdate()`),
5534
+ EntityAction: zod_1.z.string().describe(`
5535
+ * * Field Name: EntityAction
5536
+ * * Display Name: Entity Action
5537
+ * * SQL Data Type: nvarchar(425)`),
5446
5538
  InvocationType: zod_1.z.string().describe(`
5447
5539
  * * Field Name: InvocationType
5448
5540
  * * Display Name: Invocation Type
@@ -5498,6 +5590,10 @@ exports.EntityActionParamSchema = zod_1.z.object({
5498
5590
  * * Display Name: Updated At
5499
5591
  * * SQL Data Type: datetimeoffset
5500
5592
  * * Default Value: getutcdate()`),
5593
+ EntityAction: zod_1.z.string().describe(`
5594
+ * * Field Name: EntityAction
5595
+ * * Display Name: Entity Action
5596
+ * * SQL Data Type: nvarchar(425)`),
5501
5597
  ActionParam: zod_1.z.string().describe(`
5502
5598
  * * Field Name: ActionParam
5503
5599
  * * Display Name: Action Param
@@ -5691,6 +5787,10 @@ exports.EntityCommunicationFieldSchema = zod_1.z.object({
5691
5787
  * * Display Name: __mj _Updated At
5692
5788
  * * SQL Data Type: datetimeoffset
5693
5789
  * * Default Value: getutcdate()`),
5790
+ EntityCommunicationMessageType: zod_1.z.string().describe(`
5791
+ * * Field Name: EntityCommunicationMessageType
5792
+ * * Display Name: Entity Communication Message Type
5793
+ * * SQL Data Type: nvarchar(100)`),
5694
5794
  });
5695
5795
  /**
5696
5796
  * zod schema definition for the entity Entity Communication Message Types
@@ -6845,6 +6945,14 @@ exports.ErrorLogSchema = zod_1.z.object({
6845
6945
  * * Display Name: Updated At
6846
6946
  * * SQL Data Type: datetimeoffset
6847
6947
  * * Default Value: getutcdate()`),
6948
+ CompanyIntegrationRun: zod_1.z.string().nullable().describe(`
6949
+ * * Field Name: CompanyIntegrationRun
6950
+ * * Display Name: Company Integration Run
6951
+ * * SQL Data Type: nvarchar(100)`),
6952
+ CompanyIntegrationRunDetail: zod_1.z.string().nullable().describe(`
6953
+ * * Field Name: CompanyIntegrationRunDetail
6954
+ * * Display Name: Company Integration Run Detail
6955
+ * * SQL Data Type: nvarchar(450)`),
6848
6956
  });
6849
6957
  /**
6850
6958
  * zod schema definition for the entity Explorer Navigation Items
@@ -7773,6 +7881,85 @@ exports.AIAgentArtifactTypeSchema = zod_1.z.object({
7773
7881
  * * Display Name: Artifact Type
7774
7882
  * * SQL Data Type: nvarchar(100)`),
7775
7883
  });
7884
+ /**
7885
+ * zod schema definition for the entity MJ: AI Agent Configurations
7886
+ */
7887
+ exports.AIAgentConfigurationSchema = zod_1.z.object({
7888
+ ID: zod_1.z.string().describe(`
7889
+ * * Field Name: ID
7890
+ * * Display Name: ID
7891
+ * * SQL Data Type: uniqueidentifier
7892
+ * * Default Value: newsequentialid()
7893
+ * * Description: Primary Key - Unique identifier for the agent configuration preset`),
7894
+ AgentID: zod_1.z.string().describe(`
7895
+ * * Field Name: AgentID
7896
+ * * Display Name: Agent ID
7897
+ * * SQL Data Type: uniqueidentifier
7898
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
7899
+ * * Description: Foreign Key - The agent this configuration preset belongs to`),
7900
+ Name: zod_1.z.string().describe(`
7901
+ * * Field Name: Name
7902
+ * * Display Name: Name
7903
+ * * SQL Data Type: nvarchar(100)
7904
+ * * Description: Code-friendly name for the preset (e.g., HighPower, Fast, Balanced). Used in API calls and metadata references.`),
7905
+ DisplayName: zod_1.z.string().describe(`
7906
+ * * Field Name: DisplayName
7907
+ * * Display Name: Display Name
7908
+ * * SQL Data Type: nvarchar(200)
7909
+ * * Description: User-friendly display name shown in UI (e.g., "High Quality", "Quick Draft", "Maximum Detail")`),
7910
+ Description: zod_1.z.string().nullable().describe(`
7911
+ * * Field Name: Description
7912
+ * * Display Name: Description
7913
+ * * SQL Data Type: nvarchar(MAX)
7914
+ * * Description: Description shown to users explaining what this configuration does (e.g., "Uses Claude Opus for highest quality results")`),
7915
+ AIConfigurationID: zod_1.z.string().nullable().describe(`
7916
+ * * Field Name: AIConfigurationID
7917
+ * * Display Name: AI Configuration ID
7918
+ * * SQL Data Type: uniqueidentifier
7919
+ * * Related Entity/Foreign Key: MJ: AI Configurations (vwAIConfigurations.ID)
7920
+ * * Description: Foreign Key - Optional AI Configuration to use for this preset. If NULL, uses default configuration (prompts with ConfigurationID IS NULL)`),
7921
+ IsDefault: zod_1.z.boolean().describe(`
7922
+ * * Field Name: IsDefault
7923
+ * * Display Name: Is Default
7924
+ * * SQL Data Type: bit
7925
+ * * Default Value: 0
7926
+ * * Description: Whether this is the default preset for the agent. Should have exactly one default per agent.`),
7927
+ Priority: zod_1.z.number().describe(`
7928
+ * * Field Name: Priority
7929
+ * * Display Name: Priority
7930
+ * * SQL Data Type: int
7931
+ * * Default Value: 100
7932
+ * * Description: Display order for UI. Lower numbers appear first. Typical values: 100 (Default), 200 (Fast), 300 (Balanced), 400 (High Quality)`),
7933
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Pending'), zod_1.z.literal('Revoked')]).describe(`
7934
+ * * Field Name: Status
7935
+ * * Display Name: Status
7936
+ * * SQL Data Type: nvarchar(20)
7937
+ * * Default Value: Active
7938
+ * * Value List Type: List
7939
+ * * Possible Values
7940
+ * * Active
7941
+ * * Pending
7942
+ * * Revoked
7943
+ * * Description: Status of the preset: Pending (being configured), Active (available for use), Revoked (no longer available)`),
7944
+ __mj_CreatedAt: zod_1.z.date().describe(`
7945
+ * * Field Name: __mj_CreatedAt
7946
+ * * Display Name: Created At
7947
+ * * SQL Data Type: datetimeoffset
7948
+ * * Default Value: getutcdate()`),
7949
+ __mj_UpdatedAt: zod_1.z.date().describe(`
7950
+ * * Field Name: __mj_UpdatedAt
7951
+ * * Display Name: Updated At
7952
+ * * SQL Data Type: datetimeoffset
7953
+ * * Default Value: getutcdate()`),
7954
+ Agent: zod_1.z.string().nullable().describe(`
7955
+ * * Field Name: Agent
7956
+ * * Display Name: Agent
7957
+ * * SQL Data Type: nvarchar(255)`),
7958
+ AIConfiguration: zod_1.z.string().nullable().describe(`
7959
+ * * Field Name: AIConfiguration
7960
+ * * Display Name: AI Configuration
7961
+ * * SQL Data Type: nvarchar(100)`),
7962
+ });
7776
7963
  /**
7777
7964
  * zod schema definition for the entity MJ: AI Agent Data Sources
7778
7965
  */
@@ -8052,6 +8239,14 @@ exports.AIAgentExampleSchema = zod_1.z.object({
8052
8239
  * * Field Name: SourceConversation
8053
8240
  * * Display Name: Source Conversation
8054
8241
  * * SQL Data Type: nvarchar(255)`),
8242
+ SourceConversationDetail: zod_1.z.string().nullable().describe(`
8243
+ * * Field Name: SourceConversationDetail
8244
+ * * Display Name: Source Conversation Detail
8245
+ * * SQL Data Type: nvarchar(MAX)`),
8246
+ SourceAIAgentRun: zod_1.z.string().nullable().describe(`
8247
+ * * Field Name: SourceAIAgentRun
8248
+ * * Display Name: Source AI Agent Run
8249
+ * * SQL Data Type: nvarchar(255)`),
8055
8250
  EmbeddingModel: zod_1.z.string().nullable().describe(`
8056
8251
  * * Field Name: EmbeddingModel
8057
8252
  * * Display Name: Embedding Model
@@ -8459,6 +8654,14 @@ detailed information about what validation rules failed.`),
8459
8654
  * * Display Name: Comments
8460
8655
  * * SQL Data Type: nvarchar(MAX)
8461
8656
  * * Description: Human-readable notes and comments about this agent run step`),
8657
+ AgentRun: zod_1.z.string().nullable().describe(`
8658
+ * * Field Name: AgentRun
8659
+ * * Display Name: Agent Run
8660
+ * * SQL Data Type: nvarchar(255)`),
8661
+ Parent: zod_1.z.string().nullable().describe(`
8662
+ * * Field Name: Parent
8663
+ * * Display Name: Parent
8664
+ * * SQL Data Type: nvarchar(255)`),
8462
8665
  RootParentID: zod_1.z.string().nullable().describe(`
8463
8666
  * * Field Name: RootParentID
8464
8667
  * * Display Name: Root Parent ID
@@ -8708,10 +8911,20 @@ each time the agent processes a prompt step.`),
8708
8911
  * * SQL Data Type: uniqueidentifier
8709
8912
  * * Related Entity/Foreign Key: MJ: Scheduled Job Runs (vwScheduledJobRuns.ID)
8710
8913
  * * 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.`),
8914
+ TestRunID: zod_1.z.string().nullable().describe(`
8915
+ * * Field Name: TestRunID
8916
+ * * Display Name: Test Run ID
8917
+ * * SQL Data Type: uniqueidentifier
8918
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
8919
+ * * 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
8920
  Agent: zod_1.z.string().nullable().describe(`
8712
8921
  * * Field Name: Agent
8713
8922
  * * Display Name: Agent
8714
8923
  * * SQL Data Type: nvarchar(255)`),
8924
+ ParentRun: zod_1.z.string().nullable().describe(`
8925
+ * * Field Name: ParentRun
8926
+ * * Display Name: Parent Run
8927
+ * * SQL Data Type: nvarchar(255)`),
8715
8928
  Conversation: zod_1.z.string().nullable().describe(`
8716
8929
  * * Field Name: Conversation
8717
8930
  * * Display Name: Conversation
@@ -8720,6 +8933,14 @@ each time the agent processes a prompt step.`),
8720
8933
  * * Field Name: User
8721
8934
  * * Display Name: User
8722
8935
  * * SQL Data Type: nvarchar(100)`),
8936
+ ConversationDetail: zod_1.z.string().nullable().describe(`
8937
+ * * Field Name: ConversationDetail
8938
+ * * Display Name: Conversation Detail
8939
+ * * SQL Data Type: nvarchar(MAX)`),
8940
+ LastRun: zod_1.z.string().nullable().describe(`
8941
+ * * Field Name: LastRun
8942
+ * * Display Name: Last Run
8943
+ * * SQL Data Type: nvarchar(255)`),
8723
8944
  Configuration: zod_1.z.string().nullable().describe(`
8724
8945
  * * Field Name: Configuration
8725
8946
  * * Display Name: Configuration
@@ -8732,6 +8953,10 @@ each time the agent processes a prompt step.`),
8732
8953
  * * Field Name: OverrideVendor
8733
8954
  * * Display Name: Override Vendor
8734
8955
  * * SQL Data Type: nvarchar(50)`),
8956
+ ScheduledJobRun: zod_1.z.string().nullable().describe(`
8957
+ * * Field Name: ScheduledJobRun
8958
+ * * Display Name: Scheduled Job Run
8959
+ * * SQL Data Type: nvarchar(200)`),
8735
8960
  RootParentRunID: zod_1.z.string().nullable().describe(`
8736
8961
  * * Field Name: RootParentRunID
8737
8962
  * * Display Name: Root Parent Run ID
@@ -10003,6 +10228,12 @@ exports.AIPromptRunSchema = zod_1.z.object({
10003
10228
  * * Display Name: Comments
10004
10229
  * * SQL Data Type: nvarchar(MAX)
10005
10230
  * * Description: Human-readable notes and comments about this prompt run`),
10231
+ TestRunID: zod_1.z.string().nullable().describe(`
10232
+ * * Field Name: TestRunID
10233
+ * * Display Name: Test Run ID
10234
+ * * SQL Data Type: uniqueidentifier
10235
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
10236
+ * * 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
10237
  Prompt: zod_1.z.string().describe(`
10007
10238
  * * Field Name: Prompt
10008
10239
  * * Display Name: Prompt
@@ -10023,10 +10254,22 @@ exports.AIPromptRunSchema = zod_1.z.object({
10023
10254
  * * Field Name: Configuration
10024
10255
  * * Display Name: Configuration
10025
10256
  * * SQL Data Type: nvarchar(100)`),
10257
+ Parent: zod_1.z.string().nullable().describe(`
10258
+ * * Field Name: Parent
10259
+ * * Display Name: Parent
10260
+ * * SQL Data Type: nvarchar(255)`),
10261
+ AgentRun: zod_1.z.string().nullable().describe(`
10262
+ * * Field Name: AgentRun
10263
+ * * Display Name: Agent Run
10264
+ * * SQL Data Type: nvarchar(255)`),
10026
10265
  OriginalModel: zod_1.z.string().nullable().describe(`
10027
10266
  * * Field Name: OriginalModel
10028
10267
  * * Display Name: Original Model
10029
10268
  * * SQL Data Type: nvarchar(50)`),
10269
+ RerunFromPromptRun: zod_1.z.string().nullable().describe(`
10270
+ * * Field Name: RerunFromPromptRun
10271
+ * * Display Name: Rerun From Prompt Run
10272
+ * * SQL Data Type: nvarchar(255)`),
10030
10273
  Judge: zod_1.z.string().nullable().describe(`
10031
10274
  * * Field Name: Judge
10032
10275
  * * Display Name: Judge
@@ -10286,6 +10529,11 @@ exports.ArtifactTypeSchema = zod_1.z.object({
10286
10529
  * * Display Name: Driver Class
10287
10530
  * * SQL Data Type: nvarchar(255)
10288
10531
  * * Description: Driver class name for the artifact viewer plugin. References Angular component registered with @RegisterClass decorator.`),
10532
+ Icon: zod_1.z.string().nullable().describe(`
10533
+ * * Field Name: Icon
10534
+ * * Display Name: Icon
10535
+ * * SQL Data Type: nvarchar(255)
10536
+ * * Description: Font Awesome icon class name for displaying this artifact type in the UI (e.g., fa-file-code, fa-chart-line)`),
10289
10537
  Parent: zod_1.z.string().nullable().describe(`
10290
10538
  * * Field Name: Parent
10291
10539
  * * Display Name: Parent
@@ -11379,6 +11627,10 @@ exports.ConversationDetailArtifactSchema = zod_1.z.object({
11379
11627
  * * Display Name: Updated At
11380
11628
  * * SQL Data Type: datetimeoffset
11381
11629
  * * Default Value: getutcdate()`),
11630
+ ConversationDetail: zod_1.z.string().describe(`
11631
+ * * Field Name: ConversationDetail
11632
+ * * Display Name: Conversation Detail
11633
+ * * SQL Data Type: nvarchar(MAX)`),
11382
11634
  ArtifactVersion: zod_1.z.string().nullable().describe(`
11383
11635
  * * Field Name: ArtifactVersion
11384
11636
  * * Display Name: Artifact Version
@@ -11425,6 +11677,10 @@ exports.ConversationDetailRatingSchema = zod_1.z.object({
11425
11677
  * * Display Name: Updated At
11426
11678
  * * SQL Data Type: datetimeoffset
11427
11679
  * * Default Value: getutcdate()`),
11680
+ ConversationDetail: zod_1.z.string().describe(`
11681
+ * * Field Name: ConversationDetail
11682
+ * * Display Name: Conversation Detail
11683
+ * * SQL Data Type: nvarchar(MAX)`),
11428
11684
  User: zod_1.z.string().describe(`
11429
11685
  * * Field Name: User
11430
11686
  * * Display Name: User
@@ -12483,6 +12739,10 @@ exports.TaskSchema = zod_1.z.object({
12483
12739
  * * Field Name: Project
12484
12740
  * * Display Name: Project
12485
12741
  * * SQL Data Type: nvarchar(255)`),
12742
+ ConversationDetail: zod_1.z.string().nullable().describe(`
12743
+ * * Field Name: ConversationDetail
12744
+ * * Display Name: Conversation Detail
12745
+ * * SQL Data Type: nvarchar(MAX)`),
12486
12746
  User: zod_1.z.string().nullable().describe(`
12487
12747
  * * Field Name: User
12488
12748
  * * Display Name: User
@@ -12497,22 +12757,56 @@ exports.TaskSchema = zod_1.z.object({
12497
12757
  * * SQL Data Type: uniqueidentifier`),
12498
12758
  });
12499
12759
  /**
12500
- * zod schema definition for the entity Output Delivery Types
12760
+ * zod schema definition for the entity MJ: Test Rubrics
12501
12761
  */
12502
- exports.OutputDeliveryTypeSchema = zod_1.z.object({
12762
+ exports.TestRubricSchema = zod_1.z.object({
12503
12763
  ID: zod_1.z.string().describe(`
12504
12764
  * * Field Name: ID
12505
12765
  * * Display Name: ID
12506
12766
  * * SQL Data Type: uniqueidentifier
12507
12767
  * * Default Value: newsequentialid()`),
12768
+ TypeID: zod_1.z.string().describe(`
12769
+ * * Field Name: TypeID
12770
+ * * Display Name: Type ID
12771
+ * * SQL Data Type: uniqueidentifier
12772
+ * * Related Entity/Foreign Key: MJ: Test Types (vwTestTypes.ID)
12773
+ * * Description: Foreign Key - The test type this rubric applies to (e.g., Agent Eval, Code Generation)`),
12508
12774
  Name: zod_1.z.string().describe(`
12509
12775
  * * Field Name: Name
12510
12776
  * * Display Name: Name
12511
- * * SQL Data Type: nvarchar(255)`),
12777
+ * * SQL Data Type: nvarchar(255)
12778
+ * * Description: Unique name for the rubric (e.g., "Component Quality Rubric v1", "Agent Response Quality")`),
12512
12779
  Description: zod_1.z.string().nullable().describe(`
12513
12780
  * * Field Name: Description
12514
12781
  * * Display Name: Description
12515
- * * SQL Data Type: nvarchar(MAX)`),
12782
+ * * SQL Data Type: nvarchar(MAX)
12783
+ * * Description: Description of what this rubric evaluates and when to use it`),
12784
+ PromptTemplate: zod_1.z.string().nullable().describe(`
12785
+ * * Field Name: PromptTemplate
12786
+ * * Display Name: Prompt Template
12787
+ * * SQL Data Type: nvarchar(MAX)
12788
+ * * 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...")`),
12789
+ Criteria: zod_1.z.string().nullable().describe(`
12790
+ * * Field Name: Criteria
12791
+ * * Display Name: Criteria
12792
+ * * SQL Data Type: nvarchar(MAX)
12793
+ * * 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: "..."}})`),
12794
+ Version: zod_1.z.string().nullable().describe(`
12795
+ * * Field Name: Version
12796
+ * * Display Name: Version
12797
+ * * SQL Data Type: nvarchar(50)
12798
+ * * Description: Version identifier for the rubric. Allows tracking changes and comparing results across rubric versions.`),
12799
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Disabled'), zod_1.z.literal('Pending')]).describe(`
12800
+ * * Field Name: Status
12801
+ * * Display Name: Status
12802
+ * * SQL Data Type: nvarchar(20)
12803
+ * * Default Value: Active
12804
+ * * Value List Type: List
12805
+ * * Possible Values
12806
+ * * Active
12807
+ * * Disabled
12808
+ * * Pending
12809
+ * * Description: Status of the rubric: Pending (under development), Active (available for use), Disabled (deprecated)`),
12516
12810
  __mj_CreatedAt: zod_1.z.date().describe(`
12517
12811
  * * Field Name: __mj_CreatedAt
12518
12812
  * * Display Name: Created At
@@ -12523,29 +12817,58 @@ exports.OutputDeliveryTypeSchema = zod_1.z.object({
12523
12817
  * * Display Name: Updated At
12524
12818
  * * SQL Data Type: datetimeoffset
12525
12819
  * * Default Value: getutcdate()`),
12820
+ Type: zod_1.z.string().describe(`
12821
+ * * Field Name: Type
12822
+ * * Display Name: Type
12823
+ * * SQL Data Type: nvarchar(100)`),
12526
12824
  });
12527
12825
  /**
12528
- * zod schema definition for the entity Output Format Types
12826
+ * zod schema definition for the entity MJ: Test Run Feedbacks
12529
12827
  */
12530
- exports.OutputFormatTypeSchema = zod_1.z.object({
12828
+ exports.TestRunFeedbackSchema = zod_1.z.object({
12531
12829
  ID: zod_1.z.string().describe(`
12532
12830
  * * Field Name: ID
12533
12831
  * * Display Name: ID
12534
12832
  * * SQL Data Type: uniqueidentifier
12535
12833
  * * Default Value: newsequentialid()`),
12536
- Name: zod_1.z.string().describe(`
12537
- * * Field Name: Name
12538
- * * Display Name: Name
12539
- * * SQL Data Type: nvarchar(255)`),
12540
- Description: zod_1.z.string().nullable().describe(`
12541
- * * Field Name: Description
12542
- * * Display Name: Description
12543
- * * SQL Data Type: nvarchar(MAX)`),
12544
- DisplayFormat: zod_1.z.string().nullable().describe(`
12545
- * * Field Name: DisplayFormat
12546
- * * Display Name: Display Format
12834
+ TestRunID: zod_1.z.string().describe(`
12835
+ * * Field Name: TestRunID
12836
+ * * Display Name: Test Run ID
12837
+ * * SQL Data Type: uniqueidentifier
12838
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
12839
+ * * Description: Foreign Key - The test run being reviewed`),
12840
+ ReviewerUserID: zod_1.z.string().describe(`
12841
+ * * Field Name: ReviewerUserID
12842
+ * * Display Name: Reviewer User ID
12843
+ * * SQL Data Type: uniqueidentifier
12844
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
12845
+ * * Description: Foreign Key - The user providing the feedback`),
12846
+ Rating: zod_1.z.number().nullable().describe(`
12847
+ * * Field Name: Rating
12848
+ * * Display Name: Rating
12849
+ * * SQL Data Type: int
12850
+ * * Description: Numeric rating from 1 (poor) to 10 (excellent). Allows quantitative tracking of result quality.`),
12851
+ IsCorrect: zod_1.z.boolean().nullable().describe(`
12852
+ * * Field Name: IsCorrect
12853
+ * * Display Name: Is Correct
12854
+ * * SQL Data Type: bit
12855
+ * * Description: Boolean indicating if the automated test result was correct. Can override automated Pass/Fail status.`),
12856
+ CorrectionSummary: zod_1.z.string().nullable().describe(`
12857
+ * * Field Name: CorrectionSummary
12858
+ * * Display Name: Correction Summary
12547
12859
  * * SQL Data Type: nvarchar(MAX)
12548
- * * Description: Configuration or template for how data should be formatted in this output type.`),
12860
+ * * Description: Summary of corrections or adjustments made by the human reviewer`),
12861
+ Comments: zod_1.z.string().nullable().describe(`
12862
+ * * Field Name: Comments
12863
+ * * Display Name: Comments
12864
+ * * SQL Data Type: nvarchar(MAX)
12865
+ * * Description: Free-form comments from the reviewer about the test result, quality, or issues found`),
12866
+ ReviewedAt: zod_1.z.date().describe(`
12867
+ * * Field Name: ReviewedAt
12868
+ * * Display Name: Reviewed At
12869
+ * * SQL Data Type: datetime
12870
+ * * Default Value: getdate()
12871
+ * * Description: Timestamp when the feedback was provided`),
12549
12872
  __mj_CreatedAt: zod_1.z.date().describe(`
12550
12873
  * * Field Name: __mj_CreatedAt
12551
12874
  * * Display Name: Created At
@@ -12556,24 +12879,132 @@ exports.OutputFormatTypeSchema = zod_1.z.object({
12556
12879
  * * Display Name: Updated At
12557
12880
  * * SQL Data Type: datetimeoffset
12558
12881
  * * Default Value: getutcdate()`),
12882
+ ReviewerUser: zod_1.z.string().describe(`
12883
+ * * Field Name: ReviewerUser
12884
+ * * Display Name: Reviewer User
12885
+ * * SQL Data Type: nvarchar(100)`),
12559
12886
  });
12560
12887
  /**
12561
- * zod schema definition for the entity Output Trigger Types
12888
+ * zod schema definition for the entity MJ: Test Runs
12562
12889
  */
12563
- exports.OutputTriggerTypeSchema = zod_1.z.object({
12890
+ exports.TestRunSchema = zod_1.z.object({
12564
12891
  ID: zod_1.z.string().describe(`
12565
12892
  * * Field Name: ID
12566
12893
  * * Display Name: ID
12567
12894
  * * SQL Data Type: uniqueidentifier
12568
12895
  * * Default Value: newsequentialid()`),
12569
- Name: zod_1.z.string().describe(`
12570
- * * Field Name: Name
12571
- * * Display Name: Name
12572
- * * SQL Data Type: nvarchar(255)`),
12573
- Description: zod_1.z.string().nullable().describe(`
12574
- * * Field Name: Description
12575
- * * Display Name: Description
12576
- * * SQL Data Type: nvarchar(MAX)`),
12896
+ TestID: zod_1.z.string().describe(`
12897
+ * * Field Name: TestID
12898
+ * * Display Name: Test ID
12899
+ * * SQL Data Type: uniqueidentifier
12900
+ * * Related Entity/Foreign Key: MJ: Tests (vwTests.ID)
12901
+ * * Description: Foreign Key - The test definition that was executed`),
12902
+ TestSuiteRunID: zod_1.z.string().nullable().describe(`
12903
+ * * Field Name: TestSuiteRunID
12904
+ * * Display Name: Test Suite Run ID
12905
+ * * SQL Data Type: uniqueidentifier
12906
+ * * Related Entity/Foreign Key: MJ: Test Suite Runs (vwTestSuiteRuns.ID)
12907
+ * * Description: Foreign Key - Optional parent suite run if this test was part of a suite execution. NULL for standalone test runs.`),
12908
+ RunByUserID: zod_1.z.string().describe(`
12909
+ * * Field Name: RunByUserID
12910
+ * * Display Name: Run By User ID
12911
+ * * SQL Data Type: uniqueidentifier
12912
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
12913
+ * * Description: Foreign Key - The user who triggered the test run (could be system user for automated runs)`),
12914
+ Sequence: zod_1.z.number().nullable().describe(`
12915
+ * * Field Name: Sequence
12916
+ * * Display Name: Sequence
12917
+ * * SQL Data Type: int
12918
+ * * Description: Execution sequence within the suite run. Indicates order of execution for tests in the same suite.`),
12919
+ TargetType: zod_1.z.string().nullable().describe(`
12920
+ * * Field Name: TargetType
12921
+ * * Display Name: Target Type
12922
+ * * SQL Data Type: nvarchar(100)
12923
+ * * Description: Type of the target being tested (e.g., "Agent Run", "Workflow Run", "Code Generation"). Polymorphic discriminator for TargetLogID.`),
12924
+ TargetLogID: zod_1.z.string().nullable().describe(`
12925
+ * * Field Name: TargetLogID
12926
+ * * Display Name: Target Log ID
12927
+ * * SQL Data Type: uniqueidentifier
12928
+ * * 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.`),
12929
+ 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(`
12930
+ * * Field Name: Status
12931
+ * * Display Name: Status
12932
+ * * SQL Data Type: nvarchar(20)
12933
+ * * Default Value: Pending
12934
+ * * Value List Type: List
12935
+ * * Possible Values
12936
+ * * Error
12937
+ * * Failed
12938
+ * * Passed
12939
+ * * Pending
12940
+ * * Running
12941
+ * * Skipped
12942
+ * * 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)`),
12943
+ StartedAt: zod_1.z.date().nullable().describe(`
12944
+ * * Field Name: StartedAt
12945
+ * * Display Name: Started At
12946
+ * * SQL Data Type: datetime
12947
+ * * Description: Timestamp when the test run started execution`),
12948
+ CompletedAt: zod_1.z.date().nullable().describe(`
12949
+ * * Field Name: CompletedAt
12950
+ * * Display Name: Completed At
12951
+ * * SQL Data Type: datetime
12952
+ * * Description: Timestamp when the test run completed`),
12953
+ DurationSeconds: zod_1.z.number().nullable().describe(`
12954
+ * * Field Name: DurationSeconds
12955
+ * * Display Name: Duration Seconds
12956
+ * * SQL Data Type: decimal(10, 3)
12957
+ * * Description: Execution time in seconds for this test`),
12958
+ InputData: zod_1.z.string().nullable().describe(`
12959
+ * * Field Name: InputData
12960
+ * * Display Name: Input Data
12961
+ * * SQL Data Type: nvarchar(MAX)
12962
+ * * Description: JSON object with the actual inputs used for this test run (may differ from test definition if parameterized)`),
12963
+ ExpectedOutputData: zod_1.z.string().nullable().describe(`
12964
+ * * Field Name: ExpectedOutputData
12965
+ * * Display Name: Expected Output Data
12966
+ * * SQL Data Type: nvarchar(MAX)
12967
+ * * Description: JSON object with the expected outputs/outcomes for this test run`),
12968
+ ActualOutputData: zod_1.z.string().nullable().describe(`
12969
+ * * Field Name: ActualOutputData
12970
+ * * Display Name: Actual Output Data
12971
+ * * SQL Data Type: nvarchar(MAX)
12972
+ * * Description: JSON object with the actual outputs produced by the test execution`),
12973
+ PassedChecks: zod_1.z.number().nullable().describe(`
12974
+ * * Field Name: PassedChecks
12975
+ * * Display Name: Passed Checks
12976
+ * * SQL Data Type: int
12977
+ * * Description: Number of validation checks that passed`),
12978
+ FailedChecks: zod_1.z.number().nullable().describe(`
12979
+ * * Field Name: FailedChecks
12980
+ * * Display Name: Failed Checks
12981
+ * * SQL Data Type: int
12982
+ * * Description: Number of validation checks that failed`),
12983
+ TotalChecks: zod_1.z.number().nullable().describe(`
12984
+ * * Field Name: TotalChecks
12985
+ * * Display Name: Total Checks
12986
+ * * SQL Data Type: int
12987
+ * * Description: Total number of validation checks performed`),
12988
+ Score: zod_1.z.number().nullable().describe(`
12989
+ * * Field Name: Score
12990
+ * * Display Name: Score
12991
+ * * SQL Data Type: decimal(5, 4)
12992
+ * * Description: Overall test score from 0.0000 to 1.0000 (0-100%). Calculated by test driver based on passed/failed checks and weights.`),
12993
+ CostUSD: zod_1.z.number().nullable().describe(`
12994
+ * * Field Name: CostUSD
12995
+ * * Display Name: Cost USD
12996
+ * * SQL Data Type: decimal(10, 6)
12997
+ * * Description: Cost in USD for running this test (e.g., LLM token costs, compute resources)`),
12998
+ ErrorMessage: zod_1.z.string().nullable().describe(`
12999
+ * * Field Name: ErrorMessage
13000
+ * * Display Name: Error Message
13001
+ * * SQL Data Type: nvarchar(MAX)
13002
+ * * Description: Error message if the test encountered an execution error`),
13003
+ ResultDetails: zod_1.z.string().nullable().describe(`
13004
+ * * Field Name: ResultDetails
13005
+ * * Display Name: Result Details
13006
+ * * SQL Data Type: nvarchar(MAX)
13007
+ * * Description: JSON object with detailed results including individual check results, metrics, oracle outputs, and diagnostic information`),
12577
13008
  __mj_CreatedAt: zod_1.z.date().describe(`
12578
13009
  * * Field Name: __mj_CreatedAt
12579
13010
  * * Display Name: Created At
@@ -12584,241 +13015,736 @@ exports.OutputTriggerTypeSchema = zod_1.z.object({
12584
13015
  * * Display Name: Updated At
12585
13016
  * * SQL Data Type: datetimeoffset
12586
13017
  * * Default Value: getutcdate()`),
13018
+ Test: zod_1.z.string().describe(`
13019
+ * * Field Name: Test
13020
+ * * Display Name: Test
13021
+ * * SQL Data Type: nvarchar(255)`),
13022
+ RunByUser: zod_1.z.string().describe(`
13023
+ * * Field Name: RunByUser
13024
+ * * Display Name: Run By User
13025
+ * * SQL Data Type: nvarchar(100)`),
12587
13026
  });
12588
13027
  /**
12589
- * zod schema definition for the entity Queries
13028
+ * zod schema definition for the entity MJ: Test Suite Runs
12590
13029
  */
12591
- exports.QuerySchema = zod_1.z.object({
13030
+ exports.TestSuiteRunSchema = zod_1.z.object({
12592
13031
  ID: zod_1.z.string().describe(`
12593
13032
  * * Field Name: ID
12594
13033
  * * Display Name: ID
12595
13034
  * * SQL Data Type: uniqueidentifier
12596
13035
  * * Default Value: newsequentialid()`),
12597
- Name: zod_1.z.string().describe(`
12598
- * * Field Name: Name
12599
- * * Display Name: Name
12600
- * * SQL Data Type: nvarchar(255)`),
12601
- CategoryID: zod_1.z.string().nullable().describe(`
12602
- * * Field Name: CategoryID
12603
- * * Display Name: Category ID
13036
+ SuiteID: zod_1.z.string().describe(`
13037
+ * * Field Name: SuiteID
13038
+ * * Display Name: Suite ID
12604
13039
  * * SQL Data Type: uniqueidentifier
12605
- * * Related Entity/Foreign Key: Query Categories (vwQueryCategories.ID)`),
12606
- UserQuestion: zod_1.z.string().nullable().describe(`
12607
- * * Field Name: UserQuestion
12608
- * * Display Name: User Question
12609
- * * SQL Data Type: nvarchar(MAX)
12610
- * * Description: The natural language question this query answers, used for AI query selection.`),
12611
- Description: zod_1.z.string().nullable().describe(`
12612
- * * Field Name: Description
12613
- * * Display Name: Description
12614
- * * SQL Data Type: nvarchar(MAX)`),
12615
- SQL: zod_1.z.string().nullable().describe(`
12616
- * * Field Name: SQL
12617
- * * Display Name: SQL
12618
- * * SQL Data Type: nvarchar(MAX)
12619
- * * Description: The actual SQL query text to execute, may include parameters.`),
12620
- TechnicalDescription: zod_1.z.string().nullable().describe(`
12621
- * * Field Name: TechnicalDescription
12622
- * * Display Name: Technical Description
12623
- * * SQL Data Type: nvarchar(MAX)
12624
- * * Description: Technical documentation of the query logic, performance considerations, and parameter usage.`),
12625
- OriginalSQL: zod_1.z.string().nullable().describe(`
12626
- * * Field Name: OriginalSQL
12627
- * * Display Name: Original SQL
12628
- * * SQL Data Type: nvarchar(MAX)
12629
- * * Description: The original SQL before any optimization or modification, kept for reference.`),
12630
- Feedback: zod_1.z.string().nullable().describe(`
12631
- * * Field Name: Feedback
12632
- * * Display Name: Feedback
12633
- * * SQL Data Type: nvarchar(MAX)
12634
- * * Description: User feedback on query accuracy, performance, or suggested improvements.`),
12635
- Status: zod_1.z.union([zod_1.z.literal('Approved'), zod_1.z.literal('Expired'), zod_1.z.literal('Pending'), zod_1.z.literal('Rejected')]).describe(`
13040
+ * * Related Entity/Foreign Key: MJ: Test Suites (vwTestSuites.ID)
13041
+ * * Description: Foreign Key - The test suite that was executed`),
13042
+ RunByUserID: zod_1.z.string().describe(`
13043
+ * * Field Name: RunByUserID
13044
+ * * Display Name: Run By User ID
13045
+ * * SQL Data Type: uniqueidentifier
13046
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
13047
+ * * Description: Foreign Key - The user who triggered the suite run (could be system user for automated runs)`),
13048
+ Environment: zod_1.z.string().nullable().describe(`
13049
+ * * Field Name: Environment
13050
+ * * Display Name: Environment
13051
+ * * SQL Data Type: nvarchar(50)
13052
+ * * Description: Environment where tests were executed (e.g., "dev", "staging", "prod", "ci")`),
13053
+ TriggerType: zod_1.z.string().nullable().describe(`
13054
+ * * Field Name: TriggerType
13055
+ * * Display Name: Trigger Type
13056
+ * * SQL Data Type: nvarchar(50)
13057
+ * * Description: How the run was triggered (e.g., "manual", "ci", "scheduled", "shadow", "release")`),
13058
+ GitCommit: zod_1.z.string().nullable().describe(`
13059
+ * * Field Name: GitCommit
13060
+ * * Display Name: Git Commit
13061
+ * * SQL Data Type: nvarchar(100)
13062
+ * * Description: Git commit SHA of the code version being tested. Enables correlation between test results and code changes.`),
13063
+ AgentVersion: zod_1.z.string().nullable().describe(`
13064
+ * * Field Name: AgentVersion
13065
+ * * Display Name: Agent Version
13066
+ * * SQL Data Type: nvarchar(100)
13067
+ * * 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.`),
13068
+ 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(`
12636
13069
  * * Field Name: Status
12637
13070
  * * Display Name: Status
12638
- * * SQL Data Type: nvarchar(15)
13071
+ * * SQL Data Type: nvarchar(20)
12639
13072
  * * Default Value: Pending
12640
13073
  * * Value List Type: List
12641
13074
  * * Possible Values
12642
- * * Approved
12643
- * * Expired
13075
+ * * Cancelled
13076
+ * * Completed
13077
+ * * Failed
12644
13078
  * * Pending
12645
- * * Rejected`),
12646
- QualityRank: zod_1.z.number().nullable().describe(`
12647
- * * Field Name: QualityRank
12648
- * * Display Name: Quality Rank
13079
+ * * Running
13080
+ * * Description: Current status of the suite run: Pending (queued), Running (in progress), Completed (finished successfully), Failed (suite-level failure), Cancelled (stopped by user)`),
13081
+ StartedAt: zod_1.z.date().nullable().describe(`
13082
+ * * Field Name: StartedAt
13083
+ * * Display Name: Started At
13084
+ * * SQL Data Type: datetime
13085
+ * * Description: Timestamp when the suite run started execution`),
13086
+ CompletedAt: zod_1.z.date().nullable().describe(`
13087
+ * * Field Name: CompletedAt
13088
+ * * Display Name: Completed At
13089
+ * * SQL Data Type: datetime
13090
+ * * Description: Timestamp when the suite run completed (successfully or with failures)`),
13091
+ TotalTests: zod_1.z.number().nullable().describe(`
13092
+ * * Field Name: TotalTests
13093
+ * * Display Name: Total Tests
12649
13094
  * * SQL Data Type: int
12650
- * * Default Value: 0
12651
- * * Description: Value indicating the quality of the query, higher values mean a better quality`),
12652
- ExecutionCostRank: zod_1.z.number().nullable().describe(`
12653
- * * Field Name: ExecutionCostRank
12654
- * * Display Name: Execution Cost Rank
13095
+ * * Description: Total number of tests executed in this suite run`),
13096
+ PassedTests: zod_1.z.number().nullable().describe(`
13097
+ * * Field Name: PassedTests
13098
+ * * Display Name: Passed Tests
12655
13099
  * * SQL Data Type: int
12656
- * * Description: Higher numbers indicate more execution overhead/time required. Useful for planning which queries to use in various scenarios.`),
13100
+ * * Description: Number of tests that passed all checks`),
13101
+ FailedTests: zod_1.z.number().nullable().describe(`
13102
+ * * Field Name: FailedTests
13103
+ * * Display Name: Failed Tests
13104
+ * * SQL Data Type: int
13105
+ * * Description: Number of tests that failed at least one check`),
13106
+ SkippedTests: zod_1.z.number().nullable().describe(`
13107
+ * * Field Name: SkippedTests
13108
+ * * Display Name: Skipped Tests
13109
+ * * SQL Data Type: int
13110
+ * * Description: Number of tests that were skipped (not executed)`),
13111
+ ErrorTests: zod_1.z.number().nullable().describe(`
13112
+ * * Field Name: ErrorTests
13113
+ * * Display Name: Error Tests
13114
+ * * SQL Data Type: int
13115
+ * * Description: Number of tests that encountered execution errors (different from failing validation)`),
13116
+ TotalDurationSeconds: zod_1.z.number().nullable().describe(`
13117
+ * * Field Name: TotalDurationSeconds
13118
+ * * Display Name: Total Duration Seconds
13119
+ * * SQL Data Type: decimal(10, 3)
13120
+ * * Description: Total execution time in seconds for the entire suite`),
13121
+ TotalCostUSD: zod_1.z.number().nullable().describe(`
13122
+ * * Field Name: TotalCostUSD
13123
+ * * Display Name: Total Cost USD
13124
+ * * SQL Data Type: decimal(10, 6)
13125
+ * * Description: Total cost in USD for running the entire suite (sum of all test costs)`),
13126
+ Configuration: zod_1.z.string().nullable().describe(`
13127
+ * * Field Name: Configuration
13128
+ * * Display Name: Configuration
13129
+ * * SQL Data Type: nvarchar(MAX)
13130
+ * * Description: JSON snapshot of the runtime configuration used for this suite run`),
13131
+ ResultSummary: zod_1.z.string().nullable().describe(`
13132
+ * * Field Name: ResultSummary
13133
+ * * Display Name: Result Summary
13134
+ * * SQL Data Type: nvarchar(MAX)
13135
+ * * Description: JSON object with aggregated results and statistics from the suite run`),
13136
+ ErrorMessage: zod_1.z.string().nullable().describe(`
13137
+ * * Field Name: ErrorMessage
13138
+ * * Display Name: Error Message
13139
+ * * SQL Data Type: nvarchar(MAX)
13140
+ * * Description: Error message if the suite-level execution failed (before individual tests could run)`),
12657
13141
  __mj_CreatedAt: zod_1.z.date().describe(`
12658
13142
  * * Field Name: __mj_CreatedAt
12659
- * * Display Name: __mj _Created At
13143
+ * * Display Name: Created At
12660
13144
  * * SQL Data Type: datetimeoffset
12661
13145
  * * Default Value: getutcdate()`),
12662
13146
  __mj_UpdatedAt: zod_1.z.date().describe(`
12663
13147
  * * Field Name: __mj_UpdatedAt
12664
- * * Display Name: __mj _Updated At
13148
+ * * Display Name: Updated At
12665
13149
  * * SQL Data Type: datetimeoffset
12666
13150
  * * Default Value: getutcdate()`),
12667
- UsesTemplate: zod_1.z.boolean().nullable().describe(`
12668
- * * Field Name: UsesTemplate
12669
- * * Display Name: Uses Template
12670
- * * SQL Data Type: bit
12671
- * * Default Value: 0
12672
- * * Description: Automatically set to true when the SQL column contains Nunjucks template markers (e.g., {{ paramName }}). This flag is maintained by the QueryEntityServer for performance optimization and discovery purposes. It allows quick filtering of parameterized queries and enables the UI to show parameter inputs only when needed. The system will automatically update this flag when the SQL content changes.`),
12673
- AuditQueryRuns: zod_1.z.boolean().describe(`
12674
- * * Field Name: AuditQueryRuns
12675
- * * Display Name: Audit Query Runs
12676
- * * SQL Data Type: bit
12677
- * * Default Value: 0
12678
- * * Description: When true, all executions of this query will be logged to the Audit Log system for tracking and compliance`),
12679
- CacheEnabled: zod_1.z.boolean().describe(`
12680
- * * Field Name: CacheEnabled
12681
- * * Display Name: Cache Enabled
12682
- * * SQL Data Type: bit
12683
- * * Default Value: 0
12684
- * * Description: When true, query results will be cached in memory with TTL expiration`),
12685
- CacheTTLMinutes: zod_1.z.number().nullable().describe(`
12686
- * * Field Name: CacheTTLMinutes
12687
- * * Display Name: Cache TTL Minutes
12688
- * * SQL Data Type: int
12689
- * * Description: Time-to-live in minutes for cached query results. NULL uses default TTL.`),
12690
- CacheMaxSize: zod_1.z.number().nullable().describe(`
12691
- * * Field Name: CacheMaxSize
12692
- * * Display Name: Cache Max Size
13151
+ Suite: zod_1.z.string().describe(`
13152
+ * * Field Name: Suite
13153
+ * * Display Name: Suite
13154
+ * * SQL Data Type: nvarchar(255)`),
13155
+ RunByUser: zod_1.z.string().describe(`
13156
+ * * Field Name: RunByUser
13157
+ * * Display Name: Run By User
13158
+ * * SQL Data Type: nvarchar(100)`),
13159
+ });
13160
+ /**
13161
+ * zod schema definition for the entity MJ: Test Suite Tests
13162
+ */
13163
+ exports.TestSuiteTestSchema = zod_1.z.object({
13164
+ ID: zod_1.z.string().describe(`
13165
+ * * Field Name: ID
13166
+ * * Display Name: ID
13167
+ * * SQL Data Type: uniqueidentifier
13168
+ * * Default Value: newsequentialid()`),
13169
+ SuiteID: zod_1.z.string().describe(`
13170
+ * * Field Name: SuiteID
13171
+ * * Display Name: Suite ID
13172
+ * * SQL Data Type: uniqueidentifier
13173
+ * * Related Entity/Foreign Key: MJ: Test Suites (vwTestSuites.ID)
13174
+ * * Description: Foreign Key - The test suite this relationship belongs to`),
13175
+ TestID: zod_1.z.string().describe(`
13176
+ * * Field Name: TestID
13177
+ * * Display Name: Test ID
13178
+ * * SQL Data Type: uniqueidentifier
13179
+ * * Related Entity/Foreign Key: MJ: Tests (vwTests.ID)
13180
+ * * Description: Foreign Key - The test included in this suite`),
13181
+ Sequence: zod_1.z.number().describe(`
13182
+ * * Field Name: Sequence
13183
+ * * Display Name: Sequence
12693
13184
  * * SQL Data Type: int
12694
- * * Description: Maximum number of cached result sets for this query. NULL uses default size limit.`),
12695
- EmbeddingVector: zod_1.z.string().nullable().describe(`
12696
- * * Field Name: EmbeddingVector
12697
- * * Display Name: Embedding Vector
13185
+ * * Default Value: 0
13186
+ * * Description: Execution sequence within the suite. Lower numbers run first. Tests with same sequence may run in parallel.`),
13187
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Disabled'), zod_1.z.literal('Skip')]).describe(`
13188
+ * * Field Name: Status
13189
+ * * Display Name: Status
13190
+ * * SQL Data Type: nvarchar(20)
13191
+ * * Default Value: Active
13192
+ * * Value List Type: List
13193
+ * * Possible Values
13194
+ * * Active
13195
+ * * Disabled
13196
+ * * Skip
13197
+ * * Description: Status of this test within this suite: Active (will run), Disabled (temporarily excluded), Skip (documented exclusion)`),
13198
+ Configuration: zod_1.z.string().nullable().describe(`
13199
+ * * Field Name: Configuration
13200
+ * * Display Name: Configuration
12698
13201
  * * SQL Data Type: nvarchar(MAX)
12699
- * * Description: Optional JSON-serialized embedding vector for the query, used for similarity search and query analysis`),
12700
- EmbeddingModelID: zod_1.z.string().nullable().describe(`
12701
- * * Field Name: EmbeddingModelID
12702
- * * Display Name: Embedding Model ID
12703
- * * SQL Data Type: uniqueidentifier
12704
- * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
12705
- * * Description: The AI Model used to generate the embedding vector for this query. Required for vector similarity comparisons.`),
12706
- Category: zod_1.z.string().nullable().describe(`
12707
- * * Field Name: Category
12708
- * * Display Name: Category
12709
- * * SQL Data Type: nvarchar(50)`),
12710
- EmbeddingModel: zod_1.z.string().nullable().describe(`
12711
- * * Field Name: EmbeddingModel
12712
- * * Display Name: Embedding Model
12713
- * * SQL Data Type: nvarchar(50)`),
13202
+ * * Description: JSON object to override test configuration for this specific suite. Allows same test to run with different parameters in different suites.`),
13203
+ __mj_CreatedAt: zod_1.z.date().describe(`
13204
+ * * Field Name: __mj_CreatedAt
13205
+ * * Display Name: Created At
13206
+ * * SQL Data Type: datetimeoffset
13207
+ * * Default Value: getutcdate()`),
13208
+ __mj_UpdatedAt: zod_1.z.date().describe(`
13209
+ * * Field Name: __mj_UpdatedAt
13210
+ * * Display Name: Updated At
13211
+ * * SQL Data Type: datetimeoffset
13212
+ * * Default Value: getutcdate()`),
13213
+ Suite: zod_1.z.string().describe(`
13214
+ * * Field Name: Suite
13215
+ * * Display Name: Suite
13216
+ * * SQL Data Type: nvarchar(255)`),
13217
+ Test: zod_1.z.string().describe(`
13218
+ * * Field Name: Test
13219
+ * * Display Name: Test
13220
+ * * SQL Data Type: nvarchar(255)`),
12714
13221
  });
12715
13222
  /**
12716
- * zod schema definition for the entity Query Categories
13223
+ * zod schema definition for the entity MJ: Test Suites
12717
13224
  */
12718
- exports.QueryCategorySchema = zod_1.z.object({
13225
+ exports.TestSuiteSchema = zod_1.z.object({
12719
13226
  ID: zod_1.z.string().describe(`
12720
13227
  * * Field Name: ID
12721
13228
  * * Display Name: ID
12722
13229
  * * SQL Data Type: uniqueidentifier
12723
13230
  * * Default Value: newsequentialid()`),
12724
- Name: zod_1.z.string().describe(`
12725
- * * Field Name: Name
12726
- * * Display Name: Name
12727
- * * SQL Data Type: nvarchar(50)`),
12728
13231
  ParentID: zod_1.z.string().nullable().describe(`
12729
13232
  * * Field Name: ParentID
12730
13233
  * * Display Name: Parent ID
12731
13234
  * * SQL Data Type: uniqueidentifier
12732
- * * Related Entity/Foreign Key: Query Categories (vwQueryCategories.ID)`),
13235
+ * * Related Entity/Foreign Key: MJ: Test Suites (vwTestSuites.ID)
13236
+ * * Description: Optional parent suite ID for hierarchical organization. NULL for root-level suites.`),
13237
+ Name: zod_1.z.string().describe(`
13238
+ * * Field Name: Name
13239
+ * * Display Name: Name
13240
+ * * SQL Data Type: nvarchar(255)
13241
+ * * Description: Name of the test suite (e.g., "Skip Component Generation Suite", "Agent Memory Tests")`),
12733
13242
  Description: zod_1.z.string().nullable().describe(`
12734
13243
  * * Field Name: Description
12735
13244
  * * Display Name: Description
12736
- * * SQL Data Type: nvarchar(MAX)`),
12737
- UserID: zod_1.z.string().describe(`
12738
- * * Field Name: UserID
12739
- * * Display Name: User ID
12740
- * * SQL Data Type: uniqueidentifier
12741
- * * Related Entity/Foreign Key: Users (vwUsers.ID)`),
13245
+ * * SQL Data Type: nvarchar(MAX)
13246
+ * * Description: Detailed description of what this suite tests and its purpose`),
13247
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Disabled'), zod_1.z.literal('Pending')]).describe(`
13248
+ * * Field Name: Status
13249
+ * * Display Name: Status
13250
+ * * SQL Data Type: nvarchar(20)
13251
+ * * Default Value: Active
13252
+ * * Value List Type: List
13253
+ * * Possible Values
13254
+ * * Active
13255
+ * * Disabled
13256
+ * * Pending
13257
+ * * Description: Status of the suite: Pending (being configured), Active (available for use), Disabled (archived/not in use)`),
13258
+ Tags: zod_1.z.string().nullable().describe(`
13259
+ * * Field Name: Tags
13260
+ * * Display Name: Tags
13261
+ * * SQL Data Type: nvarchar(MAX)
13262
+ * * Description: JSON array of tags for categorization and filtering (e.g., ["smoke", "regression", "nightly"])`),
13263
+ Configuration: zod_1.z.string().nullable().describe(`
13264
+ * * Field Name: Configuration
13265
+ * * Display Name: Configuration
13266
+ * * SQL Data Type: nvarchar(MAX)
13267
+ * * Description: JSON configuration object for suite-level settings (e.g., environment defaults, retry policies, notification settings)`),
12742
13268
  __mj_CreatedAt: zod_1.z.date().describe(`
12743
13269
  * * Field Name: __mj_CreatedAt
12744
- * * Display Name: __mj _Created At
13270
+ * * Display Name: Created At
12745
13271
  * * SQL Data Type: datetimeoffset
12746
13272
  * * Default Value: getutcdate()`),
12747
13273
  __mj_UpdatedAt: zod_1.z.date().describe(`
12748
13274
  * * Field Name: __mj_UpdatedAt
12749
- * * Display Name: __mj _Updated At
13275
+ * * Display Name: Updated At
12750
13276
  * * SQL Data Type: datetimeoffset
12751
13277
  * * Default Value: getutcdate()`),
12752
- DefaultCacheEnabled: zod_1.z.boolean().describe(`
12753
- * * Field Name: DefaultCacheEnabled
12754
- * * Display Name: Default Cache Enabled
12755
- * * SQL Data Type: bit
12756
- * * Default Value: 0
12757
- * * Description: Default cache setting for queries in this category`),
12758
- DefaultCacheTTLMinutes: zod_1.z.number().nullable().describe(`
12759
- * * Field Name: DefaultCacheTTLMinutes
12760
- * * Display Name: Default Cache TTL Minutes
12761
- * * SQL Data Type: int
12762
- * * Description: Default TTL in minutes for cached results of queries in this category`),
12763
- DefaultCacheMaxSize: zod_1.z.number().nullable().describe(`
12764
- * * Field Name: DefaultCacheMaxSize
12765
- * * Display Name: Default Cache Max Size
12766
- * * SQL Data Type: int
12767
- * * Description: Default maximum cache size for queries in this category`),
12768
- CacheInheritanceEnabled: zod_1.z.boolean().describe(`
12769
- * * Field Name: CacheInheritanceEnabled
12770
- * * Display Name: Cache Inheritance Enabled
12771
- * * SQL Data Type: bit
12772
- * * Default Value: 1
12773
- * * Description: When true, queries without cache config will inherit from this category`),
12774
13278
  Parent: zod_1.z.string().nullable().describe(`
12775
13279
  * * Field Name: Parent
12776
13280
  * * Display Name: Parent
12777
- * * SQL Data Type: nvarchar(50)`),
12778
- User: zod_1.z.string().describe(`
12779
- * * Field Name: User
12780
- * * Display Name: User
12781
- * * SQL Data Type: nvarchar(100)`),
13281
+ * * SQL Data Type: nvarchar(255)`),
12782
13282
  RootParentID: zod_1.z.string().nullable().describe(`
12783
13283
  * * Field Name: RootParentID
12784
13284
  * * Display Name: Root Parent ID
12785
13285
  * * SQL Data Type: uniqueidentifier`),
12786
13286
  });
12787
13287
  /**
12788
- * zod schema definition for the entity Query Entities
13288
+ * zod schema definition for the entity MJ: Test Types
12789
13289
  */
12790
- exports.QueryEntitySchema = zod_1.z.object({
13290
+ exports.TestTypeSchema = zod_1.z.object({
12791
13291
  ID: zod_1.z.string().describe(`
12792
13292
  * * Field Name: ID
12793
13293
  * * Display Name: ID
12794
13294
  * * SQL Data Type: uniqueidentifier
12795
- * * Default Value: newsequentialid()
12796
- * * Description: Unique identifier for the QueryEntity record.`),
12797
- QueryID: zod_1.z.string().describe(`
12798
- * * Field Name: QueryID
12799
- * * Display Name: Query ID
12800
- * * SQL Data Type: uniqueidentifier
12801
- * * Related Entity/Foreign Key: Queries (vwQueries.ID)
12802
- * * Description: References the ID of the query in the Queries table.`),
12803
- EntityID: zod_1.z.string().describe(`
12804
- * * Field Name: EntityID
12805
- * * Display Name: Entity ID
12806
- * * SQL Data Type: uniqueidentifier
12807
- * * Related Entity/Foreign Key: Entities (vwEntities.ID)
12808
- * * Description: References the ID of the entity in the Entities table.`),
12809
- __mj_CreatedAt: zod_1.z.date().describe(`
12810
- * * Field Name: __mj_CreatedAt
12811
- * * Display Name: Created At
12812
- * * SQL Data Type: datetimeoffset
12813
- * * Default Value: getutcdate()`),
12814
- __mj_UpdatedAt: zod_1.z.date().describe(`
12815
- * * Field Name: __mj_UpdatedAt
12816
- * * Display Name: Updated At
12817
- * * SQL Data Type: datetimeoffset
12818
- * * Default Value: getutcdate()`),
12819
- DetectionMethod: zod_1.z.union([zod_1.z.literal('AI'), zod_1.z.literal('Manual')]).describe(`
12820
- * * Field Name: DetectionMethod
12821
- * * Display Name: Detection Method
13295
+ * * Default Value: newsequentialid()`),
13296
+ Name: zod_1.z.string().describe(`
13297
+ * * Field Name: Name
13298
+ * * Display Name: Name
13299
+ * * SQL Data Type: nvarchar(100)
13300
+ * * Description: Unique name for the test type (e.g., "Agent Eval", "Workflow Test", "Code Generation Test")`),
13301
+ Description: zod_1.z.string().nullable().describe(`
13302
+ * * Field Name: Description
13303
+ * * Display Name: Description
13304
+ * * SQL Data Type: nvarchar(MAX)
13305
+ * * Description: Detailed description of what this test type validates and how it works`),
13306
+ DriverClass: zod_1.z.string().describe(`
13307
+ * * Field Name: DriverClass
13308
+ * * Display Name: Driver Class
13309
+ * * SQL Data Type: nvarchar(255)
13310
+ * * Description: Class name for the driver implementation (e.g., "AgentEvalDriver"). Used with ClassFactory to instantiate the appropriate BaseTestDriver subclass.`),
13311
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Disabled'), zod_1.z.literal('Pending')]).describe(`
13312
+ * * Field Name: Status
13313
+ * * Display Name: Status
13314
+ * * SQL Data Type: nvarchar(20)
13315
+ * * Default Value: Active
13316
+ * * Value List Type: List
13317
+ * * Possible Values
13318
+ * * Active
13319
+ * * Disabled
13320
+ * * Pending
13321
+ * * Description: Status of the test type: Pending (under development), Active (available for use), Disabled (no longer available)`),
13322
+ __mj_CreatedAt: zod_1.z.date().describe(`
13323
+ * * Field Name: __mj_CreatedAt
13324
+ * * Display Name: Created At
13325
+ * * SQL Data Type: datetimeoffset
13326
+ * * Default Value: getutcdate()`),
13327
+ __mj_UpdatedAt: zod_1.z.date().describe(`
13328
+ * * Field Name: __mj_UpdatedAt
13329
+ * * Display Name: Updated At
13330
+ * * SQL Data Type: datetimeoffset
13331
+ * * Default Value: getutcdate()`),
13332
+ });
13333
+ /**
13334
+ * zod schema definition for the entity MJ: Tests
13335
+ */
13336
+ exports.TestSchema = zod_1.z.object({
13337
+ ID: zod_1.z.string().describe(`
13338
+ * * Field Name: ID
13339
+ * * Display Name: ID
13340
+ * * SQL Data Type: uniqueidentifier
13341
+ * * Default Value: newsequentialid()`),
13342
+ TypeID: zod_1.z.string().describe(`
13343
+ * * Field Name: TypeID
13344
+ * * Display Name: Type ID
13345
+ * * SQL Data Type: uniqueidentifier
13346
+ * * Related Entity/Foreign Key: MJ: Test Types (vwTestTypes.ID)
13347
+ * * Description: Foreign Key - The type of test (e.g., Agent Eval, Workflow Test). Determines which driver class handles execution.`),
13348
+ Name: zod_1.z.string().describe(`
13349
+ * * Field Name: Name
13350
+ * * Display Name: Name
13351
+ * * SQL Data Type: nvarchar(255)
13352
+ * * Description: Name of the test (e.g., "Pie Chart with Drilldown", "Memory Recall Accuracy")`),
13353
+ Description: zod_1.z.string().nullable().describe(`
13354
+ * * Field Name: Description
13355
+ * * Display Name: Description
13356
+ * * SQL Data Type: nvarchar(MAX)
13357
+ * * Description: Detailed description of what this test validates and why it matters`),
13358
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Disabled'), zod_1.z.literal('Pending')]).describe(`
13359
+ * * Field Name: Status
13360
+ * * Display Name: Status
13361
+ * * SQL Data Type: nvarchar(20)
13362
+ * * Default Value: Active
13363
+ * * Value List Type: List
13364
+ * * Possible Values
13365
+ * * Active
13366
+ * * Disabled
13367
+ * * Pending
13368
+ * * Description: Status of the test: Pending (being configured), Active (ready to run), Disabled (archived/not in use)`),
13369
+ InputDefinition: zod_1.z.string().nullable().describe(`
13370
+ * * Field Name: InputDefinition
13371
+ * * Display Name: Input Definition
13372
+ * * SQL Data Type: nvarchar(MAX)
13373
+ * * Description: JSON object defining the inputs/parameters for the test. Structure varies by test type (e.g., for Agent Eval: {prompt, context, conversationHistory})`),
13374
+ ExpectedOutcomes: zod_1.z.string().nullable().describe(`
13375
+ * * Field Name: ExpectedOutcomes
13376
+ * * Display Name: Expected Outcomes
13377
+ * * SQL Data Type: nvarchar(MAX)
13378
+ * * Description: JSON object defining what success looks like. Structure varies by test type (e.g., for Agent Eval: {toolCalls, outputFormat, semanticGoals, dataAssertions})`),
13379
+ Configuration: zod_1.z.string().nullable().describe(`
13380
+ * * Field Name: Configuration
13381
+ * * Display Name: Configuration
13382
+ * * SQL Data Type: nvarchar(MAX)
13383
+ * * Description: JSON object for test-specific configuration (e.g., oracles to use, rubrics, retry policies, timeout settings)`),
13384
+ Tags: zod_1.z.string().nullable().describe(`
13385
+ * * Field Name: Tags
13386
+ * * Display Name: Tags
13387
+ * * SQL Data Type: nvarchar(MAX)
13388
+ * * Description: JSON array of tags for categorization and filtering (e.g., ["smoke", "agent-quality", "performance"])`),
13389
+ Priority: zod_1.z.number().nullable().describe(`
13390
+ * * Field Name: Priority
13391
+ * * Display Name: Priority
13392
+ * * SQL Data Type: int
13393
+ * * Default Value: 0
13394
+ * * Description: Priority for execution ordering. Lower numbers run first. Useful for dependencies or critical path tests.`),
13395
+ EstimatedDurationSeconds: zod_1.z.number().nullable().describe(`
13396
+ * * Field Name: EstimatedDurationSeconds
13397
+ * * Display Name: Estimated Duration Seconds
13398
+ * * SQL Data Type: int
13399
+ * * Description: Estimated execution time in seconds. Used for scheduling and timeout calculations.`),
13400
+ EstimatedCostUSD: zod_1.z.number().nullable().describe(`
13401
+ * * Field Name: EstimatedCostUSD
13402
+ * * Display Name: Estimated Cost USD
13403
+ * * SQL Data Type: decimal(10, 6)
13404
+ * * Description: Estimated cost in USD for running this test (e.g., LLM token costs, compute resources). Used for budgeting and optimization.`),
13405
+ __mj_CreatedAt: zod_1.z.date().describe(`
13406
+ * * Field Name: __mj_CreatedAt
13407
+ * * Display Name: Created At
13408
+ * * SQL Data Type: datetimeoffset
13409
+ * * Default Value: getutcdate()`),
13410
+ __mj_UpdatedAt: zod_1.z.date().describe(`
13411
+ * * Field Name: __mj_UpdatedAt
13412
+ * * Display Name: Updated At
13413
+ * * SQL Data Type: datetimeoffset
13414
+ * * Default Value: getutcdate()`),
13415
+ RepeatCount: zod_1.z.number().nullable().describe(`
13416
+ * * Field Name: RepeatCount
13417
+ * * Display Name: Repeat Count
13418
+ * * SQL Data Type: int
13419
+ * * Description: Number of times to repeat this test execution. NULL or 1 = single execution. Values > 1 will create multiple test runs for statistical analysis.`),
13420
+ Type: zod_1.z.string().describe(`
13421
+ * * Field Name: Type
13422
+ * * Display Name: Type
13423
+ * * SQL Data Type: nvarchar(100)`),
13424
+ });
13425
+ /**
13426
+ * zod schema definition for the entity Output Delivery Types
13427
+ */
13428
+ exports.OutputDeliveryTypeSchema = zod_1.z.object({
13429
+ ID: zod_1.z.string().describe(`
13430
+ * * Field Name: ID
13431
+ * * Display Name: ID
13432
+ * * SQL Data Type: uniqueidentifier
13433
+ * * Default Value: newsequentialid()`),
13434
+ Name: zod_1.z.string().describe(`
13435
+ * * Field Name: Name
13436
+ * * Display Name: Name
13437
+ * * SQL Data Type: nvarchar(255)`),
13438
+ Description: zod_1.z.string().nullable().describe(`
13439
+ * * Field Name: Description
13440
+ * * Display Name: Description
13441
+ * * SQL Data Type: nvarchar(MAX)`),
13442
+ __mj_CreatedAt: zod_1.z.date().describe(`
13443
+ * * Field Name: __mj_CreatedAt
13444
+ * * Display Name: Created At
13445
+ * * SQL Data Type: datetimeoffset
13446
+ * * Default Value: getutcdate()`),
13447
+ __mj_UpdatedAt: zod_1.z.date().describe(`
13448
+ * * Field Name: __mj_UpdatedAt
13449
+ * * Display Name: Updated At
13450
+ * * SQL Data Type: datetimeoffset
13451
+ * * Default Value: getutcdate()`),
13452
+ });
13453
+ /**
13454
+ * zod schema definition for the entity Output Format Types
13455
+ */
13456
+ exports.OutputFormatTypeSchema = zod_1.z.object({
13457
+ ID: zod_1.z.string().describe(`
13458
+ * * Field Name: ID
13459
+ * * Display Name: ID
13460
+ * * SQL Data Type: uniqueidentifier
13461
+ * * Default Value: newsequentialid()`),
13462
+ Name: zod_1.z.string().describe(`
13463
+ * * Field Name: Name
13464
+ * * Display Name: Name
13465
+ * * SQL Data Type: nvarchar(255)`),
13466
+ Description: zod_1.z.string().nullable().describe(`
13467
+ * * Field Name: Description
13468
+ * * Display Name: Description
13469
+ * * SQL Data Type: nvarchar(MAX)`),
13470
+ DisplayFormat: zod_1.z.string().nullable().describe(`
13471
+ * * Field Name: DisplayFormat
13472
+ * * Display Name: Display Format
13473
+ * * SQL Data Type: nvarchar(MAX)
13474
+ * * Description: Configuration or template for how data should be formatted in this output type.`),
13475
+ __mj_CreatedAt: zod_1.z.date().describe(`
13476
+ * * Field Name: __mj_CreatedAt
13477
+ * * Display Name: Created At
13478
+ * * SQL Data Type: datetimeoffset
13479
+ * * Default Value: getutcdate()`),
13480
+ __mj_UpdatedAt: zod_1.z.date().describe(`
13481
+ * * Field Name: __mj_UpdatedAt
13482
+ * * Display Name: Updated At
13483
+ * * SQL Data Type: datetimeoffset
13484
+ * * Default Value: getutcdate()`),
13485
+ });
13486
+ /**
13487
+ * zod schema definition for the entity Output Trigger Types
13488
+ */
13489
+ exports.OutputTriggerTypeSchema = zod_1.z.object({
13490
+ ID: zod_1.z.string().describe(`
13491
+ * * Field Name: ID
13492
+ * * Display Name: ID
13493
+ * * SQL Data Type: uniqueidentifier
13494
+ * * Default Value: newsequentialid()`),
13495
+ Name: zod_1.z.string().describe(`
13496
+ * * Field Name: Name
13497
+ * * Display Name: Name
13498
+ * * SQL Data Type: nvarchar(255)`),
13499
+ Description: zod_1.z.string().nullable().describe(`
13500
+ * * Field Name: Description
13501
+ * * Display Name: Description
13502
+ * * SQL Data Type: nvarchar(MAX)`),
13503
+ __mj_CreatedAt: zod_1.z.date().describe(`
13504
+ * * Field Name: __mj_CreatedAt
13505
+ * * Display Name: Created At
13506
+ * * SQL Data Type: datetimeoffset
13507
+ * * Default Value: getutcdate()`),
13508
+ __mj_UpdatedAt: zod_1.z.date().describe(`
13509
+ * * Field Name: __mj_UpdatedAt
13510
+ * * Display Name: Updated At
13511
+ * * SQL Data Type: datetimeoffset
13512
+ * * Default Value: getutcdate()`),
13513
+ });
13514
+ /**
13515
+ * zod schema definition for the entity Queries
13516
+ */
13517
+ exports.QuerySchema = zod_1.z.object({
13518
+ ID: zod_1.z.string().describe(`
13519
+ * * Field Name: ID
13520
+ * * Display Name: ID
13521
+ * * SQL Data Type: uniqueidentifier
13522
+ * * Default Value: newsequentialid()`),
13523
+ Name: zod_1.z.string().describe(`
13524
+ * * Field Name: Name
13525
+ * * Display Name: Name
13526
+ * * SQL Data Type: nvarchar(255)`),
13527
+ CategoryID: zod_1.z.string().nullable().describe(`
13528
+ * * Field Name: CategoryID
13529
+ * * Display Name: Category ID
13530
+ * * SQL Data Type: uniqueidentifier
13531
+ * * Related Entity/Foreign Key: Query Categories (vwQueryCategories.ID)`),
13532
+ UserQuestion: zod_1.z.string().nullable().describe(`
13533
+ * * Field Name: UserQuestion
13534
+ * * Display Name: User Question
13535
+ * * SQL Data Type: nvarchar(MAX)
13536
+ * * Description: The natural language question this query answers, used for AI query selection.`),
13537
+ Description: zod_1.z.string().nullable().describe(`
13538
+ * * Field Name: Description
13539
+ * * Display Name: Description
13540
+ * * SQL Data Type: nvarchar(MAX)`),
13541
+ SQL: zod_1.z.string().nullable().describe(`
13542
+ * * Field Name: SQL
13543
+ * * Display Name: SQL
13544
+ * * SQL Data Type: nvarchar(MAX)
13545
+ * * Description: The actual SQL query text to execute, may include parameters.`),
13546
+ TechnicalDescription: zod_1.z.string().nullable().describe(`
13547
+ * * Field Name: TechnicalDescription
13548
+ * * Display Name: Technical Description
13549
+ * * SQL Data Type: nvarchar(MAX)
13550
+ * * Description: Technical documentation of the query logic, performance considerations, and parameter usage.`),
13551
+ OriginalSQL: zod_1.z.string().nullable().describe(`
13552
+ * * Field Name: OriginalSQL
13553
+ * * Display Name: Original SQL
13554
+ * * SQL Data Type: nvarchar(MAX)
13555
+ * * Description: The original SQL before any optimization or modification, kept for reference.`),
13556
+ Feedback: zod_1.z.string().nullable().describe(`
13557
+ * * Field Name: Feedback
13558
+ * * Display Name: Feedback
13559
+ * * SQL Data Type: nvarchar(MAX)
13560
+ * * Description: User feedback on query accuracy, performance, or suggested improvements.`),
13561
+ Status: zod_1.z.union([zod_1.z.literal('Approved'), zod_1.z.literal('Expired'), zod_1.z.literal('Pending'), zod_1.z.literal('Rejected')]).describe(`
13562
+ * * Field Name: Status
13563
+ * * Display Name: Status
13564
+ * * SQL Data Type: nvarchar(15)
13565
+ * * Default Value: Pending
13566
+ * * Value List Type: List
13567
+ * * Possible Values
13568
+ * * Approved
13569
+ * * Expired
13570
+ * * Pending
13571
+ * * Rejected`),
13572
+ QualityRank: zod_1.z.number().nullable().describe(`
13573
+ * * Field Name: QualityRank
13574
+ * * Display Name: Quality Rank
13575
+ * * SQL Data Type: int
13576
+ * * Default Value: 0
13577
+ * * Description: Value indicating the quality of the query, higher values mean a better quality`),
13578
+ ExecutionCostRank: zod_1.z.number().nullable().describe(`
13579
+ * * Field Name: ExecutionCostRank
13580
+ * * Display Name: Execution Cost Rank
13581
+ * * SQL Data Type: int
13582
+ * * Description: Higher numbers indicate more execution overhead/time required. Useful for planning which queries to use in various scenarios.`),
13583
+ __mj_CreatedAt: zod_1.z.date().describe(`
13584
+ * * Field Name: __mj_CreatedAt
13585
+ * * Display Name: __mj _Created At
13586
+ * * SQL Data Type: datetimeoffset
13587
+ * * Default Value: getutcdate()`),
13588
+ __mj_UpdatedAt: zod_1.z.date().describe(`
13589
+ * * Field Name: __mj_UpdatedAt
13590
+ * * Display Name: __mj _Updated At
13591
+ * * SQL Data Type: datetimeoffset
13592
+ * * Default Value: getutcdate()`),
13593
+ UsesTemplate: zod_1.z.boolean().nullable().describe(`
13594
+ * * Field Name: UsesTemplate
13595
+ * * Display Name: Uses Template
13596
+ * * SQL Data Type: bit
13597
+ * * Default Value: 0
13598
+ * * Description: Automatically set to true when the SQL column contains Nunjucks template markers (e.g., {{ paramName }}). This flag is maintained by the QueryEntityServer for performance optimization and discovery purposes. It allows quick filtering of parameterized queries and enables the UI to show parameter inputs only when needed. The system will automatically update this flag when the SQL content changes.`),
13599
+ AuditQueryRuns: zod_1.z.boolean().describe(`
13600
+ * * Field Name: AuditQueryRuns
13601
+ * * Display Name: Audit Query Runs
13602
+ * * SQL Data Type: bit
13603
+ * * Default Value: 0
13604
+ * * Description: When true, all executions of this query will be logged to the Audit Log system for tracking and compliance`),
13605
+ CacheEnabled: zod_1.z.boolean().describe(`
13606
+ * * Field Name: CacheEnabled
13607
+ * * Display Name: Cache Enabled
13608
+ * * SQL Data Type: bit
13609
+ * * Default Value: 0
13610
+ * * Description: When true, query results will be cached in memory with TTL expiration`),
13611
+ CacheTTLMinutes: zod_1.z.number().nullable().describe(`
13612
+ * * Field Name: CacheTTLMinutes
13613
+ * * Display Name: Cache TTL Minutes
13614
+ * * SQL Data Type: int
13615
+ * * Description: Time-to-live in minutes for cached query results. NULL uses default TTL.`),
13616
+ CacheMaxSize: zod_1.z.number().nullable().describe(`
13617
+ * * Field Name: CacheMaxSize
13618
+ * * Display Name: Cache Max Size
13619
+ * * SQL Data Type: int
13620
+ * * Description: Maximum number of cached result sets for this query. NULL uses default size limit.`),
13621
+ EmbeddingVector: zod_1.z.string().nullable().describe(`
13622
+ * * Field Name: EmbeddingVector
13623
+ * * Display Name: Embedding Vector
13624
+ * * SQL Data Type: nvarchar(MAX)
13625
+ * * Description: Optional JSON-serialized embedding vector for the query, used for similarity search and query analysis`),
13626
+ EmbeddingModelID: zod_1.z.string().nullable().describe(`
13627
+ * * Field Name: EmbeddingModelID
13628
+ * * Display Name: Embedding Model ID
13629
+ * * SQL Data Type: uniqueidentifier
13630
+ * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
13631
+ * * Description: The AI Model used to generate the embedding vector for this query. Required for vector similarity comparisons.`),
13632
+ Category: zod_1.z.string().nullable().describe(`
13633
+ * * Field Name: Category
13634
+ * * Display Name: Category
13635
+ * * SQL Data Type: nvarchar(50)`),
13636
+ EmbeddingModel: zod_1.z.string().nullable().describe(`
13637
+ * * Field Name: EmbeddingModel
13638
+ * * Display Name: Embedding Model
13639
+ * * SQL Data Type: nvarchar(50)`),
13640
+ });
13641
+ /**
13642
+ * zod schema definition for the entity Query Categories
13643
+ */
13644
+ exports.QueryCategorySchema = zod_1.z.object({
13645
+ ID: zod_1.z.string().describe(`
13646
+ * * Field Name: ID
13647
+ * * Display Name: ID
13648
+ * * SQL Data Type: uniqueidentifier
13649
+ * * Default Value: newsequentialid()`),
13650
+ Name: zod_1.z.string().describe(`
13651
+ * * Field Name: Name
13652
+ * * Display Name: Name
13653
+ * * SQL Data Type: nvarchar(50)`),
13654
+ ParentID: zod_1.z.string().nullable().describe(`
13655
+ * * Field Name: ParentID
13656
+ * * Display Name: Parent ID
13657
+ * * SQL Data Type: uniqueidentifier
13658
+ * * Related Entity/Foreign Key: Query Categories (vwQueryCategories.ID)`),
13659
+ Description: zod_1.z.string().nullable().describe(`
13660
+ * * Field Name: Description
13661
+ * * Display Name: Description
13662
+ * * SQL Data Type: nvarchar(MAX)`),
13663
+ UserID: zod_1.z.string().describe(`
13664
+ * * Field Name: UserID
13665
+ * * Display Name: User ID
13666
+ * * SQL Data Type: uniqueidentifier
13667
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)`),
13668
+ __mj_CreatedAt: zod_1.z.date().describe(`
13669
+ * * Field Name: __mj_CreatedAt
13670
+ * * Display Name: __mj _Created At
13671
+ * * SQL Data Type: datetimeoffset
13672
+ * * Default Value: getutcdate()`),
13673
+ __mj_UpdatedAt: zod_1.z.date().describe(`
13674
+ * * Field Name: __mj_UpdatedAt
13675
+ * * Display Name: __mj _Updated At
13676
+ * * SQL Data Type: datetimeoffset
13677
+ * * Default Value: getutcdate()`),
13678
+ DefaultCacheEnabled: zod_1.z.boolean().describe(`
13679
+ * * Field Name: DefaultCacheEnabled
13680
+ * * Display Name: Default Cache Enabled
13681
+ * * SQL Data Type: bit
13682
+ * * Default Value: 0
13683
+ * * Description: Default cache setting for queries in this category`),
13684
+ DefaultCacheTTLMinutes: zod_1.z.number().nullable().describe(`
13685
+ * * Field Name: DefaultCacheTTLMinutes
13686
+ * * Display Name: Default Cache TTL Minutes
13687
+ * * SQL Data Type: int
13688
+ * * Description: Default TTL in minutes for cached results of queries in this category`),
13689
+ DefaultCacheMaxSize: zod_1.z.number().nullable().describe(`
13690
+ * * Field Name: DefaultCacheMaxSize
13691
+ * * Display Name: Default Cache Max Size
13692
+ * * SQL Data Type: int
13693
+ * * Description: Default maximum cache size for queries in this category`),
13694
+ CacheInheritanceEnabled: zod_1.z.boolean().describe(`
13695
+ * * Field Name: CacheInheritanceEnabled
13696
+ * * Display Name: Cache Inheritance Enabled
13697
+ * * SQL Data Type: bit
13698
+ * * Default Value: 1
13699
+ * * Description: When true, queries without cache config will inherit from this category`),
13700
+ Parent: zod_1.z.string().nullable().describe(`
13701
+ * * Field Name: Parent
13702
+ * * Display Name: Parent
13703
+ * * SQL Data Type: nvarchar(50)`),
13704
+ User: zod_1.z.string().describe(`
13705
+ * * Field Name: User
13706
+ * * Display Name: User
13707
+ * * SQL Data Type: nvarchar(100)`),
13708
+ RootParentID: zod_1.z.string().nullable().describe(`
13709
+ * * Field Name: RootParentID
13710
+ * * Display Name: Root Parent ID
13711
+ * * SQL Data Type: uniqueidentifier`),
13712
+ });
13713
+ /**
13714
+ * zod schema definition for the entity Query Entities
13715
+ */
13716
+ exports.QueryEntitySchema = zod_1.z.object({
13717
+ ID: zod_1.z.string().describe(`
13718
+ * * Field Name: ID
13719
+ * * Display Name: ID
13720
+ * * SQL Data Type: uniqueidentifier
13721
+ * * Default Value: newsequentialid()
13722
+ * * Description: Unique identifier for the QueryEntity record.`),
13723
+ QueryID: zod_1.z.string().describe(`
13724
+ * * Field Name: QueryID
13725
+ * * Display Name: Query ID
13726
+ * * SQL Data Type: uniqueidentifier
13727
+ * * Related Entity/Foreign Key: Queries (vwQueries.ID)
13728
+ * * Description: References the ID of the query in the Queries table.`),
13729
+ EntityID: zod_1.z.string().describe(`
13730
+ * * Field Name: EntityID
13731
+ * * Display Name: Entity ID
13732
+ * * SQL Data Type: uniqueidentifier
13733
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)
13734
+ * * Description: References the ID of the entity in the Entities table.`),
13735
+ __mj_CreatedAt: zod_1.z.date().describe(`
13736
+ * * Field Name: __mj_CreatedAt
13737
+ * * Display Name: Created At
13738
+ * * SQL Data Type: datetimeoffset
13739
+ * * Default Value: getutcdate()`),
13740
+ __mj_UpdatedAt: zod_1.z.date().describe(`
13741
+ * * Field Name: __mj_UpdatedAt
13742
+ * * Display Name: Updated At
13743
+ * * SQL Data Type: datetimeoffset
13744
+ * * Default Value: getutcdate()`),
13745
+ DetectionMethod: zod_1.z.union([zod_1.z.literal('AI'), zod_1.z.literal('Manual')]).describe(`
13746
+ * * Field Name: DetectionMethod
13747
+ * * Display Name: Detection Method
12822
13748
  * * SQL Data Type: nvarchar(50)
12823
13749
  * * Default Value: Manual
12824
13750
  * * Value List Type: List
@@ -13239,6 +14165,10 @@ exports.RecommendationItemSchema = zod_1.z.object({
13239
14165
  * * Display Name: Updated At
13240
14166
  * * SQL Data Type: datetimeoffset
13241
14167
  * * Default Value: getutcdate()`),
14168
+ Recommendation: zod_1.z.string().describe(`
14169
+ * * Field Name: Recommendation
14170
+ * * Display Name: Recommendation
14171
+ * * SQL Data Type: nvarchar(MAX)`),
13242
14172
  DestinationEntity: zod_1.z.string().describe(`
13243
14173
  * * Field Name: DestinationEntity
13244
14174
  * * Display Name: Destination Entity
@@ -13370,6 +14300,10 @@ exports.RecommendationSchema = zod_1.z.object({
13370
14300
  * * Display Name: Updated At
13371
14301
  * * SQL Data Type: datetimeoffset
13372
14302
  * * Default Value: getutcdate()`),
14303
+ RecommendationRun: zod_1.z.string().describe(`
14304
+ * * Field Name: RecommendationRun
14305
+ * * Display Name: Recommendation Run
14306
+ * * SQL Data Type: nvarchar(255)`),
13373
14307
  SourceEntity: zod_1.z.string().describe(`
13374
14308
  * * Field Name: SourceEntity
13375
14309
  * * Display Name: Source Entity
@@ -13538,6 +14472,10 @@ exports.RecordChangeSchema = zod_1.z.object({
13538
14472
  * * Field Name: User
13539
14473
  * * Display Name: User
13540
14474
  * * SQL Data Type: nvarchar(100)`),
14475
+ ReplayRun: zod_1.z.string().nullable().describe(`
14476
+ * * Field Name: ReplayRun
14477
+ * * Display Name: Replay Run
14478
+ * * SQL Data Type: nvarchar(100)`),
13541
14479
  Integration: zod_1.z.string().nullable().describe(`
13542
14480
  * * Field Name: Integration
13543
14481
  * * Display Name: Integration
@@ -13587,6 +14525,10 @@ exports.RecordMergeDeletionLogSchema = zod_1.z.object({
13587
14525
  * * Display Name: Updated At
13588
14526
  * * SQL Data Type: datetimeoffset
13589
14527
  * * Default Value: getutcdate()`),
14528
+ RecordMergeLog: zod_1.z.string().describe(`
14529
+ * * Field Name: RecordMergeLog
14530
+ * * Display Name: Record Merge Log
14531
+ * * SQL Data Type: nvarchar(450)`),
13590
14532
  });
13591
14533
  /**
13592
14534
  * zod schema definition for the entity Record Merge Logs
@@ -13896,6 +14838,10 @@ exports.ReportSchema = zod_1.z.object({
13896
14838
  * * Field Name: Conversation
13897
14839
  * * Display Name: Conversation
13898
14840
  * * SQL Data Type: nvarchar(255)`),
14841
+ ConversationDetail: zod_1.z.string().nullable().describe(`
14842
+ * * Field Name: ConversationDetail
14843
+ * * Display Name: Conversation Detail
14844
+ * * SQL Data Type: nvarchar(MAX)`),
13899
14845
  DataContext: zod_1.z.string().nullable().describe(`
13900
14846
  * * Field Name: DataContext
13901
14847
  * * Display Name: Data Context
@@ -14774,6 +15720,10 @@ exports.TemplateParamSchema = zod_1.z.object({
14774
15720
  * * Field Name: Entity
14775
15721
  * * Display Name: Entity
14776
15722
  * * SQL Data Type: nvarchar(255)`),
15723
+ TemplateContent: zod_1.z.string().nullable().describe(`
15724
+ * * Field Name: TemplateContent
15725
+ * * Display Name: Template Content
15726
+ * * SQL Data Type: nvarchar(255)`),
14777
15727
  });
14778
15728
  /**
14779
15729
  * zod schema definition for the entity Templates
@@ -18630,6 +19580,22 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
18630
19580
  return this.Get('SourceConversation');
18631
19581
  }
18632
19582
  /**
19583
+ * * Field Name: SourceConversationDetail
19584
+ * * Display Name: Source Conversation Detail
19585
+ * * SQL Data Type: nvarchar(MAX)
19586
+ */
19587
+ get SourceConversationDetail() {
19588
+ return this.Get('SourceConversationDetail');
19589
+ }
19590
+ /**
19591
+ * * Field Name: SourceAIAgentRun
19592
+ * * Display Name: Source AI Agent Run
19593
+ * * SQL Data Type: nvarchar(255)
19594
+ */
19595
+ get SourceAIAgentRun() {
19596
+ return this.Get('SourceAIAgentRun');
19597
+ }
19598
+ /**
18633
19599
  * * Field Name: Company
18634
19600
  * * Display Name: Company
18635
19601
  * * SQL Data Type: nvarchar(50)
@@ -21596,6 +22562,14 @@ let AIResultCacheEntity = class AIResultCacheEntity extends core_1.BaseEntity {
21596
22562
  get Configuration() {
21597
22563
  return this.Get('Configuration');
21598
22564
  }
22565
+ /**
22566
+ * * Field Name: PromptRun
22567
+ * * Display Name: Prompt Run
22568
+ * * SQL Data Type: nvarchar(255)
22569
+ */
22570
+ get PromptRun() {
22571
+ return this.Get('PromptRun');
22572
+ }
21599
22573
  };
21600
22574
  exports.AIResultCacheEntity = AIResultCacheEntity;
21601
22575
  exports.AIResultCacheEntity = AIResultCacheEntity = __decorate([
@@ -22886,6 +23860,14 @@ let CommunicationLogEntity = class CommunicationLogEntity extends core_1.BaseEnt
22886
23860
  get CommunicationProviderMessageType() {
22887
23861
  return this.Get('CommunicationProviderMessageType');
22888
23862
  }
23863
+ /**
23864
+ * * Field Name: CommunicationRun
23865
+ * * Display Name: Communication Run
23866
+ * * SQL Data Type: nvarchar(100)
23867
+ */
23868
+ get CommunicationRun() {
23869
+ return this.Get('CommunicationRun');
23870
+ }
22889
23871
  };
22890
23872
  exports.CommunicationLogEntity = CommunicationLogEntity;
22891
23873
  exports.CommunicationLogEntity = CommunicationLogEntity = __decorate([
@@ -23782,6 +24764,14 @@ let CompanyIntegrationRunAPILogEntity = class CompanyIntegrationRunAPILogEntity
23782
24764
  get __mj_UpdatedAt() {
23783
24765
  return this.Get('__mj_UpdatedAt');
23784
24766
  }
24767
+ /**
24768
+ * * Field Name: CompanyIntegrationRun
24769
+ * * Display Name: Company Integration Run
24770
+ * * SQL Data Type: nvarchar(100)
24771
+ */
24772
+ get CompanyIntegrationRun() {
24773
+ return this.Get('CompanyIntegrationRun');
24774
+ }
23785
24775
  };
23786
24776
  exports.CompanyIntegrationRunAPILogEntity = CompanyIntegrationRunAPILogEntity;
23787
24777
  exports.CompanyIntegrationRunAPILogEntity = CompanyIntegrationRunAPILogEntity = __decorate([
@@ -26086,8 +27076,9 @@ let ConversationDetailEntity = class ConversationDetailEntity extends core_1.Bas
26086
27076
  /**
26087
27077
  * * Field Name: SuggestedResponses
26088
27078
  * * 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).
27079
+ * *
27080
+ * * @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)
27081
+ * * 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
27082
  */
26092
27083
  get SuggestedResponses() {
26093
27084
  return this.Get('SuggestedResponses');
@@ -26096,6 +27087,55 @@ let ConversationDetailEntity = class ConversationDetailEntity extends core_1.Bas
26096
27087
  this.Set('SuggestedResponses', value);
26097
27088
  }
26098
27089
  /**
27090
+ * * Field Name: TestRunID
27091
+ * * Display Name: Test Run ID
27092
+ * * SQL Data Type: uniqueidentifier
27093
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
27094
+ * * 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.
27095
+ */
27096
+ get TestRunID() {
27097
+ return this.Get('TestRunID');
27098
+ }
27099
+ set TestRunID(value) {
27100
+ this.Set('TestRunID', value);
27101
+ }
27102
+ /**
27103
+ * * Field Name: ResponseForm
27104
+ * * Display Name: Response Form
27105
+ * * SQL Data Type: nvarchar(MAX)
27106
+ * * 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.
27107
+ */
27108
+ get ResponseForm() {
27109
+ return this.Get('ResponseForm');
27110
+ }
27111
+ set ResponseForm(value) {
27112
+ this.Set('ResponseForm', value);
27113
+ }
27114
+ /**
27115
+ * * Field Name: ActionableCommands
27116
+ * * Display Name: Actionable Commands
27117
+ * * SQL Data Type: nvarchar(MAX)
27118
+ * * 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.
27119
+ */
27120
+ get ActionableCommands() {
27121
+ return this.Get('ActionableCommands');
27122
+ }
27123
+ set ActionableCommands(value) {
27124
+ this.Set('ActionableCommands', value);
27125
+ }
27126
+ /**
27127
+ * * Field Name: AutomaticCommands
27128
+ * * Display Name: Automatic Commands
27129
+ * * SQL Data Type: nvarchar(MAX)
27130
+ * * 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.
27131
+ */
27132
+ get AutomaticCommands() {
27133
+ return this.Get('AutomaticCommands');
27134
+ }
27135
+ set AutomaticCommands(value) {
27136
+ this.Set('AutomaticCommands', value);
27137
+ }
27138
+ /**
26099
27139
  * * Field Name: Conversation
26100
27140
  * * Display Name: Conversation
26101
27141
  * * SQL Data Type: nvarchar(255)
@@ -26120,6 +27160,22 @@ let ConversationDetailEntity = class ConversationDetailEntity extends core_1.Bas
26120
27160
  return this.Get('Artifact');
26121
27161
  }
26122
27162
  /**
27163
+ * * Field Name: ArtifactVersion
27164
+ * * Display Name: Artifact Version
27165
+ * * SQL Data Type: nvarchar(255)
27166
+ */
27167
+ get ArtifactVersion() {
27168
+ return this.Get('ArtifactVersion');
27169
+ }
27170
+ /**
27171
+ * * Field Name: Parent
27172
+ * * Display Name: Parent
27173
+ * * SQL Data Type: nvarchar(MAX)
27174
+ */
27175
+ get Parent() {
27176
+ return this.Get('Parent');
27177
+ }
27178
+ /**
26123
27179
  * * Field Name: Agent
26124
27180
  * * Display Name: Agent
26125
27181
  * * SQL Data Type: nvarchar(255)
@@ -26397,6 +27453,19 @@ let ConversationEntity = class ConversationEntity extends core_1.BaseEntity {
26397
27453
  this.Set('IsPinned', value);
26398
27454
  }
26399
27455
  /**
27456
+ * * Field Name: TestRunID
27457
+ * * Display Name: Test Run ID
27458
+ * * SQL Data Type: uniqueidentifier
27459
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
27460
+ * * 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.
27461
+ */
27462
+ get TestRunID() {
27463
+ return this.Get('TestRunID');
27464
+ }
27465
+ set TestRunID(value) {
27466
+ this.Set('TestRunID', value);
27467
+ }
27468
+ /**
26400
27469
  * * Field Name: User
26401
27470
  * * Display Name: User
26402
27471
  * * SQL Data Type: nvarchar(100)
@@ -27633,6 +28702,22 @@ let DuplicateRunDetailMatchEntity = class DuplicateRunDetailMatchEntity extends
27633
28702
  get __mj_UpdatedAt() {
27634
28703
  return this.Get('__mj_UpdatedAt');
27635
28704
  }
28705
+ /**
28706
+ * * Field Name: DuplicateRunDetail
28707
+ * * Display Name: Duplicate Run Detail
28708
+ * * SQL Data Type: nvarchar(500)
28709
+ */
28710
+ get DuplicateRunDetail() {
28711
+ return this.Get('DuplicateRunDetail');
28712
+ }
28713
+ /**
28714
+ * * Field Name: RecordMergeLog
28715
+ * * Display Name: Record Merge Log
28716
+ * * SQL Data Type: nvarchar(450)
28717
+ */
28718
+ get RecordMergeLog() {
28719
+ return this.Get('RecordMergeLog');
28720
+ }
27636
28721
  };
27637
28722
  exports.DuplicateRunDetailMatchEntity = DuplicateRunDetailMatchEntity;
27638
28723
  exports.DuplicateRunDetailMatchEntity = DuplicateRunDetailMatchEntity = __decorate([
@@ -27794,6 +28879,14 @@ let DuplicateRunDetailEntity = class DuplicateRunDetailEntity extends core_1.Bas
27794
28879
  get __mj_UpdatedAt() {
27795
28880
  return this.Get('__mj_UpdatedAt');
27796
28881
  }
28882
+ /**
28883
+ * * Field Name: DuplicateRun
28884
+ * * Display Name: Duplicate Run
28885
+ * * SQL Data Type: nvarchar(255)
28886
+ */
28887
+ get DuplicateRun() {
28888
+ return this.Get('DuplicateRun');
28889
+ }
27797
28890
  };
27798
28891
  exports.DuplicateRunDetailEntity = DuplicateRunDetailEntity;
27799
28892
  exports.DuplicateRunDetailEntity = DuplicateRunDetailEntity = __decorate([
@@ -28133,6 +29226,14 @@ let EmployeeCompanyIntegrationEntity = class EmployeeCompanyIntegrationEntity ex
28133
29226
  return this.Get('__mj_UpdatedAt');
28134
29227
  }
28135
29228
  /**
29229
+ * * Field Name: Employee
29230
+ * * Display Name: Employee
29231
+ * * SQL Data Type: nvarchar(81)
29232
+ */
29233
+ get Employee() {
29234
+ return this.Get('Employee');
29235
+ }
29236
+ /**
28136
29237
  * * Field Name: CompanyIntegration
28137
29238
  * * Display Name: Company Integration
28138
29239
  * * SQL Data Type: nvarchar(255)
@@ -28228,6 +29329,14 @@ let EmployeeRoleEntity = class EmployeeRoleEntity extends core_1.BaseEntity {
28228
29329
  return this.Get('__mj_UpdatedAt');
28229
29330
  }
28230
29331
  /**
29332
+ * * Field Name: Employee
29333
+ * * Display Name: Employee
29334
+ * * SQL Data Type: nvarchar(81)
29335
+ */
29336
+ get Employee() {
29337
+ return this.Get('Employee');
29338
+ }
29339
+ /**
28231
29340
  * * Field Name: Role
28232
29341
  * * Display Name: Role
28233
29342
  * * SQL Data Type: nvarchar(50)
@@ -28323,6 +29432,14 @@ let EmployeeSkillEntity = class EmployeeSkillEntity extends core_1.BaseEntity {
28323
29432
  return this.Get('__mj_UpdatedAt');
28324
29433
  }
28325
29434
  /**
29435
+ * * Field Name: Employee
29436
+ * * Display Name: Employee
29437
+ * * SQL Data Type: nvarchar(81)
29438
+ */
29439
+ get Employee() {
29440
+ return this.Get('Employee');
29441
+ }
29442
+ /**
28326
29443
  * * Field Name: Skill
28327
29444
  * * Display Name: Skill
28328
29445
  * * SQL Data Type: nvarchar(50)
@@ -29478,6 +30595,22 @@ let EntityActionFilterEntity = class EntityActionFilterEntity extends core_1.Bas
29478
30595
  get __mj_UpdatedAt() {
29479
30596
  return this.Get('__mj_UpdatedAt');
29480
30597
  }
30598
+ /**
30599
+ * * Field Name: EntityAction
30600
+ * * Display Name: Entity Action
30601
+ * * SQL Data Type: nvarchar(425)
30602
+ */
30603
+ get EntityAction() {
30604
+ return this.Get('EntityAction');
30605
+ }
30606
+ /**
30607
+ * * Field Name: ActionFilter
30608
+ * * Display Name: Action Filter
30609
+ * * SQL Data Type: nvarchar(MAX)
30610
+ */
30611
+ get ActionFilter() {
30612
+ return this.Get('ActionFilter');
30613
+ }
29481
30614
  };
29482
30615
  exports.EntityActionFilterEntity = EntityActionFilterEntity;
29483
30616
  exports.EntityActionFilterEntity = EntityActionFilterEntity = __decorate([
@@ -29684,6 +30817,14 @@ let EntityActionInvocationEntity = class EntityActionInvocationEntity extends co
29684
30817
  return this.Get('__mj_UpdatedAt');
29685
30818
  }
29686
30819
  /**
30820
+ * * Field Name: EntityAction
30821
+ * * Display Name: Entity Action
30822
+ * * SQL Data Type: nvarchar(425)
30823
+ */
30824
+ get EntityAction() {
30825
+ return this.Get('EntityAction');
30826
+ }
30827
+ /**
29687
30828
  * * Field Name: InvocationType
29688
30829
  * * Display Name: Invocation Type
29689
30830
  * * SQL Data Type: nvarchar(255)
@@ -29821,6 +30962,14 @@ let EntityActionParamEntity = class EntityActionParamEntity extends core_1.BaseE
29821
30962
  return this.Get('__mj_UpdatedAt');
29822
30963
  }
29823
30964
  /**
30965
+ * * Field Name: EntityAction
30966
+ * * Display Name: Entity Action
30967
+ * * SQL Data Type: nvarchar(425)
30968
+ */
30969
+ get EntityAction() {
30970
+ return this.Get('EntityAction');
30971
+ }
30972
+ /**
29824
30973
  * * Field Name: ActionParam
29825
30974
  * * Display Name: Action Param
29826
30975
  * * SQL Data Type: nvarchar(255)
@@ -30297,6 +31446,14 @@ let EntityCommunicationFieldEntity = class EntityCommunicationFieldEntity extend
30297
31446
  get __mj_UpdatedAt() {
30298
31447
  return this.Get('__mj_UpdatedAt');
30299
31448
  }
31449
+ /**
31450
+ * * Field Name: EntityCommunicationMessageType
31451
+ * * Display Name: Entity Communication Message Type
31452
+ * * SQL Data Type: nvarchar(100)
31453
+ */
31454
+ get EntityCommunicationMessageType() {
31455
+ return this.Get('EntityCommunicationMessageType');
31456
+ }
30300
31457
  };
30301
31458
  exports.EntityCommunicationFieldEntity = EntityCommunicationFieldEntity;
30302
31459
  exports.EntityCommunicationFieldEntity = EntityCommunicationFieldEntity = __decorate([
@@ -33070,6 +34227,22 @@ let ErrorLogEntity = class ErrorLogEntity extends core_1.BaseEntity {
33070
34227
  get __mj_UpdatedAt() {
33071
34228
  return this.Get('__mj_UpdatedAt');
33072
34229
  }
34230
+ /**
34231
+ * * Field Name: CompanyIntegrationRun
34232
+ * * Display Name: Company Integration Run
34233
+ * * SQL Data Type: nvarchar(100)
34234
+ */
34235
+ get CompanyIntegrationRun() {
34236
+ return this.Get('CompanyIntegrationRun');
34237
+ }
34238
+ /**
34239
+ * * Field Name: CompanyIntegrationRunDetail
34240
+ * * Display Name: Company Integration Run Detail
34241
+ * * SQL Data Type: nvarchar(450)
34242
+ */
34243
+ get CompanyIntegrationRunDetail() {
34244
+ return this.Get('CompanyIntegrationRunDetail');
34245
+ }
33073
34246
  };
33074
34247
  exports.ErrorLogEntity = ErrorLogEntity;
33075
34248
  exports.ErrorLogEntity = ErrorLogEntity = __decorate([
@@ -35466,6 +36639,192 @@ exports.AIAgentArtifactTypeEntity = AIAgentArtifactTypeEntity;
35466
36639
  exports.AIAgentArtifactTypeEntity = AIAgentArtifactTypeEntity = __decorate([
35467
36640
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Agent Artifact Types')
35468
36641
  ], AIAgentArtifactTypeEntity);
36642
+ /**
36643
+ * MJ: AI Agent Configurations - strongly typed entity sub-class
36644
+ * * Schema: __mj
36645
+ * * Base Table: AIAgentConfiguration
36646
+ * * Base View: vwAIAgentConfigurations
36647
+ * * @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.
36648
+ * * Primary Key: ID
36649
+ * @extends {BaseEntity}
36650
+ * @class
36651
+ * @public
36652
+ */
36653
+ let AIAgentConfigurationEntity = class AIAgentConfigurationEntity extends core_1.BaseEntity {
36654
+ /**
36655
+ * Loads the MJ: AI Agent Configurations record from the database
36656
+ * @param ID: string - primary key value to load the MJ: AI Agent Configurations record.
36657
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
36658
+ * @returns {Promise<boolean>} - true if successful, false otherwise
36659
+ * @public
36660
+ * @async
36661
+ * @memberof AIAgentConfigurationEntity
36662
+ * @method
36663
+ * @override
36664
+ */
36665
+ async Load(ID, EntityRelationshipsToLoad) {
36666
+ const compositeKey = new core_1.CompositeKey();
36667
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
36668
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
36669
+ }
36670
+ /**
36671
+ * * Field Name: ID
36672
+ * * Display Name: ID
36673
+ * * SQL Data Type: uniqueidentifier
36674
+ * * Default Value: newsequentialid()
36675
+ * * Description: Primary Key - Unique identifier for the agent configuration preset
36676
+ */
36677
+ get ID() {
36678
+ return this.Get('ID');
36679
+ }
36680
+ set ID(value) {
36681
+ this.Set('ID', value);
36682
+ }
36683
+ /**
36684
+ * * Field Name: AgentID
36685
+ * * Display Name: Agent ID
36686
+ * * SQL Data Type: uniqueidentifier
36687
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
36688
+ * * Description: Foreign Key - The agent this configuration preset belongs to
36689
+ */
36690
+ get AgentID() {
36691
+ return this.Get('AgentID');
36692
+ }
36693
+ set AgentID(value) {
36694
+ this.Set('AgentID', value);
36695
+ }
36696
+ /**
36697
+ * * Field Name: Name
36698
+ * * Display Name: Name
36699
+ * * SQL Data Type: nvarchar(100)
36700
+ * * Description: Code-friendly name for the preset (e.g., HighPower, Fast, Balanced). Used in API calls and metadata references.
36701
+ */
36702
+ get Name() {
36703
+ return this.Get('Name');
36704
+ }
36705
+ set Name(value) {
36706
+ this.Set('Name', value);
36707
+ }
36708
+ /**
36709
+ * * Field Name: DisplayName
36710
+ * * Display Name: Display Name
36711
+ * * SQL Data Type: nvarchar(200)
36712
+ * * Description: User-friendly display name shown in UI (e.g., "High Quality", "Quick Draft", "Maximum Detail")
36713
+ */
36714
+ get DisplayName() {
36715
+ return this.Get('DisplayName');
36716
+ }
36717
+ set DisplayName(value) {
36718
+ this.Set('DisplayName', value);
36719
+ }
36720
+ /**
36721
+ * * Field Name: Description
36722
+ * * Display Name: Description
36723
+ * * SQL Data Type: nvarchar(MAX)
36724
+ * * Description: Description shown to users explaining what this configuration does (e.g., "Uses Claude Opus for highest quality results")
36725
+ */
36726
+ get Description() {
36727
+ return this.Get('Description');
36728
+ }
36729
+ set Description(value) {
36730
+ this.Set('Description', value);
36731
+ }
36732
+ /**
36733
+ * * Field Name: AIConfigurationID
36734
+ * * Display Name: AI Configuration ID
36735
+ * * SQL Data Type: uniqueidentifier
36736
+ * * Related Entity/Foreign Key: MJ: AI Configurations (vwAIConfigurations.ID)
36737
+ * * Description: Foreign Key - Optional AI Configuration to use for this preset. If NULL, uses default configuration (prompts with ConfigurationID IS NULL)
36738
+ */
36739
+ get AIConfigurationID() {
36740
+ return this.Get('AIConfigurationID');
36741
+ }
36742
+ set AIConfigurationID(value) {
36743
+ this.Set('AIConfigurationID', value);
36744
+ }
36745
+ /**
36746
+ * * Field Name: IsDefault
36747
+ * * Display Name: Is Default
36748
+ * * SQL Data Type: bit
36749
+ * * Default Value: 0
36750
+ * * Description: Whether this is the default preset for the agent. Should have exactly one default per agent.
36751
+ */
36752
+ get IsDefault() {
36753
+ return this.Get('IsDefault');
36754
+ }
36755
+ set IsDefault(value) {
36756
+ this.Set('IsDefault', value);
36757
+ }
36758
+ /**
36759
+ * * Field Name: Priority
36760
+ * * Display Name: Priority
36761
+ * * SQL Data Type: int
36762
+ * * Default Value: 100
36763
+ * * Description: Display order for UI. Lower numbers appear first. Typical values: 100 (Default), 200 (Fast), 300 (Balanced), 400 (High Quality)
36764
+ */
36765
+ get Priority() {
36766
+ return this.Get('Priority');
36767
+ }
36768
+ set Priority(value) {
36769
+ this.Set('Priority', value);
36770
+ }
36771
+ /**
36772
+ * * Field Name: Status
36773
+ * * Display Name: Status
36774
+ * * SQL Data Type: nvarchar(20)
36775
+ * * Default Value: Active
36776
+ * * Value List Type: List
36777
+ * * Possible Values
36778
+ * * Active
36779
+ * * Pending
36780
+ * * Revoked
36781
+ * * Description: Status of the preset: Pending (being configured), Active (available for use), Revoked (no longer available)
36782
+ */
36783
+ get Status() {
36784
+ return this.Get('Status');
36785
+ }
36786
+ set Status(value) {
36787
+ this.Set('Status', value);
36788
+ }
36789
+ /**
36790
+ * * Field Name: __mj_CreatedAt
36791
+ * * Display Name: Created At
36792
+ * * SQL Data Type: datetimeoffset
36793
+ * * Default Value: getutcdate()
36794
+ */
36795
+ get __mj_CreatedAt() {
36796
+ return this.Get('__mj_CreatedAt');
36797
+ }
36798
+ /**
36799
+ * * Field Name: __mj_UpdatedAt
36800
+ * * Display Name: Updated At
36801
+ * * SQL Data Type: datetimeoffset
36802
+ * * Default Value: getutcdate()
36803
+ */
36804
+ get __mj_UpdatedAt() {
36805
+ return this.Get('__mj_UpdatedAt');
36806
+ }
36807
+ /**
36808
+ * * Field Name: Agent
36809
+ * * Display Name: Agent
36810
+ * * SQL Data Type: nvarchar(255)
36811
+ */
36812
+ get Agent() {
36813
+ return this.Get('Agent');
36814
+ }
36815
+ /**
36816
+ * * Field Name: AIConfiguration
36817
+ * * Display Name: AI Configuration
36818
+ * * SQL Data Type: nvarchar(100)
36819
+ */
36820
+ get AIConfiguration() {
36821
+ return this.Get('AIConfiguration');
36822
+ }
36823
+ };
36824
+ exports.AIAgentConfigurationEntity = AIAgentConfigurationEntity;
36825
+ exports.AIAgentConfigurationEntity = AIAgentConfigurationEntity = __decorate([
36826
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Agent Configurations')
36827
+ ], AIAgentConfigurationEntity);
35469
36828
  /**
35470
36829
  * MJ: AI Agent Data Sources - strongly typed entity sub-class
35471
36830
  * * Schema: __mj
@@ -36136,6 +37495,22 @@ let AIAgentExampleEntity = class AIAgentExampleEntity extends core_1.BaseEntity
36136
37495
  return this.Get('SourceConversation');
36137
37496
  }
36138
37497
  /**
37498
+ * * Field Name: SourceConversationDetail
37499
+ * * Display Name: Source Conversation Detail
37500
+ * * SQL Data Type: nvarchar(MAX)
37501
+ */
37502
+ get SourceConversationDetail() {
37503
+ return this.Get('SourceConversationDetail');
37504
+ }
37505
+ /**
37506
+ * * Field Name: SourceAIAgentRun
37507
+ * * Display Name: Source AI Agent Run
37508
+ * * SQL Data Type: nvarchar(255)
37509
+ */
37510
+ get SourceAIAgentRun() {
37511
+ return this.Get('SourceAIAgentRun');
37512
+ }
37513
+ /**
36139
37514
  * * Field Name: EmbeddingModel
36140
37515
  * * Display Name: Embedding Model
36141
37516
  * * SQL Data Type: nvarchar(50)
@@ -37150,6 +38525,22 @@ detailed information about what validation rules failed.
37150
38525
  this.Set('Comments', value);
37151
38526
  }
37152
38527
  /**
38528
+ * * Field Name: AgentRun
38529
+ * * Display Name: Agent Run
38530
+ * * SQL Data Type: nvarchar(255)
38531
+ */
38532
+ get AgentRun() {
38533
+ return this.Get('AgentRun');
38534
+ }
38535
+ /**
38536
+ * * Field Name: Parent
38537
+ * * Display Name: Parent
38538
+ * * SQL Data Type: nvarchar(255)
38539
+ */
38540
+ get Parent() {
38541
+ return this.Get('Parent');
38542
+ }
38543
+ /**
37153
38544
  * * Field Name: RootParentID
37154
38545
  * * Display Name: Root Parent ID
37155
38546
  * * SQL Data Type: uniqueidentifier
@@ -37730,6 +39121,19 @@ each time the agent processes a prompt step.
37730
39121
  this.Set('ScheduledJobRunID', value);
37731
39122
  }
37732
39123
  /**
39124
+ * * Field Name: TestRunID
39125
+ * * Display Name: Test Run ID
39126
+ * * SQL Data Type: uniqueidentifier
39127
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
39128
+ * * 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.
39129
+ */
39130
+ get TestRunID() {
39131
+ return this.Get('TestRunID');
39132
+ }
39133
+ set TestRunID(value) {
39134
+ this.Set('TestRunID', value);
39135
+ }
39136
+ /**
37733
39137
  * * Field Name: Agent
37734
39138
  * * Display Name: Agent
37735
39139
  * * SQL Data Type: nvarchar(255)
@@ -37738,6 +39142,14 @@ each time the agent processes a prompt step.
37738
39142
  return this.Get('Agent');
37739
39143
  }
37740
39144
  /**
39145
+ * * Field Name: ParentRun
39146
+ * * Display Name: Parent Run
39147
+ * * SQL Data Type: nvarchar(255)
39148
+ */
39149
+ get ParentRun() {
39150
+ return this.Get('ParentRun');
39151
+ }
39152
+ /**
37741
39153
  * * Field Name: Conversation
37742
39154
  * * Display Name: Conversation
37743
39155
  * * SQL Data Type: nvarchar(255)
@@ -37754,6 +39166,22 @@ each time the agent processes a prompt step.
37754
39166
  return this.Get('User');
37755
39167
  }
37756
39168
  /**
39169
+ * * Field Name: ConversationDetail
39170
+ * * Display Name: Conversation Detail
39171
+ * * SQL Data Type: nvarchar(MAX)
39172
+ */
39173
+ get ConversationDetail() {
39174
+ return this.Get('ConversationDetail');
39175
+ }
39176
+ /**
39177
+ * * Field Name: LastRun
39178
+ * * Display Name: Last Run
39179
+ * * SQL Data Type: nvarchar(255)
39180
+ */
39181
+ get LastRun() {
39182
+ return this.Get('LastRun');
39183
+ }
39184
+ /**
37757
39185
  * * Field Name: Configuration
37758
39186
  * * Display Name: Configuration
37759
39187
  * * SQL Data Type: nvarchar(100)
@@ -37778,6 +39206,14 @@ each time the agent processes a prompt step.
37778
39206
  return this.Get('OverrideVendor');
37779
39207
  }
37780
39208
  /**
39209
+ * * Field Name: ScheduledJobRun
39210
+ * * Display Name: Scheduled Job Run
39211
+ * * SQL Data Type: nvarchar(200)
39212
+ */
39213
+ get ScheduledJobRun() {
39214
+ return this.Get('ScheduledJobRun');
39215
+ }
39216
+ /**
37781
39217
  * * Field Name: RootParentRunID
37782
39218
  * * Display Name: Root Parent Run ID
37783
39219
  * * SQL Data Type: uniqueidentifier
@@ -41145,6 +42581,19 @@ let AIPromptRunEntity = class AIPromptRunEntity extends core_1.BaseEntity {
41145
42581
  this.Set('Comments', value);
41146
42582
  }
41147
42583
  /**
42584
+ * * Field Name: TestRunID
42585
+ * * Display Name: Test Run ID
42586
+ * * SQL Data Type: uniqueidentifier
42587
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
42588
+ * * 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.
42589
+ */
42590
+ get TestRunID() {
42591
+ return this.Get('TestRunID');
42592
+ }
42593
+ set TestRunID(value) {
42594
+ this.Set('TestRunID', value);
42595
+ }
42596
+ /**
41148
42597
  * * Field Name: Prompt
41149
42598
  * * Display Name: Prompt
41150
42599
  * * SQL Data Type: nvarchar(255)
@@ -41185,6 +42634,22 @@ let AIPromptRunEntity = class AIPromptRunEntity extends core_1.BaseEntity {
41185
42634
  return this.Get('Configuration');
41186
42635
  }
41187
42636
  /**
42637
+ * * Field Name: Parent
42638
+ * * Display Name: Parent
42639
+ * * SQL Data Type: nvarchar(255)
42640
+ */
42641
+ get Parent() {
42642
+ return this.Get('Parent');
42643
+ }
42644
+ /**
42645
+ * * Field Name: AgentRun
42646
+ * * Display Name: Agent Run
42647
+ * * SQL Data Type: nvarchar(255)
42648
+ */
42649
+ get AgentRun() {
42650
+ return this.Get('AgentRun');
42651
+ }
42652
+ /**
41188
42653
  * * Field Name: OriginalModel
41189
42654
  * * Display Name: Original Model
41190
42655
  * * SQL Data Type: nvarchar(50)
@@ -41193,6 +42658,14 @@ let AIPromptRunEntity = class AIPromptRunEntity extends core_1.BaseEntity {
41193
42658
  return this.Get('OriginalModel');
41194
42659
  }
41195
42660
  /**
42661
+ * * Field Name: RerunFromPromptRun
42662
+ * * Display Name: Rerun From Prompt Run
42663
+ * * SQL Data Type: nvarchar(255)
42664
+ */
42665
+ get RerunFromPromptRun() {
42666
+ return this.Get('RerunFromPromptRun');
42667
+ }
42668
+ /**
41196
42669
  * * Field Name: Judge
41197
42670
  * * Display Name: Judge
41198
42671
  * * SQL Data Type: nvarchar(255)
@@ -41881,6 +43354,18 @@ let ArtifactTypeEntity = class ArtifactTypeEntity extends core_1.BaseEntity {
41881
43354
  this.Set('DriverClass', value);
41882
43355
  }
41883
43356
  /**
43357
+ * * Field Name: Icon
43358
+ * * Display Name: Icon
43359
+ * * SQL Data Type: nvarchar(255)
43360
+ * * Description: Font Awesome icon class name for displaying this artifact type in the UI (e.g., fa-file-code, fa-chart-line)
43361
+ */
43362
+ get Icon() {
43363
+ return this.Get('Icon');
43364
+ }
43365
+ set Icon(value) {
43366
+ this.Set('Icon', value);
43367
+ }
43368
+ /**
41884
43369
  * * Field Name: Parent
41885
43370
  * * Display Name: Parent
41886
43371
  * * SQL Data Type: nvarchar(100)
@@ -44634,6 +46119,14 @@ let ConversationDetailArtifactEntity = class ConversationDetailArtifactEntity ex
44634
46119
  return this.Get('__mj_UpdatedAt');
44635
46120
  }
44636
46121
  /**
46122
+ * * Field Name: ConversationDetail
46123
+ * * Display Name: Conversation Detail
46124
+ * * SQL Data Type: nvarchar(MAX)
46125
+ */
46126
+ get ConversationDetail() {
46127
+ return this.Get('ConversationDetail');
46128
+ }
46129
+ /**
44637
46130
  * * Field Name: ArtifactVersion
44638
46131
  * * Display Name: Artifact Version
44639
46132
  * * SQL Data Type: nvarchar(255)
@@ -44779,6 +46272,14 @@ let ConversationDetailRatingEntity = class ConversationDetailRatingEntity extend
44779
46272
  return this.Get('__mj_UpdatedAt');
44780
46273
  }
44781
46274
  /**
46275
+ * * Field Name: ConversationDetail
46276
+ * * Display Name: Conversation Detail
46277
+ * * SQL Data Type: nvarchar(MAX)
46278
+ */
46279
+ get ConversationDetail() {
46280
+ return this.Get('ConversationDetail');
46281
+ }
46282
+ /**
44782
46283
  * * Field Name: User
44783
46284
  * * Display Name: User
44784
46285
  * * SQL Data Type: nvarchar(100)
@@ -47196,8 +48697,1737 @@ let TaskTypeEntity = class TaskTypeEntity extends core_1.BaseEntity {
47196
48697
  /**
47197
48698
  * * Field Name: Name
47198
48699
  * * Display Name: Name
47199
- * * SQL Data Type: nvarchar(255)
47200
- * * Description: Display name for the task type
48700
+ * * SQL Data Type: nvarchar(255)
48701
+ * * Description: Display name for the task type
48702
+ */
48703
+ get Name() {
48704
+ return this.Get('Name');
48705
+ }
48706
+ set Name(value) {
48707
+ this.Set('Name', value);
48708
+ }
48709
+ /**
48710
+ * * Field Name: Description
48711
+ * * Display Name: Description
48712
+ * * SQL Data Type: nvarchar(MAX)
48713
+ * * Description: Detailed description of what this task type represents and when it should be used
48714
+ */
48715
+ get Description() {
48716
+ return this.Get('Description');
48717
+ }
48718
+ set Description(value) {
48719
+ this.Set('Description', value);
48720
+ }
48721
+ /**
48722
+ * * Field Name: __mj_CreatedAt
48723
+ * * Display Name: Created At
48724
+ * * SQL Data Type: datetimeoffset
48725
+ * * Default Value: getutcdate()
48726
+ */
48727
+ get __mj_CreatedAt() {
48728
+ return this.Get('__mj_CreatedAt');
48729
+ }
48730
+ /**
48731
+ * * Field Name: __mj_UpdatedAt
48732
+ * * Display Name: Updated At
48733
+ * * SQL Data Type: datetimeoffset
48734
+ * * Default Value: getutcdate()
48735
+ */
48736
+ get __mj_UpdatedAt() {
48737
+ return this.Get('__mj_UpdatedAt');
48738
+ }
48739
+ };
48740
+ exports.TaskTypeEntity = TaskTypeEntity;
48741
+ exports.TaskTypeEntity = TaskTypeEntity = __decorate([
48742
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Task Types')
48743
+ ], TaskTypeEntity);
48744
+ /**
48745
+ * MJ: Tasks - strongly typed entity sub-class
48746
+ * * Schema: __mj
48747
+ * * Base Table: Task
48748
+ * * Base View: vwTasks
48749
+ * * @description Core task management entity supporting multi-agent and multi-human collaboration with dependency tracking
48750
+ * * Primary Key: ID
48751
+ * @extends {BaseEntity}
48752
+ * @class
48753
+ * @public
48754
+ */
48755
+ let TaskEntity = class TaskEntity extends core_1.BaseEntity {
48756
+ /**
48757
+ * Loads the MJ: Tasks record from the database
48758
+ * @param ID: string - primary key value to load the MJ: Tasks record.
48759
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
48760
+ * @returns {Promise<boolean>} - true if successful, false otherwise
48761
+ * @public
48762
+ * @async
48763
+ * @memberof TaskEntity
48764
+ * @method
48765
+ * @override
48766
+ */
48767
+ async Load(ID, EntityRelationshipsToLoad) {
48768
+ const compositeKey = new core_1.CompositeKey();
48769
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
48770
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
48771
+ }
48772
+ /**
48773
+ * Validate() method override for MJ: Tasks entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
48774
+ * * PercentComplete: This rule ensures that if a percent complete value is provided, it must be between 0 and 100 inclusive.
48775
+ * * Table-Level: This rule ensures that for each record, either UserID or AgentID can be set, or both can be left empty, but not both can be filled in at the same time.
48776
+ * @public
48777
+ * @method
48778
+ * @override
48779
+ */
48780
+ Validate() {
48781
+ const result = super.Validate();
48782
+ this.ValidatePercentCompleteWithinZeroAndOneHundred(result);
48783
+ this.ValidateUserIDAndAgentIDMutualExclusivity(result);
48784
+ result.Success = result.Success && (result.Errors.length === 0);
48785
+ return result;
48786
+ }
48787
+ /**
48788
+ * This rule ensures that if a percent complete value is provided, it must be between 0 and 100 inclusive.
48789
+ * @param result - the ValidationResult object to add any errors or warnings to
48790
+ * @public
48791
+ * @method
48792
+ */
48793
+ ValidatePercentCompleteWithinZeroAndOneHundred(result) {
48794
+ if (this.PercentComplete != null && (this.PercentComplete < 0 || this.PercentComplete > 100)) {
48795
+ result.Errors.push(new core_1.ValidationErrorInfo("PercentComplete", "PercentComplete must be between 0 and 100 if specified.", this.PercentComplete, core_1.ValidationErrorType.Failure));
48796
+ }
48797
+ }
48798
+ /**
48799
+ * This rule ensures that for each record, either UserID or AgentID can be set, or both can be left empty, but not both can be filled in at the same time.
48800
+ * @param result - the ValidationResult object to add any errors or warnings to
48801
+ * @public
48802
+ * @method
48803
+ */
48804
+ ValidateUserIDAndAgentIDMutualExclusivity(result) {
48805
+ if (this.UserID != null && this.AgentID != null) {
48806
+ result.Errors.push(new core_1.ValidationErrorInfo("UserID", "UserID and AgentID cannot both have values at the same time. Only one or neither may be set.", this.UserID, core_1.ValidationErrorType.Failure));
48807
+ }
48808
+ }
48809
+ /**
48810
+ * * Field Name: ID
48811
+ * * Display Name: ID
48812
+ * * SQL Data Type: uniqueidentifier
48813
+ * * Default Value: newsequentialid()
48814
+ */
48815
+ get ID() {
48816
+ return this.Get('ID');
48817
+ }
48818
+ set ID(value) {
48819
+ this.Set('ID', value);
48820
+ }
48821
+ /**
48822
+ * * Field Name: ParentID
48823
+ * * Display Name: Parent ID
48824
+ * * SQL Data Type: uniqueidentifier
48825
+ * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)
48826
+ */
48827
+ get ParentID() {
48828
+ return this.Get('ParentID');
48829
+ }
48830
+ set ParentID(value) {
48831
+ this.Set('ParentID', value);
48832
+ }
48833
+ /**
48834
+ * * Field Name: Name
48835
+ * * Display Name: Name
48836
+ * * SQL Data Type: nvarchar(255)
48837
+ * * Description: Display name for the task
48838
+ */
48839
+ get Name() {
48840
+ return this.Get('Name');
48841
+ }
48842
+ set Name(value) {
48843
+ this.Set('Name', value);
48844
+ }
48845
+ /**
48846
+ * * Field Name: Description
48847
+ * * Display Name: Description
48848
+ * * SQL Data Type: nvarchar(MAX)
48849
+ * * Description: Detailed description of the task requirements and objectives
48850
+ */
48851
+ get Description() {
48852
+ return this.Get('Description');
48853
+ }
48854
+ set Description(value) {
48855
+ this.Set('Description', value);
48856
+ }
48857
+ /**
48858
+ * * Field Name: TypeID
48859
+ * * Display Name: Type ID
48860
+ * * SQL Data Type: uniqueidentifier
48861
+ * * Related Entity/Foreign Key: MJ: Task Types (vwTaskTypes.ID)
48862
+ */
48863
+ get TypeID() {
48864
+ return this.Get('TypeID');
48865
+ }
48866
+ set TypeID(value) {
48867
+ this.Set('TypeID', value);
48868
+ }
48869
+ /**
48870
+ * * Field Name: EnvironmentID
48871
+ * * Display Name: Environment ID
48872
+ * * SQL Data Type: uniqueidentifier
48873
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
48874
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
48875
+ */
48876
+ get EnvironmentID() {
48877
+ return this.Get('EnvironmentID');
48878
+ }
48879
+ set EnvironmentID(value) {
48880
+ this.Set('EnvironmentID', value);
48881
+ }
48882
+ /**
48883
+ * * Field Name: ProjectID
48884
+ * * Display Name: Project ID
48885
+ * * SQL Data Type: uniqueidentifier
48886
+ * * Related Entity/Foreign Key: MJ: Projects (vwProjects.ID)
48887
+ */
48888
+ get ProjectID() {
48889
+ return this.Get('ProjectID');
48890
+ }
48891
+ set ProjectID(value) {
48892
+ this.Set('ProjectID', value);
48893
+ }
48894
+ /**
48895
+ * * Field Name: ConversationDetailID
48896
+ * * Display Name: Conversation Detail ID
48897
+ * * SQL Data Type: uniqueidentifier
48898
+ * * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
48899
+ */
48900
+ get ConversationDetailID() {
48901
+ return this.Get('ConversationDetailID');
48902
+ }
48903
+ set ConversationDetailID(value) {
48904
+ this.Set('ConversationDetailID', value);
48905
+ }
48906
+ /**
48907
+ * * Field Name: UserID
48908
+ * * Display Name: User ID
48909
+ * * SQL Data Type: uniqueidentifier
48910
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
48911
+ */
48912
+ get UserID() {
48913
+ return this.Get('UserID');
48914
+ }
48915
+ set UserID(value) {
48916
+ this.Set('UserID', value);
48917
+ }
48918
+ /**
48919
+ * * Field Name: AgentID
48920
+ * * Display Name: Agent ID
48921
+ * * SQL Data Type: uniqueidentifier
48922
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
48923
+ */
48924
+ get AgentID() {
48925
+ return this.Get('AgentID');
48926
+ }
48927
+ set AgentID(value) {
48928
+ this.Set('AgentID', value);
48929
+ }
48930
+ /**
48931
+ * * Field Name: Status
48932
+ * * Display Name: Status
48933
+ * * SQL Data Type: nvarchar(50)
48934
+ * * Default Value: Pending
48935
+ * * Value List Type: List
48936
+ * * Possible Values
48937
+ * * Blocked
48938
+ * * Cancelled
48939
+ * * Complete
48940
+ * * Deferred
48941
+ * * Failed
48942
+ * * In Progress
48943
+ * * Pending
48944
+ * * Description: Current status of the task (Pending, In Progress, Complete, Cancelled, Failed, Blocked, Deferred)
48945
+ */
48946
+ get Status() {
48947
+ return this.Get('Status');
48948
+ }
48949
+ set Status(value) {
48950
+ this.Set('Status', value);
48951
+ }
48952
+ /**
48953
+ * * Field Name: PercentComplete
48954
+ * * Display Name: Percent Complete
48955
+ * * SQL Data Type: int
48956
+ * * Default Value: 0
48957
+ * * Description: Completion percentage for tracking progress (0-100)
48958
+ */
48959
+ get PercentComplete() {
48960
+ return this.Get('PercentComplete');
48961
+ }
48962
+ set PercentComplete(value) {
48963
+ this.Set('PercentComplete', value);
48964
+ }
48965
+ /**
48966
+ * * Field Name: DueAt
48967
+ * * Display Name: Due At
48968
+ * * SQL Data Type: datetimeoffset
48969
+ * * Description: Due date and time for task completion
48970
+ */
48971
+ get DueAt() {
48972
+ return this.Get('DueAt');
48973
+ }
48974
+ set DueAt(value) {
48975
+ this.Set('DueAt', value);
48976
+ }
48977
+ /**
48978
+ * * Field Name: StartedAt
48979
+ * * Display Name: Started At
48980
+ * * SQL Data Type: datetimeoffset
48981
+ * * Description: Timestamp when work on the task began
48982
+ */
48983
+ get StartedAt() {
48984
+ return this.Get('StartedAt');
48985
+ }
48986
+ set StartedAt(value) {
48987
+ this.Set('StartedAt', value);
48988
+ }
48989
+ /**
48990
+ * * Field Name: CompletedAt
48991
+ * * Display Name: Completed At
48992
+ * * SQL Data Type: datetimeoffset
48993
+ * * Description: Timestamp when the task was completed
48994
+ */
48995
+ get CompletedAt() {
48996
+ return this.Get('CompletedAt');
48997
+ }
48998
+ set CompletedAt(value) {
48999
+ this.Set('CompletedAt', value);
49000
+ }
49001
+ /**
49002
+ * * Field Name: __mj_CreatedAt
49003
+ * * Display Name: Created At
49004
+ * * SQL Data Type: datetimeoffset
49005
+ * * Default Value: getutcdate()
49006
+ */
49007
+ get __mj_CreatedAt() {
49008
+ return this.Get('__mj_CreatedAt');
49009
+ }
49010
+ /**
49011
+ * * Field Name: __mj_UpdatedAt
49012
+ * * Display Name: Updated At
49013
+ * * SQL Data Type: datetimeoffset
49014
+ * * Default Value: getutcdate()
49015
+ */
49016
+ get __mj_UpdatedAt() {
49017
+ return this.Get('__mj_UpdatedAt');
49018
+ }
49019
+ /**
49020
+ * * Field Name: Parent
49021
+ * * Display Name: Parent
49022
+ * * SQL Data Type: nvarchar(255)
49023
+ */
49024
+ get Parent() {
49025
+ return this.Get('Parent');
49026
+ }
49027
+ /**
49028
+ * * Field Name: Type
49029
+ * * Display Name: Type
49030
+ * * SQL Data Type: nvarchar(255)
49031
+ */
49032
+ get Type() {
49033
+ return this.Get('Type');
49034
+ }
49035
+ /**
49036
+ * * Field Name: Environment
49037
+ * * Display Name: Environment
49038
+ * * SQL Data Type: nvarchar(255)
49039
+ */
49040
+ get Environment() {
49041
+ return this.Get('Environment');
49042
+ }
49043
+ /**
49044
+ * * Field Name: Project
49045
+ * * Display Name: Project
49046
+ * * SQL Data Type: nvarchar(255)
49047
+ */
49048
+ get Project() {
49049
+ return this.Get('Project');
49050
+ }
49051
+ /**
49052
+ * * Field Name: ConversationDetail
49053
+ * * Display Name: Conversation Detail
49054
+ * * SQL Data Type: nvarchar(MAX)
49055
+ */
49056
+ get ConversationDetail() {
49057
+ return this.Get('ConversationDetail');
49058
+ }
49059
+ /**
49060
+ * * Field Name: User
49061
+ * * Display Name: User
49062
+ * * SQL Data Type: nvarchar(100)
49063
+ */
49064
+ get User() {
49065
+ return this.Get('User');
49066
+ }
49067
+ /**
49068
+ * * Field Name: Agent
49069
+ * * Display Name: Agent
49070
+ * * SQL Data Type: nvarchar(255)
49071
+ */
49072
+ get Agent() {
49073
+ return this.Get('Agent');
49074
+ }
49075
+ /**
49076
+ * * Field Name: RootParentID
49077
+ * * Display Name: Root Parent ID
49078
+ * * SQL Data Type: uniqueidentifier
49079
+ */
49080
+ get RootParentID() {
49081
+ return this.Get('RootParentID');
49082
+ }
49083
+ };
49084
+ exports.TaskEntity = TaskEntity;
49085
+ exports.TaskEntity = TaskEntity = __decorate([
49086
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Tasks')
49087
+ ], TaskEntity);
49088
+ /**
49089
+ * MJ: Test Rubrics - strongly typed entity sub-class
49090
+ * * Schema: __mj
49091
+ * * Base Table: TestRubric
49092
+ * * Base View: vwTestRubrics
49093
+ * * @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.
49094
+ * * Primary Key: ID
49095
+ * @extends {BaseEntity}
49096
+ * @class
49097
+ * @public
49098
+ */
49099
+ let TestRubricEntity = class TestRubricEntity extends core_1.BaseEntity {
49100
+ /**
49101
+ * Loads the MJ: Test Rubrics record from the database
49102
+ * @param ID: string - primary key value to load the MJ: Test Rubrics record.
49103
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
49104
+ * @returns {Promise<boolean>} - true if successful, false otherwise
49105
+ * @public
49106
+ * @async
49107
+ * @memberof TestRubricEntity
49108
+ * @method
49109
+ * @override
49110
+ */
49111
+ async Load(ID, EntityRelationshipsToLoad) {
49112
+ const compositeKey = new core_1.CompositeKey();
49113
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
49114
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
49115
+ }
49116
+ /**
49117
+ * * Field Name: ID
49118
+ * * Display Name: ID
49119
+ * * SQL Data Type: uniqueidentifier
49120
+ * * Default Value: newsequentialid()
49121
+ */
49122
+ get ID() {
49123
+ return this.Get('ID');
49124
+ }
49125
+ set ID(value) {
49126
+ this.Set('ID', value);
49127
+ }
49128
+ /**
49129
+ * * Field Name: TypeID
49130
+ * * Display Name: Type ID
49131
+ * * SQL Data Type: uniqueidentifier
49132
+ * * Related Entity/Foreign Key: MJ: Test Types (vwTestTypes.ID)
49133
+ * * Description: Foreign Key - The test type this rubric applies to (e.g., Agent Eval, Code Generation)
49134
+ */
49135
+ get TypeID() {
49136
+ return this.Get('TypeID');
49137
+ }
49138
+ set TypeID(value) {
49139
+ this.Set('TypeID', value);
49140
+ }
49141
+ /**
49142
+ * * Field Name: Name
49143
+ * * Display Name: Name
49144
+ * * SQL Data Type: nvarchar(255)
49145
+ * * Description: Unique name for the rubric (e.g., "Component Quality Rubric v1", "Agent Response Quality")
49146
+ */
49147
+ get Name() {
49148
+ return this.Get('Name');
49149
+ }
49150
+ set Name(value) {
49151
+ this.Set('Name', value);
49152
+ }
49153
+ /**
49154
+ * * Field Name: Description
49155
+ * * Display Name: Description
49156
+ * * SQL Data Type: nvarchar(MAX)
49157
+ * * Description: Description of what this rubric evaluates and when to use it
49158
+ */
49159
+ get Description() {
49160
+ return this.Get('Description');
49161
+ }
49162
+ set Description(value) {
49163
+ this.Set('Description', value);
49164
+ }
49165
+ /**
49166
+ * * Field Name: PromptTemplate
49167
+ * * Display Name: Prompt Template
49168
+ * * SQL Data Type: nvarchar(MAX)
49169
+ * * 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...")
49170
+ */
49171
+ get PromptTemplate() {
49172
+ return this.Get('PromptTemplate');
49173
+ }
49174
+ set PromptTemplate(value) {
49175
+ this.Set('PromptTemplate', value);
49176
+ }
49177
+ /**
49178
+ * * Field Name: Criteria
49179
+ * * Display Name: Criteria
49180
+ * * SQL Data Type: nvarchar(MAX)
49181
+ * * 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: "..."}})
49182
+ */
49183
+ get Criteria() {
49184
+ return this.Get('Criteria');
49185
+ }
49186
+ set Criteria(value) {
49187
+ this.Set('Criteria', value);
49188
+ }
49189
+ /**
49190
+ * * Field Name: Version
49191
+ * * Display Name: Version
49192
+ * * SQL Data Type: nvarchar(50)
49193
+ * * Description: Version identifier for the rubric. Allows tracking changes and comparing results across rubric versions.
49194
+ */
49195
+ get Version() {
49196
+ return this.Get('Version');
49197
+ }
49198
+ set Version(value) {
49199
+ this.Set('Version', value);
49200
+ }
49201
+ /**
49202
+ * * Field Name: Status
49203
+ * * Display Name: Status
49204
+ * * SQL Data Type: nvarchar(20)
49205
+ * * Default Value: Active
49206
+ * * Value List Type: List
49207
+ * * Possible Values
49208
+ * * Active
49209
+ * * Disabled
49210
+ * * Pending
49211
+ * * Description: Status of the rubric: Pending (under development), Active (available for use), Disabled (deprecated)
49212
+ */
49213
+ get Status() {
49214
+ return this.Get('Status');
49215
+ }
49216
+ set Status(value) {
49217
+ this.Set('Status', value);
49218
+ }
49219
+ /**
49220
+ * * Field Name: __mj_CreatedAt
49221
+ * * Display Name: Created At
49222
+ * * SQL Data Type: datetimeoffset
49223
+ * * Default Value: getutcdate()
49224
+ */
49225
+ get __mj_CreatedAt() {
49226
+ return this.Get('__mj_CreatedAt');
49227
+ }
49228
+ /**
49229
+ * * Field Name: __mj_UpdatedAt
49230
+ * * Display Name: Updated At
49231
+ * * SQL Data Type: datetimeoffset
49232
+ * * Default Value: getutcdate()
49233
+ */
49234
+ get __mj_UpdatedAt() {
49235
+ return this.Get('__mj_UpdatedAt');
49236
+ }
49237
+ /**
49238
+ * * Field Name: Type
49239
+ * * Display Name: Type
49240
+ * * SQL Data Type: nvarchar(100)
49241
+ */
49242
+ get Type() {
49243
+ return this.Get('Type');
49244
+ }
49245
+ };
49246
+ exports.TestRubricEntity = TestRubricEntity;
49247
+ exports.TestRubricEntity = TestRubricEntity = __decorate([
49248
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Test Rubrics')
49249
+ ], TestRubricEntity);
49250
+ /**
49251
+ * MJ: Test Run Feedbacks - strongly typed entity sub-class
49252
+ * * Schema: __mj
49253
+ * * Base Table: TestRunFeedback
49254
+ * * Base View: vwTestRunFeedbacks
49255
+ * * @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.
49256
+ * * Primary Key: ID
49257
+ * @extends {BaseEntity}
49258
+ * @class
49259
+ * @public
49260
+ */
49261
+ let TestRunFeedbackEntity = class TestRunFeedbackEntity extends core_1.BaseEntity {
49262
+ /**
49263
+ * Loads the MJ: Test Run Feedbacks record from the database
49264
+ * @param ID: string - primary key value to load the MJ: Test Run Feedbacks record.
49265
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
49266
+ * @returns {Promise<boolean>} - true if successful, false otherwise
49267
+ * @public
49268
+ * @async
49269
+ * @memberof TestRunFeedbackEntity
49270
+ * @method
49271
+ * @override
49272
+ */
49273
+ async Load(ID, EntityRelationshipsToLoad) {
49274
+ const compositeKey = new core_1.CompositeKey();
49275
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
49276
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
49277
+ }
49278
+ /**
49279
+ * 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:
49280
+ * * 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.
49281
+ * @public
49282
+ * @method
49283
+ * @override
49284
+ */
49285
+ Validate() {
49286
+ const result = super.Validate();
49287
+ this.ValidateRatingRange(result);
49288
+ result.Success = result.Success && (result.Errors.length === 0);
49289
+ return result;
49290
+ }
49291
+ /**
49292
+ * 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.
49293
+ * @param result - the ValidationResult object to add any errors or warnings to
49294
+ * @public
49295
+ * @method
49296
+ */
49297
+ ValidateRatingRange(result) {
49298
+ if (this.Rating != null && (this.Rating < 1 || this.Rating > 10)) {
49299
+ result.Errors.push(new core_1.ValidationErrorInfo("Rating", "Rating must be between 1 and 10.", this.Rating, core_1.ValidationErrorType.Failure));
49300
+ }
49301
+ }
49302
+ /**
49303
+ * * Field Name: ID
49304
+ * * Display Name: ID
49305
+ * * SQL Data Type: uniqueidentifier
49306
+ * * Default Value: newsequentialid()
49307
+ */
49308
+ get ID() {
49309
+ return this.Get('ID');
49310
+ }
49311
+ set ID(value) {
49312
+ this.Set('ID', value);
49313
+ }
49314
+ /**
49315
+ * * Field Name: TestRunID
49316
+ * * Display Name: Test Run ID
49317
+ * * SQL Data Type: uniqueidentifier
49318
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
49319
+ * * Description: Foreign Key - The test run being reviewed
49320
+ */
49321
+ get TestRunID() {
49322
+ return this.Get('TestRunID');
49323
+ }
49324
+ set TestRunID(value) {
49325
+ this.Set('TestRunID', value);
49326
+ }
49327
+ /**
49328
+ * * Field Name: ReviewerUserID
49329
+ * * Display Name: Reviewer User ID
49330
+ * * SQL Data Type: uniqueidentifier
49331
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
49332
+ * * Description: Foreign Key - The user providing the feedback
49333
+ */
49334
+ get ReviewerUserID() {
49335
+ return this.Get('ReviewerUserID');
49336
+ }
49337
+ set ReviewerUserID(value) {
49338
+ this.Set('ReviewerUserID', value);
49339
+ }
49340
+ /**
49341
+ * * Field Name: Rating
49342
+ * * Display Name: Rating
49343
+ * * SQL Data Type: int
49344
+ * * Description: Numeric rating from 1 (poor) to 10 (excellent). Allows quantitative tracking of result quality.
49345
+ */
49346
+ get Rating() {
49347
+ return this.Get('Rating');
49348
+ }
49349
+ set Rating(value) {
49350
+ this.Set('Rating', value);
49351
+ }
49352
+ /**
49353
+ * * Field Name: IsCorrect
49354
+ * * Display Name: Is Correct
49355
+ * * SQL Data Type: bit
49356
+ * * Description: Boolean indicating if the automated test result was correct. Can override automated Pass/Fail status.
49357
+ */
49358
+ get IsCorrect() {
49359
+ return this.Get('IsCorrect');
49360
+ }
49361
+ set IsCorrect(value) {
49362
+ this.Set('IsCorrect', value);
49363
+ }
49364
+ /**
49365
+ * * Field Name: CorrectionSummary
49366
+ * * Display Name: Correction Summary
49367
+ * * SQL Data Type: nvarchar(MAX)
49368
+ * * Description: Summary of corrections or adjustments made by the human reviewer
49369
+ */
49370
+ get CorrectionSummary() {
49371
+ return this.Get('CorrectionSummary');
49372
+ }
49373
+ set CorrectionSummary(value) {
49374
+ this.Set('CorrectionSummary', value);
49375
+ }
49376
+ /**
49377
+ * * Field Name: Comments
49378
+ * * Display Name: Comments
49379
+ * * SQL Data Type: nvarchar(MAX)
49380
+ * * Description: Free-form comments from the reviewer about the test result, quality, or issues found
49381
+ */
49382
+ get Comments() {
49383
+ return this.Get('Comments');
49384
+ }
49385
+ set Comments(value) {
49386
+ this.Set('Comments', value);
49387
+ }
49388
+ /**
49389
+ * * Field Name: ReviewedAt
49390
+ * * Display Name: Reviewed At
49391
+ * * SQL Data Type: datetime
49392
+ * * Default Value: getdate()
49393
+ * * Description: Timestamp when the feedback was provided
49394
+ */
49395
+ get ReviewedAt() {
49396
+ return this.Get('ReviewedAt');
49397
+ }
49398
+ set ReviewedAt(value) {
49399
+ this.Set('ReviewedAt', value);
49400
+ }
49401
+ /**
49402
+ * * Field Name: __mj_CreatedAt
49403
+ * * Display Name: Created At
49404
+ * * SQL Data Type: datetimeoffset
49405
+ * * Default Value: getutcdate()
49406
+ */
49407
+ get __mj_CreatedAt() {
49408
+ return this.Get('__mj_CreatedAt');
49409
+ }
49410
+ /**
49411
+ * * Field Name: __mj_UpdatedAt
49412
+ * * Display Name: Updated At
49413
+ * * SQL Data Type: datetimeoffset
49414
+ * * Default Value: getutcdate()
49415
+ */
49416
+ get __mj_UpdatedAt() {
49417
+ return this.Get('__mj_UpdatedAt');
49418
+ }
49419
+ /**
49420
+ * * Field Name: ReviewerUser
49421
+ * * Display Name: Reviewer User
49422
+ * * SQL Data Type: nvarchar(100)
49423
+ */
49424
+ get ReviewerUser() {
49425
+ return this.Get('ReviewerUser');
49426
+ }
49427
+ };
49428
+ exports.TestRunFeedbackEntity = TestRunFeedbackEntity;
49429
+ exports.TestRunFeedbackEntity = TestRunFeedbackEntity = __decorate([
49430
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Test Run Feedbacks')
49431
+ ], TestRunFeedbackEntity);
49432
+ /**
49433
+ * MJ: Test Runs - strongly typed entity sub-class
49434
+ * * Schema: __mj
49435
+ * * Base Table: TestRun
49436
+ * * Base View: vwTestRuns
49437
+ * * @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.
49438
+ * * Primary Key: ID
49439
+ * @extends {BaseEntity}
49440
+ * @class
49441
+ * @public
49442
+ */
49443
+ let TestRunEntity = class TestRunEntity extends core_1.BaseEntity {
49444
+ /**
49445
+ * Loads the MJ: Test Runs record from the database
49446
+ * @param ID: string - primary key value to load the MJ: Test Runs record.
49447
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
49448
+ * @returns {Promise<boolean>} - true if successful, false otherwise
49449
+ * @public
49450
+ * @async
49451
+ * @memberof TestRunEntity
49452
+ * @method
49453
+ * @override
49454
+ */
49455
+ async Load(ID, EntityRelationshipsToLoad) {
49456
+ const compositeKey = new core_1.CompositeKey();
49457
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
49458
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
49459
+ }
49460
+ /**
49461
+ * * Field Name: ID
49462
+ * * Display Name: ID
49463
+ * * SQL Data Type: uniqueidentifier
49464
+ * * Default Value: newsequentialid()
49465
+ */
49466
+ get ID() {
49467
+ return this.Get('ID');
49468
+ }
49469
+ set ID(value) {
49470
+ this.Set('ID', value);
49471
+ }
49472
+ /**
49473
+ * * Field Name: TestID
49474
+ * * Display Name: Test ID
49475
+ * * SQL Data Type: uniqueidentifier
49476
+ * * Related Entity/Foreign Key: MJ: Tests (vwTests.ID)
49477
+ * * Description: Foreign Key - The test definition that was executed
49478
+ */
49479
+ get TestID() {
49480
+ return this.Get('TestID');
49481
+ }
49482
+ set TestID(value) {
49483
+ this.Set('TestID', value);
49484
+ }
49485
+ /**
49486
+ * * Field Name: TestSuiteRunID
49487
+ * * Display Name: Test Suite Run ID
49488
+ * * SQL Data Type: uniqueidentifier
49489
+ * * Related Entity/Foreign Key: MJ: Test Suite Runs (vwTestSuiteRuns.ID)
49490
+ * * Description: Foreign Key - Optional parent suite run if this test was part of a suite execution. NULL for standalone test runs.
49491
+ */
49492
+ get TestSuiteRunID() {
49493
+ return this.Get('TestSuiteRunID');
49494
+ }
49495
+ set TestSuiteRunID(value) {
49496
+ this.Set('TestSuiteRunID', value);
49497
+ }
49498
+ /**
49499
+ * * Field Name: RunByUserID
49500
+ * * Display Name: Run By User ID
49501
+ * * SQL Data Type: uniqueidentifier
49502
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
49503
+ * * Description: Foreign Key - The user who triggered the test run (could be system user for automated runs)
49504
+ */
49505
+ get RunByUserID() {
49506
+ return this.Get('RunByUserID');
49507
+ }
49508
+ set RunByUserID(value) {
49509
+ this.Set('RunByUserID', value);
49510
+ }
49511
+ /**
49512
+ * * Field Name: Sequence
49513
+ * * Display Name: Sequence
49514
+ * * SQL Data Type: int
49515
+ * * Description: Execution sequence within the suite run. Indicates order of execution for tests in the same suite.
49516
+ */
49517
+ get Sequence() {
49518
+ return this.Get('Sequence');
49519
+ }
49520
+ set Sequence(value) {
49521
+ this.Set('Sequence', value);
49522
+ }
49523
+ /**
49524
+ * * Field Name: TargetType
49525
+ * * Display Name: Target Type
49526
+ * * SQL Data Type: nvarchar(100)
49527
+ * * Description: Type of the target being tested (e.g., "Agent Run", "Workflow Run", "Code Generation"). Polymorphic discriminator for TargetLogID.
49528
+ */
49529
+ get TargetType() {
49530
+ return this.Get('TargetType');
49531
+ }
49532
+ set TargetType(value) {
49533
+ this.Set('TargetType', value);
49534
+ }
49535
+ /**
49536
+ * * Field Name: TargetLogID
49537
+ * * Display Name: Target Log ID
49538
+ * * SQL Data Type: uniqueidentifier
49539
+ * * 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.
49540
+ */
49541
+ get TargetLogID() {
49542
+ return this.Get('TargetLogID');
49543
+ }
49544
+ set TargetLogID(value) {
49545
+ this.Set('TargetLogID', value);
49546
+ }
49547
+ /**
49548
+ * * Field Name: Status
49549
+ * * Display Name: Status
49550
+ * * SQL Data Type: nvarchar(20)
49551
+ * * Default Value: Pending
49552
+ * * Value List Type: List
49553
+ * * Possible Values
49554
+ * * Error
49555
+ * * Failed
49556
+ * * Passed
49557
+ * * Pending
49558
+ * * Running
49559
+ * * Skipped
49560
+ * * 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)
49561
+ */
49562
+ get Status() {
49563
+ return this.Get('Status');
49564
+ }
49565
+ set Status(value) {
49566
+ this.Set('Status', value);
49567
+ }
49568
+ /**
49569
+ * * Field Name: StartedAt
49570
+ * * Display Name: Started At
49571
+ * * SQL Data Type: datetime
49572
+ * * Description: Timestamp when the test run started execution
49573
+ */
49574
+ get StartedAt() {
49575
+ return this.Get('StartedAt');
49576
+ }
49577
+ set StartedAt(value) {
49578
+ this.Set('StartedAt', value);
49579
+ }
49580
+ /**
49581
+ * * Field Name: CompletedAt
49582
+ * * Display Name: Completed At
49583
+ * * SQL Data Type: datetime
49584
+ * * Description: Timestamp when the test run completed
49585
+ */
49586
+ get CompletedAt() {
49587
+ return this.Get('CompletedAt');
49588
+ }
49589
+ set CompletedAt(value) {
49590
+ this.Set('CompletedAt', value);
49591
+ }
49592
+ /**
49593
+ * * Field Name: DurationSeconds
49594
+ * * Display Name: Duration Seconds
49595
+ * * SQL Data Type: decimal(10, 3)
49596
+ * * Description: Execution time in seconds for this test
49597
+ */
49598
+ get DurationSeconds() {
49599
+ return this.Get('DurationSeconds');
49600
+ }
49601
+ set DurationSeconds(value) {
49602
+ this.Set('DurationSeconds', value);
49603
+ }
49604
+ /**
49605
+ * * Field Name: InputData
49606
+ * * Display Name: Input Data
49607
+ * * SQL Data Type: nvarchar(MAX)
49608
+ * * Description: JSON object with the actual inputs used for this test run (may differ from test definition if parameterized)
49609
+ */
49610
+ get InputData() {
49611
+ return this.Get('InputData');
49612
+ }
49613
+ set InputData(value) {
49614
+ this.Set('InputData', value);
49615
+ }
49616
+ /**
49617
+ * * Field Name: ExpectedOutputData
49618
+ * * Display Name: Expected Output Data
49619
+ * * SQL Data Type: nvarchar(MAX)
49620
+ * * Description: JSON object with the expected outputs/outcomes for this test run
49621
+ */
49622
+ get ExpectedOutputData() {
49623
+ return this.Get('ExpectedOutputData');
49624
+ }
49625
+ set ExpectedOutputData(value) {
49626
+ this.Set('ExpectedOutputData', value);
49627
+ }
49628
+ /**
49629
+ * * Field Name: ActualOutputData
49630
+ * * Display Name: Actual Output Data
49631
+ * * SQL Data Type: nvarchar(MAX)
49632
+ * * Description: JSON object with the actual outputs produced by the test execution
49633
+ */
49634
+ get ActualOutputData() {
49635
+ return this.Get('ActualOutputData');
49636
+ }
49637
+ set ActualOutputData(value) {
49638
+ this.Set('ActualOutputData', value);
49639
+ }
49640
+ /**
49641
+ * * Field Name: PassedChecks
49642
+ * * Display Name: Passed Checks
49643
+ * * SQL Data Type: int
49644
+ * * Description: Number of validation checks that passed
49645
+ */
49646
+ get PassedChecks() {
49647
+ return this.Get('PassedChecks');
49648
+ }
49649
+ set PassedChecks(value) {
49650
+ this.Set('PassedChecks', value);
49651
+ }
49652
+ /**
49653
+ * * Field Name: FailedChecks
49654
+ * * Display Name: Failed Checks
49655
+ * * SQL Data Type: int
49656
+ * * Description: Number of validation checks that failed
49657
+ */
49658
+ get FailedChecks() {
49659
+ return this.Get('FailedChecks');
49660
+ }
49661
+ set FailedChecks(value) {
49662
+ this.Set('FailedChecks', value);
49663
+ }
49664
+ /**
49665
+ * * Field Name: TotalChecks
49666
+ * * Display Name: Total Checks
49667
+ * * SQL Data Type: int
49668
+ * * Description: Total number of validation checks performed
49669
+ */
49670
+ get TotalChecks() {
49671
+ return this.Get('TotalChecks');
49672
+ }
49673
+ set TotalChecks(value) {
49674
+ this.Set('TotalChecks', value);
49675
+ }
49676
+ /**
49677
+ * * Field Name: Score
49678
+ * * Display Name: Score
49679
+ * * SQL Data Type: decimal(5, 4)
49680
+ * * Description: Overall test score from 0.0000 to 1.0000 (0-100%). Calculated by test driver based on passed/failed checks and weights.
49681
+ */
49682
+ get Score() {
49683
+ return this.Get('Score');
49684
+ }
49685
+ set Score(value) {
49686
+ this.Set('Score', value);
49687
+ }
49688
+ /**
49689
+ * * Field Name: CostUSD
49690
+ * * Display Name: Cost USD
49691
+ * * SQL Data Type: decimal(10, 6)
49692
+ * * Description: Cost in USD for running this test (e.g., LLM token costs, compute resources)
49693
+ */
49694
+ get CostUSD() {
49695
+ return this.Get('CostUSD');
49696
+ }
49697
+ set CostUSD(value) {
49698
+ this.Set('CostUSD', value);
49699
+ }
49700
+ /**
49701
+ * * Field Name: ErrorMessage
49702
+ * * Display Name: Error Message
49703
+ * * SQL Data Type: nvarchar(MAX)
49704
+ * * Description: Error message if the test encountered an execution error
49705
+ */
49706
+ get ErrorMessage() {
49707
+ return this.Get('ErrorMessage');
49708
+ }
49709
+ set ErrorMessage(value) {
49710
+ this.Set('ErrorMessage', value);
49711
+ }
49712
+ /**
49713
+ * * Field Name: ResultDetails
49714
+ * * Display Name: Result Details
49715
+ * * SQL Data Type: nvarchar(MAX)
49716
+ * * Description: JSON object with detailed results including individual check results, metrics, oracle outputs, and diagnostic information
49717
+ */
49718
+ get ResultDetails() {
49719
+ return this.Get('ResultDetails');
49720
+ }
49721
+ set ResultDetails(value) {
49722
+ this.Set('ResultDetails', value);
49723
+ }
49724
+ /**
49725
+ * * Field Name: __mj_CreatedAt
49726
+ * * Display Name: Created At
49727
+ * * SQL Data Type: datetimeoffset
49728
+ * * Default Value: getutcdate()
49729
+ */
49730
+ get __mj_CreatedAt() {
49731
+ return this.Get('__mj_CreatedAt');
49732
+ }
49733
+ /**
49734
+ * * Field Name: __mj_UpdatedAt
49735
+ * * Display Name: Updated At
49736
+ * * SQL Data Type: datetimeoffset
49737
+ * * Default Value: getutcdate()
49738
+ */
49739
+ get __mj_UpdatedAt() {
49740
+ return this.Get('__mj_UpdatedAt');
49741
+ }
49742
+ /**
49743
+ * * Field Name: Test
49744
+ * * Display Name: Test
49745
+ * * SQL Data Type: nvarchar(255)
49746
+ */
49747
+ get Test() {
49748
+ return this.Get('Test');
49749
+ }
49750
+ /**
49751
+ * * Field Name: RunByUser
49752
+ * * Display Name: Run By User
49753
+ * * SQL Data Type: nvarchar(100)
49754
+ */
49755
+ get RunByUser() {
49756
+ return this.Get('RunByUser');
49757
+ }
49758
+ };
49759
+ exports.TestRunEntity = TestRunEntity;
49760
+ exports.TestRunEntity = TestRunEntity = __decorate([
49761
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Test Runs')
49762
+ ], TestRunEntity);
49763
+ /**
49764
+ * MJ: Test Suite Runs - strongly typed entity sub-class
49765
+ * * Schema: __mj
49766
+ * * Base Table: TestSuiteRun
49767
+ * * Base View: vwTestSuiteRuns
49768
+ * * @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.
49769
+ * * Primary Key: ID
49770
+ * @extends {BaseEntity}
49771
+ * @class
49772
+ * @public
49773
+ */
49774
+ let TestSuiteRunEntity = class TestSuiteRunEntity extends core_1.BaseEntity {
49775
+ /**
49776
+ * Loads the MJ: Test Suite Runs record from the database
49777
+ * @param ID: string - primary key value to load the MJ: Test Suite Runs record.
49778
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
49779
+ * @returns {Promise<boolean>} - true if successful, false otherwise
49780
+ * @public
49781
+ * @async
49782
+ * @memberof TestSuiteRunEntity
49783
+ * @method
49784
+ * @override
49785
+ */
49786
+ async Load(ID, EntityRelationshipsToLoad) {
49787
+ const compositeKey = new core_1.CompositeKey();
49788
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
49789
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
49790
+ }
49791
+ /**
49792
+ * * Field Name: ID
49793
+ * * Display Name: ID
49794
+ * * SQL Data Type: uniqueidentifier
49795
+ * * Default Value: newsequentialid()
49796
+ */
49797
+ get ID() {
49798
+ return this.Get('ID');
49799
+ }
49800
+ set ID(value) {
49801
+ this.Set('ID', value);
49802
+ }
49803
+ /**
49804
+ * * Field Name: SuiteID
49805
+ * * Display Name: Suite ID
49806
+ * * SQL Data Type: uniqueidentifier
49807
+ * * Related Entity/Foreign Key: MJ: Test Suites (vwTestSuites.ID)
49808
+ * * Description: Foreign Key - The test suite that was executed
49809
+ */
49810
+ get SuiteID() {
49811
+ return this.Get('SuiteID');
49812
+ }
49813
+ set SuiteID(value) {
49814
+ this.Set('SuiteID', value);
49815
+ }
49816
+ /**
49817
+ * * Field Name: RunByUserID
49818
+ * * Display Name: Run By User ID
49819
+ * * SQL Data Type: uniqueidentifier
49820
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
49821
+ * * Description: Foreign Key - The user who triggered the suite run (could be system user for automated runs)
49822
+ */
49823
+ get RunByUserID() {
49824
+ return this.Get('RunByUserID');
49825
+ }
49826
+ set RunByUserID(value) {
49827
+ this.Set('RunByUserID', value);
49828
+ }
49829
+ /**
49830
+ * * Field Name: Environment
49831
+ * * Display Name: Environment
49832
+ * * SQL Data Type: nvarchar(50)
49833
+ * * Description: Environment where tests were executed (e.g., "dev", "staging", "prod", "ci")
49834
+ */
49835
+ get Environment() {
49836
+ return this.Get('Environment');
49837
+ }
49838
+ set Environment(value) {
49839
+ this.Set('Environment', value);
49840
+ }
49841
+ /**
49842
+ * * Field Name: TriggerType
49843
+ * * Display Name: Trigger Type
49844
+ * * SQL Data Type: nvarchar(50)
49845
+ * * Description: How the run was triggered (e.g., "manual", "ci", "scheduled", "shadow", "release")
49846
+ */
49847
+ get TriggerType() {
49848
+ return this.Get('TriggerType');
49849
+ }
49850
+ set TriggerType(value) {
49851
+ this.Set('TriggerType', value);
49852
+ }
49853
+ /**
49854
+ * * Field Name: GitCommit
49855
+ * * Display Name: Git Commit
49856
+ * * SQL Data Type: nvarchar(100)
49857
+ * * Description: Git commit SHA of the code version being tested. Enables correlation between test results and code changes.
49858
+ */
49859
+ get GitCommit() {
49860
+ return this.Get('GitCommit');
49861
+ }
49862
+ set GitCommit(value) {
49863
+ this.Set('GitCommit', value);
49864
+ }
49865
+ /**
49866
+ * * Field Name: AgentVersion
49867
+ * * Display Name: Agent Version
49868
+ * * SQL Data Type: nvarchar(100)
49869
+ * * 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.
49870
+ */
49871
+ get AgentVersion() {
49872
+ return this.Get('AgentVersion');
49873
+ }
49874
+ set AgentVersion(value) {
49875
+ this.Set('AgentVersion', value);
49876
+ }
49877
+ /**
49878
+ * * Field Name: Status
49879
+ * * Display Name: Status
49880
+ * * SQL Data Type: nvarchar(20)
49881
+ * * Default Value: Pending
49882
+ * * Value List Type: List
49883
+ * * Possible Values
49884
+ * * Cancelled
49885
+ * * Completed
49886
+ * * Failed
49887
+ * * Pending
49888
+ * * Running
49889
+ * * Description: Current status of the suite run: Pending (queued), Running (in progress), Completed (finished successfully), Failed (suite-level failure), Cancelled (stopped by user)
49890
+ */
49891
+ get Status() {
49892
+ return this.Get('Status');
49893
+ }
49894
+ set Status(value) {
49895
+ this.Set('Status', value);
49896
+ }
49897
+ /**
49898
+ * * Field Name: StartedAt
49899
+ * * Display Name: Started At
49900
+ * * SQL Data Type: datetime
49901
+ * * Description: Timestamp when the suite run started execution
49902
+ */
49903
+ get StartedAt() {
49904
+ return this.Get('StartedAt');
49905
+ }
49906
+ set StartedAt(value) {
49907
+ this.Set('StartedAt', value);
49908
+ }
49909
+ /**
49910
+ * * Field Name: CompletedAt
49911
+ * * Display Name: Completed At
49912
+ * * SQL Data Type: datetime
49913
+ * * Description: Timestamp when the suite run completed (successfully or with failures)
49914
+ */
49915
+ get CompletedAt() {
49916
+ return this.Get('CompletedAt');
49917
+ }
49918
+ set CompletedAt(value) {
49919
+ this.Set('CompletedAt', value);
49920
+ }
49921
+ /**
49922
+ * * Field Name: TotalTests
49923
+ * * Display Name: Total Tests
49924
+ * * SQL Data Type: int
49925
+ * * Description: Total number of tests executed in this suite run
49926
+ */
49927
+ get TotalTests() {
49928
+ return this.Get('TotalTests');
49929
+ }
49930
+ set TotalTests(value) {
49931
+ this.Set('TotalTests', value);
49932
+ }
49933
+ /**
49934
+ * * Field Name: PassedTests
49935
+ * * Display Name: Passed Tests
49936
+ * * SQL Data Type: int
49937
+ * * Description: Number of tests that passed all checks
49938
+ */
49939
+ get PassedTests() {
49940
+ return this.Get('PassedTests');
49941
+ }
49942
+ set PassedTests(value) {
49943
+ this.Set('PassedTests', value);
49944
+ }
49945
+ /**
49946
+ * * Field Name: FailedTests
49947
+ * * Display Name: Failed Tests
49948
+ * * SQL Data Type: int
49949
+ * * Description: Number of tests that failed at least one check
49950
+ */
49951
+ get FailedTests() {
49952
+ return this.Get('FailedTests');
49953
+ }
49954
+ set FailedTests(value) {
49955
+ this.Set('FailedTests', value);
49956
+ }
49957
+ /**
49958
+ * * Field Name: SkippedTests
49959
+ * * Display Name: Skipped Tests
49960
+ * * SQL Data Type: int
49961
+ * * Description: Number of tests that were skipped (not executed)
49962
+ */
49963
+ get SkippedTests() {
49964
+ return this.Get('SkippedTests');
49965
+ }
49966
+ set SkippedTests(value) {
49967
+ this.Set('SkippedTests', value);
49968
+ }
49969
+ /**
49970
+ * * Field Name: ErrorTests
49971
+ * * Display Name: Error Tests
49972
+ * * SQL Data Type: int
49973
+ * * Description: Number of tests that encountered execution errors (different from failing validation)
49974
+ */
49975
+ get ErrorTests() {
49976
+ return this.Get('ErrorTests');
49977
+ }
49978
+ set ErrorTests(value) {
49979
+ this.Set('ErrorTests', value);
49980
+ }
49981
+ /**
49982
+ * * Field Name: TotalDurationSeconds
49983
+ * * Display Name: Total Duration Seconds
49984
+ * * SQL Data Type: decimal(10, 3)
49985
+ * * Description: Total execution time in seconds for the entire suite
49986
+ */
49987
+ get TotalDurationSeconds() {
49988
+ return this.Get('TotalDurationSeconds');
49989
+ }
49990
+ set TotalDurationSeconds(value) {
49991
+ this.Set('TotalDurationSeconds', value);
49992
+ }
49993
+ /**
49994
+ * * Field Name: TotalCostUSD
49995
+ * * Display Name: Total Cost USD
49996
+ * * SQL Data Type: decimal(10, 6)
49997
+ * * Description: Total cost in USD for running the entire suite (sum of all test costs)
49998
+ */
49999
+ get TotalCostUSD() {
50000
+ return this.Get('TotalCostUSD');
50001
+ }
50002
+ set TotalCostUSD(value) {
50003
+ this.Set('TotalCostUSD', value);
50004
+ }
50005
+ /**
50006
+ * * Field Name: Configuration
50007
+ * * Display Name: Configuration
50008
+ * * SQL Data Type: nvarchar(MAX)
50009
+ * * Description: JSON snapshot of the runtime configuration used for this suite run
50010
+ */
50011
+ get Configuration() {
50012
+ return this.Get('Configuration');
50013
+ }
50014
+ set Configuration(value) {
50015
+ this.Set('Configuration', value);
50016
+ }
50017
+ /**
50018
+ * * Field Name: ResultSummary
50019
+ * * Display Name: Result Summary
50020
+ * * SQL Data Type: nvarchar(MAX)
50021
+ * * Description: JSON object with aggregated results and statistics from the suite run
50022
+ */
50023
+ get ResultSummary() {
50024
+ return this.Get('ResultSummary');
50025
+ }
50026
+ set ResultSummary(value) {
50027
+ this.Set('ResultSummary', value);
50028
+ }
50029
+ /**
50030
+ * * Field Name: ErrorMessage
50031
+ * * Display Name: Error Message
50032
+ * * SQL Data Type: nvarchar(MAX)
50033
+ * * Description: Error message if the suite-level execution failed (before individual tests could run)
50034
+ */
50035
+ get ErrorMessage() {
50036
+ return this.Get('ErrorMessage');
50037
+ }
50038
+ set ErrorMessage(value) {
50039
+ this.Set('ErrorMessage', value);
50040
+ }
50041
+ /**
50042
+ * * Field Name: __mj_CreatedAt
50043
+ * * Display Name: Created At
50044
+ * * SQL Data Type: datetimeoffset
50045
+ * * Default Value: getutcdate()
50046
+ */
50047
+ get __mj_CreatedAt() {
50048
+ return this.Get('__mj_CreatedAt');
50049
+ }
50050
+ /**
50051
+ * * Field Name: __mj_UpdatedAt
50052
+ * * Display Name: Updated At
50053
+ * * SQL Data Type: datetimeoffset
50054
+ * * Default Value: getutcdate()
50055
+ */
50056
+ get __mj_UpdatedAt() {
50057
+ return this.Get('__mj_UpdatedAt');
50058
+ }
50059
+ /**
50060
+ * * Field Name: Suite
50061
+ * * Display Name: Suite
50062
+ * * SQL Data Type: nvarchar(255)
50063
+ */
50064
+ get Suite() {
50065
+ return this.Get('Suite');
50066
+ }
50067
+ /**
50068
+ * * Field Name: RunByUser
50069
+ * * Display Name: Run By User
50070
+ * * SQL Data Type: nvarchar(100)
50071
+ */
50072
+ get RunByUser() {
50073
+ return this.Get('RunByUser');
50074
+ }
50075
+ };
50076
+ exports.TestSuiteRunEntity = TestSuiteRunEntity;
50077
+ exports.TestSuiteRunEntity = TestSuiteRunEntity = __decorate([
50078
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Test Suite Runs')
50079
+ ], TestSuiteRunEntity);
50080
+ /**
50081
+ * MJ: Test Suite Tests - strongly typed entity sub-class
50082
+ * * Schema: __mj
50083
+ * * Base Table: TestSuiteTest
50084
+ * * Base View: vwTestSuiteTests
50085
+ * * @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.
50086
+ * * Primary Key: ID
50087
+ * @extends {BaseEntity}
50088
+ * @class
50089
+ * @public
50090
+ */
50091
+ let TestSuiteTestEntity = class TestSuiteTestEntity extends core_1.BaseEntity {
50092
+ /**
50093
+ * Loads the MJ: Test Suite Tests record from the database
50094
+ * @param ID: string - primary key value to load the MJ: Test Suite Tests record.
50095
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
50096
+ * @returns {Promise<boolean>} - true if successful, false otherwise
50097
+ * @public
50098
+ * @async
50099
+ * @memberof TestSuiteTestEntity
50100
+ * @method
50101
+ * @override
50102
+ */
50103
+ async Load(ID, EntityRelationshipsToLoad) {
50104
+ const compositeKey = new core_1.CompositeKey();
50105
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
50106
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
50107
+ }
50108
+ /**
50109
+ * * Field Name: ID
50110
+ * * Display Name: ID
50111
+ * * SQL Data Type: uniqueidentifier
50112
+ * * Default Value: newsequentialid()
50113
+ */
50114
+ get ID() {
50115
+ return this.Get('ID');
50116
+ }
50117
+ set ID(value) {
50118
+ this.Set('ID', value);
50119
+ }
50120
+ /**
50121
+ * * Field Name: SuiteID
50122
+ * * Display Name: Suite ID
50123
+ * * SQL Data Type: uniqueidentifier
50124
+ * * Related Entity/Foreign Key: MJ: Test Suites (vwTestSuites.ID)
50125
+ * * Description: Foreign Key - The test suite this relationship belongs to
50126
+ */
50127
+ get SuiteID() {
50128
+ return this.Get('SuiteID');
50129
+ }
50130
+ set SuiteID(value) {
50131
+ this.Set('SuiteID', value);
50132
+ }
50133
+ /**
50134
+ * * Field Name: TestID
50135
+ * * Display Name: Test ID
50136
+ * * SQL Data Type: uniqueidentifier
50137
+ * * Related Entity/Foreign Key: MJ: Tests (vwTests.ID)
50138
+ * * Description: Foreign Key - The test included in this suite
50139
+ */
50140
+ get TestID() {
50141
+ return this.Get('TestID');
50142
+ }
50143
+ set TestID(value) {
50144
+ this.Set('TestID', value);
50145
+ }
50146
+ /**
50147
+ * * Field Name: Sequence
50148
+ * * Display Name: Sequence
50149
+ * * SQL Data Type: int
50150
+ * * Default Value: 0
50151
+ * * Description: Execution sequence within the suite. Lower numbers run first. Tests with same sequence may run in parallel.
50152
+ */
50153
+ get Sequence() {
50154
+ return this.Get('Sequence');
50155
+ }
50156
+ set Sequence(value) {
50157
+ this.Set('Sequence', value);
50158
+ }
50159
+ /**
50160
+ * * Field Name: Status
50161
+ * * Display Name: Status
50162
+ * * SQL Data Type: nvarchar(20)
50163
+ * * Default Value: Active
50164
+ * * Value List Type: List
50165
+ * * Possible Values
50166
+ * * Active
50167
+ * * Disabled
50168
+ * * Skip
50169
+ * * Description: Status of this test within this suite: Active (will run), Disabled (temporarily excluded), Skip (documented exclusion)
50170
+ */
50171
+ get Status() {
50172
+ return this.Get('Status');
50173
+ }
50174
+ set Status(value) {
50175
+ this.Set('Status', value);
50176
+ }
50177
+ /**
50178
+ * * Field Name: Configuration
50179
+ * * Display Name: Configuration
50180
+ * * SQL Data Type: nvarchar(MAX)
50181
+ * * Description: JSON object to override test configuration for this specific suite. Allows same test to run with different parameters in different suites.
50182
+ */
50183
+ get Configuration() {
50184
+ return this.Get('Configuration');
50185
+ }
50186
+ set Configuration(value) {
50187
+ this.Set('Configuration', value);
50188
+ }
50189
+ /**
50190
+ * * Field Name: __mj_CreatedAt
50191
+ * * Display Name: Created At
50192
+ * * SQL Data Type: datetimeoffset
50193
+ * * Default Value: getutcdate()
50194
+ */
50195
+ get __mj_CreatedAt() {
50196
+ return this.Get('__mj_CreatedAt');
50197
+ }
50198
+ /**
50199
+ * * Field Name: __mj_UpdatedAt
50200
+ * * Display Name: Updated At
50201
+ * * SQL Data Type: datetimeoffset
50202
+ * * Default Value: getutcdate()
50203
+ */
50204
+ get __mj_UpdatedAt() {
50205
+ return this.Get('__mj_UpdatedAt');
50206
+ }
50207
+ /**
50208
+ * * Field Name: Suite
50209
+ * * Display Name: Suite
50210
+ * * SQL Data Type: nvarchar(255)
50211
+ */
50212
+ get Suite() {
50213
+ return this.Get('Suite');
50214
+ }
50215
+ /**
50216
+ * * Field Name: Test
50217
+ * * Display Name: Test
50218
+ * * SQL Data Type: nvarchar(255)
50219
+ */
50220
+ get Test() {
50221
+ return this.Get('Test');
50222
+ }
50223
+ };
50224
+ exports.TestSuiteTestEntity = TestSuiteTestEntity;
50225
+ exports.TestSuiteTestEntity = TestSuiteTestEntity = __decorate([
50226
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Test Suite Tests')
50227
+ ], TestSuiteTestEntity);
50228
+ /**
50229
+ * MJ: Test Suites - strongly typed entity sub-class
50230
+ * * Schema: __mj
50231
+ * * Base Table: TestSuite
50232
+ * * Base View: vwTestSuites
50233
+ * * @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.
50234
+ * * Primary Key: ID
50235
+ * @extends {BaseEntity}
50236
+ * @class
50237
+ * @public
50238
+ */
50239
+ let TestSuiteEntity = class TestSuiteEntity extends core_1.BaseEntity {
50240
+ /**
50241
+ * Loads the MJ: Test Suites record from the database
50242
+ * @param ID: string - primary key value to load the MJ: Test Suites record.
50243
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
50244
+ * @returns {Promise<boolean>} - true if successful, false otherwise
50245
+ * @public
50246
+ * @async
50247
+ * @memberof TestSuiteEntity
50248
+ * @method
50249
+ * @override
50250
+ */
50251
+ async Load(ID, EntityRelationshipsToLoad) {
50252
+ const compositeKey = new core_1.CompositeKey();
50253
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
50254
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
50255
+ }
50256
+ /**
50257
+ * * Field Name: ID
50258
+ * * Display Name: ID
50259
+ * * SQL Data Type: uniqueidentifier
50260
+ * * Default Value: newsequentialid()
50261
+ */
50262
+ get ID() {
50263
+ return this.Get('ID');
50264
+ }
50265
+ set ID(value) {
50266
+ this.Set('ID', value);
50267
+ }
50268
+ /**
50269
+ * * Field Name: ParentID
50270
+ * * Display Name: Parent ID
50271
+ * * SQL Data Type: uniqueidentifier
50272
+ * * Related Entity/Foreign Key: MJ: Test Suites (vwTestSuites.ID)
50273
+ * * Description: Optional parent suite ID for hierarchical organization. NULL for root-level suites.
50274
+ */
50275
+ get ParentID() {
50276
+ return this.Get('ParentID');
50277
+ }
50278
+ set ParentID(value) {
50279
+ this.Set('ParentID', value);
50280
+ }
50281
+ /**
50282
+ * * Field Name: Name
50283
+ * * Display Name: Name
50284
+ * * SQL Data Type: nvarchar(255)
50285
+ * * Description: Name of the test suite (e.g., "Skip Component Generation Suite", "Agent Memory Tests")
50286
+ */
50287
+ get Name() {
50288
+ return this.Get('Name');
50289
+ }
50290
+ set Name(value) {
50291
+ this.Set('Name', value);
50292
+ }
50293
+ /**
50294
+ * * Field Name: Description
50295
+ * * Display Name: Description
50296
+ * * SQL Data Type: nvarchar(MAX)
50297
+ * * Description: Detailed description of what this suite tests and its purpose
50298
+ */
50299
+ get Description() {
50300
+ return this.Get('Description');
50301
+ }
50302
+ set Description(value) {
50303
+ this.Set('Description', value);
50304
+ }
50305
+ /**
50306
+ * * Field Name: Status
50307
+ * * Display Name: Status
50308
+ * * SQL Data Type: nvarchar(20)
50309
+ * * Default Value: Active
50310
+ * * Value List Type: List
50311
+ * * Possible Values
50312
+ * * Active
50313
+ * * Disabled
50314
+ * * Pending
50315
+ * * Description: Status of the suite: Pending (being configured), Active (available for use), Disabled (archived/not in use)
50316
+ */
50317
+ get Status() {
50318
+ return this.Get('Status');
50319
+ }
50320
+ set Status(value) {
50321
+ this.Set('Status', value);
50322
+ }
50323
+ /**
50324
+ * * Field Name: Tags
50325
+ * * Display Name: Tags
50326
+ * * SQL Data Type: nvarchar(MAX)
50327
+ * * Description: JSON array of tags for categorization and filtering (e.g., ["smoke", "regression", "nightly"])
50328
+ */
50329
+ get Tags() {
50330
+ return this.Get('Tags');
50331
+ }
50332
+ set Tags(value) {
50333
+ this.Set('Tags', value);
50334
+ }
50335
+ /**
50336
+ * * Field Name: Configuration
50337
+ * * Display Name: Configuration
50338
+ * * SQL Data Type: nvarchar(MAX)
50339
+ * * Description: JSON configuration object for suite-level settings (e.g., environment defaults, retry policies, notification settings)
50340
+ */
50341
+ get Configuration() {
50342
+ return this.Get('Configuration');
50343
+ }
50344
+ set Configuration(value) {
50345
+ this.Set('Configuration', value);
50346
+ }
50347
+ /**
50348
+ * * Field Name: __mj_CreatedAt
50349
+ * * Display Name: Created At
50350
+ * * SQL Data Type: datetimeoffset
50351
+ * * Default Value: getutcdate()
50352
+ */
50353
+ get __mj_CreatedAt() {
50354
+ return this.Get('__mj_CreatedAt');
50355
+ }
50356
+ /**
50357
+ * * Field Name: __mj_UpdatedAt
50358
+ * * Display Name: Updated At
50359
+ * * SQL Data Type: datetimeoffset
50360
+ * * Default Value: getutcdate()
50361
+ */
50362
+ get __mj_UpdatedAt() {
50363
+ return this.Get('__mj_UpdatedAt');
50364
+ }
50365
+ /**
50366
+ * * Field Name: Parent
50367
+ * * Display Name: Parent
50368
+ * * SQL Data Type: nvarchar(255)
50369
+ */
50370
+ get Parent() {
50371
+ return this.Get('Parent');
50372
+ }
50373
+ /**
50374
+ * * Field Name: RootParentID
50375
+ * * Display Name: Root Parent ID
50376
+ * * SQL Data Type: uniqueidentifier
50377
+ */
50378
+ get RootParentID() {
50379
+ return this.Get('RootParentID');
50380
+ }
50381
+ };
50382
+ exports.TestSuiteEntity = TestSuiteEntity;
50383
+ exports.TestSuiteEntity = TestSuiteEntity = __decorate([
50384
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Test Suites')
50385
+ ], TestSuiteEntity);
50386
+ /**
50387
+ * MJ: Test Types - strongly typed entity sub-class
50388
+ * * Schema: __mj
50389
+ * * Base Table: TestType
50390
+ * * Base View: vwTestTypes
50391
+ * * @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).
50392
+ * * Primary Key: ID
50393
+ * @extends {BaseEntity}
50394
+ * @class
50395
+ * @public
50396
+ */
50397
+ let TestTypeEntity = class TestTypeEntity extends core_1.BaseEntity {
50398
+ /**
50399
+ * Loads the MJ: Test Types record from the database
50400
+ * @param ID: string - primary key value to load the MJ: Test Types record.
50401
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
50402
+ * @returns {Promise<boolean>} - true if successful, false otherwise
50403
+ * @public
50404
+ * @async
50405
+ * @memberof TestTypeEntity
50406
+ * @method
50407
+ * @override
50408
+ */
50409
+ async Load(ID, EntityRelationshipsToLoad) {
50410
+ const compositeKey = new core_1.CompositeKey();
50411
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
50412
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
50413
+ }
50414
+ /**
50415
+ * * Field Name: ID
50416
+ * * Display Name: ID
50417
+ * * SQL Data Type: uniqueidentifier
50418
+ * * Default Value: newsequentialid()
50419
+ */
50420
+ get ID() {
50421
+ return this.Get('ID');
50422
+ }
50423
+ set ID(value) {
50424
+ this.Set('ID', value);
50425
+ }
50426
+ /**
50427
+ * * Field Name: Name
50428
+ * * Display Name: Name
50429
+ * * SQL Data Type: nvarchar(100)
50430
+ * * Description: Unique name for the test type (e.g., "Agent Eval", "Workflow Test", "Code Generation Test")
47201
50431
  */
47202
50432
  get Name() {
47203
50433
  return this.Get('Name');
@@ -47209,7 +50439,7 @@ let TaskTypeEntity = class TaskTypeEntity extends core_1.BaseEntity {
47209
50439
  * * Field Name: Description
47210
50440
  * * Display Name: Description
47211
50441
  * * SQL Data Type: nvarchar(MAX)
47212
- * * Description: Detailed description of what this task type represents and when it should be used
50442
+ * * Description: Detailed description of what this test type validates and how it works
47213
50443
  */
47214
50444
  get Description() {
47215
50445
  return this.Get('Description');
@@ -47218,6 +50448,36 @@ let TaskTypeEntity = class TaskTypeEntity extends core_1.BaseEntity {
47218
50448
  this.Set('Description', value);
47219
50449
  }
47220
50450
  /**
50451
+ * * Field Name: DriverClass
50452
+ * * Display Name: Driver Class
50453
+ * * SQL Data Type: nvarchar(255)
50454
+ * * Description: Class name for the driver implementation (e.g., "AgentEvalDriver"). Used with ClassFactory to instantiate the appropriate BaseTestDriver subclass.
50455
+ */
50456
+ get DriverClass() {
50457
+ return this.Get('DriverClass');
50458
+ }
50459
+ set DriverClass(value) {
50460
+ this.Set('DriverClass', value);
50461
+ }
50462
+ /**
50463
+ * * Field Name: Status
50464
+ * * Display Name: Status
50465
+ * * SQL Data Type: nvarchar(20)
50466
+ * * Default Value: Active
50467
+ * * Value List Type: List
50468
+ * * Possible Values
50469
+ * * Active
50470
+ * * Disabled
50471
+ * * Pending
50472
+ * * Description: Status of the test type: Pending (under development), Active (available for use), Disabled (no longer available)
50473
+ */
50474
+ get Status() {
50475
+ return this.Get('Status');
50476
+ }
50477
+ set Status(value) {
50478
+ this.Set('Status', value);
50479
+ }
50480
+ /**
47221
50481
  * * Field Name: __mj_CreatedAt
47222
50482
  * * Display Name: Created At
47223
50483
  * * SQL Data Type: datetimeoffset
@@ -47236,30 +50496,30 @@ let TaskTypeEntity = class TaskTypeEntity extends core_1.BaseEntity {
47236
50496
  return this.Get('__mj_UpdatedAt');
47237
50497
  }
47238
50498
  };
47239
- exports.TaskTypeEntity = TaskTypeEntity;
47240
- exports.TaskTypeEntity = TaskTypeEntity = __decorate([
47241
- (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Task Types')
47242
- ], TaskTypeEntity);
50499
+ exports.TestTypeEntity = TestTypeEntity;
50500
+ exports.TestTypeEntity = TestTypeEntity = __decorate([
50501
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Test Types')
50502
+ ], TestTypeEntity);
47243
50503
  /**
47244
- * MJ: Tasks - strongly typed entity sub-class
50504
+ * MJ: Tests - strongly typed entity sub-class
47245
50505
  * * Schema: __mj
47246
- * * Base Table: Task
47247
- * * Base View: vwTasks
47248
- * * @description Core task management entity supporting multi-agent and multi-human collaboration with dependency tracking
50506
+ * * Base Table: Test
50507
+ * * Base View: vwTests
50508
+ * * @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.
47249
50509
  * * Primary Key: ID
47250
50510
  * @extends {BaseEntity}
47251
50511
  * @class
47252
50512
  * @public
47253
50513
  */
47254
- let TaskEntity = class TaskEntity extends core_1.BaseEntity {
50514
+ let TestEntity = class TestEntity extends core_1.BaseEntity {
47255
50515
  /**
47256
- * Loads the MJ: Tasks record from the database
47257
- * @param ID: string - primary key value to load the MJ: Tasks record.
50516
+ * Loads the MJ: Tests record from the database
50517
+ * @param ID: string - primary key value to load the MJ: Tests record.
47258
50518
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
47259
50519
  * @returns {Promise<boolean>} - true if successful, false otherwise
47260
50520
  * @public
47261
50521
  * @async
47262
- * @memberof TaskEntity
50522
+ * @memberof TestEntity
47263
50523
  * @method
47264
50524
  * @override
47265
50525
  */
@@ -47269,40 +50529,28 @@ let TaskEntity = class TaskEntity extends core_1.BaseEntity {
47269
50529
  return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
47270
50530
  }
47271
50531
  /**
47272
- * Validate() method override for MJ: Tasks entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
47273
- * * PercentComplete: This rule ensures that if a percent complete value is provided, it must be between 0 and 100 inclusive.
47274
- * * Table-Level: This rule ensures that for each record, either UserID or AgentID can be set, or both can be left empty, but not both can be filled in at the same time.
50532
+ * 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:
50533
+ * * RepeatCount: If a repeat count is entered, it must be a positive number greater than zero; otherwise it can be left empty.
47275
50534
  * @public
47276
50535
  * @method
47277
50536
  * @override
47278
50537
  */
47279
50538
  Validate() {
47280
50539
  const result = super.Validate();
47281
- this.ValidatePercentCompleteWithinZeroAndOneHundred(result);
47282
- this.ValidateUserIDAndAgentIDMutualExclusivity(result);
50540
+ this.ValidateRepeatCountPositive(result);
47283
50541
  result.Success = result.Success && (result.Errors.length === 0);
47284
50542
  return result;
47285
50543
  }
47286
50544
  /**
47287
- * This rule ensures that if a percent complete value is provided, it must be between 0 and 100 inclusive.
50545
+ * If a repeat count is entered, it must be a positive number greater than zero; otherwise it can be left empty.
47288
50546
  * @param result - the ValidationResult object to add any errors or warnings to
47289
50547
  * @public
47290
50548
  * @method
47291
50549
  */
47292
- ValidatePercentCompleteWithinZeroAndOneHundred(result) {
47293
- if (this.PercentComplete != null && (this.PercentComplete < 0 || this.PercentComplete > 100)) {
47294
- result.Errors.push(new core_1.ValidationErrorInfo("PercentComplete", "PercentComplete must be between 0 and 100 if specified.", this.PercentComplete, core_1.ValidationErrorType.Failure));
47295
- }
47296
- }
47297
- /**
47298
- * This rule ensures that for each record, either UserID or AgentID can be set, or both can be left empty, but not both can be filled in at the same time.
47299
- * @param result - the ValidationResult object to add any errors or warnings to
47300
- * @public
47301
- * @method
47302
- */
47303
- ValidateUserIDAndAgentIDMutualExclusivity(result) {
47304
- if (this.UserID != null && this.AgentID != null) {
47305
- result.Errors.push(new core_1.ValidationErrorInfo("UserID", "UserID and AgentID cannot both have values at the same time. Only one or neither may be set.", this.UserID, core_1.ValidationErrorType.Failure));
50550
+ ValidateRepeatCountPositive(result) {
50551
+ // If a repeat count is set, it must be greater than zero
50552
+ if (this.RepeatCount != null && this.RepeatCount <= 0) {
50553
+ result.Errors.push(new core_1.ValidationErrorInfo("RepeatCount", "Repeat count must be greater than zero if provided.", this.RepeatCount, core_1.ValidationErrorType.Failure));
47306
50554
  }
47307
50555
  }
47308
50556
  /**
@@ -47318,22 +50566,23 @@ let TaskEntity = class TaskEntity extends core_1.BaseEntity {
47318
50566
  this.Set('ID', value);
47319
50567
  }
47320
50568
  /**
47321
- * * Field Name: ParentID
47322
- * * Display Name: Parent ID
50569
+ * * Field Name: TypeID
50570
+ * * Display Name: Type ID
47323
50571
  * * SQL Data Type: uniqueidentifier
47324
- * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)
50572
+ * * Related Entity/Foreign Key: MJ: Test Types (vwTestTypes.ID)
50573
+ * * Description: Foreign Key - The type of test (e.g., Agent Eval, Workflow Test). Determines which driver class handles execution.
47325
50574
  */
47326
- get ParentID() {
47327
- return this.Get('ParentID');
50575
+ get TypeID() {
50576
+ return this.Get('TypeID');
47328
50577
  }
47329
- set ParentID(value) {
47330
- this.Set('ParentID', value);
50578
+ set TypeID(value) {
50579
+ this.Set('TypeID', value);
47331
50580
  }
47332
50581
  /**
47333
50582
  * * Field Name: Name
47334
50583
  * * Display Name: Name
47335
50584
  * * SQL Data Type: nvarchar(255)
47336
- * * Description: Display name for the task
50585
+ * * Description: Name of the test (e.g., "Pie Chart with Drilldown", "Memory Recall Accuracy")
47337
50586
  */
47338
50587
  get Name() {
47339
50588
  return this.Get('Name');
@@ -47345,7 +50594,7 @@ let TaskEntity = class TaskEntity extends core_1.BaseEntity {
47345
50594
  * * Field Name: Description
47346
50595
  * * Display Name: Description
47347
50596
  * * SQL Data Type: nvarchar(MAX)
47348
- * * Description: Detailed description of the task requirements and objectives
50597
+ * * Description: Detailed description of what this test validates and why it matters
47349
50598
  */
47350
50599
  get Description() {
47351
50600
  return this.Get('Description');
@@ -47354,148 +50603,107 @@ let TaskEntity = class TaskEntity extends core_1.BaseEntity {
47354
50603
  this.Set('Description', value);
47355
50604
  }
47356
50605
  /**
47357
- * * Field Name: TypeID
47358
- * * Display Name: Type ID
47359
- * * SQL Data Type: uniqueidentifier
47360
- * * Related Entity/Foreign Key: MJ: Task Types (vwTaskTypes.ID)
47361
- */
47362
- get TypeID() {
47363
- return this.Get('TypeID');
47364
- }
47365
- set TypeID(value) {
47366
- this.Set('TypeID', value);
47367
- }
47368
- /**
47369
- * * Field Name: EnvironmentID
47370
- * * Display Name: Environment ID
47371
- * * SQL Data Type: uniqueidentifier
47372
- * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
47373
- * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
47374
- */
47375
- get EnvironmentID() {
47376
- return this.Get('EnvironmentID');
47377
- }
47378
- set EnvironmentID(value) {
47379
- this.Set('EnvironmentID', value);
47380
- }
47381
- /**
47382
- * * Field Name: ProjectID
47383
- * * Display Name: Project ID
47384
- * * SQL Data Type: uniqueidentifier
47385
- * * Related Entity/Foreign Key: MJ: Projects (vwProjects.ID)
50606
+ * * Field Name: Status
50607
+ * * Display Name: Status
50608
+ * * SQL Data Type: nvarchar(20)
50609
+ * * Default Value: Active
50610
+ * * Value List Type: List
50611
+ * * Possible Values
50612
+ * * Active
50613
+ * * Disabled
50614
+ * * Pending
50615
+ * * Description: Status of the test: Pending (being configured), Active (ready to run), Disabled (archived/not in use)
47386
50616
  */
47387
- get ProjectID() {
47388
- return this.Get('ProjectID');
50617
+ get Status() {
50618
+ return this.Get('Status');
47389
50619
  }
47390
- set ProjectID(value) {
47391
- this.Set('ProjectID', value);
50620
+ set Status(value) {
50621
+ this.Set('Status', value);
47392
50622
  }
47393
50623
  /**
47394
- * * Field Name: ConversationDetailID
47395
- * * Display Name: Conversation Detail ID
47396
- * * SQL Data Type: uniqueidentifier
47397
- * * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
50624
+ * * Field Name: InputDefinition
50625
+ * * Display Name: Input Definition
50626
+ * * SQL Data Type: nvarchar(MAX)
50627
+ * * Description: JSON object defining the inputs/parameters for the test. Structure varies by test type (e.g., for Agent Eval: {prompt, context, conversationHistory})
47398
50628
  */
47399
- get ConversationDetailID() {
47400
- return this.Get('ConversationDetailID');
50629
+ get InputDefinition() {
50630
+ return this.Get('InputDefinition');
47401
50631
  }
47402
- set ConversationDetailID(value) {
47403
- this.Set('ConversationDetailID', value);
50632
+ set InputDefinition(value) {
50633
+ this.Set('InputDefinition', value);
47404
50634
  }
47405
50635
  /**
47406
- * * Field Name: UserID
47407
- * * Display Name: User ID
47408
- * * SQL Data Type: uniqueidentifier
47409
- * * Related Entity/Foreign Key: Users (vwUsers.ID)
50636
+ * * Field Name: ExpectedOutcomes
50637
+ * * Display Name: Expected Outcomes
50638
+ * * SQL Data Type: nvarchar(MAX)
50639
+ * * Description: JSON object defining what success looks like. Structure varies by test type (e.g., for Agent Eval: {toolCalls, outputFormat, semanticGoals, dataAssertions})
47410
50640
  */
47411
- get UserID() {
47412
- return this.Get('UserID');
50641
+ get ExpectedOutcomes() {
50642
+ return this.Get('ExpectedOutcomes');
47413
50643
  }
47414
- set UserID(value) {
47415
- this.Set('UserID', value);
50644
+ set ExpectedOutcomes(value) {
50645
+ this.Set('ExpectedOutcomes', value);
47416
50646
  }
47417
50647
  /**
47418
- * * Field Name: AgentID
47419
- * * Display Name: Agent ID
47420
- * * SQL Data Type: uniqueidentifier
47421
- * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
50648
+ * * Field Name: Configuration
50649
+ * * Display Name: Configuration
50650
+ * * SQL Data Type: nvarchar(MAX)
50651
+ * * Description: JSON object for test-specific configuration (e.g., oracles to use, rubrics, retry policies, timeout settings)
47422
50652
  */
47423
- get AgentID() {
47424
- return this.Get('AgentID');
50653
+ get Configuration() {
50654
+ return this.Get('Configuration');
47425
50655
  }
47426
- set AgentID(value) {
47427
- this.Set('AgentID', value);
50656
+ set Configuration(value) {
50657
+ this.Set('Configuration', value);
47428
50658
  }
47429
50659
  /**
47430
- * * Field Name: Status
47431
- * * Display Name: Status
47432
- * * SQL Data Type: nvarchar(50)
47433
- * * Default Value: Pending
47434
- * * Value List Type: List
47435
- * * Possible Values
47436
- * * Blocked
47437
- * * Cancelled
47438
- * * Complete
47439
- * * Deferred
47440
- * * Failed
47441
- * * In Progress
47442
- * * Pending
47443
- * * Description: Current status of the task (Pending, In Progress, Complete, Cancelled, Failed, Blocked, Deferred)
50660
+ * * Field Name: Tags
50661
+ * * Display Name: Tags
50662
+ * * SQL Data Type: nvarchar(MAX)
50663
+ * * Description: JSON array of tags for categorization and filtering (e.g., ["smoke", "agent-quality", "performance"])
47444
50664
  */
47445
- get Status() {
47446
- return this.Get('Status');
50665
+ get Tags() {
50666
+ return this.Get('Tags');
47447
50667
  }
47448
- set Status(value) {
47449
- this.Set('Status', value);
50668
+ set Tags(value) {
50669
+ this.Set('Tags', value);
47450
50670
  }
47451
50671
  /**
47452
- * * Field Name: PercentComplete
47453
- * * Display Name: Percent Complete
50672
+ * * Field Name: Priority
50673
+ * * Display Name: Priority
47454
50674
  * * SQL Data Type: int
47455
50675
  * * Default Value: 0
47456
- * * Description: Completion percentage for tracking progress (0-100)
47457
- */
47458
- get PercentComplete() {
47459
- return this.Get('PercentComplete');
47460
- }
47461
- set PercentComplete(value) {
47462
- this.Set('PercentComplete', value);
47463
- }
47464
- /**
47465
- * * Field Name: DueAt
47466
- * * Display Name: Due At
47467
- * * SQL Data Type: datetimeoffset
47468
- * * Description: Due date and time for task completion
50676
+ * * Description: Priority for execution ordering. Lower numbers run first. Useful for dependencies or critical path tests.
47469
50677
  */
47470
- get DueAt() {
47471
- return this.Get('DueAt');
50678
+ get Priority() {
50679
+ return this.Get('Priority');
47472
50680
  }
47473
- set DueAt(value) {
47474
- this.Set('DueAt', value);
50681
+ set Priority(value) {
50682
+ this.Set('Priority', value);
47475
50683
  }
47476
50684
  /**
47477
- * * Field Name: StartedAt
47478
- * * Display Name: Started At
47479
- * * SQL Data Type: datetimeoffset
47480
- * * Description: Timestamp when work on the task began
50685
+ * * Field Name: EstimatedDurationSeconds
50686
+ * * Display Name: Estimated Duration Seconds
50687
+ * * SQL Data Type: int
50688
+ * * Description: Estimated execution time in seconds. Used for scheduling and timeout calculations.
47481
50689
  */
47482
- get StartedAt() {
47483
- return this.Get('StartedAt');
50690
+ get EstimatedDurationSeconds() {
50691
+ return this.Get('EstimatedDurationSeconds');
47484
50692
  }
47485
- set StartedAt(value) {
47486
- this.Set('StartedAt', value);
50693
+ set EstimatedDurationSeconds(value) {
50694
+ this.Set('EstimatedDurationSeconds', value);
47487
50695
  }
47488
50696
  /**
47489
- * * Field Name: CompletedAt
47490
- * * Display Name: Completed At
47491
- * * SQL Data Type: datetimeoffset
47492
- * * Description: Timestamp when the task was completed
50697
+ * * Field Name: EstimatedCostUSD
50698
+ * * Display Name: Estimated Cost USD
50699
+ * * SQL Data Type: decimal(10, 6)
50700
+ * * Description: Estimated cost in USD for running this test (e.g., LLM token costs, compute resources). Used for budgeting and optimization.
47493
50701
  */
47494
- get CompletedAt() {
47495
- return this.Get('CompletedAt');
50702
+ get EstimatedCostUSD() {
50703
+ return this.Get('EstimatedCostUSD');
47496
50704
  }
47497
- set CompletedAt(value) {
47498
- this.Set('CompletedAt', value);
50705
+ set EstimatedCostUSD(value) {
50706
+ this.Set('EstimatedCostUSD', value);
47499
50707
  }
47500
50708
  /**
47501
50709
  * * Field Name: __mj_CreatedAt
@@ -47516,66 +50724,30 @@ let TaskEntity = class TaskEntity extends core_1.BaseEntity {
47516
50724
  return this.Get('__mj_UpdatedAt');
47517
50725
  }
47518
50726
  /**
47519
- * * Field Name: Parent
47520
- * * Display Name: Parent
47521
- * * SQL Data Type: nvarchar(255)
50727
+ * * Field Name: RepeatCount
50728
+ * * Display Name: Repeat Count
50729
+ * * SQL Data Type: int
50730
+ * * Description: Number of times to repeat this test execution. NULL or 1 = single execution. Values > 1 will create multiple test runs for statistical analysis.
47522
50731
  */
47523
- get Parent() {
47524
- return this.Get('Parent');
50732
+ get RepeatCount() {
50733
+ return this.Get('RepeatCount');
50734
+ }
50735
+ set RepeatCount(value) {
50736
+ this.Set('RepeatCount', value);
47525
50737
  }
47526
50738
  /**
47527
50739
  * * Field Name: Type
47528
50740
  * * Display Name: Type
47529
- * * SQL Data Type: nvarchar(255)
50741
+ * * SQL Data Type: nvarchar(100)
47530
50742
  */
47531
50743
  get Type() {
47532
50744
  return this.Get('Type');
47533
50745
  }
47534
- /**
47535
- * * Field Name: Environment
47536
- * * Display Name: Environment
47537
- * * SQL Data Type: nvarchar(255)
47538
- */
47539
- get Environment() {
47540
- return this.Get('Environment');
47541
- }
47542
- /**
47543
- * * Field Name: Project
47544
- * * Display Name: Project
47545
- * * SQL Data Type: nvarchar(255)
47546
- */
47547
- get Project() {
47548
- return this.Get('Project');
47549
- }
47550
- /**
47551
- * * Field Name: User
47552
- * * Display Name: User
47553
- * * SQL Data Type: nvarchar(100)
47554
- */
47555
- get User() {
47556
- return this.Get('User');
47557
- }
47558
- /**
47559
- * * Field Name: Agent
47560
- * * Display Name: Agent
47561
- * * SQL Data Type: nvarchar(255)
47562
- */
47563
- get Agent() {
47564
- return this.Get('Agent');
47565
- }
47566
- /**
47567
- * * Field Name: RootParentID
47568
- * * Display Name: Root Parent ID
47569
- * * SQL Data Type: uniqueidentifier
47570
- */
47571
- get RootParentID() {
47572
- return this.Get('RootParentID');
47573
- }
47574
50746
  };
47575
- exports.TaskEntity = TaskEntity;
47576
- exports.TaskEntity = TaskEntity = __decorate([
47577
- (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Tasks')
47578
- ], TaskEntity);
50747
+ exports.TestEntity = TestEntity;
50748
+ exports.TestEntity = TestEntity = __decorate([
50749
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Tests')
50750
+ ], TestEntity);
47579
50751
  /**
47580
50752
  * Output Delivery Types - strongly typed entity sub-class
47581
50753
  * * Schema: __mj
@@ -49555,6 +52727,14 @@ let RecommendationItemEntity = class RecommendationItemEntity extends core_1.Bas
49555
52727
  return this.Get('__mj_UpdatedAt');
49556
52728
  }
49557
52729
  /**
52730
+ * * Field Name: Recommendation
52731
+ * * Display Name: Recommendation
52732
+ * * SQL Data Type: nvarchar(MAX)
52733
+ */
52734
+ get Recommendation() {
52735
+ return this.Get('Recommendation');
52736
+ }
52737
+ /**
49558
52738
  * * Field Name: DestinationEntity
49559
52739
  * * Display Name: Destination Entity
49560
52740
  * * SQL Data Type: nvarchar(255)
@@ -49904,6 +53084,14 @@ let RecommendationEntity = class RecommendationEntity extends core_1.BaseEntity
49904
53084
  return this.Get('__mj_UpdatedAt');
49905
53085
  }
49906
53086
  /**
53087
+ * * Field Name: RecommendationRun
53088
+ * * Display Name: Recommendation Run
53089
+ * * SQL Data Type: nvarchar(255)
53090
+ */
53091
+ get RecommendationRun() {
53092
+ return this.Get('RecommendationRun');
53093
+ }
53094
+ /**
49907
53095
  * * Field Name: SourceEntity
49908
53096
  * * Display Name: Source Entity
49909
53097
  * * SQL Data Type: nvarchar(255)
@@ -50300,6 +53488,14 @@ let RecordChangeEntity = class RecordChangeEntity extends core_1.BaseEntity {
50300
53488
  return this.Get('User');
50301
53489
  }
50302
53490
  /**
53491
+ * * Field Name: ReplayRun
53492
+ * * Display Name: Replay Run
53493
+ * * SQL Data Type: nvarchar(100)
53494
+ */
53495
+ get ReplayRun() {
53496
+ return this.Get('ReplayRun');
53497
+ }
53498
+ /**
50303
53499
  * * Field Name: Integration
50304
53500
  * * Display Name: Integration
50305
53501
  * * SQL Data Type: nvarchar(100)
@@ -50423,6 +53619,14 @@ let RecordMergeDeletionLogEntity = class RecordMergeDeletionLogEntity extends co
50423
53619
  get __mj_UpdatedAt() {
50424
53620
  return this.Get('__mj_UpdatedAt');
50425
53621
  }
53622
+ /**
53623
+ * * Field Name: RecordMergeLog
53624
+ * * Display Name: Record Merge Log
53625
+ * * SQL Data Type: nvarchar(450)
53626
+ */
53627
+ get RecordMergeLog() {
53628
+ return this.Get('RecordMergeLog');
53629
+ }
50426
53630
  };
50427
53631
  exports.RecordMergeDeletionLogEntity = RecordMergeDeletionLogEntity;
50428
53632
  exports.RecordMergeDeletionLogEntity = RecordMergeDeletionLogEntity = __decorate([
@@ -51222,6 +54426,14 @@ let ReportEntity = class ReportEntity extends core_1.BaseEntity {
51222
54426
  return this.Get('Conversation');
51223
54427
  }
51224
54428
  /**
54429
+ * * Field Name: ConversationDetail
54430
+ * * Display Name: Conversation Detail
54431
+ * * SQL Data Type: nvarchar(MAX)
54432
+ */
54433
+ get ConversationDetail() {
54434
+ return this.Get('ConversationDetail');
54435
+ }
54436
+ /**
51225
54437
  * * Field Name: DataContext
51226
54438
  * * Display Name: Data Context
51227
54439
  * * SQL Data Type: nvarchar(255)
@@ -53522,6 +56734,14 @@ let TemplateParamEntity = class TemplateParamEntity extends core_1.BaseEntity {
53522
56734
  get Entity() {
53523
56735
  return this.Get('Entity');
53524
56736
  }
56737
+ /**
56738
+ * * Field Name: TemplateContent
56739
+ * * Display Name: Template Content
56740
+ * * SQL Data Type: nvarchar(255)
56741
+ */
56742
+ get TemplateContent() {
56743
+ return this.Get('TemplateContent');
56744
+ }
53525
56745
  };
53526
56746
  exports.TemplateParamEntity = TemplateParamEntity;
53527
56747
  exports.TemplateParamEntity = TemplateParamEntity = __decorate([