@memberjunction/core-entities 2.47.0 → 2.48.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.
|
@@ -1034,12 +1034,11 @@ exports.AIAgentSchema = zod_1.z.object({
|
|
|
1034
1034
|
* * Display Name: Context Compression Message Retention Count
|
|
1035
1035
|
* * SQL Data Type: int
|
|
1036
1036
|
* * Description: Number of recent messages to keep uncompressed when context compression is applied.`),
|
|
1037
|
-
TypeID: zod_1.z.string().describe(`
|
|
1037
|
+
TypeID: zod_1.z.string().nullable().describe(`
|
|
1038
1038
|
* * Field Name: TypeID
|
|
1039
1039
|
* * Display Name: Type ID
|
|
1040
1040
|
* * SQL Data Type: uniqueidentifier
|
|
1041
1041
|
* * Related Entity/Foreign Key: MJ: AI Agent Types (vwAIAgentTypes.ID)
|
|
1042
|
-
* * Default Value: A7B8C9D0-E1F2-3456-7890-123456789ABC
|
|
1043
1042
|
* * Description: Reference to the AIAgentType that defines the category and system-level behavior for this agent. Cannot be null.`),
|
|
1044
1043
|
Parent: zod_1.z.string().nullable().describe(`
|
|
1045
1044
|
* * Field Name: Parent
|
|
@@ -1049,7 +1048,7 @@ exports.AIAgentSchema = zod_1.z.object({
|
|
|
1049
1048
|
* * Field Name: ContextCompressionPrompt
|
|
1050
1049
|
* * Display Name: Context Compression Prompt
|
|
1051
1050
|
* * SQL Data Type: nvarchar(255)`),
|
|
1052
|
-
Type: zod_1.z.string().describe(`
|
|
1051
|
+
Type: zod_1.z.string().nullable().describe(`
|
|
1053
1052
|
* * Field Name: Type
|
|
1054
1053
|
* * Display Name: Type
|
|
1055
1054
|
* * SQL Data Type: nvarchar(100)`),
|
|
@@ -3449,7 +3448,7 @@ exports.DashboardSchema = zod_1.z.object({
|
|
|
3449
3448
|
* * Display Name: Updated At
|
|
3450
3449
|
* * SQL Data Type: datetimeoffset
|
|
3451
3450
|
* * Default Value: getutcdate()`),
|
|
3452
|
-
Type: zod_1.z.union([zod_1.z.literal('Config'), zod_1.z.literal('Code')]).describe(`
|
|
3451
|
+
Type: zod_1.z.union([zod_1.z.literal('Config'), zod_1.z.literal('Code'), zod_1.z.literal('Dynamic Code')]).describe(`
|
|
3453
3452
|
* * Field Name: Type
|
|
3454
3453
|
* * Display Name: Type
|
|
3455
3454
|
* * SQL Data Type: nvarchar(20)
|
|
@@ -3458,7 +3457,8 @@ exports.DashboardSchema = zod_1.z.object({
|
|
|
3458
3457
|
* * Possible Values
|
|
3459
3458
|
* * Config
|
|
3460
3459
|
* * Code
|
|
3461
|
-
*
|
|
3460
|
+
* * Dynamic Code
|
|
3461
|
+
* * Description: Dashboard type supporting Config (metadata-driven), Code (compiled TypeScript), and Dynamic Code (Skip-generated runtime JavaScript/React) options`),
|
|
3462
3462
|
Thumbnail: zod_1.z.string().nullable().describe(`
|
|
3463
3463
|
* * Field Name: Thumbnail
|
|
3464
3464
|
* * Display Name: Thumbnail
|
|
@@ -13845,7 +13845,6 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
|
|
|
13845
13845
|
* * Display Name: Type ID
|
|
13846
13846
|
* * SQL Data Type: uniqueidentifier
|
|
13847
13847
|
* * Related Entity/Foreign Key: MJ: AI Agent Types (vwAIAgentTypes.ID)
|
|
13848
|
-
* * Default Value: A7B8C9D0-E1F2-3456-7890-123456789ABC
|
|
13849
13848
|
* * Description: Reference to the AIAgentType that defines the category and system-level behavior for this agent. Cannot be null.
|
|
13850
13849
|
*/
|
|
13851
13850
|
get TypeID() {
|
|
@@ -14565,11 +14564,11 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
|
|
|
14565
14564
|
* 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:
|
|
14566
14565
|
* * 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.
|
|
14567
14566
|
* * CacheTTLSeconds: This rule ensures that if the cache expiration time in seconds is provided, it must be greater than zero.
|
|
14567
|
+
* * 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.
|
|
14568
14568
|
* * 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.
|
|
14569
14569
|
* * 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.
|
|
14570
14570
|
* * Table-Level: This rule ensures that if the parallelization mode is set to 'StaticCount', then the number of parallel tasks (ParallelCount) must be provided.
|
|
14571
14571
|
* * 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.
|
|
14572
|
-
* * 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.
|
|
14573
14572
|
* @public
|
|
14574
14573
|
* @method
|
|
14575
14574
|
* @override
|
|
@@ -14578,11 +14577,11 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
|
|
|
14578
14577
|
const result = super.Validate();
|
|
14579
14578
|
this.ValidateCacheSimilarityThresholdIsBetweenZeroAndOne(result);
|
|
14580
14579
|
this.ValidateCacheTTLSecondsGreaterThanZero(result);
|
|
14580
|
+
this.ValidateOutputExampleWhenOutputTypeObject(result);
|
|
14581
14581
|
this.ValidateResultSelectorPromptIDNotEqualID(result);
|
|
14582
14582
|
this.ValidateCacheSimilarityThresholdRequiredForVectorCache(result);
|
|
14583
14583
|
this.ValidateParallelCountWhenParallelizationModeIsStaticCount(result);
|
|
14584
14584
|
this.ValidateParallelConfigParamRequiredForConfigParamMode(result);
|
|
14585
|
-
this.ValidateOutputExampleWhenOutputTypeObject(result);
|
|
14586
14585
|
return result;
|
|
14587
14586
|
}
|
|
14588
14587
|
/**
|
|
@@ -14608,6 +14607,17 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
|
|
|
14608
14607
|
}
|
|
14609
14608
|
}
|
|
14610
14609
|
/**
|
|
14610
|
+
* 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.
|
|
14611
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
14612
|
+
* @public
|
|
14613
|
+
* @method
|
|
14614
|
+
*/
|
|
14615
|
+
ValidateOutputExampleWhenOutputTypeObject(result) {
|
|
14616
|
+
if (this.OutputType === "object" && (this.OutputExample === null || this.OutputExample === undefined)) {
|
|
14617
|
+
result.Errors.push(new core_1.ValidationErrorInfo("OutputExample", "When OutputType is 'object', OutputExample must be provided.", this.OutputExample, core_1.ValidationErrorType.Failure));
|
|
14618
|
+
}
|
|
14619
|
+
}
|
|
14620
|
+
/**
|
|
14611
14621
|
* This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
|
|
14612
14622
|
* @param result - the ValidationResult object to add any errors or warnings to
|
|
14613
14623
|
* @public
|
|
@@ -14652,17 +14662,6 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
|
|
|
14652
14662
|
}
|
|
14653
14663
|
}
|
|
14654
14664
|
/**
|
|
14655
|
-
* 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.
|
|
14656
|
-
* @param result - the ValidationResult object to add any errors or warnings to
|
|
14657
|
-
* @public
|
|
14658
|
-
* @method
|
|
14659
|
-
*/
|
|
14660
|
-
ValidateOutputExampleWhenOutputTypeObject(result) {
|
|
14661
|
-
if (this.OutputType === "object" && (this.OutputExample === null || this.OutputExample === undefined)) {
|
|
14662
|
-
result.Errors.push(new core_1.ValidationErrorInfo("OutputExample", "When OutputType is 'object', OutputExample must be provided.", this.OutputExample, core_1.ValidationErrorType.Failure));
|
|
14663
|
-
}
|
|
14664
|
-
}
|
|
14665
|
-
/**
|
|
14666
14665
|
* * Field Name: ID
|
|
14667
14666
|
* * Display Name: ID
|
|
14668
14667
|
* * SQL Data Type: uniqueidentifier
|
|
@@ -20240,7 +20239,8 @@ let DashboardEntity = class DashboardEntity extends core_1.BaseEntity {
|
|
|
20240
20239
|
* * Possible Values
|
|
20241
20240
|
* * Config
|
|
20242
20241
|
* * Code
|
|
20243
|
-
*
|
|
20242
|
+
* * Dynamic Code
|
|
20243
|
+
* * Description: Dashboard type supporting Config (metadata-driven), Code (compiled TypeScript), and Dynamic Code (Skip-generated runtime JavaScript/React) options
|
|
20244
20244
|
*/
|
|
20245
20245
|
get Type() {
|
|
20246
20246
|
return this.Get('Type');
|
|
@@ -29838,9 +29838,9 @@ let AIPromptModelEntity = class AIPromptModelEntity extends core_1.BaseEntity {
|
|
|
29838
29838
|
}
|
|
29839
29839
|
/**
|
|
29840
29840
|
* Validate() method override for MJ: AI Prompt Models entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
29841
|
+
* * ParallelCount: This rule ensures that the number of parallel tasks (ParallelCount) must be at least 1. It cannot be zero or negative.
|
|
29841
29842
|
* * Priority: This rule ensures that the Priority value must be greater than or equal to zero. Negative priorities are not allowed.
|
|
29842
29843
|
* * ExecutionGroup: This rule ensures that the ExecutionGroup value must be zero or a positive number. Negative numbers are not allowed.
|
|
29843
|
-
* * ParallelCount: This rule ensures that the number of parallel tasks (ParallelCount) must be at least 1. It cannot be zero or negative.
|
|
29844
29844
|
* * Table-Level: This rule ensures that if the parallelization mode is 'None' or 'StaticCount', then the parallel config parameter must be empty. If the parallelization mode is 'ConfigParam', then the parallel config parameter must be provided.
|
|
29845
29845
|
* @public
|
|
29846
29846
|
* @method
|
|
@@ -29848,13 +29848,24 @@ let AIPromptModelEntity = class AIPromptModelEntity extends core_1.BaseEntity {
|
|
|
29848
29848
|
*/
|
|
29849
29849
|
Validate() {
|
|
29850
29850
|
const result = super.Validate();
|
|
29851
|
+
this.ValidateParallelCountAtLeastOne(result);
|
|
29851
29852
|
this.ValidatePriorityIsNonNegative(result);
|
|
29852
29853
|
this.ValidateExecutionGroupIsNonNegative(result);
|
|
29853
|
-
this.ValidateParallelCountAtLeastOne(result);
|
|
29854
29854
|
this.ValidateParallelConfigParamBasedOnParallelizationMode(result);
|
|
29855
29855
|
return result;
|
|
29856
29856
|
}
|
|
29857
29857
|
/**
|
|
29858
|
+
* This rule ensures that the number of parallel tasks (ParallelCount) must be at least 1. It cannot be zero or negative.
|
|
29859
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
29860
|
+
* @public
|
|
29861
|
+
* @method
|
|
29862
|
+
*/
|
|
29863
|
+
ValidateParallelCountAtLeastOne(result) {
|
|
29864
|
+
if (this.ParallelCount < 1) {
|
|
29865
|
+
result.Errors.push(new core_1.ValidationErrorInfo("ParallelCount", "ParallelCount must be at least 1.", this.ParallelCount, core_1.ValidationErrorType.Failure));
|
|
29866
|
+
}
|
|
29867
|
+
}
|
|
29868
|
+
/**
|
|
29858
29869
|
* This rule ensures that the Priority value must be greater than or equal to zero. Negative priorities are not allowed.
|
|
29859
29870
|
* @param result - the ValidationResult object to add any errors or warnings to
|
|
29860
29871
|
* @public
|
|
@@ -29877,17 +29888,6 @@ let AIPromptModelEntity = class AIPromptModelEntity extends core_1.BaseEntity {
|
|
|
29877
29888
|
}
|
|
29878
29889
|
}
|
|
29879
29890
|
/**
|
|
29880
|
-
* This rule ensures that the number of parallel tasks (ParallelCount) must be at least 1. It cannot be zero or negative.
|
|
29881
|
-
* @param result - the ValidationResult object to add any errors or warnings to
|
|
29882
|
-
* @public
|
|
29883
|
-
* @method
|
|
29884
|
-
*/
|
|
29885
|
-
ValidateParallelCountAtLeastOne(result) {
|
|
29886
|
-
if (this.ParallelCount < 1) {
|
|
29887
|
-
result.Errors.push(new core_1.ValidationErrorInfo("ParallelCount", "ParallelCount must be at least 1.", this.ParallelCount, core_1.ValidationErrorType.Failure));
|
|
29888
|
-
}
|
|
29889
|
-
}
|
|
29890
|
-
/**
|
|
29891
29891
|
* This rule ensures that if the parallelization mode is 'None' or 'StaticCount', then the parallel config parameter must be empty. If the parallelization mode is 'ConfigParam', then the parallel config parameter must be provided.
|
|
29892
29892
|
* @param result - the ValidationResult object to add any errors or warnings to
|
|
29893
29893
|
* @public
|