@memberjunction/core-entities 2.54.0 → 2.56.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.
@@ -578,6 +578,11 @@ exports.ActionSchema = zod_1.z.object({
578
578
  * * SQL Data Type: uniqueidentifier
579
579
  * * Related Entity/Foreign Key: Actions (vwActions.ID)
580
580
  * * Description: Optional ID of the parent action this action inherits from. Used for hierarchical action composition where child actions can specialize parent actions.`),
581
+ IconClass: zod_1.z.string().nullable().describe(`
582
+ * * Field Name: IconClass
583
+ * * Display Name: Icon Class
584
+ * * SQL Data Type: nvarchar(100)
585
+ * * Description: Font Awesome icon class (e.g., fa-cog, fa-play, fa-search) for visual representation of the action.`),
581
586
  Category: zod_1.z.string().nullable().describe(`
582
587
  * * Field Name: Category
583
588
  * * Display Name: Category
@@ -1070,6 +1075,11 @@ exports.AIAgentSchema = zod_1.z.object({
1070
1075
  * * Display Name: Driver Class
1071
1076
  * * SQL Data Type: nvarchar(255)
1072
1077
  * * Description: Optional override for the class name used by the MemberJunction class factory to instantiate this specific agent. If specified, this overrides the agent type's DriverClass. Useful for specialized agent implementations.`),
1078
+ IconClass: zod_1.z.string().nullable().describe(`
1079
+ * * Field Name: IconClass
1080
+ * * Display Name: Icon Class
1081
+ * * SQL Data Type: nvarchar(100)
1082
+ * * Description: Font Awesome icon class (e.g., fa-robot, fa-brain) for the agent. Used as fallback when LogoURL is not set or fails to load.`),
1073
1083
  Parent: zod_1.z.string().nullable().describe(`
1074
1084
  * * Field Name: Parent
1075
1085
  * * Display Name: Parent
@@ -7774,7 +7784,7 @@ exports.AIPromptRunSchema = zod_1.z.object({
7774
7784
  * * Field Name: TotalCost
7775
7785
  * * Display Name: Total Cost
7776
7786
  * * SQL Data Type: decimal(18, 6)
7777
- * * 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.`),
7787
+ * * 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.`),
7778
7788
  Success: zod_1.z.boolean().describe(`
7779
7789
  * * Field Name: Success
7780
7790
  * * Display Name: Success
@@ -7905,6 +7915,81 @@ exports.AIPromptRunSchema = zod_1.z.object({
7905
7915
  * * Display Name: Top Log Probs
7906
7916
  * * SQL Data Type: int
7907
7917
  * * Description: Number of top log probabilities requested per token (if LogProbs is true)`),
7918
+ DescendantCost: zod_1.z.number().nullable().describe(`
7919
+ * * Field Name: DescendantCost
7920
+ * * Display Name: Descendant Cost
7921
+ * * SQL Data Type: decimal(18, 6)
7922
+ * * 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.`),
7923
+ ValidationAttemptCount: zod_1.z.number().nullable().describe(`
7924
+ * * Field Name: ValidationAttemptCount
7925
+ * * Display Name: Validation Attempt Count
7926
+ * * SQL Data Type: int
7927
+ * * Description: Total number of validation attempts made (including the initial attempt)`),
7928
+ SuccessfulValidationCount: zod_1.z.number().nullable().describe(`
7929
+ * * Field Name: SuccessfulValidationCount
7930
+ * * Display Name: Successful Validation Count
7931
+ * * SQL Data Type: int
7932
+ * * Description: Number of validation attempts that passed validation`),
7933
+ FinalValidationPassed: zod_1.z.boolean().nullable().describe(`
7934
+ * * Field Name: FinalValidationPassed
7935
+ * * Display Name: Final Validation Passed
7936
+ * * SQL Data Type: bit
7937
+ * * Description: Whether validation ultimately passed (1) or failed (0)`),
7938
+ ValidationBehavior: zod_1.z.string().nullable().describe(`
7939
+ * * Field Name: ValidationBehavior
7940
+ * * Display Name: Validation Behavior
7941
+ * * SQL Data Type: nvarchar(50)
7942
+ * * Description: Validation behavior used: Strict, Warn, or None`),
7943
+ RetryStrategy: zod_1.z.string().nullable().describe(`
7944
+ * * Field Name: RetryStrategy
7945
+ * * Display Name: Retry Strategy
7946
+ * * SQL Data Type: nvarchar(50)
7947
+ * * Description: Retry strategy used: Fixed, Linear, or Exponential`),
7948
+ MaxRetriesConfigured: zod_1.z.number().nullable().describe(`
7949
+ * * Field Name: MaxRetriesConfigured
7950
+ * * Display Name: Max Retries Configured
7951
+ * * SQL Data Type: int
7952
+ * * Description: Maximum number of retries configured on the prompt`),
7953
+ FinalValidationError: zod_1.z.string().nullable().describe(`
7954
+ * * Field Name: FinalValidationError
7955
+ * * Display Name: Final Validation Error
7956
+ * * SQL Data Type: nvarchar(500)
7957
+ * * Description: The final validation error message if validation failed`),
7958
+ ValidationErrorCount: zod_1.z.number().nullable().describe(`
7959
+ * * Field Name: ValidationErrorCount
7960
+ * * Display Name: Validation Error Count
7961
+ * * SQL Data Type: int
7962
+ * * Description: Number of validation errors on the final attempt`),
7963
+ CommonValidationError: zod_1.z.string().nullable().describe(`
7964
+ * * Field Name: CommonValidationError
7965
+ * * Display Name: Common Validation Error
7966
+ * * SQL Data Type: nvarchar(255)
7967
+ * * Description: Most frequent validation error across all attempts`),
7968
+ FirstAttemptAt: zod_1.z.date().nullable().describe(`
7969
+ * * Field Name: FirstAttemptAt
7970
+ * * Display Name: First Attempt At
7971
+ * * SQL Data Type: datetime
7972
+ * * Description: Timestamp of the first validation attempt`),
7973
+ LastAttemptAt: zod_1.z.date().nullable().describe(`
7974
+ * * Field Name: LastAttemptAt
7975
+ * * Display Name: Last Attempt At
7976
+ * * SQL Data Type: datetime
7977
+ * * Description: Timestamp of the last validation attempt`),
7978
+ TotalRetryDurationMS: zod_1.z.number().nullable().describe(`
7979
+ * * Field Name: TotalRetryDurationMS
7980
+ * * Display Name: Total Retry Duration MS
7981
+ * * SQL Data Type: int
7982
+ * * Description: Total time spent on retries in milliseconds (excluding first attempt)`),
7983
+ ValidationAttempts: zod_1.z.string().nullable().describe(`
7984
+ * * Field Name: ValidationAttempts
7985
+ * * Display Name: Validation Attempts
7986
+ * * SQL Data Type: nvarchar(MAX)
7987
+ * * Description: JSON array containing detailed information about each validation attempt`),
7988
+ ValidationSummary: zod_1.z.string().nullable().describe(`
7989
+ * * Field Name: ValidationSummary
7990
+ * * Display Name: Validation Summary
7991
+ * * SQL Data Type: nvarchar(MAX)
7992
+ * * Description: JSON object containing summary information about the validation process`),
7908
7993
  Prompt: zod_1.z.string().describe(`
7909
7994
  * * Field Name: Prompt
7910
7995
  * * Display Name: Prompt
@@ -13093,6 +13178,18 @@ let ActionEntity = class ActionEntity extends core_1.BaseEntity {
13093
13178
  this.Set('ParentID', value);
13094
13179
  }
13095
13180
  /**
13181
+ * * Field Name: IconClass
13182
+ * * Display Name: Icon Class
13183
+ * * SQL Data Type: nvarchar(100)
13184
+ * * Description: Font Awesome icon class (e.g., fa-cog, fa-play, fa-search) for visual representation of the action.
13185
+ */
13186
+ get IconClass() {
13187
+ return this.Get('IconClass');
13188
+ }
13189
+ set IconClass(value) {
13190
+ this.Set('IconClass', value);
13191
+ }
13192
+ /**
13096
13193
  * * Field Name: Category
13097
13194
  * * Display Name: Category
13098
13195
  * * SQL Data Type: nvarchar(255)
@@ -14361,6 +14458,18 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
14361
14458
  this.Set('DriverClass', value);
14362
14459
  }
14363
14460
  /**
14461
+ * * Field Name: IconClass
14462
+ * * Display Name: Icon Class
14463
+ * * SQL Data Type: nvarchar(100)
14464
+ * * Description: Font Awesome icon class (e.g., fa-robot, fa-brain) for the agent. Used as fallback when LogoURL is not set or fails to load.
14465
+ */
14466
+ get IconClass() {
14467
+ return this.Get('IconClass');
14468
+ }
14469
+ set IconClass(value) {
14470
+ this.Set('IconClass', value);
14471
+ }
14472
+ /**
14364
14473
  * * Field Name: Parent
14365
14474
  * * Display Name: Parent
14366
14475
  * * SQL Data Type: nvarchar(255)
@@ -27997,7 +28106,6 @@ exports.FileEntity = FileEntity = __decorate([
27997
28106
  * * Schema: __mj
27998
28107
  * * Base Table: GeneratedCodeCategory
27999
28108
  * * Base View: vwGeneratedCodeCategories
28000
- * * @description Categorization for generated code, including optional parent-child relationships.
28001
28109
  * * Primary Key: ID
28002
28110
  * @extends {BaseEntity}
28003
28111
  * @class
@@ -31937,7 +32045,7 @@ let AIPromptRunEntity = class AIPromptRunEntity extends core_1.BaseEntity {
31937
32045
  * * Field Name: TotalCost
31938
32046
  * * Display Name: Total Cost
31939
32047
  * * SQL Data Type: decimal(18, 6)
31940
- * * 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.
32048
+ * * 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.
31941
32049
  */
31942
32050
  get TotalCost() {
31943
32051
  return this.Get('TotalCost');
@@ -32238,6 +32346,186 @@ let AIPromptRunEntity = class AIPromptRunEntity extends core_1.BaseEntity {
32238
32346
  this.Set('TopLogProbs', value);
32239
32347
  }
32240
32348
  /**
32349
+ * * Field Name: DescendantCost
32350
+ * * Display Name: Descendant Cost
32351
+ * * SQL Data Type: decimal(18, 6)
32352
+ * * 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.
32353
+ */
32354
+ get DescendantCost() {
32355
+ return this.Get('DescendantCost');
32356
+ }
32357
+ set DescendantCost(value) {
32358
+ this.Set('DescendantCost', value);
32359
+ }
32360
+ /**
32361
+ * * Field Name: ValidationAttemptCount
32362
+ * * Display Name: Validation Attempt Count
32363
+ * * SQL Data Type: int
32364
+ * * Description: Total number of validation attempts made (including the initial attempt)
32365
+ */
32366
+ get ValidationAttemptCount() {
32367
+ return this.Get('ValidationAttemptCount');
32368
+ }
32369
+ set ValidationAttemptCount(value) {
32370
+ this.Set('ValidationAttemptCount', value);
32371
+ }
32372
+ /**
32373
+ * * Field Name: SuccessfulValidationCount
32374
+ * * Display Name: Successful Validation Count
32375
+ * * SQL Data Type: int
32376
+ * * Description: Number of validation attempts that passed validation
32377
+ */
32378
+ get SuccessfulValidationCount() {
32379
+ return this.Get('SuccessfulValidationCount');
32380
+ }
32381
+ set SuccessfulValidationCount(value) {
32382
+ this.Set('SuccessfulValidationCount', value);
32383
+ }
32384
+ /**
32385
+ * * Field Name: FinalValidationPassed
32386
+ * * Display Name: Final Validation Passed
32387
+ * * SQL Data Type: bit
32388
+ * * Description: Whether validation ultimately passed (1) or failed (0)
32389
+ */
32390
+ get FinalValidationPassed() {
32391
+ return this.Get('FinalValidationPassed');
32392
+ }
32393
+ set FinalValidationPassed(value) {
32394
+ this.Set('FinalValidationPassed', value);
32395
+ }
32396
+ /**
32397
+ * * Field Name: ValidationBehavior
32398
+ * * Display Name: Validation Behavior
32399
+ * * SQL Data Type: nvarchar(50)
32400
+ * * Description: Validation behavior used: Strict, Warn, or None
32401
+ */
32402
+ get ValidationBehavior() {
32403
+ return this.Get('ValidationBehavior');
32404
+ }
32405
+ set ValidationBehavior(value) {
32406
+ this.Set('ValidationBehavior', value);
32407
+ }
32408
+ /**
32409
+ * * Field Name: RetryStrategy
32410
+ * * Display Name: Retry Strategy
32411
+ * * SQL Data Type: nvarchar(50)
32412
+ * * Description: Retry strategy used: Fixed, Linear, or Exponential
32413
+ */
32414
+ get RetryStrategy() {
32415
+ return this.Get('RetryStrategy');
32416
+ }
32417
+ set RetryStrategy(value) {
32418
+ this.Set('RetryStrategy', value);
32419
+ }
32420
+ /**
32421
+ * * Field Name: MaxRetriesConfigured
32422
+ * * Display Name: Max Retries Configured
32423
+ * * SQL Data Type: int
32424
+ * * Description: Maximum number of retries configured on the prompt
32425
+ */
32426
+ get MaxRetriesConfigured() {
32427
+ return this.Get('MaxRetriesConfigured');
32428
+ }
32429
+ set MaxRetriesConfigured(value) {
32430
+ this.Set('MaxRetriesConfigured', value);
32431
+ }
32432
+ /**
32433
+ * * Field Name: FinalValidationError
32434
+ * * Display Name: Final Validation Error
32435
+ * * SQL Data Type: nvarchar(500)
32436
+ * * Description: The final validation error message if validation failed
32437
+ */
32438
+ get FinalValidationError() {
32439
+ return this.Get('FinalValidationError');
32440
+ }
32441
+ set FinalValidationError(value) {
32442
+ this.Set('FinalValidationError', value);
32443
+ }
32444
+ /**
32445
+ * * Field Name: ValidationErrorCount
32446
+ * * Display Name: Validation Error Count
32447
+ * * SQL Data Type: int
32448
+ * * Description: Number of validation errors on the final attempt
32449
+ */
32450
+ get ValidationErrorCount() {
32451
+ return this.Get('ValidationErrorCount');
32452
+ }
32453
+ set ValidationErrorCount(value) {
32454
+ this.Set('ValidationErrorCount', value);
32455
+ }
32456
+ /**
32457
+ * * Field Name: CommonValidationError
32458
+ * * Display Name: Common Validation Error
32459
+ * * SQL Data Type: nvarchar(255)
32460
+ * * Description: Most frequent validation error across all attempts
32461
+ */
32462
+ get CommonValidationError() {
32463
+ return this.Get('CommonValidationError');
32464
+ }
32465
+ set CommonValidationError(value) {
32466
+ this.Set('CommonValidationError', value);
32467
+ }
32468
+ /**
32469
+ * * Field Name: FirstAttemptAt
32470
+ * * Display Name: First Attempt At
32471
+ * * SQL Data Type: datetime
32472
+ * * Description: Timestamp of the first validation attempt
32473
+ */
32474
+ get FirstAttemptAt() {
32475
+ return this.Get('FirstAttemptAt');
32476
+ }
32477
+ set FirstAttemptAt(value) {
32478
+ this.Set('FirstAttemptAt', value);
32479
+ }
32480
+ /**
32481
+ * * Field Name: LastAttemptAt
32482
+ * * Display Name: Last Attempt At
32483
+ * * SQL Data Type: datetime
32484
+ * * Description: Timestamp of the last validation attempt
32485
+ */
32486
+ get LastAttemptAt() {
32487
+ return this.Get('LastAttemptAt');
32488
+ }
32489
+ set LastAttemptAt(value) {
32490
+ this.Set('LastAttemptAt', value);
32491
+ }
32492
+ /**
32493
+ * * Field Name: TotalRetryDurationMS
32494
+ * * Display Name: Total Retry Duration MS
32495
+ * * SQL Data Type: int
32496
+ * * Description: Total time spent on retries in milliseconds (excluding first attempt)
32497
+ */
32498
+ get TotalRetryDurationMS() {
32499
+ return this.Get('TotalRetryDurationMS');
32500
+ }
32501
+ set TotalRetryDurationMS(value) {
32502
+ this.Set('TotalRetryDurationMS', value);
32503
+ }
32504
+ /**
32505
+ * * Field Name: ValidationAttempts
32506
+ * * Display Name: Validation Attempts
32507
+ * * SQL Data Type: nvarchar(MAX)
32508
+ * * Description: JSON array containing detailed information about each validation attempt
32509
+ */
32510
+ get ValidationAttempts() {
32511
+ return this.Get('ValidationAttempts');
32512
+ }
32513
+ set ValidationAttempts(value) {
32514
+ this.Set('ValidationAttempts', value);
32515
+ }
32516
+ /**
32517
+ * * Field Name: ValidationSummary
32518
+ * * Display Name: Validation Summary
32519
+ * * SQL Data Type: nvarchar(MAX)
32520
+ * * Description: JSON object containing summary information about the validation process
32521
+ */
32522
+ get ValidationSummary() {
32523
+ return this.Get('ValidationSummary');
32524
+ }
32525
+ set ValidationSummary(value) {
32526
+ this.Set('ValidationSummary', value);
32527
+ }
32528
+ /**
32241
32529
  * * Field Name: Prompt
32242
32530
  * * Display Name: Prompt
32243
32531
  * * SQL Data Type: nvarchar(255)