@memberjunction/core-entities 2.67.0 → 2.68.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.
@@ -948,9 +948,9 @@ export declare const AIPromptSchema: z.ZodObject<{
948
948
  StopSequences: z.ZodNullable<z.ZodString>;
949
949
  IncludeLogProbs: z.ZodNullable<z.ZodBoolean>;
950
950
  TopLogProbs: z.ZodNullable<z.ZodNumber>;
951
+ FailoverStrategy: z.ZodString;
951
952
  FailoverMaxAttempts: z.ZodNullable<z.ZodNumber>;
952
953
  FailoverDelaySeconds: z.ZodNullable<z.ZodNumber>;
953
- FailoverStrategy: z.ZodString;
954
954
  FailoverModelStrategy: z.ZodString;
955
955
  FailoverErrorScope: z.ZodString;
956
956
  Template: z.ZodString;
@@ -1007,9 +1007,9 @@ export declare const AIPromptSchema: z.ZodObject<{
1007
1007
  StopSequences?: string;
1008
1008
  IncludeLogProbs?: boolean;
1009
1009
  TopLogProbs?: number;
1010
+ FailoverStrategy?: string;
1010
1011
  FailoverMaxAttempts?: number;
1011
1012
  FailoverDelaySeconds?: number;
1012
- FailoverStrategy?: string;
1013
1013
  FailoverModelStrategy?: string;
1014
1014
  FailoverErrorScope?: string;
1015
1015
  Template?: string;
@@ -1063,9 +1063,9 @@ export declare const AIPromptSchema: z.ZodObject<{
1063
1063
  StopSequences?: string;
1064
1064
  IncludeLogProbs?: boolean;
1065
1065
  TopLogProbs?: number;
1066
+ FailoverStrategy?: string;
1066
1067
  FailoverMaxAttempts?: number;
1067
1068
  FailoverDelaySeconds?: number;
1068
- FailoverStrategy?: string;
1069
1069
  FailoverModelStrategy?: string;
1070
1070
  FailoverErrorScope?: string;
1071
1071
  Template?: string;
@@ -5230,9 +5230,9 @@ export declare const AIPromptRunSchema: z.ZodObject<{
5230
5230
  FailoverAttempts: z.ZodNullable<z.ZodNumber>;
5231
5231
  FailoverErrors: z.ZodNullable<z.ZodString>;
5232
5232
  FailoverDurations: z.ZodNullable<z.ZodString>;
5233
+ OriginalModelID: z.ZodNullable<z.ZodString>;
5233
5234
  OriginalRequestStartTime: z.ZodNullable<z.ZodDate>;
5234
5235
  TotalFailoverDuration: z.ZodNullable<z.ZodNumber>;
5235
- OriginalModelID: z.ZodNullable<z.ZodString>;
5236
5236
  Prompt: z.ZodString;
5237
5237
  Model: z.ZodString;
5238
5238
  Vendor: z.ZodString;
@@ -5302,9 +5302,9 @@ export declare const AIPromptRunSchema: z.ZodObject<{
5302
5302
  FailoverAttempts?: number;
5303
5303
  FailoverErrors?: string;
5304
5304
  FailoverDurations?: string;
5305
+ OriginalModelID?: string;
5305
5306
  OriginalRequestStartTime?: Date;
5306
5307
  TotalFailoverDuration?: number;
5307
- OriginalModelID?: string;
5308
5308
  OriginalModel?: string;
5309
5309
  }, {
5310
5310
  ID?: string;
@@ -5369,9 +5369,9 @@ export declare const AIPromptRunSchema: z.ZodObject<{
5369
5369
  FailoverAttempts?: number;
5370
5370
  FailoverErrors?: string;
5371
5371
  FailoverDurations?: string;
5372
+ OriginalModelID?: string;
5372
5373
  OriginalRequestStartTime?: Date;
5373
5374
  TotalFailoverDuration?: number;
5374
- OriginalModelID?: string;
5375
5375
  OriginalModel?: string;
5376
5376
  }>;
5377
5377
  export type AIPromptRunEntityType = z.infer<typeof AIPromptRunSchema>;
@@ -10529,11 +10529,11 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
10529
10529
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
10530
10530
  /**
10531
10531
  * Validate() method override for AI Prompts entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
10532
- * * CacheSimilarityThreshold: This rule ensures that if a cache similarity threshold is provided, it must be a value between 0 and 1, inclusive. If no value is provided, that's also allowed.
10533
- * * CacheTTLSeconds: This rule ensures that if the cache expiration time in seconds is provided, it must be greater than zero.
10534
10532
  * * FailoverStrategy: This rule ensures that the FailoverStrategy field, if specified, must be either 'None', 'PowerRank', 'NextBestModel', 'SameModelDifferentVendor', or left blank (unset).
10535
10533
  * * 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.
10536
10534
  * * FailoverErrorScope: This rule ensures that the FailoverErrorScope field can only be set to 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.
10535
+ * * CacheSimilarityThreshold: This rule ensures that if a cache similarity threshold is provided, it must be a value between 0 and 1, inclusive. If no value is provided, that's also allowed.
10536
+ * * CacheTTLSeconds: This rule ensures that if the cache expiration time in seconds is provided, it must be greater than zero.
10537
10537
  * * Table-Level: This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
10538
10538
  * * Table-Level: This rule ensures that if the cache match type is set to 'Vector', the cache similarity threshold must be specified. If the match type is anything other than 'Vector', the similarity threshold can be left empty.
10539
10539
  * * Table-Level: This rule ensures that if the parallelization mode is set to 'StaticCount', then the number of parallel tasks (ParallelCount) must be provided.
@@ -10545,40 +10545,40 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
10545
10545
  */
10546
10546
  Validate(): ValidationResult;
10547
10547
  /**
10548
- * This rule ensures that if a cache similarity threshold is provided, it must be a value between 0 and 1, inclusive. If no value is provided, that's also allowed.
10548
+ * This rule ensures that the FailoverStrategy field, if specified, must be either 'None', 'PowerRank', 'NextBestModel', 'SameModelDifferentVendor', or left blank (unset).
10549
10549
  * @param result - the ValidationResult object to add any errors or warnings to
10550
10550
  * @public
10551
10551
  * @method
10552
10552
  */
10553
- ValidateCacheSimilarityThresholdIsBetweenZeroAndOne(result: ValidationResult): void;
10553
+ ValidateFailoverStrategyAllowedValues(result: ValidationResult): void;
10554
10554
  /**
10555
- * This rule ensures that if the cache expiration time in seconds is provided, it must be greater than zero.
10555
+ * This rule ensures that the value for FailoverModelStrategy is either 'RequireSameModel', 'PreferDifferentModel', 'PreferSameModel', or left blank (not set). Any other value is not allowed.
10556
10556
  * @param result - the ValidationResult object to add any errors or warnings to
10557
10557
  * @public
10558
10558
  * @method
10559
10559
  */
10560
- ValidateCacheTTLSecondsGreaterThanZero(result: ValidationResult): void;
10560
+ ValidateFailoverModelStrategyAgainstAllowedValues(result: ValidationResult): void;
10561
10561
  /**
10562
- * This rule ensures that the FailoverStrategy field, if specified, must be either 'None', 'PowerRank', 'NextBestModel', 'SameModelDifferentVendor', or left blank (unset).
10562
+ * This rule ensures that the FailoverErrorScope field can only be set to 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.
10563
10563
  * @param result - the ValidationResult object to add any errors or warnings to
10564
10564
  * @public
10565
10565
  * @method
10566
10566
  */
10567
- ValidateFailoverStrategyAllowedValues(result: ValidationResult): void;
10567
+ ValidateFailoverErrorScopeAgainstAllowedValues(result: ValidationResult): void;
10568
10568
  /**
10569
- * This rule ensures that the value for FailoverModelStrategy is either 'RequireSameModel', 'PreferDifferentModel', 'PreferSameModel', or left blank (not set). Any other value is not allowed.
10569
+ * This rule ensures that if a cache similarity threshold is provided, it must be a value between 0 and 1, inclusive. If no value is provided, that's also allowed.
10570
10570
  * @param result - the ValidationResult object to add any errors or warnings to
10571
10571
  * @public
10572
10572
  * @method
10573
10573
  */
10574
- ValidateFailoverModelStrategyAgainstAllowedValues(result: ValidationResult): void;
10574
+ ValidateCacheSimilarityThresholdIsBetweenZeroAndOne(result: ValidationResult): void;
10575
10575
  /**
10576
- * This rule ensures that the FailoverErrorScope field can only be set to 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.
10576
+ * This rule ensures that if the cache expiration time in seconds is provided, it must be greater than zero.
10577
10577
  * @param result - the ValidationResult object to add any errors or warnings to
10578
10578
  * @public
10579
10579
  * @method
10580
10580
  */
10581
- ValidateFailoverErrorScopeAgainstAllowedValues(result: ValidationResult): void;
10581
+ ValidateCacheTTLSecondsGreaterThanZero(result: ValidationResult): void;
10582
10582
  /**
10583
10583
  * This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
10584
10584
  * @param result - the ValidationResult object to add any errors or warnings to
@@ -11054,6 +11054,15 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
11054
11054
  get TopLogProbs(): number | null;
11055
11055
  set TopLogProbs(value: number | null);
11056
11056
  /**
11057
+ * * Field Name: FailoverStrategy
11058
+ * * Display Name: Failover Strategy
11059
+ * * SQL Data Type: nvarchar(50)
11060
+ * * Default Value: SameModelDifferentVendor
11061
+ * * Description: Failover strategy to use when the primary model fails. Options: SameModelDifferentVendor, NextBestModel, PowerRank, None
11062
+ */
11063
+ get FailoverStrategy(): string;
11064
+ set FailoverStrategy(value: string);
11065
+ /**
11057
11066
  * * Field Name: FailoverMaxAttempts
11058
11067
  * * Display Name: Failover Max Attempts
11059
11068
  * * SQL Data Type: int
@@ -11072,15 +11081,6 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
11072
11081
  get FailoverDelaySeconds(): number | null;
11073
11082
  set FailoverDelaySeconds(value: number | null);
11074
11083
  /**
11075
- * * Field Name: FailoverStrategy
11076
- * * Display Name: Failover Strategy
11077
- * * SQL Data Type: nvarchar(50)
11078
- * * Default Value: SameModelDifferentVendor
11079
- * * Description: Failover strategy to use when the primary model fails. Options: SameModelDifferentVendor, NextBestModel, PowerRank, None
11080
- */
11081
- get FailoverStrategy(): string;
11082
- set FailoverStrategy(value: string);
11083
- /**
11084
11084
  * * Field Name: FailoverModelStrategy
11085
11085
  * * Display Name: Failover Model Strategy
11086
11086
  * * SQL Data Type: nvarchar(50)
@@ -22805,6 +22805,15 @@ export declare class AIPromptRunEntity extends BaseEntity<AIPromptRunEntityType>
22805
22805
  get FailoverDurations(): string | null;
22806
22806
  set FailoverDurations(value: string | null);
22807
22807
  /**
22808
+ * * Field Name: OriginalModelID
22809
+ * * Display Name: Original Model ID
22810
+ * * SQL Data Type: uniqueidentifier
22811
+ * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
22812
+ * * Description: The AI Model ID that was originally attempted before any failovers
22813
+ */
22814
+ get OriginalModelID(): string | null;
22815
+ set OriginalModelID(value: string | null);
22816
+ /**
22808
22817
  * * Field Name: OriginalRequestStartTime
22809
22818
  * * Display Name: Original Request Start Time
22810
22819
  * * SQL Data Type: datetime
@@ -22821,15 +22830,6 @@ export declare class AIPromptRunEntity extends BaseEntity<AIPromptRunEntityType>
22821
22830
  get TotalFailoverDuration(): number | null;
22822
22831
  set TotalFailoverDuration(value: number | null);
22823
22832
  /**
22824
- * * Field Name: OriginalModelID
22825
- * * Display Name: Original Model ID
22826
- * * SQL Data Type: uniqueidentifier
22827
- * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
22828
- * * Description: The AI Model ID that was originally attempted before any failovers
22829
- */
22830
- get OriginalModelID(): string | null;
22831
- set OriginalModelID(value: string | null);
22832
- /**
22833
22833
  * * Field Name: Prompt
22834
22834
  * * Display Name: Prompt
22835
22835
  * * SQL Data Type: nvarchar(255)