@memberjunction/core-entities 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.
@@ -4616,6 +4616,7 @@ export declare const AIAgentRunStepSchema: z.ZodObject<{
4616
4616
  OutputData: z.ZodNullable<z.ZodString>;
4617
4617
  __mj_CreatedAt: z.ZodDate;
4618
4618
  __mj_UpdatedAt: z.ZodDate;
4619
+ TargetLogID: z.ZodNullable<z.ZodString>;
4619
4620
  }, "strip", z.ZodTypeAny, {
4620
4621
  ID?: string;
4621
4622
  __mj_CreatedAt?: Date;
@@ -4632,6 +4633,7 @@ export declare const AIAgentRunStepSchema: z.ZodObject<{
4632
4633
  CompletedAt?: Date;
4633
4634
  InputData?: string;
4634
4635
  OutputData?: string;
4636
+ TargetLogID?: string;
4635
4637
  }, {
4636
4638
  ID?: string;
4637
4639
  __mj_CreatedAt?: Date;
@@ -4648,6 +4650,7 @@ export declare const AIAgentRunStepSchema: z.ZodObject<{
4648
4650
  CompletedAt?: Date;
4649
4651
  InputData?: string;
4650
4652
  OutputData?: string;
4653
+ TargetLogID?: string;
4651
4654
  }>;
4652
4655
  export type AIAgentRunStepEntityType = z.infer<typeof AIAgentRunStepSchema>;
4653
4656
  /**
@@ -5131,6 +5134,7 @@ export declare const AIPromptRunSchema: z.ZodObject<{
5131
5134
  ResponseFormat: z.ZodNullable<z.ZodString>;
5132
5135
  LogProbs: z.ZodNullable<z.ZodBoolean>;
5133
5136
  TopLogProbs: z.ZodNullable<z.ZodNumber>;
5137
+ DescendantCost: z.ZodNullable<z.ZodNumber>;
5134
5138
  Prompt: z.ZodString;
5135
5139
  Model: z.ZodString;
5136
5140
  Vendor: z.ZodString;
@@ -5181,6 +5185,7 @@ export declare const AIPromptRunSchema: z.ZodObject<{
5181
5185
  TokensPromptRollup?: number;
5182
5186
  TokensCompletionRollup?: number;
5183
5187
  LogProbs?: boolean;
5188
+ DescendantCost?: number;
5184
5189
  }, {
5185
5190
  ID?: string;
5186
5191
  __mj_CreatedAt?: Date;
@@ -5226,6 +5231,7 @@ export declare const AIPromptRunSchema: z.ZodObject<{
5226
5231
  TokensPromptRollup?: number;
5227
5232
  TokensCompletionRollup?: number;
5228
5233
  LogProbs?: boolean;
5234
+ DescendantCost?: number;
5229
5235
  }>;
5230
5236
  export type AIPromptRunEntityType = z.infer<typeof AIPromptRunSchema>;
5231
5237
  /**
@@ -19473,7 +19479,6 @@ export declare class FileEntity extends BaseEntity<FileEntityType> {
19473
19479
  * * Schema: __mj
19474
19480
  * * Base Table: GeneratedCodeCategory
19475
19481
  * * Base View: vwGeneratedCodeCategories
19476
- * * @description Categorization for generated code, including optional parent-child relationships.
19477
19482
  * * Primary Key: ID
19478
19483
  * @extends {BaseEntity}
19479
19484
  * @class
@@ -20710,6 +20715,14 @@ export declare class AIAgentRunStepEntity extends BaseEntity<AIAgentRunStepEntit
20710
20715
  * * Default Value: getutcdate()
20711
20716
  */
20712
20717
  get __mj_UpdatedAt(): Date;
20718
+ /**
20719
+ * * Field Name: TargetLogID
20720
+ * * Display Name: Target Log ID
20721
+ * * SQL Data Type: uniqueidentifier
20722
+ * * 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)
20723
+ */
20724
+ get TargetLogID(): string | null;
20725
+ set TargetLogID(value: string | null);
20713
20726
  }
20714
20727
  /**
20715
20728
  * MJ: AI Agent Runs - strongly typed entity sub-class
@@ -22244,7 +22257,7 @@ export declare class AIPromptRunEntity extends BaseEntity<AIPromptRunEntityType>
22244
22257
  * * Field Name: TotalCost
22245
22258
  * * Display Name: Total Cost
22246
22259
  * * SQL Data Type: decimal(18, 6)
22247
- * * 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.
22260
+ * * 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.
22248
22261
  */
22249
22262
  get TotalCost(): number | null;
22250
22263
  set TotalCost(value: number | null);
@@ -22449,6 +22462,14 @@ export declare class AIPromptRunEntity extends BaseEntity<AIPromptRunEntityType>
22449
22462
  get TopLogProbs(): number | null;
22450
22463
  set TopLogProbs(value: number | null);
22451
22464
  /**
22465
+ * * Field Name: DescendantCost
22466
+ * * Display Name: Descendant Cost
22467
+ * * SQL Data Type: decimal(18, 6)
22468
+ * * 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.
22469
+ */
22470
+ get DescendantCost(): number | null;
22471
+ set DescendantCost(value: number | null);
22472
+ /**
22452
22473
  * * Field Name: Prompt
22453
22474
  * * Display Name: Prompt
22454
22475
  * * SQL Data Type: nvarchar(255)