@memberjunction/core-entities 2.84.0 → 2.86.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,12 +8,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.ContentSourceParamSchema = exports.ContentProcessRunSchema = exports.ContentItemSchema = exports.ContentItemTagSchema = exports.ContentItemAttributeSchema = exports.ContentFileTypeSchema = exports.CompanyIntegrationSchema = exports.CompanyIntegrationRunSchema = exports.CompanyIntegrationRunDetailSchema = exports.CompanyIntegrationRunAPILogSchema = exports.CompanyIntegrationRecordMapSchema = exports.CompanySchema = exports.CommunicationRunSchema = exports.CommunicationProviderSchema = exports.CommunicationProviderMessageTypeSchema = exports.CommunicationLogSchema = exports.CommunicationBaseMessageTypeSchema = exports.AuthorizationSchema = exports.AuthorizationRoleSchema = exports.AuditLogSchema = exports.AuditLogTypeSchema = exports.ApplicationSchema = exports.ApplicationSettingSchema = exports.ApplicationEntitySchema = exports.AIResultCacheSchema = exports.AIPromptSchema = exports.AIPromptTypeSchema = exports.AIPromptCategorySchema = exports.AIModelSchema = exports.AIModelTypeSchema = exports.AIModelActionSchema = exports.AIAgentSchema = exports.AIAgentRequestSchema = exports.AIAgentNoteSchema = exports.AIAgentNoteTypeSchema = exports.AIAgentModelSchema = exports.AIAgentLearningCycleSchema = exports.AIAgentActionSchema = exports.AIActionSchema = exports.ActionSchema = exports.ActionResultCodeSchema = exports.ActionParamSchema = exports.ActionLibrarySchema = exports.ActionFilterSchema = exports.ActionExecutionLogSchema = exports.ActionContextSchema = exports.ActionContextTypeSchema = exports.ActionCategorySchema = exports.ActionAuthorizationSchema = exports.loadModule = void 0;
10
10
  exports.IntegrationSchema = exports.IntegrationURLFormatSchema = exports.GeneratedCodeSchema = exports.GeneratedCodeCategorySchema = exports.FileSchema = exports.FileStorageProviderSchema = exports.FileEntityRecordLinkSchema = exports.FileCategorySchema = exports.ExplorerNavigationItemSchema = exports.ErrorLogSchema = exports.EntitySettingSchema = exports.EntityRelationshipSchema = exports.EntityRelationshipDisplayComponentSchema = exports.EntityRecordDocumentSchema = exports.EntityPermissionSchema = exports.EntityFieldSchema = exports.EntityFieldValueSchema = exports.EntityDocumentSchema = exports.EntityDocumentTypeSchema = exports.EntityDocumentSettingSchema = exports.EntityDocumentRunSchema = exports.EntityCommunicationMessageTypeSchema = exports.EntityCommunicationFieldSchema = exports.EntityAIActionSchema = exports.EntityActionSchema = exports.EntityActionParamSchema = exports.EntityActionInvocationSchema = exports.EntityActionInvocationTypeSchema = exports.EntityActionFilterSchema = exports.EntitySchema = exports.EmployeeSchema = exports.EmployeeSkillSchema = exports.EmployeeRoleSchema = exports.EmployeeCompanyIntegrationSchema = exports.DuplicateRunSchema = exports.DuplicateRunDetailSchema = exports.DuplicateRunDetailMatchSchema = exports.DatasetSchema = exports.DatasetItemSchema = exports.DataContextSchema = exports.DataContextItemSchema = exports.DashboardSchema = exports.DashboardCategorySchema = exports.ConversationSchema = exports.ConversationDetailSchema = exports.ContentTypeSchema = exports.ContentTypeAttributeSchema = exports.ContentSourceSchema = exports.ContentSourceTypeSchema = exports.ContentSourceTypeParamSchema = void 0;
11
- exports.RecordMergeLogSchema = exports.RecordMergeDeletionLogSchema = exports.RecordChangeSchema = exports.RecordChangeReplayRunSchema = exports.RecommendationSchema = exports.RecommendationRunSchema = exports.RecommendationProviderSchema = exports.RecommendationItemSchema = exports.QueueSchema = exports.QueueTypeSchema = exports.QueueTaskSchema = exports.QueryPermissionSchema = exports.QueryFieldSchema = exports.QueryEntitySchema = exports.QueryCategorySchema = exports.QuerySchema = exports.OutputTriggerTypeSchema = exports.OutputFormatTypeSchema = exports.OutputDeliveryTypeSchema = exports.ReportVersionSchema = exports.ReportUserStateSchema = exports.QueryParameterSchema = exports.DashboardUserStateSchema = exports.DashboardUserPreferenceSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = exports.ConversationArtifactPermissionSchema = exports.ArtifactTypeSchema = exports.AIVendorSchema = exports.AIVendorTypeSchema = exports.AIVendorTypeDefinitionSchema = exports.AIPromptRunSchema = exports.AIPromptModelSchema = exports.AIModelVendorSchema = exports.AIModelPriceUnitTypeSchema = exports.AIModelPriceTypeSchema = exports.AIModelCostSchema = exports.AIConfigurationSchema = exports.AIConfigurationParamSchema = exports.AIAgentTypeSchema = exports.AIAgentStepSchema = exports.AIAgentStepPathSchema = exports.AIAgentRunSchema = exports.AIAgentRunStepSchema = exports.AIAgentPromptSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
12
- exports.AIAgentActionEntity = exports.AIActionEntity = exports.ActionEntity = exports.ActionResultCodeEntity = exports.ActionParamEntity = exports.ActionLibraryEntity = exports.ActionFilterEntity = exports.ActionExecutionLogEntity = exports.ActionContextEntity = exports.ActionContextTypeEntity = exports.ActionCategoryEntity = exports.ActionAuthorizationEntity = exports.WorkspaceSchema = exports.WorkspaceItemSchema = exports.WorkflowSchema = exports.WorkflowRunSchema = exports.WorkflowEngineSchema = exports.VersionInstallationSchema = exports.VectorIndexSchema = exports.VectorDatabaseSchema = exports.UserSchema = exports.UserViewSchema = exports.UserViewRunSchema = exports.UserViewRunDetailSchema = exports.UserViewCategorySchema = exports.UserRoleSchema = exports.UserRecordLogSchema = exports.UserNotificationSchema = exports.UserFavoriteSchema = exports.UserApplicationSchema = exports.UserApplicationEntitySchema = exports.TemplateSchema = exports.TemplateParamSchema = exports.TemplateContentSchema = exports.TemplateContentTypeSchema = exports.TemplateCategorySchema = exports.TagSchema = exports.TaggedItemSchema = exports.SkillSchema = exports.SchemaInfoSchema = exports.ScheduledActionSchema = exports.ScheduledActionParamSchema = exports.RowLevelSecurityFilterSchema = exports.RoleSchema = exports.ResourceTypeSchema = exports.ResourcePermissionSchema = exports.ResourceLinkSchema = exports.ReportSchema = exports.ReportSnapshotSchema = exports.ReportCategorySchema = void 0;
13
- exports.DatasetEntity = exports.DatasetItemEntity = exports.DataContextEntity = exports.DataContextItemEntity = exports.DashboardEntity = exports.DashboardCategoryEntity = exports.ConversationEntity = exports.ConversationDetailEntity = exports.ContentTypeEntity = exports.ContentTypeAttributeEntity = exports.ContentSourceEntity = exports.ContentSourceTypeEntity = exports.ContentSourceTypeParamEntity = exports.ContentSourceParamEntity = exports.ContentProcessRunEntity = exports.ContentItemEntity = exports.ContentItemTagEntity = exports.ContentItemAttributeEntity = exports.ContentFileTypeEntity = exports.CompanyIntegrationEntity = exports.CompanyIntegrationRunEntity = exports.CompanyIntegrationRunDetailEntity = exports.CompanyIntegrationRunAPILogEntity = exports.CompanyIntegrationRecordMapEntity = exports.CompanyEntity = exports.CommunicationRunEntity = exports.CommunicationProviderEntity = exports.CommunicationProviderMessageTypeEntity = exports.CommunicationLogEntity = exports.CommunicationBaseMessageTypeEntity = exports.AuthorizationEntity = exports.AuthorizationRoleEntity = exports.AuditLogEntity = exports.AuditLogTypeEntity = exports.ApplicationEntity = exports.ApplicationSettingEntity = exports.ApplicationEntityEntity = exports.AIResultCacheEntity = exports.AIPromptEntity = exports.AIPromptTypeEntity = exports.AIPromptCategoryEntity = exports.AIModelEntity = exports.AIModelTypeEntity = exports.AIModelActionEntity = exports.AIAgentEntity = exports.AIAgentRequestEntity = exports.AIAgentNoteEntity = exports.AIAgentNoteTypeEntity = exports.AIAgentModelEntity = exports.AIAgentLearningCycleEntity = void 0;
14
- exports.AIConfigurationEntity = exports.AIConfigurationParamEntity = exports.AIAgentTypeEntity = exports.AIAgentStepEntity = exports.AIAgentStepPathEntity = exports.AIAgentRunEntity = exports.AIAgentRunStepEntity = exports.AIAgentPromptEntity = exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.GeneratedCodeEntity = exports.GeneratedCodeCategoryEntity = exports.FileEntity = exports.FileStorageProviderEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = exports.ExplorerNavigationItemEntity = exports.ErrorLogEntity = exports.EntitySettingEntity = exports.EntityRelationshipEntity = exports.EntityRelationshipDisplayComponentEntity = exports.EntityRecordDocumentEntity = exports.EntityPermissionEntity = exports.EntityFieldEntity = exports.EntityFieldValueEntity = exports.EntityDocumentEntity = exports.EntityDocumentTypeEntity = exports.EntityDocumentSettingEntity = exports.EntityDocumentRunEntity = exports.EntityCommunicationMessageTypeEntity = exports.EntityCommunicationFieldEntity = exports.EntityAIActionEntity = exports.EntityActionEntity = exports.EntityActionParamEntity = exports.EntityActionInvocationEntity = exports.EntityActionInvocationTypeEntity = exports.EntityActionFilterEntity = exports.EntityEntity = exports.EmployeeEntity = exports.EmployeeSkillEntity = exports.EmployeeRoleEntity = exports.EmployeeCompanyIntegrationEntity = exports.DuplicateRunEntity = exports.DuplicateRunDetailEntity = exports.DuplicateRunDetailMatchEntity = void 0;
15
- exports.TaggedItemEntity = exports.SkillEntity = exports.SchemaInfoEntity = exports.ScheduledActionEntity = exports.ScheduledActionParamEntity = exports.RowLevelSecurityFilterEntity = exports.RoleEntity = exports.ResourceTypeEntity = exports.ResourcePermissionEntity = exports.ResourceLinkEntity = exports.ReportEntity = exports.ReportSnapshotEntity = exports.ReportCategoryEntity = exports.RecordMergeLogEntity = exports.RecordMergeDeletionLogEntity = exports.RecordChangeEntity = exports.RecordChangeReplayRunEntity = exports.RecommendationEntity = exports.RecommendationRunEntity = exports.RecommendationProviderEntity = exports.RecommendationItemEntity = exports.QueueEntity = exports.QueueTypeEntity = exports.QueueTaskEntity = exports.QueryPermissionEntity = exports.QueryFieldEntity = exports.QueryEntityEntity = exports.QueryCategoryEntity = exports.QueryEntity = exports.OutputTriggerTypeEntity = exports.OutputFormatTypeEntity = exports.OutputDeliveryTypeEntity = exports.ReportVersionEntity = exports.ReportUserStateEntity = exports.QueryParameterEntity = exports.DashboardUserStateEntity = exports.DashboardUserPreferenceEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = exports.ConversationArtifactPermissionEntity = exports.ArtifactTypeEntity = exports.AIVendorEntity = exports.AIVendorTypeEntity = exports.AIVendorTypeDefinitionEntity = exports.AIPromptRunEntity = exports.AIPromptModelEntity = exports.AIModelVendorEntity = exports.AIModelPriceUnitTypeEntity = exports.AIModelPriceTypeEntity = exports.AIModelCostEntity = void 0;
16
- exports.WorkspaceEntity = exports.WorkspaceItemEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.WorkflowEngineEntity = exports.VersionInstallationEntity = exports.VectorIndexEntity = exports.VectorDatabaseEntity = exports.UserEntity = exports.UserViewEntity = exports.UserViewRunEntity = exports.UserViewRunDetailEntity = exports.UserViewCategoryEntity = exports.UserRoleEntity = exports.UserRecordLogEntity = exports.UserNotificationEntity = exports.UserFavoriteEntity = exports.UserApplicationEntity = exports.UserApplicationEntityEntity = exports.TemplateEntity = exports.TemplateParamEntity = exports.TemplateContentEntity = exports.TemplateContentTypeEntity = exports.TemplateCategoryEntity = exports.TagEntity = void 0;
11
+ exports.RecommendationProviderSchema = exports.RecommendationItemSchema = exports.QueueSchema = exports.QueueTypeSchema = exports.QueueTaskSchema = exports.QueryPermissionSchema = exports.QueryFieldSchema = exports.QueryEntitySchema = exports.QueryCategorySchema = exports.QuerySchema = exports.OutputTriggerTypeSchema = exports.OutputFormatTypeSchema = exports.OutputDeliveryTypeSchema = exports.ReportVersionSchema = exports.ReportUserStateSchema = exports.QueryParameterSchema = exports.DashboardUserStateSchema = exports.DashboardUserPreferenceSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = exports.ConversationArtifactPermissionSchema = exports.ComponentSchema = exports.ComponentRegistrySchema = exports.ComponentLibraryLinkSchema = exports.ComponentLibrarySchema = exports.ComponentDependencySchema = exports.ArtifactTypeSchema = exports.AIVendorSchema = exports.AIVendorTypeSchema = exports.AIVendorTypeDefinitionSchema = exports.AIPromptRunSchema = exports.AIPromptModelSchema = exports.AIModelVendorSchema = exports.AIModelPriceUnitTypeSchema = exports.AIModelPriceTypeSchema = exports.AIModelCostSchema = exports.AIConfigurationSchema = exports.AIConfigurationParamSchema = exports.AIAgentTypeSchema = exports.AIAgentStepSchema = exports.AIAgentStepPathSchema = exports.AIAgentRunSchema = exports.AIAgentRunStepSchema = exports.AIAgentRelationshipSchema = exports.AIAgentPromptSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
12
+ exports.ActionFilterEntity = exports.ActionExecutionLogEntity = exports.ActionContextEntity = exports.ActionContextTypeEntity = exports.ActionCategoryEntity = exports.ActionAuthorizationEntity = exports.WorkspaceSchema = exports.WorkspaceItemSchema = exports.WorkflowSchema = exports.WorkflowRunSchema = exports.WorkflowEngineSchema = exports.VersionInstallationSchema = exports.VectorIndexSchema = exports.VectorDatabaseSchema = exports.UserSchema = exports.UserViewSchema = exports.UserViewRunSchema = exports.UserViewRunDetailSchema = exports.UserViewCategorySchema = exports.UserRoleSchema = exports.UserRecordLogSchema = exports.UserNotificationSchema = exports.UserFavoriteSchema = exports.UserApplicationSchema = exports.UserApplicationEntitySchema = exports.TemplateSchema = exports.TemplateParamSchema = exports.TemplateContentSchema = exports.TemplateContentTypeSchema = exports.TemplateCategorySchema = exports.TagSchema = exports.TaggedItemSchema = exports.SkillSchema = exports.SchemaInfoSchema = exports.ScheduledActionSchema = exports.ScheduledActionParamSchema = exports.RowLevelSecurityFilterSchema = exports.RoleSchema = exports.ResourceTypeSchema = exports.ResourcePermissionSchema = exports.ResourceLinkSchema = exports.ReportSchema = exports.ReportSnapshotSchema = exports.ReportCategorySchema = exports.RecordMergeLogSchema = exports.RecordMergeDeletionLogSchema = exports.RecordChangeSchema = exports.RecordChangeReplayRunSchema = exports.RecommendationSchema = exports.RecommendationRunSchema = void 0;
13
+ exports.ConversationEntity = exports.ConversationDetailEntity = exports.ContentTypeEntity = exports.ContentTypeAttributeEntity = exports.ContentSourceEntity = exports.ContentSourceTypeEntity = exports.ContentSourceTypeParamEntity = exports.ContentSourceParamEntity = exports.ContentProcessRunEntity = exports.ContentItemEntity = exports.ContentItemTagEntity = exports.ContentItemAttributeEntity = exports.ContentFileTypeEntity = exports.CompanyIntegrationEntity = exports.CompanyIntegrationRunEntity = exports.CompanyIntegrationRunDetailEntity = exports.CompanyIntegrationRunAPILogEntity = exports.CompanyIntegrationRecordMapEntity = exports.CompanyEntity = exports.CommunicationRunEntity = exports.CommunicationProviderEntity = exports.CommunicationProviderMessageTypeEntity = exports.CommunicationLogEntity = exports.CommunicationBaseMessageTypeEntity = exports.AuthorizationEntity = exports.AuthorizationRoleEntity = exports.AuditLogEntity = exports.AuditLogTypeEntity = exports.ApplicationEntity = exports.ApplicationSettingEntity = exports.ApplicationEntityEntity = exports.AIResultCacheEntity = exports.AIPromptEntity = exports.AIPromptTypeEntity = exports.AIPromptCategoryEntity = exports.AIModelEntity = exports.AIModelTypeEntity = exports.AIModelActionEntity = exports.AIAgentEntity = exports.AIAgentRequestEntity = exports.AIAgentNoteEntity = exports.AIAgentNoteTypeEntity = exports.AIAgentModelEntity = exports.AIAgentLearningCycleEntity = exports.AIAgentActionEntity = exports.AIActionEntity = exports.ActionEntity = exports.ActionResultCodeEntity = exports.ActionParamEntity = exports.ActionLibraryEntity = void 0;
14
+ exports.AIAgentRelationshipEntity = exports.AIAgentPromptEntity = exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.GeneratedCodeEntity = exports.GeneratedCodeCategoryEntity = exports.FileEntity = exports.FileStorageProviderEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = exports.ExplorerNavigationItemEntity = exports.ErrorLogEntity = exports.EntitySettingEntity = exports.EntityRelationshipEntity = exports.EntityRelationshipDisplayComponentEntity = exports.EntityRecordDocumentEntity = exports.EntityPermissionEntity = exports.EntityFieldEntity = exports.EntityFieldValueEntity = exports.EntityDocumentEntity = exports.EntityDocumentTypeEntity = exports.EntityDocumentSettingEntity = exports.EntityDocumentRunEntity = exports.EntityCommunicationMessageTypeEntity = exports.EntityCommunicationFieldEntity = exports.EntityAIActionEntity = exports.EntityActionEntity = exports.EntityActionParamEntity = exports.EntityActionInvocationEntity = exports.EntityActionInvocationTypeEntity = exports.EntityActionFilterEntity = exports.EntityEntity = exports.EmployeeEntity = exports.EmployeeSkillEntity = exports.EmployeeRoleEntity = exports.EmployeeCompanyIntegrationEntity = exports.DuplicateRunEntity = exports.DuplicateRunDetailEntity = exports.DuplicateRunDetailMatchEntity = exports.DatasetEntity = exports.DatasetItemEntity = exports.DataContextEntity = exports.DataContextItemEntity = exports.DashboardEntity = exports.DashboardCategoryEntity = void 0;
15
+ exports.ReportCategoryEntity = exports.RecordMergeLogEntity = exports.RecordMergeDeletionLogEntity = exports.RecordChangeEntity = exports.RecordChangeReplayRunEntity = exports.RecommendationEntity = exports.RecommendationRunEntity = exports.RecommendationProviderEntity = exports.RecommendationItemEntity = exports.QueueEntity = exports.QueueTypeEntity = exports.QueueTaskEntity = exports.QueryPermissionEntity = exports.QueryFieldEntity = exports.QueryEntityEntity = exports.QueryCategoryEntity = exports.QueryEntity = exports.OutputTriggerTypeEntity = exports.OutputFormatTypeEntity = exports.OutputDeliveryTypeEntity = exports.ReportVersionEntity = exports.ReportUserStateEntity = exports.QueryParameterEntity = exports.DashboardUserStateEntity = exports.DashboardUserPreferenceEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = exports.ConversationArtifactPermissionEntity = exports.ComponentEntity = exports.ComponentRegistryEntity = exports.ComponentLibraryLinkEntity = exports.ComponentLibraryEntity = exports.ComponentDependencyEntity = exports.ArtifactTypeEntity = exports.AIVendorEntity = exports.AIVendorTypeEntity = exports.AIVendorTypeDefinitionEntity = exports.AIPromptRunEntity = exports.AIPromptModelEntity = exports.AIModelVendorEntity = exports.AIModelPriceUnitTypeEntity = exports.AIModelPriceTypeEntity = exports.AIModelCostEntity = exports.AIConfigurationEntity = exports.AIConfigurationParamEntity = exports.AIAgentTypeEntity = exports.AIAgentStepEntity = exports.AIAgentStepPathEntity = exports.AIAgentRunEntity = exports.AIAgentRunStepEntity = void 0;
16
+ exports.WorkspaceEntity = exports.WorkspaceItemEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.WorkflowEngineEntity = exports.VersionInstallationEntity = exports.VectorIndexEntity = exports.VectorDatabaseEntity = exports.UserEntity = exports.UserViewEntity = exports.UserViewRunEntity = exports.UserViewRunDetailEntity = exports.UserViewCategoryEntity = exports.UserRoleEntity = exports.UserRecordLogEntity = exports.UserNotificationEntity = exports.UserFavoriteEntity = exports.UserApplicationEntity = exports.UserApplicationEntityEntity = exports.TemplateEntity = exports.TemplateParamEntity = exports.TemplateContentEntity = exports.TemplateContentTypeEntity = exports.TemplateCategoryEntity = exports.TagEntity = 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;
17
17
  const core_1 = require("@memberjunction/core");
