@memberjunction/core-entities 3.2.0 → 3.3.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,15 +8,15 @@ 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.CollectionSchema = exports.CollectionPermissionSchema = exports.CollectionArtifactSchema = exports.ArtifactSchema = exports.ArtifactVersionSchema = exports.ArtifactVersionAttributeSchema = exports.ArtifactUseSchema = exports.ArtifactTypeSchema = exports.ArtifactPermissionSchema = exports.APIScopeSchema = exports.APIKeySchema = exports.APIKeyUsageLogSchema = exports.APIKeyScopeSchema = exports.AIVendorSchema = exports.AIVendorTypeSchema = exports.AIVendorTypeDefinitionSchema = exports.AIPromptRunSchema = exports.AIPromptRunMediaSchema = exports.AIPromptModelSchema = exports.AIModelVendorSchema = exports.AIModelPriceUnitTypeSchema = exports.AIModelPriceTypeSchema = exports.AIModelModalitySchema = exports.AIModelCostSchema = exports.AIModelArchitectureSchema = exports.AIModalitySchema = exports.AICredentialBindingSchema = exports.AIConfigurationSchema = exports.AIConfigurationParamSchema = exports.AIArchitectureSchema = exports.AIAgentTypeSchema = exports.AIAgentStepSchema = exports.AIAgentStepPathSchema = exports.AIAgentRunSchema = exports.AIAgentRunStepSchema = exports.AIAgentRunMediaSchema = exports.AIAgentRelationshipSchema = exports.AIAgentPromptSchema = exports.AIAgentPermissionSchema = exports.AIAgentModalitySchema = exports.AIAgentExampleSchema = exports.AIAgentDataSourceSchema = exports.AIAgentConfigurationSchema = exports.AIAgentArtifactTypeSchema = exports.AccessControlRuleSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
12
- exports.UserSettingSchema = exports.UserNotificationTypeSchema = exports.UserNotificationPreferenceSchema = exports.TestSchema = exports.TestTypeSchema = exports.TestSuiteSchema = exports.TestSuiteTestSchema = exports.TestSuiteRunSchema = exports.TestRunSchema = exports.TestRunFeedbackSchema = exports.TestRubricSchema = exports.TaskSchema = exports.TaskTypeSchema = exports.TaskDependencySchema = exports.ScheduledJobSchema = exports.ScheduledJobTypeSchema = exports.ScheduledJobRunSchema = exports.ReportVersionSchema = exports.ReportUserStateSchema = exports.RecordLinkSchema = exports.QueryParameterSchema = exports.PublicLinkSchema = exports.ProjectSchema = exports.ListShareSchema = exports.ListInvitationSchema = exports.FileStorageAccountSchema = exports.EnvironmentSchema = exports.EncryptionKeySchema = exports.EncryptionKeySourceSchema = exports.EncryptionAlgorithmSchema = exports.DashboardUserStateSchema = exports.DashboardUserPreferenceSchema = exports.DashboardPermissionSchema = exports.DashboardPartTypeSchema = exports.DashboardCategoryPermissionSchema = exports.DashboardCategoryLinkSchema = exports.CredentialSchema = exports.CredentialTypeSchema = exports.CredentialCategorySchema = exports.ConversationDetailRatingSchema = exports.ConversationDetailAttachmentSchema = exports.ConversationDetailArtifactSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = exports.ConversationArtifactPermissionSchema = exports.ComponentSchema = exports.ComponentRegistrySchema = exports.ComponentLibraryLinkSchema = exports.ComponentLibrarySchema = exports.ComponentDependencySchema = void 0;
13
- 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 = 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 = void 0;
14
- 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 = 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 = void 0;
15
- 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 = 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 = void 0;
16
- exports.ArtifactUseEntity = exports.ArtifactTypeEntity = exports.ArtifactPermissionEntity = exports.APIScopeEntity = exports.APIKeyEntity = exports.APIKeyUsageLogEntity = exports.APIKeyScopeEntity = exports.AIVendorEntity = exports.AIVendorTypeEntity = exports.AIVendorTypeDefinitionEntity = exports.AIPromptRunEntity = exports.AIPromptRunMediaEntity = exports.AIPromptModelEntity = exports.AIModelVendorEntity = exports.AIModelPriceUnitTypeEntity = exports.AIModelPriceTypeEntity = exports.AIModelModalityEntity = exports.AIModelCostEntity = exports.AIModelArchitectureEntity = exports.AIModalityEntity = exports.AICredentialBindingEntity = exports.AIConfigurationEntity = exports.AIConfigurationParamEntity = exports.AIArchitectureEntity = exports.AIAgentTypeEntity = exports.AIAgentStepEntity = exports.AIAgentStepPathEntity = exports.AIAgentRunEntity = exports.AIAgentRunStepEntity = exports.AIAgentRunMediaEntity = exports.AIAgentRelationshipEntity = exports.AIAgentPromptEntity = exports.AIAgentPermissionEntity = exports.AIAgentModalityEntity = exports.AIAgentExampleEntity = exports.AIAgentDataSourceEntity = exports.AIAgentConfigurationEntity = exports.AIAgentArtifactTypeEntity = exports.AccessControlRuleEntity = exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.GeneratedCodeEntity = exports.GeneratedCodeCategoryEntity = exports.FileEntity = exports.FileStorageProviderEntity = void 0;
17
- exports.TestSuiteTestEntity = exports.TestSuiteRunEntity = exports.TestRunEntity = exports.TestRunFeedbackEntity = exports.TestRubricEntity = exports.TaskEntity = exports.TaskTypeEntity = exports.TaskDependencyEntity = exports.ScheduledJobEntity = exports.ScheduledJobTypeEntity = exports.ScheduledJobRunEntity = exports.ReportVersionEntity = exports.ReportUserStateEntity = exports.RecordLinkEntity = exports.QueryParameterEntity = exports.PublicLinkEntity = exports.ProjectEntity = exports.ListShareEntity = exports.ListInvitationEntity = exports.FileStorageAccountEntity = exports.EnvironmentEntity = exports.EncryptionKeyEntity = exports.EncryptionKeySourceEntity = exports.EncryptionAlgorithmEntity = exports.DashboardUserStateEntity = exports.DashboardUserPreferenceEntity = exports.DashboardPermissionEntity = exports.DashboardPartTypeEntity = exports.DashboardCategoryPermissionEntity = exports.DashboardCategoryLinkEntity = exports.CredentialEntity = exports.CredentialTypeEntity = exports.CredentialCategoryEntity = exports.ConversationDetailRatingEntity = exports.ConversationDetailAttachmentEntity = exports.ConversationDetailArtifactEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = exports.ConversationArtifactPermissionEntity = exports.ComponentEntity = exports.ComponentRegistryEntity = exports.ComponentLibraryLinkEntity = exports.ComponentLibraryEntity = exports.ComponentDependencyEntity = exports.CollectionEntity = exports.CollectionPermissionEntity = exports.CollectionArtifactEntity = exports.ArtifactEntity = exports.ArtifactVersionEntity = exports.ArtifactVersionAttributeEntity = void 0;
18
- exports.UserRoleEntity = exports.UserRecordLogEntity = exports.UserNotificationEntity = exports.UserFavoriteEntity = exports.UserApplicationEntity = exports.UserApplicationEntityEntity = exports.TemplateEntity = exports.TemplateParamEntity = exports.TemplateContentEntity = exports.TemplateContentTypeEntity = exports.TemplateCategoryEntity = exports.TagEntity = exports.TaggedItemEntity = exports.SkillEntity = exports.SchemaInfoEntity = exports.ScheduledActionEntity = exports.ScheduledActionParamEntity = exports.RowLevelSecurityFilterEntity = exports.RoleEntity = exports.ResourceTypeEntity = exports.ResourcePermissionEntity = exports.ResourceLinkEntity = exports.ReportEntity = exports.ReportSnapshotEntity = exports.ReportCategoryEntity = exports.RecordMergeLogEntity = exports.RecordMergeDeletionLogEntity = exports.RecordChangeEntity = exports.RecordChangeReplayRunEntity = exports.RecommendationEntity = exports.RecommendationRunEntity = exports.RecommendationProviderEntity = exports.RecommendationItemEntity = exports.QueueEntity = exports.QueueTypeEntity = exports.QueueTaskEntity = exports.QueryPermissionEntity = exports.QueryFieldEntity = exports.QueryEntityEntity = exports.QueryCategoryEntity = exports.QueryEntity = exports.OutputTriggerTypeEntity = exports.OutputFormatTypeEntity = exports.OutputDeliveryTypeEntity = exports.UserSettingEntity = exports.UserNotificationTypeEntity = exports.UserNotificationPreferenceEntity = exports.TestEntity = exports.TestTypeEntity = exports.TestSuiteEntity = void 0;
19
- 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 = void 0;
11
+ exports.ArtifactSchema = exports.ArtifactVersionSchema = exports.ArtifactVersionAttributeSchema = exports.ArtifactUseSchema = exports.ArtifactTypeSchema = exports.ArtifactPermissionSchema = exports.APIScopeSchema = exports.APIKeySchema = exports.APIKeyUsageLogSchema = exports.APIKeyScopeSchema = exports.APIKeyApplicationSchema = exports.APIApplicationSchema = exports.APIApplicationScopeSchema = exports.AIVendorSchema = exports.AIVendorTypeSchema = exports.AIVendorTypeDefinitionSchema = exports.AIPromptRunSchema = exports.AIPromptRunMediaSchema = exports.AIPromptModelSchema = exports.AIModelVendorSchema = exports.AIModelPriceUnitTypeSchema = exports.AIModelPriceTypeSchema = exports.AIModelModalitySchema = exports.AIModelCostSchema = exports.AIModelArchitectureSchema = exports.AIModalitySchema = exports.AICredentialBindingSchema = exports.AIConfigurationSchema = exports.AIConfigurationParamSchema = exports.AIArchitectureSchema = exports.AIAgentTypeSchema = exports.AIAgentStepSchema = exports.AIAgentStepPathSchema = exports.AIAgentRunSchema = exports.AIAgentRunStepSchema = exports.AIAgentRunMediaSchema = exports.AIAgentRelationshipSchema = exports.AIAgentPromptSchema = exports.AIAgentPermissionSchema = exports.AIAgentModalitySchema = exports.AIAgentExampleSchema = exports.AIAgentDataSourceSchema = exports.AIAgentConfigurationSchema = exports.AIAgentArtifactTypeSchema = exports.AccessControlRuleSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
12
+ exports.TestSchema = exports.TestTypeSchema = exports.TestSuiteSchema = exports.TestSuiteTestSchema = exports.TestSuiteRunSchema = exports.TestRunSchema = exports.TestRunFeedbackSchema = exports.TestRubricSchema = exports.TaskSchema = exports.TaskTypeSchema = exports.TaskDependencySchema = exports.ScheduledJobSchema = exports.ScheduledJobTypeSchema = exports.ScheduledJobRunSchema = exports.ReportVersionSchema = exports.ReportUserStateSchema = exports.RecordLinkSchema = exports.QueryParameterSchema = exports.PublicLinkSchema = exports.ProjectSchema = exports.ListShareSchema = exports.ListInvitationSchema = exports.FileStorageAccountSchema = exports.EnvironmentSchema = exports.EncryptionKeySchema = exports.EncryptionKeySourceSchema = exports.EncryptionAlgorithmSchema = exports.DashboardUserStateSchema = exports.DashboardUserPreferenceSchema = exports.DashboardPermissionSchema = exports.DashboardPartTypeSchema = exports.DashboardCategoryPermissionSchema = exports.DashboardCategoryLinkSchema = exports.CredentialSchema = exports.CredentialTypeSchema = exports.CredentialCategorySchema = exports.ConversationDetailRatingSchema = exports.ConversationDetailAttachmentSchema = exports.ConversationDetailArtifactSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = exports.ConversationArtifactPermissionSchema = exports.ComponentSchema = exports.ComponentRegistrySchema = exports.ComponentLibraryLinkSchema = exports.ComponentLibrarySchema = exports.ComponentDependencySchema = exports.CollectionSchema = exports.CollectionPermissionSchema = exports.CollectionArtifactSchema = void 0;
13
+ 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 = 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.UserSettingSchema = exports.UserNotificationTypeSchema = exports.UserNotificationPreferenceSchema = void 0;
14
+ 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 = 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 = void 0;
15
+ 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 = 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 = void 0;
16
+ exports.APIKeyScopeEntity = exports.APIKeyApplicationEntity = exports.APIApplicationEntity = exports.APIApplicationScopeEntity = exports.AIVendorEntity = exports.AIVendorTypeEntity = exports.AIVendorTypeDefinitionEntity = exports.AIPromptRunEntity = exports.AIPromptRunMediaEntity = exports.AIPromptModelEntity = exports.AIModelVendorEntity = exports.AIModelPriceUnitTypeEntity = exports.AIModelPriceTypeEntity = exports.AIModelModalityEntity = exports.AIModelCostEntity = exports.AIModelArchitectureEntity = exports.AIModalityEntity = exports.AICredentialBindingEntity = exports.AIConfigurationEntity = exports.AIConfigurationParamEntity = exports.AIArchitectureEntity = exports.AIAgentTypeEntity = exports.AIAgentStepEntity = exports.AIAgentStepPathEntity = exports.AIAgentRunEntity = exports.AIAgentRunStepEntity = exports.AIAgentRunMediaEntity = exports.AIAgentRelationshipEntity = exports.AIAgentPromptEntity = exports.AIAgentPermissionEntity = exports.AIAgentModalityEntity = exports.AIAgentExampleEntity = exports.AIAgentDataSourceEntity = exports.AIAgentConfigurationEntity = exports.AIAgentArtifactTypeEntity = exports.AccessControlRuleEntity = exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.GeneratedCodeEntity = exports.GeneratedCodeCategoryEntity = exports.FileEntity = exports.FileStorageProviderEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = exports.ExplorerNavigationItemEntity = void 0;
17
+ exports.TaskTypeEntity = exports.TaskDependencyEntity = exports.ScheduledJobEntity = exports.ScheduledJobTypeEntity = exports.ScheduledJobRunEntity = exports.ReportVersionEntity = exports.ReportUserStateEntity = exports.RecordLinkEntity = exports.QueryParameterEntity = exports.PublicLinkEntity = exports.ProjectEntity = exports.ListShareEntity = exports.ListInvitationEntity = exports.FileStorageAccountEntity = exports.EnvironmentEntity = exports.EncryptionKeyEntity = exports.EncryptionKeySourceEntity = exports.EncryptionAlgorithmEntity = exports.DashboardUserStateEntity = exports.DashboardUserPreferenceEntity = exports.DashboardPermissionEntity = exports.DashboardPartTypeEntity = exports.DashboardCategoryPermissionEntity = exports.DashboardCategoryLinkEntity = exports.CredentialEntity = exports.CredentialTypeEntity = exports.CredentialCategoryEntity = exports.ConversationDetailRatingEntity = exports.ConversationDetailAttachmentEntity = exports.ConversationDetailArtifactEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = exports.ConversationArtifactPermissionEntity = exports.ComponentEntity = exports.ComponentRegistryEntity = exports.ComponentLibraryLinkEntity = exports.ComponentLibraryEntity = exports.ComponentDependencyEntity = exports.CollectionEntity = exports.CollectionPermissionEntity = exports.CollectionArtifactEntity = exports.ArtifactEntity = exports.ArtifactVersionEntity = exports.ArtifactVersionAttributeEntity = exports.ArtifactUseEntity = exports.ArtifactTypeEntity = exports.ArtifactPermissionEntity = exports.APIScopeEntity = exports.APIKeyEntity = exports.APIKeyUsageLogEntity = void 0;
18
+ exports.TemplateEntity = exports.TemplateParamEntity = exports.TemplateContentEntity = exports.TemplateContentTypeEntity = exports.TemplateCategoryEntity = exports.TagEntity = exports.TaggedItemEntity = exports.SkillEntity = exports.SchemaInfoEntity = exports.ScheduledActionEntity = exports.ScheduledActionParamEntity = exports.RowLevelSecurityFilterEntity = exports.RoleEntity = exports.ResourceTypeEntity = exports.ResourcePermissionEntity = exports.ResourceLinkEntity = exports.ReportEntity = exports.ReportSnapshotEntity = exports.ReportCategoryEntity = exports.RecordMergeLogEntity = exports.RecordMergeDeletionLogEntity = exports.RecordChangeEntity = exports.RecordChangeReplayRunEntity = exports.RecommendationEntity = exports.RecommendationRunEntity = exports.RecommendationProviderEntity = exports.RecommendationItemEntity = exports.QueueEntity = exports.QueueTypeEntity = exports.QueueTaskEntity = exports.QueryPermissionEntity = exports.QueryFieldEntity = exports.QueryEntityEntity = exports.QueryCategoryEntity = exports.QueryEntity = exports.OutputTriggerTypeEntity = exports.OutputFormatTypeEntity = exports.OutputDeliveryTypeEntity = exports.UserSettingEntity = exports.UserNotificationTypeEntity = exports.UserNotificationPreferenceEntity = exports.TestEntity = exports.TestTypeEntity = exports.TestSuiteEntity = exports.TestSuiteTestEntity = exports.TestSuiteRunEntity = exports.TestRunEntity = exports.TestRunFeedbackEntity = exports.TestRubricEntity = exports.TaskEntity = void 0;
19
+ 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 = void 0;
20
20
  const core_1 = require("@memberjunction/core");
