@memberjunction/core-entities 2.48.0 → 2.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,12 +8,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.ContentSourceParamSchema = exports.ContentProcessRunSchema = exports.ContentItemSchema = exports.ContentItemTagSchema = exports.ContentItemAttributeSchema = exports.ContentFileTypeSchema = exports.CompanyIntegrationSchema = exports.CompanyIntegrationRunSchema = exports.CompanyIntegrationRunDetailSchema = exports.CompanyIntegrationRunAPILogSchema = exports.CompanyIntegrationRecordMapSchema = exports.CompanySchema = exports.CommunicationRunSchema = exports.CommunicationProviderSchema = exports.CommunicationProviderMessageTypeSchema = exports.CommunicationLogSchema = exports.CommunicationBaseMessageTypeSchema = exports.AuthorizationSchema = exports.AuthorizationRoleSchema = exports.AuditLogSchema = exports.AuditLogTypeSchema = exports.ApplicationSchema = exports.ApplicationSettingSchema = exports.ApplicationEntitySchema = exports.AIResultCacheSchema = exports.AIPromptSchema = exports.AIPromptTypeSchema = exports.AIPromptCategorySchema = exports.AIModelSchema = exports.AIModelTypeSchema = exports.AIModelActionSchema = exports.AIAgentSchema = exports.AIAgentRequestSchema = exports.AIAgentNoteSchema = exports.AIAgentNoteTypeSchema = exports.AIAgentModelSchema = exports.AIAgentLearningCycleSchema = exports.AIAgentActionSchema = exports.AIActionSchema = exports.ActionSchema = exports.ActionResultCodeSchema = exports.ActionParamSchema = exports.ActionLibrarySchema = exports.ActionFilterSchema = exports.ActionExecutionLogSchema = exports.ActionContextSchema = exports.ActionContextTypeSchema = exports.ActionCategorySchema = exports.ActionAuthorizationSchema = exports.loadModule = void 0;
10
10
  exports.IntegrationSchema = exports.IntegrationURLFormatSchema = exports.GeneratedCodeSchema = exports.GeneratedCodeCategorySchema = exports.FileSchema = exports.FileStorageProviderSchema = exports.FileEntityRecordLinkSchema = exports.FileCategorySchema = exports.ExplorerNavigationItemSchema = exports.ErrorLogSchema = exports.EntitySettingSchema = exports.EntityRelationshipSchema = exports.EntityRelationshipDisplayComponentSchema = exports.EntityRecordDocumentSchema = exports.EntityPermissionSchema = exports.EntityFieldSchema = exports.EntityFieldValueSchema = exports.EntityDocumentSchema = exports.EntityDocumentTypeSchema = exports.EntityDocumentSettingSchema = exports.EntityDocumentRunSchema = exports.EntityCommunicationMessageTypeSchema = exports.EntityCommunicationFieldSchema = exports.EntityAIActionSchema = exports.EntityActionSchema = exports.EntityActionParamSchema = exports.EntityActionInvocationSchema = exports.EntityActionInvocationTypeSchema = exports.EntityActionFilterSchema = exports.EntitySchema = exports.EmployeeSchema = exports.EmployeeSkillSchema = exports.EmployeeRoleSchema = exports.EmployeeCompanyIntegrationSchema = exports.DuplicateRunSchema = exports.DuplicateRunDetailSchema = exports.DuplicateRunDetailMatchSchema = exports.DatasetSchema = exports.DatasetItemSchema = exports.DataContextSchema = exports.DataContextItemSchema = exports.DashboardSchema = exports.DashboardCategorySchema = exports.ConversationSchema = exports.ConversationDetailSchema = exports.ContentTypeSchema = exports.ContentTypeAttributeSchema = exports.ContentSourceSchema = exports.ContentSourceTypeSchema = exports.ContentSourceTypeParamSchema = void 0;
11
- exports.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.ReportVersionSchema = exports.ReportUserStateSchema = exports.DashboardUserStateSchema = exports.DashboardUserPreferenceSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = exports.ConversationArtifactPermissionSchema = exports.ArtifactTypeSchema = exports.AIVendorSchema = exports.AIVendorTypeSchema = exports.AIVendorTypeDefinitionSchema = exports.AIPromptRunSchema = exports.AIPromptModelSchema = exports.AIModelVendorSchema = exports.AIConfigurationSchema = exports.AIConfigurationParamSchema = exports.AIAgentTypeSchema = exports.AIAgentRunSchema = exports.AIAgentRunStepSchema = exports.AIAgentPromptSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
12
- exports.AIAgentEntity = exports.AIAgentRequestEntity = exports.AIAgentNoteEntity = exports.AIAgentNoteTypeEntity = exports.AIAgentModelEntity = exports.AIAgentLearningCycleEntity = exports.AIAgentActionEntity = exports.AIActionEntity = exports.ActionEntity = exports.ActionResultCodeEntity = exports.ActionParamEntity = exports.ActionLibraryEntity = exports.ActionFilterEntity = exports.ActionExecutionLogEntity = exports.ActionContextEntity = exports.ActionContextTypeEntity = exports.ActionCategoryEntity = exports.ActionAuthorizationEntity = exports.WorkspaceSchema = exports.WorkspaceItemSchema = exports.WorkflowSchema = exports.WorkflowRunSchema = exports.WorkflowEngineSchema = exports.VersionInstallationSchema = exports.VectorIndexSchema = exports.VectorDatabaseSchema = exports.UserSchema = exports.UserViewSchema = exports.UserViewRunSchema = exports.UserViewRunDetailSchema = exports.UserViewCategorySchema = exports.UserRoleSchema = exports.UserRecordLogSchema = exports.UserNotificationSchema = exports.UserFavoriteSchema = exports.UserApplicationSchema = exports.UserApplicationEntitySchema = exports.TemplateSchema = exports.TemplateParamSchema = exports.TemplateContentSchema = exports.TemplateContentTypeSchema = exports.TemplateCategorySchema = exports.TagSchema = exports.TaggedItemSchema = exports.SkillSchema = exports.SchemaInfoSchema = exports.ScheduledActionSchema = exports.ScheduledActionParamSchema = exports.RowLevelSecurityFilterSchema = exports.RoleSchema = void 0;
13
- exports.EmployeeSkillEntity = exports.EmployeeRoleEntity = exports.EmployeeCompanyIntegrationEntity = exports.DuplicateRunEntity = exports.DuplicateRunDetailEntity = exports.DuplicateRunDetailMatchEntity = exports.DatasetEntity = exports.DatasetItemEntity = exports.DataContextEntity = exports.DataContextItemEntity = exports.DashboardEntity = exports.DashboardCategoryEntity = exports.ConversationEntity = exports.ConversationDetailEntity = exports.ContentTypeEntity = exports.ContentTypeAttributeEntity = exports.ContentSourceEntity = exports.ContentSourceTypeEntity = exports.ContentSourceTypeParamEntity = exports.ContentSourceParamEntity = exports.ContentProcessRunEntity = exports.ContentItemEntity = exports.ContentItemTagEntity = exports.ContentItemAttributeEntity = exports.ContentFileTypeEntity = exports.CompanyIntegrationEntity = exports.CompanyIntegrationRunEntity = exports.CompanyIntegrationRunDetailEntity = exports.CompanyIntegrationRunAPILogEntity = exports.CompanyIntegrationRecordMapEntity = exports.CompanyEntity = exports.CommunicationRunEntity = exports.CommunicationProviderEntity = exports.CommunicationProviderMessageTypeEntity = exports.CommunicationLogEntity = exports.CommunicationBaseMessageTypeEntity = exports.AuthorizationEntity = exports.AuthorizationRoleEntity = exports.AuditLogEntity = exports.AuditLogTypeEntity = exports.ApplicationEntity = exports.ApplicationSettingEntity = exports.ApplicationEntityEntity = exports.AIResultCacheEntity = exports.AIPromptEntity = exports.AIPromptTypeEntity = exports.AIPromptCategoryEntity = exports.AIModelEntity = exports.AIModelTypeEntity = exports.AIModelActionEntity = void 0;
14
- exports.ConversationArtifactPermissionEntity = exports.ArtifactTypeEntity = exports.AIVendorEntity = exports.AIVendorTypeEntity = exports.AIVendorTypeDefinitionEntity = exports.AIPromptRunEntity = exports.AIPromptModelEntity = exports.AIModelVendorEntity = exports.AIConfigurationEntity = exports.AIConfigurationParamEntity = exports.AIAgentTypeEntity = exports.AIAgentRunEntity = exports.AIAgentRunStepEntity = exports.AIAgentPromptEntity = exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.GeneratedCodeEntity = exports.GeneratedCodeCategoryEntity = exports.FileEntity = exports.FileStorageProviderEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = exports.ExplorerNavigationItemEntity = exports.ErrorLogEntity = exports.EntitySettingEntity = exports.EntityRelationshipEntity = exports.EntityRelationshipDisplayComponentEntity = exports.EntityRecordDocumentEntity = exports.EntityPermissionEntity = exports.EntityFieldEntity = exports.EntityFieldValueEntity = exports.EntityDocumentEntity = exports.EntityDocumentTypeEntity = exports.EntityDocumentSettingEntity = exports.EntityDocumentRunEntity = exports.EntityCommunicationMessageTypeEntity = exports.EntityCommunicationFieldEntity = exports.EntityAIActionEntity = exports.EntityActionEntity = exports.EntityActionParamEntity = exports.EntityActionInvocationEntity = exports.EntityActionInvocationTypeEntity = exports.EntityActionFilterEntity = exports.EntityEntity = exports.EmployeeEntity = void 0;
15
- 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.ReportVersionEntity = exports.ReportUserStateEntity = exports.DashboardUserStateEntity = exports.DashboardUserPreferenceEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = void 0;
16
- exports.WorkspaceEntity = exports.WorkspaceItemEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.WorkflowEngineEntity = exports.VersionInstallationEntity = exports.VectorIndexEntity = exports.VectorDatabaseEntity = exports.UserEntity = exports.UserViewEntity = exports.UserViewRunEntity = exports.UserViewRunDetailEntity = exports.UserViewCategoryEntity = void 0;
11
+ 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.ReportVersionSchema = exports.ReportUserStateSchema = exports.DashboardUserStateSchema = exports.DashboardUserPreferenceSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = exports.ConversationArtifactPermissionSchema = exports.ArtifactTypeSchema = exports.AIVendorSchema = exports.AIVendorTypeSchema = exports.AIVendorTypeDefinitionSchema = exports.AIPromptRunSchema = exports.AIPromptModelSchema = exports.AIModelVendorSchema = exports.AIModelPriceUnitTypeSchema = exports.AIModelPriceTypeSchema = exports.AIModelCostSchema = exports.AIConfigurationSchema = exports.AIConfigurationParamSchema = exports.AIAgentTypeSchema = exports.AIAgentRunSchema = exports.AIAgentRunStepSchema = exports.AIAgentPromptSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
12
+ exports.AIAgentNoteTypeEntity = exports.AIAgentModelEntity = exports.AIAgentLearningCycleEntity = exports.AIAgentActionEntity = exports.AIActionEntity = exports.ActionEntity = exports.ActionResultCodeEntity = exports.ActionParamEntity = exports.ActionLibraryEntity = exports.ActionFilterEntity = exports.ActionExecutionLogEntity = exports.ActionContextEntity = exports.ActionContextTypeEntity = exports.ActionCategoryEntity = exports.ActionAuthorizationEntity = exports.WorkspaceSchema = exports.WorkspaceItemSchema = exports.WorkflowSchema = exports.WorkflowRunSchema = exports.WorkflowEngineSchema = exports.VersionInstallationSchema = exports.VectorIndexSchema = exports.VectorDatabaseSchema = exports.UserSchema = exports.UserViewSchema = exports.UserViewRunSchema = exports.UserViewRunDetailSchema = exports.UserViewCategorySchema = exports.UserRoleSchema = exports.UserRecordLogSchema = exports.UserNotificationSchema = exports.UserFavoriteSchema = exports.UserApplicationSchema = exports.UserApplicationEntitySchema = exports.TemplateSchema = exports.TemplateParamSchema = exports.TemplateContentSchema = exports.TemplateContentTypeSchema = exports.TemplateCategorySchema = exports.TagSchema = exports.TaggedItemSchema = exports.SkillSchema = exports.SchemaInfoSchema = exports.ScheduledActionSchema = exports.ScheduledActionParamSchema = exports.RowLevelSecurityFilterSchema = exports.RoleSchema = exports.ResourceTypeSchema = exports.ResourcePermissionSchema = exports.ResourceLinkSchema = void 0;
13
+ exports.DuplicateRunEntity = exports.DuplicateRunDetailEntity = exports.DuplicateRunDetailMatchEntity = exports.DatasetEntity = exports.DatasetItemEntity = exports.DataContextEntity = exports.DataContextItemEntity = exports.DashboardEntity = exports.DashboardCategoryEntity = exports.ConversationEntity = exports.ConversationDetailEntity = exports.ContentTypeEntity = exports.ContentTypeAttributeEntity = exports.ContentSourceEntity = exports.ContentSourceTypeEntity = exports.ContentSourceTypeParamEntity = exports.ContentSourceParamEntity = exports.ContentProcessRunEntity = exports.ContentItemEntity = exports.ContentItemTagEntity = exports.ContentItemAttributeEntity = exports.ContentFileTypeEntity = exports.CompanyIntegrationEntity = exports.CompanyIntegrationRunEntity = exports.CompanyIntegrationRunDetailEntity = exports.CompanyIntegrationRunAPILogEntity = exports.CompanyIntegrationRecordMapEntity = exports.CompanyEntity = exports.CommunicationRunEntity = exports.CommunicationProviderEntity = exports.CommunicationProviderMessageTypeEntity = exports.CommunicationLogEntity = exports.CommunicationBaseMessageTypeEntity = exports.AuthorizationEntity = exports.AuthorizationRoleEntity = exports.AuditLogEntity = exports.AuditLogTypeEntity = exports.ApplicationEntity = exports.ApplicationSettingEntity = exports.ApplicationEntityEntity = exports.AIResultCacheEntity = exports.AIPromptEntity = exports.AIPromptTypeEntity = exports.AIPromptCategoryEntity = exports.AIModelEntity = exports.AIModelTypeEntity = exports.AIModelActionEntity = exports.AIAgentEntity = exports.AIAgentRequestEntity = exports.AIAgentNoteEntity = void 0;
14
+ exports.AIPromptModelEntity = exports.AIModelVendorEntity = exports.AIModelPriceUnitTypeEntity = exports.AIModelPriceTypeEntity = exports.AIModelCostEntity = exports.AIConfigurationEntity = exports.AIConfigurationParamEntity = exports.AIAgentTypeEntity = exports.AIAgentRunEntity = exports.AIAgentRunStepEntity = exports.AIAgentPromptEntity = exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.GeneratedCodeEntity = exports.GeneratedCodeCategoryEntity = exports.FileEntity = exports.FileStorageProviderEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = exports.ExplorerNavigationItemEntity = exports.ErrorLogEntity = exports.EntitySettingEntity = exports.EntityRelationshipEntity = exports.EntityRelationshipDisplayComponentEntity = exports.EntityRecordDocumentEntity = exports.EntityPermissionEntity = exports.EntityFieldEntity = exports.EntityFieldValueEntity = exports.EntityDocumentEntity = exports.EntityDocumentTypeEntity = exports.EntityDocumentSettingEntity = exports.EntityDocumentRunEntity = exports.EntityCommunicationMessageTypeEntity = exports.EntityCommunicationFieldEntity = exports.EntityAIActionEntity = exports.EntityActionEntity = exports.EntityActionParamEntity = exports.EntityActionInvocationEntity = exports.EntityActionInvocationTypeEntity = exports.EntityActionFilterEntity = exports.EntityEntity = exports.EmployeeEntity = exports.EmployeeSkillEntity = exports.EmployeeRoleEntity = exports.EmployeeCompanyIntegrationEntity = void 0;
15
+ 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.ReportVersionEntity = exports.ReportUserStateEntity = exports.DashboardUserStateEntity = exports.DashboardUserPreferenceEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = exports.ConversationArtifactPermissionEntity = exports.ArtifactTypeEntity = exports.AIVendorEntity = exports.AIVendorTypeEntity = exports.AIVendorTypeDefinitionEntity = exports.AIPromptRunEntity = void 0;
16
+ exports.WorkspaceEntity = exports.WorkspaceItemEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.WorkflowEngineEntity = exports.VersionInstallationEntity = exports.VectorIndexEntity = exports.VectorDatabaseEntity = exports.UserEntity = exports.UserViewEntity = exports.UserViewRunEntity = exports.UserViewRunDetailEntity = exports.UserViewCategoryEntity = exports.UserRoleEntity = exports.UserRecordLogEntity = exports.UserNotificationEntity = exports.UserFavoriteEntity = exports.UserApplicationEntity = exports.UserApplicationEntityEntity = void 0;
17
17
  const core_1 = require("@memberjunction/core");
18
18
  const global_1 = require("@memberjunction/global");
19
19
  const zod_1 = require("zod");