18
18
  const global_1 = require("@memberjunction/global");
19
19
  const zod_1 = require("zod");
@@ -7255,6 +7255,57 @@ exports.AIAgentPromptSchema = zod_1.z.object({
7255
7255
  * * Display Name: Configuration
7256
7256
  * * SQL Data Type: nvarchar(100)`),
7257
7257
  });
7258
+ /**
7259
+ * zod schema definition for the entity MJ: AI Agent Relationships
7260
+ */
7261
+ exports.AIAgentRelationshipSchema = zod_1.z.object({
7262
+ ID: zod_1.z.string().describe(`
7263
+ * * Field Name: ID
7264
+ * * Display Name: ID
7265
+ * * SQL Data Type: uniqueidentifier
7266
+ * * Default Value: newsequentialid()
7267
+ * * Description: Primary key for AI agent relationships`),
7268
+ AgentID: zod_1.z.string().describe(`
7269
+ * * Field Name: AgentID
7270
+ * * Display Name: Agent ID
7271
+ * * SQL Data Type: uniqueidentifier
7272
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
7273
+ * * Description: Foreign key to parent AIAgent that can invoke the sub-agent`),
7274
+ SubAgentID: zod_1.z.string().describe(`
7275
+ * * Field Name: SubAgentID
7276
+ * * Display Name: Sub Agent ID
7277
+ * * SQL Data Type: uniqueidentifier
7278
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
7279
+ * * Description: Foreign key to sub-agent AIAgent that can be invoked`),
7280
+ Status: zod_1.z.union([zod_1.z.literal('Pending'), zod_1.z.literal('Active'), zod_1.z.literal('Revoked')]).describe(`
7281
+ * * Field Name: Status
7282
+ * * Display Name: Status
7283
+ * * SQL Data Type: nvarchar(50)
7284
+ * * Value List Type: List
7285
+ * * Possible Values
7286
+ * * Pending
7287
+ * * Active
7288
+ * * Revoked
7289
+ * * Description: Status of the relationship: Pending (awaiting approval), Active (can invoke), or Revoked (no longer allowed)`),
7290
+ __mj_CreatedAt: zod_1.z.date().describe(`
7291
+ * * Field Name: __mj_CreatedAt
7292
+ * * Display Name: Created At
7293
+ * * SQL Data Type: datetimeoffset
7294
+ * * Default Value: getutcdate()`),
7295
+ __mj_UpdatedAt: zod_1.z.date().describe(`
7296
+ * * Field Name: __mj_UpdatedAt
7297
+ * * Display Name: Updated At
7298
+ * * SQL Data Type: datetimeoffset
7299
+ * * Default Value: getutcdate()`),
7300
+ Agent: zod_1.z.string().nullable().describe(`
7301
+ * * Field Name: Agent
7302
+ * * Display Name: Agent
7303
+ * * SQL Data Type: nvarchar(255)`),
7304
+ SubAgent: zod_1.z.string().nullable().describe(`
7305
+ * * Field Name: SubAgent
7306
+ * * Display Name: Sub Agent
7307
+ * * SQL Data Type: nvarchar(255)`),
7308
+ });
7258
7309
  /**
7259
7310
  * zod schema definition for the entity MJ: AI Agent Run Steps
7260
7311
  */
@@ -9056,6 +9107,362 @@ exports.ArtifactTypeSchema = zod_1.z.object({
9056
9107
  * * SQL Data Type: datetimeoffset
9057
9108
  * * Default Value: getutcdate()`),
9058
9109
  });