21
21
  const global_1 = require("@memberjunction/global");
22
22
  const zod_1 = require("zod");
@@ -384,7 +384,7 @@ exports.ActionParamSchema = zod_1.z.object({
384
384
  * * Input
385
385
  * * Output
386
386
  * * Description: Specifies whether this parameter is used for Input, Output, or Both directions in the action execution flow.`),
387
- ValueType: zod_1.z.union([zod_1.z.literal('BaseEntity Sub-Class'), zod_1.z.literal('BaseEntity Sub-Class'), zod_1.z.literal('MediaOutput'), zod_1.z.literal('Other'), zod_1.z.literal('Scalar'), zod_1.z.literal('Other'), zod_1.z.literal('Scalar'), zod_1.z.literal('Simple Object'), zod_1.z.literal('Simple Object')]).describe(`
387
+ ValueType: zod_1.z.union([zod_1.z.literal('BaseEntity Sub-Class'), zod_1.z.literal('BaseEntity Sub-Class'), zod_1.z.literal('MediaOutput'), zod_1.z.literal('Other'), zod_1.z.literal('Other'), zod_1.z.literal('Scalar'), zod_1.z.literal('Scalar'), zod_1.z.literal('Simple Object'), zod_1.z.literal('Simple Object')]).describe(`
388
388
  * * Field Name: ValueType
389
389
  * * Display Name: Value Type
390
390
  * * SQL Data Type: nvarchar(30)
@@ -394,9 +394,9 @@ exports.ActionParamSchema = zod_1.z.object({
394
394
  * * BaseEntity Sub-Class
395
395
  * * Other
396
396
  * * MediaOutput
397
- * * Scalar
398
397
  * * Other
399
398
  * * Scalar
399
+ * * Scalar
400
400
  * * Simple Object
401
401
  * * Simple Object
402
402
  * * Description: Tracks the basic value type of the parameter, additional information can be provided in the Description field`),
@@ -959,12 +959,12 @@ exports.AIAgentNoteSchema = zod_1.z.object({
959
959
  * * Default Value: newsequentialid()`),
960
960
  AgentID: zod_1.z.string().nullable().describe(`
961
961
  * * Field Name: AgentID
962
- * * Display Name: Agent ID
962
+ * * Display Name: Agent
963
963
  * * SQL Data Type: uniqueidentifier
964
964
  * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)`),
965
965
  AgentNoteTypeID: zod_1.z.string().nullable().describe(`
966
966
  * * Field Name: AgentNoteTypeID
967
- * * Display Name: Agent Note Type ID
967
+ * * Display Name: Agent Note Type
968
968
  * * SQL Data Type: uniqueidentifier
969
969
  * * Related Entity/Foreign Key: AI Agent Note Types (vwAIAgentNoteTypes.ID)`),
970
970
  Note: zod_1.z.string().nullable().describe(`
@@ -984,7 +984,7 @@ exports.AIAgentNoteSchema = zod_1.z.object({
984
984
  * * Default Value: getutcdate()`),
985
985
  UserID: zod_1.z.string().nullable().describe(`
986
986
  * * Field Name: UserID
987
- * * Display Name: User ID
987
+ * * Display Name: User
988
988
  * * SQL Data Type: uniqueidentifier
989
989
  * * Related Entity/Foreign Key: Users (vwUsers.ID)
990
990
  * * Description: Foreign key referencing the ID column in the User table, indicating the user associated with the note. Used when Type=User`),
@@ -1003,7 +1003,7 @@ exports.AIAgentNoteSchema = zod_1.z.object({
1003
1003
  * * Description: Quick categorization of the note content: Preference (user preferences), Constraint (hard rules/requirements), Context (background information), Example (sample interactions), or Issue (known problems/limitations). Complements the more detailed AIAgentNoteType categorization.`),
1004
1004
  IsAutoGenerated: zod_1.z.boolean().describe(`
1005
1005
  * * Field Name: IsAutoGenerated
1006
- * * Display Name: Is Auto Generated
1006
+ * * Display Name: Auto Generated
1007
1007
  * * SQL Data Type: bit
1008
1008
  * * Default Value: 0
1009
1009
  * * Description: Indicates whether this note was automatically generated by an AI agent (1) or manually created (0).`),
@@ -1025,25 +1025,25 @@ exports.AIAgentNoteSchema = zod_1.z.object({
1025
1025
  * * Description: Status of the note: Pending (awaiting review), Active (in use), or Revoked (disabled).`),
1026
1026
  SourceConversationID: zod_1.z.string().nullable().describe(`
1027
1027
  * * Field Name: SourceConversationID
1028
- * * Display Name: Source Conversation ID
1028
+ * * Display Name: Source Conversation
1029
1029
  * * SQL Data Type: uniqueidentifier
1030
1030
  * * Related Entity/Foreign Key: Conversations (vwConversations.ID)
1031
1031
  * * Description: Optional reference to the conversation that inspired or generated this note.`),
1032
1032
  SourceConversationDetailID: zod_1.z.string().nullable().describe(`
1033
1033
  * * Field Name: SourceConversationDetailID
1034
- * * Display Name: Source Conversation Detail ID
1034
+ * * Display Name: Source Conversation Detail
1035
1035
  * * SQL Data Type: uniqueidentifier
1036
1036
  * * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
1037
1037
  * * Description: Optional reference to the specific conversation message that inspired this note.`),
1038
1038
  SourceAIAgentRunID: zod_1.z.string().nullable().describe(`
1039
1039
  * * Field Name: SourceAIAgentRunID
1040
- * * Display Name: Source AI Agent Run ID
1040
+ * * Display Name: Source AI Agent Run
1041
1041
  * * SQL Data Type: uniqueidentifier
1042
1042
  * * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
1043
1043
  * * Description: Optional reference to the AI agent run that generated this note.`),
1044
1044
  CompanyID: zod_1.z.string().nullable().describe(`
1045
1045
  * * Field Name: CompanyID
1046
- * * Display Name: Company ID
1046
+ * * Display Name: Company
1047
1047
  * * SQL Data Type: uniqueidentifier
1048
1048
  * * Related Entity/Foreign Key: Companies (vwCompanies.ID)
1049
1049
  * * Description: Optional company scope for this note. When populated with UserID, creates org+user specific notes.`),
@@ -1054,10 +1054,42 @@ exports.AIAgentNoteSchema = zod_1.z.object({
1054
1054
  * * Description: JSON array of embedding vector for semantic search on Note field. Auto-generated when Note changes.`),
1055
1055
  EmbeddingModelID: zod_1.z.string().nullable().describe(`
1056
1056
  * * Field Name: EmbeddingModelID
1057
- * * Display Name: Embedding Model ID
1057
+ * * Display Name: Embedding Model
1058
1058
  * * SQL Data Type: uniqueidentifier
1059
1059
  * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
1060
1060
  * * Description: Reference to the AI model used to generate the embedding vector.`),
1061
+ PrimaryScopeEntityID: zod_1.z.string().nullable().describe(`
1062
+ * * Field Name: PrimaryScopeEntityID
1063
+ * * Display Name: Primary Scope Entity
1064
+ * * SQL Data Type: uniqueidentifier
1065
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)
1066
+ * * Description: Foreign key to Entity table identifying which entity type is used for primary scoping. NULL means this is a global note.`),
1067
+ PrimaryScopeRecordID: zod_1.z.string().nullable().describe(`
1068
+ * * Field Name: PrimaryScopeRecordID
1069
+ * * Display Name: Primary Scope Record
1070
+ * * SQL Data Type: nvarchar(100)
1071
+ * * Description: The record ID within the primary scope entity. NULL means global note. When set with empty SecondaryScopes, indicates primary-scope-only note.`),
1072
+ SecondaryScopes: zod_1.z.string().nullable().describe(`
1073
+ * * Field Name: SecondaryScopes
1074
+ * * Display Name: Secondary Scopes
1075
+ * * SQL Data Type: nvarchar(MAX)
1076
+ * * Description: JSON object containing additional scope dimensions. Empty/NULL with PrimaryScopeRecordID set = org-level note. Populated = fully-scoped note.`),
1077
+ LastAccessedAt: zod_1.z.date().nullable().describe(`
1078
+ * * Field Name: LastAccessedAt
1079
+ * * Display Name: Last Accessed At
1080
+ * * SQL Data Type: datetimeoffset
1081
+ * * Description: Timestamp of when this note was last accessed/injected into agent context. Used for lifecycle management and cleanup.`),
1082
+ AccessCount: zod_1.z.number().describe(`
1083
+ * * Field Name: AccessCount
1084
+ * * Display Name: Access Count
1085
+ * * SQL Data Type: int
1086
+ * * Default Value: 0
1087
+ * * Description: Number of times this note has been accessed/injected into agent context. Used for analytics and determining note value.`),
1088
+ ExpiresAt: zod_1.z.date().nullable().describe(`
1089
+ * * Field Name: ExpiresAt
1090
+ * * Display Name: Expires At
1091
+ * * SQL Data Type: datetimeoffset
1092
+ * * Description: Optional expiration timestamp. Notes past this date are candidates for archival. NULL means no expiration.`),
1061
1093
  Agent: zod_1.z.string().nullable().describe(`
1062
1094
  * * Field Name: Agent
1063
1095
  * * Display Name: Agent
@@ -1090,6 +1122,10 @@ exports.AIAgentNoteSchema = zod_1.z.object({
1090
1122
  * * Field Name: EmbeddingModel
1091
1123
  * * Display Name: Embedding Model
1092
1124
  * * SQL Data Type: nvarchar(50)`),
1125
+ PrimaryScopeEntity: zod_1.z.string().nullable().describe(`
1126
+ * * Field Name: PrimaryScopeEntity
1127
+ * * Display Name: Primary Scope Entity
1128
+ * * SQL Data Type: nvarchar(255)`),
1093
1129
  });
1094
1130
  /**
1095
1131
  * zod schema definition for the entity AI Agent Requests
@@ -1215,7 +1251,7 @@ exports.AIAgentSchema = zod_1.z.object({
1215
1251
  * * Default Value: getutcdate()`),
1216
1252
  ParentID: zod_1.z.string().nullable().describe(`
1217
1253
  * * Field Name: ParentID
1218
- * * Display Name: Parent Agent
1254
+ * * Display Name: Parent
1219
1255
  * * SQL Data Type: uniqueidentifier
1220
1256
  * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
1221
1257
  * * Description: References the parent agent in the hierarchical structure. If NULL, this is a root (top-level) agent.`),
@@ -1254,7 +1290,7 @@ exports.AIAgentSchema = zod_1.z.object({
1254
1290
  * * Description: Number of messages that triggers context compression when EnableContextCompression is true.`),
1255
1291
  ContextCompressionPromptID: zod_1.z.string().nullable().describe(`
1256
1292
  * * Field Name: ContextCompressionPromptID
1257
- * * Display Name: Context Compression Prompt
1293
+ * * Display Name: Context Compression Prompt ID
1258
1294
  * * SQL Data Type: uniqueidentifier
1259
1295
  * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)`),
1260
1296
  ContextCompressionMessageRetentionCount: zod_1.z.number().nullable().describe(`
@@ -1264,7 +1300,7 @@ exports.AIAgentSchema = zod_1.z.object({
1264
1300
  * * Description: Number of recent messages to keep uncompressed when context compression is applied.`),
1265
1301
  TypeID: zod_1.z.string().nullable().describe(`
1266
1302
  * * Field Name: TypeID
1267
- * * Display Name: Agent Type
1303
+ * * Display Name: Type
1268
1304
  * * SQL Data Type: uniqueidentifier
1269
1305
  * * Related Entity/Foreign Key: MJ: AI Agent Types (vwAIAgentTypes.ID)
1270
1306
  * * Description: Reference to the AIAgentType that defines the category and system-level behavior for this agent. Cannot be null.`),
@@ -1423,7 +1459,7 @@ if this limit is exceeded.`),
1423
1459
  * * Description: Default artifact type produced by this agent. This is the primary artifact type; additional artifact types can be linked via AIAgentArtifactType junction table. Can be NULL if agent does not produce artifacts by default.`),
1424
1460
  OwnerUserID: zod_1.z.string().describe(`
1425
1461
  * * Field Name: OwnerUserID
1426
- * * Display Name: Owner User
1462
+ * * Display Name: Owner User ID
1427
1463
  * * SQL Data Type: uniqueidentifier
1428
1464
  * * Related Entity/Foreign Key: Users (vwUsers.ID)
1429
1465
  * * Default Value: ECAFCCEC-6A37-EF11-86D4-000D3A4E707E
@@ -1531,7 +1567,7 @@ if this limit is exceeded.`),
1531
1567
  * * Description: Maximum number of conversation messages to include when MessageMode is 'Latest' or 'Bookend'. NULL means no limit (ignored for 'None' and 'All' modes). Must be greater than 0 if specified. For 'Latest': keeps most recent N messages. For 'Bookend': keeps first 2 + most recent (N-2) messages.`),
1532
1568
  AttachmentStorageProviderID: zod_1.z.string().nullable().describe(`
1533
1569
  * * Field Name: AttachmentStorageProviderID
1534
- * * Display Name: Attachment Storage Provider
1570
+ * * Display Name: Attachment Storage Provider ID
1535
1571
  * * SQL Data Type: uniqueidentifier
1536
1572
  * * Related Entity/Foreign Key: File Storage Providers (vwFileStorageProviders.ID)
1537
1573
  * * Description: File storage provider for large attachments. Overrides the default from AIConfiguration. NULL uses system default.`),
@@ -1550,6 +1586,34 @@ if this limit is exceeded.`),
1550
1586
  * * Display Name: Agent Type Prompt Params
1551
1587
  * * SQL Data Type: nvarchar(MAX)
1552
1588
  * * Description: JSON object containing parameter values that customize how this agent's type-level system prompt is rendered. The schema is defined by the agent type's PromptParamsSchema field. Allows per-agent control over which prompt sections are included, enabling token savings by excluding unused documentation.`),
1589
+ ScopeConfig: zod_1.z.string().nullable().describe(`
1590
+ * * Field Name: ScopeConfig
1591
+ * * Display Name: Scope Config
1592
+ * * SQL Data Type: nvarchar(MAX)
1593
+ * * Description: JSON configuration defining scope dimensions for multi-tenant deployments. Example: {"dimensions":[{"name":"OrganizationID","entityId":"...","isPrimary":true,"required":true},{"name":"ContactID","entityId":"...","isPrimary":false,"required":false}],"inheritanceMode":"cascading"}`),
1594
+ NoteRetentionDays: zod_1.z.number().nullable().describe(`
1595
+ * * Field Name: NoteRetentionDays
1596
+ * * Display Name: Note Retention Days
1597
+ * * SQL Data Type: int
1598
+ * * Default Value: 90
1599
+ * * Description: Number of days to retain notes before archiving due to inactivity. Default 90. NULL means use system default.`),
1600
+ ExampleRetentionDays: zod_1.z.number().nullable().describe(`
1601
+ * * Field Name: ExampleRetentionDays
1602
+ * * Display Name: Example Retention Days
1603
+ * * SQL Data Type: int
1604
+ * * Default Value: 180
1605
+ * * Description: Number of days to retain examples before archiving due to inactivity. Default 180. NULL means use system default.`),
1606
+ AutoArchiveEnabled: zod_1.z.boolean().describe(`
1607
+ * * Field Name: AutoArchiveEnabled
1608
+ * * Display Name: Auto Archive Enabled
1609
+ * * SQL Data Type: bit
1610
+ * * Default Value: 1
1611
+ * * Description: Whether automatic archival of stale notes/examples is enabled for this agent. Default true.`),
1612
+ RerankerConfiguration: zod_1.z.string().nullable().describe(`
1613
+ * * Field Name: RerankerConfiguration
1614
+ * * Display Name: Reranker Configuration
1615
+ * * SQL Data Type: nvarchar(MAX)
1616
+ * * Description: JSON configuration for optional reranking of retrieved memory items. Schema: { enabled: boolean, rerankerModelId: string, retrievalMultiplier: number (default 3), minRelevanceThreshold: number (default 0.5), rerankPromptId?: string, contextFields?: string[], fallbackOnError: boolean (default true) }. When null or disabled, vector search results are used directly without reranking.`),
1553
1617
  Parent: zod_1.z.string().nullable().describe(`
1554
1618
  * * Field Name: Parent
1555
1619
  * * Display Name: Parent
@@ -8342,19 +8406,19 @@ exports.AIAgentExampleSchema = zod_1.z.object({
8342
8406
  * * Default Value: newsequentialid()`),
8343
8407
  AgentID: zod_1.z.string().describe(`
8344
8408
  * * Field Name: AgentID
8345
- * * Display Name: Agent ID
8409
+ * * Display Name: Agent
8346
8410
  * * SQL Data Type: uniqueidentifier
8347
8411
  * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
8348
8412
  * * Description: The AI agent this example is associated with. Examples are always agent-specific.`),
8349
8413
  UserID: zod_1.z.string().nullable().describe(`
8350
8414
  * * Field Name: UserID
8351
- * * Display Name: User ID
8415
+ * * Display Name: User
8352
8416
  * * SQL Data Type: uniqueidentifier
8353
8417
  * * Related Entity/Foreign Key: Users (vwUsers.ID)
8354
8418
  * * Description: Optional user scope. When populated, this example is specific to this user.`),
8355
8419
  CompanyID: zod_1.z.string().nullable().describe(`
8356
8420
  * * Field Name: CompanyID
8357
- * * Display Name: Company ID
8421
+ * * Display Name: Company
8358
8422
  * * SQL Data Type: uniqueidentifier
8359
8423
  * * Related Entity/Foreign Key: Companies (vwCompanies.ID)
8360
8424
  * * Description: Optional company scope. When populated, this example is specific to this company.`),
@@ -8389,19 +8453,19 @@ exports.AIAgentExampleSchema = zod_1.z.object({
8389
8453
  * * Description: Indicates whether this example was automatically captured (1) or manually created (0).`),
8390
8454
  SourceConversationID: zod_1.z.string().nullable().describe(`
8391
8455
  * * Field Name: SourceConversationID
8392
- * * Display Name: Source Conversation ID
8456
+ * * Display Name: Source Conversation
8393
8457
  * * SQL Data Type: uniqueidentifier
8394
8458
  * * Related Entity/Foreign Key: Conversations (vwConversations.ID)
8395
8459
  * * Description: Optional reference to the conversation where this example originated.`),
8396
8460
  SourceConversationDetailID: zod_1.z.string().nullable().describe(`
8397
8461
  * * Field Name: SourceConversationDetailID
8398
- * * Display Name: Source Conversation Detail ID
8462
+ * * Display Name: Source Conversation Detail
8399
8463
  * * SQL Data Type: uniqueidentifier
8400
8464
  * * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
8401
8465
  * * Description: Optional reference to the specific conversation message that represents this example.`),
8402
8466
  SourceAIAgentRunID: zod_1.z.string().nullable().describe(`
8403
8467
  * * Field Name: SourceAIAgentRunID
8404
- * * Display Name: Source AI Agent Run ID
8468
+ * * Display Name: Source AI Agent Run
8405
8469
  * * SQL Data Type: uniqueidentifier
8406
8470
  * * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
8407
8471
  * * Description: Optional reference to the AI agent run that generated this example.`),
@@ -8443,10 +8507,42 @@ exports.AIAgentExampleSchema = zod_1.z.object({
8443
8507
  * * Description: JSON array of embedding vector for semantic search on ExampleInput field. Auto-generated when ExampleInput changes.`),
8444
8508
  EmbeddingModelID: zod_1.z.string().nullable().describe(`
8445
8509
  * * Field Name: EmbeddingModelID
8446
- * * Display Name: Embedding Model ID
8510
+ * * Display Name: Embedding Model
8447
8511
  * * SQL Data Type: uniqueidentifier
8448
8512
  * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
8449
8513
  * * Description: Reference to the AI model used to generate the embedding vector.`),
8514
+ PrimaryScopeEntityID: zod_1.z.string().nullable().describe(`
8515
+ * * Field Name: PrimaryScopeEntityID
8516
+ * * Display Name: Primary Scope Entity
8517
+ * * SQL Data Type: uniqueidentifier
8518
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)
8519
+ * * Description: Foreign key to Entity table identifying which entity type is used for primary scoping. NULL means this is a global example.`),
8520
+ PrimaryScopeRecordID: zod_1.z.string().nullable().describe(`
8521
+ * * Field Name: PrimaryScopeRecordID
8522
+ * * Display Name: Primary Scope Record
8523
+ * * SQL Data Type: nvarchar(100)
8524
+ * * Description: The record ID within the primary scope entity. NULL means global example. When set with empty SecondaryScopes, indicates primary-scope-only example.`),
8525
+ SecondaryScopes: zod_1.z.string().nullable().describe(`
8526
+ * * Field Name: SecondaryScopes
8527
+ * * Display Name: Secondary Scopes
8528
+ * * SQL Data Type: nvarchar(MAX)
8529
+ * * Description: JSON object containing additional scope dimensions. Empty/NULL with PrimaryScopeRecordID set = org-level example. Populated = fully-scoped example.`),
8530
+ LastAccessedAt: zod_1.z.date().nullable().describe(`
8531
+ * * Field Name: LastAccessedAt
8532
+ * * Display Name: Last Accessed At
8533
+ * * SQL Data Type: datetimeoffset
8534
+ * * Description: Timestamp of when this example was last accessed/used for agent context. Used for lifecycle management and cleanup.`),
8535
+ AccessCount: zod_1.z.number().describe(`
8536
+ * * Field Name: AccessCount
8537
+ * * Display Name: Access Count
8538
+ * * SQL Data Type: int
8539
+ * * Default Value: 0
8540
+ * * Description: Number of times this example has been accessed/used. Used for analytics and determining example value.`),
8541
+ ExpiresAt: zod_1.z.date().nullable().describe(`
8542
+ * * Field Name: ExpiresAt
8543
+ * * Display Name: Expires At
8544
+ * * SQL Data Type: datetimeoffset
8545
+ * * Description: Optional expiration timestamp. Examples past this date are candidates for archival. NULL means no expiration.`),
8450
8546
  Agent: zod_1.z.string().nullable().describe(`
8451
8547
  * * Field Name: Agent
8452
8548
  * * Display Name: Agent
@@ -8475,6 +8571,10 @@ exports.AIAgentExampleSchema = zod_1.z.object({
8475
8571
  * * Field Name: EmbeddingModel
8476
8572
  * * Display Name: Embedding Model
8477
8573
  * * SQL Data Type: nvarchar(50)`),
8574
+ PrimaryScopeEntity: zod_1.z.string().nullable().describe(`
8575
+ * * Field Name: PrimaryScopeEntity
8576
+ * * Display Name: Primary Scope Entity
8577
+ * * SQL Data Type: nvarchar(255)`),
8478
8578
  });
8479
8579
  /**
8480
8580
  * zod schema definition for the entity MJ: AI Agent Modalities
@@ -9072,7 +9172,7 @@ exports.AIAgentRunSchema = zod_1.z.object({
9072
9172
  * * Description: Unique identifier for this agent run`),
9073
9173
  AgentID: zod_1.z.string().describe(`
9074
9174
  * * Field Name: AgentID
9075
- * * Display Name: Agent ID
9175
+ * * Display Name: Agent
9076
9176
  * * SQL Data Type: uniqueidentifier
9077
9177
  * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
9078
9178
  * * Description: Reference to the AIAgent that is being executed in this run`),
@@ -9118,13 +9218,13 @@ exports.AIAgentRunSchema = zod_1.z.object({
9118
9218
  * * Description: Error message if the agent run failed. NULL for successful runs.`),
9119
9219
  ConversationID: zod_1.z.string().nullable().describe(`
9120
9220
  * * Field Name: ConversationID
9121
- * * Display Name: Conversation ID
9221
+ * * Display Name: Conversation
9122
9222
  * * SQL Data Type: uniqueidentifier
9123
9223
  * * Related Entity/Foreign Key: Conversations (vwConversations.ID)
9124
9224
  * * Description: Identifier linking multiple agent runs that are part of the same conversation or user session`),
9125
9225
  UserID: zod_1.z.string().nullable().describe(`
9126
9226
  * * Field Name: UserID
9127
- * * Display Name: User ID
9227
+ * * Display Name: User
9128
9228
  * * SQL Data Type: uniqueidentifier
9129
9229
  * * Related Entity/Foreign Key: Users (vwUsers.ID)
9130
9230
  * * Description: User context identifier for authentication and permissions during the agent run`),
@@ -9310,6 +9410,22 @@ each time the agent processes a prompt step.`),
9310
9410
  * * SQL Data Type: uniqueidentifier
9311
9411
  * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
9312
9412
  * * Description: Optional Foreign Key - Links this agent run to a test run if this execution was part of a test. Allows navigation from agent execution to test context.`),
9413
+ PrimaryScopeEntityID: zod_1.z.string().nullable().describe(`
9414
+ * * Field Name: PrimaryScopeEntityID
9415
+ * * Display Name: Primary Scope Entity ID
9416
+ * * SQL Data Type: uniqueidentifier
9417
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)
9418
+ * * Description: Foreign key to Entity table identifying which entity type is used for primary scoping (e.g., Organizations, Tenants)`),
9419
+ PrimaryScopeRecordID: zod_1.z.string().nullable().describe(`
9420
+ * * Field Name: PrimaryScopeRecordID
9421
+ * * Display Name: Primary Scope Record ID
9422
+ * * SQL Data Type: nvarchar(100)
9423
+ * * Description: The record ID within the primary scope entity (e.g., the specific OrganizationID). Indexed for fast multi-tenant filtering.`),
9424
+ SecondaryScopes: zod_1.z.string().nullable().describe(`
9425
+ * * Field Name: SecondaryScopes
9426
+ * * Display Name: Secondary Scopes
9427
+ * * SQL Data Type: nvarchar(MAX)
9428
+ * * Description: JSON object containing additional scope dimensions beyond the primary scope. Example: {"ContactID":"abc-123","TeamID":"team-456"}`),
9313
9429
  Agent: zod_1.z.string().nullable().describe(`
9314
9430
  * * Field Name: Agent
9315
9431
  * * Display Name: Agent
@@ -9354,6 +9470,10 @@ each time the agent processes a prompt step.`),
9354
9470
  * * Field Name: TestRun
9355
9471
  * * Display Name: Test Run
9356
9472
  * * SQL Data Type: nvarchar(255)`),
9473
+ PrimaryScopeEntity: zod_1.z.string().nullable().describe(`
9474
+ * * Field Name: PrimaryScopeEntity
9475
+ * * Display Name: Primary Scope Entity
9476
+ * * SQL Data Type: nvarchar(255)`),
9357
9477
  RootParentRunID: zod_1.z.string().nullable().describe(`
9358
9478
  * * Field Name: RootParentRunID
9359
9479
  * * Display Name: Root Parent Run ID
@@ -11303,6 +11423,149 @@ exports.AIVendorSchema = zod_1.z.object({
11303
11423
  * * Display Name: Credential Type
11304
11424
  * * SQL Data Type: nvarchar(100)`),
11305
11425
  });
11426
+ /**
11427
+ * zod schema definition for the entity MJ: API Application Scopes
11428
+ */
11429
+ exports.APIApplicationScopeSchema = zod_1.z.object({
11430
+ ID: zod_1.z.string().describe(`
11431
+ * * Field Name: ID
11432
+ * * Display Name: ID
11433
+ * * SQL Data Type: uniqueidentifier
11434
+ * * Default Value: newsequentialid()`),
11435
+ ApplicationID: zod_1.z.string().describe(`
11436
+ * * Field Name: ApplicationID
11437
+ * * Display Name: Application
11438
+ * * SQL Data Type: uniqueidentifier
11439
+ * * Related Entity/Foreign Key: MJ: API Applications (vwAPIApplications.ID)
11440
+ * * Description: Reference to the application this ceiling rule applies to.`),
11441
+ ScopeID: zod_1.z.string().describe(`
11442
+ * * Field Name: ScopeID
11443
+ * * Display Name: Scope
11444
+ * * SQL Data Type: uniqueidentifier
11445
+ * * Related Entity/Foreign Key: MJ: API Scopes (vwAPIScopes.ID)
11446
+ * * Description: Reference to the scope this rule applies to.`),
11447
+ ResourcePattern: zod_1.z.string().nullable().describe(`
11448
+ * * Field Name: ResourcePattern
11449
+ * * Display Name: Resource Pattern
11450
+ * * SQL Data Type: nvarchar(750)
11451
+ * * Description: Glob pattern for matching resources (e.g., Users,Accounts or Skip* or *). NULL means match all resources.`),
11452
+ PatternType: zod_1.z.union([zod_1.z.literal('Exclude'), zod_1.z.literal('Include')]).describe(`
11453
+ * * Field Name: PatternType
11454
+ * * Display Name: Pattern Type
11455
+ * * SQL Data Type: nvarchar(20)
11456
+ * * Default Value: Include
11457
+ * * Value List Type: List
11458
+ * * Possible Values
11459
+ * * Exclude
11460
+ * * Include
11461
+ * * Description: How to interpret the pattern: Include (grant if matches) or Exclude (grant if does NOT match).`),
11462
+ IsDeny: zod_1.z.boolean().describe(`
11463
+ * * Field Name: IsDeny
11464
+ * * Display Name: Deny
11465
+ * * SQL Data Type: bit
11466
+ * * Default Value: 0
11467
+ * * Description: If true, this rule explicitly DENIES access. Deny rules trump allow rules at the same priority level.`),
11468
+ Priority: zod_1.z.number().describe(`
11469
+ * * Field Name: Priority
11470
+ * * Display Name: Priority
11471
+ * * SQL Data Type: int
11472
+ * * Default Value: 0
11473
+ * * Description: Rule evaluation order. Higher priority rules are evaluated first. Within same priority, deny rules are evaluated before allow rules.`),
11474
+ __mj_CreatedAt: zod_1.z.date().describe(`
11475
+ * * Field Name: __mj_CreatedAt
11476
+ * * Display Name: Created At
11477
+ * * SQL Data Type: datetimeoffset
11478
+ * * Default Value: getutcdate()`),
11479
+ __mj_UpdatedAt: zod_1.z.date().describe(`
11480
+ * * Field Name: __mj_UpdatedAt
11481
+ * * Display Name: Updated At
11482
+ * * SQL Data Type: datetimeoffset
11483
+ * * Default Value: getutcdate()`),
11484
+ Application: zod_1.z.string().describe(`
11485
+ * * Field Name: Application
11486
+ * * Display Name: Application Name
11487
+ * * SQL Data Type: nvarchar(100)`),
11488
+ Scope: zod_1.z.string().describe(`
11489
+ * * Field Name: Scope
11490
+ * * Display Name: Scope Name
11491
+ * * SQL Data Type: nvarchar(100)`),
11492
+ });
11493
+ /**
11494
+ * zod schema definition for the entity MJ: API Applications
11495
+ */
11496
+ exports.APIApplicationSchema = zod_1.z.object({
11497
+ ID: zod_1.z.string().describe(`
11498
+ * * Field Name: ID
11499
+ * * Display Name: ID
11500
+ * * SQL Data Type: uniqueidentifier
11501
+ * * Default Value: newsequentialid()`),
11502
+ Name: zod_1.z.string().describe(`
11503
+ * * Field Name: Name
11504
+ * * Display Name: Name
11505
+ * * SQL Data Type: nvarchar(100)
11506
+ * * Description: Unique name identifying the application (e.g., MJAPI, MCPServer, Portal, CLI).`),
11507
+ Description: zod_1.z.string().nullable().describe(`
11508
+ * * Field Name: Description
11509
+ * * Display Name: Description
11510
+ * * SQL Data Type: nvarchar(500)
11511
+ * * Description: Human-readable description of the application and its purpose.`),
11512
+ IsActive: zod_1.z.boolean().describe(`
11513
+ * * Field Name: IsActive
11514
+ * * Display Name: Active
11515
+ * * SQL Data Type: bit
11516
+ * * Default Value: 1
11517
+ * * Description: Whether this application is currently active. Inactive applications reject all API key authentication.`),
11518
+ __mj_CreatedAt: zod_1.z.date().describe(`
11519
+ * * Field Name: __mj_CreatedAt
11520
+ * * Display Name: Created At
11521
+ * * SQL Data Type: datetimeoffset
11522
+ * * Default Value: getutcdate()`),
11523
+ __mj_UpdatedAt: zod_1.z.date().describe(`
11524
+ * * Field Name: __mj_UpdatedAt
11525
+ * * Display Name: Updated At
11526
+ * * SQL Data Type: datetimeoffset
11527
+ * * Default Value: getutcdate()`),
11528
+ });
11529
+ /**
11530
+ * zod schema definition for the entity MJ: API Key Applications
11531
+ */
11532
+ exports.APIKeyApplicationSchema = zod_1.z.object({
11533
+ ID: zod_1.z.string().describe(`
11534
+ * * Field Name: ID
11535
+ * * Display Name: ID
11536
+ * * SQL Data Type: uniqueidentifier
11537
+ * * Default Value: newsequentialid()`),
11538
+ APIKeyID: zod_1.z.string().describe(`
11539
+ * * Field Name: APIKeyID
11540
+ * * Display Name: API Key
11541
+ * * SQL Data Type: uniqueidentifier
11542
+ * * Related Entity/Foreign Key: MJ: API Keys (vwAPIKeys.ID)
11543
+ * * Description: Reference to the API key being bound to an application.`),
11544
+ ApplicationID: zod_1.z.string().describe(`
11545
+ * * Field Name: ApplicationID
11546
+ * * Display Name: Application
11547
+ * * SQL Data Type: uniqueidentifier
11548
+ * * Related Entity/Foreign Key: MJ: API Applications (vwAPIApplications.ID)
11549
+ * * Description: Reference to the application this key is authorized to use.`),
11550
+ __mj_CreatedAt: zod_1.z.date().describe(`
11551
+ * * Field Name: __mj_CreatedAt
11552
+ * * Display Name: Created At
11553
+ * * SQL Data Type: datetimeoffset
11554
+ * * Default Value: getutcdate()`),
11555
+ __mj_UpdatedAt: zod_1.z.date().describe(`
11556
+ * * Field Name: __mj_UpdatedAt
11557
+ * * Display Name: Updated At
11558
+ * * SQL Data Type: datetimeoffset
11559
+ * * Default Value: getutcdate()`),
11560
+ APIKey: zod_1.z.string().describe(`
11561
+ * * Field Name: APIKey
11562
+ * * Display Name: API Key Value
11563
+ * * SQL Data Type: nvarchar(255)`),
11564
+ Application: zod_1.z.string().describe(`
11565
+ * * Field Name: Application
11566
+ * * Display Name: Application Name
11567
+ * * SQL Data Type: nvarchar(100)`),
11568
+ });
11306
11569
  /**
11307
11570
  * zod schema definition for the entity MJ: API Key Scopes
11308
11571
  */
@@ -11319,7 +11582,7 @@ exports.APIKeyScopeSchema = zod_1.z.object({
11319
11582
  * * Related Entity/Foreign Key: MJ: API Keys (vwAPIKeys.ID)`),
11320
11583
  ScopeID: zod_1.z.string().describe(`
11321
11584
  * * Field Name: ScopeID
11322
- * * Display Name: Scope
11585
+ * * Display Name: Scope ID
11323
11586
  * * SQL Data Type: uniqueidentifier
11324
11587
  * * Related Entity/Foreign Key: MJ: API Scopes (vwAPIScopes.ID)`),
11325
11588
  __mj_CreatedAt: zod_1.z.date().describe(`
@@ -11332,13 +11595,40 @@ exports.APIKeyScopeSchema = zod_1.z.object({
11332
11595
  * * Display Name: Updated At
11333
11596
  * * SQL Data Type: datetimeoffset
11334
11597
  * * Default Value: getutcdate()`),
11598
+ ResourcePattern: zod_1.z.string().nullable().describe(`
11599
+ * * Field Name: ResourcePattern
11600
+ * * Display Name: Resource Pattern
11601
+ * * SQL Data Type: nvarchar(750)
11602
+ * * Description: Glob pattern for matching resources (e.g., Users,Accounts or Skip* or *). NULL means match all resources under this scope.`),
11603
+ PatternType: zod_1.z.union([zod_1.z.literal('Exclude'), zod_1.z.literal('Include')]).describe(`
11604
+ * * Field Name: PatternType
11605
+ * * Display Name: Pattern Type
11606
+ * * SQL Data Type: nvarchar(20)
11607
+ * * Default Value: Include
11608
+ * * Value List Type: List
11609
+ * * Possible Values
11610
+ * * Exclude
11611
+ * * Include
11612
+ * * Description: How to interpret the pattern: Include (grant if matches) or Exclude (grant if does NOT match).`),
11613
+ IsDeny: zod_1.z.boolean().describe(`
11614
+ * * Field Name: IsDeny
11615
+ * * Display Name: Deny Rule
11616
+ * * SQL Data Type: bit
11617
+ * * Default Value: 0
11618
+ * * Description: If true, this rule explicitly DENIES access. Deny rules trump allow rules at the same priority level.`),
11619
+ Priority: zod_1.z.number().describe(`
11620
+ * * Field Name: Priority
11621
+ * * Display Name: Priority
11622
+ * * SQL Data Type: int
11623
+ * * Default Value: 0
11624
+ * * Description: Rule evaluation order. Higher priority rules are evaluated first. Within same priority, deny rules are evaluated before allow rules.`),
11335
11625
  APIKey: zod_1.z.string().describe(`
11336
11626
  * * Field Name: APIKey
11337
- * * Display Name: API Key
11627
+ * * Display Name: API Key Name
11338
11628
  * * SQL Data Type: nvarchar(255)`),
11339
11629
  Scope: zod_1.z.string().describe(`
11340
11630
  * * Field Name: Scope
11341
- * * Display Name: Scope Name
11631
+ * * Display Name: Scope
11342
11632
  * * SQL Data Type: nvarchar(100)`),
11343
11633
  });
11344
11634
  /**
@@ -11377,7 +11667,7 @@ exports.APIKeyUsageLogSchema = zod_1.z.object({
11377
11667
  * * Description: HTTP response status code returned to the client (e.g., 200 for success, 401 for unauthorized, 500 for server error).`),
11378
11668
  ResponseTimeMs: zod_1.z.number().nullable().describe(`
11379
11669
  * * Field Name: ResponseTimeMs
11380
- * * Display Name: Response Time (ms)
11670
+ * * Display Name: Response Time
11381
11671
  * * SQL Data Type: int
11382
11672
  * * Description: Total time in milliseconds to process the request and return a response. Useful for performance monitoring.`),
11383
11673
  IPAddress: zod_1.z.string().nullable().describe(`
@@ -11400,10 +11690,46 @@ exports.APIKeyUsageLogSchema = zod_1.z.object({
11400
11690
  * * Display Name: Updated At
11401
11691
  * * SQL Data Type: datetimeoffset
11402
11692
  * * Default Value: getutcdate()`),
11693
+ ApplicationID: zod_1.z.string().nullable().describe(`
11694
+ * * Field Name: ApplicationID
11695
+ * * Display Name: Application ID
11696
+ * * SQL Data Type: uniqueidentifier
11697
+ * * Related Entity/Foreign Key: MJ: API Applications (vwAPIApplications.ID)
11698
+ * * Description: The application through which this request was made (MJAPI, MCPServer, etc.).`),
11699
+ RequestedResource: zod_1.z.string().nullable().describe(`
11700
+ * * Field Name: RequestedResource
11701
+ * * Display Name: Requested Resource
11702
+ * * SQL Data Type: nvarchar(500)
11703
+ * * Description: The specific resource that was requested (e.g., entity name, agent name, query name).`),
11704
+ ScopesEvaluated: zod_1.z.string().nullable().describe(`
11705
+ * * Field Name: ScopesEvaluated
11706
+ * * Display Name: Scopes Evaluated
11707
+ * * SQL Data Type: nvarchar(MAX)
11708
+ * * Description: JSON array containing detailed evaluation of each scope rule checked during authorization.`),
11709
+ AuthorizationResult: zod_1.z.union([zod_1.z.literal('Allowed'), zod_1.z.literal('Denied'), zod_1.z.literal('NoScopesRequired')]).describe(`
11710
+ * * Field Name: AuthorizationResult
11711
+ * * Display Name: Authorization Result
11712
+ * * SQL Data Type: nvarchar(20)
11713
+ * * Default Value: Allowed
11714
+ * * Value List Type: List
11715
+ * * Possible Values
11716
+ * * Allowed
11717
+ * * Denied
11718
+ * * NoScopesRequired
11719
+ * * Description: Final authorization result: Allowed, Denied, or NoScopesRequired (for operations that do not require scope checks).`),
11720
+ DeniedReason: zod_1.z.string().nullable().describe(`
11721
+ * * Field Name: DeniedReason
11722
+ * * Display Name: Denied Reason
11723
+ * * SQL Data Type: nvarchar(500)
11724
+ * * Description: When authorization is denied, explains why (e.g., app ceiling blocked, no matching key scope, explicit deny rule).`),
11403
11725
  APIKey: zod_1.z.string().describe(`
11404
11726
  * * Field Name: APIKey
11405
- * * Display Name: API Key
11727
+ * * Display Name: API Key Value
11406
11728
  * * SQL Data Type: nvarchar(255)`),
11729
+ Application: zod_1.z.string().nullable().describe(`
11730
+ * * Field Name: Application
11731
+ * * Display Name: Application
11732
+ * * SQL Data Type: nvarchar(100)`),
11407
11733
  });
11408
11734
  /**
11409
11735
  * zod schema definition for the entity MJ: API Keys
@@ -11489,12 +11815,12 @@ exports.APIScopeSchema = zod_1.z.object({
11489
11815
  * * Default Value: newsequentialid()`),
11490
11816
  Name: zod_1.z.string().describe(`
11491
11817
  * * Field Name: Name
11492
- * * Display Name: Scope Name
11818
+ * * Display Name: Name
11493
11819
  * * SQL Data Type: nvarchar(100)
11494
11820
  * * Description: Unique scope identifier following the pattern category:permission (e.g., entities:read, agents:execute, admin:*). Supports wildcard (*) for broad permissions.`),
11495
11821
  Category: zod_1.z.string().describe(`
11496
11822
  * * Field Name: Category
11497
- * * Display Name: Scope Category
11823
+ * * Display Name: Category
11498
11824
  * * SQL Data Type: nvarchar(100)
11499
11825
  * * Description: Grouping category for the scope (e.g., Entities, Agents, Admin). Used for organizing and filtering scopes in the UI.`),
11500
11826
  Description: zod_1.z.string().nullable().describe(`
@@ -11512,6 +11838,36 @@ exports.APIScopeSchema = zod_1.z.object({
11512
11838
  * * Display Name: Updated At
11513
11839
  * * SQL Data Type: datetimeoffset
11514
11840
  * * Default Value: getutcdate()`),
11841
+ ParentID: zod_1.z.string().nullable().describe(`
11842
+ * * Field Name: ParentID
11843
+ * * Display Name: Parent ID
11844
+ * * SQL Data Type: uniqueidentifier
11845
+ * * Related Entity/Foreign Key: MJ: API Scopes (vwAPIScopes.ID)
11846
+ * * Description: Reference to parent scope for hierarchical organization. NULL indicates a root-level scope.`),
11847
+ FullPath: zod_1.z.string().describe(`
11848
+ * * Field Name: FullPath
11849
+ * * Display Name: Full Path
11850
+ * * SQL Data Type: nvarchar(500)
11851
+ * * Description: Full hierarchical path of the scope (e.g., entity:runview, agent:execute). Used for matching during authorization.`),
11852
+ ResourceType: zod_1.z.string().nullable().describe(`
11853
+ * * Field Name: ResourceType
11854
+ * * Display Name: Resource Type
11855
+ * * SQL Data Type: nvarchar(50)
11856
+ * * Description: Type of resource this scope applies to (Entity, Agent, Query, Mutation, or NULL for abstract grouping scopes).`),
11857
+ IsActive: zod_1.z.boolean().describe(`
11858
+ * * Field Name: IsActive
11859
+ * * Display Name: Active
11860
+ * * SQL Data Type: bit
11861
+ * * Default Value: 1
11862
+ * * Description: Whether this scope is currently active. Inactive scopes are ignored during authorization.`),
11863
+ Parent: zod_1.z.string().nullable().describe(`
11864
+ * * Field Name: Parent
11865
+ * * Display Name: Parent
11866
+ * * SQL Data Type: nvarchar(100)`),
11867
+ RootParentID: zod_1.z.string().nullable().describe(`
11868
+ * * Field Name: RootParentID
11869
+ * * Display Name: Root Parent ID
11870
+ * * SQL Data Type: uniqueidentifier`),
11515
11871
  });
11516
11872
  /**
11517
11873
  * zod schema definition for the entity MJ: Artifact Permissions
@@ -20301,9 +20657,9 @@ let ActionParamEntity = class ActionParamEntity extends core_1.BaseEntity {
20301
20657
  * * BaseEntity Sub-Class
20302
20658
  * * Other
20303
20659
  * * MediaOutput
20304
- * * Scalar
20305
20660
  * * Other
20306
20661
  * * Scalar
20662
+ * * Scalar
20307
20663
  * * Simple Object
20308
20664
  * * Simple Object
20309
20665
  * * Description: Tracks the basic value type of the parameter, additional information can be provided in the Description field
@@ -21798,7 +22154,7 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
21798
22154
  }
21799
22155
  /**
21800
22156
  * * Field Name: AgentID
21801
- * * Display Name: Agent ID
22157
+ * * Display Name: Agent
21802
22158
  * * SQL Data Type: uniqueidentifier
21803
22159
  * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
21804
22160
  */
@@ -21810,7 +22166,7 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
21810
22166
  }
21811
22167
  /**
21812
22168
  * * Field Name: AgentNoteTypeID
21813
- * * Display Name: Agent Note Type ID
22169
+ * * Display Name: Agent Note Type
21814
22170
  * * SQL Data Type: uniqueidentifier
21815
22171
  * * Related Entity/Foreign Key: AI Agent Note Types (vwAIAgentNoteTypes.ID)
21816
22172
  */
@@ -21852,7 +22208,7 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
21852
22208
  }
21853
22209
  /**
21854
22210
  * * Field Name: UserID
21855
- * * Display Name: User ID
22211
+ * * Display Name: User
21856
22212
  * * SQL Data Type: uniqueidentifier
21857
22213
  * * Related Entity/Foreign Key: Users (vwUsers.ID)
21858
22214
  * * Description: Foreign key referencing the ID column in the User table, indicating the user associated with the note. Used when Type=User
@@ -21885,7 +22241,7 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
21885
22241
  }
21886
22242
  /**
21887
22243
  * * Field Name: IsAutoGenerated
21888
- * * Display Name: Is Auto Generated
22244
+ * * Display Name: Auto Generated
21889
22245
  * * SQL Data Type: bit
21890
22246
  * * Default Value: 0
21891
22247
  * * Description: Indicates whether this note was automatically generated by an AI agent (1) or manually created (0).
@@ -21928,7 +22284,7 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
21928
22284
  }
21929
22285
  /**
21930
22286
  * * Field Name: SourceConversationID
21931
- * * Display Name: Source Conversation ID
22287
+ * * Display Name: Source Conversation
21932
22288
  * * SQL Data Type: uniqueidentifier
21933
22289
  * * Related Entity/Foreign Key: Conversations (vwConversations.ID)
21934
22290
  * * Description: Optional reference to the conversation that inspired or generated this note.
@@ -21941,7 +22297,7 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
21941
22297
  }
21942
22298
  /**
21943
22299
  * * Field Name: SourceConversationDetailID
21944
- * * Display Name: Source Conversation Detail ID
22300
+ * * Display Name: Source Conversation Detail
21945
22301
  * * SQL Data Type: uniqueidentifier
21946
22302
  * * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
21947
22303
  * * Description: Optional reference to the specific conversation message that inspired this note.
@@ -21954,7 +22310,7 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
21954
22310
  }
21955
22311
  /**
21956
22312
  * * Field Name: SourceAIAgentRunID
21957
- * * Display Name: Source AI Agent Run ID
22313
+ * * Display Name: Source AI Agent Run
21958
22314
  * * SQL Data Type: uniqueidentifier
21959
22315
  * * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
21960
22316
  * * Description: Optional reference to the AI agent run that generated this note.
@@ -21967,7 +22323,7 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
21967
22323
  }
21968
22324
  /**
21969
22325
  * * Field Name: CompanyID
21970
- * * Display Name: Company ID
22326
+ * * Display Name: Company
21971
22327
  * * SQL Data Type: uniqueidentifier
21972
22328
  * * Related Entity/Foreign Key: Companies (vwCompanies.ID)
21973
22329
  * * Description: Optional company scope for this note. When populated with UserID, creates org+user specific notes.
@@ -21992,7 +22348,7 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
21992
22348
  }
21993
22349
  /**
21994
22350
  * * Field Name: EmbeddingModelID
21995
- * * Display Name: Embedding Model ID
22351
+ * * Display Name: Embedding Model
21996
22352
  * * SQL Data Type: uniqueidentifier
21997
22353
  * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
21998
22354
  * * Description: Reference to the AI model used to generate the embedding vector.
@@ -22004,6 +22360,80 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
22004
22360
  this.Set('EmbeddingModelID', value);
22005
22361
  }
22006
22362
  /**
22363
+ * * Field Name: PrimaryScopeEntityID
22364
+ * * Display Name: Primary Scope Entity
22365
+ * * SQL Data Type: uniqueidentifier
22366
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)
22367
+ * * Description: Foreign key to Entity table identifying which entity type is used for primary scoping. NULL means this is a global note.
22368
+ */
22369
+ get PrimaryScopeEntityID() {
22370
+ return this.Get('PrimaryScopeEntityID');
22371
+ }
22372
+ set PrimaryScopeEntityID(value) {
22373
+ this.Set('PrimaryScopeEntityID', value);
22374
+ }
22375
+ /**
22376
+ * * Field Name: PrimaryScopeRecordID
22377
+ * * Display Name: Primary Scope Record
22378
+ * * SQL Data Type: nvarchar(100)
22379
+ * * Description: The record ID within the primary scope entity. NULL means global note. When set with empty SecondaryScopes, indicates primary-scope-only note.
22380
+ */
22381
+ get PrimaryScopeRecordID() {
22382
+ return this.Get('PrimaryScopeRecordID');
22383
+ }
22384
+ set PrimaryScopeRecordID(value) {
22385
+ this.Set('PrimaryScopeRecordID', value);
22386
+ }
22387
+ /**
22388
+ * * Field Name: SecondaryScopes
22389
+ * * Display Name: Secondary Scopes
22390
+ * * SQL Data Type: nvarchar(MAX)
22391
+ * * Description: JSON object containing additional scope dimensions. Empty/NULL with PrimaryScopeRecordID set = org-level note. Populated = fully-scoped note.
22392
+ */
22393
+ get SecondaryScopes() {
22394
+ return this.Get('SecondaryScopes');
22395
+ }
22396
+ set SecondaryScopes(value) {
22397
+ this.Set('SecondaryScopes', value);
22398
+ }
22399
+ /**
22400
+ * * Field Name: LastAccessedAt
22401
+ * * Display Name: Last Accessed At
22402
+ * * SQL Data Type: datetimeoffset
22403
+ * * Description: Timestamp of when this note was last accessed/injected into agent context. Used for lifecycle management and cleanup.
22404
+ */
22405
+ get LastAccessedAt() {
22406
+ return this.Get('LastAccessedAt');
22407
+ }
22408
+ set LastAccessedAt(value) {
22409
+ this.Set('LastAccessedAt', value);
22410
+ }
22411
+ /**
22412
+ * * Field Name: AccessCount
22413
+ * * Display Name: Access Count
22414
+ * * SQL Data Type: int
22415
+ * * Default Value: 0
22416
+ * * Description: Number of times this note has been accessed/injected into agent context. Used for analytics and determining note value.
22417
+ */
22418
+ get AccessCount() {
22419
+ return this.Get('AccessCount');
22420
+ }
22421
+ set AccessCount(value) {
22422
+ this.Set('AccessCount', value);
22423
+ }
22424
+ /**
22425
+ * * Field Name: ExpiresAt
22426
+ * * Display Name: Expires At
22427
+ * * SQL Data Type: datetimeoffset
22428
+ * * Description: Optional expiration timestamp. Notes past this date are candidates for archival. NULL means no expiration.
22429
+ */
22430
+ get ExpiresAt() {
22431
+ return this.Get('ExpiresAt');
22432
+ }
22433
+ set ExpiresAt(value) {
22434
+ this.Set('ExpiresAt', value);
22435
+ }
22436
+ /**
22007
22437
  * * Field Name: Agent
22008
22438
  * * Display Name: Agent
22009
22439
  * * SQL Data Type: nvarchar(255)
@@ -22067,6 +22497,14 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
22067
22497
  get EmbeddingModel() {
22068
22498
  return this.Get('EmbeddingModel');
22069
22499
  }
22500
+ /**
22501
+ * * Field Name: PrimaryScopeEntity
22502
+ * * Display Name: Primary Scope Entity
22503
+ * * SQL Data Type: nvarchar(255)
22504
+ */
22505
+ get PrimaryScopeEntity() {
22506
+ return this.Get('PrimaryScopeEntity');
22507
+ }
22070
22508
  };
22071
22509
  exports.AIAgentNoteEntity = AIAgentNoteEntity;
22072
22510
  exports.AIAgentNoteEntity = AIAgentNoteEntity = __decorate([
@@ -22486,7 +22924,7 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
22486
22924
  }
22487
22925
  /**
22488
22926
  * * Field Name: ParentID
22489
- * * Display Name: Parent Agent
22927
+ * * Display Name: Parent
22490
22928
  * * SQL Data Type: uniqueidentifier
22491
22929
  * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
22492
22930
  * * Description: References the parent agent in the hierarchical structure. If NULL, this is a root (top-level) agent.
@@ -22567,7 +23005,7 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
22567
23005
  }
22568
23006
  /**
22569
23007
  * * Field Name: ContextCompressionPromptID
22570
- * * Display Name: Context Compression Prompt
23008
+ * * Display Name: Context Compression Prompt ID
22571
23009
  * * SQL Data Type: uniqueidentifier
22572
23010
  * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
22573
23011
  */
@@ -22591,7 +23029,7 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
22591
23029
  }
22592
23030
  /**
22593
23031
  * * Field Name: TypeID
22594
- * * Display Name: Agent Type
23032
+ * * Display Name: Type
22595
23033
  * * SQL Data Type: uniqueidentifier
22596
23034
  * * Related Entity/Foreign Key: MJ: AI Agent Types (vwAIAgentTypes.ID)
22597
23035
  * * Description: Reference to the AIAgentType that defines the category and system-level behavior for this agent. Cannot be null.
@@ -22918,7 +23356,7 @@ if this limit is exceeded.
22918
23356
  }
22919
23357
  /**
22920
23358
  * * Field Name: OwnerUserID
22921
- * * Display Name: Owner User
23359
+ * * Display Name: Owner User ID
22922
23360
  * * SQL Data Type: uniqueidentifier
22923
23361
  * * Related Entity/Foreign Key: Users (vwUsers.ID)
22924
23362
  * * Default Value: ECAFCCEC-6A37-EF11-86D4-000D3A4E707E
@@ -23124,7 +23562,7 @@ if this limit is exceeded.
23124
23562
  }
23125
23563
  /**
23126
23564
  * * Field Name: AttachmentStorageProviderID
23127
- * * Display Name: Attachment Storage Provider
23565
+ * * Display Name: Attachment Storage Provider ID
23128
23566
  * * SQL Data Type: uniqueidentifier
23129
23567
  * * Related Entity/Foreign Key: File Storage Providers (vwFileStorageProviders.ID)
23130
23568
  * * Description: File storage provider for large attachments. Overrides the default from AIConfiguration. NULL uses system default.
@@ -23172,6 +23610,69 @@ if this limit is exceeded.
23172
23610
  this.Set('AgentTypePromptParams', value);
23173
23611
  }
23174
23612
  /**
23613
+ * * Field Name: ScopeConfig
23614
+ * * Display Name: Scope Config
23615
+ * * SQL Data Type: nvarchar(MAX)
23616
+ * * Description: JSON configuration defining scope dimensions for multi-tenant deployments. Example: {"dimensions":[{"name":"OrganizationID","entityId":"...","isPrimary":true,"required":true},{"name":"ContactID","entityId":"...","isPrimary":false,"required":false}],"inheritanceMode":"cascading"}
23617
+ */
23618
+ get ScopeConfig() {
23619
+ return this.Get('ScopeConfig');
23620
+ }
23621
+ set ScopeConfig(value) {
23622
+ this.Set('ScopeConfig', value);
23623
+ }
23624
+ /**
23625
+ * * Field Name: NoteRetentionDays
23626
+ * * Display Name: Note Retention Days
23627
+ * * SQL Data Type: int
23628
+ * * Default Value: 90
23629
+ * * Description: Number of days to retain notes before archiving due to inactivity. Default 90. NULL means use system default.
23630
+ */
23631
+ get NoteRetentionDays() {
23632
+ return this.Get('NoteRetentionDays');
23633
+ }
23634
+ set NoteRetentionDays(value) {
23635
+ this.Set('NoteRetentionDays', value);
23636
+ }
23637
+ /**
23638
+ * * Field Name: ExampleRetentionDays
23639
+ * * Display Name: Example Retention Days
23640
+ * * SQL Data Type: int
23641
+ * * Default Value: 180
23642
+ * * Description: Number of days to retain examples before archiving due to inactivity. Default 180. NULL means use system default.
23643
+ */
23644
+ get ExampleRetentionDays() {
23645
+ return this.Get('ExampleRetentionDays');
23646
+ }
23647
+ set ExampleRetentionDays(value) {
23648
+ this.Set('ExampleRetentionDays', value);
23649
+ }
23650
+ /**
23651
+ * * Field Name: AutoArchiveEnabled
23652
+ * * Display Name: Auto Archive Enabled
23653
+ * * SQL Data Type: bit
23654
+ * * Default Value: 1
23655
+ * * Description: Whether automatic archival of stale notes/examples is enabled for this agent. Default true.
23656
+ */
23657
+ get AutoArchiveEnabled() {
23658
+ return this.Get('AutoArchiveEnabled');
23659
+ }
23660
+ set AutoArchiveEnabled(value) {
23661
+ this.Set('AutoArchiveEnabled', value);
23662
+ }
23663
+ /**
23664
+ * * Field Name: RerankerConfiguration
23665
+ * * Display Name: Reranker Configuration
23666
+ * * SQL Data Type: nvarchar(MAX)
23667
+ * * Description: JSON configuration for optional reranking of retrieved memory items. Schema: { enabled: boolean, rerankerModelId: string, retrievalMultiplier: number (default 3), minRelevanceThreshold: number (default 0.5), rerankPromptId?: string, contextFields?: string[], fallbackOnError: boolean (default true) }. When null or disabled, vector search results are used directly without reranking.
23668
+ */
23669
+ get RerankerConfiguration() {
23670
+ return this.Get('RerankerConfiguration');
23671
+ }
23672
+ set RerankerConfiguration(value) {
23673
+ this.Set('RerankerConfiguration', value);
23674
+ }
23675
+ /**
23175
23676
  * * Field Name: Parent
23176
23677
  * * Display Name: Parent
23177
23678
  * * SQL Data Type: nvarchar(255)
@@ -40136,7 +40637,7 @@ let AIAgentExampleEntity = class AIAgentExampleEntity extends core_1.BaseEntity
40136
40637
  }
40137
40638
  /**
40138
40639
  * * Field Name: AgentID
40139
- * * Display Name: Agent ID
40640
+ * * Display Name: Agent
40140
40641
  * * SQL Data Type: uniqueidentifier
40141
40642
  * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
40142
40643
  * * Description: The AI agent this example is associated with. Examples are always agent-specific.
@@ -40149,7 +40650,7 @@ let AIAgentExampleEntity = class AIAgentExampleEntity extends core_1.BaseEntity
40149
40650
  }
40150
40651
  /**
40151
40652
  * * Field Name: UserID
40152
- * * Display Name: User ID
40653
+ * * Display Name: User
40153
40654
  * * SQL Data Type: uniqueidentifier
40154
40655
  * * Related Entity/Foreign Key: Users (vwUsers.ID)
40155
40656
  * * Description: Optional user scope. When populated, this example is specific to this user.
@@ -40162,7 +40663,7 @@ let AIAgentExampleEntity = class AIAgentExampleEntity extends core_1.BaseEntity
40162
40663
  }
40163
40664
  /**
40164
40665
  * * Field Name: CompanyID
40165
- * * Display Name: Company ID
40666
+ * * Display Name: Company
40166
40667
  * * SQL Data Type: uniqueidentifier
40167
40668
  * * Related Entity/Foreign Key: Companies (vwCompanies.ID)
40168
40669
  * * Description: Optional company scope. When populated, this example is specific to this company.
@@ -40232,7 +40733,7 @@ let AIAgentExampleEntity = class AIAgentExampleEntity extends core_1.BaseEntity
40232
40733
  }
40233
40734
  /**
40234
40735
  * * Field Name: SourceConversationID
40235
- * * Display Name: Source Conversation ID
40736
+ * * Display Name: Source Conversation
40236
40737
  * * SQL Data Type: uniqueidentifier
40237
40738
  * * Related Entity/Foreign Key: Conversations (vwConversations.ID)
40238
40739
  * * Description: Optional reference to the conversation where this example originated.
@@ -40245,7 +40746,7 @@ let AIAgentExampleEntity = class AIAgentExampleEntity extends core_1.BaseEntity
40245
40746
  }
40246
40747
  /**
40247
40748
  * * Field Name: SourceConversationDetailID
40248
- * * Display Name: Source Conversation Detail ID
40749
+ * * Display Name: Source Conversation Detail
40249
40750
  * * SQL Data Type: uniqueidentifier
40250
40751
  * * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
40251
40752
  * * Description: Optional reference to the specific conversation message that represents this example.
@@ -40258,7 +40759,7 @@ let AIAgentExampleEntity = class AIAgentExampleEntity extends core_1.BaseEntity
40258
40759
  }
40259
40760
  /**
40260
40761
  * * Field Name: SourceAIAgentRunID
40261
- * * Display Name: Source AI Agent Run ID
40762
+ * * Display Name: Source AI Agent Run
40262
40763
  * * SQL Data Type: uniqueidentifier
40263
40764
  * * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
40264
40765
  * * Description: Optional reference to the AI agent run that generated this example.
@@ -40343,7 +40844,7 @@ let AIAgentExampleEntity = class AIAgentExampleEntity extends core_1.BaseEntity
40343
40844
  }
40344
40845
  /**
40345
40846
  * * Field Name: EmbeddingModelID
40346
- * * Display Name: Embedding Model ID
40847
+ * * Display Name: Embedding Model
40347
40848
  * * SQL Data Type: uniqueidentifier
40348
40849
  * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
40349
40850
  * * Description: Reference to the AI model used to generate the embedding vector.
@@ -40355,6 +40856,80 @@ let AIAgentExampleEntity = class AIAgentExampleEntity extends core_1.BaseEntity
40355
40856
  this.Set('EmbeddingModelID', value);
40356
40857
  }
40357
40858
  /**
40859
+ * * Field Name: PrimaryScopeEntityID
40860
+ * * Display Name: Primary Scope Entity
40861
+ * * SQL Data Type: uniqueidentifier
40862
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)
40863
+ * * Description: Foreign key to Entity table identifying which entity type is used for primary scoping. NULL means this is a global example.
40864
+ */
40865
+ get PrimaryScopeEntityID() {
40866
+ return this.Get('PrimaryScopeEntityID');
40867
+ }
40868
+ set PrimaryScopeEntityID(value) {
40869
+ this.Set('PrimaryScopeEntityID', value);
40870
+ }
40871
+ /**
40872
+ * * Field Name: PrimaryScopeRecordID
40873
+ * * Display Name: Primary Scope Record
40874
+ * * SQL Data Type: nvarchar(100)
40875
+ * * Description: The record ID within the primary scope entity. NULL means global example. When set with empty SecondaryScopes, indicates primary-scope-only example.
40876
+ */
40877
+ get PrimaryScopeRecordID() {
40878
+ return this.Get('PrimaryScopeRecordID');
40879
+ }
40880
+ set PrimaryScopeRecordID(value) {
40881
+ this.Set('PrimaryScopeRecordID', value);
40882
+ }
40883
+ /**
40884
+ * * Field Name: SecondaryScopes
40885
+ * * Display Name: Secondary Scopes
40886
+ * * SQL Data Type: nvarchar(MAX)
40887
+ * * Description: JSON object containing additional scope dimensions. Empty/NULL with PrimaryScopeRecordID set = org-level example. Populated = fully-scoped example.
40888
+ */
40889
+ get SecondaryScopes() {
40890
+ return this.Get('SecondaryScopes');
40891
+ }
40892
+ set SecondaryScopes(value) {
40893
+ this.Set('SecondaryScopes', value);
40894
+ }
40895
+ /**
40896
+ * * Field Name: LastAccessedAt
40897
+ * * Display Name: Last Accessed At
40898
+ * * SQL Data Type: datetimeoffset
40899
+ * * Description: Timestamp of when this example was last accessed/used for agent context. Used for lifecycle management and cleanup.
40900
+ */
40901
+ get LastAccessedAt() {
40902
+ return this.Get('LastAccessedAt');
40903
+ }
40904
+ set LastAccessedAt(value) {
40905
+ this.Set('LastAccessedAt', value);
40906
+ }
40907
+ /**
40908
+ * * Field Name: AccessCount
40909
+ * * Display Name: Access Count
40910
+ * * SQL Data Type: int
40911
+ * * Default Value: 0
40912
+ * * Description: Number of times this example has been accessed/used. Used for analytics and determining example value.
40913
+ */
40914
+ get AccessCount() {
40915
+ return this.Get('AccessCount');
40916
+ }
40917
+ set AccessCount(value) {
40918
+ this.Set('AccessCount', value);
40919
+ }
40920
+ /**
40921
+ * * Field Name: ExpiresAt
40922
+ * * Display Name: Expires At
40923
+ * * SQL Data Type: datetimeoffset
40924
+ * * Description: Optional expiration timestamp. Examples past this date are candidates for archival. NULL means no expiration.
40925
+ */
40926
+ get ExpiresAt() {
40927
+ return this.Get('ExpiresAt');
40928
+ }
40929
+ set ExpiresAt(value) {
40930
+ this.Set('ExpiresAt', value);
40931
+ }
40932
+ /**
40358
40933
  * * Field Name: Agent
40359
40934
  * * Display Name: Agent
40360
40935
  * * SQL Data Type: nvarchar(255)
@@ -40410,6 +40985,14 @@ let AIAgentExampleEntity = class AIAgentExampleEntity extends core_1.BaseEntity
40410
40985
  get EmbeddingModel() {
40411
40986
  return this.Get('EmbeddingModel');
40412
40987
  }
40988
+ /**
40989
+ * * Field Name: PrimaryScopeEntity
40990
+ * * Display Name: Primary Scope Entity
40991
+ * * SQL Data Type: nvarchar(255)
40992
+ */
40993
+ get PrimaryScopeEntity() {
40994
+ return this.Get('PrimaryScopeEntity');
40995
+ }
40413
40996
  };
