@memberjunction/core-entities 5.37.0 → 5.39.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.
Files changed (32) hide show
  1. package/dist/custom/MJQueryEntityExtended.d.ts +73 -0
  2. package/dist/custom/MJQueryEntityExtended.d.ts.map +1 -0
  3. package/dist/custom/MJQueryEntityExtended.js +195 -0
  4. package/dist/custom/MJQueryEntityExtended.js.map +1 -0
  5. package/dist/custom/ResourcePermissions/ResourcePermissionEngine.js +2 -2
  6. package/dist/custom/ResourcePermissions/ResourcePermissionEngine.js.map +1 -1
  7. package/dist/engines/QueryEngine.d.ts +28 -7
  8. package/dist/engines/QueryEngine.d.ts.map +1 -1
  9. package/dist/engines/QueryEngine.js +40 -1
  10. package/dist/engines/QueryEngine.js.map +1 -1
  11. package/dist/engines/UserInfoEngine.d.ts +9 -0
  12. package/dist/engines/UserInfoEngine.d.ts.map +1 -1
  13. package/dist/engines/UserInfoEngine.js +12 -0
  14. package/dist/engines/UserInfoEngine.js.map +1 -1
  15. package/dist/engines/conversations.d.ts +42 -2
  16. package/dist/engines/conversations.d.ts.map +1 -1
  17. package/dist/engines/conversations.js +49 -6
  18. package/dist/engines/conversations.js.map +1 -1
  19. package/dist/engines/interactive-forms.d.ts +132 -0
  20. package/dist/engines/interactive-forms.d.ts.map +1 -0
  21. package/dist/engines/interactive-forms.js +212 -0
  22. package/dist/engines/interactive-forms.js.map +1 -0
  23. package/dist/generated/entity_subclasses.d.ts +843 -104
  24. package/dist/generated/entity_subclasses.d.ts.map +1 -1
  25. package/dist/generated/entity_subclasses.js +1257 -138
  26. package/dist/generated/entity_subclasses.js.map +1 -1
  27. package/dist/index.d.ts +2 -0
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +2 -0
  30. package/dist/index.js.map +1 -1
  31. package/package.json +5 -5
  32. package/readme.md +3 -3
