@memberjunction/core-entities 5.14.0 → 5.16.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.
@@ -2594,6 +2594,8 @@ export declare const MJAIModelTypeSchema: z.ZodObject<{
2594
2594
  __mj_UpdatedAt: z.ZodDate;
2595
2595
  DefaultInputModalityID: z.ZodString;
2596
2596
  DefaultOutputModalityID: z.ZodString;
2597
+ SupportsPrefill: z.ZodBoolean;
2598
+ PrefillFallbackText: z.ZodNullable<z.ZodString>;
2597
2599
  DefaultInputModality: z.ZodString;
2598
2600
  DefaultOutputModality: z.ZodString;
2599
2601
  }, "strip", z.ZodTypeAny, {
@@ -2604,6 +2606,8 @@ export declare const MJAIModelTypeSchema: z.ZodObject<{
2604
2606
  Description?: string;
2605
2607
  DefaultInputModalityID?: string;
2606
2608
  DefaultOutputModalityID?: string;
2609
+ SupportsPrefill?: boolean;
2610
+ PrefillFallbackText?: string;
2607
2611
  DefaultInputModality?: string;
2608
2612
  DefaultOutputModality?: string;
2609
2613
  }, {
@@ -2614,6 +2618,8 @@ export declare const MJAIModelTypeSchema: z.ZodObject<{
2614
2618
  Description?: string;
2615
2619
  DefaultInputModalityID?: string;
2616
2620
  DefaultOutputModalityID?: string;
2621
+ SupportsPrefill?: boolean;
2622
+ PrefillFallbackText?: string;
2617
2623
  DefaultInputModality?: string;
2618
2624
  DefaultOutputModality?: string;
2619
2625
  }>;
@@ -2638,6 +2644,8 @@ export declare const MJAIModelVendorSchema: z.ZodObject<{
2638
2644
  __mj_CreatedAt: z.ZodDate;
2639
2645
  __mj_UpdatedAt: z.ZodDate;
2640
2646
  TypeID: z.ZodString;
2647
+ SupportsPrefill: z.ZodNullable<z.ZodBoolean>;
2648
+ PrefillFallbackText: z.ZodNullable<z.ZodString>;
2641
2649
  Model: z.ZodString;
2642
2650
  Vendor: z.ZodString;
2643
2651
  Type: z.ZodString;
@@ -2654,6 +2662,8 @@ export declare const MJAIModelVendorSchema: z.ZodObject<{
2654
2662
  TypeID?: string;
2655
2663
  Vendor?: string;
2656
2664
  VendorID?: string;
2665
+ SupportsPrefill?: boolean;
2666
+ PrefillFallbackText?: string;
2657
2667
  DriverImportPath?: string;
2658
2668
  APIName?: string;
2659
2669
  MaxInputTokens?: number;
@@ -2674,6 +2684,8 @@ export declare const MJAIModelVendorSchema: z.ZodObject<{
2674
2684
  TypeID?: string;
2675
2685
  Vendor?: string;
2676
2686
  VendorID?: string;
2687
+ SupportsPrefill?: boolean;
2688
+ PrefillFallbackText?: string;
2677
2689
  DriverImportPath?: string;
2678
2690
  APIName?: string;
2679
2691
  MaxInputTokens?: number;
@@ -2700,6 +2712,8 @@ export declare const MJAIModelSchema: z.ZodObject<{
2700
2712
  ModelSelectionInsights: z.ZodNullable<z.ZodString>;
2701
2713
  InheritTypeModalities: z.ZodBoolean;
2702
2714
  PriorVersionID: z.ZodNullable<z.ZodString>;
2715
+ SupportsPrefill: z.ZodNullable<z.ZodBoolean>;
2716
+ PrefillFallbackText: z.ZodNullable<z.ZodString>;
2703
2717
  AIModelType: z.ZodString;
2704
2718
  Vendor: z.ZodNullable<z.ZodString>;
2705
2719
  DriverClass: z.ZodNullable<z.ZodString>;
@@ -2717,6 +2731,8 @@ export declare const MJAIModelSchema: z.ZodObject<{
2717
2731
  DriverClass?: string;
2718
2732
  IsActive?: boolean;
2719
2733
  Vendor?: string;
2734
+ SupportsPrefill?: boolean;
2735
+ PrefillFallbackText?: string;
2720
2736
  DriverImportPath?: string;
2721
2737
  APIName?: string;
2722
2738
  SupportedResponseFormats?: string;
@@ -2739,6 +2755,8 @@ export declare const MJAIModelSchema: z.ZodObject<{
2739
2755
  DriverClass?: string;
2740
2756
  IsActive?: boolean;
2741
2757
  Vendor?: string;
2758
+ SupportsPrefill?: boolean;
2759
+ PrefillFallbackText?: string;
2742
2760
  DriverImportPath?: string;
2743
2761
  APIName?: string;
2744
2762
  SupportedResponseFormats?: string;
@@ -3007,6 +3025,7 @@ export declare const MJAIPromptRunSchema: z.ZodObject<{
3007
3025
  RunName: z.ZodNullable<z.ZodString>;
3008
3026
  Comments: z.ZodNullable<z.ZodString>;
3009
3027
  TestRunID: z.ZodNullable<z.ZodString>;
3028
+ AssistantPrefill: z.ZodNullable<z.ZodString>;
3010
3029
  Prompt: z.ZodString;
3011
3030
  Model: z.ZodString;
3012
3031
  Vendor: z.ZodString;
@@ -3115,6 +3134,7 @@ export declare const MJAIPromptRunSchema: z.ZodObject<{
3115
3134
  PromptTime?: number;
3116
3135
  CompletionTime?: number;
3117
3136
  ModelSpecificResponseDetails?: string;
3137
+ AssistantPrefill?: string;
3118
3138
  OriginalModel?: string;
3119
3139
  RerunFromPromptRun?: string;
3120
3140
  Judge?: string;
@@ -3214,6 +3234,7 @@ export declare const MJAIPromptRunSchema: z.ZodObject<{
3214
3234
  PromptTime?: number;
3215
3235
  CompletionTime?: number;
3216
3236
  ModelSpecificResponseDetails?: string;
3237
+ AssistantPrefill?: string;
3217
3238
  OriginalModel?: string;
3218
3239
  RerunFromPromptRun?: string;
3219
3240
  Judge?: string;
@@ -3299,6 +3320,8 @@ export declare const MJAIPromptSchema: z.ZodObject<{
3299
3320
  FailoverModelStrategy: z.ZodUnion<[z.ZodLiteral<"PreferDifferentModel">, z.ZodLiteral<"PreferDifferentModel">, z.ZodLiteral<"PreferSameModel">, z.ZodLiteral<"PreferSameModel">, z.ZodLiteral<"RequireSameModel">, z.ZodLiteral<"RequireSameModel">]>;
3300
3321
  FailoverErrorScope: z.ZodUnion<[z.ZodLiteral<"All">, z.ZodLiteral<"All">, z.ZodLiteral<"NetworkOnly">, z.ZodLiteral<"NetworkOnly">, z.ZodLiteral<"RateLimitOnly">, z.ZodLiteral<"RateLimitOnly">, z.ZodLiteral<"ServiceErrorOnly">, z.ZodLiteral<"ServiceErrorOnly">]>;
3301
3322
  EffortLevel: z.ZodNullable<z.ZodNumber>;
3323
+ AssistantPrefill: z.ZodNullable<z.ZodString>;
3324
+ PrefillFallbackMode: z.ZodUnion<[z.ZodLiteral<"Ignore">, z.ZodLiteral<"None">, z.ZodLiteral<"SystemInstruction">]>;
3302
3325
  Template: z.ZodString;
3303
3326
  Category: z.ZodNullable<z.ZodString>;
3304
3327
  Type: z.ZodString;
@@ -3335,6 +3358,7 @@ export declare const MJAIPromptSchema: z.ZodObject<{
3335
3358
  ValidationBehavior?: "None" | "Warn" | "Strict";
3336
3359
  RetryStrategy?: "Exponential" | "Fixed" | "Linear";
3337
3360
  SelectionStrategy?: "ByPower" | "Default" | "Specific";
3361
+ AssistantPrefill?: string;
3338
3362
  TemplateID?: string;
3339
3363
  ModelSpecificResponseFormat?: string;
3340
3364
  MinPowerRank?: number;
@@ -3360,6 +3384,7 @@ export declare const MJAIPromptSchema: z.ZodObject<{
3360
3384
  FailoverDelaySeconds?: number;
3361
3385
  FailoverModelStrategy?: "PreferDifferentModel" | "PreferSameModel" | "RequireSameModel";
3362
3386
  FailoverErrorScope?: "All" | "NetworkOnly" | "RateLimitOnly" | "ServiceErrorOnly";
3387
+ PrefillFallbackMode?: "None" | "Ignore" | "SystemInstruction";
3363
3388
  Template?: string;
3364
3389
  ResultSelectorPrompt?: string;
3365
3390
  RootResultSelectorPromptID?: string;
@@ -3393,6 +3418,7 @@ export declare const MJAIPromptSchema: z.ZodObject<{
3393
3418
  ValidationBehavior?: "None" | "Warn" | "Strict";
3394
3419
  RetryStrategy?: "Exponential" | "Fixed" | "Linear";
3395
3420
  SelectionStrategy?: "ByPower" | "Default" | "Specific";
3421
+ AssistantPrefill?: string;
3396
3422
  TemplateID?: string;
3397
3423
  ModelSpecificResponseFormat?: string;
3398
3424
  MinPowerRank?: number;
@@ -3418,6 +3444,7 @@ export declare const MJAIPromptSchema: z.ZodObject<{
3418
3444
  FailoverDelaySeconds?: number;
3419
3445
  FailoverModelStrategy?: "PreferDifferentModel" | "PreferSameModel" | "RequireSameModel";
3420
3446
  FailoverErrorScope?: "All" | "NetworkOnly" | "RateLimitOnly" | "ServiceErrorOnly";
3447
+ PrefillFallbackMode?: "None" | "Ignore" | "SystemInstruction";
3421
3448
  Template?: string;
3422
3449
  ResultSelectorPrompt?: string;
3423
3450
  RootResultSelectorPromptID?: string;
@@ -5054,6 +5081,7 @@ export declare const MJCompanyIntegrationRunSchema: z.ZodObject<{
5054
5081
  Status: z.ZodUnion<[z.ZodLiteral<"Failed">, z.ZodLiteral<"In Progress">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Success">]>;
5055
5082
  ErrorLog: z.ZodNullable<z.ZodString>;
5056
5083
  ConfigData: z.ZodNullable<z.ZodString>;
5084
+ ScheduledJobRunID: z.ZodNullable<z.ZodString>;
5057
5085
  Integration: z.ZodString;
5058
5086
  Company: z.ZodString;
5059
5087
  RunByUser: z.ZodString;
@@ -5066,6 +5094,7 @@ export declare const MJCompanyIntegrationRunSchema: z.ZodObject<{
5066
5094
  StartedAt?: Date;
5067
5095
  EndedAt?: Date;
5068
5096
  Company?: string;
5097
+ ScheduledJobRunID?: string;
5069
5098
  CompanyIntegrationID?: string;
5070
5099
  RunByUserID?: string;
5071
5100
  TotalRecords?: number;
@@ -5082,6 +5111,7 @@ export declare const MJCompanyIntegrationRunSchema: z.ZodObject<{
5082
5111
  StartedAt?: Date;
5083
5112
  EndedAt?: Date;
5084
5113
  Company?: string;
5114
+ ScheduledJobRunID?: string;
5085
5115
  CompanyIntegrationID?: string;
5086
5116
  RunByUserID?: string;
5087
5117
  TotalRecords?: number;
@@ -5162,6 +5192,7 @@ export declare const MJCompanyIntegrationSchema: z.ZodObject<{
5162
5192
  LockedAt: z.ZodNullable<z.ZodDate>;
5163
5193
  LockedByInstance: z.ZodNullable<z.ZodString>;
5164
5194
  LockExpiresAt: z.ZodNullable<z.ZodDate>;
5195
+ ScheduledJobID: z.ZodNullable<z.ZodString>;
5165
5196
  Company: z.ZodString;
5166
5197
  Integration: z.ZodString;
5167
5198
  DriverClassName: z.ZodNullable<z.ZodString>;
@@ -5203,6 +5234,7 @@ export declare const MJCompanyIntegrationSchema: z.ZodObject<{
5203
5234
  LockedAt?: Date;
5204
5235
  LockedByInstance?: string;
5205
5236
  LockExpiresAt?: Date;
5237
+ ScheduledJobID?: string;
5206
5238
  DriverClassName?: string;
5207
5239
  LastRunStartedAt?: Date;
5208
5240
  LastRunEndedAt?: Date;
@@ -5240,6 +5272,7 @@ export declare const MJCompanyIntegrationSchema: z.ZodObject<{
5240
5272
  LockedAt?: Date;
5241
5273
  LockedByInstance?: string;
5242
5274
  LockExpiresAt?: Date;
5275
+ ScheduledJobID?: string;
5243
5276
  DriverClassName?: string;
5244
5277
  LastRunStartedAt?: Date;
5245
5278
  LastRunEndedAt?: Date;
@@ -8247,6 +8280,112 @@ export declare const MJEntityFieldSchema: z.ZodObject<{
8247
8280
  RelatedEntityClassName?: string;
8248
8281
  }>;
8249
8282
  export type MJEntityFieldEntityType = z.infer<typeof MJEntityFieldSchema>;
8283
+ /**
8284
+ * zod schema definition for the entity MJ: Entity Organic Key Related Entities
8285
+ */
8286
+ export declare const MJEntityOrganicKeyRelatedEntitySchema: z.ZodObject<{
8287
+ ID: z.ZodString;
8288
+ EntityOrganicKeyID: z.ZodString;
8289
+ RelatedEntityID: z.ZodString;
8290
+ RelatedEntityFieldNames: z.ZodNullable<z.ZodString>;
8291
+ TransitiveObjectName: z.ZodNullable<z.ZodString>;
8292
+ TransitiveObjectMatchFieldNames: z.ZodNullable<z.ZodString>;
8293
+ TransitiveObjectOutputFieldName: z.ZodNullable<z.ZodString>;
8294
+ RelatedEntityJoinFieldName: z.ZodNullable<z.ZodString>;
8295
+ DisplayName: z.ZodNullable<z.ZodString>;
8296
+ DisplayLocation: z.ZodUnion<[z.ZodLiteral<"After Field Tabs">, z.ZodLiteral<"Before Field Tabs">]>;
8297
+ DisplayComponentID: z.ZodNullable<z.ZodString>;
8298
+ DisplayComponentConfiguration: z.ZodNullable<z.ZodString>;
8299
+ Sequence: z.ZodNumber;
8300
+ __mj_CreatedAt: z.ZodDate;
8301
+ __mj_UpdatedAt: z.ZodDate;
8302
+ EntityOrganicKey: z.ZodString;
8303
+ RelatedEntity: z.ZodString;
8304
+ }, "strip", z.ZodTypeAny, {
8305
+ ID?: string;
8306
+ __mj_CreatedAt?: Date;
8307
+ __mj_UpdatedAt?: Date;
8308
+ Sequence?: number;
8309
+ DisplayName?: string;
8310
+ RelatedEntityID?: string;
8311
+ RelatedEntity?: string;
8312
+ EntityOrganicKeyID?: string;
8313
+ RelatedEntityFieldNames?: string;
8314
+ TransitiveObjectName?: string;
8315
+ TransitiveObjectMatchFieldNames?: string;
8316
+ TransitiveObjectOutputFieldName?: string;
8317
+ RelatedEntityJoinFieldName?: string;
8318
+ DisplayLocation?: "After Field Tabs" | "Before Field Tabs";
8319
+ DisplayComponentID?: string;
8320
+ DisplayComponentConfiguration?: string;
8321
+ EntityOrganicKey?: string;
8322
+ }, {
8323
+ ID?: string;
8324
+ __mj_CreatedAt?: Date;
8325
+ __mj_UpdatedAt?: Date;
8326
+ Sequence?: number;
8327
+ DisplayName?: string;
8328
+ RelatedEntityID?: string;
8329
+ RelatedEntity?: string;
8330
+ EntityOrganicKeyID?: string;
8331
+ RelatedEntityFieldNames?: string;
8332
+ TransitiveObjectName?: string;
8333
+ TransitiveObjectMatchFieldNames?: string;
8334
+ TransitiveObjectOutputFieldName?: string;
8335
+ RelatedEntityJoinFieldName?: string;
8336
+ DisplayLocation?: "After Field Tabs" | "Before Field Tabs";
8337
+ DisplayComponentID?: string;
8338
+ DisplayComponentConfiguration?: string;
8339
+ EntityOrganicKey?: string;
8340
+ }>;
8341
+ export type MJEntityOrganicKeyRelatedEntityEntityType = z.infer<typeof MJEntityOrganicKeyRelatedEntitySchema>;
8342
+ /**
8343
+ * zod schema definition for the entity MJ: Entity Organic Keys
8344
+ */
8345
+ export declare const MJEntityOrganicKeySchema: z.ZodObject<{
8346
+ ID: z.ZodString;
8347
+ EntityID: z.ZodString;
8348
+ Name: z.ZodString;
8349
+ Description: z.ZodNullable<z.ZodString>;
8350
+ MatchFieldNames: z.ZodString;
8351
+ NormalizationStrategy: z.ZodUnion<[z.ZodLiteral<"Custom">, z.ZodLiteral<"ExactMatch">, z.ZodLiteral<"LowerCaseTrim">, z.ZodLiteral<"Trim">]>;
8352
+ CustomNormalizationExpression: z.ZodNullable<z.ZodString>;
8353
+ AutoCreateRelatedViewOnForm: z.ZodBoolean;
8354
+ Sequence: z.ZodNumber;
8355
+ Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Disabled">]>;
8356
+ __mj_CreatedAt: z.ZodDate;
8357
+ __mj_UpdatedAt: z.ZodDate;
8358
+ Entity: z.ZodString;
8359
+ }, "strip", z.ZodTypeAny, {
8360
+ ID?: string;
8361
+ EntityID?: string;
8362
+ __mj_CreatedAt?: Date;
8363
+ __mj_UpdatedAt?: Date;
8364
+ Entity?: string;
8365
+ Name?: string;
8366
+ Description?: string;
8367
+ Status?: "Active" | "Disabled";
8368
+ Sequence?: number;
8369
+ MatchFieldNames?: string;
8370
+ NormalizationStrategy?: "Custom" | "ExactMatch" | "LowerCaseTrim" | "Trim";
8371
+ CustomNormalizationExpression?: string;
8372
+ AutoCreateRelatedViewOnForm?: boolean;
8373
+ }, {
8374
+ ID?: string;
8375
+ EntityID?: string;
8376
+ __mj_CreatedAt?: Date;
8377
+ __mj_UpdatedAt?: Date;
8378
+ Entity?: string;
8379
+ Name?: string;
8380
+ Description?: string;
8381
+ Status?: "Active" | "Disabled";
8382
+ Sequence?: number;
8383
+ MatchFieldNames?: string;
8384
+ NormalizationStrategy?: "Custom" | "ExactMatch" | "LowerCaseTrim" | "Trim";
8385
+ CustomNormalizationExpression?: string;
8386
+ AutoCreateRelatedViewOnForm?: boolean;
8387
+ }>;
8388
+ export type MJEntityOrganicKeyEntityType = z.infer<typeof MJEntityOrganicKeySchema>;
8250
8389
  /**
8251
8390
  * zod schema definition for the entity MJ: Entity Permissions
8252
8391
  */
@@ -8446,6 +8585,9 @@ export declare const MJEntityRelationshipSchema: z.ZodObject<{
8446
8585
  RelatedEntityBaseView?: string;
8447
8586
  RelatedEntityCodeName?: string;
8448
8587
  RelatedEntityClassName?: string;
8588
+ DisplayLocation?: "After Field Tabs" | "Before Field Tabs";
8589
+ DisplayComponentID?: string;
8590
+ DisplayComponentConfiguration?: string;
8449
8591
  BundleInAPI?: boolean;
8450
8592
  IncludeInParentAllQuery?: boolean;
8451
8593
  EntityKeyField?: string;
@@ -8454,12 +8596,9 @@ export declare const MJEntityRelationshipSchema: z.ZodObject<{
8454
8596
  JoinEntityJoinField?: string;
8455
8597
  JoinEntityInverseJoinField?: string;
8456
8598
  DisplayInForm?: boolean;
8457
- DisplayLocation?: "After Field Tabs" | "Before Field Tabs";
8458
8599
  DisplayIconType?: "Custom" | "None" | "Related Entity Icon";
8459
8600
  DisplayIcon?: string;
8460
8601
  DisplayUserViewID?: string;
8461
- DisplayComponentID?: string;
8462
- DisplayComponentConfiguration?: string;
8463
8602
  AutoUpdateFromSchema?: boolean;
8464
8603
  AdditionalFieldsToInclude?: string;
8465
8604
  AutoUpdateAdditionalFieldsToInclude?: boolean;
@@ -8482,6 +8621,9 @@ export declare const MJEntityRelationshipSchema: z.ZodObject<{
8482
8621
  RelatedEntityBaseView?: string;
8483
8622
  RelatedEntityCodeName?: string;
8484
8623
  RelatedEntityClassName?: string;
8624
+ DisplayLocation?: "After Field Tabs" | "Before Field Tabs";
8625
+ DisplayComponentID?: string;
8626
+ DisplayComponentConfiguration?: string;
8485
8627
  BundleInAPI?: boolean;
8486
8628
  IncludeInParentAllQuery?: boolean;
8487
8629
  EntityKeyField?: string;
@@ -8490,12 +8632,9 @@ export declare const MJEntityRelationshipSchema: z.ZodObject<{
8490
8632
  JoinEntityJoinField?: string;
8491
8633
  JoinEntityInverseJoinField?: string;
8492
8634
  DisplayInForm?: boolean;
8493
- DisplayLocation?: "After Field Tabs" | "Before Field Tabs";
8494
8635
  DisplayIconType?: "Custom" | "None" | "Related Entity Icon";
8495
8636
  DisplayIcon?: string;
8496
8637
  DisplayUserViewID?: string;
8497
- DisplayComponentID?: string;
8498
- DisplayComponentConfiguration?: string;
8499
8638
  AutoUpdateFromSchema?: boolean;
8500
8639
  AdditionalFieldsToInclude?: string;
8501
8640
  AutoUpdateAdditionalFieldsToInclude?: boolean;
@@ -11879,9 +12018,9 @@ export declare const MJScheduledJobRunSchema: z.ZodObject<{
11879
12018
  Success?: boolean;
11880
12019
  ErrorMessage?: string;
11881
12020
  Details?: string;
12021
+ ScheduledJobID?: string;
11882
12022
  ExecutedByUserID?: string;
11883
12023
  ExecutedByUser?: string;
11884
- ScheduledJobID?: string;
11885
12024
  QueuedAt?: Date;
11886
12025
  ScheduledJob?: string;
11887
12026
  }, {
@@ -11894,9 +12033,9 @@ export declare const MJScheduledJobRunSchema: z.ZodObject<{
11894
12033
  Success?: boolean;
11895
12034
  ErrorMessage?: string;
11896
12035
  Details?: string;
12036
+ ScheduledJobID?: string;
11897
12037
  ExecutedByUserID?: string;
11898
12038
  ExecutedByUser?: string;
11899
- ScheduledJobID?: string;
11900
12039
  QueuedAt?: Date;
11901
12040
  ScheduledJob?: string;
11902
12041
  }>;
@@ -20986,7 +21125,7 @@ export declare class MJAICredentialBindingEntity extends BaseEntity<MJAICredenti
20986
21125
  set ID(value: string);
20987
21126
  /**
20988
21127
  * * Field Name: CredentialID
20989
- * * Display Name: Credential ID
21128
+ * * Display Name: Credential
20990
21129
  * * SQL Data Type: uniqueidentifier
20991
21130
  * * Related Entity/Foreign Key: MJ: Credentials (vwCredentials.ID)
20992
21131
  * * Description: Reference to the credential being bound.
@@ -21008,7 +21147,7 @@ export declare class MJAICredentialBindingEntity extends BaseEntity<MJAICredenti
21008
21147
  set BindingType(value: 'ModelVendor' | 'PromptModel' | 'Vendor');
21009
21148
  /**
21010
21149
  * * Field Name: AIVendorID
21011
- * * Display Name: AI Vendor ID
21150
+ * * Display Name: AI Vendor
21012
21151
  * * SQL Data Type: uniqueidentifier
21013
21152
  * * Related Entity/Foreign Key: MJ: AI Vendors (vwAIVendors.ID)
21014
21153
  * * Description: Reference to AIVendor when BindingType is Vendor. NULL otherwise.
@@ -21017,7 +21156,7 @@ export declare class MJAICredentialBindingEntity extends BaseEntity<MJAICredenti
21017
21156
  set AIVendorID(value: string | null);
21018
21157
  /**
21019
21158
  * * Field Name: AIModelVendorID
21020
- * * Display Name: AI Model Vendor ID
21159
+ * * Display Name: AI Model Vendor
21021
21160
  * * SQL Data Type: uniqueidentifier
21022
21161
  * * Related Entity/Foreign Key: MJ: AI Model Vendors (vwAIModelVendors.ID)
21023
21162
  * * Description: Reference to AIModelVendor when BindingType is ModelVendor. NULL otherwise.
@@ -21026,7 +21165,7 @@ export declare class MJAICredentialBindingEntity extends BaseEntity<MJAICredenti
21026
21165
  set AIModelVendorID(value: string | null);
21027
21166
  /**
21028
21167
  * * Field Name: AIPromptModelID
21029
- * * Display Name: AI Prompt Model ID
21168
+ * * Display Name: AI Prompt Model
21030
21169
  * * SQL Data Type: uniqueidentifier
21031
21170
  * * Related Entity/Foreign Key: MJ: AI Prompt Models (vwAIPromptModels.ID)
21032
21171
  * * Description: Reference to AIPromptModel when BindingType is PromptModel. NULL otherwise.
@@ -21044,7 +21183,7 @@ export declare class MJAICredentialBindingEntity extends BaseEntity<MJAICredenti
21044
21183
  set Priority(value: number);
21045
21184
  /**
21046
21185
  * * Field Name: IsActive
21047
- * * Display Name: Is Active
21186
+ * * Display Name: Active
21048
21187
  * * SQL Data Type: bit
21049
21188
  * * Default Value: 1
21050
21189
  * * Description: When false, this binding is ignored during credential resolution. Allows temporary disabling without deletion.
@@ -21067,25 +21206,25 @@ export declare class MJAICredentialBindingEntity extends BaseEntity<MJAICredenti
21067
21206
  get __mj_UpdatedAt(): Date;
21068
21207
  /**
21069
21208
  * * Field Name: Credential
21070
- * * Display Name: Credential
21209
+ * * Display Name: Credential Name
21071
21210
  * * SQL Data Type: nvarchar(200)
21072
21211
  */
21073
21212
  get Credential(): string;
21074
21213
  /**
21075
21214
  * * Field Name: AIVendor
21076
- * * Display Name: AI Vendor
21215
+ * * Display Name: Vendor Name
21077
21216
  * * SQL Data Type: nvarchar(50)
21078
21217
  */
21079
21218
  get AIVendor(): string | null;
21080
21219
  /**
21081
21220
  * * Field Name: AIModelVendor
21082
- * * Display Name: AI Model Vendor
21083
- * * SQL Data Type: nvarchar(50)
21221
+ * * Display Name: Model Vendor Name
21222
+ * * SQL Data Type: nvarchar(100)
21084
21223
  */
21085
21224
  get AIModelVendor(): string | null;
21086
21225
  /**
21087
21226
  * * Field Name: AIPromptModel
21088
- * * Display Name: AI Prompt Model
21227
+ * * Display Name: Prompt Model Name
21089
21228
  * * SQL Data Type: nvarchar(255)
21090
21229
  */
21091
21230
  get AIPromptModel(): string | null;
@@ -22036,14 +22175,31 @@ export declare class MJAIModelTypeEntity extends BaseEntity<MJAIModelTypeEntityT
22036
22175
  get DefaultOutputModalityID(): string;
22037
22176
  set DefaultOutputModalityID(value: string);
22038
22177
  /**
22178
+ * * Field Name: SupportsPrefill
22179
+ * * Display Name: Supports Prefill
22180
+ * * SQL Data Type: bit
22181
+ * * Default Value: 0
22182
+ * * Description: Whether models of this type generally support assistant prefill. This is a default value that individual AI Model Vendor records can override. For LLM types, many providers support prefill; for image/audio types, this is typically false.
22183
+ */
22184
+ get SupportsPrefill(): boolean;
22185
+ set SupportsPrefill(value: boolean);
22186
+ /**
22187
+ * * Field Name: PrefillFallbackText
22188
+ * * Display Name: Prefill Fallback Text
22189
+ * * SQL Data Type: nvarchar(MAX)
22190
+ * * Description: Default fallback instruction text used when PrefillFallbackMode is SystemInstruction and the provider does not support native prefill. Use {{prefill}} as a placeholder for the actual prefill text. Example: "IMPORTANT: You must begin your response with exactly: {{prefill}}". Individual AI Model Vendor records can override this. If null, a generic fallback is used.
22191
+ */
22192
+ get PrefillFallbackText(): string | null;
22193
+ set PrefillFallbackText(value: string | null);
22194
+ /**
22039
22195
  * * Field Name: DefaultInputModality
22040
- * * Display Name: Default Input Modality
22196
+ * * Display Name: Default Input Modality Name
22041
22197
  * * SQL Data Type: nvarchar(50)
22042
22198
  */
22043
22199
  get DefaultInputModality(): string;
22044
22200
  /**
22045
22201
  * * Field Name: DefaultOutputModality
22046
- * * Display Name: Default Output Modality
22202
+ * * Display Name: Default Output Modality Name
22047
22203
  * * SQL Data Type: nvarchar(50)
22048
22204
  */
22049
22205
  get DefaultOutputModality(): string;
@@ -22113,7 +22269,7 @@ export declare class MJAIModelVendorEntity extends BaseEntity<MJAIModelVendorEnt
22113
22269
  set ID(value: string);
22114
22270
  /**
22115
22271
  * * Field Name: ModelID
22116
- * * Display Name: Model ID
22272
+ * * Display Name: Model
22117
22273
  * * SQL Data Type: uniqueidentifier
22118
22274
  * * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
22119
22275
  */
@@ -22121,7 +22277,7 @@ export declare class MJAIModelVendorEntity extends BaseEntity<MJAIModelVendorEnt
22121
22277
  set ModelID(value: string);
22122
22278
  /**
22123
22279
  * * Field Name: VendorID
22124
- * * Display Name: Vendor ID
22280
+ * * Display Name: Vendor
22125
22281
  * * SQL Data Type: uniqueidentifier
22126
22282
  * * Related Entity/Foreign Key: MJ: AI Vendors (vwAIVendors.ID)
22127
22283
  */
@@ -22234,7 +22390,7 @@ export declare class MJAIModelVendorEntity extends BaseEntity<MJAIModelVendorEnt
22234
22390
  get __mj_UpdatedAt(): Date;
22235
22391
  /**
22236
22392
  * * Field Name: TypeID
22237
- * * Display Name: Type ID
22393
+ * * Display Name: Type
22238
22394
  * * SQL Data Type: uniqueidentifier
22239
22395
  * * Related Entity/Foreign Key: MJ: AI Vendor Type Definitions (vwAIVendorTypeDefinitions.ID)
22240
22396
  * * Description: References the type/role of the vendor for this model (e.g., model developer, inference provider)
@@ -22242,20 +22398,36 @@ export declare class MJAIModelVendorEntity extends BaseEntity<MJAIModelVendorEnt
22242
22398
  get TypeID(): string;
22243
22399
  set TypeID(value: string);
22244
22400
  /**
22401
+ * * Field Name: SupportsPrefill
22402
+ * * Display Name: Supports Prefill
22403
+ * * SQL Data Type: bit
22404
+ * * Description: Whether this specific model-vendor implementation supports assistant prefill. Overrides the AI Model Type default when set. NULL means inherit from the AI Model Type. For example, Claude via Anthropic supports prefill (true), but GPT-4 via OpenAI does not (false).
22405
+ */
22406
+ get SupportsPrefill(): boolean | null;
22407
+ set SupportsPrefill(value: boolean | null);
22408
+ /**
22409
+ * * Field Name: PrefillFallbackText
22410
+ * * Display Name: Prefill Fallback Text
22411
+ * * SQL Data Type: nvarchar(MAX)
22412
+ * * Description: Model-specific fallback instruction text used when PrefillFallbackMode is SystemInstruction and the provider does not support native prefill. Overrides the AI Model Type default. Use {{prefill}} as a placeholder. Allows tuning the fallback instruction per model since different models respond better to different phrasing.
22413
+ */
22414
+ get PrefillFallbackText(): string | null;
22415
+ set PrefillFallbackText(value: string | null);
22416
+ /**
22245
22417
  * * Field Name: Model
22246
- * * Display Name: Model
22418
+ * * Display Name: Model Name
22247
22419
  * * SQL Data Type: nvarchar(50)
22248
22420
  */
22249
22421
  get Model(): string;
22250
22422
  /**
22251
22423
  * * Field Name: Vendor
22252
- * * Display Name: Vendor
22424
+ * * Display Name: Vendor Name
22253
22425
  * * SQL Data Type: nvarchar(50)
22254
22426
  */
22255
22427
  get Vendor(): string;
22256
22428
  /**
22257
22429
  * * Field Name: Type
22258
- * * Display Name: Type
22430
+ * * Display Name: Type Name
22259
22431
  * * SQL Data Type: nvarchar(50)
22260
22432
  */
22261
22433
  get Type(): string;
@@ -22422,8 +22594,24 @@ export declare class MJAIModelEntity extends BaseEntity<MJAIModelEntityType> {
22422
22594
  get PriorVersionID(): string | null;
22423
22595
  set PriorVersionID(value: string | null);
22424
22596
  /**
22597
+ * * Field Name: SupportsPrefill
22598
+ * * Display Name: Supports Prefill
22599
+ * * SQL Data Type: bit
22600
+ * * Description: Whether this model supports assistant prefill. Overrides the AI Model Type default when set. NULL means inherit from the AI Model Type. Can be further overridden per-vendor in AI Model Vendor.
22601
+ */
22602
+ get SupportsPrefill(): boolean | null;
22603
+ set SupportsPrefill(value: boolean | null);
22604
+ /**
22605
+ * * Field Name: PrefillFallbackText
22606
+ * * Display Name: Prefill Fallback Text
22607
+ * * SQL Data Type: nvarchar(MAX)
22608
+ * * Description: Model-level fallback instruction text used when PrefillFallbackMode is SystemInstruction and the provider does not support native prefill. Overrides the AI Model Type default, can be further overridden per-vendor in AI Model Vendor. Use {{prefill}} as a placeholder.
22609
+ */
22610
+ get PrefillFallbackText(): string | null;
22611
+ set PrefillFallbackText(value: string | null);
22612
+ /**
22425
22613
  * * Field Name: AIModelType
22426
- * * Display Name: AI Model Type
22614
+ * * Display Name: Model Type Name
22427
22615
  * * SQL Data Type: nvarchar(50)
22428
22616
  */
22429
22617
  get AIModelType(): string;
@@ -23121,7 +23309,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23121
23309
  set Result(value: string | null);
23122
23310
  /**
23123
23311
  * * Field Name: TokensUsed
23124
- * * Display Name: Tokens Used
23312
+ * * Display Name: Total Tokens Used
23125
23313
  * * SQL Data Type: int
23126
23314
  * * Description: Total number of tokens used (prompt + completion).
23127
23315
  */
@@ -23129,7 +23317,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23129
23317
  set TokensUsed(value: number | null);
23130
23318
  /**
23131
23319
  * * Field Name: TokensPrompt
23132
- * * Display Name: Tokens Prompt
23320
+ * * Display Name: Prompt Tokens
23133
23321
  * * SQL Data Type: int
23134
23322
  * * Description: Number of tokens in the prompt.
23135
23323
  */
@@ -23137,7 +23325,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23137
23325
  set TokensPrompt(value: number | null);
23138
23326
  /**
23139
23327
  * * Field Name: TokensCompletion
23140
- * * Display Name: Tokens Completion
23328
+ * * Display Name: Completion Tokens
23141
23329
  * * SQL Data Type: int
23142
23330
  * * Description: Number of tokens in the completion/result.
23143
23331
  */
@@ -23184,7 +23372,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23184
23372
  get __mj_UpdatedAt(): Date;
23185
23373
  /**
23186
23374
  * * Field Name: ParentID
23187
- * * Display Name: Parent ID
23375
+ * * Display Name: Parent Run
23188
23376
  * * SQL Data Type: uniqueidentifier
23189
23377
  * * Related Entity/Foreign Key: MJ: AI Prompt Runs (vwAIPromptRuns.ID)
23190
23378
  * * Description: References the parent AIPromptRun.ID for hierarchical execution tracking. NULL for top-level runs, populated for parallel children and result selector runs.
@@ -23216,7 +23404,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23216
23404
  set ExecutionOrder(value: number | null);
23217
23405
  /**
23218
23406
  * * Field Name: AgentRunID
23219
- * * Display Name: Agent Run ID
23407
+ * * Display Name: Agent Run
23220
23408
  * * SQL Data Type: uniqueidentifier
23221
23409
  * * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
23222
23410
  * * Description: Optional reference to the AIAgentRun that initiated this prompt execution. Links prompt runs to their parent agent runs for comprehensive execution tracking.
@@ -23241,7 +23429,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23241
23429
  set CostCurrency(value: string | null);
23242
23430
  /**
23243
23431
  * * Field Name: TokensUsedRollup
23244
- * * Display Name: Tokens Used Rollup
23432
+ * * Display Name: Total Tokens (Rollup)
23245
23433
  * * SQL Data Type: int
23246
23434
  * * Description: Total tokens used including this execution and all child/grandchild executions. This provides a complete view of token usage for hierarchical prompt trees. Calculated as TokensPromptRollup + TokensCompletionRollup.
23247
23435
  */
@@ -23249,7 +23437,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23249
23437
  set TokensUsedRollup(value: number | null);
23250
23438
  /**
23251
23439
  * * Field Name: TokensPromptRollup
23252
- * * Display Name: Tokens Prompt Rollup
23440
+ * * Display Name: Prompt Tokens (Rollup)
23253
23441
  * * SQL Data Type: int
23254
23442
  * * Description: Total prompt/input tokens including this execution and all child/grandchild executions. For leaf nodes (no children), this equals TokensPrompt. For parent nodes, this includes the sum of all descendant prompt tokens.
23255
23443
  */
@@ -23257,7 +23445,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23257
23445
  set TokensPromptRollup(value: number | null);
23258
23446
  /**
23259
23447
  * * Field Name: TokensCompletionRollup
23260
- * * Display Name: Tokens Completion Rollup
23448
+ * * Display Name: Completion Tokens (Rollup)
23261
23449
  * * SQL Data Type: int
23262
23450
  * * Description: Total completion/output tokens including this execution and all child/grandchild executions. For leaf nodes (no children), this equals TokensCompletion. For parent nodes, this includes the sum of all descendant completion tokens.
23263
23451
  */
@@ -23337,7 +23525,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23337
23525
  set ResponseFormat(value: string | null);
23338
23526
  /**
23339
23527
  * * Field Name: LogProbs
23340
- * * Display Name: Log Probs
23528
+ * * Display Name: Log Probabilities
23341
23529
  * * SQL Data Type: bit
23342
23530
  * * Description: Whether log probabilities were requested for this run
23343
23531
  */
@@ -23345,7 +23533,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23345
23533
  set LogProbs(value: boolean | null);
23346
23534
  /**
23347
23535
  * * Field Name: TopLogProbs
23348
- * * Display Name: Top Log Probs
23536
+ * * Display Name: Top Log Probabilities
23349
23537
  * * SQL Data Type: int
23350
23538
  * * Description: Number of top log probabilities requested per token (if LogProbs is true)
23351
23539
  */
@@ -23498,7 +23686,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23498
23686
  set FailoverDurations(value: string | null);
23499
23687
  /**
23500
23688
  * * Field Name: OriginalModelID
23501
- * * Display Name: Original Model ID
23689
+ * * Display Name: Original Model
23502
23690
  * * SQL Data Type: uniqueidentifier
23503
23691
  * * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
23504
23692
  * * Description: The AI Model ID that was originally attempted before any failovers
@@ -23515,7 +23703,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23515
23703
  set OriginalRequestStartTime(value: Date | null);
23516
23704
  /**
23517
23705
  * * Field Name: TotalFailoverDuration
23518
- * * Display Name: Total Failover Duration
23706
+ * * Display Name: Total Failover Duration (ms)
23519
23707
  * * SQL Data Type: int
23520
23708
  * * Description: Total time spent in failover attempts in milliseconds
23521
23709
  */
@@ -23523,7 +23711,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23523
23711
  set TotalFailoverDuration(value: number | null);
23524
23712
  /**
23525
23713
  * * Field Name: RerunFromPromptRunID
23526
- * * Display Name: Rerun From Prompt Run ID
23714
+ * * Display Name: Rerun From
23527
23715
  * * SQL Data Type: uniqueidentifier
23528
23716
  * * Related Entity/Foreign Key: MJ: AI Prompt Runs (vwAIPromptRuns.ID)
23529
23717
  * * Description: If this run was initiated as a re-run of another prompt run, this field links back to the original run ID
@@ -23611,7 +23799,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23611
23799
  set CacheKey(value: string | null);
23612
23800
  /**
23613
23801
  * * Field Name: JudgeID
23614
- * * Display Name: Judge ID
23802
+ * * Display Name: Judge
23615
23803
  * * SQL Data Type: uniqueidentifier
23616
23804
  * * Related Entity/Foreign Key: MJ: AI Prompts (vwAIPrompts.ID)
23617
23805
  * * Description: ID of the AIPrompt used as a judge to evaluate and rank multiple parallel execution results
@@ -23646,7 +23834,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23646
23834
  set StreamingEnabled(value: boolean);
23647
23835
  /**
23648
23836
  * * Field Name: FirstTokenTime
23649
- * * Display Name: First Token Time
23837
+ * * Display Name: First Token Time (ms)
23650
23838
  * * SQL Data Type: int
23651
23839
  * * Description: Time in milliseconds from request initiation to receiving the first token from the model
23652
23840
  */
@@ -23662,7 +23850,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23662
23850
  set ErrorDetails(value: string | null);
23663
23851
  /**
23664
23852
  * * Field Name: ChildPromptID
23665
- * * Display Name: Child Prompt ID
23853
+ * * Display Name: Child Prompt
23666
23854
  * * SQL Data Type: uniqueidentifier
23667
23855
  * * Related Entity/Foreign Key: MJ: AI Prompts (vwAIPrompts.ID)
23668
23856
  * * Description: References the specific child prompt that was executed as part of hierarchical prompt composition. NULL for regular prompts or parent prompts that don't directly execute a child.
@@ -23671,7 +23859,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23671
23859
  set ChildPromptID(value: string | null);
23672
23860
  /**
23673
23861
  * * Field Name: QueueTime
23674
- * * Display Name: Queue Time
23862
+ * * Display Name: Queue Time (ms)
23675
23863
  * * SQL Data Type: int
23676
23864
  * * Description: Queue time in milliseconds before the model started processing the request. Provider-specific timing metric.
23677
23865
  */
@@ -23679,7 +23867,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23679
23867
  set QueueTime(value: number | null);
23680
23868
  /**
23681
23869
  * * Field Name: PromptTime
23682
- * * Display Name: Prompt Time
23870
+ * * Display Name: Prompt Time (ms)
23683
23871
  * * SQL Data Type: int
23684
23872
  * * Description: Time in milliseconds for the model to ingest and process the prompt. Provider-specific timing metric.
23685
23873
  */
@@ -23687,7 +23875,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23687
23875
  set PromptTime(value: number | null);
23688
23876
  /**
23689
23877
  * * Field Name: CompletionTime
23690
- * * Display Name: Completion Time
23878
+ * * Display Name: Completion Time (ms)
23691
23879
  * * SQL Data Type: int
23692
23880
  * * Description: Time in milliseconds for the model to generate the completion/response tokens. Provider-specific timing metric.
23693
23881
  */
@@ -23727,7 +23915,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23727
23915
  set Comments(value: string | null);
23728
23916
  /**
23729
23917
  * * Field Name: TestRunID
23730
- * * Display Name: Test Run ID
23918
+ * * Display Name: Test Run
23731
23919
  * * SQL Data Type: uniqueidentifier
23732
23920
  * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
23733
23921
  * * Description: Optional Foreign Key - Links this prompt run to a test run if this prompt execution was part of a test. Enables testing individual prompts for quality and consistency before agent integration.
@@ -23735,6 +23923,14 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23735
23923
  get TestRunID(): string | null;
23736
23924
  set TestRunID(value: string | null);
23737
23925
  /**
23926
+ * * Field Name: AssistantPrefill
23927
+ * * Display Name: Assistant Prefill
23928
+ * * SQL Data Type: nvarchar(MAX)
23929
+ * * Description: The assistant prefill text that was used during this prompt execution. Records whether native prefill or fallback was applied. NULL means no prefill was used.
23930
+ */
23931
+ get AssistantPrefill(): string | null;
23932
+ set AssistantPrefill(value: string | null);
23933
+ /**
23738
23934
  * * Field Name: Prompt
23739
23935
  * * Display Name: Prompt
23740
23936
  * * SQL Data Type: nvarchar(255)
@@ -23784,7 +23980,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23784
23980
  get OriginalModel(): string | null;
23785
23981
  /**
23786
23982
  * * Field Name: RerunFromPromptRun
23787
- * * Display Name: Rerun From Prompt Run
23983
+ * * Display Name: Rerun From
23788
23984
  * * SQL Data Type: nvarchar(255)
23789
23985
  */
23790
23986
  get RerunFromPromptRun(): string | null;
@@ -23808,13 +24004,13 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
23808
24004
  get TestRun(): string | null;
23809
24005
  /**
23810
24006
  * * Field Name: RootParentID
23811
- * * Display Name: Root Parent ID
24007
+ * * Display Name: Root Parent
23812
24008
  * * SQL Data Type: uniqueidentifier
23813
24009
  */
23814
24010
  get RootParentID(): string | null;
23815
24011
  /**
23816
24012
  * * Field Name: RootRerunFromPromptRunID
23817
- * * Display Name: Root Rerun From Prompt Run ID
24013
+ * * Display Name: Root Rerun From
23818
24014
  * * SQL Data Type: uniqueidentifier
23819
24015
  */
23820
24016
  get RootRerunFromPromptRunID(): string | null;
@@ -24009,7 +24205,7 @@ export declare class MJAIPromptEntity extends BaseEntity<MJAIPromptEntityType> {
24009
24205
  set Description(value: string | null);
24010
24206
  /**
24011
24207
  * * Field Name: TemplateID
24012
- * * Display Name: Template ID
24208
+ * * Display Name: Template
24013
24209
  * * SQL Data Type: uniqueidentifier
24014
24210
  * * Related Entity/Foreign Key: MJ: Templates (vwTemplates.ID)
24015
24211
  * * Description: Reference to the template used for the prompt.
@@ -24018,7 +24214,7 @@ export declare class MJAIPromptEntity extends BaseEntity<MJAIPromptEntityType> {
24018
24214
  set TemplateID(value: string);
24019
24215
  /**
24020
24216
  * * Field Name: CategoryID
24021
- * * Display Name: Category ID
24217
+ * * Display Name: Category
24022
24218
  * * SQL Data Type: uniqueidentifier
24023
24219
  * * Related Entity/Foreign Key: MJ: AI Prompt Categories (vwAIPromptCategories.ID)
24024
24220
  * * Description: Reference to the category the prompt belongs to.
@@ -24027,7 +24223,7 @@ export declare class MJAIPromptEntity extends BaseEntity<MJAIPromptEntityType> {
24027
24223
  set CategoryID(value: string | null);
24028
24224
  /**
24029
24225
  * * Field Name: TypeID
24030
- * * Display Name: Type ID
24226
+ * * Display Name: Type
24031
24227
  * * SQL Data Type: uniqueidentifier
24032
24228
  * * Related Entity/Foreign Key: MJ: AI Prompt Types (vwAIPromptTypes.ID)
24033
24229
  * * Description: Reference to the type of the prompt.
@@ -24086,7 +24282,7 @@ export declare class MJAIPromptEntity extends BaseEntity<MJAIPromptEntityType> {
24086
24282
  set ModelSpecificResponseFormat(value: string | null);
24087
24283
  /**
24088
24284
  * * Field Name: AIModelTypeID
24089
- * * Display Name: AI Model Type ID
24285
+ * * Display Name: AI Model Type
24090
24286
  * * SQL Data Type: uniqueidentifier
24091
24287
  * * Related Entity/Foreign Key: MJ: AI Model Types (vwAIModelTypes.ID)
24092
24288
  * * Description: References the type of AI model this prompt is designed for (LLM, Image, Audio, etc.).
@@ -24095,7 +24291,7 @@ export declare class MJAIPromptEntity extends BaseEntity<MJAIPromptEntityType> {
24095
24291
  set AIModelTypeID(value: string | null);
24096
24292
  /**
24097
24293
  * * Field Name: MinPowerRank
24098
- * * Display Name: Min Power Rank
24294
+ * * Display Name: Minimum Power Rank
24099
24295
  * * SQL Data Type: int
24100
24296
  * * Default Value: 0
24101
24297
  * * Description: The minimum power rank required for models to be considered for this prompt.
@@ -24155,7 +24351,7 @@ export declare class MJAIPromptEntity extends BaseEntity<MJAIPromptEntityType> {
24155
24351
  set ParallelCount(value: number | null);
24156
24352
  /**
24157
24353
  * * Field Name: ParallelConfigParam
24158
- * * Display Name: Parallel Config Param
24354
+ * * Display Name: Parallel Config Parameter
24159
24355
  * * SQL Data Type: nvarchar(100)
24160
24356
  * * Description: When ParallelizationMode is ConfigParam, specifies the name of the configuration parameter that contains the parallel count.
24161
24357
  */
@@ -24210,7 +24406,7 @@ export declare class MJAIPromptEntity extends BaseEntity<MJAIPromptEntityType> {
24210
24406
  set MaxRetries(value: number);
24211
24407
  /**
24212
24408
  * * Field Name: RetryDelayMS
24213
- * * Display Name: Retry Delay MS
24409
+ * * Display Name: Retry Delay (ms)
24214
24410
  * * SQL Data Type: int
24215
24411
  * * Default Value: 0
24216
24412
  * * Description: Delay between retry attempts in milliseconds.
@@ -24233,7 +24429,7 @@ export declare class MJAIPromptEntity extends BaseEntity<MJAIPromptEntityType> {
24233
24429
  set RetryStrategy(value: 'Exponential' | 'Fixed' | 'Linear');
24234
24430
  /**
24235
24431
  * * Field Name: ResultSelectorPromptID
24236
- * * Display Name: Result Selector Prompt ID
24432
+ * * Display Name: Result Selector Prompt
24237
24433
  * * SQL Data Type: uniqueidentifier
24238
24434
  * * Related Entity/Foreign Key: MJ: AI Prompts (vwAIPrompts.ID)
24239
24435
  * * Description: References another prompt that selects the best result from multiple parallel executions.
@@ -24251,7 +24447,7 @@ export declare class MJAIPromptEntity extends BaseEntity<MJAIPromptEntityType> {
24251
24447
  set EnableCaching(value: boolean);
24252
24448
  /**
24253
24449
  * * Field Name: CacheTTLSeconds
24254
- * * Display Name: Cache TTL Seconds
24450
+ * * Display Name: Cache TTL (Seconds)
24255
24451
  * * SQL Data Type: int
24256
24452
  * * Description: Time-to-live in seconds for cached results. NULL means results never expire.
24257
24453
  */
@@ -24307,7 +24503,7 @@ export declare class MJAIPromptEntity extends BaseEntity<MJAIPromptEntityType> {
24307
24503
  set CacheMustMatchAgent(value: boolean);
24308
24504
  /**
24309
24505
  * * Field Name: CacheMustMatchConfig
24310
- * * Display Name: Cache Must Match Config
24506
+ * * Display Name: Cache Must Match Configuration
24311
24507
  * * SQL Data Type: bit
24312
24508
  * * Default Value: 0
24313
24509
  * * Description: When true, the configuration must match for a cache hit. When false, results from any configuration can be used.
@@ -24408,7 +24604,7 @@ export declare class MJAIPromptEntity extends BaseEntity<MJAIPromptEntityType> {
24408
24604
  set StopSequences(value: string | null);
24409
24605
  /**
24410
24606
  * * Field Name: IncludeLogProbs
24411
- * * Display Name: Include Log Probs
24607
+ * * Display Name: Include Log Probabilities
24412
24608
  * * SQL Data Type: bit
24413
24609
  * * Default Value: 0
24414
24610
  * * Description: Default setting for including log probabilities in the response. Can be overridden at runtime.
@@ -24417,7 +24613,7 @@ export declare class MJAIPromptEntity extends BaseEntity<MJAIPromptEntityType> {
24417
24613
  set IncludeLogProbs(value: boolean | null);
24418
24614
  /**
24419
24615
  * * Field Name: TopLogProbs
24420
- * * Display Name: Top Log Probs
24616
+ * * Display Name: Top Log Probabilities
24421
24617
  * * SQL Data Type: int
24422
24618
  * * Description: Default number of top log probabilities to include when IncludeLogProbs is true. Can be overridden at runtime.
24423
24619
  */
@@ -24453,7 +24649,7 @@ export declare class MJAIPromptEntity extends BaseEntity<MJAIPromptEntityType> {
24453
24649
  set FailoverMaxAttempts(value: number | null);
24454
24650
  /**
24455
24651
  * * Field Name: FailoverDelaySeconds
24456
- * * Display Name: Failover Delay Seconds
24652
+ * * Display Name: Failover Delay (seconds)
24457
24653
  * * SQL Data Type: int
24458
24654
  * * Default Value: 5
24459
24655
  * * Description: Initial delay in seconds between failover attempts
@@ -24505,38 +24701,60 @@ export declare class MJAIPromptEntity extends BaseEntity<MJAIPromptEntityType> {
24505
24701
  get EffortLevel(): number | null;
24506
24702
  set EffortLevel(value: number | null);
24507
24703
  /**
24704
+ * * Field Name: AssistantPrefill
24705
+ * * Display Name: Assistant Prefill
24706
+ * * SQL Data Type: nvarchar(MAX)
24707
+ * * Description: Optional text to prefill the assistant response. The model will continue generating from where this text ends. Used with StopSequences for structured output extraction (e.g., prefill with \`\`\`json to get raw JSON). Only effective with providers that support prefill natively; see PrefillFallbackMode for non-supporting providers.
24708
+ */
24709
+ get AssistantPrefill(): string | null;
24710
+ set AssistantPrefill(value: string | null);
24711
+ /**
24712
+ * * Field Name: PrefillFallbackMode
24713
+ * * Display Name: Prefill Fallback Mode
24714
+ * * SQL Data Type: nvarchar(20)
24715
+ * * Default Value: Ignore
24716
+ * * Value List Type: List
24717
+ * * Possible Values
24718
+ * * Ignore
24719
+ * * None
24720
+ * * SystemInstruction
24721
+ * * Description: Controls behavior when the selected provider does not support native assistant prefill. Ignore = silently skip prefill, SystemInstruction = inject a system message instructing the model to start its response with the prefill text (uses fallback text from AI Model Vendor or AI Model Type), None = no fallback (prefill only works with supported providers).
24722
+ */
24723
+ get PrefillFallbackMode(): 'Ignore' | 'None' | 'SystemInstruction';
24724
+ set PrefillFallbackMode(value: 'Ignore' | 'None' | 'SystemInstruction');
24725
+ /**
24508
24726
  * * Field Name: Template
24509
- * * Display Name: Template
24727
+ * * Display Name: Template Text
24510
24728
  * * SQL Data Type: nvarchar(255)
24511
24729
  */
24512
24730
  get Template(): string;
24513
24731
  /**
24514
24732
  * * Field Name: Category
24515
- * * Display Name: Category
24733
+ * * Display Name: Category Name
24516
24734
  * * SQL Data Type: nvarchar(255)
24517
24735
  */
24518
24736
  get Category(): string | null;
24519
24737
  /**
24520
24738
  * * Field Name: Type
24521
- * * Display Name: Type
24739
+ * * Display Name: Type Name
24522
24740
  * * SQL Data Type: nvarchar(255)
24523
24741
  */
24524
24742
  get Type(): string;
24525
24743
  /**
24526
24744
  * * Field Name: AIModelType
24527
- * * Display Name: AI Model Type
24745
+ * * Display Name: AI Model Type Name
24528
24746
  * * SQL Data Type: nvarchar(50)
24529
24747
  */
24530
24748
  get AIModelType(): string | null;
24531
24749
  /**
24532
24750
  * * Field Name: ResultSelectorPrompt
24533
- * * Display Name: Result Selector Prompt
24751
+ * * Display Name: Result Selector Prompt Name
24534
24752
  * * SQL Data Type: nvarchar(255)
24535
24753
  */
24536
24754
  get ResultSelectorPrompt(): string | null;
24537
24755
  /**
24538
24756
  * * Field Name: RootResultSelectorPromptID
24539
- * * Display Name: Root Result Selector Prompt ID
24757
+ * * Display Name: Root Result Selector Prompt
24540
24758
  * * SQL Data Type: uniqueidentifier
24541
24759
  */
24542
24760
  get RootResultSelectorPromptID(): string | null;
@@ -29020,7 +29238,7 @@ export declare class MJCompanyIntegrationRunEntity extends BaseEntity<MJCompanyI
29020
29238
  set CompanyIntegrationID(value: string);
29021
29239
  /**
29022
29240
  * * Field Name: RunByUserID
29023
- * * Display Name: Run By User
29241
+ * * Display Name: Run By User ID
29024
29242
  * * SQL Data Type: uniqueidentifier
29025
29243
  * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
29026
29244
  */
@@ -29094,13 +29312,22 @@ export declare class MJCompanyIntegrationRunEntity extends BaseEntity<MJCompanyI
29094
29312
  set ErrorLog(value: string | null);
29095
29313
  /**
29096
29314
  * * Field Name: ConfigData
29097
- * * Display Name: Config Data
29315
+ * * Display Name: Configuration Data
29098
29316
  * * SQL Data Type: nvarchar(MAX)
29099
29317
  * * Description: Optional configuration data in JSON format for the request that started the integration run for audit purposes.
29100
29318
  */
29101
29319
  get ConfigData(): string | null;
29102
29320
  set ConfigData(value: string | null);
29103
29321
  /**
29322
+ * * Field Name: ScheduledJobRunID
29323
+ * * Display Name: Scheduled Job Run
29324
+ * * SQL Data Type: uniqueidentifier
29325
+ * * Related Entity/Foreign Key: MJ: Scheduled Job Runs (vwScheduledJobRuns.ID)
29326
+ * * Description: Links to the scheduled job run that triggered this integration sync. NULL for manually-triggered syncs.
29327
+ */
29328
+ get ScheduledJobRunID(): string | null;
29329
+ set ScheduledJobRunID(value: string | null);
29330
+ /**
29104
29331
  * * Field Name: Integration
29105
29332
  * * Display Name: Integration
29106
29333
  * * SQL Data Type: nvarchar(100)
@@ -29331,7 +29558,7 @@ export declare class MJCompanyIntegrationEntity extends BaseEntity<MJCompanyInte
29331
29558
  set ExternalSystemID(value: string | null);
29332
29559
  /**
29333
29560
  * * Field Name: IsExternalSystemReadOnly
29334
- * * Display Name: External System Read Only
29561
+ * * Display Name: Is Read Only
29335
29562
  * * SQL Data Type: bit
29336
29563
  * * Default Value: 0
29337
29564
  * * Description: Indicates if data can only be read from the external system, not written back.
@@ -29499,14 +29726,23 @@ export declare class MJCompanyIntegrationEntity extends BaseEntity<MJCompanyInte
29499
29726
  get LockExpiresAt(): Date | null;
29500
29727
  set LockExpiresAt(value: Date | null);
29501
29728
  /**
29729
+ * * Field Name: ScheduledJobID
29730
+ * * Display Name: Scheduled Job
29731
+ * * SQL Data Type: uniqueidentifier
29732
+ * * Related Entity/Foreign Key: MJ: Scheduled Jobs (vwScheduledJobs.ID)
29733
+ * * Description: Associates this company integration with a scheduled job for automatic sync execution. NULL if no schedule is configured.
29734
+ */
29735
+ get ScheduledJobID(): string | null;
29736
+ set ScheduledJobID(value: string | null);
29737
+ /**
29502
29738
  * * Field Name: Company
29503
- * * Display Name: Company
29739
+ * * Display Name: Company Name
29504
29740
  * * SQL Data Type: nvarchar(50)
29505
29741
  */
29506
29742
  get Company(): string;
29507
29743
  /**
29508
29744
  * * Field Name: Integration
29509
- * * Display Name: Integration
29745
+ * * Display Name: Integration Name
29510
29746
  * * SQL Data Type: nvarchar(100)
29511
29747
  */
29512
29748
  get Integration(): string;
@@ -29524,7 +29760,7 @@ export declare class MJCompanyIntegrationEntity extends BaseEntity<MJCompanyInte
29524
29760
  get DriverImportPath(): string | null;
29525
29761
  /**
29526
29762
  * * Field Name: LastRunID
29527
- * * Display Name: Last Run ID
29763
+ * * Display Name: Last Run
29528
29764
  * * SQL Data Type: uniqueidentifier
29529
29765
  */
29530
29766
  get LastRunID(): string | null;
@@ -37907,6 +38143,321 @@ export declare class MJEntityFieldEntity extends BaseEntity<MJEntityFieldEntityT
37907
38143
  */
37908
38144
  get RelatedEntityClassName(): string | null;
37909
38145
  }
38146
+ /**
38147
+ * MJ: Entity Organic Key Related Entities - strongly typed entity sub-class
38148
+ * * Schema: __mj
38149
+ * * Base Table: EntityOrganicKeyRelatedEntity
38150
+ * * Base View: vwEntityOrganicKeyRelatedEntities
38151
+ * * @description Maps a related entity to an organic key, defining how records are matched — either by direct field comparison or transitively via a SQL view/table that bridges multiple hops.
38152
+ * * Primary Key: ID
38153
+ * @extends {BaseEntity}
38154
+ * @class
38155
+ * @public
38156
+ */
38157
+ export declare class MJEntityOrganicKeyRelatedEntityEntity extends BaseEntity<MJEntityOrganicKeyRelatedEntityEntityType> {
38158
+ /**
38159
+ * Loads the MJ: Entity Organic Key Related Entities record from the database
38160
+ * @param ID: string - primary key value to load the MJ: Entity Organic Key Related Entities record.
38161
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
38162
+ * @returns {Promise<boolean>} - true if successful, false otherwise
38163
+ * @public
38164
+ * @async
38165
+ * @memberof MJEntityOrganicKeyRelatedEntityEntity
38166
+ * @method
38167
+ * @override
38168
+ */
38169
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
38170
+ /**
38171
+ * Validate() method override for MJ: Entity Organic Key Related Entities entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
38172
+ * * Table-Level: To ensure clear data mapping, you must define a relationship using either the Related Entity Field Names or a complete Transitive Object configuration. This constraint prevents ambiguous setups by ensuring that only one of these two methods is used and that all required fields for a transitive relationship are provided together.
38173
+ * @public
38174
+ * @method
38175
+ * @override
38176
+ */
38177
+ Validate(): ValidationResult;
38178
+ /**
38179
+ * To ensure clear data mapping, you must define a relationship using either the Related Entity Field Names or a complete Transitive Object configuration. This constraint prevents ambiguous setups by ensuring that only one of these two methods is used and that all required fields for a transitive relationship are provided together.
38180
+ * @param result - the ValidationResult object to add any errors or warnings to
38181
+ * @public
38182
+ * @method
38183
+ */
38184
+ ValidateRelatedEntityOrTransitiveMapping(result: ValidationResult): void;
38185
+ /**
38186
+ * * Field Name: ID
38187
+ * * Display Name: ID
38188
+ * * SQL Data Type: uniqueidentifier
38189
+ * * Default Value: newsequentialid()
38190
+ */
38191
+ get ID(): string;
38192
+ set ID(value: string);
38193
+ /**
38194
+ * * Field Name: EntityOrganicKeyID
38195
+ * * Display Name: Organic Key ID
38196
+ * * SQL Data Type: uniqueidentifier
38197
+ * * Related Entity/Foreign Key: MJ: Entity Organic Keys (vwEntityOrganicKeys.ID)
38198
+ */
38199
+ get EntityOrganicKeyID(): string;
38200
+ set EntityOrganicKeyID(value: string);
38201
+ /**
38202
+ * * Field Name: RelatedEntityID
38203
+ * * Display Name: Related Entity ID
38204
+ * * SQL Data Type: uniqueidentifier
38205
+ * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
38206
+ */
38207
+ get RelatedEntityID(): string;
38208
+ set RelatedEntityID(value: string);
38209
+ /**
38210
+ * * Field Name: RelatedEntityFieldNames
38211
+ * * Display Name: Related Entity Fields
38212
+ * * SQL Data Type: nvarchar(500)
38213
+ * * Description: Comma-delimited field names in the related entity, positionally matching MatchFieldNames on the parent key. NULL when using transitive matching.
38214
+ */
38215
+ get RelatedEntityFieldNames(): string | null;
38216
+ set RelatedEntityFieldNames(value: string | null);
38217
+ /**
38218
+ * * Field Name: TransitiveObjectName
38219
+ * * Display Name: Transitive Object Name
38220
+ * * SQL Data Type: nvarchar(500)
38221
+ * * Description: Schema-qualified name of a SQL view or table that bridges the organic key to the related entity (e.g., "dbo.vwContactRecipientBridge"). This object encapsulates any number of join hops. NULL for direct matches.
38222
+ */
38223
+ get TransitiveObjectName(): string | null;
38224
+ set TransitiveObjectName(value: string | null);
38225
+ /**
38226
+ * * Field Name: TransitiveObjectMatchFieldNames
38227
+ * * Display Name: Transitive Match Fields
38228
+ * * SQL Data Type: nvarchar(500)
38229
+ * * Description: Comma-delimited field names in the transitive object that match the organic key values, positionally aligned with MatchFieldNames. NULL for direct matches.
38230
+ */
38231
+ get TransitiveObjectMatchFieldNames(): string | null;
38232
+ set TransitiveObjectMatchFieldNames(value: string | null);
38233
+ /**
38234
+ * * Field Name: TransitiveObjectOutputFieldName
38235
+ * * Display Name: Transitive Output Field
38236
+ * * SQL Data Type: nvarchar(255)
38237
+ * * Description: The field in the transitive object that produces the value to join against the related entity. NULL for direct matches.
38238
+ */
38239
+ get TransitiveObjectOutputFieldName(): string | null;
38240
+ set TransitiveObjectOutputFieldName(value: string | null);
38241
+ /**
38242
+ * * Field Name: RelatedEntityJoinFieldName
38243
+ * * Display Name: Related Entity Join Field
38244
+ * * SQL Data Type: nvarchar(255)
38245
+ * * Description: The field in the related entity that matches TransitiveObjectOutputFieldName. NULL for direct matches.
38246
+ */
38247
+ get RelatedEntityJoinFieldName(): string | null;
38248
+ set RelatedEntityJoinFieldName(value: string | null);
38249
+ /**
38250
+ * * Field Name: DisplayName
38251
+ * * Display Name: Display Name
38252
+ * * SQL Data Type: nvarchar(255)
38253
+ * * Description: Tab/section label override. If NULL, defaults to the related entity's display name.
38254
+ */
38255
+ get DisplayName(): string | null;
38256
+ set DisplayName(value: string | null);
38257
+ /**
38258
+ * * Field Name: DisplayLocation
38259
+ * * Display Name: Display Location
38260
+ * * SQL Data Type: nvarchar(50)
38261
+ * * Default Value: After Field Tabs
38262
+ * * Value List Type: List
38263
+ * * Possible Values
38264
+ * * After Field Tabs
38265
+ * * Before Field Tabs
38266
+ * * Description: Where to render the organic key tab relative to FK relationship tabs. After Field Tabs or Before Field Tabs.
38267
+ */
38268
+ get DisplayLocation(): 'After Field Tabs' | 'Before Field Tabs';
38269
+ set DisplayLocation(value: 'After Field Tabs' | 'Before Field Tabs');
38270
+ /**
38271
+ * * Field Name: DisplayComponentID
38272
+ * * Display Name: Display Component
38273
+ * * SQL Data Type: uniqueidentifier
38274
+ * * Description: FK to component registry for a custom display component. NULL uses the default EntityDataGrid.
38275
+ */
38276
+ get DisplayComponentID(): string | null;
38277
+ set DisplayComponentID(value: string | null);
38278
+ /**
38279
+ * * Field Name: DisplayComponentConfiguration
38280
+ * * Display Name: Display Component Configuration
38281
+ * * SQL Data Type: nvarchar(MAX)
38282
+ * * Description: JSON configuration passed to the display component.
38283
+ */
38284
+ get DisplayComponentConfiguration(): string | null;
38285
+ set DisplayComponentConfiguration(value: string | null);
38286
+ /**
38287
+ * * Field Name: Sequence
38288
+ * * Display Name: Sequence
38289
+ * * SQL Data Type: int
38290
+ * * Default Value: 0
38291
+ * * Description: Tab ordering within this organic key's related entities. Lower values appear first.
38292
+ */
38293
+ get Sequence(): number;
38294
+ set Sequence(value: number);
38295
+ /**
38296
+ * * Field Name: __mj_CreatedAt
38297
+ * * Display Name: Created At
38298
+ * * SQL Data Type: datetimeoffset
38299
+ * * Default Value: getutcdate()
38300
+ */
38301
+ get __mj_CreatedAt(): Date;
38302
+ /**
38303
+ * * Field Name: __mj_UpdatedAt
38304
+ * * Display Name: Updated At
38305
+ * * SQL Data Type: datetimeoffset
38306
+ * * Default Value: getutcdate()
38307
+ */
38308
+ get __mj_UpdatedAt(): Date;
38309
+ /**
38310
+ * * Field Name: EntityOrganicKey
38311
+ * * Display Name: Organic Key
38312
+ * * SQL Data Type: nvarchar(255)
38313
+ */
38314
+ get EntityOrganicKey(): string;
38315
+ /**
38316
+ * * Field Name: RelatedEntity
38317
+ * * Display Name: Related Entity
38318
+ * * SQL Data Type: nvarchar(255)
38319
+ */
38320
+ get RelatedEntity(): string;
38321
+ }
38322
+ /**
38323
+ * MJ: Entity Organic Keys - strongly typed entity sub-class
38324
+ * * Schema: __mj
38325
+ * * Base Table: EntityOrganicKey
38326
+ * * Base View: vwEntityOrganicKeys
38327
+ * * @description Defines organic keys on entities — sets of fields that constitute natural identifiers for cross-system matching (e.g., email, phone, SSN). Enables related record views across integration boundaries without foreign keys.
38328
+ * * Primary Key: ID
38329
+ * @extends {BaseEntity}
38330
+ * @class
38331
+ * @public
38332
+ */
38333
+ export declare class MJEntityOrganicKeyEntity extends BaseEntity<MJEntityOrganicKeyEntityType> {
38334
+ /**
38335
+ * Loads the MJ: Entity Organic Keys record from the database
38336
+ * @param ID: string - primary key value to load the MJ: Entity Organic Keys record.
38337
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
38338
+ * @returns {Promise<boolean>} - true if successful, false otherwise
38339
+ * @public
38340
+ * @async
38341
+ * @memberof MJEntityOrganicKeyEntity
38342
+ * @method
38343
+ * @override
38344
+ */
38345
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
38346
+ /**
38347
+ * * Field Name: ID
38348
+ * * Display Name: ID
38349
+ * * SQL Data Type: uniqueidentifier
38350
+ * * Default Value: newsequentialid()
38351
+ */
38352
+ get ID(): string;
38353
+ set ID(value: string);
38354
+ /**
38355
+ * * Field Name: EntityID
38356
+ * * Display Name: Entity ID
38357
+ * * SQL Data Type: uniqueidentifier
38358
+ * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
38359
+ */
38360
+ get EntityID(): string;
38361
+ set EntityID(value: string);
38362
+ /**
38363
+ * * Field Name: Name
38364
+ * * Display Name: Name
38365
+ * * SQL Data Type: nvarchar(255)
38366
+ * * Description: Human-readable label for this organic key (e.g., "Email Match", "SSN Match"). Must be unique per entity.
38367
+ */
38368
+ get Name(): string;
38369
+ set Name(value: string);
38370
+ /**
38371
+ * * Field Name: Description
38372
+ * * Display Name: Description
38373
+ * * SQL Data Type: nvarchar(MAX)
38374
+ * * Description: Optional explanation of the key's purpose and matching semantics.
38375
+ */
38376
+ get Description(): string | null;
38377
+ set Description(value: string | null);
38378
+ /**
38379
+ * * Field Name: MatchFieldNames
38380
+ * * Display Name: Match Fields
38381
+ * * SQL Data Type: nvarchar(500)
38382
+ * * Description: Comma-delimited field names in the owning entity that constitute the key. Single value for simple keys (e.g., "EmailAddress"), multiple for compound keys (e.g., "FirstName,LastName,DateOfBirth"). Field names must match EntityField.Name values.
38383
+ */
38384
+ get MatchFieldNames(): string;
38385
+ set MatchFieldNames(value: string);
38386
+ /**
38387
+ * * Field Name: NormalizationStrategy
38388
+ * * Display Name: Normalization Strategy
38389
+ * * SQL Data Type: nvarchar(50)
38390
+ * * Default Value: LowerCaseTrim
38391
+ * * Value List Type: List
38392
+ * * Possible Values
38393
+ * * Custom
38394
+ * * ExactMatch
38395
+ * * LowerCaseTrim
38396
+ * * Trim
38397
+ * * Description: How field values are normalized before comparison. LowerCaseTrim = LOWER(TRIM(x)), Trim = TRIM(x), ExactMatch = no transformation, Custom = uses CustomNormalizationExpression.
38398
+ */
38399
+ get NormalizationStrategy(): 'Custom' | 'ExactMatch' | 'LowerCaseTrim' | 'Trim';
38400
+ set NormalizationStrategy(value: 'Custom' | 'ExactMatch' | 'LowerCaseTrim' | 'Trim');
38401
+ /**
38402
+ * * Field Name: CustomNormalizationExpression
38403
+ * * Display Name: Custom Normalization Expression
38404
+ * * SQL Data Type: nvarchar(MAX)
38405
+ * * Description: SQL expression template when NormalizationStrategy is Custom. Uses {{FieldName}} as placeholder. Example: "REPLACE(REPLACE({{FieldName}}, '-', ''), ' ', '')" for phone number normalization.
38406
+ */
38407
+ get CustomNormalizationExpression(): string | null;
38408
+ set CustomNormalizationExpression(value: string | null);
38409
+ /**
38410
+ * * Field Name: AutoCreateRelatedViewOnForm
38411
+ * * Display Name: Auto Create Related View
38412
+ * * SQL Data Type: bit
38413
+ * * Default Value: 0
38414
+ * * Description: When true, a future discovery process will automatically scan entities and create EntityOrganicKeyRelatedEntity rows for entities with matching field patterns.
38415
+ */
38416
+ get AutoCreateRelatedViewOnForm(): boolean;
38417
+ set AutoCreateRelatedViewOnForm(value: boolean);
38418
+ /**
38419
+ * * Field Name: Sequence
38420
+ * * Display Name: Sequence
38421
+ * * SQL Data Type: int
38422
+ * * Default Value: 0
38423
+ * * Description: Ordering when an entity has multiple organic keys. Lower values = higher priority.
38424
+ */
38425
+ get Sequence(): number;
38426
+ set Sequence(value: number);
38427
+ /**
38428
+ * * Field Name: Status
38429
+ * * Display Name: Status
38430
+ * * SQL Data Type: nvarchar(20)
38431
+ * * Default Value: Active
38432
+ * * Value List Type: List
38433
+ * * Possible Values
38434
+ * * Active
38435
+ * * Disabled
38436
+ * * Description: Active or Disabled. Disabled keys are ignored at runtime.
38437
+ */
38438
+ get Status(): 'Active' | 'Disabled';
38439
+ set Status(value: 'Active' | 'Disabled');
38440
+ /**
38441
+ * * Field Name: __mj_CreatedAt
38442
+ * * Display Name: Created At
38443
+ * * SQL Data Type: datetimeoffset
38444
+ * * Default Value: getutcdate()
38445
+ */
38446
+ get __mj_CreatedAt(): Date;
38447
+ /**
38448
+ * * Field Name: __mj_UpdatedAt
38449
+ * * Display Name: Updated At
38450
+ * * SQL Data Type: datetimeoffset
38451
+ * * Default Value: getutcdate()
38452
+ */
38453
+ get __mj_UpdatedAt(): Date;
38454
+ /**
38455
+ * * Field Name: Entity
38456
+ * * Display Name: Entity
38457
+ * * SQL Data Type: nvarchar(255)
38458
+ */
38459
+ get Entity(): string;
38460
+ }
37910
38461
  /**
37911
38462
  * MJ: Entity Permissions - strongly typed entity sub-class
37912
38463
  * * Schema: __mj