@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.
@@ -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)
@@ -62122,11 +62200,18 @@ let AIPromptRun_ = class AIPromptRun_ {
62122
62200
  TotalRetryDurationMS;
62123
62201
  ValidationAttempts;
62124
62202
  ValidationSummary;
62203
+ FailoverAttempts;
62204
+ FailoverErrors;
62205
+ FailoverDurations;
62206
+ OriginalRequestStartTime;
62207
+ TotalFailoverDuration;
62208
+ OriginalModelID;
62125
62209
  Prompt;
62126
62210
  Model;
62127
62211
  Vendor;
62128
62212
  Agent;
62129
62213
  Configuration;
62214
+ OriginalModel;
62130
62215
  MJ_AIPromptRuns_ParentIDArray;
62131
62216
  AIResultCache_PromptRunIDArray;
62132
62217
  };
@@ -62367,6 +62452,32 @@ __decorate([
62367
62452
  Field({ nullable: true, description: `JSON object containing summary information about the validation process` }),
62368
62453
  __metadata("design:type", String)
62369
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);
62370
62481
  __decorate([
62371
62482
  Field(),
62372
62483
  MaxLength(510),
@@ -62392,6 +62503,11 @@ __decorate([
62392
62503
  MaxLength(200),
62393
62504
  __metadata("design:type", String)
62394
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);
62395
62511
  __decorate([
62396
62512
  Field(() => [AIPromptRun_]),
62397
62513
  __metadata("design:type", Array)
@@ -62457,6 +62573,12 @@ let CreateAIPromptRunInput = class CreateAIPromptRunInput {
62457
62573
  TotalRetryDurationMS;
62458
62574
  ValidationAttempts;
62459
62575
  ValidationSummary;
62576
+ FailoverAttempts;
62577
+ FailoverErrors;
62578
+ FailoverDurations;
62579
+ OriginalRequestStartTime;
62580
+ TotalFailoverDuration;
62581
+ OriginalModelID;
62460
62582
  };
62461
62583
  __decorate([
62462
62584
  Field({ nullable: true }),
@@ -62666,6 +62788,30 @@ __decorate([
62666
62788
  Field({ nullable: true }),
62667
62789
  __metadata("design:type", String)
62668
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);
62669
62815
  CreateAIPromptRunInput = __decorate([
62670
62816
  InputType()
62671
62817
  ], CreateAIPromptRunInput);
@@ -62723,6 +62869,12 @@ let UpdateAIPromptRunInput = class UpdateAIPromptRunInput {
62723
62869
  TotalRetryDurationMS;
62724
62870
  ValidationAttempts;
62725
62871
  ValidationSummary;
62872
+ FailoverAttempts;
62873
+ FailoverErrors;
62874
+ FailoverDurations;
62875
+ OriginalRequestStartTime;
62876
+ TotalFailoverDuration;
62877
+ OriginalModelID;
62726
62878
  OldValues___;
62727
62879
  };
62728
62880
  __decorate([
@@ -62933,6 +63085,30 @@ __decorate([
62933
63085
  Field({ nullable: true }),
62934
63086
  __metadata("design:type", String)
62935
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);
62936
63112
  __decorate([
62937
63113
  Field(() => [KeyValuePairInput], { nullable: true }),
62938
63114
  __metadata("design:type", Array)