@@ -1655,6 +1655,8 @@ export declare const MJAIAgentRunSchema: z.ZodObject<{
1655
1655
  SecondaryScopes: z.ZodNullable<z.ZodString>;
1656
1656
  ExternalReferenceID: z.ZodNullable<z.ZodString>;
1657
1657
  CompanyID: z.ZodNullable<z.ZodString>;
1658
+ TotalCacheReadTokensUsed: z.ZodNullable<z.ZodNumber>;
1659
+ TotalCacheWriteTokensUsed: z.ZodNullable<z.ZodNumber>;
1658
1660
  Agent: z.ZodNullable<z.ZodString>;
1659
1661
  ParentRun: z.ZodNullable<z.ZodString>;
1660
1662
  Conversation: z.ZodNullable<z.ZodString>;
@@ -1721,6 +1723,8 @@ export declare const MJAIAgentRunSchema: z.ZodObject<{
1721
1723
  ScheduledJobRunID?: string;
1722
1724
  TestRunID?: string;
1723
1725
  ExternalReferenceID?: string;
1726
+ TotalCacheReadTokensUsed?: number;
1727
+ TotalCacheWriteTokensUsed?: number;
1724
1728
  ParentRun?: string;
1725
1729
  ConversationDetail?: string;
1726
1730
  LastRun?: string;
@@ -1782,6 +1786,8 @@ export declare const MJAIAgentRunSchema: z.ZodObject<{
1782
1786
  ScheduledJobRunID?: string;
1783
1787
  TestRunID?: string;
1784
1788
  ExternalReferenceID?: string;
1789
+ TotalCacheReadTokensUsed?: number;
1790
+ TotalCacheWriteTokensUsed?: number;
1785
1791
  ParentRun?: string;
1786
1792
  ConversationDetail?: string;
1787
1793
  LastRun?: string;
@@ -2633,6 +2639,8 @@ export declare const MJAIModelCostSchema: z.ZodObject<{
2633
2639
  Comments: z.ZodNullable<z.ZodString>;
2634
2640
  __mj_CreatedAt: z.ZodDate;
2635
2641
  __mj_UpdatedAt: z.ZodDate;
2642
+ CacheReadPricePerUnit: z.ZodNullable<z.ZodNumber>;
2643
+ CacheWritePricePerUnit: z.ZodNullable<z.ZodNumber>;
2636
2644
  Model: z.ZodString;
2637
2645
  Vendor: z.ZodString;
2638
2646
  PriceType: z.ZodString;
@@ -2655,6 +2663,8 @@ export declare const MJAIModelCostSchema: z.ZodObject<{
2655
2663
  OutputPricePerUnit?: number;
2656
2664
  UnitTypeID?: string;
2657
2665
  ProcessingType?: "Batch" | "Realtime";
2666
+ CacheReadPricePerUnit?: number;
2667
+ CacheWritePricePerUnit?: number;
2658
2668
  PriceType?: string;
2659
2669
  UnitType?: string;
2660
2670
  }, {
@@ -2675,6 +2685,8 @@ export declare const MJAIModelCostSchema: z.ZodObject<{
2675
2685
  OutputPricePerUnit?: number;
2676
2686
  UnitTypeID?: string;
2677
2687
  ProcessingType?: "Batch" | "Realtime";
2688
+ CacheReadPricePerUnit?: number;
2689
+ CacheWritePricePerUnit?: number;
2678
2690
  PriceType?: string;
2679
2691
  UnitType?: string;
2680
2692
  }>;
@@ -3224,6 +3236,10 @@ export declare const MJAIPromptRunSchema: z.ZodObject<{
3224
3236
  Comments: z.ZodNullable<z.ZodString>;
3225
3237
  TestRunID: z.ZodNullable<z.ZodString>;
3226
3238
  AssistantPrefill: z.ZodNullable<z.ZodString>;
3239
+ TokensCacheRead: z.ZodNullable<z.ZodNumber>;
3240
+ TokensCacheWrite: z.ZodNullable<z.ZodNumber>;
3241
+ TokensCacheReadRollup: z.ZodNullable<z.ZodNumber>;
3242
+ TokensCacheWriteRollup: z.ZodNullable<z.ZodNumber>;
3227
3243
  Prompt: z.ZodString;
3228
3244
  Model: z.ZodString;
3229
3245
  Vendor: z.ZodString;
@@ -3333,6 +3349,10 @@ export declare const MJAIPromptRunSchema: z.ZodObject<{
3333
3349
  CompletionTime?: number;
3334
3350
  ModelSpecificResponseDetails?: string;
3335
3351
  AssistantPrefill?: string;
3352
+ TokensCacheRead?: number;
3353
+ TokensCacheWrite?: number;
3354
+ TokensCacheReadRollup?: number;
3355
+ TokensCacheWriteRollup?: number;
3336
3356
  OriginalModel?: string;
3337
3357
  RerunFromPromptRun?: string;
3338
3358
  Judge?: string;
@@ -3433,6 +3453,10 @@ export declare const MJAIPromptRunSchema: z.ZodObject<{
3433
3453
  CompletionTime?: number;
3434
3454
  ModelSpecificResponseDetails?: string;
3435
3455
  AssistantPrefill?: string;
3456
+ TokensCacheRead?: number;
3457
+ TokensCacheWrite?: number;
3458
+ TokensCacheReadRollup?: number;
3459
+ TokensCacheWriteRollup?: number;
3436
3460
  OriginalModel?: string;
3437
3461
  RerunFromPromptRun?: string;
3438
3462
  Judge?: string;
@@ -4625,7 +4649,7 @@ export declare const MJArtifactUseSchema: z.ZodObject<{
4625
4649
  UsageContext: z.ZodNullable<z.ZodString>;
4626
4650
  __mj_CreatedAt: z.ZodDate;
4627
4651
  __mj_UpdatedAt: z.ZodDate;
4628
- ArtifactVersion: z.ZodNumber;
4652
+ ArtifactVersion: z.ZodNullable<z.ZodString>;
4629
4653
  User: z.ZodString;
4630
4654
  }, "strip", z.ZodTypeAny, {
4631
4655
  ID?: string;
@@ -4636,7 +4660,7 @@ export declare const MJArtifactUseSchema: z.ZodObject<{
4636
4660
  ArtifactVersionID?: string;
4637
4661
  UsageType?: "Exported" | "Opened" | "Saved" | "Shared" | "Viewed";
4638
4662
  UsageContext?: string;
4639
- ArtifactVersion?: number;
4663
+ ArtifactVersion?: string;
4640
4664
  }, {
4641
4665
  ID?: string;
4642
4666
  User?: string;
@@ -4646,7 +4670,7 @@ export declare const MJArtifactUseSchema: z.ZodObject<{
4646
4670
  ArtifactVersionID?: string;
4647
4671
  UsageType?: "Exported" | "Opened" | "Saved" | "Shared" | "Viewed";
4648
4672
  UsageContext?: string;
4649
- ArtifactVersion?: number;
4673
+ ArtifactVersion?: string;
4650
4674
  }>;
4651
4675
  export type MJArtifactUseEntityType = z.infer<typeof MJArtifactUseSchema>;
4652
4676
  /**
@@ -4661,7 +4685,7 @@ export declare const MJArtifactVersionAttributeSchema: z.ZodObject<{
4661
4685
  StandardProperty: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"description">, z.ZodLiteral<"displayHtml">, z.ZodLiteral<"displayMarkdown">, z.ZodLiteral<"name">]>>;
4662
4686
  __mj_CreatedAt: z.ZodDate;
4663
4687
  __mj_UpdatedAt: z.ZodDate;
4664
- ArtifactVersion: z.ZodNumber;
4688
+ ArtifactVersion: z.ZodNullable<z.ZodString>;
4665
4689
  }, "strip", z.ZodTypeAny, {
4666
4690
  ID?: string;
4667
4691
  __mj_CreatedAt?: Date;
@@ -4670,7 +4694,7 @@ export declare const MJArtifactVersionAttributeSchema: z.ZodObject<{
4670
4694
  Type?: string;
4671
4695
  Value?: string;
4672
4696
  ArtifactVersionID?: string;
4673
- ArtifactVersion?: number;
4697
+ ArtifactVersion?: string;
4674
4698
  StandardProperty?: "description" | "displayHtml" | "displayMarkdown" | "name";
4675
4699
  }, {
4676
4700
  ID?: string;
@@ -4680,7 +4704,7 @@ export declare const MJArtifactVersionAttributeSchema: z.ZodObject<{
4680
4704
  Type?: string;
4681
4705
  Value?: string;
4682
4706
  ArtifactVersionID?: string;
4683
- ArtifactVersion?: number;
4707
+ ArtifactVersion?: string;
4684
4708
  StandardProperty?: "description" | "displayHtml" | "displayMarkdown" | "name";
4685
4709
  }>;
4686
4710
  export type MJArtifactVersionAttributeEntityType = z.infer<typeof MJArtifactVersionAttributeSchema>;
@@ -4974,14 +4998,14 @@ export declare const MJCollectionArtifactSchema: z.ZodObject<{
4974
4998
  __mj_UpdatedAt: z.ZodDate;
4975
4999
  ArtifactVersionID: z.ZodString;
4976
5000
  Collection: z.ZodString;
4977
- ArtifactVersion: z.ZodNumber;
5001
+ ArtifactVersion: z.ZodNullable<z.ZodString>;
4978
5002
  }, "strip", z.ZodTypeAny, {
4979
5003
  ID?: string;
4980
5004
  __mj_CreatedAt?: Date;
4981
5005
  __mj_UpdatedAt?: Date;
4982
5006
  Sequence?: number;
4983
5007
  ArtifactVersionID?: string;
4984
- ArtifactVersion?: number;
5008
+ ArtifactVersion?: string;
4985
5009
  CollectionID?: string;
4986
5010
  Collection?: string;
4987
5011
  }, {
@@ -4990,7 +5014,7 @@ export declare const MJCollectionArtifactSchema: z.ZodObject<{
4990
5014
  __mj_UpdatedAt?: Date;
4991
5015
  Sequence?: number;
4992
5016
  ArtifactVersionID?: string;
4993
- ArtifactVersion?: number;
5017
+ ArtifactVersion?: string;
4994
5018
  CollectionID?: string;
4995
5019
  Collection?: string;
4996
5020
  }>;
@@ -6759,7 +6783,7 @@ export declare const MJConversationDetailArtifactSchema: z.ZodObject<{
6759
6783
  __mj_CreatedAt: z.ZodDate;
6760
6784
  __mj_UpdatedAt: z.ZodDate;
6761
6785
  ConversationDetail: z.ZodString;
6762
- ArtifactVersion: z.ZodNumber;
6786
+ ArtifactVersion: z.ZodNullable<z.ZodString>;
6763
6787
  }, "strip", z.ZodTypeAny, {
6764
6788
  ID?: string;
6765
6789
  __mj_CreatedAt?: Date;
@@ -6768,7 +6792,7 @@ export declare const MJConversationDetailArtifactSchema: z.ZodObject<{
6768
6792
  ConversationDetailID?: string;
6769
6793
  ConversationDetail?: string;
6770
6794
  ArtifactVersionID?: string;
6771
- ArtifactVersion?: number;
6795
+ ArtifactVersion?: string;
6772
6796
  }, {
6773
6797
  ID?: string;
6774
6798
  __mj_CreatedAt?: Date;
@@ -6777,7 +6801,7 @@ export declare const MJConversationDetailArtifactSchema: z.ZodObject<{
6777
6801
  ConversationDetailID?: string;
6778
6802
  ConversationDetail?: string;
6779
6803
  ArtifactVersionID?: string;
6780
- ArtifactVersion?: number;
6804
+ ArtifactVersion?: string;
6781
6805
  }>;
6782
6806
  export type MJConversationDetailArtifactEntityType = z.infer<typeof MJConversationDetailArtifactSchema>;
6783
6807
  /**
@@ -6804,7 +6828,7 @@ export declare const MJConversationDetailAttachmentSchema: z.ZodObject<{
6804
6828
  ConversationDetail: z.ZodString;
6805
6829
  Modality: z.ZodString;
6806
6830
  File: z.ZodNullable<z.ZodString>;
6807
- ArtifactVersion: z.ZodNullable<z.ZodNumber>;
6831
+ ArtifactVersion: z.ZodNullable<z.ZodString>;
6808
6832
  }, "strip", z.ZodTypeAny, {
6809
6833
  ID?: string;
6810
6834
  __mj_CreatedAt?: Date;
@@ -6826,7 +6850,7 @@ export declare const MJConversationDetailAttachmentSchema: z.ZodObject<{
6826
6850
  ConversationDetailID?: string;
6827
6851
  ConversationDetail?: string;
6828
6852
  ArtifactVersionID?: string;
6829
- ArtifactVersion?: number;
6853
+ ArtifactVersion?: string;
6830
6854
  }, {
6831
6855
  ID?: string;
6832
6856
  __mj_CreatedAt?: Date;
@@ -6848,7 +6872,7 @@ export declare const MJConversationDetailAttachmentSchema: z.ZodObject<{
6848
6872
  ConversationDetailID?: string;
6849
6873
  ConversationDetail?: string;
6850
6874
  ArtifactVersionID?: string;
6851
- ArtifactVersion?: number;
6875
+ ArtifactVersion?: string;
6852
6876
  }>;
6853
6877
  export type MJConversationDetailAttachmentEntityType = z.infer<typeof MJConversationDetailAttachmentSchema>;
6854
6878
  /**
@@ -7020,12 +7044,18 @@ export declare const MJConversationSchema: z.ZodObject<{
7020
7044
  ProjectID: z.ZodNullable<z.ZodString>;
7021
7045
  IsPinned: z.ZodBoolean;
7022
7046
  TestRunID: z.ZodNullable<z.ZodString>;
7047
+ ApplicationScope: z.ZodUnion<[z.ZodLiteral<"Application">, z.ZodLiteral<"Both">, z.ZodLiteral<"Global">]>;
7048
+ ApplicationID: z.ZodNullable<z.ZodString>;
7049
+ DefaultAgentID: z.ZodNullable<z.ZodString>;
7050
+ AdditionalData: z.ZodNullable<z.ZodString>;
7023
7051
  User: z.ZodString;
7024
7052
  LinkedEntity: z.ZodNullable<z.ZodString>;
7025
7053
  DataContext: z.ZodNullable<z.ZodString>;
7026
7054
  Environment: z.ZodString;
7027
7055
  Project: z.ZodNullable<z.ZodString>;
7028
7056
  TestRun: z.ZodNullable<z.ZodString>;
7057
+ Application: z.ZodNullable<z.ZodString>;
7058
+ DefaultAgent: z.ZodNullable<z.ZodString>;
7029
7059
  }, "strip", z.ZodTypeAny, {
7030
7060
  ID?: string;
7031
7061
  User?: string;
@@ -7038,6 +7068,8 @@ export declare const MJConversationSchema: z.ZodObject<{
7038
7068
  Type?: string;
7039
7069
  TestRunID?: string;
7040
7070
  TestRun?: string;
7071
+ ApplicationID?: string;
7072
+ Application?: string;
7041
7073
  EnvironmentID?: string;
7042
7074
  Environment?: string;
7043
7075
  ExternalID?: string;
@@ -7047,9 +7079,13 @@ export declare const MJConversationSchema: z.ZodObject<{
7047
7079
  LinkedRecordID?: string;
7048
7080
  DataContextID?: string;
7049
7081
  ProjectID?: string;
7082
+ ApplicationScope?: "Both" | "Application" | "Global";
7083
+ DefaultAgentID?: string;
7084
+ AdditionalData?: string;
7050
7085
  LinkedEntity?: string;
7051
7086
  DataContext?: string;
7052
7087
  Project?: string;
7088
+ DefaultAgent?: string;
7053
7089
  }, {
7054
7090
  ID?: string;
7055
7091
  User?: string;
@@ -7062,6 +7098,8 @@ export declare const MJConversationSchema: z.ZodObject<{
7062
7098
  Type?: string;
7063
7099
  TestRunID?: string;
7064
7100
  TestRun?: string;
7101
+ ApplicationID?: string;
7102
+ Application?: string;
7065
7103
  EnvironmentID?: string;
7066
7104
  Environment?: string;
7067
7105
  ExternalID?: string;
@@ -7071,9 +7109,13 @@ export declare const MJConversationSchema: z.ZodObject<{
7071
7109
  LinkedRecordID?: string;
7072
7110
  DataContextID?: string;
7073
7111
  ProjectID?: string;
7112
+ ApplicationScope?: "Both" | "Application" | "Global";
7113
+ DefaultAgentID?: string;
7114
+ AdditionalData?: string;
7074
7115
  LinkedEntity?: string;
7075
7116
  DataContext?: string;
7076
7117
  Project?: string;
7118
+ DefaultAgent?: string;
7077
7119
  }>;
7078
7120
  export type MJConversationEntityType = z.infer<typeof MJConversationSchema>;
7079
7121
  /**
@@ -7482,7 +7524,7 @@ export declare const MJDashboardUserPreferenceSchema: z.ZodObject<{
7482
7524
  DisplayOrder?: number;
7483
7525
  ApplicationID?: string;
7484
7526
  Application?: string;
7485
- Scope?: "App" | "Global";
7527
+ Scope?: "Global" | "App";
7486
7528
  DashboardID?: string;
7487
7529
  }, {
7488
7530
  ID?: string;
@@ -7494,7 +7536,7 @@ export declare const MJDashboardUserPreferenceSchema: z.ZodObject<{
7494
7536
  DisplayOrder?: number;
7495
7537
  ApplicationID?: string;
7496
7538
  Application?: string;
7497
- Scope?: "App" | "Global";
7539
+ Scope?: "Global" | "App";
7498
7540
  DashboardID?: string;
7499
7541
  }>;
7500
7542
  export type MJDashboardUserPreferenceEntityType = z.infer<typeof MJDashboardUserPreferenceSchema>;
@@ -7568,7 +7610,7 @@ export declare const MJDashboardSchema: z.ZodObject<{
7568
7610
  Category?: string;
7569
7611
  ApplicationID?: string;
7570
7612
  Application?: string;
7571
- Scope?: "App" | "Global";
7613
+ Scope?: "Global" | "App";
7572
7614
  EnvironmentID?: string;
7573
7615
  Environment?: string;
7574
7616
  UIConfigDetails?: string;
@@ -7588,7 +7630,7 @@ export declare const MJDashboardSchema: z.ZodObject<{
7588
7630
  Category?: string;
7589
7631
  ApplicationID?: string;
7590
7632
  Application?: string;
7591
- Scope?: "App" | "Global";
7633
+ Scope?: "Global" | "App";
7592
7634
  EnvironmentID?: string;
7593
7635
  Environment?: string;
7594
7636
  UIConfigDetails?: string;
@@ -8951,7 +8993,7 @@ export declare const MJEntityFieldSchema: z.ZodObject<{
8951
8993
  DefaultValue: z.ZodNullable<z.ZodString>;
8952
8994
  AutoIncrement: z.ZodBoolean;
8953
8995
  ValueListType: z.ZodUnion<[z.ZodLiteral<"List">, z.ZodLiteral<"ListOrUserEntry">, z.ZodLiteral<"None">]>;
8954
- ExtendedType: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Code">, z.ZodLiteral<"Email">, z.ZodLiteral<"FaceTime">, z.ZodLiteral<"Geo">, z.ZodLiteral<"GeoAddress">, z.ZodLiteral<"GeoCity">, z.ZodLiteral<"GeoCountry">, z.ZodLiteral<"GeoLatitude">, z.ZodLiteral<"GeoLongitude">, z.ZodLiteral<"GeoPostalCode">, z.ZodLiteral<"GeoStateProvince">, z.ZodLiteral<"MSTeams">, z.ZodLiteral<"Other">, z.ZodLiteral<"SIP">, z.ZodLiteral<"SMS">, z.ZodLiteral<"Skype">, z.ZodLiteral<"Tel">, z.ZodLiteral<"URL">, z.ZodLiteral<"WhatsApp">, z.ZodLiteral<"ZoomMtg">]>>;
8996
+ ExtendedType: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Code">, z.ZodLiteral<"Email">, z.ZodLiteral<"FaceTime">, z.ZodLiteral<"Geo">, z.ZodLiteral<"GeoAddress">, z.ZodLiteral<"GeoCity">, z.ZodLiteral<"GeoCountry">, z.ZodLiteral<"GeoLatitude">, z.ZodLiteral<"GeoLongitude">, z.ZodLiteral<"GeoPostalCode">, z.ZodLiteral<"GeoStateProvince">, z.ZodLiteral<"HTML">, z.ZodLiteral<"Icon">, z.ZodLiteral<"MSTeams">, z.ZodLiteral<"Markdown">, z.ZodLiteral<"Other">, z.ZodLiteral<"SIP">, z.ZodLiteral<"SMS">, z.ZodLiteral<"Skype">, z.ZodLiteral<"Tel">, z.ZodLiteral<"URL">, z.ZodLiteral<"WhatsApp">, z.ZodLiteral<"ZoomMtg">]>>;
8955
8997
  CodeType: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"CSS">, z.ZodLiteral<"HTML">, z.ZodLiteral<"JavaScript">, z.ZodLiteral<"Other">, z.ZodLiteral<"SQL">, z.ZodLiteral<"TypeScript">]>>;
8956
8998
  DefaultInView: z.ZodBoolean;
8957
8999
  ViewCellTemplate: z.ZodNullable<z.ZodString>;
@@ -9042,8 +9084,8 @@ export declare const MJEntityFieldSchema: z.ZodObject<{
9042
9084
  AllowsNull?: boolean;
9043
9085
  AutoIncrement?: boolean;
9044
9086
  ValueListType?: "None" | "List" | "ListOrUserEntry";
9045
- ExtendedType?: "Code" | "Other" | "URL" | "Email" | "FaceTime" | "Geo" | "GeoAddress" | "GeoCity" | "GeoCountry" | "GeoLatitude" | "GeoLongitude" | "GeoPostalCode" | "GeoStateProvince" | "MSTeams" | "SIP" | "SMS" | "Skype" | "Tel" | "WhatsApp" | "ZoomMtg";
9046
- CodeType?: "Other" | "SQL" | "CSS" | "HTML" | "JavaScript" | "TypeScript";
9087
+ ExtendedType?: "Code" | "Other" | "Icon" | "Markdown" | "URL" | "Email" | "FaceTime" | "Geo" | "GeoAddress" | "GeoCity" | "GeoCountry" | "GeoLatitude" | "GeoLongitude" | "GeoPostalCode" | "GeoStateProvince" | "HTML" | "MSTeams" | "SIP" | "SMS" | "Skype" | "Tel" | "WhatsApp" | "ZoomMtg";
9088
+ CodeType?: "Other" | "SQL" | "HTML" | "CSS" | "JavaScript" | "TypeScript";
9047
9089
  DefaultInView?: boolean;
9048
9090
  ViewCellTemplate?: string;
9049
9091
  DefaultColumnWidth?: number;
@@ -9120,8 +9162,8 @@ export declare const MJEntityFieldSchema: z.ZodObject<{
9120
9162
  AllowsNull?: boolean;
9121
9163
  AutoIncrement?: boolean;
9122
9164
  ValueListType?: "None" | "List" | "ListOrUserEntry";
9123
- ExtendedType?: "Code" | "Other" | "URL" | "Email" | "FaceTime" | "Geo" | "GeoAddress" | "GeoCity" | "GeoCountry" | "GeoLatitude" | "GeoLongitude" | "GeoPostalCode" | "GeoStateProvince" | "MSTeams" | "SIP" | "SMS" | "Skype" | "Tel" | "WhatsApp" | "ZoomMtg";
9124
- CodeType?: "Other" | "SQL" | "CSS" | "HTML" | "JavaScript" | "TypeScript";
9165
+ ExtendedType?: "Code" | "Other" | "Icon" | "Markdown" | "URL" | "Email" | "FaceTime" | "Geo" | "GeoAddress" | "GeoCity" | "GeoCountry" | "GeoLatitude" | "GeoLongitude" | "GeoPostalCode" | "GeoStateProvince" | "HTML" | "MSTeams" | "SIP" | "SMS" | "Skype" | "Tel" | "WhatsApp" | "ZoomMtg";
9166
+ CodeType?: "Other" | "SQL" | "HTML" | "CSS" | "JavaScript" | "TypeScript";
9125
9167
  DefaultInView?: boolean;
9126
9168
  ViewCellTemplate?: string;
9127
9169
  DefaultColumnWidth?: number;
@@ -9168,6 +9210,65 @@ export declare const MJEntityFieldSchema: z.ZodObject<{
9168
9210
  RelatedEntityClassName?: string;
9169
9211
  }>;
9170
9212
  export type MJEntityFieldEntityType = z.infer<typeof MJEntityFieldSchema>;
9213
+ /**
9214
+ * zod schema definition for the entity MJ: Entity Form Overrides
9215
+ */
9216
+ export declare const MJEntityFormOverrideSchema: z.ZodObject<{
9217
+ ID: z.ZodString;
9218
+ EntityID: z.ZodString;
9219
+ ComponentID: z.ZodString;
9220
+ Name: z.ZodString;
9221
+ Description: z.ZodNullable<z.ZodString>;
9222
+ Scope: z.ZodUnion<[z.ZodLiteral<"Global">, z.ZodLiteral<"Role">, z.ZodLiteral<"User">]>;
9223
+ UserID: z.ZodNullable<z.ZodString>;
9224
+ RoleID: z.ZodNullable<z.ZodString>;
9225
+ Priority: z.ZodNumber;
9226
+ Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Inactive">, z.ZodLiteral<"Pending">]>;
9227
+ Notes: z.ZodNullable<z.ZodString>;
9228
+ __mj_CreatedAt: z.ZodDate;
9229
+ __mj_UpdatedAt: z.ZodDate;
9230
+ Entity: z.ZodString;
9231
+ Component: z.ZodString;
9232
+ User: z.ZodNullable<z.ZodString>;
9233
+ Role: z.ZodNullable<z.ZodString>;
9234
+ }, "strip", z.ZodTypeAny, {
9235
+ ID?: string;
9236
+ EntityID?: string;
9237
+ Role?: string;
9238
+ User?: string;
9239
+ __mj_CreatedAt?: Date;
9240
+ __mj_UpdatedAt?: Date;
9241
+ Entity?: string;
9242
+ Name?: string;
9243
+ Description?: string;
9244
+ Status?: "Active" | "Pending" | "Inactive";
9245
+ UserID?: string;
9246
+ Priority?: number;
9247
+ RoleID?: string;
9248
+ Notes?: string;
9249
+ Scope?: "Role" | "User" | "Global";
9250
+ ComponentID?: string;
9251
+ Component?: string;
9252
+ }, {
9253
+ ID?: string;
9254
+ EntityID?: string;
9255
+ Role?: string;
9256
+ User?: string;
9257
+ __mj_CreatedAt?: Date;
9258
+ __mj_UpdatedAt?: Date;
9259
+ Entity?: string;
9260
+ Name?: string;
9261
+ Description?: string;
9262
+ Status?: "Active" | "Pending" | "Inactive";
9263
+ UserID?: string;
9264
+ Priority?: number;
9265
+ RoleID?: string;
9266
+ Notes?: string;
9267
+ Scope?: "Role" | "User" | "Global";
9268
+ ComponentID?: string;
9269
+ Component?: string;
9270
+ }>;
9271
+ export type MJEntityFormOverrideEntityType = z.infer<typeof MJEntityFormOverrideSchema>;
9171
9272
  /**
9172
9273
  * zod schema definition for the entity MJ: Entity Organic Key Related Entities
9173
9274
  */
@@ -9989,7 +10090,7 @@ export declare const MJGeneratedCodeSchema: z.ZodObject<{
9989
10090
  GeneratedAt?: Date;
9990
10091
  GeneratedByModelID?: string;
9991
10092
  LinkedRecordPrimaryKey?: string;
9992
- Language?: "Other" | "SQL" | "CSS" | "HTML" | "JavaScript" | "TypeScript" | "Python";
10093
+ Language?: "Other" | "SQL" | "HTML" | "CSS" | "JavaScript" | "TypeScript" | "Python";
9993
10094
  GeneratedByModel?: string;
9994
10095
  }, {
9995
10096
  ID?: string;
@@ -10007,7 +10108,7 @@ export declare const MJGeneratedCodeSchema: z.ZodObject<{
10007
10108
  GeneratedAt?: Date;
10008
10109
  GeneratedByModelID?: string;
10009
10110
  LinkedRecordPrimaryKey?: string;
10010
- Language?: "Other" | "SQL" | "CSS" | "HTML" | "JavaScript" | "TypeScript" | "Python";
10111
+ Language?: "Other" | "SQL" | "HTML" | "CSS" | "JavaScript" | "TypeScript" | "Python";
10011
10112
  GeneratedByModel?: string;
10012
10113
  }>;
10013
10114
  export type MJGeneratedCodeEntityType = z.infer<typeof MJGeneratedCodeSchema>;
@@ -10077,6 +10178,7 @@ export declare const MJIntegrationObjectFieldSchema: z.ZodObject<{
10077
10178
  __mj_CreatedAt: z.ZodDate;
10078
10179
  __mj_UpdatedAt: z.ZodDate;
10079
10180
  IsCustom: z.ZodBoolean;
10181
+ MetadataSource: z.ZodUnion<[z.ZodLiteral<"Custom">, z.ZodLiteral<"Declared">, z.ZodLiteral<"Discovered">]>;
10080
10182
  IntegrationObject: z.ZodString;
10081
10183
  RelatedIntegrationObject: z.ZodNullable<z.ZodString>;
10082
10184
  }, "strip", z.ZodTypeAny, {
@@ -10104,6 +10206,7 @@ export declare const MJIntegrationObjectFieldSchema: z.ZodObject<{
10104
10206
  RelatedIntegrationObjectID?: string;
10105
10207
  RelatedIntegrationObjectFieldName?: string;
10106
10208
  IsCustom?: boolean;
10209
+ MetadataSource?: "Custom" | "Declared" | "Discovered";
10107
10210
  IntegrationObject?: string;
10108
10211
  RelatedIntegrationObject?: string;
10109
10212
  }, {
@@ -10131,6 +10234,7 @@ export declare const MJIntegrationObjectFieldSchema: z.ZodObject<{
10131
10234
  RelatedIntegrationObjectID?: string;
10132
10235
  RelatedIntegrationObjectFieldName?: string;
10133
10236
  IsCustom?: boolean;
10237
+ MetadataSource?: "Custom" | "Declared" | "Discovered";
10134
10238
  IntegrationObject?: string;
10135
10239
  RelatedIntegrationObject?: string;
10136
10240
  }>;
@@ -10162,6 +10266,20 @@ export declare const MJIntegrationObjectSchema: z.ZodObject<{
10162
10266
  WriteMethod: z.ZodNullable<z.ZodString>;
10163
10267
  DeleteMethod: z.ZodNullable<z.ZodString>;
10164
10268
  IsCustom: z.ZodBoolean;
10269
+ CreateAPIPath: z.ZodNullable<z.ZodString>;
10270
+ CreateMethod: z.ZodNullable<z.ZodString>;
10271
+ CreateBodyShape: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"flat">, z.ZodLiteral<"literal">, z.ZodLiteral<"wrapped">]>>;
10272
+ CreateBodyKey: z.ZodNullable<z.ZodString>;
10273
+ CreateIDLocation: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"body">, z.ZodLiteral<"header">, z.ZodLiteral<"n/a">, z.ZodLiteral<"path">]>>;
10274
+ UpdateAPIPath: z.ZodNullable<z.ZodString>;
10275
+ UpdateMethod: z.ZodNullable<z.ZodString>;
10276
+ UpdateBodyShape: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"flat">, z.ZodLiteral<"literal">, z.ZodLiteral<"wrapped">]>>;
10277
+ UpdateBodyKey: z.ZodNullable<z.ZodString>;
10278
+ UpdateIDLocation: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"body">, z.ZodLiteral<"header">, z.ZodLiteral<"n/a">, z.ZodLiteral<"path">]>>;
10279
+ DeleteAPIPath: z.ZodNullable<z.ZodString>;
10280
+ DeleteIDLocation: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"body">, z.ZodLiteral<"header">, z.ZodLiteral<"n/a">, z.ZodLiteral<"path">]>>;
10281
+ IncrementalWatermarkField: z.ZodNullable<z.ZodString>;
10282
+ MetadataSource: z.ZodUnion<[z.ZodLiteral<"Custom">, z.ZodLiteral<"Declared">, z.ZodLiteral<"Discovered">]>;
10165
10283
  Integration: z.ZodString;
10166
10284
  }, "strip", z.ZodTypeAny, {
10167
10285
  ID?: string;
@@ -10177,6 +10295,7 @@ export declare const MJIntegrationObjectSchema: z.ZodObject<{
10177
10295
  Integration?: string;
10178
10296
  IntegrationID?: string;
10179
10297
  IsCustom?: boolean;
10298
+ MetadataSource?: "Custom" | "Declared" | "Discovered";
10180
10299
  APIPath?: string;
10181
10300
  ResponseDataKey?: string;
10182
10301
  DefaultPageSize?: number;
@@ -10188,6 +10307,19 @@ export declare const MJIntegrationObjectSchema: z.ZodObject<{
10188
10307
  WriteAPIPath?: string;
10189
10308
  WriteMethod?: string;
10190
10309
  DeleteMethod?: string;
10310
+ CreateAPIPath?: string;
10311
+ CreateMethod?: string;
10312
+ CreateBodyShape?: "flat" | "literal" | "wrapped";
10313
+ CreateBodyKey?: string;
10314
+ CreateIDLocation?: "path" | "body" | "header" | "n/a";
10315
+ UpdateAPIPath?: string;
10316
+ UpdateMethod?: string;
10317
+ UpdateBodyShape?: "flat" | "literal" | "wrapped";
10318
+ UpdateBodyKey?: string;
10319
+ UpdateIDLocation?: "path" | "body" | "header" | "n/a";
10320
+ DeleteAPIPath?: string;
10321
+ DeleteIDLocation?: "path" | "body" | "header" | "n/a";
10322
+ IncrementalWatermarkField?: string;
10191
10323
  }, {
10192
10324
  ID?: string;
10193
10325
  __mj_CreatedAt?: Date;
@@ -10202,6 +10334,7 @@ export declare const MJIntegrationObjectSchema: z.ZodObject<{
10202
10334
  Integration?: string;
10203
10335
  IntegrationID?: string;
10204
10336
  IsCustom?: boolean;
10337
+ MetadataSource?: "Custom" | "Declared" | "Discovered";
10205
10338
  APIPath?: string;
10206
10339
  ResponseDataKey?: string;
10207
10340
  DefaultPageSize?: number;
@@ -10213,6 +10346,19 @@ export declare const MJIntegrationObjectSchema: z.ZodObject<{
10213
10346
  WriteAPIPath?: string;
10214
10347
  WriteMethod?: string;
10215
10348
  DeleteMethod?: string;
10349
+ CreateAPIPath?: string;
10350
+ CreateMethod?: string;
10351
+ CreateBodyShape?: "flat" | "literal" | "wrapped";
10352
+ CreateBodyKey?: string;
10353
+ CreateIDLocation?: "path" | "body" | "header" | "n/a";
10354
+ UpdateAPIPath?: string;
10355
+ UpdateMethod?: string;
10356
+ UpdateBodyShape?: "flat" | "literal" | "wrapped";
10357
+ UpdateBodyKey?: string;
10358
+ UpdateIDLocation?: "path" | "body" | "header" | "n/a";
10359
+ DeleteAPIPath?: string;
10360
+ DeleteIDLocation?: "path" | "body" | "header" | "n/a";
10361
+ IncrementalWatermarkField?: string;
10216
10362
  }>;
10217
10363
  export type MJIntegrationObjectEntityType = z.infer<typeof MJIntegrationObjectSchema>;
10218
10364
  /**
@@ -10492,9 +10638,9 @@ export declare const MJListDetailSchema: z.ZodObject<{
10492
10638
  __mj_UpdatedAt?: Date;
10493
10639
  Status?: "Active" | "Disabled" | "Pending" | "Other" | "Rejected" | "Complete" | "Error";
10494
10640
  Sequence?: number;
10641
+ AdditionalData?: string;
10495
10642
  List?: string;
10496
10643
  ListID?: string;
10497
- AdditionalData?: string;
10498
10644
  }, {
10499
10645
  ID?: string;
10500
10646
  RecordID?: string;
@@ -10502,9 +10648,9 @@ export declare const MJListDetailSchema: z.ZodObject<{
10502
10648
  __mj_UpdatedAt?: Date;
10503
10649
  Status?: "Active" | "Disabled" | "Pending" | "Other" | "Rejected" | "Complete" | "Error";
10504
10650
  Sequence?: number;
10651
+ AdditionalData?: string;
10505
10652
  List?: string;
10506
10653
  ListID?: string;
10507
- AdditionalData?: string;
10508
10654
  }>;
10509
10655
  export type MJListDetailEntityType = z.infer<typeof MJListDetailSchema>;
10510
10656
  /**
@@ -13319,6 +13465,7 @@ export declare const MJScheduledJobSchema: z.ZodObject<{
13319
13465
  ConcurrencyMode: z.ZodUnion<[z.ZodLiteral<"Concurrent">, z.ZodLiteral<"Queue">, z.ZodLiteral<"Skip">]>;
13320
13466
  __mj_CreatedAt: z.ZodDate;
13321
13467
  __mj_UpdatedAt: z.ZodDate;
13468
+ RunImmediatelyIfNeverRun: z.ZodBoolean;
13322
13469
  JobType: z.ZodString;
13323
13470
  OwnerUser: z.ZodNullable<z.ZodString>;
13324
13471
  NotifyUser: z.ZodNullable<z.ZodString>;
@@ -13352,6 +13499,7 @@ export declare const MJScheduledJobSchema: z.ZodObject<{
13352
13499
  LockToken?: string;
13353
13500
  ExpectedCompletionAt?: Date;
13354
13501
  ConcurrencyMode?: "Queue" | "Concurrent" | "Skip";
13502
+ RunImmediatelyIfNeverRun?: boolean;
13355
13503
  JobType?: string;
13356
13504
  NotifyUser?: string;
13357
13505
  }, {
@@ -13384,6 +13532,7 @@ export declare const MJScheduledJobSchema: z.ZodObject<{
13384
13532
  LockToken?: string;
13385
13533
  ExpectedCompletionAt?: Date;
13386
13534
  ConcurrencyMode?: "Queue" | "Concurrent" | "Skip";
13535
+ RunImmediatelyIfNeverRun?: boolean;
13387
13536
  JobType?: string;
13388
13537
  NotifyUser?: string;
13389
13538
  }>;
@@ -14131,11 +14280,13 @@ export declare const MJTagSynonymSchema: z.ZodObject<{
14131
14280
  Source: z.ZodUnion<[z.ZodLiteral<"Imported">, z.ZodLiteral<"LLM">, z.ZodLiteral<"Manual">, z.ZodLiteral<"Merged">]>;
14132
14281
  __mj_CreatedAt: z.ZodDate;
14133
14282
  __mj_UpdatedAt: z.ZodDate;
14283
+ Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Rejected">]>;
14134
14284
  Tag: z.ZodString;
14135
14285
  }, "strip", z.ZodTypeAny, {
14136
14286
  ID?: string;
14137
14287
  __mj_CreatedAt?: Date;
14138
14288
  __mj_UpdatedAt?: Date;
14289
+ Status?: "Active" | "Pending" | "Rejected";
14139
14290
  Tag?: string;
14140
14291
  TagID?: string;
14141
14292
  Source?: "Manual" | "Merged" | "Imported" | "LLM";
@@ -14144,6 +14295,7 @@ export declare const MJTagSynonymSchema: z.ZodObject<{
14144
14295
  ID?: string;
14145
14296
  __mj_CreatedAt?: Date;
14146
14297
  __mj_UpdatedAt?: Date;
14298
+ Status?: "Active" | "Pending" | "Rejected";
14147
14299
  Tag?: string;
14148
14300
  TagID?: string;
14149
14301
  Source?: "Manual" | "Merged" | "Imported" | "LLM";
@@ -14454,14 +14606,14 @@ export declare const MJTemplateContentTypeSchema: z.ZodObject<{
14454
14606
  __mj_UpdatedAt?: Date;
14455
14607
  Name?: string;
14456
14608
  Description?: string;
14457
- CodeType?: "Other" | "JSON" | "CSS" | "HTML" | "JavaScript" | "TypeScript" | "Python" | "Nunjucks";
14609
+ CodeType?: "Other" | "JSON" | "HTML" | "CSS" | "JavaScript" | "TypeScript" | "Python" | "Nunjucks";
14458
14610
  }, {
14459
14611
  ID?: string;
14460
14612
  __mj_CreatedAt?: Date;
14461
14613
  __mj_UpdatedAt?: Date;
14462
14614
  Name?: string;
14463
14615
  Description?: string;
14464
- CodeType?: "Other" | "JSON" | "CSS" | "HTML" | "JavaScript" | "TypeScript" | "Python" | "Nunjucks";
14616
+ CodeType?: "Other" | "JSON" | "HTML" | "CSS" | "JavaScript" | "TypeScript" | "Python" | "Nunjucks";
14465
14617
  }>;
14466
14618
  export type MJTemplateContentTypeEntityType = z.infer<typeof MJTemplateContentTypeSchema>;
14467
14619
  /**
@@ -21193,7 +21345,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
21193
21345
  ValidateFinalStepAllowedValues(result: ValidationResult): void;
21194
21346
  /**
21195
21347
  * * Field Name: ID
21196
- * * Display Name: ID
21348
+ * * Display Name: Run ID
21197
21349
  * * SQL Data Type: uniqueidentifier
21198
21350
  * * Default Value: newsequentialid()
21199
21351
  * * Description: Unique identifier for this agent run
@@ -21305,7 +21457,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
21305
21457
  set AgentState(value: string | null);
21306
21458
  /**
21307
21459
  * * Field Name: TotalTokensUsed
21308
- * * Display Name: Total Tokens Used
21460
+ * * Display Name: Total Tokens
21309
21461
  * * SQL Data Type: int
21310
21462
  * * Default Value: 0
21311
21463
  * * Description: Total number of tokens consumed by all LLM calls during this agent run
@@ -21337,7 +21489,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
21337
21489
  get __mj_UpdatedAt(): Date;
21338
21490
  /**
21339
21491
  * * Field Name: TotalPromptTokensUsed
21340
- * * Display Name: Total Prompt Tokens Used
21492
+ * * Display Name: Prompt Tokens
21341
21493
  * * SQL Data Type: int
21342
21494
  * * Description: Total number of prompt/input tokens used across all AIPromptRun executions during this agent run. This provides a breakdown of the TotalTokensUsed field to help analyze the ratio of input vs output tokens consumed by the agent.
21343
21495
  */
@@ -21345,7 +21497,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
21345
21497
  set TotalPromptTokensUsed(value: number | null);
21346
21498
  /**
21347
21499
  * * Field Name: TotalCompletionTokensUsed
21348
- * * Display Name: Total Completion Tokens Used
21500
+ * * Display Name: Completion Tokens
21349
21501
  * * SQL Data Type: int
21350
21502
  * * Description: Total number of completion/output tokens generated across all AIPromptRun executions during this agent run. This provides a breakdown of the TotalTokensUsed field to help analyze the ratio of input vs output tokens consumed by the agent.
21351
21503
  */
@@ -21353,7 +21505,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
21353
21505
  set TotalCompletionTokensUsed(value: number | null);
21354
21506
  /**
21355
21507
  * * Field Name: TotalTokensUsedRollup
21356
- * * Display Name: Total Tokens Used (Rollup)
21508
+ * * Display Name: Total Tokens (Rollup)
21357
21509
  * * SQL Data Type: int
21358
21510
  * * Description: Total tokens used including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalTokensUsed. For parent agents, this includes the sum of all descendant agent tokens. Calculated as TotalPromptTokensUsedRollup + TotalCompletionTokensUsedRollup.
21359
21511
  */
@@ -21361,7 +21513,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
21361
21513
  set TotalTokensUsedRollup(value: number | null);
21362
21514
  /**
21363
21515
  * * Field Name: TotalPromptTokensUsedRollup
21364
- * * Display Name: Total Prompt Tokens Used (Rollup)
21516
+ * * Display Name: Prompt Tokens (Rollup)
21365
21517
  * * SQL Data Type: int
21366
21518
  * * Description: Total prompt/input tokens including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalPromptTokensUsed. For parent agents, this includes the sum of all descendant agent prompt tokens.
21367
21519
  */
@@ -21369,7 +21521,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
21369
21521
  set TotalPromptTokensUsedRollup(value: number | null);
21370
21522
  /**
21371
21523
  * * Field Name: TotalCompletionTokensUsedRollup
21372
- * * Display Name: Total Completion Tokens Used (Rollup)
21524
+ * * Display Name: Completion Tokens (Rollup)
21373
21525
  * * SQL Data Type: int
21374
21526
  * * Description: Total completion/output tokens including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalCompletionTokensUsed. For parent agents, this includes the sum of all descendant agent completion tokens.
21375
21527
  */
@@ -21394,7 +21546,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
21394
21546
  set ConversationDetailID(value: string | null);
21395
21547
  /**
21396
21548
  * * Field Name: ConversationDetailSequence
21397
- * * Display Name: Conversation Detail Sequence
21549
+ * * Display Name: Sequence
21398
21550
  * * SQL Data Type: int
21399
21551
  * * Description: If a conversation detail spawned multiple agent runs, tracks the order of their spawn/execution
21400
21552
  */
@@ -21441,7 +21593,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
21441
21593
  set FinalPayload(value: string | null);
21442
21594
  /**
21443
21595
  * * Field Name: Message
21444
- * * Display Name: Message
21596
+ * * Display Name: Final Message
21445
21597
  * * SQL Data Type: nvarchar(MAX)
21446
21598
  * * Description: Final message from the agent to the end user at the end of a run
21447
21599
  */
@@ -21503,7 +21655,7 @@ each time the agent processes a prompt step.
21503
21655
  set OverrideVendorID(value: string | null);
21504
21656
  /**
21505
21657
  * * Field Name: Data
21506
- * * Display Name: Data
21658
+ * * Display Name: Execution Data
21507
21659
  * * SQL Data Type: nvarchar(MAX)
21508
21660
  * * Description: JSON serialized data that was passed for template rendering and prompt execution. This data was passed to the agent's prompt as well as all sub-agents.
21509
21661
  */
@@ -21587,7 +21739,7 @@ each time the agent processes a prompt step.
21587
21739
  set SecondaryScopes(value: string | null);
21588
21740
  /**
21589
21741
  * * Field Name: ExternalReferenceID
21590
- * * Display Name: External Reference ID
21742
+ * * Display Name: External Reference
21591
21743
  * * SQL Data Type: nvarchar(200)
21592
21744
  * * Description: Optional reference ID from an external system that initiated this agent run. Enables correlation between the caller's agent run and this execution. For example, when Skip SaaS is called via SkipProxyAgent, this stores the MJ-side Agent Run ID.
21593
21745
  */
@@ -21595,81 +21747,97 @@ each time the agent processes a prompt step.
21595
21747
  set ExternalReferenceID(value: string | null);
21596
21748
  /**
21597
21749
  * * Field Name: CompanyID
21598
- * * Display Name: Company ID
21750
+ * * Display Name: Company
21599
21751
  * * SQL Data Type: uniqueidentifier
21600
21752
  * * Description: Optional company scope for multi-tenant memory. When populated, Memory Manager uses this to scope extracted notes to the company. Flows from ExecuteAgentParams.companyId at agent invocation time.
21601
21753
  */
21602
21754
  get CompanyID(): string | null;
21603
21755
  set CompanyID(value: string | null);
21604
21756
  /**
21757
+ * * Field Name: TotalCacheReadTokensUsed
21758
+ * * Display Name: Cache Read Tokens
21759
+ * * SQL Data Type: int
21760
+ * * Description: Total input tokens served from the AI provider's prompt cache (cache reads / hits) across this agent run, summed from child prompt runs' TokensCacheReadRollup and sub-agent runs' TotalCacheReadTokensUsed. Counts only; the cost impact (cache reads are billed at a steep discount) is reflected in TotalCost. The cache counterpart of TotalPromptTokensUsed.
21761
+ */
21762
+ get TotalCacheReadTokensUsed(): number | null;
21763
+ set TotalCacheReadTokensUsed(value: number | null);
21764
+ /**
21765
+ * * Field Name: TotalCacheWriteTokensUsed
21766
+ * * Display Name: Cache Write Tokens
21767
+ * * SQL Data Type: int
21768
+ * * Description: Total input tokens written to the AI provider's prompt cache (cache writes / creation) across this agent run, summed from child prompt runs' TokensCacheWriteRollup and sub-agent runs' TotalCacheWriteTokensUsed. Populated for providers that bill cache creation (e.g. Anthropic); 0 or NULL otherwise. The cache counterpart of TotalCompletionTokensUsed.
21769
+ */
21770
+ get TotalCacheWriteTokensUsed(): number | null;
21771
+ set TotalCacheWriteTokensUsed(value: number | null);
21772
+ /**
21605
21773
  * * Field Name: Agent
21606
- * * Display Name: Agent Name
21774
+ * * Display Name: Agent Details
21607
21775
  * * SQL Data Type: nvarchar(255)
21608
21776
  */
21609
21777
  get Agent(): string | null;
21610
21778
  /**
21611
21779
  * * Field Name: ParentRun
21612
- * * Display Name: Parent Run Name
21780
+ * * Display Name: Parent Run Details
21613
21781
  * * SQL Data Type: nvarchar(255)
21614
21782
  */
21615
21783
  get ParentRun(): string | null;
21616
21784
  /**
21617
21785
  * * Field Name: Conversation
21618
- * * Display Name: Conversation Name
21786
+ * * Display Name: Conversation Details
21619
21787
  * * SQL Data Type: nvarchar(255)
21620
21788
  */
21621
21789
  get Conversation(): string | null;
21622
21790
  /**
21623
21791
  * * Field Name: User
21624
- * * Display Name: User Name
21792
+ * * Display Name: User Details
21625
21793
  * * SQL Data Type: nvarchar(100)
21626
21794
  */
21627
21795
  get User(): string | null;
21628
21796
  /**
21629
21797
  * * Field Name: ConversationDetail
21630
- * * Display Name: Conversation Detail Name
21798
+ * * Display Name: Conversation Detail Details
21631
21799
  * * SQL Data Type: nvarchar(MAX)
21632
21800
  */
21633
21801
  get ConversationDetail(): string | null;
21634
21802
  /**
21635
21803
  * * Field Name: LastRun
21636
- * * Display Name: Last Run Name
21804
+ * * Display Name: Last Run Details
21637
21805
  * * SQL Data Type: nvarchar(255)
21638
21806
  */
21639
21807
  get LastRun(): string | null;
21640
21808
  /**
21641
21809
  * * Field Name: Configuration
21642
- * * Display Name: Configuration Name
21810
+ * * Display Name: Configuration Details
21643
21811
  * * SQL Data Type: nvarchar(100)
21644
21812
  */
21645
21813
  get Configuration(): string | null;
21646
21814
  /**
21647
21815
  * * Field Name: OverrideModel
21648
- * * Display Name: Override Model Name
21816
+ * * Display Name: Override Model Details
21649
21817
  * * SQL Data Type: nvarchar(50)
21650
21818
  */
21651
21819
  get OverrideModel(): string | null;
21652
21820
  /**
21653
21821
  * * Field Name: OverrideVendor
21654
- * * Display Name: Override Vendor Name
21822
+ * * Display Name: Override Vendor Details
21655
21823
  * * SQL Data Type: nvarchar(50)
21656
21824
  */
21657
21825
  get OverrideVendor(): string | null;
21658
21826
  /**
21659
21827
  * * Field Name: ScheduledJobRun
21660
- * * Display Name: Scheduled Job Run Name
21828
+ * * Display Name: Scheduled Job Details
21661
21829
  * * SQL Data Type: nvarchar(200)
21662
21830
  */
21663
21831
  get ScheduledJobRun(): string | null;
21664
21832
  /**
21665
21833
  * * Field Name: TestRun
21666
- * * Display Name: Test Run Name
21834
+ * * Display Name: Test Run Details
21667
21835
  * * SQL Data Type: nvarchar(255)
21668
21836
  */
21669
21837
  get TestRun(): string | null;
21670
21838
  /**
21671
21839
  * * Field Name: PrimaryScopeEntity
21672
- * * Display Name: Primary Scope Entity Name
21840
+ * * Display Name: Primary Scope Entity Details
21673
21841
  * * SQL Data Type: nvarchar(255)
21674
21842
  */
21675
21843
  get PrimaryScopeEntity(): string | null;
@@ -24257,7 +24425,7 @@ export declare class MJAIModelCostEntity extends BaseEntity<MJAIModelCostEntityT
24257
24425
  set ID(value: string);
24258
24426
  /**
24259
24427
  * * Field Name: ModelID
24260
- * * Display Name: Model ID
24428
+ * * Display Name: Model
24261
24429
  * * SQL Data Type: uniqueidentifier
24262
24430
  * * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
24263
24431
  */
@@ -24265,7 +24433,7 @@ export declare class MJAIModelCostEntity extends BaseEntity<MJAIModelCostEntityT
24265
24433
  set ModelID(value: string);
24266
24434
  /**
24267
24435
  * * Field Name: VendorID
24268
- * * Display Name: Vendor ID
24436
+ * * Display Name: Vendor
24269
24437
  * * SQL Data Type: uniqueidentifier
24270
24438
  * * Related Entity/Foreign Key: MJ: AI Vendors (vwAIVendors.ID)
24271
24439
  */
@@ -24312,7 +24480,7 @@ export declare class MJAIModelCostEntity extends BaseEntity<MJAIModelCostEntityT
24312
24480
  set Currency(value: string);
24313
24481
  /**
24314
24482
  * * Field Name: PriceTypeID
24315
- * * Display Name: Price Type ID
24483
+ * * Display Name: Price Type
24316
24484
  * * SQL Data Type: uniqueidentifier
24317
24485
  * * Related Entity/Foreign Key: MJ: AI Model Price Types (vwAIModelPriceTypes.ID)
24318
24486
  */
@@ -24336,7 +24504,7 @@ export declare class MJAIModelCostEntity extends BaseEntity<MJAIModelCostEntityT
24336
24504
  set OutputPricePerUnit(value: number);
24337
24505
  /**
24338
24506
  * * Field Name: UnitTypeID
24339
- * * Display Name: Unit Type ID
24507
+ * * Display Name: Unit Type
24340
24508
  * * SQL Data Type: uniqueidentifier
24341
24509
  * * Related Entity/Foreign Key: MJ: AI Model Price Unit Types (vwAIModelPriceUnitTypes.ID)
24342
24510
  */
@@ -24377,26 +24545,42 @@ export declare class MJAIModelCostEntity extends BaseEntity<MJAIModelCostEntityT
24377
24545
  */
24378
24546
  get __mj_UpdatedAt(): Date;
24379
24547
  /**
24548
+ * * Field Name: CacheReadPricePerUnit
24549
+ * * Display Name: Cache Read Price Per Unit
24550
+ * * SQL Data Type: decimal(18, 8)
24551
+ * * Description: Optional price per unit for input tokens served from the AI provider's prompt cache (cache reads / hits), expressed in the same currency and UnitType (e.g. per 1M tokens) as InputPricePerUnit. When NULL, cache-read tokens are priced at InputPricePerUnit. Cache reads are usually far cheaper than uncached input (e.g. ~0.1x for Anthropic/Gemini, ~0.5x for OpenAI).
24552
+ */
24553
+ get CacheReadPricePerUnit(): number | null;
24554
+ set CacheReadPricePerUnit(value: number | null);
24555
+ /**
24556
+ * * Field Name: CacheWritePricePerUnit
24557
+ * * Display Name: Cache Write Price Per Unit
24558
+ * * SQL Data Type: decimal(18, 8)
24559
+ * * Description: Optional price per unit for input tokens written to the AI provider's prompt cache (cache writes / creation), expressed in the same currency and UnitType as InputPricePerUnit. When NULL, cache-write tokens are priced at InputPricePerUnit. Populated for providers that bill cache creation separately (e.g. Anthropic, ~1.25x input); leave NULL for providers that do not (OpenAI, Gemini), which also report 0 cache-write tokens.
24560
+ */
24561
+ get CacheWritePricePerUnit(): number | null;
24562
+ set CacheWritePricePerUnit(value: number | null);
24563
+ /**
24380
24564
  * * Field Name: Model
24381
- * * Display Name: Model
24565
+ * * Display Name: Model Name
24382
24566
  * * SQL Data Type: nvarchar(50)
24383
24567
  */
24384
24568
  get Model(): string;
24385
24569
  /**
24386
24570
  * * Field Name: Vendor
24387
- * * Display Name: Vendor
24571
+ * * Display Name: Vendor Name
24388
24572
  * * SQL Data Type: nvarchar(50)
24389
24573
  */
24390
24574
  get Vendor(): string;
24391
24575
  /**
24392
24576
  * * Field Name: PriceType
24393
- * * Display Name: Price Type
24577
+ * * Display Name: Price Type Name
24394
24578
  * * SQL Data Type: nvarchar(100)
24395
24579
  */
24396
24580
  get PriceType(): string;
24397
24581
  /**
24398
24582
  * * Field Name: UnitType
24399
- * * Display Name: Unit Type
24583
+ * * Display Name: Unit Type Name
24400
24584
  * * SQL Data Type: nvarchar(100)
24401
24585
  */
24402
24586
  get UnitType(): string;
@@ -25890,7 +26074,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
25890
26074
  set ConfigurationID(value: string | null);
25891
26075
  /**
25892
26076
  * * Field Name: RunAt
25893
- * * Display Name: Run At
26077
+ * * Display Name: Started At
25894
26078
  * * SQL Data Type: datetimeoffset
25895
26079
  * * Default Value: sysdatetimeoffset()
25896
26080
  * * Description: When the prompt run started, with timezone offset information.
@@ -25931,7 +26115,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
25931
26115
  set Result(value: string | null);
25932
26116
  /**
25933
26117
  * * Field Name: TokensUsed
25934
- * * Display Name: Total Tokens Used
26118
+ * * Display Name: Tokens Used
25935
26119
  * * SQL Data Type: int
25936
26120
  * * Description: Total number of tokens used (prompt + completion).
25937
26121
  */
@@ -26043,7 +26227,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26043
26227
  set Cost(value: number | null);
26044
26228
  /**
26045
26229
  * * Field Name: CostCurrency
26046
- * * Display Name: Cost Currency
26230
+ * * Display Name: Currency
26047
26231
  * * SQL Data Type: nvarchar(10)
26048
26232
  * * Description: ISO 4217 currency code for the Cost field (e.g., USD, EUR, GBP). Different AI providers may use different currencies.
26049
26233
  */
@@ -26051,7 +26235,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26051
26235
  set CostCurrency(value: string | null);
26052
26236
  /**
26053
26237
  * * Field Name: TokensUsedRollup
26054
- * * Display Name: Total Tokens (Rollup)
26238
+ * * Display Name: Tokens Used (Rollup)
26055
26239
  * * SQL Data Type: int
26056
26240
  * * 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.
26057
26241
  */
@@ -26147,7 +26331,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26147
26331
  set ResponseFormat(value: string | null);
26148
26332
  /**
26149
26333
  * * Field Name: LogProbs
26150
- * * Display Name: Log Probabilities
26334
+ * * Display Name: Log Probs
26151
26335
  * * SQL Data Type: bit
26152
26336
  * * Description: Whether log probabilities were requested for this run
26153
26337
  */
@@ -26155,7 +26339,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26155
26339
  set LogProbs(value: boolean | null);
26156
26340
  /**
26157
26341
  * * Field Name: TopLogProbs
26158
- * * Display Name: Top Log Probabilities
26342
+ * * Display Name: Top Log Probs
26159
26343
  * * SQL Data Type: int
26160
26344
  * * Description: Number of top log probabilities requested per token (if LogProbs is true)
26161
26345
  */
@@ -26171,7 +26355,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26171
26355
  set DescendantCost(value: number | null);
26172
26356
  /**
26173
26357
  * * Field Name: ValidationAttemptCount
26174
- * * Display Name: Validation Attempt Count
26358
+ * * Display Name: Validation Attempts
26175
26359
  * * SQL Data Type: int
26176
26360
  * * Description: Total number of validation attempts made (including the initial attempt)
26177
26361
  */
@@ -26179,7 +26363,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26179
26363
  set ValidationAttemptCount(value: number | null);
26180
26364
  /**
26181
26365
  * * Field Name: SuccessfulValidationCount
26182
- * * Display Name: Successful Validation Count
26366
+ * * Display Name: Successful Validations
26183
26367
  * * SQL Data Type: int
26184
26368
  * * Description: Number of validation attempts that passed validation
26185
26369
  */
@@ -26187,7 +26371,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26187
26371
  set SuccessfulValidationCount(value: number | null);
26188
26372
  /**
26189
26373
  * * Field Name: FinalValidationPassed
26190
- * * Display Name: Final Validation Passed
26374
+ * * Display Name: Validation Passed
26191
26375
  * * SQL Data Type: bit
26192
26376
  * * Description: Whether validation ultimately passed (1) or failed (0)
26193
26377
  */
@@ -26211,7 +26395,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26211
26395
  set RetryStrategy(value: string | null);
26212
26396
  /**
26213
26397
  * * Field Name: MaxRetriesConfigured
26214
- * * Display Name: Max Retries Configured
26398
+ * * Display Name: Max Retries
26215
26399
  * * SQL Data Type: int
26216
26400
  * * Description: Maximum number of retries configured on the prompt
26217
26401
  */
@@ -26267,7 +26451,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26267
26451
  set TotalRetryDurationMS(value: number | null);
26268
26452
  /**
26269
26453
  * * Field Name: ValidationAttempts
26270
- * * Display Name: Validation Attempts
26454
+ * * Display Name: Validation Attempt Logs
26271
26455
  * * SQL Data Type: nvarchar(MAX)
26272
26456
  * * Description: JSON array containing detailed information about each validation attempt
26273
26457
  */
@@ -26308,7 +26492,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26308
26492
  set FailoverDurations(value: string | null);
26309
26493
  /**
26310
26494
  * * Field Name: OriginalModelID
26311
- * * Display Name: Original Model
26495
+ * * Display Name: Original Model ID
26312
26496
  * * SQL Data Type: uniqueidentifier
26313
26497
  * * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
26314
26498
  * * Description: The AI Model ID that was originally attempted before any failovers
@@ -26317,7 +26501,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26317
26501
  set OriginalModelID(value: string | null);
26318
26502
  /**
26319
26503
  * * Field Name: OriginalRequestStartTime
26320
- * * Display Name: Original Request Start Time
26504
+ * * Display Name: Original Request Start
26321
26505
  * * SQL Data Type: datetimeoffset
26322
26506
  * * Description: Timestamp when the original request started, before any failovers
26323
26507
  */
@@ -26342,7 +26526,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26342
26526
  set RerunFromPromptRunID(value: string | null);
26343
26527
  /**
26344
26528
  * * Field Name: ModelSelection
26345
- * * Display Name: Model Selection
26529
+ * * Display Name: Model Selection Details
26346
26530
  * * SQL Data Type: nvarchar(MAX)
26347
26531
  * * Description: JSON object containing detailed model selection information including all models considered, their scores, and the selection rationale
26348
26532
  */
@@ -26421,7 +26605,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26421
26605
  set CacheKey(value: string | null);
26422
26606
  /**
26423
26607
  * * Field Name: JudgeID
26424
- * * Display Name: Judge
26608
+ * * Display Name: Judge Prompt
26425
26609
  * * SQL Data Type: uniqueidentifier
26426
26610
  * * Related Entity/Foreign Key: MJ: AI Prompts (vwAIPrompts.ID)
26427
26611
  * * Description: ID of the AIPrompt used as a judge to evaluate and rank multiple parallel execution results
@@ -26505,7 +26689,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26505
26689
  set CompletionTime(value: number | null);
26506
26690
  /**
26507
26691
  * * Field Name: ModelSpecificResponseDetails
26508
- * * Display Name: Model Specific Response Details
26692
+ * * Display Name: Provider Response Details
26509
26693
  * * SQL Data Type: nvarchar(MAX)
26510
26694
  * * Description: JSON field containing provider-specific response metadata and details not captured in standard fields. Structure varies by AI provider.
26511
26695
  */
@@ -26553,6 +26737,38 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26553
26737
  get AssistantPrefill(): string | null;
26554
26738
  set AssistantPrefill(value: string | null);
26555
26739
  /**
26740
+ * * Field Name: TokensCacheRead
26741
+ * * Display Name: Tokens Cache Read
26742
+ * * SQL Data Type: int
26743
+ * * Description: Number of input tokens served from the AI provider's prompt cache (a cache READ / hit) for this run, as reported by the provider. Counts only; no cost is derived here. NULL if the provider did not report cache reads or caching did not engage. Distinct from CacheHit/CacheKey, which track MemberJunction's own result cache.
26744
+ */
26745
+ get TokensCacheRead(): number | null;
26746
+ set TokensCacheRead(value: number | null);
26747
+ /**
26748
+ * * Field Name: TokensCacheWrite
26749
+ * * Display Name: Tokens Cache Write
26750
+ * * SQL Data Type: int
26751
+ * * Description: Number of input tokens written to the AI provider's prompt cache (a cache WRITE / creation) for this run, as reported by the provider. Populated for providers that report cache writes (e.g. Anthropic cache_creation_input_tokens); NULL or 0 for providers that do not bill/report writes (OpenAI, Gemini, Groq, Cerebras). Counts only; no cost is derived here.
26752
+ */
26753
+ get TokensCacheWrite(): number | null;
26754
+ set TokensCacheWrite(value: number | null);
26755
+ /**
26756
+ * * Field Name: TokensCacheReadRollup
26757
+ * * Display Name: Tokens Cache Read (Rollup)
26758
+ * * SQL Data Type: int
26759
+ * * Description: Rollup of TokensCacheRead across this prompt run and all of its descendant prompt runs (e.g. the individual attempts behind a parallel / multi-attempt / failover consolidation). For a leaf run this equals TokensCacheRead. Use this (not TokensCacheRead) when aggregating cache reads up a prompt-run or agent-run hierarchy so fan-out provider calls are not under-counted.
26760
+ */
26761
+ get TokensCacheReadRollup(): number | null;
26762
+ set TokensCacheReadRollup(value: number | null);
26763
+ /**
26764
+ * * Field Name: TokensCacheWriteRollup
26765
+ * * Display Name: Tokens Cache Write (Rollup)
26766
+ * * SQL Data Type: int
26767
+ * * Description: Rollup of TokensCacheWrite across this prompt run and all of its descendant prompt runs. For a leaf run this equals TokensCacheWrite. Mirrors TokensUsedRollup/TokensPromptRollup; populated for providers that report cache writes (e.g. Anthropic), otherwise 0 or NULL.
26768
+ */
26769
+ get TokensCacheWriteRollup(): number | null;
26770
+ set TokensCacheWriteRollup(value: number | null);
26771
+ /**
26556
26772
  * * Field Name: Prompt
26557
26773
  * * Display Name: Prompt
26558
26774
  * * SQL Data Type: nvarchar(255)
@@ -26602,7 +26818,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26602
26818
  get OriginalModel(): string | null;
26603
26819
  /**
26604
26820
  * * Field Name: RerunFromPromptRun
26605
- * * Display Name: Rerun From
26821
+ * * Display Name: Rerun From Run
26606
26822
  * * SQL Data Type: nvarchar(255)
26607
26823
  */
26608
26824
  get RerunFromPromptRun(): string | null;
@@ -26632,7 +26848,7 @@ export declare class MJAIPromptRunEntity extends BaseEntity<MJAIPromptRunEntityT
26632
26848
  get RootParentID(): string | null;
26633
26849
  /**
26634
26850
  * * Field Name: RootRerunFromPromptRunID
26635
- * * Display Name: Root Rerun From
26851
+ * * Display Name: Root Rerun Source
26636
26852
  * * SQL Data Type: uniqueidentifier
26637
26853
  */
26638
26854
  get RootRerunFromPromptRunID(): string | null;
@@ -28978,6 +29194,16 @@ export declare class MJApplicationEntity extends BaseEntity<MJApplicationEntityT
28978
29194
  */
28979
29195
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
28980
29196
  /**
29197
+ * MJ: Applications - Delete method override to wrap in transaction since CascadeDeletes is true.
29198
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
29199
+ * @public
29200
+ * @method
29201
+ * @override
29202
+ * @memberof MJApplicationEntity
29203
+ * @returns {Promise<boolean>} - true if successful, false otherwise
29204
+ */
29205
+ Delete(options?: EntityDeleteOptions): Promise<boolean>;
29206
+ /**
28981
29207
  * * Field Name: ID
28982
29208
  * * Display Name: ID
28983
29209
  * * SQL Data Type: uniqueidentifier
@@ -30195,9 +30421,9 @@ export declare class MJArtifactUseEntity extends BaseEntity<MJArtifactUseEntityT
30195
30421
  /**
30196
30422
  * * Field Name: ArtifactVersion
30197
30423
  * * Display Name: Artifact Version
30198
- * * SQL Data Type: int
30424
+ * * SQL Data Type: nvarchar(255)
30199
30425
  */
30200
- get ArtifactVersion(): number;
30426
+ get ArtifactVersion(): string | null;
30201
30427
  /**
30202
30428
  * * Field Name: User
30203
30429
  * * Display Name: User
@@ -30301,9 +30527,9 @@ export declare class MJArtifactVersionAttributeEntity extends BaseEntity<MJArtif
30301
30527
  /**
30302
30528
  * * Field Name: ArtifactVersion
30303
30529
  * * Display Name: Artifact Version
30304
- * * SQL Data Type: int
30530
+ * * SQL Data Type: nvarchar(255)
30305
30531
  */
30306
- get ArtifactVersion(): number;
30532
+ get ArtifactVersion(): string | null;
30307
30533
  }
30308
30534
  /**
30309
30535
  * MJ: Artifact Versions - strongly typed entity sub-class
@@ -31125,9 +31351,9 @@ export declare class MJCollectionArtifactEntity extends BaseEntity<MJCollectionA
31125
31351
  /**
31126
31352
  * * Field Name: ArtifactVersion
31127
31353
  * * Display Name: Artifact Version
31128
- * * SQL Data Type: int
31354
+ * * SQL Data Type: nvarchar(255)
31129
31355
  */
31130
- get ArtifactVersion(): number;
31356
+ get ArtifactVersion(): string | null;
31131
31357
  }
31132
31358
  /**
31133
31359
  * MJ: Collection Permissions - strongly typed entity sub-class
@@ -35454,6 +35680,19 @@ export interface MJContentSourceEntity_IContentSourceConfiguration {
35454
35680
  * `TagMatchThreshold - 0.05` at runtime.
35455
35681
  */
35456
35682
  SuggestThreshold?: number;
35683
+ /**
35684
+ * Maximum number of content items the autotagger may PROCESS (hand to the LLM) per run
35685
+ * before the run is paused via the existing CancellationRequested machinery. Does not
35686
+ * include items skipped by change-detection — those are free. NULL/unset = unlimited.
35687
+ *
35688
+ * Most intuitive "do at most N this run, do the rest next time" knob. When checking
35689
+ * budgets after a batch, this is evaluated FIRST (before tag / token / cost caps) because
35690
+ * it is the most user-facing and not tied to a specific model's pricing or tokenization.
35691
+ *
35692
+ * Pause is graceful — the next invocation re-crawls, change-detection skips the items
35693
+ * already tagged in DB, and the remaining items get processed.
35694
+ */
35695
+ MaxItemsPerRun?: number;
35457
35696
  /**
35458
35697
  * Maximum number of new tags the autotagger may auto-create across an entire run before
35459
35698
  * the run is paused via the existing CancellationRequested machinery. NULL/unset = unlimited.
@@ -35484,9 +35723,54 @@ export interface MJContentSourceEntity_IContentSourceConfiguration {
35484
35723
  * - RSS Feed: { URL: "https://example.com/feed.xml" }
35485
35724
  * - Cloud Storage: { FileStorageProviderKey: "Azure Blob Storage", PathPrefix: "/documents" }
35486
35725
  * - Local File System: { Path: "/var/data/documents" }
35487
- * - Website: { URL: "https://example.com", CrawlDepth: 2 }
35726
+ * - Website: { URL: "https://example.com" } see Website sub-object below for crawl knobs
35488
35727
  */
35489
35728
  SourceSpecificConfiguration?: Record<string, unknown>;
35729
+ /**
35730
+ * Website-crawler settings — only meaningful for content sources whose ContentSourceType is
35731
+ * "Website". Replaces the legacy per-key ContentSourceParam rows; AutotagWebsite reads from
35732
+ * this sub-object first and falls back to ContentSourceParam rows for sources configured
35733
+ * before this field existed.
35734
+ *
35735
+ * In the future, source-type-specific knobs like these may move to a pluggable per-source-type
35736
+ * sub-interface scheme (one named property per source type). This is the first opt-in
35737
+ * implementation; other source types will follow the same pattern as their knobs grow.
35738
+ */
35739
+ Website?: MJContentSourceEntity_IContentSourceWebsiteConfiguration;
35740
+ }
35741
+ /**
35742
+ * Per-source crawl/discovery settings specific to AutotagWebsite. All optional with
35743
+ * runtime defaults; an empty object is valid and produces the standard behavior
35744
+ * (MaxDepth=2, recursive crawl on, sibling-domain fan-out off, no URL filter).
35745
+ */
35746
+ export interface MJContentSourceEntity_IContentSourceWebsiteConfiguration {
35747
+ /**
35748
+ * Recursion ceiling for in-domain links. `0` = just the start URL; `2` (the default) =
35749
+ * root + section pages + their child content pages. Higher values combine multiplicatively
35750
+ * with the per-page 1-second crawl delay.
35751
+ */
35752
+ MaxDepth?: number;
35753
+ /**
35754
+ * When true (default), the recursive depth-aware crawler runs. Setting false disables it
35755
+ * (single-page behavior, retrieved-as-discovered-from-the-seed-URL only).
35756
+ */
35757
+ CrawlSitesInLowerLevelDomain?: boolean;
35758
+ /**
35759
+ * When true, also adds sibling-path URLs found on the seed page (single-pass, no recursion).
35760
+ * Off by default to avoid accidental fan-out across paths the operator didn't intend.
35761
+ */
35762
+ CrawlOtherSitesInTopLevelDomain?: boolean;
35763
+ /**
35764
+ * Regex string. Only URLs matching this pattern are added to the visited set. Use to scope
35765
+ * to e.g. `^https://example\.com/blog/.*`. Unset = match everything.
35766
+ */
35767
+ URLPattern?: string;
35768
+ /**
35769
+ * URL prefix used for the in-domain check. When unset, derived as the parent directory of
35770
+ * the seed URL. Override to expand or constrain the crawl boundary (e.g., set to the bare
35771
+ * origin to crawl the whole site).
35772
+ */
35773
+ RootURL?: string;
35490
35774
  }
35491
35775
  /**
35492
35776
  * MJ: Content Sources - strongly typed entity sub-class
@@ -36329,16 +36613,16 @@ export declare class MJConversationDetailArtifactEntity extends BaseEntity<MJCon
36329
36613
  /**
36330
36614
  * * Field Name: ArtifactVersion
36331
36615
  * * Display Name: Artifact Version Summary
36332
- * * SQL Data Type: int
36616
+ * * SQL Data Type: nvarchar(255)
36333
36617
  */
36334
- get ArtifactVersion(): number;
36618
+ get ArtifactVersion(): string | null;
36335
36619
  }
36336
36620
  /**
36337
36621
  * MJ: Conversation Detail Attachments - strongly typed entity sub-class
36338
36622
  * * Schema: __mj
36339
36623
  * * Base Table: ConversationDetailAttachment
36340
36624
  * * Base View: vwConversationDetailAttachments
36341
- * * @description Stores attachments (images, videos, audio, documents) for conversation messages. Supports both inline base64 storage for small files and reference to MJStorage for large files.
36625
+ * * @description DEPRECATED: file uploads now flow through ConversationArtifactVersion so they share storage, identity, versioning, permissions, and the artifact-tool dispatch path. Table, generated entity class, GraphQL types, and stored procedures all remain functional — runtime use produces a console warning per the framework's standard handling of Status='Deprecated'. See packages/AI/Agents/docs/ARTIFACT_TOOLS_GUIDE.md for migration guidance. Originally: Stores attachments (images, videos, audio, documents) for conversation messages.
36342
36626
  * * Primary Key: ID
36343
36627
  * @extends {BaseEntity}
36344
36628
  * @class
@@ -36532,9 +36816,9 @@ export declare class MJConversationDetailAttachmentEntity extends BaseEntity<MJC
36532
36816
  /**
36533
36817
  * * Field Name: ArtifactVersion
36534
36818
  * * Display Name: Artifact Version Record
36535
- * * SQL Data Type: int
36819
+ * * SQL Data Type: nvarchar(255)
36536
36820
  */
36537
- get ArtifactVersion(): number | null;
36821
+ get ArtifactVersion(): string | null;
36538
36822
  }
36539
36823
  /**
36540
36824
  * MJ: Conversation Detail Ratings - strongly typed entity sub-class
@@ -37015,6 +37299,29 @@ export declare class MJConversationEntity extends BaseEntity<MJConversationEntit
37015
37299
  */
37016
37300
  Delete(options?: EntityDeleteOptions): Promise<boolean>;
37017
37301
  /**
37302
+ * Validate() method override for MJ: Conversations entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
37303
+ * * Table-Level: Ensures that records scoped as 'Global' do not have an associated Application ID, while records scoped to 'Application' or 'Both' must have a valid Application ID assigned.
37304
+ * * Table-Level: Both the linked entity and the linked record must be provided together, or both must be left empty, to ensure that a reference to an external record is complete.
37305
+ * @public
37306
+ * @method
37307
+ * @override
37308
+ */
37309
+ Validate(): ValidationResult;
37310
+ /**
37311
+ * Ensures that records scoped as 'Global' do not have an associated Application ID, while records scoped to 'Application' or 'Both' must have a valid Application ID assigned.
37312
+ * @param result - the ValidationResult object to add any errors or warnings to
37313
+ * @public
37314
+ * @method
37315
+ */
37316
+ ValidateApplicationScopeAndIDConsistency(result: ValidationResult): void;
37317
+ /**
37318
+ * Both the linked entity and the linked record must be provided together, or both must be left empty, to ensure that a reference to an external record is complete.
37319
+ * @param result - the ValidationResult object to add any errors or warnings to
37320
+ * @public
37321
+ * @method
37322
+ */
37323
+ ValidateLinkedEntityAndRecordCoexistence(result: ValidationResult): void;
37324
+ /**
37018
37325
  * * Field Name: ID
37019
37326
  * * Display Name: ID
37020
37327
  * * SQL Data Type: uniqueidentifier
@@ -37075,6 +37382,7 @@ export declare class MJConversationEntity extends BaseEntity<MJConversationEntit
37075
37382
  * * Display Name: Linked Entity
37076
37383
  * * SQL Data Type: uniqueidentifier
37077
37384
  * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
37385
+ * * Description: Generic 'what is this conversation about?' pointer. Names the Entity whose record this conversation references (e.g. MJ: Components when the conversation was started in the Form Builder cockpit about a specific form). Paired with LinkedRecordID via the CK_Conversation_LinkBinding cross-column CHECK — both NULL or both populated. Surfaces use this to filter their conversation list to entries about the currently-loaded record (e.g. 'show prior conversations about THIS form'). Reusable beyond Form Builder by any future dashboard / record-context surface that wants the same UX without further schema work.
37078
37386
  */
37079
37387
  get LinkedEntityID(): string | null;
37080
37388
  set LinkedEntityID(value: string | null);
@@ -37082,7 +37390,7 @@ export declare class MJConversationEntity extends BaseEntity<MJConversationEntit
37082
37390
  * * Field Name: LinkedRecordID
37083
37391
  * * Display Name: Linked Record ID
37084
37392
  * * SQL Data Type: nvarchar(500)
37085
- * * Description: ID of a related record this conversation is about (support ticket, order, etc.).
37393
+ * * Description: The primary key of the record this conversation is about, serialized as a string so any entity type can be referenced regardless of its PK shape (UUID, int, composite). Used together with LinkedEntityID — see CK_Conversation_LinkBinding. Wide enough (NVARCHAR(500) in the baseline schema) to handle chunky composite keys. Surfaces query by (LinkedEntityID, LinkedRecordID) — or by LinkedRecordID IN (...) when a lineage of records shares conversation context (e.g. multiple Component versions of the same form lineage).
37086
37394
  */
37087
37395
  get LinkedRecordID(): string | null;
37088
37396
  set LinkedRecordID(value: string | null);
@@ -37157,6 +37465,46 @@ export declare class MJConversationEntity extends BaseEntity<MJConversationEntit
37157
37465
  get TestRunID(): string | null;
37158
37466
  set TestRunID(value: string | null);
37159
37467
  /**
37468
+ * * Field Name: ApplicationScope
37469
+ * * Display Name: Application Scope
37470
+ * * SQL Data Type: nvarchar(20)
37471
+ * * Default Value: Global
37472
+ * * Value List Type: List
37473
+ * * Possible Values
37474
+ * * Application
37475
+ * * Both
37476
+ * * Global
37477
+ * * Description: Controls where this conversation surfaces in the UI. Global = appears in the main Chat app (no application binding). Application = scoped to a specific Application's embedded chat surface (e.g. the Form Builder cockpit); hidden from the main chat list by default. Both = explicitly promoted to appear in BOTH the main chat list and the bound Application's embedded surface. Defaults to Global so pre-existing conversations stay visible in main chat. Paired with ApplicationID via a cross-column CHECK constraint: Global => ApplicationID IS NULL; Application or Both => ApplicationID IS NOT NULL.
37478
+ */
37479
+ get ApplicationScope(): 'Application' | 'Both' | 'Global';
37480
+ set ApplicationScope(value: 'Application' | 'Both' | 'Global');
37481
+ /**
37482
+ * * Field Name: ApplicationID
37483
+ * * Display Name: Application
37484
+ * * SQL Data Type: uniqueidentifier
37485
+ * * Related Entity/Foreign Key: MJ: Applications (vwApplications.ID)
37486
+ * * Description: Optional Application this conversation is bound to. Required when ApplicationScope is 'Application' or 'Both'; must be NULL when ApplicationScope is 'Global'. Enforced by the CK_Conversation_ScopeAppBinding cross-column CHECK. Used by embedded chat surfaces (e.g. the Form Builder cockpit) to filter their conversation list to just their own application's conversations.
37487
+ */
37488
+ get ApplicationID(): string | null;
37489
+ set ApplicationID(value: string | null);
37490
+ /**
37491
+ * * Field Name: DefaultAgentID
37492
+ * * Display Name: Default Agent
37493
+ * * SQL Data Type: uniqueidentifier
37494
+ * * Related Entity/Foreign Key: MJ: AI Agents (vwAIAgents.ID)
37495
+ * * Description: Optional per-conversation default AI agent. When set, the message router targets this agent for non-mention, non-continuity messages instead of falling through to the embedder-supplied default (e.g. Form Builder) or to Sage. Lets a user pin a conversation to a specific specialist agent (e.g. Research Agent) so Sage is never invoked for that thread. Routing precedence: @mention > continuity (last responder) > Conversation.DefaultAgentID > embedder's defaultAgentId input > Sage fallback.
37496
+ */
37497
+ get DefaultAgentID(): string | null;
37498
+ set DefaultAgentID(value: string | null);
37499
+ /**
37500
+ * * Field Name: AdditionalData
37501
+ * * Display Name: Additional Data
37502
+ * * SQL Data Type: nvarchar(MAX)
37503
+ * * Description: Free-form JSON extensibility column. Apps that want to attach conversation-scoped metadata (UI state, draft notes, custom analytics tags, etc.) can stuff it here without a schema change. **Namespace your keys** to avoid collisions across apps — store e.g. {"form-builder.lastPreviewRecordId":"...","my-app.fooFlag":true} rather than top-level lastPreviewRecordId. Core MJ code paths do NOT read this column; it's purely for downstream apps. NVARCHAR(MAX) so callers can store arbitrarily large blobs, but treat that as a smell — heavy data belongs in a real entity, not a JSON dump.
37504
+ */
37505
+ get AdditionalData(): string | null;
37506
+ set AdditionalData(value: string | null);
37507
+ /**
37160
37508
  * * Field Name: User
37161
37509
  * * Display Name: User Name
37162
37510
  * * SQL Data Type: nvarchar(100)
@@ -37164,7 +37512,7 @@ export declare class MJConversationEntity extends BaseEntity<MJConversationEntit
37164
37512
  get User(): string;
37165
37513
  /**
37166
37514
  * * Field Name: LinkedEntity
37167
- * * Display Name: Linked Entity Type
37515
+ * * Display Name: Linked Entity Name
37168
37516
  * * SQL Data Type: nvarchar(255)
37169
37517
  */
37170
37518
  get LinkedEntity(): string | null;
@@ -37192,6 +37540,18 @@ export declare class MJConversationEntity extends BaseEntity<MJConversationEntit
37192
37540
  * * SQL Data Type: nvarchar(255)
37193
37541
  */
37194
37542
  get TestRun(): string | null;
37543
+ /**
37544
+ * * Field Name: Application
37545
+ * * Display Name: Application Name
37546
+ * * SQL Data Type: nvarchar(100)
37547
+ */
37548
+ get Application(): string | null;
37549
+ /**
37550
+ * * Field Name: DefaultAgent
37551
+ * * Display Name: Default Agent Name
37552
+ * * SQL Data Type: nvarchar(255)
37553
+ */
37554
+ get DefaultAgent(): string | null;
37195
37555
  }
37196
37556
  /**
37197
37557
  * MJ: Countries - strongly typed entity sub-class
@@ -42498,7 +42858,10 @@ export declare class MJEntityFieldEntity extends BaseEntity<MJEntityFieldEntityT
42498
42858
  * * GeoLongitude
42499
42859
  * * GeoPostalCode
42500
42860
  * * GeoStateProvince
42861
+ * * HTML
42862
+ * * Icon
42501
42863
  * * MSTeams
42864
+ * * Markdown
42502
42865
  * * Other
42503
42866
  * * SIP
42504
42867
  * * SMS
@@ -42507,10 +42870,10 @@ export declare class MJEntityFieldEntity extends BaseEntity<MJEntityFieldEntityT
42507
42870
  * * URL
42508
42871
  * * WhatsApp
42509
42872
  * * ZoomMtg
42510
- * * Description: Defines extended behaviors for a field such as for Email, Web URLs, Code, etc.
42873
+ * * Description: Defines extended behaviors for a field such as Email, Web URLs, Code, Markdown, HTML, and Icon. When set to 'Icon', the field's values are treated as icon CSS classes (e.g. Font Awesome) for per-row display in the UI.
42511
42874
  */
42512
- get ExtendedType(): 'Code' | 'Email' | 'FaceTime' | 'Geo' | 'GeoAddress' | 'GeoCity' | 'GeoCountry' | 'GeoLatitude' | 'GeoLongitude' | 'GeoPostalCode' | 'GeoStateProvince' | 'MSTeams' | 'Other' | 'SIP' | 'SMS' | 'Skype' | 'Tel' | 'URL' | 'WhatsApp' | 'ZoomMtg' | null;
42513
- set ExtendedType(value: 'Code' | 'Email' | 'FaceTime' | 'Geo' | 'GeoAddress' | 'GeoCity' | 'GeoCountry' | 'GeoLatitude' | 'GeoLongitude' | 'GeoPostalCode' | 'GeoStateProvince' | 'MSTeams' | 'Other' | 'SIP' | 'SMS' | 'Skype' | 'Tel' | 'URL' | 'WhatsApp' | 'ZoomMtg' | null);
42875
+ get ExtendedType(): 'Code' | 'Email' | 'FaceTime' | 'Geo' | 'GeoAddress' | 'GeoCity' | 'GeoCountry' | 'GeoLatitude' | 'GeoLongitude' | 'GeoPostalCode' | 'GeoStateProvince' | 'HTML' | 'Icon' | 'MSTeams' | 'Markdown' | 'Other' | 'SIP' | 'SMS' | 'Skype' | 'Tel' | 'URL' | 'WhatsApp' | 'ZoomMtg' | null;
42876
+ set ExtendedType(value: 'Code' | 'Email' | 'FaceTime' | 'Geo' | 'GeoAddress' | 'GeoCity' | 'GeoCountry' | 'GeoLatitude' | 'GeoLongitude' | 'GeoPostalCode' | 'GeoStateProvince' | 'HTML' | 'Icon' | 'MSTeams' | 'Markdown' | 'Other' | 'SIP' | 'SMS' | 'Skype' | 'Tel' | 'URL' | 'WhatsApp' | 'ZoomMtg' | null);
42514
42877
  /**
42515
42878
  * * Field Name: CodeType
42516
42879
  * * Display Name: Code Type
@@ -43007,6 +43370,189 @@ export declare class MJEntityFieldEntity extends BaseEntity<MJEntityFieldEntityT
43007
43370
  */
43008
43371
  get RelatedEntityClassName(): string | null;
43009
43372
  }
43373
+ /**
43374
+ * MJ: Entity Form Overrides - strongly typed entity sub-class
43375
+ * * Schema: __mj
43376
+ * * Base Table: EntityFormOverride
43377
+ * * Base View: vwEntityFormOverrides
43378
+ * * @description Points an Entity at a Component to serve as its form at runtime. Scoped to User > Role > Global with priority-based resolution. When present and Active, takes precedence over the entity's @RegisterClass-registered or CodeGen-generated Angular form.
43379
+ * * Primary Key: ID
43380
+ * @extends {BaseEntity}
43381
+ * @class
43382
+ * @public
43383
+ */
43384
+ export declare class MJEntityFormOverrideEntity extends BaseEntity<MJEntityFormOverrideEntityType> {
43385
+ /**
43386
+ * Loads the MJ: Entity Form Overrides record from the database
43387
+ * @param ID: string - primary key value to load the MJ: Entity Form Overrides record.
43388
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
43389
+ * @returns {Promise<boolean>} - true if successful, false otherwise
43390
+ * @public
43391
+ * @async
43392
+ * @memberof MJEntityFormOverrideEntity
43393
+ * @method
43394
+ * @override
43395
+ */
43396
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
43397
+ /**
43398
+ * Validate() method override for MJ: Entity Form Overrides entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
43399
+ * * Table-Level: Ensures that the correct identifier is provided based on the selected scope: 'User' requires a User ID without a Role, 'Role' requires a Role ID without a User, and 'Global' requires both to be empty. This prevents data inconsistency by ensuring records are correctly assigned to exactly one target type.
43400
+ * @public
43401
+ * @method
43402
+ * @override
43403
+ */
43404
+ Validate(): ValidationResult;
43405
+ /**
43406
+ * Ensures that the correct identifier is provided based on the selected scope: 'User' requires a User ID without a Role, 'Role' requires a Role ID without a User, and 'Global' requires both to be empty. This prevents data inconsistency by ensuring records are correctly assigned to exactly one target type.
43407
+ * @param result - the ValidationResult object to add any errors or warnings to
43408
+ * @public
43409
+ * @method
43410
+ */
43411
+ ValidateScopeAndIdentifierConsistency(result: ValidationResult): void;
43412
+ /**
43413
+ * * Field Name: ID
43414
+ * * Display Name: ID
43415
+ * * SQL Data Type: uniqueidentifier
43416
+ * * Default Value: newsequentialid()
43417
+ */
43418
+ get ID(): string;
43419
+ set ID(value: string);
43420
+ /**
43421
+ * * Field Name: EntityID
43422
+ * * Display Name: Entity
43423
+ * * SQL Data Type: uniqueidentifier
43424
+ * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
43425
+ * * Description: Foreign key to Entity — which entity this override is for.
43426
+ */
43427
+ get EntityID(): string;
43428
+ set EntityID(value: string);
43429
+ /**
43430
+ * * Field Name: ComponentID
43431
+ * * Display Name: Component
43432
+ * * SQL Data Type: uniqueidentifier
43433
+ * * Related Entity/Foreign Key: MJ: Components (vwComponents.ID)
43434
+ * * Description: Foreign key to Component — the component that renders the form. Must declare componentRole='form' and implement the FormHostProps contract.
43435
+ */
43436
+ get ComponentID(): string;
43437
+ set ComponentID(value: string);
43438
+ /**
43439
+ * * Field Name: Name
43440
+ * * Display Name: Name
43441
+ * * SQL Data Type: nvarchar(255)
43442
+ * * Description: Human-readable label for this override (e.g., "CSR Customer Form", "Compact Mobile Variant").
43443
+ */
43444
+ get Name(): string;
43445
+ set Name(value: string);
43446
+ /**
43447
+ * * Field Name: Description
43448
+ * * Display Name: Description
43449
+ * * SQL Data Type: nvarchar(MAX)
43450
+ * * Description: Optional longer description of what this override is for and when it applies.
43451
+ */
43452
+ get Description(): string | null;
43453
+ set Description(value: string | null);
43454
+ /**
43455
+ * * Field Name: Scope
43456
+ * * Display Name: Scope
43457
+ * * SQL Data Type: nvarchar(20)
43458
+ * * Default Value: Global
43459
+ * * Value List Type: List
43460
+ * * Possible Values
43461
+ * * Global
43462
+ * * Role
43463
+ * * User
43464
+ * * Description: Resolution tier: User (requires UserID), Role (requires RoleID), or Global. The resolver evaluates in that order — a User row beats a Role row beats a Global row.
43465
+ */
43466
+ get Scope(): 'Global' | 'Role' | 'User';
43467
+ set Scope(value: 'Global' | 'Role' | 'User');
43468
+ /**
43469
+ * * Field Name: UserID
43470
+ * * Display Name: User
43471
+ * * SQL Data Type: uniqueidentifier
43472
+ * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
43473
+ * * Description: Required when Scope='User'. The single user this override applies to.
43474
+ */
43475
+ get UserID(): string | null;
43476
+ set UserID(value: string | null);
43477
+ /**
43478
+ * * Field Name: RoleID
43479
+ * * Display Name: Role
43480
+ * * SQL Data Type: uniqueidentifier
43481
+ * * Related Entity/Foreign Key: MJ: Roles (vwRoles.ID)
43482
+ * * Description: Required when Scope='Role'. The role whose members see this override.
43483
+ */
43484
+ get RoleID(): string | null;
43485
+ set RoleID(value: string | null);
43486
+ /**
43487
+ * * Field Name: Priority
43488
+ * * Display Name: Priority
43489
+ * * SQL Data Type: int
43490
+ * * Default Value: 0
43491
+ * * Description: Higher value wins within a scope tier. Ties broken by __mj_CreatedAt DESC. No IsDefault — Priority is the only mechanism.
43492
+ */
43493
+ get Priority(): number;
43494
+ set Priority(value: number);
43495
+ /**
43496
+ * * Field Name: Status
43497
+ * * Display Name: Status
43498
+ * * SQL Data Type: nvarchar(20)
43499
+ * * Default Value: Active
43500
+ * * Value List Type: List
43501
+ * * Possible Values
43502
+ * * Active
43503
+ * * Inactive
43504
+ * * Pending
43505
+ * * Description: Active = eligible for resolution. Inactive = ignored. Pending = AI-authored, awaiting human activation (resolver treats as Inactive).
43506
+ */
43507
+ get Status(): 'Active' | 'Inactive' | 'Pending';
43508
+ set Status(value: 'Active' | 'Inactive' | 'Pending');
43509
+ /**
43510
+ * * Field Name: Notes
43511
+ * * Display Name: Notes
43512
+ * * SQL Data Type: nvarchar(MAX)
43513
+ * * Description: Optional free-form commentary about this override — e.g. who authored it, why it exists, what should change before it goes Global, links to related discussions. Does not affect resolution.
43514
+ */
43515
+ get Notes(): string | null;
43516
+ set Notes(value: string | null);
43517
+ /**
43518
+ * * Field Name: __mj_CreatedAt
43519
+ * * Display Name: Created At
43520
+ * * SQL Data Type: datetimeoffset
43521
+ * * Default Value: getutcdate()
43522
+ */
43523
+ get __mj_CreatedAt(): Date;
43524
+ /**
43525
+ * * Field Name: __mj_UpdatedAt
43526
+ * * Display Name: Updated At
43527
+ * * SQL Data Type: datetimeoffset
43528
+ * * Default Value: getutcdate()
43529
+ */
43530
+ get __mj_UpdatedAt(): Date;
43531
+ /**
43532
+ * * Field Name: Entity
43533
+ * * Display Name: Entity Name
43534
+ * * SQL Data Type: nvarchar(255)
43535
+ */
43536
+ get Entity(): string;
43537
+ /**
43538
+ * * Field Name: Component
43539
+ * * Display Name: Component Name
43540
+ * * SQL Data Type: nvarchar(500)
43541
+ */
43542
+ get Component(): string;
43543
+ /**
43544
+ * * Field Name: User
43545
+ * * Display Name: User Name
43546
+ * * SQL Data Type: nvarchar(100)
43547
+ */
43548
+ get User(): string | null;
43549
+ /**
43550
+ * * Field Name: Role
43551
+ * * Display Name: Role Name
43552
+ * * SQL Data Type: nvarchar(50)
43553
+ */
43554
+ get Role(): string | null;
43555
+ }
43010
43556
  /**
43011
43557
  * MJ: Entity Organic Key Related Entities - strongly typed entity sub-class
43012
43558
  * * Schema: __mj
@@ -45478,7 +46024,7 @@ export declare class MJIntegrationObjectFieldEntity extends BaseEntity<MJIntegra
45478
46024
  set ID(value: string);
45479
46025
  /**
45480
46026
  * * Field Name: IntegrationObjectID
45481
- * * Display Name: Integration Object
46027
+ * * Display Name: Integration Object ID
45482
46028
  * * SQL Data Type: uniqueidentifier
45483
46029
  * * Related Entity/Foreign Key: MJ: Integration Objects (vwIntegrationObjects.ID)
45484
46030
  * * Description: Foreign key to the IntegrationObject this field belongs to
@@ -45577,7 +46123,7 @@ export declare class MJIntegrationObjectFieldEntity extends BaseEntity<MJIntegra
45577
46123
  set IsPrimaryKey(value: boolean);
45578
46124
  /**
45579
46125
  * * Field Name: IsUniqueKey
45580
- * * Display Name: Is Unique Key
46126
+ * * Display Name: Is Unique
45581
46127
  * * SQL Data Type: bit
45582
46128
  * * Default Value: 0
45583
46129
  * * Description: Whether values must be unique across all records
@@ -45674,14 +46220,28 @@ export declare class MJIntegrationObjectFieldEntity extends BaseEntity<MJIntegra
45674
46220
  get IsCustom(): boolean;
45675
46221
  set IsCustom(value: boolean);
45676
46222
  /**
46223
+ * * Field Name: MetadataSource
46224
+ * * Display Name: Metadata Source
46225
+ * * SQL Data Type: nvarchar(20)
46226
+ * * Default Value: Declared
46227
+ * * Value List Type: List
46228
+ * * Possible Values
46229
+ * * Custom
46230
+ * * Declared
46231
+ * * Discovered
46232
+ * * Description: Provenance of this IntegrationObjectField row: Declared (from static research/docs), Discovered (from runtime API introspection), Custom (customer-defined custom field, e.g., HubSpot custom property on standard object). Drives merge precedence — discovered/runtime wins for type/constraints; declared wins for description/label/sequence/category.
46233
+ */
46234
+ get MetadataSource(): 'Custom' | 'Declared' | 'Discovered';
46235
+ set MetadataSource(value: 'Custom' | 'Declared' | 'Discovered');
46236
+ /**
45677
46237
  * * Field Name: IntegrationObject
45678
- * * Display Name: Integration Object Name
46238
+ * * Display Name: Integration Object
45679
46239
  * * SQL Data Type: nvarchar(255)
45680
46240
  */
45681
46241
  get IntegrationObject(): string;
45682
46242
  /**
45683
46243
  * * Field Name: RelatedIntegrationObject
45684
- * * Display Name: Related Object Name
46244
+ * * Display Name: Related Integration Object Name
45685
46245
  * * SQL Data Type: nvarchar(255)
45686
46246
  */
45687
46247
  get RelatedIntegrationObject(): string | null;
@@ -45721,7 +46281,7 @@ export declare class MJIntegrationObjectEntity extends BaseEntity<MJIntegrationO
45721
46281
  set ID(value: string);
45722
46282
  /**
45723
46283
  * * Field Name: IntegrationID
45724
- * * Display Name: Integration ID
46284
+ * * Display Name: Integration
45725
46285
  * * SQL Data Type: uniqueidentifier
45726
46286
  * * Related Entity/Foreign Key: MJ: Integrations (vwIntegrations.ID)
45727
46287
  * * Description: Foreign key to the Integration that owns this object
@@ -45916,8 +46476,154 @@ export declare class MJIntegrationObjectEntity extends BaseEntity<MJIntegrationO
45916
46476
  get IsCustom(): boolean;
45917
46477
  set IsCustom(value: boolean);
45918
46478
  /**
46479
+ * * Field Name: CreateAPIPath
46480
+ * * Display Name: Create API Path
46481
+ * * SQL Data Type: nvarchar(MAX)
46482
+ * * Description: HTTP path template for create operations. Generic CRUD in BaseRESTIntegrationConnector substitutes parent IDs into {var} placeholders. NULL means create not supported via metadata-driven path.
46483
+ */
46484
+ get CreateAPIPath(): string | null;
46485
+ set CreateAPIPath(value: string | null);
46486
+ /**
46487
+ * * Field Name: CreateMethod
46488
+ * * Display Name: Create Method
46489
+ * * SQL Data Type: nvarchar(20)
46490
+ * * Description: HTTP method for create (typically POST). NULL means create not supported via metadata-driven path.
46491
+ */
46492
+ get CreateMethod(): string | null;
46493
+ set CreateMethod(value: string | null);
46494
+ /**
46495
+ * * Field Name: CreateBodyShape
46496
+ * * Display Name: Create Body Shape
46497
+ * * SQL Data Type: nvarchar(50)
46498
+ * * Value List Type: List
46499
+ * * Possible Values
46500
+ * * flat
46501
+ * * literal
46502
+ * * wrapped
46503
+ * * Description: Request body shape for create: flat (top-level fields), wrapped (under CreateBodyKey), or literal (connector overrides CreateRecord and supplies own body).
46504
+ */
46505
+ get CreateBodyShape(): 'flat' | 'literal' | 'wrapped' | null;
46506
+ set CreateBodyShape(value: 'flat' | 'literal' | 'wrapped' | null);
46507
+ /**
46508
+ * * Field Name: CreateBodyKey
46509
+ * * Display Name: Create Body Key
46510
+ * * SQL Data Type: nvarchar(100)
46511
+ * * Description: Wrapper key for create body when CreateBodyShape=wrapped. Example: 'member' for YourMembership which wraps body as {member:{...}}.
46512
+ */
46513
+ get CreateBodyKey(): string | null;
46514
+ set CreateBodyKey(value: string | null);
46515
+ /**
46516
+ * * Field Name: CreateIDLocation
46517
+ * * Display Name: Create ID Location
46518
+ * * SQL Data Type: nvarchar(20)
46519
+ * * Value List Type: List
46520
+ * * Possible Values
46521
+ * * body
46522
+ * * header
46523
+ * * n/a
46524
+ * * path
46525
+ * * Description: Where the created record ID is found in the create response: path (URL of returned Location header), body (parsed from JSON response), header (specific named header).
46526
+ */
46527
+ get CreateIDLocation(): 'body' | 'header' | 'n/a' | 'path' | null;
46528
+ set CreateIDLocation(value: 'body' | 'header' | 'n/a' | 'path' | null);
46529
+ /**
46530
+ * * Field Name: UpdateAPIPath
46531
+ * * Display Name: Update API Path
46532
+ * * SQL Data Type: nvarchar(MAX)
46533
+ * * Description: HTTP path template for update operations. Typically contains {ID} placeholder substituted with the record ExternalID at runtime.
46534
+ */
46535
+ get UpdateAPIPath(): string | null;
46536
+ set UpdateAPIPath(value: string | null);
46537
+ /**
46538
+ * * Field Name: UpdateMethod
46539
+ * * Display Name: Update Method
46540
+ * * SQL Data Type: nvarchar(20)
46541
+ * * Description: HTTP method for update (typically PATCH or PUT).
46542
+ */
46543
+ get UpdateMethod(): string | null;
46544
+ set UpdateMethod(value: string | null);
46545
+ /**
46546
+ * * Field Name: UpdateBodyShape
46547
+ * * Display Name: Update Body Shape
46548
+ * * SQL Data Type: nvarchar(50)
46549
+ * * Value List Type: List
46550
+ * * Possible Values
46551
+ * * flat
46552
+ * * literal
46553
+ * * wrapped
46554
+ * * Description: Request body shape for update: flat | wrapped | literal. See CreateBodyShape.
46555
+ */
46556
+ get UpdateBodyShape(): 'flat' | 'literal' | 'wrapped' | null;
46557
+ set UpdateBodyShape(value: 'flat' | 'literal' | 'wrapped' | null);
46558
+ /**
46559
+ * * Field Name: UpdateBodyKey
46560
+ * * Display Name: Update Body Key
46561
+ * * SQL Data Type: nvarchar(100)
46562
+ * * Description: Wrapper key for update body when UpdateBodyShape=wrapped.
46563
+ */
46564
+ get UpdateBodyKey(): string | null;
46565
+ set UpdateBodyKey(value: string | null);
46566
+ /**
46567
+ * * Field Name: UpdateIDLocation
46568
+ * * Display Name: Update ID Location
46569
+ * * SQL Data Type: nvarchar(20)
46570
+ * * Value List Type: List
46571
+ * * Possible Values
46572
+ * * body
46573
+ * * header
46574
+ * * n/a
46575
+ * * path
46576
+ * * Description: For update: where the target record ID is located in the request — typically 'path' (substituted into UpdateAPIPath URL template).
46577
+ */
46578
+ get UpdateIDLocation(): 'body' | 'header' | 'n/a' | 'path' | null;
46579
+ set UpdateIDLocation(value: 'body' | 'header' | 'n/a' | 'path' | null);
46580
+ /**
46581
+ * * Field Name: DeleteAPIPath
46582
+ * * Display Name: Delete API Path
46583
+ * * SQL Data Type: nvarchar(MAX)
46584
+ * * Description: HTTP path template for delete operations. Typically contains {ID} placeholder. NULL means delete not supported via metadata-driven path. (Existing DeleteMethod column carries the verb.)
46585
+ */
46586
+ get DeleteAPIPath(): string | null;
46587
+ set DeleteAPIPath(value: string | null);
46588
+ /**
46589
+ * * Field Name: DeleteIDLocation
46590
+ * * Display Name: Delete ID Location
46591
+ * * SQL Data Type: nvarchar(20)
46592
+ * * Value List Type: List
46593
+ * * Possible Values
46594
+ * * body
46595
+ * * header
46596
+ * * n/a
46597
+ * * path
46598
+ * * Description: For delete: where the target record ID is located — typically 'path'.
46599
+ */
46600
+ get DeleteIDLocation(): 'body' | 'header' | 'n/a' | 'path' | null;
46601
+ set DeleteIDLocation(value: 'body' | 'header' | 'n/a' | 'path' | null);
46602
+ /**
46603
+ * * Field Name: IncrementalWatermarkField
46604
+ * * Display Name: Incremental Watermark Field
46605
+ * * SQL Data Type: nvarchar(255)
46606
+ * * Description: Vendor field name marking "last changed" — drives incremental sync filter when SupportsIncrementalSync=1. The exact filter syntax (e.g., $filter=Modified gt {value} or modified_since={value}) lives in Configuration.incrementalFilterFormat. Provable-only: leave NULL if docs do not name a watermark field.
46607
+ */
46608
+ get IncrementalWatermarkField(): string | null;
46609
+ set IncrementalWatermarkField(value: string | null);
46610
+ /**
46611
+ * * Field Name: MetadataSource
46612
+ * * Display Name: Metadata Source
46613
+ * * SQL Data Type: nvarchar(20)
46614
+ * * Default Value: Declared
46615
+ * * Value List Type: List
46616
+ * * Possible Values
46617
+ * * Custom
46618
+ * * Declared
46619
+ * * Discovered
46620
+ * * Description: Provenance of this IntegrationObject row: Declared (from static research/docs), Discovered (from runtime API introspection like Salesforce /describe), Custom (genuinely customer-created, e.g., HubSpot custom objects). Drives merge precedence in IntegrationSchemaSync.
46621
+ */
46622
+ get MetadataSource(): 'Custom' | 'Declared' | 'Discovered';
46623
+ set MetadataSource(value: 'Custom' | 'Declared' | 'Discovered');
46624
+ /**
45919
46625
  * * Field Name: Integration
45920
- * * Display Name: Integration
46626
+ * * Display Name: Integration Name
45921
46627
  * * SQL Data Type: nvarchar(100)
45922
46628
  */
45923
46629
  get Integration(): string;
@@ -54560,7 +55266,7 @@ export declare class MJScheduledJobEntity extends BaseEntity<MJScheduledJobEntit
54560
55266
  set NotifyViaEmail(value: boolean);
54561
55267
  /**
54562
55268
  * * Field Name: NotifyViaInApp
54563
- * * Display Name: Notify Via In App
55269
+ * * Display Name: Notify Via In-App
54564
55270
  * * SQL Data Type: bit
54565
55271
  * * Default Value: 1
54566
55272
  * * Description: Whether to send in-app notifications. Requires NotifyOnSuccess or NotifyOnFailure to also be enabled. Defaults to true.
@@ -54628,6 +55334,15 @@ export declare class MJScheduledJobEntity extends BaseEntity<MJScheduledJobEntit
54628
55334
  */
54629
55335
  get __mj_UpdatedAt(): Date;
54630
55336
  /**
55337
+ * * Field Name: RunImmediatelyIfNeverRun
55338
+ * * Display Name: Run Immediately If Never Run
55339
+ * * SQL Data Type: bit
55340
+ * * Default Value: 0
55341
+ * * Description: When true AND LastRunAt IS NULL, the scheduler sets NextRunAt to now() instead of the next cron tick on initialization, so the job runs on the next polling cycle. Useful for newly-seeded jobs that should not wait up to a full cron interval before their first execution.
55342
+ */
55343
+ get RunImmediatelyIfNeverRun(): boolean;
55344
+ set RunImmediatelyIfNeverRun(value: boolean);
55345
+ /**
54631
55346
  * * Field Name: JobType
54632
55347
  * * Display Name: Job Type
54633
55348
  * * SQL Data Type: nvarchar(100)
@@ -56782,6 +57497,20 @@ export declare class MJTagSynonymEntity extends BaseEntity<MJTagSynonymEntityTyp
56782
57497
  */
56783
57498
  get __mj_UpdatedAt(): Date;
56784
57499
  /**
57500
+ * * Field Name: Status
57501
+ * * Display Name: Status
57502
+ * * SQL Data Type: nvarchar(20)
57503
+ * * Default Value: Active
57504
+ * * Value List Type: List
57505
+ * * Possible Values
57506
+ * * Active
57507
+ * * Pending
57508
+ * * Rejected
57509
+ * * Description: Approval state of the synonym. Active = resolves to its tag during classification. Pending = proposed (e.g. by the LLM or a bulk import) and awaiting human review; does not resolve until approved. Rejected = reviewed and declined; retained for audit and to suppress re-proposal.
57510
+ */
57511
+ get Status(): 'Active' | 'Pending' | 'Rejected';
57512
+ set Status(value: 'Active' | 'Pending' | 'Rejected');
57513
+ /**
56785
57514
  * * Field Name: Tag
56786
57515
  * * Display Name: Tag Name
56787
57516
  * * SQL Data Type: nvarchar(255)
@@ -59781,6 +60510,16 @@ export declare class MJUserApplicationEntity extends BaseEntity<MJUserApplicatio
59781
60510
  */
59782
60511
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
59783
60512
  /**
60513
+ * MJ: User Applications - Delete method override to wrap in transaction since CascadeDeletes is true.
60514
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
60515
+ * @public
60516
+ * @method
60517
+ * @override
60518
+ * @memberof MJUserApplicationEntity
60519
+ * @returns {Promise<boolean>} - true if successful, false otherwise
60520
+ */
60521
+ Delete(options?: EntityDeleteOptions): Promise<boolean>;
60522
+ /**
59784
60523
  * * Field Name: ID
59785
60524
  * * SQL Data Type: uniqueidentifier
59786
60525
  * * Default Value: newsequentialid()