@memberjunction/server 2.53.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)
@@ -60108,6 +60123,7 @@ let AIAgentRunStep_ = class AIAgentRunStep_ {
60108
60123
  OutputData;
60109
60124
  _mj__CreatedAt;
60110
60125
  _mj__UpdatedAt;
60126
+ TargetLogID;
60111
60127
  };
60112
60128
  __decorate([
60113
60129
  Field({ description: `Unique identifier for this execution step` }),
@@ -60179,6 +60195,11 @@ __decorate([
60179
60195
  MaxLength(10),
60180
60196
  __metadata("design:type", Date)
60181
60197
  ], AIAgentRunStep_.prototype, "_mj__UpdatedAt", void 0);
60198
+ __decorate([
60199
+ Field({ nullable: true, description: `ID of the execution log/run record created for this step (ActionExecutionLog.ID for action steps, AIAgentRun.ID for subagent steps, AIPromptRun.ID for prompt steps)` }),
60200
+ MaxLength(16),
60201
+ __metadata("design:type", String)
60202
+ ], AIAgentRunStep_.prototype, "TargetLogID", void 0);
60182
60203
  AIAgentRunStep_ = __decorate([
60183
60204
  ObjectType()
60184
60205
  ], AIAgentRunStep_);
@@ -60197,6 +60218,7 @@ let CreateAIAgentRunStepInput = class CreateAIAgentRunStepInput {
60197
60218
  ErrorMessage;
60198
60219
  InputData;
60199
60220
  OutputData;
60221
+ TargetLogID;
60200
60222
  };
60201
60223
  __decorate([
60202
60224
  Field({ nullable: true }),
@@ -60250,6 +60272,10 @@ __decorate([
60250
60272
  Field({ nullable: true }),
60251
60273
  __metadata("design:type", String)
60252
60274
  ], CreateAIAgentRunStepInput.prototype, "OutputData", void 0);
60275
+ __decorate([
60276
+ Field({ nullable: true }),
60277
+ __metadata("design:type", String)
60278
+ ], CreateAIAgentRunStepInput.prototype, "TargetLogID", void 0);
60253
60279
  CreateAIAgentRunStepInput = __decorate([
60254
60280
  InputType()
60255
60281
  ], CreateAIAgentRunStepInput);
@@ -60268,6 +60294,7 @@ let UpdateAIAgentRunStepInput = class UpdateAIAgentRunStepInput {
60268
60294
  ErrorMessage;
60269
60295
  InputData;
60270
60296
  OutputData;
60297
+ TargetLogID;
60271
60298
  OldValues___;
60272
60299
  };
60273
60300
  __decorate([
@@ -60322,6 +60349,10 @@ __decorate([
60322
60349
  Field({ nullable: true }),
60323
60350
  __metadata("design:type", String)
60324
60351
  ], UpdateAIAgentRunStepInput.prototype, "OutputData", void 0);
60352
+ __decorate([
60353
+ Field({ nullable: true }),
60354
+ __metadata("design:type", String)
60355
+ ], UpdateAIAgentRunStepInput.prototype, "TargetLogID", void 0);
60325
60356
  __decorate([
60326
60357
  Field(() => [KeyValuePairInput], { nullable: true }),
60327
60358
  __metadata("design:type", Array)