@memberjunction/server 2.54.0 → 2.55.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.
@@ -1123,7 +1123,7 @@ __decorate([
1123
1123
  __metadata("design:type", Array)
1124
1124
  ], GeneratedCodeCategory_.prototype, "GeneratedCodes_CategoryIDArray", void 0);
1125
1125
  GeneratedCodeCategory_ = __decorate([
1126
- ObjectType({ description: `Categorization for generated code, including optional parent-child relationships.` })
1126
+ ObjectType()
1127
1127
  ], GeneratedCodeCategory_);
1128
1128
  export { GeneratedCodeCategory_ };
1129
1129
  let CreateGeneratedCodeCategoryInput = class CreateGeneratedCodeCategoryInput {
@@ -59310,6 +59310,7 @@ let AIPromptRun_ = class AIPromptRun_ {
59310
59310
  ResponseFormat;
59311
59311
  LogProbs;
59312
59312
  TopLogProbs;
59313
+ DescendantCost;
59313
59314
  Prompt;
59314
59315
  Model;
59315
59316
  Vendor;
@@ -59383,7 +59384,7 @@ __decorate([
59383
59384
  __metadata("design:type", Number)
59384
59385
  ], AIPromptRun_.prototype, "TokensCompletion", void 0);
59385
59386
  __decorate([
59386
- Field(() => Float, { nullable: true, description: `Total cost including this execution and all child/grandchild executions. For leaf nodes (no children), this equals Cost. For parent nodes, this includes the sum of all descendant costs. Note: This assumes all costs are in the same currency for accurate rollup. Currency conversions should be handled at the application layer if needed.` }),
59387
+ Field(() => Float, { nullable: true, description: `Total cost of this prompt run including its own cost plus all descendant costs. Calculated as Cost + DescendantCost. This value is stored (not computed) for query performance. Currency is specified in CostCurrency field.` }),
59387
59388
  __metadata("design:type", Number)
59388
59389
  ], AIPromptRun_.prototype, "TotalCost", void 0);
59389
59390
  __decorate([
@@ -59489,6 +59490,10 @@ __decorate([
59489
59490
  Field(() => Int, { nullable: true, description: `Number of top log probabilities requested per token (if LogProbs is true)` }),
59490
59491
  __metadata("design:type", Number)
59491
59492
  ], AIPromptRun_.prototype, "TopLogProbs", void 0);
59493
+ __decorate([
59494
+ Field(() => Float, { nullable: true, description: `The total cost of all descendant (child and grandchild) prompt runs, excluding this run's own cost. For leaf nodes (no children), this is 0. Updated when child costs change.` }),
59495
+ __metadata("design:type", Number)
59496
+ ], AIPromptRun_.prototype, "DescendantCost", void 0);
59492
59497
  __decorate([
59493
59498
  Field(),
59494
59499
  MaxLength(510),
@@ -59564,6 +59569,7 @@ let CreateAIPromptRunInput = class CreateAIPromptRunInput {
59564
59569
  ResponseFormat;
59565
59570
  LogProbs;
59566
59571
  TopLogProbs;
59572
+ DescendantCost;
59567
59573
  };
59568
59574
  __decorate([
59569
59575
  Field({ nullable: true }),
@@ -59713,6 +59719,10 @@ __decorate([
59713
59719
  Field(() => Int, { nullable: true }),
59714
59720
  __metadata("design:type", Number)
59715
59721
  ], CreateAIPromptRunInput.prototype, "TopLogProbs", void 0);
59722
+ __decorate([
59723
+ Field(() => Float, { nullable: true }),
59724
+ __metadata("design:type", Number)
59725
+ ], CreateAIPromptRunInput.prototype, "DescendantCost", void 0);
59716
59726
  CreateAIPromptRunInput = __decorate([
59717
59727
  InputType()
59718
59728
  ], CreateAIPromptRunInput);
@@ -59755,6 +59765,7 @@ let UpdateAIPromptRunInput = class UpdateAIPromptRunInput {
59755
59765
  ResponseFormat;
59756
59766
  LogProbs;
59757
59767
  TopLogProbs;
59768
+ DescendantCost;
59758
59769
  OldValues___;
59759
59770
  };
59760
59771
  __decorate([
@@ -59905,6 +59916,10 @@ __decorate([
59905
59916
  Field(() => Int, { nullable: true }),
59906
59917
  __metadata("design:type", Number)
59907
59918
  ], UpdateAIPromptRunInput.prototype, "TopLogProbs", void 0);
59919
+ __decorate([
59920
+ Field(() => Float, { nullable: true }),
59921
+ __metadata("design:type", Number)
59922
+ ], UpdateAIPromptRunInput.prototype, "DescendantCost", void 0);
59908
59923
  __decorate([
59909
59924
  Field(() => [KeyValuePairInput], { nullable: true }),
59910
59925
  __metadata("design:type", Array)