@memberjunction/core-entities 5.51.0 → 6.1.0-edge.1

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.
@@ -194,8 +194,16 @@ export declare const MJActionExecutionLogSchema: z.ZodObject<{
194
194
  __mj_CreatedAt: z.ZodDate;
195
195
  __mj_UpdatedAt: z.ZodDate;
196
196
  Message: z.ZodNullable<z.ZodString>;
197
+ EntityActionID: z.ZodNullable<z.ZodString>;
198
+ EntityActionInvocationTypeID: z.ZodNullable<z.ZodString>;
199
+ TargetEntityID: z.ZodNullable<z.ZodString>;
200
+ TargetRecordID: z.ZodNullable<z.ZodString>;
201
+ ResultParams: z.ZodNullable<z.ZodString>;
197
202
  Action: z.ZodString;
198
203
  User: z.ZodString;
204
+ EntityAction: z.ZodNullable<z.ZodString>;
205
+ EntityActionInvocationType: z.ZodNullable<z.ZodString>;
206
+ TargetEntity: z.ZodNullable<z.ZodString>;
199
207
  }, "strip", z.ZodTypeAny, {
200
208
  ID?: string;
201
209
  User?: string;
@@ -210,6 +218,14 @@ export declare const MJActionExecutionLogSchema: z.ZodObject<{
210
218
  UserID?: string;
211
219
  RetentionPeriod?: number;
212
220
  Message?: string;
221
+ EntityActionID?: string;
222
+ EntityActionInvocationTypeID?: string;
223
+ TargetEntityID?: string;
224
+ TargetRecordID?: string;
225
+ ResultParams?: string;
226
+ EntityAction?: string;
227
+ EntityActionInvocationType?: string;
228
+ TargetEntity?: string;
213
229
  }, {
214
230
  ID?: string;
215
231
  User?: string;
@@ -224,6 +240,14 @@ export declare const MJActionExecutionLogSchema: z.ZodObject<{
224
240
  UserID?: string;
225
241
  RetentionPeriod?: number;
226
242
  Message?: string;
243
+ EntityActionID?: string;
244
+ EntityActionInvocationTypeID?: string;
245
+ TargetEntityID?: string;
246
+ TargetRecordID?: string;
247
+ ResultParams?: string;
248
+ EntityAction?: string;
249
+ EntityActionInvocationType?: string;
250
+ TargetEntity?: string;
227
251
  }>;
228
252
  export type MJActionExecutionLogEntityType = z.infer<typeof MJActionExecutionLogSchema>;
229
253
  /**
@@ -303,6 +327,7 @@ export declare const MJActionParamSchema: z.ZodObject<{
303
327
  __mj_CreatedAt: z.ZodDate;
304
328
  __mj_UpdatedAt: z.ZodDate;
305
329
  MediaModality: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Audio">, z.ZodLiteral<"Image">, z.ZodLiteral<"Video">]>>;
330
+ LogValue: z.ZodBoolean;
306
331
  Action: z.ZodString;
307
332
  }, "strip", z.ZodTypeAny, {
308
333
  ID?: string;
@@ -318,6 +343,7 @@ export declare const MJActionParamSchema: z.ZodObject<{
318
343
  IsArray?: boolean;
319
344
  IsRequired?: boolean;
320
345
  MediaModality?: "Audio" | "Image" | "Video";
346
+ LogValue?: boolean;
321
347
  }, {
322
348
  ID?: string;
323
349
  __mj_CreatedAt?: Date;
@@ -332,6 +358,7 @@ export declare const MJActionParamSchema: z.ZodObject<{
332
358
  IsArray?: boolean;
333
359
  IsRequired?: boolean;
334
360
  MediaModality?: "Audio" | "Image" | "Video";
361
+ LogValue?: boolean;
335
362
  }>;
336
363
  export type MJActionParamEntityType = z.infer<typeof MJActionParamSchema>;
337
364
  /**
@@ -816,6 +843,47 @@ export declare const MJAIAgentConfigurationSchema: z.ZodObject<{
816
843
  AIConfiguration?: string;
817
844
  }>;
818
845
  export type MJAIAgentConfigurationEntityType = z.infer<typeof MJAIAgentConfigurationSchema>;
846
+ /**
847
+ * zod schema definition for the entity MJ: AI Agent Credentials
848
+ */
849
+ export declare const MJAIAgentCredentialSchema: z.ZodObject<{
850
+ ID: z.ZodString;
851
+ AgentID: z.ZodString;
852
+ CredentialID: z.ZodString;
853
+ Purpose: z.ZodUnion<[z.ZodLiteral<"HarnessLLM">, z.ZodLiteral<"Integration">]>;
854
+ EnvVariableName: z.ZodNullable<z.ZodString>;
855
+ Priority: z.ZodNumber;
856
+ Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Revoked">]>;
857
+ __mj_CreatedAt: z.ZodDate;
858
+ __mj_UpdatedAt: z.ZodDate;
859
+ Agent: z.ZodNullable<z.ZodString>;
860
+ Credential: z.ZodString;
861
+ }, "strip", z.ZodTypeAny, {
862
+ ID?: string;
863
+ __mj_CreatedAt?: Date;
864
+ __mj_UpdatedAt?: Date;
865
+ Status?: "Active" | "Pending" | "Revoked";
866
+ AgentID?: string;
867
+ Agent?: string;
868
+ Priority?: number;
869
+ CredentialID?: string;
870
+ Purpose?: "HarnessLLM" | "Integration";
871
+ EnvVariableName?: string;
872
+ Credential?: string;
873
+ }, {
874
+ ID?: string;
875
+ __mj_CreatedAt?: Date;
876
+ __mj_UpdatedAt?: Date;
877
+ Status?: "Active" | "Pending" | "Revoked";
878
+ AgentID?: string;
879
+ Agent?: string;
880
+ Priority?: number;
881
+ CredentialID?: string;
882
+ Purpose?: "HarnessLLM" | "Integration";
883
+ EnvVariableName?: string;
884
+ Credential?: string;
885
+ }>;
886
+ export type MJAIAgentCredentialEntityType = z.infer<typeof MJAIAgentCredentialSchema>;
819
887
  /**
820
888
  * zod schema definition for the entity MJ: AI Agent Data Sources
821
889
  */
@@ -997,6 +1065,56 @@ export declare const MJAIAgentExampleSchema: z.ZodObject<{
997
1065
  PrimaryScopeEntity?: string;
998
1066
  }>;
999
1067
  export type MJAIAgentExampleEntityType = z.infer<typeof MJAIAgentExampleSchema>;
1068
+ /**
1069
+ * zod schema definition for the entity MJ: AI Agent Harnesses
1070
+ */
1071
+ export declare const MJAIAgentHarnessSchema: z.ZodObject<{
1072
+ ID: z.ZodString;
1073
+ Name: z.ZodString;
1074
+ Description: z.ZodNullable<z.ZodString>;
1075
+ DriverClass: z.ZodString;
1076
+ ExecutablePath: z.ZodNullable<z.ZodString>;
1077
+ AIVendorID: z.ZodNullable<z.ZodString>;
1078
+ AIModelID: z.ZodNullable<z.ZodString>;
1079
+ DefaultModel: z.ZodNullable<z.ZodString>;
1080
+ CapabilitySettings: z.ZodNullable<z.ZodAny>;
1081
+ Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Inactive">]>;
1082
+ __mj_CreatedAt: z.ZodDate;
1083
+ __mj_UpdatedAt: z.ZodDate;
1084
+ AIVendor: z.ZodNullable<z.ZodString>;
1085
+ AIModel: z.ZodNullable<z.ZodString>;
1086
+ }, "strip", z.ZodTypeAny, {
1087
+ ID?: string;
1088
+ __mj_CreatedAt?: Date;
1089
+ __mj_UpdatedAt?: Date;
1090
+ Name?: string;
1091
+ Description?: string;
1092
+ Status?: "Active" | "Inactive";
1093
+ DriverClass?: string;
1094
+ DefaultModel?: string;
1095
+ ExecutablePath?: string;
1096
+ AIVendorID?: string;
1097
+ AIModelID?: string;
1098
+ CapabilitySettings?: any;
1099
+ AIVendor?: string;
1100
+ AIModel?: string;
1101
+ }, {
1102
+ ID?: string;
1103
+ __mj_CreatedAt?: Date;
1104
+ __mj_UpdatedAt?: Date;
1105
+ Name?: string;
1106
+ Description?: string;
1107
+ Status?: "Active" | "Inactive";
1108
+ DriverClass?: string;
1109
+ DefaultModel?: string;
1110
+ ExecutablePath?: string;
1111
+ AIVendorID?: string;
1112
+ AIModelID?: string;
1113
+ CapabilitySettings?: any;
1114
+ AIVendor?: string;
1115
+ AIModel?: string;
1116
+ }>;
1117
+ export type MJAIAgentHarnessEntityType = z.infer<typeof MJAIAgentHarnessSchema>;
1000
1118
  /**
1001
1119
  * zod schema definition for the entity MJ: AI Agent Learning Cycles
1002
1120
  */
@@ -1337,13 +1455,13 @@ export declare const MJAIAgentPromptSchema: z.ZodObject<{
1337
1455
  ID?: string;
1338
1456
  __mj_CreatedAt?: Date;
1339
1457
  __mj_UpdatedAt?: Date;
1340
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
1458
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
1341
1459
  AgentID?: string;
1342
1460
  Agent?: string;
1343
1461
  Configuration?: string;
1462
+ Purpose?: string;
1344
1463
  ExecutionOrder?: number;
1345
1464
  PromptID?: string;
1346
- Purpose?: string;
1347
1465
  ConfigurationID?: string;
1348
1466
  ContextBehavior?: "Custom" | "None" | "Complete" | "InitialMessages" | "RecentMessages" | "Smart";
1349
1467
  ContextMessageCount?: number;
@@ -1352,13 +1470,13 @@ export declare const MJAIAgentPromptSchema: z.ZodObject<{
1352
1470
  ID?: string;
1353
1471
  __mj_CreatedAt?: Date;
1354
1472
  __mj_UpdatedAt?: Date;
1355
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
1473
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
1356
1474
  AgentID?: string;
1357
1475
  Agent?: string;
1358
1476
  Configuration?: string;
1477
+ Purpose?: string;
1359
1478
  ExecutionOrder?: number;
1360
1479
  PromptID?: string;
1361
- Purpose?: string;
1362
1480
  ConfigurationID?: string;
1363
1481
  ContextBehavior?: "Custom" | "None" | "Complete" | "InitialMessages" | "RecentMessages" | "Smart";
1364
1482
  ContextMessageCount?: number;
@@ -1626,7 +1744,7 @@ export declare const MJAIAgentRunStepSchema: z.ZodObject<{
1626
1744
  ID: z.ZodString;
1627
1745
  AgentRunID: z.ZodString;
1628
1746
  StepNumber: z.ZodNumber;
1629
- StepType: z.ZodUnion<[z.ZodLiteral<"Actions">, z.ZodLiteral<"Chat">, z.ZodLiteral<"Compaction">, z.ZodLiteral<"Decision">, z.ZodLiteral<"ForEach">, z.ZodLiteral<"Plan">, z.ZodLiteral<"Prompt">, z.ZodLiteral<"Skill">, z.ZodLiteral<"Sub-Agent">, z.ZodLiteral<"Tool">, z.ZodLiteral<"Validation">, z.ZodLiteral<"While">]>;
1747
+ StepType: z.ZodUnion<[z.ZodLiteral<"Actions">, z.ZodLiteral<"Chat">, z.ZodLiteral<"Compaction">, z.ZodLiteral<"Decision">, z.ZodLiteral<"ForEach">, z.ZodLiteral<"Plan">, z.ZodLiteral<"Prompt">, z.ZodLiteral<"Skill">, z.ZodLiteral<"Sub-Agent">, z.ZodLiteral<"TaskGraph">, z.ZodLiteral<"Tool">, z.ZodLiteral<"Validation">, z.ZodLiteral<"While">]>;
1630
1748
  StepName: z.ZodString;
1631
1749
  TargetID: z.ZodNullable<z.ZodString>;
1632
1750
  Status: z.ZodUnion<[z.ZodLiteral<"Cancelled">, z.ZodLiteral<"Completed">, z.ZodLiteral<"Failed">, z.ZodLiteral<"Running">]>;
@@ -1662,7 +1780,7 @@ export declare const MJAIAgentRunStepSchema: z.ZodObject<{
1662
1780
  AgentRunID?: string;
1663
1781
  AgentRun?: string;
1664
1782
  StepNumber?: number;
1665
- StepType?: "Prompt" | "Actions" | "Chat" | "Compaction" | "Decision" | "ForEach" | "Plan" | "Skill" | "Sub-Agent" | "Tool" | "Validation" | "While";
1783
+ StepType?: "Prompt" | "Actions" | "Chat" | "Compaction" | "Decision" | "ForEach" | "Plan" | "Skill" | "Sub-Agent" | "TaskGraph" | "Tool" | "Validation" | "While";
1666
1784
  StepName?: string;
1667
1785
  TargetID?: string;
1668
1786
  CompletedAt?: Date;
@@ -1689,7 +1807,7 @@ export declare const MJAIAgentRunStepSchema: z.ZodObject<{
1689
1807
  AgentRunID?: string;
1690
1808
  AgentRun?: string;
1691
1809
  StepNumber?: number;
1692
- StepType?: "Prompt" | "Actions" | "Chat" | "Compaction" | "Decision" | "ForEach" | "Plan" | "Skill" | "Sub-Agent" | "Tool" | "Validation" | "While";
1810
+ StepType?: "Prompt" | "Actions" | "Chat" | "Compaction" | "Decision" | "ForEach" | "Plan" | "Skill" | "Sub-Agent" | "TaskGraph" | "Tool" | "Validation" | "While";
1693
1811
  StepName?: string;
1694
1812
  TargetID?: string;
1695
1813
  CompletedAt?: Date;
@@ -1760,6 +1878,8 @@ export declare const MJAIAgentRunSchema: z.ZodObject<{
1760
1878
  LastHeartbeatAt: z.ZodNullable<z.ZodDate>;
1761
1879
  AgentSessionID: z.ZodNullable<z.ZodString>;
1762
1880
  PlanMode: z.ZodBoolean;
1881
+ ExternalSessionID: z.ZodNullable<z.ZodString>;
1882
+ ContinuationDepth: z.ZodNumber;
1763
1883
  Agent: z.ZodNullable<z.ZodString>;
1764
1884
  ParentRun: z.ZodNullable<z.ZodString>;
1765
1885
  Conversation: z.ZodNullable<z.ZodString>;
@@ -1831,6 +1951,8 @@ export declare const MJAIAgentRunSchema: z.ZodObject<{
1831
1951
  LastHeartbeatAt?: Date;
1832
1952
  AgentSessionID?: string;
1833
1953
  PlanMode?: boolean;
1954
+ ExternalSessionID?: string;
1955
+ ContinuationDepth?: number;
1834
1956
  ParentRun?: string;
1835
1957
  ConversationDetail?: string;
1836
1958
  LastRun?: string;
@@ -1897,6 +2019,8 @@ export declare const MJAIAgentRunSchema: z.ZodObject<{
1897
2019
  LastHeartbeatAt?: Date;
1898
2020
  AgentSessionID?: string;
1899
2021
  PlanMode?: boolean;
2022
+ ExternalSessionID?: string;
2023
+ ContinuationDepth?: number;
1900
2024
  ParentRun?: string;
1901
2025
  ConversationDetail?: string;
1902
2026
  LastRun?: string;
@@ -3015,7 +3139,7 @@ export declare const MJAIConfigurationSchema: z.ZodObject<{
3015
3139
  Name?: string;
3016
3140
  Description?: string;
3017
3141
  ParentID?: string;
3018
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
3142
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
3019
3143
  Parent?: string;
3020
3144
  RootParentID?: string;
3021
3145
  IsDefault?: boolean;
@@ -3033,7 +3157,7 @@ export declare const MJAIConfigurationSchema: z.ZodObject<{
3033
3157
  Name?: string;
3034
3158
  Description?: string;
3035
3159
  ParentID?: string;
3036
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
3160
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
3037
3161
  Parent?: string;
3038
3162
  RootParentID?: string;
3039
3163
  IsDefault?: boolean;
@@ -3071,12 +3195,12 @@ export declare const MJAICredentialBindingSchema: z.ZodObject<{
3071
3195
  IsActive?: boolean;
3072
3196
  Priority?: number;
3073
3197
  CredentialID?: string;
3074
- BindingType?: "ModelVendor" | "PromptModel" | "Vendor";
3198
+ Credential?: string;
3075
3199
  AIVendorID?: string;
3200
+ AIVendor?: string;
3201
+ BindingType?: "ModelVendor" | "PromptModel" | "Vendor";
3076
3202
  AIModelVendorID?: string;
3077
3203
  AIPromptModelID?: string;
3078
- Credential?: string;
3079
- AIVendor?: string;
3080
3204
  AIModelVendor?: string;
3081
3205
  AIPromptModel?: string;
3082
3206
  }, {
@@ -3086,12 +3210,12 @@ export declare const MJAICredentialBindingSchema: z.ZodObject<{
3086
3210
  IsActive?: boolean;
3087
3211
  Priority?: number;
3088
3212
  CredentialID?: string;
3089
- BindingType?: "ModelVendor" | "PromptModel" | "Vendor";
3213
+ Credential?: string;
3090
3214
  AIVendorID?: string;
3215
+ AIVendor?: string;
3216
+ BindingType?: "ModelVendor" | "PromptModel" | "Vendor";
3091
3217
  AIModelVendorID?: string;
3092
3218
  AIPromptModelID?: string;
3093
- Credential?: string;
3094
- AIVendor?: string;
3095
3219
  AIModelVendor?: string;
3096
3220
  AIPromptModel?: string;
3097
3221
  }>;
@@ -3155,8 +3279,8 @@ export declare const MJAIModelActionSchema: z.ZodObject<{
3155
3279
  __mj_UpdatedAt?: Date;
3156
3280
  IsActive?: boolean;
3157
3281
  AIModelID?: string;
3158
- AIActionID?: string;
3159
3282
  AIModel?: string;
3283
+ AIActionID?: string;
3160
3284
  AIAction?: string;
3161
3285
  }, {
3162
3286
  ID?: string;
@@ -3164,8 +3288,8 @@ export declare const MJAIModelActionSchema: z.ZodObject<{
3164
3288
  __mj_UpdatedAt?: Date;
3165
3289
  IsActive?: boolean;
3166
3290
  AIModelID?: string;
3167
- AIActionID?: string;
3168
3291
  AIModel?: string;
3292
+ AIActionID?: string;
3169
3293
  AIAction?: string;
3170
3294
  }>;
3171
3295
  export type MJAIModelActionEntityType = z.infer<typeof MJAIModelActionSchema>;
@@ -3450,7 +3574,7 @@ export declare const MJAIModelVendorSchema: z.ZodObject<{
3450
3574
  ID?: string;
3451
3575
  __mj_CreatedAt?: Date;
3452
3576
  __mj_UpdatedAt?: Date;
3453
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
3577
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
3454
3578
  Type?: string;
3455
3579
  DriverClass?: string;
3456
3580
  Priority?: number;
@@ -3472,7 +3596,7 @@ export declare const MJAIModelVendorSchema: z.ZodObject<{
3472
3596
  ID?: string;
3473
3597
  __mj_CreatedAt?: Date;
3474
3598
  __mj_UpdatedAt?: Date;
3475
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
3599
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
3476
3600
  Type?: string;
3477
3601
  DriverClass?: string;
3478
3602
  Priority?: number;
@@ -3628,7 +3752,7 @@ export declare const MJAIPromptModelSchema: z.ZodObject<{
3628
3752
  ID?: string;
3629
3753
  __mj_CreatedAt?: Date;
3630
3754
  __mj_UpdatedAt?: Date;
3631
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
3755
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
3632
3756
  Priority?: number;
3633
3757
  Configuration?: string;
3634
3758
  ModelID?: string;
@@ -3648,7 +3772,7 @@ export declare const MJAIPromptModelSchema: z.ZodObject<{
3648
3772
  ID?: string;
3649
3773
  __mj_CreatedAt?: Date;
3650
3774
  __mj_UpdatedAt?: Date;
3651
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
3775
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
3652
3776
  Priority?: number;
3653
3777
  Configuration?: string;
3654
3778
  ModelID?: string;
@@ -4333,10 +4457,10 @@ export declare const MJAIResultCacheSchema: z.ZodObject<{
4333
4457
  AgentID?: string;
4334
4458
  Agent?: string;
4335
4459
  Configuration?: string;
4336
- ConfigurationID?: string;
4337
- Vendor?: string;
4338
4460
  AIModelID?: string;
4339
4461
  AIModel?: string;
4462
+ ConfigurationID?: string;
4463
+ Vendor?: string;
4340
4464
  VendorID?: string;
4341
4465
  PromptRunID?: string;
4342
4466
  PromptRun?: string;
@@ -4355,10 +4479,10 @@ export declare const MJAIResultCacheSchema: z.ZodObject<{
4355
4479
  AgentID?: string;
4356
4480
  Agent?: string;
4357
4481
  Configuration?: string;
4358
- ConfigurationID?: string;
4359
- Vendor?: string;
4360
4482
  AIModelID?: string;
4361
4483
  AIModel?: string;
4484
+ ConfigurationID?: string;
4485
+ Vendor?: string;
4362
4486
  VendorID?: string;
4363
4487
  PromptRunID?: string;
4364
4488
  PromptRun?: string;
@@ -4613,7 +4737,7 @@ export declare const MJAIVendorTypeSchema: z.ZodObject<{
4613
4737
  ID?: string;
4614
4738
  __mj_CreatedAt?: Date;
4615
4739
  __mj_UpdatedAt?: Date;
4616
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
4740
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
4617
4741
  Type?: string;
4618
4742
  TypeID?: string;
4619
4743
  Vendor?: string;
@@ -4623,7 +4747,7 @@ export declare const MJAIVendorTypeSchema: z.ZodObject<{
4623
4747
  ID?: string;
4624
4748
  __mj_CreatedAt?: Date;
4625
4749
  __mj_UpdatedAt?: Date;
4626
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
4750
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
4627
4751
  Type?: string;
4628
4752
  TypeID?: string;
4629
4753
  Vendor?: string;
@@ -4673,8 +4797,10 @@ export declare const MJAPIApplicationScopeSchema: z.ZodObject<{
4673
4797
  Priority: z.ZodNumber;
4674
4798
  __mj_CreatedAt: z.ZodDate;
4675
4799
  __mj_UpdatedAt: z.ZodDate;
4800
+ RowFilterID: z.ZodNullable<z.ZodString>;
4676
4801
  Application: z.ZodString;
4677
4802
  Scope: z.ZodString;
4803
+ RowFilter: z.ZodNullable<z.ZodString>;
4678
4804
  }, "strip", z.ZodTypeAny, {
4679
4805
  ID?: string;
4680
4806
  __mj_CreatedAt?: Date;
@@ -4685,8 +4811,10 @@ export declare const MJAPIApplicationScopeSchema: z.ZodObject<{
4685
4811
  ResourcePattern?: string;
4686
4812
  PatternType?: "Exclude" | "Include";
4687
4813
  IsDeny?: boolean;
4814
+ RowFilterID?: string;
4688
4815
  Application?: string;
4689
4816
  Scope?: string;
4817
+ RowFilter?: string;
4690
4818
  }, {
4691
4819
  ID?: string;
4692
4820
  __mj_CreatedAt?: Date;
@@ -4697,8 +4825,10 @@ export declare const MJAPIApplicationScopeSchema: z.ZodObject<{
4697
4825
  ResourcePattern?: string;
4698
4826
  PatternType?: "Exclude" | "Include";
4699
4827
  IsDeny?: boolean;
4828
+ RowFilterID?: string;
4700
4829
  Application?: string;
4701
4830
  Scope?: string;
4831
+ RowFilter?: string;
4702
4832
  }>;
4703
4833
  export type MJAPIApplicationScopeEntityType = z.infer<typeof MJAPIApplicationScopeSchema>;
4704
4834
  /**
@@ -4769,8 +4899,10 @@ export declare const MJAPIKeyScopeSchema: z.ZodObject<{
4769
4899
  PatternType: z.ZodUnion<[z.ZodLiteral<"Exclude">, z.ZodLiteral<"Include">]>;
4770
4900
  IsDeny: z.ZodBoolean;
4771
4901
  Priority: z.ZodNumber;
4902
+ RowFilterID: z.ZodNullable<z.ZodString>;
4772
4903
  APIKey: z.ZodString;
4773
4904
  Scope: z.ZodString;
4905
+ RowFilter: z.ZodNullable<z.ZodString>;
4774
4906
  }, "strip", z.ZodTypeAny, {
4775
4907
  ID?: string;
4776
4908
  __mj_CreatedAt?: Date;
@@ -4780,7 +4912,9 @@ export declare const MJAPIKeyScopeSchema: z.ZodObject<{
4780
4912
  ResourcePattern?: string;
4781
4913
  PatternType?: "Exclude" | "Include";
4782
4914
  IsDeny?: boolean;
4915
+ RowFilterID?: string;
4783
4916
  Scope?: string;
4917
+ RowFilter?: string;
4784
4918
  APIKeyID?: string;
4785
4919
  APIKey?: string;
4786
4920
  }, {
@@ -4792,7 +4926,9 @@ export declare const MJAPIKeyScopeSchema: z.ZodObject<{
4792
4926
  ResourcePattern?: string;
4793
4927
  PatternType?: "Exclude" | "Include";
4794
4928
  IsDeny?: boolean;
4929
+ RowFilterID?: string;
4795
4930
  Scope?: string;
4931
+ RowFilter?: string;
4796
4932
  APIKeyID?: string;
4797
4933
  APIKey?: string;
4798
4934
  }>;
@@ -6546,6 +6682,7 @@ export declare const MJCompanyIntegrationRunSchema: z.ZodObject<{
6546
6682
  Status?: "Pending" | "Failed" | "Success" | "In Progress";
6547
6683
  StartedAt?: Date;
6548
6684
  EndedAt?: Date;
6685
+ Integration?: string;
6549
6686
  Company?: string;
6550
6687
  ScheduledJobRunID?: string;
6551
6688
  TotalRecords?: number;
@@ -6553,7 +6690,6 @@ export declare const MJCompanyIntegrationRunSchema: z.ZodObject<{
6553
6690
  CompanyIntegrationID?: string;
6554
6691
  RunByUserID?: string;
6555
6692
  ConfigData?: string;
6556
- Integration?: string;
6557
6693
  RunByUser?: string;
6558
6694
  }, {
6559
6695
  ID?: string;
@@ -6563,6 +6699,7 @@ export declare const MJCompanyIntegrationRunSchema: z.ZodObject<{
6563
6699
  Status?: "Pending" | "Failed" | "Success" | "In Progress";
6564
6700
  StartedAt?: Date;
6565
6701
  EndedAt?: Date;
6702
+ Integration?: string;
6566
6703
  Company?: string;
6567
6704
  ScheduledJobRunID?: string;
6568
6705
  TotalRecords?: number;
@@ -6570,7 +6707,6 @@ export declare const MJCompanyIntegrationRunSchema: z.ZodObject<{
6570
6707
  CompanyIntegrationID?: string;
6571
6708
  RunByUserID?: string;
6572
6709
  ConfigData?: string;
6573
- Integration?: string;
6574
6710
  RunByUser?: string;
6575
6711
  }>;
6576
6712
  export type MJCompanyIntegrationRunEntityType = z.infer<typeof MJCompanyIntegrationRunSchema>;
@@ -6660,13 +6796,13 @@ export declare const MJCompanyIntegrationSchema: z.ZodObject<{
6660
6796
  Name?: string;
6661
6797
  IsActive?: boolean;
6662
6798
  Configuration?: string;
6799
+ CredentialID?: string;
6800
+ Integration?: string;
6663
6801
  CompanyID?: string;
6664
6802
  Company?: string;
6665
6803
  LastRunID?: string;
6666
- CredentialID?: string;
6667
6804
  DriverImportPath?: string;
6668
6805
  APIKey?: string;
6669
- Integration?: string;
6670
6806
  IntegrationID?: string;
6671
6807
  AccessToken?: string;
6672
6808
  RefreshToken?: string;
@@ -6698,13 +6834,13 @@ export declare const MJCompanyIntegrationSchema: z.ZodObject<{
6698
6834
  Name?: string;
6699
6835
  IsActive?: boolean;
6700
6836
  Configuration?: string;
6837
+ CredentialID?: string;
6838
+ Integration?: string;
6701
6839
  CompanyID?: string;
6702
6840
  Company?: string;
6703
6841
  LastRunID?: string;
6704
- CredentialID?: string;
6705
6842
  DriverImportPath?: string;
6706
6843
  APIKey?: string;
6707
- Integration?: string;
6708
6844
  IntegrationID?: string;
6709
6845
  AccessToken?: string;
6710
6846
  RefreshToken?: string;
@@ -7062,6 +7198,7 @@ export declare const MJContentItemChunkSchema: z.ZodObject<{
7062
7198
  SegmenterKey: z.ZodNullable<z.ZodString>;
7063
7199
  ParentChunkID: z.ZodNullable<z.ZodString>;
7064
7200
  ContentItem: z.ZodNullable<z.ZodString>;
7201
+ ParentChunk: z.ZodNullable<z.ZodString>;
7065
7202
  RootParentChunkID: z.ZodNullable<z.ZodString>;
7066
7203
  }, "strip", z.ZodTypeAny, {
7067
7204
  ID?: string;
@@ -7089,6 +7226,7 @@ export declare const MJContentItemChunkSchema: z.ZodObject<{
7089
7226
  Transcript?: string;
7090
7227
  SegmenterKey?: string;
7091
7228
  ParentChunkID?: string;
7229
+ ParentChunk?: string;
7092
7230
  RootParentChunkID?: string;
7093
7231
  }, {
7094
7232
  ID?: string;
@@ -7116,6 +7254,7 @@ export declare const MJContentItemChunkSchema: z.ZodObject<{
7116
7254
  Transcript?: string;
7117
7255
  SegmenterKey?: string;
7118
7256
  ParentChunkID?: string;
7257
+ ParentChunk?: string;
7119
7258
  RootParentChunkID?: string;
7120
7259
  }>;
7121
7260
  export type MJContentItemChunkEntityType = z.infer<typeof MJContentItemChunkSchema>;
@@ -7571,9 +7710,9 @@ export declare const MJContentSourceSchema: z.ZodObject<{
7571
7710
  Configuration: z.ZodNullable<z.ZodAny>;
7572
7711
  EntityID: z.ZodNullable<z.ZodString>;
7573
7712
  EntityDocumentID: z.ZodNullable<z.ZodString>;
7574
- ScheduledActionID: z.ZodNullable<z.ZodString>;
7575
7713
  SegmenterKey: z.ZodNullable<z.ZodString>;
7576
7714
  CleanerKey: z.ZodNullable<z.ZodString>;
7715
+ ScheduledJobID: z.ZodNullable<z.ZodString>;
7577
7716
  ContentType: z.ZodString;
7578
7717
  ContentSourceType: z.ZodString;
7579
7718
  ContentFileType: z.ZodString;
@@ -7581,7 +7720,7 @@ export declare const MJContentSourceSchema: z.ZodObject<{
7581
7720
  VectorIndex: z.ZodNullable<z.ZodString>;
7582
7721
  Entity: z.ZodNullable<z.ZodString>;
7583
7722
  EntityDocument: z.ZodNullable<z.ZodString>;
7584
- ScheduledAction: z.ZodNullable<z.ZodString>;
7723
+ ScheduledJob: z.ZodNullable<z.ZodString>;
7585
7724
  }, "strip", z.ZodTypeAny, {
7586
7725
  ID?: string;
7587
7726
  EntityID?: string;
@@ -7594,6 +7733,7 @@ export declare const MJContentSourceSchema: z.ZodObject<{
7594
7733
  EmbeddingModel?: string;
7595
7734
  ContentType?: string;
7596
7735
  URL?: string;
7736
+ ScheduledJobID?: string;
7597
7737
  SegmenterKey?: string;
7598
7738
  ContentTypeID?: string;
7599
7739
  ContentSourceTypeID?: string;
@@ -7602,11 +7742,10 @@ export declare const MJContentSourceSchema: z.ZodObject<{
7602
7742
  ContentFileType?: string;
7603
7743
  VectorIndexID?: string;
7604
7744
  EntityDocumentID?: string;
7605
- ScheduledActionID?: string;
7606
7745
  CleanerKey?: string;
7607
7746
  VectorIndex?: string;
7608
7747
  EntityDocument?: string;
7609
- ScheduledAction?: string;
7748
+ ScheduledJob?: string;
7610
7749
  }, {
7611
7750
  ID?: string;
7612
7751
  EntityID?: string;
@@ -7619,6 +7758,7 @@ export declare const MJContentSourceSchema: z.ZodObject<{
7619
7758
  EmbeddingModel?: string;
7620
7759
  ContentType?: string;
7621
7760
  URL?: string;
7761
+ ScheduledJobID?: string;
7622
7762
  SegmenterKey?: string;
7623
7763
  ContentTypeID?: string;
7624
7764
  ContentSourceTypeID?: string;
@@ -7627,11 +7767,10 @@ export declare const MJContentSourceSchema: z.ZodObject<{
7627
7767
  ContentFileType?: string;
7628
7768
  VectorIndexID?: string;
7629
7769
  EntityDocumentID?: string;
7630
- ScheduledActionID?: string;
7631
7770
  CleanerKey?: string;
7632
7771
  VectorIndex?: string;
7633
7772
  EntityDocument?: string;
7634
- ScheduledAction?: string;
7773
+ ScheduledJob?: string;
7635
7774
  }>;
7636
7775
  export type MJContentSourceEntityType = z.infer<typeof MJContentSourceSchema>;
7637
7776
  /**
@@ -9412,7 +9551,7 @@ export declare const MJEncryptionKeySourceSchema: z.ZodObject<{
9412
9551
  __mj_UpdatedAt?: Date;
9413
9552
  Name?: string;
9414
9553
  Description?: string;
9415
- Status?: "Active" | "Deprecated" | "Inactive";
9554
+ Status?: "Active" | "Inactive" | "Deprecated";
9416
9555
  DriverClass?: string;
9417
9556
  IsActive?: boolean;
9418
9557
  DriverImportPath?: string;
@@ -9423,7 +9562,7 @@ export declare const MJEncryptionKeySourceSchema: z.ZodObject<{
9423
9562
  __mj_UpdatedAt?: Date;
9424
9563
  Name?: string;
9425
9564
  Description?: string;
9426
- Status?: "Active" | "Deprecated" | "Inactive";
9565
+ Status?: "Active" | "Inactive" | "Deprecated";
9427
9566
  DriverClass?: string;
9428
9567
  IsActive?: boolean;
9429
9568
  DriverImportPath?: string;
@@ -9557,6 +9696,10 @@ export declare const MJEntitySchema: z.ZodObject<{
9557
9696
  DetectExternalChanges: z.ZodBoolean;
9558
9697
  ExternalDataSourceID: z.ZodNullable<z.ZodString>;
9559
9698
  ExternalObjectName: z.ZodNullable<z.ZodString>;
9699
+ GeneratedBaseViewName: z.ZodNullable<z.ZodString>;
9700
+ AllowDirectSQLInsert: z.ZodBoolean;
9701
+ AllowDirectSQLUpdate: z.ZodBoolean;
9702
+ AllowDirectSQLDelete: z.ZodBoolean;
9560
9703
  CodeName: z.ZodNullable<z.ZodString>;
9561
9704
  ClassName: z.ZodNullable<z.ZodString>;
9562
9705
  BaseTableCodeName: z.ZodNullable<z.ZodString>;
@@ -9634,6 +9777,10 @@ export declare const MJEntitySchema: z.ZodObject<{
9634
9777
  AllowCaching?: boolean;
9635
9778
  DetectExternalChanges?: boolean;
9636
9779
  ExternalDataSourceID?: string;
9780
+ GeneratedBaseViewName?: string;
9781
+ AllowDirectSQLInsert?: boolean;
9782
+ AllowDirectSQLUpdate?: boolean;
9783
+ AllowDirectSQLDelete?: boolean;
9637
9784
  BaseTableCodeName?: string;
9638
9785
  ParentEntity?: string;
9639
9786
  ParentBaseTable?: string;
@@ -9709,6 +9856,10 @@ export declare const MJEntitySchema: z.ZodObject<{
9709
9856
  AllowCaching?: boolean;
9710
9857
  DetectExternalChanges?: boolean;
9711
9858
  ExternalDataSourceID?: string;
9859
+ GeneratedBaseViewName?: string;
9860
+ AllowDirectSQLInsert?: boolean;
9861
+ AllowDirectSQLUpdate?: boolean;
9862
+ AllowDirectSQLDelete?: boolean;
9712
9863
  BaseTableCodeName?: string;
9713
9864
  ParentEntity?: string;
9714
9865
  ParentBaseTable?: string;
@@ -9734,20 +9885,20 @@ export declare const MJEntityActionFilterSchema: z.ZodObject<{
9734
9885
  __mj_CreatedAt?: Date;
9735
9886
  __mj_UpdatedAt?: Date;
9736
9887
  Status?: "Active" | "Disabled" | "Pending";
9737
- Sequence?: number;
9738
9888
  EntityActionID?: string;
9739
- ActionFilterID?: string;
9740
9889
  EntityAction?: string;
9890
+ Sequence?: number;
9891
+ ActionFilterID?: string;
9741
9892
  ActionFilter?: string;
9742
9893
  }, {
9743
9894
  ID?: string;
9744
9895
  __mj_CreatedAt?: Date;
9745
9896
  __mj_UpdatedAt?: Date;
9746
9897
  Status?: "Active" | "Disabled" | "Pending";
9747
- Sequence?: number;
9748
9898
  EntityActionID?: string;
9749
- ActionFilterID?: string;
9750
9899
  EntityAction?: string;
9900
+ Sequence?: number;
9901
+ ActionFilterID?: string;
9751
9902
  ActionFilter?: string;
9752
9903
  }>;
9753
9904
  export type MJEntityActionFilterEntityType = z.infer<typeof MJEntityActionFilterSchema>;
@@ -9819,11 +9970,12 @@ export declare const MJEntityActionParamSchema: z.ZodObject<{
9819
9970
  ID: z.ZodString;
9820
9971
  EntityActionID: z.ZodString;
9821
9972
  ActionParamID: z.ZodString;
9822
- ValueType: z.ZodUnion<[z.ZodLiteral<"Entity Field">, z.ZodLiteral<"Entity Object">, z.ZodLiteral<"Script">, z.ZodLiteral<"Static">]>;
9973
+ ValueType: z.ZodUnion<[z.ZodLiteral<"Entity Field">, z.ZodLiteral<"Entity Object">, z.ZodLiteral<"Entity Object Data">, z.ZodLiteral<"Script">, z.ZodLiteral<"Static">]>;
9823
9974
  Value: z.ZodNullable<z.ZodString>;
9824
9975
  Comments: z.ZodNullable<z.ZodString>;
9825
9976
  __mj_CreatedAt: z.ZodDate;
9826
9977
  __mj_UpdatedAt: z.ZodDate;
9978
+ LogValue: z.ZodNullable<z.ZodBoolean>;
9827
9979
  EntityAction: z.ZodString;
9828
9980
  ActionParam: z.ZodString;
9829
9981
  }, "strip", z.ZodTypeAny, {
@@ -9831,10 +9983,11 @@ export declare const MJEntityActionParamSchema: z.ZodObject<{
9831
9983
  __mj_CreatedAt?: Date;
9832
9984
  __mj_UpdatedAt?: Date;
9833
9985
  Comments?: string;
9834
- ValueType?: "Entity Field" | "Entity Object" | "Script" | "Static";
9835
- Value?: string;
9836
9986
  EntityActionID?: string;
9837
9987
  EntityAction?: string;
9988
+ ValueType?: "Entity Field" | "Entity Object" | "Entity Object Data" | "Script" | "Static";
9989
+ LogValue?: boolean;
9990
+ Value?: string;
9838
9991
  ActionParamID?: string;
9839
9992
  ActionParam?: string;
9840
9993
  }, {
@@ -9842,10 +9995,11 @@ export declare const MJEntityActionParamSchema: z.ZodObject<{
9842
9995
  __mj_CreatedAt?: Date;
9843
9996
  __mj_UpdatedAt?: Date;
9844
9997
  Comments?: string;
9845
- ValueType?: "Entity Field" | "Entity Object" | "Script" | "Static";
9846
- Value?: string;
9847
9998
  EntityActionID?: string;
9848
9999
  EntityAction?: string;
10000
+ ValueType?: "Entity Field" | "Entity Object" | "Entity Object Data" | "Script" | "Static";
10001
+ LogValue?: boolean;
10002
+ Value?: string;
9849
10003
  ActionParamID?: string;
9850
10004
  ActionParam?: string;
9851
10005
  }>;
@@ -9860,8 +10014,13 @@ export declare const MJEntityActionSchema: z.ZodObject<{
9860
10014
  __mj_CreatedAt: z.ZodDate;
9861
10015
  __mj_UpdatedAt: z.ZodDate;
9862
10016
  ID: z.ZodString;
10017
+ Sequence: z.ZodNumber;
10018
+ ScopeEntityID: z.ZodNullable<z.ZodString>;
10019
+ ScopeRecordID: z.ZodNullable<z.ZodString>;
10020
+ LoggingMode: z.ZodUnion<[z.ZodLiteral<"All">, z.ZodLiteral<"FailuresOnly">, z.ZodLiteral<"None">]>;
9863
10021
  Entity: z.ZodString;
9864
10022
  Action: z.ZodString;
10023
+ ScopeEntity: z.ZodNullable<z.ZodString>;
9865
10024
  }, "strip", z.ZodTypeAny, {
9866
10025
  ID?: string;
9867
10026
  EntityID?: string;
@@ -9871,6 +10030,11 @@ export declare const MJEntityActionSchema: z.ZodObject<{
9871
10030
  ActionID?: string;
9872
10031
  Action?: string;
9873
10032
  Status?: "Active" | "Disabled" | "Pending";
10033
+ Sequence?: number;
10034
+ ScopeEntityID?: string;
10035
+ ScopeRecordID?: string;
10036
+ LoggingMode?: "None" | "All" | "FailuresOnly";
10037
+ ScopeEntity?: string;
9874
10038
  }, {
9875
10039
  ID?: string;
9876
10040
  EntityID?: string;
@@ -9880,6 +10044,11 @@ export declare const MJEntityActionSchema: z.ZodObject<{
9880
10044
  ActionID?: string;
9881
10045
  Action?: string;
9882
10046
  Status?: "Active" | "Disabled" | "Pending";
10047
+ Sequence?: number;
10048
+ ScopeEntityID?: string;
10049
+ ScopeRecordID?: string;
10050
+ LoggingMode?: "None" | "All" | "FailuresOnly";
10051
+ ScopeEntity?: string;
9883
10052
  }>;
9884
10053
  export type MJEntityActionEntityType = z.infer<typeof MJEntityActionSchema>;
9885
10054
  /**
@@ -9913,10 +10082,10 @@ export declare const MJEntityAIActionSchema: z.ZodObject<{
9913
10082
  Entity?: string;
9914
10083
  Comments?: string;
9915
10084
  Name?: string;
9916
- Prompt?: string;
9917
10085
  AIModelID?: string;
9918
- AIActionID?: string;
9919
10086
  AIModel?: string;
10087
+ Prompt?: string;
10088
+ AIActionID?: string;
9920
10089
  AIAction?: string;
9921
10090
  OutputType?: "entity" | "field";
9922
10091
  TriggerEvent?: "after save" | "before save";
@@ -9933,10 +10102,10 @@ export declare const MJEntityAIActionSchema: z.ZodObject<{
9933
10102
  Entity?: string;
9934
10103
  Comments?: string;
9935
10104
  Name?: string;
9936
- Prompt?: string;
9937
10105
  AIModelID?: string;
9938
- AIActionID?: string;
9939
10106
  AIModel?: string;
10107
+ Prompt?: string;
10108
+ AIActionID?: string;
9940
10109
  AIAction?: string;
9941
10110
  OutputType?: "entity" | "field";
9942
10111
  TriggerEvent?: "after save" | "before save";
@@ -10137,9 +10306,9 @@ export declare const MJEntityDocumentSchema: z.ZodObject<{
10137
10306
  Status?: "Active" | "Inactive";
10138
10307
  Type?: string;
10139
10308
  Configuration?: string;
10140
- TypeID?: string;
10141
10309
  AIModelID?: string;
10142
10310
  AIModel?: string;
10311
+ TypeID?: string;
10143
10312
  TemplateID?: string;
10144
10313
  Template?: string;
10145
10314
  VectorIndexID?: string;
@@ -10166,9 +10335,9 @@ export declare const MJEntityDocumentSchema: z.ZodObject<{
10166
10335
  Status?: "Active" | "Inactive";
10167
10336
  Type?: string;
10168
10337
  Configuration?: string;
10169
- TypeID?: string;
10170
10338
  AIModelID?: string;
10171
10339
  AIModel?: string;
10340
+ TypeID?: string;
10172
10341
  TemplateID?: string;
10173
10342
  Template?: string;
10174
10343
  VectorIndexID?: string;
@@ -10808,6 +10977,7 @@ export declare const MJEntityRelationshipSchema: z.ZodObject<{
10808
10977
  AutoUpdateFromSchema: z.ZodBoolean;
10809
10978
  AdditionalFieldsToInclude: z.ZodNullable<z.ZodString>;
10810
10979
  AutoUpdateAdditionalFieldsToInclude: z.ZodBoolean;
10980
+ RelatedRecordCollection: z.ZodNullable<z.ZodAny>;
10811
10981
  Entity: z.ZodString;
10812
10982
  EntityBaseTable: z.ZodString;
10813
10983
  EntityBaseView: z.ZodString;
@@ -10851,6 +11021,7 @@ export declare const MJEntityRelationshipSchema: z.ZodObject<{
10851
11021
  AutoUpdateFromSchema?: boolean;
10852
11022
  AdditionalFieldsToInclude?: string;
10853
11023
  AutoUpdateAdditionalFieldsToInclude?: boolean;
11024
+ RelatedRecordCollection?: any;
10854
11025
  EntityBaseView?: string;
10855
11026
  RelatedEntityBaseTableCodeName?: string;
10856
11027
  DisplayUserViewName?: string;
@@ -10887,6 +11058,7 @@ export declare const MJEntityRelationshipSchema: z.ZodObject<{
10887
11058
  AutoUpdateFromSchema?: boolean;
10888
11059
  AdditionalFieldsToInclude?: string;
10889
11060
  AutoUpdateAdditionalFieldsToInclude?: boolean;
11061
+ RelatedRecordCollection?: any;
10890
11062
  EntityBaseView?: string;
10891
11063
  RelatedEntityBaseTableCodeName?: string;
10892
11064
  DisplayUserViewName?: string;
@@ -11260,9 +11432,9 @@ export declare const MJExternalDataSourceSchema: z.ZodObject<{
11260
11432
  Description?: string;
11261
11433
  Status?: "Active" | "Disabled" | "TestFailed";
11262
11434
  Type?: string;
11263
- TypeID?: string;
11264
11435
  CredentialID?: string;
11265
11436
  Credential?: string;
11437
+ TypeID?: string;
11266
11438
  DefaultSchema?: string;
11267
11439
  DefaultDatabase?: string;
11268
11440
  ConnectionConfig?: string;
@@ -11277,9 +11449,9 @@ export declare const MJExternalDataSourceSchema: z.ZodObject<{
11277
11449
  Description?: string;
11278
11450
  Status?: "Active" | "Disabled" | "TestFailed";
11279
11451
  Type?: string;
11280
- TypeID?: string;
11281
11452
  CredentialID?: string;
11282
11453
  Credential?: string;
11454
+ TypeID?: string;
11283
11455
  DefaultSchema?: string;
11284
11456
  DefaultDatabase?: string;
11285
11457
  ConnectionConfig?: string;
@@ -11416,10 +11588,10 @@ export declare const MJFileStorageAccountSchema: z.ZodObject<{
11416
11588
  __mj_UpdatedAt?: Date;
11417
11589
  Name?: string;
11418
11590
  Description?: string;
11419
- ProviderID?: string;
11420
- Provider?: string;
11421
11591
  CredentialID?: string;
11422
11592
  Credential?: string;
11593
+ ProviderID?: string;
11594
+ Provider?: string;
11423
11595
  IncludeInGlobalSearch?: boolean;
11424
11596
  }, {
11425
11597
  ID?: string;
@@ -11427,10 +11599,10 @@ export declare const MJFileStorageAccountSchema: z.ZodObject<{
11427
11599
  __mj_UpdatedAt?: Date;
11428
11600
  Name?: string;
11429
11601
  Description?: string;
11430
- ProviderID?: string;
11431
- Provider?: string;
11432
11602
  CredentialID?: string;
11433
11603
  Credential?: string;
11604
+ ProviderID?: string;
11605
+ Provider?: string;
11434
11606
  IncludeInGlobalSearch?: boolean;
11435
11607
  }>;
11436
11608
  export type MJFileStorageAccountEntityType = z.infer<typeof MJFileStorageAccountSchema>;
@@ -12653,10 +12825,10 @@ export declare const MJMCPServerConnectionSchema: z.ZodObject<{
12653
12825
  Name?: string;
12654
12826
  Description?: string;
12655
12827
  Status?: string;
12656
- CompanyID?: string;
12657
- Company?: string;
12658
12828
  CredentialID?: string;
12659
12829
  Credential?: string;
12830
+ CompanyID?: string;
12831
+ Company?: string;
12660
12832
  MCPServerID?: string;
12661
12833
  CustomHeaderName?: string;
12662
12834
  AutoSyncTools?: boolean;
@@ -12676,10 +12848,10 @@ export declare const MJMCPServerConnectionSchema: z.ZodObject<{
12676
12848
  Name?: string;
12677
12849
  Description?: string;
12678
12850
  Status?: string;
12679
- CompanyID?: string;
12680
- Company?: string;
12681
12851
  CredentialID?: string;
12682
12852
  Credential?: string;
12853
+ CompanyID?: string;
12854
+ Company?: string;
12683
12855
  MCPServerID?: string;
12684
12856
  CustomHeaderName?: string;
12685
12857
  AutoSyncTools?: boolean;
@@ -13065,30 +13237,30 @@ export declare const MJMLModelScoringBindingSchema: z.ZodObject<{
13065
13237
  ID?: string;
13066
13238
  __mj_CreatedAt?: Date;
13067
13239
  __mj_UpdatedAt?: Date;
13240
+ TargetEntityID?: string;
13241
+ TargetEntity?: string;
13068
13242
  Mode?: "OnDemand" | "Scheduled" | "Materialized";
13069
13243
  MLModelID?: string;
13070
13244
  RecordProcessID?: string;
13071
- TargetEntityID?: string;
13072
13245
  TargetColumn?: string;
13073
13246
  MaterializedResultID?: string;
13074
13247
  LastScoredAt?: Date;
13075
13248
  LastRowCount?: number;
13076
13249
  RecordProcess?: string;
13077
- TargetEntity?: string;
13078
13250
  }, {
13079
13251
  ID?: string;
13080
13252
  __mj_CreatedAt?: Date;
13081
13253
  __mj_UpdatedAt?: Date;
13254
+ TargetEntityID?: string;
13255
+ TargetEntity?: string;
13082
13256
  Mode?: "OnDemand" | "Scheduled" | "Materialized";
13083
13257
  MLModelID?: string;
13084
13258
  RecordProcessID?: string;
13085
- TargetEntityID?: string;
13086
13259
  TargetColumn?: string;
13087
13260
  MaterializedResultID?: string;
13088
13261
  LastScoredAt?: Date;
13089
13262
  LastRowCount?: number;
13090
13263
  RecordProcess?: string;
13091
- TargetEntity?: string;
13092
13264
  }>;
13093
13265
  export type MJMLModelScoringBindingEntityType = z.infer<typeof MJMLModelScoringBindingSchema>;
13094
13266
  /**
@@ -13195,10 +13367,10 @@ export declare const MJMLTrainingPipelineSchema: z.ZodObject<{
13195
13367
  Name?: string;
13196
13368
  Description?: string;
13197
13369
  Status?: "Archived" | "Draft" | "Published";
13198
- Algorithm?: string;
13199
- Version?: number;
13200
13370
  TargetEntityID?: string;
13201
13371
  TargetEntity?: string;
13372
+ Algorithm?: string;
13373
+ Version?: number;
13202
13374
  AlgorithmID?: string;
13203
13375
  TargetVariable?: string;
13204
13376
  ProblemType?: "classification" | "regression";
@@ -13215,10 +13387,10 @@ export declare const MJMLTrainingPipelineSchema: z.ZodObject<{
13215
13387
  Name?: string;
13216
13388
  Description?: string;
13217
13389
  Status?: "Archived" | "Draft" | "Published";
13218
- Algorithm?: string;
13219
- Version?: number;
13220
13390
  TargetEntityID?: string;
13221
13391
  TargetEntity?: string;
13392
+ Algorithm?: string;
13393
+ Version?: number;
13222
13394
  AlgorithmID?: string;
13223
13395
  TargetVariable?: string;
13224
13396
  ProblemType?: "classification" | "regression";
@@ -13769,29 +13941,6 @@ export declare const MJOutputFormatTypeSchema: z.ZodObject<{
13769
13941
  DisplayFormat?: string;
13770
13942
  }>;
13771
13943
  export type MJOutputFormatTypeEntityType = z.infer<typeof MJOutputFormatTypeSchema>;
13772
- /**
13773
- * zod schema definition for the entity MJ: Output Trigger Types
13774
- */
13775
- export declare const MJOutputTriggerTypeSchema: z.ZodObject<{
13776
- ID: z.ZodString;
13777
- Name: z.ZodString;
13778
- Description: z.ZodNullable<z.ZodString>;
13779
- __mj_CreatedAt: z.ZodDate;
13780
- __mj_UpdatedAt: z.ZodDate;
13781
- }, "strip", z.ZodTypeAny, {
13782
- ID?: string;
13783
- __mj_CreatedAt?: Date;
13784
- __mj_UpdatedAt?: Date;
13785
- Name?: string;
13786
- Description?: string;
13787
- }, {
13788
- ID?: string;
13789
- __mj_CreatedAt?: Date;
13790
- __mj_UpdatedAt?: Date;
13791
- Name?: string;
13792
- Description?: string;
13793
- }>;
13794
- export type MJOutputTriggerTypeEntityType = z.infer<typeof MJOutputTriggerTypeSchema>;
13795
13944
  /**
13796
13945
  * zod schema definition for the entity MJ: Permission Domains
13797
13946
  */
@@ -14842,8 +14991,8 @@ export declare const MJRecordChangeSchema: z.ZodObject<{
14842
14991
  Status?: "Pending" | "Complete" | "Error";
14843
14992
  UserID?: string;
14844
14993
  Type?: "Create" | "Delete" | "Snapshot" | "Update";
14845
- ErrorLog?: string;
14846
14994
  Integration?: string;
14995
+ ErrorLog?: string;
14847
14996
  IntegrationID?: string;
14848
14997
  Source?: "Internal" | "External" | "Restore";
14849
14998
  ChangedAt?: Date;
@@ -14868,8 +15017,8 @@ export declare const MJRecordChangeSchema: z.ZodObject<{
14868
15017
  Status?: "Pending" | "Complete" | "Error";
14869
15018
  UserID?: string;
14870
15019
  Type?: "Create" | "Delete" | "Snapshot" | "Update";
14871
- ErrorLog?: string;
14872
15020
  Integration?: string;
15021
+ ErrorLog?: string;
14873
15022
  IntegrationID?: string;
14874
15023
  Source?: "Internal" | "External" | "Restore";
14875
15024
  ChangedAt?: Date;
@@ -14974,27 +15123,27 @@ export declare const MJRecordLinkSchema: z.ZodObject<{
14974
15123
  ID?: string;
14975
15124
  __mj_CreatedAt?: Date;
14976
15125
  __mj_UpdatedAt?: Date;
14977
- Sequence?: number;
14978
- Metadata?: string;
14979
15126
  TargetEntityID?: string;
15127
+ TargetRecordID?: string;
14980
15128
  TargetEntity?: string;
15129
+ Sequence?: number;
15130
+ Metadata?: string;
14981
15131
  SourceEntityID?: string;
14982
15132
  SourceEntity?: string;
14983
15133
  SourceRecordID?: string;
14984
- TargetRecordID?: string;
14985
15134
  LinkType?: string;
14986
15135
  }, {
14987
15136
  ID?: string;
14988
15137
  __mj_CreatedAt?: Date;
14989
15138
  __mj_UpdatedAt?: Date;
14990
- Sequence?: number;
14991
- Metadata?: string;
14992
15139
  TargetEntityID?: string;
15140
+ TargetRecordID?: string;
14993
15141
  TargetEntity?: string;
15142
+ Sequence?: number;
15143
+ Metadata?: string;
14994
15144
  SourceEntityID?: string;
14995
15145
  SourceEntity?: string;
14996
15146
  SourceRecordID?: string;
14997
- TargetRecordID?: string;
14998
15147
  LinkType?: string;
14999
15148
  }>;
15000
15149
  export type MJRecordLinkEntityType = z.infer<typeof MJRecordLinkSchema>;
@@ -15408,244 +15557,6 @@ export declare const MJRemoteOperationSchema: z.ZodObject<{
15408
15557
  Libraries?: any;
15409
15558
  }>;
15410
15559
  export type MJRemoteOperationEntityType = z.infer<typeof MJRemoteOperationSchema>;
15411
- /**
15412
- * zod schema definition for the entity MJ: Report Categories
15413
- */
15414
- export declare const MJReportCategorySchema: z.ZodObject<{
15415
- ID: z.ZodString;
15416
- Name: z.ZodString;
15417
- Description: z.ZodNullable<z.ZodString>;
15418
- ParentID: z.ZodNullable<z.ZodString>;
15419
- UserID: z.ZodString;
15420
- __mj_CreatedAt: z.ZodDate;
15421
- __mj_UpdatedAt: z.ZodDate;
15422
- Parent: z.ZodNullable<z.ZodString>;
15423
- User: z.ZodString;
15424
- RootParentID: z.ZodNullable<z.ZodString>;
15425
- }, "strip", z.ZodTypeAny, {
15426
- ID?: string;
15427
- User?: string;
15428
- __mj_CreatedAt?: Date;
15429
- __mj_UpdatedAt?: Date;
15430
- Name?: string;
15431
- Description?: string;
15432
- ParentID?: string;
15433
- Parent?: string;
15434
- RootParentID?: string;
15435
- UserID?: string;
15436
- }, {
15437
- ID?: string;
15438
- User?: string;
15439
- __mj_CreatedAt?: Date;
15440
- __mj_UpdatedAt?: Date;
15441
- Name?: string;
15442
- Description?: string;
15443
- ParentID?: string;
15444
- Parent?: string;
15445
- RootParentID?: string;
15446
- UserID?: string;
15447
- }>;
15448
- export type MJReportCategoryEntityType = z.infer<typeof MJReportCategorySchema>;
15449
- /**
15450
- * zod schema definition for the entity MJ: Report Snapshots
15451
- */
15452
- export declare const MJReportSnapshotSchema: z.ZodObject<{
15453
- ID: z.ZodString;
15454
- ReportID: z.ZodString;
15455
- ResultSet: z.ZodString;
15456
- UserID: z.ZodString;
15457
- __mj_CreatedAt: z.ZodDate;
15458
- __mj_UpdatedAt: z.ZodDate;
15459
- Report: z.ZodString;
15460
- User: z.ZodString;
15461
- }, "strip", z.ZodTypeAny, {
15462
- ID?: string;
15463
- User?: string;
15464
- __mj_CreatedAt?: Date;
15465
- __mj_UpdatedAt?: Date;
15466
- UserID?: string;
15467
- Report?: string;
15468
- ReportID?: string;
15469
- ResultSet?: string;
15470
- }, {
15471
- ID?: string;
15472
- User?: string;
15473
- __mj_CreatedAt?: Date;
15474
- __mj_UpdatedAt?: Date;
15475
- UserID?: string;
15476
- Report?: string;
15477
- ReportID?: string;
15478
- ResultSet?: string;
15479
- }>;
15480
- export type MJReportSnapshotEntityType = z.infer<typeof MJReportSnapshotSchema>;
15481
- /**
15482
- * zod schema definition for the entity MJ: Report User States
15483
- */
15484
- export declare const MJReportUserStateSchema: z.ZodObject<{
15485
- ID: z.ZodString;
15486
- ReportID: z.ZodString;
15487
- UserID: z.ZodString;
15488
- ReportState: z.ZodNullable<z.ZodString>;
15489
- __mj_CreatedAt: z.ZodDate;
15490
- __mj_UpdatedAt: z.ZodDate;
15491
- Report: z.ZodString;
15492
- User: z.ZodString;
15493
- }, "strip", z.ZodTypeAny, {
15494
- ID?: string;
15495
- User?: string;
15496
- __mj_CreatedAt?: Date;
15497
- __mj_UpdatedAt?: Date;
15498
- UserID?: string;
15499
- Report?: string;
15500
- ReportID?: string;
15501
- ReportState?: string;
15502
- }, {
15503
- ID?: string;
15504
- User?: string;
15505
- __mj_CreatedAt?: Date;
15506
- __mj_UpdatedAt?: Date;
15507
- UserID?: string;
15508
- Report?: string;
15509
- ReportID?: string;
15510
- ReportState?: string;
15511
- }>;
15512
- export type MJReportUserStateEntityType = z.infer<typeof MJReportUserStateSchema>;
15513
- /**
15514
- * zod schema definition for the entity MJ: Report Versions
15515
- */
15516
- export declare const MJReportVersionSchema: z.ZodObject<{
15517
- ID: z.ZodString;
15518
- ReportID: z.ZodString;
15519
- VersionNumber: z.ZodNumber;
15520
- Name: z.ZodString;
15521
- Description: z.ZodNullable<z.ZodString>;
15522
- Configuration: z.ZodNullable<z.ZodString>;
15523
- DataContextUpdated: z.ZodBoolean;
15524
- __mj_CreatedAt: z.ZodDate;
15525
- __mj_UpdatedAt: z.ZodDate;
15526
- Report: z.ZodString;
15527
- }, "strip", z.ZodTypeAny, {
15528
- ID?: string;
15529
- __mj_CreatedAt?: Date;
15530
- __mj_UpdatedAt?: Date;
15531
- Name?: string;
15532
- Description?: string;
15533
- Configuration?: string;
15534
- VersionNumber?: number;
15535
- Report?: string;
15536
- ReportID?: string;
15537
- DataContextUpdated?: boolean;
15538
- }, {
15539
- ID?: string;
15540
- __mj_CreatedAt?: Date;
15541
- __mj_UpdatedAt?: Date;
15542
- Name?: string;
15543
- Description?: string;
15544
- Configuration?: string;
15545
- VersionNumber?: number;
15546
- Report?: string;
15547
- ReportID?: string;
15548
- DataContextUpdated?: boolean;
15549
- }>;
15550
- export type MJReportVersionEntityType = z.infer<typeof MJReportVersionSchema>;
15551
- /**
15552
- * zod schema definition for the entity MJ: Reports
15553
- */
15554
- export declare const MJReportSchema: z.ZodObject<{
15555
- ID: z.ZodString;
15556
- Name: z.ZodString;
15557
- Description: z.ZodNullable<z.ZodString>;
15558
- CategoryID: z.ZodNullable<z.ZodString>;
15559
- UserID: z.ZodString;
15560
- SharingScope: z.ZodUnion<[z.ZodLiteral<"Everyone">, z.ZodLiteral<"None">, z.ZodLiteral<"Specific">]>;
15561
- ConversationID: z.ZodNullable<z.ZodString>;
15562
- ConversationDetailID: z.ZodNullable<z.ZodString>;
15563
- DataContextID: z.ZodNullable<z.ZodString>;
15564
- Configuration: z.ZodNullable<z.ZodString>;
15565
- OutputTriggerTypeID: z.ZodNullable<z.ZodString>;
15566
- OutputFormatTypeID: z.ZodNullable<z.ZodString>;
15567
- OutputDeliveryTypeID: z.ZodNullable<z.ZodString>;
15568
- OutputFrequency: z.ZodNullable<z.ZodString>;
15569
- OutputTargetEmail: z.ZodNullable<z.ZodString>;
15570
- OutputWorkflowID: z.ZodNullable<z.ZodString>;
15571
- __mj_CreatedAt: z.ZodDate;
15572
- __mj_UpdatedAt: z.ZodDate;
15573
- Thumbnail: z.ZodNullable<z.ZodString>;
15574
- EnvironmentID: z.ZodString;
15575
- Category: z.ZodNullable<z.ZodString>;
15576
- User: z.ZodString;
15577
- Conversation: z.ZodNullable<z.ZodString>;
15578
- ConversationDetail: z.ZodNullable<z.ZodString>;
15579
- DataContext: z.ZodNullable<z.ZodString>;
15580
- OutputTriggerType: z.ZodNullable<z.ZodString>;
15581
- OutputFormatType: z.ZodNullable<z.ZodString>;
15582
- OutputDeliveryType: z.ZodNullable<z.ZodString>;
15583
- OutputWorkflow: z.ZodNullable<z.ZodString>;
15584
- Environment: z.ZodString;
15585
- }, "strip", z.ZodTypeAny, {
15586
- ID?: string;
15587
- User?: string;
15588
- __mj_CreatedAt?: Date;
15589
- __mj_UpdatedAt?: Date;
15590
- Name?: string;
15591
- Description?: string;
15592
- UserID?: string;
15593
- CategoryID?: string;
15594
- Category?: string;
15595
- Configuration?: string;
15596
- Conversation?: string;
15597
- ConversationID?: string;
15598
- ConversationDetailID?: string;
15599
- ConversationDetail?: string;
15600
- EnvironmentID?: string;
15601
- Environment?: string;
15602
- SharingScope?: "Everyone" | "None" | "Specific";
15603
- DataContextID?: string;
15604
- DataContext?: string;
15605
- Thumbnail?: string;
15606
- OutputTriggerTypeID?: string;
15607
- OutputFormatTypeID?: string;
15608
- OutputDeliveryTypeID?: string;
15609
- OutputFrequency?: string;
15610
- OutputTargetEmail?: string;
15611
- OutputWorkflowID?: string;
15612
- OutputTriggerType?: string;
15613
- OutputFormatType?: string;
15614
- OutputDeliveryType?: string;
15615
- OutputWorkflow?: string;
15616
- }, {
15617
- ID?: string;
15618
- User?: string;
15619
- __mj_CreatedAt?: Date;
15620
- __mj_UpdatedAt?: Date;
15621
- Name?: string;
15622
- Description?: string;
15623
- UserID?: string;
15624
- CategoryID?: string;
15625
- Category?: string;
15626
- Configuration?: string;
15627
- Conversation?: string;
15628
- ConversationID?: string;
15629
- ConversationDetailID?: string;
15630
- ConversationDetail?: string;
15631
- EnvironmentID?: string;
15632
- Environment?: string;
15633
- SharingScope?: "Everyone" | "None" | "Specific";
15634
- DataContextID?: string;
15635
- DataContext?: string;
15636
- Thumbnail?: string;
15637
- OutputTriggerTypeID?: string;
15638
- OutputFormatTypeID?: string;
15639
- OutputDeliveryTypeID?: string;
15640
- OutputFrequency?: string;
15641
- OutputTargetEmail?: string;
15642
- OutputWorkflowID?: string;
15643
- OutputTriggerType?: string;
15644
- OutputFormatType?: string;
15645
- OutputDeliveryType?: string;
15646
- OutputWorkflow?: string;
15647
- }>;
15648
- export type MJReportEntityType = z.infer<typeof MJReportSchema>;
15649
15560
  /**
15650
15561
  * zod schema definition for the entity MJ: Resource Links
15651
15562
  */
@@ -15839,106 +15750,6 @@ export declare const MJRowLevelSecurityFilterSchema: z.ZodObject<{
15839
15750
  FilterText?: string;
15840
15751
  }>;
15841
15752
  export type MJRowLevelSecurityFilterEntityType = z.infer<typeof MJRowLevelSecurityFilterSchema>;
15842
- /**
15843
- * zod schema definition for the entity MJ: Scheduled Action Params
15844
- */
15845
- export declare const MJScheduledActionParamSchema: z.ZodObject<{
15846
- ID: z.ZodString;
15847
- ScheduledActionID: z.ZodString;
15848
- ActionParamID: z.ZodString;
15849
- ValueType: z.ZodUnion<[z.ZodLiteral<"SQL Statement">, z.ZodLiteral<"Static">]>;
15850
- Value: z.ZodNullable<z.ZodString>;
15851
- Comments: z.ZodNullable<z.ZodString>;
15852
- __mj_CreatedAt: z.ZodDate;
15853
- __mj_UpdatedAt: z.ZodDate;
15854
- ScheduledAction: z.ZodString;
15855
- ActionParam: z.ZodString;
15856
- }, "strip", z.ZodTypeAny, {
15857
- ID?: string;
15858
- __mj_CreatedAt?: Date;
15859
- __mj_UpdatedAt?: Date;
15860
- Comments?: string;
15861
- ValueType?: "Static" | "SQL Statement";
15862
- Value?: string;
15863
- ScheduledActionID?: string;
15864
- ScheduledAction?: string;
15865
- ActionParamID?: string;
15866
- ActionParam?: string;
15867
- }, {
15868
- ID?: string;
15869
- __mj_CreatedAt?: Date;
15870
- __mj_UpdatedAt?: Date;
15871
- Comments?: string;
15872
- ValueType?: "Static" | "SQL Statement";
15873
- Value?: string;
15874
- ScheduledActionID?: string;
15875
- ScheduledAction?: string;
15876
- ActionParamID?: string;
15877
- ActionParam?: string;
15878
- }>;
15879
- export type MJScheduledActionParamEntityType = z.infer<typeof MJScheduledActionParamSchema>;
15880
- /**
15881
- * zod schema definition for the entity MJ: Scheduled Actions
15882
- */
15883
- export declare const MJScheduledActionSchema: z.ZodObject<{
15884
- ID: z.ZodString;
15885
- Name: z.ZodString;
15886
- Description: z.ZodNullable<z.ZodString>;
15887
- CreatedByUserID: z.ZodString;
15888
- ActionID: z.ZodString;
15889
- Type: z.ZodUnion<[z.ZodLiteral<"Custom">, z.ZodLiteral<"Daily">, z.ZodLiteral<"Monthly">, z.ZodLiteral<"Weekly">, z.ZodLiteral<"Yearly">]>;
15890
- CronExpression: z.ZodNullable<z.ZodString>;
15891
- Timezone: z.ZodString;
15892
- Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Disabled">, z.ZodLiteral<"Expired">, z.ZodLiteral<"Pending">]>;
15893
- IntervalDays: z.ZodNullable<z.ZodNumber>;
15894
- DayOfWeek: z.ZodNullable<z.ZodString>;
15895
- DayOfMonth: z.ZodNullable<z.ZodNumber>;
15896
- Month: z.ZodNullable<z.ZodString>;
15897
- CustomCronExpression: z.ZodNullable<z.ZodString>;
15898
- __mj_CreatedAt: z.ZodDate;
15899
- __mj_UpdatedAt: z.ZodDate;
15900
- CreatedByUser: z.ZodString;
15901
- Action: z.ZodString;
15902
- }, "strip", z.ZodTypeAny, {
15903
- ID?: string;
15904
- __mj_CreatedAt?: Date;
15905
- __mj_UpdatedAt?: Date;
15906
- ActionID?: string;
15907
- Action?: string;
15908
- Name?: string;
15909
- Description?: string;
15910
- Status?: "Active" | "Disabled" | "Pending" | "Expired";
15911
- Type?: "Custom" | "Daily" | "Monthly" | "Weekly" | "Yearly";
15912
- CreatedByUserID?: string;
15913
- CreatedByUser?: string;
15914
- CronExpression?: string;
15915
- Timezone?: string;
15916
- IntervalDays?: number;
15917
- DayOfWeek?: string;
15918
- DayOfMonth?: number;
15919
- Month?: string;
15920
- CustomCronExpression?: string;
15921
- }, {
15922
- ID?: string;
15923
- __mj_CreatedAt?: Date;
15924
- __mj_UpdatedAt?: Date;
15925
- ActionID?: string;
15926
- Action?: string;
15927
- Name?: string;
15928
- Description?: string;
15929
- Status?: "Active" | "Disabled" | "Pending" | "Expired";
15930
- Type?: "Custom" | "Daily" | "Monthly" | "Weekly" | "Yearly";
15931
- CreatedByUserID?: string;
15932
- CreatedByUser?: string;
15933
- CronExpression?: string;
15934
- Timezone?: string;
15935
- IntervalDays?: number;
15936
- DayOfWeek?: string;
15937
- DayOfMonth?: number;
15938
- Month?: string;
15939
- CustomCronExpression?: string;
15940
- }>;
15941
- export type MJScheduledActionEntityType = z.infer<typeof MJScheduledActionSchema>;
15942
15753
  /**
15943
15754
  * zod schema definition for the entity MJ: Scheduled Job Runs
15944
15755
  */
@@ -15968,10 +15779,10 @@ export declare const MJScheduledJobRunSchema: z.ZodObject<{
15968
15779
  ErrorMessage?: string;
15969
15780
  Details?: string;
15970
15781
  ScheduledJobID?: string;
15782
+ ScheduledJob?: string;
15971
15783
  ExecutedByUserID?: string;
15972
15784
  ExecutedByUser?: string;
15973
15785
  QueuedAt?: Date;
15974
- ScheduledJob?: string;
15975
15786
  }, {
15976
15787
  ID?: string;
15977
15788
  __mj_CreatedAt?: Date;
@@ -15983,10 +15794,10 @@ export declare const MJScheduledJobRunSchema: z.ZodObject<{
15983
15794
  ErrorMessage?: string;
15984
15795
  Details?: string;
15985
15796
  ScheduledJobID?: string;
15797
+ ScheduledJob?: string;
15986
15798
  ExecutedByUserID?: string;
15987
15799
  ExecutedByUser?: string;
15988
15800
  QueuedAt?: Date;
15989
- ScheduledJob?: string;
15990
15801
  }>;
15991
15802
  export type MJScheduledJobRunEntityType = z.infer<typeof MJScheduledJobRunSchema>;
15992
15803
  /**
@@ -16058,6 +15869,7 @@ export declare const MJScheduledJobSchema: z.ZodObject<{
16058
15869
  __mj_UpdatedAt: z.ZodDate;
16059
15870
  RunImmediatelyIfNeverRun: z.ZodBoolean;
16060
15871
  MaxRuntimeMinutes: z.ZodNullable<z.ZodNumber>;
15872
+ MissedRunPolicy: z.ZodUnion<[z.ZodLiteral<"RunAll">, z.ZodLiteral<"RunOnce">, z.ZodLiteral<"Skip">]>;
16061
15873
  JobType: z.ZodString;
16062
15874
  OwnerUser: z.ZodNullable<z.ZodString>;
16063
15875
  NotifyUser: z.ZodNullable<z.ZodString>;
@@ -16093,6 +15905,7 @@ export declare const MJScheduledJobSchema: z.ZodObject<{
16093
15905
  ConcurrencyMode?: "Queue" | "Concurrent" | "Skip";
16094
15906
  RunImmediatelyIfNeverRun?: boolean;
16095
15907
  MaxRuntimeMinutes?: number;
15908
+ MissedRunPolicy?: "Skip" | "RunAll" | "RunOnce";
16096
15909
  JobType?: string;
16097
15910
  NotifyUser?: string;
16098
15911
  }, {
@@ -16127,6 +15940,7 @@ export declare const MJScheduledJobSchema: z.ZodObject<{
16127
15940
  ConcurrencyMode?: "Queue" | "Concurrent" | "Skip";
16128
15941
  RunImmediatelyIfNeverRun?: boolean;
16129
15942
  MaxRuntimeMinutes?: number;
15943
+ MissedRunPolicy?: "Skip" | "RunAll" | "RunOnce";
16130
15944
  JobType?: string;
16131
15945
  NotifyUser?: string;
16132
15946
  }>;
@@ -16425,9 +16239,9 @@ export declare const MJSearchProviderSchema: z.ZodObject<{
16425
16239
  DriverClass?: string;
16426
16240
  Priority?: number;
16427
16241
  DisplayName?: string;
16428
- Icon?: string;
16429
16242
  CredentialID?: string;
16430
16243
  Credential?: string;
16244
+ Icon?: string;
16431
16245
  SupportsPreview?: boolean;
16432
16246
  MaxResultsOverride?: number;
16433
16247
  ProviderConfig?: string;
@@ -16442,9 +16256,9 @@ export declare const MJSearchProviderSchema: z.ZodObject<{
16442
16256
  DriverClass?: string;
16443
16257
  Priority?: number;
16444
16258
  DisplayName?: string;
16445
- Icon?: string;
16446
16259
  CredentialID?: string;
16447
16260
  Credential?: string;
16261
+ Icon?: string;
16448
16262
  SupportsPreview?: boolean;
16449
16263
  MaxResultsOverride?: number;
16450
16264
  ProviderConfig?: string;
@@ -16776,10 +16590,10 @@ export declare const MJSignatureAccountSchema: z.ZodObject<{
16776
16590
  IsActive?: boolean;
16777
16591
  IsDefault?: boolean;
16778
16592
  Configuration?: string;
16779
- CompanyID?: string;
16780
- Company?: string;
16781
16593
  CredentialID?: string;
16782
16594
  Credential?: string;
16595
+ CompanyID?: string;
16596
+ Company?: string;
16783
16597
  SignatureProviderID?: string;
16784
16598
  DefaultFromName?: string;
16785
16599
  DefaultFromEmail?: string;
@@ -16792,10 +16606,10 @@ export declare const MJSignatureAccountSchema: z.ZodObject<{
16792
16606
  IsActive?: boolean;
16793
16607
  IsDefault?: boolean;
16794
16608
  Configuration?: string;
16795
- CompanyID?: string;
16796
- Company?: string;
16797
16609
  CredentialID?: string;
16798
16610
  Credential?: string;
16611
+ CompanyID?: string;
16612
+ Company?: string;
16799
16613
  SignatureProviderID?: string;
16800
16614
  DefaultFromName?: string;
16801
16615
  DefaultFromEmail?: string;
@@ -17472,12 +17286,14 @@ export declare const MJTaskDependencySchema: z.ZodObject<{
17472
17286
  DependencyType: z.ZodUnion<[z.ZodLiteral<"Corequisite">, z.ZodLiteral<"Optional">, z.ZodLiteral<"Prerequisite">]>;
17473
17287
  __mj_CreatedAt: z.ZodDate;
17474
17288
  __mj_UpdatedAt: z.ZodDate;
17289
+ Condition: z.ZodNullable<z.ZodString>;
17475
17290
  Task: z.ZodString;
17476
17291
  DependsOnTask: z.ZodString;
17477
17292
  }, "strip", z.ZodTypeAny, {
17478
17293
  ID?: string;
17479
17294
  __mj_CreatedAt?: Date;
17480
17295
  __mj_UpdatedAt?: Date;
17296
+ Condition?: string;
17481
17297
  TaskID?: string;
17482
17298
  DependsOnTaskID?: string;
17483
17299
  DependencyType?: "Corequisite" | "Optional" | "Prerequisite";
@@ -17487,6 +17303,7 @@ export declare const MJTaskDependencySchema: z.ZodObject<{
17487
17303
  ID?: string;
17488
17304
  __mj_CreatedAt?: Date;
17489
17305
  __mj_UpdatedAt?: Date;
17306
+ Condition?: string;
17490
17307
  TaskID?: string;
17491
17308
  DependsOnTaskID?: string;
17492
17309
  DependencyType?: "Corequisite" | "Optional" | "Prerequisite";
@@ -17538,6 +17355,12 @@ export declare const MJTaskSchema: z.ZodObject<{
17538
17355
  CompletedAt: z.ZodNullable<z.ZodDate>;
17539
17356
  __mj_CreatedAt: z.ZodDate;
17540
17357
  __mj_UpdatedAt: z.ZodDate;
17358
+ InputPayload: z.ZodNullable<z.ZodString>;
17359
+ OutputPayload: z.ZodNullable<z.ZodString>;
17360
+ ErrorMessage: z.ZodNullable<z.ZodString>;
17361
+ AgentRunID: z.ZodNullable<z.ZodString>;
17362
+ ClaimedBy: z.ZodNullable<z.ZodString>;
17363
+ ClaimExpiresAt: z.ZodNullable<z.ZodDate>;
17541
17364
  Parent: z.ZodNullable<z.ZodString>;
17542
17365
  Type: z.ZodString;
17543
17366
  Environment: z.ZodString;
@@ -17545,6 +17368,7 @@ export declare const MJTaskSchema: z.ZodObject<{
17545
17368
  ConversationDetail: z.ZodNullable<z.ZodString>;
17546
17369
  User: z.ZodNullable<z.ZodString>;
17547
17370
  Agent: z.ZodNullable<z.ZodString>;
17371
+ AgentRun: z.ZodNullable<z.ZodString>;
17548
17372
  RootParentID: z.ZodNullable<z.ZodString>;
17549
17373
  }, "strip", z.ZodTypeAny, {
17550
17374
  ID?: string;
@@ -17562,7 +17386,10 @@ export declare const MJTaskSchema: z.ZodObject<{
17562
17386
  Type?: string;
17563
17387
  AgentID?: string;
17564
17388
  Agent?: string;
17389
+ AgentRunID?: string;
17390
+ AgentRun?: string;
17565
17391
  CompletedAt?: Date;
17392
+ ErrorMessage?: string;
17566
17393
  ConversationDetailID?: string;
17567
17394
  ConversationDetail?: string;
17568
17395
  TypeID?: string;
@@ -17572,6 +17399,10 @@ export declare const MJTaskSchema: z.ZodObject<{
17572
17399
  Project?: string;
17573
17400
  PercentComplete?: number;
17574
17401
  DueAt?: Date;
17402
+ InputPayload?: string;
17403
+ OutputPayload?: string;
17404
+ ClaimedBy?: string;
17405
+ ClaimExpiresAt?: Date;
17575
17406
  }, {
17576
17407
  ID?: string;
17577
17408
  User?: string;
@@ -17588,7 +17419,10 @@ export declare const MJTaskSchema: z.ZodObject<{
17588
17419
  Type?: string;
17589
17420
  AgentID?: string;
17590
17421
  Agent?: string;
17422
+ AgentRunID?: string;
17423
+ AgentRun?: string;
17591
17424
  CompletedAt?: Date;
17425
+ ErrorMessage?: string;
17592
17426
  ConversationDetailID?: string;
17593
17427
  ConversationDetail?: string;
17594
17428
  TypeID?: string;
@@ -17598,6 +17432,10 @@ export declare const MJTaskSchema: z.ZodObject<{
17598
17432
  Project?: string;
17599
17433
  PercentComplete?: number;
17600
17434
  DueAt?: Date;
17435
+ InputPayload?: string;
17436
+ OutputPayload?: string;
17437
+ ClaimedBy?: string;
17438
+ ClaimExpiresAt?: Date;
17601
17439
  }>;
17602
17440
  export type MJTaskEntityType = z.infer<typeof MJTaskSchema>;
17603
17441
  /**
@@ -19053,6 +18891,7 @@ export declare const MJUserViewRunDetailSchema: z.ZodObject<{
19053
18891
  RecordID: z.ZodString;
19054
18892
  __mj_CreatedAt: z.ZodDate;
19055
18893
  __mj_UpdatedAt: z.ZodDate;
18894
+ UserViewRun: z.ZodString;
19056
18895
  UserViewID: z.ZodString;
19057
18896
  EntityID: z.ZodString;
19058
18897
  }, "strip", z.ZodTypeAny, {
@@ -19062,6 +18901,7 @@ export declare const MJUserViewRunDetailSchema: z.ZodObject<{
19062
18901
  __mj_CreatedAt?: Date;
19063
18902
  __mj_UpdatedAt?: Date;
19064
18903
  UserViewRunID?: string;
18904
+ UserViewRun?: string;
19065
18905
  UserViewID?: string;
19066
18906
  }, {
19067
18907
  ID?: string;
@@ -19070,6 +18910,7 @@ export declare const MJUserViewRunDetailSchema: z.ZodObject<{
19070
18910
  __mj_CreatedAt?: Date;
19071
18911
  __mj_UpdatedAt?: Date;
19072
18912
  UserViewRunID?: string;
18913
+ UserViewRun?: string;
19073
18914
  UserViewID?: string;
19074
18915
  }>;
19075
18916
  export type MJUserViewRunDetailEntityType = z.infer<typeof MJUserViewRunDetailSchema>;
@@ -19606,120 +19447,6 @@ export declare const MJViewTypeSchema: z.ZodObject<{
19606
19447
  SupportsConfiguration?: boolean;
19607
19448
  }>;
19608
19449
  export type MJViewTypeEntityType = z.infer<typeof MJViewTypeSchema>;
19609
- /**
19610
- * zod schema definition for the entity MJ: Workflow Engines
19611
- */
19612
- export declare const MJWorkflowEngineSchema: z.ZodObject<{
19613
- ID: z.ZodString;
19614
- Name: z.ZodString;
19615
- Description: z.ZodNullable<z.ZodString>;
19616
- DriverPath: z.ZodString;
19617
- DriverClass: z.ZodString;
19618
- __mj_CreatedAt: z.ZodDate;
19619
- __mj_UpdatedAt: z.ZodDate;
19620
- }, "strip", z.ZodTypeAny, {
19621
- ID?: string;
19622
- __mj_CreatedAt?: Date;
19623
- __mj_UpdatedAt?: Date;
19624
- Name?: string;
19625
- Description?: string;
19626
- DriverClass?: string;
19627
- DriverPath?: string;
19628
- }, {
19629
- ID?: string;
19630
- __mj_CreatedAt?: Date;
19631
- __mj_UpdatedAt?: Date;
19632
- Name?: string;
19633
- Description?: string;
19634
- DriverClass?: string;
19635
- DriverPath?: string;
19636
- }>;
19637
- export type MJWorkflowEngineEntityType = z.infer<typeof MJWorkflowEngineSchema>;
19638
- /**
19639
- * zod schema definition for the entity MJ: Workflow Runs
19640
- */
19641
- export declare const MJWorkflowRunSchema: z.ZodObject<{
19642
- ID: z.ZodString;
19643
- WorkflowID: z.ZodString;
19644
- ExternalSystemRecordID: z.ZodString;
19645
- StartedAt: z.ZodDate;
19646
- EndedAt: z.ZodNullable<z.ZodDate>;
19647
- Status: z.ZodUnion<[z.ZodLiteral<"Complete">, z.ZodLiteral<"Failed">, z.ZodLiteral<"In Progress">, z.ZodLiteral<"Pending">]>;
19648
- Results: z.ZodNullable<z.ZodString>;
19649
- __mj_CreatedAt: z.ZodDate;
19650
- __mj_UpdatedAt: z.ZodDate;
19651
- Workflow: z.ZodString;
19652
- WorkflowEngineName: z.ZodString;
19653
- }, "strip", z.ZodTypeAny, {
19654
- ID?: string;
19655
- __mj_CreatedAt?: Date;
19656
- __mj_UpdatedAt?: Date;
19657
- Status?: "Pending" | "Complete" | "Failed" | "In Progress";
19658
- StartedAt?: Date;
19659
- EndedAt?: Date;
19660
- ExternalSystemRecordID?: string;
19661
- WorkflowID?: string;
19662
- Results?: string;
19663
- Workflow?: string;
19664
- WorkflowEngineName?: string;
19665
- }, {
19666
- ID?: string;
19667
- __mj_CreatedAt?: Date;
19668
- __mj_UpdatedAt?: Date;
19669
- Status?: "Pending" | "Complete" | "Failed" | "In Progress";
19670
- StartedAt?: Date;
19671
- EndedAt?: Date;
19672
- ExternalSystemRecordID?: string;
19673
- WorkflowID?: string;
19674
- Results?: string;
19675
- Workflow?: string;
19676
- WorkflowEngineName?: string;
19677
- }>;
19678
- export type MJWorkflowRunEntityType = z.infer<typeof MJWorkflowRunSchema>;
19679
- /**
19680
- * zod schema definition for the entity MJ: Workflows
19681
- */
19682
- export declare const MJWorkflowSchema: z.ZodObject<{
19683
- ID: z.ZodString;
19684
- Name: z.ZodString;
19685
- Description: z.ZodNullable<z.ZodString>;
19686
- WorkflowEngineID: z.ZodString;
19687
- ExternalSystemRecordID: z.ZodString;
19688
- AutoRunEnabled: z.ZodBoolean;
19689
- AutoRunIntervalUnits: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Days">, z.ZodLiteral<"Hours">, z.ZodLiteral<"Minutes">, z.ZodLiteral<"Months">, z.ZodLiteral<"Weeks">, z.ZodLiteral<"Years">]>>;
19690
- AutoRunInterval: z.ZodNullable<z.ZodNumber>;
19691
- SubclassName: z.ZodNullable<z.ZodString>;
19692
- __mj_CreatedAt: z.ZodDate;
19693
- __mj_UpdatedAt: z.ZodDate;
19694
- AutoRunIntervalMinutes: z.ZodNullable<z.ZodNumber>;
19695
- }, "strip", z.ZodTypeAny, {
19696
- ID?: string;
19697
- __mj_CreatedAt?: Date;
19698
- __mj_UpdatedAt?: Date;
19699
- Name?: string;
19700
- Description?: string;
19701
- ExternalSystemRecordID?: string;
19702
- WorkflowEngineID?: string;
19703
- AutoRunEnabled?: boolean;
19704
- AutoRunIntervalUnits?: "Days" | "Hours" | "Minutes" | "Months" | "Weeks" | "Years";
19705
- AutoRunInterval?: number;
19706
- SubclassName?: string;
19707
- AutoRunIntervalMinutes?: number;
19708
- }, {
19709
- ID?: string;
19710
- __mj_CreatedAt?: Date;
19711
- __mj_UpdatedAt?: Date;
19712
- Name?: string;
19713
- Description?: string;
19714
- ExternalSystemRecordID?: string;
19715
- WorkflowEngineID?: string;
19716
- AutoRunEnabled?: boolean;
19717
- AutoRunIntervalUnits?: "Days" | "Hours" | "Minutes" | "Months" | "Weeks" | "Years";
19718
- AutoRunInterval?: number;
19719
- SubclassName?: string;
19720
- AutoRunIntervalMinutes?: number;
19721
- }>;
19722
- export type MJWorkflowEntityType = z.infer<typeof MJWorkflowSchema>;
19723
19450
  /**
19724
19451
  * zod schema definition for the entity MJ: Workspace Items
19725
19452
  */
@@ -20345,7 +20072,7 @@ export declare class MJActionExecutionLogEntity extends BaseEntity<MJActionExecu
20345
20072
  * * Field Name: Params
20346
20073
  * * Display Name: Params
20347
20074
  * * SQL Data Type: nvarchar(MAX)
20348
- * * Description: JSON-formatted input parameters passed to the action during execution, storing the exact values used for this specific run.
20075
+ * * Description: JSON-formatted input parameters AS THE ACTION WAS CALLED, captured once when execution starts and never overwritten. Custom and Generated actions mutate their parameter array in place, so this is the only durable record of the values actually passed in; the final state lives in ResultParams. Parameter values may be redacted per ActionParam.LogValue / EntityActionParam.LogValue, and whole-record value types are never written - see the parameter's own documentation.
20349
20076
  */
20350
20077
  get Params(): string | null;
20351
20078
  set Params(value: string | null);
@@ -20391,11 +20118,54 @@ export declare class MJActionExecutionLogEntity extends BaseEntity<MJActionExecu
20391
20118
  * * Field Name: Message
20392
20119
  * * Display Name: Message
20393
20120
  * * SQL Data Type: nvarchar(MAX)
20394
- * * Description: JSON-formatted output data or response from the action execution
20121
+ * * Description: Human-readable summary message returned by the action - the reason for a refusal, or a short description of what was done. Not the action's output data: parameter values live in Params and ResultParams, and the outcome code in ResultCode.
20395
20122
  */
20396
20123
  get Message(): string | null;
20397
20124
  set Message(value: string | null);
20398
20125
  /**
20126
+ * * Field Name: EntityActionID
20127
+ * * Display Name: Entity Action ID
20128
+ * * SQL Data Type: uniqueidentifier
20129
+ * * Related Entity/Foreign Key: MJ: Entity Actions (vwEntityActions.ID)
20130
+ * * Description: Optional. The Entity Action binding that caused this run. NULL when the action was invoked directly - from a resolver, a script, an agent step or a scheduled action.
20131
+ */
20132
+ get EntityActionID(): string | null;
20133
+ set EntityActionID(value: string | null);
20134
+ /**
20135
+ * * Field Name: EntityActionInvocationTypeID
20136
+ * * Display Name: Entity Action Invocation Type ID
20137
+ * * SQL Data Type: uniqueidentifier
20138
+ * * Related Entity/Foreign Key: MJ: Entity Action Invocation Types (vwEntityActionInvocationTypes.ID)
20139
+ * * Description: Optional. Which lifecycle event fired the binding - AfterUpdate, Validate, List and so on. Recorded separately from EntityActionID because one binding may be attached to several invocation types, and telling a Validate refusal apart from an AfterUpdate side effect is the first question anyone asks of this log.
20140
+ */
20141
+ get EntityActionInvocationTypeID(): string | null;
20142
+ set EntityActionInvocationTypeID(value: string | null);
20143
+ /**
20144
+ * * Field Name: TargetEntityID
20145
+ * * Display Name: Target Entity ID
20146
+ * * SQL Data Type: uniqueidentifier
20147
+ * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
20148
+ * * Description: Optional. The entity of the record this run operated on. Deliberately denormalized rather than joined through EntityActionID: it survives the binding being deleted or retargeted, and it lets the log be queried by record with no join. Kept generic because every invoker has a subject - not only Entity Actions.
20149
+ */
20150
+ get TargetEntityID(): string | null;
20151
+ set TargetEntityID(value: string | null);
20152
+ /**
20153
+ * * Field Name: TargetRecordID
20154
+ * * Display Name: Target Record ID
20155
+ * * SQL Data Type: nvarchar(450)
20156
+ * * Description: Optional. The primary key of the record this run operated on, as text, paired with TargetEntityID. For multi-record invocation types (List, View) one log row is written per record, so this is always a single record.
20157
+ */
20158
+ get TargetRecordID(): string | null;
20159
+ set TargetRecordID(value: string | null);
20160
+ /**
20161
+ * * Field Name: ResultParams
20162
+ * * Display Name: Result Params
20163
+ * * SQL Data Type: nvarchar(MAX)
20164
+ * * Description: JSON-formatted FINAL parameter set captured when the action finished - the inputs as the action left them, plus any output parameters it produced. Written on FAILURE exactly as on success, under the same redaction rules: a failed run's partially-mutated inputs are usually the most diagnostic thing available, and an audit trail that records only successes is not an audit trail. Distinct from Params, which holds the values the action was called with and is never overwritten. NULL means one thing only - the run never finished (process died, host killed) - so it is a signal rather than an absence, and must not be backfilled.
20165
+ */
20166
+ get ResultParams(): string | null;
20167
+ set ResultParams(value: string | null);
20168
+ /**
20399
20169
  * * Field Name: Action
20400
20170
  * * Display Name: Action
20401
20171
  * * SQL Data Type: nvarchar(425)
@@ -20407,6 +20177,24 @@ export declare class MJActionExecutionLogEntity extends BaseEntity<MJActionExecu
20407
20177
  * * SQL Data Type: nvarchar(100)
20408
20178
  */
20409
20179
  get User(): string;
20180
+ /**
20181
+ * * Field Name: EntityAction
20182
+ * * Display Name: Entity Action
20183
+ * * SQL Data Type: nvarchar(425)
20184
+ */
20185
+ get EntityAction(): string | null;
20186
+ /**
20187
+ * * Field Name: EntityActionInvocationType
20188
+ * * Display Name: Entity Action Invocation Type
20189
+ * * SQL Data Type: nvarchar(255)
20190
+ */
20191
+ get EntityActionInvocationType(): string | null;
20192
+ /**
20193
+ * * Field Name: TargetEntity
20194
+ * * Display Name: Target Entity
20195
+ * * SQL Data Type: nvarchar(255)
20196
+ */
20197
+ get TargetEntity(): string | null;
20410
20198
  }
20411
20199
  /**
20412
20200
  * MJ: Action Filters - strongly typed entity sub-class
@@ -20710,6 +20498,15 @@ export declare class MJActionParamEntity extends BaseEntity<MJActionParamEntityT
20710
20498
  get MediaModality(): 'Audio' | 'Image' | 'Video' | null;
20711
20499
  set MediaModality(value: 'Audio' | 'Image' | 'Video' | null);
20712
20500
  /**
20501
+ * * Field Name: LogValue
20502
+ * * Display Name: Log Value
20503
+ * * SQL Data Type: bit
20504
+ * * Default Value: 1
20505
+ * * Description: Whether this parameter's VALUE may be written to ActionExecutionLog.Params. Default 1. Set to 0 for parameters that carry records, credentials or personal data - for example the Data payload of Execute Agent. Independent of the hard rule that Entity Action params of ValueType 'Entity Object' or 'Entity Object Data' are never logged regardless of this flag. When logging is suppressed the log records the parameter name, its type and a redaction marker, never the value.
20506
+ */
20507
+ get LogValue(): boolean;
20508
+ set LogValue(value: boolean);
20509
+ /**
20713
20510
  * * Field Name: Action
20714
20511
  * * Display Name: Action
20715
20512
  * * SQL Data Type: nvarchar(425)
@@ -20944,6 +20741,60 @@ export interface MJActionEntity_IRuntimeLibraryReference {
20944
20741
  * @public
20945
20742
  */
20946
20743
  export declare class MJActionEntity extends BaseEntity<MJActionEntityType> {
20744
+ /**
20745
+ * Related records: MJ: Action Params
20746
+ *
20747
+ * Loads, validates and persists as one unit with this MJ: Actions record — see
20748
+ * guides/TRANSACTIONS_AND_BATCHING_GUIDE.md. Declared by the RelatedRecordCollection metadata on
20749
+ * the 'MJ: Actions → MJ: Action Params' relationship; edit that row, not this file.
20750
+ * **Source: cache.** Records come from whichever loaded BaseEngine already caches
20751
+ * 'MJ: Action Params', discovered via BaseEngineRegistry — zero queries. Falls back to a
20752
+ * database load when no loaded engine offers it.
20753
+ * **These are the engine's own entity instances, not copies.** Do not modify them: you would be
20754
+ * mutating shared cached state that other holders can see.
20755
+ * **Read-only.** Add/Create/Remove/Clear throw, the collection contributes nothing to a save,
20756
+ * and it never reports Dirty.
20757
+ * **Lazy.** Reading Items POPULATES the collection as a side effect and flips IsLoaded. If no
20758
+ * loaded engine caches 'MJ: Action Params', reading it THROWS rather than returning an
20759
+ * empty array — a lazy declaration asserts that such an engine exists.
20760
+ */
20761
+ readonly Params: import("@memberjunction/core").RelatedRecordCollection<MJActionParamEntity>;
20762
+ /**
20763
+ * Related records: MJ: Action Libraries
20764
+ *
20765
+ * Loads, validates and persists as one unit with this MJ: Actions record — see
20766
+ * guides/TRANSACTIONS_AND_BATCHING_GUIDE.md. Declared by the RelatedRecordCollection metadata on
20767
+ * the 'MJ: Actions → MJ: Action Libraries' relationship; edit that row, not this file.
20768
+ * **Source: cache.** Records come from whichever loaded BaseEngine already caches
20769
+ * 'MJ: Action Libraries', discovered via BaseEngineRegistry — zero queries. Falls back to a
20770
+ * database load when no loaded engine offers it.
20771
+ * **These are the engine's own entity instances, not copies.** Do not modify them: you would be
20772
+ * mutating shared cached state that other holders can see.
20773
+ * **Read-only.** Add/Create/Remove/Clear throw, the collection contributes nothing to a save,
20774
+ * and it never reports Dirty.
20775
+ * **Lazy.** Reading Items POPULATES the collection as a side effect and flips IsLoaded. If no
20776
+ * loaded engine caches 'MJ: Action Libraries', reading it THROWS rather than returning an
20777
+ * empty array — a lazy declaration asserts that such an engine exists.
20778
+ */
20779
+ readonly Libraries: import("@memberjunction/core").RelatedRecordCollection<MJActionLibraryEntity>;
20780
+ /**
20781
+ * Related records: MJ: Action Result Codes
20782
+ *
20783
+ * Loads, validates and persists as one unit with this MJ: Actions record — see
20784
+ * guides/TRANSACTIONS_AND_BATCHING_GUIDE.md. Declared by the RelatedRecordCollection metadata on
20785
+ * the 'MJ: Actions → MJ: Action Result Codes' relationship; edit that row, not this file.
20786
+ * **Source: cache.** Records come from whichever loaded BaseEngine already caches
20787
+ * 'MJ: Action Result Codes', discovered via BaseEngineRegistry — zero queries. Falls back to a
20788
+ * database load when no loaded engine offers it.
20789
+ * **These are the engine's own entity instances, not copies.** Do not modify them: you would be
20790
+ * mutating shared cached state that other holders can see.
20791
+ * **Read-only.** Add/Create/Remove/Clear throw, the collection contributes nothing to a save,
20792
+ * and it never reports Dirty.
20793
+ * **Lazy.** Reading Items POPULATES the collection as a side effect and flips IsLoaded. If no
20794
+ * loaded engine caches 'MJ: Action Result Codes', reading it THROWS rather than returning an
20795
+ * empty array — a lazy declaration asserts that such an engine exists.
20796
+ */
20797
+ readonly ResultCodes: import("@memberjunction/core").RelatedRecordCollection<MJActionResultCodeEntity>;
20947
20798
  /**
20948
20799
  * Loads the MJ: Actions record from the database
20949
20800
  * @param ID: string - primary key value to load the MJ: Actions record.
@@ -22348,6 +22199,124 @@ export declare class MJAIAgentConfigurationEntity extends BaseEntity<MJAIAgentCo
22348
22199
  */
22349
22200
  get AIConfiguration(): string | null;
22350
22201
  }
22202
+ /**
22203
+ * MJ: AI Agent Credentials - strongly typed entity sub-class
22204
+ * * Schema: __mj
22205
+ * * Base Table: AIAgentCredential
22206
+ * * Base View: vwAIAgentCredentials
22207
+ * * @description Credentials an agent carries into its harness sandbox, injected as environment variables at session creation. Custody of the secret itself stays in Credential/CredentialEngine - this table records only the GRANT EDGE, in the same reviewable style as AIAgentAction. Distinct from AICredentialBinding, which is inference-selection plumbing for AIPromptRunner failover when MJ itself executes a prompt.
22208
+ * * Primary Key: ID
22209
+ * @extends {BaseEntity}
22210
+ * @class
22211
+ * @public
22212
+ */
22213
+ export declare class MJAIAgentCredentialEntity extends BaseEntity<MJAIAgentCredentialEntityType> {
22214
+ /**
22215
+ * Loads the MJ: AI Agent Credentials record from the database
22216
+ * @param ID: string - primary key value to load the MJ: AI Agent Credentials record.
22217
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
22218
+ * @returns {Promise<boolean>} - true if successful, false otherwise
22219
+ * @public
22220
+ * @async
22221
+ * @memberof MJAIAgentCredentialEntity
22222
+ * @method
22223
+ * @override
22224
+ */
22225
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
22226
+ /**
22227
+ * * Field Name: ID
22228
+ * * Display Name: ID
22229
+ * * SQL Data Type: uniqueidentifier
22230
+ * * Default Value: newsequentialid()
22231
+ */
22232
+ get ID(): string;
22233
+ set ID(value: string);
22234
+ /**
22235
+ * * Field Name: AgentID
22236
+ * * Display Name: Agent
22237
+ * * SQL Data Type: uniqueidentifier
22238
+ * * Related Entity/Foreign Key: MJ: AI Agents (vwAIAgents.ID)
22239
+ */
22240
+ get AgentID(): string;
22241
+ set AgentID(value: string);
22242
+ /**
22243
+ * * Field Name: CredentialID
22244
+ * * Display Name: Credential
22245
+ * * SQL Data Type: uniqueidentifier
22246
+ * * Related Entity/Foreign Key: MJ: Credentials (vwCredentials.ID)
22247
+ */
22248
+ get CredentialID(): string;
22249
+ set CredentialID(value: string);
22250
+ /**
22251
+ * * Field Name: Purpose
22252
+ * * Display Name: Purpose
22253
+ * * SQL Data Type: nvarchar(50)
22254
+ * * Value List Type: List
22255
+ * * Possible Values
22256
+ * * HarnessLLM
22257
+ * * Integration
22258
+ * * Description: What this credential is for. HarnessLLM is the API key the harness uses to reach its own model vendor; when absent, the runtime falls back to vendor-scoped AICredentialBinding rows for AIAgentHarness.AIVendorID. Integration is any other granted secret the agent needs inside the sandbox, such as a source-control or ticketing token.
22259
+ */
22260
+ get Purpose(): 'HarnessLLM' | 'Integration';
22261
+ set Purpose(value: 'HarnessLLM' | 'Integration');
22262
+ /**
22263
+ * * Field Name: EnvVariableName
22264
+ * * Display Name: Environment Variable Name
22265
+ * * SQL Data Type: nvarchar(100)
22266
+ * * Description: Environment variable the adapter sets inside the sandbox for this credential, e.g. ANTHROPIC_API_KEY or GITHUB_TOKEN. NULL lets the adapter choose, which is the normal case for HarnessLLM because the adapter knows its own vendor's variable name.
22267
+ */
22268
+ get EnvVariableName(): string | null;
22269
+ set EnvVariableName(value: string | null);
22270
+ /**
22271
+ * * Field Name: Priority
22272
+ * * Display Name: Priority
22273
+ * * SQL Data Type: int
22274
+ * * Default Value: 0
22275
+ * * Description: Failover ordering within a Purpose - lower runs first. Lets an agent carry a primary and a standby key for the same purpose without a schema change.
22276
+ */
22277
+ get Priority(): number;
22278
+ set Priority(value: number);
22279
+ /**
22280
+ * * Field Name: Status
22281
+ * * Display Name: Status
22282
+ * * SQL Data Type: nvarchar(20)
22283
+ * * Default Value: Active
22284
+ * * Value List Type: List
22285
+ * * Possible Values
22286
+ * * Active
22287
+ * * Pending
22288
+ * * Revoked
22289
+ * * Description: Whether this grant is live. Revoked withdraws the credential from future sessions while preserving the record that it was once granted, which is the point of auditing a credential grant at all. Pending stages a grant that is not yet in force.
22290
+ */
22291
+ get Status(): 'Active' | 'Pending' | 'Revoked';
22292
+ set Status(value: 'Active' | 'Pending' | 'Revoked');
22293
+ /**
22294
+ * * Field Name: __mj_CreatedAt
22295
+ * * Display Name: Created At
22296
+ * * SQL Data Type: datetimeoffset
22297
+ * * Default Value: getutcdate()
22298
+ */
22299
+ get __mj_CreatedAt(): Date;
22300
+ /**
22301
+ * * Field Name: __mj_UpdatedAt
22302
+ * * Display Name: Updated At
22303
+ * * SQL Data Type: datetimeoffset
22304
+ * * Default Value: getutcdate()
22305
+ */
22306
+ get __mj_UpdatedAt(): Date;
22307
+ /**
22308
+ * * Field Name: Agent
22309
+ * * Display Name: Agent Name
22310
+ * * SQL Data Type: nvarchar(255)
22311
+ */
22312
+ get Agent(): string | null;
22313
+ /**
22314
+ * * Field Name: Credential
22315
+ * * Display Name: Credential Name
22316
+ * * SQL Data Type: nvarchar(200)
22317
+ */
22318
+ get Credential(): string;
22319
+ }
22351
22320
  /**
22352
22321
  * MJ: AI Agent Data Sources - strongly typed entity sub-class
22353
22322
  * * Schema: __mj
@@ -22908,6 +22877,246 @@ export declare class MJAIAgentExampleEntity extends BaseEntity<MJAIAgentExampleE
22908
22877
  */
22909
22878
  get PrimaryScopeEntity(): string | null;
22910
22879
  }
22880
+ /**
22881
+ * Strongly-typed shape of `AIAgentHarness.CapabilitySettings` (the
22882
+ * `MJ: AI Agent Harnesses` entity), bound to the column via JSONType metadata so
22883
+ * CodeGen emits a typed accessor.
22884
+ *
22885
+ * An *agent harness* is an external agent runtime with its own reasoning loop and tool sandbox —
22886
+ * Claude Code (Agent SDK or headless CLI), Codex CLI, OpenCode, Pi, Cline, Gemini CLI. MJ runs one
22887
+ * as the reasoning substrate for an MJ agent while keeping identity, permissions, governed data
22888
+ * access, payload contracts, HITL and cost control on the MJ side. These flags declare what each
22889
+ * harness's adapter can actually do, so the runtime knows what it must **emulate** rather than
22890
+ * assume.
22891
+ *
22892
+ * That emulation is the reason these are metadata and not a code constant. Harnesses differ in
22893
+ * ways that change token cost and audit granularity, not merely convenience: a harness without
22894
+ * {@link MJAIAgentHarnessEntity_IHarnessCapabilitySettings.SessionResume} needs prior context replayed into a fresh
22895
+ * invocation on every turn, which the runtime has to budget for against `MaxTokensPerRun`.
22896
+ *
22897
+ * All properties are optional — an omitted flag means the capability is **not** supported, which
22898
+ * is the safe default: the runtime falls back to emulation or refuses the feature rather than
22899
+ * calling into an adapter that cannot honour it.
22900
+ *
22901
+ * Holding these as JSON (rather than dedicated BIT columns) keeps the registry table simple and
22902
+ * lets a new harness capability be added without a schema migration — just extend this interface
22903
+ * and re-push. Mirrors the `IBridgeProviderFeatures` / `IRemoteBrowserProviderFeatures` model.
22904
+ *
22905
+ * See `/plans/external-agent-harness.md`.
22906
+ */
22907
+ export interface MJAIAgentHarnessEntity_IHarnessCapabilitySettings {
22908
+ /**
22909
+ * The harness can resume a prior session by ID, so turn N+1 continues the same reasoning
22910
+ * context rather than starting cold. When false the adapter must emulate continuity by
22911
+ * replaying accumulated context into a fresh invocation each turn — correct, but the token
22912
+ * cost grows with turn count and must be budgeted against the run's guardrails.
22913
+ */
22914
+ SessionResume?: boolean;
22915
+ /**
22916
+ * The harness can be cancelled mid-turn and will stop promptly, so a cancellation token
22917
+ * reaching the adapter actually interrupts in-sandbox work instead of only being honoured at
22918
+ * the next turn boundary.
22919
+ */
22920
+ MidTurnCancellation?: boolean;
22921
+ /**
22922
+ * The harness has a native structured-output mode (e.g. Claude Code's `--output-format`) that
22923
+ * can be constrained to emit the Loop next-step JSON envelope at turn end. Without it the
22924
+ * runtime leans on `BaseAgent`'s malformed-response retry machinery to coax the envelope out,
22925
+ * which costs extra turns on a harness prone to conversational drift.
22926
+ */
22927
+ StructuredOutput?: boolean;
22928
+ /**
22929
+ * The harness reports token usage and (where available) cost per turn. Required for the
22930
+ * per-turn `AIPromptRun` accounting that feeds `MaxCostPerRun` / `MaxTokensPerRun`; without
22931
+ * it a run's spend is invisible to MJ's guardrails and only wall-clock and iteration limits
22932
+ * can interrupt it.
22933
+ */
22934
+ UsageReporting?: boolean;
22935
+ /**
22936
+ * The adapter translates MJ's `HarnessPermissionPolicy` into flags the harness actually honours,
22937
+ * so a configured posture and allow/deny list take effect. When false the policy is **inert** —
22938
+ * the harness runs on its own defaults regardless of what the agent's metadata says.
22939
+ *
22940
+ * This is deliberately separate from {@link PermissionHooks}: a harness can enforce a *static*
22941
+ * policy at launch (Claude Code's `--allowedTools`, Pi's `--tools`) while having no *interactive*
22942
+ * hook to pause on. Conflating the two is what let four adapters silently ignore a `strict`
22943
+ * posture while the runtime warned about the wrong thing.
22944
+ *
22945
+ * The runtime warns when a policy is configured and this is false, because an unenforced policy
22946
+ * is worse than no policy: the operator believes something is gated.
22947
+ */
22948
+ PermissionPolicy?: boolean;
22949
+ /**
22950
+ * The harness exposes permission hooks the adapter can intercept, so a mutating in-sandbox
22951
+ * operation can be paused and surfaced as an `MJ: AI Agent Requests` HITL prompt. This is about
22952
+ * *interactive* approval mid-turn; see {@link PermissionPolicy} for static policy enforcement.
22953
+ */
22954
+ PermissionHooks?: boolean;
22955
+ /**
22956
+ * The harness can be pointed at an MCP server, enabling the read-only intra-turn loopback into
22957
+ * MJ data (entity reads, RunView, queries) under a per-run scoped credential. When false the
22958
+ * agent can still act — all authority-transferring operations go through the turn protocol
22959
+ * regardless — but it cannot read MJ data mid-turn.
22960
+ */
22961
+ McpClient?: boolean;
22962
+ /**
22963
+ * The harness accepts a working directory it will confine file operations to, letting the
22964
+ * sandbox provider scope a workspace per run/agent/user. When false the provider must isolate
22965
+ * at the process or container boundary instead.
22966
+ */
22967
+ WorkspaceScoping?: boolean;
22968
+ /**
22969
+ * The harness accepts a model override at launch, so `AIAgentHarness.DefaultModel` and any
22970
+ * per-agent override are actually honoured. When false the harness runs on whatever model its
22971
+ * own configuration selects and MJ's model preference is advisory only.
22972
+ */
22973
+ ModelSelection?: boolean;
22974
+ }
22975
+ /**
22976
+ * MJ: AI Agent Harnesses - strongly typed entity sub-class
22977
+ * * Schema: __mj
22978
+ * * Base Table: AIAgentHarness
22979
+ * * Base View: vwAIAgentHarnesses
22980
+ * * @description Registry of external agent harnesses this installation can launch as the reasoning substrate for an MJ agent (Claude Code, Codex CLI, OpenCode, Pi, Cline). A row makes a harness AVAILABLE; an agent opts in by naming it in AIAgent.TypeConfiguration. Empty table = no agent can run on a harness, which is the pre-migration behaviour.
22981
+ * * Primary Key: ID
22982
+ * @extends {BaseEntity}
22983
+ * @class
22984
+ * @public
22985
+ */
22986
+ export declare class MJAIAgentHarnessEntity extends BaseEntity<MJAIAgentHarnessEntityType> {
22987
+ /**
22988
+ * Loads the MJ: AI Agent Harnesses record from the database
22989
+ * @param ID: string - primary key value to load the MJ: AI Agent Harnesses record.
22990
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
22991
+ * @returns {Promise<boolean>} - true if successful, false otherwise
22992
+ * @public
22993
+ * @async
22994
+ * @memberof MJAIAgentHarnessEntity
22995
+ * @method
22996
+ * @override
22997
+ */
22998
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
22999
+ /**
23000
+ * * Field Name: ID
23001
+ * * Display Name: ID
23002
+ * * SQL Data Type: uniqueidentifier
23003
+ * * Default Value: newsequentialid()
23004
+ */
23005
+ get ID(): string;
23006
+ set ID(value: string);
23007
+ /**
23008
+ * * Field Name: Name
23009
+ * * Display Name: Name
23010
+ * * SQL Data Type: nvarchar(100)
23011
+ * * Description: Unique name of the harness, e.g. Claude Code, Codex CLI, OpenCode, Pi, Cline. This is a LOOKUP KEY, not a label: an agent selects its harness by this name in AIAgent.TypeConfiguration ("harnessName"), so duplicates would make selection ambiguous at run time.
23012
+ */
23013
+ get Name(): string;
23014
+ set Name(value: string);
23015
+ /**
23016
+ * * Field Name: Description
23017
+ * * Display Name: Description
23018
+ * * SQL Data Type: nvarchar(MAX)
23019
+ * * Description: Human-readable description of the harness - what it is good at, what it requires to be installed, and any deployment caveats.
23020
+ */
23021
+ get Description(): string | null;
23022
+ set Description(value: string | null);
23023
+ /**
23024
+ * * Field Name: DriverClass
23025
+ * * Display Name: Driver Class
23026
+ * * SQL Data Type: nvarchar(255)
23027
+ * * Description: ClassFactory registration key for the BaseHarnessAdapter subclass that drives this harness (e.g. ClaudeCodeAdapter, CodexAdapter, StdioJsonAdapter). Resolved at run time, so a customer can register a proprietary adapter without forking core - the same extension mechanism AI model vendor drivers use.
23028
+ */
23029
+ get DriverClass(): string;
23030
+ set DriverClass(value: string);
23031
+ /**
23032
+ * * Field Name: ExecutablePath
23033
+ * * Display Name: Executable Path
23034
+ * * SQL Data Type: nvarchar(500)
23035
+ * * Description: Path to the harness CLI binary or entry point when the adapter shells out. NULL when the adapter embeds a vendor SDK and therefore launches nothing.
23036
+ */
23037
+ get ExecutablePath(): string | null;
23038
+ set ExecutablePath(value: string | null);
23039
+ /**
23040
+ * * Field Name: AIVendorID
23041
+ * * Display Name: AI Vendor ID
23042
+ * * SQL Data Type: uniqueidentifier
23043
+ * * Related Entity/Foreign Key: MJ: AI Vendors (vwAIVendors.ID)
23044
+ */
23045
+ get AIVendorID(): string | null;
23046
+ set AIVendorID(value: string | null);
23047
+ /**
23048
+ * * Field Name: AIModelID
23049
+ * * Display Name: AI Model ID
23050
+ * * SQL Data Type: uniqueidentifier
23051
+ * * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
23052
+ */
23053
+ get AIModelID(): string | null;
23054
+ set AIModelID(value: string | null);
23055
+ /**
23056
+ * * Field Name: DefaultModel
23057
+ * * Display Name: Default Model
23058
+ * * SQL Data Type: nvarchar(255)
23059
+ * * Description: Default model passed to the harness where the harness supports being told which model to use. NULL leaves the harness on its own default.
23060
+ */
23061
+ get DefaultModel(): string | null;
23062
+ set DefaultModel(value: string | null);
23063
+ /**
23064
+ * * Field Name: CapabilitySettings
23065
+ * * Display Name: Capability Settings
23066
+ * * SQL Data Type: nvarchar(MAX)
23067
+ * * JSON Type: MJAIAgentHarnessEntity_IHarnessCapabilitySettings
23068
+ * * Description: Strongly-typed JSON of what this harness can do (the IHarnessCapabilitySettings interface, bound via JSONType metadata): session continuity (SessionResume), turn-protocol support (StructuredOutput), in-sandbox permission interception (PermissionHooks), and whether the harness can act as an MCP client for the read-only loopback (McpClient). The runtime gates behaviour on these - when SessionResume is false the adapter must replay prior context into a fresh invocation each turn, which costs extra tokens and has to be budgeted for. Held as JSON so a new capability needs no schema migration, just an added property on the interface. NULL/omitted = not supported.
23069
+ */
23070
+ get CapabilitySettings(): string | null;
23071
+ set CapabilitySettings(value: string | null);
23072
+ private _CapabilitySettingsObject_cached;
23073
+ private _CapabilitySettingsObject_lastRaw;
23074
+ /**
23075
+ * Typed accessor for CapabilitySettings — returns parsed JSON as MJAIAgentHarnessEntity_IHarnessCapabilitySettings.
23076
+ * Uses lazy parsing with cache invalidation when the underlying raw value changes.
23077
+ */
23078
+ get CapabilitySettingsObject(): MJAIAgentHarnessEntity_IHarnessCapabilitySettings | null;
23079
+ set CapabilitySettingsObject(value: MJAIAgentHarnessEntity_IHarnessCapabilitySettings | null);
23080
+ /**
23081
+ * * Field Name: Status
23082
+ * * Display Name: Status
23083
+ * * SQL Data Type: nvarchar(20)
23084
+ * * Default Value: Active
23085
+ * * Value List Type: List
23086
+ * * Possible Values
23087
+ * * Active
23088
+ * * Inactive
23089
+ * * Description: Whether this harness may be launched. Inactive keeps the row and its history for auditing while taking the harness out of service - preferable to deleting it, which would orphan agents configured to use it.
23090
+ */
23091
+ get Status(): 'Active' | 'Inactive';
23092
+ set Status(value: 'Active' | 'Inactive');
23093
+ /**
23094
+ * * Field Name: __mj_CreatedAt
23095
+ * * Display Name: Created At
23096
+ * * SQL Data Type: datetimeoffset
23097
+ * * Default Value: getutcdate()
23098
+ */
23099
+ get __mj_CreatedAt(): Date;
23100
+ /**
23101
+ * * Field Name: __mj_UpdatedAt
23102
+ * * Display Name: Updated At
23103
+ * * SQL Data Type: datetimeoffset
23104
+ * * Default Value: getutcdate()
23105
+ */
23106
+ get __mj_UpdatedAt(): Date;
23107
+ /**
23108
+ * * Field Name: AIVendor
23109
+ * * Display Name: AI Vendor
23110
+ * * SQL Data Type: nvarchar(50)
23111
+ */
23112
+ get AIVendor(): string | null;
23113
+ /**
23114
+ * * Field Name: AIModel
23115
+ * * Display Name: AI Model
23116
+ * * SQL Data Type: nvarchar(50)
23117
+ */
23118
+ get AIModel(): string | null;
23119
+ }
22911
23120
  /**
22912
23121
  * MJ: AI Agent Learning Cycles - strongly typed entity sub-class
22913
23122
  * * Schema: __mj
@@ -24874,13 +25083,14 @@ export declare class MJAIAgentRunStepEntity extends BaseEntity<MJAIAgentRunStepE
24874
25083
  * * Prompt
24875
25084
  * * Skill
24876
25085
  * * Sub-Agent
25086
+ * * TaskGraph
24877
25087
  * * Tool
24878
25088
  * * Validation
24879
25089
  * * While
24880
25090
  * * Description: Type of execution step: Prompt, Actions, Sub-Agent, Decision, Chat, Validation, ForEach, While, Tool
24881
25091
  */
24882
- get StepType(): 'Actions' | 'Chat' | 'Compaction' | 'Decision' | 'ForEach' | 'Plan' | 'Prompt' | 'Skill' | 'Sub-Agent' | 'Tool' | 'Validation' | 'While';
24883
- set StepType(value: 'Actions' | 'Chat' | 'Compaction' | 'Decision' | 'ForEach' | 'Plan' | 'Prompt' | 'Skill' | 'Sub-Agent' | 'Tool' | 'Validation' | 'While');
25092
+ get StepType(): 'Actions' | 'Chat' | 'Compaction' | 'Decision' | 'ForEach' | 'Plan' | 'Prompt' | 'Skill' | 'Sub-Agent' | 'TaskGraph' | 'Tool' | 'Validation' | 'While';
25093
+ set StepType(value: 'Actions' | 'Chat' | 'Compaction' | 'Decision' | 'ForEach' | 'Plan' | 'Prompt' | 'Skill' | 'Sub-Agent' | 'TaskGraph' | 'Tool' | 'Validation' | 'While');
24884
25094
  /**
24885
25095
  * * Field Name: StepName
24886
25096
  * * Display Name: Step Name
@@ -25152,6 +25362,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25152
25362
  Delete(options?: EntityDeleteOptions): Promise<boolean>;
25153
25363
  /**
25154
25364
  * Validate() method override for MJ: AI Agent Runs entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
25365
+ * * ContinuationDepth: The continuation depth must be a non-negative number (0 or greater) to ensure valid execution tracking.
25155
25366
  * * EffortLevel: This rule ensures that the effort level, if specified, must be a number between 1 and 100, inclusive.
25156
25367
  * * FinalStep: The FinalStep field can be left empty, but if a value is provided it must be one of the approved step names – While, ForEach, Chat, Sub-Agent, Actions, Retry, Failed, or Success. This ensures only valid workflow steps are recorded.
25157
25368
  * @public
@@ -25160,6 +25371,13 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25160
25371
  */
25161
25372
  Validate(): ValidationResult;
25162
25373
  /**
25374
+ * The continuation depth must be a non-negative number (0 or greater) to ensure valid execution tracking.
25375
+ * @param result - the ValidationResult object to add any errors or warnings to
25376
+ * @public
25377
+ * @method
25378
+ */
25379
+ ValidateContinuationDepthGreaterThanOrEqualToZero(result: ValidationResult): void;
25380
+ /**
25163
25381
  * This rule ensures that the effort level, if specified, must be a number between 1 and 100, inclusive.
25164
25382
  * @param result - the ValidationResult object to add any errors or warnings to
25165
25383
  * @public
@@ -25175,7 +25393,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25175
25393
  ValidateFinalStepAllowedValues(result: ValidationResult): void;
25176
25394
  /**
25177
25395
  * * Field Name: ID
25178
- * * Display Name: ID
25396
+ * * Display Name: Run ID
25179
25397
  * * SQL Data Type: uniqueidentifier
25180
25398
  * * Default Value: newsequentialid()
25181
25399
  * * Description: Unique identifier for this agent run
@@ -25319,7 +25537,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25319
25537
  get __mj_UpdatedAt(): Date;
25320
25538
  /**
25321
25539
  * * Field Name: TotalPromptTokensUsed
25322
- * * Display Name: Total Prompt Tokens
25540
+ * * Display Name: Prompt Tokens
25323
25541
  * * SQL Data Type: int
25324
25542
  * * 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.
25325
25543
  */
@@ -25327,7 +25545,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25327
25545
  set TotalPromptTokensUsed(value: number | null);
25328
25546
  /**
25329
25547
  * * Field Name: TotalCompletionTokensUsed
25330
- * * Display Name: Total Completion Tokens
25548
+ * * Display Name: Completion Tokens
25331
25549
  * * SQL Data Type: int
25332
25550
  * * 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.
25333
25551
  */
@@ -25343,7 +25561,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25343
25561
  set TotalTokensUsedRollup(value: number | null);
25344
25562
  /**
25345
25563
  * * Field Name: TotalPromptTokensUsedRollup
25346
- * * Display Name: Total Prompt Tokens (Rollup)
25564
+ * * Display Name: Prompt Tokens (Rollup)
25347
25565
  * * SQL Data Type: int
25348
25566
  * * 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.
25349
25567
  */
@@ -25351,7 +25569,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25351
25569
  set TotalPromptTokensUsedRollup(value: number | null);
25352
25570
  /**
25353
25571
  * * Field Name: TotalCompletionTokensUsedRollup
25354
- * * Display Name: Total Completion Tokens (Rollup)
25572
+ * * Display Name: Completion Tokens (Rollup)
25355
25573
  * * SQL Data Type: int
25356
25574
  * * 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.
25357
25575
  */
@@ -25376,7 +25594,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25376
25594
  set ConversationDetailID(value: string | null);
25377
25595
  /**
25378
25596
  * * Field Name: ConversationDetailSequence
25379
- * * Display Name: Conversation Detail Sequence
25597
+ * * Display Name: Detail Sequence
25380
25598
  * * SQL Data Type: int
25381
25599
  * * Description: If a conversation detail spawned multiple agent runs, tracks the order of their spawn/execution
25382
25600
  */
@@ -25423,7 +25641,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25423
25641
  set FinalPayload(value: string | null);
25424
25642
  /**
25425
25643
  * * Field Name: Message
25426
- * * Display Name: Message
25644
+ * * Display Name: Final Message
25427
25645
  * * SQL Data Type: nvarchar(MAX)
25428
25646
  * * Description: Final message from the agent to the end user at the end of a run
25429
25647
  */
@@ -25448,7 +25666,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25448
25666
  set StartingPayload(value: string | null);
25449
25667
  /**
25450
25668
  * * Field Name: TotalPromptIterations
25451
- * * Display Name: Total Prompt Iterations
25669
+ * * Display Name: Prompt Iterations
25452
25670
  * * SQL Data Type: int
25453
25671
  * * Default Value: 0
25454
25672
  * * Description: Total number of prompt iterations executed during this agent run. Incremented
@@ -25485,7 +25703,7 @@ each time the agent processes a prompt step.
25485
25703
  set OverrideVendorID(value: string | null);
25486
25704
  /**
25487
25705
  * * Field Name: Data
25488
- * * Display Name: Data
25706
+ * * Display Name: Execution Data
25489
25707
  * * SQL Data Type: nvarchar(MAX)
25490
25708
  * * 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.
25491
25709
  */
@@ -25493,7 +25711,7 @@ each time the agent processes a prompt step.
25493
25711
  set Data(value: string | null);
25494
25712
  /**
25495
25713
  * * Field Name: Verbose
25496
- * * Display Name: Verbose
25714
+ * * Display Name: Verbose Logging
25497
25715
  * * SQL Data Type: bit
25498
25716
  * * Default Value: 0
25499
25717
  * * Description: Indicates whether verbose logging was enabled during this agent execution. When true, detailed decision-making and execution flow was logged.
@@ -25594,7 +25812,7 @@ each time the agent processes a prompt step.
25594
25812
  set CompanyID(value: string | null);
25595
25813
  /**
25596
25814
  * * Field Name: TotalCacheReadTokensUsed
25597
- * * Display Name: Total Cache Read Tokens
25815
+ * * Display Name: Cache Read Tokens
25598
25816
  * * SQL Data Type: int
25599
25817
  * * 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.
25600
25818
  */
@@ -25602,7 +25820,7 @@ each time the agent processes a prompt step.
25602
25820
  set TotalCacheReadTokensUsed(value: number | null);
25603
25821
  /**
25604
25822
  * * Field Name: TotalCacheWriteTokensUsed
25605
- * * Display Name: Total Cache Write Tokens
25823
+ * * Display Name: Cache Write Tokens
25606
25824
  * * SQL Data Type: int
25607
25825
  * * 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.
25608
25826
  */
@@ -25635,6 +25853,23 @@ each time the agent processes a prompt step.
25635
25853
  get PlanMode(): boolean;
25636
25854
  set PlanMode(value: boolean);
25637
25855
  /**
25856
+ * * Field Name: ExternalSessionID
25857
+ * * Display Name: External Session
25858
+ * * SQL Data Type: nvarchar(255)
25859
+ * * Description: Session identifier reported by the external harness backing this run. Kept for two reasons that outlive the run: resuming the session across turns, and correlating this run with the vendor's own session logs when diagnosing behaviour INSIDE the sandbox, where MJ's audit trail necessarily stops at the turn boundary. NULL for every run not backed by a harness.
25860
+ */
25861
+ get ExternalSessionID(): string | null;
25862
+ set ExternalSessionID(value: string | null);
25863
+ /**
25864
+ * * Field Name: ContinuationDepth
25865
+ * * Display Name: Continuation Depth
25866
+ * * SQL Data Type: int
25867
+ * * Default Value: 0
25868
+ * * Description: How many task-graph continuations led to this run. 0 (the default, and the value every ordinary run carries) means the run was not started by a finished graph. A run started because a graph declared continuation='reinvoke' records its source graph's depth plus one, and any graph that run subsequently submits inherits that value — which is what allows MAX_REINVOKE_DEPTH to bound a chain of graph-reinvokes-agent-emits-graph. Without a durable value here the cap could never fire, because a reinvoked agent has no other way to learn it was a continuation. Distinct from ParentRunID, which tracks sub-agent lineage within a single turn; a continuation is a NEW top-level turn caused by work that already completed.
25869
+ */
25870
+ get ContinuationDepth(): number;
25871
+ set ContinuationDepth(value: number);
25872
+ /**
25638
25873
  * * Field Name: Agent
25639
25874
  * * Display Name: Agent Name
25640
25875
  * * SQL Data Type: nvarchar(255)
@@ -25642,67 +25877,67 @@ each time the agent processes a prompt step.
25642
25877
  get Agent(): string | null;
25643
25878
  /**
25644
25879
  * * Field Name: ParentRun
25645
- * * Display Name: Parent Run Name
25880
+ * * Display Name: Parent Run Info
25646
25881
  * * SQL Data Type: nvarchar(255)
25647
25882
  */
25648
25883
  get ParentRun(): string | null;
25649
25884
  /**
25650
25885
  * * Field Name: Conversation
25651
- * * Display Name: Conversation Name
25886
+ * * Display Name: Conversation Info
25652
25887
  * * SQL Data Type: nvarchar(255)
25653
25888
  */
25654
25889
  get Conversation(): string | null;
25655
25890
  /**
25656
25891
  * * Field Name: User
25657
- * * Display Name: User Name
25892
+ * * Display Name: User Info
25658
25893
  * * SQL Data Type: nvarchar(100)
25659
25894
  */
25660
25895
  get User(): string | null;
25661
25896
  /**
25662
25897
  * * Field Name: ConversationDetail
25663
- * * Display Name: Conversation Detail Name
25898
+ * * Display Name: Conversation Detail Info
25664
25899
  * * SQL Data Type: nvarchar(100)
25665
25900
  */
25666
25901
  get ConversationDetail(): string | null;
25667
25902
  /**
25668
25903
  * * Field Name: LastRun
25669
- * * Display Name: Last Run Name
25904
+ * * Display Name: Last Run Info
25670
25905
  * * SQL Data Type: nvarchar(255)
25671
25906
  */
25672
25907
  get LastRun(): string | null;
25673
25908
  /**
25674
25909
  * * Field Name: Configuration
25675
- * * Display Name: Configuration Name
25910
+ * * Display Name: Configuration Info
25676
25911
  * * SQL Data Type: nvarchar(100)
25677
25912
  */
25678
25913
  get Configuration(): string | null;
25679
25914
  /**
25680
25915
  * * Field Name: OverrideModel
25681
- * * Display Name: Override Model Name
25916
+ * * Display Name: Override Model Info
25682
25917
  * * SQL Data Type: nvarchar(50)
25683
25918
  */
25684
25919
  get OverrideModel(): string | null;
25685
25920
  /**
25686
25921
  * * Field Name: OverrideVendor
25687
- * * Display Name: Override Vendor Name
25922
+ * * Display Name: Override Vendor Info
25688
25923
  * * SQL Data Type: nvarchar(50)
25689
25924
  */
25690
25925
  get OverrideVendor(): string | null;
25691
25926
  /**
25692
25927
  * * Field Name: ScheduledJobRun
25693
- * * Display Name: Scheduled Job Run Name
25928
+ * * Display Name: Scheduled Job Run Info
25694
25929
  * * SQL Data Type: nvarchar(200)
25695
25930
  */
25696
25931
  get ScheduledJobRun(): string | null;
25697
25932
  /**
25698
25933
  * * Field Name: TestRun
25699
- * * Display Name: Test Run Name
25934
+ * * Display Name: Test Run Info
25700
25935
  * * SQL Data Type: nvarchar(255)
25701
25936
  */
25702
25937
  get TestRun(): string | null;
25703
25938
  /**
25704
25939
  * * Field Name: PrimaryScopeEntity
25705
- * * Display Name: Primary Scope Entity Name
25940
+ * * Display Name: Primary Scope Entity Info
25706
25941
  * * SQL Data Type: nvarchar(255)
25707
25942
  */
25708
25943
  get PrimaryScopeEntity(): string | null;
@@ -27385,6 +27620,51 @@ export declare class MJAIAgentTypeEntity extends BaseEntity<MJAIAgentTypeEntityT
27385
27620
  * @public
27386
27621
  */
27387
27622
  export declare class MJAIAgentEntity extends BaseEntity<MJAIAgentEntityType> {
27623
+ /**
27624
+ * Related records: MJ: AI Agent Actions
27625
+ *
27626
+ * Loads, validates and persists as one unit with this MJ: AI Agents record — see
27627
+ * guides/TRANSACTIONS_AND_BATCHING_GUIDE.md. Declared by the RelatedRecordCollection metadata on
27628
+ * the 'MJ: AI Agents → MJ: AI Agent Actions' relationship; edit that row, not this file.
27629
+ * **Source: cache.** Records come from whichever loaded BaseEngine already caches
27630
+ * 'MJ: AI Agent Actions', discovered via BaseEngineRegistry — zero queries. Falls back to a
27631
+ * database load when no loaded engine offers it.
27632
+ * **These are the engine's own entity instances, not copies.** Do not modify them: you would be
27633
+ * mutating shared cached state that other holders can see.
27634
+ * **Read-only.** Add/Create/Remove/Clear throw, the collection contributes nothing to a save,
27635
+ * and it never reports Dirty.
27636
+ * **Lazy.** Reading Items POPULATES the collection as a side effect and flips IsLoaded. If no
27637
+ * loaded engine caches 'MJ: AI Agent Actions', reading it THROWS rather than returning an
27638
+ * empty array — a lazy declaration asserts that such an engine exists.
27639
+ */
27640
+ readonly Actions: import("@memberjunction/core").RelatedRecordCollection<MJAIAgentActionEntity>;
27641
+ /**
27642
+ * Related records: MJ: AI Agent Prompts
27643
+ *
27644
+ * Loads, validates and persists as one unit with this MJ: AI Agents record — see
27645
+ * guides/TRANSACTIONS_AND_BATCHING_GUIDE.md. Declared by the RelatedRecordCollection metadata on
27646
+ * the 'MJ: AI Agents → MJ: AI Agent Prompts' relationship; edit that row, not this file.
27647
+ *
27648
+ */
27649
+ readonly Prompts: import("@memberjunction/core").RelatedRecordCollection<MJAIAgentPromptEntity>;
27650
+ /**
27651
+ * Related records: MJ: AI Agents
27652
+ *
27653
+ * Loads, validates and persists as one unit with this MJ: AI Agents record — see
27654
+ * guides/TRANSACTIONS_AND_BATCHING_GUIDE.md. Declared by the RelatedRecordCollection metadata on
27655
+ * the 'MJ: AI Agents → MJ: AI Agents' relationship; edit that row, not this file.
27656
+ * **Source: cache.** Records come from whichever loaded BaseEngine already caches
27657
+ * 'MJ: AI Agents', discovered via BaseEngineRegistry — zero queries. Falls back to a
27658
+ * database load when no loaded engine offers it.
27659
+ * **These are the engine's own entity instances, not copies.** Do not modify them: you would be
27660
+ * mutating shared cached state that other holders can see.
27661
+ * **Read-only.** Add/Create/Remove/Clear throw, the collection contributes nothing to a save,
27662
+ * and it never reports Dirty.
27663
+ * **Lazy.** Reading Items POPULATES the collection as a side effect and flips IsLoaded. If no
27664
+ * loaded engine caches 'MJ: AI Agents', reading it THROWS rather than returning an
27665
+ * empty array — a lazy declaration asserts that such an engine exists.
27666
+ */
27667
+ readonly SubAgents: import("@memberjunction/core").RelatedRecordCollection<MJAIAgentEntity>;
27388
27668
  /**
27389
27669
  * Loads the MJ: AI Agents record from the database
27390
27670
  * @param ID: string - primary key value to load the MJ: AI Agents record.
@@ -32282,6 +32562,24 @@ export declare class MJAIPromptTypeEntity extends BaseEntity<MJAIPromptTypeEntit
32282
32562
  * @public
32283
32563
  */
32284
32564
  export declare class MJAIPromptEntity extends BaseEntity<MJAIPromptEntityType> {
32565
+ /**
32566
+ * Related records: MJ: AI Prompt Models
32567
+ *
32568
+ * Loads, validates and persists as one unit with this MJ: AI Prompts record — see
32569
+ * guides/TRANSACTIONS_AND_BATCHING_GUIDE.md. Declared by the RelatedRecordCollection metadata on
32570
+ * the 'MJ: AI Prompts → MJ: AI Prompt Models' relationship; edit that row, not this file.
32571
+ * **Source: cache.** Records come from whichever loaded BaseEngine already caches
32572
+ * 'MJ: AI Prompt Models', discovered via BaseEngineRegistry — zero queries. Falls back to a
32573
+ * database load when no loaded engine offers it.
32574
+ * **These are the engine's own entity instances, not copies.** Do not modify them: you would be
32575
+ * mutating shared cached state that other holders can see.
32576
+ * **Read-only.** Add/Create/Remove/Clear throw, the collection contributes nothing to a save,
32577
+ * and it never reports Dirty.
32578
+ * **Lazy.** Reading Items POPULATES the collection as a side effect and flips IsLoaded. If no
32579
+ * loaded engine caches 'MJ: AI Prompt Models', reading it THROWS rather than returning an
32580
+ * empty array — a lazy declaration asserts that such an engine exists.
32581
+ */
32582
+ readonly Models: import("@memberjunction/core").RelatedRecordCollection<MJAIPromptModelEntity>;
32285
32583
  /**
32286
32584
  * Loads the MJ: AI Prompts record from the database
32287
32585
  * @param ID: string - primary key value to load the MJ: AI Prompts record.
@@ -34285,6 +34583,15 @@ export declare class MJAPIApplicationScopeEntity extends BaseEntity<MJAPIApplica
34285
34583
  */
34286
34584
  get __mj_UpdatedAt(): Date;
34287
34585
  /**
34586
+ * * Field Name: RowFilterID
34587
+ * * Display Name: Row Filter ID
34588
+ * * SQL Data Type: uniqueidentifier
34589
+ * * Related Entity/Foreign Key: MJ: Row Level Security Filters (vwRowLevelSecurityFilters.ID)
34590
+ * * Description: Optional row-level filter acting as a CEILING for every API key operating under this application — a restriction keys inherit and cannot widen. Composes with the per-key filter (APIKeyScope.RowFilterID) and with role-based RLS using AND, never OR, so no layer can broaden another. References the same RowLevelSecurityFilter catalog used by role-based RLS. NULL (the default) means the application imposes no row ceiling. The same authoring constraints as APIKeyScope.RowFilterID apply: exact single-entity resource pattern, all referenced columns must exist on that entity, and all referrers of the filter record must resolve to the same entity.
34591
+ */
34592
+ get RowFilterID(): string | null;
34593
+ set RowFilterID(value: string | null);
34594
+ /**
34288
34595
  * * Field Name: Application
34289
34596
  * * Display Name: Application Name
34290
34597
  * * SQL Data Type: nvarchar(100)
@@ -34296,6 +34603,12 @@ export declare class MJAPIApplicationScopeEntity extends BaseEntity<MJAPIApplica
34296
34603
  * * SQL Data Type: nvarchar(100)
34297
34604
  */
34298
34605
  get Scope(): string;
34606
+ /**
34607
+ * * Field Name: RowFilter
34608
+ * * Display Name: Row Filter
34609
+ * * SQL Data Type: nvarchar(100)
34610
+ */
34611
+ get RowFilter(): string | null;
34299
34612
  }
34300
34613
  /**
34301
34614
  * MJ: API Applications - strongly typed entity sub-class
@@ -34548,6 +34861,15 @@ export declare class MJAPIKeyScopeEntity extends BaseEntity<MJAPIKeyScopeEntityT
34548
34861
  get Priority(): number;
34549
34862
  set Priority(value: number);
34550
34863
  /**
34864
+ * * Field Name: RowFilterID
34865
+ * * Display Name: Row Filter ID
34866
+ * * SQL Data Type: uniqueidentifier
34867
+ * * Related Entity/Foreign Key: MJ: Row Level Security Filters (vwRowLevelSecurityFilters.ID)
34868
+ * * Description: Optional row-level filter narrowing WHICH RECORDS this scope grant applies to, in addition to the resource pattern that governs which entities. References the same RowLevelSecurityFilter catalog used by role-based RLS, so the filter text flows through the standard {{Token}} substitution engine and every existing RLS enforcement point (RunView, Load by primary key, save, delete, search). NULL (the default) means no row restriction — behavior identical to before this column existed. When set, the rule's ResourcePattern must name a single exact entity (no wildcards, no comma-separated lists), every column the filter references must resolve to a real non-virtual field on that entity, and every other referrer of the same filter record must resolve to that same entity. Critically, this filter is evaluated INDEPENDENTLY of the role-RLS exemption: a user exempt from role RLS is still bound by their key's filter, because narrowing a principal below what their roles allow is the entire purpose of a key ceiling.
34869
+ */
34870
+ get RowFilterID(): string | null;
34871
+ set RowFilterID(value: string | null);
34872
+ /**
34551
34873
  * * Field Name: APIKey
34552
34874
  * * Display Name: API Key
34553
34875
  * * SQL Data Type: nvarchar(255)
@@ -34559,6 +34881,12 @@ export declare class MJAPIKeyScopeEntity extends BaseEntity<MJAPIKeyScopeEntityT
34559
34881
  * * SQL Data Type: nvarchar(100)
34560
34882
  */
34561
34883
  get Scope(): string;
34884
+ /**
34885
+ * * Field Name: RowFilter
34886
+ * * Display Name: Row Filter
34887
+ * * SQL Data Type: nvarchar(100)
34888
+ */
34889
+ get RowFilter(): string | null;
34562
34890
  }
34563
34891
  /**
34564
34892
  * MJ: API Key Usage Logs - strongly typed entity sub-class
@@ -34742,6 +35070,24 @@ export declare class MJAPIKeyUsageLogEntity extends BaseEntity<MJAPIKeyUsageLogE
34742
35070
  * @public
34743
35071
  */
34744
35072
  export declare class MJAPIKeyEntity extends BaseEntity<MJAPIKeyEntityType> {
35073
+ /**
35074
+ * Related records: MJ: API Key Scopes
35075
+ *
35076
+ * Loads, validates and persists as one unit with this MJ: API Keys record — see
35077
+ * guides/TRANSACTIONS_AND_BATCHING_GUIDE.md. Declared by the RelatedRecordCollection metadata on
35078
+ * the 'MJ: API Keys → MJ: API Key Scopes' relationship; edit that row, not this file.
35079
+ * **Source: cache.** Records come from whichever loaded BaseEngine already caches
35080
+ * 'MJ: API Key Scopes', discovered via BaseEngineRegistry — zero queries. Falls back to a
35081
+ * database load when no loaded engine offers it.
35082
+ * **These are the engine's own entity instances, not copies.** Do not modify them: you would be
35083
+ * mutating shared cached state that other holders can see.
35084
+ * **Read-only.** Add/Create/Remove/Clear throw, the collection contributes nothing to a save,
35085
+ * and it never reports Dirty.
35086
+ * **Lazy.** Reading Items POPULATES the collection as a side effect and flips IsLoaded. If no
35087
+ * loaded engine caches 'MJ: API Key Scopes', reading it THROWS rather than returning an
35088
+ * empty array — a lazy declaration asserts that such an engine exists.
35089
+ */
35090
+ readonly Scopes: import("@memberjunction/core").RelatedRecordCollection<MJAPIKeyScopeEntity>;
34745
35091
  /**
34746
35092
  * Loads the MJ: API Keys record from the database
34747
35093
  * @param ID: string - primary key value to load the MJ: API Keys record.
@@ -41076,7 +41422,7 @@ export declare class MJContentItemChunkEntity extends BaseEntity<MJContentItemCh
41076
41422
  set EndOffset(value: number | null);
41077
41423
  /**
41078
41424
  * * Field Name: StartMs
41079
- * * Display Name: Start (ms)
41425
+ * * Display Name: Start Milliseconds
41080
41426
  * * SQL Data Type: int
41081
41427
  * * Description: Start of this chunk's time window, in milliseconds from the beginning of the parent audio or video asset. Set by transcript- or window-based segmentation; enables time-windowed playback deep-links from a search result (for example 14:22-15:05 of a session recording). NULL for text segments.
41082
41428
  */
@@ -41084,7 +41430,7 @@ export declare class MJContentItemChunkEntity extends BaseEntity<MJContentItemCh
41084
41430
  set StartMs(value: number | null);
41085
41431
  /**
41086
41432
  * * Field Name: EndMs
41087
- * * Display Name: End (ms)
41433
+ * * Display Name: End Milliseconds
41088
41434
  * * SQL Data Type: int
41089
41435
  * * Description: End of this chunk's time window, in milliseconds from the beginning of the parent audio or video asset. See StartMs. NULL for text segments.
41090
41436
  */
@@ -41141,11 +41487,17 @@ export declare class MJContentItemChunkEntity extends BaseEntity<MJContentItemCh
41141
41487
  set ParentChunkID(value: string | null);
41142
41488
  /**
41143
41489
  * * Field Name: ContentItem
41144
- * * Display Name: Content Item
41490
+ * * Display Name: Content Item Name
41145
41491
  * * SQL Data Type: nvarchar(250)
41146
41492
  */
41147
41493
  get ContentItem(): string | null;
41148
41494
  /**
41495
+ * * Field Name: ParentChunk
41496
+ * * Display Name: Parent Chunk Name
41497
+ * * SQL Data Type: nvarchar(500)
41498
+ */
41499
+ get ParentChunk(): string | null;
41500
+ /**
41149
41501
  * * Field Name: RootParentChunkID
41150
41502
  * * Display Name: Root Parent Chunk
41151
41503
  * * SQL Data Type: uniqueidentifier
@@ -42859,7 +43211,7 @@ export declare class MJContentSourceEntity extends BaseEntity<MJContentSourceEnt
42859
43211
  set ConfigurationObject(value: MJContentSourceEntity_IContentSourceConfiguration | null);
42860
43212
  /**
42861
43213
  * * Field Name: EntityID
42862
- * * Display Name: Entity
43214
+ * * Display Name: Source Entity
42863
43215
  * * SQL Data Type: uniqueidentifier
42864
43216
  * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
42865
43217
  * * Description: For Entity-type content sources, the MJ Entity to pull records from. NULL for non-entity sources (files, RSS, websites, etc.).
@@ -42868,7 +43220,7 @@ export declare class MJContentSourceEntity extends BaseEntity<MJContentSourceEnt
42868
43220
  set EntityID(value: string | null);
42869
43221
  /**
42870
43222
  * * Field Name: EntityDocumentID
42871
- * * Display Name: Entity Document
43223
+ * * Display Name: Entity Document Template
42872
43224
  * * SQL Data Type: uniqueidentifier
42873
43225
  * * Related Entity/Foreign Key: MJ: Entity Documents (vwEntityDocuments.ID)
42874
43226
  * * Description: For Entity-type content sources, the Entity Document template used to render entity records into text for autotagging. The template defines which fields to include, how to format them, and related record inclusion. NULL for non-entity sources.
@@ -42876,15 +43228,6 @@ export declare class MJContentSourceEntity extends BaseEntity<MJContentSourceEnt
42876
43228
  get EntityDocumentID(): string | null;
42877
43229
  set EntityDocumentID(value: string | null);
42878
43230
  /**
42879
- * * Field Name: ScheduledActionID
42880
- * * Display Name: Scheduled Action
42881
- * * SQL Data Type: uniqueidentifier
42882
- * * Related Entity/Foreign Key: MJ: Scheduled Actions (vwScheduledActions.ID)
42883
- * * Description: Optional link to a MJ Scheduled Action that automatically runs the classification pipeline for this source on a cron schedule.
42884
- */
42885
- get ScheduledActionID(): string | null;
42886
- set ScheduledActionID(value: string | null);
42887
- /**
42888
43231
  * * Field Name: SegmenterKey
42889
43232
  * * Display Name: Segmenter Strategy
42890
43233
  * * SQL Data Type: nvarchar(100)
@@ -42901,6 +43244,15 @@ export declare class MJContentSourceEntity extends BaseEntity<MJContentSourceEnt
42901
43244
  get CleanerKey(): string | null;
42902
43245
  set CleanerKey(value: string | null);
42903
43246
  /**
43247
+ * * Field Name: ScheduledJobID
43248
+ * * Display Name: Scheduled Job
43249
+ * * SQL Data Type: uniqueidentifier
43250
+ * * Related Entity/Foreign Key: MJ: Scheduled Jobs (vwScheduledJobs.ID)
43251
+ * * Description: Optional link to the Scheduled Job that runs this content source on a recurring basis. Replaces the retired ScheduledActionID link; the job is of type Action and carries its action + parameters in ScheduledJob.Configuration.
43252
+ */
43253
+ get ScheduledJobID(): string | null;
43254
+ set ScheduledJobID(value: string | null);
43255
+ /**
42904
43256
  * * Field Name: ContentType
42905
43257
  * * Display Name: Content Type Name
42906
43258
  * * SQL Data Type: nvarchar(255)
@@ -42943,11 +43295,11 @@ export declare class MJContentSourceEntity extends BaseEntity<MJContentSourceEnt
42943
43295
  */
42944
43296
  get EntityDocument(): string | null;
42945
43297
  /**
42946
- * * Field Name: ScheduledAction
42947
- * * Display Name: Scheduled Action Name
42948
- * * SQL Data Type: nvarchar(255)
43298
+ * * Field Name: ScheduledJob
43299
+ * * Display Name: Scheduled Job Name
43300
+ * * SQL Data Type: nvarchar(200)
42949
43301
  */
42950
- get ScheduledAction(): string | null;
43302
+ get ScheduledJob(): string | null;
42951
43303
  }
42952
43304
  /**
42953
43305
  * MJ: Content Type Attributes - strongly typed entity sub-class
@@ -48348,6 +48700,10 @@ export declare class MJEntityEntity extends BaseEntity<MJEntityEntityType> {
48348
48700
  /**
48349
48701
  * Validate() method override for MJ: Entities entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
48350
48702
  * * Table-Level: This rule ensures that if deleting via the API is allowed and the delete type is set to 'Soft', then record merging must also be allowed. In other words, you cannot allow API deletes with a soft delete type without also allowing record merging.
48703
+ * * Table-Level: If direct SQL deletion is allowed, the delete type must be set to 'Hard' to ensure data integrity.
48704
+ * * Table-Level: Direct SQL operations (Insert, Update, and Delete) must be disabled if Track Record Changes or Trust Server Cache Completely is enabled, ensuring that cache integrity and change tracking are not bypassed.
48705
+ * * Table-Level: If the base view is marked as generated, the generated base view name must be null. A generated base view name can only be set when the base view is not marked as generated.
48706
+ * * Table-Level: If a generated base view name is specified, a base view must also be defined, and the generated base view name cannot be the same as the base view name to prevent naming conflicts.
48351
48707
  * @public
48352
48708
  * @method
48353
48709
  * @override
@@ -48361,6 +48717,34 @@ export declare class MJEntityEntity extends BaseEntity<MJEntityEntityType> {
48361
48717
  */
48362
48718
  ValidateAllowRecordMergeForSoftDeleteAPI(result: ValidationResult): void;
48363
48719
  /**
48720
+ * If direct SQL deletion is allowed, the delete type must be set to 'Hard' to ensure data integrity.
48721
+ * @param result - the ValidationResult object to add any errors or warnings to
48722
+ * @public
48723
+ * @method
48724
+ */
48725
+ ValidateDeleteTypeForDirectSQLDelete(result: ValidationResult): void;
48726
+ /**
48727
+ * Direct SQL operations (Insert, Update, and Delete) must be disabled if Track Record Changes or Trust Server Cache Completely is enabled, ensuring that cache integrity and change tracking are not bypassed.
48728
+ * @param result - the ValidationResult object to add any errors or warnings to
48729
+ * @public
48730
+ * @method
48731
+ */
48732
+ ValidateDirectSQLAndTrackingConstraints(result: ValidationResult): void;
48733
+ /**
48734
+ * If the base view is marked as generated, the generated base view name must be null. A generated base view name can only be set when the base view is not marked as generated.
48735
+ * @param result - the ValidationResult object to add any errors or warnings to
48736
+ * @public
48737
+ * @method
48738
+ */
48739
+ ValidateGeneratedBaseViewNameAndBaseViewGenerated(result: ValidationResult): void;
48740
+ /**
48741
+ * If a generated base view name is specified, a base view must also be defined, and the generated base view name cannot be the same as the base view name to prevent naming conflicts.
48742
+ * @param result - the ValidationResult object to add any errors or warnings to
48743
+ * @public
48744
+ * @method
48745
+ */
48746
+ ValidateGeneratedBaseViewNameDifferentFromBaseView(result: ValidationResult): void;
48747
+ /**
48364
48748
  * * Field Name: ID
48365
48749
  * * Display Name: ID
48366
48750
  * * SQL Data Type: uniqueidentifier
@@ -48939,7 +49323,7 @@ export declare class MJEntityEntity extends BaseEntity<MJEntityEntityType> {
48939
49323
  set DetectExternalChanges(value: boolean);
48940
49324
  /**
48941
49325
  * * Field Name: ExternalDataSourceID
48942
- * * Display Name: External Data Source ID
49326
+ * * Display Name: External Data Source
48943
49327
  * * SQL Data Type: uniqueidentifier
48944
49328
  * * Related Entity/Foreign Key: MJ: External Data Sources (vwExternalDataSources.ID)
48945
49329
  */
@@ -48954,6 +49338,41 @@ export declare class MJEntityEntity extends BaseEntity<MJEntityEntityType> {
48954
49338
  get ExternalObjectName(): string | null;
48955
49339
  set ExternalObjectName(value: string | null);
48956
49340
  /**
49341
+ * * Field Name: GeneratedBaseViewName
49342
+ * * Display Name: Generated Base View Name
49343
+ * * SQL Data Type: nvarchar(255)
49344
+ * * Description: When set, CodeGen generates the entity's full base view under THIS name instead of BaseView, and the application owns BaseView — which is expected to wrap it (SELECT g.*, <extras> FROM <GeneratedBaseViewName> g). This gives an entity a custom base view WITHOUT inheriting the generated SQL: related-entity display joins, geo columns and recursive root-ID columns keep regenerating underneath, so a foreign key added later still appears. NULL (the default, and every pre-existing row) means the previous all-or-nothing behaviour: BaseViewGenerated alone decides whether CodeGen writes BaseView, and there is no second view. BaseView remains the public surface — entity field discovery, permissions and the generated CRUD procedures all target it. SQL SERVER ONLY: layering relies on sp_refreshview to re-resolve the application-owned outer view's SELECT * against a regenerated inner view. PostgreSQL freezes a view's column list at creation and has no refresh equivalent, so CodeGen rejects this column on PostgreSQL rather than let the outer view go silently stale.
49345
+ */
49346
+ get GeneratedBaseViewName(): string | null;
49347
+ set GeneratedBaseViewName(value: string | null);
49348
+ /**
49349
+ * * Field Name: AllowDirectSQLInsert
49350
+ * * Display Name: Allow Direct SQL Insert
49351
+ * * SQL Data Type: bit
49352
+ * * Default Value: 0
49353
+ * * Description: When 1, this entity may be populated by INSERT statements that do not go through BaseEntity.Save() — bulk loads, ETL/integration sync, or rows created as a side effect of a stored procedure. Default 0, meaning every insert is expected to flow through BaseEntity so that record-change tracking, entity actions, validation and cache invalidation all run. This column DECLARES intent for the code paths and tooling that consult it; it does not and cannot prevent anyone from executing SQL. Requires TrackRecordChanges = 0 and TrustServerCacheCompletely = 0, because a direct insert produces neither an audit row nor a cache-invalidation event.
49354
+ */
49355
+ get AllowDirectSQLInsert(): boolean;
49356
+ set AllowDirectSQLInsert(value: boolean);
49357
+ /**
49358
+ * * Field Name: AllowDirectSQLUpdate
49359
+ * * Display Name: Allow Direct SQL Update
49360
+ * * SQL Data Type: bit
49361
+ * * Default Value: 0
49362
+ * * Description: When 1, this entity may be modified by UPDATE statements that do not go through BaseEntity.Save() — bulk backfills, integration sync, or maintenance routines. Default 0, meaning every update is expected to flow through BaseEntity so that record-change tracking, entity actions, validation and cache invalidation all run. This column DECLARES intent for the code paths and tooling that consult it; it does not and cannot prevent anyone from executing SQL. Requires TrackRecordChanges = 0 and TrustServerCacheCompletely = 0, because a direct update produces neither an audit row nor a cache-invalidation event.
49363
+ */
49364
+ get AllowDirectSQLUpdate(): boolean;
49365
+ set AllowDirectSQLUpdate(value: boolean);
49366
+ /**
49367
+ * * Field Name: AllowDirectSQLDelete
49368
+ * * Display Name: Allow Direct SQL Delete
49369
+ * * SQL Data Type: bit
49370
+ * * Default Value: 0
49371
+ * * Description: When 1, this entity may have rows removed by DELETE statements that do not go through BaseEntity.Delete() — purge and retention routines, or integration sync reconciling a remote source. Default 0, meaning every delete is expected to flow through BaseEntity so that record-change tracking, entity actions, cascade handling and cache invalidation all run. This column DECLARES intent for the code paths and tooling that consult it; it does not and cannot prevent anyone from executing SQL. Requires TrackRecordChanges = 0 and TrustServerCacheCompletely = 0, and additionally requires DeleteType = 'Hard' — a direct DELETE removes the row outright rather than setting DeletedAt, which would defeat soft delete.
49372
+ */
49373
+ get AllowDirectSQLDelete(): boolean;
49374
+ set AllowDirectSQLDelete(value: boolean);
49375
+ /**
48957
49376
  * * Field Name: CodeName
48958
49377
  * * Display Name: Code Name
48959
49378
  * * SQL Data Type: nvarchar(MAX)
@@ -49320,12 +49739,13 @@ export declare class MJEntityActionParamEntity extends BaseEntity<MJEntityAction
49320
49739
  * * Possible Values
49321
49740
  * * Entity Field
49322
49741
  * * Entity Object
49742
+ * * Entity Object Data
49323
49743
  * * Script
49324
49744
  * * Static
49325
- * * Description: Type of the value, which can be Static, Entity Object, or Script.
49745
+ * * Description: How the parameter value is produced at invocation time. Static = the literal Value (parsed as JSON when it parses). Entity Object = the live BaseEntity instance, for actions that call entity methods. Entity Object Data = entity.GetAll(), a plain object - use this for any action that SERIALIZES the value, such as the Data payload of Execute Agent, because a BaseEntity serializes to {} (its fields are getters, not enumerable own properties). Entity Field = the named field's value. Script = evaluated expression with the entity in scope.
49326
49746
  */
49327
- get ValueType(): 'Entity Field' | 'Entity Object' | 'Script' | 'Static';
49328
- set ValueType(value: 'Entity Field' | 'Entity Object' | 'Script' | 'Static');
49747
+ get ValueType(): 'Entity Field' | 'Entity Object' | 'Entity Object Data' | 'Script' | 'Static';
49748
+ set ValueType(value: 'Entity Field' | 'Entity Object' | 'Entity Object Data' | 'Script' | 'Static');
49329
49749
  /**
49330
49750
  * * Field Name: Value
49331
49751
  * * Display Name: Value
@@ -49357,6 +49777,14 @@ export declare class MJEntityActionParamEntity extends BaseEntity<MJEntityAction
49357
49777
  */
49358
49778
  get __mj_UpdatedAt(): Date;
49359
49779
  /**
49780
+ * * Field Name: LogValue
49781
+ * * Display Name: Log Value
49782
+ * * SQL Data Type: bit
49783
+ * * Description: Optional per-binding override of ActionParam.LogValue. NULL (the default) inherits the parameter definition. Set to 0 when this particular binding passes something sensitive through a parameter that is ordinarily safe to log - a message body through a generic Text parameter, for instance. Cannot re-enable logging for a value type the hard rule suppresses.
49784
+ */
49785
+ get LogValue(): boolean | null;
49786
+ set LogValue(value: boolean | null);
49787
+ /**
49360
49788
  * * Field Name: EntityAction
49361
49789
  * * Display Name: Entity Action
49362
49790
  * * SQL Data Type: nvarchar(425)
@@ -49394,6 +49822,21 @@ export declare class MJEntityActionEntity extends BaseEntity<MJEntityActionEntit
49394
49822
  */
49395
49823
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
49396
49824
  /**
49825
+ * Validate() method override for MJ: Entity Actions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
49826
+ * * Table-Level: Both Scope Entity and Scope Record must be provided together, or both must be left blank. You cannot specify one without the other.
49827
+ * @public
49828
+ * @method
49829
+ * @override
49830
+ */
49831
+ Validate(): ValidationResult;
49832
+ /**
49833
+ * Both Scope Entity and Scope Record must be provided together, or both must be left blank. You cannot specify one without the other.
49834
+ * @param result - the ValidationResult object to add any errors or warnings to
49835
+ * @public
49836
+ * @method
49837
+ */
49838
+ ValidateScopeEntityAndRecordCoexistence(result: ValidationResult): void;
49839
+ /**
49397
49840
  * * Field Name: EntityID
49398
49841
  * * Display Name: Entity ID
49399
49842
  * * SQL Data Type: uniqueidentifier
@@ -49446,6 +49889,46 @@ export declare class MJEntityActionEntity extends BaseEntity<MJEntityActionEntit
49446
49889
  get ID(): string;
49447
49890
  set ID(value: string);
49448
49891
  /**
49892
+ * * Field Name: Sequence
49893
+ * * Display Name: Sequence
49894
+ * * SQL Data Type: int
49895
+ * * Default Value: 0
49896
+ * * Description: Execution order when multiple Entity Actions are bound to the same entity and invocation type. Lower runs first; ties fall back to creation order. Defaults to 0 so existing rows are unaffected.
49897
+ */
49898
+ get Sequence(): number;
49899
+ set Sequence(value: number);
49900
+ /**
49901
+ * * Field Name: ScopeEntityID
49902
+ * * Display Name: Scope Entity ID
49903
+ * * SQL Data Type: uniqueidentifier
49904
+ * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
49905
+ * * Description: Optional. Together with ScopeRecordID, narrows this Entity Action to records related to ONE specific record - for example a single Deal Type, Contract Type, Pipeline or Company - rather than every record of EntityID. NULL (the default) means the action applies to all records, which is the pre-existing behaviour. How a scope record relates to the subject record is resolved by the app that owns the scope entity; the framework only stores and filters on the pair.
49906
+ */
49907
+ get ScopeEntityID(): string | null;
49908
+ set ScopeEntityID(value: string | null);
49909
+ /**
49910
+ * * Field Name: ScopeRecordID
49911
+ * * Display Name: Scope Record ID
49912
+ * * SQL Data Type: nvarchar(450)
49913
+ * * Description: Optional. The primary key of the scope record, as text, paired with ScopeEntityID. Both columns are NULL or both are set (CK_EntityAction_Scope). Lets a configuration record such as a Deal Type surface "the workflows bound to me" as a real relationship rather than something buried in filter code.
49914
+ */
49915
+ get ScopeRecordID(): string | null;
49916
+ set ScopeRecordID(value: string | null);
49917
+ /**
49918
+ * * Field Name: LoggingMode
49919
+ * * Display Name: Logging Mode
49920
+ * * SQL Data Type: nvarchar(20)
49921
+ * * Default Value: All
49922
+ * * Value List Type: List
49923
+ * * Possible Values
49924
+ * * All
49925
+ * * FailuresOnly
49926
+ * * None
49927
+ * * Description: How much of this binding's activity reaches ActionExecutionLog. All (default) writes a row per invocation. FailuresOnly writes only runs that did not succeed - the right setting for a high-frequency binding on a busy entity, where the successful runs are noise. None disables logging for the binding entirely and should be rare, because it also removes the failure record.
49928
+ */
49929
+ get LoggingMode(): 'All' | 'FailuresOnly' | 'None';
49930
+ set LoggingMode(value: 'All' | 'FailuresOnly' | 'None');
49931
+ /**
49449
49932
  * * Field Name: Entity
49450
49933
  * * Display Name: Entity
49451
49934
  * * SQL Data Type: nvarchar(255)
@@ -49457,6 +49940,12 @@ export declare class MJEntityActionEntity extends BaseEntity<MJEntityActionEntit
49457
49940
  * * SQL Data Type: nvarchar(425)
49458
49941
  */
49459
49942
  get Action(): string;
49943
+ /**
49944
+ * * Field Name: ScopeEntity
49945
+ * * Display Name: Scope Entity
49946
+ * * SQL Data Type: nvarchar(255)
49947
+ */
49948
+ get ScopeEntity(): string | null;
49460
49949
  }
49461
49950
  /**
49462
49951
  * MJ: Entity AI Actions - strongly typed entity sub-class
@@ -51995,6 +52484,135 @@ export declare class MJEntityRelationshipDisplayComponentEntity extends BaseEnti
51995
52484
  */
51996
52485
  get __mj_UpdatedAt(): Date;
51997
52486
  }
52487
+ /**
52488
+ * Declares an `EntityRelationship` as a first-class **related-record collection** — a set of child
52489
+ * rows that load, validate and persist as one unit with their parent.
52490
+ *
52491
+ * Stored in the `RelatedRecordCollection` column of the `MJ: Entity Relationships` entity. When
52492
+ * non-null, CodeGen emits a typed declaration onto the generated entity subclass:
52493
+ *
52494
+ * ```typescript
52495
+ * public readonly Lines = this.DeclareRelatedRecords<OrderLineEntity>({
52496
+ * Name: 'Lines',
52497
+ * RelatedEntity: 'MJ_BizApps_Orders: Order Lines', // from EntityRelationship.RelatedEntity
52498
+ * RelatedEntityJoinField: 'OrderHeaderID', // from EntityRelationship.RelatedEntityJoinField
52499
+ * OrderBy: 'LineNumber ASC',
52500
+ * Load: 'explicit',
52501
+ * OnRemove: 'delete',
52502
+ * Sequence: { Field: 'LineNumber', From: 1 },
52503
+ * });
52504
+ * ```
52505
+ *
52506
+ * **`RelatedEntity` and `RelatedEntityJoinField` are deliberately absent from this interface.** They
52507
+ * already exist as columns on the same `EntityRelationship` row, and duplicating them here would
52508
+ * create two sources of truth that can disagree — with the JSON copy winning silently. CodeGen reads
52509
+ * them from the row's own columns.
52510
+ *
52511
+ * NULL means the relationship is not a declared collection. That is the default and reproduces
52512
+ * pre-6.2 behavior exactly: nothing is generated and nothing loads eagerly.
52513
+ *
52514
+ * @see guides/TRANSACTIONS_AND_BATCHING_GUIDE.md
52515
+ */
52516
+ export interface MJEntityRelationshipEntity_IRelatedRecordCollectionConfig {
52517
+ /**
52518
+ * The property name generated on the entity subclass, and the companion's stable wire key —
52519
+ * e.g. `'Lines'` produces `order.Lines`.
52520
+ *
52521
+ * **This is a published contract.** It appears in serialized composite payloads, so renaming it
52522
+ * breaks in-flight requests and any persisted snapshot that captured one. Must be unique among
52523
+ * the collections declared on a single entity.
52524
+ */
52525
+ Name: string;
52526
+ /**
52527
+ * Where the collection's records come from. Defaults to `'database'`.
52528
+ *
52529
+ * - `'database'` — a `RunView` against the related entity, filtered by the join field. Always
52530
+ * correct, always fresh, costs a query. The right choice for transactional data (order lines,
52531
+ * journal entry lines) where staleness is unacceptable.
52532
+ * - `'cache'` — the records are taken from whichever loaded `BaseEngine` already holds that
52533
+ * entity, discovered generically through `BaseEngineRegistry.FindCachedEntity()`. Costs **zero
52534
+ * queries**. The right choice for metadata-shaped data that an engine preloads anyway —
52535
+ * action params, prompt models, API key scopes. Falls back to `'database'` when no loaded
52536
+ * engine offers the entity, so a cache miss degrades instead of failing.
52537
+ *
52538
+ * Not called `'query'` deliberately: in MemberJunction a *Query* is a stored, named artifact
52539
+ * (`MJ: Queries`, `RunQuery`), so `Source: 'query'` would read as "this comes from a stored
52540
+ * Query" — a different thing entirely.
52541
+ */
52542
+ Source?: 'database' | 'cache';
52543
+ /**
52544
+ * Whether the collection refuses mutation. Defaults to `false`, **except when
52545
+ * {@link Source} is `'cache'`, where it defaults to `true`.**
52546
+ *
52547
+ * When `true`: `Add`, `Create`, `Remove` and `Clear` throw, the collection contributes nothing
52548
+ * to a save plan, and `Dirty` stays `false`. That last part is not
52549
+ * cosmetic — a cache-sourced collection holds the *engine's own entity instances*, so a record
52550
+ * dirtied by some unrelated code path would otherwise make every parent holding it report dirty
52551
+ * and try to save.
52552
+ *
52553
+ * **What this cannot enforce:** once you hold a `BaseEntity` you can set fields on it and call
52554
+ * `Save()`. Read-only constrains the *collection*, not the records inside it. Which is why the
52555
+ * source matters:
52556
+ *
52557
+ * - `'cache'` + read-only → you get the engine's shared instances. Zero allocation, and the
52558
+ * contract is "do not mutate these".
52559
+ * - `'cache'` + writable → the records are **copied** into fresh entity objects on load, so the
52560
+ * engine's cache is never mutated in place. Saving a copy fires the ordinary `BaseEntity`
52561
+ * save event, which the engines already subscribe to, so their caches refresh themselves.
52562
+ * - `'database'` → always fresh objects; none of this applies.
52563
+ */
52564
+ ReadOnly?: boolean;
52565
+ /**
52566
+ * When the collection populates itself. Defaults to `'explicit'`.
52567
+ *
52568
+ * - `'explicit'` — nothing loads until the caller awaits `Load()` or
52569
+ * `BaseEntity.LoadRelatedRecords()`. **The right default for `'database'`**: an
52570
+ * automatically-populated collection on a commonly-listed entity is a performance trap.
52571
+ * - `'immediate'` — populated automatically by `Load()`. Never by `LoadFromData()`, which is the
52572
+ * per-row materialization path for `RunView(ResultType:'entity_object')` — loading related
52573
+ * records there turns one view into N+1 queries. Use `RunView.IncludeRelatedRecords` for
52574
+ * result sets, which costs 1+K instead.
52575
+ * - `'lazy'` — populated on first access to `Items`. **Requires `Source: 'cache'`**, and CodeGen
52576
+ * refuses the combination with `'database'`: a property getter cannot await, so a lazy
52577
+ * database load could only ever silently fail to fill. A cache lookup is synchronous, so lazy
52578
+ * works there — and reproduces exactly the hand-written memoized getters this replaces.
52579
+ * - `'never'` — a write-only staging buffer; `Load()` is a no-op.
52580
+ *
52581
+ * Note that `'lazy'` makes reading `Items` a side-effecting operation: it populates the
52582
+ * collection and flips `IsLoaded`. That is deliberate and matches the getters it supersedes.
52583
+ */
52584
+ Load?: 'explicit' | 'immediate' | 'lazy' | 'never';
52585
+ /**
52586
+ * What removing a record from the collection means. Defaults to `'delete'`.
52587
+ *
52588
+ * - `'delete'` — the row is deleted when the parent saves. Correct for true composition, where
52589
+ * the related record has no meaning without its parent (order lines, journal entry lines).
52590
+ * - `'orphan'` — the row is left in place, foreign key untouched. Correct for aggregation.
52591
+ * - `'refuse'` — removal throws. For collections where detaching is always a bug.
52592
+ */
52593
+ OnRemove?: 'delete' | 'orphan' | 'refuse';
52594
+ /**
52595
+ * `OrderBy` clause applied when loading, e.g. `'LineNumber ASC'`. Strongly recommended whenever
52596
+ * {@link Sequence} is set — a sequenced collection loaded in arbitrary order will be renumbered
52597
+ * into that arbitrary order on the next mutation.
52598
+ */
52599
+ OrderBy?: string;
52600
+ /** Automatic, gap-free sequence numbering maintained across adds and removals. */
52601
+ Sequence?: {
52602
+ /** The related entity's sequence field, e.g. `'LineNumber'`. */
52603
+ Field: string;
52604
+ /** Value assigned to the first record. Defaults to 1. */
52605
+ From?: number;
52606
+ };
52607
+ /**
52608
+ * Whether the collection empties itself after a successful save. Defaults to `false`.
52609
+ *
52610
+ * `true` models a staging buffer for pending inserts rather than a live view of persisted rows —
52611
+ * the shape order-line entry uses today. `false` keeps saved records in memory with their
52612
+ * server-assigned keys, which is what most callers expect.
52613
+ */
52614
+ ClearAfterSave?: boolean;
52615
+ }
51998
52616
  /**
51999
52617
  * MJ: Entity Relationships - strongly typed entity sub-class
52000
52618
  * * Schema: __mj
@@ -52021,6 +52639,7 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52021
52639
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
52022
52640
  /**
52023
52641
  * * Field Name: ID
52642
+ * * Display Name: ID
52024
52643
  * * SQL Data Type: uniqueidentifier
52025
52644
  * * Default Value: newsequentialid()
52026
52645
  */
@@ -52028,7 +52647,7 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52028
52647
  set ID(value: string);
52029
52648
  /**
52030
52649
  * * Field Name: EntityID
52031
- * * Display Name: Entity ID
52650
+ * * Display Name: Entity
52032
52651
  * * SQL Data Type: uniqueidentifier
52033
52652
  * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
52034
52653
  */
@@ -52045,7 +52664,7 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52045
52664
  set Sequence(value: number);
52046
52665
  /**
52047
52666
  * * Field Name: RelatedEntityID
52048
- * * Display Name: Related Entity ID
52667
+ * * Display Name: Related Entity
52049
52668
  * * SQL Data Type: uniqueidentifier
52050
52669
  * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
52051
52670
  */
@@ -52062,7 +52681,7 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52062
52681
  set BundleInAPI(value: boolean);
52063
52682
  /**
52064
52683
  * * Field Name: IncludeInParentAllQuery
52065
- * * Display Name: Include In Parent All Query
52684
+ * * Display Name: Include In Parent Query
52066
52685
  * * SQL Data Type: bit
52067
52686
  * * Default Value: 0
52068
52687
  * * Description: Whether to include this relationship when querying all fields of the parent entity.
@@ -52071,6 +52690,7 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52071
52690
  set IncludeInParentAllQuery(value: boolean);
52072
52691
  /**
52073
52692
  * * Field Name: Type
52693
+ * * Display Name: Relationship Type
52074
52694
  * * SQL Data Type: nchar(20)
52075
52695
  * * Default Value: One To Many
52076
52696
  * * Value List Type: List
@@ -52175,14 +52795,14 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52175
52795
  set DisplayIcon(value: string | null);
52176
52796
  /**
52177
52797
  * * Field Name: DisplayUserViewID
52178
- * * Display Name: Display User View ID
52798
+ * * Display Name: Display User View
52179
52799
  * * SQL Data Type: uniqueidentifier
52180
52800
  * * Related Entity/Foreign Key: MJ: User Views (vwUserViews.ID)
52181
52801
  */
52182
52802
  get DisplayUserViewID(): string | null;
52183
52803
  /**
52184
52804
  * * Field Name: DisplayComponentID
52185
- * * Display Name: Display Component ID
52805
+ * * Display Name: Display Component
52186
52806
  * * SQL Data Type: uniqueidentifier
52187
52807
  * * Related Entity/Foreign Key: MJ: Entity Relationship Display Components (vwEntityRelationshipDisplayComponents.ID)
52188
52808
  */
@@ -52190,7 +52810,7 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52190
52810
  set DisplayComponentID(value: string | null);
52191
52811
  /**
52192
52812
  * * Field Name: DisplayComponentConfiguration
52193
- * * Display Name: Display Component Configuration
52813
+ * * Display Name: Display Component Config
52194
52814
  * * SQL Data Type: nvarchar(MAX)
52195
52815
  * * Description: If DisplayComponentID is specified, this field can optionally be used to track component-specific and relationship-specific configuration details that will be used by CodeGen to provide to the display component selected.
52196
52816
  */
@@ -52198,21 +52818,21 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52198
52818
  set DisplayComponentConfiguration(value: string | null);
52199
52819
  /**
52200
52820
  * * Field Name: __mj_CreatedAt
52201
- * * Display Name: __mj _Created At
52821
+ * * Display Name: Created At
52202
52822
  * * SQL Data Type: datetimeoffset
52203
52823
  * * Default Value: getutcdate()
52204
52824
  */
52205
52825
  get __mj_CreatedAt(): Date;
52206
52826
  /**
52207
52827
  * * Field Name: __mj_UpdatedAt
52208
- * * Display Name: __mj _Updated At
52828
+ * * Display Name: Updated At
52209
52829
  * * SQL Data Type: datetimeoffset
52210
52830
  * * Default Value: getutcdate()
52211
52831
  */
52212
52832
  get __mj_UpdatedAt(): Date;
52213
52833
  /**
52214
52834
  * * Field Name: AutoUpdateFromSchema
52215
- * * Display Name: Auto Update From Schema
52835
+ * * Display Name: Auto-Update From Schema
52216
52836
  * * SQL Data Type: bit
52217
52837
  * * Default Value: 1
52218
52838
  * * Description: Indicates whether this relationship should be automatically updated by CodeGen. When set to 0, the record will not be modified by CodeGen. Defaults to 1.
@@ -52221,7 +52841,7 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52221
52841
  set AutoUpdateFromSchema(value: boolean);
52222
52842
  /**
52223
52843
  * * Field Name: AdditionalFieldsToInclude
52224
- * * Display Name: Additional Fields To Include
52844
+ * * Display Name: Additional Fields
52225
52845
  * * SQL Data Type: nvarchar(MAX)
52226
52846
  * * Description: JSON array of additional field names to include when joining through this relationship (for junction tables, e.g., ["RoleName", "UserEmail"])
52227
52847
  */
@@ -52229,7 +52849,7 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52229
52849
  set AdditionalFieldsToInclude(value: string | null);
52230
52850
  /**
52231
52851
  * * Field Name: AutoUpdateAdditionalFieldsToInclude
52232
- * * Display Name: Auto Update Additional Fields To Include
52852
+ * * Display Name: Auto-Update Additional Fields
52233
52853
  * * SQL Data Type: bit
52234
52854
  * * Default Value: 1
52235
52855
  * * Description: When 1, allows system/LLM to auto-update AdditionalFieldsToInclude; when 0, user has locked this field
@@ -52237,7 +52857,25 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52237
52857
  get AutoUpdateAdditionalFieldsToInclude(): boolean;
52238
52858
  set AutoUpdateAdditionalFieldsToInclude(value: boolean);
52239
52859
  /**
52860
+ * * Field Name: RelatedRecordCollection
52861
+ * * Display Name: Related Record Collection Policy
52862
+ * * SQL Data Type: nvarchar(MAX)
52863
+ * * JSON Type: MJEntityRelationshipEntity_IRelatedRecordCollectionConfig
52864
+ * * Description: Optional JSON policy object that declares this relationship as a first-class related-record collection, so CodeGen can emit a typed DeclareRelatedRecords(...) declaration on the entity subclass. Shape is IRelatedRecordCollectionConfig: Name (the generated property name, e.g. "Lines"), Load ('explicit' | 'immediate' | 'lazy' | 'never'), Source ('database' | 'cache'), ReadOnly, OnRemove ('delete' | 'orphan' | 'refuse'), OrderBy, Sequence ({ Field, From }), and ClearAfterSave. Source 'cache' reads the related records from whichever loaded BaseEngine already holds that entity, costing no query, and defaults ReadOnly to true because those are the engine's own instances; 'lazy' fills on first access and requires both. RelatedEntity and RelatedEntityJoinField are NOT repeated here — they are read from this row's own columns. NULL means the relationship is not a declared collection, which is the default and reproduces pre-6.2 behaviour exactly.
52865
+ */
52866
+ get RelatedRecordCollection(): string | null;
52867
+ set RelatedRecordCollection(value: string | null);
52868
+ private _RelatedRecordCollectionObject_cached;
52869
+ private _RelatedRecordCollectionObject_lastRaw;
52870
+ /**
52871
+ * Typed accessor for RelatedRecordCollection — returns parsed JSON as MJEntityRelationshipEntity_IRelatedRecordCollectionConfig.
52872
+ * Uses lazy parsing with cache invalidation when the underlying raw value changes.
52873
+ */
52874
+ get RelatedRecordCollectionObject(): MJEntityRelationshipEntity_IRelatedRecordCollectionConfig | null;
52875
+ set RelatedRecordCollectionObject(value: MJEntityRelationshipEntity_IRelatedRecordCollectionConfig | null);
52876
+ /**
52240
52877
  * * Field Name: Entity
52878
+ * * Display Name: Entity Name
52241
52879
  * * SQL Data Type: nvarchar(255)
52242
52880
  */
52243
52881
  get Entity(): string;
@@ -52255,7 +52893,7 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52255
52893
  get EntityBaseView(): string;
52256
52894
  /**
52257
52895
  * * Field Name: RelatedEntity
52258
- * * Display Name: Related Entity
52896
+ * * Display Name: Related Entity Name
52259
52897
  * * SQL Data Type: nvarchar(255)
52260
52898
  */
52261
52899
  get RelatedEntity(): string;
@@ -60367,68 +61005,6 @@ export declare class MJOutputFormatTypeEntity extends BaseEntity<MJOutputFormatT
60367
61005
  */
60368
61006
  get __mj_UpdatedAt(): Date;
60369
61007
  }
60370
- /**
60371
- * MJ: Output Trigger Types - strongly typed entity sub-class
60372
- * * Schema: __mj
60373
- * * Base Table: OutputTriggerType
60374
- * * Base View: vwOutputTriggerTypes
60375
- * * @description Defines events that can trigger output generation such as schedules, data changes, or manual requests.
60376
- * * Primary Key: ID
60377
- * @extends {BaseEntity}
60378
- * @class
60379
- * @public
60380
- * @deprecated This entity is deprecated and will be removed in a future version. Using it will result in console warnings.
60381
- */
60382
- export declare class MJOutputTriggerTypeEntity extends BaseEntity<MJOutputTriggerTypeEntityType> {
60383
- /**
60384
- * Loads the MJ: Output Trigger Types record from the database
60385
- * @param ID: string - primary key value to load the MJ: Output Trigger Types record.
60386
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
60387
- * @returns {Promise<boolean>} - true if successful, false otherwise
60388
- * @public
60389
- * @async
60390
- * @memberof MJOutputTriggerTypeEntity
60391
- * @method
60392
- * @override
60393
- */
60394
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
60395
- /**
60396
- * * Field Name: ID
60397
- * * Display Name: ID
60398
- * * SQL Data Type: uniqueidentifier
60399
- * * Default Value: newsequentialid()
60400
- */
60401
- get ID(): string;
60402
- set ID(value: string);
60403
- /**
60404
- * * Field Name: Name
60405
- * * Display Name: Name
60406
- * * SQL Data Type: nvarchar(255)
60407
- */
60408
- get Name(): string;
60409
- set Name(value: string);
60410
- /**
60411
- * * Field Name: Description
60412
- * * Display Name: Description
60413
- * * SQL Data Type: nvarchar(MAX)
60414
- */
60415
- get Description(): string | null;
60416
- set Description(value: string | null);
60417
- /**
60418
- * * Field Name: __mj_CreatedAt
60419
- * * Display Name: Created At
60420
- * * SQL Data Type: datetimeoffset
60421
- * * Default Value: getutcdate()
60422
- */
60423
- get __mj_CreatedAt(): Date;
60424
- /**
60425
- * * Field Name: __mj_UpdatedAt
60426
- * * Display Name: Updated At
60427
- * * SQL Data Type: datetimeoffset
60428
- * * Default Value: getutcdate()
60429
- */
60430
- get __mj_UpdatedAt(): Date;
60431
- }
60432
61008
  /**
60433
61009
  * MJ: Permission Domains - strongly typed entity sub-class
60434
61010
  * * Schema: __mj
@@ -64961,642 +65537,6 @@ export declare class MJRemoteOperationEntity extends BaseEntity<MJRemoteOperatio
64961
65537
  */
64962
65538
  get CodeApprovedByUser(): string | null;
64963
65539
  }
64964
- /**
64965
- * MJ: Report Categories - strongly typed entity sub-class
64966
- * * Schema: __mj
64967
- * * Base Table: ReportCategory
64968
- * * Base View: vwReportCategories
64969
- * * @description Organizes reports into logical groupings for navigation, access control, and discovery within the reporting system.
64970
- * * Primary Key: ID
64971
- * @extends {BaseEntity}
64972
- * @class
64973
- * @public
64974
- */
64975
- export declare class MJReportCategoryEntity extends BaseEntity<MJReportCategoryEntityType> {
64976
- /**
64977
- * Loads the MJ: Report Categories record from the database
64978
- * @param ID: string - primary key value to load the MJ: Report Categories record.
64979
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
64980
- * @returns {Promise<boolean>} - true if successful, false otherwise
64981
- * @public
64982
- * @async
64983
- * @memberof MJReportCategoryEntity
64984
- * @method
64985
- * @override
64986
- */
64987
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
64988
- /**
64989
- * * Field Name: ID
64990
- * * Display Name: ID
64991
- * * SQL Data Type: uniqueidentifier
64992
- * * Default Value: newsequentialid()
64993
- */
64994
- get ID(): string;
64995
- set ID(value: string);
64996
- /**
64997
- * * Field Name: Name
64998
- * * Display Name: Name
64999
- * * SQL Data Type: nvarchar(100)
65000
- */
65001
- get Name(): string;
65002
- set Name(value: string);
65003
- /**
65004
- * * Field Name: Description
65005
- * * Display Name: Description
65006
- * * SQL Data Type: nvarchar(MAX)
65007
- */
65008
- get Description(): string | null;
65009
- set Description(value: string | null);
65010
- /**
65011
- * * Field Name: ParentID
65012
- * * Display Name: Parent ID
65013
- * * SQL Data Type: uniqueidentifier
65014
- * * Related Entity/Foreign Key: MJ: Report Categories (vwReportCategories.ID)
65015
- */
65016
- get ParentID(): string | null;
65017
- set ParentID(value: string | null);
65018
- /**
65019
- * * Field Name: UserID
65020
- * * Display Name: User ID
65021
- * * SQL Data Type: uniqueidentifier
65022
- * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
65023
- */
65024
- get UserID(): string;
65025
- set UserID(value: string);
65026
- /**
65027
- * * Field Name: __mj_CreatedAt
65028
- * * Display Name: Created At
65029
- * * SQL Data Type: datetimeoffset
65030
- * * Default Value: getutcdate()
65031
- */
65032
- get __mj_CreatedAt(): Date;
65033
- /**
65034
- * * Field Name: __mj_UpdatedAt
65035
- * * Display Name: Updated At
65036
- * * SQL Data Type: datetimeoffset
65037
- * * Default Value: getutcdate()
65038
- */
65039
- get __mj_UpdatedAt(): Date;
65040
- /**
65041
- * * Field Name: Parent
65042
- * * Display Name: Parent
65043
- * * SQL Data Type: nvarchar(100)
65044
- */
65045
- get Parent(): string | null;
65046
- /**
65047
- * * Field Name: User
65048
- * * Display Name: User
65049
- * * SQL Data Type: nvarchar(100)
65050
- */
65051
- get User(): string;
65052
- /**
65053
- * * Field Name: RootParentID
65054
- * * Display Name: Root Parent ID
65055
- * * SQL Data Type: uniqueidentifier
65056
- */
65057
- get RootParentID(): string | null;
65058
- }
65059
- /**
65060
- * MJ: Report Snapshots - strongly typed entity sub-class
65061
- * * Schema: __mj
65062
- * * Base Table: ReportSnapshot
65063
- * * Base View: vwReportSnapshots
65064
- * * @description Stores point-in-time captures of report outputs, preserving historical data and enabling comparison over time.
65065
- * * Primary Key: ID
65066
- * @extends {BaseEntity}
65067
- * @class
65068
- * @public
65069
- */
65070
- export declare class MJReportSnapshotEntity extends BaseEntity<MJReportSnapshotEntityType> {
65071
- /**
65072
- * Loads the MJ: Report Snapshots record from the database
65073
- * @param ID: string - primary key value to load the MJ: Report Snapshots record.
65074
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
65075
- * @returns {Promise<boolean>} - true if successful, false otherwise
65076
- * @public
65077
- * @async
65078
- * @memberof MJReportSnapshotEntity
65079
- * @method
65080
- * @override
65081
- */
65082
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
65083
- /**
65084
- * * Field Name: ID
65085
- * * Display Name: ID
65086
- * * SQL Data Type: uniqueidentifier
65087
- * * Default Value: newsequentialid()
65088
- */
65089
- get ID(): string;
65090
- set ID(value: string);
65091
- /**
65092
- * * Field Name: ReportID
65093
- * * Display Name: Report ID
65094
- * * SQL Data Type: uniqueidentifier
65095
- * * Related Entity/Foreign Key: MJ: Reports (vwReports.ID)
65096
- */
65097
- get ReportID(): string;
65098
- set ReportID(value: string);
65099
- /**
65100
- * * Field Name: ResultSet
65101
- * * Display Name: Result Set
65102
- * * SQL Data Type: nvarchar(MAX)
65103
- * * Description: Field ResultSet for entity Report Snapshots.
65104
- */
65105
- get ResultSet(): string;
65106
- set ResultSet(value: string);
65107
- /**
65108
- * * Field Name: UserID
65109
- * * Display Name: User ID
65110
- * * SQL Data Type: uniqueidentifier
65111
- * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
65112
- */
65113
- get UserID(): string;
65114
- set UserID(value: string);
65115
- /**
65116
- * * Field Name: __mj_CreatedAt
65117
- * * Display Name: Created At
65118
- * * SQL Data Type: datetimeoffset
65119
- * * Default Value: getutcdate()
65120
- */
65121
- get __mj_CreatedAt(): Date;
65122
- /**
65123
- * * Field Name: __mj_UpdatedAt
65124
- * * Display Name: Updated At
65125
- * * SQL Data Type: datetimeoffset
65126
- * * Default Value: getutcdate()
65127
- */
65128
- get __mj_UpdatedAt(): Date;
65129
- /**
65130
- * * Field Name: Report
65131
- * * Display Name: Report
65132
- * * SQL Data Type: nvarchar(255)
65133
- */
65134
- get Report(): string;
65135
- /**
65136
- * * Field Name: User
65137
- * * Display Name: User
65138
- * * SQL Data Type: nvarchar(100)
65139
- */
65140
- get User(): string;
65141
- }
65142
- /**
65143
- * MJ: Report User States - strongly typed entity sub-class
65144
- * * Schema: __mj
65145
- * * Base Table: ReportUserState
65146
- * * Base View: vwReportUserStates
65147
- * * @description Tracks individual user state within interactive reports
65148
- * * Primary Key: ID
65149
- * @extends {BaseEntity}
65150
- * @class
65151
- * @public
65152
- */
65153
- export declare class MJReportUserStateEntity extends BaseEntity<MJReportUserStateEntityType> {
65154
- /**
65155
- * Loads the MJ: Report User States record from the database
65156
- * @param ID: string - primary key value to load the MJ: Report User States record.
65157
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
65158
- * @returns {Promise<boolean>} - true if successful, false otherwise
65159
- * @public
65160
- * @async
65161
- * @memberof MJReportUserStateEntity
65162
- * @method
65163
- * @override
65164
- */
65165
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
65166
- /**
65167
- * * Field Name: ID
65168
- * * Display Name: ID
65169
- * * SQL Data Type: uniqueidentifier
65170
- * * Default Value: newsequentialid()
65171
- */
65172
- get ID(): string;
65173
- set ID(value: string);
65174
- /**
65175
- * * Field Name: ReportID
65176
- * * Display Name: Report ID
65177
- * * SQL Data Type: uniqueidentifier
65178
- * * Related Entity/Foreign Key: MJ: Reports (vwReports.ID)
65179
- */
65180
- get ReportID(): string;
65181
- set ReportID(value: string);
65182
- /**
65183
- * * Field Name: UserID
65184
- * * Display Name: User ID
65185
- * * SQL Data Type: uniqueidentifier
65186
- * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
65187
- */
65188
- get UserID(): string;
65189
- set UserID(value: string);
65190
- /**
65191
- * * Field Name: ReportState
65192
- * * Display Name: Report State
65193
- * * SQL Data Type: nvarchar(MAX)
65194
- * * Description: JSON serialized state of user interaction with the report
65195
- */
65196
- get ReportState(): string | null;
65197
- set ReportState(value: string | null);
65198
- /**
65199
- * * Field Name: __mj_CreatedAt
65200
- * * Display Name: Created At
65201
- * * SQL Data Type: datetimeoffset
65202
- * * Default Value: getutcdate()
65203
- */
65204
- get __mj_CreatedAt(): Date;
65205
- /**
65206
- * * Field Name: __mj_UpdatedAt
65207
- * * Display Name: Updated At
65208
- * * SQL Data Type: datetimeoffset
65209
- * * Default Value: getutcdate()
65210
- */
65211
- get __mj_UpdatedAt(): Date;
65212
- /**
65213
- * * Field Name: Report
65214
- * * Display Name: Report
65215
- * * SQL Data Type: nvarchar(255)
65216
- */
65217
- get Report(): string;
65218
- /**
65219
- * * Field Name: User
65220
- * * Display Name: User
65221
- * * SQL Data Type: nvarchar(100)
65222
- */
65223
- get User(): string;
65224
- }
65225
- /**
65226
- * MJ: Report Versions - strongly typed entity sub-class
65227
- * * Schema: __mj
65228
- * * Base Table: ReportVersion
65229
- * * Base View: vwReportVersions
65230
- * * @description Stores iterations of report logic, structure, and layout changes
65231
- * * Primary Key: ID
65232
- * @extends {BaseEntity}
65233
- * @class
65234
- * @public
65235
- */
65236
- export declare class MJReportVersionEntity extends BaseEntity<MJReportVersionEntityType> {
65237
- /**
65238
- * Loads the MJ: Report Versions record from the database
65239
- * @param ID: string - primary key value to load the MJ: Report Versions record.
65240
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
65241
- * @returns {Promise<boolean>} - true if successful, false otherwise
65242
- * @public
65243
- * @async
65244
- * @memberof MJReportVersionEntity
65245
- * @method
65246
- * @override
65247
- */
65248
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
65249
- /**
65250
- * Validate() method override for MJ: Report Versions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
65251
- * * VersionNumber: This rule ensures that the Version Number must be greater than zero.
65252
- * @public
65253
- * @method
65254
- * @override
65255
- */
65256
- Validate(): ValidationResult;
65257
- /**
65258
- * This rule ensures that the Version Number must be greater than zero.
65259
- * @param result - the ValidationResult object to add any errors or warnings to
65260
- * @public
65261
- * @method
65262
- */
65263
- ValidateVersionNumberGreaterThanZero(result: ValidationResult): void;
65264
- /**
65265
- * * Field Name: ID
65266
- * * Display Name: ID
65267
- * * SQL Data Type: uniqueidentifier
65268
- * * Default Value: newsequentialid()
65269
- */
65270
- get ID(): string;
65271
- set ID(value: string);
65272
- /**
65273
- * * Field Name: ReportID
65274
- * * Display Name: Report ID
65275
- * * SQL Data Type: uniqueidentifier
65276
- * * Related Entity/Foreign Key: MJ: Reports (vwReports.ID)
65277
- */
65278
- get ReportID(): string;
65279
- set ReportID(value: string);
65280
- /**
65281
- * * Field Name: VersionNumber
65282
- * * Display Name: Version Number
65283
- * * SQL Data Type: int
65284
- * * Description: Report version number, sequential per report starting at 1
65285
- */
65286
- get VersionNumber(): number;
65287
- set VersionNumber(value: number);
65288
- /**
65289
- * * Field Name: Name
65290
- * * Display Name: Name
65291
- * * SQL Data Type: nvarchar(255)
65292
- * * Description: Name of this report version
65293
- */
65294
- get Name(): string;
65295
- set Name(value: string);
65296
- /**
65297
- * * Field Name: Description
65298
- * * Display Name: Description
65299
- * * SQL Data Type: nvarchar(MAX)
65300
- * * Description: Description of this report version
65301
- */
65302
- get Description(): string | null;
65303
- set Description(value: string | null);
65304
- /**
65305
- * * Field Name: Configuration
65306
- * * Display Name: Configuration
65307
- * * SQL Data Type: nvarchar(MAX)
65308
- * * Description: JSON configuration of report structure, layout and logic
65309
- */
65310
- get Configuration(): string | null;
65311
- set Configuration(value: string | null);
65312
- /**
65313
- * * Field Name: DataContextUpdated
65314
- * * Display Name: Data Context Updated
65315
- * * SQL Data Type: bit
65316
- * * Default Value: 0
65317
- * * Description: Indicates if the data context was updated in this version
65318
- */
65319
- get DataContextUpdated(): boolean;
65320
- set DataContextUpdated(value: boolean);
65321
- /**
65322
- * * Field Name: __mj_CreatedAt
65323
- * * Display Name: Created At
65324
- * * SQL Data Type: datetimeoffset
65325
- * * Default Value: getutcdate()
65326
- */
65327
- get __mj_CreatedAt(): Date;
65328
- /**
65329
- * * Field Name: __mj_UpdatedAt
65330
- * * Display Name: Updated At
65331
- * * SQL Data Type: datetimeoffset
65332
- * * Default Value: getutcdate()
65333
- */
65334
- get __mj_UpdatedAt(): Date;
65335
- /**
65336
- * * Field Name: Report
65337
- * * Display Name: Report
65338
- * * SQL Data Type: nvarchar(255)
65339
- */
65340
- get Report(): string;
65341
- }
65342
- /**
65343
- * MJ: Reports - strongly typed entity sub-class
65344
- * * Schema: __mj
65345
- * * Base Table: Report
65346
- * * Base View: vwReports
65347
- * * @description Defines report configurations including data sources, layouts, filters, and scheduling for automated report generation.
65348
- * * Primary Key: ID
65349
- * @extends {BaseEntity}
65350
- * @class
65351
- * @public
65352
- */
65353
- export declare class MJReportEntity extends BaseEntity<MJReportEntityType> {
65354
- /**
65355
- * Loads the MJ: Reports record from the database
65356
- * @param ID: string - primary key value to load the MJ: Reports record.
65357
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
65358
- * @returns {Promise<boolean>} - true if successful, false otherwise
65359
- * @public
65360
- * @async
65361
- * @memberof MJReportEntity
65362
- * @method
65363
- * @override
65364
- */
65365
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
65366
- /**
65367
- * MJ: Reports - Delete method override to wrap in transaction since CascadeDeletes is true.
65368
- * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
65369
- * @public
65370
- * @method
65371
- * @override
65372
- * @memberof MJReportEntity
65373
- * @returns {Promise<boolean>} - true if successful, false otherwise
65374
- */
65375
- Delete(options?: EntityDeleteOptions): Promise<boolean>;
65376
- /**
65377
- * * Field Name: ID
65378
- * * Display Name: ID
65379
- * * SQL Data Type: uniqueidentifier
65380
- * * Default Value: newsequentialid()
65381
- */
65382
- get ID(): string;
65383
- set ID(value: string);
65384
- /**
65385
- * * Field Name: Name
65386
- * * Display Name: Name
65387
- * * SQL Data Type: nvarchar(255)
65388
- */
65389
- get Name(): string;
65390
- set Name(value: string);
65391
- /**
65392
- * * Field Name: Description
65393
- * * Display Name: Description
65394
- * * SQL Data Type: nvarchar(MAX)
65395
- */
65396
- get Description(): string | null;
65397
- set Description(value: string | null);
65398
- /**
65399
- * * Field Name: CategoryID
65400
- * * Display Name: Category
65401
- * * SQL Data Type: uniqueidentifier
65402
- * * Related Entity/Foreign Key: MJ: Report Categories (vwReportCategories.ID)
65403
- */
65404
- get CategoryID(): string | null;
65405
- set CategoryID(value: string | null);
65406
- /**
65407
- * * Field Name: UserID
65408
- * * Display Name: User
65409
- * * SQL Data Type: uniqueidentifier
65410
- * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
65411
- */
65412
- get UserID(): string;
65413
- set UserID(value: string);
65414
- /**
65415
- * * Field Name: SharingScope
65416
- * * Display Name: Sharing Scope
65417
- * * SQL Data Type: nvarchar(20)
65418
- * * Default Value: Personal
65419
- * * Value List Type: List
65420
- * * Possible Values
65421
- * * Everyone
65422
- * * None
65423
- * * Specific
65424
- * * Description: Field SharingScope for entity Reports.
65425
- */
65426
- get SharingScope(): 'Everyone' | 'None' | 'Specific';
65427
- set SharingScope(value: 'Everyone' | 'None' | 'Specific');
65428
- /**
65429
- * * Field Name: ConversationID
65430
- * * Display Name: Conversation
65431
- * * SQL Data Type: uniqueidentifier
65432
- * * Related Entity/Foreign Key: MJ: Conversations (vwConversations.ID)
65433
- */
65434
- get ConversationID(): string | null;
65435
- set ConversationID(value: string | null);
65436
- /**
65437
- * * Field Name: ConversationDetailID
65438
- * * Display Name: Conversation Detail
65439
- * * SQL Data Type: uniqueidentifier
65440
- * * Related Entity/Foreign Key: MJ: Conversation Details (vwConversationDetails.ID)
65441
- */
65442
- get ConversationDetailID(): string | null;
65443
- set ConversationDetailID(value: string | null);
65444
- /**
65445
- * * Field Name: DataContextID
65446
- * * Display Name: Data Context
65447
- * * SQL Data Type: uniqueidentifier
65448
- * * Related Entity/Foreign Key: MJ: Data Contexts (vwDataContexts.ID)
65449
- */
65450
- get DataContextID(): string | null;
65451
- set DataContextID(value: string | null);
65452
- /**
65453
- * * Field Name: Configuration
65454
- * * Display Name: Configuration
65455
- * * SQL Data Type: nvarchar(MAX)
65456
- * * Description: Field Configuration for entity Reports.
65457
- */
65458
- get Configuration(): string | null;
65459
- set Configuration(value: string | null);
65460
- /**
65461
- * * Field Name: OutputTriggerTypeID
65462
- * * Display Name: Output Trigger Type
65463
- * * SQL Data Type: uniqueidentifier
65464
- * * Related Entity/Foreign Key: MJ: Output Trigger Types (vwOutputTriggerTypes.ID)
65465
- */
65466
- get OutputTriggerTypeID(): string | null;
65467
- set OutputTriggerTypeID(value: string | null);
65468
- /**
65469
- * * Field Name: OutputFormatTypeID
65470
- * * Display Name: Output Format Type
65471
- * * SQL Data Type: uniqueidentifier
65472
- * * Related Entity/Foreign Key: MJ: Output Format Types (vwOutputFormatTypes.ID)
65473
- */
65474
- get OutputFormatTypeID(): string | null;
65475
- set OutputFormatTypeID(value: string | null);
65476
- /**
65477
- * * Field Name: OutputDeliveryTypeID
65478
- * * Display Name: Output Delivery Type
65479
- * * SQL Data Type: uniqueidentifier
65480
- * * Related Entity/Foreign Key: MJ: Output Delivery Types (vwOutputDeliveryTypes.ID)
65481
- */
65482
- get OutputDeliveryTypeID(): string | null;
65483
- set OutputDeliveryTypeID(value: string | null);
65484
- /**
65485
- * * Field Name: OutputFrequency
65486
- * * Display Name: Output Frequency
65487
- * * SQL Data Type: nvarchar(50)
65488
- * * Description: For scheduled reports, the frequency of generation (Daily, Weekly, Monthly, etc.).
65489
- */
65490
- get OutputFrequency(): string | null;
65491
- set OutputFrequency(value: string | null);
65492
- /**
65493
- * * Field Name: OutputTargetEmail
65494
- * * Display Name: Output Target Email
65495
- * * SQL Data Type: nvarchar(255)
65496
- * * Description: Email address(es) to send the report to when using email delivery.
65497
- */
65498
- get OutputTargetEmail(): string | null;
65499
- set OutputTargetEmail(value: string | null);
65500
- /**
65501
- * * Field Name: OutputWorkflowID
65502
- * * Display Name: Output Workflow
65503
- * * SQL Data Type: uniqueidentifier
65504
- * * Related Entity/Foreign Key: MJ: Workflows (vwWorkflows.ID)
65505
- */
65506
- get OutputWorkflowID(): string | null;
65507
- set OutputWorkflowID(value: string | null);
65508
- /**
65509
- * * Field Name: __mj_CreatedAt
65510
- * * Display Name: Created At
65511
- * * SQL Data Type: datetimeoffset
65512
- * * Default Value: getutcdate()
65513
- */
65514
- get __mj_CreatedAt(): Date;
65515
- /**
65516
- * * Field Name: __mj_UpdatedAt
65517
- * * Display Name: Updated At
65518
- * * SQL Data Type: datetimeoffset
65519
- * * Default Value: getutcdate()
65520
- */
65521
- get __mj_UpdatedAt(): Date;
65522
- /**
65523
- * * Field Name: Thumbnail
65524
- * * Display Name: Thumbnail
65525
- * * SQL Data Type: nvarchar(MAX)
65526
- * * Description: Thumbnail image for the report that can be displayed in gallery views. Can contain either a URL to an image file or a Base64-encoded image string.
65527
- */
65528
- get Thumbnail(): string | null;
65529
- set Thumbnail(value: string | null);
65530
- /**
65531
- * * Field Name: EnvironmentID
65532
- * * Display Name: Environment
65533
- * * SQL Data Type: uniqueidentifier
65534
- * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
65535
- * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
65536
- */
65537
- get EnvironmentID(): string;
65538
- set EnvironmentID(value: string);
65539
- /**
65540
- * * Field Name: Category
65541
- * * Display Name: Category Name
65542
- * * SQL Data Type: nvarchar(100)
65543
- */
65544
- get Category(): string | null;
65545
- /**
65546
- * * Field Name: User
65547
- * * Display Name: User Name
65548
- * * SQL Data Type: nvarchar(100)
65549
- */
65550
- get User(): string;
65551
- /**
65552
- * * Field Name: Conversation
65553
- * * Display Name: Conversation Name
65554
- * * SQL Data Type: nvarchar(255)
65555
- */
65556
- get Conversation(): string | null;
65557
- /**
65558
- * * Field Name: ConversationDetail
65559
- * * Display Name: Conversation Detail Name
65560
- * * SQL Data Type: nvarchar(100)
65561
- */
65562
- get ConversationDetail(): string | null;
65563
- /**
65564
- * * Field Name: DataContext
65565
- * * Display Name: Data Context Name
65566
- * * SQL Data Type: nvarchar(255)
65567
- */
65568
- get DataContext(): string | null;
65569
- /**
65570
- * * Field Name: OutputTriggerType
65571
- * * Display Name: Output Trigger Type Name
65572
- * * SQL Data Type: nvarchar(255)
65573
- */
65574
- get OutputTriggerType(): string | null;
65575
- /**
65576
- * * Field Name: OutputFormatType
65577
- * * Display Name: Output Format Type Name
65578
- * * SQL Data Type: nvarchar(255)
65579
- */
65580
- get OutputFormatType(): string | null;
65581
- /**
65582
- * * Field Name: OutputDeliveryType
65583
- * * Display Name: Output Delivery Type Name
65584
- * * SQL Data Type: nvarchar(255)
65585
- */
65586
- get OutputDeliveryType(): string | null;
65587
- /**
65588
- * * Field Name: OutputWorkflow
65589
- * * Display Name: Output Workflow Name
65590
- * * SQL Data Type: nvarchar(100)
65591
- */
65592
- get OutputWorkflow(): string | null;
65593
- /**
65594
- * * Field Name: Environment
65595
- * * Display Name: Environment Name
65596
- * * SQL Data Type: nvarchar(255)
65597
- */
65598
- get Environment(): string;
65599
- }
65600
65540
  /**
65601
65541
  * MJ: Resource Links - strongly typed entity sub-class
65602
65542
  * * Schema: __mj
@@ -66134,283 +66074,6 @@ export declare class MJRowLevelSecurityFilterEntity extends BaseEntity<MJRowLeve
66134
66074
  */
66135
66075
  get __mj_UpdatedAt(): Date;
66136
66076
  }
66137
- /**
66138
- * MJ: Scheduled Action Params - strongly typed entity sub-class
66139
- * * Schema: __mj
66140
- * * Base Table: ScheduledActionParam
66141
- * * Base View: vwScheduledActionParams
66142
- * * @description Stores parameter values for scheduled action executions, configuring inputs for automated action runs.
66143
- * * Primary Key: ID
66144
- * @extends {BaseEntity}
66145
- * @class
66146
- * @public
66147
- */
66148
- export declare class MJScheduledActionParamEntity extends BaseEntity<MJScheduledActionParamEntityType> {
66149
- /**
66150
- * Loads the MJ: Scheduled Action Params record from the database
66151
- * @param ID: string - primary key value to load the MJ: Scheduled Action Params record.
66152
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
66153
- * @returns {Promise<boolean>} - true if successful, false otherwise
66154
- * @public
66155
- * @async
66156
- * @memberof MJScheduledActionParamEntity
66157
- * @method
66158
- * @override
66159
- */
66160
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
66161
- /**
66162
- * * Field Name: ID
66163
- * * Display Name: ID
66164
- * * SQL Data Type: uniqueidentifier
66165
- * * Default Value: newsequentialid()
66166
- */
66167
- get ID(): string;
66168
- set ID(value: string);
66169
- /**
66170
- * * Field Name: ScheduledActionID
66171
- * * Display Name: Scheduled Action ID
66172
- * * SQL Data Type: uniqueidentifier
66173
- * * Related Entity/Foreign Key: MJ: Scheduled Actions (vwScheduledActions.ID)
66174
- */
66175
- get ScheduledActionID(): string;
66176
- set ScheduledActionID(value: string);
66177
- /**
66178
- * * Field Name: ActionParamID
66179
- * * Display Name: Action Param ID
66180
- * * SQL Data Type: uniqueidentifier
66181
- * * Related Entity/Foreign Key: MJ: Action Params (vwActionParams.ID)
66182
- */
66183
- get ActionParamID(): string;
66184
- set ActionParamID(value: string);
66185
- /**
66186
- * * Field Name: ValueType
66187
- * * Display Name: Value Type
66188
- * * SQL Data Type: nvarchar(20)
66189
- * * Value List Type: List
66190
- * * Possible Values
66191
- * * SQL Statement
66192
- * * Static
66193
- * * Description: Field ValueType for entity Scheduled Action Params.
66194
- */
66195
- get ValueType(): 'SQL Statement' | 'Static';
66196
- set ValueType(value: 'SQL Statement' | 'Static');
66197
- /**
66198
- * * Field Name: Value
66199
- * * Display Name: Value
66200
- * * SQL Data Type: nvarchar(MAX)
66201
- * * Description: Field Value for entity Scheduled Action Params.
66202
- */
66203
- get Value(): string | null;
66204
- set Value(value: string | null);
66205
- /**
66206
- * * Field Name: Comments
66207
- * * Display Name: Comments
66208
- * * SQL Data Type: nvarchar(MAX)
66209
- */
66210
- get Comments(): string | null;
66211
- set Comments(value: string | null);
66212
- /**
66213
- * * Field Name: __mj_CreatedAt
66214
- * * Display Name: Created At
66215
- * * SQL Data Type: datetimeoffset
66216
- * * Default Value: getutcdate()
66217
- */
66218
- get __mj_CreatedAt(): Date;
66219
- /**
66220
- * * Field Name: __mj_UpdatedAt
66221
- * * Display Name: Updated At
66222
- * * SQL Data Type: datetimeoffset
66223
- * * Default Value: getutcdate()
66224
- */
66225
- get __mj_UpdatedAt(): Date;
66226
- /**
66227
- * * Field Name: ScheduledAction
66228
- * * Display Name: Scheduled Action
66229
- * * SQL Data Type: nvarchar(255)
66230
- */
66231
- get ScheduledAction(): string;
66232
- /**
66233
- * * Field Name: ActionParam
66234
- * * Display Name: Action Param
66235
- * * SQL Data Type: nvarchar(255)
66236
- */
66237
- get ActionParam(): string;
66238
- }
66239
- /**
66240
- * MJ: Scheduled Actions - strongly typed entity sub-class
66241
- * * Schema: __mj
66242
- * * Base Table: ScheduledAction
66243
- * * Base View: vwScheduledActions
66244
- * * @description Track scheduled actions and their details
66245
- * * Primary Key: ID
66246
- * @extends {BaseEntity}
66247
- * @class
66248
- * @public
66249
- */
66250
- export declare class MJScheduledActionEntity extends BaseEntity<MJScheduledActionEntityType> {
66251
- /**
66252
- * Loads the MJ: Scheduled Actions record from the database
66253
- * @param ID: string - primary key value to load the MJ: Scheduled Actions record.
66254
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
66255
- * @returns {Promise<boolean>} - true if successful, false otherwise
66256
- * @public
66257
- * @async
66258
- * @memberof MJScheduledActionEntity
66259
- * @method
66260
- * @override
66261
- */
66262
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
66263
- /**
66264
- * * Field Name: ID
66265
- * * Display Name: ID
66266
- * * SQL Data Type: uniqueidentifier
66267
- * * Default Value: newsequentialid()
66268
- */
66269
- get ID(): string;
66270
- set ID(value: string);
66271
- /**
66272
- * * Field Name: Name
66273
- * * Display Name: Name
66274
- * * SQL Data Type: nvarchar(255)
66275
- */
66276
- get Name(): string;
66277
- set Name(value: string);
66278
- /**
66279
- * * Field Name: Description
66280
- * * Display Name: Description
66281
- * * SQL Data Type: nvarchar(MAX)
66282
- */
66283
- get Description(): string | null;
66284
- set Description(value: string | null);
66285
- /**
66286
- * * Field Name: CreatedByUserID
66287
- * * Display Name: Created By User ID
66288
- * * SQL Data Type: uniqueidentifier
66289
- * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
66290
- */
66291
- get CreatedByUserID(): string;
66292
- set CreatedByUserID(value: string);
66293
- /**
66294
- * * Field Name: ActionID
66295
- * * Display Name: Action ID
66296
- * * SQL Data Type: uniqueidentifier
66297
- * * Related Entity/Foreign Key: MJ: Actions (vwActions.ID)
66298
- */
66299
- get ActionID(): string;
66300
- set ActionID(value: string);
66301
- /**
66302
- * * Field Name: Type
66303
- * * Display Name: Type
66304
- * * SQL Data Type: nvarchar(20)
66305
- * * Value List Type: List
66306
- * * Possible Values
66307
- * * Custom
66308
- * * Daily
66309
- * * Monthly
66310
- * * Weekly
66311
- * * Yearly
66312
- * * Description: Type of the scheduled action (Daily, Weekly, Monthly, Yearly, Custom)
66313
- */
66314
- get Type(): 'Custom' | 'Daily' | 'Monthly' | 'Weekly' | 'Yearly';
66315
- set Type(value: 'Custom' | 'Daily' | 'Monthly' | 'Weekly' | 'Yearly');
66316
- /**
66317
- * * Field Name: CronExpression
66318
- * * Display Name: Cron Expression
66319
- * * SQL Data Type: nvarchar(100)
66320
- * * Description: Cron expression defining the schedule, automatically maintained by the system unless Type is Custom, in which case the user directly sets this
66321
- */
66322
- get CronExpression(): string | null;
66323
- set CronExpression(value: string | null);
66324
- /**
66325
- * * Field Name: Timezone
66326
- * * Display Name: Timezone
66327
- * * SQL Data Type: nvarchar(100)
66328
- * * Description: Timezone for the scheduled action, if not specified defaults to UTC/Z
66329
- */
66330
- get Timezone(): string;
66331
- set Timezone(value: string);
66332
- /**
66333
- * * Field Name: Status
66334
- * * Display Name: Status
66335
- * * SQL Data Type: nvarchar(20)
66336
- * * Default Value: Pending
66337
- * * Value List Type: List
66338
- * * Possible Values
66339
- * * Active
66340
- * * Disabled
66341
- * * Expired
66342
- * * Pending
66343
- * * Description: Status of the scheduled action (Pending, Active, Disabled, Expired)
66344
- */
66345
- get Status(): 'Active' | 'Disabled' | 'Expired' | 'Pending';
66346
- set Status(value: 'Active' | 'Disabled' | 'Expired' | 'Pending');
66347
- /**
66348
- * * Field Name: IntervalDays
66349
- * * Display Name: Interval Days
66350
- * * SQL Data Type: int
66351
- * * Description: Interval in days for the scheduled action
66352
- */
66353
- get IntervalDays(): number | null;
66354
- set IntervalDays(value: number | null);
66355
- /**
66356
- * * Field Name: DayOfWeek
66357
- * * Display Name: Day Of Week
66358
- * * SQL Data Type: nvarchar(20)
66359
- * * Description: Day of the week for the scheduled action
66360
- */
66361
- get DayOfWeek(): string | null;
66362
- set DayOfWeek(value: string | null);
66363
- /**
66364
- * * Field Name: DayOfMonth
66365
- * * Display Name: Day Of Month
66366
- * * SQL Data Type: int
66367
- * * Description: Day of the month for the scheduled action
66368
- */
66369
- get DayOfMonth(): number | null;
66370
- set DayOfMonth(value: number | null);
66371
- /**
66372
- * * Field Name: Month
66373
- * * Display Name: Month
66374
- * * SQL Data Type: nvarchar(20)
66375
- * * Description: Month for the scheduled action
66376
- */
66377
- get Month(): string | null;
66378
- set Month(value: string | null);
66379
- /**
66380
- * * Field Name: CustomCronExpression
66381
- * * Display Name: Custom Cron Expression
66382
- * * SQL Data Type: nvarchar(255)
66383
- * * Description: Field CustomCronExpression for entity Scheduled Actions.
66384
- */
66385
- get CustomCronExpression(): string | null;
66386
- set CustomCronExpression(value: string | null);
66387
- /**
66388
- * * Field Name: __mj_CreatedAt
66389
- * * Display Name: Created At
66390
- * * SQL Data Type: datetimeoffset
66391
- * * Default Value: getutcdate()
66392
- */
66393
- get __mj_CreatedAt(): Date;
66394
- /**
66395
- * * Field Name: __mj_UpdatedAt
66396
- * * Display Name: Updated At
66397
- * * SQL Data Type: datetimeoffset
66398
- * * Default Value: getutcdate()
66399
- */
66400
- get __mj_UpdatedAt(): Date;
66401
- /**
66402
- * * Field Name: CreatedByUser
66403
- * * Display Name: Created By User
66404
- * * SQL Data Type: nvarchar(100)
66405
- */
66406
- get CreatedByUser(): string;
66407
- /**
66408
- * * Field Name: Action
66409
- * * Display Name: Action
66410
- * * SQL Data Type: nvarchar(425)
66411
- */
66412
- get Action(): string;
66413
- }
66414
66077
  /**
66415
66078
  * MJ: Scheduled Job Runs - strongly typed entity sub-class
66416
66079
  * * Schema: __mj
@@ -66712,7 +66375,7 @@ export declare class MJScheduledJobEntity extends BaseEntity<MJScheduledJobEntit
66712
66375
  set ID(value: string);
66713
66376
  /**
66714
66377
  * * Field Name: JobTypeID
66715
- * * Display Name: Job Type
66378
+ * * Display Name: Job Type ID
66716
66379
  * * SQL Data Type: uniqueidentifier
66717
66380
  * * Related Entity/Foreign Key: MJ: Scheduled Job Types (vwScheduledJobTypes.ID)
66718
66381
  */
@@ -66793,7 +66456,7 @@ export declare class MJScheduledJobEntity extends BaseEntity<MJScheduledJobEntit
66793
66456
  set Configuration(value: string | null);
66794
66457
  /**
66795
66458
  * * Field Name: OwnerUserID
66796
- * * Display Name: Owner
66459
+ * * Display Name: Owner User ID
66797
66460
  * * SQL Data Type: uniqueidentifier
66798
66461
  * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
66799
66462
  * * Description: User who owns this schedule. Used as the execution context if no specific user is configured in the job-specific configuration.
@@ -66863,7 +66526,7 @@ export declare class MJScheduledJobEntity extends BaseEntity<MJScheduledJobEntit
66863
66526
  set NotifyOnFailure(value: boolean);
66864
66527
  /**
66865
66528
  * * Field Name: NotifyUserID
66866
- * * Display Name: Notify User
66529
+ * * Display Name: Notify User ID
66867
66530
  * * SQL Data Type: uniqueidentifier
66868
66531
  * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
66869
66532
  * * Description: User to notify about job execution results. If NULL and notifications are enabled, falls back to OwnerUserID.
@@ -66959,27 +66622,41 @@ export declare class MJScheduledJobEntity extends BaseEntity<MJScheduledJobEntit
66959
66622
  set RunImmediatelyIfNeverRun(value: boolean);
66960
66623
  /**
66961
66624
  * * Field Name: MaxRuntimeMinutes
66962
- * * Display Name: Max Runtime (Minutes)
66625
+ * * Display Name: Max Runtime Minutes
66963
66626
  * * SQL Data Type: int
66964
66627
  * * Description: Optional per-job override for the acquire-time lock lease length, in minutes. When set and positive, the engine uses max(default lease, MaxRuntimeMinutes) as the initial ExpectedCompletionAt — so it only ever EXTENDS the default lease, never shrinks it. Intended for jobs whose work is a single long-running call that cannot heartbeat mid-flight (e.g. one slow synchronous action). Jobs that heartbeat via the plugin opt-in pattern do not need this. NULL = use the engine default lease (LeaseTimeoutMinutes). See plans/scheduled-job-engine-heartbeat-lease.md (GH #2749).
66965
66628
  */
66966
66629
  get MaxRuntimeMinutes(): number | null;
66967
66630
  set MaxRuntimeMinutes(value: number | null);
66968
66631
  /**
66632
+ * * Field Name: MissedRunPolicy
66633
+ * * Display Name: Missed Run Policy
66634
+ * * SQL Data Type: nvarchar(20)
66635
+ * * Default Value: RunOnce
66636
+ * * Value List Type: List
66637
+ * * Possible Values
66638
+ * * RunAll
66639
+ * * RunOnce
66640
+ * * Skip
66641
+ * * Description: What this job does about fire times that passed while the scheduler was not running (a deploy, a crash, a sleeping machine). RunOnce (the default) performs a single catch-up run and then resumes the normal schedule — correct for digests, syncs and anything where only the latest state matters, and identical to the behavior every job had before this column existed. RunAll replays each missed occurrence, one per poll tick so a long outage drains gradually rather than dispatching at once — correct for per-period work such as billing or metric snapshots, where skipping a period loses data nothing else recreates. Skip performs no catch-up at all and simply advances to the next future occurrence — correct for work whose value expires, such as a cache warm. A run is only treated as missed when a LATER occurrence has also come due, so a job that merely became due seconds ago is never misclassified; this is evaluated cron-relatively rather than against a fixed grace window, which would misjudge both a per-minute job after a short pause and a monthly job that is a week late.
66642
+ */
66643
+ get MissedRunPolicy(): 'RunAll' | 'RunOnce' | 'Skip';
66644
+ set MissedRunPolicy(value: 'RunAll' | 'RunOnce' | 'Skip');
66645
+ /**
66969
66646
  * * Field Name: JobType
66970
- * * Display Name: Job Type Name
66647
+ * * Display Name: Job Type
66971
66648
  * * SQL Data Type: nvarchar(100)
66972
66649
  */
66973
66650
  get JobType(): string;
66974
66651
  /**
66975
66652
  * * Field Name: OwnerUser
66976
- * * Display Name: Owner User Name
66653
+ * * Display Name: Owner User
66977
66654
  * * SQL Data Type: nvarchar(100)
66978
66655
  */
66979
66656
  get OwnerUser(): string | null;
66980
66657
  /**
66981
66658
  * * Field Name: NotifyUser
66982
- * * Display Name: Notify User Name
66659
+ * * Display Name: Notify User
66983
66660
  * * SQL Data Type: nvarchar(100)
66984
66661
  */
66985
66662
  get NotifyUser(): string | null;
@@ -70787,7 +70464,7 @@ export declare class MJTaskDependencyEntity extends BaseEntity<MJTaskDependencyE
70787
70464
  set ID(value: string);
70788
70465
  /**
70789
70466
  * * Field Name: TaskID
70790
- * * Display Name: Task ID
70467
+ * * Display Name: Task
70791
70468
  * * SQL Data Type: uniqueidentifier
70792
70469
  * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)
70793
70470
  */
@@ -70795,7 +70472,7 @@ export declare class MJTaskDependencyEntity extends BaseEntity<MJTaskDependencyE
70795
70472
  set TaskID(value: string);
70796
70473
  /**
70797
70474
  * * Field Name: DependsOnTaskID
70798
- * * Display Name: Depends On Task ID
70475
+ * * Display Name: Depends On Task
70799
70476
  * * SQL Data Type: uniqueidentifier
70800
70477
  * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)
70801
70478
  */
@@ -70830,14 +70507,22 @@ export declare class MJTaskDependencyEntity extends BaseEntity<MJTaskDependencyE
70830
70507
  */
70831
70508
  get __mj_UpdatedAt(): Date;
70832
70509
  /**
70510
+ * * Field Name: Condition
70511
+ * * Display Name: Condition
70512
+ * * SQL Data Type: nvarchar(MAX)
70513
+ * * Description: Optional boolean expression gating this dependency edge. NULL (the default, and the value every pre-existing row carries) means the edge is unconditional, so adding this column changes the meaning of no existing graph. When present it is evaluated by the shared GraphTraversalEngine against the same context a design-time AIAgentStepPath.Condition sees, which is what lets a runtime task graph and a flow-editor graph be the same graph. A condition that evaluates false skips the edge; one that fails to evaluate ALSO skips it, but is reported distinctly so a graph stalled by a malformed expression cannot be mistaken for one that finished normally.
70514
+ */
70515
+ get Condition(): string | null;
70516
+ set Condition(value: string | null);
70517
+ /**
70833
70518
  * * Field Name: Task
70834
- * * Display Name: Task
70519
+ * * Display Name: Task Name
70835
70520
  * * SQL Data Type: nvarchar(255)
70836
70521
  */
70837
70522
  get Task(): string;
70838
70523
  /**
70839
70524
  * * Field Name: DependsOnTask
70840
- * * Display Name: Depends On Task
70525
+ * * Display Name: Depends On Task Name
70841
70526
  * * SQL Data Type: nvarchar(255)
70842
70527
  */
70843
70528
  get DependsOnTask(): string;
@@ -70962,7 +70647,7 @@ export declare class MJTaskEntity extends BaseEntity<MJTaskEntityType> {
70962
70647
  set ID(value: string);
70963
70648
  /**
70964
70649
  * * Field Name: ParentID
70965
- * * Display Name: Parent
70650
+ * * Display Name: Parent Task
70966
70651
  * * SQL Data Type: uniqueidentifier
70967
70652
  * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)
70968
70653
  */
@@ -70970,7 +70655,7 @@ export declare class MJTaskEntity extends BaseEntity<MJTaskEntityType> {
70970
70655
  set ParentID(value: string | null);
70971
70656
  /**
70972
70657
  * * Field Name: Name
70973
- * * Display Name: Name
70658
+ * * Display Name: Task Name
70974
70659
  * * SQL Data Type: nvarchar(255)
70975
70660
  * * Description: Display name for the task
70976
70661
  */
@@ -70986,7 +70671,7 @@ export declare class MJTaskEntity extends BaseEntity<MJTaskEntityType> {
70986
70671
  set Description(value: string | null);
70987
70672
  /**
70988
70673
  * * Field Name: TypeID
70989
- * * Display Name: Type
70674
+ * * Display Name: Task Type
70990
70675
  * * SQL Data Type: uniqueidentifier
70991
70676
  * * Related Entity/Foreign Key: MJ: Task Types (vwTaskTypes.ID)
70992
70677
  */
@@ -71062,7 +70747,7 @@ export declare class MJTaskEntity extends BaseEntity<MJTaskEntityType> {
71062
70747
  set PercentComplete(value: number | null);
71063
70748
  /**
71064
70749
  * * Field Name: DueAt
71065
- * * Display Name: Due At
70750
+ * * Display Name: Due Date
71066
70751
  * * SQL Data Type: datetimeoffset
71067
70752
  * * Description: Due date and time for task completion
71068
70753
  */
@@ -71099,6 +70784,55 @@ export declare class MJTaskEntity extends BaseEntity<MJTaskEntityType> {
71099
70784
  */
71100
70785
  get __mj_UpdatedAt(): Date;
71101
70786
  /**
70787
+ * * Field Name: InputPayload
70788
+ * * Display Name: Input Payload
70789
+ * * SQL Data Type: nvarchar(MAX)
70790
+ * * Description: Structured input for this task, stored as JSON. Replaces the legacy __TASK_METADATA__ marker that was embedded in Description.
70791
+ */
70792
+ get InputPayload(): string | null;
70793
+ set InputPayload(value: string | null);
70794
+ /**
70795
+ * * Field Name: OutputPayload
70796
+ * * Display Name: Output Payload
70797
+ * * SQL Data Type: nvarchar(MAX)
70798
+ * * Description: Structured output produced by this task, stored as JSON. Downstream tasks read their dependencies' outputs from here. Replaces the legacy __TASK_OUTPUT__ marker that was embedded in Description.
70799
+ */
70800
+ get OutputPayload(): string | null;
70801
+ set OutputPayload(value: string | null);
70802
+ /**
70803
+ * * Field Name: ErrorMessage
70804
+ * * Display Name: Error Message
70805
+ * * SQL Data Type: nvarchar(MAX)
70806
+ * * Description: Failure detail when Status is Failed. Null for tasks that have not failed.
70807
+ */
70808
+ get ErrorMessage(): string | null;
70809
+ set ErrorMessage(value: string | null);
70810
+ /**
70811
+ * * Field Name: AgentRunID
70812
+ * * Display Name: Agent Run ID
70813
+ * * SQL Data Type: uniqueidentifier
70814
+ * * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
70815
+ * * Description: The specific AI Agent Run that executed this task. Distinct from the conversation-level link: sibling tasks in one graph each get their own run, so this is what run-history and Gantt views should follow.
70816
+ */
70817
+ get AgentRunID(): string | null;
70818
+ set AgentRunID(value: string | null);
70819
+ /**
70820
+ * * Field Name: ClaimedBy
70821
+ * * Display Name: Claimed By
70822
+ * * SQL Data Type: nvarchar(100)
70823
+ * * Description: Identifier of the dispatcher instance currently executing this task. Part of the compare-and-swap claim protocol; set only by the dispatcher, never by user-facing writes. Null when unclaimed. Human-assigned tasks never carry a claim.
70824
+ */
70825
+ get ClaimedBy(): string | null;
70826
+ set ClaimedBy(value: string | null);
70827
+ /**
70828
+ * * Field Name: ClaimExpiresAt
70829
+ * * Display Name: Claim Expires At
70830
+ * * SQL Data Type: datetimeoffset
70831
+ * * Description: When the current dispatcher claim lapses. Long-running tasks extend it by heartbeat; reconciliation treats an expired claim as an orphaned task and returns it to Pending.
70832
+ */
70833
+ get ClaimExpiresAt(): Date | null;
70834
+ set ClaimExpiresAt(value: Date | null);
70835
+ /**
71102
70836
  * * Field Name: Parent
71103
70837
  * * Display Name: Parent Name
71104
70838
  * * SQL Data Type: nvarchar(255)
@@ -71106,7 +70840,7 @@ export declare class MJTaskEntity extends BaseEntity<MJTaskEntityType> {
71106
70840
  get Parent(): string | null;
71107
70841
  /**
71108
70842
  * * Field Name: Type
71109
- * * Display Name: Type Name
70843
+ * * Display Name: Task Type Name
71110
70844
  * * SQL Data Type: nvarchar(255)
71111
70845
  */
71112
70846
  get Type(): string;
@@ -71124,7 +70858,7 @@ export declare class MJTaskEntity extends BaseEntity<MJTaskEntityType> {
71124
70858
  get Project(): string | null;
71125
70859
  /**
71126
70860
  * * Field Name: ConversationDetail
71127
- * * Display Name: Conversation Detail Name
70861
+ * * Display Name: Conversation
71128
70862
  * * SQL Data Type: nvarchar(100)
71129
70863
  */
71130
70864
  get ConversationDetail(): string | null;
@@ -71141,8 +70875,14 @@ export declare class MJTaskEntity extends BaseEntity<MJTaskEntityType> {
71141
70875
  */
71142
70876
  get Agent(): string | null;
71143
70877
  /**
70878
+ * * Field Name: AgentRun
70879
+ * * Display Name: Agent Run
70880
+ * * SQL Data Type: nvarchar(255)
70881
+ */
70882
+ get AgentRun(): string | null;
70883
+ /**
71144
70884
  * * Field Name: RootParentID
71145
- * * Display Name: Root Parent
70885
+ * * Display Name: Root Task
71146
70886
  * * SQL Data Type: uniqueidentifier
71147
70887
  */
71148
70888
  get RootParentID(): string | null;
@@ -75134,6 +74874,7 @@ export declare class MJUserViewRunDetailEntity extends BaseEntity<MJUserViewRunD
75134
74874
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
75135
74875
  /**
75136
74876
  * * Field Name: ID
74877
+ * * Display Name: ID
75137
74878
  * * SQL Data Type: uniqueidentifier
75138
74879
  * * Default Value: newsequentialid()
75139
74880
  */
@@ -75141,7 +74882,7 @@ export declare class MJUserViewRunDetailEntity extends BaseEntity<MJUserViewRunD
75141
74882
  set ID(value: string);
75142
74883
  /**
75143
74884
  * * Field Name: UserViewRunID
75144
- * * Display Name: User View Run ID
74885
+ * * Display Name: User View Run
75145
74886
  * * SQL Data Type: uniqueidentifier
75146
74887
  * * Related Entity/Foreign Key: MJ: User View Runs (vwUserViewRuns.ID)
75147
74888
  */
@@ -75170,6 +74911,12 @@ export declare class MJUserViewRunDetailEntity extends BaseEntity<MJUserViewRunD
75170
74911
  */
75171
74912
  get __mj_UpdatedAt(): Date;
75172
74913
  /**
74914
+ * * Field Name: UserViewRun
74915
+ * * Display Name: User View Run Name
74916
+ * * SQL Data Type: nvarchar(100)
74917
+ */
74918
+ get UserViewRun(): string;
74919
+ /**
75173
74920
  * * Field Name: UserViewID
75174
74921
  * * Display Name: User View
75175
74922
  * * SQL Data Type: uniqueidentifier
@@ -77095,315 +76842,6 @@ export declare class MJViewTypeEntity extends BaseEntity<MJViewTypeEntityType> {
77095
76842
  */
77096
76843
  get __mj_UpdatedAt(): Date;
77097
76844
  }
77098
- /**
77099
- * MJ: Workflow Engines - strongly typed entity sub-class
77100
- * * Schema: __mj
77101
- * * Base Table: WorkflowEngine
77102
- * * Base View: vwWorkflowEngines
77103
- * * @description Registers available workflow execution engines with their capabilities, configuration, and supported workflow types.
77104
- * * Primary Key: ID
77105
- * @extends {BaseEntity}
77106
- * @class
77107
- * @public
77108
- * @deprecated This entity is deprecated and will be removed in a future version. Using it will result in console warnings.
77109
- */
77110
- export declare class MJWorkflowEngineEntity extends BaseEntity<MJWorkflowEngineEntityType> {
77111
- /**
77112
- * Loads the MJ: Workflow Engines record from the database
77113
- * @param ID: string - primary key value to load the MJ: Workflow Engines record.
77114
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
77115
- * @returns {Promise<boolean>} - true if successful, false otherwise
77116
- * @public
77117
- * @async
77118
- * @memberof MJWorkflowEngineEntity
77119
- * @method
77120
- * @override
77121
- */
77122
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
77123
- /**
77124
- * * Field Name: ID
77125
- * * SQL Data Type: uniqueidentifier
77126
- * * Default Value: newsequentialid()
77127
- */
77128
- get ID(): string;
77129
- set ID(value: string);
77130
- /**
77131
- * * Field Name: Name
77132
- * * SQL Data Type: nvarchar(100)
77133
- */
77134
- get Name(): string;
77135
- set Name(value: string);
77136
- /**
77137
- * * Field Name: Description
77138
- * * SQL Data Type: nvarchar(MAX)
77139
- */
77140
- get Description(): string | null;
77141
- set Description(value: string | null);
77142
- /**
77143
- * * Field Name: DriverPath
77144
- * * Display Name: Driver Path
77145
- * * SQL Data Type: nvarchar(500)
77146
- * * Description: Import path for the workflow engine driver.
77147
- */
77148
- get DriverPath(): string;
77149
- set DriverPath(value: string);
77150
- /**
77151
- * * Field Name: DriverClass
77152
- * * Display Name: Driver Class
77153
- * * SQL Data Type: nvarchar(100)
77154
- * * Description: Class name implementing the workflow engine interface.
77155
- */
77156
- get DriverClass(): string;
77157
- set DriverClass(value: string);
77158
- /**
77159
- * * Field Name: __mj_CreatedAt
77160
- * * Display Name: Created At
77161
- * * SQL Data Type: datetimeoffset
77162
- * * Default Value: getutcdate()
77163
- */
77164
- get __mj_CreatedAt(): Date;
77165
- /**
77166
- * * Field Name: __mj_UpdatedAt
77167
- * * Display Name: Updated At
77168
- * * SQL Data Type: datetimeoffset
77169
- * * Default Value: getutcdate()
77170
- */
77171
- get __mj_UpdatedAt(): Date;
77172
- }
77173
- /**
77174
- * MJ: Workflow Runs - strongly typed entity sub-class
77175
- * * Schema: __mj
77176
- * * Base Table: WorkflowRun
77177
- * * Base View: vwWorkflowRuns
77178
- * * @description Tracks execution instances of workflows including status, timing, context data, and detailed step-by-step results.
77179
- * * Primary Key: ID
77180
- * @extends {BaseEntity}
77181
- * @class
77182
- * @public
77183
- * @deprecated This entity is deprecated and will be removed in a future version. Using it will result in console warnings.
77184
- */
77185
- export declare class MJWorkflowRunEntity extends BaseEntity<MJWorkflowRunEntityType> {
77186
- /**
77187
- * Loads the MJ: Workflow Runs record from the database
77188
- * @param ID: string - primary key value to load the MJ: Workflow Runs record.
77189
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
77190
- * @returns {Promise<boolean>} - true if successful, false otherwise
77191
- * @public
77192
- * @async
77193
- * @memberof MJWorkflowRunEntity
77194
- * @method
77195
- * @override
77196
- */
77197
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
77198
- /**
77199
- * * Field Name: ID
77200
- * * Display Name: ID
77201
- * * SQL Data Type: uniqueidentifier
77202
- * * Default Value: newsequentialid()
77203
- */
77204
- get ID(): string;
77205
- set ID(value: string);
77206
- /**
77207
- * * Field Name: WorkflowID
77208
- * * Display Name: Workflow ID
77209
- * * SQL Data Type: uniqueidentifier
77210
- * * Related Entity/Foreign Key: MJ: Workflows (vwWorkflows.ID)
77211
- */
77212
- get WorkflowID(): string;
77213
- set WorkflowID(value: string);
77214
- /**
77215
- * * Field Name: ExternalSystemRecordID
77216
- * * Display Name: External System Record ID
77217
- * * SQL Data Type: nvarchar(500)
77218
- * * Description: Field ExternalSystemRecordID for entity Workflow Runs.
77219
- */
77220
- get ExternalSystemRecordID(): string;
77221
- set ExternalSystemRecordID(value: string);
77222
- /**
77223
- * * Field Name: StartedAt
77224
- * * Display Name: Started At
77225
- * * SQL Data Type: datetimeoffset
77226
- */
77227
- get StartedAt(): Date;
77228
- set StartedAt(value: Date);
77229
- /**
77230
- * * Field Name: EndedAt
77231
- * * Display Name: Ended At
77232
- * * SQL Data Type: datetimeoffset
77233
- */
77234
- get EndedAt(): Date | null;
77235
- set EndedAt(value: Date | null);
77236
- /**
77237
- * * Field Name: Status
77238
- * * Display Name: Status
77239
- * * SQL Data Type: nchar(10)
77240
- * * Default Value: Pending
77241
- * * Value List Type: List
77242
- * * Possible Values
77243
- * * Complete
77244
- * * Failed
77245
- * * In Progress
77246
- * * Pending
77247
- */
77248
- get Status(): 'Complete' | 'Failed' | 'In Progress' | 'Pending';
77249
- set Status(value: 'Complete' | 'Failed' | 'In Progress' | 'Pending');
77250
- /**
77251
- * * Field Name: Results
77252
- * * Display Name: Results
77253
- * * SQL Data Type: nvarchar(MAX)
77254
- * * Description: JSON-formatted detailed results from the workflow execution, including outputs from each step and any error information.
77255
- */
77256
- get Results(): string | null;
77257
- set Results(value: string | null);
77258
- /**
77259
- * * Field Name: __mj_CreatedAt
77260
- * * Display Name: Created At
77261
- * * SQL Data Type: datetimeoffset
77262
- * * Default Value: getutcdate()
77263
- */
77264
- get __mj_CreatedAt(): Date;
77265
- /**
77266
- * * Field Name: __mj_UpdatedAt
77267
- * * Display Name: Updated At
77268
- * * SQL Data Type: datetimeoffset
77269
- * * Default Value: getutcdate()
77270
- */
77271
- get __mj_UpdatedAt(): Date;
77272
- /**
77273
- * * Field Name: Workflow
77274
- * * Display Name: Workflow Name
77275
- * * SQL Data Type: nvarchar(100)
77276
- */
77277
- get Workflow(): string;
77278
- /**
77279
- * * Field Name: WorkflowEngineName
77280
- * * Display Name: Workflow Engine
77281
- * * SQL Data Type: nvarchar(100)
77282
- */
77283
- get WorkflowEngineName(): string;
77284
- }
77285
- /**
77286
- * MJ: Workflows - strongly typed entity sub-class
77287
- * * Schema: __mj
77288
- * * Base Table: Workflow
77289
- * * Base View: vwWorkflows
77290
- * * @description Defines automated workflows with steps, conditions, and actions for orchestrating complex business processes.
77291
- * * Primary Key: ID
77292
- * @extends {BaseEntity}
77293
- * @class
77294
- * @public
77295
- * @deprecated This entity is deprecated and will be removed in a future version. Using it will result in console warnings.
77296
- */
77297
- export declare class MJWorkflowEntity extends BaseEntity<MJWorkflowEntityType> {
77298
- /**
77299
- * Loads the MJ: Workflows record from the database
77300
- * @param ID: string - primary key value to load the MJ: Workflows record.
77301
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
77302
- * @returns {Promise<boolean>} - true if successful, false otherwise
77303
- * @public
77304
- * @async
77305
- * @memberof MJWorkflowEntity
77306
- * @method
77307
- * @override
77308
- */
77309
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
77310
- /**
77311
- * * Field Name: ID
77312
- * * SQL Data Type: uniqueidentifier
77313
- * * Default Value: newsequentialid()
77314
- */
77315
- get ID(): string;
77316
- set ID(value: string);
77317
- /**
77318
- * * Field Name: Name
77319
- * * SQL Data Type: nvarchar(100)
77320
- */
77321
- get Name(): string;
77322
- set Name(value: string);
77323
- /**
77324
- * * Field Name: Description
77325
- * * SQL Data Type: nvarchar(MAX)
77326
- */
77327
- get Description(): string | null;
77328
- set Description(value: string | null);
77329
- /**
77330
- * * Field Name: WorkflowEngineID
77331
- * * Display Name: Workflow Engine ID
77332
- * * SQL Data Type: uniqueidentifier
77333
- * * Related Entity/Foreign Key: MJ: Workflow Engines (vwWorkflowEngines.ID)
77334
- */
77335
- get WorkflowEngineID(): string;
77336
- set WorkflowEngineID(value: string);
77337
- /**
77338
- * * Field Name: ExternalSystemRecordID
77339
- * * Display Name: External System Record
77340
- * * SQL Data Type: nvarchar(100)
77341
- * * Description: The unique identifier of this workflow in an external system, used for synchronization with external workflow engines.
77342
- */
77343
- get ExternalSystemRecordID(): string;
77344
- set ExternalSystemRecordID(value: string);
77345
- /**
77346
- * * Field Name: AutoRunEnabled
77347
- * * Display Name: Auto Run Enabled
77348
- * * SQL Data Type: bit
77349
- * * Default Value: 0
77350
- * * Description: If set to 1, the workflow will be run automatically on the interval specified by the AutoRunIntervalType and AutoRunInterval fields
77351
- */
77352
- get AutoRunEnabled(): boolean;
77353
- set AutoRunEnabled(value: boolean);
77354
- /**
77355
- * * Field Name: AutoRunIntervalUnits
77356
- * * Display Name: Auto Run Interval Units
77357
- * * SQL Data Type: nvarchar(20)
77358
- * * Value List Type: List
77359
- * * Possible Values
77360
- * * Days
77361
- * * Hours
77362
- * * Minutes
77363
- * * Months
77364
- * * Weeks
77365
- * * Years
77366
- * * Description: Minutes, Hours, Days, Weeks, Months, Years
77367
- */
77368
- get AutoRunIntervalUnits(): 'Days' | 'Hours' | 'Minutes' | 'Months' | 'Weeks' | 'Years' | null;
77369
- set AutoRunIntervalUnits(value: 'Days' | 'Hours' | 'Minutes' | 'Months' | 'Weeks' | 'Years' | null);
77370
- /**
77371
- * * Field Name: AutoRunInterval
77372
- * * Display Name: Auto Run Interval
77373
- * * SQL Data Type: int
77374
- * * Description: The interval, denominated in the units specified in the AutoRunIntervalUnits column, between auto runs of this workflow.
77375
- */
77376
- get AutoRunInterval(): number | null;
77377
- set AutoRunInterval(value: number | null);
77378
- /**
77379
- * * Field Name: SubclassName
77380
- * * Display Name: Subclass Name
77381
- * * SQL Data Type: nvarchar(200)
77382
- * * Description: If specified, this subclass key, via the ClassFactory, will be instantiated, to execute this workflow. If not specified the WorkflowBase class will be used by default.
77383
- */
77384
- get SubclassName(): string | null;
77385
- set SubclassName(value: string | null);
77386
- /**
77387
- * * Field Name: __mj_CreatedAt
77388
- * * Display Name: Created At
77389
- * * SQL Data Type: datetimeoffset
77390
- * * Default Value: getutcdate()
77391
- */
77392
- get __mj_CreatedAt(): Date;
77393
- /**
77394
- * * Field Name: __mj_UpdatedAt
77395
- * * Display Name: Updated At
77396
- * * SQL Data Type: datetimeoffset
77397
- * * Default Value: getutcdate()
77398
- */
77399
- get __mj_UpdatedAt(): Date;
77400
- /**
77401
- * * Field Name: AutoRunIntervalMinutes
77402
- * * Display Name: Auto Run Interval Minutes
77403
- * * SQL Data Type: int
77404
- */
77405
- get AutoRunIntervalMinutes(): number | null;
77406
- }
77407
76845
  /**
77408
76846
  * MJ: Workspace Items - strongly typed entity sub-class
77409
76847
  * * Schema: __mj