@memberjunction/core-entities 2.102.0 → 2.104.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.
- package/dist/custom/EnvironmentEntityExtended.d.ts +12 -0
- package/dist/custom/EnvironmentEntityExtended.d.ts.map +1 -0
- package/dist/custom/EnvironmentEntityExtended.js +29 -0
- package/dist/custom/EnvironmentEntityExtended.js.map +1 -0
- package/dist/generated/entity_subclasses.d.ts +281 -0
- package/dist/generated/entity_subclasses.d.ts.map +1 -1
- package/dist/generated/entity_subclasses.js +411 -7
- package/dist/generated/entity_subclasses.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -8,13 +8,13 @@ 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.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.WorkspaceEntity = exports.WorkspaceItemEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.WorkflowEngineEntity = exports.VersionInstallationEntity = exports.VectorIndexEntity = exports.VectorDatabaseEntity = exports.UserEntity = void 0;
|
|
11
|
+
exports.TaskSchema = exports.TaskTypeSchema = exports.TaskDependencySchema = exports.ReportVersionSchema = exports.ReportUserStateSchema = exports.RecordLinkSchema = exports.QueryParameterSchema = exports.PublicLinkSchema = exports.ProjectSchema = exports.EnvironmentSchema = exports.DashboardUserStateSchema = exports.DashboardUserPreferenceSchema = exports.ConversationDetailArtifactSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = exports.ConversationArtifactPermissionSchema = exports.ComponentSchema = exports.ComponentRegistrySchema = exports.ComponentLibraryLinkSchema = exports.ComponentLibrarySchema = exports.ComponentDependencySchema = exports.CollectionSchema = exports.CollectionArtifactSchema = exports.ArtifactSchema = exports.ArtifactVersionSchema = exports.ArtifactTypeSchema = exports.AIVendorSchema = exports.AIVendorTypeSchema = exports.AIVendorTypeDefinitionSchema = exports.AIPromptRunSchema = exports.AIPromptModelSchema = exports.AIModelVendorSchema = exports.AIModelPriceUnitTypeSchema = exports.AIModelPriceTypeSchema = exports.AIModelCostSchema = exports.AIConfigurationSchema = exports.AIConfigurationParamSchema = exports.AIAgentTypeSchema = exports.AIAgentStepSchema = exports.AIAgentStepPathSchema = exports.AIAgentRunSchema = exports.AIAgentRunStepSchema = exports.AIAgentRelationshipSchema = exports.AIAgentPromptSchema = exports.AccessControlRuleSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
|
|
12
|
+
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;
|
|
13
|
+
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;
|
|
14
|
+
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;
|
|
15
|
+
exports.QueryParameterEntity = exports.PublicLinkEntity = exports.ProjectEntity = exports.EnvironmentEntity = exports.DashboardUserStateEntity = exports.DashboardUserPreferenceEntity = exports.ConversationDetailArtifactEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = exports.ConversationArtifactPermissionEntity = exports.ComponentEntity = exports.ComponentRegistryEntity = exports.ComponentLibraryLinkEntity = exports.ComponentLibraryEntity = exports.ComponentDependencyEntity = exports.CollectionEntity = exports.CollectionArtifactEntity = exports.ArtifactEntity = exports.ArtifactVersionEntity = exports.ArtifactTypeEntity = exports.AIVendorEntity = exports.AIVendorTypeEntity = exports.AIVendorTypeDefinitionEntity = exports.AIPromptRunEntity = exports.AIPromptModelEntity = exports.AIModelVendorEntity = exports.AIModelPriceUnitTypeEntity = exports.AIModelPriceTypeEntity = exports.AIModelCostEntity = exports.AIConfigurationEntity = exports.AIConfigurationParamEntity = exports.AIAgentTypeEntity = exports.AIAgentStepEntity = exports.AIAgentStepPathEntity = exports.AIAgentRunEntity = exports.AIAgentRunStepEntity = exports.AIAgentRelationshipEntity = exports.AIAgentPromptEntity = 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;
|
|
16
|
+
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.TaskEntity = exports.TaskTypeEntity = exports.TaskDependencyEntity = exports.ReportVersionEntity = exports.ReportUserStateEntity = exports.RecordLinkEntity = void 0;
|
|
17
|
+
exports.WorkspaceEntity = exports.WorkspaceItemEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.WorkflowEngineEntity = exports.VersionInstallationEntity = exports.VectorIndexEntity = exports.VectorDatabaseEntity = exports.UserEntity = exports.UserViewEntity = exports.UserViewRunEntity = exports.UserViewRunDetailEntity = exports.UserViewCategoryEntity = void 0;
|
|
18
18
|
const core_1 = require("@memberjunction/core");
|
|
19
19
|
const global_1 = require("@memberjunction/global");
|
|
20
20
|
const zod_1 = require("zod");
|
|
@@ -3620,6 +3620,29 @@ exports.ConversationDetailSchema = zod_1.z.object({
|
|
|
3620
3620
|
* * SQL Data Type: bit
|
|
3621
3621
|
* * Default Value: 0
|
|
3622
3622
|
* * Description: Indicates if this message is pinned within the conversation for easy reference`),
|
|
3623
|
+
ParentID: zod_1.z.string().nullable().describe(`
|
|
3624
|
+
* * Field Name: ParentID
|
|
3625
|
+
* * Display Name: Parent ID
|
|
3626
|
+
* * SQL Data Type: uniqueidentifier
|
|
3627
|
+
* * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
|
|
3628
|
+
* * Description: Optional reference to parent message for threaded conversations. NULL for top-level messages.`),
|
|
3629
|
+
AgentID: zod_1.z.string().nullable().describe(`
|
|
3630
|
+
* * Field Name: AgentID
|
|
3631
|
+
* * Display Name: Agent ID
|
|
3632
|
+
* * SQL Data Type: uniqueidentifier
|
|
3633
|
+
* * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
|
|
3634
|
+
* * Description: Denormalized agent ID for quick lookup of agent name and icon without joining through AgentRun`),
|
|
3635
|
+
Status: zod_1.z.union([zod_1.z.literal('Complete'), zod_1.z.literal('In-Progress'), zod_1.z.literal('Error')]).describe(`
|
|
3636
|
+
* * Field Name: Status
|
|
3637
|
+
* * Display Name: Status
|
|
3638
|
+
* * SQL Data Type: nvarchar(20)
|
|
3639
|
+
* * Default Value: Complete
|
|
3640
|
+
* * Value List Type: List
|
|
3641
|
+
* * Possible Values
|
|
3642
|
+
* * Complete
|
|
3643
|
+
* * In-Progress
|
|
3644
|
+
* * Error
|
|
3645
|
+
* * Description: Status of the conversation message. Complete indicates finished processing, In-Progress indicates active agent work, Error indicates processing failed.`),
|
|
3623
3646
|
Conversation: zod_1.z.string().nullable().describe(`
|
|
3624
3647
|
* * Field Name: Conversation
|
|
3625
3648
|
* * Display Name: Conversation
|
|
@@ -3632,6 +3655,10 @@ exports.ConversationDetailSchema = zod_1.z.object({
|
|
|
3632
3655
|
* * Field Name: Artifact
|
|
3633
3656
|
* * Display Name: Artifact
|
|
3634
3657
|
* * SQL Data Type: nvarchar(255)`),
|
|
3658
|
+
Agent: zod_1.z.string().nullable().describe(`
|
|
3659
|
+
* * Field Name: Agent
|
|
3660
|
+
* * Display Name: Agent
|
|
3661
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
3635
3662
|
});
|
|
3636
3663
|
/**
|
|
3637
3664
|
* zod schema definition for the entity Conversations
|
|
@@ -9332,6 +9359,11 @@ exports.ArtifactVersionSchema = zod_1.z.object({
|
|
|
9332
9359
|
* * Display Name: Updated At
|
|
9333
9360
|
* * SQL Data Type: datetimeoffset
|
|
9334
9361
|
* * Default Value: getutcdate()`),
|
|
9362
|
+
ContentHash: zod_1.z.string().nullable().describe(`
|
|
9363
|
+
* * Field Name: ContentHash
|
|
9364
|
+
* * Display Name: Content Hash
|
|
9365
|
+
* * SQL Data Type: nvarchar(500)
|
|
9366
|
+
* * Description: SHA-256 hash of the Content field for duplicate detection and version comparison`),
|
|
9335
9367
|
Artifact: zod_1.z.string().describe(`
|
|
9336
9368
|
* * Field Name: Artifact
|
|
9337
9369
|
* * Display Name: Artifact
|
|
@@ -9404,6 +9436,50 @@ exports.ArtifactSchema = zod_1.z.object({
|
|
|
9404
9436
|
* * Display Name: User
|
|
9405
9437
|
* * SQL Data Type: nvarchar(100)`),
|
|
9406
9438
|
});
|
|
9439
|
+
/**
|
|
9440
|
+
* zod schema definition for the entity MJ: Collection Artifacts
|
|
9441
|
+
*/
|
|
9442
|
+
exports.CollectionArtifactSchema = zod_1.z.object({
|
|
9443
|
+
ID: zod_1.z.string().describe(`
|
|
9444
|
+
* * Field Name: ID
|
|
9445
|
+
* * Display Name: ID
|
|
9446
|
+
* * SQL Data Type: uniqueidentifier
|
|
9447
|
+
* * Default Value: newsequentialid()`),
|
|
9448
|
+
CollectionID: zod_1.z.string().describe(`
|
|
9449
|
+
* * Field Name: CollectionID
|
|
9450
|
+
* * Display Name: Collection ID
|
|
9451
|
+
* * SQL Data Type: uniqueidentifier
|
|
9452
|
+
* * Related Entity/Foreign Key: MJ: Collections (vwCollections.ID)`),
|
|
9453
|
+
ArtifactID: zod_1.z.string().describe(`
|
|
9454
|
+
* * Field Name: ArtifactID
|
|
9455
|
+
* * Display Name: Artifact ID
|
|
9456
|
+
* * SQL Data Type: uniqueidentifier
|
|
9457
|
+
* * Related Entity/Foreign Key: MJ: Artifacts (vwArtifacts.ID)`),
|
|
9458
|
+
Sequence: zod_1.z.number().describe(`
|
|
9459
|
+
* * Field Name: Sequence
|
|
9460
|
+
* * Display Name: Sequence
|
|
9461
|
+
* * SQL Data Type: int
|
|
9462
|
+
* * Default Value: 0
|
|
9463
|
+
* * Description: Sequence number for ordering artifacts within a collection`),
|
|
9464
|
+
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
9465
|
+
* * Field Name: __mj_CreatedAt
|
|
9466
|
+
* * Display Name: Created At
|
|
9467
|
+
* * SQL Data Type: datetimeoffset
|
|
9468
|
+
* * Default Value: getutcdate()`),
|
|
9469
|
+
__mj_UpdatedAt: zod_1.z.date().describe(`
|
|
9470
|
+
* * Field Name: __mj_UpdatedAt
|
|
9471
|
+
* * Display Name: Updated At
|
|
9472
|
+
* * SQL Data Type: datetimeoffset
|
|
9473
|
+
* * Default Value: getutcdate()`),
|
|
9474
|
+
Collection: zod_1.z.string().describe(`
|
|
9475
|
+
* * Field Name: Collection
|
|
9476
|
+
* * Display Name: Collection
|
|
9477
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
9478
|
+
Artifact: zod_1.z.string().describe(`
|
|
9479
|
+
* * Field Name: Artifact
|
|
9480
|
+
* * Display Name: Artifact
|
|
9481
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
9482
|
+
});
|
|
9407
9483
|
/**
|
|
9408
9484
|
* zod schema definition for the entity MJ: Collections
|
|
9409
9485
|
*/
|
|
@@ -10057,6 +10133,48 @@ exports.ConversationArtifactSchema = zod_1.z.object({
|
|
|
10057
10133
|
* * Display Name: Artifact Type
|
|
10058
10134
|
* * SQL Data Type: nvarchar(100)`),
|
|
10059
10135
|
});
|
|
10136
|
+
/**
|
|
10137
|
+
* zod schema definition for the entity MJ: Conversation Detail Artifacts
|
|
10138
|
+
*/
|
|
10139
|
+
exports.ConversationDetailArtifactSchema = zod_1.z.object({
|
|
10140
|
+
ID: zod_1.z.string().describe(`
|
|
10141
|
+
* * Field Name: ID
|
|
10142
|
+
* * Display Name: ID
|
|
10143
|
+
* * SQL Data Type: uniqueidentifier
|
|
10144
|
+
* * Default Value: newsequentialid()`),
|
|
10145
|
+
ConversationDetailID: zod_1.z.string().describe(`
|
|
10146
|
+
* * Field Name: ConversationDetailID
|
|
10147
|
+
* * Display Name: Conversation Detail ID
|
|
10148
|
+
* * SQL Data Type: uniqueidentifier
|
|
10149
|
+
* * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
|
|
10150
|
+
* * Description: Foreign key to ConversationDetail - the conversation message associated with this artifact`),
|
|
10151
|
+
ArtifactVersionID: zod_1.z.string().describe(`
|
|
10152
|
+
* * Field Name: ArtifactVersionID
|
|
10153
|
+
* * Display Name: Artifact Version ID
|
|
10154
|
+
* * SQL Data Type: uniqueidentifier
|
|
10155
|
+
* * Related Entity/Foreign Key: MJ: Artifact Versions (vwArtifactVersions.ID)
|
|
10156
|
+
* * Description: Foreign key to ArtifactVersion - the specific artifact version linked to this conversation message`),
|
|
10157
|
+
Direction: zod_1.z.union([zod_1.z.literal('Input'), zod_1.z.literal('Output')]).describe(`
|
|
10158
|
+
* * Field Name: Direction
|
|
10159
|
+
* * Display Name: Direction
|
|
10160
|
+
* * SQL Data Type: nvarchar(20)
|
|
10161
|
+
* * Default Value: Output
|
|
10162
|
+
* * Value List Type: List
|
|
10163
|
+
* * Possible Values
|
|
10164
|
+
* * Input
|
|
10165
|
+
* * Output
|
|
10166
|
+
* * Description: Direction of artifact flow: Input (fed to agent) or Output (produced by agent)`),
|
|
10167
|
+
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
10168
|
+
* * Field Name: __mj_CreatedAt
|
|
10169
|
+
* * Display Name: Created At
|
|
10170
|
+
* * SQL Data Type: datetimeoffset
|
|
10171
|
+
* * Default Value: getutcdate()`),
|
|
10172
|
+
__mj_UpdatedAt: zod_1.z.date().describe(`
|
|
10173
|
+
* * Field Name: __mj_UpdatedAt
|
|
10174
|
+
* * Display Name: Updated At
|
|
10175
|
+
* * SQL Data Type: datetimeoffset
|
|
10176
|
+
* * Default Value: getutcdate()`),
|
|
10177
|
+
});
|
|
10060
10178
|
/**
|
|
10061
10179
|
* zod schema definition for the entity MJ: Dashboard User Preferences
|
|
10062
10180
|
*/
|
|
@@ -23647,6 +23765,50 @@ let ConversationDetailEntity = class ConversationDetailEntity extends core_1.Bas
|
|
|
23647
23765
|
this.Set('IsPinned', value);
|
|
23648
23766
|
}
|
|
23649
23767
|
/**
|
|
23768
|
+
* * Field Name: ParentID
|
|
23769
|
+
* * Display Name: Parent ID
|
|
23770
|
+
* * SQL Data Type: uniqueidentifier
|
|
23771
|
+
* * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
|
|
23772
|
+
* * Description: Optional reference to parent message for threaded conversations. NULL for top-level messages.
|
|
23773
|
+
*/
|
|
23774
|
+
get ParentID() {
|
|
23775
|
+
return this.Get('ParentID');
|
|
23776
|
+
}
|
|
23777
|
+
set ParentID(value) {
|
|
23778
|
+
this.Set('ParentID', value);
|
|
23779
|
+
}
|
|
23780
|
+
/**
|
|
23781
|
+
* * Field Name: AgentID
|
|
23782
|
+
* * Display Name: Agent ID
|
|
23783
|
+
* * SQL Data Type: uniqueidentifier
|
|
23784
|
+
* * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
|
|
23785
|
+
* * Description: Denormalized agent ID for quick lookup of agent name and icon without joining through AgentRun
|
|
23786
|
+
*/
|
|
23787
|
+
get AgentID() {
|
|
23788
|
+
return this.Get('AgentID');
|
|
23789
|
+
}
|
|
23790
|
+
set AgentID(value) {
|
|
23791
|
+
this.Set('AgentID', value);
|
|
23792
|
+
}
|
|
23793
|
+
/**
|
|
23794
|
+
* * Field Name: Status
|
|
23795
|
+
* * Display Name: Status
|
|
23796
|
+
* * SQL Data Type: nvarchar(20)
|
|
23797
|
+
* * Default Value: Complete
|
|
23798
|
+
* * Value List Type: List
|
|
23799
|
+
* * Possible Values
|
|
23800
|
+
* * Complete
|
|
23801
|
+
* * In-Progress
|
|
23802
|
+
* * Error
|
|
23803
|
+
* * Description: Status of the conversation message. Complete indicates finished processing, In-Progress indicates active agent work, Error indicates processing failed.
|
|
23804
|
+
*/
|
|
23805
|
+
get Status() {
|
|
23806
|
+
return this.Get('Status');
|
|
23807
|
+
}
|
|
23808
|
+
set Status(value) {
|
|
23809
|
+
this.Set('Status', value);
|
|
23810
|
+
}
|
|
23811
|
+
/**
|
|
23650
23812
|
* * Field Name: Conversation
|
|
23651
23813
|
* * Display Name: Conversation
|
|
23652
23814
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -23670,6 +23832,14 @@ let ConversationDetailEntity = class ConversationDetailEntity extends core_1.Bas
|
|
|
23670
23832
|
get Artifact() {
|
|
23671
23833
|
return this.Get('Artifact');
|
|
23672
23834
|
}
|
|
23835
|
+
/**
|
|
23836
|
+
* * Field Name: Agent
|
|
23837
|
+
* * Display Name: Agent
|
|
23838
|
+
* * SQL Data Type: nvarchar(255)
|
|
23839
|
+
*/
|
|
23840
|
+
get Agent() {
|
|
23841
|
+
return this.Get('Agent');
|
|
23842
|
+
}
|
|
23673
23843
|
};
|
|
23674
23844
|
exports.ConversationDetailEntity = ConversationDetailEntity;
|
|
23675
23845
|
exports.ConversationDetailEntity = ConversationDetailEntity = __decorate([
|
|
@@ -38020,6 +38190,18 @@ let ArtifactVersionEntity = class ArtifactVersionEntity extends core_1.BaseEntit
|
|
|
38020
38190
|
return this.Get('__mj_UpdatedAt');
|
|
38021
38191
|
}
|
|
38022
38192
|
/**
|
|
38193
|
+
* * Field Name: ContentHash
|
|
38194
|
+
* * Display Name: Content Hash
|
|
38195
|
+
* * SQL Data Type: nvarchar(500)
|
|
38196
|
+
* * Description: SHA-256 hash of the Content field for duplicate detection and version comparison
|
|
38197
|
+
*/
|
|
38198
|
+
get ContentHash() {
|
|
38199
|
+
return this.Get('ContentHash');
|
|
38200
|
+
}
|
|
38201
|
+
set ContentHash(value) {
|
|
38202
|
+
this.Set('ContentHash', value);
|
|
38203
|
+
}
|
|
38204
|
+
/**
|
|
38023
38205
|
* * Field Name: Artifact
|
|
38024
38206
|
* * Display Name: Artifact
|
|
38025
38207
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -38200,6 +38382,122 @@ exports.ArtifactEntity = ArtifactEntity;
|
|
|
38200
38382
|
exports.ArtifactEntity = ArtifactEntity = __decorate([
|
|
38201
38383
|
(0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Artifacts')
|
|
38202
38384
|
], ArtifactEntity);
|
|
38385
|
+
/**
|
|
38386
|
+
* MJ: Collection Artifacts - strongly typed entity sub-class
|
|
38387
|
+
* * Schema: __mj
|
|
38388
|
+
* * Base Table: CollectionArtifact
|
|
38389
|
+
* * Base View: vwCollectionArtifacts
|
|
38390
|
+
* * @description Join table that establishes many-to-many relationships between Collections and Artifacts, allowing artifacts to be organized within collections
|
|
38391
|
+
* * Primary Key: ID
|
|
38392
|
+
* @extends {BaseEntity}
|
|
38393
|
+
* @class
|
|
38394
|
+
* @public
|
|
38395
|
+
*/
|
|
38396
|
+
let CollectionArtifactEntity = class CollectionArtifactEntity extends core_1.BaseEntity {
|
|
38397
|
+
/**
|
|
38398
|
+
* Loads the MJ: Collection Artifacts record from the database
|
|
38399
|
+
* @param ID: string - primary key value to load the MJ: Collection Artifacts record.
|
|
38400
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
38401
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
38402
|
+
* @public
|
|
38403
|
+
* @async
|
|
38404
|
+
* @memberof CollectionArtifactEntity
|
|
38405
|
+
* @method
|
|
38406
|
+
* @override
|
|
38407
|
+
*/
|
|
38408
|
+
async Load(ID, EntityRelationshipsToLoad) {
|
|
38409
|
+
const compositeKey = new core_1.CompositeKey();
|
|
38410
|
+
compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
|
|
38411
|
+
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
38412
|
+
}
|
|
38413
|
+
/**
|
|
38414
|
+
* * Field Name: ID
|
|
38415
|
+
* * Display Name: ID
|
|
38416
|
+
* * SQL Data Type: uniqueidentifier
|
|
38417
|
+
* * Default Value: newsequentialid()
|
|
38418
|
+
*/
|
|
38419
|
+
get ID() {
|
|
38420
|
+
return this.Get('ID');
|
|
38421
|
+
}
|
|
38422
|
+
set ID(value) {
|
|
38423
|
+
this.Set('ID', value);
|
|
38424
|
+
}
|
|
38425
|
+
/**
|
|
38426
|
+
* * Field Name: CollectionID
|
|
38427
|
+
* * Display Name: Collection ID
|
|
38428
|
+
* * SQL Data Type: uniqueidentifier
|
|
38429
|
+
* * Related Entity/Foreign Key: MJ: Collections (vwCollections.ID)
|
|
38430
|
+
*/
|
|
38431
|
+
get CollectionID() {
|
|
38432
|
+
return this.Get('CollectionID');
|
|
38433
|
+
}
|
|
38434
|
+
set CollectionID(value) {
|
|
38435
|
+
this.Set('CollectionID', value);
|
|
38436
|
+
}
|
|
38437
|
+
/**
|
|
38438
|
+
* * Field Name: ArtifactID
|
|
38439
|
+
* * Display Name: Artifact ID
|
|
38440
|
+
* * SQL Data Type: uniqueidentifier
|
|
38441
|
+
* * Related Entity/Foreign Key: MJ: Artifacts (vwArtifacts.ID)
|
|
38442
|
+
*/
|
|
38443
|
+
get ArtifactID() {
|
|
38444
|
+
return this.Get('ArtifactID');
|
|
38445
|
+
}
|
|
38446
|
+
set ArtifactID(value) {
|
|
38447
|
+
this.Set('ArtifactID', value);
|
|
38448
|
+
}
|
|
38449
|
+
/**
|
|
38450
|
+
* * Field Name: Sequence
|
|
38451
|
+
* * Display Name: Sequence
|
|
38452
|
+
* * SQL Data Type: int
|
|
38453
|
+
* * Default Value: 0
|
|
38454
|
+
* * Description: Sequence number for ordering artifacts within a collection
|
|
38455
|
+
*/
|
|
38456
|
+
get Sequence() {
|
|
38457
|
+
return this.Get('Sequence');
|
|
38458
|
+
}
|
|
38459
|
+
set Sequence(value) {
|
|
38460
|
+
this.Set('Sequence', value);
|
|
38461
|
+
}
|
|
38462
|
+
/**
|
|
38463
|
+
* * Field Name: __mj_CreatedAt
|
|
38464
|
+
* * Display Name: Created At
|
|
38465
|
+
* * SQL Data Type: datetimeoffset
|
|
38466
|
+
* * Default Value: getutcdate()
|
|
38467
|
+
*/
|
|
38468
|
+
get __mj_CreatedAt() {
|
|
38469
|
+
return this.Get('__mj_CreatedAt');
|
|
38470
|
+
}
|
|
38471
|
+
/**
|
|
38472
|
+
* * Field Name: __mj_UpdatedAt
|
|
38473
|
+
* * Display Name: Updated At
|
|
38474
|
+
* * SQL Data Type: datetimeoffset
|
|
38475
|
+
* * Default Value: getutcdate()
|
|
38476
|
+
*/
|
|
38477
|
+
get __mj_UpdatedAt() {
|
|
38478
|
+
return this.Get('__mj_UpdatedAt');
|
|
38479
|
+
}
|
|
38480
|
+
/**
|
|
38481
|
+
* * Field Name: Collection
|
|
38482
|
+
* * Display Name: Collection
|
|
38483
|
+
* * SQL Data Type: nvarchar(255)
|
|
38484
|
+
*/
|
|
38485
|
+
get Collection() {
|
|
38486
|
+
return this.Get('Collection');
|
|
38487
|
+
}
|
|
38488
|
+
/**
|
|
38489
|
+
* * Field Name: Artifact
|
|
38490
|
+
* * Display Name: Artifact
|
|
38491
|
+
* * SQL Data Type: nvarchar(255)
|
|
38492
|
+
*/
|
|
38493
|
+
get Artifact() {
|
|
38494
|
+
return this.Get('Artifact');
|
|
38495
|
+
}
|
|
38496
|
+
};
|
|
38497
|
+
exports.CollectionArtifactEntity = CollectionArtifactEntity;
|
|
38498
|
+
exports.CollectionArtifactEntity = CollectionArtifactEntity = __decorate([
|
|
38499
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Collection Artifacts')
|
|
38500
|
+
], CollectionArtifactEntity);
|
|
38203
38501
|
/**
|
|
38204
38502
|
* MJ: Collections - strongly typed entity sub-class
|
|
38205
38503
|
* * Schema: __mj
|
|
@@ -39867,6 +40165,112 @@ exports.ConversationArtifactEntity = ConversationArtifactEntity;
|
|
|
39867
40165
|
exports.ConversationArtifactEntity = ConversationArtifactEntity = __decorate([
|
|
39868
40166
|
(0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Conversation Artifacts')
|
|
39869
40167
|
], ConversationArtifactEntity);
|
|
40168
|
+
/**
|
|
40169
|
+
* MJ: Conversation Detail Artifacts - strongly typed entity sub-class
|
|
40170
|
+
* * Schema: __mj
|
|
40171
|
+
* * Base Table: ConversationDetailArtifact
|
|
40172
|
+
* * Base View: vwConversationDetailArtifacts
|
|
40173
|
+
* * @description Junction table tracking many-to-many relationship between conversation messages and artifact versions, with directionality tracking
|
|
40174
|
+
* * Primary Key: ID
|
|
40175
|
+
* @extends {BaseEntity}
|
|
40176
|
+
* @class
|
|
40177
|
+
* @public
|
|
40178
|
+
*/
|
|
40179
|
+
let ConversationDetailArtifactEntity = class ConversationDetailArtifactEntity extends core_1.BaseEntity {
|
|
40180
|
+
/**
|
|
40181
|
+
* Loads the MJ: Conversation Detail Artifacts record from the database
|
|
40182
|
+
* @param ID: string - primary key value to load the MJ: Conversation Detail Artifacts record.
|
|
40183
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
40184
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
40185
|
+
* @public
|
|
40186
|
+
* @async
|
|
40187
|
+
* @memberof ConversationDetailArtifactEntity
|
|
40188
|
+
* @method
|
|
40189
|
+
* @override
|
|
40190
|
+
*/
|
|
40191
|
+
async Load(ID, EntityRelationshipsToLoad) {
|
|
40192
|
+
const compositeKey = new core_1.CompositeKey();
|
|
40193
|
+
compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
|
|
40194
|
+
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
40195
|
+
}
|
|
40196
|
+
/**
|
|
40197
|
+
* * Field Name: ID
|
|
40198
|
+
* * Display Name: ID
|
|
40199
|
+
* * SQL Data Type: uniqueidentifier
|
|
40200
|
+
* * Default Value: newsequentialid()
|
|
40201
|
+
*/
|
|
40202
|
+
get ID() {
|
|
40203
|
+
return this.Get('ID');
|
|
40204
|
+
}
|
|
40205
|
+
set ID(value) {
|
|
40206
|
+
this.Set('ID', value);
|
|
40207
|
+
}
|
|
40208
|
+
/**
|
|
40209
|
+
* * Field Name: ConversationDetailID
|
|
40210
|
+
* * Display Name: Conversation Detail ID
|
|
40211
|
+
* * SQL Data Type: uniqueidentifier
|
|
40212
|
+
* * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
|
|
40213
|
+
* * Description: Foreign key to ConversationDetail - the conversation message associated with this artifact
|
|
40214
|
+
*/
|
|
40215
|
+
get ConversationDetailID() {
|
|
40216
|
+
return this.Get('ConversationDetailID');
|
|
40217
|
+
}
|
|
40218
|
+
set ConversationDetailID(value) {
|
|
40219
|
+
this.Set('ConversationDetailID', value);
|
|
40220
|
+
}
|
|
40221
|
+
/**
|
|
40222
|
+
* * Field Name: ArtifactVersionID
|
|
40223
|
+
* * Display Name: Artifact Version ID
|
|
40224
|
+
* * SQL Data Type: uniqueidentifier
|
|
40225
|
+
* * Related Entity/Foreign Key: MJ: Artifact Versions (vwArtifactVersions.ID)
|
|
40226
|
+
* * Description: Foreign key to ArtifactVersion - the specific artifact version linked to this conversation message
|
|
40227
|
+
*/
|
|
40228
|
+
get ArtifactVersionID() {
|
|
40229
|
+
return this.Get('ArtifactVersionID');
|
|
40230
|
+
}
|
|
40231
|
+
set ArtifactVersionID(value) {
|
|
40232
|
+
this.Set('ArtifactVersionID', value);
|
|
40233
|
+
}
|
|
40234
|
+
/**
|
|
40235
|
+
* * Field Name: Direction
|
|
40236
|
+
* * Display Name: Direction
|
|
40237
|
+
* * SQL Data Type: nvarchar(20)
|
|
40238
|
+
* * Default Value: Output
|
|
40239
|
+
* * Value List Type: List
|
|
40240
|
+
* * Possible Values
|
|
40241
|
+
* * Input
|
|
40242
|
+
* * Output
|
|
40243
|
+
* * Description: Direction of artifact flow: Input (fed to agent) or Output (produced by agent)
|
|
40244
|
+
*/
|
|
40245
|
+
get Direction() {
|
|
40246
|
+
return this.Get('Direction');
|
|
40247
|
+
}
|
|
40248
|
+
set Direction(value) {
|
|
40249
|
+
this.Set('Direction', value);
|
|
40250
|
+
}
|
|
40251
|
+
/**
|
|
40252
|
+
* * Field Name: __mj_CreatedAt
|
|
40253
|
+
* * Display Name: Created At
|
|
40254
|
+
* * SQL Data Type: datetimeoffset
|
|
40255
|
+
* * Default Value: getutcdate()
|
|
40256
|
+
*/
|
|
40257
|
+
get __mj_CreatedAt() {
|
|
40258
|
+
return this.Get('__mj_CreatedAt');
|
|
40259
|
+
}
|
|
40260
|
+
/**
|
|
40261
|
+
* * Field Name: __mj_UpdatedAt
|
|
40262
|
+
* * Display Name: Updated At
|
|
40263
|
+
* * SQL Data Type: datetimeoffset
|
|
40264
|
+
* * Default Value: getutcdate()
|
|
40265
|
+
*/
|
|
40266
|
+
get __mj_UpdatedAt() {
|
|
40267
|
+
return this.Get('__mj_UpdatedAt');
|
|
40268
|
+
}
|
|
40269
|
+
};
|
|
40270
|
+
exports.ConversationDetailArtifactEntity = ConversationDetailArtifactEntity;
|
|
40271
|
+
exports.ConversationDetailArtifactEntity = ConversationDetailArtifactEntity = __decorate([
|
|
40272
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Conversation Detail Artifacts')
|
|
40273
|
+
], ConversationDetailArtifactEntity);
|
|
39870
40274
|
/**
|
|
39871
40275
|
* MJ: Dashboard User Preferences - strongly typed entity sub-class
|
|
39872
40276
|
* * Schema: __mj
|