@memberjunction/core-entities 2.110.1 → 2.111.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.
|
@@ -569,18 +569,24 @@ export declare const AIAgentNoteTypeSchema: z.ZodObject<{
|
|
|
569
569
|
Description: z.ZodNullable<z.ZodString>;
|
|
570
570
|
__mj_CreatedAt: z.ZodDate;
|
|
571
571
|
__mj_UpdatedAt: z.ZodDate;
|
|
572
|
+
Priority: z.ZodNumber;
|
|
573
|
+
Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Revoked">]>;
|
|
572
574
|
}, "strip", z.ZodTypeAny, {
|
|
573
575
|
ID?: string;
|
|
574
576
|
__mj_CreatedAt?: Date;
|
|
575
577
|
__mj_UpdatedAt?: Date;
|
|
576
578
|
Name?: string;
|
|
577
579
|
Description?: string;
|
|
580
|
+
Status?: "Active" | "Pending" | "Revoked";
|
|
581
|
+
Priority?: number;
|
|
578
582
|
}, {
|
|
579
583
|
ID?: string;
|
|
580
584
|
__mj_CreatedAt?: Date;
|
|
581
585
|
__mj_UpdatedAt?: Date;
|
|
582
586
|
Name?: string;
|
|
583
587
|
Description?: string;
|
|
588
|
+
Status?: "Active" | "Pending" | "Revoked";
|
|
589
|
+
Priority?: number;
|
|
584
590
|
}>;
|
|
585
591
|
export type AIAgentNoteTypeEntityType = z.infer<typeof AIAgentNoteTypeSchema>;
|
|
586
592
|
/**
|
|
@@ -593,35 +599,62 @@ export declare const AIAgentNoteSchema: z.ZodObject<{
|
|
|
593
599
|
Note: z.ZodNullable<z.ZodString>;
|
|
594
600
|
__mj_CreatedAt: z.ZodDate;
|
|
595
601
|
__mj_UpdatedAt: z.ZodDate;
|
|
596
|
-
Type: z.ZodUnion<[z.ZodLiteral<"Global">, z.ZodLiteral<"User">]>;
|
|
597
602
|
UserID: z.ZodNullable<z.ZodString>;
|
|
603
|
+
Type: z.ZodUnion<[z.ZodLiteral<"Constraint">, z.ZodLiteral<"Context">, z.ZodLiteral<"Example">, z.ZodLiteral<"Issue">, z.ZodLiteral<"Preference">]>;
|
|
604
|
+
IsAutoGenerated: z.ZodBoolean;
|
|
605
|
+
Comments: z.ZodNullable<z.ZodString>;
|
|
606
|
+
Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Revoked">]>;
|
|
607
|
+
SourceConversationID: z.ZodNullable<z.ZodString>;
|
|
608
|
+
SourceConversationDetailID: z.ZodNullable<z.ZodString>;
|
|
609
|
+
SourceAIAgentRunID: z.ZodNullable<z.ZodString>;
|
|
610
|
+
CompanyID: z.ZodNullable<z.ZodString>;
|
|
598
611
|
Agent: z.ZodNullable<z.ZodString>;
|
|
599
612
|
AgentNoteType: z.ZodNullable<z.ZodString>;
|
|
600
613
|
User: z.ZodNullable<z.ZodString>;
|
|
614
|
+
SourceConversation: z.ZodNullable<z.ZodString>;
|
|
615
|
+
Company: z.ZodNullable<z.ZodString>;
|
|
601
616
|
}, "strip", z.ZodTypeAny, {
|
|
602
617
|
ID?: string;
|
|
618
|
+
Comments?: string;
|
|
603
619
|
__mj_CreatedAt?: Date;
|
|
604
620
|
__mj_UpdatedAt?: Date;
|
|
621
|
+
Status?: "Active" | "Pending" | "Revoked";
|
|
605
622
|
UserID?: string;
|
|
606
623
|
User?: string;
|
|
607
|
-
Type?: "
|
|
624
|
+
Type?: "Constraint" | "Context" | "Example" | "Issue" | "Preference";
|
|
608
625
|
AgentID?: string;
|
|
609
626
|
Agent?: string;
|
|
610
627
|
AgentNoteTypeID?: string;
|
|
611
628
|
Note?: string;
|
|
629
|
+
IsAutoGenerated?: boolean;
|
|
630
|
+
SourceConversationID?: string;
|
|
631
|
+
SourceConversationDetailID?: string;
|
|
632
|
+
SourceAIAgentRunID?: string;
|
|
633
|
+
CompanyID?: string;
|
|
612
634
|
AgentNoteType?: string;
|
|
635
|
+
SourceConversation?: string;
|
|
636
|
+
Company?: string;
|
|
613
637
|
}, {
|
|
614
638
|
ID?: string;
|
|
639
|
+
Comments?: string;
|
|
615
640
|
__mj_CreatedAt?: Date;
|
|
616
641
|
__mj_UpdatedAt?: Date;
|
|
642
|
+
Status?: "Active" | "Pending" | "Revoked";
|
|
617
643
|
UserID?: string;
|
|
618
644
|
User?: string;
|
|
619
|
-
Type?: "
|
|
645
|
+
Type?: "Constraint" | "Context" | "Example" | "Issue" | "Preference";
|
|
620
646
|
AgentID?: string;
|
|
621
647
|
Agent?: string;
|
|
622
648
|
AgentNoteTypeID?: string;
|
|
623
649
|
Note?: string;
|
|
650
|
+
IsAutoGenerated?: boolean;
|
|
651
|
+
SourceConversationID?: string;
|
|
652
|
+
SourceConversationDetailID?: string;
|
|
653
|
+
SourceAIAgentRunID?: string;
|
|
654
|
+
CompanyID?: string;
|
|
624
655
|
AgentNoteType?: string;
|
|
656
|
+
SourceConversation?: string;
|
|
657
|
+
Company?: string;
|
|
625
658
|
}>;
|
|
626
659
|
export type AIAgentNoteEntityType = z.infer<typeof AIAgentNoteSchema>;
|
|
627
660
|
/**
|
|
@@ -724,6 +757,12 @@ export declare const AIAgentSchema: z.ZodObject<{
|
|
|
724
757
|
ArtifactCreationMode: z.ZodUnion<[z.ZodLiteral<"Always">, z.ZodLiteral<"Never">, z.ZodLiteral<"System Only">]>;
|
|
725
758
|
FunctionalRequirements: z.ZodNullable<z.ZodString>;
|
|
726
759
|
TechnicalDesign: z.ZodNullable<z.ZodString>;
|
|
760
|
+
InjectNotes: z.ZodBoolean;
|
|
761
|
+
MaxNotesToInject: z.ZodNumber;
|
|
762
|
+
NoteInjectionStrategy: z.ZodUnion<[z.ZodLiteral<"All">, z.ZodLiteral<"Recent">, z.ZodLiteral<"Relevant">]>;
|
|
763
|
+
InjectExamples: z.ZodBoolean;
|
|
764
|
+
MaxExamplesToInject: z.ZodNumber;
|
|
765
|
+
ExampleInjectionStrategy: z.ZodUnion<[z.ZodLiteral<"Rated">, z.ZodLiteral<"Recent">, z.ZodLiteral<"Semantic">]>;
|
|
727
766
|
Parent: z.ZodNullable<z.ZodString>;
|
|
728
767
|
ContextCompressionPrompt: z.ZodNullable<z.ZodString>;
|
|
729
768
|
Type: z.ZodNullable<z.ZodString>;
|
|
@@ -777,6 +816,12 @@ export declare const AIAgentSchema: z.ZodObject<{
|
|
|
777
816
|
ArtifactCreationMode?: "Always" | "Never" | "System Only";
|
|
778
817
|
FunctionalRequirements?: string;
|
|
779
818
|
TechnicalDesign?: string;
|
|
819
|
+
InjectNotes?: boolean;
|
|
820
|
+
MaxNotesToInject?: number;
|
|
821
|
+
NoteInjectionStrategy?: "All" | "Recent" | "Relevant";
|
|
822
|
+
InjectExamples?: boolean;
|
|
823
|
+
MaxExamplesToInject?: number;
|
|
824
|
+
ExampleInjectionStrategy?: "Recent" | "Rated" | "Semantic";
|
|
780
825
|
ContextCompressionPrompt?: string;
|
|
781
826
|
DefaultArtifactType?: string;
|
|
782
827
|
OwnerUser?: string;
|
|
@@ -827,6 +872,12 @@ export declare const AIAgentSchema: z.ZodObject<{
|
|
|
827
872
|
ArtifactCreationMode?: "Always" | "Never" | "System Only";
|
|
828
873
|
FunctionalRequirements?: string;
|
|
829
874
|
TechnicalDesign?: string;
|
|
875
|
+
InjectNotes?: boolean;
|
|
876
|
+
MaxNotesToInject?: number;
|
|
877
|
+
NoteInjectionStrategy?: "All" | "Recent" | "Relevant";
|
|
878
|
+
InjectExamples?: boolean;
|
|
879
|
+
MaxExamplesToInject?: number;
|
|
880
|
+
ExampleInjectionStrategy?: "Recent" | "Rated" | "Semantic";
|
|
830
881
|
ContextCompressionPrompt?: string;
|
|
831
882
|
DefaultArtifactType?: string;
|
|
832
883
|
OwnerUser?: string;
|
|
@@ -1901,13 +1952,13 @@ export declare const CompanyIntegrationRunSchema: z.ZodObject<{
|
|
|
1901
1952
|
Status?: "Pending" | "Failed" | "Success" | "In Progress";
|
|
1902
1953
|
StartedAt?: Date;
|
|
1903
1954
|
EndedAt?: Date;
|
|
1955
|
+
Company?: string;
|
|
1904
1956
|
CompanyIntegrationID?: string;
|
|
1905
1957
|
RunByUserID?: string;
|
|
1906
1958
|
TotalRecords?: number;
|
|
1907
1959
|
ErrorLog?: string;
|
|
1908
1960
|
ConfigData?: string;
|
|
1909
1961
|
Integration?: string;
|
|
1910
|
-
Company?: string;
|
|
1911
1962
|
RunByUser?: string;
|
|
1912
1963
|
}, {
|
|
1913
1964
|
ID?: string;
|
|
@@ -1917,13 +1968,13 @@ export declare const CompanyIntegrationRunSchema: z.ZodObject<{
|
|
|
1917
1968
|
Status?: "Pending" | "Failed" | "Success" | "In Progress";
|
|
1918
1969
|
StartedAt?: Date;
|
|
1919
1970
|
EndedAt?: Date;
|
|
1971
|
+
Company?: string;
|
|
1920
1972
|
CompanyIntegrationID?: string;
|
|
1921
1973
|
RunByUserID?: string;
|
|
1922
1974
|
TotalRecords?: number;
|
|
1923
1975
|
ErrorLog?: string;
|
|
1924
1976
|
ConfigData?: string;
|
|
1925
1977
|
Integration?: string;
|
|
1926
|
-
Company?: string;
|
|
1927
1978
|
RunByUser?: string;
|
|
1928
1979
|
}>;
|
|
1929
1980
|
export type CompanyIntegrationRunEntityType = z.infer<typeof CompanyIntegrationRunSchema>;
|
|
@@ -1960,10 +2011,10 @@ export declare const CompanyIntegrationSchema: z.ZodObject<{
|
|
|
1960
2011
|
__mj_UpdatedAt?: Date;
|
|
1961
2012
|
Name?: string;
|
|
1962
2013
|
IsActive?: boolean;
|
|
2014
|
+
CompanyID?: string;
|
|
2015
|
+
Company?: string;
|
|
1963
2016
|
DriverImportPath?: string;
|
|
1964
2017
|
Integration?: string;
|
|
1965
|
-
Company?: string;
|
|
1966
|
-
CompanyID?: string;
|
|
1967
2018
|
IntegrationID?: string;
|
|
1968
2019
|
AccessToken?: string;
|
|
1969
2020
|
RefreshToken?: string;
|
|
@@ -1984,10 +2035,10 @@ export declare const CompanyIntegrationSchema: z.ZodObject<{
|
|
|
1984
2035
|
__mj_UpdatedAt?: Date;
|
|
1985
2036
|
Name?: string;
|
|
1986
2037
|
IsActive?: boolean;
|
|
2038
|
+
CompanyID?: string;
|
|
2039
|
+
Company?: string;
|
|
1987
2040
|
DriverImportPath?: string;
|
|
1988
2041
|
Integration?: string;
|
|
1989
|
-
Company?: string;
|
|
1990
|
-
CompanyID?: string;
|
|
1991
2042
|
IntegrationID?: string;
|
|
1992
2043
|
AccessToken?: string;
|
|
1993
2044
|
RefreshToken?: string;
|
|
@@ -2602,7 +2653,7 @@ export declare const DashboardSchema: z.ZodObject<{
|
|
|
2602
2653
|
Environment?: string;
|
|
2603
2654
|
UIConfigDetails?: string;
|
|
2604
2655
|
Thumbnail?: string;
|
|
2605
|
-
Scope?: "
|
|
2656
|
+
Scope?: "App" | "Global";
|
|
2606
2657
|
}, {
|
|
2607
2658
|
ID?: string;
|
|
2608
2659
|
__mj_CreatedAt?: Date;
|
|
@@ -2622,7 +2673,7 @@ export declare const DashboardSchema: z.ZodObject<{
|
|
|
2622
2673
|
Environment?: string;
|
|
2623
2674
|
UIConfigDetails?: string;
|
|
2624
2675
|
Thumbnail?: string;
|
|
2625
|
-
Scope?: "
|
|
2676
|
+
Scope?: "App" | "Global";
|
|
2626
2677
|
}>;
|
|
2627
2678
|
export type DashboardEntityType = z.infer<typeof DashboardSchema>;
|
|
2628
2679
|
/**
|
|
@@ -4358,6 +4409,7 @@ export declare const FileStorageProviderSchema: z.ZodObject<{
|
|
|
4358
4409
|
IsActive: z.ZodBoolean;
|
|
4359
4410
|
__mj_CreatedAt: z.ZodDate;
|
|
4360
4411
|
__mj_UpdatedAt: z.ZodDate;
|
|
4412
|
+
SupportsSearch: z.ZodBoolean;
|
|
4361
4413
|
}, "strip", z.ZodTypeAny, {
|
|
4362
4414
|
ID?: string;
|
|
4363
4415
|
__mj_CreatedAt?: Date;
|
|
@@ -4368,6 +4420,7 @@ export declare const FileStorageProviderSchema: z.ZodObject<{
|
|
|
4368
4420
|
Priority?: number;
|
|
4369
4421
|
ServerDriverKey?: string;
|
|
4370
4422
|
ClientDriverKey?: string;
|
|
4423
|
+
SupportsSearch?: boolean;
|
|
4371
4424
|
}, {
|
|
4372
4425
|
ID?: string;
|
|
4373
4426
|
__mj_CreatedAt?: Date;
|
|
@@ -4378,6 +4431,7 @@ export declare const FileStorageProviderSchema: z.ZodObject<{
|
|
|
4378
4431
|
Priority?: number;
|
|
4379
4432
|
ServerDriverKey?: string;
|
|
4380
4433
|
ClientDriverKey?: string;
|
|
4434
|
+
SupportsSearch?: boolean;
|
|
4381
4435
|
}>;
|
|
4382
4436
|
export type FileStorageProviderEntityType = z.infer<typeof FileStorageProviderSchema>;
|
|
4383
4437
|
/**
|
|
@@ -4940,6 +4994,74 @@ export declare const AIAgentDataSourceSchema: z.ZodObject<{
|
|
|
4940
4994
|
DestinationPath?: string;
|
|
4941
4995
|
}>;
|
|
4942
4996
|
export type AIAgentDataSourceEntityType = z.infer<typeof AIAgentDataSourceSchema>;
|
|
4997
|
+
/**
|
|
4998
|
+
* zod schema definition for the entity MJ: AI Agent Examples
|
|
4999
|
+
*/
|
|
5000
|
+
export declare const AIAgentExampleSchema: z.ZodObject<{
|
|
5001
|
+
ID: z.ZodString;
|
|
5002
|
+
AgentID: z.ZodString;
|
|
5003
|
+
UserID: z.ZodNullable<z.ZodString>;
|
|
5004
|
+
CompanyID: z.ZodNullable<z.ZodString>;
|
|
5005
|
+
Type: z.ZodUnion<[z.ZodLiteral<"Constraint">, z.ZodLiteral<"Context">, z.ZodLiteral<"Example">, z.ZodLiteral<"Issue">, z.ZodLiteral<"Preference">]>;
|
|
5006
|
+
ExampleInput: z.ZodString;
|
|
5007
|
+
ExampleOutput: z.ZodString;
|
|
5008
|
+
IsAutoGenerated: z.ZodBoolean;
|
|
5009
|
+
SourceConversationID: z.ZodNullable<z.ZodString>;
|
|
5010
|
+
SourceConversationDetailID: z.ZodNullable<z.ZodString>;
|
|
5011
|
+
SourceAIAgentRunID: z.ZodNullable<z.ZodString>;
|
|
5012
|
+
SuccessScore: z.ZodNullable<z.ZodNumber>;
|
|
5013
|
+
Comments: z.ZodNullable<z.ZodString>;
|
|
5014
|
+
Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Revoked">]>;
|
|
5015
|
+
__mj_CreatedAt: z.ZodDate;
|
|
5016
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
5017
|
+
Agent: z.ZodNullable<z.ZodString>;
|
|
5018
|
+
User: z.ZodNullable<z.ZodString>;
|
|
5019
|
+
Company: z.ZodNullable<z.ZodString>;
|
|
5020
|
+
SourceConversation: z.ZodNullable<z.ZodString>;
|
|
5021
|
+
}, "strip", z.ZodTypeAny, {
|
|
5022
|
+
ID?: string;
|
|
5023
|
+
Comments?: string;
|
|
5024
|
+
__mj_CreatedAt?: Date;
|
|
5025
|
+
__mj_UpdatedAt?: Date;
|
|
5026
|
+
Status?: "Active" | "Pending" | "Revoked";
|
|
5027
|
+
UserID?: string;
|
|
5028
|
+
User?: string;
|
|
5029
|
+
Type?: "Constraint" | "Context" | "Example" | "Issue" | "Preference";
|
|
5030
|
+
AgentID?: string;
|
|
5031
|
+
Agent?: string;
|
|
5032
|
+
IsAutoGenerated?: boolean;
|
|
5033
|
+
SourceConversationID?: string;
|
|
5034
|
+
SourceConversationDetailID?: string;
|
|
5035
|
+
SourceAIAgentRunID?: string;
|
|
5036
|
+
CompanyID?: string;
|
|
5037
|
+
SourceConversation?: string;
|
|
5038
|
+
Company?: string;
|
|
5039
|
+
ExampleInput?: string;
|
|
5040
|
+
ExampleOutput?: string;
|
|
5041
|
+
SuccessScore?: number;
|
|
5042
|
+
}, {
|
|
5043
|
+
ID?: string;
|
|
5044
|
+
Comments?: string;
|
|
5045
|
+
__mj_CreatedAt?: Date;
|
|
5046
|
+
__mj_UpdatedAt?: Date;
|
|
5047
|
+
Status?: "Active" | "Pending" | "Revoked";
|
|
5048
|
+
UserID?: string;
|
|
5049
|
+
User?: string;
|
|
5050
|
+
Type?: "Constraint" | "Context" | "Example" | "Issue" | "Preference";
|
|
5051
|
+
AgentID?: string;
|
|
5052
|
+
Agent?: string;
|
|
5053
|
+
IsAutoGenerated?: boolean;
|
|
5054
|
+
SourceConversationID?: string;
|
|
5055
|
+
SourceConversationDetailID?: string;
|
|
5056
|
+
SourceAIAgentRunID?: string;
|
|
5057
|
+
CompanyID?: string;
|
|
5058
|
+
SourceConversation?: string;
|
|
5059
|
+
Company?: string;
|
|
5060
|
+
ExampleInput?: string;
|
|
5061
|
+
ExampleOutput?: string;
|
|
5062
|
+
SuccessScore?: number;
|
|
5063
|
+
}>;
|
|
5064
|
+
export type AIAgentExampleEntityType = z.infer<typeof AIAgentExampleSchema>;
|
|
4943
5065
|
/**
|
|
4944
5066
|
* zod schema definition for the entity MJ: AI Agent Permissions
|
|
4945
5067
|
*/
|
|
@@ -5088,7 +5210,7 @@ export declare const AIAgentRunStepSchema: z.ZodObject<{
|
|
|
5088
5210
|
ID: z.ZodString;
|
|
5089
5211
|
AgentRunID: z.ZodString;
|
|
5090
5212
|
StepNumber: z.ZodNumber;
|
|
5091
|
-
StepType: z.ZodUnion<[z.ZodLiteral<"Actions">, z.ZodLiteral<"Chat">, z.ZodLiteral<"Decision">, z.ZodLiteral<"Prompt">, z.ZodLiteral<"Sub-Agent">, z.ZodLiteral<"Validation">]>;
|
|
5213
|
+
StepType: z.ZodUnion<[z.ZodLiteral<"Actions">, z.ZodLiteral<"Chat">, z.ZodLiteral<"Decision">, z.ZodLiteral<"ForEach">, z.ZodLiteral<"Prompt">, z.ZodLiteral<"Sub-Agent">, z.ZodLiteral<"Validation">, z.ZodLiteral<"While">]>;
|
|
5092
5214
|
StepName: z.ZodString;
|
|
5093
5215
|
TargetID: z.ZodNullable<z.ZodString>;
|
|
5094
5216
|
Status: z.ZodUnion<[z.ZodLiteral<"Cancelled">, z.ZodLiteral<"Completed">, z.ZodLiteral<"Failed">, z.ZodLiteral<"Running">]>;
|
|
@@ -5121,7 +5243,7 @@ export declare const AIAgentRunStepSchema: z.ZodObject<{
|
|
|
5121
5243
|
ErrorMessage?: string;
|
|
5122
5244
|
AgentRunID?: string;
|
|
5123
5245
|
StepNumber?: number;
|
|
5124
|
-
StepType?: "Sub-Agent" | "Prompt" | "Actions" | "Chat" | "Decision" | "Validation";
|
|
5246
|
+
StepType?: "Sub-Agent" | "Prompt" | "Actions" | "Chat" | "Decision" | "ForEach" | "Validation" | "While";
|
|
5125
5247
|
StepName?: string;
|
|
5126
5248
|
TargetID?: string;
|
|
5127
5249
|
CompletedAt?: Date;
|
|
@@ -5145,7 +5267,7 @@ export declare const AIAgentRunStepSchema: z.ZodObject<{
|
|
|
5145
5267
|
ErrorMessage?: string;
|
|
5146
5268
|
AgentRunID?: string;
|
|
5147
5269
|
StepNumber?: number;
|
|
5148
|
-
StepType?: "Sub-Agent" | "Prompt" | "Actions" | "Chat" | "Decision" | "Validation";
|
|
5270
|
+
StepType?: "Sub-Agent" | "Prompt" | "Actions" | "Chat" | "Decision" | "ForEach" | "Validation" | "While";
|
|
5149
5271
|
StepName?: string;
|
|
5150
5272
|
TargetID?: string;
|
|
5151
5273
|
CompletedAt?: Date;
|
|
@@ -5187,7 +5309,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
5187
5309
|
ConversationDetailID: z.ZodNullable<z.ZodString>;
|
|
5188
5310
|
ConversationDetailSequence: z.ZodNullable<z.ZodNumber>;
|
|
5189
5311
|
CancellationReason: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"System">, z.ZodLiteral<"Timeout">, z.ZodLiteral<"User Request">]>>;
|
|
5190
|
-
FinalStep: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Actions">, z.ZodLiteral<"Chat">, z.ZodLiteral<"Failed">, z.ZodLiteral<"Retry">, z.ZodLiteral<"Sub-Agent">, z.ZodLiteral<"Success">]>>;
|
|
5312
|
+
FinalStep: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Actions">, z.ZodLiteral<"Chat">, z.ZodLiteral<"Failed">, z.ZodLiteral<"ForEach">, z.ZodLiteral<"Retry">, z.ZodLiteral<"Sub-Agent">, z.ZodLiteral<"Success">, z.ZodLiteral<"While">]>>;
|
|
5191
5313
|
FinalPayload: z.ZodNullable<z.ZodString>;
|
|
5192
5314
|
Message: z.ZodNullable<z.ZodString>;
|
|
5193
5315
|
LastRunID: z.ZodNullable<z.ZodString>;
|
|
@@ -5246,7 +5368,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
5246
5368
|
ConversationDetailID?: string;
|
|
5247
5369
|
ConversationDetailSequence?: number;
|
|
5248
5370
|
CancellationReason?: "System" | "Timeout" | "User Request";
|
|
5249
|
-
FinalStep?: "Failed" | "Retry" | "Success" | "Sub-Agent" | "Actions" | "Chat";
|
|
5371
|
+
FinalStep?: "Failed" | "Retry" | "Success" | "Sub-Agent" | "Actions" | "Chat" | "ForEach" | "While";
|
|
5250
5372
|
FinalPayload?: string;
|
|
5251
5373
|
StartingPayload?: string;
|
|
5252
5374
|
TotalPromptIterations?: number;
|
|
@@ -5295,7 +5417,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
5295
5417
|
ConversationDetailID?: string;
|
|
5296
5418
|
ConversationDetailSequence?: number;
|
|
5297
5419
|
CancellationReason?: "System" | "Timeout" | "User Request";
|
|
5298
|
-
FinalStep?: "Failed" | "Retry" | "Success" | "Sub-Agent" | "Actions" | "Chat";
|
|
5420
|
+
FinalStep?: "Failed" | "Retry" | "Success" | "Sub-Agent" | "Actions" | "Chat" | "ForEach" | "While";
|
|
5299
5421
|
FinalPayload?: string;
|
|
5300
5422
|
StartingPayload?: string;
|
|
5301
5423
|
TotalPromptIterations?: number;
|
|
@@ -5359,7 +5481,7 @@ export declare const AIAgentStepSchema: z.ZodObject<{
|
|
|
5359
5481
|
AgentID: z.ZodString;
|
|
5360
5482
|
Name: z.ZodString;
|
|
5361
5483
|
Description: z.ZodNullable<z.ZodString>;
|
|
5362
|
-
StepType: z.ZodUnion<[z.ZodLiteral<"Action">, z.ZodLiteral<"Prompt">, z.ZodLiteral<"Sub-Agent">]>;
|
|
5484
|
+
StepType: z.ZodUnion<[z.ZodLiteral<"Action">, z.ZodLiteral<"ForEach">, z.ZodLiteral<"Prompt">, z.ZodLiteral<"Sub-Agent">, z.ZodLiteral<"While">]>;
|
|
5363
5485
|
StartingStep: z.ZodBoolean;
|
|
5364
5486
|
TimeoutSeconds: z.ZodNullable<z.ZodNumber>;
|
|
5365
5487
|
RetryCount: z.ZodNumber;
|
|
@@ -5376,6 +5498,8 @@ export declare const AIAgentStepSchema: z.ZodObject<{
|
|
|
5376
5498
|
__mj_UpdatedAt: z.ZodDate;
|
|
5377
5499
|
Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Disabled">, z.ZodLiteral<"Pending">]>;
|
|
5378
5500
|
ActionInputMapping: z.ZodNullable<z.ZodString>;
|
|
5501
|
+
LoopBodyType: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Action">, z.ZodLiteral<"Prompt">, z.ZodLiteral<"Sub-Agent">]>>;
|
|
5502
|
+
Configuration: z.ZodNullable<z.ZodString>;
|
|
5379
5503
|
Agent: z.ZodNullable<z.ZodString>;
|
|
5380
5504
|
Action: z.ZodNullable<z.ZodString>;
|
|
5381
5505
|
SubAgent: z.ZodNullable<z.ZodString>;
|
|
@@ -5391,11 +5515,12 @@ export declare const AIAgentStepSchema: z.ZodObject<{
|
|
|
5391
5515
|
Status?: "Active" | "Disabled" | "Pending";
|
|
5392
5516
|
AgentID?: string;
|
|
5393
5517
|
Agent?: string;
|
|
5518
|
+
Configuration?: string;
|
|
5394
5519
|
Prompt?: string;
|
|
5395
5520
|
PromptID?: string;
|
|
5396
5521
|
SubAgentID?: string;
|
|
5397
5522
|
SubAgent?: string;
|
|
5398
|
-
StepType?: "Action" | "Sub-Agent" | "Prompt";
|
|
5523
|
+
StepType?: "Action" | "Sub-Agent" | "Prompt" | "ForEach" | "While";
|
|
5399
5524
|
StartingStep?: boolean;
|
|
5400
5525
|
TimeoutSeconds?: number;
|
|
5401
5526
|
RetryCount?: number;
|
|
@@ -5406,6 +5531,7 @@ export declare const AIAgentStepSchema: z.ZodObject<{
|
|
|
5406
5531
|
Width?: number;
|
|
5407
5532
|
Height?: number;
|
|
5408
5533
|
ActionInputMapping?: string;
|
|
5534
|
+
LoopBodyType?: "Action" | "Sub-Agent" | "Prompt";
|
|
5409
5535
|
}, {
|
|
5410
5536
|
ID?: string;
|
|
5411
5537
|
ActionID?: string;
|
|
@@ -5417,11 +5543,12 @@ export declare const AIAgentStepSchema: z.ZodObject<{
|
|
|
5417
5543
|
Status?: "Active" | "Disabled" | "Pending";
|
|
5418
5544
|
AgentID?: string;
|
|
5419
5545
|
Agent?: string;
|
|
5546
|
+
Configuration?: string;
|
|
5420
5547
|
Prompt?: string;
|
|
5421
5548
|
PromptID?: string;
|
|
5422
5549
|
SubAgentID?: string;
|
|
5423
5550
|
SubAgent?: string;
|
|
5424
|
-
StepType?: "Action" | "Sub-Agent" | "Prompt";
|
|
5551
|
+
StepType?: "Action" | "Sub-Agent" | "Prompt" | "ForEach" | "While";
|
|
5425
5552
|
StartingStep?: boolean;
|
|
5426
5553
|
TimeoutSeconds?: number;
|
|
5427
5554
|
RetryCount?: number;
|
|
@@ -5432,6 +5559,7 @@ export declare const AIAgentStepSchema: z.ZodObject<{
|
|
|
5432
5559
|
Width?: number;
|
|
5433
5560
|
Height?: number;
|
|
5434
5561
|
ActionInputMapping?: string;
|
|
5562
|
+
LoopBodyType?: "Action" | "Sub-Agent" | "Prompt";
|
|
5435
5563
|
}>;
|
|
5436
5564
|
export type AIAgentStepEntityType = z.infer<typeof AIAgentStepSchema>;
|
|
5437
5565
|
/**
|
|
@@ -6925,7 +7053,7 @@ export declare const DashboardUserPreferenceSchema: z.ZodObject<{
|
|
|
6925
7053
|
User?: string;
|
|
6926
7054
|
ApplicationID?: string;
|
|
6927
7055
|
Application?: string;
|
|
6928
|
-
Scope?: "
|
|
7056
|
+
Scope?: "App" | "Global";
|
|
6929
7057
|
Dashboard?: string;
|
|
6930
7058
|
DashboardID?: string;
|
|
6931
7059
|
DisplayOrder?: number;
|
|
@@ -6937,7 +7065,7 @@ export declare const DashboardUserPreferenceSchema: z.ZodObject<{
|
|
|
6937
7065
|
User?: string;
|
|
6938
7066
|
ApplicationID?: string;
|
|
6939
7067
|
Application?: string;
|
|
6940
|
-
Scope?: "
|
|
7068
|
+
Scope?: "App" | "Global";
|
|
6941
7069
|
Dashboard?: string;
|
|
6942
7070
|
DashboardID?: string;
|
|
6943
7071
|
DisplayOrder?: number;
|
|
@@ -11626,13 +11754,36 @@ export declare class AIAgentNoteTypeEntity extends BaseEntity<AIAgentNoteTypeEnt
|
|
|
11626
11754
|
* * Default Value: getutcdate()
|
|
11627
11755
|
*/
|
|
11628
11756
|
get __mj_UpdatedAt(): Date;
|
|
11757
|
+
/**
|
|
11758
|
+
* * Field Name: Priority
|
|
11759
|
+
* * Display Name: Priority
|
|
11760
|
+
* * SQL Data Type: int
|
|
11761
|
+
* * Default Value: 0
|
|
11762
|
+
* * Description: Priority for injection ordering. Lower numbers are injected first (0 is highest priority).
|
|
11763
|
+
*/
|
|
11764
|
+
get Priority(): number;
|
|
11765
|
+
set Priority(value: number);
|
|
11766
|
+
/**
|
|
11767
|
+
* * Field Name: Status
|
|
11768
|
+
* * Display Name: Status
|
|
11769
|
+
* * SQL Data Type: nvarchar(20)
|
|
11770
|
+
* * Default Value: Active
|
|
11771
|
+
* * Value List Type: List
|
|
11772
|
+
* * Possible Values
|
|
11773
|
+
* * Active
|
|
11774
|
+
* * Pending
|
|
11775
|
+
* * Revoked
|
|
11776
|
+
* * Description: Status of the note type: Pending (awaiting approval), Active (available for use), or Revoked (deprecated).
|
|
11777
|
+
*/
|
|
11778
|
+
get Status(): 'Active' | 'Pending' | 'Revoked';
|
|
11779
|
+
set Status(value: 'Active' | 'Pending' | 'Revoked');
|
|
11629
11780
|
}
|
|
11630
11781
|
/**
|
|
11631
11782
|
* AI Agent Notes - strongly typed entity sub-class
|
|
11632
11783
|
* * Schema: __mj
|
|
11633
11784
|
* * Base Table: AIAgentNote
|
|
11634
11785
|
* * Base View: vwAIAgentNotes
|
|
11635
|
-
* * @description Stores notes, observations, and learnings
|
|
11786
|
+
* * @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.
|
|
11636
11787
|
* * Primary Key: ID
|
|
11637
11788
|
* @extends {BaseEntity}
|
|
11638
11789
|
* @class
|
|
@@ -11698,26 +11849,97 @@ export declare class AIAgentNoteEntity extends BaseEntity<AIAgentNoteEntityType>
|
|
|
11698
11849
|
*/
|
|
11699
11850
|
get __mj_UpdatedAt(): Date;
|
|
11700
11851
|
/**
|
|
11852
|
+
* * Field Name: UserID
|
|
11853
|
+
* * Display Name: User ID
|
|
11854
|
+
* * SQL Data Type: uniqueidentifier
|
|
11855
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
11856
|
+
* * Description: Foreign key referencing the ID column in the User table, indicating the user associated with the note. Used when Type=User
|
|
11857
|
+
*/
|
|
11858
|
+
get UserID(): string | null;
|
|
11859
|
+
set UserID(value: string | null);
|
|
11860
|
+
/**
|
|
11701
11861
|
* * Field Name: Type
|
|
11702
11862
|
* * Display Name: Type
|
|
11703
11863
|
* * SQL Data Type: nvarchar(20)
|
|
11864
|
+
* * Default Value: Preference
|
|
11704
11865
|
* * Value List Type: List
|
|
11705
11866
|
* * Possible Values
|
|
11706
|
-
* *
|
|
11707
|
-
* *
|
|
11708
|
-
*
|
|
11867
|
+
* * Constraint
|
|
11868
|
+
* * Context
|
|
11869
|
+
* * Example
|
|
11870
|
+
* * Issue
|
|
11871
|
+
* * Preference
|
|
11872
|
+
* * 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.
|
|
11709
11873
|
*/
|
|
11710
|
-
get Type(): '
|
|
11711
|
-
set Type(value: '
|
|
11874
|
+
get Type(): 'Constraint' | 'Context' | 'Example' | 'Issue' | 'Preference';
|
|
11875
|
+
set Type(value: 'Constraint' | 'Context' | 'Example' | 'Issue' | 'Preference');
|
|
11712
11876
|
/**
|
|
11713
|
-
* * Field Name:
|
|
11714
|
-
* * Display Name:
|
|
11877
|
+
* * Field Name: IsAutoGenerated
|
|
11878
|
+
* * Display Name: Is Auto Generated
|
|
11879
|
+
* * SQL Data Type: bit
|
|
11880
|
+
* * Default Value: 0
|
|
11881
|
+
* * Description: Indicates whether this note was automatically generated by an AI agent (1) or manually created (0).
|
|
11882
|
+
*/
|
|
11883
|
+
get IsAutoGenerated(): boolean;
|
|
11884
|
+
set IsAutoGenerated(value: boolean);
|
|
11885
|
+
/**
|
|
11886
|
+
* * Field Name: Comments
|
|
11887
|
+
* * Display Name: Comments
|
|
11888
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
11889
|
+
* * Description: Internal comments about this note, not included in agent context injection.
|
|
11890
|
+
*/
|
|
11891
|
+
get Comments(): string | null;
|
|
11892
|
+
set Comments(value: string | null);
|
|
11893
|
+
/**
|
|
11894
|
+
* * Field Name: Status
|
|
11895
|
+
* * Display Name: Status
|
|
11896
|
+
* * SQL Data Type: nvarchar(20)
|
|
11897
|
+
* * Default Value: Active
|
|
11898
|
+
* * Value List Type: List
|
|
11899
|
+
* * Possible Values
|
|
11900
|
+
* * Active
|
|
11901
|
+
* * Pending
|
|
11902
|
+
* * Revoked
|
|
11903
|
+
* * Description: Status of the note: Pending (awaiting review), Active (in use), or Revoked (disabled).
|
|
11904
|
+
*/
|
|
11905
|
+
get Status(): 'Active' | 'Pending' | 'Revoked';
|
|
11906
|
+
set Status(value: 'Active' | 'Pending' | 'Revoked');
|
|
11907
|
+
/**
|
|
11908
|
+
* * Field Name: SourceConversationID
|
|
11909
|
+
* * Display Name: Source Conversation ID
|
|
11715
11910
|
* * SQL Data Type: uniqueidentifier
|
|
11716
|
-
* * Related Entity/Foreign Key:
|
|
11717
|
-
* * Description:
|
|
11911
|
+
* * Related Entity/Foreign Key: Conversations (vwConversations.ID)
|
|
11912
|
+
* * Description: Optional reference to the conversation that inspired or generated this note.
|
|
11718
11913
|
*/
|
|
11719
|
-
get
|
|
11720
|
-
set
|
|
11914
|
+
get SourceConversationID(): string | null;
|
|
11915
|
+
set SourceConversationID(value: string | null);
|
|
11916
|
+
/**
|
|
11917
|
+
* * Field Name: SourceConversationDetailID
|
|
11918
|
+
* * Display Name: Source Conversation Detail ID
|
|
11919
|
+
* * SQL Data Type: uniqueidentifier
|
|
11920
|
+
* * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
|
|
11921
|
+
* * Description: Optional reference to the specific conversation message that inspired this note.
|
|
11922
|
+
*/
|
|
11923
|
+
get SourceConversationDetailID(): string | null;
|
|
11924
|
+
set SourceConversationDetailID(value: string | null);
|
|
11925
|
+
/**
|
|
11926
|
+
* * Field Name: SourceAIAgentRunID
|
|
11927
|
+
* * Display Name: Source AI Agent Run ID
|
|
11928
|
+
* * SQL Data Type: uniqueidentifier
|
|
11929
|
+
* * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
|
|
11930
|
+
* * Description: Optional reference to the AI agent run that generated this note.
|
|
11931
|
+
*/
|
|
11932
|
+
get SourceAIAgentRunID(): string | null;
|
|
11933
|
+
set SourceAIAgentRunID(value: string | null);
|
|
11934
|
+
/**
|
|
11935
|
+
* * Field Name: CompanyID
|
|
11936
|
+
* * Display Name: Company ID
|
|
11937
|
+
* * SQL Data Type: uniqueidentifier
|
|
11938
|
+
* * Related Entity/Foreign Key: Companies (vwCompanies.ID)
|
|
11939
|
+
* * Description: Optional company scope for this note. When populated with UserID, creates org+user specific notes.
|
|
11940
|
+
*/
|
|
11941
|
+
get CompanyID(): string | null;
|
|
11942
|
+
set CompanyID(value: string | null);
|
|
11721
11943
|
/**
|
|
11722
11944
|
* * Field Name: Agent
|
|
11723
11945
|
* * Display Name: Agent
|
|
@@ -11736,6 +11958,18 @@ export declare class AIAgentNoteEntity extends BaseEntity<AIAgentNoteEntityType>
|
|
|
11736
11958
|
* * SQL Data Type: nvarchar(100)
|
|
11737
11959
|
*/
|
|
11738
11960
|
get User(): string | null;
|
|
11961
|
+
/**
|
|
11962
|
+
* * Field Name: SourceConversation
|
|
11963
|
+
* * Display Name: Source Conversation
|
|
11964
|
+
* * SQL Data Type: nvarchar(255)
|
|
11965
|
+
*/
|
|
11966
|
+
get SourceConversation(): string | null;
|
|
11967
|
+
/**
|
|
11968
|
+
* * Field Name: Company
|
|
11969
|
+
* * Display Name: Company
|
|
11970
|
+
* * SQL Data Type: nvarchar(50)
|
|
11971
|
+
*/
|
|
11972
|
+
get Company(): string | null;
|
|
11739
11973
|
}
|
|
11740
11974
|
/**
|
|
11741
11975
|
* AI Agent Requests - strongly typed entity sub-class
|
|
@@ -12345,8 +12579,8 @@ if this limit is exceeded.
|
|
|
12345
12579
|
* * Default Value: Always
|
|
12346
12580
|
* * Value List Type: List
|
|
12347
12581
|
* * Possible Values
|
|
12348
|
-
* * Never
|
|
12349
12582
|
* * Always
|
|
12583
|
+
* * Never
|
|
12350
12584
|
* * System Only
|
|
12351
12585
|
* * 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.
|
|
12352
12586
|
*/
|
|
@@ -12369,6 +12603,70 @@ if this limit is exceeded.
|
|
|
12369
12603
|
get TechnicalDesign(): string | null;
|
|
12370
12604
|
set TechnicalDesign(value: string | null);
|
|
12371
12605
|
/**
|
|
12606
|
+
* * Field Name: InjectNotes
|
|
12607
|
+
* * Display Name: Inject Notes
|
|
12608
|
+
* * SQL Data Type: bit
|
|
12609
|
+
* * Default Value: 1
|
|
12610
|
+
* * Description: When enabled, agent notes will be automatically injected into the agent context based on scoping rules.
|
|
12611
|
+
*/
|
|
12612
|
+
get InjectNotes(): boolean;
|
|
12613
|
+
set InjectNotes(value: boolean);
|
|
12614
|
+
/**
|
|
12615
|
+
* * Field Name: MaxNotesToInject
|
|
12616
|
+
* * Display Name: Max Notes To Inject
|
|
12617
|
+
* * SQL Data Type: int
|
|
12618
|
+
* * Default Value: 5
|
|
12619
|
+
* * Description: Maximum number of notes to inject into agent context per request.
|
|
12620
|
+
*/
|
|
12621
|
+
get MaxNotesToInject(): number;
|
|
12622
|
+
set MaxNotesToInject(value: number);
|
|
12623
|
+
/**
|
|
12624
|
+
* * Field Name: NoteInjectionStrategy
|
|
12625
|
+
* * Display Name: Note Injection Strategy
|
|
12626
|
+
* * SQL Data Type: nvarchar(20)
|
|
12627
|
+
* * Default Value: Relevant
|
|
12628
|
+
* * Value List Type: List
|
|
12629
|
+
* * Possible Values
|
|
12630
|
+
* * All
|
|
12631
|
+
* * Recent
|
|
12632
|
+
* * Relevant
|
|
12633
|
+
* * Description: Strategy for selecting which notes to inject: Relevant (semantic search), Recent (most recent first), or All (up to max limit).
|
|
12634
|
+
*/
|
|
12635
|
+
get NoteInjectionStrategy(): 'All' | 'Recent' | 'Relevant';
|
|
12636
|
+
set NoteInjectionStrategy(value: 'All' | 'Recent' | 'Relevant');
|
|
12637
|
+
/**
|
|
12638
|
+
* * Field Name: InjectExamples
|
|
12639
|
+
* * Display Name: Inject Examples
|
|
12640
|
+
* * SQL Data Type: bit
|
|
12641
|
+
* * Default Value: 0
|
|
12642
|
+
* * Description: When enabled, agent examples will be automatically injected into the agent context based on scoping rules.
|
|
12643
|
+
*/
|
|
12644
|
+
get InjectExamples(): boolean;
|
|
12645
|
+
set InjectExamples(value: boolean);
|
|
12646
|
+
/**
|
|
12647
|
+
* * Field Name: MaxExamplesToInject
|
|
12648
|
+
* * Display Name: Max Examples To Inject
|
|
12649
|
+
* * SQL Data Type: int
|
|
12650
|
+
* * Default Value: 3
|
|
12651
|
+
* * Description: Maximum number of examples to inject into agent context per request.
|
|
12652
|
+
*/
|
|
12653
|
+
get MaxExamplesToInject(): number;
|
|
12654
|
+
set MaxExamplesToInject(value: number);
|
|
12655
|
+
/**
|
|
12656
|
+
* * Field Name: ExampleInjectionStrategy
|
|
12657
|
+
* * Display Name: Example Injection Strategy
|
|
12658
|
+
* * SQL Data Type: nvarchar(20)
|
|
12659
|
+
* * Default Value: Semantic
|
|
12660
|
+
* * Value List Type: List
|
|
12661
|
+
* * Possible Values
|
|
12662
|
+
* * Rated
|
|
12663
|
+
* * Recent
|
|
12664
|
+
* * Semantic
|
|
12665
|
+
* * Description: Strategy for selecting which examples to inject: Semantic (vector similarity), Recent (most recent first), or Rated (highest success score first).
|
|
12666
|
+
*/
|
|
12667
|
+
get ExampleInjectionStrategy(): 'Rated' | 'Recent' | 'Semantic';
|
|
12668
|
+
set ExampleInjectionStrategy(value: 'Rated' | 'Recent' | 'Semantic');
|
|
12669
|
+
/**
|
|
12372
12670
|
* * Field Name: Parent
|
|
12373
12671
|
* * Display Name: Parent
|
|
12374
12672
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -22212,6 +22510,15 @@ export declare class FileStorageProviderEntity extends BaseEntity<FileStoragePro
|
|
|
22212
22510
|
* * Default Value: getutcdate()
|
|
22213
22511
|
*/
|
|
22214
22512
|
get __mj_UpdatedAt(): Date;
|
|
22513
|
+
/**
|
|
22514
|
+
* * Field Name: SupportsSearch
|
|
22515
|
+
* * Display Name: Supports Search
|
|
22516
|
+
* * SQL Data Type: bit
|
|
22517
|
+
* * Default Value: 0
|
|
22518
|
+
* * 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.
|
|
22519
|
+
*/
|
|
22520
|
+
get SupportsSearch(): boolean;
|
|
22521
|
+
set SupportsSearch(value: boolean);
|
|
22215
22522
|
}
|
|
22216
22523
|
/**
|
|
22217
22524
|
* Files - strongly typed entity sub-class
|
|
@@ -23775,6 +24082,202 @@ export declare class AIAgentDataSourceEntity extends BaseEntity<AIAgentDataSourc
|
|
|
23775
24082
|
*/
|
|
23776
24083
|
get Agent(): string | null;
|
|
23777
24084
|
}
|
|
24085
|
+
/**
|
|
24086
|
+
* MJ: AI Agent Examples - strongly typed entity sub-class
|
|
24087
|
+
* * Schema: __mj
|
|
24088
|
+
* * Base Table: AIAgentExample
|
|
24089
|
+
* * Base View: vwAIAgentExamples
|
|
24090
|
+
* * @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.
|
|
24091
|
+
* * Primary Key: ID
|
|
24092
|
+
* @extends {BaseEntity}
|
|
24093
|
+
* @class
|
|
24094
|
+
* @public
|
|
24095
|
+
*/
|
|
24096
|
+
export declare class AIAgentExampleEntity extends BaseEntity<AIAgentExampleEntityType> {
|
|
24097
|
+
/**
|
|
24098
|
+
* Loads the MJ: AI Agent Examples record from the database
|
|
24099
|
+
* @param ID: string - primary key value to load the MJ: AI Agent Examples record.
|
|
24100
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
24101
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
24102
|
+
* @public
|
|
24103
|
+
* @async
|
|
24104
|
+
* @memberof AIAgentExampleEntity
|
|
24105
|
+
* @method
|
|
24106
|
+
* @override
|
|
24107
|
+
*/
|
|
24108
|
+
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
24109
|
+
/**
|
|
24110
|
+
* * Field Name: ID
|
|
24111
|
+
* * Display Name: ID
|
|
24112
|
+
* * SQL Data Type: uniqueidentifier
|
|
24113
|
+
* * Default Value: newsequentialid()
|
|
24114
|
+
*/
|
|
24115
|
+
get ID(): string;
|
|
24116
|
+
set ID(value: string);
|
|
24117
|
+
/**
|
|
24118
|
+
* * Field Name: AgentID
|
|
24119
|
+
* * Display Name: Agent ID
|
|
24120
|
+
* * SQL Data Type: uniqueidentifier
|
|
24121
|
+
* * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
|
|
24122
|
+
* * Description: The AI agent this example is associated with. Examples are always agent-specific.
|
|
24123
|
+
*/
|
|
24124
|
+
get AgentID(): string;
|
|
24125
|
+
set AgentID(value: string);
|
|
24126
|
+
/**
|
|
24127
|
+
* * Field Name: UserID
|
|
24128
|
+
* * Display Name: User ID
|
|
24129
|
+
* * SQL Data Type: uniqueidentifier
|
|
24130
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
24131
|
+
* * Description: Optional user scope. When populated, this example is specific to this user.
|
|
24132
|
+
*/
|
|
24133
|
+
get UserID(): string | null;
|
|
24134
|
+
set UserID(value: string | null);
|
|
24135
|
+
/**
|
|
24136
|
+
* * Field Name: CompanyID
|
|
24137
|
+
* * Display Name: Company ID
|
|
24138
|
+
* * SQL Data Type: uniqueidentifier
|
|
24139
|
+
* * Related Entity/Foreign Key: Companies (vwCompanies.ID)
|
|
24140
|
+
* * Description: Optional company scope. When populated, this example is specific to this company.
|
|
24141
|
+
*/
|
|
24142
|
+
get CompanyID(): string | null;
|
|
24143
|
+
set CompanyID(value: string | null);
|
|
24144
|
+
/**
|
|
24145
|
+
* * Field Name: Type
|
|
24146
|
+
* * Display Name: Type
|
|
24147
|
+
* * SQL Data Type: nvarchar(20)
|
|
24148
|
+
* * Default Value: Example
|
|
24149
|
+
* * Value List Type: List
|
|
24150
|
+
* * Possible Values
|
|
24151
|
+
* * Constraint
|
|
24152
|
+
* * Context
|
|
24153
|
+
* * Example
|
|
24154
|
+
* * Issue
|
|
24155
|
+
* * Preference
|
|
24156
|
+
* * 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).
|
|
24157
|
+
*/
|
|
24158
|
+
get Type(): 'Constraint' | 'Context' | 'Example' | 'Issue' | 'Preference';
|
|
24159
|
+
set Type(value: 'Constraint' | 'Context' | 'Example' | 'Issue' | 'Preference');
|
|
24160
|
+
/**
|
|
24161
|
+
* * Field Name: ExampleInput
|
|
24162
|
+
* * Display Name: Example Input
|
|
24163
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
24164
|
+
* * Description: The input text or prompt that was provided in this example interaction.
|
|
24165
|
+
*/
|
|
24166
|
+
get ExampleInput(): string;
|
|
24167
|
+
set ExampleInput(value: string);
|
|
24168
|
+
/**
|
|
24169
|
+
* * Field Name: ExampleOutput
|
|
24170
|
+
* * Display Name: Example Output
|
|
24171
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
24172
|
+
* * Description: The successful output or response that the agent provided for this example.
|
|
24173
|
+
*/
|
|
24174
|
+
get ExampleOutput(): string;
|
|
24175
|
+
set ExampleOutput(value: string);
|
|
24176
|
+
/**
|
|
24177
|
+
* * Field Name: IsAutoGenerated
|
|
24178
|
+
* * Display Name: Is Auto Generated
|
|
24179
|
+
* * SQL Data Type: bit
|
|
24180
|
+
* * Default Value: 0
|
|
24181
|
+
* * Description: Indicates whether this example was automatically captured (1) or manually created (0).
|
|
24182
|
+
*/
|
|
24183
|
+
get IsAutoGenerated(): boolean;
|
|
24184
|
+
set IsAutoGenerated(value: boolean);
|
|
24185
|
+
/**
|
|
24186
|
+
* * Field Name: SourceConversationID
|
|
24187
|
+
* * Display Name: Source Conversation ID
|
|
24188
|
+
* * SQL Data Type: uniqueidentifier
|
|
24189
|
+
* * Related Entity/Foreign Key: Conversations (vwConversations.ID)
|
|
24190
|
+
* * Description: Optional reference to the conversation where this example originated.
|
|
24191
|
+
*/
|
|
24192
|
+
get SourceConversationID(): string | null;
|
|
24193
|
+
set SourceConversationID(value: string | null);
|
|
24194
|
+
/**
|
|
24195
|
+
* * Field Name: SourceConversationDetailID
|
|
24196
|
+
* * Display Name: Source Conversation Detail ID
|
|
24197
|
+
* * SQL Data Type: uniqueidentifier
|
|
24198
|
+
* * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
|
|
24199
|
+
* * Description: Optional reference to the specific conversation message that represents this example.
|
|
24200
|
+
*/
|
|
24201
|
+
get SourceConversationDetailID(): string | null;
|
|
24202
|
+
set SourceConversationDetailID(value: string | null);
|
|
24203
|
+
/**
|
|
24204
|
+
* * Field Name: SourceAIAgentRunID
|
|
24205
|
+
* * Display Name: Source AI Agent Run ID
|
|
24206
|
+
* * SQL Data Type: uniqueidentifier
|
|
24207
|
+
* * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
|
|
24208
|
+
* * Description: Optional reference to the AI agent run that generated this example.
|
|
24209
|
+
*/
|
|
24210
|
+
get SourceAIAgentRunID(): string | null;
|
|
24211
|
+
set SourceAIAgentRunID(value: string | null);
|
|
24212
|
+
/**
|
|
24213
|
+
* * Field Name: SuccessScore
|
|
24214
|
+
* * Display Name: Success Score
|
|
24215
|
+
* * SQL Data Type: decimal(5, 2)
|
|
24216
|
+
* * Description: Optional success score (0-100) indicating the quality or effectiveness of this example based on user feedback or metrics.
|
|
24217
|
+
*/
|
|
24218
|
+
get SuccessScore(): number | null;
|
|
24219
|
+
set SuccessScore(value: number | null);
|
|
24220
|
+
/**
|
|
24221
|
+
* * Field Name: Comments
|
|
24222
|
+
* * Display Name: Comments
|
|
24223
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
24224
|
+
* * Description: Internal comments about this example, not included in agent context injection.
|
|
24225
|
+
*/
|
|
24226
|
+
get Comments(): string | null;
|
|
24227
|
+
set Comments(value: string | null);
|
|
24228
|
+
/**
|
|
24229
|
+
* * Field Name: Status
|
|
24230
|
+
* * Display Name: Status
|
|
24231
|
+
* * SQL Data Type: nvarchar(20)
|
|
24232
|
+
* * Default Value: Active
|
|
24233
|
+
* * Value List Type: List
|
|
24234
|
+
* * Possible Values
|
|
24235
|
+
* * Active
|
|
24236
|
+
* * Pending
|
|
24237
|
+
* * Revoked
|
|
24238
|
+
* * Description: Status of the example: Pending (awaiting review), Active (in use), or Revoked (disabled).
|
|
24239
|
+
*/
|
|
24240
|
+
get Status(): 'Active' | 'Pending' | 'Revoked';
|
|
24241
|
+
set Status(value: 'Active' | 'Pending' | 'Revoked');
|
|
24242
|
+
/**
|
|
24243
|
+
* * Field Name: __mj_CreatedAt
|
|
24244
|
+
* * Display Name: Created At
|
|
24245
|
+
* * SQL Data Type: datetimeoffset
|
|
24246
|
+
* * Default Value: getutcdate()
|
|
24247
|
+
*/
|
|
24248
|
+
get __mj_CreatedAt(): Date;
|
|
24249
|
+
/**
|
|
24250
|
+
* * Field Name: __mj_UpdatedAt
|
|
24251
|
+
* * Display Name: Updated At
|
|
24252
|
+
* * SQL Data Type: datetimeoffset
|
|
24253
|
+
* * Default Value: getutcdate()
|
|
24254
|
+
*/
|
|
24255
|
+
get __mj_UpdatedAt(): Date;
|
|
24256
|
+
/**
|
|
24257
|
+
* * Field Name: Agent
|
|
24258
|
+
* * Display Name: Agent
|
|
24259
|
+
* * SQL Data Type: nvarchar(255)
|
|
24260
|
+
*/
|
|
24261
|
+
get Agent(): string | null;
|
|
24262
|
+
/**
|
|
24263
|
+
* * Field Name: User
|
|
24264
|
+
* * Display Name: User
|
|
24265
|
+
* * SQL Data Type: nvarchar(100)
|
|
24266
|
+
*/
|
|
24267
|
+
get User(): string | null;
|
|
24268
|
+
/**
|
|
24269
|
+
* * Field Name: Company
|
|
24270
|
+
* * Display Name: Company
|
|
24271
|
+
* * SQL Data Type: nvarchar(50)
|
|
24272
|
+
*/
|
|
24273
|
+
get Company(): string | null;
|
|
24274
|
+
/**
|
|
24275
|
+
* * Field Name: SourceConversation
|
|
24276
|
+
* * Display Name: Source Conversation
|
|
24277
|
+
* * SQL Data Type: nvarchar(255)
|
|
24278
|
+
*/
|
|
24279
|
+
get SourceConversation(): string | null;
|
|
24280
|
+
}
|
|
23778
24281
|
/**
|
|
23779
24282
|
* MJ: AI Agent Permissions - strongly typed entity sub-class
|
|
23780
24283
|
* * Schema: __mj
|
|
@@ -24279,13 +24782,15 @@ export declare class AIAgentRunStepEntity extends BaseEntity<AIAgentRunStepEntit
|
|
|
24279
24782
|
* * Actions
|
|
24280
24783
|
* * Chat
|
|
24281
24784
|
* * Decision
|
|
24785
|
+
* * ForEach
|
|
24282
24786
|
* * Prompt
|
|
24283
24787
|
* * Sub-Agent
|
|
24284
24788
|
* * Validation
|
|
24789
|
+
* * While
|
|
24285
24790
|
* * Description: Type of execution step: Prompt, Actions, Sub-Agent, Decision, Chat, Validation
|
|
24286
24791
|
*/
|
|
24287
|
-
get StepType(): 'Actions' | 'Chat' | 'Decision' | 'Prompt' | 'Sub-Agent' | 'Validation';
|
|
24288
|
-
set StepType(value: 'Actions' | 'Chat' | 'Decision' | 'Prompt' | 'Sub-Agent' | 'Validation');
|
|
24792
|
+
get StepType(): 'Actions' | 'Chat' | 'Decision' | 'ForEach' | 'Prompt' | 'Sub-Agent' | 'Validation' | 'While';
|
|
24793
|
+
set StepType(value: 'Actions' | 'Chat' | 'Decision' | 'ForEach' | 'Prompt' | 'Sub-Agent' | 'Validation' | 'While');
|
|
24289
24794
|
/**
|
|
24290
24795
|
* * Field Name: StepName
|
|
24291
24796
|
* * Display Name: Step Name
|
|
@@ -24726,13 +25231,15 @@ export declare class AIAgentRunEntity extends BaseEntity<AIAgentRunEntityType> {
|
|
|
24726
25231
|
* * Actions
|
|
24727
25232
|
* * Chat
|
|
24728
25233
|
* * Failed
|
|
25234
|
+
* * ForEach
|
|
24729
25235
|
* * Retry
|
|
24730
25236
|
* * Sub-Agent
|
|
24731
25237
|
* * Success
|
|
25238
|
+
* * While
|
|
24732
25239
|
* * Description: The final step type that concluded the agent run
|
|
24733
25240
|
*/
|
|
24734
|
-
get FinalStep(): 'Actions' | 'Chat' | 'Failed' | 'Retry' | 'Sub-Agent' | 'Success' | null;
|
|
24735
|
-
set FinalStep(value: 'Actions' | 'Chat' | 'Failed' | 'Retry' | 'Sub-Agent' | 'Success' | null);
|
|
25241
|
+
get FinalStep(): 'Actions' | 'Chat' | 'Failed' | 'ForEach' | 'Retry' | 'Sub-Agent' | 'Success' | 'While' | null;
|
|
25242
|
+
set FinalStep(value: 'Actions' | 'Chat' | 'Failed' | 'ForEach' | 'Retry' | 'Sub-Agent' | 'Success' | 'While' | null);
|
|
24736
25243
|
/**
|
|
24737
25244
|
* * Field Name: FinalPayload
|
|
24738
25245
|
* * Display Name: Final Payload
|
|
@@ -25107,12 +25614,14 @@ export declare class AIAgentStepEntity extends BaseEntity<AIAgentStepEntityType>
|
|
|
25107
25614
|
* * Value List Type: List
|
|
25108
25615
|
* * Possible Values
|
|
25109
25616
|
* * Action
|
|
25617
|
+
* * ForEach
|
|
25110
25618
|
* * Prompt
|
|
25111
25619
|
* * Sub-Agent
|
|
25620
|
+
* * While
|
|
25112
25621
|
* * Description: Type of step: Action (execute an action), Sub-Agent (delegate to another agent), or Prompt (run an AI prompt)
|
|
25113
25622
|
*/
|
|
25114
|
-
get StepType(): 'Action' | 'Prompt' | 'Sub-Agent';
|
|
25115
|
-
set StepType(value: 'Action' | 'Prompt' | 'Sub-Agent');
|
|
25623
|
+
get StepType(): 'Action' | 'ForEach' | 'Prompt' | 'Sub-Agent' | 'While';
|
|
25624
|
+
set StepType(value: 'Action' | 'ForEach' | 'Prompt' | 'Sub-Agent' | 'While');
|
|
25116
25625
|
/**
|
|
25117
25626
|
* * Field Name: StartingStep
|
|
25118
25627
|
* * Display Name: Starting Step
|
|
@@ -25252,6 +25761,27 @@ export declare class AIAgentStepEntity extends BaseEntity<AIAgentStepEntityType>
|
|
|
25252
25761
|
get ActionInputMapping(): string | null;
|
|
25253
25762
|
set ActionInputMapping(value: string | null);
|
|
25254
25763
|
/**
|
|
25764
|
+
* * Field Name: LoopBodyType
|
|
25765
|
+
* * Display Name: Loop Body Type
|
|
25766
|
+
* * SQL Data Type: nvarchar(50)
|
|
25767
|
+
* * Value List Type: List
|
|
25768
|
+
* * Possible Values
|
|
25769
|
+
* * Action
|
|
25770
|
+
* * Prompt
|
|
25771
|
+
* * Sub-Agent
|
|
25772
|
+
* * Description: Specifies what type of operation executes in the loop body. Values: Action, Sub-Agent, Prompt. Only used when StepType is ForEach or While.
|
|
25773
|
+
*/
|
|
25774
|
+
get LoopBodyType(): 'Action' | 'Prompt' | 'Sub-Agent' | null;
|
|
25775
|
+
set LoopBodyType(value: 'Action' | 'Prompt' | 'Sub-Agent' | null);
|
|
25776
|
+
/**
|
|
25777
|
+
* * Field Name: Configuration
|
|
25778
|
+
* * Display Name: Configuration
|
|
25779
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
25780
|
+
* * 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.
|
|
25781
|
+
*/
|
|
25782
|
+
get Configuration(): string | null;
|
|
25783
|
+
set Configuration(value: string | null);
|
|
25784
|
+
/**
|
|
25255
25785
|
* * Field Name: Agent
|
|
25256
25786
|
* * Display Name: Agent
|
|
25257
25787
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -28072,8 +28602,8 @@ export declare class ArtifactEntity extends BaseEntity<ArtifactEntityType> {
|
|
|
28072
28602
|
* * Default Value: Always
|
|
28073
28603
|
* * Value List Type: List
|
|
28074
28604
|
* * Possible Values
|
|
28075
|
-
* * System Only
|
|
28076
28605
|
* * Always
|
|
28606
|
+
* * System Only
|
|
28077
28607
|
* * 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).
|
|
28078
28608
|
*/
|
|
28079
28609
|
get Visibility(): 'Always' | 'System Only';
|
|
@@ -34542,6 +35072,7 @@ export declare class RoleEntity extends BaseEntity<RoleEntityType> {
|
|
|
34542
35072
|
/**
|
|
34543
35073
|
* * Field Name: Name
|
|
34544
35074
|
* * SQL Data Type: nvarchar(50)
|
|
35075
|
+
* * 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.
|
|
34545
35076
|
*/
|
|
34546
35077
|
get Name(): string;
|
|
34547
35078
|
set Name(value: string);
|