@memberjunction/core-entities 2.60.0 → 2.62.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.
@@ -942,6 +942,11 @@ export declare const AIPromptSchema: z.ZodObject<{
942
942
  StopSequences: z.ZodNullable<z.ZodString>;
943
943
  IncludeLogProbs: z.ZodNullable<z.ZodBoolean>;
944
944
  TopLogProbs: z.ZodNullable<z.ZodNumber>;
945
+ FailoverMaxAttempts: z.ZodNullable<z.ZodNumber>;
946
+ FailoverDelaySeconds: z.ZodNullable<z.ZodNumber>;
947
+ FailoverStrategy: z.ZodString;
948
+ FailoverModelStrategy: z.ZodString;
949
+ FailoverErrorScope: z.ZodString;
945
950
  Template: z.ZodString;
946
951
  Category: z.ZodNullable<z.ZodString>;
947
952
  Type: z.ZodString;
@@ -996,6 +1001,11 @@ export declare const AIPromptSchema: z.ZodObject<{
996
1001
  StopSequences?: string;
997
1002
  IncludeLogProbs?: boolean;
998
1003
  TopLogProbs?: number;
1004
+ FailoverMaxAttempts?: number;
1005
+ FailoverDelaySeconds?: number;
1006
+ FailoverStrategy?: string;
1007
+ FailoverModelStrategy?: string;
1008
+ FailoverErrorScope?: string;
999
1009
  Template?: string;
1000
1010
  ResultSelectorPrompt?: string;
1001
1011
  }, {
@@ -1047,6 +1057,11 @@ export declare const AIPromptSchema: z.ZodObject<{
1047
1057
  StopSequences?: string;
1048
1058
  IncludeLogProbs?: boolean;
1049
1059
  TopLogProbs?: number;
1060
+ FailoverMaxAttempts?: number;
1061
+ FailoverDelaySeconds?: number;
1062
+ FailoverStrategy?: string;
1063
+ FailoverModelStrategy?: string;
1064
+ FailoverErrorScope?: string;
1050
1065
  Template?: string;
1051
1066
  ResultSelectorPrompt?: string;
1052
1067
  }>;
@@ -1627,6 +1642,7 @@ export declare const CompanyIntegrationRecordMapSchema: z.ZodObject<{
1627
1642
  EntityRecordID: z.ZodString;
1628
1643
  __mj_CreatedAt: z.ZodDate;
1629
1644
  __mj_UpdatedAt: z.ZodDate;
1645
+ CompanyIntegration: z.ZodString;
1630
1646
  Entity: z.ZodString;
1631
1647
  }, "strip", z.ZodTypeAny, {
1632
1648
  ID?: string;
@@ -1637,6 +1653,7 @@ export declare const CompanyIntegrationRecordMapSchema: z.ZodObject<{
1637
1653
  CompanyIntegrationID?: string;
1638
1654
  ExternalSystemRecordID?: string;
1639
1655
  EntityRecordID?: string;
1656
+ CompanyIntegration?: string;
1640
1657
  }, {
1641
1658
  ID?: string;
1642
1659
  __mj_CreatedAt?: Date;
@@ -1646,6 +1663,7 @@ export declare const CompanyIntegrationRecordMapSchema: z.ZodObject<{
1646
1663
  CompanyIntegrationID?: string;
1647
1664
  ExternalSystemRecordID?: string;
1648
1665
  EntityRecordID?: string;
1666
+ CompanyIntegration?: string;
1649
1667
  }>;
1650
1668
  export type CompanyIntegrationRecordMapEntityType = z.infer<typeof CompanyIntegrationRecordMapSchema>;
1651
1669
  /**
@@ -1799,6 +1817,7 @@ export declare const CompanyIntegrationSchema: z.ZodObject<{
1799
1817
  CustomAttribute1: z.ZodNullable<z.ZodString>;
1800
1818
  __mj_CreatedAt: z.ZodDate;
1801
1819
  __mj_UpdatedAt: z.ZodDate;
1820
+ Name: z.ZodString;
1802
1821
  Company: z.ZodString;
1803
1822
  Integration: z.ZodString;
1804
1823
  DriverClassName: z.ZodNullable<z.ZodString>;
@@ -1810,6 +1829,7 @@ export declare const CompanyIntegrationSchema: z.ZodObject<{
1810
1829
  ID?: string;
1811
1830
  __mj_CreatedAt?: Date;
1812
1831
  __mj_UpdatedAt?: Date;
1832
+ Name?: string;
1813
1833
  IsActive?: boolean;
1814
1834
  DriverImportPath?: string;
1815
1835
  Integration?: string;
@@ -1833,6 +1853,7 @@ export declare const CompanyIntegrationSchema: z.ZodObject<{
1833
1853
  ID?: string;
1834
1854
  __mj_CreatedAt?: Date;
1835
1855
  __mj_UpdatedAt?: Date;
1856
+ Name?: string;
1836
1857
  IsActive?: boolean;
1837
1858
  DriverImportPath?: string;
1838
1859
  Integration?: string;
@@ -2749,6 +2770,7 @@ export declare const EmployeeCompanyIntegrationSchema: z.ZodObject<{
2749
2770
  IsActive: z.ZodBoolean;
2750
2771
  __mj_CreatedAt: z.ZodDate;
2751
2772
  __mj_UpdatedAt: z.ZodDate;
2773
+ CompanyIntegration: z.ZodString;
2752
2774
  }, "strip", z.ZodTypeAny, {
2753
2775
  ID?: string;
2754
2776
  __mj_CreatedAt?: Date;
@@ -2756,6 +2778,7 @@ export declare const EmployeeCompanyIntegrationSchema: z.ZodObject<{
2756
2778
  IsActive?: boolean;
2757
2779
  CompanyIntegrationID?: string;
2758
2780
  ExternalSystemRecordID?: string;
2781
+ CompanyIntegration?: string;
2759
2782
  EmployeeID?: string;
2760
2783
  }, {
2761
2784
  ID?: string;
@@ -2764,6 +2787,7 @@ export declare const EmployeeCompanyIntegrationSchema: z.ZodObject<{
2764
2787
  IsActive?: boolean;
2765
2788
  CompanyIntegrationID?: string;
2766
2789
  ExternalSystemRecordID?: string;
2790
+ CompanyIntegration?: string;
2767
2791
  EmployeeID?: string;
2768
2792
  }>;
2769
2793
  export type EmployeeCompanyIntegrationEntityType = z.infer<typeof EmployeeCompanyIntegrationSchema>;
@@ -4532,6 +4556,7 @@ export declare const ListSchema: z.ZodObject<{
4532
4556
  Entity: z.ZodString;
4533
4557
  User: z.ZodString;
4534
4558
  Category: z.ZodNullable<z.ZodString>;
4559
+ CompanyIntegration: z.ZodNullable<z.ZodString>;
4535
4560
  }, "strip", z.ZodTypeAny, {
4536
4561
  ID?: string;
4537
4562
  __mj_CreatedAt?: Date;
@@ -4546,6 +4571,7 @@ export declare const ListSchema: z.ZodObject<{
4546
4571
  Entity?: string;
4547
4572
  CompanyIntegrationID?: string;
4548
4573
  ExternalSystemRecordID?: string;
4574
+ CompanyIntegration?: string;
4549
4575
  }, {
4550
4576
  ID?: string;
4551
4577
  __mj_CreatedAt?: Date;
@@ -4560,6 +4586,7 @@ export declare const ListSchema: z.ZodObject<{
4560
4586
  Entity?: string;
4561
4587
  CompanyIntegrationID?: string;
4562
4588
  ExternalSystemRecordID?: string;
4589
+ CompanyIntegration?: string;
4563
4590
  }>;
4564
4591
  export type ListEntityType = z.infer<typeof ListSchema>;
4565
4592
  /**
@@ -5188,11 +5215,18 @@ export declare const AIPromptRunSchema: z.ZodObject<{
5188
5215
  TotalRetryDurationMS: z.ZodNullable<z.ZodNumber>;
5189
5216
  ValidationAttempts: z.ZodNullable<z.ZodString>;
5190
5217
  ValidationSummary: z.ZodNullable<z.ZodString>;
5218
+ FailoverAttempts: z.ZodNullable<z.ZodNumber>;
5219
+ FailoverErrors: z.ZodNullable<z.ZodString>;
5220
+ FailoverDurations: z.ZodNullable<z.ZodString>;
5221
+ OriginalRequestStartTime: z.ZodNullable<z.ZodDate>;
5222
+ TotalFailoverDuration: z.ZodNullable<z.ZodNumber>;
5223
+ OriginalModelID: z.ZodNullable<z.ZodString>;
5191
5224
  Prompt: z.ZodString;
5192
5225
  Model: z.ZodString;
5193
5226
  Vendor: z.ZodString;
5194
5227
  Agent: z.ZodNullable<z.ZodString>;
5195
5228
  Configuration: z.ZodNullable<z.ZodString>;
5229
+ OriginalModel: z.ZodNullable<z.ZodString>;
5196
5230
  }, "strip", z.ZodTypeAny, {
5197
5231
  ID?: string;
5198
5232
  __mj_CreatedAt?: Date;
@@ -5253,6 +5287,13 @@ export declare const AIPromptRunSchema: z.ZodObject<{
5253
5287
  TotalRetryDurationMS?: number;
5254
5288
  ValidationAttempts?: string;
5255
5289
  ValidationSummary?: string;
5290
+ FailoverAttempts?: number;
5291
+ FailoverErrors?: string;
5292
+ FailoverDurations?: string;
5293
+ OriginalRequestStartTime?: Date;
5294
+ TotalFailoverDuration?: number;
5295
+ OriginalModelID?: string;
5296
+ OriginalModel?: string;
5256
5297
  }, {
5257
5298
  ID?: string;
5258
5299
  __mj_CreatedAt?: Date;
@@ -5313,6 +5354,13 @@ export declare const AIPromptRunSchema: z.ZodObject<{
5313
5354
  TotalRetryDurationMS?: number;
5314
5355
  ValidationAttempts?: string;
5315
5356
  ValidationSummary?: string;
5357
+ FailoverAttempts?: number;
5358
+ FailoverErrors?: string;
5359
+ FailoverDurations?: string;
5360
+ OriginalRequestStartTime?: Date;
5361
+ TotalFailoverDuration?: number;
5362
+ OriginalModelID?: string;
5363
+ OriginalModel?: string;
5316
5364
  }>;
5317
5365
  export type AIPromptRunEntityType = z.infer<typeof AIPromptRunSchema>;
5318
5366
  /**
@@ -10455,6 +10503,9 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
10455
10503
  * * Table-Level: This rule ensures that if the parallelization mode is set to 'StaticCount', then the number of parallel tasks (ParallelCount) must be provided.
10456
10504
  * * Table-Level: This rule ensures that if the Parallelization Mode is set to 'ConfigParam', then the Parallel Config Param field must be filled in. For any other mode, the Parallel Config Param can be left empty.
10457
10505
  * * Table-Level: This rule ensures that if the OutputType is set to 'object', an OutputExample must be provided. If the OutputType is anything other than 'object', providing an OutputExample is not required.
10506
+ * * FailoverErrorScope: This rule ensures that the FailoverErrorScope field can only be set to 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.
10507
+ * * FailoverStrategy: This rule ensures that the FailoverStrategy field, if specified, must be either 'None', 'PowerRank', 'NextBestModel', 'SameModelDifferentVendor', or left blank (unset).
10508
+ * * FailoverModelStrategy: This rule ensures that the value for FailoverModelStrategy is either 'RequireSameModel', 'PreferDifferentModel', 'PreferSameModel', or left blank (not set). Any other value is not allowed.
10458
10509
  * @public
10459
10510
  * @method
10460
10511
  * @override
@@ -10510,6 +10561,27 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
10510
10561
  */
10511
10562
  ValidateOutputExampleWhenOutputTypeObject(result: ValidationResult): void;
10512
10563
  /**
10564
+ * This rule ensures that the FailoverErrorScope field can only be set to 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.
10565
+ * @param result - the ValidationResult object to add any errors or warnings to
10566
+ * @public
10567
+ * @method
10568
+ */
10569
+ ValidateFailoverErrorScopeAgainstAllowedValues(result: ValidationResult): void;
10570
+ /**
10571
+ * This rule ensures that the FailoverStrategy field, if specified, must be either 'None', 'PowerRank', 'NextBestModel', 'SameModelDifferentVendor', or left blank (unset).
10572
+ * @param result - the ValidationResult object to add any errors or warnings to
10573
+ * @public
10574
+ * @method
10575
+ */
10576
+ ValidateFailoverStrategyAllowedValues(result: ValidationResult): void;
10577
+ /**
10578
+ * This rule ensures that the value for FailoverModelStrategy is either 'RequireSameModel', 'PreferDifferentModel', 'PreferSameModel', or left blank (not set). Any other value is not allowed.
10579
+ * @param result - the ValidationResult object to add any errors or warnings to
10580
+ * @public
10581
+ * @method
10582
+ */
10583
+ ValidateFailoverModelStrategyAgainstAllowedValues(result: ValidationResult): void;
10584
+ /**
10513
10585
  * * Field Name: ID
10514
10586
  * * Display Name: ID
10515
10587
  * * SQL Data Type: uniqueidentifier
@@ -10949,6 +11021,51 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
10949
11021
  get TopLogProbs(): number | null;
10950
11022
  set TopLogProbs(value: number | null);
10951
11023
  /**
11024
+ * * Field Name: FailoverMaxAttempts
11025
+ * * Display Name: Failover Max Attempts
11026
+ * * SQL Data Type: int
11027
+ * * Default Value: 3
11028
+ * * Description: Maximum number of failover attempts before giving up
11029
+ */
11030
+ get FailoverMaxAttempts(): number | null;
11031
+ set FailoverMaxAttempts(value: number | null);
11032
+ /**
11033
+ * * Field Name: FailoverDelaySeconds
11034
+ * * Display Name: Failover Delay Seconds
11035
+ * * SQL Data Type: int
11036
+ * * Default Value: 5
11037
+ * * Description: Initial delay in seconds between failover attempts
11038
+ */
11039
+ get FailoverDelaySeconds(): number | null;
11040
+ set FailoverDelaySeconds(value: number | null);
11041
+ /**
11042
+ * * Field Name: FailoverStrategy
11043
+ * * Display Name: Failover Strategy
11044
+ * * SQL Data Type: nvarchar(50)
11045
+ * * Default Value: SameModelDifferentVendor
11046
+ * * Description: Failover strategy to use when the primary model fails. Options: SameModelDifferentVendor, NextBestModel, PowerRank, None
11047
+ */
11048
+ get FailoverStrategy(): string;
11049
+ set FailoverStrategy(value: string);
11050
+ /**
11051
+ * * Field Name: FailoverModelStrategy
11052
+ * * Display Name: Failover Model Strategy
11053
+ * * SQL Data Type: nvarchar(50)
11054
+ * * Default Value: PreferSameModel
11055
+ * * Description: Strategy for selecting failover models. Options: PreferSameModel, PreferDifferentModel, RequireSameModel
11056
+ */
11057
+ get FailoverModelStrategy(): string;
11058
+ set FailoverModelStrategy(value: string);
11059
+ /**
11060
+ * * Field Name: FailoverErrorScope
11061
+ * * Display Name: Failover Error Scope
11062
+ * * SQL Data Type: nvarchar(50)
11063
+ * * Default Value: All
11064
+ * * Description: Types of errors that should trigger failover. Options: All, NetworkOnly, RateLimitOnly, ServiceErrorOnly
11065
+ */
11066
+ get FailoverErrorScope(): string;
11067
+ set FailoverErrorScope(value: string);
11068
+ /**
10952
11069
  * * Field Name: Template
10953
11070
  * * Display Name: Template
10954
11071
  * * SQL Data Type: nvarchar(255)
@@ -12567,6 +12684,12 @@ export declare class CompanyIntegrationRecordMapEntity extends BaseEntity<Compan
12567
12684
  */
12568
12685
  get __mj_UpdatedAt(): Date;
12569
12686
  /**
12687
+ * * Field Name: CompanyIntegration
12688
+ * * Display Name: Company Integration
12689
+ * * SQL Data Type: nvarchar(255)
12690
+ */
12691
+ get CompanyIntegration(): string;
12692
+ /**
12570
12693
  * * Field Name: Entity
12571
12694
  * * Display Name: Entity
12572
12695
  * * SQL Data Type: nvarchar(255)
@@ -13046,6 +13169,14 @@ export declare class CompanyIntegrationEntity extends BaseEntity<CompanyIntegrat
13046
13169
  */
13047
13170
  get __mj_UpdatedAt(): Date;
13048
13171
  /**
13172
+ * * Field Name: Name
13173
+ * * Display Name: Name
13174
+ * * SQL Data Type: nvarchar(255)
13175
+ * * Description: User-friendly name for the company integration instance, typically in the format "Company: Integration".
13176
+ */
13177
+ get Name(): string;
13178
+ set Name(value: string);
13179
+ /**
13049
13180
  * * Field Name: Company
13050
13181
  * * SQL Data Type: nvarchar(50)
13051
13182
  */
@@ -15495,6 +15626,12 @@ export declare class EmployeeCompanyIntegrationEntity extends BaseEntity<Employe
15495
15626
  * * Default Value: getutcdate()
15496
15627
  */
15497
15628
  get __mj_UpdatedAt(): Date;
15629
+ /**
15630
+ * * Field Name: CompanyIntegration
15631
+ * * Display Name: Company Integration
15632
+ * * SQL Data Type: nvarchar(255)
15633
+ */
15634
+ get CompanyIntegration(): string;
15498
15635
  }
15499
15636
  /**
15500
15637
  * Employee Roles - strongly typed entity sub-class
@@ -20288,6 +20425,12 @@ export declare class ListEntity extends BaseEntity<ListEntityType> {
20288
20425
  * * SQL Data Type: nvarchar(100)
20289
20426
  */
20290
20427
  get Category(): string | null;
20428
+ /**
20429
+ * * Field Name: CompanyIntegration
20430
+ * * Display Name: Company Integration
20431
+ * * SQL Data Type: nvarchar(255)
20432
+ */
20433
+ get CompanyIntegration(): string | null;
20291
20434
  }
20292
20435
  /**
20293
20436
  * MJ: AI Agent Prompts - strongly typed entity sub-class
@@ -22573,6 +22716,56 @@ export declare class AIPromptRunEntity extends BaseEntity<AIPromptRunEntityType>
22573
22716
  get ValidationSummary(): string | null;
22574
22717
  set ValidationSummary(value: string | null);
22575
22718
  /**
22719
+ * * Field Name: FailoverAttempts
22720
+ * * Display Name: Failover Attempts
22721
+ * * SQL Data Type: int
22722
+ * * Default Value: 0
22723
+ * * Description: Number of failover attempts made during this prompt run
22724
+ */
22725
+ get FailoverAttempts(): number | null;
22726
+ set FailoverAttempts(value: number | null);
22727
+ /**
22728
+ * * Field Name: FailoverErrors
22729
+ * * Display Name: Failover Errors
22730
+ * * SQL Data Type: nvarchar(MAX)
22731
+ * * Description: JSON array of error details from each failover attempt
22732
+ */
22733
+ get FailoverErrors(): string | null;
22734
+ set FailoverErrors(value: string | null);
22735
+ /**
22736
+ * * Field Name: FailoverDurations
22737
+ * * Display Name: Failover Durations
22738
+ * * SQL Data Type: nvarchar(MAX)
22739
+ * * Description: JSON array of duration in milliseconds for each failover attempt
22740
+ */
22741
+ get FailoverDurations(): string | null;
22742
+ set FailoverDurations(value: string | null);
22743
+ /**
22744
+ * * Field Name: OriginalRequestStartTime
22745
+ * * Display Name: Original Request Start Time
22746
+ * * SQL Data Type: datetime
22747
+ * * Description: Timestamp when the original request started, before any failovers
22748
+ */
22749
+ get OriginalRequestStartTime(): Date | null;
22750
+ set OriginalRequestStartTime(value: Date | null);
22751
+ /**
22752
+ * * Field Name: TotalFailoverDuration
22753
+ * * Display Name: Total Failover Duration
22754
+ * * SQL Data Type: int
22755
+ * * Description: Total time spent in failover attempts in milliseconds
22756
+ */
22757
+ get TotalFailoverDuration(): number | null;
22758
+ set TotalFailoverDuration(value: number | null);
22759
+ /**
22760
+ * * Field Name: OriginalModelID
22761
+ * * Display Name: Original Model ID
22762
+ * * SQL Data Type: uniqueidentifier
22763
+ * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
22764
+ * * Description: The AI Model ID that was originally attempted before any failovers
22765
+ */
22766
+ get OriginalModelID(): string | null;
22767
+ set OriginalModelID(value: string | null);
22768
+ /**
22576
22769
  * * Field Name: Prompt
22577
22770
  * * Display Name: Prompt
22578
22771
  * * SQL Data Type: nvarchar(255)
@@ -22602,6 +22795,12 @@ export declare class AIPromptRunEntity extends BaseEntity<AIPromptRunEntityType>
22602
22795
  * * SQL Data Type: nvarchar(100)
22603
22796
  */
22604
22797
  get Configuration(): string | null;
22798
+ /**
22799
+ * * Field Name: OriginalModel
22800
+ * * Display Name: Original Model
22801
+ * * SQL Data Type: nvarchar(50)
22802
+ */
22803
+ get OriginalModel(): string | null;
22605
22804
  }
22606
22805
  /**
22607
22806
  * MJ: AI Vendor Type Definitions - strongly typed entity sub-class