@memberjunction/core-entities 2.108.0 → 2.109.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.
|
@@ -4851,6 +4851,83 @@ export declare const AIAgentArtifactTypeSchema: z.ZodObject<{
|
|
|
4851
4851
|
ArtifactType?: string;
|
|
4852
4852
|
}>;
|
|
4853
4853
|
export type AIAgentArtifactTypeEntityType = z.infer<typeof AIAgentArtifactTypeSchema>;
|
|
4854
|
+
/**
|
|
4855
|
+
* zod schema definition for the entity MJ: AI Agent Data Sources
|
|
4856
|
+
*/
|
|
4857
|
+
export declare const AIAgentDataSourceSchema: z.ZodObject<{
|
|
4858
|
+
ID: z.ZodString;
|
|
4859
|
+
AgentID: z.ZodString;
|
|
4860
|
+
Name: z.ZodString;
|
|
4861
|
+
Description: z.ZodNullable<z.ZodString>;
|
|
4862
|
+
SourceType: z.ZodUnion<[z.ZodLiteral<"RunQuery">, z.ZodLiteral<"RunView">]>;
|
|
4863
|
+
EntityName: z.ZodNullable<z.ZodString>;
|
|
4864
|
+
ExtraFilter: z.ZodNullable<z.ZodString>;
|
|
4865
|
+
OrderBy: z.ZodNullable<z.ZodString>;
|
|
4866
|
+
FieldsToRetrieve: z.ZodNullable<z.ZodString>;
|
|
4867
|
+
ResultType: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"entity_object">, z.ZodLiteral<"simple">]>>;
|
|
4868
|
+
QueryName: z.ZodNullable<z.ZodString>;
|
|
4869
|
+
CategoryPath: z.ZodNullable<z.ZodString>;
|
|
4870
|
+
Parameters: z.ZodNullable<z.ZodString>;
|
|
4871
|
+
MaxRows: z.ZodNullable<z.ZodNumber>;
|
|
4872
|
+
ExecutionOrder: z.ZodNumber;
|
|
4873
|
+
Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Disabled">]>;
|
|
4874
|
+
CachePolicy: z.ZodUnion<[z.ZodLiteral<"None">, z.ZodLiteral<"PerAgent">, z.ZodLiteral<"PerRun">]>;
|
|
4875
|
+
CacheTimeoutSeconds: z.ZodNullable<z.ZodNumber>;
|
|
4876
|
+
DestinationType: z.ZodUnion<[z.ZodLiteral<"Context">, z.ZodLiteral<"Data">, z.ZodLiteral<"Payload">]>;
|
|
4877
|
+
DestinationPath: z.ZodNullable<z.ZodString>;
|
|
4878
|
+
__mj_CreatedAt: z.ZodDate;
|
|
4879
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
4880
|
+
Agent: z.ZodNullable<z.ZodString>;
|
|
4881
|
+
}, "strip", z.ZodTypeAny, {
|
|
4882
|
+
ID?: string;
|
|
4883
|
+
__mj_CreatedAt?: Date;
|
|
4884
|
+
__mj_UpdatedAt?: Date;
|
|
4885
|
+
Name?: string;
|
|
4886
|
+
Description?: string;
|
|
4887
|
+
Status?: "Active" | "Disabled";
|
|
4888
|
+
AgentID?: string;
|
|
4889
|
+
Agent?: string;
|
|
4890
|
+
ExecutionOrder?: number;
|
|
4891
|
+
Parameters?: string;
|
|
4892
|
+
SourceType?: "RunQuery" | "RunView";
|
|
4893
|
+
EntityName?: string;
|
|
4894
|
+
ExtraFilter?: string;
|
|
4895
|
+
OrderBy?: string;
|
|
4896
|
+
FieldsToRetrieve?: string;
|
|
4897
|
+
ResultType?: "entity_object" | "simple";
|
|
4898
|
+
QueryName?: string;
|
|
4899
|
+
CategoryPath?: string;
|
|
4900
|
+
MaxRows?: number;
|
|
4901
|
+
CachePolicy?: "None" | "PerAgent" | "PerRun";
|
|
4902
|
+
CacheTimeoutSeconds?: number;
|
|
4903
|
+
DestinationType?: "Context" | "Data" | "Payload";
|
|
4904
|
+
DestinationPath?: string;
|
|
4905
|
+
}, {
|
|
4906
|
+
ID?: string;
|
|
4907
|
+
__mj_CreatedAt?: Date;
|
|
4908
|
+
__mj_UpdatedAt?: Date;
|
|
4909
|
+
Name?: string;
|
|
4910
|
+
Description?: string;
|
|
4911
|
+
Status?: "Active" | "Disabled";
|
|
4912
|
+
AgentID?: string;
|
|
4913
|
+
Agent?: string;
|
|
4914
|
+
ExecutionOrder?: number;
|
|
4915
|
+
Parameters?: string;
|
|
4916
|
+
SourceType?: "RunQuery" | "RunView";
|
|
4917
|
+
EntityName?: string;
|
|
4918
|
+
ExtraFilter?: string;
|
|
4919
|
+
OrderBy?: string;
|
|
4920
|
+
FieldsToRetrieve?: string;
|
|
4921
|
+
ResultType?: "entity_object" | "simple";
|
|
4922
|
+
QueryName?: string;
|
|
4923
|
+
CategoryPath?: string;
|
|
4924
|
+
MaxRows?: number;
|
|
4925
|
+
CachePolicy?: "None" | "PerAgent" | "PerRun";
|
|
4926
|
+
CacheTimeoutSeconds?: number;
|
|
4927
|
+
DestinationType?: "Context" | "Data" | "Payload";
|
|
4928
|
+
DestinationPath?: string;
|
|
4929
|
+
}>;
|
|
4930
|
+
export type AIAgentDataSourceEntityType = z.infer<typeof AIAgentDataSourceSchema>;
|
|
4854
4931
|
/**
|
|
4855
4932
|
* zod schema definition for the entity MJ: AI Agent Permissions
|
|
4856
4933
|
*/
|
|
@@ -5141,6 +5218,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
5141
5218
|
LastRunID?: string;
|
|
5142
5219
|
ConversationID?: string;
|
|
5143
5220
|
Conversation?: string;
|
|
5221
|
+
Data?: string;
|
|
5144
5222
|
CompletedAt?: Date;
|
|
5145
5223
|
ParentRunID?: string;
|
|
5146
5224
|
Result?: string;
|
|
@@ -5162,7 +5240,6 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
5162
5240
|
TotalPromptIterations?: number;
|
|
5163
5241
|
OverrideModelID?: string;
|
|
5164
5242
|
OverrideVendorID?: string;
|
|
5165
|
-
Data?: string;
|
|
5166
5243
|
Verbose?: boolean;
|
|
5167
5244
|
RunName?: string;
|
|
5168
5245
|
ScheduledJobRunID?: string;
|
|
@@ -5190,6 +5267,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
5190
5267
|
LastRunID?: string;
|
|
5191
5268
|
ConversationID?: string;
|
|
5192
5269
|
Conversation?: string;
|
|
5270
|
+
Data?: string;
|
|
5193
5271
|
CompletedAt?: Date;
|
|
5194
5272
|
ParentRunID?: string;
|
|
5195
5273
|
Result?: string;
|
|
@@ -5211,7 +5289,6 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
5211
5289
|
TotalPromptIterations?: number;
|
|
5212
5290
|
OverrideModelID?: string;
|
|
5213
5291
|
OverrideVendorID?: string;
|
|
5214
|
-
Data?: string;
|
|
5215
5292
|
Verbose?: boolean;
|
|
5216
5293
|
RunName?: string;
|
|
5217
5294
|
ScheduledJobRunID?: string;
|
|
@@ -6077,6 +6154,53 @@ export declare const AIVendorSchema: z.ZodObject<{
|
|
|
6077
6154
|
Description?: string;
|
|
6078
6155
|
}>;
|
|
6079
6156
|
export type AIVendorEntityType = z.infer<typeof AIVendorSchema>;
|
|
6157
|
+
/**
|
|
6158
|
+
* zod schema definition for the entity MJ: Artifact Permissions
|
|
6159
|
+
*/
|
|
6160
|
+
export declare const ArtifactPermissionSchema: z.ZodObject<{
|
|
6161
|
+
ID: z.ZodString;
|
|
6162
|
+
ArtifactID: z.ZodString;
|
|
6163
|
+
UserID: z.ZodString;
|
|
6164
|
+
CanRead: z.ZodBoolean;
|
|
6165
|
+
CanEdit: z.ZodBoolean;
|
|
6166
|
+
CanDelete: z.ZodBoolean;
|
|
6167
|
+
CanShare: z.ZodBoolean;
|
|
6168
|
+
SharedByUserID: z.ZodNullable<z.ZodString>;
|
|
6169
|
+
__mj_CreatedAt: z.ZodDate;
|
|
6170
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
6171
|
+
Artifact: z.ZodString;
|
|
6172
|
+
User: z.ZodString;
|
|
6173
|
+
SharedByUser: z.ZodNullable<z.ZodString>;
|
|
6174
|
+
}, "strip", z.ZodTypeAny, {
|
|
6175
|
+
ID?: string;
|
|
6176
|
+
__mj_CreatedAt?: Date;
|
|
6177
|
+
__mj_UpdatedAt?: Date;
|
|
6178
|
+
UserID?: string;
|
|
6179
|
+
User?: string;
|
|
6180
|
+
ArtifactID?: string;
|
|
6181
|
+
Artifact?: string;
|
|
6182
|
+
CanRead?: boolean;
|
|
6183
|
+
CanDelete?: boolean;
|
|
6184
|
+
CanShare?: boolean;
|
|
6185
|
+
CanEdit?: boolean;
|
|
6186
|
+
SharedByUserID?: string;
|
|
6187
|
+
SharedByUser?: string;
|
|
6188
|
+
}, {
|
|
6189
|
+
ID?: string;
|
|
6190
|
+
__mj_CreatedAt?: Date;
|
|
6191
|
+
__mj_UpdatedAt?: Date;
|
|
6192
|
+
UserID?: string;
|
|
6193
|
+
User?: string;
|
|
6194
|
+
ArtifactID?: string;
|
|
6195
|
+
Artifact?: string;
|
|
6196
|
+
CanRead?: boolean;
|
|
6197
|
+
CanDelete?: boolean;
|
|
6198
|
+
CanShare?: boolean;
|
|
6199
|
+
CanEdit?: boolean;
|
|
6200
|
+
SharedByUserID?: string;
|
|
6201
|
+
SharedByUser?: string;
|
|
6202
|
+
}>;
|
|
6203
|
+
export type ArtifactPermissionEntityType = z.infer<typeof ArtifactPermissionSchema>;
|
|
6080
6204
|
/**
|
|
6081
6205
|
* zod schema definition for the entity MJ: Artifact Types
|
|
6082
6206
|
*/
|
|
@@ -6309,10 +6433,10 @@ export declare const CollectionPermissionSchema: z.ZodObject<{
|
|
|
6309
6433
|
CanDelete?: boolean;
|
|
6310
6434
|
CanShare?: boolean;
|
|
6311
6435
|
CanEdit?: boolean;
|
|
6312
|
-
CollectionID?: string;
|
|
6313
|
-
Collection?: string;
|
|
6314
6436
|
SharedByUserID?: string;
|
|
6315
6437
|
SharedByUser?: string;
|
|
6438
|
+
CollectionID?: string;
|
|
6439
|
+
Collection?: string;
|
|
6316
6440
|
}, {
|
|
6317
6441
|
ID?: string;
|
|
6318
6442
|
__mj_CreatedAt?: Date;
|
|
@@ -6323,10 +6447,10 @@ export declare const CollectionPermissionSchema: z.ZodObject<{
|
|
|
6323
6447
|
CanDelete?: boolean;
|
|
6324
6448
|
CanShare?: boolean;
|
|
6325
6449
|
CanEdit?: boolean;
|
|
6326
|
-
CollectionID?: string;
|
|
6327
|
-
Collection?: string;
|
|
6328
6450
|
SharedByUserID?: string;
|
|
6329
6451
|
SharedByUser?: string;
|
|
6452
|
+
CollectionID?: string;
|
|
6453
|
+
Collection?: string;
|
|
6330
6454
|
}>;
|
|
6331
6455
|
export type CollectionPermissionEntityType = z.infer<typeof CollectionPermissionSchema>;
|
|
6332
6456
|
/**
|
|
@@ -8941,10 +9065,10 @@ export declare const TemplateParamSchema: z.ZodObject<{
|
|
|
8941
9065
|
EntityID?: string;
|
|
8942
9066
|
Entity?: string;
|
|
8943
9067
|
RecordID?: string;
|
|
8944
|
-
LinkedParameterName?: string;
|
|
8945
|
-
LinkedParameterField?: string;
|
|
8946
9068
|
ExtraFilter?: string;
|
|
8947
9069
|
OrderBy?: string;
|
|
9070
|
+
LinkedParameterName?: string;
|
|
9071
|
+
LinkedParameterField?: string;
|
|
8948
9072
|
TemplateContentID?: string;
|
|
8949
9073
|
}, {
|
|
8950
9074
|
ID?: string;
|
|
@@ -8960,10 +9084,10 @@ export declare const TemplateParamSchema: z.ZodObject<{
|
|
|
8960
9084
|
EntityID?: string;
|
|
8961
9085
|
Entity?: string;
|
|
8962
9086
|
RecordID?: string;
|
|
8963
|
-
LinkedParameterName?: string;
|
|
8964
|
-
LinkedParameterField?: string;
|
|
8965
9087
|
ExtraFilter?: string;
|
|
8966
9088
|
OrderBy?: string;
|
|
9089
|
+
LinkedParameterName?: string;
|
|
9090
|
+
LinkedParameterField?: string;
|
|
8967
9091
|
TemplateContentID?: string;
|
|
8968
9092
|
}>;
|
|
8969
9093
|
export type TemplateParamEntityType = z.infer<typeof TemplateParamSchema>;
|
|
@@ -11016,15 +11140,27 @@ export declare class AIAgentActionEntity extends BaseEntity<AIAgentActionEntityT
|
|
|
11016
11140
|
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
11017
11141
|
/**
|
|
11018
11142
|
* Validate() method override for AI Agent Actions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
11143
|
+
* * CompactLength: This rule ensures that if a value is provided for CompactLength, it must be greater than zero. If CompactLength is left empty, no rule applies.
|
|
11019
11144
|
* * MaxExecutionsPerRun: This rule ensures that if the maximum executions per run is specified, the number must be greater than zero. If it is not specified, no restriction applies.
|
|
11020
11145
|
* * MinExecutionsPerRun: This rule ensures that if a minimum executions per run value is provided, it must be zero or greater.
|
|
11146
|
+
* * ResultExpirationTurns: This rule ensures that if the ResultExpirationTurns field has a value, it must be zero or greater (it cannot be negative). If ResultExpirationTurns is left empty, there is no restriction.
|
|
11147
|
+
* * Table-Level: This rule ensures that if the compact mode is set to 'First N Chars', a compact length must be specified. For any other compact mode, the compact length can be left empty.
|
|
11148
|
+
* * Table-Level: This rule ensures that if the result expiration mode is set to 'Compact', a compact mode value must also be provided. If the result expiration mode is not 'Compact', compact mode can be left empty.
|
|
11021
11149
|
* * Table-Level: This rule ensures that if both minimum and maximum executions per run are specified, the minimum cannot be greater than the maximum. If either value is not specified, the rule is not enforced.
|
|
11150
|
+
* * Table-Level: This rule ensures that if the result expiration mode is set to 'Compact', then CompactMode, CompactLength, and CompactPromptID must all be empty (null). If the expiration mode is not 'Compact', these fields may be filled in.
|
|
11022
11151
|
* @public
|
|
11023
11152
|
* @method
|
|
11024
11153
|
* @override
|
|
11025
11154
|
*/
|
|
11026
11155
|
Validate(): ValidationResult;
|
|
11027
11156
|
/**
|
|
11157
|
+
* This rule ensures that if a value is provided for CompactLength, it must be greater than zero. If CompactLength is left empty, no rule applies.
|
|
11158
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
11159
|
+
* @public
|
|
11160
|
+
* @method
|
|
11161
|
+
*/
|
|
11162
|
+
ValidateCompactLengthGreaterThanZero(result: ValidationResult): void;
|
|
11163
|
+
/**
|
|
11028
11164
|
* This rule ensures that if the maximum executions per run is specified, the number must be greater than zero. If it is not specified, no restriction applies.
|
|
11029
11165
|
* @param result - the ValidationResult object to add any errors or warnings to
|
|
11030
11166
|
* @public
|
|
@@ -11039,6 +11175,27 @@ export declare class AIAgentActionEntity extends BaseEntity<AIAgentActionEntityT
|
|
|
11039
11175
|
*/
|
|
11040
11176
|
ValidateMinExecutionsPerRunIsNonNegative(result: ValidationResult): void;
|
|
11041
11177
|
/**
|
|
11178
|
+
* This rule ensures that if the ResultExpirationTurns field has a value, it must be zero or greater (it cannot be negative). If ResultExpirationTurns is left empty, there is no restriction.
|
|
11179
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
11180
|
+
* @public
|
|
11181
|
+
* @method
|
|
11182
|
+
*/
|
|
11183
|
+
ValidateResultExpirationTurnsNonNegative(result: ValidationResult): void;
|
|
11184
|
+
/**
|
|
11185
|
+
* This rule ensures that if the compact mode is set to 'First N Chars', a compact length must be specified. For any other compact mode, the compact length can be left empty.
|
|
11186
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
11187
|
+
* @public
|
|
11188
|
+
* @method
|
|
11189
|
+
*/
|
|
11190
|
+
ValidateCompactLengthRequiredForFirstNCharsMode(result: ValidationResult): void;
|
|
11191
|
+
/**
|
|
11192
|
+
* This rule ensures that if the result expiration mode is set to 'Compact', a compact mode value must also be provided. If the result expiration mode is not 'Compact', compact mode can be left empty.
|
|
11193
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
11194
|
+
* @public
|
|
11195
|
+
* @method
|
|
11196
|
+
*/
|
|
11197
|
+
ValidateCompactModeWhenResultExpirationModeIsCompact(result: ValidationResult): void;
|
|
11198
|
+
/**
|
|
11042
11199
|
* This rule ensures that if both minimum and maximum executions per run are specified, the minimum cannot be greater than the maximum. If either value is not specified, the rule is not enforced.
|
|
11043
11200
|
* @param result - the ValidationResult object to add any errors or warnings to
|
|
11044
11201
|
* @public
|
|
@@ -11046,6 +11203,13 @@ export declare class AIAgentActionEntity extends BaseEntity<AIAgentActionEntityT
|
|
|
11046
11203
|
*/
|
|
11047
11204
|
ValidateMinExecutionsPerRunIsLessThanOrEqualToMaxExecutionsPerRun(result: ValidationResult): void;
|
|
11048
11205
|
/**
|
|
11206
|
+
* This rule ensures that if the result expiration mode is set to 'Compact', then CompactMode, CompactLength, and CompactPromptID must all be empty (null). If the expiration mode is not 'Compact', these fields may be filled in.
|
|
11207
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
11208
|
+
* @public
|
|
11209
|
+
* @method
|
|
11210
|
+
*/
|
|
11211
|
+
ValidateResultExpirationModeRequiresCompactFieldsEmpty(result: ValidationResult): void;
|
|
11212
|
+
/**
|
|
11049
11213
|
* * Field Name: ID
|
|
11050
11214
|
* * Display Name: ID
|
|
11051
11215
|
* * SQL Data Type: uniqueidentifier
|
|
@@ -23279,6 +23443,270 @@ export declare class AIAgentArtifactTypeEntity extends BaseEntity<AIAgentArtifac
|
|
|
23279
23443
|
*/
|
|
23280
23444
|
get ArtifactType(): string;
|
|
23281
23445
|
}
|
|
23446
|
+
/**
|
|
23447
|
+
* MJ: AI Agent Data Sources - strongly typed entity sub-class
|
|
23448
|
+
* * Schema: __mj
|
|
23449
|
+
* * Base Table: AIAgentDataSource
|
|
23450
|
+
* * Base View: vwAIAgentDataSources
|
|
23451
|
+
* * @description Defines data sources that should be preloaded into the data parameter before agent execution. Supports both RunView and RunQuery sources with configurable caching.
|
|
23452
|
+
* * Primary Key: ID
|
|
23453
|
+
* @extends {BaseEntity}
|
|
23454
|
+
* @class
|
|
23455
|
+
* @public
|
|
23456
|
+
*/
|
|
23457
|
+
export declare class AIAgentDataSourceEntity extends BaseEntity<AIAgentDataSourceEntityType> {
|
|
23458
|
+
/**
|
|
23459
|
+
* Loads the MJ: AI Agent Data Sources record from the database
|
|
23460
|
+
* @param ID: string - primary key value to load the MJ: AI Agent Data Sources record.
|
|
23461
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
23462
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
23463
|
+
* @public
|
|
23464
|
+
* @async
|
|
23465
|
+
* @memberof AIAgentDataSourceEntity
|
|
23466
|
+
* @method
|
|
23467
|
+
* @override
|
|
23468
|
+
*/
|
|
23469
|
+
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
23470
|
+
/**
|
|
23471
|
+
* Validate() method override for MJ: AI Agent Data Sources entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
23472
|
+
* * Table-Level: This rule ensures that if the cache policy is set to 'PerAgent', a cache timeout value must be provided. For other cache policies, providing a cache timeout is optional.
|
|
23473
|
+
* * Table-Level: This rule makes sure that if the source type is 'RunView', the entity name must be provided. If the source type is anything else, the entity name can be left blank.
|
|
23474
|
+
* * Table-Level: This rule ensures that when the Source Type is set to 'RunQuery', a Query Name must be provided. If Source Type is anything other than 'RunQuery', Query Name is optional.
|
|
23475
|
+
* @public
|
|
23476
|
+
* @method
|
|
23477
|
+
* @override
|
|
23478
|
+
*/
|
|
23479
|
+
Validate(): ValidationResult;
|
|
23480
|
+
/**
|
|
23481
|
+
* This rule ensures that if the cache policy is set to 'PerAgent', a cache timeout value must be provided. For other cache policies, providing a cache timeout is optional.
|
|
23482
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
23483
|
+
* @public
|
|
23484
|
+
* @method
|
|
23485
|
+
*/
|
|
23486
|
+
ValidateCacheTimeoutSecondsRequiredForPerAgentPolicy(result: ValidationResult): void;
|
|
23487
|
+
/**
|
|
23488
|
+
* This rule makes sure that if the source type is 'RunView', the entity name must be provided. If the source type is anything else, the entity name can be left blank.
|
|
23489
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
23490
|
+
* @public
|
|
23491
|
+
* @method
|
|
23492
|
+
*/
|
|
23493
|
+
ValidateEntityNameRequiredWhenSourceTypeRunView(result: ValidationResult): void;
|
|
23494
|
+
/**
|
|
23495
|
+
* This rule ensures that when the Source Type is set to 'RunQuery', a Query Name must be provided. If Source Type is anything other than 'RunQuery', Query Name is optional.
|
|
23496
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
23497
|
+
* @public
|
|
23498
|
+
* @method
|
|
23499
|
+
*/
|
|
23500
|
+
ValidateQueryNameRequiredWhenSourceTypeIsRunQuery(result: ValidationResult): void;
|
|
23501
|
+
/**
|
|
23502
|
+
* * Field Name: ID
|
|
23503
|
+
* * Display Name: ID
|
|
23504
|
+
* * SQL Data Type: uniqueidentifier
|
|
23505
|
+
* * Default Value: newsequentialid()
|
|
23506
|
+
*/
|
|
23507
|
+
get ID(): string;
|
|
23508
|
+
set ID(value: string);
|
|
23509
|
+
/**
|
|
23510
|
+
* * Field Name: AgentID
|
|
23511
|
+
* * Display Name: Agent ID
|
|
23512
|
+
* * SQL Data Type: uniqueidentifier
|
|
23513
|
+
* * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
|
|
23514
|
+
*/
|
|
23515
|
+
get AgentID(): string;
|
|
23516
|
+
set AgentID(value: string);
|
|
23517
|
+
/**
|
|
23518
|
+
* * Field Name: Name
|
|
23519
|
+
* * Display Name: Name
|
|
23520
|
+
* * SQL Data Type: nvarchar(255)
|
|
23521
|
+
* * Description: Variable name for the data in the data parameter (e.g., "ALL_ENTITIES"). Must be unique within an agent.
|
|
23522
|
+
*/
|
|
23523
|
+
get Name(): string;
|
|
23524
|
+
set Name(value: string);
|
|
23525
|
+
/**
|
|
23526
|
+
* * Field Name: Description
|
|
23527
|
+
* * Display Name: Description
|
|
23528
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
23529
|
+
* * Description: Description of what this data source provides
|
|
23530
|
+
*/
|
|
23531
|
+
get Description(): string | null;
|
|
23532
|
+
set Description(value: string | null);
|
|
23533
|
+
/**
|
|
23534
|
+
* * Field Name: SourceType
|
|
23535
|
+
* * Display Name: Source Type
|
|
23536
|
+
* * SQL Data Type: nvarchar(20)
|
|
23537
|
+
* * Default Value: RunView
|
|
23538
|
+
* * Value List Type: List
|
|
23539
|
+
* * Possible Values
|
|
23540
|
+
* * RunQuery
|
|
23541
|
+
* * RunView
|
|
23542
|
+
* * Description: Type of data source: RunView or RunQuery. Determines which parameters are used.
|
|
23543
|
+
*/
|
|
23544
|
+
get SourceType(): 'RunQuery' | 'RunView';
|
|
23545
|
+
set SourceType(value: 'RunQuery' | 'RunView');
|
|
23546
|
+
/**
|
|
23547
|
+
* * Field Name: EntityName
|
|
23548
|
+
* * Display Name: Entity Name
|
|
23549
|
+
* * SQL Data Type: nvarchar(255)
|
|
23550
|
+
* * Description: Entity name for RunView data sources (e.g., "Entities", "AI Models")
|
|
23551
|
+
*/
|
|
23552
|
+
get EntityName(): string | null;
|
|
23553
|
+
set EntityName(value: string | null);
|
|
23554
|
+
/**
|
|
23555
|
+
* * Field Name: ExtraFilter
|
|
23556
|
+
* * Display Name: Extra Filter
|
|
23557
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
23558
|
+
* * Description: SQL WHERE clause filter for RunView data sources
|
|
23559
|
+
*/
|
|
23560
|
+
get ExtraFilter(): string | null;
|
|
23561
|
+
set ExtraFilter(value: string | null);
|
|
23562
|
+
/**
|
|
23563
|
+
* * Field Name: OrderBy
|
|
23564
|
+
* * Display Name: Order By
|
|
23565
|
+
* * SQL Data Type: nvarchar(500)
|
|
23566
|
+
* * Description: SQL ORDER BY clause for RunView data sources
|
|
23567
|
+
*/
|
|
23568
|
+
get OrderBy(): string | null;
|
|
23569
|
+
set OrderBy(value: string | null);
|
|
23570
|
+
/**
|
|
23571
|
+
* * Field Name: FieldsToRetrieve
|
|
23572
|
+
* * Display Name: Fields To Retrieve
|
|
23573
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
23574
|
+
* * Description: JSON array of field names to return for RunView data sources (e.g., ["ID", "Name", "Description"])
|
|
23575
|
+
*/
|
|
23576
|
+
get FieldsToRetrieve(): string | null;
|
|
23577
|
+
set FieldsToRetrieve(value: string | null);
|
|
23578
|
+
/**
|
|
23579
|
+
* * Field Name: ResultType
|
|
23580
|
+
* * Display Name: Result Type
|
|
23581
|
+
* * SQL Data Type: nvarchar(20)
|
|
23582
|
+
* * Default Value: simple
|
|
23583
|
+
* * Value List Type: List
|
|
23584
|
+
* * Possible Values
|
|
23585
|
+
* * entity_object
|
|
23586
|
+
* * simple
|
|
23587
|
+
* * Description: Result type for RunView: simple (default) or entity_object
|
|
23588
|
+
*/
|
|
23589
|
+
get ResultType(): 'entity_object' | 'simple' | null;
|
|
23590
|
+
set ResultType(value: 'entity_object' | 'simple' | null);
|
|
23591
|
+
/**
|
|
23592
|
+
* * Field Name: QueryName
|
|
23593
|
+
* * Display Name: Query Name
|
|
23594
|
+
* * SQL Data Type: nvarchar(255)
|
|
23595
|
+
* * Description: Query name for RunQuery data sources
|
|
23596
|
+
*/
|
|
23597
|
+
get QueryName(): string | null;
|
|
23598
|
+
set QueryName(value: string | null);
|
|
23599
|
+
/**
|
|
23600
|
+
* * Field Name: CategoryPath
|
|
23601
|
+
* * Display Name: Category Path
|
|
23602
|
+
* * SQL Data Type: nvarchar(500)
|
|
23603
|
+
* * Description: Category path for RunQuery data sources (e.g., "/MJ/AI/Agents/")
|
|
23604
|
+
*/
|
|
23605
|
+
get CategoryPath(): string | null;
|
|
23606
|
+
set CategoryPath(value: string | null);
|
|
23607
|
+
/**
|
|
23608
|
+
* * Field Name: Parameters
|
|
23609
|
+
* * Display Name: Parameters
|
|
23610
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
23611
|
+
* * Description: JSON object of parameters for RunQuery data sources (e.g., {"organizationId": "123"})
|
|
23612
|
+
*/
|
|
23613
|
+
get Parameters(): string | null;
|
|
23614
|
+
set Parameters(value: string | null);
|
|
23615
|
+
/**
|
|
23616
|
+
* * Field Name: MaxRows
|
|
23617
|
+
* * Display Name: Max Rows
|
|
23618
|
+
* * SQL Data Type: int
|
|
23619
|
+
* * Description: Maximum number of rows to return. Applies to both RunView and RunQuery.
|
|
23620
|
+
*/
|
|
23621
|
+
get MaxRows(): number | null;
|
|
23622
|
+
set MaxRows(value: number | null);
|
|
23623
|
+
/**
|
|
23624
|
+
* * Field Name: ExecutionOrder
|
|
23625
|
+
* * Display Name: Execution Order
|
|
23626
|
+
* * SQL Data Type: int
|
|
23627
|
+
* * Default Value: 0
|
|
23628
|
+
* * Description: Execution order when multiple data sources are defined for an agent (lower numbers execute first)
|
|
23629
|
+
*/
|
|
23630
|
+
get ExecutionOrder(): number;
|
|
23631
|
+
set ExecutionOrder(value: number);
|
|
23632
|
+
/**
|
|
23633
|
+
* * Field Name: Status
|
|
23634
|
+
* * Display Name: Status
|
|
23635
|
+
* * SQL Data Type: nvarchar(20)
|
|
23636
|
+
* * Default Value: Active
|
|
23637
|
+
* * Value List Type: List
|
|
23638
|
+
* * Possible Values
|
|
23639
|
+
* * Active
|
|
23640
|
+
* * Disabled
|
|
23641
|
+
* * Description: Status of the data source: Active or Disabled
|
|
23642
|
+
*/
|
|
23643
|
+
get Status(): 'Active' | 'Disabled';
|
|
23644
|
+
set Status(value: 'Active' | 'Disabled');
|
|
23645
|
+
/**
|
|
23646
|
+
* * Field Name: CachePolicy
|
|
23647
|
+
* * Display Name: Cache Policy
|
|
23648
|
+
* * SQL Data Type: nvarchar(20)
|
|
23649
|
+
* * Default Value: None
|
|
23650
|
+
* * Value List Type: List
|
|
23651
|
+
* * Possible Values
|
|
23652
|
+
* * PerRun
|
|
23653
|
+
* * PerAgent
|
|
23654
|
+
* * None
|
|
23655
|
+
* * Description: Cache policy: None (no caching), PerRun (cache for duration of agent run), PerAgent (cache across runs with timeout)
|
|
23656
|
+
*/
|
|
23657
|
+
get CachePolicy(): 'None' | 'PerAgent' | 'PerRun';
|
|
23658
|
+
set CachePolicy(value: 'None' | 'PerAgent' | 'PerRun');
|
|
23659
|
+
/**
|
|
23660
|
+
* * Field Name: CacheTimeoutSeconds
|
|
23661
|
+
* * Display Name: Cache Timeout Seconds
|
|
23662
|
+
* * SQL Data Type: int
|
|
23663
|
+
* * Description: Time-to-live in seconds for PerAgent cache policy. Ignored for other cache policies.
|
|
23664
|
+
*/
|
|
23665
|
+
get CacheTimeoutSeconds(): number | null;
|
|
23666
|
+
set CacheTimeoutSeconds(value: number | null);
|
|
23667
|
+
/**
|
|
23668
|
+
* * Field Name: DestinationType
|
|
23669
|
+
* * Display Name: Destination Type
|
|
23670
|
+
* * SQL Data Type: nvarchar(20)
|
|
23671
|
+
* * Default Value: Data
|
|
23672
|
+
* * Value List Type: List
|
|
23673
|
+
* * Possible Values
|
|
23674
|
+
* * Data
|
|
23675
|
+
* * Context
|
|
23676
|
+
* * Payload
|
|
23677
|
+
* * Description: Destination for the preloaded data: Data (for Nunjucks templates in prompts), Context (for actions only), or Payload (for agent state)
|
|
23678
|
+
*/
|
|
23679
|
+
get DestinationType(): 'Context' | 'Data' | 'Payload';
|
|
23680
|
+
set DestinationType(value: 'Context' | 'Data' | 'Payload');
|
|
23681
|
+
/**
|
|
23682
|
+
* * Field Name: DestinationPath
|
|
23683
|
+
* * Display Name: Destination Path
|
|
23684
|
+
* * SQL Data Type: nvarchar(500)
|
|
23685
|
+
* * Description: Path within the destination where data should be injected. Supports nested paths using dot notation (e.g., "config.api.endpoints", "analysis.orders.recent"). If null, uses Name as root-level key.
|
|
23686
|
+
*/
|
|
23687
|
+
get DestinationPath(): string | null;
|
|
23688
|
+
set DestinationPath(value: string | null);
|
|
23689
|
+
/**
|
|
23690
|
+
* * Field Name: __mj_CreatedAt
|
|
23691
|
+
* * Display Name: Created At
|
|
23692
|
+
* * SQL Data Type: datetimeoffset
|
|
23693
|
+
* * Default Value: getutcdate()
|
|
23694
|
+
*/
|
|
23695
|
+
get __mj_CreatedAt(): Date;
|
|
23696
|
+
/**
|
|
23697
|
+
* * Field Name: __mj_UpdatedAt
|
|
23698
|
+
* * Display Name: Updated At
|
|
23699
|
+
* * SQL Data Type: datetimeoffset
|
|
23700
|
+
* * Default Value: getutcdate()
|
|
23701
|
+
*/
|
|
23702
|
+
get __mj_UpdatedAt(): Date;
|
|
23703
|
+
/**
|
|
23704
|
+
* * Field Name: Agent
|
|
23705
|
+
* * Display Name: Agent
|
|
23706
|
+
* * SQL Data Type: nvarchar(255)
|
|
23707
|
+
*/
|
|
23708
|
+
get Agent(): string | null;
|
|
23709
|
+
}
|
|
23282
23710
|
/**
|
|
23283
23711
|
* MJ: AI Agent Permissions - strongly typed entity sub-class
|
|
23284
23712
|
* * Schema: __mj
|
|
@@ -27001,6 +27429,132 @@ export declare class AIVendorEntity extends BaseEntity<AIVendorEntityType> {
|
|
|
27001
27429
|
*/
|
|
27002
27430
|
get __mj_UpdatedAt(): Date;
|
|
27003
27431
|
}
|
|
27432
|
+
/**
|
|
27433
|
+
* MJ: Artifact Permissions - strongly typed entity sub-class
|
|
27434
|
+
* * Schema: __mj
|
|
27435
|
+
* * Base Table: ArtifactPermission
|
|
27436
|
+
* * Base View: vwArtifactPermissions
|
|
27437
|
+
* * @description Manages user permissions for artifacts with granular access control (Read, Edit, Delete, Share)
|
|
27438
|
+
* * Primary Key: ID
|
|
27439
|
+
* @extends {BaseEntity}
|
|
27440
|
+
* @class
|
|
27441
|
+
* @public
|
|
27442
|
+
*/
|
|
27443
|
+
export declare class ArtifactPermissionEntity extends BaseEntity<ArtifactPermissionEntityType> {
|
|
27444
|
+
/**
|
|
27445
|
+
* Loads the MJ: Artifact Permissions record from the database
|
|
27446
|
+
* @param ID: string - primary key value to load the MJ: Artifact Permissions record.
|
|
27447
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
27448
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
27449
|
+
* @public
|
|
27450
|
+
* @async
|
|
27451
|
+
* @memberof ArtifactPermissionEntity
|
|
27452
|
+
* @method
|
|
27453
|
+
* @override
|
|
27454
|
+
*/
|
|
27455
|
+
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
27456
|
+
/**
|
|
27457
|
+
* * Field Name: ID
|
|
27458
|
+
* * Display Name: ID
|
|
27459
|
+
* * SQL Data Type: uniqueidentifier
|
|
27460
|
+
* * Default Value: newsequentialid()
|
|
27461
|
+
*/
|
|
27462
|
+
get ID(): string;
|
|
27463
|
+
set ID(value: string);
|
|
27464
|
+
/**
|
|
27465
|
+
* * Field Name: ArtifactID
|
|
27466
|
+
* * Display Name: Artifact ID
|
|
27467
|
+
* * SQL Data Type: uniqueidentifier
|
|
27468
|
+
* * Related Entity/Foreign Key: MJ: Artifacts (vwArtifacts.ID)
|
|
27469
|
+
*/
|
|
27470
|
+
get ArtifactID(): string;
|
|
27471
|
+
set ArtifactID(value: string);
|
|
27472
|
+
/**
|
|
27473
|
+
* * Field Name: UserID
|
|
27474
|
+
* * Display Name: User ID
|
|
27475
|
+
* * SQL Data Type: uniqueidentifier
|
|
27476
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
27477
|
+
*/
|
|
27478
|
+
get UserID(): string;
|
|
27479
|
+
set UserID(value: string);
|
|
27480
|
+
/**
|
|
27481
|
+
* * Field Name: CanRead
|
|
27482
|
+
* * Display Name: Can Read
|
|
27483
|
+
* * SQL Data Type: bit
|
|
27484
|
+
* * Default Value: 1
|
|
27485
|
+
* * Description: Whether the user can view/read the artifact
|
|
27486
|
+
*/
|
|
27487
|
+
get CanRead(): boolean;
|
|
27488
|
+
set CanRead(value: boolean);
|
|
27489
|
+
/**
|
|
27490
|
+
* * Field Name: CanEdit
|
|
27491
|
+
* * Display Name: Can Edit
|
|
27492
|
+
* * SQL Data Type: bit
|
|
27493
|
+
* * Default Value: 0
|
|
27494
|
+
* * Description: Whether the user can modify the artifact or create new versions
|
|
27495
|
+
*/
|
|
27496
|
+
get CanEdit(): boolean;
|
|
27497
|
+
set CanEdit(value: boolean);
|
|
27498
|
+
/**
|
|
27499
|
+
* * Field Name: CanDelete
|
|
27500
|
+
* * Display Name: Can Delete
|
|
27501
|
+
* * SQL Data Type: bit
|
|
27502
|
+
* * Default Value: 0
|
|
27503
|
+
* * Description: Whether the user can delete the artifact
|
|
27504
|
+
*/
|
|
27505
|
+
get CanDelete(): boolean;
|
|
27506
|
+
set CanDelete(value: boolean);
|
|
27507
|
+
/**
|
|
27508
|
+
* * Field Name: CanShare
|
|
27509
|
+
* * Display Name: Can Share
|
|
27510
|
+
* * SQL Data Type: bit
|
|
27511
|
+
* * Default Value: 0
|
|
27512
|
+
* * Description: Whether the user can share the artifact with other users
|
|
27513
|
+
*/
|
|
27514
|
+
get CanShare(): boolean;
|
|
27515
|
+
set CanShare(value: boolean);
|
|
27516
|
+
/**
|
|
27517
|
+
* * Field Name: SharedByUserID
|
|
27518
|
+
* * Display Name: Shared By User ID
|
|
27519
|
+
* * SQL Data Type: uniqueidentifier
|
|
27520
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
27521
|
+
* * Description: Foreign key to the User who shared this artifact (if shared)
|
|
27522
|
+
*/
|
|
27523
|
+
get SharedByUserID(): string | null;
|
|
27524
|
+
set SharedByUserID(value: string | null);
|
|
27525
|
+
/**
|
|
27526
|
+
* * Field Name: __mj_CreatedAt
|
|
27527
|
+
* * Display Name: Created At
|
|
27528
|
+
* * SQL Data Type: datetimeoffset
|
|
27529
|
+
* * Default Value: getutcdate()
|
|
27530
|
+
*/
|
|
27531
|
+
get __mj_CreatedAt(): Date;
|
|
27532
|
+
/**
|
|
27533
|
+
* * Field Name: __mj_UpdatedAt
|
|
27534
|
+
* * Display Name: Updated At
|
|
27535
|
+
* * SQL Data Type: datetimeoffset
|
|
27536
|
+
* * Default Value: getutcdate()
|
|
27537
|
+
*/
|
|
27538
|
+
get __mj_UpdatedAt(): Date;
|
|
27539
|
+
/**
|
|
27540
|
+
* * Field Name: Artifact
|
|
27541
|
+
* * Display Name: Artifact
|
|
27542
|
+
* * SQL Data Type: nvarchar(255)
|
|
27543
|
+
*/
|
|
27544
|
+
get Artifact(): string;
|
|
27545
|
+
/**
|
|
27546
|
+
* * Field Name: User
|
|
27547
|
+
* * Display Name: User
|
|
27548
|
+
* * SQL Data Type: nvarchar(100)
|
|
27549
|
+
*/
|
|
27550
|
+
get User(): string;
|
|
27551
|
+
/**
|
|
27552
|
+
* * Field Name: SharedByUser
|
|
27553
|
+
* * Display Name: Shared By User
|
|
27554
|
+
* * SQL Data Type: nvarchar(100)
|
|
27555
|
+
*/
|
|
27556
|
+
get SharedByUser(): string | null;
|
|
27557
|
+
}
|
|
27004
27558
|
/**
|
|
27005
27559
|
* MJ: Artifact Types - strongly typed entity sub-class
|
|
27006
27560
|
* * Schema: __mj
|