@memberjunction/server 2.74.0 → 2.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/generated.d.ts +162 -0
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +994 -0
- package/dist/generated/generated.js.map +1 -1
- package/dist/resolvers/CreateQueryResolver.d.ts +12 -3
- package/dist/resolvers/CreateQueryResolver.d.ts.map +1 -1
- package/dist/resolvers/CreateQueryResolver.js +114 -64
- package/dist/resolvers/CreateQueryResolver.js.map +1 -1
- package/dist/resolvers/GetDataResolver.d.ts.map +1 -1
- package/dist/resolvers/GetDataResolver.js +3 -0
- package/dist/resolvers/GetDataResolver.js.map +1 -1
- package/dist/resolvers/QueryResolver.d.ts +4 -3
- package/dist/resolvers/QueryResolver.d.ts.map +1 -1
- package/dist/resolvers/QueryResolver.js +51 -15
- package/dist/resolvers/QueryResolver.js.map +1 -1
- package/dist/resolvers/RunAIPromptResolver.d.ts +1 -1
- package/dist/resolvers/RunAIPromptResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIPromptResolver.js +6 -2
- package/dist/resolvers/RunAIPromptResolver.js.map +1 -1
- package/package.json +34 -34
- package/src/generated/generated.ts +623 -1
- package/src/resolvers/CreateQueryResolver.ts +94 -60
- package/src/resolvers/GetDataResolver.ts +3 -0
- package/src/resolvers/QueryResolver.ts +46 -12
- package/src/resolvers/RunAIPromptResolver.ts +5 -1
|
@@ -576,6 +576,8 @@ export declare class AIAgent_ {
|
|
|
576
576
|
AIAgentLearningCycles_AgentIDArray: AIAgentLearningCycle_[];
|
|
577
577
|
AIAgentModels_AgentIDArray: AIAgentModel_[];
|
|
578
578
|
AIAgentActions_AgentIDArray: AIAgentAction_[];
|
|
579
|
+
MJ_AIAgentSteps_AgentIDArray: AIAgentStep_[];
|
|
580
|
+
MJ_AIAgentSteps_SubAgentIDArray: AIAgentStep_[];
|
|
579
581
|
MJ_AIAgentPrompts_AgentIDArray: AIAgentPrompt_[];
|
|
580
582
|
MJ_AIAgentRuns_AgentIDArray: AIAgentRun_[];
|
|
581
583
|
AIAgentNotes_AgentIDArray: AIAgentNote_[];
|
|
@@ -672,6 +674,8 @@ export declare class AIAgentResolver extends ResolverBase {
|
|
|
672
674
|
AIAgentLearningCycles_AgentIDArray(aiagent_: AIAgent_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
673
675
|
AIAgentModels_AgentIDArray(aiagent_: AIAgent_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
674
676
|
AIAgentActions_AgentIDArray(aiagent_: AIAgent_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
677
|
+
MJ_AIAgentSteps_AgentIDArray(aiagent_: AIAgent_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
678
|
+
MJ_AIAgentSteps_SubAgentIDArray(aiagent_: AIAgent_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
675
679
|
MJ_AIAgentPrompts_AgentIDArray(aiagent_: AIAgent_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
676
680
|
MJ_AIAgentRuns_AgentIDArray(aiagent_: AIAgent_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
677
681
|
AIAgentNotes_AgentIDArray(aiagent_: AIAgent_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
@@ -682,6 +686,98 @@ export declare class AIAgentResolver extends ResolverBase {
|
|
|
682
686
|
UpdateAIAgent(input: UpdateAIAgentInput, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any>;
|
|
683
687
|
DeleteAIAgent(ID: string, options: DeleteOptionsInput, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any>;
|
|
684
688
|
}
|
|
689
|
+
export declare class AIAgentStep_ {
|
|
690
|
+
ID: string;
|
|
691
|
+
AgentID: string;
|
|
692
|
+
Name: string;
|
|
693
|
+
Description?: string;
|
|
694
|
+
StepType: string;
|
|
695
|
+
StartingStep: boolean;
|
|
696
|
+
TimeoutSeconds?: number;
|
|
697
|
+
RetryCount: number;
|
|
698
|
+
OnErrorBehavior: string;
|
|
699
|
+
ActionID?: string;
|
|
700
|
+
SubAgentID?: string;
|
|
701
|
+
PromptID?: string;
|
|
702
|
+
ActionOutputMapping?: string;
|
|
703
|
+
PositionX: number;
|
|
704
|
+
PositionY: number;
|
|
705
|
+
Width: number;
|
|
706
|
+
Height: number;
|
|
707
|
+
_mj__CreatedAt: Date;
|
|
708
|
+
_mj__UpdatedAt: Date;
|
|
709
|
+
Status: string;
|
|
710
|
+
ActionInputMapping?: string;
|
|
711
|
+
Agent?: string;
|
|
712
|
+
Action?: string;
|
|
713
|
+
SubAgent?: string;
|
|
714
|
+
Prompt?: string;
|
|
715
|
+
MJ_AIAgentStepPaths_DestinationStepIDArray: AIAgentStepPath_[];
|
|
716
|
+
MJ_AIAgentStepPaths_OriginStepIDArray: AIAgentStepPath_[];
|
|
717
|
+
}
|
|
718
|
+
export declare class CreateAIAgentStepInput {
|
|
719
|
+
ID?: string;
|
|
720
|
+
AgentID?: string;
|
|
721
|
+
Name?: string;
|
|
722
|
+
Description: string | null;
|
|
723
|
+
StepType?: string;
|
|
724
|
+
StartingStep?: boolean;
|
|
725
|
+
TimeoutSeconds?: number | null;
|
|
726
|
+
RetryCount?: number;
|
|
727
|
+
OnErrorBehavior?: string;
|
|
728
|
+
ActionID: string | null;
|
|
729
|
+
SubAgentID: string | null;
|
|
730
|
+
PromptID: string | null;
|
|
731
|
+
ActionOutputMapping: string | null;
|
|
732
|
+
PositionX?: number;
|
|
733
|
+
PositionY?: number;
|
|
734
|
+
Width?: number;
|
|
735
|
+
Height?: number;
|
|
736
|
+
Status?: string;
|
|
737
|
+
ActionInputMapping: string | null;
|
|
738
|
+
}
|
|
739
|
+
export declare class UpdateAIAgentStepInput {
|
|
740
|
+
ID: string;
|
|
741
|
+
AgentID?: string;
|
|
742
|
+
Name?: string;
|
|
743
|
+
Description?: string | null;
|
|
744
|
+
StepType?: string;
|
|
745
|
+
StartingStep?: boolean;
|
|
746
|
+
TimeoutSeconds?: number | null;
|
|
747
|
+
RetryCount?: number;
|
|
748
|
+
OnErrorBehavior?: string;
|
|
749
|
+
ActionID?: string | null;
|
|
750
|
+
SubAgentID?: string | null;
|
|
751
|
+
PromptID?: string | null;
|
|
752
|
+
ActionOutputMapping?: string | null;
|
|
753
|
+
PositionX?: number;
|
|
754
|
+
PositionY?: number;
|
|
755
|
+
Width?: number;
|
|
756
|
+
Height?: number;
|
|
757
|
+
Status?: string;
|
|
758
|
+
ActionInputMapping?: string | null;
|
|
759
|
+
OldValues___?: KeyValuePairInput[];
|
|
760
|
+
}
|
|
761
|
+
export declare class RunAIAgentStepViewResult {
|
|
762
|
+
Results: AIAgentStep_[];
|
|
763
|
+
UserViewRunID?: string;
|
|
764
|
+
RowCount: number;
|
|
765
|
+
TotalRowCount: number;
|
|
766
|
+
ExecutionTime: number;
|
|
767
|
+
ErrorMessage?: string;
|
|
768
|
+
Success: boolean;
|
|
769
|
+
}
|
|
770
|
+
export declare class AIAgentStepResolver extends ResolverBase {
|
|
771
|
+
RunAIAgentStepViewByID(input: RunViewByIDInput, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<import("@memberjunction/core").RunViewResult<any>>;
|
|
772
|
+
RunAIAgentStepViewByName(input: RunViewByNameInput, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<import("@memberjunction/core").RunViewResult<any>>;
|
|
773
|
+
RunAIAgentStepDynamicView(input: RunDynamicViewInput, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<import("@memberjunction/core").RunViewResult<any>>;
|
|
774
|
+
AIAgentStep(ID: string, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<AIAgentStep_ | null>;
|
|
775
|
+
MJ_AIAgentStepPaths_DestinationStepIDArray(aiagentstep_: AIAgentStep_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
776
|
+
MJ_AIAgentStepPaths_OriginStepIDArray(aiagentstep_: AIAgentStep_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
777
|
+
CreateAIAgentStep(input: CreateAIAgentStepInput, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any>;
|
|
778
|
+
UpdateAIAgentStep(input: UpdateAIAgentStepInput, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any>;
|
|
779
|
+
DeleteAIAgentStep(ID: string, options: DeleteOptionsInput, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any>;
|
|
780
|
+
}
|
|
685
781
|
export declare class AIModelCost_ {
|
|
686
782
|
ID: string;
|
|
687
783
|
ModelID: string;
|
|
@@ -829,6 +925,9 @@ export declare class AIAgentType_ {
|
|
|
829
925
|
_mj__UpdatedAt: Date;
|
|
830
926
|
AgentPromptPlaceholder?: string;
|
|
831
927
|
DriverClass?: string;
|
|
928
|
+
UIFormSectionKey?: string;
|
|
929
|
+
UIFormKey?: string;
|
|
930
|
+
UIFormSectionExpandedByDefault: boolean;
|
|
832
931
|
SystemPrompt?: string;
|
|
833
932
|
AIAgents_TypeIDArray: AIAgent_[];
|
|
834
933
|
}
|
|
@@ -840,6 +939,9 @@ export declare class CreateAIAgentTypeInput {
|
|
|
840
939
|
IsActive?: boolean;
|
|
841
940
|
AgentPromptPlaceholder: string | null;
|
|
842
941
|
DriverClass: string | null;
|
|
942
|
+
UIFormSectionKey: string | null;
|
|
943
|
+
UIFormKey: string | null;
|
|
944
|
+
UIFormSectionExpandedByDefault?: boolean;
|
|
843
945
|
}
|
|
844
946
|
export declare class UpdateAIAgentTypeInput {
|
|
845
947
|
ID: string;
|
|
@@ -849,6 +951,9 @@ export declare class UpdateAIAgentTypeInput {
|
|
|
849
951
|
IsActive?: boolean;
|
|
850
952
|
AgentPromptPlaceholder?: string | null;
|
|
851
953
|
DriverClass?: string | null;
|
|
954
|
+
UIFormSectionKey?: string | null;
|
|
955
|
+
UIFormKey?: string | null;
|
|
956
|
+
UIFormSectionExpandedByDefault?: boolean;
|
|
852
957
|
OldValues___?: KeyValuePairInput[];
|
|
853
958
|
}
|
|
854
959
|
export declare class RunAIAgentTypeViewResult {
|
|
@@ -1065,6 +1170,7 @@ export declare class AIPrompt_ {
|
|
|
1065
1170
|
MJ_AIConfigurations_DefaultPromptForContextSummarizationIDArray: AIConfiguration_[];
|
|
1066
1171
|
AIPrompts_ResultSelectorPromptIDArray: AIPrompt_[];
|
|
1067
1172
|
MJ_AIPromptModels_PromptIDArray: AIPromptModel_[];
|
|
1173
|
+
MJ_AIAgentSteps_PromptIDArray: AIAgentStep_[];
|
|
1068
1174
|
MJ_AIAgentPrompts_PromptIDArray: AIAgentPrompt_[];
|
|
1069
1175
|
MJ_AIPromptRuns_PromptIDArray: AIPromptRun_[];
|
|
1070
1176
|
AIAgents_ContextCompressionPromptIDArray: AIAgent_[];
|
|
@@ -1190,6 +1296,7 @@ export declare class AIPromptResolver extends ResolverBase {
|
|
|
1190
1296
|
MJ_AIConfigurations_DefaultPromptForContextSummarizationIDArray(aiprompt_: AIPrompt_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
1191
1297
|
AIPrompts_ResultSelectorPromptIDArray(aiprompt_: AIPrompt_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
1192
1298
|
MJ_AIPromptModels_PromptIDArray(aiprompt_: AIPrompt_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
1299
|
+
MJ_AIAgentSteps_PromptIDArray(aiprompt_: AIPrompt_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
1193
1300
|
MJ_AIAgentPrompts_PromptIDArray(aiprompt_: AIPrompt_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
1194
1301
|
MJ_AIPromptRuns_PromptIDArray(aiprompt_: AIPrompt_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
1195
1302
|
AIAgents_ContextCompressionPromptIDArray(aiprompt_: AIPrompt_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
@@ -7102,6 +7209,7 @@ export declare class Action_ {
|
|
|
7102
7209
|
AIAgentActions_ActionIDArray: AIAgentAction_[];
|
|
7103
7210
|
ActionContexts_ActionIDArray: ActionContext_[];
|
|
7104
7211
|
EntityActions_ActionIDArray: EntityAction_[];
|
|
7212
|
+
MJ_AIAgentSteps_ActionIDArray: AIAgentStep_[];
|
|
7105
7213
|
ActionExecutionLogs_ActionIDArray: ActionExecutionLog_[];
|
|
7106
7214
|
ActionAuthorizations_ActionIDArray: ActionAuthorization_[];
|
|
7107
7215
|
Actions_ParentIDArray: Action_[];
|
|
@@ -7172,6 +7280,7 @@ export declare class ActionResolver extends ResolverBase {
|
|
|
7172
7280
|
AIAgentActions_ActionIDArray(action_: Action_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
7173
7281
|
ActionContexts_ActionIDArray(action_: Action_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
7174
7282
|
EntityActions_ActionIDArray(action_: Action_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
7283
|
+
MJ_AIAgentSteps_ActionIDArray(action_: Action_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
7175
7284
|
ActionExecutionLogs_ActionIDArray(action_: Action_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
7176
7285
|
ActionAuthorizations_ActionIDArray(action_: Action_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
7177
7286
|
Actions_ParentIDArray(action_: Action_, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any[]>;
|
|
@@ -9994,6 +10103,7 @@ export declare class AIPromptRun_ {
|
|
|
9994
10103
|
OriginalModelID?: string;
|
|
9995
10104
|
OriginalRequestStartTime?: Date;
|
|
9996
10105
|
TotalFailoverDuration?: number;
|
|
10106
|
+
RerunFromPromptRunID?: string;
|
|
9997
10107
|
Prompt: string;
|
|
9998
10108
|
Model: string;
|
|
9999
10109
|
Vendor: string;
|
|
@@ -10062,6 +10172,7 @@ export declare class CreateAIPromptRunInput {
|
|
|
10062
10172
|
OriginalModelID: string | null;
|
|
10063
10173
|
OriginalRequestStartTime: Date | null;
|
|
10064
10174
|
TotalFailoverDuration: number | null;
|
|
10175
|
+
RerunFromPromptRunID: string | null;
|
|
10065
10176
|
}
|
|
10066
10177
|
export declare class UpdateAIPromptRunInput {
|
|
10067
10178
|
ID: string;
|
|
@@ -10122,6 +10233,7 @@ export declare class UpdateAIPromptRunInput {
|
|
|
10122
10233
|
OriginalModelID?: string | null;
|
|
10123
10234
|
OriginalRequestStartTime?: Date | null;
|
|
10124
10235
|
TotalFailoverDuration?: number | null;
|
|
10236
|
+
RerunFromPromptRunID?: string | null;
|
|
10125
10237
|
OldValues___?: KeyValuePairInput[];
|
|
10126
10238
|
}
|
|
10127
10239
|
export declare class RunAIPromptRunViewResult {
|
|
@@ -10306,6 +10418,56 @@ export declare class AIModelPriceUnitTypeResolver extends ResolverBase {
|
|
|
10306
10418
|
UpdateAIModelPriceUnitType(input: UpdateAIModelPriceUnitTypeInput, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any>;
|
|
10307
10419
|
DeleteAIModelPriceUnitType(ID: string, options: DeleteOptionsInput, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any>;
|
|
10308
10420
|
}
|
|
10421
|
+
export declare class AIAgentStepPath_ {
|
|
10422
|
+
ID: string;
|
|
10423
|
+
OriginStepID: string;
|
|
10424
|
+
DestinationStepID: string;
|
|
10425
|
+
Condition?: string;
|
|
10426
|
+
Priority: number;
|
|
10427
|
+
Description?: string;
|
|
10428
|
+
PathPoints?: string;
|
|
10429
|
+
_mj__CreatedAt: Date;
|
|
10430
|
+
_mj__UpdatedAt: Date;
|
|
10431
|
+
OriginStep: string;
|
|
10432
|
+
DestinationStep: string;
|
|
10433
|
+
}
|
|
10434
|
+
export declare class CreateAIAgentStepPathInput {
|
|
10435
|
+
ID?: string;
|
|
10436
|
+
OriginStepID?: string;
|
|
10437
|
+
DestinationStepID?: string;
|
|
10438
|
+
Condition: string | null;
|
|
10439
|
+
Priority?: number;
|
|
10440
|
+
Description: string | null;
|
|
10441
|
+
PathPoints: string | null;
|
|
10442
|
+
}
|
|
10443
|
+
export declare class UpdateAIAgentStepPathInput {
|
|
10444
|
+
ID: string;
|
|
10445
|
+
OriginStepID?: string;
|
|
10446
|
+
DestinationStepID?: string;
|
|
10447
|
+
Condition?: string | null;
|
|
10448
|
+
Priority?: number;
|
|
10449
|
+
Description?: string | null;
|
|
10450
|
+
PathPoints?: string | null;
|
|
10451
|
+
OldValues___?: KeyValuePairInput[];
|
|
10452
|
+
}
|
|
10453
|
+
export declare class RunAIAgentStepPathViewResult {
|
|
10454
|
+
Results: AIAgentStepPath_[];
|
|
10455
|
+
UserViewRunID?: string;
|
|
10456
|
+
RowCount: number;
|
|
10457
|
+
TotalRowCount: number;
|
|
10458
|
+
ExecutionTime: number;
|
|
10459
|
+
ErrorMessage?: string;
|
|
10460
|
+
Success: boolean;
|
|
10461
|
+
}
|
|
10462
|
+
export declare class AIAgentStepPathResolver extends ResolverBase {
|
|
10463
|
+
RunAIAgentStepPathViewByID(input: RunViewByIDInput, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<import("@memberjunction/core").RunViewResult<any>>;
|
|
10464
|
+
RunAIAgentStepPathViewByName(input: RunViewByNameInput, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<import("@memberjunction/core").RunViewResult<any>>;
|
|
10465
|
+
RunAIAgentStepPathDynamicView(input: RunDynamicViewInput, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<import("@memberjunction/core").RunViewResult<any>>;
|
|
10466
|
+
AIAgentStepPath(ID: string, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<AIAgentStepPath_ | null>;
|
|
10467
|
+
CreateAIAgentStepPath(input: CreateAIAgentStepPathInput, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any>;
|
|
10468
|
+
UpdateAIAgentStepPath(input: UpdateAIAgentStepPathInput, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any>;
|
|
10469
|
+
DeleteAIAgentStepPath(ID: string, options: DeleteOptionsInput, { dataSources, userPayload }: AppContext, pubSub: PubSubEngine): Promise<any>;
|
|
10470
|
+
}
|
|
10309
10471
|
export declare class AIAgentLearningCycle_ {
|
|
10310
10472
|
ID: string;
|
|
10311
10473
|
AgentID: string;
|