@memberjunction/core-entities 5.38.0 → 5.39.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.
@@ -1655,6 +1655,8 @@ export declare const MJAIAgentRunSchema: z.ZodObject<{
1655
1655
  SecondaryScopes: z.ZodNullable<z.ZodString>;
1656
1656
  ExternalReferenceID: z.ZodNullable<z.ZodString>;
1657
1657
  CompanyID: z.ZodNullable<z.ZodString>;
1658
+ TotalCacheReadTokensUsed: z.ZodNullable<z.ZodNumber>;
1659
+ TotalCacheWriteTokensUsed: z.ZodNullable<z.ZodNumber>;
1658
1660
  Agent: z.ZodNullable<z.ZodString>;
1659
1661
  ParentRun: z.ZodNullable<z.ZodString>;
1660
1662
  Conversation: z.ZodNullable<z.ZodString>;
@@ -1721,6 +1723,8 @@ export declare const MJAIAgentRunSchema: z.ZodObject<{
1721
1723
  ScheduledJobRunID?: string;
1722
1724
  TestRunID?: string;
1723
1725
  ExternalReferenceID?: string;
1726
+ TotalCacheReadTokensUsed?: number;
1727
+ TotalCacheWriteTokensUsed?: number;
1724
1728
  ParentRun?: string;
1725
1729
  ConversationDetail?: string;
1726
1730
  LastRun?: string;
@@ -1782,6 +1786,8 @@ export declare const MJAIAgentRunSchema: z.ZodObject<{
1782
1786
  ScheduledJobRunID?: string;
1783
1787
  TestRunID?: string;
1784
1788
  ExternalReferenceID?: string;
1789
+ TotalCacheReadTokensUsed?: number;
1790
+ TotalCacheWriteTokensUsed?: number;
1785
1791
  ParentRun?: string;
1786
1792
  ConversationDetail?: string;
1787
1793
  LastRun?: string;
@@ -2633,6 +2639,8 @@ export declare const MJAIModelCostSchema: z.ZodObject<{
2633
2639
  Comments: z.ZodNullable<z.ZodString>;
2634
2640
  __mj_CreatedAt: z.ZodDate;
2635
2641
  __mj_UpdatedAt: z.ZodDate;
2642
+ CacheReadPricePerUnit: z.ZodNullable<z.ZodNumber>;
2643
+ CacheWritePricePerUnit: z.ZodNullable<z.ZodNumber>;
2636
2644
  Model: z.ZodString;
2637
2645
  Vendor: z.ZodString;
2638
2646
  PriceType: z.ZodString;
@@ -2655,6 +2663,8 @@ export declare const MJAIModelCostSchema: z.ZodObject<{
2655
2663
  OutputPricePerUnit?: number;
2656
2664
  UnitTypeID?: string;
2657
2665
  ProcessingType?: "Batch" | "Realtime";
2666
+ CacheReadPricePerUnit?: number;
2667
+ CacheWritePricePerUnit?: number;
2658
2668
  PriceType?: string;
2659
2669
  UnitType?: string;
2660
2670
  }, {
@@ -2675,6 +2685,8 @@ export declare const MJAIModelCostSchema: z.ZodObject<{
2675
2685
  OutputPricePerUnit?: number;
2676
2686
  UnitTypeID?: string;
2677
2687
  ProcessingType?: "Batch" | "Realtime";
2688
+ CacheReadPricePerUnit?: number;
2689
+ CacheWritePricePerUnit?: number;
2678
2690
  PriceType?: string;
2679
2691
  UnitType?: string;
2680
2692
  }>;
@@ -3224,6 +3236,10 @@ export declare const MJAIPromptRunSchema: z.ZodObject<{
3224
3236
  Comments: z.ZodNullable<z.ZodString>;
3225
3237
  TestRunID: z.ZodNullable<z.ZodString>;
3226
3238
  AssistantPrefill: z.ZodNullable<z.ZodString>;
3239
+ TokensCacheRead: z.ZodNullable<z.ZodNumber>;
3240
+ TokensCacheWrite: z.ZodNullable<z.ZodNumber>;
3241
+ TokensCacheReadRollup: z.ZodNullable<z.ZodNumber>;
3242
+ TokensCacheWriteRollup: z.ZodNullable<z.ZodNumber>;
3227
3243
  Prompt: z.ZodString;
3228
3244
  Model: z.ZodString;
3229
3245
  Vendor: z.ZodString;
@@ -3333,6 +3349,10 @@ export declare const MJAIPromptRunSchema: z.ZodObject<{
3333
3349
  CompletionTime?: number;
3334
3350
  ModelSpecificResponseDetails?: string;
3335
3351
  AssistantPrefill?: string;
3352
+ TokensCacheRead?: number;
3353
+ TokensCacheWrite?: number;
3354
+ TokensCacheReadRollup?: number;
3355
+ TokensCacheWriteRollup?: number;
3336
3356
  OriginalModel?: string;
3337
3357
  RerunFromPromptRun?: string;
3338
3358
  Judge?: string;
@@ -3433,6 +3453,10 @@ export declare const MJAIPromptRunSchema: z.ZodObject<{
3433
3453
  CompletionTime?: number;
3434
3454
  ModelSpecificResponseDetails?: string;
3435
3455
  AssistantPrefill?: string;
3456
+ TokensCacheRead?: number;
3457
+ TokensCacheWrite?: number;
3458
+ TokensCacheReadRollup?: number;
3459
+ TokensCacheWriteRollup?: number;
3436
3460
  OriginalModel?: string;
3437
3461
  RerunFromPromptRun?: string;
3438
3462
  Judge?: string;
@@ -8969,7 +8993,7 @@ export declare const MJEntityFieldSchema: z.ZodObject<{
8969
8993
  DefaultValue: z.ZodNullable<z.ZodString>;
8970
8994
  AutoIncrement: z.ZodBoolean;
8971
8995
  ValueListType: z.ZodUnion<[z.ZodLiteral<"List">, z.ZodLiteral<"ListOrUserEntry">, z.ZodLiteral<"None">]>;
8972
- ExtendedType: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Code">, z.ZodLiteral<"Email">, z.ZodLiteral<"FaceTime">, z.ZodLiteral<"Geo">, z.ZodLiteral<"GeoAddress">, z.ZodLiteral<"GeoCity">, z.ZodLiteral<"GeoCountry">, z.ZodLiteral<"GeoLatitude">, z.ZodLiteral<"GeoLongitude">, z.ZodLiteral<"GeoPostalCode">, z.ZodLiteral<"GeoStateProvince">, z.ZodLiteral<"MSTeams">, z.ZodLiteral<"Other">, z.ZodLiteral<"SIP">, z.ZodLiteral<"SMS">, z.ZodLiteral<"Skype">, z.ZodLiteral<"Tel">, z.ZodLiteral<"URL">, z.ZodLiteral<"WhatsApp">, z.ZodLiteral<"ZoomMtg">]>>;
8996
+ ExtendedType: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Code">, z.ZodLiteral<"Email">, z.ZodLiteral<"FaceTime">, z.ZodLiteral<"Geo">, z.ZodLiteral<"GeoAddress">, z.ZodLiteral<"GeoCity">, z.ZodLiteral<"GeoCountry">, z.ZodLiteral<"GeoLatitude">, z.ZodLiteral<"GeoLongitude">, z.ZodLiteral<"GeoPostalCode">, z.ZodLiteral<"GeoStateProvince">, z.ZodLiteral<"HTML">, z.ZodLiteral<"Icon">, z.ZodLiteral<"MSTeams">, z.ZodLiteral<"Markdown">, z.ZodLiteral<"Other">, z.ZodLiteral<"SIP">, z.ZodLiteral<"SMS">, z.ZodLiteral<"Skype">, z.ZodLiteral<"Tel">, z.ZodLiteral<"URL">, z.ZodLiteral<"WhatsApp">, z.ZodLiteral<"ZoomMtg">]>>;
8973
8997
  CodeType: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"CSS">, z.ZodLiteral<"HTML">, z.ZodLiteral<"JavaScript">, z.ZodLiteral<"Other">, z.ZodLiteral<"SQL">, z.ZodLiteral<"TypeScript">]>>;
8974
8998
  DefaultInView: z.ZodBoolean;
8975
8999
  ViewCellTemplate: z.ZodNullable<z.ZodString>;
@@ -9060,8 +9084,8 @@ export declare const MJEntityFieldSchema: z.ZodObject<{
9060
9084
  AllowsNull?: boolean;
9061
9085
  AutoIncrement?: boolean;
9062
9086
  ValueListType?: "None" | "List" | "ListOrUserEntry";
9063
- ExtendedType?: "Code" | "Other" | "URL" | "Email" | "FaceTime" | "Geo" | "GeoAddress" | "GeoCity" | "GeoCountry" | "GeoLatitude" | "GeoLongitude" | "GeoPostalCode" | "GeoStateProvince" | "MSTeams" | "SIP" | "SMS" | "Skype" | "Tel" | "WhatsApp" | "ZoomMtg";
9064
- CodeType?: "Other" | "SQL" | "CSS" | "HTML" | "JavaScript" | "TypeScript";
9087
+ ExtendedType?: "Code" | "Other" | "Icon" | "Markdown" | "URL" | "Email" | "FaceTime" | "Geo" | "GeoAddress" | "GeoCity" | "GeoCountry" | "GeoLatitude" | "GeoLongitude" | "GeoPostalCode" | "GeoStateProvince" | "HTML" | "MSTeams" | "SIP" | "SMS" | "Skype" | "Tel" | "WhatsApp" | "ZoomMtg";
9088
+ CodeType?: "Other" | "SQL" | "HTML" | "CSS" | "JavaScript" | "TypeScript";
9065
9089
  DefaultInView?: boolean;
9066
9090
  ViewCellTemplate?: string;
9067
9091
  DefaultColumnWidth?: number;
@@ -9138,8 +9162,8 @@ export declare const MJEntityFieldSchema: z.ZodObject<{
9138
9162
  AllowsNull?: boolean;
9139
9163
  AutoIncrement?: boolean;
9140
9164
  ValueListType?: "None" | "List" | "ListOrUserEntry";
9141
- ExtendedType?: "Code" | "Other" | "URL" | "Email" | "FaceTime" | "Geo" | "GeoAddress" | "GeoCity" | "GeoCountry" | "GeoLatitude" | "GeoLongitude" | "GeoPostalCode" | "GeoStateProvince" | "MSTeams" | "SIP" | "SMS" | "Skype" | "Tel" | "WhatsApp" | "ZoomMtg";
9142
- CodeType?: "Other" | "SQL" | "CSS" | "HTML" | "JavaScript" | "TypeScript";
9165
+ ExtendedType?: "Code" | "Other" | "Icon" | "Markdown" | "URL" | "Email" | "FaceTime" | "Geo" | "GeoAddress" | "GeoCity" | "GeoCountry" | "GeoLatitude" | "GeoLongitude" | "GeoPostalCode" | "GeoStateProvince" | "HTML" | "MSTeams" | "SIP" | "SMS" | "Skype" | "Tel" | "WhatsApp" | "ZoomMtg";
9166
+ CodeType?: "Other" | "SQL" | "HTML" | "CSS" | "JavaScript" | "TypeScript";
9143
9167
  DefaultInView?: boolean;
9144
9168
  ViewCellTemplate?: string;
9145
9169
  DefaultColumnWidth?: number;
@@ -10066,7 +10090,7 @@ export declare const MJGeneratedCodeSchema: z.ZodObject<{
10066
10090
  GeneratedAt?: Date;
10067
10091
  GeneratedByModelID?: string;
10068
10092
  LinkedRecordPrimaryKey?: string;
10069
- Language?: "Other" | "SQL" | "CSS" | "HTML" | "JavaScript" | "TypeScript" | "Python";
10093
+ Language?: "Other" | "SQL" | "HTML" | "CSS" | "JavaScript" | "TypeScript" | "Python";
10070
10094
  GeneratedByModel?: string;
10071
10095
  }, {
10072
10096
  ID?: string;
@@ -10084,7 +10108,7 @@ export declare const MJGeneratedCodeSchema: z.ZodObject<{
10084
10108
  GeneratedAt?: Date;
10085
10109
  GeneratedByModelID?: string;
10086
10110
  LinkedRecordPrimaryKey?: string;
10087
- Language?: "Other" | "SQL" | "CSS" | "HTML" | "JavaScript" | "TypeScript" | "Python";
10111
+ Language?: "Other" | "SQL" | "HTML" | "CSS" | "JavaScript" | "TypeScript" | "Python";
10088
10112
  GeneratedByModel?: string;
10089
10113
  }>;
10090
10114
  export type MJGeneratedCodeEntityType = z.infer<typeof MJGeneratedCodeSchema>;
@@ -10154,6 +10178,7 @@ export declare const MJIntegrationObjectFieldSchema: z.ZodObject<{
10154
10178
  __mj_CreatedAt: z.ZodDate;
10155
10179
  __mj_UpdatedAt: z.ZodDate;
10156
10180
  IsCustom: z.ZodBoolean;
10181
+ MetadataSource: z.ZodUnion<[z.ZodLiteral<"Custom">, z.ZodLiteral<"Declared">, z.ZodLiteral<"Discovered">]>;
10157
10182
  IntegrationObject: z.ZodString;
10158
10183
  RelatedIntegrationObject: z.ZodNullable<z.ZodString>;
10159
10184
  }, "strip", z.ZodTypeAny, {
@@ -10181,6 +10206,7 @@ export declare const MJIntegrationObjectFieldSchema: z.ZodObject<{
10181
10206
  RelatedIntegrationObjectID?: string;
10182
10207
  RelatedIntegrationObjectFieldName?: string;
10183
10208
  IsCustom?: boolean;
10209
+ MetadataSource?: "Custom" | "Declared" | "Discovered";
10184
10210
  IntegrationObject?: string;
10185
10211
  RelatedIntegrationObject?: string;
10186
10212
  }, {
@@ -10208,6 +10234,7 @@ export declare const MJIntegrationObjectFieldSchema: z.ZodObject<{
10208
10234
  RelatedIntegrationObjectID?: string;
10209
10235
  RelatedIntegrationObjectFieldName?: string;
10210
10236
  IsCustom?: boolean;
10237
+ MetadataSource?: "Custom" | "Declared" | "Discovered";
10211
10238
  IntegrationObject?: string;
10212
10239
  RelatedIntegrationObject?: string;
10213
10240
  }>;
@@ -10239,6 +10266,20 @@ export declare const MJIntegrationObjectSchema: z.ZodObject<{
10239
10266
  WriteMethod: z.ZodNullable<z.ZodString>;
10240
10267
  DeleteMethod: z.ZodNullable<z.ZodString>;
10241
10268
  IsCustom: z.ZodBoolean;
10269
+ CreateAPIPath: z.ZodNullable<z.ZodString>;
10270
+ CreateMethod: z.ZodNullable<z.ZodString>;
10271
+ CreateBodyShape: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"flat">, z.ZodLiteral<"literal">, z.ZodLiteral<"wrapped">]>>;
10272
+ CreateBodyKey: z.ZodNullable<z.ZodString>;
10273
+ CreateIDLocation: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"body">, z.ZodLiteral<"header">, z.ZodLiteral<"n/a">, z.ZodLiteral<"path">]>>;
10274
+ UpdateAPIPath: z.ZodNullable<z.ZodString>;
10275
+ UpdateMethod: z.ZodNullable<z.ZodString>;
10276
+ UpdateBodyShape: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"flat">, z.ZodLiteral<"literal">, z.ZodLiteral<"wrapped">]>>;
10277
+ UpdateBodyKey: z.ZodNullable<z.ZodString>;
10278
+ UpdateIDLocation: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"body">, z.ZodLiteral<"header">, z.ZodLiteral<"n/a">, z.ZodLiteral<"path">]>>;
10279
+ DeleteAPIPath: z.ZodNullable<z.ZodString>;
10280
+ DeleteIDLocation: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"body">, z.ZodLiteral<"header">, z.ZodLiteral<"n/a">, z.ZodLiteral<"path">]>>;
10281
+ IncrementalWatermarkField: z.ZodNullable<z.ZodString>;
10282
+ MetadataSource: z.ZodUnion<[z.ZodLiteral<"Custom">, z.ZodLiteral<"Declared">, z.ZodLiteral<"Discovered">]>;
10242
10283
  Integration: z.ZodString;
10243
10284
  }, "strip", z.ZodTypeAny, {
10244
10285
  ID?: string;
@@ -10254,6 +10295,7 @@ export declare const MJIntegrationObjectSchema: z.ZodObject<{
10254
10295
  Integration?: string;
10255
10296
  IntegrationID?: string;
10256
10297
  IsCustom?: boolean;
10298
+ MetadataSource?: "Custom" | "Declared" | "Discovered";
10257
10299
  APIPath?: string;
10258
10300
  ResponseDataKey?: string;
10259
10301
  DefaultPageSize?: number;
@@ -10265,6 +10307,19 @@ export declare const MJIntegrationObjectSchema: z.ZodObject<{
10265
10307
  WriteAPIPath?: string;
10266
10308
  WriteMethod?: string;
10267
10309
  DeleteMethod?: string;
10310
+ CreateAPIPath?: string;
10311
+ CreateMethod?: string;
10312
+ CreateBodyShape?: "flat" | "literal" | "wrapped";
10313
+ CreateBodyKey?: string;
10314
+ CreateIDLocation?: "path" | "body" | "header" | "n/a";
10315
+ UpdateAPIPath?: string;
10316
+ UpdateMethod?: string;
10317
+ UpdateBodyShape?: "flat" | "literal" | "wrapped";
10318
+ UpdateBodyKey?: string;
10319
+ UpdateIDLocation?: "path" | "body" | "header" | "n/a";
10320
+ DeleteAPIPath?: string;
10321
+ DeleteIDLocation?: "path" | "body" | "header" | "n/a";
10322
+ IncrementalWatermarkField?: string;
10268
10323
  }, {
10269
10324
  ID?: string;
10270
10325
  __mj_CreatedAt?: Date;
@@ -10279,6 +10334,7 @@ export declare const MJIntegrationObjectSchema: z.ZodObject<{
10279
10334
  Integration?: string;
10280
10335
  IntegrationID?: string;
10281
10336
  IsCustom?: boolean;
10337
+ MetadataSource?: "Custom" | "Declared" | "Discovered";
10282
10338
  APIPath?: string;
10283
10339
  ResponseDataKey?: string;
10284
10340
  DefaultPageSize?: number;
@@ -10290,6 +10346,19 @@ export declare const MJIntegrationObjectSchema: z.ZodObject<{
10290
10346
  WriteAPIPath?: string;
10291
10347
  WriteMethod?: string;
10292
10348
  DeleteMethod?: string;
10349
+ CreateAPIPath?: string;
10350
+ CreateMethod?: string;
10351
+ CreateBodyShape?: "flat" | "literal" | "wrapped";
10352
+ CreateBodyKey?: string;
10353
+ CreateIDLocation?: "path" | "body" | "header" | "n/a";
10354
+ UpdateAPIPath?: string;
10355
+ UpdateMethod?: string;
10356
+ UpdateBodyShape?: "flat" | "literal" | "wrapped";
10357
+ UpdateBodyKey?: string;
10358
+ UpdateIDLocation?: "path" | "body" | "header" | "n/a";
10359
+ DeleteAPIPath?: string;
10360
+ DeleteIDLocation?: "path" | "body" | "header" | "n/a";
10361
+ IncrementalWatermarkField?: string;
10293
10362
  }>;
10294
10363
  export type MJIntegrationObjectEntityType = z.infer<typeof MJIntegrationObjectSchema>;
10295
10364
  /**
@@ -13396,6 +13465,7 @@ export declare const MJScheduledJobSchema: z.ZodObject<{
13396
13465
  ConcurrencyMode: z.ZodUnion<[z.ZodLiteral<"Concurrent">, z.ZodLiteral<"Queue">, z.ZodLiteral<"Skip">]>;
13397
13466
  __mj_CreatedAt: z.ZodDate;
13398
13467
  __mj_UpdatedAt: z.ZodDate;
13468
+ RunImmediatelyIfNeverRun: z.ZodBoolean;
13399
13469
  JobType: z.ZodString;
13400
13470
  OwnerUser: z.ZodNullable<z.ZodString>;
13401
13471
  NotifyUser: z.ZodNullable<z.ZodString>;
@@ -13429,6 +13499,7 @@ export declare const MJScheduledJobSchema: z.ZodObject<{
13429
13499
  LockToken?: string;
13430
13500
  ExpectedCompletionAt?: Date;
13431
13501
  ConcurrencyMode?: "Queue" | "Concurrent" | "Skip";
13502
+ RunImmediatelyIfNeverRun?: boolean;
13432
13503
  JobType?: string;
13433
13504
  NotifyUser?: string;
13434
13505
  }, {
@@ -13461,6 +13532,7 @@ export declare const MJScheduledJobSchema: z.ZodObject<{
13461
13532
  LockToken?: string;
13462
13533
  ExpectedCompletionAt?: Date;
13463
13534
  ConcurrencyMode?: "Queue" | "Concurrent" | "Skip";
13535
+ RunImmediatelyIfNeverRun?: boolean;
13464
13536
  JobType?: string;
13465
13537
  NotifyUser?: string;
13466
13538
  }>;
@@ -14208,11 +14280,13 @@ export declare const MJTagSynonymSchema: z.ZodObject<{
14208
14280
  Source: z.ZodUnion<[z.ZodLiteral<"Imported">, z.ZodLiteral<"LLM">, z.ZodLiteral<"Manual">, z.ZodLiteral<"Merged">]>;
14209
14281
  __mj_CreatedAt: z.ZodDate;
14210
14282
  __mj_UpdatedAt: z.ZodDate;
14283
+ Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Rejected">]>;
14211
14284
  Tag: z.ZodString;
14212
14285
  }, "strip", z.ZodTypeAny, {
14213
14286
  ID?: string;
14214
14287
  __mj_CreatedAt?: Date;
14215
14288
  __mj_UpdatedAt?: Date;
14289
+ Status?: "Active" | "Pending" | "Rejected";
14216
14290
  Tag?: string;
14217
14291
  TagID?: string;
14218
14292
  Source?: "Manual" | "Merged" | "Imported" | "LLM";
@@ -14221,6 +14295,7 @@ export declare const MJTagSynonymSchema: z.ZodObject<{
14221
14295
  ID?: string;
14222
14296
  __mj_CreatedAt?: Date;
14223
14297
  __mj_UpdatedAt?: Date;
14298
+ Status?: "Active" | "Pending" | "Rejected";
14224
14299
  Tag?: string;
14225
14300
  TagID?: string;
14226
14301
  Source?: "Manual" | "Merged" | "Imported" | "LLM";
@@ -14531,14 +14606,14 @@ export declare const MJTemplateContentTypeSchema: z.ZodObject<{
14531
14606
  __mj_UpdatedAt?: Date;
14532
14607
  Name?: string;
14533
14608
  Description?: string;
14534
- CodeType?: "Other" | "JSON" | "CSS" | "HTML" | "JavaScript" | "TypeScript" | "Python" | "Nunjucks";
14609
+ CodeType?: "Other" | "JSON" | "HTML" | "CSS" | "JavaScript" | "TypeScript" | "Python" | "Nunjucks";
14535
14610
  }, {
14536
14611
  ID?: string;
14537
14612
  __mj_CreatedAt?: Date;
14538
14613
  __mj_UpdatedAt?: Date;
14539
14614
  Name?: string;
14540
14615
  Description?: string;
14541
- CodeType?: "Other" | "JSON" | "CSS" | "HTML" | "JavaScript" | "TypeScript" | "Python" | "Nunjucks";
14616
+ CodeType?: "Other" | "JSON" | "HTML" | "CSS" | "JavaScript" | "TypeScript" | "Python" | "Nunjucks";
14542
14617
  }>;
14543
14618
  export type MJTemplateContentTypeEntityType = z.infer<typeof MJTemplateContentTypeSchema>;
14544
14619
  /**
@@ -21270,7 +21345,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
21270
21345
  ValidateFinalStepAllowedValues(result: ValidationResult): void;
21271
21346
  /**
21272
21347
  * * Field Name: ID
21273
- * * Display Name: ID
21348
+ * * Display Name: Run ID
21274
21349
  * * SQL Data Type: uniqueidentifier
21275
21350
  * * Default Value: newsequentialid()
21276
21351
  * * Description: Unique identifier for this agent run
@@ -21382,7 +21457,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
21382
21457
  set AgentState(value: string | null);
21383
21458
  /**
21384
21459
  * * Field Name: TotalTokensUsed
21385
- * * Display Name: Total Tokens Used
21460
+ * * Display Name: Total Tokens
21386
21461
  * * SQL Data Type: int
21387
21462
  * * Default Value: 0
21388
21463
  * * Description: Total number of tokens consumed by all LLM calls during this agent run
@@ -21414,7 +21489,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
21414
21489
  get __mj_UpdatedAt(): Date;
21415
21490
  /**
21416
21491
  * * Field Name: TotalPromptTokensUsed
21417
- * * Display Name: Total Prompt Tokens Used
21492
+ * * Display Name: Prompt Tokens
21418
21493
  * * SQL Data Type: int
21419
21494
  * * Description: Total number of prompt/input tokens used across all AIPromptRun executions during this agent run. This provides a breakdown of the TotalTokensUsed field to help analyze the ratio of input vs output tokens consumed by the agent.
21420
21495
  */
@@ -21422,7 +21497,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
21422
21497
  set TotalPromptTokensUsed(value: number | null);
21423
21498
  /**
21424
21499
  * * Field Name: TotalCompletionTokensUsed
21425
- * * Display Name: Total Completion Tokens Used
21500
+ * * Display Name: Completion Tokens
21426
21501
  * * SQL Data Type: int
21427
21502
  * * Description: Total number of completion/output tokens generated across all AIPromptRun executions during this agent run. This provides a breakdown of the TotalTokensUsed field to help analyze the ratio of input vs output tokens consumed by the agent.
21428
21503
  */
@@ -21430,7 +21505,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
21430
21505
  set TotalCompletionTokensUsed(value: number | null);
21431
21506
  /**
21432
21507
  * * Field Name: TotalTokensUsedRollup
21433
- * * Display Name: Total Tokens Used (Rollup)
21508
+ * * Display Name: Total Tokens (Rollup)
21434
21509
  * * SQL Data Type: int
21435
21510
  * * Description: Total tokens used including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalTokensUsed. For parent agents, this includes the sum of all descendant agent tokens. Calculated as TotalPromptTokensUsedRollup + TotalCompletionTokensUsedRollup.
21436
21511
  */
@@ -21438,7 +21513,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
21438
21513
  set TotalTokensUsedRollup(value: number | null);
21439
21514
  /**
21440
21515
  * * Field Name: TotalPromptTokensUsedRollup
21441
- * * Display Name: Total Prompt Tokens Used (Rollup)
21516
+ * * Display Name: Prompt Tokens (Rollup)
21442
21517
  * * SQL Data Type: int
21443
21518
  * * Description: Total prompt/input tokens including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalPromptTokensUsed. For parent agents, this includes the sum of all descendant agent prompt tokens.
21444
21519
  */
@@ -21446,7 +21521,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
21446
21521
  set TotalPromptTokensUsedRollup(value: number | null);
21447
21522
  /**
21448
21523
  * * Field Name: TotalCompletionTokensUsedRollup
21449
- * * Display Name: Total Completion Tokens Used (Rollup)
21524
+ * * Display Name: Completion Tokens (Rollup)
21450
21525
  * * SQL Data Type: int
21451
21526
  * * Description: Total completion/output tokens including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalCompletionTokensUsed. For parent agents, this includes the sum of all descendant agent completion tokens.
21452
21527
  */
@@ -21471,7 +21546,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
21471
21546
  set ConversationDetailID(value: string | null);
21472
21547
  /**
21473
21548
  * * Field Name: ConversationDetailSequence
21474
- * * Display Name: Conversation Detail Sequence
21549
+ * * Display Name: Sequence
21475
21550
  * * SQL Data Type: int
21476
21551
  * * Description: If a conversation detail spawned multiple agent runs, tracks the order of their spawn/execution
21477
21552
  */
@@ -21518,7 +21593,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
21518
21593
  set FinalPayload(value: string | null);
21519
21594
  /**
21520
21595
  * * Field Name: Message
21521
- * * Display Name: Message
21596
+ * * Display Name: Final Message
21522
21597
  * * SQL Data Type: nvarchar(MAX)
21523
21598
  * * Description: Final message from the agent to the end user at the end of a run
21524
21599
  */
@@ -21580,7 +21655,7 @@ each time the agent processes a prompt step.
21580
21655
  set OverrideVendorID(value: string | null);
21581
21656
  /**
21582
21657
  * * Field Name: Data
21583
- * * Display Name: Data
21658
+ * * Display Name: Execution Data
21584
21659
  * * SQL Data Type: nvarchar(MAX)
21585
21660
  * * Description: JSON serialized data that was passed for template rendering and prompt execution. This data was passed to the agent's prompt as well as all sub-agents.
21586
21661
  */
@@ -21664,7 +21739,7 @@ each time the agent processes a prompt step.
21664
21739
  set SecondaryScopes(value: string | null);
21665
21740
  /**
21666
21741
  * * Field Name: ExternalReferenceID
21667
- * * Display Name: External Reference ID
21742
+ * * Display Name: External Reference
21668
21743
  * * SQL Data Type: nvarchar(200)
21669
21744
  * * Description: Optional reference ID from an external system that initiated this agent run. Enables correlation between the caller's agent run and this execution. For example, when Skip SaaS is called via SkipProxyAgent, this stores the MJ-side Agent Run ID.
21670
21745
  */
@@ -21672,81 +21747,97 @@ each time the agent processes a prompt step.
21672
21747
  set ExternalReferenceID(value: string | null);
21673
21748
  /**
21674
21749
  * * Field Name: CompanyID
21675
- * * Display Name: Company ID
21750
+ * * Display Name: Company
21676
21751
  * * SQL Data Type: uniqueidentifier
21677
21752
  * * Description: Optional company scope for multi-tenant memory. When populated, Memory Manager uses this to scope extracted notes to the company. Flows from ExecuteAgentParams.companyId at agent invocation time.
21678
21753
  */
21679
21754
  get CompanyID(): string | null;
21680
21755
  set CompanyID(value: string | null);
21681
21756
  /**
21757
+ * * Field Name: TotalCacheReadTokensUsed
21758
+ * * Display Name: Cache Read Tokens
21759
+ * * SQL Data Type: int
21760
+ * * Description: Total input tokens served from the AI provider's prompt cache (cache reads / hits) across this agent run, summed from child prompt runs' TokensCacheReadRollup and sub-agent runs' TotalCacheReadTokensUsed. Counts only; the cost impact (cache reads are billed at a steep discount) is reflected in TotalCost. The cache counterpart of TotalPromptTokensUsed.
21761
+ */
21762
+ get TotalCacheReadTokensUsed(): number | null;
21763
+ set TotalCacheReadTokensUsed(value: number | null);
21764
+ /**
21765
+ * * Field Name: TotalCacheWriteTokensUsed
21766
+ * * Display Name: Cache Write Tokens
21767
+ * * SQL Data Type: int
21768
+ * * Description: Total input tokens written to the AI provider's prompt cache (cache writes / creation) across this agent run, summed from child prompt runs' TokensCacheWriteRollup and sub-agent runs' TotalCacheWriteTokensUsed. Populated for providers that bill cache creation (e.g. Anthropic); 0 or NULL otherwise. The cache counterpart of TotalCompletionTokensUsed.
21769
+ */
21770
+ get TotalCacheWriteTokensUsed(): number | null;
21771
+ set TotalCacheWriteTokensUsed(value: number | null);
21772
+ /**
21682
21773
  * * Field Name: Agent
21683
- * * Display Name: Agent Name
21774
+ * * Display Name: Agent Details
21684
21775
  * * SQL Data Type: nvarchar(255)
21685
21776
  */
21686
21777
  get Agent(): string | null;
21687
21778
  /**
21688
21779
  * * Field Name: ParentRun
21689
- * * Display Name: Parent Run Name
21780
+ * * Display Name: Parent Run Details
21690
21781
  * * SQL Data Type: nvarchar(255)
21691
21782
  */
21692
21783
  get ParentRun(): string | null;
21693
21784
  /**
21694
21785
  * * Field Name: Conversation
21695
- * * Display Name: Conversation Name
21786
+ * * Display Name: Conversation Details
21696
21787
  * * SQL Data Type: nvarchar(255)
21697
21788
  */
21698
21789
  get Conversation(): string | null;
21699
21790
  /**
21700
21791
  * * Field Name: User
21701
- * * Display Name: User Name
21792
+ * * Display Name: User Details
21702
21793
  * * SQL Data Type: nvarchar(100)
21703
21794
  */
21704
21795
  get User(): string | null;
21705
21796
  /**
21706
21797
  * * Field Name: ConversationDetail
21707
- * * Display Name: Conversation Detail Name
21798
+ * * Display Name: Conversation Detail Details
21708
21799
  * * SQL Data Type: nvarchar(MAX)
21709
21800
  */
21710
21801
  get ConversationDetail(): string | null;
21711
21802
  /**
21712
21803
  * * Field Name: LastRun
21713
- * * Display Name: Last Run Name
21804
+ * * Display Name: Last Run Details
21714
21805
  * * SQL Data Type: nvarchar(255)
21715
21806
  */
21716
21807
  get LastRun(): string | null;
21717
21808
  /**
21718
21809
  * * Field Name: Configuration
21719
- * * Display Name: Configuration Name
21810
+ * * Display Name: Configuration Details
21720
21811
  * * SQL Data Type: nvarchar(100)
21721
21812
  */
21722
21813
  get Configuration(): string | null;
21723
21814
  /**
21724
21815
  * * Field Name: OverrideModel
21725
- * * Display Name: Override Model Name
21816
+ * * Display Name: Override Model Details
21726
21817
  * * SQL Data Type: nvarchar(50)
21727
21818
  */
21728
21819
  get OverrideModel(): string | null;
21729
21820
  /**
21730
21821
  * * Field Name: OverrideVendor
21731
- * * Display Name: Override Vendor Name
21822
+ * * Display Name: Override Vendor Details
21732
21823
  * * SQL Data Type: nvarchar(50)
21733
21824
  */
21734
21825
  get OverrideVendor(): string | null;
21735
21826
  /**
21736
21827
  * * Field Name: ScheduledJobRun
21737
- * * Display Name: Scheduled Job Run Name
21828
+ * * Display Name: Scheduled Job Details
21738
21829
  * * SQL Data Type: nvarchar(200)
21739
21830
  */
21740
21831
  get ScheduledJobRun(): string | null;
21741
21832
  /**
21742
21833
  * * Field Name: TestRun
21743
- * * Display Name: Test Run Name
21834
+ * * Display Name: Test Run Details
21744
21835
  * * SQL Data Type: nvarchar(255)
21745
21836
  */
21746
21837
  get TestRun(): string | null;
21747
21838
  /**
21748
21839
  * * Field Name: PrimaryScopeEntity
21749
- * * Display Name: Primary Scope Entity Name
21840
+ * * Display Name: Primary Scope Entity Details
21750
21841
  * * SQL Data Type: nvarchar(255)
21751
21842
  */
21752
21843
  get PrimaryScopeEntity(): string | null;
@@ -24334,7 +24425,7 @@ export declare class MJAIModelCostEntity extends BaseEntity<MJAIModelCostEntityT
24334
24425
  set ID(value: string);
24335
24426
  /**
24336
24427
  * * Field Name: ModelID
24337
- * * Display Name: Model ID
24428
+ * * Display Name: Model
24338
24429
  * * SQL Data Type: uniqueidentifier
24339
24430
  * * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
24340
24431
  */
@@ -24342,7 +24433,7 @@ export declare class MJAIModelCostEntity extends BaseEntity<MJAIModelCostEntityT
24342
24433
  set ModelID(value: string);
24343
24434
  /**
24344
24435
  * * Field Name: VendorID
24345
- * * Display Name: Vendor ID
24436
+ * * Display Name: Vendor
24346
24437
  * * SQL Data Type: uniqueidentifier
24347
24438
  * * Related Entity/Foreign Key: MJ: AI Vendors (vwAIVendors.ID)
24348
24439
  */
@@ -24389,7 +24480,7 @@ export declare class MJAIModelCostEntity extends BaseEntity<MJAIModelCostEntityT
24389
24480
  set Currency(value: string);
24390
24481
  /**
24391
24482
  * * Field Name: PriceTypeID
24392
- * * Display Name: Price Type ID
24483
+ * * Display Name: Price Type
24393
24484
  * * SQL Data Type: uniqueidentifier
24394
24485
  * * Related Entity/Foreign Key: MJ: AI Model Price Types (vwAIModelPriceTypes.ID)
24395
24486
  */
@@ -24413,7 +24504,7 @@ export declare class MJAIModelCostEntity extends BaseEntity<MJAIModelCostEntityT
24413
24504
  set OutputPricePerUnit(value: number);
24414
24505
  /**
24415
24506
  * * Field Name: UnitTypeID
24416
- * * Display Name: Unit Type ID
24507
+ * * Display Name: Unit Type
24417
24508
  * * SQL Data Type: uniqueidentifier
24418
24509
  * * Related Entity/Foreign Key: MJ: AI Model Price Unit Types (vwAIModelPriceUnitTypes.ID)
24419
24510
  */
@@ -24454,26 +24545,42 @@ export declare class MJAIModelCostEntity extends BaseEntity<MJAIModelCostEntityT
24454
24545
  */
24455
24546
  get __mj_UpdatedAt(): Date;
24456
24547
  /**
24548
+ * * Field Name: CacheReadPricePerUnit
24549
+ * * Display Name: Cache Read Price Per Unit
24550
+ * * SQL Data Type: decimal(18, 8)
24551
+ * * Description: Optional price per unit for input tokens served from the AI provider's prompt cache (cache reads / hits), expressed in the same currency and UnitType (e.g. per 1M tokens) as InputPricePerUnit. When NULL, cache-read tokens are priced at InputPricePerUnit. Cache reads are usually far cheaper than uncached input (e.g. ~0.1x for Anthropic/Gemini, ~0.5x for OpenAI).
24552
+ */
24553
+ get CacheReadPricePerUnit(): number | null;
24554
+ set CacheReadPricePerUnit(value: number | null);
24555
+ /**
24556
+ * * Field Name: CacheWritePricePerUnit
24557
+ * * Display Name: Cache Write Price Per Unit
24558
+ * * SQL Data Type: decimal(18, 8)
24559
+ * * Description: Optional price per unit for input tokens written to the AI provider's prompt cache (cache writes / creation), expressed in the same currency and UnitType as InputPricePerUnit. When NULL, cache-write tokens are priced at InputPricePerUnit. Populated for providers that bill cache creation separately (e.g. Anthropic, ~1.25x input); leave NULL for providers that do not (OpenAI, Gemini), which also report 0 cache-write tokens.
24560
+ */
24561
+ get CacheWritePricePerUnit(): number | null;
24562
+ set CacheWritePricePerUnit(value: number | null);
24563
+ /**
24457
24564
  * * Field Name: Model
24458
- * * Display Name: Model
24565
+ * * Display Name: Model Name
24459
24566
  * * SQL Data Type: nvarchar(50)
24460
24567
  */
24461
24568
  get Model(): string;
24462
24569
  /**
24463
24570
  * * Field Name: Vendor
24464
- * * Display Name: Vendor
24571
+ * * Display Name: Vendor Name
24465
24572
  * * SQL Data Type: nvarchar(50)
24466
24573
  */
24467
24574
  get Vendor(): string;
24468
24575
  /**
24469
24576
  * * Field Name: PriceType
24470
- * * Display Name: Price Type
24577
+ * * Display Name: Price Type Name
24471
24578
  * * SQL Data Type: nvarchar(100)
24472
24579
  */
24473
24580
  get PriceType(): string;
24474
24581
  /**
24475
24582
  * * Field Name: UnitType
24476
- * * Display Name: Unit Type
24583
+ * * Display Name: Unit Type Name
24477
24584
  * * SQL Data Type: nvarchar(100)
24478
24585
  */
24479
24586
  get UnitType(): string;
@@ -25967,7 +26074,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
25967
26074
  set ConfigurationID(value: string | null);
25968
26075
  /**
25969
26076
  * * Field Name: RunAt
25970
- * * Display Name: Run At
26077
+ * * Display Name: Started At
25971
26078
  * * SQL Data Type: datetimeoffset
25972
26079
  * * Default Value: sysdatetimeoffset()
25973
26080
  * * Description: When the prompt run started, with timezone offset information.
@@ -26008,7 +26115,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26008
26115
  set Result(value: string | null);
26009
26116
  /**
26010
26117
  * * Field Name: TokensUsed
26011
- * * Display Name: Total Tokens Used
26118
+ * * Display Name: Tokens Used
26012
26119
  * * SQL Data Type: int
26013
26120
  * * Description: Total number of tokens used (prompt + completion).
26014
26121
  */
@@ -26120,7 +26227,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26120
26227
  set Cost(value: number | null);
26121
26228
  /**
26122
26229
  * * Field Name: CostCurrency
26123
- * * Display Name: Cost Currency
26230
+ * * Display Name: Currency
26124
26231
  * * SQL Data Type: nvarchar(10)
26125
26232
  * * Description: ISO 4217 currency code for the Cost field (e.g., USD, EUR, GBP). Different AI providers may use different currencies.
26126
26233
  */
@@ -26128,7 +26235,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26128
26235
  set CostCurrency(value: string | null);
26129
26236
  /**
26130
26237
  * * Field Name: TokensUsedRollup
26131
- * * Display Name: Total Tokens (Rollup)
26238
+ * * Display Name: Tokens Used (Rollup)
26132
26239
  * * SQL Data Type: int
26133
26240
  * * Description: Total tokens used including this execution and all child/grandchild executions. This provides a complete view of token usage for hierarchical prompt trees. Calculated as TokensPromptRollup + TokensCompletionRollup.
26134
26241
  */
@@ -26224,7 +26331,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26224
26331
  set ResponseFormat(value: string | null);
26225
26332
  /**
26226
26333
  * * Field Name: LogProbs
26227
- * * Display Name: Log Probabilities
26334
+ * * Display Name: Log Probs
26228
26335
  * * SQL Data Type: bit
26229
26336
  * * Description: Whether log probabilities were requested for this run
26230
26337
  */
@@ -26232,7 +26339,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26232
26339
  set LogProbs(value: boolean | null);
26233
26340
  /**
26234
26341
  * * Field Name: TopLogProbs
26235
- * * Display Name: Top Log Probabilities
26342
+ * * Display Name: Top Log Probs
26236
26343
  * * SQL Data Type: int
26237
26344
  * * Description: Number of top log probabilities requested per token (if LogProbs is true)
26238
26345
  */
@@ -26248,7 +26355,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26248
26355
  set DescendantCost(value: number | null);
26249
26356
  /**
26250
26357
  * * Field Name: ValidationAttemptCount
26251
- * * Display Name: Validation Attempt Count
26358
+ * * Display Name: Validation Attempts
26252
26359
  * * SQL Data Type: int
26253
26360
  * * Description: Total number of validation attempts made (including the initial attempt)
26254
26361
  */
@@ -26256,7 +26363,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26256
26363
  set ValidationAttemptCount(value: number | null);
26257
26364
  /**
26258
26365
  * * Field Name: SuccessfulValidationCount
26259
- * * Display Name: Successful Validation Count
26366
+ * * Display Name: Successful Validations
26260
26367
  * * SQL Data Type: int
26261
26368
  * * Description: Number of validation attempts that passed validation
26262
26369
  */
@@ -26264,7 +26371,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26264
26371
  set SuccessfulValidationCount(value: number | null);
26265
26372
  /**
26266
26373
  * * Field Name: FinalValidationPassed
26267
- * * Display Name: Final Validation Passed
26374
+ * * Display Name: Validation Passed
26268
26375
  * * SQL Data Type: bit
26269
26376
  * * Description: Whether validation ultimately passed (1) or failed (0)
26270
26377
  */
@@ -26288,7 +26395,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26288
26395
  set RetryStrategy(value: string | null);
26289
26396
  /**
26290
26397
  * * Field Name: MaxRetriesConfigured
26291
- * * Display Name: Max Retries Configured
26398
+ * * Display Name: Max Retries
26292
26399
  * * SQL Data Type: int
26293
26400
  * * Description: Maximum number of retries configured on the prompt
26294
26401
  */
@@ -26344,7 +26451,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26344
26451
  set TotalRetryDurationMS(value: number | null);
26345
26452
  /**
26346
26453
  * * Field Name: ValidationAttempts
26347
- * * Display Name: Validation Attempts
26454
+ * * Display Name: Validation Attempt Logs
26348
26455
  * * SQL Data Type: nvarchar(MAX)
26349
26456
  * * Description: JSON array containing detailed information about each validation attempt
26350
26457
  */
@@ -26385,7 +26492,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26385
26492
  set FailoverDurations(value: string | null);
26386
26493
  /**
26387
26494
  * * Field Name: OriginalModelID
26388
- * * Display Name: Original Model
26495
+ * * Display Name: Original Model ID
26389
26496
  * * SQL Data Type: uniqueidentifier
26390
26497
  * * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
26391
26498
  * * Description: The AI Model ID that was originally attempted before any failovers
@@ -26394,7 +26501,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26394
26501
  set OriginalModelID(value: string | null);
26395
26502
  /**
26396
26503
  * * Field Name: OriginalRequestStartTime
26397
- * * Display Name: Original Request Start Time
26504
+ * * Display Name: Original Request Start
26398
26505
  * * SQL Data Type: datetimeoffset
26399
26506
  * * Description: Timestamp when the original request started, before any failovers
26400
26507
  */
@@ -26419,7 +26526,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26419
26526
  set RerunFromPromptRunID(value: string | null);
26420
26527
  /**
26421
26528
  * * Field Name: ModelSelection
26422
- * * Display Name: Model Selection
26529
+ * * Display Name: Model Selection Details
26423
26530
  * * SQL Data Type: nvarchar(MAX)
26424
26531
  * * Description: JSON object containing detailed model selection information including all models considered, their scores, and the selection rationale
26425
26532
  */
@@ -26498,7 +26605,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26498
26605
  set CacheKey(value: string | null);
26499
26606
  /**
26500
26607
  * * Field Name: JudgeID
26501
- * * Display Name: Judge
26608
+ * * Display Name: Judge Prompt
26502
26609
  * * SQL Data Type: uniqueidentifier
26503
26610
  * * Related Entity/Foreign Key: MJ: AI Prompts (vwAIPrompts.ID)
26504
26611
  * * Description: ID of the AIPrompt used as a judge to evaluate and rank multiple parallel execution results
@@ -26582,7 +26689,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26582
26689
  set CompletionTime(value: number | null);
26583
26690
  /**
26584
26691
  * * Field Name: ModelSpecificResponseDetails
26585
- * * Display Name: Model Specific Response Details
26692
+ * * Display Name: Provider Response Details
26586
26693
  * * SQL Data Type: nvarchar(MAX)
26587
26694
  * * Description: JSON field containing provider-specific response metadata and details not captured in standard fields. Structure varies by AI provider.
26588
26695
  */
@@ -26630,6 +26737,38 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26630
26737
  get AssistantPrefill(): string | null;
26631
26738
  set AssistantPrefill(value: string | null);
26632
26739
  /**
26740
+ * * Field Name: TokensCacheRead
26741
+ * * Display Name: Tokens Cache Read
26742
+ * * SQL Data Type: int
26743
+ * * Description: Number of input tokens served from the AI provider's prompt cache (a cache READ / hit) for this run, as reported by the provider. Counts only; no cost is derived here. NULL if the provider did not report cache reads or caching did not engage. Distinct from CacheHit/CacheKey, which track MemberJunction's own result cache.
26744
+ */
26745
+ get TokensCacheRead(): number | null;
26746
+ set TokensCacheRead(value: number | null);
26747
+ /**
26748
+ * * Field Name: TokensCacheWrite
26749
+ * * Display Name: Tokens Cache Write
26750
+ * * SQL Data Type: int
26751
+ * * Description: Number of input tokens written to the AI provider's prompt cache (a cache WRITE / creation) for this run, as reported by the provider. Populated for providers that report cache writes (e.g. Anthropic cache_creation_input_tokens); NULL or 0 for providers that do not bill/report writes (OpenAI, Gemini, Groq, Cerebras). Counts only; no cost is derived here.
26752
+ */
26753
+ get TokensCacheWrite(): number | null;
26754
+ set TokensCacheWrite(value: number | null);
26755
+ /**
26756
+ * * Field Name: TokensCacheReadRollup
26757
+ * * Display Name: Tokens Cache Read (Rollup)
26758
+ * * SQL Data Type: int
26759
+ * * Description: Rollup of TokensCacheRead across this prompt run and all of its descendant prompt runs (e.g. the individual attempts behind a parallel / multi-attempt / failover consolidation). For a leaf run this equals TokensCacheRead. Use this (not TokensCacheRead) when aggregating cache reads up a prompt-run or agent-run hierarchy so fan-out provider calls are not under-counted.
26760
+ */
26761
+ get TokensCacheReadRollup(): number | null;
26762
+ set TokensCacheReadRollup(value: number | null);
26763
+ /**
26764
+ * * Field Name: TokensCacheWriteRollup
26765
+ * * Display Name: Tokens Cache Write (Rollup)
26766
+ * * SQL Data Type: int
26767
+ * * Description: Rollup of TokensCacheWrite across this prompt run and all of its descendant prompt runs. For a leaf run this equals TokensCacheWrite. Mirrors TokensUsedRollup/TokensPromptRollup; populated for providers that report cache writes (e.g. Anthropic), otherwise 0 or NULL.
26768
+ */
26769
+ get TokensCacheWriteRollup(): number | null;
26770
+ set TokensCacheWriteRollup(value: number | null);
26771
+ /**
26633
26772
  * * Field Name: Prompt
26634
26773
  * * Display Name: Prompt
26635
26774
  * * SQL Data Type: nvarchar(255)
@@ -26679,7 +26818,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26679
26818
  get OriginalModel(): string | null;
26680
26819
  /**
26681
26820
  * * Field Name: RerunFromPromptRun
26682
- * * Display Name: Rerun From
26821
+ * * Display Name: Rerun From Run
26683
26822
  * * SQL Data Type: nvarchar(255)
26684
26823
  */
26685
26824
  get RerunFromPromptRun(): string | null;
@@ -26709,7 +26848,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26709
26848
  get RootParentID(): string | null;
26710
26849
  /**
26711
26850
  * * Field Name: RootRerunFromPromptRunID
26712
- * * Display Name: Root Rerun From
26851
+ * * Display Name: Root Rerun Source
26713
26852
  * * SQL Data Type: uniqueidentifier
26714
26853
  */
26715
26854
  get RootRerunFromPromptRunID(): string | null;
@@ -29055,6 +29194,16 @@ export declare class MJApplicationEntity extends BaseEntity<MJApplicationEntityT
29055
29194
  */
29056
29195
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
29057
29196
  /**
29197
+ * MJ: Applications - Delete method override to wrap in transaction since CascadeDeletes is true.
29198
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
29199
+ * @public
29200
+ * @method
29201
+ * @override
29202
+ * @memberof MJApplicationEntity
29203
+ * @returns {Promise<boolean>} - true if successful, false otherwise
29204
+ */
29205
+ Delete(options?: EntityDeleteOptions): Promise<boolean>;
29206
+ /**
29058
29207
  * * Field Name: ID
29059
29208
  * * Display Name: ID
29060
29209
  * * SQL Data Type: uniqueidentifier
@@ -42709,7 +42858,10 @@ export declare class MJEntityFieldEntity extends BaseEntity<MJEntityFieldEntityT
42709
42858
  * * GeoLongitude
42710
42859
  * * GeoPostalCode
42711
42860
  * * GeoStateProvince
42861
+ * * HTML
42862
+ * * Icon
42712
42863
  * * MSTeams
42864
+ * * Markdown
42713
42865
  * * Other
42714
42866
  * * SIP
42715
42867
  * * SMS
@@ -42718,10 +42870,10 @@ export declare class MJEntityFieldEntity extends BaseEntity<MJEntityFieldEntityT
42718
42870
  * * URL
42719
42871
  * * WhatsApp
42720
42872
  * * ZoomMtg
42721
- * * Description: Defines extended behaviors for a field such as for Email, Web URLs, Code, etc.
42873
+ * * Description: Defines extended behaviors for a field such as Email, Web URLs, Code, Markdown, HTML, and Icon. When set to 'Icon', the field's values are treated as icon CSS classes (e.g. Font Awesome) for per-row display in the UI.
42722
42874
  */
42723
- get ExtendedType(): 'Code' | 'Email' | 'FaceTime' | 'Geo' | 'GeoAddress' | 'GeoCity' | 'GeoCountry' | 'GeoLatitude' | 'GeoLongitude' | 'GeoPostalCode' | 'GeoStateProvince' | 'MSTeams' | 'Other' | 'SIP' | 'SMS' | 'Skype' | 'Tel' | 'URL' | 'WhatsApp' | 'ZoomMtg' | null;
42724
- set ExtendedType(value: 'Code' | 'Email' | 'FaceTime' | 'Geo' | 'GeoAddress' | 'GeoCity' | 'GeoCountry' | 'GeoLatitude' | 'GeoLongitude' | 'GeoPostalCode' | 'GeoStateProvince' | 'MSTeams' | 'Other' | 'SIP' | 'SMS' | 'Skype' | 'Tel' | 'URL' | 'WhatsApp' | 'ZoomMtg' | null);
42875
+ get ExtendedType(): 'Code' | 'Email' | 'FaceTime' | 'Geo' | 'GeoAddress' | 'GeoCity' | 'GeoCountry' | 'GeoLatitude' | 'GeoLongitude' | 'GeoPostalCode' | 'GeoStateProvince' | 'HTML' | 'Icon' | 'MSTeams' | 'Markdown' | 'Other' | 'SIP' | 'SMS' | 'Skype' | 'Tel' | 'URL' | 'WhatsApp' | 'ZoomMtg' | null;
42876
+ set ExtendedType(value: 'Code' | 'Email' | 'FaceTime' | 'Geo' | 'GeoAddress' | 'GeoCity' | 'GeoCountry' | 'GeoLatitude' | 'GeoLongitude' | 'GeoPostalCode' | 'GeoStateProvince' | 'HTML' | 'Icon' | 'MSTeams' | 'Markdown' | 'Other' | 'SIP' | 'SMS' | 'Skype' | 'Tel' | 'URL' | 'WhatsApp' | 'ZoomMtg' | null);
42725
42877
  /**
42726
42878
  * * Field Name: CodeType
42727
42879
  * * Display Name: Code Type
@@ -45872,7 +46024,7 @@ export declare class MJIntegrationObjectFieldEntity extends BaseEntity<MJIntegra
45872
46024
  set ID(value: string);
45873
46025
  /**
45874
46026
  * * Field Name: IntegrationObjectID
45875
- * * Display Name: Integration Object
46027
+ * * Display Name: Integration Object ID
45876
46028
  * * SQL Data Type: uniqueidentifier
45877
46029
  * * Related Entity/Foreign Key: MJ: Integration Objects (vwIntegrationObjects.ID)
45878
46030
  * * Description: Foreign key to the IntegrationObject this field belongs to
@@ -45971,7 +46123,7 @@ export declare class MJIntegrationObjectFieldEntity extends BaseEntity<MJIntegra
45971
46123
  set IsPrimaryKey(value: boolean);
45972
46124
  /**
45973
46125
  * * Field Name: IsUniqueKey
45974
- * * Display Name: Is Unique Key
46126
+ * * Display Name: Is Unique
45975
46127
  * * SQL Data Type: bit
45976
46128
  * * Default Value: 0
45977
46129
  * * Description: Whether values must be unique across all records
@@ -46068,14 +46220,28 @@ export declare class MJIntegrationObjectFieldEntity extends BaseEntity<MJIntegra
46068
46220
  get IsCustom(): boolean;
46069
46221
  set IsCustom(value: boolean);
46070
46222
  /**
46223
+ * * Field Name: MetadataSource
46224
+ * * Display Name: Metadata Source
46225
+ * * SQL Data Type: nvarchar(20)
46226
+ * * Default Value: Declared
46227
+ * * Value List Type: List
46228
+ * * Possible Values
46229
+ * * Custom
46230
+ * * Declared
46231
+ * * Discovered
46232
+ * * Description: Provenance of this IntegrationObjectField row: Declared (from static research/docs), Discovered (from runtime API introspection), Custom (customer-defined custom field, e.g., HubSpot custom property on standard object). Drives merge precedence — discovered/runtime wins for type/constraints; declared wins for description/label/sequence/category.
46233
+ */
46234
+ get MetadataSource(): 'Custom' | 'Declared' | 'Discovered';
46235
+ set MetadataSource(value: 'Custom' | 'Declared' | 'Discovered');
46236
+ /**
46071
46237
  * * Field Name: IntegrationObject
46072
- * * Display Name: Integration Object Name
46238
+ * * Display Name: Integration Object
46073
46239
  * * SQL Data Type: nvarchar(255)
46074
46240
  */
46075
46241
  get IntegrationObject(): string;
46076
46242
  /**
46077
46243
  * * Field Name: RelatedIntegrationObject
46078
- * * Display Name: Related Object Name
46244
+ * * Display Name: Related Integration Object Name
46079
46245
  * * SQL Data Type: nvarchar(255)
46080
46246
  */
46081
46247
  get RelatedIntegrationObject(): string | null;
@@ -46115,7 +46281,7 @@ export declare class MJIntegrationObjectEntity extends BaseEntity<MJIntegrationO
46115
46281
  set ID(value: string);
46116
46282
  /**
46117
46283
  * * Field Name: IntegrationID
46118
- * * Display Name: Integration ID
46284
+ * * Display Name: Integration
46119
46285
  * * SQL Data Type: uniqueidentifier
46120
46286
  * * Related Entity/Foreign Key: MJ: Integrations (vwIntegrations.ID)
46121
46287
  * * Description: Foreign key to the Integration that owns this object
@@ -46310,8 +46476,154 @@ export declare class MJIntegrationObjectEntity extends BaseEntity<MJIntegrationO
46310
46476
  get IsCustom(): boolean;
46311
46477
  set IsCustom(value: boolean);
46312
46478
  /**
46479
+ * * Field Name: CreateAPIPath
46480
+ * * Display Name: Create API Path
46481
+ * * SQL Data Type: nvarchar(MAX)
46482
+ * * Description: HTTP path template for create operations. Generic CRUD in BaseRESTIntegrationConnector substitutes parent IDs into {var} placeholders. NULL means create not supported via metadata-driven path.
46483
+ */
46484
+ get CreateAPIPath(): string | null;
46485
+ set CreateAPIPath(value: string | null);
46486
+ /**
46487
+ * * Field Name: CreateMethod
46488
+ * * Display Name: Create Method
46489
+ * * SQL Data Type: nvarchar(20)
46490
+ * * Description: HTTP method for create (typically POST). NULL means create not supported via metadata-driven path.
46491
+ */
46492
+ get CreateMethod(): string | null;
46493
+ set CreateMethod(value: string | null);
46494
+ /**
46495
+ * * Field Name: CreateBodyShape
46496
+ * * Display Name: Create Body Shape
46497
+ * * SQL Data Type: nvarchar(50)
46498
+ * * Value List Type: List
46499
+ * * Possible Values
46500
+ * * flat
46501
+ * * literal
46502
+ * * wrapped
46503
+ * * Description: Request body shape for create: flat (top-level fields), wrapped (under CreateBodyKey), or literal (connector overrides CreateRecord and supplies own body).
46504
+ */
46505
+ get CreateBodyShape(): 'flat' | 'literal' | 'wrapped' | null;
46506
+ set CreateBodyShape(value: 'flat' | 'literal' | 'wrapped' | null);
46507
+ /**
46508
+ * * Field Name: CreateBodyKey
46509
+ * * Display Name: Create Body Key
46510
+ * * SQL Data Type: nvarchar(100)
46511
+ * * Description: Wrapper key for create body when CreateBodyShape=wrapped. Example: 'member' for YourMembership which wraps body as {member:{...}}.
46512
+ */
46513
+ get CreateBodyKey(): string | null;
46514
+ set CreateBodyKey(value: string | null);
46515
+ /**
46516
+ * * Field Name: CreateIDLocation
46517
+ * * Display Name: Create ID Location
46518
+ * * SQL Data Type: nvarchar(20)
46519
+ * * Value List Type: List
46520
+ * * Possible Values
46521
+ * * body
46522
+ * * header
46523
+ * * n/a
46524
+ * * path
46525
+ * * Description: Where the created record ID is found in the create response: path (URL of returned Location header), body (parsed from JSON response), header (specific named header).
46526
+ */
46527
+ get CreateIDLocation(): 'body' | 'header' | 'n/a' | 'path' | null;
46528
+ set CreateIDLocation(value: 'body' | 'header' | 'n/a' | 'path' | null);
46529
+ /**
46530
+ * * Field Name: UpdateAPIPath
46531
+ * * Display Name: Update API Path
46532
+ * * SQL Data Type: nvarchar(MAX)
46533
+ * * Description: HTTP path template for update operations. Typically contains {ID} placeholder substituted with the record ExternalID at runtime.
46534
+ */
46535
+ get UpdateAPIPath(): string | null;
46536
+ set UpdateAPIPath(value: string | null);
46537
+ /**
46538
+ * * Field Name: UpdateMethod
46539
+ * * Display Name: Update Method
46540
+ * * SQL Data Type: nvarchar(20)
46541
+ * * Description: HTTP method for update (typically PATCH or PUT).
46542
+ */
46543
+ get UpdateMethod(): string | null;
46544
+ set UpdateMethod(value: string | null);
46545
+ /**
46546
+ * * Field Name: UpdateBodyShape
46547
+ * * Display Name: Update Body Shape
46548
+ * * SQL Data Type: nvarchar(50)
46549
+ * * Value List Type: List
46550
+ * * Possible Values
46551
+ * * flat
46552
+ * * literal
46553
+ * * wrapped
46554
+ * * Description: Request body shape for update: flat | wrapped | literal. See CreateBodyShape.
46555
+ */
46556
+ get UpdateBodyShape(): 'flat' | 'literal' | 'wrapped' | null;
46557
+ set UpdateBodyShape(value: 'flat' | 'literal' | 'wrapped' | null);
46558
+ /**
46559
+ * * Field Name: UpdateBodyKey
46560
+ * * Display Name: Update Body Key
46561
+ * * SQL Data Type: nvarchar(100)
46562
+ * * Description: Wrapper key for update body when UpdateBodyShape=wrapped.
46563
+ */
46564
+ get UpdateBodyKey(): string | null;
46565
+ set UpdateBodyKey(value: string | null);
46566
+ /**
46567
+ * * Field Name: UpdateIDLocation
46568
+ * * Display Name: Update ID Location
46569
+ * * SQL Data Type: nvarchar(20)
46570
+ * * Value List Type: List
46571
+ * * Possible Values
46572
+ * * body
46573
+ * * header
46574
+ * * n/a
46575
+ * * path
46576
+ * * Description: For update: where the target record ID is located in the request — typically 'path' (substituted into UpdateAPIPath URL template).
46577
+ */
46578
+ get UpdateIDLocation(): 'body' | 'header' | 'n/a' | 'path' | null;
46579
+ set UpdateIDLocation(value: 'body' | 'header' | 'n/a' | 'path' | null);
46580
+ /**
46581
+ * * Field Name: DeleteAPIPath
46582
+ * * Display Name: Delete API Path
46583
+ * * SQL Data Type: nvarchar(MAX)
46584
+ * * Description: HTTP path template for delete operations. Typically contains {ID} placeholder. NULL means delete not supported via metadata-driven path. (Existing DeleteMethod column carries the verb.)
46585
+ */
46586
+ get DeleteAPIPath(): string | null;
46587
+ set DeleteAPIPath(value: string | null);
46588
+ /**
46589
+ * * Field Name: DeleteIDLocation
46590
+ * * Display Name: Delete ID Location
46591
+ * * SQL Data Type: nvarchar(20)
46592
+ * * Value List Type: List
46593
+ * * Possible Values
46594
+ * * body
46595
+ * * header
46596
+ * * n/a
46597
+ * * path
46598
+ * * Description: For delete: where the target record ID is located — typically 'path'.
46599
+ */
46600
+ get DeleteIDLocation(): 'body' | 'header' | 'n/a' | 'path' | null;
46601
+ set DeleteIDLocation(value: 'body' | 'header' | 'n/a' | 'path' | null);
46602
+ /**
46603
+ * * Field Name: IncrementalWatermarkField
46604
+ * * Display Name: Incremental Watermark Field
46605
+ * * SQL Data Type: nvarchar(255)
46606
+ * * Description: Vendor field name marking "last changed" — drives incremental sync filter when SupportsIncrementalSync=1. The exact filter syntax (e.g., $filter=Modified gt {value} or modified_since={value}) lives in Configuration.incrementalFilterFormat. Provable-only: leave NULL if docs do not name a watermark field.
46607
+ */
46608
+ get IncrementalWatermarkField(): string | null;
46609
+ set IncrementalWatermarkField(value: string | null);
46610
+ /**
46611
+ * * Field Name: MetadataSource
46612
+ * * Display Name: Metadata Source
46613
+ * * SQL Data Type: nvarchar(20)
46614
+ * * Default Value: Declared
46615
+ * * Value List Type: List
46616
+ * * Possible Values
46617
+ * * Custom
46618
+ * * Declared
46619
+ * * Discovered
46620
+ * * Description: Provenance of this IntegrationObject row: Declared (from static research/docs), Discovered (from runtime API introspection like Salesforce /describe), Custom (genuinely customer-created, e.g., HubSpot custom objects). Drives merge precedence in IntegrationSchemaSync.
46621
+ */
46622
+ get MetadataSource(): 'Custom' | 'Declared' | 'Discovered';
46623
+ set MetadataSource(value: 'Custom' | 'Declared' | 'Discovered');
46624
+ /**
46313
46625
  * * Field Name: Integration
46314
- * * Display Name: Integration
46626
+ * * Display Name: Integration Name
46315
46627
  * * SQL Data Type: nvarchar(100)
46316
46628
  */
46317
46629
  get Integration(): string;
@@ -54954,7 +55266,7 @@ export declare class MJScheduledJobEntity extends BaseEntity<MJScheduledJobEntit
54954
55266
  set NotifyViaEmail(value: boolean);
54955
55267
  /**
54956
55268
  * * Field Name: NotifyViaInApp
54957
- * * Display Name: Notify Via In App
55269
+ * * Display Name: Notify Via In-App
54958
55270
  * * SQL Data Type: bit
54959
55271
  * * Default Value: 1
54960
55272
  * * Description: Whether to send in-app notifications. Requires NotifyOnSuccess or NotifyOnFailure to also be enabled. Defaults to true.
@@ -55022,6 +55334,15 @@ export declare class MJScheduledJobEntity extends BaseEntity<MJScheduledJobEntit
55022
55334
  */
55023
55335
  get __mj_UpdatedAt(): Date;
55024
55336
  /**
55337
+ * * Field Name: RunImmediatelyIfNeverRun
55338
+ * * Display Name: Run Immediately If Never Run
55339
+ * * SQL Data Type: bit
55340
+ * * Default Value: 0
55341
+ * * Description: When true AND LastRunAt IS NULL, the scheduler sets NextRunAt to now() instead of the next cron tick on initialization, so the job runs on the next polling cycle. Useful for newly-seeded jobs that should not wait up to a full cron interval before their first execution.
55342
+ */
55343
+ get RunImmediatelyIfNeverRun(): boolean;
55344
+ set RunImmediatelyIfNeverRun(value: boolean);
55345
+ /**
55025
55346
  * * Field Name: JobType
55026
55347
  * * Display Name: Job Type
55027
55348
  * * SQL Data Type: nvarchar(100)
@@ -57176,6 +57497,20 @@ export declare class MJTagSynonymEntity extends BaseEntity<MJTagSynonymEntityTyp
57176
57497
  */
57177
57498
  get __mj_UpdatedAt(): Date;
57178
57499
  /**
57500
+ * * Field Name: Status
57501
+ * * Display Name: Status
57502
+ * * SQL Data Type: nvarchar(20)
57503
+ * * Default Value: Active
57504
+ * * Value List Type: List
57505
+ * * Possible Values
57506
+ * * Active
57507
+ * * Pending
57508
+ * * Rejected
57509
+ * * Description: Approval state of the synonym. Active = resolves to its tag during classification. Pending = proposed (e.g. by the LLM or a bulk import) and awaiting human review; does not resolve until approved. Rejected = reviewed and declined; retained for audit and to suppress re-proposal.
57510
+ */
57511
+ get Status(): 'Active' | 'Pending' | 'Rejected';
57512
+ set Status(value: 'Active' | 'Pending' | 'Rejected');
57513
+ /**
57179
57514
  * * Field Name: Tag
57180
57515
  * * Display Name: Tag Name
57181
57516
  * * SQL Data Type: nvarchar(255)
@@ -60175,6 +60510,16 @@ export declare class MJUserApplicationEntity extends BaseEntity<MJUserApplicatio
60175
60510
  */
60176
60511
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
60177
60512
  /**
60513
+ * MJ: User Applications - Delete method override to wrap in transaction since CascadeDeletes is true.
60514
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
60515
+ * @public
60516
+ * @method
60517
+ * @override
60518
+ * @memberof MJUserApplicationEntity
60519
+ * @returns {Promise<boolean>} - true if successful, false otherwise
60520
+ */
60521
+ Delete(options?: EntityDeleteOptions): Promise<boolean>;
60522
+ /**
60178
60523
  * * Field Name: ID
60179
60524
  * * SQL Data Type: uniqueidentifier
60180
60525
  * * Default Value: newsequentialid()