40414
40997
  exports.AIAgentExampleEntity = AIAgentExampleEntity;
40415
40998
  exports.AIAgentExampleEntity = AIAgentExampleEntity = __decorate([
@@ -41980,7 +42563,7 @@ let AIAgentRunEntity = class AIAgentRunEntity extends core_1.BaseEntity {
41980
42563
  }
41981
42564
  /**
41982
42565
  * * Field Name: AgentID
41983
- * * Display Name: Agent ID
42566
+ * * Display Name: Agent
41984
42567
  * * SQL Data Type: uniqueidentifier
41985
42568
  * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
41986
42569
  * * Description: Reference to the AIAgent that is being executed in this run
@@ -42075,7 +42658,7 @@ let AIAgentRunEntity = class AIAgentRunEntity extends core_1.BaseEntity {
42075
42658
  }
42076
42659
  /**
42077
42660
  * * Field Name: ConversationID
42078
- * * Display Name: Conversation ID
42661
+ * * Display Name: Conversation
42079
42662
  * * SQL Data Type: uniqueidentifier
42080
42663
  * * Related Entity/Foreign Key: Conversations (vwConversations.ID)
42081
42664
  * * Description: Identifier linking multiple agent runs that are part of the same conversation or user session
@@ -42088,7 +42671,7 @@ let AIAgentRunEntity = class AIAgentRunEntity extends core_1.BaseEntity {
42088
42671
  }
42089
42672
  /**
42090
42673
  * * Field Name: UserID
42091
- * * Display Name: User ID
42674
+ * * Display Name: User
42092
42675
  * * SQL Data Type: uniqueidentifier
42093
42676
  * * Related Entity/Foreign Key: Users (vwUsers.ID)
42094
42677
  * * Description: User context identifier for authentication and permissions during the agent run
@@ -42494,6 +43077,43 @@ each time the agent processes a prompt step.
42494
43077
  this.Set('TestRunID', value);
42495
43078
  }
42496
43079
  /**
43080
+ * * Field Name: PrimaryScopeEntityID
43081
+ * * Display Name: Primary Scope Entity ID
43082
+ * * SQL Data Type: uniqueidentifier
43083
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)
43084
+ * * Description: Foreign key to Entity table identifying which entity type is used for primary scoping (e.g., Organizations, Tenants)
43085
+ */
43086
+ get PrimaryScopeEntityID() {
43087
+ return this.Get('PrimaryScopeEntityID');
43088
+ }
43089
+ set PrimaryScopeEntityID(value) {
43090
+ this.Set('PrimaryScopeEntityID', value);
43091
+ }
43092
+ /**
43093
+ * * Field Name: PrimaryScopeRecordID
43094
+ * * Display Name: Primary Scope Record ID
43095
+ * * SQL Data Type: nvarchar(100)
43096
+ * * Description: The record ID within the primary scope entity (e.g., the specific OrganizationID). Indexed for fast multi-tenant filtering.
43097
+ */
43098
+ get PrimaryScopeRecordID() {
43099
+ return this.Get('PrimaryScopeRecordID');
43100
+ }
43101
+ set PrimaryScopeRecordID(value) {
43102
+ this.Set('PrimaryScopeRecordID', value);
43103
+ }
43104
+ /**
43105
+ * * Field Name: SecondaryScopes
43106
+ * * Display Name: Secondary Scopes
43107
+ * * SQL Data Type: nvarchar(MAX)
43108
+ * * Description: JSON object containing additional scope dimensions beyond the primary scope. Example: {"ContactID":"abc-123","TeamID":"team-456"}
43109
+ */
43110
+ get SecondaryScopes() {
43111
+ return this.Get('SecondaryScopes');
43112
+ }
43113
+ set SecondaryScopes(value) {
43114
+ this.Set('SecondaryScopes', value);
43115
+ }
43116
+ /**
42497
43117
  * * Field Name: Agent
42498
43118
  * * Display Name: Agent
42499
43119
  * * SQL Data Type: nvarchar(255)
@@ -42582,6 +43202,14 @@ each time the agent processes a prompt step.
42582
43202
  return this.Get('TestRun');
42583
43203
  }
42584
43204
  /**
43205
+ * * Field Name: PrimaryScopeEntity
43206
+ * * Display Name: Primary Scope Entity
43207
+ * * SQL Data Type: nvarchar(255)
43208
+ */
43209
+ get PrimaryScopeEntity() {
43210
+ return this.Get('PrimaryScopeEntity');
43211
+ }
43212
+ /**
42585
43213
  * * Field Name: RootParentRunID
42586
43214
  * * Display Name: Root Parent Run ID
42587
43215
  * * SQL Data Type: uniqueidentifier
@@ -47751,6 +48379,371 @@ exports.AIVendorEntity = AIVendorEntity;
47751
48379
  exports.AIVendorEntity = AIVendorEntity = __decorate([
47752
48380
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Vendors')
47753
48381
  ], AIVendorEntity);
48382
+ /**
48383
+ * MJ: API Application Scopes - strongly typed entity sub-class
48384
+ * * Schema: __mj
48385
+ * * Base Table: APIApplicationScope
48386
+ * * Base View: vwAPIApplicationScopes
48387
+ * * @description Defines the scope ceiling for each application with pattern-based rules. Controls which scopes and resource patterns an application can use, regardless of what API keys grant.
48388
+ * * Primary Key: ID
48389
+ * @extends {BaseEntity}
48390
+ * @class
48391
+ * @public
48392
+ */
48393
+ let APIApplicationScopeEntity = class APIApplicationScopeEntity extends core_1.BaseEntity {
48394
+ /**
48395
+ * Loads the MJ: API Application Scopes record from the database
48396
+ * @param ID: string - primary key value to load the MJ: API Application Scopes record.
48397
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
48398
+ * @returns {Promise<boolean>} - true if successful, false otherwise
48399
+ * @public
48400
+ * @async
48401
+ * @memberof APIApplicationScopeEntity
48402
+ * @method
48403
+ * @override
48404
+ */
48405
+ async Load(ID, EntityRelationshipsToLoad) {
48406
+ const compositeKey = new core_1.CompositeKey();
48407
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
48408
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
48409
+ }
48410
+ /**
48411
+ * * Field Name: ID
48412
+ * * Display Name: ID
48413
+ * * SQL Data Type: uniqueidentifier
48414
+ * * Default Value: newsequentialid()
48415
+ */
48416
+ get ID() {
48417
+ return this.Get('ID');
48418
+ }
48419
+ set ID(value) {
48420
+ this.Set('ID', value);
48421
+ }
48422
+ /**
48423
+ * * Field Name: ApplicationID
48424
+ * * Display Name: Application
48425
+ * * SQL Data Type: uniqueidentifier
48426
+ * * Related Entity/Foreign Key: MJ: API Applications (vwAPIApplications.ID)
48427
+ * * Description: Reference to the application this ceiling rule applies to.
48428
+ */
48429
+ get ApplicationID() {
48430
+ return this.Get('ApplicationID');
48431
+ }
48432
+ set ApplicationID(value) {
48433
+ this.Set('ApplicationID', value);
48434
+ }
48435
+ /**
48436
+ * * Field Name: ScopeID
48437
+ * * Display Name: Scope
48438
+ * * SQL Data Type: uniqueidentifier
48439
+ * * Related Entity/Foreign Key: MJ: API Scopes (vwAPIScopes.ID)
48440
+ * * Description: Reference to the scope this rule applies to.
48441
+ */
48442
+ get ScopeID() {
48443
+ return this.Get('ScopeID');
48444
+ }
48445
+ set ScopeID(value) {
48446
+ this.Set('ScopeID', value);
48447
+ }
48448
+ /**
48449
+ * * Field Name: ResourcePattern
48450
+ * * Display Name: Resource Pattern
48451
+ * * SQL Data Type: nvarchar(750)
48452
+ * * Description: Glob pattern for matching resources (e.g., Users,Accounts or Skip* or *). NULL means match all resources.
48453
+ */
48454
+ get ResourcePattern() {
48455
+ return this.Get('ResourcePattern');
48456
+ }
48457
+ set ResourcePattern(value) {
48458
+ this.Set('ResourcePattern', value);
48459
+ }
48460
+ /**
48461
+ * * Field Name: PatternType
48462
+ * * Display Name: Pattern Type
48463
+ * * SQL Data Type: nvarchar(20)
48464
+ * * Default Value: Include
48465
+ * * Value List Type: List
48466
+ * * Possible Values
48467
+ * * Exclude
48468
+ * * Include
48469
+ * * Description: How to interpret the pattern: Include (grant if matches) or Exclude (grant if does NOT match).
48470
+ */
48471
+ get PatternType() {
48472
+ return this.Get('PatternType');
48473
+ }
48474
+ set PatternType(value) {
48475
+ this.Set('PatternType', value);
48476
+ }
48477
+ /**
48478
+ * * Field Name: IsDeny
48479
+ * * Display Name: Deny
48480
+ * * SQL Data Type: bit
48481
+ * * Default Value: 0
48482
+ * * Description: If true, this rule explicitly DENIES access. Deny rules trump allow rules at the same priority level.
48483
+ */
48484
+ get IsDeny() {
48485
+ return this.Get('IsDeny');
48486
+ }
48487
+ set IsDeny(value) {
48488
+ this.Set('IsDeny', value);
48489
+ }
48490
+ /**
48491
+ * * Field Name: Priority
48492
+ * * Display Name: Priority
48493
+ * * SQL Data Type: int
48494
+ * * Default Value: 0
48495
+ * * Description: Rule evaluation order. Higher priority rules are evaluated first. Within same priority, deny rules are evaluated before allow rules.
48496
+ */
48497
+ get Priority() {
48498
+ return this.Get('Priority');
48499
+ }
48500
+ set Priority(value) {
48501
+ this.Set('Priority', value);
48502
+ }
48503
+ /**
48504
+ * * Field Name: __mj_CreatedAt
48505
+ * * Display Name: Created At
48506
+ * * SQL Data Type: datetimeoffset
48507
+ * * Default Value: getutcdate()
48508
+ */
48509
+ get __mj_CreatedAt() {
48510
+ return this.Get('__mj_CreatedAt');
48511
+ }
48512
+ /**
48513
+ * * Field Name: __mj_UpdatedAt
48514
+ * * Display Name: Updated At
48515
+ * * SQL Data Type: datetimeoffset
48516
+ * * Default Value: getutcdate()
48517
+ */
48518
+ get __mj_UpdatedAt() {
48519
+ return this.Get('__mj_UpdatedAt');
48520
+ }
48521
+ /**
48522
+ * * Field Name: Application
48523
+ * * Display Name: Application Name
48524
+ * * SQL Data Type: nvarchar(100)
48525
+ */
48526
+ get Application() {
48527
+ return this.Get('Application');
48528
+ }
48529
+ /**
48530
+ * * Field Name: Scope
48531
+ * * Display Name: Scope Name
48532
+ * * SQL Data Type: nvarchar(100)
48533
+ */
48534
+ get Scope() {
48535
+ return this.Get('Scope');
48536
+ }
48537
+ };
48538
+ exports.APIApplicationScopeEntity = APIApplicationScopeEntity;
48539
+ exports.APIApplicationScopeEntity = APIApplicationScopeEntity = __decorate([
48540
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: API Application Scopes')
48541
+ ], APIApplicationScopeEntity);
48542
+ /**
48543
+ * MJ: API Applications - strongly typed entity sub-class
48544
+ * * Schema: __mj
48545
+ * * Base Table: APIApplication
48546
+ * * Base View: vwAPIApplications
48547
+ * * @description Registry of applications that can consume MemberJunction APIs. Each application defines a scope ceiling that limits what API keys can access when used with that application.
48548
+ * * Primary Key: ID
48549
+ * @extends {BaseEntity}
48550
+ * @class
48551
+ * @public
48552
+ */
48553
+ let APIApplicationEntity = class APIApplicationEntity extends core_1.BaseEntity {
48554
+ /**
48555
+ * Loads the MJ: API Applications record from the database
48556
+ * @param ID: string - primary key value to load the MJ: API Applications record.
48557
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
48558
+ * @returns {Promise<boolean>} - true if successful, false otherwise
48559
+ * @public
48560
+ * @async
48561
+ * @memberof APIApplicationEntity
48562
+ * @method
48563
+ * @override
48564
+ */
48565
+ async Load(ID, EntityRelationshipsToLoad) {
48566
+ const compositeKey = new core_1.CompositeKey();
48567
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
48568
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
48569
+ }
48570
+ /**
48571
+ * * Field Name: ID
48572
+ * * Display Name: ID
48573
+ * * SQL Data Type: uniqueidentifier
48574
+ * * Default Value: newsequentialid()
48575
+ */
48576
+ get ID() {
48577
+ return this.Get('ID');
48578
+ }
48579
+ set ID(value) {
48580
+ this.Set('ID', value);
48581
+ }
48582
+ /**
48583
+ * * Field Name: Name
48584
+ * * Display Name: Name
48585
+ * * SQL Data Type: nvarchar(100)
48586
+ * * Description: Unique name identifying the application (e.g., MJAPI, MCPServer, Portal, CLI).
48587
+ */
48588
+ get Name() {
48589
+ return this.Get('Name');
48590
+ }
48591
+ set Name(value) {
48592
+ this.Set('Name', value);
48593
+ }
48594
+ /**
48595
+ * * Field Name: Description
48596
+ * * Display Name: Description
48597
+ * * SQL Data Type: nvarchar(500)
48598
+ * * Description: Human-readable description of the application and its purpose.
48599
+ */
48600
+ get Description() {
48601
+ return this.Get('Description');
48602
+ }
48603
+ set Description(value) {
48604
+ this.Set('Description', value);
48605
+ }
48606
+ /**
48607
+ * * Field Name: IsActive
48608
+ * * Display Name: Active
48609
+ * * SQL Data Type: bit
48610
+ * * Default Value: 1
48611
+ * * Description: Whether this application is currently active. Inactive applications reject all API key authentication.
48612
+ */
48613
+ get IsActive() {
48614
+ return this.Get('IsActive');
48615
+ }
48616
+ set IsActive(value) {
48617
+ this.Set('IsActive', value);
48618
+ }
48619
+ /**
48620
+ * * Field Name: __mj_CreatedAt
48621
+ * * Display Name: Created At
48622
+ * * SQL Data Type: datetimeoffset
48623
+ * * Default Value: getutcdate()
48624
+ */
48625
+ get __mj_CreatedAt() {
48626
+ return this.Get('__mj_CreatedAt');
48627
+ }
48628
+ /**
48629
+ * * Field Name: __mj_UpdatedAt
48630
+ * * Display Name: Updated At
48631
+ * * SQL Data Type: datetimeoffset
48632
+ * * Default Value: getutcdate()
48633
+ */
48634
+ get __mj_UpdatedAt() {
48635
+ return this.Get('__mj_UpdatedAt');
48636
+ }
48637
+ };
48638
+ exports.APIApplicationEntity = APIApplicationEntity;
48639
+ exports.APIApplicationEntity = APIApplicationEntity = __decorate([
48640
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: API Applications')
48641
+ ], APIApplicationEntity);
48642
+ /**
48643
+ * MJ: API Key Applications - strongly typed entity sub-class
48644
+ * * Schema: __mj
48645
+ * * Base Table: APIKeyApplication
48646
+ * * Base View: vwAPIKeyApplications
48647
+ * * @description Optional binding of API keys to specific applications. If no records exist for a key, it works with all applications. If records exist, the key only works with those specific applications.
48648
+ * * Primary Key: ID
48649
+ * @extends {BaseEntity}
48650
+ * @class
48651
+ * @public
48652
+ */
48653
+ let APIKeyApplicationEntity = class APIKeyApplicationEntity extends core_1.BaseEntity {
48654
+ /**
48655
+ * Loads the MJ: API Key Applications record from the database
48656
+ * @param ID: string - primary key value to load the MJ: API Key Applications record.
48657
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
48658
+ * @returns {Promise<boolean>} - true if successful, false otherwise
48659
+ * @public
48660
+ * @async
48661
+ * @memberof APIKeyApplicationEntity
48662
+ * @method
48663
+ * @override
48664
+ */
48665
+ async Load(ID, EntityRelationshipsToLoad) {
48666
+ const compositeKey = new core_1.CompositeKey();
48667
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
48668
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
48669
+ }
48670
+ /**
48671
+ * * Field Name: ID
48672
+ * * Display Name: ID
48673
+ * * SQL Data Type: uniqueidentifier
48674
+ * * Default Value: newsequentialid()
48675
+ */
48676
+ get ID() {
48677
+ return this.Get('ID');
48678
+ }
48679
+ set ID(value) {
48680
+ this.Set('ID', value);
48681
+ }
48682
+ /**
48683
+ * * Field Name: APIKeyID
48684
+ * * Display Name: API Key
48685
+ * * SQL Data Type: uniqueidentifier
48686
+ * * Related Entity/Foreign Key: MJ: API Keys (vwAPIKeys.ID)
48687
+ * * Description: Reference to the API key being bound to an application.
48688
+ */
48689
+ get APIKeyID() {
48690
+ return this.Get('APIKeyID');
48691
+ }
48692
+ set APIKeyID(value) {
48693
+ this.Set('APIKeyID', value);
48694
+ }
48695
+ /**
48696
+ * * Field Name: ApplicationID
48697
+ * * Display Name: Application
48698
+ * * SQL Data Type: uniqueidentifier
48699
+ * * Related Entity/Foreign Key: MJ: API Applications (vwAPIApplications.ID)
48700
+ * * Description: Reference to the application this key is authorized to use.
48701
+ */
48702
+ get ApplicationID() {
48703
+ return this.Get('ApplicationID');
48704
+ }
48705
+ set ApplicationID(value) {
48706
+ this.Set('ApplicationID', value);
48707
+ }
48708
+ /**
48709
+ * * Field Name: __mj_CreatedAt
48710
+ * * Display Name: Created At
48711
+ * * SQL Data Type: datetimeoffset
48712
+ * * Default Value: getutcdate()
48713
+ */
48714
+ get __mj_CreatedAt() {
48715
+ return this.Get('__mj_CreatedAt');
48716
+ }
48717
+ /**
48718
+ * * Field Name: __mj_UpdatedAt
48719
+ * * Display Name: Updated At
48720
+ * * SQL Data Type: datetimeoffset
48721
+ * * Default Value: getutcdate()
48722
+ */
48723
+ get __mj_UpdatedAt() {
48724
+ return this.Get('__mj_UpdatedAt');
48725
+ }
48726
+ /**
48727
+ * * Field Name: APIKey
48728
+ * * Display Name: API Key Value
48729
+ * * SQL Data Type: nvarchar(255)
48730
+ */
48731
+ get APIKey() {
48732
+ return this.Get('APIKey');
48733
+ }
48734
+ /**
48735
+ * * Field Name: Application
48736
+ * * Display Name: Application Name
48737
+ * * SQL Data Type: nvarchar(100)
48738
+ */
48739
+ get Application() {
48740
+ return this.Get('Application');
48741
+ }
48742
+ };
48743
+ exports.APIKeyApplicationEntity = APIKeyApplicationEntity;
48744
+ exports.APIKeyApplicationEntity = APIKeyApplicationEntity = __decorate([
48745
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: API Key Applications')
48746
+ ], APIKeyApplicationEntity);
47754
48747
  /**
47755
48748
  * MJ: API Key Scopes - strongly typed entity sub-class
47756
48749
  * * Schema: __mj
@@ -47805,7 +48798,7 @@ let APIKeyScopeEntity = class APIKeyScopeEntity extends core_1.BaseEntity {
47805
48798
  }
47806
48799
  /**
47807
48800
  * * Field Name: ScopeID
47808
- * * Display Name: Scope
48801
+ * * Display Name: Scope ID
47809
48802
  * * SQL Data Type: uniqueidentifier
47810
48803
  * * Related Entity/Foreign Key: MJ: API Scopes (vwAPIScopes.ID)
47811
48804
  */
@@ -47834,8 +48827,63 @@ let APIKeyScopeEntity = class APIKeyScopeEntity extends core_1.BaseEntity {
47834
48827
  return this.Get('__mj_UpdatedAt');
47835
48828
  }
47836
48829
  /**
48830
+ * * Field Name: ResourcePattern
48831
+ * * Display Name: Resource Pattern
48832
+ * * SQL Data Type: nvarchar(750)
48833
+ * * Description: Glob pattern for matching resources (e.g., Users,Accounts or Skip* or *). NULL means match all resources under this scope.
48834
+ */
48835
+ get ResourcePattern() {
48836
+ return this.Get('ResourcePattern');
48837
+ }
48838
+ set ResourcePattern(value) {
48839
+ this.Set('ResourcePattern', value);
48840
+ }
48841
+ /**
48842
+ * * Field Name: PatternType
48843
+ * * Display Name: Pattern Type
48844
+ * * SQL Data Type: nvarchar(20)
48845
+ * * Default Value: Include
48846
+ * * Value List Type: List
48847
+ * * Possible Values
48848
+ * * Exclude
48849
+ * * Include
48850
+ * * Description: How to interpret the pattern: Include (grant if matches) or Exclude (grant if does NOT match).
48851
+ */
48852
+ get PatternType() {
48853
+ return this.Get('PatternType');
48854
+ }
48855
+ set PatternType(value) {
48856
+ this.Set('PatternType', value);
48857
+ }
48858
+ /**
48859
+ * * Field Name: IsDeny
48860
+ * * Display Name: Deny Rule
48861
+ * * SQL Data Type: bit
48862
+ * * Default Value: 0
48863
+ * * Description: If true, this rule explicitly DENIES access. Deny rules trump allow rules at the same priority level.
48864
+ */
48865
+ get IsDeny() {
48866
+ return this.Get('IsDeny');
48867
+ }
48868
+ set IsDeny(value) {
48869
+ this.Set('IsDeny', value);
48870
+ }
48871
+ /**
48872
+ * * Field Name: Priority
48873
+ * * Display Name: Priority
48874
+ * * SQL Data Type: int
48875
+ * * Default Value: 0
48876
+ * * Description: Rule evaluation order. Higher priority rules are evaluated first. Within same priority, deny rules are evaluated before allow rules.
48877
+ */
48878
+ get Priority() {
48879
+ return this.Get('Priority');
48880
+ }
48881
+ set Priority(value) {
48882
+ this.Set('Priority', value);
48883
+ }
48884
+ /**
47837
48885
  * * Field Name: APIKey
47838
- * * Display Name: API Key
48886
+ * * Display Name: API Key Name
47839
48887
  * * SQL Data Type: nvarchar(255)
47840
48888
  */
47841
48889
  get APIKey() {
@@ -47843,7 +48891,7 @@ let APIKeyScopeEntity = class APIKeyScopeEntity extends core_1.BaseEntity {
47843
48891
  }
47844
48892
  /**
47845
48893
  * * Field Name: Scope
47846
- * * Display Name: Scope Name
48894
+ * * Display Name: Scope
47847
48895
  * * SQL Data Type: nvarchar(100)
47848
48896
  */
47849
48897
  get Scope() {
@@ -47956,7 +49004,7 @@ let APIKeyUsageLogEntity = class APIKeyUsageLogEntity extends core_1.BaseEntity
47956
49004
  }
47957
49005
  /**
47958
49006
  * * Field Name: ResponseTimeMs
47959
- * * Display Name: Response Time (ms)
49007
+ * * Display Name: Response Time
47960
49008
  * * SQL Data Type: int
47961
49009
  * * Description: Total time in milliseconds to process the request and return a response. Useful for performance monitoring.
47962
49010
  */
@@ -48009,13 +49057,88 @@ let APIKeyUsageLogEntity = class APIKeyUsageLogEntity extends core_1.BaseEntity
48009
49057
  return this.Get('__mj_UpdatedAt');
48010
49058
  }
48011
49059
  /**
49060
+ * * Field Name: ApplicationID
49061
+ * * Display Name: Application ID
49062
+ * * SQL Data Type: uniqueidentifier
49063
+ * * Related Entity/Foreign Key: MJ: API Applications (vwAPIApplications.ID)
49064
+ * * Description: The application through which this request was made (MJAPI, MCPServer, etc.).
49065
+ */
49066
+ get ApplicationID() {
49067
+ return this.Get('ApplicationID');
49068
+ }
49069
+ set ApplicationID(value) {
49070
+ this.Set('ApplicationID', value);
49071
+ }
49072
+ /**
49073
+ * * Field Name: RequestedResource
49074
+ * * Display Name: Requested Resource
49075
+ * * SQL Data Type: nvarchar(500)
49076
+ * * Description: The specific resource that was requested (e.g., entity name, agent name, query name).
49077
+ */
49078
+ get RequestedResource() {
49079
+ return this.Get('RequestedResource');
49080
+ }
49081
+ set RequestedResource(value) {
49082
+ this.Set('RequestedResource', value);
49083
+ }
49084
+ /**
49085
+ * * Field Name: ScopesEvaluated
49086
+ * * Display Name: Scopes Evaluated
49087
+ * * SQL Data Type: nvarchar(MAX)
49088
+ * * Description: JSON array containing detailed evaluation of each scope rule checked during authorization.
49089
+ */
49090
+ get ScopesEvaluated() {
49091
+ return this.Get('ScopesEvaluated');
49092
+ }
49093
+ set ScopesEvaluated(value) {
49094
+ this.Set('ScopesEvaluated', value);
49095
+ }
49096
+ /**
49097
+ * * Field Name: AuthorizationResult
49098
+ * * Display Name: Authorization Result
49099
+ * * SQL Data Type: nvarchar(20)
49100
+ * * Default Value: Allowed
49101
+ * * Value List Type: List
49102
+ * * Possible Values
49103
+ * * Allowed
49104
+ * * Denied
49105
+ * * NoScopesRequired
49106
+ * * Description: Final authorization result: Allowed, Denied, or NoScopesRequired (for operations that do not require scope checks).
49107
+ */
49108
+ get AuthorizationResult() {
49109
+ return this.Get('AuthorizationResult');
49110
+ }
49111
+ set AuthorizationResult(value) {
49112
+ this.Set('AuthorizationResult', value);
49113
+ }
49114
+ /**
49115
+ * * Field Name: DeniedReason
49116
+ * * Display Name: Denied Reason
49117
+ * * SQL Data Type: nvarchar(500)
49118
+ * * Description: When authorization is denied, explains why (e.g., app ceiling blocked, no matching key scope, explicit deny rule).
49119
+ */
49120
+ get DeniedReason() {
49121
+ return this.Get('DeniedReason');
49122
+ }
49123
+ set DeniedReason(value) {
49124
+ this.Set('DeniedReason', value);
49125
+ }
49126
+ /**
48012
49127
  * * Field Name: APIKey
48013
- * * Display Name: API Key
49128
+ * * Display Name: API Key Value
48014
49129
  * * SQL Data Type: nvarchar(255)
48015
49130
  */
48016
49131
  get APIKey() {
48017
49132
  return this.Get('APIKey');
48018
49133
  }
49134
+ /**
49135
+ * * Field Name: Application
49136
+ * * Display Name: Application
49137
+ * * SQL Data Type: nvarchar(100)
49138
+ */
49139
+ get Application() {
49140
+ return this.Get('Application');
49141
+ }
48019
49142
  };
48020
49143
  exports.APIKeyUsageLogEntity = APIKeyUsageLogEntity;
48021
49144
  exports.APIKeyUsageLogEntity = APIKeyUsageLogEntity = __decorate([
@@ -48243,7 +49366,7 @@ let APIScopeEntity = class APIScopeEntity extends core_1.BaseEntity {
48243
49366
  }
48244
49367
  /**
48245
49368
  * * Field Name: Name
48246
- * * Display Name: Scope Name
49369
+ * * Display Name: Name
48247
49370
  * * SQL Data Type: nvarchar(100)
48248
49371
  * * Description: Unique scope identifier following the pattern category:permission (e.g., entities:read, agents:execute, admin:*). Supports wildcard (*) for broad permissions.
48249
49372
  */
@@ -48255,7 +49378,7 @@ let APIScopeEntity = class APIScopeEntity extends core_1.BaseEntity {
48255
49378
  }
48256
49379
  /**
48257
49380
  * * Field Name: Category
48258
- * * Display Name: Scope Category
49381
+ * * Display Name: Category
48259
49382
  * * SQL Data Type: nvarchar(100)
48260
49383
  * * Description: Grouping category for the scope (e.g., Entities, Agents, Admin). Used for organizing and filtering scopes in the UI.
48261
49384
  */
@@ -48295,6 +49418,72 @@ let APIScopeEntity = class APIScopeEntity extends core_1.BaseEntity {
48295
49418
  get __mj_UpdatedAt() {
48296
49419
  return this.Get('__mj_UpdatedAt');
48297
49420
  }
49421
+ /**
49422
+ * * Field Name: ParentID
49423
+ * * Display Name: Parent ID
49424
+ * * SQL Data Type: uniqueidentifier
49425
+ * * Related Entity/Foreign Key: MJ: API Scopes (vwAPIScopes.ID)
49426
+ * * Description: Reference to parent scope for hierarchical organization. NULL indicates a root-level scope.
49427
+ */
49428
+ get ParentID() {
49429
+ return this.Get('ParentID');
49430
+ }
49431
+ set ParentID(value) {
49432
+ this.Set('ParentID', value);
49433
+ }
49434
+ /**
49435
+ * * Field Name: FullPath
49436
+ * * Display Name: Full Path
49437
+ * * SQL Data Type: nvarchar(500)
49438
+ * * Description: Full hierarchical path of the scope (e.g., entity:runview, agent:execute). Used for matching during authorization.
49439
+ */
49440
+ get FullPath() {
49441
+ return this.Get('FullPath');
49442
+ }
49443
+ set FullPath(value) {
49444
+ this.Set('FullPath', value);
49445
+ }
49446
+ /**
49447
+ * * Field Name: ResourceType
49448
+ * * Display Name: Resource Type
49449
+ * * SQL Data Type: nvarchar(50)
49450
+ * * Description: Type of resource this scope applies to (Entity, Agent, Query, Mutation, or NULL for abstract grouping scopes).
49451
+ */
49452
+ get ResourceType() {
49453
+ return this.Get('ResourceType');
49454
+ }
49455
+ set ResourceType(value) {
49456
+ this.Set('ResourceType', value);
49457
+ }
49458
+ /**
49459
+ * * Field Name: IsActive
49460
+ * * Display Name: Active
49461
+ * * SQL Data Type: bit
49462
+ * * Default Value: 1
49463
+ * * Description: Whether this scope is currently active. Inactive scopes are ignored during authorization.
49464
+ */
49465
+ get IsActive() {
49466
+ return this.Get('IsActive');
49467
+ }
49468
+ set IsActive(value) {
49469
+ this.Set('IsActive', value);
49470
+ }
49471
+ /**
49472
+ * * Field Name: Parent
49473
+ * * Display Name: Parent
49474
+ * * SQL Data Type: nvarchar(100)
49475
+ */
49476
+ get Parent() {
49477
+ return this.Get('Parent');
49478
+ }
49479
+ /**
49480
+ * * Field Name: RootParentID
49481
+ * * Display Name: Root Parent ID
49482
+ * * SQL Data Type: uniqueidentifier
49483
+ */
49484
+ get RootParentID() {
49485
+ return this.Get('RootParentID');
49486
+ }
48298
49487
  };
48299
49488
  exports.APIScopeEntity = APIScopeEntity;
48300
49489
  exports.APIScopeEntity = APIScopeEntity = __decorate([