@memberjunction/server 2.71.0 → 2.72.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.71.0",
3
+ "version": "2.72.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,39 +22,39 @@
22
22
  "dependencies": {
23
23
  "@apollo/server": "^4.9.1",
24
24
  "@graphql-tools/utils": "^10.0.1",
25
- "@memberjunction/actions": "2.71.0",
26
- "@memberjunction/ai": "2.71.0",
27
- "@memberjunction/ai-core-plus": "2.71.0",
28
- "@memberjunction/ai-agents": "2.71.0",
29
- "@memberjunction/aiengine": "2.71.0",
30
- "@memberjunction/ai-prompts": "2.71.0",
31
- "@memberjunction/ai-agent-manager-actions": "2.71.0",
32
- "@memberjunction/ai-mistral": "2.71.0",
33
- "@memberjunction/ai-openai": "2.71.0",
34
- "@memberjunction/ai-anthropic": "2.71.0",
35
- "@memberjunction/ai-groq": "2.71.0",
36
- "@memberjunction/ai-cerebras": "2.71.0",
37
- "@memberjunction/ai-vectors-pinecone": "2.71.0",
38
- "@memberjunction/core": "2.71.0",
39
- "@memberjunction/core-actions": "2.71.0",
40
- "@memberjunction/actions-bizapps-accounting": "2.71.0",
41
- "@memberjunction/actions-bizapps-crm": "2.71.0",
42
- "@memberjunction/actions-bizapps-lms": "2.71.0",
43
- "@memberjunction/actions-bizapps-social": "2.71.0",
44
- "@memberjunction/core-entities": "2.71.0",
45
- "@memberjunction/core-entities-server": "2.71.0",
46
- "@memberjunction/data-context": "2.71.0",
47
- "@memberjunction/data-context-server": "2.71.0",
48
- "@memberjunction/doc-utils": "2.71.0",
49
- "@memberjunction/entity-communications-server": "2.71.0",
50
- "@memberjunction/external-change-detection": "2.71.0",
51
- "@memberjunction/global": "2.71.0",
52
- "@memberjunction/graphql-dataprovider": "2.71.0",
53
- "@memberjunction/queue": "2.71.0",
54
- "@memberjunction/skip-types": "2.71.0",
55
- "@memberjunction/sqlserver-dataprovider": "2.71.0",
56
- "@memberjunction/storage": "2.71.0",
57
- "@memberjunction/templates": "2.71.0",
25
+ "@memberjunction/actions": "2.72.0",
26
+ "@memberjunction/ai": "2.72.0",
27
+ "@memberjunction/ai-core-plus": "2.72.0",
28
+ "@memberjunction/ai-agents": "2.72.0",
29
+ "@memberjunction/aiengine": "2.72.0",
30
+ "@memberjunction/ai-prompts": "2.72.0",
31
+ "@memberjunction/ai-agent-manager-actions": "2.72.0",
32
+ "@memberjunction/ai-mistral": "2.72.0",
33
+ "@memberjunction/ai-openai": "2.72.0",
34
+ "@memberjunction/ai-anthropic": "2.72.0",
35
+ "@memberjunction/ai-groq": "2.72.0",
36
+ "@memberjunction/ai-cerebras": "2.72.0",
37
+ "@memberjunction/ai-vectors-pinecone": "2.72.0",
38
+ "@memberjunction/core": "2.72.0",
39
+ "@memberjunction/core-actions": "2.72.0",
40
+ "@memberjunction/actions-bizapps-accounting": "2.72.0",
41
+ "@memberjunction/actions-bizapps-crm": "2.72.0",
42
+ "@memberjunction/actions-bizapps-lms": "2.72.0",
43
+ "@memberjunction/actions-bizapps-social": "2.72.0",
44
+ "@memberjunction/core-entities": "2.72.0",
45
+ "@memberjunction/core-entities-server": "2.72.0",
46
+ "@memberjunction/data-context": "2.72.0",
47
+ "@memberjunction/data-context-server": "2.72.0",
48
+ "@memberjunction/doc-utils": "2.72.0",
49
+ "@memberjunction/entity-communications-server": "2.72.0",
50
+ "@memberjunction/external-change-detection": "2.72.0",
51
+ "@memberjunction/global": "2.72.0",
52
+ "@memberjunction/graphql-dataprovider": "2.72.0",
53
+ "@memberjunction/queue": "2.72.0",
54
+ "@memberjunction/skip-types": "2.72.0",
55
+ "@memberjunction/sqlserver-dataprovider": "2.72.0",
56
+ "@memberjunction/storage": "2.72.0",
57
+ "@memberjunction/templates": "2.72.0",
58
58
  "@types/compression": "^1.7.5",
59
59
  "@types/cors": "^2.8.13",
60
60
  "@types/jsonwebtoken": "9.0.6",
@@ -1318,8 +1318,8 @@ export class AIAgentRun_ {
1318
1318
  @Field({nullable: true, description: `The initial payload provided at the start of this run. Can be populated from the FinalPayload of the LastRun.`})
1319
1319
  StartingPayload?: string;
1320
1320
 
1321
- @Field(() => Int, {description: `Total number of prompt iterations executed during this agent run. Incremented
1322
- each time the agent processes a prompt step.`})
1321
+ @Field(() => Int, {description: `Total number of prompt iterations executed during this agent run. Incremented
1322
+ each time the agent processes a prompt step.`})
1323
1323
  TotalPromptIterations: number;
1324
1324
 
1325
1325
  @Field({nullable: true})
@@ -2232,24 +2232,24 @@ data flow when the agent executes its own prompt step.`})
2232
2232
  @MaxLength(50)
2233
2233
  FinalPayloadValidationMode: string;
2234
2234
 
2235
- @Field(() => Int, {description: `Maximum number of retry attempts allowed when FinalPayloadValidation fails with
2235
+ @Field(() => Int, {description: `Maximum number of retry attempts allowed when FinalPayloadValidation fails with
2236
2236
  Retry mode. After reaching this limit, the validation will fail permanently.`})
2237
2237
  FinalPayloadValidationMaxRetries: number;
2238
2238
 
2239
- @Field(() => Float, {nullable: true, description: `Maximum cost in dollars allowed for a single agent run. Run will be terminated
2240
- if this limit is exceeded.`})
2239
+ @Field(() => Float, {nullable: true, description: `Maximum cost in dollars allowed for a single agent run. Run will be terminated
2240
+ if this limit is exceeded.`})
2241
2241
  MaxCostPerRun?: number;
2242
2242
 
2243
- @Field(() => Int, {nullable: true, description: `Maximum total tokens (input + output) allowed for a single agent run. Run will
2244
- be terminated if this limit is exceeded.`})
2243
+ @Field(() => Int, {nullable: true, description: `Maximum total tokens (input + output) allowed for a single agent run. Run will
2244
+ be terminated if this limit is exceeded.`})
2245
2245
  MaxTokensPerRun?: number;
2246
2246
 
2247
- @Field(() => Int, {nullable: true, description: `Maximum number of prompt iterations allowed for a single agent run. Run will be
2248
- terminated if this limit is exceeded.`})
2247
+ @Field(() => Int, {nullable: true, description: `Maximum number of prompt iterations allowed for a single agent run. Run will be
2248
+ terminated if this limit is exceeded.`})
2249
2249
  MaxIterationsPerRun?: number;
2250
2250
 
2251
- @Field(() => Int, {nullable: true, description: `Maximum time in seconds allowed for a single agent run. Run will be terminated
2252
- if this limit is exceeded.`})
2251
+ @Field(() => Int, {nullable: true, description: `Maximum time in seconds allowed for a single agent run. Run will be terminated
2252
+ if this limit is exceeded.`})
2253
2253
  MaxTimePerRun?: number;
2254
2254
 
2255
2255
  @Field(() => Int, {nullable: true, description: `When acting as a sub-agent, minimum number of times this agent must be executed per parent agent run`})
@@ -2258,6 +2258,15 @@ Retry mode. After reaching this limit, the validation will fail permanently.`})
2258
2258
  @Field(() => Int, {nullable: true, description: `When acting as a sub-agent, maximum number of times this agent can be executed per parent agent run`})
2259
2259
  MaxExecutionsPerRun?: number;
2260
2260
 
2261
+ @Field({nullable: true, description: `Optional JSON schema validation to apply to the input payload before agent execution begins. Uses the same JSONValidator
2262
+ format as FinalPayloadValidation.`})
2263
+ StartingPayloadValidation?: string;
2264
+
2265
+ @Field({description: `Determines how to handle StartingPayloadValidation failures. Fail = reject invalid input, Warn = log warning but
2266
+ proceed.`})
2267
+ @MaxLength(50)
2268
+ StartingPayloadValidationMode: string;
2269
+
2261
2270
  @Field({nullable: true})
2262
2271
  @MaxLength(510)
2263
2272
  Parent?: string;
@@ -2399,6 +2408,12 @@ export class CreateAIAgentInput {
2399
2408
 
2400
2409
  @Field(() => Int, { nullable: true })
2401
2410
  MaxExecutionsPerRun: number | null;
2411
+
2412
+ @Field({ nullable: true })
2413
+ StartingPayloadValidation: string | null;
2414
+
2415
+ @Field({ nullable: true })
2416
+ StartingPayloadValidationMode?: string;
2402
2417
  }
2403
2418
 
2404
2419
 
@@ -2500,6 +2515,12 @@ export class UpdateAIAgentInput {
2500
2515
  @Field(() => Int, { nullable: true })
2501
2516
  MaxExecutionsPerRun?: number | null;
2502
2517
 
2518
+ @Field({ nullable: true })
2519
+ StartingPayloadValidation?: string | null;
2520
+
2521
+ @Field({ nullable: true })
2522
+ StartingPayloadValidationMode?: string;
2523
+
2503
2524
  @Field(() => [KeyValuePairInput], { nullable: true })
2504
2525
  OldValues___?: KeyValuePairInput[];
2505
2526
  }
@@ -40284,13 +40305,13 @@ export class AIAgentRunStep_ {
40284
40305
  @Field({nullable: true, description: `JSON serialization of the Payload state at the end of this step`})
40285
40306
  PayloadAtEnd?: string;
40286
40307
 
40287
- @Field({nullable: true, description: `Result of the final payload validation for this step. Pass indicates successful
40288
- validation, Retry means validation failed but will retry, Fail means validation failed
40308
+ @Field({nullable: true, description: `Result of the final payload validation for this step. Pass indicates successful
40309
+ validation, Retry means validation failed but will retry, Fail means validation failed
40289
40310
  permanently, Warn means validation failed but execution continues.`})
40290
40311
  @MaxLength(50)
40291
40312
  FinalPayloadValidationResult?: string;
40292
40313
 
40293
- @Field({nullable: true, description: `Validation error messages or warnings from final payload validation. Contains
40314
+ @Field({nullable: true, description: `Validation error messages or warnings from final payload validation. Contains
40294
40315
  detailed information about what validation rules failed.`})
40295
40316
  FinalPayloadValidationMessages?: string;
40296
40317