@@ -562,6 +562,11 @@ exports.ActionSchema = zod_1.z.object({
562
562
  * * Display Name: __mj _Updated At
563
563
  * * SQL Data Type: datetimeoffset
564
564
  * * Default Value: getutcdate()`),
565
+ DriverClass: zod_1.z.string().nullable().describe(`
566
+ * * Field Name: DriverClass
567
+ * * Display Name: Driver Class
568
+ * * SQL Data Type: nvarchar(255)
569
+ * * Description: For actions where Type='Custom', this specifies the fully qualified class name of the BaseAction sub-class that should be instantiated to handle the action execution. This provides a more reliable mechanism than relying on the Name field for class instantiation.`),
565
570
  Category: zod_1.z.string().nullable().describe(`
566
571
  * * Field Name: Category
567
572
  * * Display Name: Category
@@ -1040,6 +1045,16 @@ exports.AIAgentSchema = zod_1.z.object({
1040
1045
  * * SQL Data Type: uniqueidentifier
1041
1046
  * * Related Entity/Foreign Key: MJ: AI Agent Types (vwAIAgentTypes.ID)
1042
1047
  * * Description: Reference to the AIAgentType that defines the category and system-level behavior for this agent. Cannot be null.`),
1048
+ Status: zod_1.z.string().nullable().describe(`
1049
+ * * Field Name: Status
1050
+ * * Display Name: Status
1051
+ * * SQL Data Type: nvarchar(20)
1052
+ * * Description: Current status of the AI agent. Active agents can be executed, Disabled agents are inactive, and Pending agents are awaiting configuration or approval. Allowed values: Active, Disabled, Pending.`),
1053
+ DriverClass: zod_1.z.string().nullable().describe(`
1054
+ * * Field Name: DriverClass
1055
+ * * Display Name: Driver Class
1056
+ * * SQL Data Type: nvarchar(255)
1057
+ * * Description: Optional override for the class name used by the MemberJunction class factory to instantiate this specific agent. If specified, this overrides the agent type's DriverClass. Useful for specialized agent implementations.`),
1043
1058
  Parent: zod_1.z.string().nullable().describe(`
1044
1059
  * * Field Name: Parent
1045
1060
  * * Display Name: Parent
@@ -6987,6 +7002,36 @@ exports.AIAgentRunSchema = zod_1.z.object({
6987
7002
  * * Display Name: Updated At
6988
7003
  * * SQL Data Type: datetimeoffset
6989
7004
  * * Default Value: getutcdate()`),
7005
+ TotalPromptTokensUsed: zod_1.z.number().nullable().describe(`
7006
+ * * Field Name: TotalPromptTokensUsed
7007
+ * * Display Name: Total Prompt Tokens Used
7008
+ * * SQL Data Type: int
7009
+ * * Description: Total number of prompt/input tokens used across all AIPromptRun executions during this agent run. This provides a breakdown of the TotalTokensUsed field to help analyze the ratio of input vs output tokens consumed by the agent.`),
7010
+ TotalCompletionTokensUsed: zod_1.z.number().nullable().describe(`
7011
+ * * Field Name: TotalCompletionTokensUsed
7012
+ * * Display Name: Total Completion Tokens Used
7013
+ * * SQL Data Type: int
7014
+ * * Description: Total number of completion/output tokens generated across all AIPromptRun executions during this agent run. This provides a breakdown of the TotalTokensUsed field to help analyze the ratio of input vs output tokens consumed by the agent.`),
7015
+ TotalTokensUsedRollup: zod_1.z.number().nullable().describe(`
7016
+ * * Field Name: TotalTokensUsedRollup
7017
+ * * Display Name: Total Tokens Used Rollup
7018
+ * * SQL Data Type: int
7019
+ * * Description: Total tokens used including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalTokensUsed. For parent agents, this includes the sum of all descendant agent tokens. Calculated as TotalPromptTokensUsedRollup + TotalCompletionTokensUsedRollup.`),
7020
+ TotalPromptTokensUsedRollup: zod_1.z.number().nullable().describe(`
7021
+ * * Field Name: TotalPromptTokensUsedRollup
7022
+ * * Display Name: Total Prompt Tokens Used Rollup
7023
+ * * SQL Data Type: int
7024
+ * * Description: Total prompt/input tokens including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalPromptTokensUsed. For parent agents, this includes the sum of all descendant agent prompt tokens.`),
7025
+ TotalCompletionTokensUsedRollup: zod_1.z.number().nullable().describe(`
7026
+ * * Field Name: TotalCompletionTokensUsedRollup
7027
+ * * Display Name: Total Completion Tokens Used Rollup
7028
+ * * SQL Data Type: int
7029
+ * * Description: Total completion/output tokens including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalCompletionTokensUsed. For parent agents, this includes the sum of all descendant agent completion tokens.`),
7030
+ TotalCostRollup: zod_1.z.number().nullable().describe(`
7031
+ * * Field Name: TotalCostRollup
7032
+ * * Display Name: Total Cost Rollup
7033
+ * * SQL Data Type: decimal(19, 8)
7034
+ * * Description: Total cost including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalCost. For parent agents, this includes the sum of all descendant agent costs. Note: This assumes all costs are in the same currency for accurate rollup.`),
6990
7035
  Agent: zod_1.z.string().nullable().describe(`
6991
7036
  * * Field Name: Agent
6992
7037
  * * Display Name: Agent
@@ -7042,6 +7087,16 @@ exports.AIAgentTypeSchema = zod_1.z.object({
7042
7087
  * * Display Name: Updated At
7043
7088
  * * SQL Data Type: datetimeoffset
7044
7089
  * * Default Value: getutcdate()`),
7090
+ AgentPromptPlaceholder: zod_1.z.string().nullable().describe(`
7091
+ * * Field Name: AgentPromptPlaceholder
7092
+ * * Display Name: Agent Prompt Placeholder
7093
+ * * SQL Data Type: nvarchar(255)
7094
+ * * Description: The placeholder name used in the system prompt template where the agent prompt result should be injected. For example, if the system prompt contains "{{ agentPrompt }}", this field should contain "agentPrompt". This enables proper hierarchical prompt execution where the agent type's system prompt acts as the parent and the agent's specific prompt acts as the child.`),
7095
+ DriverClass: zod_1.z.string().nullable().describe(`
7096
+ * * Field Name: DriverClass
7097
+ * * Display Name: Driver Class
7098
+ * * SQL Data Type: nvarchar(255)
7099
+ * * Description: The class name used by the MemberJunction class factory to instantiate the specific agent type implementation. For example, "LoopAgentType" for a looping agent pattern. If not specified, defaults to using the agent type Name for the DriverClass lookup key.`),
7045
7100
  SystemPrompt: zod_1.z.string().nullable().describe(`
7046
7101
  * * Field Name: SystemPrompt
7047
7102
  * * Display Name: System Prompt
@@ -7172,6 +7227,178 @@ exports.AIConfigurationSchema = zod_1.z.object({
7172
7227
  * * Display Name: Default Prompt For Context Summarization
7173
7228
  * * SQL Data Type: nvarchar(255)`),
7174
7229
  });
7230
+ /**
7231
+ * zod schema definition for the entity MJ: AI Model Costs
7232
+ */
7233
+ exports.AIModelCostSchema = zod_1.z.object({
7234
+ ID: zod_1.z.string().describe(`
7235
+ * * Field Name: ID
7236
+ * * Display Name: ID
7237
+ * * SQL Data Type: uniqueidentifier
7238
+ * * Default Value: newsequentialid()`),
7239
+ ModelID: zod_1.z.string().describe(`
7240
+ * * Field Name: ModelID
7241
+ * * Display Name: Model ID
7242
+ * * SQL Data Type: uniqueidentifier
7243
+ * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)`),
7244
+ VendorID: zod_1.z.string().describe(`
7245
+ * * Field Name: VendorID
7246
+ * * Display Name: Vendor ID
7247
+ * * SQL Data Type: uniqueidentifier
7248
+ * * Related Entity/Foreign Key: MJ: AI Vendors (vwAIVendors.ID)`),
7249
+ StartedAt: zod_1.z.date().nullable().describe(`
7250
+ * * Field Name: StartedAt
7251
+ * * Display Name: Started At
7252
+ * * SQL Data Type: datetimeoffset
7253
+ * * Default Value: sysdatetimeoffset()
7254
+ * * Description: Date and time with timezone when this pricing became effective. NULL disables temporal tracking. Defaults to current UTC time when record is created`),
7255
+ EndedAt: zod_1.z.date().nullable().describe(`
7256
+ * * Field Name: EndedAt
7257
+ * * Display Name: Ended At
7258
+ * * SQL Data Type: datetimeoffset
7259
+ * * Description: Date and time with timezone when this pricing expired or will expire. NULL indicates currently active pricing`),
7260
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Pending'), zod_1.z.literal('Expired'), zod_1.z.literal('Invalid')]).describe(`
7261
+ * * Field Name: Status
7262
+ * * Display Name: Status
7263
+ * * SQL Data Type: nvarchar(20)
7264
+ * * Value List Type: List
7265
+ * * Possible Values
7266
+ * * Active
7267
+ * * Pending
7268
+ * * Expired
7269
+ * * Invalid
7270
+ * * Description: Current status of this pricing record. Active=currently in use, Pending=scheduled for future, Expired=no longer valid, Invalid=data error`),
7271
+ Currency: zod_1.z.string().describe(`
7272
+ * * Field Name: Currency
7273
+ * * Display Name: Currency
7274
+ * * SQL Data Type: nchar(3)
7275
+ * * Description: ISO 4217 three-letter currency code (e.g., USD, EUR, GBP) in uppercase`),
7276
+ PriceTypeID: zod_1.z.string().describe(`
7277
+ * * Field Name: PriceTypeID
7278
+ * * Display Name: Price Type ID
7279
+ * * SQL Data Type: uniqueidentifier
7280
+ * * Related Entity/Foreign Key: MJ: AI Model Price Types (vwAIModelPriceTypes.ID)`),
7281
+ InputPricePerUnit: zod_1.z.number().describe(`
7282
+ * * Field Name: InputPricePerUnit
7283
+ * * Display Name: Input Price Per Unit
7284
+ * * SQL Data Type: decimal(18, 8)
7285
+ * * Description: Price per unit for input tokens/requests. Must be non-negative. Precision allows for micro-pricing scenarios`),
7286
+ OutputPricePerUnit: zod_1.z.number().describe(`
7287
+ * * Field Name: OutputPricePerUnit
7288
+ * * Display Name: Output Price Per Unit
7289
+ * * SQL Data Type: decimal(18, 8)
7290
+ * * Description: Price per unit for output tokens/responses. Must be non-negative. Often higher than input pricing`),
7291
+ UnitTypeID: zod_1.z.string().describe(`
7292
+ * * Field Name: UnitTypeID
7293
+ * * Display Name: Unit Type ID
7294
+ * * SQL Data Type: uniqueidentifier
7295
+ * * Related Entity/Foreign Key: MJ: AI Model Price Unit Types (vwAIModelPriceUnitTypes.ID)`),
7296
+ ProcessingType: zod_1.z.union([zod_1.z.literal('Realtime'), zod_1.z.literal('Batch')]).describe(`
7297
+ * * Field Name: ProcessingType
7298
+ * * Display Name: Processing Type
7299
+ * * SQL Data Type: nvarchar(20)
7300
+ * * Value List Type: List
7301
+ * * Possible Values
7302
+ * * Realtime
7303
+ * * Batch
7304
+ * * Description: Processing method that affects pricing. Realtime=immediate response, Batch=delayed processing often with discounts`),
7305
+ Comments: zod_1.z.string().nullable().describe(`
7306
+ * * Field Name: Comments
7307
+ * * Display Name: Comments
7308
+ * * SQL Data Type: nvarchar(MAX)
7309
+ * * Description: Optional notes about pricing context, source, special conditions, or vendor-specific details`),
7310
+ __mj_CreatedAt: zod_1.z.date().describe(`
7311
+ * * Field Name: __mj_CreatedAt
7312
+ * * Display Name: Created At
7313
+ * * SQL Data Type: datetimeoffset
7314
+ * * Default Value: getutcdate()`),
7315
+ __mj_UpdatedAt: zod_1.z.date().describe(`
7316
+ * * Field Name: __mj_UpdatedAt
7317
+ * * Display Name: Updated At
7318
+ * * SQL Data Type: datetimeoffset
7319
+ * * Default Value: getutcdate()`),
7320
+ Model: zod_1.z.string().describe(`
7321
+ * * Field Name: Model
7322
+ * * Display Name: Model
7323
+ * * SQL Data Type: nvarchar(50)`),
7324
+ Vendor: zod_1.z.string().describe(`
7325
+ * * Field Name: Vendor
7326
+ * * Display Name: Vendor
7327
+ * * SQL Data Type: nvarchar(50)`),
7328
+ PriceType: zod_1.z.string().describe(`
7329
+ * * Field Name: PriceType
7330
+ * * Display Name: Price Type
7331
+ * * SQL Data Type: nvarchar(100)`),
7332
+ UnitType: zod_1.z.string().describe(`
7333
+ * * Field Name: UnitType
7334
+ * * Display Name: Unit Type
7335
+ * * SQL Data Type: nvarchar(100)`),
7336
+ });
7337
+ /**
7338
+ * zod schema definition for the entity MJ: AI Model Price Types
7339
+ */
7340
+ exports.AIModelPriceTypeSchema = zod_1.z.object({
7341
+ ID: zod_1.z.string().describe(`
7342
+ * * Field Name: ID
7343
+ * * Display Name: ID
7344
+ * * SQL Data Type: uniqueidentifier
7345
+ * * Default Value: newsequentialid()`),
7346
+ Name: zod_1.z.string().describe(`
7347
+ * * Field Name: Name
7348
+ * * Display Name: Name
7349
+ * * SQL Data Type: nvarchar(100)
7350
+ * * Description: Short, descriptive name for the price type (e.g., "Tokens", "Minutes", "Characters")`),
7351
+ Description: zod_1.z.string().nullable().describe(`
7352
+ * * Field Name: Description
7353
+ * * Display Name: Description
7354
+ * * SQL Data Type: nvarchar(MAX)
7355
+ * * Description: Detailed description of what this price type represents and how it is measured`),
7356
+ __mj_CreatedAt: zod_1.z.date().describe(`
7357
+ * * Field Name: __mj_CreatedAt
7358
+ * * Display Name: Created At
7359
+ * * SQL Data Type: datetimeoffset
7360
+ * * Default Value: getutcdate()`),
7361
+ __mj_UpdatedAt: zod_1.z.date().describe(`
7362
+ * * Field Name: __mj_UpdatedAt
7363
+ * * Display Name: Updated At
7364
+ * * SQL Data Type: datetimeoffset
7365
+ * * Default Value: getutcdate()`),
7366
+ });
7367
+ /**
7368
+ * zod schema definition for the entity MJ: AI Model Price Unit Types
7369
+ */
7370
+ exports.AIModelPriceUnitTypeSchema = zod_1.z.object({
7371
+ ID: zod_1.z.string().describe(`
7372
+ * * Field Name: ID
7373
+ * * Display Name: ID
7374
+ * * SQL Data Type: uniqueidentifier
7375
+ * * Default Value: newsequentialid()`),
7376
+ Name: zod_1.z.string().describe(`
7377
+ * * Field Name: Name
7378
+ * * Display Name: Name
7379
+ * * SQL Data Type: nvarchar(100)
7380
+ * * Description: Display name for the pricing unit (e.g., "Per 1M Tokens", "Per 1K Tokens", "Per Minute")`),
7381
+ Description: zod_1.z.string().nullable().describe(`
7382
+ * * Field Name: Description
7383
+ * * Display Name: Description
7384
+ * * SQL Data Type: nvarchar(MAX)
7385
+ * * Description: Detailed explanation of the unit scale and any special considerations for this pricing unit`),
7386
+ DriverClass: zod_1.z.string().describe(`
7387
+ * * Field Name: DriverClass
7388
+ * * Display Name: Driver Class
7389
+ * * SQL Data Type: nvarchar(255)
7390
+ * * Description: Fully qualified class name that handles cost calculations and unit normalization for this pricing unit (e.g., "TokenPer1M", "TokenPer1K")`),
7391
+ __mj_CreatedAt: zod_1.z.date().describe(`
7392
+ * * Field Name: __mj_CreatedAt
7393
+ * * Display Name: Created At
7394
+ * * SQL Data Type: datetimeoffset
7395
+ * * Default Value: getutcdate()`),
7396
+ __mj_UpdatedAt: zod_1.z.date().describe(`
7397
+ * * Field Name: __mj_UpdatedAt
7398
+ * * Display Name: Updated At
7399
+ * * SQL Data Type: datetimeoffset
7400
+ * * Default Value: getutcdate()`),
7401
+ });
7175
7402
  /**
7176
7403
  * zod schema definition for the entity MJ: AI Model Vendors
7177
7404
  */
@@ -7476,7 +7703,7 @@ exports.AIPromptRunSchema = zod_1.z.object({
7476
7703
  * * Field Name: TotalCost
7477
7704
  * * Display Name: Total Cost
7478
7705
  * * SQL Data Type: decimal(18, 6)
7479
- * * Description: Estimated cost of this execution in USD.`),
7706
+ * * Description: Total cost including this execution and all child/grandchild executions. For leaf nodes (no children), this equals Cost. For parent nodes, this includes the sum of all descendant costs. Note: This assumes all costs are in the same currency for accurate rollup. Currency conversions should be handled at the application layer if needed.`),
7480
7707
  Success: zod_1.z.boolean().describe(`
7481
7708
  * * Field Name: Success
7482
7709
  * * Display Name: Success
@@ -7527,6 +7754,31 @@ exports.AIPromptRunSchema = zod_1.z.object({
7527
7754
  * * SQL Data Type: uniqueidentifier
7528
7755
  * * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
7529
7756
  * * Description: Optional reference to the AIAgentRun that initiated this prompt execution. Links prompt runs to their parent agent runs for comprehensive execution tracking.`),
7757
+ Cost: zod_1.z.number().nullable().describe(`
7758
+ * * Field Name: Cost
7759
+ * * Display Name: Cost
7760
+ * * SQL Data Type: decimal(19, 8)
7761
+ * * Description: The cost of this specific prompt execution as reported by the AI provider. This does not include costs from child executions. The currency is specified in CostCurrency field.`),
7762
+ CostCurrency: zod_1.z.string().nullable().describe(`
7763
+ * * Field Name: CostCurrency
7764
+ * * Display Name: Cost Currency
7765
+ * * SQL Data Type: nvarchar(10)
7766
+ * * Description: ISO 4217 currency code for the Cost field (e.g., USD, EUR, GBP). Different AI providers may use different currencies.`),
7767
+ TokensUsedRollup: zod_1.z.number().nullable().describe(`
7768
+ * * Field Name: TokensUsedRollup
7769
+ * * Display Name: Tokens Used Rollup
7770
+ * * SQL Data Type: int
7771
+ * * Description: Total tokens used including this execution and all child/grandchild executions. This provides a complete view of token usage for hierarchical prompt trees. Calculated as TokensPromptRollup + TokensCompletionRollup.`),
7772
+ TokensPromptRollup: zod_1.z.number().nullable().describe(`
7773
+ * * Field Name: TokensPromptRollup
7774
+ * * Display Name: Tokens Prompt Rollup
7775
+ * * SQL Data Type: int
7776
+ * * Description: Total prompt/input tokens including this execution and all child/grandchild executions. For leaf nodes (no children), this equals TokensPrompt. For parent nodes, this includes the sum of all descendant prompt tokens.`),
7777
+ TokensCompletionRollup: zod_1.z.number().nullable().describe(`
7778
+ * * Field Name: TokensCompletionRollup
7779
+ * * Display Name: Tokens Completion Rollup
7780
+ * * SQL Data Type: int
7781
+ * * Description: Total completion/output tokens including this execution and all child/grandchild executions. For leaf nodes (no children), this equals TokensCompletion. For parent nodes, this includes the sum of all descendant completion tokens.`),
7530
7782
  Prompt: zod_1.z.string().describe(`
7531
7783
  * * Field Name: Prompt
7532
7784
  * * Display Name: Prompt
@@ -11319,6 +11571,9 @@ let ActionAuthorizationEntity = class ActionAuthorizationEntity extends core_1.B
11319
11571
  get ID() {
11320
11572
  return this.Get('ID');
11321
11573
  }
11574
+ set ID(value) {
11575
+ this.Set('ID', value);
11576
+ }
11322
11577
  /**
11323
11578
  * * Field Name: ActionID
11324
11579
  * * Display Name: Action ID
@@ -11430,6 +11685,9 @@ let ActionCategoryEntity = class ActionCategoryEntity extends core_1.BaseEntity
11430
11685
  get ID() {
11431
11686
  return this.Get('ID');
11432
11687
  }
11688
+ set ID(value) {
11689
+ this.Set('ID', value);
11690
+ }
11433
11691
  /**
11434
11692
  * * Field Name: Name
11435
11693
  * * Display Name: Name
@@ -11552,6 +11810,9 @@ let ActionContextTypeEntity = class ActionContextTypeEntity extends core_1.BaseE
11552
11810
  get ID() {
11553
11811
  return this.Get('ID');
11554
11812
  }
11813
+ set ID(value) {
11814
+ this.Set('ID', value);
11815
+ }
11555
11816
  /**
11556
11817
  * * Field Name: Name
11557
11818
  * * Display Name: Name
@@ -11636,6 +11897,9 @@ let ActionContextEntity = class ActionContextEntity extends core_1.BaseEntity {
11636
11897
  get ID() {
11637
11898
  return this.Get('ID');
11638
11899
  }
11900
+ set ID(value) {
11901
+ this.Set('ID', value);
11902
+ }
11639
11903
  /**
11640
11904
  * * Field Name: ActionID
11641
11905
  * * Display Name: Action ID
@@ -11754,6 +12018,9 @@ let ActionExecutionLogEntity = class ActionExecutionLogEntity extends core_1.Bas
11754
12018
  get ID() {
11755
12019
  return this.Get('ID');
11756
12020
  }
12021
+ set ID(value) {
12022
+ this.Set('ID', value);
12023
+ }
11757
12024
  /**
11758
12025
  * * Field Name: ActionID
11759
12026
  * * Display Name: Action ID
@@ -11913,6 +12180,9 @@ let ActionFilterEntity = class ActionFilterEntity extends core_1.BaseEntity {
11913
12180
  get ID() {
11914
12181
  return this.Get('ID');
11915
12182
  }
12183
+ set ID(value) {
12184
+ this.Set('ID', value);
12185
+ }
11916
12186
  /**
11917
12187
  * * Field Name: UserDescription
11918
12188
  * * Display Name: User Description
@@ -12017,6 +12287,9 @@ let ActionLibraryEntity = class ActionLibraryEntity extends core_1.BaseEntity {
12017
12287
  get ID() {
12018
12288
  return this.Get('ID');
12019
12289
  }
12290
+ set ID(value) {
12291
+ this.Set('ID', value);
12292
+ }
12020
12293
  /**
12021
12294
  * * Field Name: ActionID
12022
12295
  * * Display Name: Action ID
@@ -12129,6 +12402,9 @@ let ActionParamEntity = class ActionParamEntity extends core_1.BaseEntity {
12129
12402
  get ID() {
12130
12403
  return this.Get('ID');
12131
12404
  }
12405
+ set ID(value) {
12406
+ this.Set('ID', value);
12407
+ }
12132
12408
  /**
12133
12409
  * * Field Name: ActionID
12134
12410
  * * Display Name: Action ID
@@ -12300,6 +12576,9 @@ let ActionResultCodeEntity = class ActionResultCodeEntity extends core_1.BaseEnt
12300
12576
  get ID() {
12301
12577
  return this.Get('ID');
12302
12578
  }
12579
+ set ID(value) {
12580
+ this.Set('ID', value);
12581
+ }
12303
12582
  /**
12304
12583
  * * Field Name: ActionID
12305
12584
  * * Display Name: Action ID
@@ -12416,6 +12695,9 @@ let ActionEntity = class ActionEntity extends core_1.BaseEntity {
12416
12695
  get ID() {
12417
12696
  return this.Get('ID');
12418
12697
  }
12698
+ set ID(value) {
12699
+ this.Set('ID', value);
12700
+ }
12419
12701
  /**
12420
12702
  * * Field Name: CategoryID
12421
12703
  * * Display Name: Category ID
@@ -12642,6 +12924,18 @@ let ActionEntity = class ActionEntity extends core_1.BaseEntity {
12642
12924
  return this.Get('__mj_UpdatedAt');
12643
12925
  }
12644
12926
  /**
12927
+ * * Field Name: DriverClass
12928
+ * * Display Name: Driver Class
12929
+ * * SQL Data Type: nvarchar(255)
12930
+ * * Description: For actions where Type='Custom', this specifies the fully qualified class name of the BaseAction sub-class that should be instantiated to handle the action execution. This provides a more reliable mechanism than relying on the Name field for class instantiation.
12931
+ */
12932
+ get DriverClass() {
12933
+ return this.Get('DriverClass');
12934
+ }
12935
+ set DriverClass(value) {
12936
+ this.Set('DriverClass', value);
12937
+ }
12938
+ /**
12645
12939
  * * Field Name: Category
12646
12940
  * * Display Name: Category
12647
12941
  * * SQL Data Type: nvarchar(255)
@@ -12700,6 +12994,9 @@ let AIActionEntity = class AIActionEntity extends core_1.BaseEntity {
12700
12994
  get ID() {
12701
12995
  return this.Get('ID');
12702
12996
  }
12997
+ set ID(value) {
12998
+ this.Set('ID', value);
12999
+ }
12703
13000
  /**
12704
13001
  * * Field Name: Name
12705
13002
  * * Display Name: Name
@@ -12826,6 +13123,9 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
12826
13123
  get ID() {
12827
13124
  return this.Get('ID');
12828
13125
  }
13126
+ set ID(value) {
13127
+ this.Set('ID', value);
13128
+ }
12829
13129
  /**
12830
13130
  * * Field Name: AgentID
12831
13131
  * * Display Name: Agent ID
@@ -12946,6 +13246,9 @@ let AIAgentLearningCycleEntity = class AIAgentLearningCycleEntity extends core_1
12946
13246
  get ID() {
12947
13247
  return this.Get('ID');
12948
13248
  }
13249
+ set ID(value) {
13250
+ this.Set('ID', value);
13251
+ }
12949
13252
  /**
12950
13253
  * * Field Name: AgentID
12951
13254
  * * Display Name: Agent ID
@@ -13083,6 +13386,9 @@ let AIAgentModelEntity = class AIAgentModelEntity extends core_1.BaseEntity {
13083
13386
  get ID() {
13084
13387
  return this.Get('ID');
13085
13388
  }
13389
+ set ID(value) {
13390
+ this.Set('ID', value);
13391
+ }
13086
13392
  /**
13087
13393
  * * Field Name: AgentID
13088
13394
  * * Display Name: Agent ID
@@ -13207,6 +13513,9 @@ let AIAgentNoteTypeEntity = class AIAgentNoteTypeEntity extends core_1.BaseEntit
13207
13513
  get ID() {
13208
13514
  return this.Get('ID');
13209
13515
  }
13516
+ set ID(value) {
13517
+ this.Set('ID', value);
13518
+ }
13210
13519
  /**
13211
13520
  * * Field Name: Name
13212
13521
  * * Display Name: Name
@@ -13288,6 +13597,9 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
13288
13597
  get ID() {
13289
13598
  return this.Get('ID');
13290
13599
  }
13600
+ set ID(value) {
13601
+ this.Set('ID', value);
13602
+ }
13291
13603
  /**
13292
13604
  * * Field Name: AgentID
13293
13605
  * * Display Name: Agent ID
@@ -13436,6 +13748,9 @@ let AIAgentRequestEntity = class AIAgentRequestEntity extends core_1.BaseEntity
13436
13748
  get ID() {
13437
13749
  return this.Get('ID');
13438
13750
  }
13751
+ set ID(value) {
13752
+ this.Set('ID', value);
13753
+ }
13439
13754
  /**
13440
13755
  * * Field Name: AgentID
13441
13756
  * * Display Name: Agent ID
@@ -13682,6 +13997,9 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
13682
13997
  get ID() {
13683
13998
  return this.Get('ID');
13684
13999
  }
14000
+ set ID(value) {
14001
+ this.Set('ID', value);
14002
+ }
13685
14003
  /**
13686
14004
  * * Field Name: Name
13687
14005
  * * Display Name: Name
@@ -13854,6 +14172,30 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
13854
14172
  this.Set('TypeID', value);
13855
14173
  }
13856
14174
  /**
14175
+ * * Field Name: Status
14176
+ * * Display Name: Status
14177
+ * * SQL Data Type: nvarchar(20)
14178
+ * * Description: Current status of the AI agent. Active agents can be executed, Disabled agents are inactive, and Pending agents are awaiting configuration or approval. Allowed values: Active, Disabled, Pending.
14179
+ */
14180
+ get Status() {
14181
+ return this.Get('Status');
14182
+ }
14183
+ set Status(value) {
14184
+ this.Set('Status', value);
14185
+ }
14186
+ /**
14187
+ * * Field Name: DriverClass
14188
+ * * Display Name: Driver Class
14189
+ * * SQL Data Type: nvarchar(255)
14190
+ * * Description: Optional override for the class name used by the MemberJunction class factory to instantiate this specific agent. If specified, this overrides the agent type's DriverClass. Useful for specialized agent implementations.
14191
+ */
14192
+ get DriverClass() {
14193
+ return this.Get('DriverClass');
14194
+ }
14195
+ set DriverClass(value) {
14196
+ this.Set('DriverClass', value);
14197
+ }
14198
+ /**
13857
14199
  * * Field Name: Parent
13858
14200
  * * Display Name: Parent
13859
14201
  * * SQL Data Type: nvarchar(255)
@@ -13920,6 +14262,9 @@ let AIModelActionEntity = class AIModelActionEntity extends core_1.BaseEntity {
13920
14262
  get ID() {
13921
14263
  return this.Get('ID');
13922
14264
  }
14265
+ set ID(value) {
14266
+ this.Set('ID', value);
14267
+ }
13923
14268
  /**
13924
14269
  * * Field Name: AIModelID
13925
14270
  * * Display Name: AI Model ID
@@ -14032,6 +14377,9 @@ let AIModelTypeEntity = class AIModelTypeEntity extends core_1.BaseEntity {
14032
14377
  get ID() {
14033
14378
  return this.Get('ID');
14034
14379
  }
14380
+ set ID(value) {
14381
+ this.Set('ID', value);
14382
+ }
14035
14383
  /**
14036
14384
  * * Field Name: Name
14037
14385
  * * Display Name: Name
@@ -14163,6 +14511,9 @@ let AIModelEntity = class AIModelEntity extends core_1.BaseEntity {
14163
14511
  get ID() {
14164
14512
  return this.Get('ID');
14165
14513
  }
14514
+ set ID(value) {
14515
+ this.Set('ID', value);
14516
+ }
14166
14517
  /**
14167
14518
  * * Field Name: Name
14168
14519
  * * Display Name: Name
@@ -14384,6 +14735,9 @@ let AIPromptCategoryEntity = class AIPromptCategoryEntity extends core_1.BaseEnt
14384
14735
  get ID() {
14385
14736
  return this.Get('ID');
14386
14737
  }
14738
+ set ID(value) {
14739
+ this.Set('ID', value);
14740
+ }
14387
14741
  /**
14388
14742
  * * Field Name: Name
14389
14743
  * * Display Name: Name
@@ -14487,6 +14841,9 @@ let AIPromptTypeEntity = class AIPromptTypeEntity extends core_1.BaseEntity {
14487
14841
  get ID() {
14488
14842
  return this.Get('ID');
14489
14843
  }
14844
+ set ID(value) {
14845
+ this.Set('ID', value);
14846
+ }
14490
14847
  /**
14491
14848
  * * Field Name: Name
14492
14849
  * * Display Name: Name
@@ -14564,11 +14921,11 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
14564
14921
  * Validate() method override for AI Prompts entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
14565
14922
  * * CacheSimilarityThreshold: This rule ensures that if a cache similarity threshold is provided, it must be a value between 0 and 1, inclusive. If no value is provided, that's also allowed.
14566
14923
  * * CacheTTLSeconds: This rule ensures that if the cache expiration time in seconds is provided, it must be greater than zero.
14567
- * * Table-Level: This rule ensures that if the OutputType is set to 'object', an OutputExample must be provided. If the OutputType is anything other than 'object', providing an OutputExample is not required.
14568
14924
  * * Table-Level: This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
14569
14925
  * * Table-Level: This rule ensures that if the cache match type is set to 'Vector', the cache similarity threshold must be specified. If the match type is anything other than 'Vector', the similarity threshold can be left empty.
14570
14926
  * * Table-Level: This rule ensures that if the parallelization mode is set to 'StaticCount', then the number of parallel tasks (ParallelCount) must be provided.
14571
14927
  * * Table-Level: This rule ensures that if the Parallelization Mode is set to 'ConfigParam', then the Parallel Config Param field must be filled in. For any other mode, the Parallel Config Param can be left empty.
14928
+ * * Table-Level: This rule ensures that if the OutputType is set to 'object', an OutputExample must be provided. If the OutputType is anything other than 'object', providing an OutputExample is not required.
14572
14929
  * @public
14573
14930
  * @method
14574
14931
  * @override
@@ -14577,11 +14934,11 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
14577
14934
  const result = super.Validate();
14578
14935
  this.ValidateCacheSimilarityThresholdIsBetweenZeroAndOne(result);
14579
14936
  this.ValidateCacheTTLSecondsGreaterThanZero(result);
14580
- this.ValidateOutputExampleWhenOutputTypeObject(result);
14581
14937
  this.ValidateResultSelectorPromptIDNotEqualID(result);
14582
14938
  this.ValidateCacheSimilarityThresholdRequiredForVectorCache(result);
14583
14939
  this.ValidateParallelCountWhenParallelizationModeIsStaticCount(result);
14584
14940
  this.ValidateParallelConfigParamRequiredForConfigParamMode(result);
14941
+ this.ValidateOutputExampleWhenOutputTypeObject(result);
14585
14942
  return result;
14586
14943
  }
14587
14944
  /**
@@ -14607,17 +14964,6 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
14607
14964
  }
14608
14965
  }
14609
14966
  /**
14610
- * This rule ensures that if the OutputType is set to 'object', an OutputExample must be provided. If the OutputType is anything other than 'object', providing an OutputExample is not required.
14611
- * @param result - the ValidationResult object to add any errors or warnings to
14612
- * @public
14613
- * @method
14614
- */
14615
- ValidateOutputExampleWhenOutputTypeObject(result) {
14616
- if (this.OutputType === "object" && (this.OutputExample === null || this.OutputExample === undefined)) {
14617
- result.Errors.push(new core_1.ValidationErrorInfo("OutputExample", "When OutputType is 'object', OutputExample must be provided.", this.OutputExample, core_1.ValidationErrorType.Failure));
14618
- }
14619
- }
14620
- /**
14621
14967
  * This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
14622
14968
  * @param result - the ValidationResult object to add any errors or warnings to
14623
14969
  * @public
@@ -14662,6 +15008,17 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
14662
15008
  }
14663
15009
  }
14664
15010
  /**
15011
+ * This rule ensures that if the OutputType is set to 'object', an OutputExample must be provided. If the OutputType is anything other than 'object', providing an OutputExample is not required.
15012
+ * @param result - the ValidationResult object to add any errors or warnings to
15013
+ * @public
15014
+ * @method
15015
+ */
15016
+ ValidateOutputExampleWhenOutputTypeObject(result) {
15017
+ if (this.OutputType === "object" && (this.OutputExample === null || this.OutputExample === undefined)) {
15018
+ result.Errors.push(new core_1.ValidationErrorInfo("OutputExample", "When OutputType is 'object', OutputExample must be provided.", this.OutputExample, core_1.ValidationErrorType.Failure));
15019
+ }
15020
+ }
15021
+ /**
14665
15022
  * * Field Name: ID
14666
15023
  * * Display Name: ID
14667
15024
  * * SQL Data Type: uniqueidentifier
@@ -14670,6 +15027,9 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
14670
15027
  get ID() {
14671
15028
  return this.Get('ID');
14672
15029
  }
15030
+ set ID(value) {
15031
+ this.Set('ID', value);
15032
+ }
14673
15033
  /**
14674
15034
  * * Field Name: Name
14675
15035
  * * Display Name: Name
@@ -15234,6 +15594,9 @@ let AIResultCacheEntity = class AIResultCacheEntity extends core_1.BaseEntity {
15234
15594
  get ID() {
15235
15595
  return this.Get('ID');
15236
15596
  }
15597
+ set ID(value) {
15598
+ this.Set('ID', value);
15599
+ }
15237
15600
  /**
15238
15601
  * * Field Name: AIPromptID
15239
15602
  * * Display Name: AIPrompt ID
@@ -15487,6 +15850,9 @@ let ApplicationEntityEntity = class ApplicationEntityEntity extends core_1.BaseE
15487
15850
  get ID() {
15488
15851
  return this.Get('ID');
15489
15852
  }
15853
+ set ID(value) {
15854
+ this.Set('ID', value);
15855
+ }
15490
15856
  /**
15491
15857
  * * Field Name: ApplicationID
15492
15858
  * * Display Name: Application ID
@@ -15639,6 +16005,9 @@ let ApplicationSettingEntity = class ApplicationSettingEntity extends core_1.Bas
15639
16005
  get ID() {
15640
16006
  return this.Get('ID');
15641
16007
  }
16008
+ set ID(value) {
16009
+ this.Set('ID', value);
16010
+ }
15642
16011
  /**
15643
16012
  * * Field Name: ApplicationID
15644
16013
  * * Display Name: Application ID
@@ -15751,6 +16120,9 @@ let ApplicationEntity = class ApplicationEntity extends core_1.BaseEntity {
15751
16120
  get ID() {
15752
16121
  return this.Get('ID');
15753
16122
  }
16123
+ set ID(value) {
16124
+ this.Set('ID', value);
16125
+ }
15754
16126
  /**
15755
16127
  * * Field Name: Name
15756
16128
  * * SQL Data Type: nvarchar(100)
@@ -15889,6 +16261,9 @@ let AuditLogTypeEntity = class AuditLogTypeEntity extends core_1.BaseEntity {
15889
16261
  get ID() {
15890
16262
  return this.Get('ID');
15891
16263
  }
16264
+ set ID(value) {
16265
+ this.Set('ID', value);
16266
+ }
15892
16267
  /**
15893
16268
  * * Field Name: Name
15894
16269
  * * Display Name: Name
@@ -16021,6 +16396,9 @@ let AuditLogEntity = class AuditLogEntity extends core_1.BaseEntity {
16021
16396
  get ID() {
16022
16397
  return this.Get('ID');
16023
16398
  }
16399
+ set ID(value) {
16400
+ this.Set('ID', value);
16401
+ }
16024
16402
  /**
16025
16403
  * * Field Name: UserID
16026
16404
  * * Display Name: User ID
@@ -16231,6 +16609,9 @@ let AuthorizationRoleEntity = class AuthorizationRoleEntity extends core_1.BaseE
16231
16609
  get ID() {
16232
16610
  return this.Get('ID');
16233
16611
  }
16612
+ set ID(value) {
16613
+ this.Set('ID', value);
16614
+ }
16234
16615
  /**
16235
16616
  * * Field Name: AuthorizationID
16236
16617
  * * Display Name: Authorization ID
@@ -16368,6 +16749,9 @@ let AuthorizationEntity = class AuthorizationEntity extends core_1.BaseEntity {
16368
16749
  get ID() {
16369
16750
  return this.Get('ID');
16370
16751
  }
16752
+ set ID(value) {
16753
+ this.Set('ID', value);
16754
+ }
16371
16755
  /**
16372
16756
  * * Field Name: ParentID
16373
16757
  * * Display Name: Parent ID
@@ -16495,6 +16879,9 @@ let CommunicationBaseMessageTypeEntity = class CommunicationBaseMessageTypeEntit
16495
16879
  get ID() {
16496
16880
  return this.Get('ID');
16497
16881
  }
16882
+ set ID(value) {
16883
+ this.Set('ID', value);
16884
+ }
16498
16885
  /**
16499
16886
  * * Field Name: Type
16500
16887
  * * Display Name: Type
@@ -16628,6 +17015,9 @@ let CommunicationLogEntity = class CommunicationLogEntity extends core_1.BaseEnt
16628
17015
  get ID() {
16629
17016
  return this.Get('ID');
16630
17017
  }
17018
+ set ID(value) {
17019
+ this.Set('ID', value);
17020
+ }
16631
17021
  /**
16632
17022
  * * Field Name: CommunicationProviderID
16633
17023
  * * Display Name: Communication Provider ID
@@ -16811,6 +17201,9 @@ let CommunicationProviderMessageTypeEntity = class CommunicationProviderMessageT
16811
17201
  get ID() {
16812
17202
  return this.Get('ID');
16813
17203
  }
17204
+ set ID(value) {
17205
+ this.Set('ID', value);
17206
+ }
16814
17207
  /**
16815
17208
  * * Field Name: CommunicationProviderID
16816
17209
  * * Display Name: Communication Provider ID
@@ -16974,6 +17367,9 @@ let CommunicationProviderEntity = class CommunicationProviderEntity extends core
16974
17367
  get ID() {
16975
17368
  return this.Get('ID');
16976
17369
  }
17370
+ set ID(value) {
17371
+ this.Set('ID', value);
17372
+ }
16977
17373
  /**
16978
17374
  * * Field Name: Name
16979
17375
  * * Display Name: Name
@@ -17149,6 +17545,9 @@ let CommunicationRunEntity = class CommunicationRunEntity extends core_1.BaseEnt
17149
17545
  get ID() {
17150
17546
  return this.Get('ID');
17151
17547
  }
17548
+ set ID(value) {
17549
+ this.Set('ID', value);
17550
+ }
17152
17551
  /**
17153
17552
  * * Field Name: UserID
17154
17553
  * * Display Name: User ID
@@ -17307,6 +17706,9 @@ let CompanyEntity = class CompanyEntity extends core_1.BaseEntity {
17307
17706
  get ID() {
17308
17707
  return this.Get('ID');
17309
17708
  }
17709
+ set ID(value) {
17710
+ this.Set('ID', value);
17711
+ }
17310
17712
  /**
17311
17713
  * * Field Name: Name
17312
17714
  * * SQL Data Type: nvarchar(50)
@@ -17429,6 +17831,9 @@ let CompanyIntegrationRecordMapEntity = class CompanyIntegrationRecordMapEntity
17429
17831
  get ID() {
17430
17832
  return this.Get('ID');
17431
17833
  }
17834
+ set ID(value) {
17835
+ this.Set('ID', value);
17836
+ }
17432
17837
  /**
17433
17838
  * * Field Name: CompanyIntegrationID
17434
17839
  * * Display Name: Company Integration ID
@@ -17552,6 +17957,9 @@ let CompanyIntegrationRunAPILogEntity = class CompanyIntegrationRunAPILogEntity
17552
17957
  get ID() {
17553
17958
  return this.Get('ID');
17554
17959
  }
17960
+ set ID(value) {
17961
+ this.Set('ID', value);
17962
+ }
17555
17963
  /**
17556
17964
  * * Field Name: CompanyIntegrationRunID
17557
17965
  * * Display Name: Company Integration Run ID
@@ -17697,6 +18105,9 @@ let CompanyIntegrationRunDetailEntity = class CompanyIntegrationRunDetailEntity
17697
18105
  get ID() {
17698
18106
  return this.Get('ID');
17699
18107
  }
18108
+ set ID(value) {
18109
+ this.Set('ID', value);
18110
+ }
17700
18111
  /**
17701
18112
  * * Field Name: CompanyIntegrationRunID
17702
18113
  * * Display Name: CompanyIntegrationRun ID
@@ -17858,6 +18269,9 @@ let CompanyIntegrationRunEntity = class CompanyIntegrationRunEntity extends core
17858
18269
  get ID() {
17859
18270
  return this.Get('ID');
17860
18271
  }
18272
+ set ID(value) {
18273
+ this.Set('ID', value);
18274
+ }
17861
18275
  /**
17862
18276
  * * Field Name: CompanyIntegrationID
17863
18277
  * * Display Name: CompanyIntegration ID
@@ -18051,6 +18465,9 @@ let CompanyIntegrationEntity = class CompanyIntegrationEntity extends core_1.Bas
18051
18465
  get ID() {
18052
18466
  return this.Get('ID');
18053
18467
  }
18468
+ set ID(value) {
18469
+ this.Set('ID', value);
18470
+ }
18054
18471
  /**
18055
18472
  * * Field Name: CompanyID
18056
18473
  * * Display Name: Company ID
@@ -18298,6 +18715,9 @@ let ContentFileTypeEntity = class ContentFileTypeEntity extends core_1.BaseEntit
18298
18715
  get ID() {
18299
18716
  return this.Get('ID');
18300
18717
  }
18718
+ set ID(value) {
18719
+ this.Set('ID', value);
18720
+ }
18301
18721
  /**
18302
18722
  * * Field Name: Name
18303
18723
  * * Display Name: Name
@@ -18379,6 +18799,9 @@ let ContentItemAttributeEntity = class ContentItemAttributeEntity extends core_1
18379
18799
  get ID() {
18380
18800
  return this.Get('ID');
18381
18801
  }
18802
+ set ID(value) {
18803
+ this.Set('ID', value);
18804
+ }
18382
18805
  /**
18383
18806
  * * Field Name: ContentItemID
18384
18807
  * * Display Name: Content Item ID
@@ -18480,6 +18903,9 @@ let ContentItemTagEntity = class ContentItemTagEntity extends core_1.BaseEntity
18480
18903
  get ID() {
18481
18904
  return this.Get('ID');
18482
18905
  }
18906
+ set ID(value) {
18907
+ this.Set('ID', value);
18908
+ }
18483
18909
  /**
18484
18910
  * * Field Name: ItemID
18485
18911
  * * Display Name: Item ID
@@ -18570,6 +18996,9 @@ let ContentItemEntity = class ContentItemEntity extends core_1.BaseEntity {
18570
18996
  get ID() {
18571
18997
  return this.Get('ID');
18572
18998
  }
18999
+ set ID(value) {
19000
+ this.Set('ID', value);
19001
+ }
18573
19002
  /**
18574
19003
  * * Field Name: ContentSourceID
18575
19004
  * * Display Name: Content Source ID
@@ -18764,6 +19193,9 @@ let ContentProcessRunEntity = class ContentProcessRunEntity extends core_1.BaseE
18764
19193
  get ID() {
18765
19194
  return this.Get('ID');
18766
19195
  }
19196
+ set ID(value) {
19197
+ this.Set('ID', value);
19198
+ }
18767
19199
  /**
18768
19200
  * * Field Name: SourceID
18769
19201
  * * Display Name: Source ID
@@ -18887,6 +19319,9 @@ let ContentSourceParamEntity = class ContentSourceParamEntity extends core_1.Bas
18887
19319
  get ID() {
18888
19320
  return this.Get('ID');
18889
19321
  }
19322
+ set ID(value) {
19323
+ this.Set('ID', value);
19324
+ }
18890
19325
  /**
18891
19326
  * * Field Name: ContentSourceID
18892
19327
  * * Display Name: Content Source ID
@@ -18988,6 +19423,9 @@ let ContentSourceTypeParamEntity = class ContentSourceTypeParamEntity extends co
18988
19423
  get ID() {
18989
19424
  return this.Get('ID');
18990
19425
  }
19426
+ set ID(value) {
19427
+ this.Set('ID', value);
19428
+ }
18991
19429
  /**
18992
19430
  * * Field Name: Name
18993
19431
  * * Display Name: Name
@@ -19102,6 +19540,9 @@ let ContentSourceTypeEntity = class ContentSourceTypeEntity extends core_1.BaseE
19102
19540
  get ID() {
19103
19541
  return this.Get('ID');
19104
19542
  }
19543
+ set ID(value) {
19544
+ this.Set('ID', value);
19545
+ }
19105
19546
  /**
19106
19547
  * * Field Name: Name
19107
19548
  * * Display Name: Name
@@ -19183,6 +19624,9 @@ let ContentSourceEntity = class ContentSourceEntity extends core_1.BaseEntity {
19183
19624
  get ID() {
19184
19625
  return this.Get('ID');
19185
19626
  }
19627
+ set ID(value) {
19628
+ this.Set('ID', value);
19629
+ }
19186
19630
  /**
19187
19631
  * * Field Name: Name
19188
19632
  * * Display Name: Name
@@ -19324,6 +19768,9 @@ let ContentTypeAttributeEntity = class ContentTypeAttributeEntity extends core_1
19324
19768
  get ID() {
19325
19769
  return this.Get('ID');
19326
19770
  }
19771
+ set ID(value) {
19772
+ this.Set('ID', value);
19773
+ }
19327
19774
  /**
19328
19775
  * * Field Name: ContentTypeID
19329
19776
  * * Display Name: Content Type ID
@@ -19427,6 +19874,9 @@ let ContentTypeEntity = class ContentTypeEntity extends core_1.BaseEntity {
19427
19874
  get ID() {
19428
19875
  return this.Get('ID');
19429
19876
  }
19877
+ set ID(value) {
19878
+ this.Set('ID', value);
19879
+ }
19430
19880
  /**
19431
19881
  * * Field Name: Name
19432
19882
  * * Display Name: Name
@@ -19573,6 +20023,9 @@ let ConversationDetailEntity = class ConversationDetailEntity extends core_1.Bas
19573
20023
  get ID() {
19574
20024
  return this.Get('ID');
19575
20025
  }
20026
+ set ID(value) {
20027
+ this.Set('ID', value);
20028
+ }
19576
20029
  /**
19577
20030
  * * Field Name: ConversationID
19578
20031
  * * Display Name: Conversation ID
@@ -19829,6 +20282,9 @@ let ConversationEntity = class ConversationEntity extends core_1.BaseEntity {
19829
20282
  get ID() {
19830
20283
  return this.Get('ID');
19831
20284
  }
20285
+ set ID(value) {
20286
+ this.Set('ID', value);
20287
+ }
19832
20288
  /**
19833
20289
  * * Field Name: UserID
19834
20290
  * * Display Name: User ID
@@ -20033,6 +20489,9 @@ let DashboardCategoryEntity = class DashboardCategoryEntity extends core_1.BaseE
20033
20489
  get ID() {
20034
20490
  return this.Get('ID');
20035
20491
  }
20492
+ set ID(value) {
20493
+ this.Set('ID', value);
20494
+ }
20036
20495
  /**
20037
20496
  * * Field Name: Name
20038
20497
  * * Display Name: Name
@@ -20155,6 +20614,9 @@ let DashboardEntity = class DashboardEntity extends core_1.BaseEntity {
20155
20614
  get ID() {
20156
20615
  return this.Get('ID');
20157
20616
  }
20617
+ set ID(value) {
20618
+ this.Set('ID', value);
20619
+ }
20158
20620
  /**
20159
20621
  * * Field Name: Name
20160
20622
  * * Display Name: Name
@@ -20380,6 +20842,9 @@ let DataContextItemEntity = class DataContextItemEntity extends core_1.BaseEntit
20380
20842
  get ID() {
20381
20843
  return this.Get('ID');
20382
20844
  }
20845
+ set ID(value) {
20846
+ this.Set('ID', value);
20847
+ }
20383
20848
  /**
20384
20849
  * * Field Name: DataContextID
20385
20850
  * * Display Name: Data Context ID
@@ -20610,6 +21075,9 @@ let DataContextEntity = class DataContextEntity extends core_1.BaseEntity {
20610
21075
  get ID() {
20611
21076
  return this.Get('ID');
20612
21077
  }
21078
+ set ID(value) {
21079
+ this.Set('ID', value);
21080
+ }
20613
21081
  /**
20614
21082
  * * Field Name: Name
20615
21083
  * * Display Name: Name
@@ -20734,6 +21202,9 @@ let DatasetItemEntity = class DatasetItemEntity extends core_1.BaseEntity {
20734
21202
  get ID() {
20735
21203
  return this.Get('ID');
20736
21204
  }
21205
+ set ID(value) {
21206
+ this.Set('ID', value);
21207
+ }
20737
21208
  /**
20738
21209
  * * Field Name: Code
20739
21210
  * * Display Name: Code
@@ -20913,6 +21384,9 @@ let DatasetEntity = class DatasetEntity extends core_1.BaseEntity {
20913
21384
  get ID() {
20914
21385
  return this.Get('ID');
20915
21386
  }
21387
+ set ID(value) {
21388
+ this.Set('ID', value);
21389
+ }
20916
21390
  /**
20917
21391
  * * Field Name: Name
20918
21392
  * * Display Name: Name
@@ -21005,6 +21479,9 @@ let DuplicateRunDetailMatchEntity = class DuplicateRunDetailMatchEntity extends
21005
21479
  get ID() {
21006
21480
  return this.Get('ID');
21007
21481
  }
21482
+ set ID(value) {
21483
+ this.Set('ID', value);
21484
+ }
21008
21485
  /**
21009
21486
  * * Field Name: DuplicateRunDetailID
21010
21487
  * * Display Name: Duplicate Run Detail ID
@@ -21210,6 +21687,9 @@ let DuplicateRunDetailEntity = class DuplicateRunDetailEntity extends core_1.Bas
21210
21687
  get ID() {
21211
21688
  return this.Get('ID');
21212
21689
  }
21690
+ set ID(value) {
21691
+ this.Set('ID', value);
21692
+ }
21213
21693
  /**
21214
21694
  * * Field Name: DuplicateRunID
21215
21695
  * * Display Name: Duplicate Run ID
@@ -21374,6 +21854,9 @@ let DuplicateRunEntity = class DuplicateRunEntity extends core_1.BaseEntity {
21374
21854
  get ID() {
21375
21855
  return this.Get('ID');
21376
21856
  }
21857
+ set ID(value) {
21858
+ this.Set('ID', value);
21859
+ }
21377
21860
  /**
21378
21861
  * * Field Name: EntityID
21379
21862
  * * Display Name: Entity ID
@@ -21603,6 +22086,9 @@ let EmployeeCompanyIntegrationEntity = class EmployeeCompanyIntegrationEntity ex
21603
22086
  get ID() {
21604
22087
  return this.Get('ID');
21605
22088
  }
22089
+ set ID(value) {
22090
+ this.Set('ID', value);
22091
+ }
21606
22092
  /**
21607
22093
  * * Field Name: EmployeeID
21608
22094
  * * Display Name: Employee ID
@@ -21709,6 +22195,9 @@ let EmployeeRoleEntity = class EmployeeRoleEntity extends core_1.BaseEntity {
21709
22195
  get ID() {
21710
22196
  return this.Get('ID');
21711
22197
  }
22198
+ set ID(value) {
22199
+ this.Set('ID', value);
22200
+ }
21712
22201
  /**
21713
22202
  * * Field Name: EmployeeID
21714
22203
  * * Display Name: Employee ID
@@ -21800,6 +22289,9 @@ let EmployeeSkillEntity = class EmployeeSkillEntity extends core_1.BaseEntity {
21800
22289
  get ID() {
21801
22290
  return this.Get('ID');
21802
22291
  }
22292
+ set ID(value) {
22293
+ this.Set('ID', value);
22294
+ }
21803
22295
  /**
21804
22296
  * * Field Name: EmployeeID
21805
22297
  * * Display Name: Employee ID
@@ -21891,6 +22383,9 @@ let EmployeeEntity = class EmployeeEntity extends core_1.BaseEntity {
21891
22383
  get ID() {
21892
22384
  return this.Get('ID');
21893
22385
  }
22386
+ set ID(value) {
22387
+ this.Set('ID', value);
22388
+ }
21894
22389
  /**
21895
22390
  * * Field Name: BCMID
21896
22391
  * * Display Name: BCMID
@@ -22109,6 +22604,9 @@ let EntityEntity = class EntityEntity extends core_1.BaseEntity {
22109
22604
  get ID() {
22110
22605
  return this.Get('ID');
22111
22606
  }
22607
+ set ID(value) {
22608
+ this.Set('ID', value);
22609
+ }
22112
22610
  /**
22113
22611
  * * Field Name: ParentID
22114
22612
  * * Display Name: Parent ID
@@ -22875,6 +23373,9 @@ let EntityActionFilterEntity = class EntityActionFilterEntity extends core_1.Bas
22875
23373
  get ID() {
22876
23374
  return this.Get('ID');
22877
23375
  }
23376
+ set ID(value) {
23377
+ this.Set('ID', value);
23378
+ }
22878
23379
  /**
22879
23380
  * * Field Name: EntityActionID
22880
23381
  * * Display Name: Entity Action ID
@@ -22989,6 +23490,9 @@ let EntityActionInvocationTypeEntity = class EntityActionInvocationTypeEntity ex
22989
23490
  get ID() {
22990
23491
  return this.Get('ID');
22991
23492
  }
23493
+ set ID(value) {
23494
+ this.Set('ID', value);
23495
+ }
22992
23496
  /**
22993
23497
  * * Field Name: Name
22994
23498
  * * Display Name: Name
@@ -23085,6 +23589,9 @@ let EntityActionInvocationEntity = class EntityActionInvocationEntity extends co
23085
23589
  get ID() {
23086
23590
  return this.Get('ID');
23087
23591
  }
23592
+ set ID(value) {
23593
+ this.Set('ID', value);
23594
+ }
23088
23595
  /**
23089
23596
  * * Field Name: EntityActionID
23090
23597
  * * Display Name: Entity Action ID
@@ -23195,6 +23702,9 @@ let EntityActionParamEntity = class EntityActionParamEntity extends core_1.BaseE
23195
23702
  get ID() {
23196
23703
  return this.Get('ID');
23197
23704
  }
23705
+ set ID(value) {
23706
+ this.Set('ID', value);
23707
+ }
23198
23708
  /**
23199
23709
  * * Field Name: EntityActionID
23200
23710
  * * Display Name: Entity Action ID
@@ -23389,6 +23899,9 @@ let EntityActionEntity = class EntityActionEntity extends core_1.BaseEntity {
23389
23899
  get ID() {
23390
23900
  return this.Get('ID');
23391
23901
  }
23902
+ set ID(value) {
23903
+ this.Set('ID', value);
23904
+ }
23392
23905
  /**
23393
23906
  * * Field Name: Entity
23394
23907
  * * Display Name: Entity
@@ -23448,6 +23961,9 @@ let EntityAIActionEntity = class EntityAIActionEntity extends core_1.BaseEntity
23448
23961
  get ID() {
23449
23962
  return this.Get('ID');
23450
23963
  }
23964
+ set ID(value) {
23965
+ this.Set('ID', value);
23966
+ }
23451
23967
  /**
23452
23968
  * * Field Name: EntityID
23453
23969
  * * Display Name: Entity ID
@@ -23687,6 +24203,9 @@ let EntityCommunicationFieldEntity = class EntityCommunicationFieldEntity extend
23687
24203
  get ID() {
23688
24204
  return this.Get('ID');
23689
24205
  }
24206
+ set ID(value) {
24207
+ this.Set('ID', value);
24208
+ }
23690
24209
  /**
23691
24210
  * * Field Name: EntityCommunicationMessageTypeID
23692
24211
  * * Display Name: Entity Communication Message Type ID
@@ -23783,6 +24302,9 @@ let EntityCommunicationMessageTypeEntity = class EntityCommunicationMessageTypeE
23783
24302
  get ID() {
23784
24303
  return this.Get('ID');
23785
24304
  }
24305
+ set ID(value) {
24306
+ this.Set('ID', value);
24307
+ }
23786
24308
  /**
23787
24309
  * * Field Name: EntityID
23788
24310
  * * Display Name: Entity ID
@@ -23906,6 +24428,9 @@ let EntityDocumentRunEntity = class EntityDocumentRunEntity extends core_1.BaseE
23906
24428
  get ID() {
23907
24429
  return this.Get('ID');
23908
24430
  }
24431
+ set ID(value) {
24432
+ this.Set('ID', value);
24433
+ }
23909
24434
  /**
23910
24435
  * * Field Name: EntityDocumentID
23911
24436
  * * Display Name: Entity Document ID
@@ -24025,6 +24550,9 @@ let EntityDocumentSettingEntity = class EntityDocumentSettingEntity extends core
24025
24550
  get ID() {
24026
24551
  return this.Get('ID');
24027
24552
  }
24553
+ set ID(value) {
24554
+ this.Set('ID', value);
24555
+ }
24028
24556
  /**
24029
24557
  * * Field Name: EntityDocumentID
24030
24558
  * * Display Name: Entity Document ID
@@ -24137,6 +24665,9 @@ let EntityDocumentTypeEntity = class EntityDocumentTypeEntity extends core_1.Bas
24137
24665
  get ID() {
24138
24666
  return this.Get('ID');
24139
24667
  }
24668
+ set ID(value) {
24669
+ this.Set('ID', value);
24670
+ }
24140
24671
  /**
24141
24672
  * * Field Name: Name
24142
24673
  * * Display Name: Name
@@ -24258,6 +24789,9 @@ let EntityDocumentEntity = class EntityDocumentEntity extends core_1.BaseEntity
24258
24789
  get ID() {
24259
24790
  return this.Get('ID');
24260
24791
  }
24792
+ set ID(value) {
24793
+ this.Set('ID', value);
24794
+ }
24261
24795
  /**
24262
24796
  * * Field Name: Name
24263
24797
  * * Display Name: Name
@@ -24481,6 +25015,9 @@ let EntityFieldValueEntity = class EntityFieldValueEntity extends core_1.BaseEnt
24481
25015
  get ID() {
24482
25016
  return this.Get('ID');
24483
25017
  }
25018
+ set ID(value) {
25019
+ this.Set('ID', value);
25020
+ }
24484
25021
  /**
24485
25022
  * * Field Name: EntityFieldID
24486
25023
  * * Display Name: Entity Field ID
@@ -24620,6 +25157,9 @@ let EntityFieldEntity = class EntityFieldEntity extends core_1.BaseEntity {
24620
25157
  get ID() {
24621
25158
  return this.Get('ID');
24622
25159
  }
25160
+ set ID(value) {
25161
+ this.Set('ID', value);
25162
+ }
24623
25163
  /**
24624
25164
  * * Field Name: EntityID
24625
25165
  * * Display Name: Entity ID
@@ -25297,6 +25837,9 @@ let EntityPermissionEntity = class EntityPermissionEntity extends core_1.BaseEnt
25297
25837
  get ID() {
25298
25838
  return this.Get('ID');
25299
25839
  }
25840
+ set ID(value) {
25841
+ this.Set('ID', value);
25842
+ }
25300
25843
  /**
25301
25844
  * * Field Name: EntityID
25302
25845
  * * Display Name: Entity ID
@@ -25543,6 +26086,9 @@ let EntityRecordDocumentEntity = class EntityRecordDocumentEntity extends core_1
25543
26086
  get ID() {
25544
26087
  return this.Get('ID');
25545
26088
  }
26089
+ set ID(value) {
26090
+ this.Set('ID', value);
26091
+ }
25546
26092
  /**
25547
26093
  * * Field Name: EntityID
25548
26094
  * * Display Name: Entity ID
@@ -25729,6 +26275,9 @@ let EntityRelationshipDisplayComponentEntity = class EntityRelationshipDisplayCo
25729
26275
  get ID() {
25730
26276
  return this.Get('ID');
25731
26277
  }
26278
+ set ID(value) {
26279
+ this.Set('ID', value);
26280
+ }
25732
26281
  /**
25733
26282
  * * Field Name: Name
25734
26283
  * * Display Name: Name
@@ -25827,6 +26376,9 @@ let EntityRelationshipEntity = class EntityRelationshipEntity extends core_1.Bas
25827
26376
  get ID() {
25828
26377
  return this.Get('ID');
25829
26378
  }
26379
+ set ID(value) {
26380
+ this.Set('ID', value);
26381
+ }
25830
26382
  /**
25831
26383
  * * Field Name: EntityID
25832
26384
  * * Display Name: Entity ID
@@ -26213,6 +26765,9 @@ let EntitySettingEntity = class EntitySettingEntity extends core_1.BaseEntity {
26213
26765
  get ID() {
26214
26766
  return this.Get('ID');
26215
26767
  }
26768
+ set ID(value) {
26769
+ this.Set('ID', value);
26770
+ }
26216
26771
  /**
26217
26772
  * * Field Name: EntityID
26218
26773
  * * Display Name: Entity ID
@@ -26335,6 +26890,9 @@ let ErrorLogEntity = class ErrorLogEntity extends core_1.BaseEntity {
26335
26890
  get ID() {
26336
26891
  return this.Get('ID');
26337
26892
  }
26893
+ set ID(value) {
26894
+ this.Set('ID', value);
26895
+ }
26338
26896
  /**
26339
26897
  * * Field Name: CompanyIntegrationRunID
26340
26898
  * * Display Name: CompanyIntegrationRun ID
@@ -26505,6 +27063,9 @@ let ExplorerNavigationItemEntity = class ExplorerNavigationItemEntity extends co
26505
27063
  get ID() {
26506
27064
  return this.Get('ID');
26507
27065
  }
27066
+ set ID(value) {
27067
+ this.Set('ID', value);
27068
+ }
26508
27069
  /**
26509
27070
  * * Field Name: Sequence
26510
27071
  * * Display Name: Sequence
@@ -26675,6 +27236,9 @@ let FileCategoryEntity = class FileCategoryEntity extends core_1.BaseEntity {
26675
27236
  get ID() {
26676
27237
  return this.Get('ID');
26677
27238
  }
27239
+ set ID(value) {
27240
+ this.Set('ID', value);
27241
+ }
26678
27242
  /**
26679
27243
  * * Field Name: Name
26680
27244
  * * Display Name: Name
@@ -26776,6 +27340,9 @@ let FileEntityRecordLinkEntity = class FileEntityRecordLinkEntity extends core_1
26776
27340
  get ID() {
26777
27341
  return this.Get('ID');
26778
27342
  }
27343
+ set ID(value) {
27344
+ this.Set('ID', value);
27345
+ }
26779
27346
  /**
26780
27347
  * * Field Name: FileID
26781
27348
  * * Display Name: File ID
@@ -26886,6 +27453,9 @@ let FileStorageProviderEntity = class FileStorageProviderEntity extends core_1.B
26886
27453
  get ID() {
26887
27454
  return this.Get('ID');
26888
27455
  }
27456
+ set ID(value) {
27457
+ this.Set('ID', value);
27458
+ }
26889
27459
  /**
26890
27460
  * * Field Name: Name
26891
27461
  * * Display Name: Name
@@ -27013,6 +27583,9 @@ let FileEntity = class FileEntity extends core_1.BaseEntity {
27013
27583
  get ID() {
27014
27584
  return this.Get('ID');
27015
27585
  }
27586
+ set ID(value) {
27587
+ this.Set('ID', value);
27588
+ }
27016
27589
  /**
27017
27590
  * * Field Name: Name
27018
27591
  * * Display Name: Name
@@ -27138,6 +27711,7 @@ exports.FileEntity = FileEntity = __decorate([
27138
27711
  * * Schema: __mj
27139
27712
  * * Base Table: GeneratedCodeCategory
27140
27713
  * * Base View: vwGeneratedCodeCategories
27714
+ * * @description Categorization for generated code, including optional parent-child relationships.
27141
27715
  * * Primary Key: ID
27142
27716
  * @extends {BaseEntity}
27143
27717
  * @class
@@ -27169,6 +27743,9 @@ let GeneratedCodeCategoryEntity = class GeneratedCodeCategoryEntity extends core
27169
27743
  get ID() {
27170
27744
  return this.Get('ID');
27171
27745
  }
27746
+ set ID(value) {
27747
+ this.Set('ID', value);
27748
+ }
27172
27749
  /**
27173
27750
  * * Field Name: Name
27174
27751
  * * Display Name: Name
@@ -27271,6 +27848,9 @@ let GeneratedCodeEntity = class GeneratedCodeEntity extends core_1.BaseEntity {
27271
27848
  get ID() {
27272
27849
  return this.Get('ID');
27273
27850
  }
27851
+ set ID(value) {
27852
+ this.Set('ID', value);
27853
+ }
27274
27854
  /**
27275
27855
  * * Field Name: GeneratedAt
27276
27856
  * * Display Name: Generated At
@@ -27504,6 +28084,9 @@ let IntegrationURLFormatEntity = class IntegrationURLFormatEntity extends core_1
27504
28084
  get ID() {
27505
28085
  return this.Get('ID');
27506
28086
  }
28087
+ set ID(value) {
28088
+ this.Set('ID', value);
28089
+ }
27507
28090
  /**
27508
28091
  * * Field Name: IntegrationID
27509
28092
  * * Display Name: Integration ID
@@ -27728,6 +28311,9 @@ let IntegrationEntity = class IntegrationEntity extends core_1.BaseEntity {
27728
28311
  get ID() {
27729
28312
  return this.Get('ID');
27730
28313
  }
28314
+ set ID(value) {
28315
+ this.Set('ID', value);
28316
+ }
27731
28317
  };
27732
28318
  exports.IntegrationEntity = IntegrationEntity;
27733
28319
  exports.IntegrationEntity = IntegrationEntity = __decorate([
@@ -27770,6 +28356,9 @@ let LibraryEntity = class LibraryEntity extends core_1.BaseEntity {
27770
28356
  get ID() {
27771
28357
  return this.Get('ID');
27772
28358
  }
28359
+ set ID(value) {
28360
+ this.Set('ID', value);
28361
+ }
27773
28362
  /**
27774
28363
  * * Field Name: Name
27775
28364
  * * Display Name: Name
@@ -27894,6 +28483,9 @@ let LibraryItemEntity = class LibraryItemEntity extends core_1.BaseEntity {
27894
28483
  get ID() {
27895
28484
  return this.Get('ID');
27896
28485
  }
28486
+ set ID(value) {
28487
+ this.Set('ID', value);
28488
+ }
27897
28489
  /**
27898
28490
  * * Field Name: Name
27899
28491
  * * Display Name: Name
@@ -28004,6 +28596,9 @@ let ListCategoryEntity = class ListCategoryEntity extends core_1.BaseEntity {
28004
28596
  get ID() {
28005
28597
  return this.Get('ID');
28006
28598
  }
28599
+ set ID(value) {
28600
+ this.Set('ID', value);
28601
+ }
28007
28602
  /**
28008
28603
  * * Field Name: Name
28009
28604
  * * Display Name: Name
@@ -28125,6 +28720,9 @@ let ListDetailEntity = class ListDetailEntity extends core_1.BaseEntity {
28125
28720
  get ID() {
28126
28721
  return this.Get('ID');
28127
28722
  }
28723
+ set ID(value) {
28724
+ this.Set('ID', value);
28725
+ }
28128
28726
  /**
28129
28727
  * * Field Name: ListID
28130
28728
  * * Display Name: List ID
@@ -28260,6 +28858,9 @@ let ListEntity = class ListEntity extends core_1.BaseEntity {
28260
28858
  get ID() {
28261
28859
  return this.Get('ID');
28262
28860
  }
28861
+ set ID(value) {
28862
+ this.Set('ID', value);
28863
+ }
28263
28864
  /**
28264
28865
  * * Field Name: Name
28265
28866
  * * SQL Data Type: nvarchar(100)
@@ -28445,6 +29046,9 @@ let AIAgentPromptEntity = class AIAgentPromptEntity extends core_1.BaseEntity {
28445
29046
  get ID() {
28446
29047
  return this.Get('ID');
28447
29048
  }
29049
+ set ID(value) {
29050
+ this.Set('ID', value);
29051
+ }
28448
29052
  /**
28449
29053
  * * Field Name: AgentID
28450
29054
  * * Display Name: Agent ID
@@ -28668,6 +29272,9 @@ let AIAgentRunStepEntity = class AIAgentRunStepEntity extends core_1.BaseEntity
28668
29272
  get ID() {
28669
29273
  return this.Get('ID');
28670
29274
  }
29275
+ set ID(value) {
29276
+ this.Set('ID', value);
29277
+ }
28671
29278
  /**
28672
29279
  * * Field Name: AgentRunID
28673
29280
  * * Display Name: Agent Run ID
@@ -28881,6 +29488,9 @@ let AIAgentRunEntity = class AIAgentRunEntity extends core_1.BaseEntity {
28881
29488
  get ID() {
28882
29489
  return this.Get('ID');
28883
29490
  }
29491
+ set ID(value) {
29492
+ this.Set('ID', value);
29493
+ }
28884
29494
  /**
28885
29495
  * * Field Name: AgentID
28886
29496
  * * Display Name: Agent ID
@@ -29071,6 +29681,78 @@ let AIAgentRunEntity = class AIAgentRunEntity extends core_1.BaseEntity {
29071
29681
  return this.Get('__mj_UpdatedAt');
29072
29682
  }
29073
29683
  /**
29684
+ * * Field Name: TotalPromptTokensUsed
29685
+ * * Display Name: Total Prompt Tokens Used
29686
+ * * SQL Data Type: int
29687
+ * * Description: Total number of prompt/input tokens used across all AIPromptRun executions during this agent run. This provides a breakdown of the TotalTokensUsed field to help analyze the ratio of input vs output tokens consumed by the agent.
29688
+ */
29689
+ get TotalPromptTokensUsed() {
29690
+ return this.Get('TotalPromptTokensUsed');
29691
+ }
29692
+ set TotalPromptTokensUsed(value) {
29693
+ this.Set('TotalPromptTokensUsed', value);
29694
+ }
29695
+ /**
29696
+ * * Field Name: TotalCompletionTokensUsed
29697
+ * * Display Name: Total Completion Tokens Used
29698
+ * * SQL Data Type: int
29699
+ * * Description: Total number of completion/output tokens generated across all AIPromptRun executions during this agent run. This provides a breakdown of the TotalTokensUsed field to help analyze the ratio of input vs output tokens consumed by the agent.
29700
+ */
29701
+ get TotalCompletionTokensUsed() {
29702
+ return this.Get('TotalCompletionTokensUsed');
29703
+ }
29704
+ set TotalCompletionTokensUsed(value) {
29705
+ this.Set('TotalCompletionTokensUsed', value);
29706
+ }
29707
+ /**
29708
+ * * Field Name: TotalTokensUsedRollup
29709
+ * * Display Name: Total Tokens Used Rollup
29710
+ * * SQL Data Type: int
29711
+ * * Description: Total tokens used including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalTokensUsed. For parent agents, this includes the sum of all descendant agent tokens. Calculated as TotalPromptTokensUsedRollup + TotalCompletionTokensUsedRollup.
29712
+ */
29713
+ get TotalTokensUsedRollup() {
29714
+ return this.Get('TotalTokensUsedRollup');
29715
+ }
29716
+ set TotalTokensUsedRollup(value) {
29717
+ this.Set('TotalTokensUsedRollup', value);
29718
+ }
29719
+ /**
29720
+ * * Field Name: TotalPromptTokensUsedRollup
29721
+ * * Display Name: Total Prompt Tokens Used Rollup
29722
+ * * SQL Data Type: int
29723
+ * * Description: Total prompt/input tokens including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalPromptTokensUsed. For parent agents, this includes the sum of all descendant agent prompt tokens.
29724
+ */
29725
+ get TotalPromptTokensUsedRollup() {
29726
+ return this.Get('TotalPromptTokensUsedRollup');
29727
+ }
29728
+ set TotalPromptTokensUsedRollup(value) {
29729
+ this.Set('TotalPromptTokensUsedRollup', value);
29730
+ }
29731
+ /**
29732
+ * * Field Name: TotalCompletionTokensUsedRollup
29733
+ * * Display Name: Total Completion Tokens Used Rollup
29734
+ * * SQL Data Type: int
29735
+ * * Description: Total completion/output tokens including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalCompletionTokensUsed. For parent agents, this includes the sum of all descendant agent completion tokens.
29736
+ */
29737
+ get TotalCompletionTokensUsedRollup() {
29738
+ return this.Get('TotalCompletionTokensUsedRollup');
29739
+ }
29740
+ set TotalCompletionTokensUsedRollup(value) {
29741
+ this.Set('TotalCompletionTokensUsedRollup', value);
29742
+ }
29743
+ /**
29744
+ * * Field Name: TotalCostRollup
29745
+ * * Display Name: Total Cost Rollup
29746
+ * * SQL Data Type: decimal(19, 8)
29747
+ * * Description: Total cost including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalCost. For parent agents, this includes the sum of all descendant agent costs. Note: This assumes all costs are in the same currency for accurate rollup.
29748
+ */
29749
+ get TotalCostRollup() {
29750
+ return this.Get('TotalCostRollup');
29751
+ }
29752
+ set TotalCostRollup(value) {
29753
+ this.Set('TotalCostRollup', value);
29754
+ }
29755
+ /**
29074
29756
  * * Field Name: Agent
29075
29757
  * * Display Name: Agent
29076
29758
  * * SQL Data Type: nvarchar(255)
@@ -29136,6 +29818,9 @@ let AIAgentTypeEntity = class AIAgentTypeEntity extends core_1.BaseEntity {
29136
29818
  get ID() {
29137
29819
  return this.Get('ID');
29138
29820
  }
29821
+ set ID(value) {
29822
+ this.Set('ID', value);
29823
+ }
29139
29824
  /**
29140
29825
  * * Field Name: Name
29141
29826
  * * Display Name: Name
@@ -29205,6 +29890,30 @@ let AIAgentTypeEntity = class AIAgentTypeEntity extends core_1.BaseEntity {
29205
29890
  return this.Get('__mj_UpdatedAt');
29206
29891
  }
29207
29892
  /**
29893
+ * * Field Name: AgentPromptPlaceholder
29894
+ * * Display Name: Agent Prompt Placeholder
29895
+ * * SQL Data Type: nvarchar(255)
29896
+ * * Description: The placeholder name used in the system prompt template where the agent prompt result should be injected. For example, if the system prompt contains "{{ agentPrompt }}", this field should contain "agentPrompt". This enables proper hierarchical prompt execution where the agent type's system prompt acts as the parent and the agent's specific prompt acts as the child.
29897
+ */
29898
+ get AgentPromptPlaceholder() {
29899
+ return this.Get('AgentPromptPlaceholder');
29900
+ }
29901
+ set AgentPromptPlaceholder(value) {
29902
+ this.Set('AgentPromptPlaceholder', value);
29903
+ }
29904
+ /**
29905
+ * * Field Name: DriverClass
29906
+ * * Display Name: Driver Class
29907
+ * * SQL Data Type: nvarchar(255)
29908
+ * * Description: The class name used by the MemberJunction class factory to instantiate the specific agent type implementation. For example, "LoopAgentType" for a looping agent pattern. If not specified, defaults to using the agent type Name for the DriverClass lookup key.
29909
+ */
29910
+ get DriverClass() {
29911
+ return this.Get('DriverClass');
29912
+ }
29913
+ set DriverClass(value) {
29914
+ this.Set('DriverClass', value);
29915
+ }
29916
+ /**
29208
29917
  * * Field Name: SystemPrompt
29209
29918
  * * Display Name: System Prompt
29210
29919
  * * SQL Data Type: nvarchar(255)
@@ -29253,6 +29962,9 @@ let AIConfigurationParamEntity = class AIConfigurationParamEntity extends core_1
29253
29962
  get ID() {
29254
29963
  return this.Get('ID');
29255
29964
  }
29965
+ set ID(value) {
29966
+ this.Set('ID', value);
29967
+ }
29256
29968
  /**
29257
29969
  * * Field Name: ConfigurationID
29258
29970
  * * Display Name: Configuration ID
@@ -29388,6 +30100,9 @@ let AIConfigurationEntity = class AIConfigurationEntity extends core_1.BaseEntit
29388
30100
  get ID() {
29389
30101
  return this.Get('ID');
29390
30102
  }
30103
+ set ID(value) {
30104
+ this.Set('ID', value);
30105
+ }
29391
30106
  /**
29392
30107
  * * Field Name: Name
29393
30108
  * * Display Name: Name
@@ -29509,6 +30224,562 @@ exports.AIConfigurationEntity = AIConfigurationEntity;
29509
30224
  exports.AIConfigurationEntity = AIConfigurationEntity = __decorate([
29510
30225
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Configurations')
29511
30226
  ], AIConfigurationEntity);
30227
+ /**
30228
+ * MJ: AI Model Costs - strongly typed entity sub-class
30229
+ * * Schema: __mj
30230
+ * * Base Table: AIModelCost
30231
+ * * Base View: vwAIModelCosts
30232
+ * * Primary Key: ID
30233
+ * @extends {BaseEntity}
30234
+ * @class
30235
+ * @public
30236
+ */
30237
+ let AIModelCostEntity = class AIModelCostEntity extends core_1.BaseEntity {
30238
+ /**
30239
+ * Loads the MJ: AI Model Costs record from the database
30240
+ * @param ID: string - primary key value to load the MJ: AI Model Costs record.
30241
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
30242
+ * @returns {Promise<boolean>} - true if successful, false otherwise
30243
+ * @public
30244
+ * @async
30245
+ * @memberof AIModelCostEntity
30246
+ * @method
30247
+ * @override
30248
+ */
30249
+ async Load(ID, EntityRelationshipsToLoad) {
30250
+ const compositeKey = new core_1.CompositeKey();
30251
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
30252
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
30253
+ }
30254
+ /**
30255
+ * Validate() method override for MJ: AI Model Costs entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
30256
+ * * Currency: This rule ensures that the currency code consists of exactly three uppercase letters. For example, 'USD', 'EUR', or 'JPY' are valid, but anything with lowercase letters or a different length is not allowed.
30257
+ * * InputPricePerUnit: This rule ensures that the input price per unit cannot be negative. It must be zero or greater.
30258
+ * * OutputPricePerUnit: This rule ensures that the output price per unit cannot be negative. It must be zero or greater.
30259
+ * * Table-Level: This rule ensures that the end date must be after the start date if both are specified. If either the start date or end date is missing, any value is allowed.
30260
+ * @public
30261
+ * @method
30262
+ * @override
30263
+ */
30264
+ Validate() {
30265
+ const result = super.Validate();
30266
+ this.ValidateCurrencyIsThreeUppercaseLetters(result);
30267
+ this.ValidateInputPricePerUnitNonNegative(result);
30268
+ this.ValidateOutputPricePerUnitNonNegative(result);
30269
+ this.ValidateEndedAtAfterStartedAt(result);
30270
+ return result;
30271
+ }
30272
+ /**
30273
+ * This rule ensures that the currency code consists of exactly three uppercase letters. For example, 'USD', 'EUR', or 'JPY' are valid, but anything with lowercase letters or a different length is not allowed.
30274
+ * @param result - the ValidationResult object to add any errors or warnings to
30275
+ * @public
30276
+ * @method
30277
+ */
30278
+ ValidateCurrencyIsThreeUppercaseLetters(result) {
30279
+ if (typeof this.Currency !== "string" || this.Currency.length !== 3 || this.Currency !== this.Currency.toUpperCase()) {
30280
+ result.Errors.push(new core_1.ValidationErrorInfo("Currency", "Currency code must be exactly three uppercase letters (e.g., 'USD').", this.Currency, core_1.ValidationErrorType.Failure));
30281
+ }
30282
+ }
30283
+ /**
30284
+ * This rule ensures that the input price per unit cannot be negative. It must be zero or greater.
30285
+ * @param result - the ValidationResult object to add any errors or warnings to
30286
+ * @public
30287
+ * @method
30288
+ */
30289
+ ValidateInputPricePerUnitNonNegative(result) {
30290
+ if (this.InputPricePerUnit < 0) {
30291
+ result.Errors.push(new core_1.ValidationErrorInfo("InputPricePerUnit", "Input price per unit cannot be negative.", this.InputPricePerUnit, core_1.ValidationErrorType.Failure));
30292
+ }
30293
+ }
30294
+ /**
30295
+ * This rule ensures that the output price per unit cannot be negative. It must be zero or greater.
30296
+ * @param result - the ValidationResult object to add any errors or warnings to
30297
+ * @public
30298
+ * @method
30299
+ */
30300
+ ValidateOutputPricePerUnitNonNegative(result) {
30301
+ if (this.OutputPricePerUnit < 0) {
30302
+ result.Errors.push(new core_1.ValidationErrorInfo("OutputPricePerUnit", "Output price per unit must be zero or a positive value.", this.OutputPricePerUnit, core_1.ValidationErrorType.Failure));
30303
+ }
30304
+ }
30305
+ /**
30306
+ * This rule ensures that the end date must be after the start date if both are specified. If either the start date or end date is missing, any value is allowed.
30307
+ * @param result - the ValidationResult object to add any errors or warnings to
30308
+ * @public
30309
+ * @method
30310
+ */
30311
+ ValidateEndedAtAfterStartedAt(result) {
30312
+ if (this.EndedAt !== null && this.StartedAt !== null) {
30313
+ if (this.EndedAt <= this.StartedAt) {
30314
+ result.Errors.push(new core_1.ValidationErrorInfo("EndedAt", "The end date must be after the start date when both are specified.", this.EndedAt, core_1.ValidationErrorType.Failure));
30315
+ }
30316
+ }
30317
+ }
30318
+ /**
30319
+ * * Field Name: ID
30320
+ * * Display Name: ID
30321
+ * * SQL Data Type: uniqueidentifier
30322
+ * * Default Value: newsequentialid()
30323
+ */
30324
+ get ID() {
30325
+ return this.Get('ID');
30326
+ }
30327
+ set ID(value) {
30328
+ this.Set('ID', value);
30329
+ }
30330
+ /**
30331
+ * * Field Name: ModelID
30332
+ * * Display Name: Model ID
30333
+ * * SQL Data Type: uniqueidentifier
30334
+ * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
30335
+ */
30336
+ get ModelID() {
30337
+ return this.Get('ModelID');
30338
+ }
30339
+ set ModelID(value) {
30340
+ this.Set('ModelID', value);
30341
+ }
30342
+ /**
30343
+ * * Field Name: VendorID
30344
+ * * Display Name: Vendor ID
30345
+ * * SQL Data Type: uniqueidentifier
30346
+ * * Related Entity/Foreign Key: MJ: AI Vendors (vwAIVendors.ID)
30347
+ */
30348
+ get VendorID() {
30349
+ return this.Get('VendorID');
30350
+ }
30351
+ set VendorID(value) {
30352
+ this.Set('VendorID', value);
30353
+ }
30354
+ /**
30355
+ * * Field Name: StartedAt
30356
+ * * Display Name: Started At
30357
+ * * SQL Data Type: datetimeoffset
30358
+ * * Default Value: sysdatetimeoffset()
30359
+ * * Description: Date and time with timezone when this pricing became effective. NULL disables temporal tracking. Defaults to current UTC time when record is created
30360
+ */
30361
+ get StartedAt() {
30362
+ return this.Get('StartedAt');
30363
+ }
30364
+ set StartedAt(value) {
30365
+ this.Set('StartedAt', value);
30366
+ }
30367
+ /**
30368
+ * * Field Name: EndedAt
30369
+ * * Display Name: Ended At
30370
+ * * SQL Data Type: datetimeoffset
30371
+ * * Description: Date and time with timezone when this pricing expired or will expire. NULL indicates currently active pricing
30372
+ */
30373
+ get EndedAt() {
30374
+ return this.Get('EndedAt');
30375
+ }
30376
+ set EndedAt(value) {
30377
+ this.Set('EndedAt', value);
30378
+ }
30379
+ /**
30380
+ * * Field Name: Status
30381
+ * * Display Name: Status
30382
+ * * SQL Data Type: nvarchar(20)
30383
+ * * Value List Type: List
30384
+ * * Possible Values
30385
+ * * Active
30386
+ * * Pending
30387
+ * * Expired
30388
+ * * Invalid
30389
+ * * Description: Current status of this pricing record. Active=currently in use, Pending=scheduled for future, Expired=no longer valid, Invalid=data error
30390
+ */
30391
+ get Status() {
30392
+ return this.Get('Status');
30393
+ }
30394
+ set Status(value) {
30395
+ this.Set('Status', value);
30396
+ }
30397
+ /**
30398
+ * * Field Name: Currency
30399
+ * * Display Name: Currency
30400
+ * * SQL Data Type: nchar(3)
30401
+ * * Description: ISO 4217 three-letter currency code (e.g., USD, EUR, GBP) in uppercase
30402
+ */
30403
+ get Currency() {
30404
+ return this.Get('Currency');
30405
+ }
30406
+ set Currency(value) {
30407
+ this.Set('Currency', value);
30408
+ }
30409
+ /**
30410
+ * * Field Name: PriceTypeID
30411
+ * * Display Name: Price Type ID
30412
+ * * SQL Data Type: uniqueidentifier
30413
+ * * Related Entity/Foreign Key: MJ: AI Model Price Types (vwAIModelPriceTypes.ID)
30414
+ */
30415
+ get PriceTypeID() {
30416
+ return this.Get('PriceTypeID');
30417
+ }
30418
+ set PriceTypeID(value) {
30419
+ this.Set('PriceTypeID', value);
30420
+ }
30421
+ /**
30422
+ * * Field Name: InputPricePerUnit
30423
+ * * Display Name: Input Price Per Unit
30424
+ * * SQL Data Type: decimal(18, 8)
30425
+ * * Description: Price per unit for input tokens/requests. Must be non-negative. Precision allows for micro-pricing scenarios
30426
+ */
30427
+ get InputPricePerUnit() {
30428
+ return this.Get('InputPricePerUnit');
30429
+ }
30430
+ set InputPricePerUnit(value) {
30431
+ this.Set('InputPricePerUnit', value);
30432
+ }
30433
+ /**
30434
+ * * Field Name: OutputPricePerUnit
30435
+ * * Display Name: Output Price Per Unit
30436
+ * * SQL Data Type: decimal(18, 8)
30437
+ * * Description: Price per unit for output tokens/responses. Must be non-negative. Often higher than input pricing
30438
+ */
30439
+ get OutputPricePerUnit() {
30440
+ return this.Get('OutputPricePerUnit');
30441
+ }
30442
+ set OutputPricePerUnit(value) {
30443
+ this.Set('OutputPricePerUnit', value);
30444
+ }
30445
+ /**
30446
+ * * Field Name: UnitTypeID
30447
+ * * Display Name: Unit Type ID
30448
+ * * SQL Data Type: uniqueidentifier
30449
+ * * Related Entity/Foreign Key: MJ: AI Model Price Unit Types (vwAIModelPriceUnitTypes.ID)
30450
+ */
30451
+ get UnitTypeID() {
30452
+ return this.Get('UnitTypeID');
30453
+ }
30454
+ set UnitTypeID(value) {
30455
+ this.Set('UnitTypeID', value);
30456
+ }
30457
+ /**
30458
+ * * Field Name: ProcessingType
30459
+ * * Display Name: Processing Type
30460
+ * * SQL Data Type: nvarchar(20)
30461
+ * * Value List Type: List
30462
+ * * Possible Values
30463
+ * * Realtime
30464
+ * * Batch
30465
+ * * Description: Processing method that affects pricing. Realtime=immediate response, Batch=delayed processing often with discounts
30466
+ */
30467
+ get ProcessingType() {
30468
+ return this.Get('ProcessingType');
30469
+ }
30470
+ set ProcessingType(value) {
30471
+ this.Set('ProcessingType', value);
30472
+ }
30473
+ /**
30474
+ * * Field Name: Comments
30475
+ * * Display Name: Comments
30476
+ * * SQL Data Type: nvarchar(MAX)
30477
+ * * Description: Optional notes about pricing context, source, special conditions, or vendor-specific details
30478
+ */
30479
+ get Comments() {
30480
+ return this.Get('Comments');
30481
+ }
30482
+ set Comments(value) {
30483
+ this.Set('Comments', value);
30484
+ }
30485
+ /**
30486
+ * * Field Name: __mj_CreatedAt
30487
+ * * Display Name: Created At
30488
+ * * SQL Data Type: datetimeoffset
30489
+ * * Default Value: getutcdate()
30490
+ */
30491
+ get __mj_CreatedAt() {
30492
+ return this.Get('__mj_CreatedAt');
30493
+ }
30494
+ /**
30495
+ * * Field Name: __mj_UpdatedAt
30496
+ * * Display Name: Updated At
30497
+ * * SQL Data Type: datetimeoffset
30498
+ * * Default Value: getutcdate()
30499
+ */
30500
+ get __mj_UpdatedAt() {
30501
+ return this.Get('__mj_UpdatedAt');
30502
+ }
30503
+ /**
30504
+ * * Field Name: Model
30505
+ * * Display Name: Model
30506
+ * * SQL Data Type: nvarchar(50)
30507
+ */
30508
+ get Model() {
30509
+ return this.Get('Model');
30510
+ }
30511
+ /**
30512
+ * * Field Name: Vendor
30513
+ * * Display Name: Vendor
30514
+ * * SQL Data Type: nvarchar(50)
30515
+ */
30516
+ get Vendor() {
30517
+ return this.Get('Vendor');
30518
+ }
30519
+ /**
30520
+ * * Field Name: PriceType
30521
+ * * Display Name: Price Type
30522
+ * * SQL Data Type: nvarchar(100)
30523
+ */
30524
+ get PriceType() {
30525
+ return this.Get('PriceType');
30526
+ }
30527
+ /**
30528
+ * * Field Name: UnitType
30529
+ * * Display Name: Unit Type
30530
+ * * SQL Data Type: nvarchar(100)
30531
+ */
30532
+ get UnitType() {
30533
+ return this.Get('UnitType');
30534
+ }
30535
+ };
30536
+ exports.AIModelCostEntity = AIModelCostEntity;
30537
+ exports.AIModelCostEntity = AIModelCostEntity = __decorate([
30538
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Model Costs')
30539
+ ], AIModelCostEntity);
30540
+ /**
30541
+ * MJ: AI Model Price Types - strongly typed entity sub-class
30542
+ * * Schema: __mj
30543
+ * * Base Table: AIModelPriceType
30544
+ * * Base View: vwAIModelPriceTypes
30545
+ * * Primary Key: ID
30546
+ * @extends {BaseEntity}
30547
+ * @class
30548
+ * @public
30549
+ */
30550
+ let AIModelPriceTypeEntity = class AIModelPriceTypeEntity extends core_1.BaseEntity {
30551
+ /**
30552
+ * Loads the MJ: AI Model Price Types record from the database
30553
+ * @param ID: string - primary key value to load the MJ: AI Model Price Types record.
30554
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
30555
+ * @returns {Promise<boolean>} - true if successful, false otherwise
30556
+ * @public
30557
+ * @async
30558
+ * @memberof AIModelPriceTypeEntity
30559
+ * @method
30560
+ * @override
30561
+ */
30562
+ async Load(ID, EntityRelationshipsToLoad) {
30563
+ const compositeKey = new core_1.CompositeKey();
30564
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
30565
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
30566
+ }
30567
+ /**
30568
+ * Validate() method override for MJ: AI Model Price Types entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
30569
+ * * Name: This rule ensures that the Name field cannot be empty or consist only of spaces; it must contain at least one non-space character.
30570
+ * @public
30571
+ * @method
30572
+ * @override
30573
+ */
30574
+ Validate() {
30575
+ const result = super.Validate();
30576
+ this.ValidateNameNotEmptyOrWhitespace(result);
30577
+ return result;
30578
+ }
30579
+ /**
30580
+ * This rule ensures that the Name field cannot be empty or consist only of spaces; it must contain at least one non-space character.
30581
+ * @param result - the ValidationResult object to add any errors or warnings to
30582
+ * @public
30583
+ * @method
30584
+ */
30585
+ ValidateNameNotEmptyOrWhitespace(result) {
30586
+ if (!this.Name || this.Name.trim().length === 0) {
30587
+ result.Errors.push(new core_1.ValidationErrorInfo("Name", "The Name field cannot be empty or just spaces.", this.Name, core_1.ValidationErrorType.Failure));
30588
+ }
30589
+ }
30590
+ /**
30591
+ * * Field Name: ID
30592
+ * * Display Name: ID
30593
+ * * SQL Data Type: uniqueidentifier
30594
+ * * Default Value: newsequentialid()
30595
+ */
30596
+ get ID() {
30597
+ return this.Get('ID');
30598
+ }
30599
+ set ID(value) {
30600
+ this.Set('ID', value);
30601
+ }
30602
+ /**
30603
+ * * Field Name: Name
30604
+ * * Display Name: Name
30605
+ * * SQL Data Type: nvarchar(100)
30606
+ * * Description: Short, descriptive name for the price type (e.g., "Tokens", "Minutes", "Characters")
30607
+ */
30608
+ get Name() {
30609
+ return this.Get('Name');
30610
+ }
30611
+ set Name(value) {
30612
+ this.Set('Name', value);
30613
+ }
30614
+ /**
30615
+ * * Field Name: Description
30616
+ * * Display Name: Description
30617
+ * * SQL Data Type: nvarchar(MAX)
30618
+ * * Description: Detailed description of what this price type represents and how it is measured
30619
+ */
30620
+ get Description() {
30621
+ return this.Get('Description');
30622
+ }
30623
+ set Description(value) {
30624
+ this.Set('Description', value);
30625
+ }
30626
+ /**
30627
+ * * Field Name: __mj_CreatedAt
30628
+ * * Display Name: Created At
30629
+ * * SQL Data Type: datetimeoffset
30630
+ * * Default Value: getutcdate()
30631
+ */
30632
+ get __mj_CreatedAt() {
30633
+ return this.Get('__mj_CreatedAt');
30634
+ }
30635
+ /**
30636
+ * * Field Name: __mj_UpdatedAt
30637
+ * * Display Name: Updated At
30638
+ * * SQL Data Type: datetimeoffset
30639
+ * * Default Value: getutcdate()
30640
+ */
30641
+ get __mj_UpdatedAt() {
30642
+ return this.Get('__mj_UpdatedAt');
30643
+ }
30644
+ };
30645
+ exports.AIModelPriceTypeEntity = AIModelPriceTypeEntity;
30646
+ exports.AIModelPriceTypeEntity = AIModelPriceTypeEntity = __decorate([
30647
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Model Price Types')
30648
+ ], AIModelPriceTypeEntity);
30649
+ /**
30650
+ * MJ: AI Model Price Unit Types - strongly typed entity sub-class
30651
+ * * Schema: __mj
30652
+ * * Base Table: AIModelPriceUnitType
30653
+ * * Base View: vwAIModelPriceUnitTypes
30654
+ * * Primary Key: ID
30655
+ * @extends {BaseEntity}
30656
+ * @class
30657
+ * @public
30658
+ */
30659
+ let AIModelPriceUnitTypeEntity = class AIModelPriceUnitTypeEntity extends core_1.BaseEntity {
30660
+ /**
30661
+ * Loads the MJ: AI Model Price Unit Types record from the database
30662
+ * @param ID: string - primary key value to load the MJ: AI Model Price Unit Types record.
30663
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
30664
+ * @returns {Promise<boolean>} - true if successful, false otherwise
30665
+ * @public
30666
+ * @async
30667
+ * @memberof AIModelPriceUnitTypeEntity
30668
+ * @method
30669
+ * @override
30670
+ */
30671
+ async Load(ID, EntityRelationshipsToLoad) {
30672
+ const compositeKey = new core_1.CompositeKey();
30673
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
30674
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
30675
+ }
30676
+ /**
30677
+ * Validate() method override for MJ: AI Model Price Unit Types entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
30678
+ * * Name: This rule ensures that the Name field cannot be empty or contain only spaces; it must have at least one non-space character.
30679
+ * * DriverClass: This rule ensures that the DriverClass field cannot be empty or consist only of spaces. The value must contain at least one character when leading and trailing spaces are ignored.
30680
+ * @public
30681
+ * @method
30682
+ * @override
30683
+ */
30684
+ Validate() {
30685
+ const result = super.Validate();
30686
+ this.ValidateNameNotEmptyOrWhitespace(result);
30687
+ this.ValidateDriverClassNotEmpty(result);
30688
+ return result;
30689
+ }
30690
+ /**
30691
+ * This rule ensures that the Name field cannot be empty or contain only spaces; it must have at least one non-space character.
30692
+ * @param result - the ValidationResult object to add any errors or warnings to
30693
+ * @public
30694
+ * @method
30695
+ */
30696
+ ValidateNameNotEmptyOrWhitespace(result) {
30697
+ if (!this.Name || this.Name.trim().length === 0) {
30698
+ result.Errors.push(new core_1.ValidationErrorInfo("Name", "The Name field must not be empty or contain only spaces.", this.Name, core_1.ValidationErrorType.Failure));
30699
+ }
30700
+ }
30701
+ /**
30702
+ * This rule ensures that the DriverClass field cannot be empty or consist only of spaces. The value must contain at least one character when leading and trailing spaces are ignored.
30703
+ * @param result - the ValidationResult object to add any errors or warnings to
30704
+ * @public
30705
+ * @method
30706
+ */
30707
+ ValidateDriverClassNotEmpty(result) {
30708
+ if (this.DriverClass === null || this.DriverClass.trim().length === 0) {
30709
+ result.Errors.push(new core_1.ValidationErrorInfo("DriverClass", "DriverClass must not be empty or only spaces.", this.DriverClass, core_1.ValidationErrorType.Failure));
30710
+ }
30711
+ }
30712
+ /**
30713
+ * * Field Name: ID
30714
+ * * Display Name: ID
30715
+ * * SQL Data Type: uniqueidentifier
30716
+ * * Default Value: newsequentialid()
30717
+ */
30718
+ get ID() {
30719
+ return this.Get('ID');
30720
+ }
30721
+ set ID(value) {
30722
+ this.Set('ID', value);
30723
+ }
30724
+ /**
30725
+ * * Field Name: Name
30726
+ * * Display Name: Name
30727
+ * * SQL Data Type: nvarchar(100)
30728
+ * * Description: Display name for the pricing unit (e.g., "Per 1M Tokens", "Per 1K Tokens", "Per Minute")
30729
+ */
30730
+ get Name() {
30731
+ return this.Get('Name');
30732
+ }
30733
+ set Name(value) {
30734
+ this.Set('Name', value);
30735
+ }
30736
+ /**
30737
+ * * Field Name: Description
30738
+ * * Display Name: Description
30739
+ * * SQL Data Type: nvarchar(MAX)
30740
+ * * Description: Detailed explanation of the unit scale and any special considerations for this pricing unit
30741
+ */
30742
+ get Description() {
30743
+ return this.Get('Description');
30744
+ }
30745
+ set Description(value) {
30746
+ this.Set('Description', value);
30747
+ }
30748
+ /**
30749
+ * * Field Name: DriverClass
30750
+ * * Display Name: Driver Class
30751
+ * * SQL Data Type: nvarchar(255)
30752
+ * * Description: Fully qualified class name that handles cost calculations and unit normalization for this pricing unit (e.g., "TokenPer1M", "TokenPer1K")
30753
+ */
30754
+ get DriverClass() {
30755
+ return this.Get('DriverClass');
30756
+ }
30757
+ set DriverClass(value) {
30758
+ this.Set('DriverClass', value);
30759
+ }
30760
+ /**
30761
+ * * Field Name: __mj_CreatedAt
30762
+ * * Display Name: Created At
30763
+ * * SQL Data Type: datetimeoffset
30764
+ * * Default Value: getutcdate()
30765
+ */
30766
+ get __mj_CreatedAt() {
30767
+ return this.Get('__mj_CreatedAt');
30768
+ }
30769
+ /**
30770
+ * * Field Name: __mj_UpdatedAt
30771
+ * * Display Name: Updated At
30772
+ * * SQL Data Type: datetimeoffset
30773
+ * * Default Value: getutcdate()
30774
+ */
30775
+ get __mj_UpdatedAt() {
30776
+ return this.Get('__mj_UpdatedAt');
30777
+ }
30778
+ };
30779
+ exports.AIModelPriceUnitTypeEntity = AIModelPriceUnitTypeEntity;
30780
+ exports.AIModelPriceUnitTypeEntity = AIModelPriceUnitTypeEntity = __decorate([
30781
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Model Price Unit Types')
30782
+ ], AIModelPriceUnitTypeEntity);
29512
30783
  /**
29513
30784
  * MJ: AI Model Vendors - strongly typed entity sub-class
29514
30785
  * * Schema: __mj
@@ -29594,6 +30865,9 @@ let AIModelVendorEntity = class AIModelVendorEntity extends core_1.BaseEntity {
29594
30865
  get ID() {
29595
30866
  return this.Get('ID');
29596
30867
  }
30868
+ set ID(value) {
30869
+ this.Set('ID', value);
30870
+ }
29597
30871
  /**
29598
30872
  * * Field Name: ModelID
29599
30873
  * * Display Name: Model ID
@@ -29838,9 +31112,9 @@ let AIPromptModelEntity = class AIPromptModelEntity extends core_1.BaseEntity {
29838
31112
  }
29839
31113
  /**
29840
31114
  * Validate() method override for MJ: AI Prompt Models entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
29841
- * * ParallelCount: This rule ensures that the number of parallel tasks (ParallelCount) must be at least 1. It cannot be zero or negative.
29842
31115
  * * Priority: This rule ensures that the Priority value must be greater than or equal to zero. Negative priorities are not allowed.
29843
31116
  * * ExecutionGroup: This rule ensures that the ExecutionGroup value must be zero or a positive number. Negative numbers are not allowed.
31117
+ * * ParallelCount: This rule ensures that the number of parallel tasks (ParallelCount) must be at least 1. It cannot be zero or negative.
29844
31118
  * * Table-Level: This rule ensures that if the parallelization mode is 'None' or 'StaticCount', then the parallel config parameter must be empty. If the parallelization mode is 'ConfigParam', then the parallel config parameter must be provided.
29845
31119
  * @public
29846
31120
  * @method
@@ -29848,24 +31122,13 @@ let AIPromptModelEntity = class AIPromptModelEntity extends core_1.BaseEntity {
29848
31122
  */
29849
31123
  Validate() {
29850
31124
  const result = super.Validate();
29851
- this.ValidateParallelCountAtLeastOne(result);
29852
31125
  this.ValidatePriorityIsNonNegative(result);
29853
31126
  this.ValidateExecutionGroupIsNonNegative(result);
31127
+ this.ValidateParallelCountAtLeastOne(result);
29854
31128
  this.ValidateParallelConfigParamBasedOnParallelizationMode(result);
29855
31129
  return result;
29856
31130
  }
29857
31131
  /**
29858
- * This rule ensures that the number of parallel tasks (ParallelCount) must be at least 1. It cannot be zero or negative.
29859
- * @param result - the ValidationResult object to add any errors or warnings to
29860
- * @public
29861
- * @method
29862
- */
29863
- ValidateParallelCountAtLeastOne(result) {
29864
- if (this.ParallelCount < 1) {
29865
- result.Errors.push(new core_1.ValidationErrorInfo("ParallelCount", "ParallelCount must be at least 1.", this.ParallelCount, core_1.ValidationErrorType.Failure));
29866
- }
29867
- }
29868
- /**
29869
31132
  * This rule ensures that the Priority value must be greater than or equal to zero. Negative priorities are not allowed.
29870
31133
  * @param result - the ValidationResult object to add any errors or warnings to
29871
31134
  * @public
@@ -29888,6 +31151,17 @@ let AIPromptModelEntity = class AIPromptModelEntity extends core_1.BaseEntity {
29888
31151
  }
29889
31152
  }
29890
31153
  /**
31154
+ * This rule ensures that the number of parallel tasks (ParallelCount) must be at least 1. It cannot be zero or negative.
31155
+ * @param result - the ValidationResult object to add any errors or warnings to
31156
+ * @public
31157
+ * @method
31158
+ */
31159
+ ValidateParallelCountAtLeastOne(result) {
31160
+ if (this.ParallelCount < 1) {
31161
+ result.Errors.push(new core_1.ValidationErrorInfo("ParallelCount", "ParallelCount must be at least 1.", this.ParallelCount, core_1.ValidationErrorType.Failure));
31162
+ }
31163
+ }
31164
+ /**
29891
31165
  * This rule ensures that if the parallelization mode is 'None' or 'StaticCount', then the parallel config parameter must be empty. If the parallelization mode is 'ConfigParam', then the parallel config parameter must be provided.
29892
31166
  * @param result - the ValidationResult object to add any errors or warnings to
29893
31167
  * @public
@@ -29912,6 +31186,9 @@ let AIPromptModelEntity = class AIPromptModelEntity extends core_1.BaseEntity {
29912
31186
  get ID() {
29913
31187
  return this.Get('ID');
29914
31188
  }
31189
+ set ID(value) {
31190
+ this.Set('ID', value);
31191
+ }
29915
31192
  /**
29916
31193
  * * Field Name: PromptID
29917
31194
  * * Display Name: Prompt ID
@@ -30193,6 +31470,9 @@ let AIPromptRunEntity = class AIPromptRunEntity extends core_1.BaseEntity {
30193
31470
  get ID() {
30194
31471
  return this.Get('ID');
30195
31472
  }
31473
+ set ID(value) {
31474
+ this.Set('ID', value);
31475
+ }
30196
31476
  /**
30197
31477
  * * Field Name: PromptID
30198
31478
  * * Display Name: Prompt ID
@@ -30359,7 +31639,7 @@ let AIPromptRunEntity = class AIPromptRunEntity extends core_1.BaseEntity {
30359
31639
  * * Field Name: TotalCost
30360
31640
  * * Display Name: Total Cost
30361
31641
  * * SQL Data Type: decimal(18, 6)
30362
- * * Description: Estimated cost of this execution in USD.
31642
+ * * Description: Total cost including this execution and all child/grandchild executions. For leaf nodes (no children), this equals Cost. For parent nodes, this includes the sum of all descendant costs. Note: This assumes all costs are in the same currency for accurate rollup. Currency conversions should be handled at the application layer if needed.
30363
31643
  */
30364
31644
  get TotalCost() {
30365
31645
  return this.Get('TotalCost');
@@ -30468,6 +31748,66 @@ let AIPromptRunEntity = class AIPromptRunEntity extends core_1.BaseEntity {
30468
31748
  this.Set('AgentRunID', value);
30469
31749
  }
30470
31750
  /**
31751
+ * * Field Name: Cost
31752
+ * * Display Name: Cost
31753
+ * * SQL Data Type: decimal(19, 8)
31754
+ * * Description: The cost of this specific prompt execution as reported by the AI provider. This does not include costs from child executions. The currency is specified in CostCurrency field.
31755
+ */
31756
+ get Cost() {
31757
+ return this.Get('Cost');
31758
+ }
31759
+ set Cost(value) {
31760
+ this.Set('Cost', value);
31761
+ }
31762
+ /**
31763
+ * * Field Name: CostCurrency
31764
+ * * Display Name: Cost Currency
31765
+ * * SQL Data Type: nvarchar(10)
31766
+ * * Description: ISO 4217 currency code for the Cost field (e.g., USD, EUR, GBP). Different AI providers may use different currencies.
31767
+ */
31768
+ get CostCurrency() {
31769
+ return this.Get('CostCurrency');
31770
+ }
31771
+ set CostCurrency(value) {
31772
+ this.Set('CostCurrency', value);
31773
+ }
31774
+ /**
31775
+ * * Field Name: TokensUsedRollup
31776
+ * * Display Name: Tokens Used Rollup
31777
+ * * SQL Data Type: int
31778
+ * * Description: Total tokens used including this execution and all child/grandchild executions. This provides a complete view of token usage for hierarchical prompt trees. Calculated as TokensPromptRollup + TokensCompletionRollup.
31779
+ */
31780
+ get TokensUsedRollup() {
31781
+ return this.Get('TokensUsedRollup');
31782
+ }
31783
+ set TokensUsedRollup(value) {
31784
+ this.Set('TokensUsedRollup', value);
31785
+ }
31786
+ /**
31787
+ * * Field Name: TokensPromptRollup
31788
+ * * Display Name: Tokens Prompt Rollup
31789
+ * * SQL Data Type: int
31790
+ * * Description: Total prompt/input tokens including this execution and all child/grandchild executions. For leaf nodes (no children), this equals TokensPrompt. For parent nodes, this includes the sum of all descendant prompt tokens.
31791
+ */
31792
+ get TokensPromptRollup() {
31793
+ return this.Get('TokensPromptRollup');
31794
+ }
31795
+ set TokensPromptRollup(value) {
31796
+ this.Set('TokensPromptRollup', value);
31797
+ }
31798
+ /**
31799
+ * * Field Name: TokensCompletionRollup
31800
+ * * Display Name: Tokens Completion Rollup
31801
+ * * SQL Data Type: int
31802
+ * * Description: Total completion/output tokens including this execution and all child/grandchild executions. For leaf nodes (no children), this equals TokensCompletion. For parent nodes, this includes the sum of all descendant completion tokens.
31803
+ */
31804
+ get TokensCompletionRollup() {
31805
+ return this.Get('TokensCompletionRollup');
31806
+ }
31807
+ set TokensCompletionRollup(value) {
31808
+ this.Set('TokensCompletionRollup', value);
31809
+ }
31810
+ /**
30471
31811
  * * Field Name: Prompt
30472
31812
  * * Display Name: Prompt
30473
31813
  * * SQL Data Type: nvarchar(255)
@@ -30547,6 +31887,9 @@ let AIVendorTypeDefinitionEntity = class AIVendorTypeDefinitionEntity extends co
30547
31887
  get ID() {
30548
31888
  return this.Get('ID');
30549
31889
  }
31890
+ set ID(value) {
31891
+ this.Set('ID', value);
31892
+ }
30550
31893
  /**
30551
31894
  * * Field Name: Name
30552
31895
  * * Display Name: Name
@@ -30653,6 +31996,9 @@ let AIVendorTypeEntity = class AIVendorTypeEntity extends core_1.BaseEntity {
30653
31996
  get ID() {
30654
31997
  return this.Get('ID');
30655
31998
  }
31999
+ set ID(value) {
32000
+ this.Set('ID', value);
32001
+ }
30656
32002
  /**
30657
32003
  * * Field Name: VendorID
30658
32004
  * * Display Name: Vendor ID
@@ -30784,6 +32130,9 @@ let AIVendorEntity = class AIVendorEntity extends core_1.BaseEntity {
30784
32130
  get ID() {
30785
32131
  return this.Get('ID');
30786
32132
  }
32133
+ set ID(value) {
32134
+ this.Set('ID', value);
32135
+ }
30787
32136
  /**
30788
32137
  * * Field Name: Name
30789
32138
  * * Display Name: Name
@@ -30866,6 +32215,9 @@ let ArtifactTypeEntity = class ArtifactTypeEntity extends core_1.BaseEntity {
30866
32215
  get ID() {
30867
32216
  return this.Get('ID');
30868
32217
  }
32218
+ set ID(value) {
32219
+ this.Set('ID', value);
32220
+ }
30869
32221
  /**
30870
32222
  * * Field Name: Name
30871
32223
  * * Display Name: Name
@@ -30974,6 +32326,9 @@ let ConversationArtifactPermissionEntity = class ConversationArtifactPermissionE
30974
32326
  get ID() {
30975
32327
  return this.Get('ID');
30976
32328
  }
32329
+ set ID(value) {
32330
+ this.Set('ID', value);
32331
+ }
30977
32332
  /**
30978
32333
  * * Field Name: ConversationArtifactID
30979
32334
  * * Display Name: Conversation Artifact ID
@@ -31106,6 +32461,9 @@ let ConversationArtifactVersionEntity = class ConversationArtifactVersionEntity
31106
32461
  get ID() {
31107
32462
  return this.Get('ID');
31108
32463
  }
32464
+ set ID(value) {
32465
+ this.Set('ID', value);
32466
+ }
31109
32467
  /**
31110
32468
  * * Field Name: ConversationArtifactID
31111
32469
  * * Display Name: Conversation Artifact ID
@@ -31234,6 +32592,9 @@ let ConversationArtifactEntity = class ConversationArtifactEntity extends core_1
31234
32592
  get ID() {
31235
32593
  return this.Get('ID');
31236
32594
  }
32595
+ set ID(value) {
32596
+ this.Set('ID', value);
32597
+ }
31237
32598
  /**
31238
32599
  * * Field Name: Name
31239
32600
  * * Display Name: Name
@@ -31415,6 +32776,9 @@ let DashboardUserPreferenceEntity = class DashboardUserPreferenceEntity extends
31415
32776
  get ID() {
31416
32777
  return this.Get('ID');
31417
32778
  }
32779
+ set ID(value) {
32780
+ this.Set('ID', value);
32781
+ }
31418
32782
  /**
31419
32783
  * * Field Name: UserID
31420
32784
  * * Display Name: User ID
@@ -31565,6 +32929,9 @@ let DashboardUserStateEntity = class DashboardUserStateEntity extends core_1.Bas
31565
32929
  get ID() {
31566
32930
  return this.Get('ID');
31567
32931
  }
32932
+ set ID(value) {
32933
+ this.Set('ID', value);
32934
+ }
31568
32935
  /**
31569
32936
  * * Field Name: DashboardID
31570
32937
  * * Display Name: Dashboard ID
@@ -31678,6 +33045,9 @@ let ReportUserStateEntity = class ReportUserStateEntity extends core_1.BaseEntit
31678
33045
  get ID() {
31679
33046
  return this.Get('ID');
31680
33047
  }
33048
+ set ID(value) {
33049
+ this.Set('ID', value);
33050
+ }
31681
33051
  /**
31682
33052
  * * Field Name: ReportID
31683
33053
  * * Display Name: Report ID
@@ -31812,6 +33182,9 @@ let ReportVersionEntity = class ReportVersionEntity extends core_1.BaseEntity {
31812
33182
  get ID() {
31813
33183
  return this.Get('ID');
31814
33184
  }
33185
+ set ID(value) {
33186
+ this.Set('ID', value);
33187
+ }
31815
33188
  /**
31816
33189
  * * Field Name: ReportID
31817
33190
  * * Display Name: Report ID
@@ -31974,6 +33347,9 @@ let OutputDeliveryTypeEntity = class OutputDeliveryTypeEntity extends core_1.Bas
31974
33347
  get ID() {
31975
33348
  return this.Get('ID');
31976
33349
  }
33350
+ set ID(value) {
33351
+ this.Set('ID', value);
33352
+ }
31977
33353
  /**
31978
33354
  * * Field Name: Name
31979
33355
  * * Display Name: Name
@@ -32077,6 +33453,9 @@ let OutputFormatTypeEntity = class OutputFormatTypeEntity extends core_1.BaseEnt
32077
33453
  get ID() {
32078
33454
  return this.Get('ID');
32079
33455
  }
33456
+ set ID(value) {
33457
+ this.Set('ID', value);
33458
+ }
32080
33459
  /**
32081
33460
  * * Field Name: Name
32082
33461
  * * Display Name: Name
@@ -32191,6 +33570,9 @@ let OutputTriggerTypeEntity = class OutputTriggerTypeEntity extends core_1.BaseE
32191
33570
  get ID() {
32192
33571
  return this.Get('ID');
32193
33572
  }
33573
+ set ID(value) {
33574
+ this.Set('ID', value);
33575
+ }
32194
33576
  /**
32195
33577
  * * Field Name: Name
32196
33578
  * * Display Name: Name
@@ -32273,6 +33655,9 @@ let QueryEntity = class QueryEntity extends core_1.BaseEntity {
32273
33655
  get ID() {
32274
33656
  return this.Get('ID');
32275
33657
  }
33658
+ set ID(value) {
33659
+ this.Set('ID', value);
33660
+ }
32276
33661
  /**
32277
33662
  * * Field Name: Name
32278
33663
  * * Display Name: Name
@@ -32472,6 +33857,9 @@ let QueryCategoryEntity = class QueryCategoryEntity extends core_1.BaseEntity {
32472
33857
  get ID() {
32473
33858
  return this.Get('ID');
32474
33859
  }
33860
+ set ID(value) {
33861
+ this.Set('ID', value);
33862
+ }
32475
33863
  /**
32476
33864
  * * Field Name: Name
32477
33865
  * * Display Name: Name
@@ -32595,6 +33983,9 @@ let QueryEntityEntity = class QueryEntityEntity extends core_1.BaseEntity {
32595
33983
  get ID() {
32596
33984
  return this.Get('ID');
32597
33985
  }
33986
+ set ID(value) {
33987
+ this.Set('ID', value);
33988
+ }
32598
33989
  /**
32599
33990
  * * Field Name: QueryID
32600
33991
  * * Display Name: Query ID
@@ -32696,6 +34087,9 @@ let QueryFieldEntity = class QueryFieldEntity extends core_1.BaseEntity {
32696
34087
  get ID() {
32697
34088
  return this.Get('ID');
32698
34089
  }
34090
+ set ID(value) {
34091
+ this.Set('ID', value);
34092
+ }
32699
34093
  /**
32700
34094
  * * Field Name: QueryID
32701
34095
  * * Display Name: Query ID
@@ -32909,6 +34303,9 @@ let QueryPermissionEntity = class QueryPermissionEntity extends core_1.BaseEntit
32909
34303
  get ID() {
32910
34304
  return this.Get('ID');
32911
34305
  }
34306
+ set ID(value) {
34307
+ this.Set('ID', value);
34308
+ }
32912
34309
  /**
32913
34310
  * * Field Name: QueryID
32914
34311
  * * Display Name: Query ID
@@ -33019,6 +34416,9 @@ let QueueTaskEntity = class QueueTaskEntity extends core_1.BaseEntity {
33019
34416
  get ID() {
33020
34417
  return this.Get('ID');
33021
34418
  }
34419
+ set ID(value) {
34420
+ this.Set('ID', value);
34421
+ }
33022
34422
  /**
33023
34423
  * * Field Name: QueueID
33024
34424
  * * Display Name: Queue ID
@@ -33203,6 +34603,9 @@ let QueueTypeEntity = class QueueTypeEntity extends core_1.BaseEntity {
33203
34603
  get ID() {
33204
34604
  return this.Get('ID');
33205
34605
  }
34606
+ set ID(value) {
34607
+ this.Set('ID', value);
34608
+ }
33206
34609
  /**
33207
34610
  * * Field Name: Name
33208
34611
  * * Display Name: Name
@@ -33330,6 +34733,9 @@ let QueueEntity = class QueueEntity extends core_1.BaseEntity {
33330
34733
  get ID() {
33331
34734
  return this.Get('ID');
33332
34735
  }
34736
+ set ID(value) {
34737
+ this.Set('ID', value);
34738
+ }
33333
34739
  /**
33334
34740
  * * Field Name: Name
33335
34741
  * * Display Name: Name
@@ -33611,6 +35017,9 @@ let RecommendationItemEntity = class RecommendationItemEntity extends core_1.Bas
33611
35017
  get ID() {
33612
35018
  return this.Get('ID');
33613
35019
  }
35020
+ set ID(value) {
35021
+ this.Set('ID', value);
35022
+ }
33614
35023
  /**
33615
35024
  * * Field Name: RecommendationID
33616
35025
  * * Display Name: Recommendation ID
@@ -33727,6 +35136,9 @@ let RecommendationProviderEntity = class RecommendationProviderEntity extends co
33727
35136
  get ID() {
33728
35137
  return this.Get('ID');
33729
35138
  }
35139
+ set ID(value) {
35140
+ this.Set('ID', value);
35141
+ }
33730
35142
  /**
33731
35143
  * * Field Name: Name
33732
35144
  * * Display Name: Name
@@ -33820,6 +35232,9 @@ let RecommendationRunEntity = class RecommendationRunEntity extends core_1.BaseE
33820
35232
  get ID() {
33821
35233
  return this.Get('ID');
33822
35234
  }
35235
+ set ID(value) {
35236
+ this.Set('ID', value);
35237
+ }
33823
35238
  /**
33824
35239
  * * Field Name: RecommendationProviderID
33825
35240
  * * Display Name: Recommendation Provider ID
@@ -33985,6 +35400,9 @@ let RecommendationEntity = class RecommendationEntity extends core_1.BaseEntity
33985
35400
  get ID() {
33986
35401
  return this.Get('ID');
33987
35402
  }
35403
+ set ID(value) {
35404
+ this.Set('ID', value);
35405
+ }
33988
35406
  /**
33989
35407
  * * Field Name: RecommendationRunID
33990
35408
  * * Display Name: Recommendation Run ID
@@ -34100,6 +35518,9 @@ let RecordChangeReplayRunEntity = class RecordChangeReplayRunEntity extends core
34100
35518
  get ID() {
34101
35519
  return this.Get('ID');
34102
35520
  }
35521
+ set ID(value) {
35522
+ this.Set('ID', value);
35523
+ }
34103
35524
  /**
34104
35525
  * * Field Name: StartedAt
34105
35526
  * * Display Name: Started At
@@ -34232,6 +35653,9 @@ let RecordChangeEntity = class RecordChangeEntity extends core_1.BaseEntity {
34232
35653
  get ID() {
34233
35654
  return this.Get('ID');
34234
35655
  }
35656
+ set ID(value) {
35657
+ this.Set('ID', value);
35658
+ }
34235
35659
  /**
34236
35660
  * * Field Name: EntityID
34237
35661
  * * Display Name: Entity ID
@@ -34507,6 +35931,9 @@ let RecordMergeDeletionLogEntity = class RecordMergeDeletionLogEntity extends co
34507
35931
  get ID() {
34508
35932
  return this.Get('ID');
34509
35933
  }
35934
+ set ID(value) {
35935
+ this.Set('ID', value);
35936
+ }
34510
35937
  /**
34511
35938
  * * Field Name: RecordMergeLogID
34512
35939
  * * Display Name: Record Merge Log ID
@@ -34628,6 +36055,9 @@ let RecordMergeLogEntity = class RecordMergeLogEntity extends core_1.BaseEntity
34628
36055
  get ID() {
34629
36056
  return this.Get('ID');
34630
36057
  }
36058
+ set ID(value) {
36059
+ this.Set('ID', value);
36060
+ }
34631
36061
  /**
34632
36062
  * * Field Name: EntityID
34633
36063
  * * Display Name: Entity ID
@@ -34837,6 +36267,9 @@ let ReportCategoryEntity = class ReportCategoryEntity extends core_1.BaseEntity
34837
36267
  get ID() {
34838
36268
  return this.Get('ID');
34839
36269
  }
36270
+ set ID(value) {
36271
+ this.Set('ID', value);
36272
+ }
34840
36273
  /**
34841
36274
  * * Field Name: Name
34842
36275
  * * Display Name: Name
@@ -34958,6 +36391,9 @@ let ReportSnapshotEntity = class ReportSnapshotEntity extends core_1.BaseEntity
34958
36391
  get ID() {
34959
36392
  return this.Get('ID');
34960
36393
  }
36394
+ set ID(value) {
36395
+ this.Set('ID', value);
36396
+ }
34961
36397
  /**
34962
36398
  * * Field Name: ReportID
34963
36399
  * * Display Name: Report ID
@@ -35068,6 +36504,9 @@ let ReportEntity = class ReportEntity extends core_1.BaseEntity {
35068
36504
  get ID() {
35069
36505
  return this.Get('ID');
35070
36506
  }
36507
+ set ID(value) {
36508
+ this.Set('ID', value);
36509
+ }
35071
36510
  /**
35072
36511
  * * Field Name: Name
35073
36512
  * * Display Name: Name
@@ -35385,6 +36824,9 @@ let ResourceLinkEntity = class ResourceLinkEntity extends core_1.BaseEntity {
35385
36824
  get ID() {
35386
36825
  return this.Get('ID');
35387
36826
  }
36827
+ set ID(value) {
36828
+ this.Set('ID', value);
36829
+ }
35388
36830
  /**
35389
36831
  * * Field Name: UserID
35390
36832
  * * Display Name: User ID
@@ -35537,6 +36979,9 @@ let ResourcePermissionEntity = class ResourcePermissionEntity extends core_1.Bas
35537
36979
  get ID() {
35538
36980
  return this.Get('ID');
35539
36981
  }
36982
+ set ID(value) {
36983
+ this.Set('ID', value);
36984
+ }
35540
36985
  /**
35541
36986
  * * Field Name: ResourceTypeID
35542
36987
  * * Display Name: Resource Type ID
@@ -35767,6 +37212,9 @@ let ResourceTypeEntity = class ResourceTypeEntity extends core_1.BaseEntity {
35767
37212
  get ID() {
35768
37213
  return this.Get('ID');
35769
37214
  }
37215
+ set ID(value) {
37216
+ this.Set('ID', value);
37217
+ }
35770
37218
  /**
35771
37219
  * * Field Name: Name
35772
37220
  * * Display Name: Name
@@ -35911,6 +37359,9 @@ let RoleEntity = class RoleEntity extends core_1.BaseEntity {
35911
37359
  get ID() {
35912
37360
  return this.Get('ID');
35913
37361
  }
37362
+ set ID(value) {
37363
+ this.Set('ID', value);
37364
+ }
35914
37365
  /**
35915
37366
  * * Field Name: Name
35916
37367
  * * SQL Data Type: nvarchar(50)
@@ -36025,6 +37476,9 @@ let RowLevelSecurityFilterEntity = class RowLevelSecurityFilterEntity extends co
36025
37476
  get ID() {
36026
37477
  return this.Get('ID');
36027
37478
  }
37479
+ set ID(value) {
37480
+ this.Set('ID', value);
37481
+ }
36028
37482
  /**
36029
37483
  * * Field Name: Name
36030
37484
  * * Display Name: Name
@@ -36117,6 +37571,9 @@ let ScheduledActionParamEntity = class ScheduledActionParamEntity extends core_1
36117
37571
  get ID() {
36118
37572
  return this.Get('ID');
36119
37573
  }
37574
+ set ID(value) {
37575
+ this.Set('ID', value);
37576
+ }
36120
37577
  /**
36121
37578
  * * Field Name: ScheduledActionID
36122
37579
  * * Display Name: Scheduled Action ID
@@ -36254,6 +37711,9 @@ let ScheduledActionEntity = class ScheduledActionEntity extends core_1.BaseEntit
36254
37711
  get ID() {
36255
37712
  return this.Get('ID');
36256
37713
  }
37714
+ set ID(value) {
37715
+ this.Set('ID', value);
37716
+ }
36257
37717
  /**
36258
37718
  * * Field Name: Name
36259
37719
  * * Display Name: Name
@@ -36547,6 +38007,9 @@ let SchemaInfoEntity = class SchemaInfoEntity extends core_1.BaseEntity {
36547
38007
  get ID() {
36548
38008
  return this.Get('ID');
36549
38009
  }
38010
+ set ID(value) {
38011
+ this.Set('ID', value);
38012
+ }
36550
38013
  /**
36551
38014
  * * Field Name: SchemaName
36552
38015
  * * Display Name: Schema Name
@@ -36661,6 +38124,9 @@ let SkillEntity = class SkillEntity extends core_1.BaseEntity {
36661
38124
  get ID() {
36662
38125
  return this.Get('ID');
36663
38126
  }
38127
+ set ID(value) {
38128
+ this.Set('ID', value);
38129
+ }
36664
38130
  /**
36665
38131
  * * Field Name: Name
36666
38132
  * * SQL Data Type: nvarchar(50)
@@ -36762,6 +38228,9 @@ let TaggedItemEntity = class TaggedItemEntity extends core_1.BaseEntity {
36762
38228
  get ID() {
36763
38229
  return this.Get('ID');
36764
38230
  }
38231
+ set ID(value) {
38232
+ this.Set('ID', value);
38233
+ }
36765
38234
  /**
36766
38235
  * * Field Name: TagID
36767
38236
  * * Display Name: Tag ID
@@ -36884,6 +38353,9 @@ let TagEntity = class TagEntity extends core_1.BaseEntity {
36884
38353
  get ID() {
36885
38354
  return this.Get('ID');
36886
38355
  }
38356
+ set ID(value) {
38357
+ this.Set('ID', value);
38358
+ }
36887
38359
  /**
36888
38360
  * * Field Name: Name
36889
38361
  * * Display Name: Name
@@ -36997,6 +38469,9 @@ let TemplateCategoryEntity = class TemplateCategoryEntity extends core_1.BaseEnt
36997
38469
  get ID() {
36998
38470
  return this.Get('ID');
36999
38471
  }
38472
+ set ID(value) {
38473
+ this.Set('ID', value);
38474
+ }
37000
38475
  /**
37001
38476
  * * Field Name: Name
37002
38477
  * * Display Name: Name
@@ -37121,6 +38596,9 @@ let TemplateContentTypeEntity = class TemplateContentTypeEntity extends core_1.B
37121
38596
  get ID() {
37122
38597
  return this.Get('ID');
37123
38598
  }
38599
+ set ID(value) {
38600
+ this.Set('ID', value);
38601
+ }
37124
38602
  /**
37125
38603
  * * Field Name: Name
37126
38604
  * * Display Name: Name
@@ -37228,6 +38706,9 @@ let TemplateContentEntity = class TemplateContentEntity extends core_1.BaseEntit
37228
38706
  get ID() {
37229
38707
  return this.Get('ID');
37230
38708
  }
38709
+ set ID(value) {
38710
+ this.Set('ID', value);
38711
+ }
37231
38712
  /**
37232
38713
  * * Field Name: TemplateID
37233
38714
  * * Display Name: Template ID
@@ -37365,6 +38846,9 @@ let TemplateParamEntity = class TemplateParamEntity extends core_1.BaseEntity {
37365
38846
  get ID() {
37366
38847
  return this.Get('ID');
37367
38848
  }
38849
+ set ID(value) {
38850
+ this.Set('ID', value);
38851
+ }
37368
38852
  /**
37369
38853
  * * Field Name: TemplateID
37370
38854
  * * Display Name: Template ID
@@ -37593,6 +39077,9 @@ let TemplateEntity = class TemplateEntity extends core_1.BaseEntity {
37593
39077
  get ID() {
37594
39078
  return this.Get('ID');
37595
39079
  }
39080
+ set ID(value) {
39081
+ this.Set('ID', value);
39082
+ }
37596
39083
  /**
37597
39084
  * * Field Name: Name
37598
39085
  * * Display Name: Name
@@ -37764,6 +39251,9 @@ let UserApplicationEntityEntity = class UserApplicationEntityEntity extends core
37764
39251
  get ID() {
37765
39252
  return this.Get('ID');
37766
39253
  }
39254
+ set ID(value) {
39255
+ this.Set('ID', value);
39256
+ }
37767
39257
  /**
37768
39258
  * * Field Name: UserApplicationID
37769
39259
  * * Display Name: UserApplication ID
@@ -37881,6 +39371,9 @@ let UserApplicationEntity = class UserApplicationEntity extends core_1.BaseEntit
37881
39371
  get ID() {
37882
39372
  return this.Get('ID');
37883
39373
  }
39374
+ set ID(value) {
39375
+ this.Set('ID', value);
39376
+ }
37884
39377
  /**
37885
39378
  * * Field Name: UserID
37886
39379
  * * Display Name: User ID
@@ -38003,6 +39496,9 @@ let UserFavoriteEntity = class UserFavoriteEntity extends core_1.BaseEntity {
38003
39496
  get ID() {
38004
39497
  return this.Get('ID');
38005
39498
  }
39499
+ set ID(value) {
39500
+ this.Set('ID', value);
39501
+ }
38006
39502
  /**
38007
39503
  * * Field Name: UserID
38008
39504
  * * Display Name: User ID
@@ -38120,6 +39616,9 @@ let UserNotificationEntity = class UserNotificationEntity extends core_1.BaseEnt
38120
39616
  get ID() {
38121
39617
  return this.Get('ID');
38122
39618
  }
39619
+ set ID(value) {
39620
+ this.Set('ID', value);
39621
+ }
38123
39622
  /**
38124
39623
  * * Field Name: UserID
38125
39624
  * * Display Name: User ID
@@ -38296,6 +39795,9 @@ let UserRecordLogEntity = class UserRecordLogEntity extends core_1.BaseEntity {
38296
39795
  get ID() {
38297
39796
  return this.Get('ID');
38298
39797
  }
39798
+ set ID(value) {
39799
+ this.Set('ID', value);
39800
+ }
38299
39801
  /**
38300
39802
  * * Field Name: UserID
38301
39803
  * * Display Name: User ID
@@ -38474,6 +39976,9 @@ let UserRoleEntity = class UserRoleEntity extends core_1.BaseEntity {
38474
39976
  get ID() {
38475
39977
  return this.Get('ID');
38476
39978
  }
39979
+ set ID(value) {
39980
+ this.Set('ID', value);
39981
+ }
38477
39982
  /**
38478
39983
  * * Field Name: UserID
38479
39984
  * * Display Name: User ID
@@ -38573,6 +40078,9 @@ let UserViewCategoryEntity = class UserViewCategoryEntity extends core_1.BaseEnt
38573
40078
  get ID() {
38574
40079
  return this.Get('ID');
38575
40080
  }
40081
+ set ID(value) {
40082
+ this.Set('ID', value);
40083
+ }
38576
40084
  /**
38577
40085
  * * Field Name: Name
38578
40086
  * * Display Name: Name
@@ -38725,6 +40233,9 @@ let UserViewRunDetailEntity = class UserViewRunDetailEntity extends core_1.BaseE
38725
40233
  get ID() {
38726
40234
  return this.Get('ID');
38727
40235
  }
40236
+ set ID(value) {
40237
+ this.Set('ID', value);
40238
+ }
38728
40239
  /**
38729
40240
  * * Field Name: UserViewRunID
38730
40241
  * * Display Name: User View Run ID
@@ -38834,6 +40345,9 @@ let UserViewRunEntity = class UserViewRunEntity extends core_1.BaseEntity {
38834
40345
  get ID() {
38835
40346
  return this.Get('ID');
38836
40347
  }
40348
+ set ID(value) {
40349
+ this.Set('ID', value);
40350
+ }
38837
40351
  /**
38838
40352
  * * Field Name: UserViewID
38839
40353
  * * Display Name: User View ID
@@ -38944,6 +40458,9 @@ let UserViewEntity = class UserViewEntity extends core_1.BaseEntity {
38944
40458
  get ID() {
38945
40459
  return this.Get('ID');
38946
40460
  }
40461
+ set ID(value) {
40462
+ this.Set('ID', value);
40463
+ }
38947
40464
  /**
38948
40465
  * * Field Name: UserID
38949
40466
  * * Display Name: User ID
@@ -39256,6 +40773,9 @@ let UserEntity = class UserEntity extends core_1.BaseEntity {
39256
40773
  get ID() {
39257
40774
  return this.Get('ID');
39258
40775
  }
40776
+ set ID(value) {
40777
+ this.Set('ID', value);
40778
+ }
39259
40779
  /**
39260
40780
  * * Field Name: Name
39261
40781
  * * SQL Data Type: nvarchar(100)
@@ -39489,6 +41009,9 @@ let VectorDatabaseEntity = class VectorDatabaseEntity extends core_1.BaseEntity
39489
41009
  get ID() {
39490
41010
  return this.Get('ID');
39491
41011
  }
41012
+ set ID(value) {
41013
+ this.Set('ID', value);
41014
+ }
39492
41015
  /**
39493
41016
  * * Field Name: Name
39494
41017
  * * Display Name: Name
@@ -39592,6 +41115,9 @@ let VectorIndexEntity = class VectorIndexEntity extends core_1.BaseEntity {
39592
41115
  get ID() {
39593
41116
  return this.Get('ID');
39594
41117
  }
41118
+ set ID(value) {
41119
+ this.Set('ID', value);
41120
+ }
39595
41121
  /**
39596
41122
  * * Field Name: Name
39597
41123
  * * Display Name: Name
@@ -39724,6 +41250,9 @@ let VersionInstallationEntity = class VersionInstallationEntity extends core_1.B
39724
41250
  get ID() {
39725
41251
  return this.Get('ID');
39726
41252
  }
41253
+ set ID(value) {
41254
+ this.Set('ID', value);
41255
+ }
39727
41256
  /**
39728
41257
  * * Field Name: MajorVersion
39729
41258
  * * Display Name: Major Version
@@ -39894,6 +41423,9 @@ let WorkflowEngineEntity = class WorkflowEngineEntity extends core_1.BaseEntity
39894
41423
  get ID() {
39895
41424
  return this.Get('ID');
39896
41425
  }
41426
+ set ID(value) {
41427
+ this.Set('ID', value);
41428
+ }
39897
41429
  /**
39898
41430
  * * Field Name: Name
39899
41431
  * * SQL Data Type: nvarchar(100)
@@ -40005,6 +41537,9 @@ let WorkflowRunEntity = class WorkflowRunEntity extends core_1.BaseEntity {
40005
41537
  get ID() {
40006
41538
  return this.Get('ID');
40007
41539
  }
41540
+ set ID(value) {
41541
+ this.Set('ID', value);
41542
+ }
40008
41543
  /**
40009
41544
  * * Field Name: WorkflowID
40010
41545
  * * Display Name: Workflow ID
@@ -40162,6 +41697,9 @@ let WorkflowEntity = class WorkflowEntity extends core_1.BaseEntity {
40162
41697
  get ID() {
40163
41698
  return this.Get('ID');
40164
41699
  }
41700
+ set ID(value) {
41701
+ this.Set('ID', value);
41702
+ }
40165
41703
  /**
40166
41704
  * * Field Name: Name
40167
41705
  * * SQL Data Type: nvarchar(100)
@@ -40330,6 +41868,9 @@ let WorkspaceItemEntity = class WorkspaceItemEntity extends core_1.BaseEntity {
40330
41868
  get ID() {
40331
41869
  return this.Get('ID');
40332
41870
  }
41871
+ set ID(value) {
41872
+ this.Set('ID', value);
41873
+ }
40333
41874
  /**
40334
41875
  * * Field Name: Name
40335
41876
  * * Display Name: Name
@@ -40485,6 +42026,9 @@ let WorkspaceEntity = class WorkspaceEntity extends core_1.BaseEntity {
40485
42026
  get ID() {
40486
42027
  return this.Get('ID');
40487
42028
  }
42029
+ set ID(value) {
42030
+ this.Set('ID', value);
42031
+ }
40488
42032
  /**
40489
42033
  * * Field Name: Name
40490
42034
  * * Display Name: Name