@memberjunction/server 2.60.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.
@@ -5994,6 +5994,11 @@ let AIPrompt_ = class AIPrompt_ {
5994
5994
  StopSequences;
5995
5995
  IncludeLogProbs;
5996
5996
  TopLogProbs;
5997
+ FailoverMaxAttempts;
5998
+ FailoverDelaySeconds;
5999
+ FailoverStrategy;
6000
+ FailoverModelStrategy;
6001
+ FailoverErrorScope;
5997
6002
  Template;
5998
6003
  Category;
5999
6004
  Type;
@@ -6211,6 +6216,29 @@ __decorate([
6211
6216
  Field(() => Int, { nullable: true, description: `Default number of top log probabilities to include when IncludeLogProbs is true. Can be overridden at runtime.` }),
6212
6217
  __metadata("design:type", Number)
6213
6218
  ], AIPrompt_.prototype, "TopLogProbs", void 0);
6219
+ __decorate([
6220
+ Field(() => Int, { nullable: true, description: `Maximum number of failover attempts before giving up` }),
6221
+ __metadata("design:type", Number)
6222
+ ], AIPrompt_.prototype, "FailoverMaxAttempts", void 0);
6223
+ __decorate([
6224
+ Field(() => Int, { nullable: true, description: `Initial delay in seconds between failover attempts` }),
6225
+ __metadata("design:type", Number)
6226
+ ], AIPrompt_.prototype, "FailoverDelaySeconds", void 0);
6227
+ __decorate([
6228
+ Field({ description: `Failover strategy to use when the primary model fails. Options: SameModelDifferentVendor, NextBestModel, PowerRank, None` }),
6229
+ MaxLength(100),
6230
+ __metadata("design:type", String)
6231
+ ], AIPrompt_.prototype, "FailoverStrategy", void 0);
6232
+ __decorate([
6233
+ Field({ description: `Strategy for selecting failover models. Options: PreferSameModel, PreferDifferentModel, RequireSameModel` }),
6234
+ MaxLength(100),
6235
+ __metadata("design:type", String)
6236
+ ], AIPrompt_.prototype, "FailoverModelStrategy", void 0);
6237
+ __decorate([
6238
+ Field({ description: `Types of errors that should trigger failover. Options: All, NetworkOnly, RateLimitOnly, ServiceErrorOnly` }),
6239
+ MaxLength(100),
6240
+ __metadata("design:type", String)
6241
+ ], AIPrompt_.prototype, "FailoverErrorScope", void 0);
6214
6242
  __decorate([
6215
6243
  Field(),
6216
6244
  MaxLength(510),
@@ -6320,6 +6348,11 @@ let CreateAIPromptInput = class CreateAIPromptInput {
6320
6348
  StopSequences;
6321
6349
  IncludeLogProbs;
6322
6350
  TopLogProbs;
6351
+ FailoverMaxAttempts;
6352
+ FailoverDelaySeconds;
6353
+ FailoverStrategy;
6354
+ FailoverModelStrategy;
6355
+ FailoverErrorScope;
6323
6356
  };
6324
6357
  __decorate([
6325
6358
  Field({ nullable: true }),
@@ -6493,6 +6526,26 @@ __decorate([
6493
6526
  Field(() => Int, { nullable: true }),
6494
6527
  __metadata("design:type", Number)
6495
6528
  ], CreateAIPromptInput.prototype, "TopLogProbs", void 0);
6529
+ __decorate([
6530
+ Field(() => Int, { nullable: true }),
6531
+ __metadata("design:type", Number)
6532
+ ], CreateAIPromptInput.prototype, "FailoverMaxAttempts", void 0);
6533
+ __decorate([
6534
+ Field(() => Int, { nullable: true }),
6535
+ __metadata("design:type", Number)
6536
+ ], CreateAIPromptInput.prototype, "FailoverDelaySeconds", void 0);
6537
+ __decorate([
6538
+ Field({ nullable: true }),
6539
+ __metadata("design:type", String)
6540
+ ], CreateAIPromptInput.prototype, "FailoverStrategy", void 0);
6541
+ __decorate([
6542
+ Field({ nullable: true }),
6543
+ __metadata("design:type", String)
6544
+ ], CreateAIPromptInput.prototype, "FailoverModelStrategy", void 0);
6545
+ __decorate([
6546
+ Field({ nullable: true }),
6547
+ __metadata("design:type", String)
6548
+ ], CreateAIPromptInput.prototype, "FailoverErrorScope", void 0);
6496
6549
  CreateAIPromptInput = __decorate([
6497
6550
  InputType()
6498
6551
  ], CreateAIPromptInput);
@@ -6541,6 +6594,11 @@ let UpdateAIPromptInput = class UpdateAIPromptInput {
6541
6594
  StopSequences;
6542
6595
  IncludeLogProbs;
6543
6596
  TopLogProbs;
6597
+ FailoverMaxAttempts;
6598
+ FailoverDelaySeconds;
6599
+ FailoverStrategy;
6600
+ FailoverModelStrategy;
6601
+ FailoverErrorScope;
6544
6602
  OldValues___;
6545
6603
  };
6546
6604
  __decorate([
@@ -6715,6 +6773,26 @@ __decorate([
6715
6773
  Field(() => Int, { nullable: true }),
6716
6774
  __metadata("design:type", Number)
6717
6775
  ], UpdateAIPromptInput.prototype, "TopLogProbs", void 0);
6776
+ __decorate([
6777
+ Field(() => Int, { nullable: true }),
6778
+ __metadata("design:type", Number)
6779
+ ], UpdateAIPromptInput.prototype, "FailoverMaxAttempts", void 0);
6780
+ __decorate([
6781
+ Field(() => Int, { nullable: true }),
6782
+ __metadata("design:type", Number)
6783
+ ], UpdateAIPromptInput.prototype, "FailoverDelaySeconds", void 0);
6784
+ __decorate([
6785
+ Field({ nullable: true }),
6786
+ __metadata("design:type", String)
6787
+ ], UpdateAIPromptInput.prototype, "FailoverStrategy", void 0);
6788
+ __decorate([
6789
+ Field({ nullable: true }),
6790
+ __metadata("design:type", String)
6791
+ ], UpdateAIPromptInput.prototype, "FailoverModelStrategy", void 0);
6792
+ __decorate([
6793
+ Field({ nullable: true }),
6794
+ __metadata("design:type", String)
6795
+ ], UpdateAIPromptInput.prototype, "FailoverErrorScope", void 0);
6718
6796
  __decorate([
6719
6797
  Field(() => [KeyValuePairInput], { nullable: true }),
6720
6798
  __metadata("design:type", Array)
@@ -9091,6 +9169,7 @@ let EmployeeCompanyIntegration_ = class EmployeeCompanyIntegration_ {
9091
9169
  IsActive;
9092
9170
  _mj__CreatedAt;
9093
9171
  _mj__UpdatedAt;
9172
+ CompanyIntegration;
9094
9173
  };
9095
9174
  __decorate([
9096
9175
  Field(),
@@ -9126,6 +9205,11 @@ __decorate([
9126
9205
  MaxLength(10),
9127
9206
  __metadata("design:type", Date)
9128
9207
  ], EmployeeCompanyIntegration_.prototype, "_mj__UpdatedAt", void 0);
9208
+ __decorate([
9209
+ Field(),
9210
+ MaxLength(510),
9211
+ __metadata("design:type", String)
9212
+ ], EmployeeCompanyIntegration_.prototype, "CompanyIntegration", void 0);
9129
9213
  EmployeeCompanyIntegration_ = __decorate([
9130
9214
  ObjectType()
9131
9215
  ], EmployeeCompanyIntegration_);
@@ -11208,6 +11292,7 @@ let CompanyIntegration_ = class CompanyIntegration_ {
11208
11292
  CustomAttribute1;
11209
11293
  _mj__CreatedAt;
11210
11294
  _mj__UpdatedAt;
11295
+ Name;
11211
11296
  Company;
11212
11297
  Integration;
11213
11298
  DriverClassName;
@@ -11293,6 +11378,11 @@ __decorate([
11293
11378
  MaxLength(10),
11294
11379
  __metadata("design:type", Date)
11295
11380
  ], CompanyIntegration_.prototype, "_mj__UpdatedAt", void 0);
11381
+ __decorate([
11382
+ Field({ description: `User-friendly name for the company integration instance, typically in the format "Company: Integration".` }),
11383
+ MaxLength(510),
11384
+ __metadata("design:type", String)
11385
+ ], CompanyIntegration_.prototype, "Name", void 0);
11296
11386
  __decorate([
11297
11387
  Field(),
11298
11388
  MaxLength(100),
@@ -11362,6 +11452,7 @@ let CreateCompanyIntegrationInput = class CreateCompanyIntegrationInput {
11362
11452
  ClientID;
11363
11453
  ClientSecret;
11364
11454
  CustomAttribute1;
11455
+ Name;
11365
11456
  };
11366
11457
  __decorate([
11367
11458
  Field({ nullable: true }),
@@ -11415,6 +11506,10 @@ __decorate([
11415
11506
  Field({ nullable: true }),
11416
11507
  __metadata("design:type", String)
11417
11508
  ], CreateCompanyIntegrationInput.prototype, "CustomAttribute1", void 0);
11509
+ __decorate([
11510
+ Field({ nullable: true }),
11511
+ __metadata("design:type", String)
11512
+ ], CreateCompanyIntegrationInput.prototype, "Name", void 0);
11418
11513
  CreateCompanyIntegrationInput = __decorate([
11419
11514
  InputType()
11420
11515
  ], CreateCompanyIntegrationInput);
@@ -11433,6 +11528,7 @@ let UpdateCompanyIntegrationInput = class UpdateCompanyIntegrationInput {
11433
11528
  ClientID;
11434
11529
  ClientSecret;
11435
11530
  CustomAttribute1;
11531
+ Name;
11436
11532
  OldValues___;
11437
11533
  };
11438
11534
  __decorate([
@@ -11487,6 +11583,10 @@ __decorate([
11487
11583
  Field({ nullable: true }),
11488
11584
  __metadata("design:type", String)
11489
11585
  ], UpdateCompanyIntegrationInput.prototype, "CustomAttribute1", void 0);
11586
+ __decorate([
11587
+ Field({ nullable: true }),
11588
+ __metadata("design:type", String)
11589
+ ], UpdateCompanyIntegrationInput.prototype, "Name", void 0);
11490
11590
  __decorate([
11491
11591
  Field(() => [KeyValuePairInput], { nullable: true }),
11492
11592
  __metadata("design:type", Array)
@@ -20261,6 +20361,7 @@ let List_ = class List_ {
20261
20361
  Entity;
20262
20362
  User;
20263
20363
  Category;
20364
+ CompanyIntegration;
20264
20365
  ListDetails_ListIDArray;
20265
20366
  DuplicateRuns_SourceListIDArray;
20266
20367
  };
@@ -20328,6 +20429,11 @@ __decorate([
20328
20429
  MaxLength(200),
20329
20430
  __metadata("design:type", String)
20330
20431
  ], List_.prototype, "Category", void 0);
20432
+ __decorate([
20433
+ Field({ nullable: true }),
20434
+ MaxLength(510),
20435
+ __metadata("design:type", String)
20436
+ ], List_.prototype, "CompanyIntegration", void 0);
20331
20437
  __decorate([
20332
20438
  Field(() => [ListDetail_]),
20333
20439
  __metadata("design:type", Array)
@@ -33768,6 +33874,7 @@ let CompanyIntegrationRecordMap_ = class CompanyIntegrationRecordMap_ {
33768
33874
  EntityRecordID;
33769
33875
  _mj__CreatedAt;
33770
33876
  _mj__UpdatedAt;
33877
+ CompanyIntegration;
33771
33878
  Entity;
33772
33879
  };
33773
33880
  __decorate([
@@ -33805,6 +33912,11 @@ __decorate([
33805
33912
  MaxLength(10),
33806
33913
  __metadata("design:type", Date)
33807
33914
  ], CompanyIntegrationRecordMap_.prototype, "_mj__UpdatedAt", void 0);
33915
+ __decorate([
33916
+ Field(),
33917
+ MaxLength(510),
33918
+ __metadata("design:type", String)
33919
+ ], CompanyIntegrationRecordMap_.prototype, "CompanyIntegration", void 0);
33808
33920
  __decorate([
33809
33921
  Field(),
33810
33922
  MaxLength(510),
@@ -62088,11 +62200,18 @@ let AIPromptRun_ = class AIPromptRun_ {
62088
62200
  TotalRetryDurationMS;
62089
62201
  ValidationAttempts;
62090
62202
  ValidationSummary;
62203
+ FailoverAttempts;
62204
+ FailoverErrors;
62205
+ FailoverDurations;
62206
+ OriginalRequestStartTime;
62207
+ TotalFailoverDuration;
62208
+ OriginalModelID;
62091
62209
  Prompt;
62092
62210
  Model;
62093
62211
  Vendor;
62094
62212
  Agent;
62095
62213
  Configuration;
62214
+ OriginalModel;
62096
62215
  MJ_AIPromptRuns_ParentIDArray;
62097
62216
  AIResultCache_PromptRunIDArray;
62098
62217
  };
@@ -62333,6 +62452,32 @@ __decorate([
62333
62452
  Field({ nullable: true, description: `JSON object containing summary information about the validation process` }),
62334
62453
  __metadata("design:type", String)
62335
62454
  ], AIPromptRun_.prototype, "ValidationSummary", void 0);
62455
+ __decorate([
62456
+ Field(() => Int, { nullable: true, description: `Number of failover attempts made during this prompt run` }),
62457
+ __metadata("design:type", Number)
62458
+ ], AIPromptRun_.prototype, "FailoverAttempts", void 0);
62459
+ __decorate([
62460
+ Field({ nullable: true, description: `JSON array of error details from each failover attempt` }),
62461
+ __metadata("design:type", String)
62462
+ ], AIPromptRun_.prototype, "FailoverErrors", void 0);
62463
+ __decorate([
62464
+ Field({ nullable: true, description: `JSON array of duration in milliseconds for each failover attempt` }),
62465
+ __metadata("design:type", String)
62466
+ ], AIPromptRun_.prototype, "FailoverDurations", void 0);
62467
+ __decorate([
62468
+ Field({ nullable: true, description: `Timestamp when the original request started, before any failovers` }),
62469
+ MaxLength(8),
62470
+ __metadata("design:type", Date)
62471
+ ], AIPromptRun_.prototype, "OriginalRequestStartTime", void 0);
62472
+ __decorate([
62473
+ Field(() => Int, { nullable: true, description: `Total time spent in failover attempts in milliseconds` }),
62474
+ __metadata("design:type", Number)
62475
+ ], AIPromptRun_.prototype, "TotalFailoverDuration", void 0);
62476
+ __decorate([
62477
+ Field({ nullable: true, description: `The AI Model ID that was originally attempted before any failovers` }),
62478
+ MaxLength(16),
62479
+ __metadata("design:type", String)
62480
+ ], AIPromptRun_.prototype, "OriginalModelID", void 0);
62336
62481
  __decorate([
62337
62482
  Field(),
62338
62483
  MaxLength(510),
@@ -62358,6 +62503,11 @@ __decorate([
62358
62503
  MaxLength(200),
62359
62504
  __metadata("design:type", String)
62360
62505
  ], AIPromptRun_.prototype, "Configuration", void 0);
62506
+ __decorate([
62507
+ Field({ nullable: true }),
62508
+ MaxLength(100),
62509
+ __metadata("design:type", String)
62510
+ ], AIPromptRun_.prototype, "OriginalModel", void 0);
62361
62511
  __decorate([
62362
62512
  Field(() => [AIPromptRun_]),
62363
62513
  __metadata("design:type", Array)
@@ -62423,6 +62573,12 @@ let CreateAIPromptRunInput = class CreateAIPromptRunInput {
62423
62573
  TotalRetryDurationMS;
62424
62574
  ValidationAttempts;
62425
62575
  ValidationSummary;
62576
+ FailoverAttempts;
62577
+ FailoverErrors;
62578
+ FailoverDurations;
62579
+ OriginalRequestStartTime;
62580
+ TotalFailoverDuration;
62581
+ OriginalModelID;
62426
62582
  };
62427
62583
  __decorate([
62428
62584
  Field({ nullable: true }),
@@ -62632,6 +62788,30 @@ __decorate([
62632
62788
  Field({ nullable: true }),
62633
62789
  __metadata("design:type", String)
62634
62790
  ], CreateAIPromptRunInput.prototype, "ValidationSummary", void 0);
62791
+ __decorate([
62792
+ Field(() => Int, { nullable: true }),
62793
+ __metadata("design:type", Number)
62794
+ ], CreateAIPromptRunInput.prototype, "FailoverAttempts", void 0);
62795
+ __decorate([
62796
+ Field({ nullable: true }),
62797
+ __metadata("design:type", String)
62798
+ ], CreateAIPromptRunInput.prototype, "FailoverErrors", void 0);
62799
+ __decorate([
62800
+ Field({ nullable: true }),
62801
+ __metadata("design:type", String)
62802
+ ], CreateAIPromptRunInput.prototype, "FailoverDurations", void 0);
62803
+ __decorate([
62804
+ Field({ nullable: true }),
62805
+ __metadata("design:type", Date)
62806
+ ], CreateAIPromptRunInput.prototype, "OriginalRequestStartTime", void 0);
62807
+ __decorate([
62808
+ Field(() => Int, { nullable: true }),
62809
+ __metadata("design:type", Number)
62810
+ ], CreateAIPromptRunInput.prototype, "TotalFailoverDuration", void 0);
62811
+ __decorate([
62812
+ Field({ nullable: true }),
62813
+ __metadata("design:type", String)
62814
+ ], CreateAIPromptRunInput.prototype, "OriginalModelID", void 0);
62635
62815
  CreateAIPromptRunInput = __decorate([
62636
62816
  InputType()
62637
62817
  ], CreateAIPromptRunInput);
@@ -62689,6 +62869,12 @@ let UpdateAIPromptRunInput = class UpdateAIPromptRunInput {
62689
62869
  TotalRetryDurationMS;
62690
62870
  ValidationAttempts;
62691
62871
  ValidationSummary;
62872
+ FailoverAttempts;
62873
+ FailoverErrors;
62874
+ FailoverDurations;
62875
+ OriginalRequestStartTime;
62876
+ TotalFailoverDuration;
62877
+ OriginalModelID;
62692
62878
  OldValues___;
62693
62879
  };
62694
62880
  __decorate([
@@ -62899,6 +63085,30 @@ __decorate([
62899
63085
  Field({ nullable: true }),
62900
63086
  __metadata("design:type", String)
62901
63087
  ], UpdateAIPromptRunInput.prototype, "ValidationSummary", void 0);
63088
+ __decorate([
63089
+ Field(() => Int, { nullable: true }),
63090
+ __metadata("design:type", Number)
63091
+ ], UpdateAIPromptRunInput.prototype, "FailoverAttempts", void 0);
63092
+ __decorate([
63093
+ Field({ nullable: true }),
63094
+ __metadata("design:type", String)
63095
+ ], UpdateAIPromptRunInput.prototype, "FailoverErrors", void 0);
63096
+ __decorate([
63097
+ Field({ nullable: true }),
63098
+ __metadata("design:type", String)
63099
+ ], UpdateAIPromptRunInput.prototype, "FailoverDurations", void 0);
63100
+ __decorate([
63101
+ Field({ nullable: true }),
63102
+ __metadata("design:type", Date)
63103
+ ], UpdateAIPromptRunInput.prototype, "OriginalRequestStartTime", void 0);
63104
+ __decorate([
63105
+ Field(() => Int, { nullable: true }),
63106
+ __metadata("design:type", Number)
63107
+ ], UpdateAIPromptRunInput.prototype, "TotalFailoverDuration", void 0);
63108
+ __decorate([
63109
+ Field({ nullable: true }),
63110
+ __metadata("design:type", String)
63111
+ ], UpdateAIPromptRunInput.prototype, "OriginalModelID", void 0);
62902
63112
  __decorate([
62903
63113
  Field(() => [KeyValuePairInput], { nullable: true }),
62904
63114
  __metadata("design:type", Array)