@memberjunction/core-entities 6.1.0-edge.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.
@@ -843,6 +843,47 @@ export declare const MJAIAgentConfigurationSchema: z.ZodObject<{
843
843
  AIConfiguration?: string;
844
844
  }>;
845
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>;
846
887
  /**
847
888
  * zod schema definition for the entity MJ: AI Agent Data Sources
848
889
  */
@@ -1024,6 +1065,56 @@ export declare const MJAIAgentExampleSchema: z.ZodObject<{
1024
1065
  PrimaryScopeEntity?: string;
1025
1066
  }>;
1026
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>;
1027
1118
  /**
1028
1119
  * zod schema definition for the entity MJ: AI Agent Learning Cycles
1029
1120
  */
@@ -1364,13 +1455,13 @@ export declare const MJAIAgentPromptSchema: z.ZodObject<{
1364
1455
  ID?: string;
1365
1456
  __mj_CreatedAt?: Date;
1366
1457
  __mj_UpdatedAt?: Date;
1367
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
1458
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
1368
1459
  AgentID?: string;
1369
1460
  Agent?: string;
1370
1461
  Configuration?: string;
1462
+ Purpose?: string;
1371
1463
  ExecutionOrder?: number;
1372
1464
  PromptID?: string;
1373
- Purpose?: string;
1374
1465
  ConfigurationID?: string;
1375
1466
  ContextBehavior?: "Custom" | "None" | "Complete" | "InitialMessages" | "RecentMessages" | "Smart";
1376
1467
  ContextMessageCount?: number;
@@ -1379,13 +1470,13 @@ export declare const MJAIAgentPromptSchema: z.ZodObject<{
1379
1470
  ID?: string;
1380
1471
  __mj_CreatedAt?: Date;
1381
1472
  __mj_UpdatedAt?: Date;
1382
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
1473
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
1383
1474
  AgentID?: string;
1384
1475
  Agent?: string;
1385
1476
  Configuration?: string;
1477
+ Purpose?: string;
1386
1478
  ExecutionOrder?: number;
1387
1479
  PromptID?: string;
1388
- Purpose?: string;
1389
1480
  ConfigurationID?: string;
1390
1481
  ContextBehavior?: "Custom" | "None" | "Complete" | "InitialMessages" | "RecentMessages" | "Smart";
1391
1482
  ContextMessageCount?: number;
@@ -1653,7 +1744,7 @@ export declare const MJAIAgentRunStepSchema: z.ZodObject<{
1653
1744
  ID: z.ZodString;
1654
1745
  AgentRunID: z.ZodString;
1655
1746
  StepNumber: z.ZodNumber;
1656
- 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">]>;
1657
1748
  StepName: z.ZodString;
1658
1749
  TargetID: z.ZodNullable<z.ZodString>;
1659
1750
  Status: z.ZodUnion<[z.ZodLiteral<"Cancelled">, z.ZodLiteral<"Completed">, z.ZodLiteral<"Failed">, z.ZodLiteral<"Running">]>;
@@ -1689,7 +1780,7 @@ export declare const MJAIAgentRunStepSchema: z.ZodObject<{
1689
1780
  AgentRunID?: string;
1690
1781
  AgentRun?: string;
1691
1782
  StepNumber?: number;
1692
- 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";
1693
1784
  StepName?: string;
1694
1785
  TargetID?: string;
1695
1786
  CompletedAt?: Date;
@@ -1716,7 +1807,7 @@ export declare const MJAIAgentRunStepSchema: z.ZodObject<{
1716
1807
  AgentRunID?: string;
1717
1808
  AgentRun?: string;
1718
1809
  StepNumber?: number;
1719
- 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";
1720
1811
  StepName?: string;
1721
1812
  TargetID?: string;
1722
1813
  CompletedAt?: Date;
@@ -1787,6 +1878,8 @@ export declare const MJAIAgentRunSchema: z.ZodObject<{
1787
1878
  LastHeartbeatAt: z.ZodNullable<z.ZodDate>;
1788
1879
  AgentSessionID: z.ZodNullable<z.ZodString>;
1789
1880
  PlanMode: z.ZodBoolean;
1881
+ ExternalSessionID: z.ZodNullable<z.ZodString>;
1882
+ ContinuationDepth: z.ZodNumber;
1790
1883
  Agent: z.ZodNullable<z.ZodString>;
1791
1884
  ParentRun: z.ZodNullable<z.ZodString>;
1792
1885
  Conversation: z.ZodNullable<z.ZodString>;
@@ -1858,6 +1951,8 @@ export declare const MJAIAgentRunSchema: z.ZodObject<{
1858
1951
  LastHeartbeatAt?: Date;
1859
1952
  AgentSessionID?: string;
1860
1953
  PlanMode?: boolean;
1954
+ ExternalSessionID?: string;
1955
+ ContinuationDepth?: number;
1861
1956
  ParentRun?: string;
1862
1957
  ConversationDetail?: string;
1863
1958
  LastRun?: string;
@@ -1924,6 +2019,8 @@ export declare const MJAIAgentRunSchema: z.ZodObject<{
1924
2019
  LastHeartbeatAt?: Date;
1925
2020
  AgentSessionID?: string;
1926
2021
  PlanMode?: boolean;
2022
+ ExternalSessionID?: string;
2023
+ ContinuationDepth?: number;
1927
2024
  ParentRun?: string;
1928
2025
  ConversationDetail?: string;
1929
2026
  LastRun?: string;
@@ -3042,7 +3139,7 @@ export declare const MJAIConfigurationSchema: z.ZodObject<{
3042
3139
  Name?: string;
3043
3140
  Description?: string;
3044
3141
  ParentID?: string;
3045
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
3142
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
3046
3143
  Parent?: string;
3047
3144
  RootParentID?: string;
3048
3145
  IsDefault?: boolean;
@@ -3060,7 +3157,7 @@ export declare const MJAIConfigurationSchema: z.ZodObject<{
3060
3157
  Name?: string;
3061
3158
  Description?: string;
3062
3159
  ParentID?: string;
3063
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
3160
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
3064
3161
  Parent?: string;
3065
3162
  RootParentID?: string;
3066
3163
  IsDefault?: boolean;
@@ -3098,12 +3195,12 @@ export declare const MJAICredentialBindingSchema: z.ZodObject<{
3098
3195
  IsActive?: boolean;
3099
3196
  Priority?: number;
3100
3197
  CredentialID?: string;
3101
- BindingType?: "ModelVendor" | "PromptModel" | "Vendor";
3198
+ Credential?: string;
3102
3199
  AIVendorID?: string;
3200
+ AIVendor?: string;
3201
+ BindingType?: "ModelVendor" | "PromptModel" | "Vendor";
3103
3202
  AIModelVendorID?: string;
3104
3203
  AIPromptModelID?: string;
3105
- Credential?: string;
3106
- AIVendor?: string;
3107
3204
  AIModelVendor?: string;
3108
3205
  AIPromptModel?: string;
3109
3206
  }, {
@@ -3113,12 +3210,12 @@ export declare const MJAICredentialBindingSchema: z.ZodObject<{
3113
3210
  IsActive?: boolean;
3114
3211
  Priority?: number;
3115
3212
  CredentialID?: string;
3116
- BindingType?: "ModelVendor" | "PromptModel" | "Vendor";
3213
+ Credential?: string;
3117
3214
  AIVendorID?: string;
3215
+ AIVendor?: string;
3216
+ BindingType?: "ModelVendor" | "PromptModel" | "Vendor";
3118
3217
  AIModelVendorID?: string;
3119
3218
  AIPromptModelID?: string;
3120
- Credential?: string;
3121
- AIVendor?: string;
3122
3219
  AIModelVendor?: string;
3123
3220
  AIPromptModel?: string;
3124
3221
  }>;
@@ -3182,8 +3279,8 @@ export declare const MJAIModelActionSchema: z.ZodObject<{
3182
3279
  __mj_UpdatedAt?: Date;
3183
3280
  IsActive?: boolean;
3184
3281
  AIModelID?: string;
3185
- AIActionID?: string;
3186
3282
  AIModel?: string;
3283
+ AIActionID?: string;
3187
3284
  AIAction?: string;
3188
3285
  }, {
3189
3286
  ID?: string;
@@ -3191,8 +3288,8 @@ export declare const MJAIModelActionSchema: z.ZodObject<{
3191
3288
  __mj_UpdatedAt?: Date;
3192
3289
  IsActive?: boolean;
3193
3290
  AIModelID?: string;
3194
- AIActionID?: string;
3195
3291
  AIModel?: string;
3292
+ AIActionID?: string;
3196
3293
  AIAction?: string;
3197
3294
  }>;
3198
3295
  export type MJAIModelActionEntityType = z.infer<typeof MJAIModelActionSchema>;
@@ -3477,7 +3574,7 @@ export declare const MJAIModelVendorSchema: z.ZodObject<{
3477
3574
  ID?: string;
3478
3575
  __mj_CreatedAt?: Date;
3479
3576
  __mj_UpdatedAt?: Date;
3480
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
3577
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
3481
3578
  Type?: string;
3482
3579
  DriverClass?: string;
3483
3580
  Priority?: number;
@@ -3499,7 +3596,7 @@ export declare const MJAIModelVendorSchema: z.ZodObject<{
3499
3596
  ID?: string;
3500
3597
  __mj_CreatedAt?: Date;
3501
3598
  __mj_UpdatedAt?: Date;
3502
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
3599
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
3503
3600
  Type?: string;
3504
3601
  DriverClass?: string;
3505
3602
  Priority?: number;
@@ -3655,7 +3752,7 @@ export declare const MJAIPromptModelSchema: z.ZodObject<{
3655
3752
  ID?: string;
3656
3753
  __mj_CreatedAt?: Date;
3657
3754
  __mj_UpdatedAt?: Date;
3658
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
3755
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
3659
3756
  Priority?: number;
3660
3757
  Configuration?: string;
3661
3758
  ModelID?: string;
@@ -3675,7 +3772,7 @@ export declare const MJAIPromptModelSchema: z.ZodObject<{
3675
3772
  ID?: string;
3676
3773
  __mj_CreatedAt?: Date;
3677
3774
  __mj_UpdatedAt?: Date;
3678
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
3775
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
3679
3776
  Priority?: number;
3680
3777
  Configuration?: string;
3681
3778
  ModelID?: string;
@@ -4360,10 +4457,10 @@ export declare const MJAIResultCacheSchema: z.ZodObject<{
4360
4457
  AgentID?: string;
4361
4458
  Agent?: string;
4362
4459
  Configuration?: string;
4363
- ConfigurationID?: string;
4364
- Vendor?: string;
4365
4460
  AIModelID?: string;
4366
4461
  AIModel?: string;
4462
+ ConfigurationID?: string;
4463
+ Vendor?: string;
4367
4464
  VendorID?: string;
4368
4465
  PromptRunID?: string;
4369
4466
  PromptRun?: string;
@@ -4382,10 +4479,10 @@ export declare const MJAIResultCacheSchema: z.ZodObject<{
4382
4479
  AgentID?: string;
4383
4480
  Agent?: string;
4384
4481
  Configuration?: string;
4385
- ConfigurationID?: string;
4386
- Vendor?: string;
4387
4482
  AIModelID?: string;
4388
4483
  AIModel?: string;
4484
+ ConfigurationID?: string;
4485
+ Vendor?: string;
4389
4486
  VendorID?: string;
4390
4487
  PromptRunID?: string;
4391
4488
  PromptRun?: string;
@@ -4640,7 +4737,7 @@ export declare const MJAIVendorTypeSchema: z.ZodObject<{
4640
4737
  ID?: string;
4641
4738
  __mj_CreatedAt?: Date;
4642
4739
  __mj_UpdatedAt?: Date;
4643
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
4740
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
4644
4741
  Type?: string;
4645
4742
  TypeID?: string;
4646
4743
  Vendor?: string;
@@ -4650,7 +4747,7 @@ export declare const MJAIVendorTypeSchema: z.ZodObject<{
4650
4747
  ID?: string;
4651
4748
  __mj_CreatedAt?: Date;
4652
4749
  __mj_UpdatedAt?: Date;
4653
- Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
4750
+ Status?: "Active" | "Inactive" | "Deprecated" | "Preview";
4654
4751
  Type?: string;
4655
4752
  TypeID?: string;
4656
4753
  Vendor?: string;
@@ -6585,6 +6682,7 @@ export declare const MJCompanyIntegrationRunSchema: z.ZodObject<{
6585
6682
  Status?: "Pending" | "Failed" | "Success" | "In Progress";
6586
6683
  StartedAt?: Date;
6587
6684
  EndedAt?: Date;
6685
+ Integration?: string;
6588
6686
  Company?: string;
6589
6687
  ScheduledJobRunID?: string;
6590
6688
  TotalRecords?: number;
@@ -6592,7 +6690,6 @@ export declare const MJCompanyIntegrationRunSchema: z.ZodObject<{
6592
6690
  CompanyIntegrationID?: string;
6593
6691
  RunByUserID?: string;
6594
6692
  ConfigData?: string;
6595
- Integration?: string;
6596
6693
  RunByUser?: string;
6597
6694
  }, {
6598
6695
  ID?: string;
@@ -6602,6 +6699,7 @@ export declare const MJCompanyIntegrationRunSchema: z.ZodObject<{
6602
6699
  Status?: "Pending" | "Failed" | "Success" | "In Progress";
6603
6700
  StartedAt?: Date;
6604
6701
  EndedAt?: Date;
6702
+ Integration?: string;
6605
6703
  Company?: string;
6606
6704
  ScheduledJobRunID?: string;
6607
6705
  TotalRecords?: number;
@@ -6609,7 +6707,6 @@ export declare const MJCompanyIntegrationRunSchema: z.ZodObject<{
6609
6707
  CompanyIntegrationID?: string;
6610
6708
  RunByUserID?: string;
6611
6709
  ConfigData?: string;
6612
- Integration?: string;
6613
6710
  RunByUser?: string;
6614
6711
  }>;
6615
6712
  export type MJCompanyIntegrationRunEntityType = z.infer<typeof MJCompanyIntegrationRunSchema>;
@@ -6699,13 +6796,13 @@ export declare const MJCompanyIntegrationSchema: z.ZodObject<{
6699
6796
  Name?: string;
6700
6797
  IsActive?: boolean;
6701
6798
  Configuration?: string;
6799
+ CredentialID?: string;
6800
+ Integration?: string;
6702
6801
  CompanyID?: string;
6703
6802
  Company?: string;
6704
6803
  LastRunID?: string;
6705
- CredentialID?: string;
6706
6804
  DriverImportPath?: string;
6707
6805
  APIKey?: string;
6708
- Integration?: string;
6709
6806
  IntegrationID?: string;
6710
6807
  AccessToken?: string;
6711
6808
  RefreshToken?: string;
@@ -6737,13 +6834,13 @@ export declare const MJCompanyIntegrationSchema: z.ZodObject<{
6737
6834
  Name?: string;
6738
6835
  IsActive?: boolean;
6739
6836
  Configuration?: string;
6837
+ CredentialID?: string;
6838
+ Integration?: string;
6740
6839
  CompanyID?: string;
6741
6840
  Company?: string;
6742
6841
  LastRunID?: string;
6743
- CredentialID?: string;
6744
6842
  DriverImportPath?: string;
6745
6843
  APIKey?: string;
6746
- Integration?: string;
6747
6844
  IntegrationID?: string;
6748
6845
  AccessToken?: string;
6749
6846
  RefreshToken?: string;
@@ -7613,9 +7710,9 @@ export declare const MJContentSourceSchema: z.ZodObject<{
7613
7710
  Configuration: z.ZodNullable<z.ZodAny>;
7614
7711
  EntityID: z.ZodNullable<z.ZodString>;
7615
7712
  EntityDocumentID: z.ZodNullable<z.ZodString>;
7616
- ScheduledActionID: z.ZodNullable<z.ZodString>;
7617
7713
  SegmenterKey: z.ZodNullable<z.ZodString>;
7618
7714
  CleanerKey: z.ZodNullable<z.ZodString>;
7715
+ ScheduledJobID: z.ZodNullable<z.ZodString>;
7619
7716
  ContentType: z.ZodString;
7620
7717
  ContentSourceType: z.ZodString;
7621
7718
  ContentFileType: z.ZodString;
@@ -7623,7 +7720,7 @@ export declare const MJContentSourceSchema: z.ZodObject<{
7623
7720
  VectorIndex: z.ZodNullable<z.ZodString>;
7624
7721
  Entity: z.ZodNullable<z.ZodString>;
7625
7722
  EntityDocument: z.ZodNullable<z.ZodString>;
7626
- ScheduledAction: z.ZodNullable<z.ZodString>;
7723
+ ScheduledJob: z.ZodNullable<z.ZodString>;
7627
7724
  }, "strip", z.ZodTypeAny, {
7628
7725
  ID?: string;
7629
7726
  EntityID?: string;
@@ -7636,6 +7733,7 @@ export declare const MJContentSourceSchema: z.ZodObject<{
7636
7733
  EmbeddingModel?: string;
7637
7734
  ContentType?: string;
7638
7735
  URL?: string;
7736
+ ScheduledJobID?: string;
7639
7737
  SegmenterKey?: string;
7640
7738
  ContentTypeID?: string;
7641
7739
  ContentSourceTypeID?: string;
@@ -7644,11 +7742,10 @@ export declare const MJContentSourceSchema: z.ZodObject<{
7644
7742
  ContentFileType?: string;
7645
7743
  VectorIndexID?: string;
7646
7744
  EntityDocumentID?: string;
7647
- ScheduledActionID?: string;
7648
7745
  CleanerKey?: string;
7649
7746
  VectorIndex?: string;
7650
7747
  EntityDocument?: string;
7651
- ScheduledAction?: string;
7748
+ ScheduledJob?: string;
7652
7749
  }, {
7653
7750
  ID?: string;
7654
7751
  EntityID?: string;
@@ -7661,6 +7758,7 @@ export declare const MJContentSourceSchema: z.ZodObject<{
7661
7758
  EmbeddingModel?: string;
7662
7759
  ContentType?: string;
7663
7760
  URL?: string;
7761
+ ScheduledJobID?: string;
7664
7762
  SegmenterKey?: string;
7665
7763
  ContentTypeID?: string;
7666
7764
  ContentSourceTypeID?: string;
@@ -7669,11 +7767,10 @@ export declare const MJContentSourceSchema: z.ZodObject<{
7669
7767
  ContentFileType?: string;
7670
7768
  VectorIndexID?: string;
7671
7769
  EntityDocumentID?: string;
7672
- ScheduledActionID?: string;
7673
7770
  CleanerKey?: string;
7674
7771
  VectorIndex?: string;
7675
7772
  EntityDocument?: string;
7676
- ScheduledAction?: string;
7773
+ ScheduledJob?: string;
7677
7774
  }>;
7678
7775
  export type MJContentSourceEntityType = z.infer<typeof MJContentSourceSchema>;
7679
7776
  /**
@@ -9454,7 +9551,7 @@ export declare const MJEncryptionKeySourceSchema: z.ZodObject<{
9454
9551
  __mj_UpdatedAt?: Date;
9455
9552
  Name?: string;
9456
9553
  Description?: string;
9457
- Status?: "Active" | "Deprecated" | "Inactive";
9554
+ Status?: "Active" | "Inactive" | "Deprecated";
9458
9555
  DriverClass?: string;
9459
9556
  IsActive?: boolean;
9460
9557
  DriverImportPath?: string;
@@ -9465,7 +9562,7 @@ export declare const MJEncryptionKeySourceSchema: z.ZodObject<{
9465
9562
  __mj_UpdatedAt?: Date;
9466
9563
  Name?: string;
9467
9564
  Description?: string;
9468
- Status?: "Active" | "Deprecated" | "Inactive";
9565
+ Status?: "Active" | "Inactive" | "Deprecated";
9469
9566
  DriverClass?: string;
9470
9567
  IsActive?: boolean;
9471
9568
  DriverImportPath?: string;
@@ -9985,10 +10082,10 @@ export declare const MJEntityAIActionSchema: z.ZodObject<{
9985
10082
  Entity?: string;
9986
10083
  Comments?: string;
9987
10084
  Name?: string;
9988
- Prompt?: string;
9989
10085
  AIModelID?: string;
9990
- AIActionID?: string;
9991
10086
  AIModel?: string;
10087
+ Prompt?: string;
10088
+ AIActionID?: string;
9992
10089
  AIAction?: string;
9993
10090
  OutputType?: "entity" | "field";
9994
10091
  TriggerEvent?: "after save" | "before save";
@@ -10005,10 +10102,10 @@ export declare const MJEntityAIActionSchema: z.ZodObject<{
10005
10102
  Entity?: string;
10006
10103
  Comments?: string;
10007
10104
  Name?: string;
10008
- Prompt?: string;
10009
10105
  AIModelID?: string;
10010
- AIActionID?: string;
10011
10106
  AIModel?: string;
10107
+ Prompt?: string;
10108
+ AIActionID?: string;
10012
10109
  AIAction?: string;
10013
10110
  OutputType?: "entity" | "field";
10014
10111
  TriggerEvent?: "after save" | "before save";
@@ -10209,9 +10306,9 @@ export declare const MJEntityDocumentSchema: z.ZodObject<{
10209
10306
  Status?: "Active" | "Inactive";
10210
10307
  Type?: string;
10211
10308
  Configuration?: string;
10212
- TypeID?: string;
10213
10309
  AIModelID?: string;
10214
10310
  AIModel?: string;
10311
+ TypeID?: string;
10215
10312
  TemplateID?: string;
10216
10313
  Template?: string;
10217
10314
  VectorIndexID?: string;
@@ -10238,9 +10335,9 @@ export declare const MJEntityDocumentSchema: z.ZodObject<{
10238
10335
  Status?: "Active" | "Inactive";
10239
10336
  Type?: string;
10240
10337
  Configuration?: string;
10241
- TypeID?: string;
10242
10338
  AIModelID?: string;
10243
10339
  AIModel?: string;
10340
+ TypeID?: string;
10244
10341
  TemplateID?: string;
10245
10342
  Template?: string;
10246
10343
  VectorIndexID?: string;
@@ -10880,6 +10977,7 @@ export declare const MJEntityRelationshipSchema: z.ZodObject<{
10880
10977
  AutoUpdateFromSchema: z.ZodBoolean;
10881
10978
  AdditionalFieldsToInclude: z.ZodNullable<z.ZodString>;
10882
10979
  AutoUpdateAdditionalFieldsToInclude: z.ZodBoolean;
10980
+ RelatedRecordCollection: z.ZodNullable<z.ZodAny>;
10883
10981
  Entity: z.ZodString;
10884
10982
  EntityBaseTable: z.ZodString;
10885
10983
  EntityBaseView: z.ZodString;
@@ -10923,6 +11021,7 @@ export declare const MJEntityRelationshipSchema: z.ZodObject<{
10923
11021
  AutoUpdateFromSchema?: boolean;
10924
11022
  AdditionalFieldsToInclude?: string;
10925
11023
  AutoUpdateAdditionalFieldsToInclude?: boolean;
11024
+ RelatedRecordCollection?: any;
10926
11025
  EntityBaseView?: string;
10927
11026
  RelatedEntityBaseTableCodeName?: string;
10928
11027
  DisplayUserViewName?: string;
@@ -10959,6 +11058,7 @@ export declare const MJEntityRelationshipSchema: z.ZodObject<{
10959
11058
  AutoUpdateFromSchema?: boolean;
10960
11059
  AdditionalFieldsToInclude?: string;
10961
11060
  AutoUpdateAdditionalFieldsToInclude?: boolean;
11061
+ RelatedRecordCollection?: any;
10962
11062
  EntityBaseView?: string;
10963
11063
  RelatedEntityBaseTableCodeName?: string;
10964
11064
  DisplayUserViewName?: string;
@@ -11332,9 +11432,9 @@ export declare const MJExternalDataSourceSchema: z.ZodObject<{
11332
11432
  Description?: string;
11333
11433
  Status?: "Active" | "Disabled" | "TestFailed";
11334
11434
  Type?: string;
11335
- TypeID?: string;
11336
11435
  CredentialID?: string;
11337
11436
  Credential?: string;
11437
+ TypeID?: string;
11338
11438
  DefaultSchema?: string;
11339
11439
  DefaultDatabase?: string;
11340
11440
  ConnectionConfig?: string;
@@ -11349,9 +11449,9 @@ export declare const MJExternalDataSourceSchema: z.ZodObject<{
11349
11449
  Description?: string;
11350
11450
  Status?: "Active" | "Disabled" | "TestFailed";
11351
11451
  Type?: string;
11352
- TypeID?: string;
11353
11452
  CredentialID?: string;
11354
11453
  Credential?: string;
11454
+ TypeID?: string;
11355
11455
  DefaultSchema?: string;
11356
11456
  DefaultDatabase?: string;
11357
11457
  ConnectionConfig?: string;
@@ -11488,10 +11588,10 @@ export declare const MJFileStorageAccountSchema: z.ZodObject<{
11488
11588
  __mj_UpdatedAt?: Date;
11489
11589
  Name?: string;
11490
11590
  Description?: string;
11491
- ProviderID?: string;
11492
- Provider?: string;
11493
11591
  CredentialID?: string;
11494
11592
  Credential?: string;
11593
+ ProviderID?: string;
11594
+ Provider?: string;
11495
11595
  IncludeInGlobalSearch?: boolean;
11496
11596
  }, {
11497
11597
  ID?: string;
@@ -11499,10 +11599,10 @@ export declare const MJFileStorageAccountSchema: z.ZodObject<{
11499
11599
  __mj_UpdatedAt?: Date;
11500
11600
  Name?: string;
11501
11601
  Description?: string;
11502
- ProviderID?: string;
11503
- Provider?: string;
11504
11602
  CredentialID?: string;
11505
11603
  Credential?: string;
11604
+ ProviderID?: string;
11605
+ Provider?: string;
11506
11606
  IncludeInGlobalSearch?: boolean;
11507
11607
  }>;
11508
11608
  export type MJFileStorageAccountEntityType = z.infer<typeof MJFileStorageAccountSchema>;
@@ -12725,10 +12825,10 @@ export declare const MJMCPServerConnectionSchema: z.ZodObject<{
12725
12825
  Name?: string;
12726
12826
  Description?: string;
12727
12827
  Status?: string;
12728
- CompanyID?: string;
12729
- Company?: string;
12730
12828
  CredentialID?: string;
12731
12829
  Credential?: string;
12830
+ CompanyID?: string;
12831
+ Company?: string;
12732
12832
  MCPServerID?: string;
12733
12833
  CustomHeaderName?: string;
12734
12834
  AutoSyncTools?: boolean;
@@ -12748,10 +12848,10 @@ export declare const MJMCPServerConnectionSchema: z.ZodObject<{
12748
12848
  Name?: string;
12749
12849
  Description?: string;
12750
12850
  Status?: string;
12751
- CompanyID?: string;
12752
- Company?: string;
12753
12851
  CredentialID?: string;
12754
12852
  Credential?: string;
12853
+ CompanyID?: string;
12854
+ Company?: string;
12755
12855
  MCPServerID?: string;
12756
12856
  CustomHeaderName?: string;
12757
12857
  AutoSyncTools?: boolean;
@@ -13841,29 +13941,6 @@ export declare const MJOutputFormatTypeSchema: z.ZodObject<{
13841
13941
  DisplayFormat?: string;
13842
13942
  }>;
13843
13943
  export type MJOutputFormatTypeEntityType = z.infer<typeof MJOutputFormatTypeSchema>;
13844
- /**
13845
- * zod schema definition for the entity MJ: Output Trigger Types
13846
- */
13847
- export declare const MJOutputTriggerTypeSchema: z.ZodObject<{
13848
- ID: z.ZodString;
13849
- Name: z.ZodString;
13850
- Description: z.ZodNullable<z.ZodString>;
13851
- __mj_CreatedAt: z.ZodDate;
13852
- __mj_UpdatedAt: z.ZodDate;
13853
- }, "strip", z.ZodTypeAny, {
13854
- ID?: string;
13855
- __mj_CreatedAt?: Date;
13856
- __mj_UpdatedAt?: Date;
13857
- Name?: string;
13858
- Description?: string;
13859
- }, {
13860
- ID?: string;
13861
- __mj_CreatedAt?: Date;
13862
- __mj_UpdatedAt?: Date;
13863
- Name?: string;
13864
- Description?: string;
13865
- }>;
13866
- export type MJOutputTriggerTypeEntityType = z.infer<typeof MJOutputTriggerTypeSchema>;
13867
13944
  /**
13868
13945
  * zod schema definition for the entity MJ: Permission Domains
13869
13946
  */
@@ -14914,8 +14991,8 @@ export declare const MJRecordChangeSchema: z.ZodObject<{
14914
14991
  Status?: "Pending" | "Complete" | "Error";
14915
14992
  UserID?: string;
14916
14993
  Type?: "Create" | "Delete" | "Snapshot" | "Update";
14917
- ErrorLog?: string;
14918
14994
  Integration?: string;
14995
+ ErrorLog?: string;
14919
14996
  IntegrationID?: string;
14920
14997
  Source?: "Internal" | "External" | "Restore";
14921
14998
  ChangedAt?: Date;
@@ -14940,8 +15017,8 @@ export declare const MJRecordChangeSchema: z.ZodObject<{
14940
15017
  Status?: "Pending" | "Complete" | "Error";
14941
15018
  UserID?: string;
14942
15019
  Type?: "Create" | "Delete" | "Snapshot" | "Update";
14943
- ErrorLog?: string;
14944
15020
  Integration?: string;
15021
+ ErrorLog?: string;
14945
15022
  IntegrationID?: string;
14946
15023
  Source?: "Internal" | "External" | "Restore";
14947
15024
  ChangedAt?: Date;
@@ -15480,244 +15557,6 @@ export declare const MJRemoteOperationSchema: z.ZodObject<{
15480
15557
  Libraries?: any;
15481
15558
  }>;
15482
15559
  export type MJRemoteOperationEntityType = z.infer<typeof MJRemoteOperationSchema>;
15483
- /**
15484
- * zod schema definition for the entity MJ: Report Categories
15485
- */
15486
- export declare const MJReportCategorySchema: z.ZodObject<{
15487
- ID: z.ZodString;
15488
- Name: z.ZodString;
15489
- Description: z.ZodNullable<z.ZodString>;
15490
- ParentID: z.ZodNullable<z.ZodString>;
15491
- UserID: z.ZodString;
15492
- __mj_CreatedAt: z.ZodDate;
15493
- __mj_UpdatedAt: z.ZodDate;
15494
- Parent: z.ZodNullable<z.ZodString>;
15495
- User: z.ZodString;
15496
- RootParentID: z.ZodNullable<z.ZodString>;
15497
- }, "strip", z.ZodTypeAny, {
15498
- ID?: string;
15499
- User?: string;
15500
- __mj_CreatedAt?: Date;
15501
- __mj_UpdatedAt?: Date;
15502
- Name?: string;
15503
- Description?: string;
15504
- ParentID?: string;
15505
- Parent?: string;
15506
- RootParentID?: string;
15507
- UserID?: string;
15508
- }, {
15509
- ID?: string;
15510
- User?: string;
15511
- __mj_CreatedAt?: Date;
15512
- __mj_UpdatedAt?: Date;
15513
- Name?: string;
15514
- Description?: string;
15515
- ParentID?: string;
15516
- Parent?: string;
15517
- RootParentID?: string;
15518
- UserID?: string;
15519
- }>;
15520
- export type MJReportCategoryEntityType = z.infer<typeof MJReportCategorySchema>;
15521
- /**
15522
- * zod schema definition for the entity MJ: Report Snapshots
15523
- */
15524
- export declare const MJReportSnapshotSchema: z.ZodObject<{
15525
- ID: z.ZodString;
15526
- ReportID: z.ZodString;
15527
- ResultSet: z.ZodString;
15528
- UserID: z.ZodString;
15529
- __mj_CreatedAt: z.ZodDate;
15530
- __mj_UpdatedAt: z.ZodDate;
15531
- Report: z.ZodString;
15532
- User: z.ZodString;
15533
- }, "strip", z.ZodTypeAny, {
15534
- ID?: string;
15535
- User?: string;
15536
- __mj_CreatedAt?: Date;
15537
- __mj_UpdatedAt?: Date;
15538
- UserID?: string;
15539
- Report?: string;
15540
- ReportID?: string;
15541
- ResultSet?: string;
15542
- }, {
15543
- ID?: string;
15544
- User?: string;
15545
- __mj_CreatedAt?: Date;
15546
- __mj_UpdatedAt?: Date;
15547
- UserID?: string;
15548
- Report?: string;
15549
- ReportID?: string;
15550
- ResultSet?: string;
15551
- }>;
15552
- export type MJReportSnapshotEntityType = z.infer<typeof MJReportSnapshotSchema>;
15553
- /**
15554
- * zod schema definition for the entity MJ: Report User States
15555
- */
15556
- export declare const MJReportUserStateSchema: z.ZodObject<{
15557
- ID: z.ZodString;
15558
- ReportID: z.ZodString;
15559
- UserID: z.ZodString;
15560
- ReportState: z.ZodNullable<z.ZodString>;
15561
- __mj_CreatedAt: z.ZodDate;
15562
- __mj_UpdatedAt: z.ZodDate;
15563
- Report: z.ZodString;
15564
- User: z.ZodString;
15565
- }, "strip", z.ZodTypeAny, {
15566
- ID?: string;
15567
- User?: string;
15568
- __mj_CreatedAt?: Date;
15569
- __mj_UpdatedAt?: Date;
15570
- UserID?: string;
15571
- Report?: string;
15572
- ReportID?: string;
15573
- ReportState?: string;
15574
- }, {
15575
- ID?: string;
15576
- User?: string;
15577
- __mj_CreatedAt?: Date;
15578
- __mj_UpdatedAt?: Date;
15579
- UserID?: string;
15580
- Report?: string;
15581
- ReportID?: string;
15582
- ReportState?: string;
15583
- }>;
15584
- export type MJReportUserStateEntityType = z.infer<typeof MJReportUserStateSchema>;
15585
- /**
15586
- * zod schema definition for the entity MJ: Report Versions
15587
- */
15588
- export declare const MJReportVersionSchema: z.ZodObject<{
15589
- ID: z.ZodString;
15590
- ReportID: z.ZodString;
15591
- VersionNumber: z.ZodNumber;
15592
- Name: z.ZodString;
15593
- Description: z.ZodNullable<z.ZodString>;
15594
- Configuration: z.ZodNullable<z.ZodString>;
15595
- DataContextUpdated: z.ZodBoolean;
15596
- __mj_CreatedAt: z.ZodDate;
15597
- __mj_UpdatedAt: z.ZodDate;
15598
- Report: z.ZodString;
15599
- }, "strip", z.ZodTypeAny, {
15600
- ID?: string;
15601
- __mj_CreatedAt?: Date;
15602
- __mj_UpdatedAt?: Date;
15603
- Name?: string;
15604
- Description?: string;
15605
- Configuration?: string;
15606
- VersionNumber?: number;
15607
- Report?: string;
15608
- ReportID?: string;
15609
- DataContextUpdated?: boolean;
15610
- }, {
15611
- ID?: string;
15612
- __mj_CreatedAt?: Date;
15613
- __mj_UpdatedAt?: Date;
15614
- Name?: string;
15615
- Description?: string;
15616
- Configuration?: string;
15617
- VersionNumber?: number;
15618
- Report?: string;
15619
- ReportID?: string;
15620
- DataContextUpdated?: boolean;
15621
- }>;
15622
- export type MJReportVersionEntityType = z.infer<typeof MJReportVersionSchema>;
15623
- /**
15624
- * zod schema definition for the entity MJ: Reports
15625
- */
15626
- export declare const MJReportSchema: z.ZodObject<{
15627
- ID: z.ZodString;
15628
- Name: z.ZodString;
15629
- Description: z.ZodNullable<z.ZodString>;
15630
- CategoryID: z.ZodNullable<z.ZodString>;
15631
- UserID: z.ZodString;
15632
- SharingScope: z.ZodUnion<[z.ZodLiteral<"Everyone">, z.ZodLiteral<"None">, z.ZodLiteral<"Specific">]>;
15633
- ConversationID: z.ZodNullable<z.ZodString>;
15634
- ConversationDetailID: z.ZodNullable<z.ZodString>;
15635
- DataContextID: z.ZodNullable<z.ZodString>;
15636
- Configuration: z.ZodNullable<z.ZodString>;
15637
- OutputTriggerTypeID: z.ZodNullable<z.ZodString>;
15638
- OutputFormatTypeID: z.ZodNullable<z.ZodString>;
15639
- OutputDeliveryTypeID: z.ZodNullable<z.ZodString>;
15640
- OutputFrequency: z.ZodNullable<z.ZodString>;
15641
- OutputTargetEmail: z.ZodNullable<z.ZodString>;
15642
- OutputWorkflowID: z.ZodNullable<z.ZodString>;
15643
- __mj_CreatedAt: z.ZodDate;
15644
- __mj_UpdatedAt: z.ZodDate;
15645
- Thumbnail: z.ZodNullable<z.ZodString>;
15646
- EnvironmentID: z.ZodString;
15647
- Category: z.ZodNullable<z.ZodString>;
15648
- User: z.ZodString;
15649
- Conversation: z.ZodNullable<z.ZodString>;
15650
- ConversationDetail: z.ZodNullable<z.ZodString>;
15651
- DataContext: z.ZodNullable<z.ZodString>;
15652
- OutputTriggerType: z.ZodNullable<z.ZodString>;
15653
- OutputFormatType: z.ZodNullable<z.ZodString>;
15654
- OutputDeliveryType: z.ZodNullable<z.ZodString>;
15655
- OutputWorkflow: z.ZodNullable<z.ZodString>;
15656
- Environment: z.ZodString;
15657
- }, "strip", z.ZodTypeAny, {
15658
- ID?: string;
15659
- User?: string;
15660
- __mj_CreatedAt?: Date;
15661
- __mj_UpdatedAt?: Date;
15662
- Name?: string;
15663
- Description?: string;
15664
- UserID?: string;
15665
- CategoryID?: string;
15666
- Category?: string;
15667
- Configuration?: string;
15668
- Conversation?: string;
15669
- ConversationID?: string;
15670
- ConversationDetailID?: string;
15671
- ConversationDetail?: string;
15672
- EnvironmentID?: string;
15673
- Environment?: string;
15674
- SharingScope?: "Everyone" | "None" | "Specific";
15675
- DataContextID?: string;
15676
- DataContext?: string;
15677
- Thumbnail?: string;
15678
- OutputTriggerTypeID?: string;
15679
- OutputFormatTypeID?: string;
15680
- OutputDeliveryTypeID?: string;
15681
- OutputFrequency?: string;
15682
- OutputTargetEmail?: string;
15683
- OutputWorkflowID?: string;
15684
- OutputTriggerType?: string;
15685
- OutputFormatType?: string;
15686
- OutputDeliveryType?: string;
15687
- OutputWorkflow?: string;
15688
- }, {
15689
- ID?: string;
15690
- User?: string;
15691
- __mj_CreatedAt?: Date;
15692
- __mj_UpdatedAt?: Date;
15693
- Name?: string;
15694
- Description?: string;
15695
- UserID?: string;
15696
- CategoryID?: string;
15697
- Category?: string;
15698
- Configuration?: string;
15699
- Conversation?: string;
15700
- ConversationID?: string;
15701
- ConversationDetailID?: string;
15702
- ConversationDetail?: string;
15703
- EnvironmentID?: string;
15704
- Environment?: string;
15705
- SharingScope?: "Everyone" | "None" | "Specific";
15706
- DataContextID?: string;
15707
- DataContext?: string;
15708
- Thumbnail?: string;
15709
- OutputTriggerTypeID?: string;
15710
- OutputFormatTypeID?: string;
15711
- OutputDeliveryTypeID?: string;
15712
- OutputFrequency?: string;
15713
- OutputTargetEmail?: string;
15714
- OutputWorkflowID?: string;
15715
- OutputTriggerType?: string;
15716
- OutputFormatType?: string;
15717
- OutputDeliveryType?: string;
15718
- OutputWorkflow?: string;
15719
- }>;
15720
- export type MJReportEntityType = z.infer<typeof MJReportSchema>;
15721
15560
  /**
15722
15561
  * zod schema definition for the entity MJ: Resource Links
15723
15562
  */
@@ -15911,106 +15750,6 @@ export declare const MJRowLevelSecurityFilterSchema: z.ZodObject<{
15911
15750
  FilterText?: string;
15912
15751
  }>;
15913
15752
  export type MJRowLevelSecurityFilterEntityType = z.infer<typeof MJRowLevelSecurityFilterSchema>;
15914
- /**
15915
- * zod schema definition for the entity MJ: Scheduled Action Params
15916
- */
15917
- export declare const MJScheduledActionParamSchema: z.ZodObject<{
15918
- ID: z.ZodString;
15919
- ScheduledActionID: z.ZodString;
15920
- ActionParamID: z.ZodString;
15921
- ValueType: z.ZodUnion<[z.ZodLiteral<"SQL Statement">, z.ZodLiteral<"Static">]>;
15922
- Value: z.ZodNullable<z.ZodString>;
15923
- Comments: z.ZodNullable<z.ZodString>;
15924
- __mj_CreatedAt: z.ZodDate;
15925
- __mj_UpdatedAt: z.ZodDate;
15926
- ScheduledAction: z.ZodString;
15927
- ActionParam: z.ZodString;
15928
- }, "strip", z.ZodTypeAny, {
15929
- ID?: string;
15930
- __mj_CreatedAt?: Date;
15931
- __mj_UpdatedAt?: Date;
15932
- Comments?: string;
15933
- ValueType?: "Static" | "SQL Statement";
15934
- Value?: string;
15935
- ScheduledActionID?: string;
15936
- ScheduledAction?: string;
15937
- ActionParamID?: string;
15938
- ActionParam?: string;
15939
- }, {
15940
- ID?: string;
15941
- __mj_CreatedAt?: Date;
15942
- __mj_UpdatedAt?: Date;
15943
- Comments?: string;
15944
- ValueType?: "Static" | "SQL Statement";
15945
- Value?: string;
15946
- ScheduledActionID?: string;
15947
- ScheduledAction?: string;
15948
- ActionParamID?: string;
15949
- ActionParam?: string;
15950
- }>;
15951
- export type MJScheduledActionParamEntityType = z.infer<typeof MJScheduledActionParamSchema>;
15952
- /**
15953
- * zod schema definition for the entity MJ: Scheduled Actions
15954
- */
15955
- export declare const MJScheduledActionSchema: z.ZodObject<{
15956
- ID: z.ZodString;
15957
- Name: z.ZodString;
15958
- Description: z.ZodNullable<z.ZodString>;
15959
- CreatedByUserID: z.ZodString;
15960
- ActionID: z.ZodString;
15961
- Type: z.ZodUnion<[z.ZodLiteral<"Custom">, z.ZodLiteral<"Daily">, z.ZodLiteral<"Monthly">, z.ZodLiteral<"Weekly">, z.ZodLiteral<"Yearly">]>;
15962
- CronExpression: z.ZodNullable<z.ZodString>;
15963
- Timezone: z.ZodString;
15964
- Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Disabled">, z.ZodLiteral<"Expired">, z.ZodLiteral<"Pending">]>;
15965
- IntervalDays: z.ZodNullable<z.ZodNumber>;
15966
- DayOfWeek: z.ZodNullable<z.ZodString>;
15967
- DayOfMonth: z.ZodNullable<z.ZodNumber>;
15968
- Month: z.ZodNullable<z.ZodString>;
15969
- CustomCronExpression: z.ZodNullable<z.ZodString>;
15970
- __mj_CreatedAt: z.ZodDate;
15971
- __mj_UpdatedAt: z.ZodDate;
15972
- CreatedByUser: z.ZodString;
15973
- Action: z.ZodString;
15974
- }, "strip", z.ZodTypeAny, {
15975
- ID?: string;
15976
- __mj_CreatedAt?: Date;
15977
- __mj_UpdatedAt?: Date;
15978
- ActionID?: string;
15979
- Action?: string;
15980
- Name?: string;
15981
- Description?: string;
15982
- Status?: "Active" | "Disabled" | "Pending" | "Expired";
15983
- Type?: "Custom" | "Daily" | "Monthly" | "Weekly" | "Yearly";
15984
- CreatedByUserID?: string;
15985
- CreatedByUser?: string;
15986
- CronExpression?: string;
15987
- Timezone?: string;
15988
- IntervalDays?: number;
15989
- DayOfWeek?: string;
15990
- DayOfMonth?: number;
15991
- Month?: string;
15992
- CustomCronExpression?: string;
15993
- }, {
15994
- ID?: string;
15995
- __mj_CreatedAt?: Date;
15996
- __mj_UpdatedAt?: Date;
15997
- ActionID?: string;
15998
- Action?: string;
15999
- Name?: string;
16000
- Description?: string;
16001
- Status?: "Active" | "Disabled" | "Pending" | "Expired";
16002
- Type?: "Custom" | "Daily" | "Monthly" | "Weekly" | "Yearly";
16003
- CreatedByUserID?: string;
16004
- CreatedByUser?: string;
16005
- CronExpression?: string;
16006
- Timezone?: string;
16007
- IntervalDays?: number;
16008
- DayOfWeek?: string;
16009
- DayOfMonth?: number;
16010
- Month?: string;
16011
- CustomCronExpression?: string;
16012
- }>;
16013
- export type MJScheduledActionEntityType = z.infer<typeof MJScheduledActionSchema>;
16014
15753
  /**
16015
15754
  * zod schema definition for the entity MJ: Scheduled Job Runs
16016
15755
  */
@@ -16040,10 +15779,10 @@ export declare const MJScheduledJobRunSchema: z.ZodObject<{
16040
15779
  ErrorMessage?: string;
16041
15780
  Details?: string;
16042
15781
  ScheduledJobID?: string;
15782
+ ScheduledJob?: string;
16043
15783
  ExecutedByUserID?: string;
16044
15784
  ExecutedByUser?: string;
16045
15785
  QueuedAt?: Date;
16046
- ScheduledJob?: string;
16047
15786
  }, {
16048
15787
  ID?: string;
16049
15788
  __mj_CreatedAt?: Date;
@@ -16055,10 +15794,10 @@ export declare const MJScheduledJobRunSchema: z.ZodObject<{
16055
15794
  ErrorMessage?: string;
16056
15795
  Details?: string;
16057
15796
  ScheduledJobID?: string;
15797
+ ScheduledJob?: string;
16058
15798
  ExecutedByUserID?: string;
16059
15799
  ExecutedByUser?: string;
16060
15800
  QueuedAt?: Date;
16061
- ScheduledJob?: string;
16062
15801
  }>;
16063
15802
  export type MJScheduledJobRunEntityType = z.infer<typeof MJScheduledJobRunSchema>;
16064
15803
  /**
@@ -16130,6 +15869,7 @@ export declare const MJScheduledJobSchema: z.ZodObject<{
16130
15869
  __mj_UpdatedAt: z.ZodDate;
16131
15870
  RunImmediatelyIfNeverRun: z.ZodBoolean;
16132
15871
  MaxRuntimeMinutes: z.ZodNullable<z.ZodNumber>;
15872
+ MissedRunPolicy: z.ZodUnion<[z.ZodLiteral<"RunAll">, z.ZodLiteral<"RunOnce">, z.ZodLiteral<"Skip">]>;
16133
15873
  JobType: z.ZodString;
16134
15874
  OwnerUser: z.ZodNullable<z.ZodString>;
16135
15875
  NotifyUser: z.ZodNullable<z.ZodString>;
@@ -16165,6 +15905,7 @@ export declare const MJScheduledJobSchema: z.ZodObject<{
16165
15905
  ConcurrencyMode?: "Queue" | "Concurrent" | "Skip";
16166
15906
  RunImmediatelyIfNeverRun?: boolean;
16167
15907
  MaxRuntimeMinutes?: number;
15908
+ MissedRunPolicy?: "Skip" | "RunAll" | "RunOnce";
16168
15909
  JobType?: string;
16169
15910
  NotifyUser?: string;
16170
15911
  }, {
@@ -16199,6 +15940,7 @@ export declare const MJScheduledJobSchema: z.ZodObject<{
16199
15940
  ConcurrencyMode?: "Queue" | "Concurrent" | "Skip";
16200
15941
  RunImmediatelyIfNeverRun?: boolean;
16201
15942
  MaxRuntimeMinutes?: number;
15943
+ MissedRunPolicy?: "Skip" | "RunAll" | "RunOnce";
16202
15944
  JobType?: string;
16203
15945
  NotifyUser?: string;
16204
15946
  }>;
@@ -16497,9 +16239,9 @@ export declare const MJSearchProviderSchema: z.ZodObject<{
16497
16239
  DriverClass?: string;
16498
16240
  Priority?: number;
16499
16241
  DisplayName?: string;
16500
- Icon?: string;
16501
16242
  CredentialID?: string;
16502
16243
  Credential?: string;
16244
+ Icon?: string;
16503
16245
  SupportsPreview?: boolean;
16504
16246
  MaxResultsOverride?: number;
16505
16247
  ProviderConfig?: string;
@@ -16514,9 +16256,9 @@ export declare const MJSearchProviderSchema: z.ZodObject<{
16514
16256
  DriverClass?: string;
16515
16257
  Priority?: number;
16516
16258
  DisplayName?: string;
16517
- Icon?: string;
16518
16259
  CredentialID?: string;
16519
16260
  Credential?: string;
16261
+ Icon?: string;
16520
16262
  SupportsPreview?: boolean;
16521
16263
  MaxResultsOverride?: number;
16522
16264
  ProviderConfig?: string;
@@ -16848,10 +16590,10 @@ export declare const MJSignatureAccountSchema: z.ZodObject<{
16848
16590
  IsActive?: boolean;
16849
16591
  IsDefault?: boolean;
16850
16592
  Configuration?: string;
16851
- CompanyID?: string;
16852
- Company?: string;
16853
16593
  CredentialID?: string;
16854
16594
  Credential?: string;
16595
+ CompanyID?: string;
16596
+ Company?: string;
16855
16597
  SignatureProviderID?: string;
16856
16598
  DefaultFromName?: string;
16857
16599
  DefaultFromEmail?: string;
@@ -16864,10 +16606,10 @@ export declare const MJSignatureAccountSchema: z.ZodObject<{
16864
16606
  IsActive?: boolean;
16865
16607
  IsDefault?: boolean;
16866
16608
  Configuration?: string;
16867
- CompanyID?: string;
16868
- Company?: string;
16869
16609
  CredentialID?: string;
16870
16610
  Credential?: string;
16611
+ CompanyID?: string;
16612
+ Company?: string;
16871
16613
  SignatureProviderID?: string;
16872
16614
  DefaultFromName?: string;
16873
16615
  DefaultFromEmail?: string;
@@ -17544,12 +17286,14 @@ export declare const MJTaskDependencySchema: z.ZodObject<{
17544
17286
  DependencyType: z.ZodUnion<[z.ZodLiteral<"Corequisite">, z.ZodLiteral<"Optional">, z.ZodLiteral<"Prerequisite">]>;
17545
17287
  __mj_CreatedAt: z.ZodDate;
17546
17288
  __mj_UpdatedAt: z.ZodDate;
17289
+ Condition: z.ZodNullable<z.ZodString>;
17547
17290
  Task: z.ZodString;
17548
17291
  DependsOnTask: z.ZodString;
17549
17292
  }, "strip", z.ZodTypeAny, {
17550
17293
  ID?: string;
17551
17294
  __mj_CreatedAt?: Date;
17552
17295
  __mj_UpdatedAt?: Date;
17296
+ Condition?: string;
17553
17297
  TaskID?: string;
17554
17298
  DependsOnTaskID?: string;
17555
17299
  DependencyType?: "Corequisite" | "Optional" | "Prerequisite";
@@ -17559,6 +17303,7 @@ export declare const MJTaskDependencySchema: z.ZodObject<{
17559
17303
  ID?: string;
17560
17304
  __mj_CreatedAt?: Date;
17561
17305
  __mj_UpdatedAt?: Date;
17306
+ Condition?: string;
17562
17307
  TaskID?: string;
17563
17308
  DependsOnTaskID?: string;
17564
17309
  DependencyType?: "Corequisite" | "Optional" | "Prerequisite";
@@ -17610,6 +17355,12 @@ export declare const MJTaskSchema: z.ZodObject<{
17610
17355
  CompletedAt: z.ZodNullable<z.ZodDate>;
17611
17356
  __mj_CreatedAt: z.ZodDate;
17612
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>;
17613
17364
  Parent: z.ZodNullable<z.ZodString>;
17614
17365
  Type: z.ZodString;
17615
17366
  Environment: z.ZodString;
@@ -17617,6 +17368,7 @@ export declare const MJTaskSchema: z.ZodObject<{
17617
17368
  ConversationDetail: z.ZodNullable<z.ZodString>;
17618
17369
  User: z.ZodNullable<z.ZodString>;
17619
17370
  Agent: z.ZodNullable<z.ZodString>;
17371
+ AgentRun: z.ZodNullable<z.ZodString>;
17620
17372
  RootParentID: z.ZodNullable<z.ZodString>;
17621
17373
  }, "strip", z.ZodTypeAny, {
17622
17374
  ID?: string;
@@ -17634,7 +17386,10 @@ export declare const MJTaskSchema: z.ZodObject<{
17634
17386
  Type?: string;
17635
17387
  AgentID?: string;
17636
17388
  Agent?: string;
17389
+ AgentRunID?: string;
17390
+ AgentRun?: string;
17637
17391
  CompletedAt?: Date;
17392
+ ErrorMessage?: string;
17638
17393
  ConversationDetailID?: string;
17639
17394
  ConversationDetail?: string;
17640
17395
  TypeID?: string;
@@ -17644,6 +17399,10 @@ export declare const MJTaskSchema: z.ZodObject<{
17644
17399
  Project?: string;
17645
17400
  PercentComplete?: number;
17646
17401
  DueAt?: Date;
17402
+ InputPayload?: string;
17403
+ OutputPayload?: string;
17404
+ ClaimedBy?: string;
17405
+ ClaimExpiresAt?: Date;
17647
17406
  }, {
17648
17407
  ID?: string;
17649
17408
  User?: string;
@@ -17660,7 +17419,10 @@ export declare const MJTaskSchema: z.ZodObject<{
17660
17419
  Type?: string;
17661
17420
  AgentID?: string;
17662
17421
  Agent?: string;
17422
+ AgentRunID?: string;
17423
+ AgentRun?: string;
17663
17424
  CompletedAt?: Date;
17425
+ ErrorMessage?: string;
17664
17426
  ConversationDetailID?: string;
17665
17427
  ConversationDetail?: string;
17666
17428
  TypeID?: string;
@@ -17670,6 +17432,10 @@ export declare const MJTaskSchema: z.ZodObject<{
17670
17432
  Project?: string;
17671
17433
  PercentComplete?: number;
17672
17434
  DueAt?: Date;
17435
+ InputPayload?: string;
17436
+ OutputPayload?: string;
17437
+ ClaimedBy?: string;
17438
+ ClaimExpiresAt?: Date;
17673
17439
  }>;
17674
17440
  export type MJTaskEntityType = z.infer<typeof MJTaskSchema>;
17675
17441
  /**
@@ -19681,120 +19447,6 @@ export declare const MJViewTypeSchema: z.ZodObject<{
19681
19447
  SupportsConfiguration?: boolean;
19682
19448
  }>;
19683
19449
  export type MJViewTypeEntityType = z.infer<typeof MJViewTypeSchema>;
19684
- /**
19685
- * zod schema definition for the entity MJ: Workflow Engines
19686
- */
19687
- export declare const MJWorkflowEngineSchema: z.ZodObject<{
19688
- ID: z.ZodString;
19689
- Name: z.ZodString;
19690
- Description: z.ZodNullable<z.ZodString>;
19691
- DriverPath: z.ZodString;
19692
- DriverClass: z.ZodString;
19693
- __mj_CreatedAt: z.ZodDate;
19694
- __mj_UpdatedAt: z.ZodDate;
19695
- }, "strip", z.ZodTypeAny, {
19696
- ID?: string;
19697
- __mj_CreatedAt?: Date;
19698
- __mj_UpdatedAt?: Date;
19699
- Name?: string;
19700
- Description?: string;
19701
- DriverClass?: string;
19702
- DriverPath?: string;
19703
- }, {
19704
- ID?: string;
19705
- __mj_CreatedAt?: Date;
19706
- __mj_UpdatedAt?: Date;
19707
- Name?: string;
19708
- Description?: string;
19709
- DriverClass?: string;
19710
- DriverPath?: string;
19711
- }>;
19712
- export type MJWorkflowEngineEntityType = z.infer<typeof MJWorkflowEngineSchema>;
19713
- /**
19714
- * zod schema definition for the entity MJ: Workflow Runs
19715
- */
19716
- export declare const MJWorkflowRunSchema: z.ZodObject<{
19717
- ID: z.ZodString;
19718
- WorkflowID: z.ZodString;
19719
- ExternalSystemRecordID: z.ZodString;
19720
- StartedAt: z.ZodDate;
19721
- EndedAt: z.ZodNullable<z.ZodDate>;
19722
- Status: z.ZodUnion<[z.ZodLiteral<"Complete">, z.ZodLiteral<"Failed">, z.ZodLiteral<"In Progress">, z.ZodLiteral<"Pending">]>;
19723
- Results: z.ZodNullable<z.ZodString>;
19724
- __mj_CreatedAt: z.ZodDate;
19725
- __mj_UpdatedAt: z.ZodDate;
19726
- Workflow: z.ZodString;
19727
- WorkflowEngineName: z.ZodString;
19728
- }, "strip", z.ZodTypeAny, {
19729
- ID?: string;
19730
- __mj_CreatedAt?: Date;
19731
- __mj_UpdatedAt?: Date;
19732
- Status?: "Pending" | "Complete" | "Failed" | "In Progress";
19733
- StartedAt?: Date;
19734
- EndedAt?: Date;
19735
- ExternalSystemRecordID?: string;
19736
- WorkflowID?: string;
19737
- Results?: string;
19738
- Workflow?: string;
19739
- WorkflowEngineName?: string;
19740
- }, {
19741
- ID?: string;
19742
- __mj_CreatedAt?: Date;
19743
- __mj_UpdatedAt?: Date;
19744
- Status?: "Pending" | "Complete" | "Failed" | "In Progress";
19745
- StartedAt?: Date;
19746
- EndedAt?: Date;
19747
- ExternalSystemRecordID?: string;
19748
- WorkflowID?: string;
19749
- Results?: string;
19750
- Workflow?: string;
19751
- WorkflowEngineName?: string;
19752
- }>;
19753
- export type MJWorkflowRunEntityType = z.infer<typeof MJWorkflowRunSchema>;
19754
- /**
19755
- * zod schema definition for the entity MJ: Workflows
19756
- */
19757
- export declare const MJWorkflowSchema: z.ZodObject<{
19758
- ID: z.ZodString;
19759
- Name: z.ZodString;
19760
- Description: z.ZodNullable<z.ZodString>;
19761
- WorkflowEngineID: z.ZodString;
19762
- ExternalSystemRecordID: z.ZodString;
19763
- AutoRunEnabled: z.ZodBoolean;
19764
- AutoRunIntervalUnits: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Days">, z.ZodLiteral<"Hours">, z.ZodLiteral<"Minutes">, z.ZodLiteral<"Months">, z.ZodLiteral<"Weeks">, z.ZodLiteral<"Years">]>>;
19765
- AutoRunInterval: z.ZodNullable<z.ZodNumber>;
19766
- SubclassName: z.ZodNullable<z.ZodString>;
19767
- __mj_CreatedAt: z.ZodDate;
19768
- __mj_UpdatedAt: z.ZodDate;
19769
- AutoRunIntervalMinutes: z.ZodNullable<z.ZodNumber>;
19770
- }, "strip", z.ZodTypeAny, {
19771
- ID?: string;
19772
- __mj_CreatedAt?: Date;
19773
- __mj_UpdatedAt?: Date;
19774
- Name?: string;
19775
- Description?: string;
19776
- ExternalSystemRecordID?: string;
19777
- WorkflowEngineID?: string;
19778
- AutoRunEnabled?: boolean;
19779
- AutoRunIntervalUnits?: "Days" | "Hours" | "Minutes" | "Months" | "Weeks" | "Years";
19780
- AutoRunInterval?: number;
19781
- SubclassName?: string;
19782
- AutoRunIntervalMinutes?: number;
19783
- }, {
19784
- ID?: string;
19785
- __mj_CreatedAt?: Date;
19786
- __mj_UpdatedAt?: Date;
19787
- Name?: string;
19788
- Description?: string;
19789
- ExternalSystemRecordID?: string;
19790
- WorkflowEngineID?: string;
19791
- AutoRunEnabled?: boolean;
19792
- AutoRunIntervalUnits?: "Days" | "Hours" | "Minutes" | "Months" | "Weeks" | "Years";
19793
- AutoRunInterval?: number;
19794
- SubclassName?: string;
19795
- AutoRunIntervalMinutes?: number;
19796
- }>;
19797
- export type MJWorkflowEntityType = z.infer<typeof MJWorkflowSchema>;
19798
19450
  /**
19799
19451
  * zod schema definition for the entity MJ: Workspace Items
19800
19452
  */
@@ -21089,6 +20741,60 @@ export interface MJActionEntity_IRuntimeLibraryReference {
21089
20741
  * @public
21090
20742
  */
21091
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>;
21092
20798
  /**
21093
20799
  * Loads the MJ: Actions record from the database
21094
20800
  * @param ID: string - primary key value to load the MJ: Actions record.
@@ -22493,6 +22199,124 @@ export declare class MJAIAgentConfigurationEntity extends BaseEntity<MJAIAgentCo
22493
22199
  */
22494
22200
  get AIConfiguration(): string | null;
22495
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
+ }
22496
22320
  /**
22497
22321
  * MJ: AI Agent Data Sources - strongly typed entity sub-class
22498
22322
  * * Schema: __mj
@@ -23053,6 +22877,246 @@ export declare class MJAIAgentExampleEntity extends BaseEntity<MJAIAgentExampleE
23053
22877
  */
23054
22878
  get PrimaryScopeEntity(): string | null;
23055
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
+ }
23056
23120
  /**
23057
23121
  * MJ: AI Agent Learning Cycles - strongly typed entity sub-class
23058
23122
  * * Schema: __mj
@@ -25019,13 +25083,14 @@ export declare class MJAIAgentRunStepEntity extends BaseEntity<MJAIAgentRunStepE
25019
25083
  * * Prompt
25020
25084
  * * Skill
25021
25085
  * * Sub-Agent
25086
+ * * TaskGraph
25022
25087
  * * Tool
25023
25088
  * * Validation
25024
25089
  * * While
25025
25090
  * * Description: Type of execution step: Prompt, Actions, Sub-Agent, Decision, Chat, Validation, ForEach, While, Tool
25026
25091
  */
25027
- get StepType(): 'Actions' | 'Chat' | 'Compaction' | 'Decision' | 'ForEach' | 'Plan' | 'Prompt' | 'Skill' | 'Sub-Agent' | 'Tool' | 'Validation' | 'While';
25028
- 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');
25029
25094
  /**
25030
25095
  * * Field Name: StepName
25031
25096
  * * Display Name: Step Name
@@ -25297,6 +25362,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25297
25362
  Delete(options?: EntityDeleteOptions): Promise<boolean>;
25298
25363
  /**
25299
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.
25300
25366
  * * EffortLevel: This rule ensures that the effort level, if specified, must be a number between 1 and 100, inclusive.
25301
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.
25302
25368
  * @public
@@ -25305,6 +25371,13 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25305
25371
  */
25306
25372
  Validate(): ValidationResult;
25307
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
+ /**
25308
25381
  * This rule ensures that the effort level, if specified, must be a number between 1 and 100, inclusive.
25309
25382
  * @param result - the ValidationResult object to add any errors or warnings to
25310
25383
  * @public
@@ -25320,7 +25393,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25320
25393
  ValidateFinalStepAllowedValues(result: ValidationResult): void;
25321
25394
  /**
25322
25395
  * * Field Name: ID
25323
- * * Display Name: ID
25396
+ * * Display Name: Run ID
25324
25397
  * * SQL Data Type: uniqueidentifier
25325
25398
  * * Default Value: newsequentialid()
25326
25399
  * * Description: Unique identifier for this agent run
@@ -25464,7 +25537,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25464
25537
  get __mj_UpdatedAt(): Date;
25465
25538
  /**
25466
25539
  * * Field Name: TotalPromptTokensUsed
25467
- * * Display Name: Total Prompt Tokens
25540
+ * * Display Name: Prompt Tokens
25468
25541
  * * SQL Data Type: int
25469
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.
25470
25543
  */
@@ -25472,7 +25545,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25472
25545
  set TotalPromptTokensUsed(value: number | null);
25473
25546
  /**
25474
25547
  * * Field Name: TotalCompletionTokensUsed
25475
- * * Display Name: Total Completion Tokens
25548
+ * * Display Name: Completion Tokens
25476
25549
  * * SQL Data Type: int
25477
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.
25478
25551
  */
@@ -25488,7 +25561,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25488
25561
  set TotalTokensUsedRollup(value: number | null);
25489
25562
  /**
25490
25563
  * * Field Name: TotalPromptTokensUsedRollup
25491
- * * Display Name: Total Prompt Tokens (Rollup)
25564
+ * * Display Name: Prompt Tokens (Rollup)
25492
25565
  * * SQL Data Type: int
25493
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.
25494
25567
  */
@@ -25496,7 +25569,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25496
25569
  set TotalPromptTokensUsedRollup(value: number | null);
25497
25570
  /**
25498
25571
  * * Field Name: TotalCompletionTokensUsedRollup
25499
- * * Display Name: Total Completion Tokens (Rollup)
25572
+ * * Display Name: Completion Tokens (Rollup)
25500
25573
  * * SQL Data Type: int
25501
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.
25502
25575
  */
@@ -25521,7 +25594,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25521
25594
  set ConversationDetailID(value: string | null);
25522
25595
  /**
25523
25596
  * * Field Name: ConversationDetailSequence
25524
- * * Display Name: Conversation Detail Sequence
25597
+ * * Display Name: Detail Sequence
25525
25598
  * * SQL Data Type: int
25526
25599
  * * Description: If a conversation detail spawned multiple agent runs, tracks the order of their spawn/execution
25527
25600
  */
@@ -25568,7 +25641,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25568
25641
  set FinalPayload(value: string | null);
25569
25642
  /**
25570
25643
  * * Field Name: Message
25571
- * * Display Name: Message
25644
+ * * Display Name: Final Message
25572
25645
  * * SQL Data Type: nvarchar(MAX)
25573
25646
  * * Description: Final message from the agent to the end user at the end of a run
25574
25647
  */
@@ -25593,7 +25666,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
25593
25666
  set StartingPayload(value: string | null);
25594
25667
  /**
25595
25668
  * * Field Name: TotalPromptIterations
25596
- * * Display Name: Total Prompt Iterations
25669
+ * * Display Name: Prompt Iterations
25597
25670
  * * SQL Data Type: int
25598
25671
  * * Default Value: 0
25599
25672
  * * Description: Total number of prompt iterations executed during this agent run. Incremented
@@ -25630,7 +25703,7 @@ each time the agent processes a prompt step.
25630
25703
  set OverrideVendorID(value: string | null);
25631
25704
  /**
25632
25705
  * * Field Name: Data
25633
- * * Display Name: Data
25706
+ * * Display Name: Execution Data
25634
25707
  * * SQL Data Type: nvarchar(MAX)
25635
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.
25636
25709
  */
@@ -25638,7 +25711,7 @@ each time the agent processes a prompt step.
25638
25711
  set Data(value: string | null);
25639
25712
  /**
25640
25713
  * * Field Name: Verbose
25641
- * * Display Name: Verbose
25714
+ * * Display Name: Verbose Logging
25642
25715
  * * SQL Data Type: bit
25643
25716
  * * Default Value: 0
25644
25717
  * * Description: Indicates whether verbose logging was enabled during this agent execution. When true, detailed decision-making and execution flow was logged.
@@ -25739,7 +25812,7 @@ each time the agent processes a prompt step.
25739
25812
  set CompanyID(value: string | null);
25740
25813
  /**
25741
25814
  * * Field Name: TotalCacheReadTokensUsed
25742
- * * Display Name: Total Cache Read Tokens
25815
+ * * Display Name: Cache Read Tokens
25743
25816
  * * SQL Data Type: int
25744
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.
25745
25818
  */
@@ -25747,7 +25820,7 @@ each time the agent processes a prompt step.
25747
25820
  set TotalCacheReadTokensUsed(value: number | null);
25748
25821
  /**
25749
25822
  * * Field Name: TotalCacheWriteTokensUsed
25750
- * * Display Name: Total Cache Write Tokens
25823
+ * * Display Name: Cache Write Tokens
25751
25824
  * * SQL Data Type: int
25752
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.
25753
25826
  */
@@ -25780,6 +25853,23 @@ each time the agent processes a prompt step.
25780
25853
  get PlanMode(): boolean;
25781
25854
  set PlanMode(value: boolean);
25782
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
+ /**
25783
25873
  * * Field Name: Agent
25784
25874
  * * Display Name: Agent Name
25785
25875
  * * SQL Data Type: nvarchar(255)
@@ -25787,67 +25877,67 @@ each time the agent processes a prompt step.
25787
25877
  get Agent(): string | null;
25788
25878
  /**
25789
25879
  * * Field Name: ParentRun
25790
- * * Display Name: Parent Run Name
25880
+ * * Display Name: Parent Run Info
25791
25881
  * * SQL Data Type: nvarchar(255)
25792
25882
  */
25793
25883
  get ParentRun(): string | null;
25794
25884
  /**
25795
25885
  * * Field Name: Conversation
25796
- * * Display Name: Conversation Name
25886
+ * * Display Name: Conversation Info
25797
25887
  * * SQL Data Type: nvarchar(255)
25798
25888
  */
25799
25889
  get Conversation(): string | null;
25800
25890
  /**
25801
25891
  * * Field Name: User
25802
- * * Display Name: User Name
25892
+ * * Display Name: User Info
25803
25893
  * * SQL Data Type: nvarchar(100)
25804
25894
  */
25805
25895
  get User(): string | null;
25806
25896
  /**
25807
25897
  * * Field Name: ConversationDetail
25808
- * * Display Name: Conversation Detail Name
25898
+ * * Display Name: Conversation Detail Info
25809
25899
  * * SQL Data Type: nvarchar(100)
25810
25900
  */
25811
25901
  get ConversationDetail(): string | null;
25812
25902
  /**
25813
25903
  * * Field Name: LastRun
25814
- * * Display Name: Last Run Name
25904
+ * * Display Name: Last Run Info
25815
25905
  * * SQL Data Type: nvarchar(255)
25816
25906
  */
25817
25907
  get LastRun(): string | null;
25818
25908
  /**
25819
25909
  * * Field Name: Configuration
25820
- * * Display Name: Configuration Name
25910
+ * * Display Name: Configuration Info
25821
25911
  * * SQL Data Type: nvarchar(100)
25822
25912
  */
25823
25913
  get Configuration(): string | null;
25824
25914
  /**
25825
25915
  * * Field Name: OverrideModel
25826
- * * Display Name: Override Model Name
25916
+ * * Display Name: Override Model Info
25827
25917
  * * SQL Data Type: nvarchar(50)
25828
25918
  */
25829
25919
  get OverrideModel(): string | null;
25830
25920
  /**
25831
25921
  * * Field Name: OverrideVendor
25832
- * * Display Name: Override Vendor Name
25922
+ * * Display Name: Override Vendor Info
25833
25923
  * * SQL Data Type: nvarchar(50)
25834
25924
  */
25835
25925
  get OverrideVendor(): string | null;
25836
25926
  /**
25837
25927
  * * Field Name: ScheduledJobRun
25838
- * * Display Name: Scheduled Job Run Name
25928
+ * * Display Name: Scheduled Job Run Info
25839
25929
  * * SQL Data Type: nvarchar(200)
25840
25930
  */
25841
25931
  get ScheduledJobRun(): string | null;
25842
25932
  /**
25843
25933
  * * Field Name: TestRun
25844
- * * Display Name: Test Run Name
25934
+ * * Display Name: Test Run Info
25845
25935
  * * SQL Data Type: nvarchar(255)
25846
25936
  */
25847
25937
  get TestRun(): string | null;
25848
25938
  /**
25849
25939
  * * Field Name: PrimaryScopeEntity
25850
- * * Display Name: Primary Scope Entity Name
25940
+ * * Display Name: Primary Scope Entity Info
25851
25941
  * * SQL Data Type: nvarchar(255)
25852
25942
  */
25853
25943
  get PrimaryScopeEntity(): string | null;
@@ -27530,6 +27620,51 @@ export declare class MJAIAgentTypeEntity extends BaseEntity<MJAIAgentTypeEntityT
27530
27620
  * @public
27531
27621
  */
27532
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>;
27533
27668
  /**
27534
27669
  * Loads the MJ: AI Agents record from the database
27535
27670
  * @param ID: string - primary key value to load the MJ: AI Agents record.
@@ -32427,6 +32562,24 @@ export declare class MJAIPromptTypeEntity extends BaseEntity<MJAIPromptTypeEntit
32427
32562
  * @public
32428
32563
  */
32429
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>;
32430
32583
  /**
32431
32584
  * Loads the MJ: AI Prompts record from the database
32432
32585
  * @param ID: string - primary key value to load the MJ: AI Prompts record.
@@ -34917,6 +35070,24 @@ export declare class MJAPIKeyUsageLogEntity extends BaseEntity<MJAPIKeyUsageLogE
34917
35070
  * @public
34918
35071
  */
34919
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>;
34920
35091
  /**
34921
35092
  * Loads the MJ: API Keys record from the database
34922
35093
  * @param ID: string - primary key value to load the MJ: API Keys record.
@@ -43040,7 +43211,7 @@ export declare class MJContentSourceEntity extends BaseEntity<MJContentSourceEnt
43040
43211
  set ConfigurationObject(value: MJContentSourceEntity_IContentSourceConfiguration | null);
43041
43212
  /**
43042
43213
  * * Field Name: EntityID
43043
- * * Display Name: Entity
43214
+ * * Display Name: Source Entity
43044
43215
  * * SQL Data Type: uniqueidentifier
43045
43216
  * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
43046
43217
  * * Description: For Entity-type content sources, the MJ Entity to pull records from. NULL for non-entity sources (files, RSS, websites, etc.).
@@ -43049,7 +43220,7 @@ export declare class MJContentSourceEntity extends BaseEntity<MJContentSourceEnt
43049
43220
  set EntityID(value: string | null);
43050
43221
  /**
43051
43222
  * * Field Name: EntityDocumentID
43052
- * * Display Name: Entity Document
43223
+ * * Display Name: Entity Document Template
43053
43224
  * * SQL Data Type: uniqueidentifier
43054
43225
  * * Related Entity/Foreign Key: MJ: Entity Documents (vwEntityDocuments.ID)
43055
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.
@@ -43057,15 +43228,6 @@ export declare class MJContentSourceEntity extends BaseEntity<MJContentSourceEnt
43057
43228
  get EntityDocumentID(): string | null;
43058
43229
  set EntityDocumentID(value: string | null);
43059
43230
  /**
43060
- * * Field Name: ScheduledActionID
43061
- * * Display Name: Scheduled Action
43062
- * * SQL Data Type: uniqueidentifier
43063
- * * Related Entity/Foreign Key: MJ: Scheduled Actions (vwScheduledActions.ID)
43064
- * * Description: Optional link to a MJ Scheduled Action that automatically runs the classification pipeline for this source on a cron schedule.
43065
- */
43066
- get ScheduledActionID(): string | null;
43067
- set ScheduledActionID(value: string | null);
43068
- /**
43069
43231
  * * Field Name: SegmenterKey
43070
43232
  * * Display Name: Segmenter Strategy
43071
43233
  * * SQL Data Type: nvarchar(100)
@@ -43082,6 +43244,15 @@ export declare class MJContentSourceEntity extends BaseEntity<MJContentSourceEnt
43082
43244
  get CleanerKey(): string | null;
43083
43245
  set CleanerKey(value: string | null);
43084
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
+ /**
43085
43256
  * * Field Name: ContentType
43086
43257
  * * Display Name: Content Type Name
43087
43258
  * * SQL Data Type: nvarchar(255)
@@ -43124,11 +43295,11 @@ export declare class MJContentSourceEntity extends BaseEntity<MJContentSourceEnt
43124
43295
  */
43125
43296
  get EntityDocument(): string | null;
43126
43297
  /**
43127
- * * Field Name: ScheduledAction
43128
- * * Display Name: Scheduled Action Name
43129
- * * SQL Data Type: nvarchar(255)
43298
+ * * Field Name: ScheduledJob
43299
+ * * Display Name: Scheduled Job Name
43300
+ * * SQL Data Type: nvarchar(200)
43130
43301
  */
43131
- get ScheduledAction(): string | null;
43302
+ get ScheduledJob(): string | null;
43132
43303
  }
43133
43304
  /**
43134
43305
  * MJ: Content Type Attributes - strongly typed entity sub-class
@@ -52313,6 +52484,135 @@ export declare class MJEntityRelationshipDisplayComponentEntity extends BaseEnti
52313
52484
  */
52314
52485
  get __mj_UpdatedAt(): Date;
52315
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
+ }
52316
52616
  /**
52317
52617
  * MJ: Entity Relationships - strongly typed entity sub-class
52318
52618
  * * Schema: __mj
@@ -52339,6 +52639,7 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52339
52639
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
52340
52640
  /**
52341
52641
  * * Field Name: ID
52642
+ * * Display Name: ID
52342
52643
  * * SQL Data Type: uniqueidentifier
52343
52644
  * * Default Value: newsequentialid()
52344
52645
  */
@@ -52346,7 +52647,7 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52346
52647
  set ID(value: string);
52347
52648
  /**
52348
52649
  * * Field Name: EntityID
52349
- * * Display Name: Entity ID
52650
+ * * Display Name: Entity
52350
52651
  * * SQL Data Type: uniqueidentifier
52351
52652
  * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
52352
52653
  */
@@ -52363,7 +52664,7 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52363
52664
  set Sequence(value: number);
52364
52665
  /**
52365
52666
  * * Field Name: RelatedEntityID
52366
- * * Display Name: Related Entity ID
52667
+ * * Display Name: Related Entity
52367
52668
  * * SQL Data Type: uniqueidentifier
52368
52669
  * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
52369
52670
  */
@@ -52380,7 +52681,7 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52380
52681
  set BundleInAPI(value: boolean);
52381
52682
  /**
52382
52683
  * * Field Name: IncludeInParentAllQuery
52383
- * * Display Name: Include In Parent All Query
52684
+ * * Display Name: Include In Parent Query
52384
52685
  * * SQL Data Type: bit
52385
52686
  * * Default Value: 0
52386
52687
  * * Description: Whether to include this relationship when querying all fields of the parent entity.
@@ -52389,6 +52690,7 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52389
52690
  set IncludeInParentAllQuery(value: boolean);
52390
52691
  /**
52391
52692
  * * Field Name: Type
52693
+ * * Display Name: Relationship Type
52392
52694
  * * SQL Data Type: nchar(20)
52393
52695
  * * Default Value: One To Many
52394
52696
  * * Value List Type: List
@@ -52493,14 +52795,14 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52493
52795
  set DisplayIcon(value: string | null);
52494
52796
  /**
52495
52797
  * * Field Name: DisplayUserViewID
52496
- * * Display Name: Display User View ID
52798
+ * * Display Name: Display User View
52497
52799
  * * SQL Data Type: uniqueidentifier
52498
52800
  * * Related Entity/Foreign Key: MJ: User Views (vwUserViews.ID)
52499
52801
  */
52500
52802
  get DisplayUserViewID(): string | null;
52501
52803
  /**
52502
52804
  * * Field Name: DisplayComponentID
52503
- * * Display Name: Display Component ID
52805
+ * * Display Name: Display Component
52504
52806
  * * SQL Data Type: uniqueidentifier
52505
52807
  * * Related Entity/Foreign Key: MJ: Entity Relationship Display Components (vwEntityRelationshipDisplayComponents.ID)
52506
52808
  */
@@ -52508,7 +52810,7 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52508
52810
  set DisplayComponentID(value: string | null);
52509
52811
  /**
52510
52812
  * * Field Name: DisplayComponentConfiguration
52511
- * * Display Name: Display Component Configuration
52813
+ * * Display Name: Display Component Config
52512
52814
  * * SQL Data Type: nvarchar(MAX)
52513
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.
52514
52816
  */
@@ -52516,21 +52818,21 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52516
52818
  set DisplayComponentConfiguration(value: string | null);
52517
52819
  /**
52518
52820
  * * Field Name: __mj_CreatedAt
52519
- * * Display Name: __mj _Created At
52821
+ * * Display Name: Created At
52520
52822
  * * SQL Data Type: datetimeoffset
52521
52823
  * * Default Value: getutcdate()
52522
52824
  */
52523
52825
  get __mj_CreatedAt(): Date;
52524
52826
  /**
52525
52827
  * * Field Name: __mj_UpdatedAt
52526
- * * Display Name: __mj _Updated At
52828
+ * * Display Name: Updated At
52527
52829
  * * SQL Data Type: datetimeoffset
52528
52830
  * * Default Value: getutcdate()
52529
52831
  */
52530
52832
  get __mj_UpdatedAt(): Date;
52531
52833
  /**
52532
52834
  * * Field Name: AutoUpdateFromSchema
52533
- * * Display Name: Auto Update From Schema
52835
+ * * Display Name: Auto-Update From Schema
52534
52836
  * * SQL Data Type: bit
52535
52837
  * * Default Value: 1
52536
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.
@@ -52539,7 +52841,7 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52539
52841
  set AutoUpdateFromSchema(value: boolean);
52540
52842
  /**
52541
52843
  * * Field Name: AdditionalFieldsToInclude
52542
- * * Display Name: Additional Fields To Include
52844
+ * * Display Name: Additional Fields
52543
52845
  * * SQL Data Type: nvarchar(MAX)
52544
52846
  * * Description: JSON array of additional field names to include when joining through this relationship (for junction tables, e.g., ["RoleName", "UserEmail"])
52545
52847
  */
@@ -52547,7 +52849,7 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52547
52849
  set AdditionalFieldsToInclude(value: string | null);
52548
52850
  /**
52549
52851
  * * Field Name: AutoUpdateAdditionalFieldsToInclude
52550
- * * Display Name: Auto Update Additional Fields To Include
52852
+ * * Display Name: Auto-Update Additional Fields
52551
52853
  * * SQL Data Type: bit
52552
52854
  * * Default Value: 1
52553
52855
  * * Description: When 1, allows system/LLM to auto-update AdditionalFieldsToInclude; when 0, user has locked this field
@@ -52555,7 +52857,25 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52555
52857
  get AutoUpdateAdditionalFieldsToInclude(): boolean;
52556
52858
  set AutoUpdateAdditionalFieldsToInclude(value: boolean);
52557
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
+ /**
52558
52877
  * * Field Name: Entity
52878
+ * * Display Name: Entity Name
52559
52879
  * * SQL Data Type: nvarchar(255)
52560
52880
  */
52561
52881
  get Entity(): string;
@@ -52573,7 +52893,7 @@ export declare class MJEntityRelationshipEntity extends BaseEntity<MJEntityRelat
52573
52893
  get EntityBaseView(): string;
52574
52894
  /**
52575
52895
  * * Field Name: RelatedEntity
52576
- * * Display Name: Related Entity
52896
+ * * Display Name: Related Entity Name
52577
52897
  * * SQL Data Type: nvarchar(255)
52578
52898
  */
52579
52899
  get RelatedEntity(): string;
@@ -60685,68 +61005,6 @@ export declare class MJOutputFormatTypeEntity extends BaseEntity<MJOutputFormatT
60685
61005
  */
60686
61006
  get __mj_UpdatedAt(): Date;
60687
61007
  }
60688
- /**
60689
- * MJ: Output Trigger Types - strongly typed entity sub-class
60690
- * * Schema: __mj
60691
- * * Base Table: OutputTriggerType
60692
- * * Base View: vwOutputTriggerTypes
60693
- * * @description Defines events that can trigger output generation such as schedules, data changes, or manual requests.
60694
- * * Primary Key: ID
60695
- * @extends {BaseEntity}
60696
- * @class
60697
- * @public
60698
- * @deprecated This entity is deprecated and will be removed in a future version. Using it will result in console warnings.
60699
- */
60700
- export declare class MJOutputTriggerTypeEntity extends BaseEntity<MJOutputTriggerTypeEntityType> {
60701
- /**
60702
- * Loads the MJ: Output Trigger Types record from the database
60703
- * @param ID: string - primary key value to load the MJ: Output Trigger Types record.
60704
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
60705
- * @returns {Promise<boolean>} - true if successful, false otherwise
60706
- * @public
60707
- * @async
60708
- * @memberof MJOutputTriggerTypeEntity
60709
- * @method
60710
- * @override
60711
- */
60712
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
60713
- /**
60714
- * * Field Name: ID
60715
- * * Display Name: ID
60716
- * * SQL Data Type: uniqueidentifier
60717
- * * Default Value: newsequentialid()
60718
- */
60719
- get ID(): string;
60720
- set ID(value: string);
60721
- /**
60722
- * * Field Name: Name
60723
- * * Display Name: Name
60724
- * * SQL Data Type: nvarchar(255)
60725
- */
60726
- get Name(): string;
60727
- set Name(value: string);
60728
- /**
60729
- * * Field Name: Description
60730
- * * Display Name: Description
60731
- * * SQL Data Type: nvarchar(MAX)
60732
- */
60733
- get Description(): string | null;
60734
- set Description(value: string | null);
60735
- /**
60736
- * * Field Name: __mj_CreatedAt
60737
- * * Display Name: Created At
60738
- * * SQL Data Type: datetimeoffset
60739
- * * Default Value: getutcdate()
60740
- */
60741
- get __mj_CreatedAt(): Date;
60742
- /**
60743
- * * Field Name: __mj_UpdatedAt
60744
- * * Display Name: Updated At
60745
- * * SQL Data Type: datetimeoffset
60746
- * * Default Value: getutcdate()
60747
- */
60748
- get __mj_UpdatedAt(): Date;
60749
- }
60750
61008
  /**
60751
61009
  * MJ: Permission Domains - strongly typed entity sub-class
60752
61010
  * * Schema: __mj
@@ -65279,642 +65537,6 @@ export declare class MJRemoteOperationEntity extends BaseEntity<MJRemoteOperatio
65279
65537
  */
65280
65538
  get CodeApprovedByUser(): string | null;
65281
65539
  }
65282
- /**
65283
- * MJ: Report Categories - strongly typed entity sub-class
65284
- * * Schema: __mj
65285
- * * Base Table: ReportCategory
65286
- * * Base View: vwReportCategories
65287
- * * @description Organizes reports into logical groupings for navigation, access control, and discovery within the reporting system.
65288
- * * Primary Key: ID
65289
- * @extends {BaseEntity}
65290
- * @class
65291
- * @public
65292
- */
65293
- export declare class MJReportCategoryEntity extends BaseEntity<MJReportCategoryEntityType> {
65294
- /**
65295
- * Loads the MJ: Report Categories record from the database
65296
- * @param ID: string - primary key value to load the MJ: Report Categories record.
65297
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
65298
- * @returns {Promise<boolean>} - true if successful, false otherwise
65299
- * @public
65300
- * @async
65301
- * @memberof MJReportCategoryEntity
65302
- * @method
65303
- * @override
65304
- */
65305
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
65306
- /**
65307
- * * Field Name: ID
65308
- * * Display Name: ID
65309
- * * SQL Data Type: uniqueidentifier
65310
- * * Default Value: newsequentialid()
65311
- */
65312
- get ID(): string;
65313
- set ID(value: string);
65314
- /**
65315
- * * Field Name: Name
65316
- * * Display Name: Name
65317
- * * SQL Data Type: nvarchar(100)
65318
- */
65319
- get Name(): string;
65320
- set Name(value: string);
65321
- /**
65322
- * * Field Name: Description
65323
- * * Display Name: Description
65324
- * * SQL Data Type: nvarchar(MAX)
65325
- */
65326
- get Description(): string | null;
65327
- set Description(value: string | null);
65328
- /**
65329
- * * Field Name: ParentID
65330
- * * Display Name: Parent ID
65331
- * * SQL Data Type: uniqueidentifier
65332
- * * Related Entity/Foreign Key: MJ: Report Categories (vwReportCategories.ID)
65333
- */
65334
- get ParentID(): string | null;
65335
- set ParentID(value: string | null);
65336
- /**
65337
- * * Field Name: UserID
65338
- * * Display Name: User ID
65339
- * * SQL Data Type: uniqueidentifier
65340
- * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
65341
- */
65342
- get UserID(): string;
65343
- set UserID(value: string);
65344
- /**
65345
- * * Field Name: __mj_CreatedAt
65346
- * * Display Name: Created At
65347
- * * SQL Data Type: datetimeoffset
65348
- * * Default Value: getutcdate()
65349
- */
65350
- get __mj_CreatedAt(): Date;
65351
- /**
65352
- * * Field Name: __mj_UpdatedAt
65353
- * * Display Name: Updated At
65354
- * * SQL Data Type: datetimeoffset
65355
- * * Default Value: getutcdate()
65356
- */
65357
- get __mj_UpdatedAt(): Date;
65358
- /**
65359
- * * Field Name: Parent
65360
- * * Display Name: Parent
65361
- * * SQL Data Type: nvarchar(100)
65362
- */
65363
- get Parent(): string | null;
65364
- /**
65365
- * * Field Name: User
65366
- * * Display Name: User
65367
- * * SQL Data Type: nvarchar(100)
65368
- */
65369
- get User(): string;
65370
- /**
65371
- * * Field Name: RootParentID
65372
- * * Display Name: Root Parent ID
65373
- * * SQL Data Type: uniqueidentifier
65374
- */
65375
- get RootParentID(): string | null;
65376
- }
65377
- /**
65378
- * MJ: Report Snapshots - strongly typed entity sub-class
65379
- * * Schema: __mj
65380
- * * Base Table: ReportSnapshot
65381
- * * Base View: vwReportSnapshots
65382
- * * @description Stores point-in-time captures of report outputs, preserving historical data and enabling comparison over time.
65383
- * * Primary Key: ID
65384
- * @extends {BaseEntity}
65385
- * @class
65386
- * @public
65387
- */
65388
- export declare class MJReportSnapshotEntity extends BaseEntity<MJReportSnapshotEntityType> {
65389
- /**
65390
- * Loads the MJ: Report Snapshots record from the database
65391
- * @param ID: string - primary key value to load the MJ: Report Snapshots record.
65392
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
65393
- * @returns {Promise<boolean>} - true if successful, false otherwise
65394
- * @public
65395
- * @async
65396
- * @memberof MJReportSnapshotEntity
65397
- * @method
65398
- * @override
65399
- */
65400
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
65401
- /**
65402
- * * Field Name: ID
65403
- * * Display Name: ID
65404
- * * SQL Data Type: uniqueidentifier
65405
- * * Default Value: newsequentialid()
65406
- */
65407
- get ID(): string;
65408
- set ID(value: string);
65409
- /**
65410
- * * Field Name: ReportID
65411
- * * Display Name: Report ID
65412
- * * SQL Data Type: uniqueidentifier
65413
- * * Related Entity/Foreign Key: MJ: Reports (vwReports.ID)
65414
- */
65415
- get ReportID(): string;
65416
- set ReportID(value: string);
65417
- /**
65418
- * * Field Name: ResultSet
65419
- * * Display Name: Result Set
65420
- * * SQL Data Type: nvarchar(MAX)
65421
- * * Description: Field ResultSet for entity Report Snapshots.
65422
- */
65423
- get ResultSet(): string;
65424
- set ResultSet(value: string);
65425
- /**
65426
- * * Field Name: UserID
65427
- * * Display Name: User ID
65428
- * * SQL Data Type: uniqueidentifier
65429
- * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
65430
- */
65431
- get UserID(): string;
65432
- set UserID(value: string);
65433
- /**
65434
- * * Field Name: __mj_CreatedAt
65435
- * * Display Name: Created At
65436
- * * SQL Data Type: datetimeoffset
65437
- * * Default Value: getutcdate()
65438
- */
65439
- get __mj_CreatedAt(): Date;
65440
- /**
65441
- * * Field Name: __mj_UpdatedAt
65442
- * * Display Name: Updated At
65443
- * * SQL Data Type: datetimeoffset
65444
- * * Default Value: getutcdate()
65445
- */
65446
- get __mj_UpdatedAt(): Date;
65447
- /**
65448
- * * Field Name: Report
65449
- * * Display Name: Report
65450
- * * SQL Data Type: nvarchar(255)
65451
- */
65452
- get Report(): string;
65453
- /**
65454
- * * Field Name: User
65455
- * * Display Name: User
65456
- * * SQL Data Type: nvarchar(100)
65457
- */
65458
- get User(): string;
65459
- }
65460
- /**
65461
- * MJ: Report User States - strongly typed entity sub-class
65462
- * * Schema: __mj
65463
- * * Base Table: ReportUserState
65464
- * * Base View: vwReportUserStates
65465
- * * @description Tracks individual user state within interactive reports
65466
- * * Primary Key: ID
65467
- * @extends {BaseEntity}
65468
- * @class
65469
- * @public
65470
- */
65471
- export declare class MJReportUserStateEntity extends BaseEntity<MJReportUserStateEntityType> {
65472
- /**
65473
- * Loads the MJ: Report User States record from the database
65474
- * @param ID: string - primary key value to load the MJ: Report User States record.
65475
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
65476
- * @returns {Promise<boolean>} - true if successful, false otherwise
65477
- * @public
65478
- * @async
65479
- * @memberof MJReportUserStateEntity
65480
- * @method
65481
- * @override
65482
- */
65483
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
65484
- /**
65485
- * * Field Name: ID
65486
- * * Display Name: ID
65487
- * * SQL Data Type: uniqueidentifier
65488
- * * Default Value: newsequentialid()
65489
- */
65490
- get ID(): string;
65491
- set ID(value: string);
65492
- /**
65493
- * * Field Name: ReportID
65494
- * * Display Name: Report ID
65495
- * * SQL Data Type: uniqueidentifier
65496
- * * Related Entity/Foreign Key: MJ: Reports (vwReports.ID)
65497
- */
65498
- get ReportID(): string;
65499
- set ReportID(value: string);
65500
- /**
65501
- * * Field Name: UserID
65502
- * * Display Name: User ID
65503
- * * SQL Data Type: uniqueidentifier
65504
- * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
65505
- */
65506
- get UserID(): string;
65507
- set UserID(value: string);
65508
- /**
65509
- * * Field Name: ReportState
65510
- * * Display Name: Report State
65511
- * * SQL Data Type: nvarchar(MAX)
65512
- * * Description: JSON serialized state of user interaction with the report
65513
- */
65514
- get ReportState(): string | null;
65515
- set ReportState(value: string | null);
65516
- /**
65517
- * * Field Name: __mj_CreatedAt
65518
- * * Display Name: Created At
65519
- * * SQL Data Type: datetimeoffset
65520
- * * Default Value: getutcdate()
65521
- */
65522
- get __mj_CreatedAt(): Date;
65523
- /**
65524
- * * Field Name: __mj_UpdatedAt
65525
- * * Display Name: Updated At
65526
- * * SQL Data Type: datetimeoffset
65527
- * * Default Value: getutcdate()
65528
- */
65529
- get __mj_UpdatedAt(): Date;
65530
- /**
65531
- * * Field Name: Report
65532
- * * Display Name: Report
65533
- * * SQL Data Type: nvarchar(255)
65534
- */
65535
- get Report(): string;
65536
- /**
65537
- * * Field Name: User
65538
- * * Display Name: User
65539
- * * SQL Data Type: nvarchar(100)
65540
- */
65541
- get User(): string;
65542
- }
65543
- /**
65544
- * MJ: Report Versions - strongly typed entity sub-class
65545
- * * Schema: __mj
65546
- * * Base Table: ReportVersion
65547
- * * Base View: vwReportVersions
65548
- * * @description Stores iterations of report logic, structure, and layout changes
65549
- * * Primary Key: ID
65550
- * @extends {BaseEntity}
65551
- * @class
65552
- * @public
65553
- */
65554
- export declare class MJReportVersionEntity extends BaseEntity<MJReportVersionEntityType> {
65555
- /**
65556
- * Loads the MJ: Report Versions record from the database
65557
- * @param ID: string - primary key value to load the MJ: Report Versions record.
65558
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
65559
- * @returns {Promise<boolean>} - true if successful, false otherwise
65560
- * @public
65561
- * @async
65562
- * @memberof MJReportVersionEntity
65563
- * @method
65564
- * @override
65565
- */
65566
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
65567
- /**
65568
- * 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:
65569
- * * VersionNumber: This rule ensures that the Version Number must be greater than zero.
65570
- * @public
65571
- * @method
65572
- * @override
65573
- */
65574
- Validate(): ValidationResult;
65575
- /**
65576
- * This rule ensures that the Version Number must be greater than zero.
65577
- * @param result - the ValidationResult object to add any errors or warnings to
65578
- * @public
65579
- * @method
65580
- */
65581
- ValidateVersionNumberGreaterThanZero(result: ValidationResult): void;
65582
- /**
65583
- * * Field Name: ID
65584
- * * Display Name: ID
65585
- * * SQL Data Type: uniqueidentifier
65586
- * * Default Value: newsequentialid()
65587
- */
65588
- get ID(): string;
65589
- set ID(value: string);
65590
- /**
65591
- * * Field Name: ReportID
65592
- * * Display Name: Report ID
65593
- * * SQL Data Type: uniqueidentifier
65594
- * * Related Entity/Foreign Key: MJ: Reports (vwReports.ID)
65595
- */
65596
- get ReportID(): string;
65597
- set ReportID(value: string);
65598
- /**
65599
- * * Field Name: VersionNumber
65600
- * * Display Name: Version Number
65601
- * * SQL Data Type: int
65602
- * * Description: Report version number, sequential per report starting at 1
65603
- */
65604
- get VersionNumber(): number;
65605
- set VersionNumber(value: number);
65606
- /**
65607
- * * Field Name: Name
65608
- * * Display Name: Name
65609
- * * SQL Data Type: nvarchar(255)
65610
- * * Description: Name of this report version
65611
- */
65612
- get Name(): string;
65613
- set Name(value: string);
65614
- /**
65615
- * * Field Name: Description
65616
- * * Display Name: Description
65617
- * * SQL Data Type: nvarchar(MAX)
65618
- * * Description: Description of this report version
65619
- */
65620
- get Description(): string | null;
65621
- set Description(value: string | null);
65622
- /**
65623
- * * Field Name: Configuration
65624
- * * Display Name: Configuration
65625
- * * SQL Data Type: nvarchar(MAX)
65626
- * * Description: JSON configuration of report structure, layout and logic
65627
- */
65628
- get Configuration(): string | null;
65629
- set Configuration(value: string | null);
65630
- /**
65631
- * * Field Name: DataContextUpdated
65632
- * * Display Name: Data Context Updated
65633
- * * SQL Data Type: bit
65634
- * * Default Value: 0
65635
- * * Description: Indicates if the data context was updated in this version
65636
- */
65637
- get DataContextUpdated(): boolean;
65638
- set DataContextUpdated(value: boolean);
65639
- /**
65640
- * * Field Name: __mj_CreatedAt
65641
- * * Display Name: Created At
65642
- * * SQL Data Type: datetimeoffset
65643
- * * Default Value: getutcdate()
65644
- */
65645
- get __mj_CreatedAt(): Date;
65646
- /**
65647
- * * Field Name: __mj_UpdatedAt
65648
- * * Display Name: Updated At
65649
- * * SQL Data Type: datetimeoffset
65650
- * * Default Value: getutcdate()
65651
- */
65652
- get __mj_UpdatedAt(): Date;
65653
- /**
65654
- * * Field Name: Report
65655
- * * Display Name: Report
65656
- * * SQL Data Type: nvarchar(255)
65657
- */
65658
- get Report(): string;
65659
- }
65660
- /**
65661
- * MJ: Reports - strongly typed entity sub-class
65662
- * * Schema: __mj
65663
- * * Base Table: Report
65664
- * * Base View: vwReports
65665
- * * @description Defines report configurations including data sources, layouts, filters, and scheduling for automated report generation.
65666
- * * Primary Key: ID
65667
- * @extends {BaseEntity}
65668
- * @class
65669
- * @public
65670
- */
65671
- export declare class MJReportEntity extends BaseEntity<MJReportEntityType> {
65672
- /**
65673
- * Loads the MJ: Reports record from the database
65674
- * @param ID: string - primary key value to load the MJ: Reports record.
65675
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
65676
- * @returns {Promise<boolean>} - true if successful, false otherwise
65677
- * @public
65678
- * @async
65679
- * @memberof MJReportEntity
65680
- * @method
65681
- * @override
65682
- */
65683
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
65684
- /**
65685
- * MJ: Reports - Delete method override to wrap in transaction since CascadeDeletes is true.
65686
- * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
65687
- * @public
65688
- * @method
65689
- * @override
65690
- * @memberof MJReportEntity
65691
- * @returns {Promise<boolean>} - true if successful, false otherwise
65692
- */
65693
- Delete(options?: EntityDeleteOptions): Promise<boolean>;
65694
- /**
65695
- * * Field Name: ID
65696
- * * Display Name: ID
65697
- * * SQL Data Type: uniqueidentifier
65698
- * * Default Value: newsequentialid()
65699
- */
65700
- get ID(): string;
65701
- set ID(value: string);
65702
- /**
65703
- * * Field Name: Name
65704
- * * Display Name: Name
65705
- * * SQL Data Type: nvarchar(255)
65706
- */
65707
- get Name(): string;
65708
- set Name(value: string);
65709
- /**
65710
- * * Field Name: Description
65711
- * * Display Name: Description
65712
- * * SQL Data Type: nvarchar(MAX)
65713
- */
65714
- get Description(): string | null;
65715
- set Description(value: string | null);
65716
- /**
65717
- * * Field Name: CategoryID
65718
- * * Display Name: Category
65719
- * * SQL Data Type: uniqueidentifier
65720
- * * Related Entity/Foreign Key: MJ: Report Categories (vwReportCategories.ID)
65721
- */
65722
- get CategoryID(): string | null;
65723
- set CategoryID(value: string | null);
65724
- /**
65725
- * * Field Name: UserID
65726
- * * Display Name: User
65727
- * * SQL Data Type: uniqueidentifier
65728
- * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
65729
- */
65730
- get UserID(): string;
65731
- set UserID(value: string);
65732
- /**
65733
- * * Field Name: SharingScope
65734
- * * Display Name: Sharing Scope
65735
- * * SQL Data Type: nvarchar(20)
65736
- * * Default Value: Personal
65737
- * * Value List Type: List
65738
- * * Possible Values
65739
- * * Everyone
65740
- * * None
65741
- * * Specific
65742
- * * Description: Field SharingScope for entity Reports.
65743
- */
65744
- get SharingScope(): 'Everyone' | 'None' | 'Specific';
65745
- set SharingScope(value: 'Everyone' | 'None' | 'Specific');
65746
- /**
65747
- * * Field Name: ConversationID
65748
- * * Display Name: Conversation
65749
- * * SQL Data Type: uniqueidentifier
65750
- * * Related Entity/Foreign Key: MJ: Conversations (vwConversations.ID)
65751
- */
65752
- get ConversationID(): string | null;
65753
- set ConversationID(value: string | null);
65754
- /**
65755
- * * Field Name: ConversationDetailID
65756
- * * Display Name: Conversation Detail
65757
- * * SQL Data Type: uniqueidentifier
65758
- * * Related Entity/Foreign Key: MJ: Conversation Details (vwConversationDetails.ID)
65759
- */
65760
- get ConversationDetailID(): string | null;
65761
- set ConversationDetailID(value: string | null);
65762
- /**
65763
- * * Field Name: DataContextID
65764
- * * Display Name: Data Context
65765
- * * SQL Data Type: uniqueidentifier
65766
- * * Related Entity/Foreign Key: MJ: Data Contexts (vwDataContexts.ID)
65767
- */
65768
- get DataContextID(): string | null;
65769
- set DataContextID(value: string | null);
65770
- /**
65771
- * * Field Name: Configuration
65772
- * * Display Name: Configuration
65773
- * * SQL Data Type: nvarchar(MAX)
65774
- * * Description: Field Configuration for entity Reports.
65775
- */
65776
- get Configuration(): string | null;
65777
- set Configuration(value: string | null);
65778
- /**
65779
- * * Field Name: OutputTriggerTypeID
65780
- * * Display Name: Output Trigger Type
65781
- * * SQL Data Type: uniqueidentifier
65782
- * * Related Entity/Foreign Key: MJ: Output Trigger Types (vwOutputTriggerTypes.ID)
65783
- */
65784
- get OutputTriggerTypeID(): string | null;
65785
- set OutputTriggerTypeID(value: string | null);
65786
- /**
65787
- * * Field Name: OutputFormatTypeID
65788
- * * Display Name: Output Format Type
65789
- * * SQL Data Type: uniqueidentifier
65790
- * * Related Entity/Foreign Key: MJ: Output Format Types (vwOutputFormatTypes.ID)
65791
- */
65792
- get OutputFormatTypeID(): string | null;
65793
- set OutputFormatTypeID(value: string | null);
65794
- /**
65795
- * * Field Name: OutputDeliveryTypeID
65796
- * * Display Name: Output Delivery Type
65797
- * * SQL Data Type: uniqueidentifier
65798
- * * Related Entity/Foreign Key: MJ: Output Delivery Types (vwOutputDeliveryTypes.ID)
65799
- */
65800
- get OutputDeliveryTypeID(): string | null;
65801
- set OutputDeliveryTypeID(value: string | null);
65802
- /**
65803
- * * Field Name: OutputFrequency
65804
- * * Display Name: Output Frequency
65805
- * * SQL Data Type: nvarchar(50)
65806
- * * Description: For scheduled reports, the frequency of generation (Daily, Weekly, Monthly, etc.).
65807
- */
65808
- get OutputFrequency(): string | null;
65809
- set OutputFrequency(value: string | null);
65810
- /**
65811
- * * Field Name: OutputTargetEmail
65812
- * * Display Name: Output Target Email
65813
- * * SQL Data Type: nvarchar(255)
65814
- * * Description: Email address(es) to send the report to when using email delivery.
65815
- */
65816
- get OutputTargetEmail(): string | null;
65817
- set OutputTargetEmail(value: string | null);
65818
- /**
65819
- * * Field Name: OutputWorkflowID
65820
- * * Display Name: Output Workflow
65821
- * * SQL Data Type: uniqueidentifier
65822
- * * Related Entity/Foreign Key: MJ: Workflows (vwWorkflows.ID)
65823
- */
65824
- get OutputWorkflowID(): string | null;
65825
- set OutputWorkflowID(value: string | null);
65826
- /**
65827
- * * Field Name: __mj_CreatedAt
65828
- * * Display Name: Created At
65829
- * * SQL Data Type: datetimeoffset
65830
- * * Default Value: getutcdate()
65831
- */
65832
- get __mj_CreatedAt(): Date;
65833
- /**
65834
- * * Field Name: __mj_UpdatedAt
65835
- * * Display Name: Updated At
65836
- * * SQL Data Type: datetimeoffset
65837
- * * Default Value: getutcdate()
65838
- */
65839
- get __mj_UpdatedAt(): Date;
65840
- /**
65841
- * * Field Name: Thumbnail
65842
- * * Display Name: Thumbnail
65843
- * * SQL Data Type: nvarchar(MAX)
65844
- * * 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.
65845
- */
65846
- get Thumbnail(): string | null;
65847
- set Thumbnail(value: string | null);
65848
- /**
65849
- * * Field Name: EnvironmentID
65850
- * * Display Name: Environment
65851
- * * SQL Data Type: uniqueidentifier
65852
- * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
65853
- * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
65854
- */
65855
- get EnvironmentID(): string;
65856
- set EnvironmentID(value: string);
65857
- /**
65858
- * * Field Name: Category
65859
- * * Display Name: Category Name
65860
- * * SQL Data Type: nvarchar(100)
65861
- */
65862
- get Category(): string | null;
65863
- /**
65864
- * * Field Name: User
65865
- * * Display Name: User Name
65866
- * * SQL Data Type: nvarchar(100)
65867
- */
65868
- get User(): string;
65869
- /**
65870
- * * Field Name: Conversation
65871
- * * Display Name: Conversation Name
65872
- * * SQL Data Type: nvarchar(255)
65873
- */
65874
- get Conversation(): string | null;
65875
- /**
65876
- * * Field Name: ConversationDetail
65877
- * * Display Name: Conversation Detail Name
65878
- * * SQL Data Type: nvarchar(100)
65879
- */
65880
- get ConversationDetail(): string | null;
65881
- /**
65882
- * * Field Name: DataContext
65883
- * * Display Name: Data Context Name
65884
- * * SQL Data Type: nvarchar(255)
65885
- */
65886
- get DataContext(): string | null;
65887
- /**
65888
- * * Field Name: OutputTriggerType
65889
- * * Display Name: Output Trigger Type Name
65890
- * * SQL Data Type: nvarchar(255)
65891
- */
65892
- get OutputTriggerType(): string | null;
65893
- /**
65894
- * * Field Name: OutputFormatType
65895
- * * Display Name: Output Format Type Name
65896
- * * SQL Data Type: nvarchar(255)
65897
- */
65898
- get OutputFormatType(): string | null;
65899
- /**
65900
- * * Field Name: OutputDeliveryType
65901
- * * Display Name: Output Delivery Type Name
65902
- * * SQL Data Type: nvarchar(255)
65903
- */
65904
- get OutputDeliveryType(): string | null;
65905
- /**
65906
- * * Field Name: OutputWorkflow
65907
- * * Display Name: Output Workflow Name
65908
- * * SQL Data Type: nvarchar(100)
65909
- */
65910
- get OutputWorkflow(): string | null;
65911
- /**
65912
- * * Field Name: Environment
65913
- * * Display Name: Environment Name
65914
- * * SQL Data Type: nvarchar(255)
65915
- */
65916
- get Environment(): string;
65917
- }
65918
65540
  /**
65919
65541
  * MJ: Resource Links - strongly typed entity sub-class
65920
65542
  * * Schema: __mj
@@ -66452,283 +66074,6 @@ export declare class MJRowLevelSecurityFilterEntity extends BaseEntity<MJRowLeve
66452
66074
  */
66453
66075
  get __mj_UpdatedAt(): Date;
66454
66076
  }
66455
- /**
66456
- * MJ: Scheduled Action Params - strongly typed entity sub-class
66457
- * * Schema: __mj
66458
- * * Base Table: ScheduledActionParam
66459
- * * Base View: vwScheduledActionParams
66460
- * * @description Stores parameter values for scheduled action executions, configuring inputs for automated action runs.
66461
- * * Primary Key: ID
66462
- * @extends {BaseEntity}
66463
- * @class
66464
- * @public
66465
- */
66466
- export declare class MJScheduledActionParamEntity extends BaseEntity<MJScheduledActionParamEntityType> {
66467
- /**
66468
- * Loads the MJ: Scheduled Action Params record from the database
66469
- * @param ID: string - primary key value to load the MJ: Scheduled Action Params record.
66470
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
66471
- * @returns {Promise<boolean>} - true if successful, false otherwise
66472
- * @public
66473
- * @async
66474
- * @memberof MJScheduledActionParamEntity
66475
- * @method
66476
- * @override
66477
- */
66478
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
66479
- /**
66480
- * * Field Name: ID
66481
- * * Display Name: ID
66482
- * * SQL Data Type: uniqueidentifier
66483
- * * Default Value: newsequentialid()
66484
- */
66485
- get ID(): string;
66486
- set ID(value: string);
66487
- /**
66488
- * * Field Name: ScheduledActionID
66489
- * * Display Name: Scheduled Action ID
66490
- * * SQL Data Type: uniqueidentifier
66491
- * * Related Entity/Foreign Key: MJ: Scheduled Actions (vwScheduledActions.ID)
66492
- */
66493
- get ScheduledActionID(): string;
66494
- set ScheduledActionID(value: string);
66495
- /**
66496
- * * Field Name: ActionParamID
66497
- * * Display Name: Action Param ID
66498
- * * SQL Data Type: uniqueidentifier
66499
- * * Related Entity/Foreign Key: MJ: Action Params (vwActionParams.ID)
66500
- */
66501
- get ActionParamID(): string;
66502
- set ActionParamID(value: string);
66503
- /**
66504
- * * Field Name: ValueType
66505
- * * Display Name: Value Type
66506
- * * SQL Data Type: nvarchar(20)
66507
- * * Value List Type: List
66508
- * * Possible Values
66509
- * * SQL Statement
66510
- * * Static
66511
- * * Description: Field ValueType for entity Scheduled Action Params.
66512
- */
66513
- get ValueType(): 'SQL Statement' | 'Static';
66514
- set ValueType(value: 'SQL Statement' | 'Static');
66515
- /**
66516
- * * Field Name: Value
66517
- * * Display Name: Value
66518
- * * SQL Data Type: nvarchar(MAX)
66519
- * * Description: Field Value for entity Scheduled Action Params.
66520
- */
66521
- get Value(): string | null;
66522
- set Value(value: string | null);
66523
- /**
66524
- * * Field Name: Comments
66525
- * * Display Name: Comments
66526
- * * SQL Data Type: nvarchar(MAX)
66527
- */
66528
- get Comments(): string | null;
66529
- set Comments(value: string | null);
66530
- /**
66531
- * * Field Name: __mj_CreatedAt
66532
- * * Display Name: Created At
66533
- * * SQL Data Type: datetimeoffset
66534
- * * Default Value: getutcdate()
66535
- */
66536
- get __mj_CreatedAt(): Date;
66537
- /**
66538
- * * Field Name: __mj_UpdatedAt
66539
- * * Display Name: Updated At
66540
- * * SQL Data Type: datetimeoffset
66541
- * * Default Value: getutcdate()
66542
- */
66543
- get __mj_UpdatedAt(): Date;
66544
- /**
66545
- * * Field Name: ScheduledAction
66546
- * * Display Name: Scheduled Action
66547
- * * SQL Data Type: nvarchar(255)
66548
- */
66549
- get ScheduledAction(): string;
66550
- /**
66551
- * * Field Name: ActionParam
66552
- * * Display Name: Action Param
66553
- * * SQL Data Type: nvarchar(255)
66554
- */
66555
- get ActionParam(): string;
66556
- }
66557
- /**
66558
- * MJ: Scheduled Actions - strongly typed entity sub-class
66559
- * * Schema: __mj
66560
- * * Base Table: ScheduledAction
66561
- * * Base View: vwScheduledActions
66562
- * * @description Track scheduled actions and their details
66563
- * * Primary Key: ID
66564
- * @extends {BaseEntity}
66565
- * @class
66566
- * @public
66567
- */
66568
- export declare class MJScheduledActionEntity extends BaseEntity<MJScheduledActionEntityType> {
66569
- /**
66570
- * Loads the MJ: Scheduled Actions record from the database
66571
- * @param ID: string - primary key value to load the MJ: Scheduled Actions record.
66572
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
66573
- * @returns {Promise<boolean>} - true if successful, false otherwise
66574
- * @public
66575
- * @async
66576
- * @memberof MJScheduledActionEntity
66577
- * @method
66578
- * @override
66579
- */
66580
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
66581
- /**
66582
- * * Field Name: ID
66583
- * * Display Name: ID
66584
- * * SQL Data Type: uniqueidentifier
66585
- * * Default Value: newsequentialid()
66586
- */
66587
- get ID(): string;
66588
- set ID(value: string);
66589
- /**
66590
- * * Field Name: Name
66591
- * * Display Name: Name
66592
- * * SQL Data Type: nvarchar(255)
66593
- */
66594
- get Name(): string;
66595
- set Name(value: string);
66596
- /**
66597
- * * Field Name: Description
66598
- * * Display Name: Description
66599
- * * SQL Data Type: nvarchar(MAX)
66600
- */
66601
- get Description(): string | null;
66602
- set Description(value: string | null);
66603
- /**
66604
- * * Field Name: CreatedByUserID
66605
- * * Display Name: Created By User ID
66606
- * * SQL Data Type: uniqueidentifier
66607
- * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
66608
- */
66609
- get CreatedByUserID(): string;
66610
- set CreatedByUserID(value: string);
66611
- /**
66612
- * * Field Name: ActionID
66613
- * * Display Name: Action ID
66614
- * * SQL Data Type: uniqueidentifier
66615
- * * Related Entity/Foreign Key: MJ: Actions (vwActions.ID)
66616
- */
66617
- get ActionID(): string;
66618
- set ActionID(value: string);
66619
- /**
66620
- * * Field Name: Type
66621
- * * Display Name: Type
66622
- * * SQL Data Type: nvarchar(20)
66623
- * * Value List Type: List
66624
- * * Possible Values
66625
- * * Custom
66626
- * * Daily
66627
- * * Monthly
66628
- * * Weekly
66629
- * * Yearly
66630
- * * Description: Type of the scheduled action (Daily, Weekly, Monthly, Yearly, Custom)
66631
- */
66632
- get Type(): 'Custom' | 'Daily' | 'Monthly' | 'Weekly' | 'Yearly';
66633
- set Type(value: 'Custom' | 'Daily' | 'Monthly' | 'Weekly' | 'Yearly');
66634
- /**
66635
- * * Field Name: CronExpression
66636
- * * Display Name: Cron Expression
66637
- * * SQL Data Type: nvarchar(100)
66638
- * * Description: Cron expression defining the schedule, automatically maintained by the system unless Type is Custom, in which case the user directly sets this
66639
- */
66640
- get CronExpression(): string | null;
66641
- set CronExpression(value: string | null);
66642
- /**
66643
- * * Field Name: Timezone
66644
- * * Display Name: Timezone
66645
- * * SQL Data Type: nvarchar(100)
66646
- * * Description: Timezone for the scheduled action, if not specified defaults to UTC/Z
66647
- */
66648
- get Timezone(): string;
66649
- set Timezone(value: string);
66650
- /**
66651
- * * Field Name: Status
66652
- * * Display Name: Status
66653
- * * SQL Data Type: nvarchar(20)
66654
- * * Default Value: Pending
66655
- * * Value List Type: List
66656
- * * Possible Values
66657
- * * Active
66658
- * * Disabled
66659
- * * Expired
66660
- * * Pending
66661
- * * Description: Status of the scheduled action (Pending, Active, Disabled, Expired)
66662
- */
66663
- get Status(): 'Active' | 'Disabled' | 'Expired' | 'Pending';
66664
- set Status(value: 'Active' | 'Disabled' | 'Expired' | 'Pending');
66665
- /**
66666
- * * Field Name: IntervalDays
66667
- * * Display Name: Interval Days
66668
- * * SQL Data Type: int
66669
- * * Description: Interval in days for the scheduled action
66670
- */
66671
- get IntervalDays(): number | null;
66672
- set IntervalDays(value: number | null);
66673
- /**
66674
- * * Field Name: DayOfWeek
66675
- * * Display Name: Day Of Week
66676
- * * SQL Data Type: nvarchar(20)
66677
- * * Description: Day of the week for the scheduled action
66678
- */
66679
- get DayOfWeek(): string | null;
66680
- set DayOfWeek(value: string | null);
66681
- /**
66682
- * * Field Name: DayOfMonth
66683
- * * Display Name: Day Of Month
66684
- * * SQL Data Type: int
66685
- * * Description: Day of the month for the scheduled action
66686
- */
66687
- get DayOfMonth(): number | null;
66688
- set DayOfMonth(value: number | null);
66689
- /**
66690
- * * Field Name: Month
66691
- * * Display Name: Month
66692
- * * SQL Data Type: nvarchar(20)
66693
- * * Description: Month for the scheduled action
66694
- */
66695
- get Month(): string | null;
66696
- set Month(value: string | null);
66697
- /**
66698
- * * Field Name: CustomCronExpression
66699
- * * Display Name: Custom Cron Expression
66700
- * * SQL Data Type: nvarchar(255)
66701
- * * Description: Field CustomCronExpression for entity Scheduled Actions.
66702
- */
66703
- get CustomCronExpression(): string | null;
66704
- set CustomCronExpression(value: string | null);
66705
- /**
66706
- * * Field Name: __mj_CreatedAt
66707
- * * Display Name: Created At
66708
- * * SQL Data Type: datetimeoffset
66709
- * * Default Value: getutcdate()
66710
- */
66711
- get __mj_CreatedAt(): Date;
66712
- /**
66713
- * * Field Name: __mj_UpdatedAt
66714
- * * Display Name: Updated At
66715
- * * SQL Data Type: datetimeoffset
66716
- * * Default Value: getutcdate()
66717
- */
66718
- get __mj_UpdatedAt(): Date;
66719
- /**
66720
- * * Field Name: CreatedByUser
66721
- * * Display Name: Created By User
66722
- * * SQL Data Type: nvarchar(100)
66723
- */
66724
- get CreatedByUser(): string;
66725
- /**
66726
- * * Field Name: Action
66727
- * * Display Name: Action
66728
- * * SQL Data Type: nvarchar(425)
66729
- */
66730
- get Action(): string;
66731
- }
66732
66077
  /**
66733
66078
  * MJ: Scheduled Job Runs - strongly typed entity sub-class
66734
66079
  * * Schema: __mj
@@ -67030,7 +66375,7 @@ export declare class MJScheduledJobEntity extends BaseEntity<MJScheduledJobEntit
67030
66375
  set ID(value: string);
67031
66376
  /**
67032
66377
  * * Field Name: JobTypeID
67033
- * * Display Name: Job Type
66378
+ * * Display Name: Job Type ID
67034
66379
  * * SQL Data Type: uniqueidentifier
67035
66380
  * * Related Entity/Foreign Key: MJ: Scheduled Job Types (vwScheduledJobTypes.ID)
67036
66381
  */
@@ -67111,7 +66456,7 @@ export declare class MJScheduledJobEntity extends BaseEntity<MJScheduledJobEntit
67111
66456
  set Configuration(value: string | null);
67112
66457
  /**
67113
66458
  * * Field Name: OwnerUserID
67114
- * * Display Name: Owner
66459
+ * * Display Name: Owner User ID
67115
66460
  * * SQL Data Type: uniqueidentifier
67116
66461
  * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
67117
66462
  * * Description: User who owns this schedule. Used as the execution context if no specific user is configured in the job-specific configuration.
@@ -67181,7 +66526,7 @@ export declare class MJScheduledJobEntity extends BaseEntity<MJScheduledJobEntit
67181
66526
  set NotifyOnFailure(value: boolean);
67182
66527
  /**
67183
66528
  * * Field Name: NotifyUserID
67184
- * * Display Name: Notify User
66529
+ * * Display Name: Notify User ID
67185
66530
  * * SQL Data Type: uniqueidentifier
67186
66531
  * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
67187
66532
  * * Description: User to notify about job execution results. If NULL and notifications are enabled, falls back to OwnerUserID.
@@ -67277,27 +66622,41 @@ export declare class MJScheduledJobEntity extends BaseEntity<MJScheduledJobEntit
67277
66622
  set RunImmediatelyIfNeverRun(value: boolean);
67278
66623
  /**
67279
66624
  * * Field Name: MaxRuntimeMinutes
67280
- * * Display Name: Max Runtime (Minutes)
66625
+ * * Display Name: Max Runtime Minutes
67281
66626
  * * SQL Data Type: int
67282
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).
67283
66628
  */
67284
66629
  get MaxRuntimeMinutes(): number | null;
67285
66630
  set MaxRuntimeMinutes(value: number | null);
67286
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
+ /**
67287
66646
  * * Field Name: JobType
67288
- * * Display Name: Job Type Name
66647
+ * * Display Name: Job Type
67289
66648
  * * SQL Data Type: nvarchar(100)
67290
66649
  */
67291
66650
  get JobType(): string;
67292
66651
  /**
67293
66652
  * * Field Name: OwnerUser
67294
- * * Display Name: Owner User Name
66653
+ * * Display Name: Owner User
67295
66654
  * * SQL Data Type: nvarchar(100)
67296
66655
  */
67297
66656
  get OwnerUser(): string | null;
67298
66657
  /**
67299
66658
  * * Field Name: NotifyUser
67300
- * * Display Name: Notify User Name
66659
+ * * Display Name: Notify User
67301
66660
  * * SQL Data Type: nvarchar(100)
67302
66661
  */
67303
66662
  get NotifyUser(): string | null;
@@ -71105,7 +70464,7 @@ export declare class MJTaskDependencyEntity extends BaseEntity<MJTaskDependencyE
71105
70464
  set ID(value: string);
71106
70465
  /**
71107
70466
  * * Field Name: TaskID
71108
- * * Display Name: Task ID
70467
+ * * Display Name: Task
71109
70468
  * * SQL Data Type: uniqueidentifier
71110
70469
  * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)
71111
70470
  */
@@ -71113,7 +70472,7 @@ export declare class MJTaskDependencyEntity extends BaseEntity<MJTaskDependencyE
71113
70472
  set TaskID(value: string);
71114
70473
  /**
71115
70474
  * * Field Name: DependsOnTaskID
71116
- * * Display Name: Depends On Task ID
70475
+ * * Display Name: Depends On Task
71117
70476
  * * SQL Data Type: uniqueidentifier
71118
70477
  * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)
71119
70478
  */
@@ -71148,14 +70507,22 @@ export declare class MJTaskDependencyEntity extends BaseEntity<MJTaskDependencyE
71148
70507
  */
71149
70508
  get __mj_UpdatedAt(): Date;
71150
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
+ /**
71151
70518
  * * Field Name: Task
71152
- * * Display Name: Task
70519
+ * * Display Name: Task Name
71153
70520
  * * SQL Data Type: nvarchar(255)
71154
70521
  */
71155
70522
  get Task(): string;
71156
70523
  /**
71157
70524
  * * Field Name: DependsOnTask
71158
- * * Display Name: Depends On Task
70525
+ * * Display Name: Depends On Task Name
71159
70526
  * * SQL Data Type: nvarchar(255)
71160
70527
  */
71161
70528
  get DependsOnTask(): string;
@@ -71280,7 +70647,7 @@ export declare class MJTaskEntity extends BaseEntity<MJTaskEntityType> {
71280
70647
  set ID(value: string);
71281
70648
  /**
71282
70649
  * * Field Name: ParentID
71283
- * * Display Name: Parent
70650
+ * * Display Name: Parent Task
71284
70651
  * * SQL Data Type: uniqueidentifier
71285
70652
  * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)
71286
70653
  */
@@ -71288,7 +70655,7 @@ export declare class MJTaskEntity extends BaseEntity<MJTaskEntityType> {
71288
70655
  set ParentID(value: string | null);
71289
70656
  /**
71290
70657
  * * Field Name: Name
71291
- * * Display Name: Name
70658
+ * * Display Name: Task Name
71292
70659
  * * SQL Data Type: nvarchar(255)
71293
70660
  * * Description: Display name for the task
71294
70661
  */
@@ -71304,7 +70671,7 @@ export declare class MJTaskEntity extends BaseEntity<MJTaskEntityType> {
71304
70671
  set Description(value: string | null);
71305
70672
  /**
71306
70673
  * * Field Name: TypeID
71307
- * * Display Name: Type
70674
+ * * Display Name: Task Type
71308
70675
  * * SQL Data Type: uniqueidentifier
71309
70676
  * * Related Entity/Foreign Key: MJ: Task Types (vwTaskTypes.ID)
71310
70677
  */
@@ -71380,7 +70747,7 @@ export declare class MJTaskEntity extends BaseEntity<MJTaskEntityType> {
71380
70747
  set PercentComplete(value: number | null);
71381
70748
  /**
71382
70749
  * * Field Name: DueAt
71383
- * * Display Name: Due At
70750
+ * * Display Name: Due Date
71384
70751
  * * SQL Data Type: datetimeoffset
71385
70752
  * * Description: Due date and time for task completion
71386
70753
  */
@@ -71417,6 +70784,55 @@ export declare class MJTaskEntity extends BaseEntity<MJTaskEntityType> {
71417
70784
  */
71418
70785
  get __mj_UpdatedAt(): Date;
71419
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
+ /**
71420
70836
  * * Field Name: Parent
71421
70837
  * * Display Name: Parent Name
71422
70838
  * * SQL Data Type: nvarchar(255)
@@ -71424,7 +70840,7 @@ export declare class MJTaskEntity extends BaseEntity<MJTaskEntityType> {
71424
70840
  get Parent(): string | null;
71425
70841
  /**
71426
70842
  * * Field Name: Type
71427
- * * Display Name: Type Name
70843
+ * * Display Name: Task Type Name
71428
70844
  * * SQL Data Type: nvarchar(255)
71429
70845
  */
71430
70846
  get Type(): string;
@@ -71442,7 +70858,7 @@ export declare class MJTaskEntity extends BaseEntity<MJTaskEntityType> {
71442
70858
  get Project(): string | null;
71443
70859
  /**
71444
70860
  * * Field Name: ConversationDetail
71445
- * * Display Name: Conversation Detail Name
70861
+ * * Display Name: Conversation
71446
70862
  * * SQL Data Type: nvarchar(100)
71447
70863
  */
71448
70864
  get ConversationDetail(): string | null;
@@ -71459,8 +70875,14 @@ export declare class MJTaskEntity extends BaseEntity<MJTaskEntityType> {
71459
70875
  */
71460
70876
  get Agent(): string | null;
71461
70877
  /**
70878
+ * * Field Name: AgentRun
70879
+ * * Display Name: Agent Run
70880
+ * * SQL Data Type: nvarchar(255)
70881
+ */
70882
+ get AgentRun(): string | null;
70883
+ /**
71462
70884
  * * Field Name: RootParentID
71463
- * * Display Name: Root Parent
70885
+ * * Display Name: Root Task
71464
70886
  * * SQL Data Type: uniqueidentifier
71465
70887
  */
71466
70888
  get RootParentID(): string | null;
@@ -77420,315 +76842,6 @@ export declare class MJViewTypeEntity extends BaseEntity<MJViewTypeEntityType> {
77420
76842
  */
77421
76843
  get __mj_UpdatedAt(): Date;
77422
76844
  }
77423
- /**
77424
- * MJ: Workflow Engines - strongly typed entity sub-class
77425
- * * Schema: __mj
77426
- * * Base Table: WorkflowEngine
77427
- * * Base View: vwWorkflowEngines
77428
- * * @description Registers available workflow execution engines with their capabilities, configuration, and supported workflow types.
77429
- * * Primary Key: ID
77430
- * @extends {BaseEntity}
77431
- * @class
77432
- * @public
77433
- * @deprecated This entity is deprecated and will be removed in a future version. Using it will result in console warnings.
77434
- */
77435
- export declare class MJWorkflowEngineEntity extends BaseEntity<MJWorkflowEngineEntityType> {
77436
- /**
77437
- * Loads the MJ: Workflow Engines record from the database
77438
- * @param ID: string - primary key value to load the MJ: Workflow Engines record.
77439
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
77440
- * @returns {Promise<boolean>} - true if successful, false otherwise
77441
- * @public
77442
- * @async
77443
- * @memberof MJWorkflowEngineEntity
77444
- * @method
77445
- * @override
77446
- */
77447
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
77448
- /**
77449
- * * Field Name: ID
77450
- * * SQL Data Type: uniqueidentifier
77451
- * * Default Value: newsequentialid()
77452
- */
77453
- get ID(): string;
77454
- set ID(value: string);
77455
- /**
77456
- * * Field Name: Name
77457
- * * SQL Data Type: nvarchar(100)
77458
- */
77459
- get Name(): string;
77460
- set Name(value: string);
77461
- /**
77462
- * * Field Name: Description
77463
- * * SQL Data Type: nvarchar(MAX)
77464
- */
77465
- get Description(): string | null;
77466
- set Description(value: string | null);
77467
- /**
77468
- * * Field Name: DriverPath
77469
- * * Display Name: Driver Path
77470
- * * SQL Data Type: nvarchar(500)
77471
- * * Description: Import path for the workflow engine driver.
77472
- */
77473
- get DriverPath(): string;
77474
- set DriverPath(value: string);
77475
- /**
77476
- * * Field Name: DriverClass
77477
- * * Display Name: Driver Class
77478
- * * SQL Data Type: nvarchar(100)
77479
- * * Description: Class name implementing the workflow engine interface.
77480
- */
77481
- get DriverClass(): string;
77482
- set DriverClass(value: string);
77483
- /**
77484
- * * Field Name: __mj_CreatedAt
77485
- * * Display Name: Created At
77486
- * * SQL Data Type: datetimeoffset
77487
- * * Default Value: getutcdate()
77488
- */
77489
- get __mj_CreatedAt(): Date;
77490
- /**
77491
- * * Field Name: __mj_UpdatedAt
77492
- * * Display Name: Updated At
77493
- * * SQL Data Type: datetimeoffset
77494
- * * Default Value: getutcdate()
77495
- */
77496
- get __mj_UpdatedAt(): Date;
77497
- }
77498
- /**
77499
- * MJ: Workflow Runs - strongly typed entity sub-class
77500
- * * Schema: __mj
77501
- * * Base Table: WorkflowRun
77502
- * * Base View: vwWorkflowRuns
77503
- * * @description Tracks execution instances of workflows including status, timing, context data, and detailed step-by-step results.
77504
- * * Primary Key: ID
77505
- * @extends {BaseEntity}
77506
- * @class
77507
- * @public
77508
- * @deprecated This entity is deprecated and will be removed in a future version. Using it will result in console warnings.
77509
- */
77510
- export declare class MJWorkflowRunEntity extends BaseEntity<MJWorkflowRunEntityType> {
77511
- /**
77512
- * Loads the MJ: Workflow Runs record from the database
77513
- * @param ID: string - primary key value to load the MJ: Workflow Runs record.
77514
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
77515
- * @returns {Promise<boolean>} - true if successful, false otherwise
77516
- * @public
77517
- * @async
77518
- * @memberof MJWorkflowRunEntity
77519
- * @method
77520
- * @override
77521
- */
77522
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
77523
- /**
77524
- * * Field Name: ID
77525
- * * Display Name: ID
77526
- * * SQL Data Type: uniqueidentifier
77527
- * * Default Value: newsequentialid()
77528
- */
77529
- get ID(): string;
77530
- set ID(value: string);
77531
- /**
77532
- * * Field Name: WorkflowID
77533
- * * Display Name: Workflow ID
77534
- * * SQL Data Type: uniqueidentifier
77535
- * * Related Entity/Foreign Key: MJ: Workflows (vwWorkflows.ID)
77536
- */
77537
- get WorkflowID(): string;
77538
- set WorkflowID(value: string);
77539
- /**
77540
- * * Field Name: ExternalSystemRecordID
77541
- * * Display Name: External System Record ID
77542
- * * SQL Data Type: nvarchar(500)
77543
- * * Description: Field ExternalSystemRecordID for entity Workflow Runs.
77544
- */
77545
- get ExternalSystemRecordID(): string;
77546
- set ExternalSystemRecordID(value: string);
77547
- /**
77548
- * * Field Name: StartedAt
77549
- * * Display Name: Started At
77550
- * * SQL Data Type: datetimeoffset
77551
- */
77552
- get StartedAt(): Date;
77553
- set StartedAt(value: Date);
77554
- /**
77555
- * * Field Name: EndedAt
77556
- * * Display Name: Ended At
77557
- * * SQL Data Type: datetimeoffset
77558
- */
77559
- get EndedAt(): Date | null;
77560
- set EndedAt(value: Date | null);
77561
- /**
77562
- * * Field Name: Status
77563
- * * Display Name: Status
77564
- * * SQL Data Type: nchar(10)
77565
- * * Default Value: Pending
77566
- * * Value List Type: List
77567
- * * Possible Values
77568
- * * Complete
77569
- * * Failed
77570
- * * In Progress
77571
- * * Pending
77572
- */
77573
- get Status(): 'Complete' | 'Failed' | 'In Progress' | 'Pending';
77574
- set Status(value: 'Complete' | 'Failed' | 'In Progress' | 'Pending');
77575
- /**
77576
- * * Field Name: Results
77577
- * * Display Name: Results
77578
- * * SQL Data Type: nvarchar(MAX)
77579
- * * Description: JSON-formatted detailed results from the workflow execution, including outputs from each step and any error information.
77580
- */
77581
- get Results(): string | null;
77582
- set Results(value: string | null);
77583
- /**
77584
- * * Field Name: __mj_CreatedAt
77585
- * * Display Name: Created At
77586
- * * SQL Data Type: datetimeoffset
77587
- * * Default Value: getutcdate()
77588
- */
77589
- get __mj_CreatedAt(): Date;
77590
- /**
77591
- * * Field Name: __mj_UpdatedAt
77592
- * * Display Name: Updated At
77593
- * * SQL Data Type: datetimeoffset
77594
- * * Default Value: getutcdate()
77595
- */
77596
- get __mj_UpdatedAt(): Date;
77597
- /**
77598
- * * Field Name: Workflow
77599
- * * Display Name: Workflow Name
77600
- * * SQL Data Type: nvarchar(100)
77601
- */
77602
- get Workflow(): string;
77603
- /**
77604
- * * Field Name: WorkflowEngineName
77605
- * * Display Name: Workflow Engine
77606
- * * SQL Data Type: nvarchar(100)
77607
- */
77608
- get WorkflowEngineName(): string;
77609
- }
77610
- /**
77611
- * MJ: Workflows - strongly typed entity sub-class
77612
- * * Schema: __mj
77613
- * * Base Table: Workflow
77614
- * * Base View: vwWorkflows
77615
- * * @description Defines automated workflows with steps, conditions, and actions for orchestrating complex business processes.
77616
- * * Primary Key: ID
77617
- * @extends {BaseEntity}
77618
- * @class
77619
- * @public
77620
- * @deprecated This entity is deprecated and will be removed in a future version. Using it will result in console warnings.
77621
- */
77622
- export declare class MJWorkflowEntity extends BaseEntity<MJWorkflowEntityType> {
77623
- /**
77624
- * Loads the MJ: Workflows record from the database
77625
- * @param ID: string - primary key value to load the MJ: Workflows record.
77626
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
77627
- * @returns {Promise<boolean>} - true if successful, false otherwise
77628
- * @public
77629
- * @async
77630
- * @memberof MJWorkflowEntity
77631
- * @method
77632
- * @override
77633
- */
77634
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
77635
- /**
77636
- * * Field Name: ID
77637
- * * SQL Data Type: uniqueidentifier
77638
- * * Default Value: newsequentialid()
77639
- */
77640
- get ID(): string;
77641
- set ID(value: string);
77642
- /**
77643
- * * Field Name: Name
77644
- * * SQL Data Type: nvarchar(100)
77645
- */
77646
- get Name(): string;
77647
- set Name(value: string);
77648
- /**
77649
- * * Field Name: Description
77650
- * * SQL Data Type: nvarchar(MAX)
77651
- */
77652
- get Description(): string | null;
77653
- set Description(value: string | null);
77654
- /**
77655
- * * Field Name: WorkflowEngineID
77656
- * * Display Name: Workflow Engine ID
77657
- * * SQL Data Type: uniqueidentifier
77658
- * * Related Entity/Foreign Key: MJ: Workflow Engines (vwWorkflowEngines.ID)
77659
- */
77660
- get WorkflowEngineID(): string;
77661
- set WorkflowEngineID(value: string);
77662
- /**
77663
- * * Field Name: ExternalSystemRecordID
77664
- * * Display Name: External System Record
77665
- * * SQL Data Type: nvarchar(100)
77666
- * * Description: The unique identifier of this workflow in an external system, used for synchronization with external workflow engines.
77667
- */
77668
- get ExternalSystemRecordID(): string;
77669
- set ExternalSystemRecordID(value: string);
77670
- /**
77671
- * * Field Name: AutoRunEnabled
77672
- * * Display Name: Auto Run Enabled
77673
- * * SQL Data Type: bit
77674
- * * Default Value: 0
77675
- * * Description: If set to 1, the workflow will be run automatically on the interval specified by the AutoRunIntervalType and AutoRunInterval fields
77676
- */
77677
- get AutoRunEnabled(): boolean;
77678
- set AutoRunEnabled(value: boolean);
77679
- /**
77680
- * * Field Name: AutoRunIntervalUnits
77681
- * * Display Name: Auto Run Interval Units
77682
- * * SQL Data Type: nvarchar(20)
77683
- * * Value List Type: List
77684
- * * Possible Values
77685
- * * Days
77686
- * * Hours
77687
- * * Minutes
77688
- * * Months
77689
- * * Weeks
77690
- * * Years
77691
- * * Description: Minutes, Hours, Days, Weeks, Months, Years
77692
- */
77693
- get AutoRunIntervalUnits(): 'Days' | 'Hours' | 'Minutes' | 'Months' | 'Weeks' | 'Years' | null;
77694
- set AutoRunIntervalUnits(value: 'Days' | 'Hours' | 'Minutes' | 'Months' | 'Weeks' | 'Years' | null);
77695
- /**
77696
- * * Field Name: AutoRunInterval
77697
- * * Display Name: Auto Run Interval
77698
- * * SQL Data Type: int
77699
- * * Description: The interval, denominated in the units specified in the AutoRunIntervalUnits column, between auto runs of this workflow.
77700
- */
77701
- get AutoRunInterval(): number | null;
77702
- set AutoRunInterval(value: number | null);
77703
- /**
77704
- * * Field Name: SubclassName
77705
- * * Display Name: Subclass Name
77706
- * * SQL Data Type: nvarchar(200)
77707
- * * 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.
77708
- */
77709
- get SubclassName(): string | null;
77710
- set SubclassName(value: string | null);
77711
- /**
77712
- * * Field Name: __mj_CreatedAt
77713
- * * Display Name: Created At
77714
- * * SQL Data Type: datetimeoffset
77715
- * * Default Value: getutcdate()
77716
- */
77717
- get __mj_CreatedAt(): Date;
77718
- /**
77719
- * * Field Name: __mj_UpdatedAt
77720
- * * Display Name: Updated At
77721
- * * SQL Data Type: datetimeoffset
77722
- * * Default Value: getutcdate()
77723
- */
77724
- get __mj_UpdatedAt(): Date;
77725
- /**
77726
- * * Field Name: AutoRunIntervalMinutes
77727
- * * Display Name: Auto Run Interval Minutes
77728
- * * SQL Data Type: int
77729
- */
77730
- get AutoRunIntervalMinutes(): number | null;
77731
- }
77732
76845
  /**
77733
76846
  * MJ: Workspace Items - strongly typed entity sub-class
77734
76847
  * * Schema: __mj