@memberjunction/core-entities 2.110.1 → 2.111.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,13 +8,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.ContentSourceParamSchema = exports.ContentProcessRunSchema = exports.ContentItemSchema = exports.ContentItemTagSchema = exports.ContentItemAttributeSchema = exports.ContentFileTypeSchema = exports.CompanyIntegrationSchema = exports.CompanyIntegrationRunSchema = exports.CompanyIntegrationRunDetailSchema = exports.CompanyIntegrationRunAPILogSchema = exports.CompanyIntegrationRecordMapSchema = exports.CompanySchema = exports.CommunicationRunSchema = exports.CommunicationProviderSchema = exports.CommunicationProviderMessageTypeSchema = exports.CommunicationLogSchema = exports.CommunicationBaseMessageTypeSchema = exports.AuthorizationSchema = exports.AuthorizationRoleSchema = exports.AuditLogSchema = exports.AuditLogTypeSchema = exports.ApplicationSchema = exports.ApplicationSettingSchema = exports.ApplicationEntitySchema = exports.AIResultCacheSchema = exports.AIPromptSchema = exports.AIPromptTypeSchema = exports.AIPromptCategorySchema = exports.AIModelSchema = exports.AIModelTypeSchema = exports.AIModelActionSchema = exports.AIAgentSchema = exports.AIAgentRequestSchema = exports.AIAgentNoteSchema = exports.AIAgentNoteTypeSchema = exports.AIAgentModelSchema = exports.AIAgentLearningCycleSchema = exports.AIAgentActionSchema = exports.AIActionSchema = exports.ActionSchema = exports.ActionResultCodeSchema = exports.ActionParamSchema = exports.ActionLibrarySchema = exports.ActionFilterSchema = exports.ActionExecutionLogSchema = exports.ActionContextSchema = exports.ActionContextTypeSchema = exports.ActionCategorySchema = exports.ActionAuthorizationSchema = exports.loadModule = void 0;
|
|
10
10
|
exports.IntegrationSchema = exports.IntegrationURLFormatSchema = exports.GeneratedCodeSchema = exports.GeneratedCodeCategorySchema = exports.FileSchema = exports.FileStorageProviderSchema = exports.FileEntityRecordLinkSchema = exports.FileCategorySchema = exports.ExplorerNavigationItemSchema = exports.ErrorLogSchema = exports.EntitySettingSchema = exports.EntityRelationshipSchema = exports.EntityRelationshipDisplayComponentSchema = exports.EntityRecordDocumentSchema = exports.EntityPermissionSchema = exports.EntityFieldSchema = exports.EntityFieldValueSchema = exports.EntityDocumentSchema = exports.EntityDocumentTypeSchema = exports.EntityDocumentSettingSchema = exports.EntityDocumentRunSchema = exports.EntityCommunicationMessageTypeSchema = exports.EntityCommunicationFieldSchema = exports.EntityAIActionSchema = exports.EntityActionSchema = exports.EntityActionParamSchema = exports.EntityActionInvocationSchema = exports.EntityActionInvocationTypeSchema = exports.EntityActionFilterSchema = exports.EntitySchema = exports.EmployeeSchema = exports.EmployeeSkillSchema = exports.EmployeeRoleSchema = exports.EmployeeCompanyIntegrationSchema = exports.DuplicateRunSchema = exports.DuplicateRunDetailSchema = exports.DuplicateRunDetailMatchSchema = exports.DatasetSchema = exports.DatasetItemSchema = exports.DataContextSchema = exports.DataContextItemSchema = exports.DashboardSchema = exports.DashboardCategorySchema = exports.ConversationSchema = exports.ConversationDetailSchema = exports.ContentTypeSchema = exports.ContentTypeAttributeSchema = exports.ContentSourceSchema = exports.ContentSourceTypeSchema = exports.ContentSourceTypeParamSchema = void 0;
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.WorkspaceEntity = exports.WorkspaceItemEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.WorkflowEngineEntity = exports.VersionInstallationEntity = exports.VectorIndexEntity = exports.VectorDatabaseEntity = exports.UserEntity = exports.UserViewEntity = exports.UserViewRunEntity = exports.UserViewRunDetailEntity = exports.UserViewCategoryEntity = exports.UserRoleEntity = exports.UserRecordLogEntity = exports.UserNotificationEntity = exports.UserFavoriteEntity = exports.UserApplicationEntity = exports.UserApplicationEntityEntity = exports.TemplateEntity = exports.TemplateParamEntity = exports.TemplateContentEntity = exports.TemplateContentTypeEntity = exports.TemplateCategoryEntity = exports.TagEntity = exports.TaggedItemEntity = exports.SkillEntity = exports.SchemaInfoEntity = exports.ScheduledActionEntity = exports.ScheduledActionParamEntity = exports.RowLevelSecurityFilterEntity = void 0;
|
|
11
|
+
exports.PublicLinkSchema = exports.ProjectSchema = exports.EnvironmentSchema = exports.DashboardUserStateSchema = exports.DashboardUserPreferenceSchema = exports.ConversationDetailArtifactSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = exports.ConversationArtifactPermissionSchema = exports.ComponentSchema = exports.ComponentRegistrySchema = exports.ComponentLibraryLinkSchema = exports.ComponentLibrarySchema = exports.ComponentDependencySchema = exports.CollectionSchema = exports.CollectionPermissionSchema = exports.CollectionArtifactSchema = exports.ArtifactSchema = exports.ArtifactVersionSchema = exports.ArtifactVersionAttributeSchema = exports.ArtifactTypeSchema = exports.ArtifactPermissionSchema = exports.AIVendorSchema = exports.AIVendorTypeSchema = exports.AIVendorTypeDefinitionSchema = exports.AIPromptRunSchema = exports.AIPromptModelSchema = exports.AIModelVendorSchema = exports.AIModelPriceUnitTypeSchema = exports.AIModelPriceTypeSchema = exports.AIModelCostSchema = exports.AIConfigurationSchema = exports.AIConfigurationParamSchema = exports.AIAgentTypeSchema = exports.AIAgentStepSchema = exports.AIAgentStepPathSchema = exports.AIAgentRunSchema = exports.AIAgentRunStepSchema = exports.AIAgentRelationshipSchema = exports.AIAgentPromptSchema = exports.AIAgentPermissionSchema = exports.AIAgentExampleSchema = exports.AIAgentDataSourceSchema = exports.AIAgentArtifactTypeSchema = exports.AccessControlRuleSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
|
|
12
|
+
exports.UserApplicationSchema = exports.UserApplicationEntitySchema = exports.TemplateSchema = exports.TemplateParamSchema = exports.TemplateContentSchema = exports.TemplateContentTypeSchema = exports.TemplateCategorySchema = exports.TagSchema = exports.TaggedItemSchema = exports.SkillSchema = exports.SchemaInfoSchema = exports.ScheduledActionSchema = exports.ScheduledActionParamSchema = exports.RowLevelSecurityFilterSchema = exports.RoleSchema = exports.ResourceTypeSchema = exports.ResourcePermissionSchema = exports.ResourceLinkSchema = exports.ReportSchema = exports.ReportSnapshotSchema = exports.ReportCategorySchema = exports.RecordMergeLogSchema = exports.RecordMergeDeletionLogSchema = exports.RecordChangeSchema = exports.RecordChangeReplayRunSchema = exports.RecommendationSchema = exports.RecommendationRunSchema = exports.RecommendationProviderSchema = exports.RecommendationItemSchema = exports.QueueSchema = exports.QueueTypeSchema = exports.QueueTaskSchema = exports.QueryPermissionSchema = exports.QueryFieldSchema = exports.QueryEntitySchema = exports.QueryCategorySchema = exports.QuerySchema = exports.OutputTriggerTypeSchema = exports.OutputFormatTypeSchema = exports.OutputDeliveryTypeSchema = exports.TaskSchema = exports.TaskTypeSchema = exports.TaskDependencySchema = exports.ScheduledJobSchema = exports.ScheduledJobTypeSchema = exports.ScheduledJobRunSchema = exports.ReportVersionSchema = exports.ReportUserStateSchema = exports.RecordLinkSchema = exports.QueryParameterSchema = void 0;
|
|
13
|
+
exports.CommunicationBaseMessageTypeEntity = exports.AuthorizationEntity = exports.AuthorizationRoleEntity = exports.AuditLogEntity = exports.AuditLogTypeEntity = exports.ApplicationEntity = exports.ApplicationSettingEntity = exports.ApplicationEntityEntity = exports.AIResultCacheEntity = exports.AIPromptEntity = exports.AIPromptTypeEntity = exports.AIPromptCategoryEntity = exports.AIModelEntity = exports.AIModelTypeEntity = exports.AIModelActionEntity = exports.AIAgentEntity = exports.AIAgentRequestEntity = exports.AIAgentNoteEntity = exports.AIAgentNoteTypeEntity = exports.AIAgentModelEntity = exports.AIAgentLearningCycleEntity = exports.AIAgentActionEntity = exports.AIActionEntity = exports.ActionEntity = exports.ActionResultCodeEntity = exports.ActionParamEntity = exports.ActionLibraryEntity = exports.ActionFilterEntity = exports.ActionExecutionLogEntity = exports.ActionContextEntity = exports.ActionContextTypeEntity = exports.ActionCategoryEntity = exports.ActionAuthorizationEntity = exports.WorkspaceSchema = exports.WorkspaceItemSchema = exports.WorkflowSchema = exports.WorkflowRunSchema = exports.WorkflowEngineSchema = exports.VersionInstallationSchema = exports.VectorIndexSchema = exports.VectorDatabaseSchema = exports.UserSchema = exports.UserViewSchema = exports.UserViewRunSchema = exports.UserViewRunDetailSchema = exports.UserViewCategorySchema = exports.UserRoleSchema = exports.UserRecordLogSchema = exports.UserNotificationSchema = exports.UserFavoriteSchema = void 0;
|
|
14
|
+
exports.EntityFieldValueEntity = exports.EntityDocumentEntity = exports.EntityDocumentTypeEntity = exports.EntityDocumentSettingEntity = exports.EntityDocumentRunEntity = exports.EntityCommunicationMessageTypeEntity = exports.EntityCommunicationFieldEntity = exports.EntityAIActionEntity = exports.EntityActionEntity = exports.EntityActionParamEntity = exports.EntityActionInvocationEntity = exports.EntityActionInvocationTypeEntity = exports.EntityActionFilterEntity = exports.EntityEntity = exports.EmployeeEntity = exports.EmployeeSkillEntity = exports.EmployeeRoleEntity = exports.EmployeeCompanyIntegrationEntity = exports.DuplicateRunEntity = exports.DuplicateRunDetailEntity = exports.DuplicateRunDetailMatchEntity = exports.DatasetEntity = exports.DatasetItemEntity = exports.DataContextEntity = exports.DataContextItemEntity = exports.DashboardEntity = exports.DashboardCategoryEntity = exports.ConversationEntity = exports.ConversationDetailEntity = exports.ContentTypeEntity = exports.ContentTypeAttributeEntity = exports.ContentSourceEntity = exports.ContentSourceTypeEntity = exports.ContentSourceTypeParamEntity = exports.ContentSourceParamEntity = exports.ContentProcessRunEntity = exports.ContentItemEntity = exports.ContentItemTagEntity = exports.ContentItemAttributeEntity = exports.ContentFileTypeEntity = exports.CompanyIntegrationEntity = exports.CompanyIntegrationRunEntity = exports.CompanyIntegrationRunDetailEntity = exports.CompanyIntegrationRunAPILogEntity = exports.CompanyIntegrationRecordMapEntity = exports.CompanyEntity = exports.CommunicationRunEntity = exports.CommunicationProviderEntity = exports.CommunicationProviderMessageTypeEntity = exports.CommunicationLogEntity = void 0;
|
|
15
|
+
exports.CollectionArtifactEntity = exports.ArtifactEntity = exports.ArtifactVersionEntity = exports.ArtifactVersionAttributeEntity = exports.ArtifactTypeEntity = exports.ArtifactPermissionEntity = exports.AIVendorEntity = exports.AIVendorTypeEntity = exports.AIVendorTypeDefinitionEntity = exports.AIPromptRunEntity = exports.AIPromptModelEntity = exports.AIModelVendorEntity = exports.AIModelPriceUnitTypeEntity = exports.AIModelPriceTypeEntity = exports.AIModelCostEntity = exports.AIConfigurationEntity = exports.AIConfigurationParamEntity = exports.AIAgentTypeEntity = exports.AIAgentStepEntity = exports.AIAgentStepPathEntity = exports.AIAgentRunEntity = exports.AIAgentRunStepEntity = exports.AIAgentRelationshipEntity = exports.AIAgentPromptEntity = exports.AIAgentPermissionEntity = exports.AIAgentExampleEntity = exports.AIAgentDataSourceEntity = exports.AIAgentArtifactTypeEntity = exports.AccessControlRuleEntity = exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.GeneratedCodeEntity = exports.GeneratedCodeCategoryEntity = exports.FileEntity = exports.FileStorageProviderEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = exports.ExplorerNavigationItemEntity = exports.ErrorLogEntity = exports.EntitySettingEntity = exports.EntityRelationshipEntity = exports.EntityRelationshipDisplayComponentEntity = exports.EntityRecordDocumentEntity = exports.EntityPermissionEntity = exports.EntityFieldEntity = void 0;
|
|
16
|
+
exports.ResourcePermissionEntity = exports.ResourceLinkEntity = exports.ReportEntity = exports.ReportSnapshotEntity = exports.ReportCategoryEntity = exports.RecordMergeLogEntity = exports.RecordMergeDeletionLogEntity = exports.RecordChangeEntity = exports.RecordChangeReplayRunEntity = exports.RecommendationEntity = exports.RecommendationRunEntity = exports.RecommendationProviderEntity = exports.RecommendationItemEntity = exports.QueueEntity = exports.QueueTypeEntity = exports.QueueTaskEntity = exports.QueryPermissionEntity = exports.QueryFieldEntity = exports.QueryEntityEntity = exports.QueryCategoryEntity = exports.QueryEntity = exports.OutputTriggerTypeEntity = exports.OutputFormatTypeEntity = exports.OutputDeliveryTypeEntity = exports.TaskEntity = exports.TaskTypeEntity = exports.TaskDependencyEntity = exports.ScheduledJobEntity = exports.ScheduledJobTypeEntity = exports.ScheduledJobRunEntity = exports.ReportVersionEntity = exports.ReportUserStateEntity = exports.RecordLinkEntity = exports.QueryParameterEntity = exports.PublicLinkEntity = exports.ProjectEntity = exports.EnvironmentEntity = exports.DashboardUserStateEntity = exports.DashboardUserPreferenceEntity = exports.ConversationDetailArtifactEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = exports.ConversationArtifactPermissionEntity = exports.ComponentEntity = exports.ComponentRegistryEntity = exports.ComponentLibraryLinkEntity = exports.ComponentLibraryEntity = exports.ComponentDependencyEntity = exports.CollectionEntity = exports.CollectionPermissionEntity = void 0;
|
|
17
|
+
exports.WorkspaceEntity = exports.WorkspaceItemEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.WorkflowEngineEntity = exports.VersionInstallationEntity = exports.VectorIndexEntity = exports.VectorDatabaseEntity = exports.UserEntity = exports.UserViewEntity = exports.UserViewRunEntity = exports.UserViewRunDetailEntity = exports.UserViewCategoryEntity = exports.UserRoleEntity = exports.UserRecordLogEntity = exports.UserNotificationEntity = exports.UserFavoriteEntity = exports.UserApplicationEntity = exports.UserApplicationEntityEntity = exports.TemplateEntity = exports.TemplateParamEntity = exports.TemplateContentEntity = exports.TemplateContentTypeEntity = exports.TemplateCategoryEntity = exports.TagEntity = exports.TaggedItemEntity = exports.SkillEntity = exports.SchemaInfoEntity = exports.ScheduledActionEntity = exports.ScheduledActionParamEntity = exports.RowLevelSecurityFilterEntity = exports.RoleEntity = exports.ResourceTypeEntity = void 0;
|
|
18
18
|
const core_1 = require("@memberjunction/core");
|
|
19
19
|
const global_1 = require("@memberjunction/global");
|
|
20
20
|
const zod_1 = require("zod");
|
|
@@ -917,6 +917,23 @@ exports.AIAgentNoteTypeSchema = zod_1.z.object({
|
|
|
917
917
|
* * Display Name: Updated At
|
|
918
918
|
* * SQL Data Type: datetimeoffset
|
|
919
919
|
* * Default Value: getutcdate()`),
|
|
920
|
+
Priority: zod_1.z.number().describe(`
|
|
921
|
+
* * Field Name: Priority
|
|
922
|
+
* * Display Name: Priority
|
|
923
|
+
* * SQL Data Type: int
|
|
924
|
+
* * Default Value: 0
|
|
925
|
+
* * Description: Priority for injection ordering. Lower numbers are injected first (0 is highest priority).`),
|
|
926
|
+
Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Pending'), zod_1.z.literal('Revoked')]).describe(`
|
|
927
|
+
* * Field Name: Status
|
|
928
|
+
* * Display Name: Status
|
|
929
|
+
* * SQL Data Type: nvarchar(20)
|
|
930
|
+
* * Default Value: Active
|
|
931
|
+
* * Value List Type: List
|
|
932
|
+
* * Possible Values
|
|
933
|
+
* * Active
|
|
934
|
+
* * Pending
|
|
935
|
+
* * Revoked
|
|
936
|
+
* * Description: Status of the note type: Pending (awaiting approval), Active (available for use), or Revoked (deprecated).`),
|
|
920
937
|
});
|
|
921
938
|
/**
|
|
922
939
|
* zod schema definition for the entity AI Agent Notes
|
|
@@ -952,21 +969,71 @@ exports.AIAgentNoteSchema = zod_1.z.object({
|
|
|
952
969
|
* * Display Name: Updated At
|
|
953
970
|
* * SQL Data Type: datetimeoffset
|
|
954
971
|
* * Default Value: getutcdate()`),
|
|
955
|
-
Type: zod_1.z.union([zod_1.z.literal('Global'), zod_1.z.literal('User')]).describe(`
|
|
956
|
-
* * Field Name: Type
|
|
957
|
-
* * Display Name: Type
|
|
958
|
-
* * SQL Data Type: nvarchar(20)
|
|
959
|
-
* * Value List Type: List
|
|
960
|
-
* * Possible Values
|
|
961
|
-
* * Global
|
|
962
|
-
* * User
|
|
963
|
-
* * Description: Indicates the type of note, either User-specific or Global.`),
|
|
964
972
|
UserID: zod_1.z.string().nullable().describe(`
|
|
965
973
|
* * Field Name: UserID
|
|
966
974
|
* * Display Name: User ID
|
|
967
975
|
* * SQL Data Type: uniqueidentifier
|
|
968
976
|
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
969
977
|
* * Description: Foreign key referencing the ID column in the User table, indicating the user associated with the note. Used when Type=User`),
|
|
978
|
+
Type: zod_1.z.union([zod_1.z.literal('Constraint'), zod_1.z.literal('Context'), zod_1.z.literal('Example'), zod_1.z.literal('Issue'), zod_1.z.literal('Preference')]).describe(`
|
|
979
|
+
* * Field Name: Type
|
|
980
|
+
* * Display Name: Type
|
|
981
|
+
* * SQL Data Type: nvarchar(20)
|
|
982
|
+
* * Default Value: Preference
|
|
983
|
+
* * Value List Type: List
|
|
984
|
+
* * Possible Values
|
|
985
|
+
* * Constraint
|
|
986
|
+
* * Context
|
|
987
|
+
* * Example
|
|
988
|
+
* * Issue
|
|
989
|
+
* * Preference
|
|
990
|
+
* * Description: Quick categorization of the note content: Preference (user preferences), Constraint (hard rules/requirements), Context (background information), Example (sample interactions), or Issue (known problems/limitations). Complements the more detailed AIAgentNoteType categorization.`),
|
|
991
|
+
IsAutoGenerated: zod_1.z.boolean().describe(`
|
|
992
|
+
* * Field Name: IsAutoGenerated
|
|
993
|
+
* * Display Name: Is Auto Generated
|
|
994
|
+
* * SQL Data Type: bit
|
|
995
|
+
* * Default Value: 0
|
|
996
|
+
* * Description: Indicates whether this note was automatically generated by an AI agent (1) or manually created (0).`),
|
|
997
|
+
Comments: zod_1.z.string().nullable().describe(`
|
|
998
|
+
* * Field Name: Comments
|
|
999
|
+
* * Display Name: Comments
|
|
1000
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
1001
|
+
* * Description: Internal comments about this note, not included in agent context injection.`),
|
|
1002
|
+
Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Pending'), zod_1.z.literal('Revoked')]).describe(`
|
|
1003
|
+
* * Field Name: Status
|
|
1004
|
+
* * Display Name: Status
|
|
1005
|
+
* * SQL Data Type: nvarchar(20)
|
|
1006
|
+
* * Default Value: Active
|
|
1007
|
+
* * Value List Type: List
|
|
1008
|
+
* * Possible Values
|
|
1009
|
+
* * Active
|
|
1010
|
+
* * Pending
|
|
1011
|
+
* * Revoked
|
|
1012
|
+
* * Description: Status of the note: Pending (awaiting review), Active (in use), or Revoked (disabled).`),
|
|
1013
|
+
SourceConversationID: zod_1.z.string().nullable().describe(`
|
|
1014
|
+
* * Field Name: SourceConversationID
|
|
1015
|
+
* * Display Name: Source Conversation ID
|
|
1016
|
+
* * SQL Data Type: uniqueidentifier
|
|
1017
|
+
* * Related Entity/Foreign Key: Conversations (vwConversations.ID)
|
|
1018
|
+
* * Description: Optional reference to the conversation that inspired or generated this note.`),
|
|
1019
|
+
SourceConversationDetailID: zod_1.z.string().nullable().describe(`
|
|
1020
|
+
* * Field Name: SourceConversationDetailID
|
|
1021
|
+
* * Display Name: Source Conversation Detail ID
|
|
1022
|
+
* * SQL Data Type: uniqueidentifier
|
|
1023
|
+
* * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
|
|
1024
|
+
* * Description: Optional reference to the specific conversation message that inspired this note.`),
|
|
1025
|
+
SourceAIAgentRunID: zod_1.z.string().nullable().describe(`
|
|
1026
|
+
* * Field Name: SourceAIAgentRunID
|
|
1027
|
+
* * Display Name: Source AI Agent Run ID
|
|
1028
|
+
* * SQL Data Type: uniqueidentifier
|
|
1029
|
+
* * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
|
|
1030
|
+
* * Description: Optional reference to the AI agent run that generated this note.`),
|
|
1031
|
+
CompanyID: zod_1.z.string().nullable().describe(`
|
|
1032
|
+
* * Field Name: CompanyID
|
|
1033
|
+
* * Display Name: Company ID
|
|
1034
|
+
* * SQL Data Type: uniqueidentifier
|
|
1035
|
+
* * Related Entity/Foreign Key: Companies (vwCompanies.ID)
|
|
1036
|
+
* * Description: Optional company scope for this note. When populated with UserID, creates org+user specific notes.`),
|
|
970
1037
|
Agent: zod_1.z.string().nullable().describe(`
|
|
971
1038
|
* * Field Name: Agent
|
|
972
1039
|
* * Display Name: Agent
|
|
@@ -979,6 +1046,14 @@ exports.AIAgentNoteSchema = zod_1.z.object({
|
|
|
979
1046
|
* * Field Name: User
|
|
980
1047
|
* * Display Name: User
|
|
981
1048
|
* * SQL Data Type: nvarchar(100)`),
|
|
1049
|
+
SourceConversation: zod_1.z.string().nullable().describe(`
|
|
1050
|
+
* * Field Name: SourceConversation
|
|
1051
|
+
* * Display Name: Source Conversation
|
|
1052
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
1053
|
+
Company: zod_1.z.string().nullable().describe(`
|
|
1054
|
+
* * Field Name: Company
|
|
1055
|
+
* * Display Name: Company
|
|
1056
|
+
* * SQL Data Type: nvarchar(50)`),
|
|
982
1057
|
});
|
|
983
1058
|
/**
|
|
984
1059
|
* zod schema definition for the entity AI Agent Requests
|
|
@@ -1335,8 +1410,8 @@ if this limit is exceeded.`),
|
|
|
1335
1410
|
* * Default Value: Always
|
|
1336
1411
|
* * Value List Type: List
|
|
1337
1412
|
* * Possible Values
|
|
1338
|
-
* * Never
|
|
1339
1413
|
* * Always
|
|
1414
|
+
* * Never
|
|
1340
1415
|
* * System Only
|
|
1341
1416
|
* * Description: Controls how artifacts are created from this agent's payloads. "Always" creates visible artifacts, "Never" skips artifact creation, "System Only" creates hidden system artifacts.`),
|
|
1342
1417
|
FunctionalRequirements: zod_1.z.string().nullable().describe(`
|
|
@@ -1349,6 +1424,52 @@ if this limit is exceeded.`),
|
|
|
1349
1424
|
* * Display Name: Technical Design
|
|
1350
1425
|
* * SQL Data Type: nvarchar(MAX)
|
|
1351
1426
|
* * Description: Detailed markdown that explains the structure of the agent including agent architecture, actions, sub-agents, prompts, and payload structure.`),
|
|
1427
|
+
InjectNotes: zod_1.z.boolean().describe(`
|
|
1428
|
+
* * Field Name: InjectNotes
|
|
1429
|
+
* * Display Name: Inject Notes
|
|
1430
|
+
* * SQL Data Type: bit
|
|
1431
|
+
* * Default Value: 1
|
|
1432
|
+
* * Description: When enabled, agent notes will be automatically injected into the agent context based on scoping rules.`),
|
|
1433
|
+
MaxNotesToInject: zod_1.z.number().describe(`
|
|
1434
|
+
* * Field Name: MaxNotesToInject
|
|
1435
|
+
* * Display Name: Max Notes To Inject
|
|
1436
|
+
* * SQL Data Type: int
|
|
1437
|
+
* * Default Value: 5
|
|
1438
|
+
* * Description: Maximum number of notes to inject into agent context per request.`),
|
|
1439
|
+
NoteInjectionStrategy: zod_1.z.union([zod_1.z.literal('All'), zod_1.z.literal('Recent'), zod_1.z.literal('Relevant')]).describe(`
|
|
1440
|
+
* * Field Name: NoteInjectionStrategy
|
|
1441
|
+
* * Display Name: Note Injection Strategy
|
|
1442
|
+
* * SQL Data Type: nvarchar(20)
|
|
1443
|
+
* * Default Value: Relevant
|
|
1444
|
+
* * Value List Type: List
|
|
1445
|
+
* * Possible Values
|
|
1446
|
+
* * All
|
|
1447
|
+
* * Recent
|
|
1448
|
+
* * Relevant
|
|
1449
|
+
* * Description: Strategy for selecting which notes to inject: Relevant (semantic search), Recent (most recent first), or All (up to max limit).`),
|
|
1450
|
+
InjectExamples: zod_1.z.boolean().describe(`
|
|
1451
|
+
* * Field Name: InjectExamples
|
|
1452
|
+
* * Display Name: Inject Examples
|
|
1453
|
+
* * SQL Data Type: bit
|
|
1454
|
+
* * Default Value: 0
|
|
1455
|
+
* * Description: When enabled, agent examples will be automatically injected into the agent context based on scoping rules.`),
|
|
1456
|
+
MaxExamplesToInject: zod_1.z.number().describe(`
|
|
1457
|
+
* * Field Name: MaxExamplesToInject
|
|
1458
|
+
* * Display Name: Max Examples To Inject
|
|
1459
|
+
* * SQL Data Type: int
|
|
1460
|
+
* * Default Value: 3
|
|
1461
|
+
* * Description: Maximum number of examples to inject into agent context per request.`),
|
|
1462
|
+
ExampleInjectionStrategy: zod_1.z.union([zod_1.z.literal('Rated'), zod_1.z.literal('Recent'), zod_1.z.literal('Semantic')]).describe(`
|
|
1463
|
+
* * Field Name: ExampleInjectionStrategy
|
|
1464
|
+
* * Display Name: Example Injection Strategy
|
|
1465
|
+
* * SQL Data Type: nvarchar(20)
|
|
1466
|
+
* * Default Value: Semantic
|
|
1467
|
+
* * Value List Type: List
|
|
1468
|
+
* * Possible Values
|
|
1469
|
+
* * Rated
|
|
1470
|
+
* * Recent
|
|
1471
|
+
* * Semantic
|
|
1472
|
+
* * Description: Strategy for selecting which examples to inject: Semantic (vector similarity), Recent (most recent first), or Rated (highest success score first).`),
|
|
1352
1473
|
Parent: zod_1.z.string().nullable().describe(`
|
|
1353
1474
|
* * Field Name: Parent
|
|
1354
1475
|
* * Display Name: Parent
|
|
@@ -6860,6 +6981,12 @@ exports.FileStorageProviderSchema = zod_1.z.object({
|
|
|
6860
6981
|
* * Display Name: Updated At
|
|
6861
6982
|
* * SQL Data Type: datetimeoffset
|
|
6862
6983
|
* * Default Value: getutcdate()`),
|
|
6984
|
+
SupportsSearch: zod_1.z.boolean().describe(`
|
|
6985
|
+
* * Field Name: SupportsSearch
|
|
6986
|
+
* * Display Name: Supports Search
|
|
6987
|
+
* * SQL Data Type: bit
|
|
6988
|
+
* * Default Value: 0
|
|
6989
|
+
* * Description: Indicates whether this storage provider supports native full-text search across file names and content. Providers with native search APIs (Google Drive, SharePoint, Dropbox, Box) have this set to true.`),
|
|
6863
6990
|
});
|
|
6864
6991
|
/**
|
|
6865
6992
|
* zod schema definition for the entity Files
|
|
@@ -7726,6 +7853,128 @@ exports.AIAgentDataSourceSchema = zod_1.z.object({
|
|
|
7726
7853
|
* * Display Name: Agent
|
|
7727
7854
|
* * SQL Data Type: nvarchar(255)`),
|
|
7728
7855
|
});
|
|
7856
|
+
/**
|
|
7857
|
+
* zod schema definition for the entity MJ: AI Agent Examples
|
|
7858
|
+
*/
|
|
7859
|
+
exports.AIAgentExampleSchema = zod_1.z.object({
|
|
7860
|
+
ID: zod_1.z.string().describe(`
|
|
7861
|
+
* * Field Name: ID
|
|
7862
|
+
* * Display Name: ID
|
|
7863
|
+
* * SQL Data Type: uniqueidentifier
|
|
7864
|
+
* * Default Value: newsequentialid()`),
|
|
7865
|
+
AgentID: zod_1.z.string().describe(`
|
|
7866
|
+
* * Field Name: AgentID
|
|
7867
|
+
* * Display Name: Agent ID
|
|
7868
|
+
* * SQL Data Type: uniqueidentifier
|
|
7869
|
+
* * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
|
|
7870
|
+
* * Description: The AI agent this example is associated with. Examples are always agent-specific.`),
|
|
7871
|
+
UserID: zod_1.z.string().nullable().describe(`
|
|
7872
|
+
* * Field Name: UserID
|
|
7873
|
+
* * Display Name: User ID
|
|
7874
|
+
* * SQL Data Type: uniqueidentifier
|
|
7875
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
7876
|
+
* * Description: Optional user scope. When populated, this example is specific to this user.`),
|
|
7877
|
+
CompanyID: zod_1.z.string().nullable().describe(`
|
|
7878
|
+
* * Field Name: CompanyID
|
|
7879
|
+
* * Display Name: Company ID
|
|
7880
|
+
* * SQL Data Type: uniqueidentifier
|
|
7881
|
+
* * Related Entity/Foreign Key: Companies (vwCompanies.ID)
|
|
7882
|
+
* * Description: Optional company scope. When populated, this example is specific to this company.`),
|
|
7883
|
+
Type: zod_1.z.union([zod_1.z.literal('Constraint'), zod_1.z.literal('Context'), zod_1.z.literal('Example'), zod_1.z.literal('Issue'), zod_1.z.literal('Preference')]).describe(`
|
|
7884
|
+
* * Field Name: Type
|
|
7885
|
+
* * Display Name: Type
|
|
7886
|
+
* * SQL Data Type: nvarchar(20)
|
|
7887
|
+
* * Default Value: Example
|
|
7888
|
+
* * Value List Type: List
|
|
7889
|
+
* * Possible Values
|
|
7890
|
+
* * Constraint
|
|
7891
|
+
* * Context
|
|
7892
|
+
* * Example
|
|
7893
|
+
* * Issue
|
|
7894
|
+
* * Preference
|
|
7895
|
+
* * Description: Quick categorization of the example: Preference (demonstrates user preference), Constraint (shows constraint compliance), Context (provides contextual example), Example (typical successful interaction - most common), or Issue (demonstrates handling of known issue).`),
|
|
7896
|
+
ExampleInput: zod_1.z.string().describe(`
|
|
7897
|
+
* * Field Name: ExampleInput
|
|
7898
|
+
* * Display Name: Example Input
|
|
7899
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
7900
|
+
* * Description: The input text or prompt that was provided in this example interaction.`),
|
|
7901
|
+
ExampleOutput: zod_1.z.string().describe(`
|
|
7902
|
+
* * Field Name: ExampleOutput
|
|
7903
|
+
* * Display Name: Example Output
|
|
7904
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
7905
|
+
* * Description: The successful output or response that the agent provided for this example.`),
|
|
7906
|
+
IsAutoGenerated: zod_1.z.boolean().describe(`
|
|
7907
|
+
* * Field Name: IsAutoGenerated
|
|
7908
|
+
* * Display Name: Is Auto Generated
|
|
7909
|
+
* * SQL Data Type: bit
|
|
7910
|
+
* * Default Value: 0
|
|
7911
|
+
* * Description: Indicates whether this example was automatically captured (1) or manually created (0).`),
|
|
7912
|
+
SourceConversationID: zod_1.z.string().nullable().describe(`
|
|
7913
|
+
* * Field Name: SourceConversationID
|
|
7914
|
+
* * Display Name: Source Conversation ID
|
|
7915
|
+
* * SQL Data Type: uniqueidentifier
|
|
7916
|
+
* * Related Entity/Foreign Key: Conversations (vwConversations.ID)
|
|
7917
|
+
* * Description: Optional reference to the conversation where this example originated.`),
|
|
7918
|
+
SourceConversationDetailID: zod_1.z.string().nullable().describe(`
|
|
7919
|
+
* * Field Name: SourceConversationDetailID
|
|
7920
|
+
* * Display Name: Source Conversation Detail ID
|
|
7921
|
+
* * SQL Data Type: uniqueidentifier
|
|
7922
|
+
* * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
|
|
7923
|
+
* * Description: Optional reference to the specific conversation message that represents this example.`),
|
|
7924
|
+
SourceAIAgentRunID: zod_1.z.string().nullable().describe(`
|
|
7925
|
+
* * Field Name: SourceAIAgentRunID
|
|
7926
|
+
* * Display Name: Source AI Agent Run ID
|
|
7927
|
+
* * SQL Data Type: uniqueidentifier
|
|
7928
|
+
* * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
|
|
7929
|
+
* * Description: Optional reference to the AI agent run that generated this example.`),
|
|
7930
|
+
SuccessScore: zod_1.z.number().nullable().describe(`
|
|
7931
|
+
* * Field Name: SuccessScore
|
|
7932
|
+
* * Display Name: Success Score
|
|
7933
|
+
* * SQL Data Type: decimal(5, 2)
|
|
7934
|
+
* * Description: Optional success score (0-100) indicating the quality or effectiveness of this example based on user feedback or metrics.`),
|
|
7935
|
+
Comments: zod_1.z.string().nullable().describe(`
|
|
7936
|
+
* * Field Name: Comments
|
|
7937
|
+
* * Display Name: Comments
|
|
7938
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
7939
|
+
* * Description: Internal comments about this example, not included in agent context injection.`),
|
|
7940
|
+
Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Pending'), zod_1.z.literal('Revoked')]).describe(`
|
|
7941
|
+
* * Field Name: Status
|
|
7942
|
+
* * Display Name: Status
|
|
7943
|
+
* * SQL Data Type: nvarchar(20)
|
|
7944
|
+
* * Default Value: Active
|
|
7945
|
+
* * Value List Type: List
|
|
7946
|
+
* * Possible Values
|
|
7947
|
+
* * Active
|
|
7948
|
+
* * Pending
|
|
7949
|
+
* * Revoked
|
|
7950
|
+
* * Description: Status of the example: Pending (awaiting review), Active (in use), or Revoked (disabled).`),
|
|
7951
|
+
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
7952
|
+
* * Field Name: __mj_CreatedAt
|
|
7953
|
+
* * Display Name: Created At
|
|
7954
|
+
* * SQL Data Type: datetimeoffset
|
|
7955
|
+
* * Default Value: getutcdate()`),
|
|
7956
|
+
__mj_UpdatedAt: zod_1.z.date().describe(`
|
|
7957
|
+
* * Field Name: __mj_UpdatedAt
|
|
7958
|
+
* * Display Name: Updated At
|
|
7959
|
+
* * SQL Data Type: datetimeoffset
|
|
7960
|
+
* * Default Value: getutcdate()`),
|
|
7961
|
+
Agent: zod_1.z.string().nullable().describe(`
|
|
7962
|
+
* * Field Name: Agent
|
|
7963
|
+
* * Display Name: Agent
|
|
7964
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
7965
|
+
User: zod_1.z.string().nullable().describe(`
|
|
7966
|
+
* * Field Name: User
|
|
7967
|
+
* * Display Name: User
|
|
7968
|
+
* * SQL Data Type: nvarchar(100)`),
|
|
7969
|
+
Company: zod_1.z.string().nullable().describe(`
|
|
7970
|
+
* * Field Name: Company
|
|
7971
|
+
* * Display Name: Company
|
|
7972
|
+
* * SQL Data Type: nvarchar(50)`),
|
|
7973
|
+
SourceConversation: zod_1.z.string().nullable().describe(`
|
|
7974
|
+
* * Field Name: SourceConversation
|
|
7975
|
+
* * Display Name: Source Conversation
|
|
7976
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
7977
|
+
});
|
|
7729
7978
|
/**
|
|
7730
7979
|
* zod schema definition for the entity MJ: AI Agent Permissions
|
|
7731
7980
|
*/
|
|
@@ -7983,7 +8232,7 @@ exports.AIAgentRunStepSchema = zod_1.z.object({
|
|
|
7983
8232
|
* * Display Name: Step Number
|
|
7984
8233
|
* * SQL Data Type: int
|
|
7985
8234
|
* * Description: Sequential number of this step within the agent run, starting from 1`),
|
|
7986
|
-
StepType: zod_1.z.union([zod_1.z.literal('Actions'), zod_1.z.literal('Chat'), zod_1.z.literal('Decision'), zod_1.z.literal('Prompt'), zod_1.z.literal('Sub-Agent'), zod_1.z.literal('Validation')]).describe(`
|
|
8235
|
+
StepType: zod_1.z.union([zod_1.z.literal('Actions'), zod_1.z.literal('Chat'), zod_1.z.literal('Decision'), zod_1.z.literal('ForEach'), zod_1.z.literal('Prompt'), zod_1.z.literal('Sub-Agent'), zod_1.z.literal('Validation'), zod_1.z.literal('While')]).describe(`
|
|
7987
8236
|
* * Field Name: StepType
|
|
7988
8237
|
* * Display Name: Step Type
|
|
7989
8238
|
* * SQL Data Type: nvarchar(50)
|
|
@@ -7993,9 +8242,11 @@ exports.AIAgentRunStepSchema = zod_1.z.object({
|
|
|
7993
8242
|
* * Actions
|
|
7994
8243
|
* * Chat
|
|
7995
8244
|
* * Decision
|
|
8245
|
+
* * ForEach
|
|
7996
8246
|
* * Prompt
|
|
7997
8247
|
* * Sub-Agent
|
|
7998
8248
|
* * Validation
|
|
8249
|
+
* * While
|
|
7999
8250
|
* * Description: Type of execution step: Prompt, Actions, Sub-Agent, Decision, Chat, Validation`),
|
|
8000
8251
|
StepName: zod_1.z.string().describe(`
|
|
8001
8252
|
* * Field Name: StepName
|
|
@@ -8265,7 +8516,7 @@ exports.AIAgentRunSchema = zod_1.z.object({
|
|
|
8265
8516
|
* * Timeout
|
|
8266
8517
|
* * User Request
|
|
8267
8518
|
* * Description: Reason for cancellation if the agent run was cancelled`),
|
|
8268
|
-
FinalStep: zod_1.z.union([zod_1.z.literal('Actions'), zod_1.z.literal('Chat'), zod_1.z.literal('Failed'), zod_1.z.literal('Retry'), zod_1.z.literal('Sub-Agent'), zod_1.z.literal('Success')]).nullable().describe(`
|
|
8519
|
+
FinalStep: zod_1.z.union([zod_1.z.literal('Actions'), zod_1.z.literal('Chat'), zod_1.z.literal('Failed'), zod_1.z.literal('ForEach'), zod_1.z.literal('Retry'), zod_1.z.literal('Sub-Agent'), zod_1.z.literal('Success'), zod_1.z.literal('While')]).nullable().describe(`
|
|
8269
8520
|
* * Field Name: FinalStep
|
|
8270
8521
|
* * Display Name: Final Step
|
|
8271
8522
|
* * SQL Data Type: nvarchar(30)
|
|
@@ -8274,9 +8525,11 @@ exports.AIAgentRunSchema = zod_1.z.object({
|
|
|
8274
8525
|
* * Actions
|
|
8275
8526
|
* * Chat
|
|
8276
8527
|
* * Failed
|
|
8528
|
+
* * ForEach
|
|
8277
8529
|
* * Retry
|
|
8278
8530
|
* * Sub-Agent
|
|
8279
8531
|
* * Success
|
|
8532
|
+
* * While
|
|
8280
8533
|
* * Description: The final step type that concluded the agent run`),
|
|
8281
8534
|
FinalPayload: zod_1.z.string().nullable().describe(`
|
|
8282
8535
|
* * Field Name: FinalPayload
|
|
@@ -8468,15 +8721,17 @@ exports.AIAgentStepSchema = zod_1.z.object({
|
|
|
8468
8721
|
* * Field Name: Description
|
|
8469
8722
|
* * Display Name: Description
|
|
8470
8723
|
* * SQL Data Type: nvarchar(MAX)`),
|
|
8471
|
-
StepType: zod_1.z.union([zod_1.z.literal('Action'), zod_1.z.literal('Prompt'), zod_1.z.literal('Sub-Agent')]).describe(`
|
|
8724
|
+
StepType: zod_1.z.union([zod_1.z.literal('Action'), zod_1.z.literal('ForEach'), zod_1.z.literal('Prompt'), zod_1.z.literal('Sub-Agent'), zod_1.z.literal('While')]).describe(`
|
|
8472
8725
|
* * Field Name: StepType
|
|
8473
8726
|
* * Display Name: Step Type
|
|
8474
8727
|
* * SQL Data Type: nvarchar(20)
|
|
8475
8728
|
* * Value List Type: List
|
|
8476
8729
|
* * Possible Values
|
|
8477
8730
|
* * Action
|
|
8731
|
+
* * ForEach
|
|
8478
8732
|
* * Prompt
|
|
8479
8733
|
* * Sub-Agent
|
|
8734
|
+
* * While
|
|
8480
8735
|
* * Description: Type of step: Action (execute an action), Sub-Agent (delegate to another agent), or Prompt (run an AI prompt)`),
|
|
8481
8736
|
StartingStep: zod_1.z.boolean().describe(`
|
|
8482
8737
|
* * Field Name: StartingStep
|
|
@@ -8570,6 +8825,21 @@ exports.AIAgentStepSchema = zod_1.z.object({
|
|
|
8570
8825
|
* * Display Name: Action Input Mapping
|
|
8571
8826
|
* * SQL Data Type: nvarchar(MAX)
|
|
8572
8827
|
* * Description: JSON configuration for mapping static values or payload paths to action input parameters. Example: {"param1": "staticValue", "param2": "payload.dynamicValue"}`),
|
|
8828
|
+
LoopBodyType: zod_1.z.union([zod_1.z.literal('Action'), zod_1.z.literal('Prompt'), zod_1.z.literal('Sub-Agent')]).nullable().describe(`
|
|
8829
|
+
* * Field Name: LoopBodyType
|
|
8830
|
+
* * Display Name: Loop Body Type
|
|
8831
|
+
* * SQL Data Type: nvarchar(50)
|
|
8832
|
+
* * Value List Type: List
|
|
8833
|
+
* * Possible Values
|
|
8834
|
+
* * Action
|
|
8835
|
+
* * Prompt
|
|
8836
|
+
* * Sub-Agent
|
|
8837
|
+
* * Description: Specifies what type of operation executes in the loop body. Values: Action, Sub-Agent, Prompt. Only used when StepType is ForEach or While.`),
|
|
8838
|
+
Configuration: zod_1.z.string().nullable().describe(`
|
|
8839
|
+
* * Field Name: Configuration
|
|
8840
|
+
* * Display Name: Configuration
|
|
8841
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
8842
|
+
* * Description: JSON configuration object for step-specific settings. For loop steps: { type: "ForEach"|"While", collectionPath?, itemVariable?, indexVariable?, maxIterations?, continueOnError?, condition? }. For other step types: reserved for future use.`),
|
|
8573
8843
|
Agent: zod_1.z.string().nullable().describe(`
|
|
8574
8844
|
* * Field Name: Agent
|
|
8575
8845
|
* * Display Name: Agent
|
|
@@ -10112,8 +10382,8 @@ exports.ArtifactSchema = zod_1.z.object({
|
|
|
10112
10382
|
* * Default Value: Always
|
|
10113
10383
|
* * Value List Type: List
|
|
10114
10384
|
* * Possible Values
|
|
10115
|
-
* * System Only
|
|
10116
10385
|
* * Always
|
|
10386
|
+
* * System Only
|
|
10117
10387
|
* * Description: Controls artifact visibility in user-facing lists. "Always" shows in all lists, "System Only" hides from normal views (for system-generated artifacts like agent routing payloads).`),
|
|
10118
10388
|
Environment: zod_1.z.string().describe(`
|
|
10119
10389
|
* * Field Name: Environment
|
|
@@ -13660,7 +13930,8 @@ exports.RoleSchema = zod_1.z.object({
|
|
|
13660
13930
|
* * Default Value: newsequentialid()`),
|
|
13661
13931
|
Name: zod_1.z.string().describe(`
|
|
13662
13932
|
* * Field Name: Name
|
|
13663
|
-
* * SQL Data Type: nvarchar(50)
|
|
13933
|
+
* * SQL Data Type: nvarchar(50)
|
|
13934
|
+
* * Description: Role with full permissions to manage AI agents and all related entities. This role is required for AgentSpecSync operations to function correctly, allowing create, read, update, and delete operations on agents, prompts, actions, relationships, steps, and paths.`),
|
|
13664
13935
|
Description: zod_1.z.string().nullable().describe(`
|
|
13665
13936
|
* * Field Name: Description
|
|
13666
13937
|
* * SQL Data Type: nvarchar(MAX)
|
|
@@ -17836,6 +18107,37 @@ let AIAgentNoteTypeEntity = class AIAgentNoteTypeEntity extends core_1.BaseEntit
|
|
|
17836
18107
|
get __mj_UpdatedAt() {
|
|
17837
18108
|
return this.Get('__mj_UpdatedAt');
|
|
17838
18109
|
}
|
|
18110
|
+
/**
|
|
18111
|
+
* * Field Name: Priority
|
|
18112
|
+
* * Display Name: Priority
|
|
18113
|
+
* * SQL Data Type: int
|
|
18114
|
+
* * Default Value: 0
|
|
18115
|
+
* * Description: Priority for injection ordering. Lower numbers are injected first (0 is highest priority).
|
|
18116
|
+
*/
|
|
18117
|
+
get Priority() {
|
|
18118
|
+
return this.Get('Priority');
|
|
18119
|
+
}
|
|
18120
|
+
set Priority(value) {
|
|
18121
|
+
this.Set('Priority', value);
|
|
18122
|
+
}
|
|
18123
|
+
/**
|
|
18124
|
+
* * Field Name: Status
|
|
18125
|
+
* * Display Name: Status
|
|
18126
|
+
* * SQL Data Type: nvarchar(20)
|
|
18127
|
+
* * Default Value: Active
|
|
18128
|
+
* * Value List Type: List
|
|
18129
|
+
* * Possible Values
|
|
18130
|
+
* * Active
|
|
18131
|
+
* * Pending
|
|
18132
|
+
* * Revoked
|
|
18133
|
+
* * Description: Status of the note type: Pending (awaiting approval), Active (available for use), or Revoked (deprecated).
|
|
18134
|
+
*/
|
|
18135
|
+
get Status() {
|
|
18136
|
+
return this.Get('Status');
|
|
18137
|
+
}
|
|
18138
|
+
set Status(value) {
|
|
18139
|
+
this.Set('Status', value);
|
|
18140
|
+
}
|
|
17839
18141
|
};
|
|
17840
18142
|
exports.AIAgentNoteTypeEntity = AIAgentNoteTypeEntity;
|
|
17841
18143
|
exports.AIAgentNoteTypeEntity = AIAgentNoteTypeEntity = __decorate([
|
|
@@ -17846,7 +18148,7 @@ exports.AIAgentNoteTypeEntity = AIAgentNoteTypeEntity = __decorate([
|
|
|
17846
18148
|
* * Schema: __mj
|
|
17847
18149
|
* * Base Table: AIAgentNote
|
|
17848
18150
|
* * Base View: vwAIAgentNotes
|
|
17849
|
-
* * @description Stores notes, observations, and learnings
|
|
18151
|
+
* * @description Stores notes, observations, and learnings for AI agents with multi-dimensional scoping (Agent, User, company). Scoping is determined by which FK fields are populated: all NULL = global, AgentID only = agent-specific, UserID only = user-specific across all agents, etc.
|
|
17850
18152
|
* * Primary Key: ID
|
|
17851
18153
|
* @extends {BaseEntity}
|
|
17852
18154
|
* @class
|
|
@@ -17936,14 +18238,31 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
|
|
|
17936
18238
|
return this.Get('__mj_UpdatedAt');
|
|
17937
18239
|
}
|
|
17938
18240
|
/**
|
|
18241
|
+
* * Field Name: UserID
|
|
18242
|
+
* * Display Name: User ID
|
|
18243
|
+
* * SQL Data Type: uniqueidentifier
|
|
18244
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
18245
|
+
* * Description: Foreign key referencing the ID column in the User table, indicating the user associated with the note. Used when Type=User
|
|
18246
|
+
*/
|
|
18247
|
+
get UserID() {
|
|
18248
|
+
return this.Get('UserID');
|
|
18249
|
+
}
|
|
18250
|
+
set UserID(value) {
|
|
18251
|
+
this.Set('UserID', value);
|
|
18252
|
+
}
|
|
18253
|
+
/**
|
|
17939
18254
|
* * Field Name: Type
|
|
17940
18255
|
* * Display Name: Type
|
|
17941
18256
|
* * SQL Data Type: nvarchar(20)
|
|
18257
|
+
* * Default Value: Preference
|
|
17942
18258
|
* * Value List Type: List
|
|
17943
18259
|
* * Possible Values
|
|
17944
|
-
* *
|
|
17945
|
-
* *
|
|
17946
|
-
*
|
|
18260
|
+
* * Constraint
|
|
18261
|
+
* * Context
|
|
18262
|
+
* * Example
|
|
18263
|
+
* * Issue
|
|
18264
|
+
* * Preference
|
|
18265
|
+
* * Description: Quick categorization of the note content: Preference (user preferences), Constraint (hard rules/requirements), Context (background information), Example (sample interactions), or Issue (known problems/limitations). Complements the more detailed AIAgentNoteType categorization.
|
|
17947
18266
|
*/
|
|
17948
18267
|
get Type() {
|
|
17949
18268
|
return this.Get('Type');
|
|
@@ -17952,17 +18271,99 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
|
|
|
17952
18271
|
this.Set('Type', value);
|
|
17953
18272
|
}
|
|
17954
18273
|
/**
|
|
17955
|
-
* * Field Name:
|
|
17956
|
-
* * Display Name:
|
|
18274
|
+
* * Field Name: IsAutoGenerated
|
|
18275
|
+
* * Display Name: Is Auto Generated
|
|
18276
|
+
* * SQL Data Type: bit
|
|
18277
|
+
* * Default Value: 0
|
|
18278
|
+
* * Description: Indicates whether this note was automatically generated by an AI agent (1) or manually created (0).
|
|
18279
|
+
*/
|
|
18280
|
+
get IsAutoGenerated() {
|
|
18281
|
+
return this.Get('IsAutoGenerated');
|
|
18282
|
+
}
|
|
18283
|
+
set IsAutoGenerated(value) {
|
|
18284
|
+
this.Set('IsAutoGenerated', value);
|
|
18285
|
+
}
|
|
18286
|
+
/**
|
|
18287
|
+
* * Field Name: Comments
|
|
18288
|
+
* * Display Name: Comments
|
|
18289
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
18290
|
+
* * Description: Internal comments about this note, not included in agent context injection.
|
|
18291
|
+
*/
|
|
18292
|
+
get Comments() {
|
|
18293
|
+
return this.Get('Comments');
|
|
18294
|
+
}
|
|
18295
|
+
set Comments(value) {
|
|
18296
|
+
this.Set('Comments', value);
|
|
18297
|
+
}
|
|
18298
|
+
/**
|
|
18299
|
+
* * Field Name: Status
|
|
18300
|
+
* * Display Name: Status
|
|
18301
|
+
* * SQL Data Type: nvarchar(20)
|
|
18302
|
+
* * Default Value: Active
|
|
18303
|
+
* * Value List Type: List
|
|
18304
|
+
* * Possible Values
|
|
18305
|
+
* * Active
|
|
18306
|
+
* * Pending
|
|
18307
|
+
* * Revoked
|
|
18308
|
+
* * Description: Status of the note: Pending (awaiting review), Active (in use), or Revoked (disabled).
|
|
18309
|
+
*/
|
|
18310
|
+
get Status() {
|
|
18311
|
+
return this.Get('Status');
|
|
18312
|
+
}
|
|
18313
|
+
set Status(value) {
|
|
18314
|
+
this.Set('Status', value);
|
|
18315
|
+
}
|
|
18316
|
+
/**
|
|
18317
|
+
* * Field Name: SourceConversationID
|
|
18318
|
+
* * Display Name: Source Conversation ID
|
|
17957
18319
|
* * SQL Data Type: uniqueidentifier
|
|
17958
|
-
* * Related Entity/Foreign Key:
|
|
17959
|
-
* * Description:
|
|
18320
|
+
* * Related Entity/Foreign Key: Conversations (vwConversations.ID)
|
|
18321
|
+
* * Description: Optional reference to the conversation that inspired or generated this note.
|
|
17960
18322
|
*/
|
|
17961
|
-
get
|
|
17962
|
-
return this.Get('
|
|
18323
|
+
get SourceConversationID() {
|
|
18324
|
+
return this.Get('SourceConversationID');
|
|
17963
18325
|
}
|
|
17964
|
-
set
|
|
17965
|
-
this.Set('
|
|
18326
|
+
set SourceConversationID(value) {
|
|
18327
|
+
this.Set('SourceConversationID', value);
|
|
18328
|
+
}
|
|
18329
|
+
/**
|
|
18330
|
+
* * Field Name: SourceConversationDetailID
|
|
18331
|
+
* * Display Name: Source Conversation Detail ID
|
|
18332
|
+
* * SQL Data Type: uniqueidentifier
|
|
18333
|
+
* * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
|
|
18334
|
+
* * Description: Optional reference to the specific conversation message that inspired this note.
|
|
18335
|
+
*/
|
|
18336
|
+
get SourceConversationDetailID() {
|
|
18337
|
+
return this.Get('SourceConversationDetailID');
|
|
18338
|
+
}
|
|
18339
|
+
set SourceConversationDetailID(value) {
|
|
18340
|
+
this.Set('SourceConversationDetailID', value);
|
|
18341
|
+
}
|
|
18342
|
+
/**
|
|
18343
|
+
* * Field Name: SourceAIAgentRunID
|
|
18344
|
+
* * Display Name: Source AI Agent Run ID
|
|
18345
|
+
* * SQL Data Type: uniqueidentifier
|
|
18346
|
+
* * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
|
|
18347
|
+
* * Description: Optional reference to the AI agent run that generated this note.
|
|
18348
|
+
*/
|
|
18349
|
+
get SourceAIAgentRunID() {
|
|
18350
|
+
return this.Get('SourceAIAgentRunID');
|
|
18351
|
+
}
|
|
18352
|
+
set SourceAIAgentRunID(value) {
|
|
18353
|
+
this.Set('SourceAIAgentRunID', value);
|
|
18354
|
+
}
|
|
18355
|
+
/**
|
|
18356
|
+
* * Field Name: CompanyID
|
|
18357
|
+
* * Display Name: Company ID
|
|
18358
|
+
* * SQL Data Type: uniqueidentifier
|
|
18359
|
+
* * Related Entity/Foreign Key: Companies (vwCompanies.ID)
|
|
18360
|
+
* * Description: Optional company scope for this note. When populated with UserID, creates org+user specific notes.
|
|
18361
|
+
*/
|
|
18362
|
+
get CompanyID() {
|
|
18363
|
+
return this.Get('CompanyID');
|
|
18364
|
+
}
|
|
18365
|
+
set CompanyID(value) {
|
|
18366
|
+
this.Set('CompanyID', value);
|
|
17966
18367
|
}
|
|
17967
18368
|
/**
|
|
17968
18369
|
* * Field Name: Agent
|
|
@@ -17988,6 +18389,22 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
|
|
|
17988
18389
|
get User() {
|
|
17989
18390
|
return this.Get('User');
|
|
17990
18391
|
}
|
|
18392
|
+
/**
|
|
18393
|
+
* * Field Name: SourceConversation
|
|
18394
|
+
* * Display Name: Source Conversation
|
|
18395
|
+
* * SQL Data Type: nvarchar(255)
|
|
18396
|
+
*/
|
|
18397
|
+
get SourceConversation() {
|
|
18398
|
+
return this.Get('SourceConversation');
|
|
18399
|
+
}
|
|
18400
|
+
/**
|
|
18401
|
+
* * Field Name: Company
|
|
18402
|
+
* * Display Name: Company
|
|
18403
|
+
* * SQL Data Type: nvarchar(50)
|
|
18404
|
+
*/
|
|
18405
|
+
get Company() {
|
|
18406
|
+
return this.Get('Company');
|
|
18407
|
+
}
|
|
17991
18408
|
};
|
|
17992
18409
|
exports.AIAgentNoteEntity = AIAgentNoteEntity;
|
|
17993
18410
|
exports.AIAgentNoteEntity = AIAgentNoteEntity = __decorate([
|
|
@@ -18863,8 +19280,8 @@ if this limit is exceeded.
|
|
|
18863
19280
|
* * Default Value: Always
|
|
18864
19281
|
* * Value List Type: List
|
|
18865
19282
|
* * Possible Values
|
|
18866
|
-
* * Never
|
|
18867
19283
|
* * Always
|
|
19284
|
+
* * Never
|
|
18868
19285
|
* * System Only
|
|
18869
19286
|
* * Description: Controls how artifacts are created from this agent's payloads. "Always" creates visible artifacts, "Never" skips artifact creation, "System Only" creates hidden system artifacts.
|
|
18870
19287
|
*/
|
|
@@ -18899,6 +19316,94 @@ if this limit is exceeded.
|
|
|
18899
19316
|
this.Set('TechnicalDesign', value);
|
|
18900
19317
|
}
|
|
18901
19318
|
/**
|
|
19319
|
+
* * Field Name: InjectNotes
|
|
19320
|
+
* * Display Name: Inject Notes
|
|
19321
|
+
* * SQL Data Type: bit
|
|
19322
|
+
* * Default Value: 1
|
|
19323
|
+
* * Description: When enabled, agent notes will be automatically injected into the agent context based on scoping rules.
|
|
19324
|
+
*/
|
|
19325
|
+
get InjectNotes() {
|
|
19326
|
+
return this.Get('InjectNotes');
|
|
19327
|
+
}
|
|
19328
|
+
set InjectNotes(value) {
|
|
19329
|
+
this.Set('InjectNotes', value);
|
|
19330
|
+
}
|
|
19331
|
+
/**
|
|
19332
|
+
* * Field Name: MaxNotesToInject
|
|
19333
|
+
* * Display Name: Max Notes To Inject
|
|
19334
|
+
* * SQL Data Type: int
|
|
19335
|
+
* * Default Value: 5
|
|
19336
|
+
* * Description: Maximum number of notes to inject into agent context per request.
|
|
19337
|
+
*/
|
|
19338
|
+
get MaxNotesToInject() {
|
|
19339
|
+
return this.Get('MaxNotesToInject');
|
|
19340
|
+
}
|
|
19341
|
+
set MaxNotesToInject(value) {
|
|
19342
|
+
this.Set('MaxNotesToInject', value);
|
|
19343
|
+
}
|
|
19344
|
+
/**
|
|
19345
|
+
* * Field Name: NoteInjectionStrategy
|
|
19346
|
+
* * Display Name: Note Injection Strategy
|
|
19347
|
+
* * SQL Data Type: nvarchar(20)
|
|
19348
|
+
* * Default Value: Relevant
|
|
19349
|
+
* * Value List Type: List
|
|
19350
|
+
* * Possible Values
|
|
19351
|
+
* * All
|
|
19352
|
+
* * Recent
|
|
19353
|
+
* * Relevant
|
|
19354
|
+
* * Description: Strategy for selecting which notes to inject: Relevant (semantic search), Recent (most recent first), or All (up to max limit).
|
|
19355
|
+
*/
|
|
19356
|
+
get NoteInjectionStrategy() {
|
|
19357
|
+
return this.Get('NoteInjectionStrategy');
|
|
19358
|
+
}
|
|
19359
|
+
set NoteInjectionStrategy(value) {
|
|
19360
|
+
this.Set('NoteInjectionStrategy', value);
|
|
19361
|
+
}
|
|
19362
|
+
/**
|
|
19363
|
+
* * Field Name: InjectExamples
|
|
19364
|
+
* * Display Name: Inject Examples
|
|
19365
|
+
* * SQL Data Type: bit
|
|
19366
|
+
* * Default Value: 0
|
|
19367
|
+
* * Description: When enabled, agent examples will be automatically injected into the agent context based on scoping rules.
|
|
19368
|
+
*/
|
|
19369
|
+
get InjectExamples() {
|
|
19370
|
+
return this.Get('InjectExamples');
|
|
19371
|
+
}
|
|
19372
|
+
set InjectExamples(value) {
|
|
19373
|
+
this.Set('InjectExamples', value);
|
|
19374
|
+
}
|
|
19375
|
+
/**
|
|
19376
|
+
* * Field Name: MaxExamplesToInject
|
|
19377
|
+
* * Display Name: Max Examples To Inject
|
|
19378
|
+
* * SQL Data Type: int
|
|
19379
|
+
* * Default Value: 3
|
|
19380
|
+
* * Description: Maximum number of examples to inject into agent context per request.
|
|
19381
|
+
*/
|
|
19382
|
+
get MaxExamplesToInject() {
|
|
19383
|
+
return this.Get('MaxExamplesToInject');
|
|
19384
|
+
}
|
|
19385
|
+
set MaxExamplesToInject(value) {
|
|
19386
|
+
this.Set('MaxExamplesToInject', value);
|
|
19387
|
+
}
|
|
19388
|
+
/**
|
|
19389
|
+
* * Field Name: ExampleInjectionStrategy
|
|
19390
|
+
* * Display Name: Example Injection Strategy
|
|
19391
|
+
* * SQL Data Type: nvarchar(20)
|
|
19392
|
+
* * Default Value: Semantic
|
|
19393
|
+
* * Value List Type: List
|
|
19394
|
+
* * Possible Values
|
|
19395
|
+
* * Rated
|
|
19396
|
+
* * Recent
|
|
19397
|
+
* * Semantic
|
|
19398
|
+
* * Description: Strategy for selecting which examples to inject: Semantic (vector similarity), Recent (most recent first), or Rated (highest success score first).
|
|
19399
|
+
*/
|
|
19400
|
+
get ExampleInjectionStrategy() {
|
|
19401
|
+
return this.Get('ExampleInjectionStrategy');
|
|
19402
|
+
}
|
|
19403
|
+
set ExampleInjectionStrategy(value) {
|
|
19404
|
+
this.Set('ExampleInjectionStrategy', value);
|
|
19405
|
+
}
|
|
19406
|
+
/**
|
|
18902
19407
|
* * Field Name: Parent
|
|
18903
19408
|
* * Display Name: Parent
|
|
18904
19409
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -32766,6 +33271,19 @@ let FileStorageProviderEntity = class FileStorageProviderEntity extends core_1.B
|
|
|
32766
33271
|
get __mj_UpdatedAt() {
|
|
32767
33272
|
return this.Get('__mj_UpdatedAt');
|
|
32768
33273
|
}
|
|
33274
|
+
/**
|
|
33275
|
+
* * Field Name: SupportsSearch
|
|
33276
|
+
* * Display Name: Supports Search
|
|
33277
|
+
* * SQL Data Type: bit
|
|
33278
|
+
* * Default Value: 0
|
|
33279
|
+
* * Description: Indicates whether this storage provider supports native full-text search across file names and content. Providers with native search APIs (Google Drive, SharePoint, Dropbox, Box) have this set to true.
|
|
33280
|
+
*/
|
|
33281
|
+
get SupportsSearch() {
|
|
33282
|
+
return this.Get('SupportsSearch');
|
|
33283
|
+
}
|
|
33284
|
+
set SupportsSearch(value) {
|
|
33285
|
+
this.Set('SupportsSearch', value);
|
|
33286
|
+
}
|
|
32769
33287
|
};
|
|
32770
33288
|
exports.FileStorageProviderEntity = FileStorageProviderEntity;
|
|
32771
33289
|
exports.FileStorageProviderEntity = FileStorageProviderEntity = __decorate([
|
|
@@ -34964,6 +35482,278 @@ exports.AIAgentDataSourceEntity = AIAgentDataSourceEntity;
|
|
|
34964
35482
|
exports.AIAgentDataSourceEntity = AIAgentDataSourceEntity = __decorate([
|
|
34965
35483
|
(0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Agent Data Sources')
|
|
34966
35484
|
], AIAgentDataSourceEntity);
|
|
35485
|
+
/**
|
|
35486
|
+
* MJ: AI Agent Examples - strongly typed entity sub-class
|
|
35487
|
+
* * Schema: __mj
|
|
35488
|
+
* * Base Table: AIAgentExample
|
|
35489
|
+
* * Base View: vwAIAgentExamples
|
|
35490
|
+
* * @description Stores example input/output pairs for AI agents to learn from successful interactions. Examples are always agent-specific and support optional user/company scoping for personalized examples.
|
|
35491
|
+
* * Primary Key: ID
|
|
35492
|
+
* @extends {BaseEntity}
|
|
35493
|
+
* @class
|
|
35494
|
+
* @public
|
|
35495
|
+
*/
|
|
35496
|
+
let AIAgentExampleEntity = class AIAgentExampleEntity extends core_1.BaseEntity {
|
|
35497
|
+
/**
|
|
35498
|
+
* Loads the MJ: AI Agent Examples record from the database
|
|
35499
|
+
* @param ID: string - primary key value to load the MJ: AI Agent Examples record.
|
|
35500
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
35501
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
35502
|
+
* @public
|
|
35503
|
+
* @async
|
|
35504
|
+
* @memberof AIAgentExampleEntity
|
|
35505
|
+
* @method
|
|
35506
|
+
* @override
|
|
35507
|
+
*/
|
|
35508
|
+
async Load(ID, EntityRelationshipsToLoad) {
|
|
35509
|
+
const compositeKey = new core_1.CompositeKey();
|
|
35510
|
+
compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
|
|
35511
|
+
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
35512
|
+
}
|
|
35513
|
+
/**
|
|
35514
|
+
* * Field Name: ID
|
|
35515
|
+
* * Display Name: ID
|
|
35516
|
+
* * SQL Data Type: uniqueidentifier
|
|
35517
|
+
* * Default Value: newsequentialid()
|
|
35518
|
+
*/
|
|
35519
|
+
get ID() {
|
|
35520
|
+
return this.Get('ID');
|
|
35521
|
+
}
|
|
35522
|
+
set ID(value) {
|
|
35523
|
+
this.Set('ID', value);
|
|
35524
|
+
}
|
|
35525
|
+
/**
|
|
35526
|
+
* * Field Name: AgentID
|
|
35527
|
+
* * Display Name: Agent ID
|
|
35528
|
+
* * SQL Data Type: uniqueidentifier
|
|
35529
|
+
* * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
|
|
35530
|
+
* * Description: The AI agent this example is associated with. Examples are always agent-specific.
|
|
35531
|
+
*/
|
|
35532
|
+
get AgentID() {
|
|
35533
|
+
return this.Get('AgentID');
|
|
35534
|
+
}
|
|
35535
|
+
set AgentID(value) {
|
|
35536
|
+
this.Set('AgentID', value);
|
|
35537
|
+
}
|
|
35538
|
+
/**
|
|
35539
|
+
* * Field Name: UserID
|
|
35540
|
+
* * Display Name: User ID
|
|
35541
|
+
* * SQL Data Type: uniqueidentifier
|
|
35542
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
35543
|
+
* * Description: Optional user scope. When populated, this example is specific to this user.
|
|
35544
|
+
*/
|
|
35545
|
+
get UserID() {
|
|
35546
|
+
return this.Get('UserID');
|
|
35547
|
+
}
|
|
35548
|
+
set UserID(value) {
|
|
35549
|
+
this.Set('UserID', value);
|
|
35550
|
+
}
|
|
35551
|
+
/**
|
|
35552
|
+
* * Field Name: CompanyID
|
|
35553
|
+
* * Display Name: Company ID
|
|
35554
|
+
* * SQL Data Type: uniqueidentifier
|
|
35555
|
+
* * Related Entity/Foreign Key: Companies (vwCompanies.ID)
|
|
35556
|
+
* * Description: Optional company scope. When populated, this example is specific to this company.
|
|
35557
|
+
*/
|
|
35558
|
+
get CompanyID() {
|
|
35559
|
+
return this.Get('CompanyID');
|
|
35560
|
+
}
|
|
35561
|
+
set CompanyID(value) {
|
|
35562
|
+
this.Set('CompanyID', value);
|
|
35563
|
+
}
|
|
35564
|
+
/**
|
|
35565
|
+
* * Field Name: Type
|
|
35566
|
+
* * Display Name: Type
|
|
35567
|
+
* * SQL Data Type: nvarchar(20)
|
|
35568
|
+
* * Default Value: Example
|
|
35569
|
+
* * Value List Type: List
|
|
35570
|
+
* * Possible Values
|
|
35571
|
+
* * Constraint
|
|
35572
|
+
* * Context
|
|
35573
|
+
* * Example
|
|
35574
|
+
* * Issue
|
|
35575
|
+
* * Preference
|
|
35576
|
+
* * Description: Quick categorization of the example: Preference (demonstrates user preference), Constraint (shows constraint compliance), Context (provides contextual example), Example (typical successful interaction - most common), or Issue (demonstrates handling of known issue).
|
|
35577
|
+
*/
|
|
35578
|
+
get Type() {
|
|
35579
|
+
return this.Get('Type');
|
|
35580
|
+
}
|
|
35581
|
+
set Type(value) {
|
|
35582
|
+
this.Set('Type', value);
|
|
35583
|
+
}
|
|
35584
|
+
/**
|
|
35585
|
+
* * Field Name: ExampleInput
|
|
35586
|
+
* * Display Name: Example Input
|
|
35587
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
35588
|
+
* * Description: The input text or prompt that was provided in this example interaction.
|
|
35589
|
+
*/
|
|
35590
|
+
get ExampleInput() {
|
|
35591
|
+
return this.Get('ExampleInput');
|
|
35592
|
+
}
|
|
35593
|
+
set ExampleInput(value) {
|
|
35594
|
+
this.Set('ExampleInput', value);
|
|
35595
|
+
}
|
|
35596
|
+
/**
|
|
35597
|
+
* * Field Name: ExampleOutput
|
|
35598
|
+
* * Display Name: Example Output
|
|
35599
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
35600
|
+
* * Description: The successful output or response that the agent provided for this example.
|
|
35601
|
+
*/
|
|
35602
|
+
get ExampleOutput() {
|
|
35603
|
+
return this.Get('ExampleOutput');
|
|
35604
|
+
}
|
|
35605
|
+
set ExampleOutput(value) {
|
|
35606
|
+
this.Set('ExampleOutput', value);
|
|
35607
|
+
}
|
|
35608
|
+
/**
|
|
35609
|
+
* * Field Name: IsAutoGenerated
|
|
35610
|
+
* * Display Name: Is Auto Generated
|
|
35611
|
+
* * SQL Data Type: bit
|
|
35612
|
+
* * Default Value: 0
|
|
35613
|
+
* * Description: Indicates whether this example was automatically captured (1) or manually created (0).
|
|
35614
|
+
*/
|
|
35615
|
+
get IsAutoGenerated() {
|
|
35616
|
+
return this.Get('IsAutoGenerated');
|
|
35617
|
+
}
|
|
35618
|
+
set IsAutoGenerated(value) {
|
|
35619
|
+
this.Set('IsAutoGenerated', value);
|
|
35620
|
+
}
|
|
35621
|
+
/**
|
|
35622
|
+
* * Field Name: SourceConversationID
|
|
35623
|
+
* * Display Name: Source Conversation ID
|
|
35624
|
+
* * SQL Data Type: uniqueidentifier
|
|
35625
|
+
* * Related Entity/Foreign Key: Conversations (vwConversations.ID)
|
|
35626
|
+
* * Description: Optional reference to the conversation where this example originated.
|
|
35627
|
+
*/
|
|
35628
|
+
get SourceConversationID() {
|
|
35629
|
+
return this.Get('SourceConversationID');
|
|
35630
|
+
}
|
|
35631
|
+
set SourceConversationID(value) {
|
|
35632
|
+
this.Set('SourceConversationID', value);
|
|
35633
|
+
}
|
|
35634
|
+
/**
|
|
35635
|
+
* * Field Name: SourceConversationDetailID
|
|
35636
|
+
* * Display Name: Source Conversation Detail ID
|
|
35637
|
+
* * SQL Data Type: uniqueidentifier
|
|
35638
|
+
* * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
|
|
35639
|
+
* * Description: Optional reference to the specific conversation message that represents this example.
|
|
35640
|
+
*/
|
|
35641
|
+
get SourceConversationDetailID() {
|
|
35642
|
+
return this.Get('SourceConversationDetailID');
|
|
35643
|
+
}
|
|
35644
|
+
set SourceConversationDetailID(value) {
|
|
35645
|
+
this.Set('SourceConversationDetailID', value);
|
|
35646
|
+
}
|
|
35647
|
+
/**
|
|
35648
|
+
* * Field Name: SourceAIAgentRunID
|
|
35649
|
+
* * Display Name: Source AI Agent Run ID
|
|
35650
|
+
* * SQL Data Type: uniqueidentifier
|
|
35651
|
+
* * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
|
|
35652
|
+
* * Description: Optional reference to the AI agent run that generated this example.
|
|
35653
|
+
*/
|
|
35654
|
+
get SourceAIAgentRunID() {
|
|
35655
|
+
return this.Get('SourceAIAgentRunID');
|
|
35656
|
+
}
|
|
35657
|
+
set SourceAIAgentRunID(value) {
|
|
35658
|
+
this.Set('SourceAIAgentRunID', value);
|
|
35659
|
+
}
|
|
35660
|
+
/**
|
|
35661
|
+
* * Field Name: SuccessScore
|
|
35662
|
+
* * Display Name: Success Score
|
|
35663
|
+
* * SQL Data Type: decimal(5, 2)
|
|
35664
|
+
* * Description: Optional success score (0-100) indicating the quality or effectiveness of this example based on user feedback or metrics.
|
|
35665
|
+
*/
|
|
35666
|
+
get SuccessScore() {
|
|
35667
|
+
return this.Get('SuccessScore');
|
|
35668
|
+
}
|
|
35669
|
+
set SuccessScore(value) {
|
|
35670
|
+
this.Set('SuccessScore', value);
|
|
35671
|
+
}
|
|
35672
|
+
/**
|
|
35673
|
+
* * Field Name: Comments
|
|
35674
|
+
* * Display Name: Comments
|
|
35675
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
35676
|
+
* * Description: Internal comments about this example, not included in agent context injection.
|
|
35677
|
+
*/
|
|
35678
|
+
get Comments() {
|
|
35679
|
+
return this.Get('Comments');
|
|
35680
|
+
}
|
|
35681
|
+
set Comments(value) {
|
|
35682
|
+
this.Set('Comments', value);
|
|
35683
|
+
}
|
|
35684
|
+
/**
|
|
35685
|
+
* * Field Name: Status
|
|
35686
|
+
* * Display Name: Status
|
|
35687
|
+
* * SQL Data Type: nvarchar(20)
|
|
35688
|
+
* * Default Value: Active
|
|
35689
|
+
* * Value List Type: List
|
|
35690
|
+
* * Possible Values
|
|
35691
|
+
* * Active
|
|
35692
|
+
* * Pending
|
|
35693
|
+
* * Revoked
|
|
35694
|
+
* * Description: Status of the example: Pending (awaiting review), Active (in use), or Revoked (disabled).
|
|
35695
|
+
*/
|
|
35696
|
+
get Status() {
|
|
35697
|
+
return this.Get('Status');
|
|
35698
|
+
}
|
|
35699
|
+
set Status(value) {
|
|
35700
|
+
this.Set('Status', value);
|
|
35701
|
+
}
|
|
35702
|
+
/**
|
|
35703
|
+
* * Field Name: __mj_CreatedAt
|
|
35704
|
+
* * Display Name: Created At
|
|
35705
|
+
* * SQL Data Type: datetimeoffset
|
|
35706
|
+
* * Default Value: getutcdate()
|
|
35707
|
+
*/
|
|
35708
|
+
get __mj_CreatedAt() {
|
|
35709
|
+
return this.Get('__mj_CreatedAt');
|
|
35710
|
+
}
|
|
35711
|
+
/**
|
|
35712
|
+
* * Field Name: __mj_UpdatedAt
|
|
35713
|
+
* * Display Name: Updated At
|
|
35714
|
+
* * SQL Data Type: datetimeoffset
|
|
35715
|
+
* * Default Value: getutcdate()
|
|
35716
|
+
*/
|
|
35717
|
+
get __mj_UpdatedAt() {
|
|
35718
|
+
return this.Get('__mj_UpdatedAt');
|
|
35719
|
+
}
|
|
35720
|
+
/**
|
|
35721
|
+
* * Field Name: Agent
|
|
35722
|
+
* * Display Name: Agent
|
|
35723
|
+
* * SQL Data Type: nvarchar(255)
|
|
35724
|
+
*/
|
|
35725
|
+
get Agent() {
|
|
35726
|
+
return this.Get('Agent');
|
|
35727
|
+
}
|
|
35728
|
+
/**
|
|
35729
|
+
* * Field Name: User
|
|
35730
|
+
* * Display Name: User
|
|
35731
|
+
* * SQL Data Type: nvarchar(100)
|
|
35732
|
+
*/
|
|
35733
|
+
get User() {
|
|
35734
|
+
return this.Get('User');
|
|
35735
|
+
}
|
|
35736
|
+
/**
|
|
35737
|
+
* * Field Name: Company
|
|
35738
|
+
* * Display Name: Company
|
|
35739
|
+
* * SQL Data Type: nvarchar(50)
|
|
35740
|
+
*/
|
|
35741
|
+
get Company() {
|
|
35742
|
+
return this.Get('Company');
|
|
35743
|
+
}
|
|
35744
|
+
/**
|
|
35745
|
+
* * Field Name: SourceConversation
|
|
35746
|
+
* * Display Name: Source Conversation
|
|
35747
|
+
* * SQL Data Type: nvarchar(255)
|
|
35748
|
+
*/
|
|
35749
|
+
get SourceConversation() {
|
|
35750
|
+
return this.Get('SourceConversation');
|
|
35751
|
+
}
|
|
35752
|
+
};
|
|
35753
|
+
exports.AIAgentExampleEntity = AIAgentExampleEntity;
|
|
35754
|
+
exports.AIAgentExampleEntity = AIAgentExampleEntity = __decorate([
|
|
35755
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: AI Agent Examples')
|
|
35756
|
+
], AIAgentExampleEntity);
|
|
34967
35757
|
/**
|
|
34968
35758
|
* MJ: AI Agent Permissions - strongly typed entity sub-class
|
|
34969
35759
|
* * Schema: __mj
|
|
@@ -35665,9 +36455,11 @@ let AIAgentRunStepEntity = class AIAgentRunStepEntity extends core_1.BaseEntity
|
|
|
35665
36455
|
* * Actions
|
|
35666
36456
|
* * Chat
|
|
35667
36457
|
* * Decision
|
|
36458
|
+
* * ForEach
|
|
35668
36459
|
* * Prompt
|
|
35669
36460
|
* * Sub-Agent
|
|
35670
36461
|
* * Validation
|
|
36462
|
+
* * While
|
|
35671
36463
|
* * Description: Type of execution step: Prompt, Actions, Sub-Agent, Decision, Chat, Validation
|
|
35672
36464
|
*/
|
|
35673
36465
|
get StepType() {
|
|
@@ -36299,9 +37091,11 @@ let AIAgentRunEntity = class AIAgentRunEntity extends core_1.BaseEntity {
|
|
|
36299
37091
|
* * Actions
|
|
36300
37092
|
* * Chat
|
|
36301
37093
|
* * Failed
|
|
37094
|
+
* * ForEach
|
|
36302
37095
|
* * Retry
|
|
36303
37096
|
* * Sub-Agent
|
|
36304
37097
|
* * Success
|
|
37098
|
+
* * While
|
|
36305
37099
|
* * Description: The final step type that concluded the agent run
|
|
36306
37100
|
*/
|
|
36307
37101
|
get FinalStep() {
|
|
@@ -36847,8 +37641,10 @@ let AIAgentStepEntity = class AIAgentStepEntity extends core_1.BaseEntity {
|
|
|
36847
37641
|
* * Value List Type: List
|
|
36848
37642
|
* * Possible Values
|
|
36849
37643
|
* * Action
|
|
37644
|
+
* * ForEach
|
|
36850
37645
|
* * Prompt
|
|
36851
37646
|
* * Sub-Agent
|
|
37647
|
+
* * While
|
|
36852
37648
|
* * Description: Type of step: Action (execute an action), Sub-Agent (delegate to another agent), or Prompt (run an AI prompt)
|
|
36853
37649
|
*/
|
|
36854
37650
|
get StepType() {
|
|
@@ -37056,6 +37852,35 @@ let AIAgentStepEntity = class AIAgentStepEntity extends core_1.BaseEntity {
|
|
|
37056
37852
|
this.Set('ActionInputMapping', value);
|
|
37057
37853
|
}
|
|
37058
37854
|
/**
|
|
37855
|
+
* * Field Name: LoopBodyType
|
|
37856
|
+
* * Display Name: Loop Body Type
|
|
37857
|
+
* * SQL Data Type: nvarchar(50)
|
|
37858
|
+
* * Value List Type: List
|
|
37859
|
+
* * Possible Values
|
|
37860
|
+
* * Action
|
|
37861
|
+
* * Prompt
|
|
37862
|
+
* * Sub-Agent
|
|
37863
|
+
* * Description: Specifies what type of operation executes in the loop body. Values: Action, Sub-Agent, Prompt. Only used when StepType is ForEach or While.
|
|
37864
|
+
*/
|
|
37865
|
+
get LoopBodyType() {
|
|
37866
|
+
return this.Get('LoopBodyType');
|
|
37867
|
+
}
|
|
37868
|
+
set LoopBodyType(value) {
|
|
37869
|
+
this.Set('LoopBodyType', value);
|
|
37870
|
+
}
|
|
37871
|
+
/**
|
|
37872
|
+
* * Field Name: Configuration
|
|
37873
|
+
* * Display Name: Configuration
|
|
37874
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
37875
|
+
* * Description: JSON configuration object for step-specific settings. For loop steps: { type: "ForEach"|"While", collectionPath?, itemVariable?, indexVariable?, maxIterations?, continueOnError?, condition? }. For other step types: reserved for future use.
|
|
37876
|
+
*/
|
|
37877
|
+
get Configuration() {
|
|
37878
|
+
return this.Get('Configuration');
|
|
37879
|
+
}
|
|
37880
|
+
set Configuration(value) {
|
|
37881
|
+
this.Set('Configuration', value);
|
|
37882
|
+
}
|
|
37883
|
+
/**
|
|
37059
37884
|
* * Field Name: Agent
|
|
37060
37885
|
* * Display Name: Agent
|
|
37061
37886
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -41090,8 +41915,8 @@ let ArtifactEntity = class ArtifactEntity extends core_1.BaseEntity {
|
|
|
41090
41915
|
* * Default Value: Always
|
|
41091
41916
|
* * Value List Type: List
|
|
41092
41917
|
* * Possible Values
|
|
41093
|
-
* * System Only
|
|
41094
41918
|
* * Always
|
|
41919
|
+
* * System Only
|
|
41095
41920
|
* * Description: Controls artifact visibility in user-facing lists. "Always" shows in all lists, "System Only" hides from normal views (for system-generated artifacts like agent routing payloads).
|
|
41096
41921
|
*/
|
|
41097
41922
|
get Visibility() {
|
|
@@ -50289,6 +51114,7 @@ let RoleEntity = class RoleEntity extends core_1.BaseEntity {
|
|
|
50289
51114
|
/**
|
|
50290
51115
|
* * Field Name: Name
|
|
50291
51116
|
* * SQL Data Type: nvarchar(50)
|
|
51117
|
+
* * Description: Role with full permissions to manage AI agents and all related entities. This role is required for AgentSpecSync operations to function correctly, allowing create, read, update, and delete operations on agents, prompts, actions, relationships, steps, and paths.
|
|
50292
51118
|
*/
|
|
50293
51119
|
get Name() {
|
|
50294
51120
|
return this.Get('Name');
|