@memberjunction/core-entities 6.1.2 → 6.2.0-edge.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.
@@ -10897,10 +10897,10 @@ export declare const MJEntityDocumentSchema: z.ZodObject<{
10897
10897
  Name: z.ZodString;
10898
10898
  TypeID: z.ZodString;
10899
10899
  EntityID: z.ZodString;
10900
- VectorDatabaseID: z.ZodString;
10900
+ VectorDatabaseID: z.ZodNullable<z.ZodString>;
10901
10901
  Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Inactive">]>;
10902
10902
  TemplateID: z.ZodString;
10903
- AIModelID: z.ZodString;
10903
+ AIModelID: z.ZodNullable<z.ZodString>;
10904
10904
  PotentialMatchThreshold: z.ZodNumber;
10905
10905
  AbsoluteMatchThreshold: z.ZodNumber;
10906
10906
  __mj_CreatedAt: z.ZodDate;
@@ -10915,9 +10915,9 @@ export declare const MJEntityDocumentSchema: z.ZodObject<{
10915
10915
  AutomationLevel: z.ZodUnion<[z.ZodLiteral<"AutoMergeAboveAbsolute">, z.ZodLiteral<"LLMGated">, z.ZodLiteral<"ReviewAll">]>;
10916
10916
  Type: z.ZodString;
10917
10917
  Entity: z.ZodString;
10918
- VectorDatabase: z.ZodString;
10918
+ VectorDatabase: z.ZodNullable<z.ZodString>;
10919
10919
  Template: z.ZodString;
10920
- AIModel: z.ZodString;
10920
+ AIModel: z.ZodNullable<z.ZodString>;
10921
10921
  VectorIndex: z.ZodNullable<z.ZodString>;
10922
10922
  ReasoningPrompt: z.ZodNullable<z.ZodString>;
10923
10923
  ReasoningAgent: z.ZodNullable<z.ZodString>;
@@ -11130,6 +11130,8 @@ export declare const MJEntityFieldSchema: z.ZodObject<{
11130
11130
  IsComputed: z.ZodBoolean;
11131
11131
  EmbeddedRecord: z.ZodNullable<z.ZodAny>;
11132
11132
  Configuration: z.ZodNullable<z.ZodAny>;
11133
+ RelatedEntityFilter: z.ZodNullable<z.ZodString>;
11134
+ RelatedEntityOrderBy: z.ZodNullable<z.ZodString>;
11133
11135
  FieldCodeName: z.ZodNullable<z.ZodString>;
11134
11136
  Entity: z.ZodString;
11135
11137
  SchemaName: z.ZodString;
@@ -11216,6 +11218,8 @@ export declare const MJEntityFieldSchema: z.ZodObject<{
11216
11218
  AutoUpdateExtendedType?: boolean;
11217
11219
  IsComputed?: boolean;
11218
11220
  EmbeddedRecord?: any;
11221
+ RelatedEntityFilter?: string;
11222
+ RelatedEntityOrderBy?: string;
11219
11223
  FieldCodeName?: string;
11220
11224
  RelatedEntity?: string;
11221
11225
  RelatedEntitySchemaName?: string;
@@ -11296,6 +11300,8 @@ export declare const MJEntityFieldSchema: z.ZodObject<{
11296
11300
  AutoUpdateExtendedType?: boolean;
11297
11301
  IsComputed?: boolean;
11298
11302
  EmbeddedRecord?: any;
11303
+ RelatedEntityFilter?: string;
11304
+ RelatedEntityOrderBy?: string;
11299
11305
  FieldCodeName?: string;
11300
11306
  RelatedEntity?: string;
11301
11307
  RelatedEntitySchemaName?: string;
@@ -12133,305 +12139,459 @@ export declare const MJExternalDataSourceSchema: z.ZodObject<{
12133
12139
  }>;
12134
12140
  export type MJExternalDataSourceEntityType = z.infer<typeof MJExternalDataSourceSchema>;
12135
12141
  /**
12136
- * zod schema definition for the entity MJ: File Categories
12142
+ * zod schema definition for the entity MJ: Feature Value Caches
12137
12143
  */
12138
- export declare const MJFileCategorySchema: z.ZodObject<{
12144
+ export declare const MJFeatureValueCacheSchema: z.ZodObject<{
12139
12145
  ID: z.ZodString;
12140
- Name: z.ZodString;
12141
- ParentID: z.ZodNullable<z.ZodString>;
12142
- Description: z.ZodNullable<z.ZodString>;
12146
+ RecordProcessID: z.ZodNullable<z.ZodString>;
12147
+ PromptID: z.ZodString;
12148
+ PromptVersionHash: z.ZodString;
12149
+ ConstraintHash: z.ZodString;
12150
+ KeyHash: z.ZodString;
12151
+ KeyDisplay: z.ZodNullable<z.ZodString>;
12152
+ KeyJSON: z.ZodString;
12153
+ OutputsJSON: z.ZodString;
12154
+ Reasoning: z.ZodNullable<z.ZodString>;
12155
+ AIPromptRunID: z.ZodNullable<z.ZodString>;
12156
+ HitCount: z.ZodNumber;
12157
+ LastHitAt: z.ZodNullable<z.ZodDate>;
12158
+ ComputedAt: z.ZodDate;
12159
+ ExpiresAt: z.ZodNullable<z.ZodDate>;
12143
12160
  __mj_CreatedAt: z.ZodDate;
12144
12161
  __mj_UpdatedAt: z.ZodDate;
12145
- Parent: z.ZodNullable<z.ZodString>;
12146
- RootParentID: z.ZodNullable<z.ZodString>;
12147
- ParentIDDepth: z.ZodNullable<z.ZodNumber>;
12148
- ParentIDPath: z.ZodNullable<z.ZodString>;
12149
- ParentIDIsLeaf: z.ZodNullable<z.ZodBoolean>;
12150
- ParentIDChildCount: z.ZodNullable<z.ZodNumber>;
12162
+ RecordProcess: z.ZodNullable<z.ZodString>;
12163
+ Prompt: z.ZodString;
12151
12164
  }, "strip", z.ZodTypeAny, {
12152
12165
  ID?: string;
12153
- Name?: string;
12154
- Description?: string;
12155
12166
  __mj_CreatedAt?: Date;
12156
12167
  __mj_UpdatedAt?: Date;
12157
- ParentID?: string;
12158
- Parent?: string;
12159
- RootParentID?: string;
12160
- ParentIDDepth?: number;
12161
- ParentIDPath?: string;
12162
- ParentIDIsLeaf?: boolean;
12163
- ParentIDChildCount?: number;
12168
+ ExpiresAt?: Date;
12169
+ PromptID?: string;
12170
+ Prompt?: string;
12171
+ AIPromptRunID?: string;
12172
+ Reasoning?: string;
12173
+ RecordProcessID?: string;
12174
+ PromptVersionHash?: string;
12175
+ ConstraintHash?: string;
12176
+ KeyHash?: string;
12177
+ KeyDisplay?: string;
12178
+ KeyJSON?: string;
12179
+ OutputsJSON?: string;
12180
+ HitCount?: number;
12181
+ LastHitAt?: Date;
12182
+ ComputedAt?: Date;
12183
+ RecordProcess?: string;
12164
12184
  }, {
12165
12185
  ID?: string;
12166
- Name?: string;
12167
- Description?: string;
12168
12186
  __mj_CreatedAt?: Date;
12169
12187
  __mj_UpdatedAt?: Date;
12170
- ParentID?: string;
12171
- Parent?: string;
12172
- RootParentID?: string;
12173
- ParentIDDepth?: number;
12174
- ParentIDPath?: string;
12175
- ParentIDIsLeaf?: boolean;
12176
- ParentIDChildCount?: number;
12188
+ ExpiresAt?: Date;
12189
+ PromptID?: string;
12190
+ Prompt?: string;
12191
+ AIPromptRunID?: string;
12192
+ Reasoning?: string;
12193
+ RecordProcessID?: string;
12194
+ PromptVersionHash?: string;
12195
+ ConstraintHash?: string;
12196
+ KeyHash?: string;
12197
+ KeyDisplay?: string;
12198
+ KeyJSON?: string;
12199
+ OutputsJSON?: string;
12200
+ HitCount?: number;
12201
+ LastHitAt?: Date;
12202
+ ComputedAt?: Date;
12203
+ RecordProcess?: string;
12177
12204
  }>;
12178
- export type MJFileCategoryEntityType = z.infer<typeof MJFileCategorySchema>;
12205
+ export type MJFeatureValueCacheEntityType = z.infer<typeof MJFeatureValueCacheSchema>;
12179
12206
  /**
12180
- * zod schema definition for the entity MJ: File Entity Record Links
12207
+ * zod schema definition for the entity MJ: Feature Values
12181
12208
  */
12182
- export declare const MJFileEntityRecordLinkSchema: z.ZodObject<{
12209
+ export declare const MJFeatureValueSchema: z.ZodObject<{
12183
12210
  ID: z.ZodString;
12184
- FileID: z.ZodString;
12211
+ RecordProcessID: z.ZodString;
12185
12212
  EntityID: z.ZodString;
12186
12213
  RecordID: z.ZodString;
12214
+ FeatureName: z.ZodString;
12215
+ ValueText: z.ZodNullable<z.ZodString>;
12216
+ ValueNumeric: z.ZodNullable<z.ZodNumber>;
12217
+ ValueDate: z.ZodNullable<z.ZodDate>;
12218
+ ValueBoolean: z.ZodNullable<z.ZodBoolean>;
12219
+ ValueJSON: z.ZodNullable<z.ZodString>;
12220
+ Reasoning: z.ZodNullable<z.ZodString>;
12221
+ Confidence: z.ZodNullable<z.ZodNumber>;
12222
+ PromptID: z.ZodNullable<z.ZodString>;
12223
+ PromptVersionHash: z.ZodNullable<z.ZodString>;
12224
+ ConstraintHash: z.ZodNullable<z.ZodString>;
12225
+ ProcessRunID: z.ZodNullable<z.ZodString>;
12226
+ ProcessRunDetailID: z.ZodNullable<z.ZodString>;
12227
+ AIPromptRunID: z.ZodNullable<z.ZodString>;
12228
+ FeatureValueCacheID: z.ZodNullable<z.ZodString>;
12229
+ ComputedAt: z.ZodDate;
12187
12230
  __mj_CreatedAt: z.ZodDate;
12188
12231
  __mj_UpdatedAt: z.ZodDate;
12189
- File: z.ZodString;
12232
+ RecordProcess: z.ZodString;
12190
12233
  Entity: z.ZodString;
12234
+ Prompt: z.ZodNullable<z.ZodString>;
12235
+ ProcessRunDetail: z.ZodNullable<z.ZodString>;
12236
+ FeatureValueCache: z.ZodNullable<z.ZodString>;
12191
12237
  }, "strip", z.ZodTypeAny, {
12192
12238
  ID?: string;
12193
12239
  __mj_CreatedAt?: Date;
12194
12240
  __mj_UpdatedAt?: Date;
12195
- FileID?: string;
12196
- File?: string;
12241
+ PromptID?: string;
12242
+ Prompt?: string;
12197
12243
  EntityID?: string;
12198
12244
  RecordID?: string;
12199
12245
  Entity?: string;
12246
+ AIPromptRunID?: string;
12247
+ Reasoning?: string;
12248
+ RecordProcessID?: string;
12249
+ PromptVersionHash?: string;
12250
+ ConstraintHash?: string;
12251
+ ComputedAt?: Date;
12252
+ RecordProcess?: string;
12253
+ FeatureName?: string;
12254
+ ValueText?: string;
12255
+ ValueNumeric?: number;
12256
+ ValueDate?: Date;
12257
+ ValueBoolean?: boolean;
12258
+ ValueJSON?: string;
12259
+ Confidence?: number;
12260
+ ProcessRunID?: string;
12261
+ ProcessRunDetailID?: string;
12262
+ FeatureValueCacheID?: string;
12263
+ ProcessRunDetail?: string;
12264
+ FeatureValueCache?: string;
12200
12265
  }, {
12201
12266
  ID?: string;
12202
12267
  __mj_CreatedAt?: Date;
12203
12268
  __mj_UpdatedAt?: Date;
12204
- FileID?: string;
12205
- File?: string;
12269
+ PromptID?: string;
12270
+ Prompt?: string;
12206
12271
  EntityID?: string;
12207
12272
  RecordID?: string;
12208
12273
  Entity?: string;
12274
+ AIPromptRunID?: string;
12275
+ Reasoning?: string;
12276
+ RecordProcessID?: string;
12277
+ PromptVersionHash?: string;
12278
+ ConstraintHash?: string;
12279
+ ComputedAt?: Date;
12280
+ RecordProcess?: string;
12281
+ FeatureName?: string;
12282
+ ValueText?: string;
12283
+ ValueNumeric?: number;
12284
+ ValueDate?: Date;
12285
+ ValueBoolean?: boolean;
12286
+ ValueJSON?: string;
12287
+ Confidence?: number;
12288
+ ProcessRunID?: string;
12289
+ ProcessRunDetailID?: string;
12290
+ FeatureValueCacheID?: string;
12291
+ ProcessRunDetail?: string;
12292
+ FeatureValueCache?: string;
12209
12293
  }>;
12210
- export type MJFileEntityRecordLinkEntityType = z.infer<typeof MJFileEntityRecordLinkSchema>;
12211
- /**
12212
- * zod schema definition for the entity MJ: File Storage Account Permissions
12213
- */
12214
- export declare const MJFileStorageAccountPermissionSchema: z.ZodObject<{
12215
- ID: z.ZodString;
12216
- FileStorageAccountID: z.ZodString;
12217
- Type: z.ZodUnion<[z.ZodLiteral<"Everyone">, z.ZodLiteral<"Role">, z.ZodLiteral<"User">]>;
12218
- UserID: z.ZodNullable<z.ZodString>;
12219
- RoleID: z.ZodNullable<z.ZodString>;
12220
- CanRead: z.ZodBoolean;
12221
- CanWrite: z.ZodBoolean;
12222
- __mj_CreatedAt: z.ZodDate;
12223
- __mj_UpdatedAt: z.ZodDate;
12224
- FileStorageAccount: z.ZodString;
12225
- User: z.ZodNullable<z.ZodString>;
12226
- Role: z.ZodNullable<z.ZodString>;
12227
- }, "strip", z.ZodTypeAny, {
12228
- ID?: string;
12229
- __mj_CreatedAt?: Date;
12230
- __mj_UpdatedAt?: Date;
12231
- Type?: "User" | "Role" | "Everyone";
12232
- UserID?: string;
12233
- User?: string;
12234
- RoleID?: string;
12235
- Role?: string;
12236
- CanRead?: boolean;
12237
- FileStorageAccountID?: string;
12238
- CanWrite?: boolean;
12239
- FileStorageAccount?: string;
12240
- }, {
12241
- ID?: string;
12242
- __mj_CreatedAt?: Date;
12243
- __mj_UpdatedAt?: Date;
12244
- Type?: "User" | "Role" | "Everyone";
12245
- UserID?: string;
12246
- User?: string;
12247
- RoleID?: string;
12248
- Role?: string;
12249
- CanRead?: boolean;
12250
- FileStorageAccountID?: string;
12251
- CanWrite?: boolean;
12252
- FileStorageAccount?: string;
12253
- }>;
12254
- export type MJFileStorageAccountPermissionEntityType = z.infer<typeof MJFileStorageAccountPermissionSchema>;
12255
- /**
12256
- * zod schema definition for the entity MJ: File Storage Accounts
12257
- */
12258
- export declare const MJFileStorageAccountSchema: z.ZodObject<{
12259
- ID: z.ZodString;
12260
- Name: z.ZodString;
12261
- Description: z.ZodNullable<z.ZodString>;
12262
- ProviderID: z.ZodString;
12263
- CredentialID: z.ZodString;
12264
- __mj_CreatedAt: z.ZodDate;
12265
- __mj_UpdatedAt: z.ZodDate;
12266
- IncludeInGlobalSearch: z.ZodBoolean;
12267
- Provider: z.ZodString;
12268
- Credential: z.ZodString;
12269
- }, "strip", z.ZodTypeAny, {
12270
- ID?: string;
12271
- Name?: string;
12272
- Description?: string;
12273
- __mj_CreatedAt?: Date;
12274
- __mj_UpdatedAt?: Date;
12275
- CredentialID?: string;
12276
- Credential?: string;
12277
- ProviderID?: string;
12278
- Provider?: string;
12279
- IncludeInGlobalSearch?: boolean;
12280
- }, {
12281
- ID?: string;
12282
- Name?: string;
12283
- Description?: string;
12284
- __mj_CreatedAt?: Date;
12285
- __mj_UpdatedAt?: Date;
12286
- CredentialID?: string;
12287
- Credential?: string;
12288
- ProviderID?: string;
12289
- Provider?: string;
12290
- IncludeInGlobalSearch?: boolean;
12291
- }>;
12292
- export type MJFileStorageAccountEntityType = z.infer<typeof MJFileStorageAccountSchema>;
12293
- /**
12294
- * zod schema definition for the entity MJ: File Storage Providers
12295
- */
12296
- export declare const MJFileStorageProviderSchema: z.ZodObject<{
12297
- ID: z.ZodString;
12298
- Name: z.ZodString;
12299
- Description: z.ZodNullable<z.ZodString>;
12300
- ServerDriverKey: z.ZodString;
12301
- ClientDriverKey: z.ZodString;
12302
- Priority: z.ZodNumber;
12303
- IsActive: z.ZodBoolean;
12304
- __mj_CreatedAt: z.ZodDate;
12305
- __mj_UpdatedAt: z.ZodDate;
12306
- SupportsSearch: z.ZodBoolean;
12307
- Configuration: z.ZodNullable<z.ZodAny>;
12308
- RequiresOAuth: z.ZodBoolean;
12309
- }, "strip", z.ZodTypeAny, {
12310
- ID?: string;
12311
- Name?: string;
12312
- Description?: string;
12313
- IsActive?: boolean;
12314
- __mj_CreatedAt?: Date;
12315
- __mj_UpdatedAt?: Date;
12316
- Priority?: number;
12317
- Configuration?: any;
12318
- ServerDriverKey?: string;
12319
- ClientDriverKey?: string;
12320
- SupportsSearch?: boolean;
12321
- RequiresOAuth?: boolean;
12322
- }, {
12323
- ID?: string;
12324
- Name?: string;
12325
- Description?: string;
12326
- IsActive?: boolean;
12327
- __mj_CreatedAt?: Date;
12328
- __mj_UpdatedAt?: Date;
12329
- Priority?: number;
12330
- Configuration?: any;
12331
- ServerDriverKey?: string;
12332
- ClientDriverKey?: string;
12333
- SupportsSearch?: boolean;
12334
- RequiresOAuth?: boolean;
12335
- }>;
12336
- export type MJFileStorageProviderEntityType = z.infer<typeof MJFileStorageProviderSchema>;
12337
- /**
12338
- * zod schema definition for the entity MJ: Files
12339
- */
12340
- export declare const MJFileSchema: z.ZodObject<{
12341
- ID: z.ZodString;
12342
- Name: z.ZodString;
12343
- Description: z.ZodNullable<z.ZodString>;
12344
- CategoryID: z.ZodNullable<z.ZodString>;
12345
- ProviderID: z.ZodString;
12346
- ContentType: z.ZodNullable<z.ZodString>;
12347
- ProviderKey: z.ZodNullable<z.ZodString>;
12348
- Status: z.ZodString;
12349
- __mj_CreatedAt: z.ZodDate;
12350
- __mj_UpdatedAt: z.ZodDate;
12351
- Category: z.ZodNullable<z.ZodString>;
12352
- Provider: z.ZodString;
12353
- }, "strip", z.ZodTypeAny, {
12354
- ID?: string;
12355
- Name?: string;
12356
- Description?: string;
12357
- __mj_CreatedAt?: Date;
12358
- __mj_UpdatedAt?: Date;
12359
- Status?: string;
12360
- ProviderID?: string;
12361
- Provider?: string;
12362
- CategoryID?: string;
12363
- Category?: string;
12364
- ContentType?: string;
12365
- ProviderKey?: string;
12366
- }, {
12367
- ID?: string;
12368
- Name?: string;
12369
- Description?: string;
12370
- __mj_CreatedAt?: Date;
12371
- __mj_UpdatedAt?: Date;
12372
- Status?: string;
12373
- ProviderID?: string;
12374
- Provider?: string;
12375
- CategoryID?: string;
12376
- Category?: string;
12377
- ContentType?: string;
12378
- ProviderKey?: string;
12379
- }>;
12380
- export type MJFileEntityType = z.infer<typeof MJFileSchema>;
12381
- /**
12382
- * zod schema definition for the entity MJ: Form Chrome Rules
12383
- */
12384
- export declare const MJFormChromeRuleSchema: z.ZodObject<{
12385
- ID: z.ZodString;
12386
- EntityID: z.ZodString;
12387
- TargetKind: z.ZodUnion<[z.ZodLiteral<"Contribution">, z.ZodLiteral<"Relationship">]>;
12388
- RelatedEntityID: z.ZodNullable<z.ZodString>;
12389
- ContributionKey: z.ZodNullable<z.ZodString>;
12390
- Inclusion: z.ZodUnion<[z.ZodLiteral<"More">, z.ZodLiteral<"None">, z.ZodLiteral<"Primary">]>;
12391
- JoinFields: z.ZodNullable<z.ZodString>;
12392
- Sequence: z.ZodNumber;
12393
- Title: z.ZodNullable<z.ZodString>;
12394
- __mj_CreatedAt: z.ZodDate;
12395
- __mj_UpdatedAt: z.ZodDate;
12396
- Entity: z.ZodString;
12397
- RelatedEntity: z.ZodNullable<z.ZodString>;
12398
- }, "strip", z.ZodTypeAny, {
12399
- ID?: string;
12400
- __mj_CreatedAt?: Date;
12401
- __mj_UpdatedAt?: Date;
12402
- Sequence?: number;
12403
- EntityID?: string;
12404
- Entity?: string;
12405
- Title?: string;
12406
- RelatedEntityID?: string;
12407
- RelatedEntity?: string;
12408
- TargetKind?: "Contribution" | "Relationship";
12409
- ContributionKey?: string;
12410
- Inclusion?: "None" | "More" | "Primary";
12411
- JoinFields?: string;
12412
- }, {
12413
- ID?: string;
12414
- __mj_CreatedAt?: Date;
12415
- __mj_UpdatedAt?: Date;
12416
- Sequence?: number;
12417
- EntityID?: string;
12418
- Entity?: string;
12419
- Title?: string;
12420
- RelatedEntityID?: string;
12421
- RelatedEntity?: string;
12422
- TargetKind?: "Contribution" | "Relationship";
12423
- ContributionKey?: string;
12424
- Inclusion?: "None" | "More" | "Primary";
12425
- JoinFields?: string;
12426
- }>;
12427
- export type MJFormChromeRuleEntityType = z.infer<typeof MJFormChromeRuleSchema>;
12294
+ export type MJFeatureValueEntityType = z.infer<typeof MJFeatureValueSchema>;
12428
12295
  /**
12429
- * zod schema definition for the entity MJ: Generated Code Categories
12296
+ * zod schema definition for the entity MJ: File Categories
12430
12297
  */
12431
- export declare const MJGeneratedCodeCategorySchema: z.ZodObject<{
12298
+ export declare const MJFileCategorySchema: z.ZodObject<{
12432
12299
  ID: z.ZodString;
12433
12300
  Name: z.ZodString;
12434
- Description: z.ZodNullable<z.ZodString>;
12301
+ ParentID: z.ZodNullable<z.ZodString>;
12302
+ Description: z.ZodNullable<z.ZodString>;
12303
+ __mj_CreatedAt: z.ZodDate;
12304
+ __mj_UpdatedAt: z.ZodDate;
12305
+ Parent: z.ZodNullable<z.ZodString>;
12306
+ RootParentID: z.ZodNullable<z.ZodString>;
12307
+ ParentIDDepth: z.ZodNullable<z.ZodNumber>;
12308
+ ParentIDPath: z.ZodNullable<z.ZodString>;
12309
+ ParentIDIsLeaf: z.ZodNullable<z.ZodBoolean>;
12310
+ ParentIDChildCount: z.ZodNullable<z.ZodNumber>;
12311
+ }, "strip", z.ZodTypeAny, {
12312
+ ID?: string;
12313
+ Name?: string;
12314
+ Description?: string;
12315
+ __mj_CreatedAt?: Date;
12316
+ __mj_UpdatedAt?: Date;
12317
+ ParentID?: string;
12318
+ Parent?: string;
12319
+ RootParentID?: string;
12320
+ ParentIDDepth?: number;
12321
+ ParentIDPath?: string;
12322
+ ParentIDIsLeaf?: boolean;
12323
+ ParentIDChildCount?: number;
12324
+ }, {
12325
+ ID?: string;
12326
+ Name?: string;
12327
+ Description?: string;
12328
+ __mj_CreatedAt?: Date;
12329
+ __mj_UpdatedAt?: Date;
12330
+ ParentID?: string;
12331
+ Parent?: string;
12332
+ RootParentID?: string;
12333
+ ParentIDDepth?: number;
12334
+ ParentIDPath?: string;
12335
+ ParentIDIsLeaf?: boolean;
12336
+ ParentIDChildCount?: number;
12337
+ }>;
12338
+ export type MJFileCategoryEntityType = z.infer<typeof MJFileCategorySchema>;
12339
+ /**
12340
+ * zod schema definition for the entity MJ: File Entity Record Links
12341
+ */
12342
+ export declare const MJFileEntityRecordLinkSchema: z.ZodObject<{
12343
+ ID: z.ZodString;
12344
+ FileID: z.ZodString;
12345
+ EntityID: z.ZodString;
12346
+ RecordID: z.ZodString;
12347
+ __mj_CreatedAt: z.ZodDate;
12348
+ __mj_UpdatedAt: z.ZodDate;
12349
+ File: z.ZodString;
12350
+ Entity: z.ZodString;
12351
+ }, "strip", z.ZodTypeAny, {
12352
+ ID?: string;
12353
+ __mj_CreatedAt?: Date;
12354
+ __mj_UpdatedAt?: Date;
12355
+ FileID?: string;
12356
+ File?: string;
12357
+ EntityID?: string;
12358
+ RecordID?: string;
12359
+ Entity?: string;
12360
+ }, {
12361
+ ID?: string;
12362
+ __mj_CreatedAt?: Date;
12363
+ __mj_UpdatedAt?: Date;
12364
+ FileID?: string;
12365
+ File?: string;
12366
+ EntityID?: string;
12367
+ RecordID?: string;
12368
+ Entity?: string;
12369
+ }>;
12370
+ export type MJFileEntityRecordLinkEntityType = z.infer<typeof MJFileEntityRecordLinkSchema>;
12371
+ /**
12372
+ * zod schema definition for the entity MJ: File Storage Account Permissions
12373
+ */
12374
+ export declare const MJFileStorageAccountPermissionSchema: z.ZodObject<{
12375
+ ID: z.ZodString;
12376
+ FileStorageAccountID: z.ZodString;
12377
+ Type: z.ZodUnion<[z.ZodLiteral<"Everyone">, z.ZodLiteral<"Role">, z.ZodLiteral<"User">]>;
12378
+ UserID: z.ZodNullable<z.ZodString>;
12379
+ RoleID: z.ZodNullable<z.ZodString>;
12380
+ CanRead: z.ZodBoolean;
12381
+ CanWrite: z.ZodBoolean;
12382
+ __mj_CreatedAt: z.ZodDate;
12383
+ __mj_UpdatedAt: z.ZodDate;
12384
+ FileStorageAccount: z.ZodString;
12385
+ User: z.ZodNullable<z.ZodString>;
12386
+ Role: z.ZodNullable<z.ZodString>;
12387
+ }, "strip", z.ZodTypeAny, {
12388
+ ID?: string;
12389
+ __mj_CreatedAt?: Date;
12390
+ __mj_UpdatedAt?: Date;
12391
+ Type?: "User" | "Role" | "Everyone";
12392
+ UserID?: string;
12393
+ User?: string;
12394
+ RoleID?: string;
12395
+ Role?: string;
12396
+ CanRead?: boolean;
12397
+ FileStorageAccountID?: string;
12398
+ CanWrite?: boolean;
12399
+ FileStorageAccount?: string;
12400
+ }, {
12401
+ ID?: string;
12402
+ __mj_CreatedAt?: Date;
12403
+ __mj_UpdatedAt?: Date;
12404
+ Type?: "User" | "Role" | "Everyone";
12405
+ UserID?: string;
12406
+ User?: string;
12407
+ RoleID?: string;
12408
+ Role?: string;
12409
+ CanRead?: boolean;
12410
+ FileStorageAccountID?: string;
12411
+ CanWrite?: boolean;
12412
+ FileStorageAccount?: string;
12413
+ }>;
12414
+ export type MJFileStorageAccountPermissionEntityType = z.infer<typeof MJFileStorageAccountPermissionSchema>;
12415
+ /**
12416
+ * zod schema definition for the entity MJ: File Storage Accounts
12417
+ */
12418
+ export declare const MJFileStorageAccountSchema: z.ZodObject<{
12419
+ ID: z.ZodString;
12420
+ Name: z.ZodString;
12421
+ Description: z.ZodNullable<z.ZodString>;
12422
+ ProviderID: z.ZodString;
12423
+ CredentialID: z.ZodString;
12424
+ __mj_CreatedAt: z.ZodDate;
12425
+ __mj_UpdatedAt: z.ZodDate;
12426
+ IncludeInGlobalSearch: z.ZodBoolean;
12427
+ Provider: z.ZodString;
12428
+ Credential: z.ZodString;
12429
+ }, "strip", z.ZodTypeAny, {
12430
+ ID?: string;
12431
+ Name?: string;
12432
+ Description?: string;
12433
+ __mj_CreatedAt?: Date;
12434
+ __mj_UpdatedAt?: Date;
12435
+ CredentialID?: string;
12436
+ Credential?: string;
12437
+ ProviderID?: string;
12438
+ Provider?: string;
12439
+ IncludeInGlobalSearch?: boolean;
12440
+ }, {
12441
+ ID?: string;
12442
+ Name?: string;
12443
+ Description?: string;
12444
+ __mj_CreatedAt?: Date;
12445
+ __mj_UpdatedAt?: Date;
12446
+ CredentialID?: string;
12447
+ Credential?: string;
12448
+ ProviderID?: string;
12449
+ Provider?: string;
12450
+ IncludeInGlobalSearch?: boolean;
12451
+ }>;
12452
+ export type MJFileStorageAccountEntityType = z.infer<typeof MJFileStorageAccountSchema>;
12453
+ /**
12454
+ * zod schema definition for the entity MJ: File Storage Providers
12455
+ */
12456
+ export declare const MJFileStorageProviderSchema: z.ZodObject<{
12457
+ ID: z.ZodString;
12458
+ Name: z.ZodString;
12459
+ Description: z.ZodNullable<z.ZodString>;
12460
+ ServerDriverKey: z.ZodString;
12461
+ ClientDriverKey: z.ZodString;
12462
+ Priority: z.ZodNumber;
12463
+ IsActive: z.ZodBoolean;
12464
+ __mj_CreatedAt: z.ZodDate;
12465
+ __mj_UpdatedAt: z.ZodDate;
12466
+ SupportsSearch: z.ZodBoolean;
12467
+ Configuration: z.ZodNullable<z.ZodAny>;
12468
+ RequiresOAuth: z.ZodBoolean;
12469
+ }, "strip", z.ZodTypeAny, {
12470
+ ID?: string;
12471
+ Name?: string;
12472
+ Description?: string;
12473
+ IsActive?: boolean;
12474
+ __mj_CreatedAt?: Date;
12475
+ __mj_UpdatedAt?: Date;
12476
+ Priority?: number;
12477
+ Configuration?: any;
12478
+ ServerDriverKey?: string;
12479
+ ClientDriverKey?: string;
12480
+ SupportsSearch?: boolean;
12481
+ RequiresOAuth?: boolean;
12482
+ }, {
12483
+ ID?: string;
12484
+ Name?: string;
12485
+ Description?: string;
12486
+ IsActive?: boolean;
12487
+ __mj_CreatedAt?: Date;
12488
+ __mj_UpdatedAt?: Date;
12489
+ Priority?: number;
12490
+ Configuration?: any;
12491
+ ServerDriverKey?: string;
12492
+ ClientDriverKey?: string;
12493
+ SupportsSearch?: boolean;
12494
+ RequiresOAuth?: boolean;
12495
+ }>;
12496
+ export type MJFileStorageProviderEntityType = z.infer<typeof MJFileStorageProviderSchema>;
12497
+ /**
12498
+ * zod schema definition for the entity MJ: Files
12499
+ */
12500
+ export declare const MJFileSchema: z.ZodObject<{
12501
+ ID: z.ZodString;
12502
+ Name: z.ZodString;
12503
+ Description: z.ZodNullable<z.ZodString>;
12504
+ CategoryID: z.ZodNullable<z.ZodString>;
12505
+ ProviderID: z.ZodString;
12506
+ ContentType: z.ZodNullable<z.ZodString>;
12507
+ ProviderKey: z.ZodNullable<z.ZodString>;
12508
+ Status: z.ZodString;
12509
+ __mj_CreatedAt: z.ZodDate;
12510
+ __mj_UpdatedAt: z.ZodDate;
12511
+ Category: z.ZodNullable<z.ZodString>;
12512
+ Provider: z.ZodString;
12513
+ }, "strip", z.ZodTypeAny, {
12514
+ ID?: string;
12515
+ Name?: string;
12516
+ Description?: string;
12517
+ __mj_CreatedAt?: Date;
12518
+ __mj_UpdatedAt?: Date;
12519
+ Status?: string;
12520
+ ProviderID?: string;
12521
+ Provider?: string;
12522
+ CategoryID?: string;
12523
+ Category?: string;
12524
+ ContentType?: string;
12525
+ ProviderKey?: string;
12526
+ }, {
12527
+ ID?: string;
12528
+ Name?: string;
12529
+ Description?: string;
12530
+ __mj_CreatedAt?: Date;
12531
+ __mj_UpdatedAt?: Date;
12532
+ Status?: string;
12533
+ ProviderID?: string;
12534
+ Provider?: string;
12535
+ CategoryID?: string;
12536
+ Category?: string;
12537
+ ContentType?: string;
12538
+ ProviderKey?: string;
12539
+ }>;
12540
+ export type MJFileEntityType = z.infer<typeof MJFileSchema>;
12541
+ /**
12542
+ * zod schema definition for the entity MJ: Form Chrome Rules
12543
+ */
12544
+ export declare const MJFormChromeRuleSchema: z.ZodObject<{
12545
+ ID: z.ZodString;
12546
+ EntityID: z.ZodString;
12547
+ TargetKind: z.ZodUnion<[z.ZodLiteral<"Contribution">, z.ZodLiteral<"Relationship">]>;
12548
+ RelatedEntityID: z.ZodNullable<z.ZodString>;
12549
+ ContributionKey: z.ZodNullable<z.ZodString>;
12550
+ Inclusion: z.ZodUnion<[z.ZodLiteral<"More">, z.ZodLiteral<"None">, z.ZodLiteral<"Primary">]>;
12551
+ JoinFields: z.ZodNullable<z.ZodString>;
12552
+ Sequence: z.ZodNumber;
12553
+ Title: z.ZodNullable<z.ZodString>;
12554
+ __mj_CreatedAt: z.ZodDate;
12555
+ __mj_UpdatedAt: z.ZodDate;
12556
+ Entity: z.ZodString;
12557
+ RelatedEntity: z.ZodNullable<z.ZodString>;
12558
+ }, "strip", z.ZodTypeAny, {
12559
+ ID?: string;
12560
+ __mj_CreatedAt?: Date;
12561
+ __mj_UpdatedAt?: Date;
12562
+ Sequence?: number;
12563
+ EntityID?: string;
12564
+ Entity?: string;
12565
+ Title?: string;
12566
+ RelatedEntityID?: string;
12567
+ RelatedEntity?: string;
12568
+ TargetKind?: "Contribution" | "Relationship";
12569
+ ContributionKey?: string;
12570
+ Inclusion?: "None" | "More" | "Primary";
12571
+ JoinFields?: string;
12572
+ }, {
12573
+ ID?: string;
12574
+ __mj_CreatedAt?: Date;
12575
+ __mj_UpdatedAt?: Date;
12576
+ Sequence?: number;
12577
+ EntityID?: string;
12578
+ Entity?: string;
12579
+ Title?: string;
12580
+ RelatedEntityID?: string;
12581
+ RelatedEntity?: string;
12582
+ TargetKind?: "Contribution" | "Relationship";
12583
+ ContributionKey?: string;
12584
+ Inclusion?: "None" | "More" | "Primary";
12585
+ JoinFields?: string;
12586
+ }>;
12587
+ export type MJFormChromeRuleEntityType = z.infer<typeof MJFormChromeRuleSchema>;
12588
+ /**
12589
+ * zod schema definition for the entity MJ: Generated Code Categories
12590
+ */
12591
+ export declare const MJGeneratedCodeCategorySchema: z.ZodObject<{
12592
+ ID: z.ZodString;
12593
+ Name: z.ZodString;
12594
+ Description: z.ZodNullable<z.ZodString>;
12435
12595
  ParentID: z.ZodNullable<z.ZodString>;
12436
12596
  __mj_CreatedAt: z.ZodDate;
12437
12597
  __mj_UpdatedAt: z.ZodDate;
@@ -13879,13 +14039,13 @@ export declare const MJMLModelScoringBindingSchema: z.ZodObject<{
13879
14039
  TargetEntityID?: string;
13880
14040
  TargetEntity?: string;
13881
14041
  Mode?: "OnDemand" | "Scheduled" | "Materialized";
13882
- MLModelID?: string;
13883
14042
  RecordProcessID?: string;
14043
+ RecordProcess?: string;
14044
+ MLModelID?: string;
13884
14045
  TargetColumn?: string;
13885
14046
  MaterializedResultID?: string;
13886
14047
  LastScoredAt?: Date;
13887
14048
  LastRowCount?: number;
13888
- RecordProcess?: string;
13889
14049
  }, {
13890
14050
  ID?: string;
13891
14051
  __mj_CreatedAt?: Date;
@@ -13893,13 +14053,13 @@ export declare const MJMLModelScoringBindingSchema: z.ZodObject<{
13893
14053
  TargetEntityID?: string;
13894
14054
  TargetEntity?: string;
13895
14055
  Mode?: "OnDemand" | "Scheduled" | "Materialized";
13896
- MLModelID?: string;
13897
14056
  RecordProcessID?: string;
14057
+ RecordProcess?: string;
14058
+ MLModelID?: string;
13898
14059
  TargetColumn?: string;
13899
14060
  MaterializedResultID?: string;
13900
14061
  LastScoredAt?: Date;
13901
14062
  LastRowCount?: number;
13902
- RecordProcess?: string;
13903
14063
  }>;
13904
14064
  export type MJMLModelScoringBindingEntityType = z.infer<typeof MJMLModelScoringBindingSchema>;
13905
14065
  /**
@@ -14990,8 +15150,8 @@ export declare const MJProcessRunDetailSchema: z.ZodObject<{
14990
15150
  Entity?: string;
14991
15151
  AIAgentRunID?: string;
14992
15152
  AIAgentRun?: string;
14993
- DurationMs?: number;
14994
15153
  ProcessRunID?: string;
15154
+ DurationMs?: number;
14995
15155
  AttemptCount?: number;
14996
15156
  ResultPayload?: string;
14997
15157
  ActionExecutionLogID?: string;
@@ -15009,8 +15169,8 @@ export declare const MJProcessRunDetailSchema: z.ZodObject<{
15009
15169
  Entity?: string;
15010
15170
  AIAgentRunID?: string;
15011
15171
  AIAgentRun?: string;
15012
- DurationMs?: number;
15013
15172
  ProcessRunID?: string;
15173
+ DurationMs?: number;
15014
15174
  AttemptCount?: number;
15015
15175
  ResultPayload?: string;
15016
15176
  ActionExecutionLogID?: string;
@@ -15251,6 +15411,7 @@ export declare const MJQuerySchema: z.ZodObject<{
15251
15411
  Reusable: z.ZodBoolean;
15252
15412
  ExternalDataSourceID: z.ZodNullable<z.ZodString>;
15253
15413
  IsMaterialized: z.ZodBoolean;
15414
+ Configuration: z.ZodNullable<z.ZodAny>;
15254
15415
  Category: z.ZodNullable<z.ZodString>;
15255
15416
  EmbeddingModel: z.ZodNullable<z.ZodString>;
15256
15417
  SQLDialect: z.ZodString;
@@ -15262,6 +15423,7 @@ export declare const MJQuerySchema: z.ZodObject<{
15262
15423
  __mj_CreatedAt?: Date;
15263
15424
  __mj_UpdatedAt?: Date;
15264
15425
  Status?: "Pending" | "Approved" | "Expired" | "Rejected";
15426
+ Configuration?: any;
15265
15427
  EmbeddingVector?: string;
15266
15428
  EmbeddingModelID?: string;
15267
15429
  EmbeddingModel?: string;
@@ -15293,6 +15455,7 @@ export declare const MJQuerySchema: z.ZodObject<{
15293
15455
  __mj_CreatedAt?: Date;
15294
15456
  __mj_UpdatedAt?: Date;
15295
15457
  Status?: "Pending" | "Approved" | "Expired" | "Rejected";
15458
+ Configuration?: any;
15296
15459
  EmbeddingVector?: string;
15297
15460
  EmbeddingModelID?: string;
15298
15461
  EmbeddingModel?: string;
@@ -19298,7 +19461,7 @@ export declare const MJTestSchema: z.ZodObject<{
19298
19461
  Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Disabled">, z.ZodLiteral<"Pending">]>;
19299
19462
  InputDefinition: z.ZodNullable<z.ZodString>;
19300
19463
  ExpectedOutcomes: z.ZodNullable<z.ZodString>;
19301
- Configuration: z.ZodNullable<z.ZodString>;
19464
+ Configuration: z.ZodNullable<z.ZodAny>;
19302
19465
  Tags: z.ZodNullable<z.ZodString>;
19303
19466
  Priority: z.ZodNullable<z.ZodNumber>;
19304
19467
  EstimatedDurationSeconds: z.ZodNullable<z.ZodNumber>;
@@ -19318,7 +19481,7 @@ export declare const MJTestSchema: z.ZodObject<{
19318
19481
  Status?: "Active" | "Pending" | "Disabled";
19319
19482
  Priority?: number;
19320
19483
  Type?: string;
19321
- Configuration?: string;
19484
+ Configuration?: any;
19322
19485
  TypeID?: string;
19323
19486
  MaxExecutionTimeMS?: number;
19324
19487
  Tags?: string;
@@ -19337,7 +19500,7 @@ export declare const MJTestSchema: z.ZodObject<{
19337
19500
  Status?: "Active" | "Pending" | "Disabled";
19338
19501
  Priority?: number;
19339
19502
  Type?: string;
19340
- Configuration?: string;
19503
+ Configuration?: any;
19341
19504
  TypeID?: string;
19342
19505
  MaxExecutionTimeMS?: number;
19343
19506
  Tags?: string;
@@ -20602,6 +20765,62 @@ export declare const MJViewTypeSchema: z.ZodObject<{
20602
20765
  SupportsConfiguration?: boolean;
20603
20766
  }>;
20604
20767
  export type MJViewTypeEntityType = z.infer<typeof MJViewTypeSchema>;
20768
+ /**
20769
+ * zod schema definition for the entity MJ: Web Search Providers
20770
+ */
20771
+ export declare const MJWebSearchProviderSchema: z.ZodObject<{
20772
+ ID: z.ZodString;
20773
+ Name: z.ZodString;
20774
+ Description: z.ZodNullable<z.ZodString>;
20775
+ DriverClass: z.ZodString;
20776
+ Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Terminated">]>;
20777
+ Priority: z.ZodNumber;
20778
+ CredentialID: z.ZodNullable<z.ZodString>;
20779
+ ProviderConfig: z.ZodNullable<z.ZodString>;
20780
+ MaxResultsOverride: z.ZodNullable<z.ZodNumber>;
20781
+ AllowResultCaching: z.ZodBoolean;
20782
+ DisplayName: z.ZodNullable<z.ZodString>;
20783
+ Icon: z.ZodNullable<z.ZodString>;
20784
+ Comments: z.ZodNullable<z.ZodString>;
20785
+ __mj_CreatedAt: z.ZodDate;
20786
+ __mj_UpdatedAt: z.ZodDate;
20787
+ Credential: z.ZodNullable<z.ZodString>;
20788
+ }, "strip", z.ZodTypeAny, {
20789
+ ID?: string;
20790
+ Name?: string;
20791
+ Description?: string;
20792
+ __mj_CreatedAt?: Date;
20793
+ __mj_UpdatedAt?: Date;
20794
+ Status?: "Active" | "Pending" | "Terminated";
20795
+ Priority?: number;
20796
+ DisplayName?: string;
20797
+ CredentialID?: string;
20798
+ Credential?: string;
20799
+ Comments?: string;
20800
+ DriverClass?: string;
20801
+ Icon?: string;
20802
+ MaxResultsOverride?: number;
20803
+ ProviderConfig?: string;
20804
+ AllowResultCaching?: boolean;
20805
+ }, {
20806
+ ID?: string;
20807
+ Name?: string;
20808
+ Description?: string;
20809
+ __mj_CreatedAt?: Date;
20810
+ __mj_UpdatedAt?: Date;
20811
+ Status?: "Active" | "Pending" | "Terminated";
20812
+ Priority?: number;
20813
+ DisplayName?: string;
20814
+ CredentialID?: string;
20815
+ Credential?: string;
20816
+ Comments?: string;
20817
+ DriverClass?: string;
20818
+ Icon?: string;
20819
+ MaxResultsOverride?: number;
20820
+ ProviderConfig?: string;
20821
+ AllowResultCaching?: boolean;
20822
+ }>;
20823
+ export type MJWebSearchProviderEntityType = z.infer<typeof MJWebSearchProviderSchema>;
20605
20824
  /**
20606
20825
  * zod schema definition for the entity MJ: Workspace Items
20607
20826
  */
@@ -24777,6 +24996,7 @@ export declare class MJAIAgentRunStepEntity extends BaseEntity<MJAIAgentRunStepE
24777
24996
  /**
24778
24997
  * Validate() method override for MJ: AI Agent Run Steps entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
24779
24998
  * * FinalPayloadValidationResult: The final payload validation result must be one of the approved statuses: Warn, Fail, Retry, or Pass, to ensure consistent reporting of validation outcomes.
24999
+ * * NativeToolCallCount: The native tool call count must be greater than or equal to zero, if it is specified.
24780
25000
  * * StepNumber: This rule ensures that the step number must be greater than zero.
24781
25001
  * @public
24782
25002
  * @method
@@ -24791,6 +25011,13 @@ export declare class MJAIAgentRunStepEntity extends BaseEntity<MJAIAgentRunStepE
24791
25011
  */
24792
25012
  ValidateFinalPayloadValidationResultStatus(result: ValidationResult): void;
24793
25013
  /**
25014
+ * The native tool call count must be greater than or equal to zero, if it is specified.
25015
+ * @param result - the ValidationResult object to add any errors or warnings to
25016
+ * @public
25017
+ * @method
25018
+ */
25019
+ ValidateNativeToolCallCountGreaterThanOrEqualToZero(result: ValidationResult): void;
25020
+ /**
24794
25021
  * This rule ensures that the step number must be greater than zero.
24795
25022
  * @param result - the ValidationResult object to add any errors or warnings to
24796
25023
  * @public
@@ -54703,8 +54930,8 @@ export declare class MJEntityDocumentEntity extends BaseEntity<MJEntityDocumentE
54703
54930
  * * SQL Data Type: uniqueidentifier
54704
54931
  * * Related Entity/Foreign Key: MJ: Vector Databases (vwVectorDatabases.ID)
54705
54932
  */
54706
- get VectorDatabaseID(): string;
54707
- set VectorDatabaseID(value: string);
54933
+ get VectorDatabaseID(): string | null;
54934
+ set VectorDatabaseID(value: string | null);
54708
54935
  /**
54709
54936
  * * Field Name: Status
54710
54937
  * * Display Name: Status
@@ -54731,8 +54958,8 @@ export declare class MJEntityDocumentEntity extends BaseEntity<MJEntityDocumentE
54731
54958
  * * SQL Data Type: uniqueidentifier
54732
54959
  * * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
54733
54960
  */
54734
- get AIModelID(): string;
54735
- set AIModelID(value: string);
54961
+ get AIModelID(): string | null;
54962
+ set AIModelID(value: string | null);
54736
54963
  /**
54737
54964
  * * Field Name: PotentialMatchThreshold
54738
54965
  * * Display Name: Potential Match Threshold
@@ -54861,7 +55088,7 @@ export declare class MJEntityDocumentEntity extends BaseEntity<MJEntityDocumentE
54861
55088
  * * Display Name: Vector Database Name
54862
55089
  * * SQL Data Type: nvarchar(100)
54863
55090
  */
54864
- get VectorDatabase(): string;
55091
+ get VectorDatabase(): string | null;
54865
55092
  /**
54866
55093
  * * Field Name: Template
54867
55094
  * * Display Name: Template Name
@@ -54873,7 +55100,7 @@ export declare class MJEntityDocumentEntity extends BaseEntity<MJEntityDocumentE
54873
55100
  * * Display Name: AI Model Name
54874
55101
  * * SQL Data Type: nvarchar(50)
54875
55102
  */
54876
- get AIModel(): string;
55103
+ get AIModel(): string | null;
54877
55104
  /**
54878
55105
  * * Field Name: VectorIndex
54879
55106
  * * Display Name: Vector Index Name
@@ -55864,6 +56091,22 @@ export declare class MJEntityFieldEntity extends BaseEntity<MJEntityFieldEntityT
55864
56091
  get ConfigurationObject(): MJEntityFieldEntity_IEntityFieldConfiguration | null;
55865
56092
  set ConfigurationObject(value: MJEntityFieldEntity_IEntityFieldConfiguration | null);
55866
56093
  /**
56094
+ * * Field Name: RelatedEntityFilter
56095
+ * * Display Name: Related Entity Filter
56096
+ * * SQL Data Type: nvarchar(MAX)
56097
+ * * Description: Optional SQL WHERE fragment applied to every lookup on this foreign key (e.g. Status = 'Active'), AND-ed with whatever the user types, on both the browse list and the search path. Lets a picker be scoped from metadata rather than from every form template that renders the field. Authored by hand — CodeGen never derives or overwrites it. NULL means no filter, which is the pre-feature behaviour.
56098
+ */
56099
+ get RelatedEntityFilter(): string | null;
56100
+ set RelatedEntityFilter(value: string | null);
56101
+ /**
56102
+ * * Field Name: RelatedEntityOrderBy
56103
+ * * Display Name: Related Entity Order By
56104
+ * * SQL Data Type: nvarchar(500)
56105
+ * * Description: Optional ORDER BY fragment for the empty-query browse list on this foreign key, e.g. [Name] or [LastActivityDate] DESC. Does not affect the typed-query path, which is ordered by search relevance. Authored by hand — CodeGen never derives or overwrites it. NULL means order by the related entity's name field.
56106
+ */
56107
+ get RelatedEntityOrderBy(): string | null;
56108
+ set RelatedEntityOrderBy(value: string | null);
56109
+ /**
55867
56110
  * * Field Name: FieldCodeName
55868
56111
  * * Display Name: Field Code Name
55869
56112
  * * SQL Data Type: nvarchar(MAX)
@@ -58499,6 +58742,423 @@ export declare class MJExternalDataSourceEntity extends BaseEntity<MJExternalDat
58499
58742
  */
58500
58743
  get Credential(): string | null;
58501
58744
  }
58745
+ /**
58746
+ * MJ: Feature Value Caches - strongly typed entity sub-class
58747
+ * * Schema: __mj
58748
+ * * Base Table: FeatureValueCache
58749
+ * * Base View: vwFeatureValueCaches
58750
+ * * @description Dedup dictionary table for Feature Pipelines. Caches computed outputs by canonical input key hash, prompt version, and constraint hash. Distinct input strings (e.g. unique job titles) are computed once and reused across all matching records.
58751
+ * * Primary Key: ID
58752
+ * @extends {BaseEntity}
58753
+ * @class
58754
+ * @public
58755
+ */
58756
+ export declare class MJFeatureValueCacheEntity extends BaseEntity<MJFeatureValueCacheEntityType> {
58757
+ /**
58758
+ * Loads the MJ: Feature Value Caches record from the database
58759
+ * @param ID: string - primary key value to load the MJ: Feature Value Caches record.
58760
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
58761
+ * @returns {Promise<boolean>} - true if successful, false otherwise
58762
+ * @public
58763
+ * @async
58764
+ * @memberof MJFeatureValueCacheEntity
58765
+ * @method
58766
+ * @override
58767
+ */
58768
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
58769
+ /**
58770
+ * * Field Name: ID
58771
+ * * Display Name: ID
58772
+ * * SQL Data Type: uniqueidentifier
58773
+ * * Default Value: newsequentialid()
58774
+ * * Description: Unique identifier for this feature value cache entry.
58775
+ */
58776
+ get ID(): string;
58777
+ set ID(value: string);
58778
+ /**
58779
+ * * Field Name: RecordProcessID
58780
+ * * Display Name: Record Process
58781
+ * * SQL Data Type: uniqueidentifier
58782
+ * * Related Entity/Foreign Key: MJ: Record Processes (vwRecordProcesses.ID)
58783
+ * * Description: Optional reference to the RecordProcess that produced this cache entry. When NULL, the cached result is scoped by PromptID only and shared across pipelines using the same prompt.
58784
+ */
58785
+ get RecordProcessID(): string | null;
58786
+ set RecordProcessID(value: string | null);
58787
+ /**
58788
+ * * Field Name: PromptID
58789
+ * * Display Name: Prompt
58790
+ * * SQL Data Type: uniqueidentifier
58791
+ * * Related Entity/Foreign Key: MJ: AI Prompts (vwAIPrompts.ID)
58792
+ * * Description: Reference to the AI Prompt used to compute this cached entry.
58793
+ */
58794
+ get PromptID(): string;
58795
+ set PromptID(value: string);
58796
+ /**
58797
+ * * Field Name: PromptVersionHash
58798
+ * * Display Name: Prompt Version Hash
58799
+ * * SQL Data Type: nvarchar(64)
58800
+ * * Description: SHA-256 content hash of the rendered prompt template, output schema, and constraint instructions at execution time.
58801
+ */
58802
+ get PromptVersionHash(): string;
58803
+ set PromptVersionHash(value: string);
58804
+ /**
58805
+ * * Field Name: ConstraintHash
58806
+ * * Display Name: Constraint Hash
58807
+ * * SQL Data Type: nvarchar(64)
58808
+ * * Description: SHA-256 hash of the output value constraint definitions. Changes to allowed enum values or ranges invalidate cached results.
58809
+ */
58810
+ get ConstraintHash(): string;
58811
+ set ConstraintHash(value: string);
58812
+ /**
58813
+ * * Field Name: KeyHash
58814
+ * * Display Name: Key Hash
58815
+ * * SQL Data Type: nvarchar(64)
58816
+ * * Description: SHA-256 hash over the canonicalized JSON key field values. The primary lookup key.
58817
+ */
58818
+ get KeyHash(): string;
58819
+ set KeyHash(value: string);
58820
+ /**
58821
+ * * Field Name: KeyDisplay
58822
+ * * Display Name: Key Display
58823
+ * * SQL Data Type: nvarchar(500)
58824
+ * * Description: Human-readable plain text display of the key (e.g. "Senior Director, Field Marketing"). Makes this table legible as reference data.
58825
+ */
58826
+ get KeyDisplay(): string | null;
58827
+ set KeyDisplay(value: string | null);
58828
+ /**
58829
+ * * Field Name: KeyJSON
58830
+ * * Display Name: Key JSON
58831
+ * * SQL Data Type: nvarchar(MAX)
58832
+ * * Description: Full JSON representation of the input key fields and their values.
58833
+ */
58834
+ get KeyJSON(): string;
58835
+ set KeyJSON(value: string);
58836
+ /**
58837
+ * * Field Name: OutputsJSON
58838
+ * * Display Name: Outputs JSON
58839
+ * * SQL Data Type: nvarchar(MAX)
58840
+ * * Description: Cached computed outputs JSON fragment. Stored directly so archival of AI Prompt Runs does not lose cached values.
58841
+ */
58842
+ get OutputsJSON(): string;
58843
+ set OutputsJSON(value: string);
58844
+ /**
58845
+ * * Field Name: Reasoning
58846
+ * * Display Name: Reasoning
58847
+ * * SQL Data Type: nvarchar(MAX)
58848
+ * * Description: Optional model reasoning or rationale captured from the prompt execution.
58849
+ */
58850
+ get Reasoning(): string | null;
58851
+ set Reasoning(value: string | null);
58852
+ /**
58853
+ * * Field Name: AIPromptRunID
58854
+ * * Display Name: AI Prompt Run
58855
+ * * SQL Data Type: uniqueidentifier
58856
+ * * Description: Soft reference to the AI Prompt Run that first computed and populated this cached result.
58857
+ */
58858
+ get AIPromptRunID(): string | null;
58859
+ set AIPromptRunID(value: string | null);
58860
+ /**
58861
+ * * Field Name: HitCount
58862
+ * * Display Name: Hit Count
58863
+ * * SQL Data Type: int
58864
+ * * Default Value: 0
58865
+ * * Description: Total number of times this cached result has been served to skip an LLM invocation.
58866
+ */
58867
+ get HitCount(): number;
58868
+ set HitCount(value: number);
58869
+ /**
58870
+ * * Field Name: LastHitAt
58871
+ * * Display Name: Last Hit At
58872
+ * * SQL Data Type: datetimeoffset
58873
+ * * Description: Timestamp when this cached entry was last read and served.
58874
+ */
58875
+ get LastHitAt(): Date | null;
58876
+ set LastHitAt(value: Date | null);
58877
+ /**
58878
+ * * Field Name: ComputedAt
58879
+ * * Display Name: Computed At
58880
+ * * SQL Data Type: datetimeoffset
58881
+ * * Default Value: sysdatetimeoffset()
58882
+ * * Description: Timestamp when this cached entry was originally computed.
58883
+ */
58884
+ get ComputedAt(): Date;
58885
+ set ComputedAt(value: Date);
58886
+ /**
58887
+ * * Field Name: ExpiresAt
58888
+ * * Display Name: Expires At
58889
+ * * SQL Data Type: datetimeoffset
58890
+ * * Description: Optional expiration timestamp for time-to-live invalidation. NULL means no expiration.
58891
+ */
58892
+ get ExpiresAt(): Date | null;
58893
+ set ExpiresAt(value: Date | null);
58894
+ /**
58895
+ * * Field Name: __mj_CreatedAt
58896
+ * * Display Name: Created At
58897
+ * * SQL Data Type: datetimeoffset
58898
+ * * Default Value: getutcdate()
58899
+ * * Description: Timestamp when this record was created.
58900
+ */
58901
+ get __mj_CreatedAt(): Date;
58902
+ /**
58903
+ * * Field Name: __mj_UpdatedAt
58904
+ * * Display Name: Updated At
58905
+ * * SQL Data Type: datetimeoffset
58906
+ * * Default Value: getutcdate()
58907
+ * * Description: Timestamp when this record was last updated.
58908
+ */
58909
+ get __mj_UpdatedAt(): Date;
58910
+ /**
58911
+ * * Field Name: RecordProcess
58912
+ * * Display Name: Record Process Name
58913
+ * * SQL Data Type: nvarchar(255)
58914
+ */
58915
+ get RecordProcess(): string | null;
58916
+ /**
58917
+ * * Field Name: Prompt
58918
+ * * Display Name: Prompt Name
58919
+ * * SQL Data Type: nvarchar(255)
58920
+ */
58921
+ get Prompt(): string;
58922
+ }
58923
+ /**
58924
+ * MJ: Feature Values - strongly typed entity sub-class
58925
+ * * Schema: __mj
58926
+ * * Base Table: FeatureValue
58927
+ * * Base View: vwFeatureValues
58928
+ * * @description Complete historical audit table for Feature Pipelines. Records every feature value ever computed per entity record, with full provenance, model reasoning, and run back-links.
58929
+ * * Primary Key: ID
58930
+ * @extends {BaseEntity}
58931
+ * @class
58932
+ * @public
58933
+ */
58934
+ export declare class MJFeatureValueEntity extends BaseEntity<MJFeatureValueEntityType> {
58935
+ /**
58936
+ * Loads the MJ: Feature Values record from the database
58937
+ * @param ID: string - primary key value to load the MJ: Feature Values record.
58938
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
58939
+ * @returns {Promise<boolean>} - true if successful, false otherwise
58940
+ * @public
58941
+ * @async
58942
+ * @memberof MJFeatureValueEntity
58943
+ * @method
58944
+ * @override
58945
+ */
58946
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
58947
+ /**
58948
+ * * Field Name: ID
58949
+ * * Display Name: ID
58950
+ * * SQL Data Type: uniqueidentifier
58951
+ * * Default Value: newsequentialid()
58952
+ * * Description: Unique identifier for this feature value history record.
58953
+ */
58954
+ get ID(): string;
58955
+ set ID(value: string);
58956
+ /**
58957
+ * * Field Name: RecordProcessID
58958
+ * * Display Name: Record Process
58959
+ * * SQL Data Type: uniqueidentifier
58960
+ * * Related Entity/Foreign Key: MJ: Record Processes (vwRecordProcesses.ID)
58961
+ * * Description: The Record Process (Feature Pipeline) that computed this feature value.
58962
+ */
58963
+ get RecordProcessID(): string;
58964
+ set RecordProcessID(value: string);
58965
+ /**
58966
+ * * Field Name: EntityID
58967
+ * * Display Name: Entity
58968
+ * * SQL Data Type: uniqueidentifier
58969
+ * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
58970
+ * * Description: The entity of the record this feature was computed for.
58971
+ */
58972
+ get EntityID(): string;
58973
+ set EntityID(value: string);
58974
+ /**
58975
+ * * Field Name: RecordID
58976
+ * * Display Name: Record ID
58977
+ * * SQL Data Type: nvarchar(900)
58978
+ * * Description: Serialized primary key of the record this feature was computed for. Matches ProcessRunDetail.RecordID.
58979
+ */
58980
+ get RecordID(): string;
58981
+ set RecordID(value: string);
58982
+ /**
58983
+ * * Field Name: FeatureName
58984
+ * * Display Name: Feature Name
58985
+ * * SQL Data Type: nvarchar(255)
58986
+ * * Description: Name of the feature, matching DataFeatureOutput.Name.
58987
+ */
58988
+ get FeatureName(): string;
58989
+ set FeatureName(value: string);
58990
+ /**
58991
+ * * Field Name: ValueText
58992
+ * * Display Name: Value (Text)
58993
+ * * SQL Data Type: nvarchar(MAX)
58994
+ * * Description: Computed value as text, for text and categorical features.
58995
+ */
58996
+ get ValueText(): string | null;
58997
+ set ValueText(value: string | null);
58998
+ /**
58999
+ * * Field Name: ValueNumeric
59000
+ * * Display Name: Value (Numeric)
59001
+ * * SQL Data Type: float(53)
59002
+ * * Description: Computed value as floating-point numeric, for numeric and score features.
59003
+ */
59004
+ get ValueNumeric(): number | null;
59005
+ set ValueNumeric(value: number | null);
59006
+ /**
59007
+ * * Field Name: ValueDate
59008
+ * * Display Name: Value (Date)
59009
+ * * SQL Data Type: datetimeoffset
59010
+ * * Description: Computed value as datetimeoffset, for date and timestamp features.
59011
+ */
59012
+ get ValueDate(): Date | null;
59013
+ set ValueDate(value: Date | null);
59014
+ /**
59015
+ * * Field Name: ValueBoolean
59016
+ * * Display Name: Value (Boolean)
59017
+ * * SQL Data Type: bit
59018
+ * * Description: Computed value as boolean bit flag.
59019
+ */
59020
+ get ValueBoolean(): boolean | null;
59021
+ set ValueBoolean(value: boolean | null);
59022
+ /**
59023
+ * * Field Name: ValueJSON
59024
+ * * Display Name: Value (JSON)
59025
+ * * SQL Data Type: nvarchar(MAX)
59026
+ * * Description: Computed value as raw JSON string, for array or complex object features.
59027
+ */
59028
+ get ValueJSON(): string | null;
59029
+ set ValueJSON(value: string | null);
59030
+ /**
59031
+ * * Field Name: Reasoning
59032
+ * * Display Name: Reasoning
59033
+ * * SQL Data Type: nvarchar(MAX)
59034
+ * * Description: Optional model reasoning or rationale captured from the prompt execution.
59035
+ */
59036
+ get Reasoning(): string | null;
59037
+ set Reasoning(value: string | null);
59038
+ /**
59039
+ * * Field Name: Confidence
59040
+ * * Display Name: Confidence
59041
+ * * SQL Data Type: float(53)
59042
+ * * Description: Optional confidence score associated with this computed value.
59043
+ */
59044
+ get Confidence(): number | null;
59045
+ set Confidence(value: number | null);
59046
+ /**
59047
+ * * Field Name: PromptID
59048
+ * * Display Name: Prompt
59049
+ * * SQL Data Type: uniqueidentifier
59050
+ * * Related Entity/Foreign Key: MJ: AI Prompts (vwAIPrompts.ID)
59051
+ * * Description: Reference to the AI Prompt used to compute this feature value.
59052
+ */
59053
+ get PromptID(): string | null;
59054
+ set PromptID(value: string | null);
59055
+ /**
59056
+ * * Field Name: PromptVersionHash
59057
+ * * Display Name: Prompt Version Hash
59058
+ * * SQL Data Type: nvarchar(64)
59059
+ * * Description: SHA-256 content hash of the rendered prompt template and instructions at execution time.
59060
+ */
59061
+ get PromptVersionHash(): string | null;
59062
+ set PromptVersionHash(value: string | null);
59063
+ /**
59064
+ * * Field Name: ConstraintHash
59065
+ * * Display Name: Constraint Hash
59066
+ * * SQL Data Type: nvarchar(64)
59067
+ * * Description: SHA-256 hash of the value constraint definitions in effect when this feature was computed.
59068
+ */
59069
+ get ConstraintHash(): string | null;
59070
+ set ConstraintHash(value: string | null);
59071
+ /**
59072
+ * * Field Name: ProcessRunID
59073
+ * * Display Name: Process Run
59074
+ * * SQL Data Type: uniqueidentifier
59075
+ * * Related Entity/Foreign Key: MJ: Process Runs (vwProcessRuns.ID)
59076
+ * * Description: Reference to the Process Run during which this feature was computed.
59077
+ */
59078
+ get ProcessRunID(): string | null;
59079
+ set ProcessRunID(value: string | null);
59080
+ /**
59081
+ * * Field Name: ProcessRunDetailID
59082
+ * * Display Name: Process Run Detail
59083
+ * * SQL Data Type: uniqueidentifier
59084
+ * * Related Entity/Foreign Key: MJ: Process Run Details (vwProcessRunDetails.ID)
59085
+ * * Description: Reference to the specific Process Run Detail row for this record execution.
59086
+ */
59087
+ get ProcessRunDetailID(): string | null;
59088
+ set ProcessRunDetailID(value: string | null);
59089
+ /**
59090
+ * * Field Name: AIPromptRunID
59091
+ * * Display Name: AI Prompt Run
59092
+ * * SQL Data Type: uniqueidentifier
59093
+ * * Description: Soft reference to the AI Prompt Run that computed this value.
59094
+ */
59095
+ get AIPromptRunID(): string | null;
59096
+ set AIPromptRunID(value: string | null);
59097
+ /**
59098
+ * * Field Name: FeatureValueCacheID
59099
+ * * Display Name: Feature Value Cache
59100
+ * * SQL Data Type: uniqueidentifier
59101
+ * * Related Entity/Foreign Key: MJ: Feature Value Caches (vwFeatureValueCaches.ID)
59102
+ * * Description: Optional reference to the FeatureValueCache entry if this value was served from cache.
59103
+ */
59104
+ get FeatureValueCacheID(): string | null;
59105
+ set FeatureValueCacheID(value: string | null);
59106
+ /**
59107
+ * * Field Name: ComputedAt
59108
+ * * Display Name: Computed At
59109
+ * * SQL Data Type: datetimeoffset
59110
+ * * Default Value: sysdatetimeoffset()
59111
+ * * Description: Timestamp when this feature value was computed.
59112
+ */
59113
+ get ComputedAt(): Date;
59114
+ set ComputedAt(value: Date);
59115
+ /**
59116
+ * * Field Name: __mj_CreatedAt
59117
+ * * Display Name: Created At
59118
+ * * SQL Data Type: datetimeoffset
59119
+ * * Default Value: getutcdate()
59120
+ * * Description: Timestamp when this record was created.
59121
+ */
59122
+ get __mj_CreatedAt(): Date;
59123
+ /**
59124
+ * * Field Name: __mj_UpdatedAt
59125
+ * * Display Name: Updated At
59126
+ * * SQL Data Type: datetimeoffset
59127
+ * * Default Value: getutcdate()
59128
+ * * Description: Timestamp when this record was last updated.
59129
+ */
59130
+ get __mj_UpdatedAt(): Date;
59131
+ /**
59132
+ * * Field Name: RecordProcess
59133
+ * * Display Name: Record Process
59134
+ * * SQL Data Type: nvarchar(255)
59135
+ */
59136
+ get RecordProcess(): string;
59137
+ /**
59138
+ * * Field Name: Entity
59139
+ * * Display Name: Entity
59140
+ * * SQL Data Type: nvarchar(255)
59141
+ */
59142
+ get Entity(): string;
59143
+ /**
59144
+ * * Field Name: Prompt
59145
+ * * Display Name: Prompt
59146
+ * * SQL Data Type: nvarchar(255)
59147
+ */
59148
+ get Prompt(): string | null;
59149
+ /**
59150
+ * * Field Name: ProcessRunDetail
59151
+ * * Display Name: Process Run Detail
59152
+ * * SQL Data Type: nvarchar(450)
59153
+ */
59154
+ get ProcessRunDetail(): string | null;
59155
+ /**
59156
+ * * Field Name: FeatureValueCache
59157
+ * * Display Name: Feature Value Cache
59158
+ * * SQL Data Type: nvarchar(500)
59159
+ */
59160
+ get FeatureValueCache(): string | null;
59161
+ }
58502
59162
  /**
58503
59163
  * MJ: File Categories - strongly typed entity sub-class
58504
59164
  * * Schema: __mj
@@ -67154,6 +67814,61 @@ export declare class MJPublicLinkEntity extends BaseEntity<MJPublicLinkEntityTyp
67154
67814
  */
67155
67815
  get User(): string;
67156
67816
  }
67817
+ /**
67818
+ * Optional per-query configuration bag.
67819
+ *
67820
+ * Stored as JSON in `MJ: Queries.Configuration`. CodeGen emits a typed
67821
+ * `ConfigurationObject` accessor on `MJQueryEntity` that returns
67822
+ * `MJQueryEntity_IQueryConfiguration | null`.
67823
+ *
67824
+ * Expand by adding a property here — no schema migration. Anything the engine
67825
+ * filters, sorts, or joins on stays a column on `Query`. Semantic layer options,
67826
+ * execution logging policies, and AI agent bounds belong in this bag.
67827
+ */
67828
+ export interface MJQueryEntity_IQueryConfiguration {
67829
+ /**
67830
+ * Relative ranking / ground-truth priority for semantic query selection (1-100).
67831
+ * High values (e.g. 90-100) mark authoritative, enterprise-certified ground truth queries
67832
+ * that should be preferred when multiple similar queries match an agent's request.
67833
+ * Default: 50.
67834
+ */
67835
+ Priority?: number;
67836
+ /**
67837
+ * Controls execution logging for this query.
67838
+ * When true (default), executions are logged to `MJ: Query Execution Logs`.
67839
+ * Set to false to opt out of execution logging (useful for high-frequency health checks,
67840
+ * internal pollers, or sensitive data queries).
67841
+ * Default: true.
67842
+ */
67843
+ LogExecution?: boolean;
67844
+ /**
67845
+ * Explicit flag indicating this query is an enterprise ground-truth / canonical query
67846
+ * for its domain or question type. Agents can filter or prioritize canonical queries.
67847
+ * Default: false.
67848
+ */
67849
+ IsCanonical?: boolean;
67850
+ /**
67851
+ * Alternative questions, natural language phrasings, and query aliases.
67852
+ * Included in composite embeddings and semantic search indexing to boost vector recall
67853
+ * across varied phrasing without diluting the primary description.
67854
+ */
67855
+ AlternativeQuestions?: string[];
67856
+ /**
67857
+ * Usage guidance for AI agents and callers. Provides prescriptive context on when
67858
+ * this query should be chosen and how its results should be interpreted.
67859
+ */
67860
+ UsageGuidance?: string;
67861
+ /**
67862
+ * Explicit negative bounding / anti-patterns for AI agents.
67863
+ * E.g. "Do NOT use for unbilled orders; use 'Unbilled Orders by Region' instead."
67864
+ */
67865
+ WhenNotToUse?: string;
67866
+ /**
67867
+ * Operational domain or persona scopes where this query applies
67868
+ * (e.g. ['Sales', 'Finance', 'Executive']).
67869
+ */
67870
+ DomainScope?: string[];
67871
+ }
67157
67872
  /**
67158
67873
  * MJ: Queries - strongly typed entity sub-class
67159
67874
  * * Schema: __mj
@@ -67408,6 +68123,23 @@ export declare class MJQueryEntity extends BaseEntity<MJQueryEntityType> {
67408
68123
  get IsMaterialized(): boolean;
67409
68124
  set IsMaterialized(value: boolean);
67410
68125
  /**
68126
+ * * Field Name: Configuration
68127
+ * * Display Name: Configuration
68128
+ * * SQL Data Type: nvarchar(MAX)
68129
+ * * JSON Type: MJQueryEntity_IQueryConfiguration
68130
+ * * Description: Optional JSON configuration bag defining query-level policies and semantic capabilities (shape = IQueryConfiguration). Includes Priority (1-100) for ground-truth ranking in the semantic layer, LogExecution to control query execution logging, AlternativeQuestions for multi-phrasing vector recall, UsageGuidance and WhenNotToUse bounds for AI agents, and DomainScope.
68131
+ */
68132
+ get Configuration(): string | null;
68133
+ set Configuration(value: string | null);
68134
+ private _ConfigurationObject_cached;
68135
+ private _ConfigurationObject_lastRaw;
68136
+ /**
68137
+ * Typed accessor for Configuration — returns parsed JSON as MJQueryEntity_IQueryConfiguration.
68138
+ * Uses lazy parsing with cache invalidation when the underlying raw value changes.
68139
+ */
68140
+ get ConfigurationObject(): MJQueryEntity_IQueryConfiguration | null;
68141
+ set ConfigurationObject(value: MJQueryEntity_IQueryConfiguration | null);
68142
+ /**
67411
68143
  * * Field Name: Category
67412
68144
  * * Display Name: Category Name
67413
68145
  * * SQL Data Type: nvarchar(50)
@@ -78902,6 +79634,182 @@ export declare class MJTestTypeEntity extends BaseEntity<MJTestTypeEntityType> {
78902
79634
  get VariablesSchema(): string | null;
78903
79635
  set VariablesSchema(value: string | null);
78904
79636
  }
79637
+ /**
79638
+ * Shape of the `Configuration` column on `MJ: Tests`.
79639
+ *
79640
+ * The column is shared by every test type, and each driver parses its own shape
79641
+ * out of it — so the named properties here are the ones the *framework*
79642
+ * understands and the index signature carries the rest through untouched. Adding
79643
+ * a framework-level option is an edit to this interface plus `mj sync push`,
79644
+ * never a migration.
79645
+ *
79646
+ * @see plans/regression-testing/dom-selection-and-replay-design.md
79647
+ */
79648
+ export interface MJTestEntity_ITestConfiguration {
79649
+ /**
79650
+ * The recorded, replayable trajectory for this test — written by a passing
79651
+ * agent-driven run, replayed by later runs with no model calls. Absent until
79652
+ * the first run records one. Held structurally identical to `ComputerUseTrace`
79653
+ * by compile-time assertions in `@memberjunction/computer-use-engine`.
79654
+ */
79655
+ ReplayScript?: MJTestEntity_IReplayScript;
79656
+ /**
79657
+ * A newly recorded script awaiting review, written when a run re-derives a
79658
+ * test that already had a {@link ReplayScript}. Replay always uses the
79659
+ * promoted script, never this one, so a UI change never takes effect until
79660
+ * someone has seen the diff and promoted it (`mj test scripts`).
79661
+ *
79662
+ * A test's *first* script skips this and lands in {@link ReplayScript}
79663
+ * directly — there is no baseline to diff it against, and the run that
79664
+ * produced it already passed the judge and every gating oracle.
79665
+ */
79666
+ PendingReplayScript?: MJTestEntity_IReplayScript;
79667
+ /**
79668
+ * Whether a failed replay may fall back to the agent and re-derive the goal.
79669
+ * Defaults to **true**. Set `false` to pin a test to deterministic execution,
79670
+ * wherever a silent re-derivation could paper over the regression the test
79671
+ * exists to catch.
79672
+ *
79673
+ * A green fallback records to {@link PendingReplayScript}, not
79674
+ * {@link ReplayScript} — replacing a promoted script is always a reviewed act.
79675
+ * This governs the whole goal; to stop a single STEP being repaired during
79676
+ * replay, use the driver's `replayHeal`.
79677
+ */
79678
+ AllowLLMFallback?: boolean;
79679
+ /** Driver-specific configuration, passed through untouched. */
79680
+ [key: string]: unknown;
79681
+ }
79682
+ /**
79683
+ * A recorded, replayable trajectory for one test. An exact `AppBuildHash` match
79684
+ * replays with no healing expected; any mismatch replays with healing; a changed
79685
+ * `GoalHash` falls back to the agent, the script no longer describing what the
79686
+ * test asks for.
79687
+ */
79688
+ export interface MJTestEntity_IReplayScript {
79689
+ /** Stable per-test identifier the script is keyed by. */
79690
+ TestId: string;
79691
+ /** Opaque build identity at record time. Compared, never parsed; empty when unknown. */
79692
+ AppBuildHash: string;
79693
+ /** Opaque app/package version at record time. Compared, never parsed. */
79694
+ AppVersion: string;
79695
+ /** Hash of the frozen goal text — a goal edit invalidates the script. */
79696
+ GoalHash: string;
79697
+ /** ISO-8601 timestamp when this script was recorded. */
79698
+ RecordedAt: string;
79699
+ /** Viewport at record time; replay must match it for coordinate-era guards. */
79700
+ Viewport: MJTestEntity_IReplayScriptViewport;
79701
+ /**
79702
+ * Names of the variables the test declares. Values are never stored: recording
79703
+ * leaves `%name%` tokens in step text and URLs, and replay substitutes fresh
79704
+ * values in.
79705
+ */
79706
+ Variables: string[];
79707
+ /** The resolved, ordered replay steps. */
79708
+ Steps: MJTestEntity_IReplayScriptStep[];
79709
+ /** Final goal-level deterministic assertions. */
79710
+ GoalPostconditions: MJTestEntity_IReplayScriptGoalPostcondition[];
79711
+ }
79712
+ /** Viewport at record time. */
79713
+ export interface MJTestEntity_IReplayScriptViewport {
79714
+ Width: number;
79715
+ Height: number;
79716
+ }
79717
+ /** One recorded, replayable step. */
79718
+ export interface MJTestEntity_IReplayScriptStep {
79719
+ /** Human-readable intent, carried from the agent's own reasoning. */
79720
+ Instruction: string;
79721
+ /** Normalized URL at the start of this step. */
79722
+ UrlBefore: string;
79723
+ Action: MJTestEntity_IReplayScriptAction;
79724
+ Precondition: MJTestEntity_IReplayScriptPrecondition;
79725
+ Postcondition?: MJTestEntity_IReplayScriptPostcondition;
79726
+ }
79727
+ /** The deterministic subset of browser actions a step can record — elements, never pixels. */
79728
+ export type MJTestEntity_IReplayScriptActionMethod = 'click' | 'type' | 'navigate' | 'keypress' | 'scroll' | 'wait' | 'goBack' | 'goForward' | 'refresh';
79729
+ /** Only the fields relevant to {@link MJTestEntity_IReplayScriptAction.Method} are populated. */
79730
+ export interface MJTestEntity_IReplayScriptAction {
79731
+ Method: MJTestEntity_IReplayScriptActionMethod;
79732
+ /** Target for click / type / scroll actions. */
79733
+ Target?: MJTestEntity_IReplayScriptTarget;
79734
+ /** Text to type, possibly with `%placeholder%` variable tokens. */
79735
+ Text?: string;
79736
+ /** Key or chord to press. */
79737
+ Key?: string;
79738
+ /** Destination, normalized and variable-tokenized. */
79739
+ Url?: string;
79740
+ /** Press Enter after typing. */
79741
+ PressEnter?: boolean;
79742
+ /** 1 = single click, 2 = double. */
79743
+ ClickCount?: number;
79744
+ Button?: 'left' | 'right' | 'middle';
79745
+ /** Wait duration in ms. */
79746
+ DurationMs?: number;
79747
+ }
79748
+ /**
79749
+ * A multi-signal locator. `Selector` is primary; `Role` + `Name` are the heal
79750
+ * fallback, re-resolved from a fresh element list when the selector stops
79751
+ * matching; `Scope` disambiguates same-named twins by the region they live in;
79752
+ * `BoundingBox` is weakest, kept only for pre-grounding recordings.
79753
+ */
79754
+ export interface MJTestEntity_IReplayScriptTarget {
79755
+ Role?: string;
79756
+ Name?: string;
79757
+ Selector?: string;
79758
+ /**
79759
+ * Nearest labeled ancestor region as `role:name` (e.g.
79760
+ * `group:All applications`). Role + name are not always a unique identity —
79761
+ * an app launcher lists each app under both a usage-ordered "Recent" grid
79762
+ * and an alphabetical "All" grid — and the region is what tells the twins
79763
+ * apart. Absent on recordings made before regions were captured.
79764
+ */
79765
+ Scope?: string;
79766
+ BoundingBox?: MJTestEntity_IReplayScriptBoundingBox;
79767
+ }
79768
+ /** Rendered position of a target at record time. */
79769
+ export interface MJTestEntity_IReplayScriptBoundingBox {
79770
+ XMin: number;
79771
+ YMin: number;
79772
+ XMax: number;
79773
+ YMax: number;
79774
+ }
79775
+ /**
79776
+ * Guard evaluated BEFORE a step. Fail-fast by contract: a target that never becomes
79777
+ * attached and visible fails the step — replay never proceeds anyway.
79778
+ */
79779
+ export interface MJTestEntity_IReplayScriptPrecondition {
79780
+ /** Wait for the action's target to be attached and visible before acting. */
79781
+ WaitForTarget: boolean;
79782
+ /** Expected normalized URL pattern at the start of this step. */
79783
+ UrlPattern?: string;
79784
+ /** Require the app's readiness beacon before acting. */
79785
+ ReadyBeacon: boolean;
79786
+ }
79787
+ /**
79788
+ * Guard evaluated AFTER a step, confirming it advanced the page as the recording
79789
+ * did. Failing one marks the step diverged and starts the heal ladder.
79790
+ */
79791
+ export interface MJTestEntity_IReplayScriptPostcondition {
79792
+ /** Expected normalized URL pattern after the step's action ran. */
79793
+ UrlPattern?: string;
79794
+ /** An element expected to be visible after the step. */
79795
+ ExpectVisible?: MJTestEntity_IReplayScriptTarget;
79796
+ }
79797
+ /**
79798
+ * A goal-level assertion distilled from a passing run. Replay scores by executing
79799
+ * these, so the model-based judge runs only on the agent tier.
79800
+ */
79801
+ export interface MJTestEntity_IReplayScriptGoalPostcondition {
79802
+ /**
79803
+ * - `'url'` — the final URL matches `UrlPattern`.
79804
+ * - `'visible'` — `Target` is present in the end state.
79805
+ * - `'absent'` — `Target` is not present (no error toast, say).
79806
+ */
79807
+ Kind: 'url' | 'visible' | 'absent';
79808
+ UrlPattern?: string;
79809
+ Target?: MJTestEntity_IReplayScriptTarget;
79810
+ /** Provenance — the validation criterion this was distilled from. */
79811
+ Description?: string;
79812
+ }
78905
79813
  /**
78906
79814
  * MJ: Tests - strongly typed entity sub-class
78907
79815
  * * Schema: __mj
@@ -79008,10 +79916,19 @@ export declare class MJTestEntity extends BaseEntity<MJTestEntityType> {
79008
79916
  * * Field Name: Configuration
79009
79917
  * * Display Name: Configuration
79010
79918
  * * SQL Data Type: nvarchar(MAX)
79919
+ * * JSON Type: MJTestEntity_ITestConfiguration
79011
79920
  * * Description: JSON object for test-specific configuration (e.g., oracles to use, rubrics, retry policies, timeout settings)
79012
79921
  */
79013
79922
  get Configuration(): string | null;
79014
79923
  set Configuration(value: string | null);
79924
+ private _ConfigurationObject_cached;
79925
+ private _ConfigurationObject_lastRaw;
79926
+ /**
79927
+ * Typed accessor for Configuration — returns parsed JSON as MJTestEntity_ITestConfiguration.
79928
+ * Uses lazy parsing with cache invalidation when the underlying raw value changes.
79929
+ */
79930
+ get ConfigurationObject(): MJTestEntity_ITestConfiguration | null;
79931
+ set ConfigurationObject(value: MJTestEntity_ITestConfiguration | null);
79015
79932
  /**
79016
79933
  * * Field Name: Tags
79017
79934
  * * Display Name: Tags
@@ -82922,6 +83839,187 @@ export declare class MJViewTypeEntity extends BaseEntity<MJViewTypeEntityType> {
82922
83839
  */
82923
83840
  get __mj_UpdatedAt(): Date;
82924
83841
  }
83842
+ /**
83843
+ * MJ: Web Search Providers - strongly typed entity sub-class
83844
+ * * Schema: __mj
83845
+ * * Base Table: WebSearchProvider
83846
+ * * Base View: vwWebSearchProviders
83847
+ * * @description Registry of external web search vendors available to @memberjunction/web-search-engine. Each row configures one driver: whether it is active, its position in the failover order, and where its credential lives. Provider capabilities (answer synthesis, domain filtering, freshness) are declared by the driver class, not stored here.
83848
+ * * Primary Key: ID
83849
+ * @extends {BaseEntity}
83850
+ * @class
83851
+ * @public
83852
+ */
83853
+ export declare class MJWebSearchProviderEntity extends BaseEntity<MJWebSearchProviderEntityType> {
83854
+ /**
83855
+ * Loads the MJ: Web Search Providers record from the database
83856
+ * @param ID: string - primary key value to load the MJ: Web Search Providers record.
83857
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
83858
+ * @returns {Promise<boolean>} - true if successful, false otherwise
83859
+ * @public
83860
+ * @async
83861
+ * @memberof MJWebSearchProviderEntity
83862
+ * @method
83863
+ * @override
83864
+ */
83865
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
83866
+ /**
83867
+ * Validate() method override for MJ: Web Search Providers entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
83868
+ * * MaxResultsOverride: The maximum results override must be greater than 0 if it is specified.
83869
+ * * Priority: The priority value must be a non-negative number (0 or greater) to ensure correct ordering and scheduling.
83870
+ * @public
83871
+ * @method
83872
+ * @override
83873
+ */
83874
+ Validate(): ValidationResult;
83875
+ /**
83876
+ * The maximum results override must be greater than 0 if it is specified.
83877
+ * @param result - the ValidationResult object to add any errors or warnings to
83878
+ * @public
83879
+ * @method
83880
+ */
83881
+ ValidateMaxResultsOverrideGreaterThanZero(result: ValidationResult): void;
83882
+ /**
83883
+ * The priority value must be a non-negative number (0 or greater) to ensure correct ordering and scheduling.
83884
+ * @param result - the ValidationResult object to add any errors or warnings to
83885
+ * @public
83886
+ * @method
83887
+ */
83888
+ ValidatePriorityMinVal(result: ValidationResult): void;
83889
+ /**
83890
+ * * Field Name: ID
83891
+ * * Display Name: ID
83892
+ * * SQL Data Type: uniqueidentifier
83893
+ * * Default Value: newsequentialid()
83894
+ */
83895
+ get ID(): string;
83896
+ set ID(value: string);
83897
+ /**
83898
+ * * Field Name: Name
83899
+ * * Display Name: Name
83900
+ * * SQL Data Type: nvarchar(200)
83901
+ * * Description: Administrator-facing name for this provider, e.g. "Brave" or "Tavily". Unique, and usable as the Provider value when a caller pins a search to one vendor.
83902
+ */
83903
+ get Name(): string;
83904
+ set Name(value: string);
83905
+ /**
83906
+ * * Field Name: Description
83907
+ * * Display Name: Description
83908
+ * * SQL Data Type: nvarchar(MAX)
83909
+ * * Description: What this provider searches, what it costs, and when it is the right choice.
83910
+ */
83911
+ get Description(): string | null;
83912
+ set Description(value: string | null);
83913
+ /**
83914
+ * * Field Name: DriverClass
83915
+ * * Display Name: Driver Class
83916
+ * * SQL Data Type: nvarchar(500)
83917
+ * * Description: ClassFactory key used with @RegisterClass(BaseWebSearchProvider, DriverClass) to instantiate the driver at runtime, e.g. "BraveWebSearchProvider". A value with no matching registration leaves the provider unavailable and is logged at engine startup.
83918
+ */
83919
+ get DriverClass(): string;
83920
+ set DriverClass(value: string);
83921
+ /**
83922
+ * * Field Name: Status
83923
+ * * Display Name: Status
83924
+ * * SQL Data Type: nvarchar(20)
83925
+ * * Default Value: Active
83926
+ * * Value List Type: List
83927
+ * * Possible Values
83928
+ * * Active
83929
+ * * Pending
83930
+ * * Terminated
83931
+ * * Description: Provider lifecycle status: Pending (configured but not yet in use), Active (participates in searches), Terminated (disabled). Only Active providers are loaded. Matches the vocabulary used by SearchProvider.
83932
+ */
83933
+ get Status(): 'Active' | 'Pending' | 'Terminated';
83934
+ set Status(value: 'Active' | 'Pending' | 'Terminated');
83935
+ /**
83936
+ * * Field Name: Priority
83937
+ * * Display Name: Priority
83938
+ * * SQL Data Type: int
83939
+ * * Default Value: 0
83940
+ * * Description: Failover order: LOWER values are tried FIRST. The engine serves a search from the first available provider in this order, moving on only when one fails transiently. Must be >= 0.
83941
+ */
83942
+ get Priority(): number;
83943
+ set Priority(value: number);
83944
+ /**
83945
+ * * Field Name: CredentialID
83946
+ * * Display Name: Credential ID
83947
+ * * SQL Data Type: uniqueidentifier
83948
+ * * Related Entity/Foreign Key: MJ: Credentials (vwCredentials.ID)
83949
+ * * Description: Optional FK to the Credential record holding this provider's API key. When NULL the driver falls back to its documented environment variable, so a host that has not yet migrated its secrets into the Credential store keeps working.
83950
+ */
83951
+ get CredentialID(): string | null;
83952
+ set CredentialID(value: string | null);
83953
+ /**
83954
+ * * Field Name: ProviderConfig
83955
+ * * Display Name: Provider Config
83956
+ * * SQL Data Type: nvarchar(MAX)
83957
+ * * Description: Optional JSON blob of non-secret, driver-specific settings (endpoint overrides, tier flags, answer model). Schema is defined by each driver; invalid JSON is logged and ignored rather than disabling the provider.
83958
+ */
83959
+ get ProviderConfig(): string | null;
83960
+ set ProviderConfig(value: string | null);
83961
+ /**
83962
+ * * Field Name: MaxResultsOverride
83963
+ * * Display Name: Max Results Override
83964
+ * * SQL Data Type: int
83965
+ * * Description: Optional per-provider cap on results per request, for pay-per-query vendors. The effective cap is the smallest of the caller's request, this value, and the vendor's own hard limit. NULL means the driver's own limit applies.
83966
+ */
83967
+ get MaxResultsOverride(): number | null;
83968
+ set MaxResultsOverride(value: number | null);
83969
+ /**
83970
+ * * Field Name: AllowResultCaching
83971
+ * * Display Name: Allow Result Caching
83972
+ * * SQL Data Type: bit
83973
+ * * Default Value: 0
83974
+ * * Description: Whether this vendor's terms permit storing returned results. Defaults to 0 (deny), because caching rights differ sharply between vendors and violating them is silent: some sell storage rights as a plan tier, others forbid persistent caching outright. Nothing in the engine caches today; this column exists so the first caching layer reads a per-provider gate instead of inventing one.
83975
+ */
83976
+ get AllowResultCaching(): boolean;
83977
+ set AllowResultCaching(value: boolean);
83978
+ /**
83979
+ * * Field Name: DisplayName
83980
+ * * Display Name: Display Name
83981
+ * * SQL Data Type: nvarchar(200)
83982
+ * * Description: UI display name shown in admin surfaces and result attribution. When NULL, falls back to the Name column.
83983
+ */
83984
+ get DisplayName(): string | null;
83985
+ set DisplayName(value: string | null);
83986
+ /**
83987
+ * * Field Name: Icon
83988
+ * * Display Name: Icon
83989
+ * * SQL Data Type: nvarchar(200)
83990
+ * * Description: CSS icon class for UI display, e.g. "fa-brands fa-brave". Supports any CSS-based icon library. When NULL a default icon is used.
83991
+ */
83992
+ get Icon(): string | null;
83993
+ set Icon(value: string | null);
83994
+ /**
83995
+ * * Field Name: Comments
83996
+ * * Display Name: Comments
83997
+ * * SQL Data Type: nvarchar(MAX)
83998
+ * * Description: Free-form administrator notes, e.g. contract terms, billing owner, or why this provider sits at its priority.
83999
+ */
84000
+ get Comments(): string | null;
84001
+ set Comments(value: string | null);
84002
+ /**
84003
+ * * Field Name: __mj_CreatedAt
84004
+ * * Display Name: Created At
84005
+ * * SQL Data Type: datetimeoffset
84006
+ * * Default Value: getutcdate()
84007
+ */
84008
+ get __mj_CreatedAt(): Date;
84009
+ /**
84010
+ * * Field Name: __mj_UpdatedAt
84011
+ * * Display Name: Updated At
84012
+ * * SQL Data Type: datetimeoffset
84013
+ * * Default Value: getutcdate()
84014
+ */
84015
+ get __mj_UpdatedAt(): Date;
84016
+ /**
84017
+ * * Field Name: Credential
84018
+ * * Display Name: Credential
84019
+ * * SQL Data Type: nvarchar(200)
84020
+ */
84021
+ get Credential(): string | null;
84022
+ }
82925
84023
  /**
82926
84024
  * MJ: Workspace Items - strongly typed entity sub-class
82927
84025
  * * Schema: __mj