@memberjunction/server 2.61.0 → 2.62.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.62.0",
|
|
4
4
|
"description": "MemberJunction: This project provides API access via GraphQL to the common data store.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -22,35 +22,35 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@apollo/server": "^4.9.1",
|
|
24
24
|
"@graphql-tools/utils": "^10.0.1",
|
|
25
|
-
"@memberjunction/actions": "2.
|
|
26
|
-
"@memberjunction/ai": "2.
|
|
27
|
-
"@memberjunction/ai-core-plus": "2.
|
|
28
|
-
"@memberjunction/ai-agents": "2.
|
|
29
|
-
"@memberjunction/aiengine": "2.
|
|
30
|
-
"@memberjunction/ai-prompts": "2.
|
|
31
|
-
"@memberjunction/ai-agent-manager-actions": "2.
|
|
32
|
-
"@memberjunction/ai-mistral": "2.
|
|
33
|
-
"@memberjunction/ai-openai": "2.
|
|
34
|
-
"@memberjunction/ai-anthropic": "2.
|
|
35
|
-
"@memberjunction/ai-groq": "2.
|
|
36
|
-
"@memberjunction/ai-cerebras": "2.
|
|
37
|
-
"@memberjunction/ai-vectors-pinecone": "2.
|
|
38
|
-
"@memberjunction/core": "2.
|
|
39
|
-
"@memberjunction/core-actions": "2.
|
|
40
|
-
"@memberjunction/core-entities": "2.
|
|
41
|
-
"@memberjunction/core-entities-server": "2.
|
|
42
|
-
"@memberjunction/data-context": "2.
|
|
43
|
-
"@memberjunction/data-context-server": "2.
|
|
44
|
-
"@memberjunction/doc-utils": "2.
|
|
45
|
-
"@memberjunction/entity-communications-server": "2.
|
|
46
|
-
"@memberjunction/external-change-detection": "2.
|
|
47
|
-
"@memberjunction/global": "2.
|
|
48
|
-
"@memberjunction/graphql-dataprovider": "2.
|
|
49
|
-
"@memberjunction/queue": "2.
|
|
50
|
-
"@memberjunction/skip-types": "2.
|
|
51
|
-
"@memberjunction/sqlserver-dataprovider": "2.
|
|
52
|
-
"@memberjunction/storage": "2.
|
|
53
|
-
"@memberjunction/templates": "2.
|
|
25
|
+
"@memberjunction/actions": "2.62.0",
|
|
26
|
+
"@memberjunction/ai": "2.62.0",
|
|
27
|
+
"@memberjunction/ai-core-plus": "2.62.0",
|
|
28
|
+
"@memberjunction/ai-agents": "2.62.0",
|
|
29
|
+
"@memberjunction/aiengine": "2.62.0",
|
|
30
|
+
"@memberjunction/ai-prompts": "2.62.0",
|
|
31
|
+
"@memberjunction/ai-agent-manager-actions": "2.62.0",
|
|
32
|
+
"@memberjunction/ai-mistral": "2.62.0",
|
|
33
|
+
"@memberjunction/ai-openai": "2.62.0",
|
|
34
|
+
"@memberjunction/ai-anthropic": "2.62.0",
|
|
35
|
+
"@memberjunction/ai-groq": "2.62.0",
|
|
36
|
+
"@memberjunction/ai-cerebras": "2.62.0",
|
|
37
|
+
"@memberjunction/ai-vectors-pinecone": "2.62.0",
|
|
38
|
+
"@memberjunction/core": "2.62.0",
|
|
39
|
+
"@memberjunction/core-actions": "2.62.0",
|
|
40
|
+
"@memberjunction/core-entities": "2.62.0",
|
|
41
|
+
"@memberjunction/core-entities-server": "2.62.0",
|
|
42
|
+
"@memberjunction/data-context": "2.62.0",
|
|
43
|
+
"@memberjunction/data-context-server": "2.62.0",
|
|
44
|
+
"@memberjunction/doc-utils": "2.62.0",
|
|
45
|
+
"@memberjunction/entity-communications-server": "2.62.0",
|
|
46
|
+
"@memberjunction/external-change-detection": "2.62.0",
|
|
47
|
+
"@memberjunction/global": "2.62.0",
|
|
48
|
+
"@memberjunction/graphql-dataprovider": "2.62.0",
|
|
49
|
+
"@memberjunction/queue": "2.62.0",
|
|
50
|
+
"@memberjunction/skip-types": "2.62.0",
|
|
51
|
+
"@memberjunction/sqlserver-dataprovider": "2.62.0",
|
|
52
|
+
"@memberjunction/storage": "2.62.0",
|
|
53
|
+
"@memberjunction/templates": "2.62.0",
|
|
54
54
|
"@types/compression": "^1.7.5",
|
|
55
55
|
"@types/cors": "^2.8.13",
|
|
56
56
|
"@types/jsonwebtoken": "9.0.6",
|
|
@@ -3930,6 +3930,24 @@ export class AIPrompt_ {
|
|
|
3930
3930
|
@Field(() => Int, {nullable: true, description: `Default number of top log probabilities to include when IncludeLogProbs is true. Can be overridden at runtime.`})
|
|
3931
3931
|
TopLogProbs?: number;
|
|
3932
3932
|
|
|
3933
|
+
@Field(() => Int, {nullable: true, description: `Maximum number of failover attempts before giving up`})
|
|
3934
|
+
FailoverMaxAttempts?: number;
|
|
3935
|
+
|
|
3936
|
+
@Field(() => Int, {nullable: true, description: `Initial delay in seconds between failover attempts`})
|
|
3937
|
+
FailoverDelaySeconds?: number;
|
|
3938
|
+
|
|
3939
|
+
@Field({description: `Failover strategy to use when the primary model fails. Options: SameModelDifferentVendor, NextBestModel, PowerRank, None`})
|
|
3940
|
+
@MaxLength(100)
|
|
3941
|
+
FailoverStrategy: string;
|
|
3942
|
+
|
|
3943
|
+
@Field({description: `Strategy for selecting failover models. Options: PreferSameModel, PreferDifferentModel, RequireSameModel`})
|
|
3944
|
+
@MaxLength(100)
|
|
3945
|
+
FailoverModelStrategy: string;
|
|
3946
|
+
|
|
3947
|
+
@Field({description: `Types of errors that should trigger failover. Options: All, NetworkOnly, RateLimitOnly, ServiceErrorOnly`})
|
|
3948
|
+
@MaxLength(100)
|
|
3949
|
+
FailoverErrorScope: string;
|
|
3950
|
+
|
|
3933
3951
|
@Field()
|
|
3934
3952
|
@MaxLength(510)
|
|
3935
3953
|
Template: string;
|
|
@@ -4112,6 +4130,21 @@ export class CreateAIPromptInput {
|
|
|
4112
4130
|
|
|
4113
4131
|
@Field(() => Int, { nullable: true })
|
|
4114
4132
|
TopLogProbs: number | null;
|
|
4133
|
+
|
|
4134
|
+
@Field(() => Int, { nullable: true })
|
|
4135
|
+
FailoverMaxAttempts?: number | null;
|
|
4136
|
+
|
|
4137
|
+
@Field(() => Int, { nullable: true })
|
|
4138
|
+
FailoverDelaySeconds?: number | null;
|
|
4139
|
+
|
|
4140
|
+
@Field({ nullable: true })
|
|
4141
|
+
FailoverStrategy?: string;
|
|
4142
|
+
|
|
4143
|
+
@Field({ nullable: true })
|
|
4144
|
+
FailoverModelStrategy?: string;
|
|
4145
|
+
|
|
4146
|
+
@Field({ nullable: true })
|
|
4147
|
+
FailoverErrorScope?: string;
|
|
4115
4148
|
}
|
|
4116
4149
|
|
|
4117
4150
|
|
|
@@ -4249,6 +4282,21 @@ export class UpdateAIPromptInput {
|
|
|
4249
4282
|
@Field(() => Int, { nullable: true })
|
|
4250
4283
|
TopLogProbs?: number | null;
|
|
4251
4284
|
|
|
4285
|
+
@Field(() => Int, { nullable: true })
|
|
4286
|
+
FailoverMaxAttempts?: number | null;
|
|
4287
|
+
|
|
4288
|
+
@Field(() => Int, { nullable: true })
|
|
4289
|
+
FailoverDelaySeconds?: number | null;
|
|
4290
|
+
|
|
4291
|
+
@Field({ nullable: true })
|
|
4292
|
+
FailoverStrategy?: string;
|
|
4293
|
+
|
|
4294
|
+
@Field({ nullable: true })
|
|
4295
|
+
FailoverModelStrategy?: string;
|
|
4296
|
+
|
|
4297
|
+
@Field({ nullable: true })
|
|
4298
|
+
FailoverErrorScope?: string;
|
|
4299
|
+
|
|
4252
4300
|
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
4253
4301
|
OldValues___?: KeyValuePairInput[];
|
|
4254
4302
|
}
|
|
@@ -39481,6 +39529,26 @@ export class AIPromptRun_ {
|
|
|
39481
39529
|
@Field({nullable: true, description: `JSON object containing summary information about the validation process`})
|
|
39482
39530
|
ValidationSummary?: string;
|
|
39483
39531
|
|
|
39532
|
+
@Field(() => Int, {nullable: true, description: `Number of failover attempts made during this prompt run`})
|
|
39533
|
+
FailoverAttempts?: number;
|
|
39534
|
+
|
|
39535
|
+
@Field({nullable: true, description: `JSON array of error details from each failover attempt`})
|
|
39536
|
+
FailoverErrors?: string;
|
|
39537
|
+
|
|
39538
|
+
@Field({nullable: true, description: `JSON array of duration in milliseconds for each failover attempt`})
|
|
39539
|
+
FailoverDurations?: string;
|
|
39540
|
+
|
|
39541
|
+
@Field({nullable: true, description: `Timestamp when the original request started, before any failovers`})
|
|
39542
|
+
@MaxLength(8)
|
|
39543
|
+
OriginalRequestStartTime?: Date;
|
|
39544
|
+
|
|
39545
|
+
@Field(() => Int, {nullable: true, description: `Total time spent in failover attempts in milliseconds`})
|
|
39546
|
+
TotalFailoverDuration?: number;
|
|
39547
|
+
|
|
39548
|
+
@Field({nullable: true, description: `The AI Model ID that was originally attempted before any failovers`})
|
|
39549
|
+
@MaxLength(16)
|
|
39550
|
+
OriginalModelID?: string;
|
|
39551
|
+
|
|
39484
39552
|
@Field()
|
|
39485
39553
|
@MaxLength(510)
|
|
39486
39554
|
Prompt: string;
|
|
@@ -39501,6 +39569,10 @@ export class AIPromptRun_ {
|
|
|
39501
39569
|
@MaxLength(200)
|
|
39502
39570
|
Configuration?: string;
|
|
39503
39571
|
|
|
39572
|
+
@Field({nullable: true})
|
|
39573
|
+
@MaxLength(100)
|
|
39574
|
+
OriginalModel?: string;
|
|
39575
|
+
|
|
39504
39576
|
@Field(() => [AIPromptRun_])
|
|
39505
39577
|
MJ_AIPromptRuns_ParentIDArray: AIPromptRun_[]; // Link to MJ_AIPromptRuns
|
|
39506
39578
|
|
|
@@ -39669,6 +39741,24 @@ export class CreateAIPromptRunInput {
|
|
|
39669
39741
|
|
|
39670
39742
|
@Field({ nullable: true })
|
|
39671
39743
|
ValidationSummary: string | null;
|
|
39744
|
+
|
|
39745
|
+
@Field(() => Int, { nullable: true })
|
|
39746
|
+
FailoverAttempts?: number | null;
|
|
39747
|
+
|
|
39748
|
+
@Field({ nullable: true })
|
|
39749
|
+
FailoverErrors: string | null;
|
|
39750
|
+
|
|
39751
|
+
@Field({ nullable: true })
|
|
39752
|
+
FailoverDurations: string | null;
|
|
39753
|
+
|
|
39754
|
+
@Field({ nullable: true })
|
|
39755
|
+
OriginalRequestStartTime: Date | null;
|
|
39756
|
+
|
|
39757
|
+
@Field(() => Int, { nullable: true })
|
|
39758
|
+
TotalFailoverDuration: number | null;
|
|
39759
|
+
|
|
39760
|
+
@Field({ nullable: true })
|
|
39761
|
+
OriginalModelID: string | null;
|
|
39672
39762
|
}
|
|
39673
39763
|
|
|
39674
39764
|
|
|
@@ -39833,6 +39923,24 @@ export class UpdateAIPromptRunInput {
|
|
|
39833
39923
|
@Field({ nullable: true })
|
|
39834
39924
|
ValidationSummary?: string | null;
|
|
39835
39925
|
|
|
39926
|
+
@Field(() => Int, { nullable: true })
|
|
39927
|
+
FailoverAttempts?: number | null;
|
|
39928
|
+
|
|
39929
|
+
@Field({ nullable: true })
|
|
39930
|
+
FailoverErrors?: string | null;
|
|
39931
|
+
|
|
39932
|
+
@Field({ nullable: true })
|
|
39933
|
+
FailoverDurations?: string | null;
|
|
39934
|
+
|
|
39935
|
+
@Field({ nullable: true })
|
|
39936
|
+
OriginalRequestStartTime?: Date | null;
|
|
39937
|
+
|
|
39938
|
+
@Field(() => Int, { nullable: true })
|
|
39939
|
+
TotalFailoverDuration?: number | null;
|
|
39940
|
+
|
|
39941
|
+
@Field({ nullable: true })
|
|
39942
|
+
OriginalModelID?: string | null;
|
|
39943
|
+
|
|
39836
39944
|
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
39837
39945
|
OldValues___?: KeyValuePairInput[];
|
|
39838
39946
|
}
|