9110
+ /**
9111
+ * zod schema definition for the entity MJ: Component Dependencies
9112
+ */
9113
+ exports.ComponentDependencySchema = zod_1.z.object({
9114
+ ID: zod_1.z.string().describe(`
9115
+ * * Field Name: ID
9116
+ * * Display Name: ID
9117
+ * * SQL Data Type: uniqueidentifier
9118
+ * * Default Value: newsequentialid()
9119
+ * * Description: Primary key for component dependency`),
9120
+ ComponentID: zod_1.z.string().describe(`
9121
+ * * Field Name: ComponentID
9122
+ * * Display Name: Component ID
9123
+ * * SQL Data Type: uniqueidentifier
9124
+ * * Related Entity/Foreign Key: MJ: Components (vwComponents.ID)
9125
+ * * Description: Foreign key to parent Component that has the dependency`),
9126
+ DependencyComponentID: zod_1.z.string().describe(`
9127
+ * * Field Name: DependencyComponentID
9128
+ * * Display Name: Dependency Component ID
9129
+ * * SQL Data Type: uniqueidentifier
9130
+ * * Related Entity/Foreign Key: MJ: Components (vwComponents.ID)
9131
+ * * Description: Foreign key to the Component that is depended upon`),
9132
+ __mj_CreatedAt: zod_1.z.date().describe(`
9133
+ * * Field Name: __mj_CreatedAt
9134
+ * * Display Name: Created At
9135
+ * * SQL Data Type: datetimeoffset
9136
+ * * Default Value: getutcdate()`),
9137
+ __mj_UpdatedAt: zod_1.z.date().describe(`
9138
+ * * Field Name: __mj_UpdatedAt
9139
+ * * Display Name: Updated At
9140
+ * * SQL Data Type: datetimeoffset
9141
+ * * Default Value: getutcdate()`),
9142
+ Component: zod_1.z.string().describe(`
9143
+ * * Field Name: Component
9144
+ * * Display Name: Component
9145
+ * * SQL Data Type: nvarchar(500)`),
9146
+ DependencyComponent: zod_1.z.string().describe(`
9147
+ * * Field Name: DependencyComponent
9148
+ * * Display Name: Dependency Component
9149
+ * * SQL Data Type: nvarchar(500)`),
9150
+ });
9151
+ /**
9152
+ * zod schema definition for the entity MJ: Component Libraries
9153
+ */
9154
+ exports.ComponentLibrarySchema = zod_1.z.object({
9155
+ ID: zod_1.z.string().describe(`
9156
+ * * Field Name: ID
9157
+ * * Display Name: ID
9158
+ * * SQL Data Type: uniqueidentifier
9159
+ * * Default Value: newsequentialid()
9160
+ * * Description: Primary key for the component library`),
9161
+ Name: zod_1.z.string().describe(`
9162
+ * * Field Name: Name
9163
+ * * Display Name: Name
9164
+ * * SQL Data Type: nvarchar(500)
9165
+ * * Description: NPM-style package name (e.g., recharts, lodash, @memberjunction/lib-name)`),
9166
+ DisplayName: zod_1.z.string().nullable().describe(`
9167
+ * * Field Name: DisplayName
9168
+ * * Display Name: Display Name
9169
+ * * SQL Data Type: nvarchar(500)
9170
+ * * Description: User-friendly display name for the library`),
9171
+ Version: zod_1.z.string().nullable().describe(`
9172
+ * * Field Name: Version
9173
+ * * Display Name: Version
9174
+ * * SQL Data Type: nvarchar(100)
9175
+ * * Description: Library version number`),
9176
+ GlobalVariable: zod_1.z.string().nullable().describe(`
9177
+ * * Field Name: GlobalVariable
9178
+ * * Display Name: Global Variable
9179
+ * * SQL Data Type: nvarchar(255)
9180
+ * * Description: Global variable name when loaded (e.g., _ for lodash, React for react)`),
9181
+ Category: zod_1.z.union([zod_1.z.literal('Core'), zod_1.z.literal('Runtime'), zod_1.z.literal('UI'), zod_1.z.literal('Charting'), zod_1.z.literal('Utility'), zod_1.z.literal('Other')]).nullable().describe(`
9182
+ * * Field Name: Category
9183
+ * * Display Name: Category
9184
+ * * SQL Data Type: nvarchar(100)
9185
+ * * Value List Type: List
9186
+ * * Possible Values
9187
+ * * Core
9188
+ * * Runtime
9189
+ * * UI
9190
+ * * Charting
9191
+ * * Utility
9192
+ * * Other
9193
+ * * Description: Library category: Core, Runtime, UI, Charting, Utility, or Other`),
9194
+ CDNUrl: zod_1.z.string().nullable().describe(`
9195
+ * * Field Name: CDNUrl
9196
+ * * Display Name: CDN Url
9197
+ * * SQL Data Type: nvarchar(1000)
9198
+ * * Description: CDN URL for loading the library JavaScript`),
9199
+ CDNCssUrl: zod_1.z.string().nullable().describe(`
9200
+ * * Field Name: CDNCssUrl
9201
+ * * Display Name: CDN Css Url
9202
+ * * SQL Data Type: nvarchar(1000)
9203
+ * * Description: Optional CDN URL for loading library CSS`),
9204
+ Description: zod_1.z.string().nullable().describe(`
9205
+ * * Field Name: Description
9206
+ * * Display Name: Description
9207
+ * * SQL Data Type: nvarchar(MAX)
9208
+ * * Description: Description of the library and its capabilities`),
9209
+ __mj_CreatedAt: zod_1.z.date().describe(`
9210
+ * * Field Name: __mj_CreatedAt
9211
+ * * Display Name: Created At
9212
+ * * SQL Data Type: datetimeoffset
9213
+ * * Default Value: getutcdate()`),
9214
+ __mj_UpdatedAt: zod_1.z.date().describe(`
9215
+ * * Field Name: __mj_UpdatedAt
9216
+ * * Display Name: Updated At
9217
+ * * SQL Data Type: datetimeoffset
9218
+ * * Default Value: getutcdate()`),
9219
+ });
9220
+ /**
9221
+ * zod schema definition for the entity MJ: Component Library Links
9222
+ */
9223
+ exports.ComponentLibraryLinkSchema = zod_1.z.object({
9224
+ ID: zod_1.z.string().describe(`
9225
+ * * Field Name: ID
9226
+ * * Display Name: ID
9227
+ * * SQL Data Type: uniqueidentifier
9228
+ * * Default Value: newsequentialid()
9229
+ * * Description: Primary key for component-library relationship`),
9230
+ ComponentID: zod_1.z.string().describe(`
9231
+ * * Field Name: ComponentID
9232
+ * * Display Name: Component ID
9233
+ * * SQL Data Type: uniqueidentifier
9234
+ * * Related Entity/Foreign Key: MJ: Components (vwComponents.ID)
9235
+ * * Description: Foreign key to Component that depends on the library`),
9236
+ LibraryID: zod_1.z.string().describe(`
9237
+ * * Field Name: LibraryID
9238
+ * * Display Name: Library ID
9239
+ * * SQL Data Type: uniqueidentifier
9240
+ * * Related Entity/Foreign Key: MJ: Component Libraries (vwComponentLibraries.ID)
9241
+ * * Description: Foreign key to ComponentLibrary that the component depends on`),
9242
+ MinVersion: zod_1.z.string().nullable().describe(`
9243
+ * * Field Name: MinVersion
9244
+ * * Display Name: Min Version
9245
+ * * SQL Data Type: nvarchar(100)
9246
+ * * Description: Minimum version requirement using semantic versioning (e.g., ^1.0.0, ~2.5.0)`),
9247
+ __mj_CreatedAt: zod_1.z.date().describe(`
9248
+ * * Field Name: __mj_CreatedAt
9249
+ * * Display Name: Created At
9250
+ * * SQL Data Type: datetimeoffset
9251
+ * * Default Value: getutcdate()`),
9252
+ __mj_UpdatedAt: zod_1.z.date().describe(`
9253
+ * * Field Name: __mj_UpdatedAt
9254
+ * * Display Name: Updated At
9255
+ * * SQL Data Type: datetimeoffset
9256
+ * * Default Value: getutcdate()`),
9257
+ Component: zod_1.z.string().describe(`
9258
+ * * Field Name: Component
9259
+ * * Display Name: Component
9260
+ * * SQL Data Type: nvarchar(500)`),
9261
+ Library: zod_1.z.string().describe(`
9262
+ * * Field Name: Library
9263
+ * * Display Name: Library
9264
+ * * SQL Data Type: nvarchar(500)`),
9265
+ });
9266
+ /**
9267
+ * zod schema definition for the entity MJ: Component Registries
9268
+ */
9269
+ exports.ComponentRegistrySchema = zod_1.z.object({
9270
+ ID: zod_1.z.string().describe(`
9271
+ * * Field Name: ID
9272
+ * * Display Name: ID
9273
+ * * SQL Data Type: uniqueidentifier
9274
+ * * Default Value: newsequentialid()
9275
+ * * Description: Primary key for the component registry`),
9276
+ Name: zod_1.z.string().describe(`
9277
+ * * Field Name: Name
9278
+ * * Display Name: Name
9279
+ * * SQL Data Type: nvarchar(255)
9280
+ * * Description: Name of the registry (e.g., MemberJunction Registry, NPM, Internal Registry)`),
9281
+ Description: zod_1.z.string().nullable().describe(`
9282
+ * * Field Name: Description
9283
+ * * Display Name: Description
9284
+ * * SQL Data Type: nvarchar(MAX)
9285
+ * * Description: Description of the registry and its purpose`),
9286
+ URI: zod_1.z.string().nullable().describe(`
9287
+ * * Field Name: URI
9288
+ * * Display Name: URI
9289
+ * * SQL Data Type: nvarchar(500)
9290
+ * * Description: Registry endpoint URI (e.g., https://registry.memberjunction.org)`),
9291
+ Type: zod_1.z.union([zod_1.z.literal('Public'), zod_1.z.literal('Private'), zod_1.z.literal('Internal')]).nullable().describe(`
9292
+ * * Field Name: Type
9293
+ * * Display Name: Type
9294
+ * * SQL Data Type: nvarchar(50)
9295
+ * * Value List Type: List
9296
+ * * Possible Values
9297
+ * * Public
9298
+ * * Private
9299
+ * * Internal
9300
+ * * Description: Type of registry: public, private, or internal`),
9301
+ APIVersion: zod_1.z.string().nullable().describe(`
9302
+ * * Field Name: APIVersion
9303
+ * * Display Name: API Version
9304
+ * * SQL Data Type: nvarchar(50)
9305
+ * * Description: API version supported by the registry for compatibility`),
9306
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Deprecated'), zod_1.z.literal('Offline')]).nullable().describe(`
9307
+ * * Field Name: Status
9308
+ * * Display Name: Status
9309
+ * * SQL Data Type: nvarchar(50)
9310
+ * * Value List Type: List
9311
+ * * Possible Values
9312
+ * * Active
9313
+ * * Deprecated
9314
+ * * Offline
9315
+ * * Description: Current status of the registry: active, deprecated, or offline`),
9316
+ __mj_CreatedAt: zod_1.z.date().describe(`
9317
+ * * Field Name: __mj_CreatedAt
9318
+ * * Display Name: Created At
9319
+ * * SQL Data Type: datetimeoffset
9320
+ * * Default Value: getutcdate()`),
9321
+ __mj_UpdatedAt: zod_1.z.date().describe(`
9322
+ * * Field Name: __mj_UpdatedAt
9323
+ * * Display Name: Updated At
9324
+ * * SQL Data Type: datetimeoffset
9325
+ * * Default Value: getutcdate()`),
9326
+ });
9327
+ /**
9328
+ * zod schema definition for the entity MJ: Components
9329
+ */
9330
+ exports.ComponentSchema = zod_1.z.object({
9331
+ ID: zod_1.z.string().describe(`
9332
+ * * Field Name: ID
9333
+ * * Display Name: ID
9334
+ * * SQL Data Type: uniqueidentifier
9335
+ * * Default Value: newsequentialid()
9336
+ * * Description: Immutable UUID that remains the same across all systems`),
9337
+ Namespace: zod_1.z.string().nullable().describe(`
9338
+ * * Field Name: Namespace
9339
+ * * Display Name: Namespace
9340
+ * * SQL Data Type: nvarchar(MAX)
9341
+ * * Description: Hierarchical namespace path (e.g., dashboards/sales for local, @memberjunction/dashboards/financial for external)`),
9342
+ Name: zod_1.z.string().describe(`
9343
+ * * Field Name: Name
9344
+ * * Display Name: Name
9345
+ * * SQL Data Type: nvarchar(500)
9346
+ * * Description: Component name within the namespace (e.g., revenue-tracker)`),
9347
+ Version: zod_1.z.string().describe(`
9348
+ * * Field Name: Version
9349
+ * * Display Name: Version
9350
+ * * SQL Data Type: nvarchar(50)
9351
+ * * Description: Semantic version number (e.g., 1.0.0, 1.2.3-beta)`),
9352
+ VersionSequence: zod_1.z.number().describe(`
9353
+ * * Field Name: VersionSequence
9354
+ * * Display Name: Version Sequence
9355
+ * * SQL Data Type: int
9356
+ * * Default Value: 0
9357
+ * * Description: Numeric sequence for sorting versions`),
9358
+ Title: zod_1.z.string().nullable().describe(`
9359
+ * * Field Name: Title
9360
+ * * Display Name: Title
9361
+ * * SQL Data Type: nvarchar(1000)
9362
+ * * Description: User-friendly display title for the component`),
9363
+ Description: zod_1.z.string().nullable().describe(`
9364
+ * * Field Name: Description
9365
+ * * Display Name: Description
9366
+ * * SQL Data Type: nvarchar(MAX)
9367
+ * * Description: Detailed description of the component functionality`),
9368
+ Type: zod_1.z.union([zod_1.z.literal('Report'), zod_1.z.literal('Dashboard'), zod_1.z.literal('Form'), zod_1.z.literal('Table'), zod_1.z.literal('Chart'), zod_1.z.literal('Navigation'), zod_1.z.literal('Search'), zod_1.z.literal('Widget'), zod_1.z.literal('Utility'), zod_1.z.literal('Other')]).nullable().describe(`
9369
+ * * Field Name: Type
9370
+ * * Display Name: Type
9371
+ * * SQL Data Type: nvarchar(255)
9372
+ * * Value List Type: List
9373
+ * * Possible Values
9374
+ * * Report
9375
+ * * Dashboard
9376
+ * * Form
9377
+ * * Table
9378
+ * * Chart
9379
+ * * Navigation
9380
+ * * Search
9381
+ * * Widget
9382
+ * * Utility
9383
+ * * Other
9384
+ * * Description: Component type: report, dashboard, form, table, chart, navigation, search, widget, utility, or other`),
9385
+ Status: zod_1.z.union([zod_1.z.literal('Draft'), zod_1.z.literal('Published'), zod_1.z.literal('Deprecated')]).nullable().describe(`
9386
+ * * Field Name: Status
9387
+ * * Display Name: Status
9388
+ * * SQL Data Type: nvarchar(50)
9389
+ * * Value List Type: List
9390
+ * * Possible Values
9391
+ * * Draft
9392
+ * * Published
9393
+ * * Deprecated
9394
+ * * Description: Publication status: draft, published, or deprecated`),
9395
+ DeveloperName: zod_1.z.string().nullable().describe(`
9396
+ * * Field Name: DeveloperName
9397
+ * * Display Name: Developer Name
9398
+ * * SQL Data Type: nvarchar(255)
9399
+ * * Description: Name of the component developer or author`),
9400
+ DeveloperEmail: zod_1.z.string().nullable().describe(`
9401
+ * * Field Name: DeveloperEmail
9402
+ * * Display Name: Developer Email
9403
+ * * SQL Data Type: nvarchar(255)
9404
+ * * Description: Contact email for the component developer`),
9405
+ DeveloperOrganization: zod_1.z.string().nullable().describe(`
9406
+ * * Field Name: DeveloperOrganization
9407
+ * * Display Name: Developer Organization
9408
+ * * SQL Data Type: nvarchar(255)
9409
+ * * Description: Organization name of the component developer`),
9410
+ SourceRegistryID: zod_1.z.string().nullable().describe(`
9411
+ * * Field Name: SourceRegistryID
9412
+ * * Display Name: Source Registry ID
9413
+ * * SQL Data Type: uniqueidentifier
9414
+ * * Related Entity/Foreign Key: MJ: Component Registries (vwComponentRegistries.ID)
9415
+ * * Description: Foreign key to ComponentRegistry - NULL for local components, populated for replicated ones`),
9416
+ ReplicatedAt: zod_1.z.date().nullable().describe(`
9417
+ * * Field Name: ReplicatedAt
9418
+ * * Display Name: Replicated At
9419
+ * * SQL Data Type: datetimeoffset
9420
+ * * Description: Timestamp when the component was replicated from external registry (NULL for local components)`),
9421
+ LastSyncedAt: zod_1.z.date().nullable().describe(`
9422
+ * * Field Name: LastSyncedAt
9423
+ * * Display Name: Last Synced At
9424
+ * * SQL Data Type: datetimeoffset
9425
+ * * Description: Last synchronization timestamp with the source registry`),
9426
+ __mj_CreatedAt: zod_1.z.date().describe(`
9427
+ * * Field Name: __mj_CreatedAt
9428
+ * * Display Name: Created At
9429
+ * * SQL Data Type: datetimeoffset
9430
+ * * Default Value: getutcdate()`),
9431
+ __mj_UpdatedAt: zod_1.z.date().describe(`
9432
+ * * Field Name: __mj_UpdatedAt
9433
+ * * Display Name: Updated At
9434
+ * * SQL Data Type: datetimeoffset
9435
+ * * Default Value: getutcdate()`),
9436
+ Specification: zod_1.z.string().describe(`
9437
+ * * Field Name: Specification
9438
+ * * Display Name: Specification
9439
+ * * SQL Data Type: nvarchar(MAX)
9440
+ * * Description: Complete JSON specification object for the component`),
9441
+ FunctionalRequirements: zod_1.z.string().nullable().describe(`
9442
+ * * Field Name: FunctionalRequirements
9443
+ * * Display Name: Functional Requirements
9444
+ * * SQL Data Type: nvarchar(MAX)
9445
+ * * Description: Functional requirements describing what the component should accomplish`),
9446
+ TechnicalDesign: zod_1.z.string().nullable().describe(`
9447
+ * * Field Name: TechnicalDesign
9448
+ * * Display Name: Technical Design
9449
+ * * SQL Data Type: nvarchar(MAX)
9450
+ * * Description: Technical design describing how the component is implemented`),
9451
+ FunctionalRequirementsVector: zod_1.z.string().nullable().describe(`
9452
+ * * Field Name: FunctionalRequirementsVector
9453
+ * * Display Name: Functional Requirements Vector
9454
+ * * SQL Data Type: nvarchar(MAX)
9455
+ * * Description: Vector embedding of the functional requirements for similarity search`),
9456
+ TechnicalDesignVector: zod_1.z.string().nullable().describe(`
9457
+ * * Field Name: TechnicalDesignVector
9458
+ * * Display Name: Technical Design Vector
9459
+ * * SQL Data Type: nvarchar(MAX)
9460
+ * * Description: Vector embedding of the technical design for similarity search`),
9461
+ SourceRegistry: zod_1.z.string().nullable().describe(`
9462
+ * * Field Name: SourceRegistry
9463
+ * * Display Name: Source Registry
9464
+ * * SQL Data Type: nvarchar(255)`),
9465
+ });
9059
9466
  /**
9060
9467
  * zod schema definition for the entity MJ: Conversation Artifact Permissions
9061
9468
  */
@@ -9707,10 +10114,25 @@ exports.QuerySchema = zod_1.z.object({
9707
10114
  * * Display Name: Cache Max Size
9708
10115
  * * SQL Data Type: int
9709
10116
  * * Description: Maximum number of cached result sets for this query. NULL uses default size limit.`),
10117
+ EmbeddingVector: zod_1.z.string().nullable().describe(`
10118
+ * * Field Name: EmbeddingVector
10119
+ * * Display Name: Embedding Vector
10120
+ * * SQL Data Type: nvarchar(MAX)
10121
+ * * Description: Optional JSON-serialized embedding vector for the query, used for similarity search and query analysis`),
10122
+ EmbeddingModelID: zod_1.z.string().nullable().describe(`
10123
+ * * Field Name: EmbeddingModelID
10124
+ * * Display Name: Embedding Model ID
10125
+ * * SQL Data Type: uniqueidentifier
10126
+ * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
10127
+ * * Description: The AI Model used to generate the embedding vector for this query. Required for vector similarity comparisons.`),
9710
10128
  Category: zod_1.z.string().nullable().describe(`
9711
10129
  * * Field Name: Category
9712
10130
  * * Display Name: Category
9713
10131
  * * SQL Data Type: nvarchar(50)`),
10132
+ EmbeddingModel: zod_1.z.string().nullable().describe(`
10133
+ * * Field Name: EmbeddingModel
10134
+ * * Display Name: Embedding Model
10135
+ * * SQL Data Type: nvarchar(50)`),
9714
10136
  });
9715
10137
  /**
9716
10138
  * zod schema definition for the entity Query Categories
@@ -31358,6 +31780,129 @@ exports.AIAgentPromptEntity = AIAgentPromptEntity;
31358
31780
  exports.AIAgentPromptEntity = AIAgentPromptEntity = __decorate([
31359
31781
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Agent Prompts')
31360
31782
  ], AIAgentPromptEntity);
31783
+ /**
31784
+ * MJ: AI Agent Relationships - strongly typed entity sub-class
31785
+ * * Schema: __mj
31786
+ * * Base Table: AIAgentRelationship
31787
+ * * Base View: vwAIAgentRelationships
31788
+ * * @description Tracks relationships between AI agents for sub-agent orchestration
31789
+ * * Primary Key: ID
31790
+ * @extends {BaseEntity}
31791
+ * @class
31792
+ * @public
31793
+ */
31794
+ let AIAgentRelationshipEntity = class AIAgentRelationshipEntity extends core_1.BaseEntity {
31795
+ /**
31796
+ * Loads the MJ: AI Agent Relationships record from the database
31797
+ * @param ID: string - primary key value to load the MJ: AI Agent Relationships record.
31798
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
31799
+ * @returns {Promise<boolean>} - true if successful, false otherwise
31800
+ * @public
31801
+ * @async
31802
+ * @memberof AIAgentRelationshipEntity
31803
+ * @method
31804
+ * @override
31805
+ */
31806
+ async Load(ID, EntityRelationshipsToLoad) {
31807
+ const compositeKey = new core_1.CompositeKey();
31808
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
31809
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
31810
+ }
31811
+ /**
31812
+ * * Field Name: ID
31813
+ * * Display Name: ID
31814
+ * * SQL Data Type: uniqueidentifier
31815
+ * * Default Value: newsequentialid()
31816
+ * * Description: Primary key for AI agent relationships
31817
+ */
31818
+ get ID() {
31819
+ return this.Get('ID');
31820
+ }
31821
+ set ID(value) {
31822
+ this.Set('ID', value);
31823
+ }
31824
+ /**
31825
+ * * Field Name: AgentID
31826
+ * * Display Name: Agent ID
31827
+ * * SQL Data Type: uniqueidentifier
31828
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
31829
+ * * Description: Foreign key to parent AIAgent that can invoke the sub-agent
31830
+ */
31831
+ get AgentID() {
31832
+ return this.Get('AgentID');
31833
+ }
31834
+ set AgentID(value) {
31835
+ this.Set('AgentID', value);
31836
+ }
31837
+ /**
31838
+ * * Field Name: SubAgentID
31839
+ * * Display Name: Sub Agent ID
31840
+ * * SQL Data Type: uniqueidentifier
31841
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
31842
+ * * Description: Foreign key to sub-agent AIAgent that can be invoked
31843
+ */
31844
+ get SubAgentID() {
31845
+ return this.Get('SubAgentID');
31846
+ }
31847
+ set SubAgentID(value) {
31848
+ this.Set('SubAgentID', value);
31849
+ }
31850
+ /**
31851
+ * * Field Name: Status
31852
+ * * Display Name: Status
31853
+ * * SQL Data Type: nvarchar(50)
31854
+ * * Value List Type: List
31855
+ * * Possible Values
31856
+ * * Pending
31857
+ * * Active
31858
+ * * Revoked
31859
+ * * Description: Status of the relationship: Pending (awaiting approval), Active (can invoke), or Revoked (no longer allowed)
31860
+ */
31861
+ get Status() {
31862
+ return this.Get('Status');
31863
+ }
31864
+ set Status(value) {
31865
+ this.Set('Status', value);
31866
+ }
31867
+ /**
31868
+ * * Field Name: __mj_CreatedAt
31869
+ * * Display Name: Created At
31870
+ * * SQL Data Type: datetimeoffset
31871
+ * * Default Value: getutcdate()
31872
+ */
31873
+ get __mj_CreatedAt() {
31874
+ return this.Get('__mj_CreatedAt');
31875
+ }
31876
+ /**
31877
+ * * Field Name: __mj_UpdatedAt
31878
+ * * Display Name: Updated At
31879
+ * * SQL Data Type: datetimeoffset
31880
+ * * Default Value: getutcdate()
31881
+ */
31882
+ get __mj_UpdatedAt() {
31883
+ return this.Get('__mj_UpdatedAt');
31884
+ }
31885
+ /**
31886
+ * * Field Name: Agent
31887
+ * * Display Name: Agent
31888
+ * * SQL Data Type: nvarchar(255)
31889
+ */
31890
+ get Agent() {
31891
+ return this.Get('Agent');
31892
+ }
31893
+ /**
31894
+ * * Field Name: SubAgent
31895
+ * * Display Name: Sub Agent
31896
+ * * SQL Data Type: nvarchar(255)
31897
+ */
31898
+ get SubAgent() {
31899
+ return this.Get('SubAgent');
31900
+ }
31901
+ };
31902
+ exports.AIAgentRelationshipEntity = AIAgentRelationshipEntity;
31903
+ exports.AIAgentRelationshipEntity = AIAgentRelationshipEntity = __decorate([
31904
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Agent Relationships')
31905
+ ], AIAgentRelationshipEntity);
31361
31906
  /**
31362
31907
  * MJ: AI Agent Run Steps - strongly typed entity sub-class
31363
31908
  * * Schema: __mj
@@ -35693,30 +36238,660 @@ let AIVendorTypeDefinitionEntity = class AIVendorTypeDefinitionEntity extends co
35693
36238
  return this.Get('__mj_UpdatedAt');
35694
36239
  }
35695
36240
  };
35696
- exports.AIVendorTypeDefinitionEntity = AIVendorTypeDefinitionEntity;
35697
- exports.AIVendorTypeDefinitionEntity = AIVendorTypeDefinitionEntity = __decorate([
35698
- (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Vendor Type Definitions')
35699
- ], AIVendorTypeDefinitionEntity);
36241
+ exports.AIVendorTypeDefinitionEntity = AIVendorTypeDefinitionEntity;
36242
+ exports.AIVendorTypeDefinitionEntity = AIVendorTypeDefinitionEntity = __decorate([
36243
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Vendor Type Definitions')
36244
+ ], AIVendorTypeDefinitionEntity);
36245
+ /**
36246
+ * MJ: AI Vendor Types - strongly typed entity sub-class
36247
+ * * Schema: __mj
36248
+ * * Base Table: AIVendorType
36249
+ * * Base View: vwAIVendorTypes
36250
+ * * @description Associates vendors with their types (Model Developer, Inference Provider) and tracks the status of each role.
36251
+ * * Primary Key: ID
36252
+ * @extends {BaseEntity}
36253
+ * @class
36254
+ * @public
36255
+ */
36256
+ let AIVendorTypeEntity = class AIVendorTypeEntity extends core_1.BaseEntity {
36257
+ /**
36258
+ * Loads the MJ: AI Vendor Types record from the database
36259
+ * @param ID: string - primary key value to load the MJ: AI Vendor Types record.
36260
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
36261
+ * @returns {Promise<boolean>} - true if successful, false otherwise
36262
+ * @public
36263
+ * @async
36264
+ * @memberof AIVendorTypeEntity
36265
+ * @method
36266
+ * @override
36267
+ */
36268
+ async Load(ID, EntityRelationshipsToLoad) {
36269
+ const compositeKey = new core_1.CompositeKey();
36270
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
36271
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
36272
+ }
36273
+ /**
36274
+ * Validate() method override for MJ: AI Vendor Types entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
36275
+ * * Rank: This rule ensures that the Rank value cannot be negative; it must be zero or higher.
36276
+ * @public
36277
+ * @method
36278
+ * @override
36279
+ */
36280
+ Validate() {
36281
+ const result = super.Validate();
36282
+ this.ValidateRankNonNegative(result);
36283
+ return result;
36284
+ }
36285
+ /**
36286
+ * This rule ensures that the Rank value cannot be negative; it must be zero or higher.
36287
+ * @param result - the ValidationResult object to add any errors or warnings to
36288
+ * @public
36289
+ * @method
36290
+ */
36291
+ ValidateRankNonNegative(result) {
36292
+ if (this.Rank < 0) {
36293
+ result.Errors.push(new core_1.ValidationErrorInfo("Rank", "Rank cannot be negative. It must be zero or higher.", this.Rank, core_1.ValidationErrorType.Failure));
36294
+ }
36295
+ }
36296
+ /**
36297
+ * * Field Name: ID
36298
+ * * Display Name: ID
36299
+ * * SQL Data Type: uniqueidentifier
36300
+ * * Default Value: newsequentialid()
36301
+ */
36302
+ get ID() {
36303
+ return this.Get('ID');
36304
+ }
36305
+ set ID(value) {
36306
+ this.Set('ID', value);
36307
+ }
36308
+ /**
36309
+ * * Field Name: VendorID
36310
+ * * Display Name: Vendor ID
36311
+ * * SQL Data Type: uniqueidentifier
36312
+ * * Related Entity/Foreign Key: MJ: AI Vendors (vwAIVendors.ID)
36313
+ */
36314
+ get VendorID() {
36315
+ return this.Get('VendorID');
36316
+ }
36317
+ set VendorID(value) {
36318
+ this.Set('VendorID', value);
36319
+ }
36320
+ /**
36321
+ * * Field Name: TypeID
36322
+ * * Display Name: Type ID
36323
+ * * SQL Data Type: uniqueidentifier
36324
+ * * Related Entity/Foreign Key: MJ: AI Vendor Type Definitions (vwAIVendorTypeDefinitions.ID)
36325
+ */
36326
+ get TypeID() {
36327
+ return this.Get('TypeID');
36328
+ }
36329
+ set TypeID(value) {
36330
+ this.Set('TypeID', value);
36331
+ }
36332
+ /**
36333
+ * * Field Name: Rank
36334
+ * * Display Name: Rank
36335
+ * * SQL Data Type: int
36336
+ * * Default Value: 0
36337
+ * * Description: Determines the priority rank of this type for the vendor. Higher values indicate higher priority.
36338
+ */
36339
+ get Rank() {
36340
+ return this.Get('Rank');
36341
+ }
36342
+ set Rank(value) {
36343
+ this.Set('Rank', value);
36344
+ }
36345
+ /**
36346
+ * * Field Name: Status
36347
+ * * Display Name: Status
36348
+ * * SQL Data Type: nvarchar(20)
36349
+ * * Default Value: Active
36350
+ * * Value List Type: List
36351
+ * * Possible Values
36352
+ * * Active
36353
+ * * Inactive
36354
+ * * Deprecated
36355
+ * * Preview
36356
+ * * Description: The current status of this vendor type. Values include Active, Inactive, Deprecated, and Preview.
36357
+ */
36358
+ get Status() {
36359
+ return this.Get('Status');
36360
+ }
36361
+ set Status(value) {
36362
+ this.Set('Status', value);
36363
+ }
36364
+ /**
36365
+ * * Field Name: __mj_CreatedAt
36366
+ * * Display Name: Created At
36367
+ * * SQL Data Type: datetimeoffset
36368
+ * * Default Value: getutcdate()
36369
+ */
36370
+ get __mj_CreatedAt() {
36371
+ return this.Get('__mj_CreatedAt');
36372
+ }
36373
+ /**
36374
+ * * Field Name: __mj_UpdatedAt
36375
+ * * Display Name: Updated At
36376
+ * * SQL Data Type: datetimeoffset
36377
+ * * Default Value: getutcdate()
36378
+ */
36379
+ get __mj_UpdatedAt() {
36380
+ return this.Get('__mj_UpdatedAt');
36381
+ }
36382
+ /**
36383
+ * * Field Name: Vendor
36384
+ * * Display Name: Vendor
36385
+ * * SQL Data Type: nvarchar(50)
36386
+ */
36387
+ get Vendor() {
36388
+ return this.Get('Vendor');
36389
+ }
36390
+ /**
36391
+ * * Field Name: Type
36392
+ * * Display Name: Type
36393
+ * * SQL Data Type: nvarchar(50)
36394
+ */
36395
+ get Type() {
36396
+ return this.Get('Type');
36397
+ }
36398
+ };
36399
+ exports.AIVendorTypeEntity = AIVendorTypeEntity;
36400
+ exports.AIVendorTypeEntity = AIVendorTypeEntity = __decorate([
36401
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Vendor Types')
36402
+ ], AIVendorTypeEntity);
36403
+ /**
36404
+ * MJ: AI Vendors - strongly typed entity sub-class
36405
+ * * Schema: __mj
36406
+ * * Base Table: AIVendor
36407
+ * * Base View: vwAIVendors
36408
+ * * @description Stores information about AI vendors providing models and/or inference services.
36409
+ * * Primary Key: ID
36410
+ * @extends {BaseEntity}
36411
+ * @class
36412
+ * @public
36413
+ */
36414
+ let AIVendorEntity = class AIVendorEntity extends core_1.BaseEntity {
36415
+ /**
36416
+ * Loads the MJ: AI Vendors record from the database
36417
+ * @param ID: string - primary key value to load the MJ: AI Vendors record.
36418
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
36419
+ * @returns {Promise<boolean>} - true if successful, false otherwise
36420
+ * @public
36421
+ * @async
36422
+ * @memberof AIVendorEntity
36423
+ * @method
36424
+ * @override
36425
+ */
36426
+ async Load(ID, EntityRelationshipsToLoad) {
36427
+ const compositeKey = new core_1.CompositeKey();
36428
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
36429
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
36430
+ }
36431
+ /**
36432
+ * * Field Name: ID
36433
+ * * Display Name: ID
36434
+ * * SQL Data Type: uniqueidentifier
36435
+ * * Default Value: newsequentialid()
36436
+ */
36437
+ get ID() {
36438
+ return this.Get('ID');
36439
+ }
36440
+ set ID(value) {
36441
+ this.Set('ID', value);
36442
+ }
36443
+ /**
36444
+ * * Field Name: Name
36445
+ * * Display Name: Name
36446
+ * * SQL Data Type: nvarchar(50)
36447
+ * * Description: The unique name of the vendor.
36448
+ */
36449
+ get Name() {
36450
+ return this.Get('Name');
36451
+ }
36452
+ set Name(value) {
36453
+ this.Set('Name', value);
36454
+ }
36455
+ /**
36456
+ * * Field Name: Description
36457
+ * * Display Name: Description
36458
+ * * SQL Data Type: nvarchar(MAX)
36459
+ * * Description: Detailed description of the vendor and their AI offerings.
36460
+ */
36461
+ get Description() {
36462
+ return this.Get('Description');
36463
+ }
36464
+ set Description(value) {
36465
+ this.Set('Description', value);
36466
+ }
36467
+ /**
36468
+ * * Field Name: __mj_CreatedAt
36469
+ * * Display Name: Created At
36470
+ * * SQL Data Type: datetimeoffset
36471
+ * * Default Value: getutcdate()
36472
+ */
36473
+ get __mj_CreatedAt() {
36474
+ return this.Get('__mj_CreatedAt');
36475
+ }
36476
+ /**
36477
+ * * Field Name: __mj_UpdatedAt
36478
+ * * Display Name: Updated At
36479
+ * * SQL Data Type: datetimeoffset
36480
+ * * Default Value: getutcdate()
36481
+ */
36482
+ get __mj_UpdatedAt() {
36483
+ return this.Get('__mj_UpdatedAt');
36484
+ }
36485
+ };
36486
+ exports.AIVendorEntity = AIVendorEntity;
36487
+ exports.AIVendorEntity = AIVendorEntity = __decorate([
36488
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Vendors')
36489
+ ], AIVendorEntity);
36490
+ /**
36491
+ * MJ: Artifact Types - strongly typed entity sub-class
36492
+ * * Schema: __mj
36493
+ * * Base Table: ArtifactType
36494
+ * * Base View: vwArtifactTypes
36495
+ * * @description Defines the types of artifacts that can be created within conversations
36496
+ * * Primary Key: ID
36497
+ * @extends {BaseEntity}
36498
+ * @class
36499
+ * @public
36500
+ */
36501
+ let ArtifactTypeEntity = class ArtifactTypeEntity extends core_1.BaseEntity {
36502
+ /**
36503
+ * Loads the MJ: Artifact Types record from the database
36504
+ * @param ID: string - primary key value to load the MJ: Artifact Types record.
36505
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
36506
+ * @returns {Promise<boolean>} - true if successful, false otherwise
36507
+ * @public
36508
+ * @async
36509
+ * @memberof ArtifactTypeEntity
36510
+ * @method
36511
+ * @override
36512
+ */
36513
+ async Load(ID, EntityRelationshipsToLoad) {
36514
+ const compositeKey = new core_1.CompositeKey();
36515
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
36516
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
36517
+ }
36518
+ /**
36519
+ * * Field Name: ID
36520
+ * * Display Name: ID
36521
+ * * SQL Data Type: uniqueidentifier
36522
+ */
36523
+ get ID() {
36524
+ return this.Get('ID');
36525
+ }
36526
+ set ID(value) {
36527
+ this.Set('ID', value);
36528
+ }
36529
+ /**
36530
+ * * Field Name: Name
36531
+ * * Display Name: Name
36532
+ * * SQL Data Type: nvarchar(100)
36533
+ * * Description: Display name of the artifact type
36534
+ */
36535
+ get Name() {
36536
+ return this.Get('Name');
36537
+ }
36538
+ set Name(value) {
36539
+ this.Set('Name', value);
36540
+ }
36541
+ /**
36542
+ * * Field Name: Description
36543
+ * * Display Name: Description
36544
+ * * SQL Data Type: nvarchar(MAX)
36545
+ * * Description: Detailed description of the artifact type
36546
+ */
36547
+ get Description() {
36548
+ return this.Get('Description');
36549
+ }
36550
+ set Description(value) {
36551
+ this.Set('Description', value);
36552
+ }
36553
+ /**
36554
+ * * Field Name: ContentType
36555
+ * * Display Name: Content Type
36556
+ * * SQL Data Type: nvarchar(100)
36557
+ * * Description: MIME type or content identifier for this artifact type
36558
+ */
36559
+ get ContentType() {
36560
+ return this.Get('ContentType');
36561
+ }
36562
+ set ContentType(value) {
36563
+ this.Set('ContentType', value);
36564
+ }
36565
+ /**
36566
+ * * Field Name: IsEnabled
36567
+ * * Display Name: Is Enabled
36568
+ * * SQL Data Type: bit
36569
+ * * Default Value: 1
36570
+ * * Description: Indicates if this artifact type is currently available for use
36571
+ */
36572
+ get IsEnabled() {
36573
+ return this.Get('IsEnabled');
36574
+ }
36575
+ set IsEnabled(value) {
36576
+ this.Set('IsEnabled', value);
36577
+ }
36578
+ /**
36579
+ * * Field Name: __mj_CreatedAt
36580
+ * * Display Name: Created At
36581
+ * * SQL Data Type: datetimeoffset
36582
+ * * Default Value: getutcdate()
36583
+ */
36584
+ get __mj_CreatedAt() {
36585
+ return this.Get('__mj_CreatedAt');
36586
+ }
36587
+ /**
36588
+ * * Field Name: __mj_UpdatedAt
36589
+ * * Display Name: Updated At
36590
+ * * SQL Data Type: datetimeoffset
36591
+ * * Default Value: getutcdate()
36592
+ */
36593
+ get __mj_UpdatedAt() {
36594
+ return this.Get('__mj_UpdatedAt');
36595
+ }
36596
+ };
36597
+ exports.ArtifactTypeEntity = ArtifactTypeEntity;
36598
+ exports.ArtifactTypeEntity = ArtifactTypeEntity = __decorate([
36599
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Artifact Types')
36600
+ ], ArtifactTypeEntity);
36601
+ /**
36602
+ * MJ: Component Dependencies - strongly typed entity sub-class
36603
+ * * Schema: __mj
36604
+ * * Base Table: ComponentDependency
36605
+ * * Base View: vwComponentDependencies
36606
+ * * @description Tracks component-to-component dependencies for composition
36607
+ * * Primary Key: ID
36608
+ * @extends {BaseEntity}
36609
+ * @class
36610
+ * @public
36611
+ */
36612
+ let ComponentDependencyEntity = class ComponentDependencyEntity extends core_1.BaseEntity {
36613
+ /**
36614
+ * Loads the MJ: Component Dependencies record from the database
36615
+ * @param ID: string - primary key value to load the MJ: Component Dependencies record.
36616
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
36617
+ * @returns {Promise<boolean>} - true if successful, false otherwise
36618
+ * @public
36619
+ * @async
36620
+ * @memberof ComponentDependencyEntity
36621
+ * @method
36622
+ * @override
36623
+ */
36624
+ async Load(ID, EntityRelationshipsToLoad) {
36625
+ const compositeKey = new core_1.CompositeKey();
36626
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
36627
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
36628
+ }
36629
+ /**
36630
+ * * Field Name: ID
36631
+ * * Display Name: ID
36632
+ * * SQL Data Type: uniqueidentifier
36633
+ * * Default Value: newsequentialid()
36634
+ * * Description: Primary key for component dependency
36635
+ */
36636
+ get ID() {
36637
+ return this.Get('ID');
36638
+ }
36639
+ set ID(value) {
36640
+ this.Set('ID', value);
36641
+ }
36642
+ /**
36643
+ * * Field Name: ComponentID
36644
+ * * Display Name: Component ID
36645
+ * * SQL Data Type: uniqueidentifier
36646
+ * * Related Entity/Foreign Key: MJ: Components (vwComponents.ID)
36647
+ * * Description: Foreign key to parent Component that has the dependency
36648
+ */
36649
+ get ComponentID() {
36650
+ return this.Get('ComponentID');
36651
+ }
36652
+ set ComponentID(value) {
36653
+ this.Set('ComponentID', value);
36654
+ }
36655
+ /**
36656
+ * * Field Name: DependencyComponentID
36657
+ * * Display Name: Dependency Component ID
36658
+ * * SQL Data Type: uniqueidentifier
36659
+ * * Related Entity/Foreign Key: MJ: Components (vwComponents.ID)
36660
+ * * Description: Foreign key to the Component that is depended upon
36661
+ */
36662
+ get DependencyComponentID() {
36663
+ return this.Get('DependencyComponentID');
36664
+ }
36665
+ set DependencyComponentID(value) {
36666
+ this.Set('DependencyComponentID', value);
36667
+ }
36668
+ /**
36669
+ * * Field Name: __mj_CreatedAt
36670
+ * * Display Name: Created At
36671
+ * * SQL Data Type: datetimeoffset
36672
+ * * Default Value: getutcdate()
36673
+ */
36674
+ get __mj_CreatedAt() {
36675
+ return this.Get('__mj_CreatedAt');
36676
+ }
36677
+ /**
36678
+ * * Field Name: __mj_UpdatedAt
36679
+ * * Display Name: Updated At
36680
+ * * SQL Data Type: datetimeoffset
36681
+ * * Default Value: getutcdate()
36682
+ */
36683
+ get __mj_UpdatedAt() {
36684
+ return this.Get('__mj_UpdatedAt');
36685
+ }
36686
+ /**
36687
+ * * Field Name: Component
36688
+ * * Display Name: Component
36689
+ * * SQL Data Type: nvarchar(500)
36690
+ */
36691
+ get Component() {
36692
+ return this.Get('Component');
36693
+ }
36694
+ /**
36695
+ * * Field Name: DependencyComponent
36696
+ * * Display Name: Dependency Component
36697
+ * * SQL Data Type: nvarchar(500)
36698
+ */
36699
+ get DependencyComponent() {
36700
+ return this.Get('DependencyComponent');
36701
+ }
36702
+ };
36703
+ exports.ComponentDependencyEntity = ComponentDependencyEntity;
36704
+ exports.ComponentDependencyEntity = ComponentDependencyEntity = __decorate([
36705
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Component Dependencies')
36706
+ ], ComponentDependencyEntity);
36707
+ /**
36708
+ * MJ: Component Libraries - strongly typed entity sub-class
36709
+ * * Schema: __mj
36710
+ * * Base Table: ComponentLibrary
36711
+ * * Base View: vwComponentLibraries
36712
+ * * @description Catalog of third-party JavaScript libraries that components can depend on
36713
+ * * Primary Key: ID
36714
+ * @extends {BaseEntity}
36715
+ * @class
36716
+ * @public
36717
+ */
36718
+ let ComponentLibraryEntity = class ComponentLibraryEntity extends core_1.BaseEntity {
36719
+ /**
36720
+ * Loads the MJ: Component Libraries record from the database
36721
+ * @param ID: string - primary key value to load the MJ: Component Libraries record.
36722
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
36723
+ * @returns {Promise<boolean>} - true if successful, false otherwise
36724
+ * @public
36725
+ * @async
36726
+ * @memberof ComponentLibraryEntity
36727
+ * @method
36728
+ * @override
36729
+ */
36730
+ async Load(ID, EntityRelationshipsToLoad) {
36731
+ const compositeKey = new core_1.CompositeKey();
36732
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
36733
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
36734
+ }
36735
+ /**
36736
+ * * Field Name: ID
36737
+ * * Display Name: ID
36738
+ * * SQL Data Type: uniqueidentifier
36739
+ * * Default Value: newsequentialid()
36740
+ * * Description: Primary key for the component library
36741
+ */
36742
+ get ID() {
36743
+ return this.Get('ID');
36744
+ }
36745
+ set ID(value) {
36746
+ this.Set('ID', value);
36747
+ }
36748
+ /**
36749
+ * * Field Name: Name
36750
+ * * Display Name: Name
36751
+ * * SQL Data Type: nvarchar(500)
36752
+ * * Description: NPM-style package name (e.g., recharts, lodash, @memberjunction/lib-name)
36753
+ */
36754
+ get Name() {
36755
+ return this.Get('Name');
36756
+ }
36757
+ set Name(value) {
36758
+ this.Set('Name', value);
36759
+ }
36760
+ /**
36761
+ * * Field Name: DisplayName
36762
+ * * Display Name: Display Name
36763
+ * * SQL Data Type: nvarchar(500)
36764
+ * * Description: User-friendly display name for the library
36765
+ */
36766
+ get DisplayName() {
36767
+ return this.Get('DisplayName');
36768
+ }
36769
+ set DisplayName(value) {
36770
+ this.Set('DisplayName', value);
36771
+ }
36772
+ /**
36773
+ * * Field Name: Version
36774
+ * * Display Name: Version
36775
+ * * SQL Data Type: nvarchar(100)
36776
+ * * Description: Library version number
36777
+ */
36778
+ get Version() {
36779
+ return this.Get('Version');
36780
+ }
36781
+ set Version(value) {
36782
+ this.Set('Version', value);
36783
+ }
36784
+ /**
36785
+ * * Field Name: GlobalVariable
36786
+ * * Display Name: Global Variable
36787
+ * * SQL Data Type: nvarchar(255)
36788
+ * * Description: Global variable name when loaded (e.g., _ for lodash, React for react)
36789
+ */
36790
+ get GlobalVariable() {
36791
+ return this.Get('GlobalVariable');
36792
+ }
36793
+ set GlobalVariable(value) {
36794
+ this.Set('GlobalVariable', value);
36795
+ }
36796
+ /**
36797
+ * * Field Name: Category
36798
+ * * Display Name: Category
36799
+ * * SQL Data Type: nvarchar(100)
36800
+ * * Value List Type: List
36801
+ * * Possible Values
36802
+ * * Core
36803
+ * * Runtime
36804
+ * * UI
36805
+ * * Charting
36806
+ * * Utility
36807
+ * * Other
36808
+ * * Description: Library category: Core, Runtime, UI, Charting, Utility, or Other
36809
+ */
36810
+ get Category() {
36811
+ return this.Get('Category');
36812
+ }
36813
+ set Category(value) {
36814
+ this.Set('Category', value);
36815
+ }
36816
+ /**
36817
+ * * Field Name: CDNUrl
36818
+ * * Display Name: CDN Url
36819
+ * * SQL Data Type: nvarchar(1000)
36820
+ * * Description: CDN URL for loading the library JavaScript
36821
+ */
36822
+ get CDNUrl() {
36823
+ return this.Get('CDNUrl');
36824
+ }
36825
+ set CDNUrl(value) {
36826
+ this.Set('CDNUrl', value);
36827
+ }
36828
+ /**
36829
+ * * Field Name: CDNCssUrl
36830
+ * * Display Name: CDN Css Url
36831
+ * * SQL Data Type: nvarchar(1000)
36832
+ * * Description: Optional CDN URL for loading library CSS
36833
+ */
36834
+ get CDNCssUrl() {
36835
+ return this.Get('CDNCssUrl');
36836
+ }
36837
+ set CDNCssUrl(value) {
36838
+ this.Set('CDNCssUrl', value);
36839
+ }
36840
+ /**
36841
+ * * Field Name: Description
36842
+ * * Display Name: Description
36843
+ * * SQL Data Type: nvarchar(MAX)
36844
+ * * Description: Description of the library and its capabilities
36845
+ */
36846
+ get Description() {
36847
+ return this.Get('Description');
36848
+ }
36849
+ set Description(value) {
36850
+ this.Set('Description', value);
36851
+ }
36852
+ /**
36853
+ * * Field Name: __mj_CreatedAt
36854
+ * * Display Name: Created At
36855
+ * * SQL Data Type: datetimeoffset
36856
+ * * Default Value: getutcdate()
36857
+ */
36858
+ get __mj_CreatedAt() {
36859
+ return this.Get('__mj_CreatedAt');
36860
+ }
36861
+ /**
36862
+ * * Field Name: __mj_UpdatedAt
36863
+ * * Display Name: Updated At
36864
+ * * SQL Data Type: datetimeoffset
36865
+ * * Default Value: getutcdate()
36866
+ */
36867
+ get __mj_UpdatedAt() {
36868
+ return this.Get('__mj_UpdatedAt');
36869
+ }
36870
+ };
36871
+ exports.ComponentLibraryEntity = ComponentLibraryEntity;
36872
+ exports.ComponentLibraryEntity = ComponentLibraryEntity = __decorate([
36873
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Component Libraries')
36874
+ ], ComponentLibraryEntity);
35700
36875
  /**
35701
- * MJ: AI Vendor Types - strongly typed entity sub-class
36876
+ * MJ: Component Library Links - strongly typed entity sub-class
35702
36877
  * * Schema: __mj
35703
- * * Base Table: AIVendorType
35704
- * * Base View: vwAIVendorTypes
35705
- * * @description Associates vendors with their types (Model Developer, Inference Provider) and tracks the status of each role.
36878
+ * * Base Table: ComponentLibraryLink
36879
+ * * Base View: vwComponentLibraryLinks
36880
+ * * @description Links components to their third-party library dependencies
35706
36881
  * * Primary Key: ID
35707
36882
  * @extends {BaseEntity}
35708
36883
  * @class
35709
36884
  * @public
35710
36885
  */
35711
- let AIVendorTypeEntity = class AIVendorTypeEntity extends core_1.BaseEntity {
36886
+ let ComponentLibraryLinkEntity = class ComponentLibraryLinkEntity extends core_1.BaseEntity {
35712
36887
  /**
35713
- * Loads the MJ: AI Vendor Types record from the database
35714
- * @param ID: string - primary key value to load the MJ: AI Vendor Types record.
36888
+ * Loads the MJ: Component Library Links record from the database
36889
+ * @param ID: string - primary key value to load the MJ: Component Library Links record.
35715
36890
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
35716
36891
  * @returns {Promise<boolean>} - true if successful, false otherwise
35717
36892
  * @public
35718
36893
  * @async
35719
- * @memberof AIVendorTypeEntity
36894
+ * @memberof ComponentLibraryLinkEntity
35720
36895
  * @method
35721
36896
  * @override
35722
36897
  */
@@ -35726,33 +36901,11 @@ let AIVendorTypeEntity = class AIVendorTypeEntity extends core_1.BaseEntity {
35726
36901
  return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
35727
36902
  }
35728
36903
  /**
35729
- * Validate() method override for MJ: AI Vendor Types entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
35730
- * * Rank: This rule ensures that the Rank value cannot be negative; it must be zero or higher.
35731
- * @public
35732
- * @method
35733
- * @override
35734
- */
35735
- Validate() {
35736
- const result = super.Validate();
35737
- this.ValidateRankNonNegative(result);
35738
- return result;
35739
- }
35740
- /**
35741
- * This rule ensures that the Rank value cannot be negative; it must be zero or higher.
35742
- * @param result - the ValidationResult object to add any errors or warnings to
35743
- * @public
35744
- * @method
35745
- */
35746
- ValidateRankNonNegative(result) {
35747
- if (this.Rank < 0) {
35748
- result.Errors.push(new core_1.ValidationErrorInfo("Rank", "Rank cannot be negative. It must be zero or higher.", this.Rank, core_1.ValidationErrorType.Failure));
35749
- }
35750
- }
35751
- /**
35752
36904
  * * Field Name: ID
35753
36905
  * * Display Name: ID
35754
36906
  * * SQL Data Type: uniqueidentifier
35755
36907
  * * Default Value: newsequentialid()
36908
+ * * Description: Primary key for component-library relationship
35756
36909
  */
35757
36910
  get ID() {
35758
36911
  return this.Get('ID');
@@ -35761,60 +36914,42 @@ let AIVendorTypeEntity = class AIVendorTypeEntity extends core_1.BaseEntity {
35761
36914
  this.Set('ID', value);
35762
36915
  }
35763
36916
  /**
35764
- * * Field Name: VendorID
35765
- * * Display Name: Vendor ID
36917
+ * * Field Name: ComponentID
36918
+ * * Display Name: Component ID
35766
36919
  * * SQL Data Type: uniqueidentifier
35767
- * * Related Entity/Foreign Key: MJ: AI Vendors (vwAIVendors.ID)
36920
+ * * Related Entity/Foreign Key: MJ: Components (vwComponents.ID)
36921
+ * * Description: Foreign key to Component that depends on the library
35768
36922
  */
35769
- get VendorID() {
35770
- return this.Get('VendorID');
36923
+ get ComponentID() {
36924
+ return this.Get('ComponentID');
35771
36925
  }
35772
- set VendorID(value) {
35773
- this.Set('VendorID', value);
36926
+ set ComponentID(value) {
36927
+ this.Set('ComponentID', value);
35774
36928
  }
35775
36929
  /**
35776
- * * Field Name: TypeID
35777
- * * Display Name: Type ID
36930
+ * * Field Name: LibraryID
36931
+ * * Display Name: Library ID
35778
36932
  * * SQL Data Type: uniqueidentifier
35779
- * * Related Entity/Foreign Key: MJ: AI Vendor Type Definitions (vwAIVendorTypeDefinitions.ID)
36933
+ * * Related Entity/Foreign Key: MJ: Component Libraries (vwComponentLibraries.ID)
36934
+ * * Description: Foreign key to ComponentLibrary that the component depends on
35780
36935
  */
35781
- get TypeID() {
35782
- return this.Get('TypeID');
35783
- }
35784
- set TypeID(value) {
35785
- this.Set('TypeID', value);
35786
- }
35787
- /**
35788
- * * Field Name: Rank
35789
- * * Display Name: Rank
35790
- * * SQL Data Type: int
35791
- * * Default Value: 0
35792
- * * Description: Determines the priority rank of this type for the vendor. Higher values indicate higher priority.
35793
- */
35794
- get Rank() {
35795
- return this.Get('Rank');
36936
+ get LibraryID() {
36937
+ return this.Get('LibraryID');
35796
36938
  }
35797
- set Rank(value) {
35798
- this.Set('Rank', value);
36939
+ set LibraryID(value) {
36940
+ this.Set('LibraryID', value);
35799
36941
  }
35800
36942
  /**
35801
- * * Field Name: Status
35802
- * * Display Name: Status
35803
- * * SQL Data Type: nvarchar(20)
35804
- * * Default Value: Active
35805
- * * Value List Type: List
35806
- * * Possible Values
35807
- * * Active
35808
- * * Inactive
35809
- * * Deprecated
35810
- * * Preview
35811
- * * Description: The current status of this vendor type. Values include Active, Inactive, Deprecated, and Preview.
36943
+ * * Field Name: MinVersion
36944
+ * * Display Name: Min Version
36945
+ * * SQL Data Type: nvarchar(100)
36946
+ * * Description: Minimum version requirement using semantic versioning (e.g., ^1.0.0, ~2.5.0)
35812
36947
  */
35813
- get Status() {
35814
- return this.Get('Status');
36948
+ get MinVersion() {
36949
+ return this.Get('MinVersion');
35815
36950
  }
35816
- set Status(value) {
35817
- this.Set('Status', value);
36951
+ set MinVersion(value) {
36952
+ this.Set('MinVersion', value);
35818
36953
  }
35819
36954
  /**
35820
36955
  * * Field Name: __mj_CreatedAt
@@ -35835,46 +36970,46 @@ let AIVendorTypeEntity = class AIVendorTypeEntity extends core_1.BaseEntity {
35835
36970
  return this.Get('__mj_UpdatedAt');
35836
36971
  }
35837
36972
  /**
35838
- * * Field Name: Vendor
35839
- * * Display Name: Vendor
35840
- * * SQL Data Type: nvarchar(50)
36973
+ * * Field Name: Component
36974
+ * * Display Name: Component
36975
+ * * SQL Data Type: nvarchar(500)
35841
36976
  */
35842
- get Vendor() {
35843
- return this.Get('Vendor');
36977
+ get Component() {
36978
+ return this.Get('Component');
35844
36979
  }
35845
36980
  /**
35846
- * * Field Name: Type
35847
- * * Display Name: Type
35848
- * * SQL Data Type: nvarchar(50)
36981
+ * * Field Name: Library
36982
+ * * Display Name: Library
36983
+ * * SQL Data Type: nvarchar(500)
35849
36984
  */
35850
- get Type() {
35851
- return this.Get('Type');
36985
+ get Library() {
36986
+ return this.Get('Library');
35852
36987
  }
35853
36988
  };
35854
- exports.AIVendorTypeEntity = AIVendorTypeEntity;
35855
- exports.AIVendorTypeEntity = AIVendorTypeEntity = __decorate([
35856
- (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Vendor Types')
35857
- ], AIVendorTypeEntity);
36989
+ exports.ComponentLibraryLinkEntity = ComponentLibraryLinkEntity;
36990
+ exports.ComponentLibraryLinkEntity = ComponentLibraryLinkEntity = __decorate([
36991
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Component Library Links')
36992
+ ], ComponentLibraryLinkEntity);
35858
36993
  /**
35859
- * MJ: AI Vendors - strongly typed entity sub-class
36994
+ * MJ: Component Registries - strongly typed entity sub-class
35860
36995
  * * Schema: __mj
35861
- * * Base Table: AIVendor
35862
- * * Base View: vwAIVendors
35863
- * * @description Stores information about AI vendors providing models and/or inference services.
36996
+ * * Base Table: ComponentRegistry
36997
+ * * Base View: vwComponentRegistries
36998
+ * * @description Registry catalog for component sources, similar to NPM registry but supporting multiple sources
35864
36999
  * * Primary Key: ID
35865
37000
  * @extends {BaseEntity}
35866
37001
  * @class
35867
37002
  * @public
35868
37003
  */
35869
- let AIVendorEntity = class AIVendorEntity extends core_1.BaseEntity {
37004
+ let ComponentRegistryEntity = class ComponentRegistryEntity extends core_1.BaseEntity {
35870
37005
  /**
35871
- * Loads the MJ: AI Vendors record from the database
35872
- * @param ID: string - primary key value to load the MJ: AI Vendors record.
37006
+ * Loads the MJ: Component Registries record from the database
37007
+ * @param ID: string - primary key value to load the MJ: Component Registries record.
35873
37008
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
35874
37009
  * @returns {Promise<boolean>} - true if successful, false otherwise
35875
37010
  * @public
35876
37011
  * @async
35877
- * @memberof AIVendorEntity
37012
+ * @memberof ComponentRegistryEntity
35878
37013
  * @method
35879
37014
  * @override
35880
37015
  */
@@ -35888,6 +37023,7 @@ let AIVendorEntity = class AIVendorEntity extends core_1.BaseEntity {
35888
37023
  * * Display Name: ID
35889
37024
  * * SQL Data Type: uniqueidentifier
35890
37025
  * * Default Value: newsequentialid()
37026
+ * * Description: Primary key for the component registry
35891
37027
  */
35892
37028
  get ID() {
35893
37029
  return this.Get('ID');
@@ -35898,8 +37034,8 @@ let AIVendorEntity = class AIVendorEntity extends core_1.BaseEntity {
35898
37034
  /**
35899
37035
  * * Field Name: Name
35900
37036
  * * Display Name: Name
35901
- * * SQL Data Type: nvarchar(50)
35902
- * * Description: The unique name of the vendor.
37037
+ * * SQL Data Type: nvarchar(255)
37038
+ * * Description: Name of the registry (e.g., MemberJunction Registry, NPM, Internal Registry)
35903
37039
  */
35904
37040
  get Name() {
35905
37041
  return this.Get('Name');
@@ -35911,7 +37047,7 @@ let AIVendorEntity = class AIVendorEntity extends core_1.BaseEntity {
35911
37047
  * * Field Name: Description
35912
37048
  * * Display Name: Description
35913
37049
  * * SQL Data Type: nvarchar(MAX)
35914
- * * Description: Detailed description of the vendor and their AI offerings.
37050
+ * * Description: Description of the registry and its purpose
35915
37051
  */
35916
37052
  get Description() {
35917
37053
  return this.Get('Description');
@@ -35920,6 +37056,64 @@ let AIVendorEntity = class AIVendorEntity extends core_1.BaseEntity {
35920
37056
  this.Set('Description', value);
35921
37057
  }
35922
37058
  /**
37059
+ * * Field Name: URI
37060
+ * * Display Name: URI
37061
+ * * SQL Data Type: nvarchar(500)
37062
+ * * Description: Registry endpoint URI (e.g., https://registry.memberjunction.org)
37063
+ */
37064
+ get URI() {
37065
+ return this.Get('URI');
37066
+ }
37067
+ set URI(value) {
37068
+ this.Set('URI', value);
37069
+ }
37070
+ /**
37071
+ * * Field Name: Type
37072
+ * * Display Name: Type
37073
+ * * SQL Data Type: nvarchar(50)
37074
+ * * Value List Type: List
37075
+ * * Possible Values
37076
+ * * Public
37077
+ * * Private
37078
+ * * Internal
37079
+ * * Description: Type of registry: public, private, or internal
37080
+ */
37081
+ get Type() {
37082
+ return this.Get('Type');
37083
+ }
37084
+ set Type(value) {
37085
+ this.Set('Type', value);
37086
+ }
37087
+ /**
37088
+ * * Field Name: APIVersion
37089
+ * * Display Name: API Version
37090
+ * * SQL Data Type: nvarchar(50)
37091
+ * * Description: API version supported by the registry for compatibility
37092
+ */
37093
+ get APIVersion() {
37094
+ return this.Get('APIVersion');
37095
+ }
37096
+ set APIVersion(value) {
37097
+ this.Set('APIVersion', value);
37098
+ }
37099
+ /**
37100
+ * * Field Name: Status
37101
+ * * Display Name: Status
37102
+ * * SQL Data Type: nvarchar(50)
37103
+ * * Value List Type: List
37104
+ * * Possible Values
37105
+ * * Active
37106
+ * * Deprecated
37107
+ * * Offline
37108
+ * * Description: Current status of the registry: active, deprecated, or offline
37109
+ */
37110
+ get Status() {
37111
+ return this.Get('Status');
37112
+ }
37113
+ set Status(value) {
37114
+ this.Set('Status', value);
37115
+ }
37116
+ /**
35923
37117
  * * Field Name: __mj_CreatedAt
35924
37118
  * * Display Name: Created At
35925
37119
  * * SQL Data Type: datetimeoffset
@@ -35938,30 +37132,30 @@ let AIVendorEntity = class AIVendorEntity extends core_1.BaseEntity {
35938
37132
  return this.Get('__mj_UpdatedAt');
35939
37133
  }
35940
37134
  };
35941
- exports.AIVendorEntity = AIVendorEntity;
35942
- exports.AIVendorEntity = AIVendorEntity = __decorate([
35943
- (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Vendors')
35944
- ], AIVendorEntity);
37135
+ exports.ComponentRegistryEntity = ComponentRegistryEntity;
37136
+ exports.ComponentRegistryEntity = ComponentRegistryEntity = __decorate([
37137
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Component Registries')
37138
+ ], ComponentRegistryEntity);
35945
37139
  /**
35946
- * MJ: Artifact Types - strongly typed entity sub-class
37140
+ * MJ: Components - strongly typed entity sub-class
35947
37141
  * * Schema: __mj
35948
- * * Base Table: ArtifactType
35949
- * * Base View: vwArtifactTypes
35950
- * * @description Defines the types of artifacts that can be created within conversations
37142
+ * * Base Table: Component
37143
+ * * Base View: vwComponents
37144
+ * * @description Main catalog of reusable components with versioning and registry support
35951
37145
  * * Primary Key: ID
35952
37146
  * @extends {BaseEntity}
35953
37147
  * @class
35954
37148
  * @public
35955
37149
  */
35956
- let ArtifactTypeEntity = class ArtifactTypeEntity extends core_1.BaseEntity {
37150
+ let ComponentEntity = class ComponentEntity extends core_1.BaseEntity {
35957
37151
  /**
35958
- * Loads the MJ: Artifact Types record from the database
35959
- * @param ID: string - primary key value to load the MJ: Artifact Types record.
37152
+ * Loads the MJ: Components record from the database
37153
+ * @param ID: string - primary key value to load the MJ: Components record.
35960
37154
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
35961
37155
  * @returns {Promise<boolean>} - true if successful, false otherwise
35962
37156
  * @public
35963
37157
  * @async
35964
- * @memberof ArtifactTypeEntity
37158
+ * @memberof ComponentEntity
35965
37159
  * @method
35966
37160
  * @override
35967
37161
  */
@@ -35974,6 +37168,8 @@ let ArtifactTypeEntity = class ArtifactTypeEntity extends core_1.BaseEntity {
35974
37168
  * * Field Name: ID
35975
37169
  * * Display Name: ID
35976
37170
  * * SQL Data Type: uniqueidentifier
37171
+ * * Default Value: newsequentialid()
37172
+ * * Description: Immutable UUID that remains the same across all systems
35977
37173
  */
35978
37174
  get ID() {
35979
37175
  return this.Get('ID');
@@ -35982,10 +37178,22 @@ let ArtifactTypeEntity = class ArtifactTypeEntity extends core_1.BaseEntity {
35982
37178
  this.Set('ID', value);
35983
37179
  }
35984
37180
  /**
37181
+ * * Field Name: Namespace
37182
+ * * Display Name: Namespace
37183
+ * * SQL Data Type: nvarchar(MAX)
37184
+ * * Description: Hierarchical namespace path (e.g., dashboards/sales for local, @memberjunction/dashboards/financial for external)
37185
+ */
37186
+ get Namespace() {
37187
+ return this.Get('Namespace');
37188
+ }
37189
+ set Namespace(value) {
37190
+ this.Set('Namespace', value);
37191
+ }
37192
+ /**
35985
37193
  * * Field Name: Name
35986
37194
  * * Display Name: Name
35987
- * * SQL Data Type: nvarchar(100)
35988
- * * Description: Display name of the artifact type
37195
+ * * SQL Data Type: nvarchar(500)
37196
+ * * Description: Component name within the namespace (e.g., revenue-tracker)
35989
37197
  */
35990
37198
  get Name() {
35991
37199
  return this.Get('Name');
@@ -35994,10 +37202,47 @@ let ArtifactTypeEntity = class ArtifactTypeEntity extends core_1.BaseEntity {
35994
37202
  this.Set('Name', value);
35995
37203
  }
35996
37204
  /**
37205
+ * * Field Name: Version
37206
+ * * Display Name: Version
37207
+ * * SQL Data Type: nvarchar(50)
37208
+ * * Description: Semantic version number (e.g., 1.0.0, 1.2.3-beta)
37209
+ */
37210
+ get Version() {
37211
+ return this.Get('Version');
37212
+ }
37213
+ set Version(value) {
37214
+ this.Set('Version', value);
37215
+ }
37216
+ /**
37217
+ * * Field Name: VersionSequence
37218
+ * * Display Name: Version Sequence
37219
+ * * SQL Data Type: int
37220
+ * * Default Value: 0
37221
+ * * Description: Numeric sequence for sorting versions
37222
+ */
37223
+ get VersionSequence() {
37224
+ return this.Get('VersionSequence');
37225
+ }
37226
+ set VersionSequence(value) {
37227
+ this.Set('VersionSequence', value);
37228
+ }
37229
+ /**
37230
+ * * Field Name: Title
37231
+ * * Display Name: Title
37232
+ * * SQL Data Type: nvarchar(1000)
37233
+ * * Description: User-friendly display title for the component
37234
+ */
37235
+ get Title() {
37236
+ return this.Get('Title');
37237
+ }
37238
+ set Title(value) {
37239
+ this.Set('Title', value);
37240
+ }
37241
+ /**
35997
37242
  * * Field Name: Description
35998
37243
  * * Display Name: Description
35999
37244
  * * SQL Data Type: nvarchar(MAX)
36000
- * * Description: Detailed description of the artifact type
37245
+ * * Description: Detailed description of the component functionality
36001
37246
  */
36002
37247
  get Description() {
36003
37248
  return this.Get('Description');
@@ -36006,29 +37251,118 @@ let ArtifactTypeEntity = class ArtifactTypeEntity extends core_1.BaseEntity {
36006
37251
  this.Set('Description', value);
36007
37252
  }
36008
37253
  /**
36009
- * * Field Name: ContentType
36010
- * * Display Name: Content Type
36011
- * * SQL Data Type: nvarchar(100)
36012
- * * Description: MIME type or content identifier for this artifact type
37254
+ * * Field Name: Type
37255
+ * * Display Name: Type
37256
+ * * SQL Data Type: nvarchar(255)
37257
+ * * Value List Type: List
37258
+ * * Possible Values
37259
+ * * Report
37260
+ * * Dashboard
37261
+ * * Form
37262
+ * * Table
37263
+ * * Chart
37264
+ * * Navigation
37265
+ * * Search
37266
+ * * Widget
37267
+ * * Utility
37268
+ * * Other
37269
+ * * Description: Component type: report, dashboard, form, table, chart, navigation, search, widget, utility, or other
36013
37270
  */
36014
- get ContentType() {
36015
- return this.Get('ContentType');
37271
+ get Type() {
37272
+ return this.Get('Type');
36016
37273
  }
36017
- set ContentType(value) {
36018
- this.Set('ContentType', value);
37274
+ set Type(value) {
37275
+ this.Set('Type', value);
36019
37276
  }
36020
37277
  /**
36021
- * * Field Name: IsEnabled
36022
- * * Display Name: Is Enabled
36023
- * * SQL Data Type: bit
36024
- * * Default Value: 1
36025
- * * Description: Indicates if this artifact type is currently available for use
37278
+ * * Field Name: Status
37279
+ * * Display Name: Status
37280
+ * * SQL Data Type: nvarchar(50)
37281
+ * * Value List Type: List
37282
+ * * Possible Values
37283
+ * * Draft
37284
+ * * Published
37285
+ * * Deprecated
37286
+ * * Description: Publication status: draft, published, or deprecated
36026
37287
  */
36027
- get IsEnabled() {
36028
- return this.Get('IsEnabled');
37288
+ get Status() {
37289
+ return this.Get('Status');
36029
37290
  }
36030
- set IsEnabled(value) {
36031
- this.Set('IsEnabled', value);
37291
+ set Status(value) {
37292
+ this.Set('Status', value);
37293
+ }
37294
+ /**
37295
+ * * Field Name: DeveloperName
37296
+ * * Display Name: Developer Name
37297
+ * * SQL Data Type: nvarchar(255)
37298
+ * * Description: Name of the component developer or author
37299
+ */
37300
+ get DeveloperName() {
37301
+ return this.Get('DeveloperName');
37302
+ }
37303
+ set DeveloperName(value) {
37304
+ this.Set('DeveloperName', value);
37305
+ }
37306
+ /**
37307
+ * * Field Name: DeveloperEmail
37308
+ * * Display Name: Developer Email
37309
+ * * SQL Data Type: nvarchar(255)
37310
+ * * Description: Contact email for the component developer
37311
+ */
37312
+ get DeveloperEmail() {
37313
+ return this.Get('DeveloperEmail');
37314
+ }
37315
+ set DeveloperEmail(value) {
37316
+ this.Set('DeveloperEmail', value);
37317
+ }
37318
+ /**
37319
+ * * Field Name: DeveloperOrganization
37320
+ * * Display Name: Developer Organization
37321
+ * * SQL Data Type: nvarchar(255)
37322
+ * * Description: Organization name of the component developer
37323
+ */
37324
+ get DeveloperOrganization() {
37325
+ return this.Get('DeveloperOrganization');
37326
+ }
37327
+ set DeveloperOrganization(value) {
37328
+ this.Set('DeveloperOrganization', value);
37329
+ }
37330
+ /**
37331
+ * * Field Name: SourceRegistryID
37332
+ * * Display Name: Source Registry ID
37333
+ * * SQL Data Type: uniqueidentifier
37334
+ * * Related Entity/Foreign Key: MJ: Component Registries (vwComponentRegistries.ID)
37335
+ * * Description: Foreign key to ComponentRegistry - NULL for local components, populated for replicated ones
37336
+ */
37337
+ get SourceRegistryID() {
37338
+ return this.Get('SourceRegistryID');
37339
+ }
37340
+ set SourceRegistryID(value) {
37341
+ this.Set('SourceRegistryID', value);
37342
+ }
37343
+ /**
37344
+ * * Field Name: ReplicatedAt
37345
+ * * Display Name: Replicated At
37346
+ * * SQL Data Type: datetimeoffset
37347
+ * * Description: Timestamp when the component was replicated from external registry (NULL for local components)
37348
+ */
37349
+ get ReplicatedAt() {
37350
+ return this.Get('ReplicatedAt');
37351
+ }
37352
+ set ReplicatedAt(value) {
37353
+ this.Set('ReplicatedAt', value);
37354
+ }
37355
+ /**
37356
+ * * Field Name: LastSyncedAt
37357
+ * * Display Name: Last Synced At
37358
+ * * SQL Data Type: datetimeoffset
37359
+ * * Description: Last synchronization timestamp with the source registry
37360
+ */
37361
+ get LastSyncedAt() {
37362
+ return this.Get('LastSyncedAt');
37363
+ }
37364
+ set LastSyncedAt(value) {
37365
+ this.Set('LastSyncedAt', value);
36032
37366
  }
36033
37367
  /**
36034
37368
  * * Field Name: __mj_CreatedAt
@@ -36048,11 +37382,79 @@ let ArtifactTypeEntity = class ArtifactTypeEntity extends core_1.BaseEntity {
36048
37382
  get __mj_UpdatedAt() {
36049
37383
  return this.Get('__mj_UpdatedAt');
36050
37384
  }
37385
+ /**
37386
+ * * Field Name: Specification
37387
+ * * Display Name: Specification
37388
+ * * SQL Data Type: nvarchar(MAX)
37389
+ * * Description: Complete JSON specification object for the component
37390
+ */
37391
+ get Specification() {
37392
+ return this.Get('Specification');
37393
+ }
37394
+ set Specification(value) {
37395
+ this.Set('Specification', value);
37396
+ }
37397
+ /**
37398
+ * * Field Name: FunctionalRequirements
37399
+ * * Display Name: Functional Requirements
37400
+ * * SQL Data Type: nvarchar(MAX)
37401
+ * * Description: Functional requirements describing what the component should accomplish
37402
+ */
37403
+ get FunctionalRequirements() {
37404
+ return this.Get('FunctionalRequirements');
37405
+ }
37406
+ set FunctionalRequirements(value) {
37407
+ this.Set('FunctionalRequirements', value);
37408
+ }
37409
+ /**
37410
+ * * Field Name: TechnicalDesign
37411
+ * * Display Name: Technical Design
37412
+ * * SQL Data Type: nvarchar(MAX)
37413
+ * * Description: Technical design describing how the component is implemented
37414
+ */
37415
+ get TechnicalDesign() {
37416
+ return this.Get('TechnicalDesign');
37417
+ }
37418
+ set TechnicalDesign(value) {
37419
+ this.Set('TechnicalDesign', value);
37420
+ }
37421
+ /**
37422
+ * * Field Name: FunctionalRequirementsVector
37423
+ * * Display Name: Functional Requirements Vector
37424
+ * * SQL Data Type: nvarchar(MAX)
37425
+ * * Description: Vector embedding of the functional requirements for similarity search
37426
+ */
37427
+ get FunctionalRequirementsVector() {
37428
+ return this.Get('FunctionalRequirementsVector');
37429
+ }
37430
+ set FunctionalRequirementsVector(value) {
37431
+ this.Set('FunctionalRequirementsVector', value);
37432
+ }
37433
+ /**
37434
+ * * Field Name: TechnicalDesignVector
37435
+ * * Display Name: Technical Design Vector
37436
+ * * SQL Data Type: nvarchar(MAX)
37437
+ * * Description: Vector embedding of the technical design for similarity search
37438
+ */
37439
+ get TechnicalDesignVector() {
37440
+ return this.Get('TechnicalDesignVector');
37441
+ }
37442
+ set TechnicalDesignVector(value) {
37443
+ this.Set('TechnicalDesignVector', value);
37444
+ }
37445
+ /**
37446
+ * * Field Name: SourceRegistry
37447
+ * * Display Name: Source Registry
37448
+ * * SQL Data Type: nvarchar(255)
37449
+ */
37450
+ get SourceRegistry() {
37451
+ return this.Get('SourceRegistry');
37452
+ }
36051
37453
  };
36052
- exports.ArtifactTypeEntity = ArtifactTypeEntity;
36053
- exports.ArtifactTypeEntity = ArtifactTypeEntity = __decorate([
36054
- (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Artifact Types')
36055
- ], ArtifactTypeEntity);
37454
+ exports.ComponentEntity = ComponentEntity;
37455
+ exports.ComponentEntity = ComponentEntity = __decorate([
37456
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Components')
37457
+ ], ComponentEntity);
36056
37458
  /**
36057
37459
  * MJ: Conversation Artifact Permissions - strongly typed entity sub-class
36058
37460
  * * Schema: __mj
@@ -37897,6 +39299,31 @@ let QueryEntity = class QueryEntity extends core_1.BaseEntity {
37897
39299
  this.Set('CacheMaxSize', value);
37898
39300
  }
37899
39301
  /**
39302
+ * * Field Name: EmbeddingVector
39303
+ * * Display Name: Embedding Vector
39304
+ * * SQL Data Type: nvarchar(MAX)
39305
+ * * Description: Optional JSON-serialized embedding vector for the query, used for similarity search and query analysis
39306
+ */
39307
+ get EmbeddingVector() {
39308
+ return this.Get('EmbeddingVector');
39309
+ }
39310
+ set EmbeddingVector(value) {
39311
+ this.Set('EmbeddingVector', value);
39312
+ }
39313
+ /**
39314
+ * * Field Name: EmbeddingModelID
39315
+ * * Display Name: Embedding Model ID
39316
+ * * SQL Data Type: uniqueidentifier
39317
+ * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
39318
+ * * Description: The AI Model used to generate the embedding vector for this query. Required for vector similarity comparisons.
39319
+ */
39320
+ get EmbeddingModelID() {
39321
+ return this.Get('EmbeddingModelID');
39322
+ }
39323
+ set EmbeddingModelID(value) {
39324
+ this.Set('EmbeddingModelID', value);
39325
+ }
39326
+ /**
37900
39327
  * * Field Name: Category
37901
39328
  * * Display Name: Category
37902
39329
  * * SQL Data Type: nvarchar(50)
@@ -37904,6 +39331,14 @@ let QueryEntity = class QueryEntity extends core_1.BaseEntity {
37904
39331
  get Category() {
37905
39332
  return this.Get('Category');
37906
39333
  }
39334
+ /**
39335
+ * * Field Name: EmbeddingModel
39336
+ * * Display Name: Embedding Model
39337
+ * * SQL Data Type: nvarchar(50)
39338
+ */
39339
+ get EmbeddingModel() {
39340
+ return this.Get('EmbeddingModel');
39341
+ }
37907
39342
  };
37908
39343
  exports.QueryEntity = QueryEntity;
37909
39344
  exports.QueryEntity = QueryEntity = __decorate([