@memberjunction/core-entities 5.39.0 → 5.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1657,6 +1657,7 @@ export declare const MJAIAgentRunSchema: z.ZodObject<{
1657
1657
  CompanyID: z.ZodNullable<z.ZodString>;
1658
1658
  TotalCacheReadTokensUsed: z.ZodNullable<z.ZodNumber>;
1659
1659
  TotalCacheWriteTokensUsed: z.ZodNullable<z.ZodNumber>;
1660
+ LastHeartbeatAt: z.ZodNullable<z.ZodDate>;
1660
1661
  Agent: z.ZodNullable<z.ZodString>;
1661
1662
  ParentRun: z.ZodNullable<z.ZodString>;
1662
1663
  Conversation: z.ZodNullable<z.ZodString>;
@@ -1725,6 +1726,7 @@ export declare const MJAIAgentRunSchema: z.ZodObject<{
1725
1726
  ExternalReferenceID?: string;
1726
1727
  TotalCacheReadTokensUsed?: number;
1727
1728
  TotalCacheWriteTokensUsed?: number;
1729
+ LastHeartbeatAt?: Date;
1728
1730
  ParentRun?: string;
1729
1731
  ConversationDetail?: string;
1730
1732
  LastRun?: string;
@@ -1788,6 +1790,7 @@ export declare const MJAIAgentRunSchema: z.ZodObject<{
1788
1790
  ExternalReferenceID?: string;
1789
1791
  TotalCacheReadTokensUsed?: number;
1790
1792
  TotalCacheWriteTokensUsed?: number;
1793
+ LastHeartbeatAt?: Date;
1791
1794
  ParentRun?: string;
1792
1795
  ConversationDetail?: string;
1793
1796
  LastRun?: string;
@@ -4047,6 +4050,7 @@ export declare const MJAPIKeySchema: z.ZodObject<{
4047
4050
  CreatedByUserID: z.ZodString;
4048
4051
  __mj_CreatedAt: z.ZodDate;
4049
4052
  __mj_UpdatedAt: z.ZodDate;
4053
+ KeyPrefix: z.ZodNullable<z.ZodString>;
4050
4054
  User: z.ZodString;
4051
4055
  CreatedByUser: z.ZodString;
4052
4056
  }, "strip", z.ZodTypeAny, {
@@ -4062,6 +4066,7 @@ export declare const MJAPIKeySchema: z.ZodObject<{
4062
4066
  Hash?: string;
4063
4067
  LastUsedAt?: Date;
4064
4068
  CreatedByUserID?: string;
4069
+ KeyPrefix?: string;
4065
4070
  CreatedByUser?: string;
4066
4071
  }, {
4067
4072
  ID?: string;
@@ -4076,6 +4081,7 @@ export declare const MJAPIKeySchema: z.ZodObject<{
4076
4081
  Hash?: string;
4077
4082
  LastUsedAt?: Date;
4078
4083
  CreatedByUserID?: string;
4084
+ KeyPrefix?: string;
4079
4085
  CreatedByUser?: string;
4080
4086
  }>;
4081
4087
  export type MJAPIKeyEntityType = z.infer<typeof MJAPIKeySchema>;
@@ -4213,13 +4219,13 @@ export type MJApplicationRoleEntityType = z.infer<typeof MJApplicationRoleSchema
4213
4219
  */
4214
4220
  export declare const MJApplicationSettingSchema: z.ZodObject<{
4215
4221
  ID: z.ZodString;
4216
- ApplicationID: z.ZodString;
4222
+ ApplicationID: z.ZodNullable<z.ZodString>;
4217
4223
  Name: z.ZodString;
4218
4224
  Value: z.ZodString;
4219
4225
  Comments: z.ZodNullable<z.ZodString>;
4220
4226
  __mj_CreatedAt: z.ZodDate;
4221
4227
  __mj_UpdatedAt: z.ZodDate;
4222
- Application: z.ZodString;
4228
+ Application: z.ZodNullable<z.ZodString>;
4223
4229
  }, "strip", z.ZodTypeAny, {
4224
4230
  ID?: string;
4225
4231
  __mj_CreatedAt?: Date;
@@ -4987,6 +4993,97 @@ export declare const MJAuthorizationSchema: z.ZodObject<{
4987
4993
  UseAuditLog?: boolean;
4988
4994
  }>;
4989
4995
  export type MJAuthorizationEntityType = z.infer<typeof MJAuthorizationSchema>;
4996
+ /**
4997
+ * zod schema definition for the entity MJ: Cluster Analysis
4998
+ */
4999
+ export declare const MJClusterAnalysisSchema: z.ZodObject<{
5000
+ ID: z.ZodString;
5001
+ Name: z.ZodString;
5002
+ Description: z.ZodNullable<z.ZodString>;
5003
+ UserID: z.ZodString;
5004
+ EntityID: z.ZodNullable<z.ZodString>;
5005
+ Algorithm: z.ZodUnion<[z.ZodLiteral<"DBSCAN">, z.ZodLiteral<"Hierarchical">, z.ZodLiteral<"KMeans">]>;
5006
+ Configuration: z.ZodNullable<z.ZodString>;
5007
+ Metrics: z.ZodNullable<z.ZodString>;
5008
+ ProjectedPoints: z.ZodNullable<z.ZodString>;
5009
+ ViewportState: z.ZodNullable<z.ZodString>;
5010
+ Status: z.ZodUnion<[z.ZodLiteral<"Complete">, z.ZodLiteral<"Failed">, z.ZodLiteral<"Pending">]>;
5011
+ __mj_CreatedAt: z.ZodDate;
5012
+ __mj_UpdatedAt: z.ZodDate;
5013
+ User: z.ZodString;
5014
+ Entity: z.ZodNullable<z.ZodString>;
5015
+ }, "strip", z.ZodTypeAny, {
5016
+ ID?: string;
5017
+ EntityID?: string;
5018
+ User?: string;
5019
+ __mj_CreatedAt?: Date;
5020
+ __mj_UpdatedAt?: Date;
5021
+ Entity?: string;
5022
+ Name?: string;
5023
+ Description?: string;
5024
+ Status?: "Pending" | "Complete" | "Failed";
5025
+ UserID?: string;
5026
+ Configuration?: string;
5027
+ Algorithm?: "DBSCAN" | "Hierarchical" | "KMeans";
5028
+ Metrics?: string;
5029
+ ProjectedPoints?: string;
5030
+ ViewportState?: string;
5031
+ }, {
5032
+ ID?: string;
5033
+ EntityID?: string;
5034
+ User?: string;
5035
+ __mj_CreatedAt?: Date;
5036
+ __mj_UpdatedAt?: Date;
5037
+ Entity?: string;
5038
+ Name?: string;
5039
+ Description?: string;
5040
+ Status?: "Pending" | "Complete" | "Failed";
5041
+ UserID?: string;
5042
+ Configuration?: string;
5043
+ Algorithm?: "DBSCAN" | "Hierarchical" | "KMeans";
5044
+ Metrics?: string;
5045
+ ProjectedPoints?: string;
5046
+ ViewportState?: string;
5047
+ }>;
5048
+ export type MJClusterAnalysisEntityType = z.infer<typeof MJClusterAnalysisSchema>;
5049
+ /**
5050
+ * zod schema definition for the entity MJ: Cluster Analysis Clusters
5051
+ */
5052
+ export declare const MJClusterAnalysisClusterSchema: z.ZodObject<{
5053
+ ID: z.ZodString;
5054
+ ClusterAnalysisID: z.ZodString;
5055
+ ClusterIndex: z.ZodNumber;
5056
+ Label: z.ZodNullable<z.ZodString>;
5057
+ MemberCount: z.ZodNumber;
5058
+ Color: z.ZodNullable<z.ZodString>;
5059
+ IsUserEdited: z.ZodBoolean;
5060
+ __mj_CreatedAt: z.ZodDate;
5061
+ __mj_UpdatedAt: z.ZodDate;
5062
+ ClusterAnalysis: z.ZodString;
5063
+ }, "strip", z.ZodTypeAny, {
5064
+ ID?: string;
5065
+ __mj_CreatedAt?: Date;
5066
+ __mj_UpdatedAt?: Date;
5067
+ Label?: string;
5068
+ Color?: string;
5069
+ ClusterAnalysisID?: string;
5070
+ ClusterIndex?: number;
5071
+ MemberCount?: number;
5072
+ IsUserEdited?: boolean;
5073
+ ClusterAnalysis?: string;
5074
+ }, {
5075
+ ID?: string;
5076
+ __mj_CreatedAt?: Date;
5077
+ __mj_UpdatedAt?: Date;
5078
+ Label?: string;
5079
+ Color?: string;
5080
+ ClusterAnalysisID?: string;
5081
+ ClusterIndex?: number;
5082
+ MemberCount?: number;
5083
+ IsUserEdited?: boolean;
5084
+ ClusterAnalysis?: string;
5085
+ }>;
5086
+ export type MJClusterAnalysisClusterEntityType = z.infer<typeof MJClusterAnalysisClusterSchema>;
4990
5087
  /**
4991
5088
  * zod schema definition for the entity MJ: Collection Artifacts
4992
5089
  */
@@ -6164,8 +6261,11 @@ export declare const MJContentItemTagSchema: z.ZodObject<{
6164
6261
  __mj_UpdatedAt: z.ZodDate;
6165
6262
  Weight: z.ZodNumber;
6166
6263
  TagID: z.ZodNullable<z.ZodString>;
6264
+ AIPromptRunID: z.ZodNullable<z.ZodString>;
6265
+ Reasoning: z.ZodNullable<z.ZodString>;
6167
6266
  Item: z.ZodNullable<z.ZodString>;
6168
6267
  Tag_Virtual: z.ZodNullable<z.ZodString>;
6268
+ AIPromptRun: z.ZodNullable<z.ZodString>;
6169
6269
  }, "strip", z.ZodTypeAny, {
6170
6270
  ID?: string;
6171
6271
  __mj_CreatedAt?: Date;
@@ -6174,8 +6274,11 @@ export declare const MJContentItemTagSchema: z.ZodObject<{
6174
6274
  ItemID?: string;
6175
6275
  Tag?: string;
6176
6276
  TagID?: string;
6277
+ AIPromptRunID?: string;
6278
+ Reasoning?: string;
6177
6279
  Item?: string;
6178
6280
  Tag_Virtual?: string;
6281
+ AIPromptRun?: string;
6179
6282
  }, {
6180
6283
  ID?: string;
6181
6284
  __mj_CreatedAt?: Date;
@@ -6184,8 +6287,11 @@ export declare const MJContentItemTagSchema: z.ZodObject<{
6184
6287
  ItemID?: string;
6185
6288
  Tag?: string;
6186
6289
  TagID?: string;
6290
+ AIPromptRunID?: string;
6291
+ Reasoning?: string;
6187
6292
  Item?: string;
6188
6293
  Tag_Virtual?: string;
6294
+ AIPromptRun?: string;
6189
6295
  }>;
6190
6296
  export type MJContentItemTagEntityType = z.infer<typeof MJContentItemTagSchema>;
6191
6297
  /**
@@ -6349,17 +6455,17 @@ export declare const MJContentProcessRunPromptRunSchema: z.ZodObject<{
6349
6455
  __mj_CreatedAt?: Date;
6350
6456
  __mj_UpdatedAt?: Date;
6351
6457
  RunType?: "Tag" | "Embed";
6352
- ContentProcessRunDetailID?: string;
6353
6458
  AIPromptRunID?: string;
6354
6459
  AIPromptRun?: string;
6460
+ ContentProcessRunDetailID?: string;
6355
6461
  }, {
6356
6462
  ID?: string;
6357
6463
  __mj_CreatedAt?: Date;
6358
6464
  __mj_UpdatedAt?: Date;
6359
6465
  RunType?: "Tag" | "Embed";
6360
- ContentProcessRunDetailID?: string;
6361
6466
  AIPromptRunID?: string;
6362
6467
  AIPromptRun?: string;
6468
+ ContentProcessRunDetailID?: string;
6363
6469
  }>;
6364
6470
  export type MJContentProcessRunPromptRunEntityType = z.infer<typeof MJContentProcessRunPromptRunSchema>;
6365
6471
  /**
@@ -10806,6 +10912,216 @@ export declare const MJListSchema: z.ZodObject<{
10806
10912
  LastRefreshedByUser?: string;
10807
10913
  }>;
10808
10914
  export type MJListEntityType = z.infer<typeof MJListSchema>;
10915
+ /**
10916
+ * zod schema definition for the entity MJ: Magic Link Invite Allowed Domains
10917
+ */
10918
+ export declare const MJMagicLinkInviteAllowedDomainSchema: z.ZodObject<{
10919
+ ID: z.ZodString;
10920
+ InviteID: z.ZodString;
10921
+ Domain: z.ZodString;
10922
+ __mj_CreatedAt: z.ZodDate;
10923
+ __mj_UpdatedAt: z.ZodDate;
10924
+ }, "strip", z.ZodTypeAny, {
10925
+ ID?: string;
10926
+ __mj_CreatedAt?: Date;
10927
+ __mj_UpdatedAt?: Date;
10928
+ Domain?: string;
10929
+ InviteID?: string;
10930
+ }, {
10931
+ ID?: string;
10932
+ __mj_CreatedAt?: Date;
10933
+ __mj_UpdatedAt?: Date;
10934
+ Domain?: string;
10935
+ InviteID?: string;
10936
+ }>;
10937
+ export type MJMagicLinkInviteAllowedDomainEntityType = z.infer<typeof MJMagicLinkInviteAllowedDomainSchema>;
10938
+ /**
10939
+ * zod schema definition for the entity MJ: Magic Link Invite Allowed Paths
10940
+ */
10941
+ export declare const MJMagicLinkInviteAllowedPathSchema: z.ZodObject<{
10942
+ ID: z.ZodString;
10943
+ InviteID: z.ZodString;
10944
+ Path: z.ZodString;
10945
+ __mj_CreatedAt: z.ZodDate;
10946
+ __mj_UpdatedAt: z.ZodDate;
10947
+ }, "strip", z.ZodTypeAny, {
10948
+ ID?: string;
10949
+ __mj_CreatedAt?: Date;
10950
+ __mj_UpdatedAt?: Date;
10951
+ Path?: string;
10952
+ InviteID?: string;
10953
+ }, {
10954
+ ID?: string;
10955
+ __mj_CreatedAt?: Date;
10956
+ __mj_UpdatedAt?: Date;
10957
+ Path?: string;
10958
+ InviteID?: string;
10959
+ }>;
10960
+ export type MJMagicLinkInviteAllowedPathEntityType = z.infer<typeof MJMagicLinkInviteAllowedPathSchema>;
10961
+ /**
10962
+ * zod schema definition for the entity MJ: Magic Link Invite Applications
10963
+ */
10964
+ export declare const MJMagicLinkInviteApplicationSchema: z.ZodObject<{
10965
+ ID: z.ZodString;
10966
+ InviteID: z.ZodString;
10967
+ ApplicationID: z.ZodString;
10968
+ __mj_CreatedAt: z.ZodDate;
10969
+ __mj_UpdatedAt: z.ZodDate;
10970
+ Application: z.ZodString;
10971
+ }, "strip", z.ZodTypeAny, {
10972
+ ID?: string;
10973
+ __mj_CreatedAt?: Date;
10974
+ __mj_UpdatedAt?: Date;
10975
+ ApplicationID?: string;
10976
+ Application?: string;
10977
+ InviteID?: string;
10978
+ }, {
10979
+ ID?: string;
10980
+ __mj_CreatedAt?: Date;
10981
+ __mj_UpdatedAt?: Date;
10982
+ ApplicationID?: string;
10983
+ Application?: string;
10984
+ InviteID?: string;
10985
+ }>;
10986
+ export type MJMagicLinkInviteApplicationEntityType = z.infer<typeof MJMagicLinkInviteApplicationSchema>;
10987
+ /**
10988
+ * zod schema definition for the entity MJ: Magic Link Invite Roles
10989
+ */
10990
+ export declare const MJMagicLinkInviteRoleSchema: z.ZodObject<{
10991
+ ID: z.ZodString;
10992
+ InviteID: z.ZodString;
10993
+ RoleID: z.ZodString;
10994
+ __mj_CreatedAt: z.ZodDate;
10995
+ __mj_UpdatedAt: z.ZodDate;
10996
+ Role: z.ZodString;
10997
+ }, "strip", z.ZodTypeAny, {
10998
+ ID?: string;
10999
+ Role?: string;
11000
+ __mj_CreatedAt?: Date;
11001
+ __mj_UpdatedAt?: Date;
11002
+ RoleID?: string;
11003
+ InviteID?: string;
11004
+ }, {
11005
+ ID?: string;
11006
+ Role?: string;
11007
+ __mj_CreatedAt?: Date;
11008
+ __mj_UpdatedAt?: Date;
11009
+ RoleID?: string;
11010
+ InviteID?: string;
11011
+ }>;
11012
+ export type MJMagicLinkInviteRoleEntityType = z.infer<typeof MJMagicLinkInviteRoleSchema>;
11013
+ /**
11014
+ * zod schema definition for the entity MJ: Magic Link Invites
11015
+ */
11016
+ export declare const MJMagicLinkInviteSchema: z.ZodObject<{
11017
+ ID: z.ZodString;
11018
+ TokenHash: z.ZodString;
11019
+ Email: z.ZodNullable<z.ZodString>;
11020
+ ApplicationID: z.ZodString;
11021
+ RoleID: z.ZodString;
11022
+ ExpiresAt: z.ZodDate;
11023
+ ConsumedAt: z.ZodNullable<z.ZodDate>;
11024
+ MaxUses: z.ZodNumber;
11025
+ UseCount: z.ZodNumber;
11026
+ CreatedByUserID: z.ZodString;
11027
+ Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Consumed">, z.ZodLiteral<"Expired">, z.ZodLiteral<"Revoked">]>;
11028
+ IdentityMode: z.ZodUnion<[z.ZodLiteral<"anonymous">, z.ZodLiteral<"email">]>;
11029
+ Kind: z.ZodUnion<[z.ZodLiteral<"anonymous-embed">, z.ZodLiteral<"app-session">, z.ZodLiteral<"resource-share">]>;
11030
+ ResourceTypeID: z.ZodNullable<z.ZodString>;
11031
+ ResourceID: z.ZodNullable<z.ZodString>;
11032
+ __mj_CreatedAt: z.ZodDate;
11033
+ __mj_UpdatedAt: z.ZodDate;
11034
+ Application: z.ZodString;
11035
+ Role: z.ZodString;
11036
+ CreatedByUser: z.ZodString;
11037
+ ResourceType: z.ZodNullable<z.ZodString>;
11038
+ }, "strip", z.ZodTypeAny, {
11039
+ ID?: string;
11040
+ Role?: string;
11041
+ ExpiresAt?: Date;
11042
+ __mj_CreatedAt?: Date;
11043
+ __mj_UpdatedAt?: Date;
11044
+ Status?: "Active" | "Revoked" | "Expired" | "Consumed";
11045
+ RoleID?: string;
11046
+ ApplicationID?: string;
11047
+ Application?: string;
11048
+ CreatedByUserID?: string;
11049
+ CreatedByUser?: string;
11050
+ ResourceType?: string;
11051
+ Email?: string;
11052
+ TokenHash?: string;
11053
+ ConsumedAt?: Date;
11054
+ MaxUses?: number;
11055
+ UseCount?: number;
11056
+ IdentityMode?: "anonymous" | "email";
11057
+ Kind?: "anonymous-embed" | "app-session" | "resource-share";
11058
+ ResourceTypeID?: string;
11059
+ ResourceID?: string;
11060
+ }, {
11061
+ ID?: string;
11062
+ Role?: string;
11063
+ ExpiresAt?: Date;
11064
+ __mj_CreatedAt?: Date;
11065
+ __mj_UpdatedAt?: Date;
11066
+ Status?: "Active" | "Revoked" | "Expired" | "Consumed";
11067
+ RoleID?: string;
11068
+ ApplicationID?: string;
11069
+ Application?: string;
11070
+ CreatedByUserID?: string;
11071
+ CreatedByUser?: string;
11072
+ ResourceType?: string;
11073
+ Email?: string;
11074
+ TokenHash?: string;
11075
+ ConsumedAt?: Date;
11076
+ MaxUses?: number;
11077
+ UseCount?: number;
11078
+ IdentityMode?: "anonymous" | "email";
11079
+ Kind?: "anonymous-embed" | "app-session" | "resource-share";
11080
+ ResourceTypeID?: string;
11081
+ ResourceID?: string;
11082
+ }>;
11083
+ export type MJMagicLinkInviteEntityType = z.infer<typeof MJMagicLinkInviteSchema>;
11084
+ /**
11085
+ * zod schema definition for the entity MJ: Magic Link Redemptions
11086
+ */
11087
+ export declare const MJMagicLinkRedemptionSchema: z.ZodObject<{
11088
+ ID: z.ZodString;
11089
+ InviteID: z.ZodNullable<z.ZodString>;
11090
+ AttemptedAt: z.ZodDate;
11091
+ Outcome: z.ZodUnion<[z.ZodLiteral<"consumed">, z.ZodLiteral<"expired">, z.ZodLiteral<"invalid">, z.ZodLiteral<"not_found">, z.ZodLiteral<"provisioning_failed">, z.ZodLiteral<"revoked">, z.ZodLiteral<"server_error">, z.ZodLiteral<"success">]>;
11092
+ IPAddress: z.ZodNullable<z.ZodString>;
11093
+ UserAgent: z.ZodNullable<z.ZodString>;
11094
+ Origin: z.ZodNullable<z.ZodString>;
11095
+ ProvisionedUserID: z.ZodNullable<z.ZodString>;
11096
+ __mj_CreatedAt: z.ZodDate;
11097
+ __mj_UpdatedAt: z.ZodDate;
11098
+ ProvisionedUser: z.ZodNullable<z.ZodString>;
11099
+ }, "strip", z.ZodTypeAny, {
11100
+ ID?: string;
11101
+ __mj_CreatedAt?: Date;
11102
+ __mj_UpdatedAt?: Date;
11103
+ IPAddress?: string;
11104
+ UserAgent?: string;
11105
+ InviteID?: string;
11106
+ AttemptedAt?: Date;
11107
+ Outcome?: "consumed" | "expired" | "invalid" | "not_found" | "provisioning_failed" | "revoked" | "server_error" | "success";
11108
+ Origin?: string;
11109
+ ProvisionedUserID?: string;
11110
+ ProvisionedUser?: string;
11111
+ }, {
11112
+ ID?: string;
11113
+ __mj_CreatedAt?: Date;
11114
+ __mj_UpdatedAt?: Date;
11115
+ IPAddress?: string;
11116
+ UserAgent?: string;
11117
+ InviteID?: string;
11118
+ AttemptedAt?: Date;
11119
+ Outcome?: "consumed" | "expired" | "invalid" | "not_found" | "provisioning_failed" | "revoked" | "server_error" | "success";
11120
+ Origin?: string;
11121
+ ProvisionedUserID?: string;
11122
+ ProvisionedUser?: string;
11123
+ }>;
11124
+ export type MJMagicLinkRedemptionEntityType = z.infer<typeof MJMagicLinkRedemptionSchema>;
10809
11125
  /**
10810
11126
  * zod schema definition for the entity MJ: MCP Server Connection Permissions
10811
11127
  */
@@ -12648,7 +12964,7 @@ export declare const MJRecordGeoCodeSchema: z.ZodObject<{
12648
12964
  __mj_CreatedAt?: Date;
12649
12965
  __mj_UpdatedAt?: Date;
12650
12966
  Entity?: string;
12651
- Status?: "failed" | "pending" | "success";
12967
+ Status?: "success" | "failed" | "pending";
12652
12968
  ErrorMessage?: string;
12653
12969
  RetryCount?: number;
12654
12970
  Latitude?: number;
@@ -12669,7 +12985,7 @@ export declare const MJRecordGeoCodeSchema: z.ZodObject<{
12669
12985
  __mj_CreatedAt?: Date;
12670
12986
  __mj_UpdatedAt?: Date;
12671
12987
  Entity?: string;
12672
- Status?: "failed" | "pending" | "success";
12988
+ Status?: "success" | "failed" | "pending";
12673
12989
  ErrorMessage?: string;
12674
12990
  RetryCount?: number;
12675
12991
  Latitude?: number;
@@ -13974,6 +14290,279 @@ export declare const MJSearchScopeSchema: z.ZodObject<{
13974
14290
  RerankerBudgetCents?: number;
13975
14291
  }>;
13976
14292
  export type MJSearchScopeEntityType = z.infer<typeof MJSearchScopeSchema>;
14293
+ /**
14294
+ * zod schema definition for the entity MJ: Signature Accounts
14295
+ */
14296
+ export declare const MJSignatureAccountSchema: z.ZodObject<{
14297
+ ID: z.ZodString;
14298
+ Name: z.ZodString;
14299
+ SignatureProviderID: z.ZodString;
14300
+ CredentialID: z.ZodString;
14301
+ CompanyID: z.ZodNullable<z.ZodString>;
14302
+ IsActive: z.ZodBoolean;
14303
+ IsDefault: z.ZodBoolean;
14304
+ DefaultFromName: z.ZodNullable<z.ZodString>;
14305
+ DefaultFromEmail: z.ZodNullable<z.ZodString>;
14306
+ Configuration: z.ZodNullable<z.ZodString>;
14307
+ __mj_CreatedAt: z.ZodDate;
14308
+ __mj_UpdatedAt: z.ZodDate;
14309
+ SignatureProvider: z.ZodString;
14310
+ Credential: z.ZodString;
14311
+ Company: z.ZodNullable<z.ZodString>;
14312
+ }, "strip", z.ZodTypeAny, {
14313
+ ID?: string;
14314
+ __mj_CreatedAt?: Date;
14315
+ __mj_UpdatedAt?: Date;
14316
+ Name?: string;
14317
+ IsActive?: boolean;
14318
+ IsDefault?: boolean;
14319
+ CompanyID?: string;
14320
+ Company?: string;
14321
+ Configuration?: string;
14322
+ CredentialID?: string;
14323
+ Credential?: string;
14324
+ SignatureProviderID?: string;
14325
+ DefaultFromName?: string;
14326
+ DefaultFromEmail?: string;
14327
+ SignatureProvider?: string;
14328
+ }, {
14329
+ ID?: string;
14330
+ __mj_CreatedAt?: Date;
14331
+ __mj_UpdatedAt?: Date;
14332
+ Name?: string;
14333
+ IsActive?: boolean;
14334
+ IsDefault?: boolean;
14335
+ CompanyID?: string;
14336
+ Company?: string;
14337
+ Configuration?: string;
14338
+ CredentialID?: string;
14339
+ Credential?: string;
14340
+ SignatureProviderID?: string;
14341
+ DefaultFromName?: string;
14342
+ DefaultFromEmail?: string;
14343
+ SignatureProvider?: string;
14344
+ }>;
14345
+ export type MJSignatureAccountEntityType = z.infer<typeof MJSignatureAccountSchema>;
14346
+ /**
14347
+ * zod schema definition for the entity MJ: Signature Providers
14348
+ */
14349
+ export declare const MJSignatureProviderSchema: z.ZodObject<{
14350
+ ID: z.ZodString;
14351
+ Name: z.ZodString;
14352
+ ServerDriverKey: z.ZodString;
14353
+ IsActive: z.ZodBoolean;
14354
+ Priority: z.ZodNumber;
14355
+ RequiresOAuth: z.ZodBoolean;
14356
+ SupportsTemplates: z.ZodBoolean;
14357
+ SupportsEmbeddedSigning: z.ZodBoolean;
14358
+ Configuration: z.ZodNullable<z.ZodString>;
14359
+ __mj_CreatedAt: z.ZodDate;
14360
+ __mj_UpdatedAt: z.ZodDate;
14361
+ }, "strip", z.ZodTypeAny, {
14362
+ ID?: string;
14363
+ __mj_CreatedAt?: Date;
14364
+ __mj_UpdatedAt?: Date;
14365
+ Name?: string;
14366
+ IsActive?: boolean;
14367
+ Priority?: number;
14368
+ Configuration?: string;
14369
+ ServerDriverKey?: string;
14370
+ RequiresOAuth?: boolean;
14371
+ SupportsTemplates?: boolean;
14372
+ SupportsEmbeddedSigning?: boolean;
14373
+ }, {
14374
+ ID?: string;
14375
+ __mj_CreatedAt?: Date;
14376
+ __mj_UpdatedAt?: Date;
14377
+ Name?: string;
14378
+ IsActive?: boolean;
14379
+ Priority?: number;
14380
+ Configuration?: string;
14381
+ ServerDriverKey?: string;
14382
+ RequiresOAuth?: boolean;
14383
+ SupportsTemplates?: boolean;
14384
+ SupportsEmbeddedSigning?: boolean;
14385
+ }>;
14386
+ export type MJSignatureProviderEntityType = z.infer<typeof MJSignatureProviderSchema>;
14387
+ /**
14388
+ * zod schema definition for the entity MJ: Signature Request Documents
14389
+ */
14390
+ export declare const MJSignatureRequestDocumentSchema: z.ZodObject<{
14391
+ ID: z.ZodString;
14392
+ SignatureRequestID: z.ZodString;
14393
+ ArtifactID: z.ZodNullable<z.ZodString>;
14394
+ ArtifactVersionID: z.ZodNullable<z.ZodString>;
14395
+ Name: z.ZodString;
14396
+ Sequence: z.ZodNumber;
14397
+ Role: z.ZodUnion<[z.ZodLiteral<"Signed">, z.ZodLiteral<"Source">]>;
14398
+ __mj_CreatedAt: z.ZodDate;
14399
+ __mj_UpdatedAt: z.ZodDate;
14400
+ SignatureRequest: z.ZodString;
14401
+ Artifact: z.ZodNullable<z.ZodString>;
14402
+ ArtifactVersion: z.ZodNullable<z.ZodString>;
14403
+ }, "strip", z.ZodTypeAny, {
14404
+ ID?: string;
14405
+ Role?: "Source" | "Signed";
14406
+ __mj_CreatedAt?: Date;
14407
+ __mj_UpdatedAt?: Date;
14408
+ Name?: string;
14409
+ Sequence?: number;
14410
+ ArtifactID?: string;
14411
+ Artifact?: string;
14412
+ ArtifactVersionID?: string;
14413
+ ArtifactVersion?: string;
14414
+ SignatureRequestID?: string;
14415
+ SignatureRequest?: string;
14416
+ }, {
14417
+ ID?: string;
14418
+ Role?: "Source" | "Signed";
14419
+ __mj_CreatedAt?: Date;
14420
+ __mj_UpdatedAt?: Date;
14421
+ Name?: string;
14422
+ Sequence?: number;
14423
+ ArtifactID?: string;
14424
+ Artifact?: string;
14425
+ ArtifactVersionID?: string;
14426
+ ArtifactVersion?: string;
14427
+ SignatureRequestID?: string;
14428
+ SignatureRequest?: string;
14429
+ }>;
14430
+ export type MJSignatureRequestDocumentEntityType = z.infer<typeof MJSignatureRequestDocumentSchema>;
14431
+ /**
14432
+ * zod schema definition for the entity MJ: Signature Request Logs
14433
+ */
14434
+ export declare const MJSignatureRequestLogSchema: z.ZodObject<{
14435
+ ID: z.ZodString;
14436
+ SignatureRequestID: z.ZodNullable<z.ZodString>;
14437
+ Operation: z.ZodString;
14438
+ Success: z.ZodBoolean;
14439
+ StatusBefore: z.ZodNullable<z.ZodString>;
14440
+ StatusAfter: z.ZodNullable<z.ZodString>;
14441
+ Detail: z.ZodNullable<z.ZodString>;
14442
+ __mj_CreatedAt: z.ZodDate;
14443
+ __mj_UpdatedAt: z.ZodDate;
14444
+ SignatureRequest: z.ZodNullable<z.ZodString>;
14445
+ }, "strip", z.ZodTypeAny, {
14446
+ ID?: string;
14447
+ __mj_CreatedAt?: Date;
14448
+ __mj_UpdatedAt?: Date;
14449
+ Success?: boolean;
14450
+ Operation?: string;
14451
+ SignatureRequestID?: string;
14452
+ SignatureRequest?: string;
14453
+ StatusBefore?: string;
14454
+ StatusAfter?: string;
14455
+ Detail?: string;
14456
+ }, {
14457
+ ID?: string;
14458
+ __mj_CreatedAt?: Date;
14459
+ __mj_UpdatedAt?: Date;
14460
+ Success?: boolean;
14461
+ Operation?: string;
14462
+ SignatureRequestID?: string;
14463
+ SignatureRequest?: string;
14464
+ StatusBefore?: string;
14465
+ StatusAfter?: string;
14466
+ Detail?: string;
14467
+ }>;
14468
+ export type MJSignatureRequestLogEntityType = z.infer<typeof MJSignatureRequestLogSchema>;
14469
+ /**
14470
+ * zod schema definition for the entity MJ: Signature Request Recipients
14471
+ */
14472
+ export declare const MJSignatureRequestRecipientSchema: z.ZodObject<{
14473
+ ID: z.ZodString;
14474
+ SignatureRequestID: z.ZodString;
14475
+ Email: z.ZodString;
14476
+ Name: z.ZodNullable<z.ZodString>;
14477
+ RoutingOrder: z.ZodNumber;
14478
+ Role: z.ZodNullable<z.ZodString>;
14479
+ Status: z.ZodUnion<[z.ZodLiteral<"Created">, z.ZodLiteral<"Declined">, z.ZodLiteral<"Delivered">, z.ZodLiteral<"Sent">, z.ZodLiteral<"Signed">]>;
14480
+ SignedAt: z.ZodNullable<z.ZodDate>;
14481
+ ExternalRecipientID: z.ZodNullable<z.ZodString>;
14482
+ __mj_CreatedAt: z.ZodDate;
14483
+ __mj_UpdatedAt: z.ZodDate;
14484
+ SignatureRequest: z.ZodString;
14485
+ }, "strip", z.ZodTypeAny, {
14486
+ ID?: string;
14487
+ Role?: string;
14488
+ __mj_CreatedAt?: Date;
14489
+ __mj_UpdatedAt?: Date;
14490
+ Name?: string;
14491
+ Status?: "Signed" | "Created" | "Declined" | "Delivered" | "Sent";
14492
+ Email?: string;
14493
+ SignatureRequestID?: string;
14494
+ SignatureRequest?: string;
14495
+ RoutingOrder?: number;
14496
+ SignedAt?: Date;
14497
+ ExternalRecipientID?: string;
14498
+ }, {
14499
+ ID?: string;
14500
+ Role?: string;
14501
+ __mj_CreatedAt?: Date;
14502
+ __mj_UpdatedAt?: Date;
14503
+ Name?: string;
14504
+ Status?: "Signed" | "Created" | "Declined" | "Delivered" | "Sent";
14505
+ Email?: string;
14506
+ SignatureRequestID?: string;
14507
+ SignatureRequest?: string;
14508
+ RoutingOrder?: number;
14509
+ SignedAt?: Date;
14510
+ ExternalRecipientID?: string;
14511
+ }>;
14512
+ export type MJSignatureRequestRecipientEntityType = z.infer<typeof MJSignatureRequestRecipientSchema>;
14513
+ /**
14514
+ * zod schema definition for the entity MJ: Signature Requests
14515
+ */
14516
+ export declare const MJSignatureRequestSchema: z.ZodObject<{
14517
+ ID: z.ZodString;
14518
+ SignatureAccountID: z.ZodString;
14519
+ Name: z.ZodString;
14520
+ Message: z.ZodNullable<z.ZodString>;
14521
+ Status: z.ZodUnion<[z.ZodLiteral<"Completed">, z.ZodLiteral<"Declined">, z.ZodLiteral<"Delivered">, z.ZodLiteral<"Draft">, z.ZodLiteral<"Sent">, z.ZodLiteral<"Signed">, z.ZodLiteral<"Voided">]>;
14522
+ ExternalEnvelopeID: z.ZodNullable<z.ZodString>;
14523
+ EntityID: z.ZodNullable<z.ZodString>;
14524
+ RecordID: z.ZodNullable<z.ZodString>;
14525
+ SentAt: z.ZodNullable<z.ZodDate>;
14526
+ CompletedAt: z.ZodNullable<z.ZodDate>;
14527
+ VoidReason: z.ZodNullable<z.ZodString>;
14528
+ __mj_CreatedAt: z.ZodDate;
14529
+ __mj_UpdatedAt: z.ZodDate;
14530
+ SignatureAccount: z.ZodString;
14531
+ Entity: z.ZodNullable<z.ZodString>;
14532
+ }, "strip", z.ZodTypeAny, {
14533
+ ID?: string;
14534
+ EntityID?: string;
14535
+ RecordID?: string;
14536
+ __mj_CreatedAt?: Date;
14537
+ __mj_UpdatedAt?: Date;
14538
+ Entity?: string;
14539
+ Name?: string;
14540
+ Status?: "Completed" | "Draft" | "Signed" | "Declined" | "Delivered" | "Sent" | "Voided";
14541
+ Message?: string;
14542
+ CompletedAt?: Date;
14543
+ SignatureAccountID?: string;
14544
+ ExternalEnvelopeID?: string;
14545
+ SentAt?: Date;
14546
+ VoidReason?: string;
14547
+ SignatureAccount?: string;
14548
+ }, {
14549
+ ID?: string;
14550
+ EntityID?: string;
14551
+ RecordID?: string;
14552
+ __mj_CreatedAt?: Date;
14553
+ __mj_UpdatedAt?: Date;
14554
+ Entity?: string;
14555
+ Name?: string;
14556
+ Status?: "Completed" | "Draft" | "Signed" | "Declined" | "Delivered" | "Sent" | "Voided";
14557
+ Message?: string;
14558
+ CompletedAt?: Date;
14559
+ SignatureAccountID?: string;
14560
+ ExternalEnvelopeID?: string;
14561
+ SentAt?: Date;
14562
+ VoidReason?: string;
14563
+ SignatureAccount?: string;
14564
+ }>;
14565
+ export type MJSignatureRequestEntityType = z.infer<typeof MJSignatureRequestSchema>;
13977
14566
  /**
13978
14567
  * zod schema definition for the entity MJ: Skills
13979
14568
  */
@@ -15833,6 +16422,7 @@ export declare const MJUserViewSchema: z.ZodObject<{
15833
16422
  Thumbnail: z.ZodNullable<z.ZodString>;
15834
16423
  CardState: z.ZodNullable<z.ZodAny>;
15835
16424
  DisplayState: z.ZodNullable<z.ZodAny>;
16425
+ ViewTypeID: z.ZodNullable<z.ZodString>;
15836
16426
  UserName: z.ZodString;
15837
16427
  UserFirstLast: z.ZodNullable<z.ZodString>;
15838
16428
  UserEmail: z.ZodString;
@@ -15868,6 +16458,7 @@ export declare const MJUserViewSchema: z.ZodObject<{
15868
16458
  SortState?: any;
15869
16459
  CardState?: any;
15870
16460
  DisplayState?: any;
16461
+ ViewTypeID?: string;
15871
16462
  UserType?: string;
15872
16463
  }, {
15873
16464
  ID?: string;
@@ -15898,6 +16489,7 @@ export declare const MJUserViewSchema: z.ZodObject<{
15898
16489
  SortState?: any;
15899
16490
  CardState?: any;
15900
16491
  DisplayState?: any;
16492
+ ViewTypeID?: string;
15901
16493
  UserType?: string;
15902
16494
  }>;
15903
16495
  export type MJUserViewEntityType = z.infer<typeof MJUserViewSchema>;
@@ -16260,6 +16852,50 @@ export declare const MJVersionLabelSchema: z.ZodObject<{
16260
16852
  CreationDurationMS?: number;
16261
16853
  }>;
16262
16854
  export type MJVersionLabelEntityType = z.infer<typeof MJVersionLabelSchema>;
16855
+ /**
16856
+ * zod schema definition for the entity MJ: View Types
16857
+ */
16858
+ export declare const MJViewTypeSchema: z.ZodObject<{
16859
+ ID: z.ZodString;
16860
+ Name: z.ZodString;
16861
+ DisplayName: z.ZodString;
16862
+ Description: z.ZodNullable<z.ZodString>;
16863
+ DriverClass: z.ZodString;
16864
+ PropertySheetDriverClass: z.ZodNullable<z.ZodString>;
16865
+ Icon: z.ZodNullable<z.ZodString>;
16866
+ Sequence: z.ZodNumber;
16867
+ IsActive: z.ZodBoolean;
16868
+ SupportsConfiguration: z.ZodBoolean;
16869
+ __mj_CreatedAt: z.ZodDate;
16870
+ __mj_UpdatedAt: z.ZodDate;
16871
+ }, "strip", z.ZodTypeAny, {
16872
+ ID?: string;
16873
+ __mj_CreatedAt?: Date;
16874
+ __mj_UpdatedAt?: Date;
16875
+ Name?: string;
16876
+ Description?: string;
16877
+ DriverClass?: string;
16878
+ IsActive?: boolean;
16879
+ Sequence?: number;
16880
+ DisplayName?: string;
16881
+ Icon?: string;
16882
+ PropertySheetDriverClass?: string;
16883
+ SupportsConfiguration?: boolean;
16884
+ }, {
16885
+ ID?: string;
16886
+ __mj_CreatedAt?: Date;
16887
+ __mj_UpdatedAt?: Date;
16888
+ Name?: string;
16889
+ Description?: string;
16890
+ DriverClass?: string;
16891
+ IsActive?: boolean;
16892
+ Sequence?: number;
16893
+ DisplayName?: string;
16894
+ Icon?: string;
16895
+ PropertySheetDriverClass?: string;
16896
+ SupportsConfiguration?: boolean;
16897
+ }>;
16898
+ export type MJViewTypeEntityType = z.infer<typeof MJViewTypeSchema>;
16263
16899
  /**
16264
16900
  * zod schema definition for the entity MJ: Workflow Engines
16265
16901
  */
@@ -21770,6 +22406,14 @@ each time the agent processes a prompt step.
21770
22406
  get TotalCacheWriteTokensUsed(): number | null;
21771
22407
  set TotalCacheWriteTokensUsed(value: number | null);
21772
22408
  /**
22409
+ * * Field Name: LastHeartbeatAt
22410
+ * * Display Name: Last Heartbeat At
22411
+ * * SQL Data Type: datetimeoffset
22412
+ * * Description: Timestamp of the most recent liveness heartbeat written by the owning process while this run is in progress. Used by the agent-run watchdog to detect runs orphaned by a process restart/crash or a failed terminal-state write: a Running row whose LastHeartbeatAt has gone stale (or is NULL with an old StartedAt) is force-failed. Always stamped on the database clock (GETUTCDATE), never process time.
22413
+ */
22414
+ get LastHeartbeatAt(): Date | null;
22415
+ set LastHeartbeatAt(value: Date | null);
22416
+ /**
21773
22417
  * * Field Name: Agent
21774
22418
  * * Display Name: Agent Details
21775
22419
  * * SQL Data Type: nvarchar(255)
@@ -28714,6 +29358,14 @@ export declare class MJAPIKeyEntity extends BaseEntity<MJAPIKeyEntityType> {
28714
29358
  */
28715
29359
  get __mj_UpdatedAt(): Date;
28716
29360
  /**
29361
+ * * Field Name: KeyPrefix
29362
+ * * Display Name: Key Prefix
29363
+ * * SQL Data Type: nvarchar(20)
29364
+ * * Description: A short preview of the key shown at creation time (e.g. mj_sk_a1b2). Stores the configured prefix plus the first 4 characters of the random body for visual identification. NULL for keys created before this column was added.
29365
+ */
29366
+ get KeyPrefix(): string | null;
29367
+ set KeyPrefix(value: string | null);
29368
+ /**
28717
29369
  * * Field Name: User
28718
29370
  * * Display Name: User
28719
29371
  * * SQL Data Type: nvarchar(100)
@@ -29095,9 +29747,10 @@ export declare class MJApplicationSettingEntity extends BaseEntity<MJApplication
29095
29747
  * * Display Name: Application ID
29096
29748
  * * SQL Data Type: uniqueidentifier
29097
29749
  * * Related Entity/Foreign Key: MJ: Applications (vwApplications.ID)
29750
+ * * Description: Foreign key to Application. When NULL the row is a GLOBAL setting that applies across all applications; when set, the setting is scoped to that single application. Resolution should prefer an app-scoped row over the global fallback for the same Name.
29098
29751
  */
29099
- get ApplicationID(): string;
29100
- set ApplicationID(value: string);
29752
+ get ApplicationID(): string | null;
29753
+ set ApplicationID(value: string | null);
29101
29754
  /**
29102
29755
  * * Field Name: Name
29103
29756
  * * Display Name: Name
@@ -29139,7 +29792,7 @@ export declare class MJApplicationSettingEntity extends BaseEntity<MJApplication
29139
29792
  * * Display Name: Application
29140
29793
  * * SQL Data Type: nvarchar(100)
29141
29794
  */
29142
- get Application(): string;
29795
+ get Application(): string | null;
29143
29796
  }
29144
29797
  /**
29145
29798
  * Describes a single navigation item in an Application's default tab bar.
@@ -31270,6 +31923,263 @@ export declare class MJAuthorizationEntity extends BaseEntity<MJAuthorizationEnt
31270
31923
  */
31271
31924
  get RootParentID(): string | null;
31272
31925
  }
31926
+ /**
31927
+ * MJ: Cluster Analysis - strongly typed entity sub-class
31928
+ * * Schema: __mj
31929
+ * * Base Table: ClusterAnalysis
31930
+ * * Base View: vwClusterAnalysis
31931
+ * * @description A saved cluster analysis: the configuration, computed metrics, and projected 2D/3D layout of a clustering run over an entity's embedding vectors. First-class, queryable, and shareable — replaces the prior approach of stashing analyses in a User Settings JSON blob / browser localStorage. Owner-private; explicit shares are recorded in ResourcePermission against the "Cluster Analysis" ResourceType.
31932
+ * * Primary Key: ID
31933
+ * @extends {BaseEntity}
31934
+ * @class
31935
+ * @public
31936
+ */
31937
+ export declare class MJClusterAnalysisEntity extends BaseEntity<MJClusterAnalysisEntityType> {
31938
+ /**
31939
+ * Loads the MJ: Cluster Analysis record from the database
31940
+ * @param ID: string - primary key value to load the MJ: Cluster Analysis record.
31941
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
31942
+ * @returns {Promise<boolean>} - true if successful, false otherwise
31943
+ * @public
31944
+ * @async
31945
+ * @memberof MJClusterAnalysisEntity
31946
+ * @method
31947
+ * @override
31948
+ */
31949
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
31950
+ /**
31951
+ * * Field Name: ID
31952
+ * * Display Name: ID
31953
+ * * SQL Data Type: uniqueidentifier
31954
+ * * Default Value: newsequentialid()
31955
+ */
31956
+ get ID(): string;
31957
+ set ID(value: string);
31958
+ /**
31959
+ * * Field Name: Name
31960
+ * * Display Name: Name
31961
+ * * SQL Data Type: nvarchar(255)
31962
+ * * Description: Human-readable name for this saved analysis (e.g. "Members by skill embedding — June").
31963
+ */
31964
+ get Name(): string;
31965
+ set Name(value: string);
31966
+ /**
31967
+ * * Field Name: Description
31968
+ * * Display Name: Description
31969
+ * * SQL Data Type: nvarchar(MAX)
31970
+ * * Description: Optional longer description of what this analysis explores and how to interpret it.
31971
+ */
31972
+ get Description(): string | null;
31973
+ set Description(value: string | null);
31974
+ /**
31975
+ * * Field Name: UserID
31976
+ * * Display Name: User ID
31977
+ * * SQL Data Type: uniqueidentifier
31978
+ * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
31979
+ * * Description: Foreign key to the User who owns this analysis. The owner has full control; other users gain access only via explicit ResourcePermission share rows (owner-private sharing model).
31980
+ */
31981
+ get UserID(): string;
31982
+ set UserID(value: string);
31983
+ /**
31984
+ * * Field Name: EntityID
31985
+ * * Display Name: Entity ID
31986
+ * * SQL Data Type: uniqueidentifier
31987
+ * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
31988
+ * * Description: Foreign key to the primary Entity whose records were clustered. Drives drilldown (click a point -> open that record) and view-type qualification. Nullable for analyses not bound to a single entity; the full source definition (including multi-document selections) lives in Configuration.
31989
+ */
31990
+ get EntityID(): string | null;
31991
+ set EntityID(value: string | null);
31992
+ /**
31993
+ * * Field Name: Algorithm
31994
+ * * Display Name: Algorithm
31995
+ * * SQL Data Type: nvarchar(50)
31996
+ * * Default Value: KMeans
31997
+ * * Value List Type: List
31998
+ * * Possible Values
31999
+ * * DBSCAN
32000
+ * * Hierarchical
32001
+ * * KMeans
32002
+ * * Description: Clustering algorithm used: KMeans, DBSCAN, or Hierarchical. Stored as a top-level column for filtering/reporting; the full parameter set is captured in Configuration.
32003
+ */
32004
+ get Algorithm(): 'DBSCAN' | 'Hierarchical' | 'KMeans';
32005
+ set Algorithm(value: 'DBSCAN' | 'Hierarchical' | 'KMeans');
32006
+ /**
32007
+ * * Field Name: Configuration
32008
+ * * Display Name: Configuration
32009
+ * * SQL Data Type: nvarchar(MAX)
32010
+ * * Description: JSON snapshot of the configuration this analysis was run with: algorithm parameters (k / epsilon / minPoints), distance metric, the Entity Document ID(s) supplying the vectors, max record count, any record filter, and whether LLM cluster naming was requested. A complete, self-describing record of how to interpret (or re-run) the analysis.
32011
+ */
32012
+ get Configuration(): string | null;
32013
+ set Configuration(value: string | null);
32014
+ /**
32015
+ * * Field Name: Metrics
32016
+ * * Display Name: Metrics
32017
+ * * SQL Data Type: nvarchar(MAX)
32018
+ * * Description: JSON of computed quality/shape metrics for the run — e.g. silhouette score, inertia, resolved cluster count, point count. Used to display analysis quality and to compare runs.
32019
+ */
32020
+ get Metrics(): string | null;
32021
+ set Metrics(value: string | null);
32022
+ /**
32023
+ * * Field Name: ProjectedPoints
32024
+ * * Display Name: Projected Points
32025
+ * * SQL Data Type: nvarchar(MAX)
32026
+ * * Description: JSON array of the projected points (2D or 3D coordinates) with each point's record key and assigned cluster index. Persisted because dimensionality reduction (UMAP) is stochastic — re-running would not reproduce the same layout — so the rendered scatter is reconstructed from this snapshot rather than recomputed.
32027
+ */
32028
+ get ProjectedPoints(): string | null;
32029
+ set ProjectedPoints(value: string | null);
32030
+ /**
32031
+ * * Field Name: ViewportState
32032
+ * * Display Name: Viewport State
32033
+ * * SQL Data Type: nvarchar(MAX)
32034
+ * * Description: JSON describing the saved viewport for the visualization (pan / zoom, and rotation for 3D) so the analysis reopens framed exactly as the user left it.
32035
+ */
32036
+ get ViewportState(): string | null;
32037
+ set ViewportState(value: string | null);
32038
+ /**
32039
+ * * Field Name: Status
32040
+ * * Display Name: Status
32041
+ * * SQL Data Type: nvarchar(20)
32042
+ * * Default Value: Complete
32043
+ * * Value List Type: List
32044
+ * * Possible Values
32045
+ * * Complete
32046
+ * * Failed
32047
+ * * Pending
32048
+ * * Description: Lifecycle status of the analysis run: Pending (queued / running), Complete (results available), or Failed (run errored; see Metrics/Configuration for diagnostics).
32049
+ */
32050
+ get Status(): 'Complete' | 'Failed' | 'Pending';
32051
+ set Status(value: 'Complete' | 'Failed' | 'Pending');
32052
+ /**
32053
+ * * Field Name: __mj_CreatedAt
32054
+ * * Display Name: Created At
32055
+ * * SQL Data Type: datetimeoffset
32056
+ * * Default Value: getutcdate()
32057
+ */
32058
+ get __mj_CreatedAt(): Date;
32059
+ /**
32060
+ * * Field Name: __mj_UpdatedAt
32061
+ * * Display Name: Updated At
32062
+ * * SQL Data Type: datetimeoffset
32063
+ * * Default Value: getutcdate()
32064
+ */
32065
+ get __mj_UpdatedAt(): Date;
32066
+ /**
32067
+ * * Field Name: User
32068
+ * * Display Name: User
32069
+ * * SQL Data Type: nvarchar(100)
32070
+ */
32071
+ get User(): string;
32072
+ /**
32073
+ * * Field Name: Entity
32074
+ * * Display Name: Entity
32075
+ * * SQL Data Type: nvarchar(255)
32076
+ */
32077
+ get Entity(): string | null;
32078
+ }
32079
+ /**
32080
+ * MJ: Cluster Analysis Clusters - strongly typed entity sub-class
32081
+ * * Schema: __mj
32082
+ * * Base Table: ClusterAnalysisCluster
32083
+ * * Base View: vwClusterAnalysisClusters
32084
+ * * @description One named cluster within a saved ClusterAnalysis. Holds the cluster's label (LLM-generated or user-edited), member count, and display color, so labels can be regenerated or hand-edited per cluster without re-running the whole analysis.
32085
+ * * Primary Key: ID
32086
+ * @extends {BaseEntity}
32087
+ * @class
32088
+ * @public
32089
+ */
32090
+ export declare class MJClusterAnalysisClusterEntity extends BaseEntity<MJClusterAnalysisClusterEntityType> {
32091
+ /**
32092
+ * Loads the MJ: Cluster Analysis Clusters record from the database
32093
+ * @param ID: string - primary key value to load the MJ: Cluster Analysis Clusters record.
32094
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
32095
+ * @returns {Promise<boolean>} - true if successful, false otherwise
32096
+ * @public
32097
+ * @async
32098
+ * @memberof MJClusterAnalysisClusterEntity
32099
+ * @method
32100
+ * @override
32101
+ */
32102
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
32103
+ /**
32104
+ * * Field Name: ID
32105
+ * * Display Name: ID
32106
+ * * SQL Data Type: uniqueidentifier
32107
+ * * Default Value: newsequentialid()
32108
+ */
32109
+ get ID(): string;
32110
+ set ID(value: string);
32111
+ /**
32112
+ * * Field Name: ClusterAnalysisID
32113
+ * * Display Name: Cluster Analysis ID
32114
+ * * SQL Data Type: uniqueidentifier
32115
+ * * Related Entity/Foreign Key: MJ: Cluster Analysis (vwClusterAnalysis.ID)
32116
+ * * Description: Foreign key to the parent ClusterAnalysis. Cluster rows are deleted with their analysis (cascade).
32117
+ */
32118
+ get ClusterAnalysisID(): string;
32119
+ set ClusterAnalysisID(value: string);
32120
+ /**
32121
+ * * Field Name: ClusterIndex
32122
+ * * Display Name: Cluster Index
32123
+ * * SQL Data Type: int
32124
+ * * Description: Zero-based index of this cluster within the analysis, matching the cluster assignments stored in ClusterAnalysis.ProjectedPoints. Unique per analysis.
32125
+ */
32126
+ get ClusterIndex(): number;
32127
+ set ClusterIndex(value: number);
32128
+ /**
32129
+ * * Field Name: Label
32130
+ * * Display Name: Label
32131
+ * * SQL Data Type: nvarchar(255)
32132
+ * * Description: Display label for the cluster (e.g. an LLM-generated theme name like "Renewal & retention"). Nullable until named.
32133
+ */
32134
+ get Label(): string | null;
32135
+ set Label(value: string | null);
32136
+ /**
32137
+ * * Field Name: MemberCount
32138
+ * * Display Name: Member Count
32139
+ * * SQL Data Type: int
32140
+ * * Default Value: 0
32141
+ * * Description: Number of records (points) assigned to this cluster.
32142
+ */
32143
+ get MemberCount(): number;
32144
+ set MemberCount(value: number);
32145
+ /**
32146
+ * * Field Name: Color
32147
+ * * Display Name: Color
32148
+ * * SQL Data Type: nvarchar(20)
32149
+ * * Description: Color used to render this cluster in the scatter visualization (e.g. a hex string or token reference).
32150
+ */
32151
+ get Color(): string | null;
32152
+ set Color(value: string | null);
32153
+ /**
32154
+ * * Field Name: IsUserEdited
32155
+ * * Display Name: Is User Edited
32156
+ * * SQL Data Type: bit
32157
+ * * Default Value: 0
32158
+ * * Description: True when a user has manually edited this cluster's label/color, so regenerating LLM labels for the analysis can skip user-curated clusters.
32159
+ */
32160
+ get IsUserEdited(): boolean;
32161
+ set IsUserEdited(value: boolean);
32162
+ /**
32163
+ * * Field Name: __mj_CreatedAt
32164
+ * * Display Name: Created At
32165
+ * * SQL Data Type: datetimeoffset
32166
+ * * Default Value: getutcdate()
32167
+ */
32168
+ get __mj_CreatedAt(): Date;
32169
+ /**
32170
+ * * Field Name: __mj_UpdatedAt
32171
+ * * Display Name: Updated At
32172
+ * * SQL Data Type: datetimeoffset
32173
+ * * Default Value: getutcdate()
32174
+ */
32175
+ get __mj_UpdatedAt(): Date;
32176
+ /**
32177
+ * * Field Name: ClusterAnalysis
32178
+ * * Display Name: Cluster Analysis
32179
+ * * SQL Data Type: nvarchar(255)
32180
+ */
32181
+ get ClusterAnalysis(): string;
32182
+ }
31273
32183
  /**
31274
32184
  * MJ: Collection Artifacts - strongly typed entity sub-class
31275
32185
  * * Schema: __mj
@@ -34629,6 +35539,23 @@ export declare class MJContentItemTagEntity extends BaseEntity<MJContentItemTagE
34629
35539
  get TagID(): string | null;
34630
35540
  set TagID(value: string | null);
34631
35541
  /**
35542
+ * * Field Name: AIPromptRunID
35543
+ * * Display Name: AI Prompt Run ID
35544
+ * * SQL Data Type: uniqueidentifier
35545
+ * * Related Entity/Foreign Key: MJ: AI Prompt Runs (vwAIPromptRuns.ID)
35546
+ * * Description: Foreign key to the AI Prompt Run that produced this tag, populated by the autotagging pipeline at tag-creation time. Provides a direct, reliable edge from a tag back to the exact extraction run, replacing the previous fragile time-correlation heuristic. Nullable for tags created outside the LLM pipeline (e.g. manual tagging) or backfilled rows.
35547
+ */
35548
+ get AIPromptRunID(): string | null;
35549
+ set AIPromptRunID(value: string | null);
35550
+ /**
35551
+ * * Field Name: Reasoning
35552
+ * * Display Name: Reasoning
35553
+ * * SQL Data Type: nvarchar(MAX)
35554
+ * * Description: The LLM's reasoning / justification for assigning this tag to the content item, captured at extraction time. Surfaced in the item drilldown so users can audit why a tag was applied without re-parsing the AI Prompt Run result JSON. Nullable when no reasoning was produced.
35555
+ */
35556
+ get Reasoning(): string | null;
35557
+ set Reasoning(value: string | null);
35558
+ /**
34632
35559
  * * Field Name: Item
34633
35560
  * * Display Name: Item Name
34634
35561
  * * SQL Data Type: nvarchar(250)
@@ -34640,6 +35567,12 @@ export declare class MJContentItemTagEntity extends BaseEntity<MJContentItemTagE
34640
35567
  * * SQL Data Type: nvarchar(255)
34641
35568
  */
34642
35569
  get Tag_Virtual(): string | null;
35570
+ /**
35571
+ * * Field Name: AIPromptRun
35572
+ * * Display Name: AI Prompt Run
35573
+ * * SQL Data Type: nvarchar(255)
35574
+ */
35575
+ get AIPromptRun(): string | null;
34643
35576
  }
34644
35577
  /**
34645
35578
  * MJ: Content Items - strongly typed entity sub-class
@@ -47846,43 +48779,93 @@ export declare class MJListEntity extends BaseEntity<MJListEntityType> {
47846
48779
  get LastRefreshedByUser(): string | null;
47847
48780
  }
47848
48781
  /**
47849
- * MJ: MCP Server Connection Permissions - strongly typed entity sub-class
48782
+ * MJ: Magic Link Invite Allowed Domains - strongly typed entity sub-class
47850
48783
  * * Schema: __mj
47851
- * * Base Table: MCPServerConnectionPermission
47852
- * * Base View: vwMCPServerConnectionPermissions
48784
+ * * Base Table: MagicLinkInviteAllowedDomain
48785
+ * * Base View: vwMagicLinkInviteAllowedDomains
48786
+ * * @description An external host (origin) where this invite may be embedded in an IFRAME. Enforced server-side via Content-Security-Policy frame-ancestors plus Origin/Referer checks on embed responses. Multiple rows = multiple allowed hosts.
47853
48787
  * * Primary Key: ID
47854
48788
  * @extends {BaseEntity}
47855
48789
  * @class
47856
48790
  * @public
47857
48791
  */
47858
- export declare class MJMCPServerConnectionPermissionEntity extends BaseEntity<MJMCPServerConnectionPermissionEntityType> {
48792
+ export declare class MJMagicLinkInviteAllowedDomainEntity extends BaseEntity<MJMagicLinkInviteAllowedDomainEntityType> {
47859
48793
  /**
47860
- * Loads the MJ: MCP Server Connection Permissions record from the database
47861
- * @param ID: string - primary key value to load the MJ: MCP Server Connection Permissions record.
48794
+ * Loads the MJ: Magic Link Invite Allowed Domains record from the database
48795
+ * @param ID: string - primary key value to load the MJ: Magic Link Invite Allowed Domains record.
47862
48796
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
47863
48797
  * @returns {Promise<boolean>} - true if successful, false otherwise
47864
48798
  * @public
47865
48799
  * @async
47866
- * @memberof MJMCPServerConnectionPermissionEntity
48800
+ * @memberof MJMagicLinkInviteAllowedDomainEntity
47867
48801
  * @method
47868
48802
  * @override
47869
48803
  */
47870
48804
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
47871
48805
  /**
47872
- * Validate() method override for MJ: MCP Server Connection Permissions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
47873
- * * Table-Level: Either a specific user or a role must be assigned to the permission record, but you cannot assign both at the same time and you cannot leave both empty. This ensures that each permission is linked to exactly one entity, maintaining clear ownership and preventing ambiguous access settings.
47874
- * @public
47875
- * @method
47876
- * @override
48806
+ * * Field Name: ID
48807
+ * * Display Name: ID
48808
+ * * SQL Data Type: uniqueidentifier
48809
+ * * Default Value: newsequentialid()
47877
48810
  */
47878
- Validate(): ValidationResult;
48811
+ get ID(): string;
48812
+ set ID(value: string);
47879
48813
  /**
47880
- * Either a specific user or a role must be assigned to the permission record, but you cannot assign both at the same time and you cannot leave both empty. This ensures that each permission is linked to exactly one entity, maintaining clear ownership and preventing ambiguous access settings.
47881
- * @param result - the ValidationResult object to add any errors or warnings to
48814
+ * * Field Name: InviteID
48815
+ * * Display Name: Invite ID
48816
+ * * SQL Data Type: uniqueidentifier
48817
+ * * Related Entity/Foreign Key: MJ: Magic Link Invites (vwMagicLinkInvites.ID)
48818
+ * * Description: Foreign key to the MagicLinkInvite this allowed-domain belongs to.
48819
+ */
48820
+ get InviteID(): string;
48821
+ set InviteID(value: string);
48822
+ /**
48823
+ * * Field Name: Domain
48824
+ * * Display Name: Domain
48825
+ * * SQL Data Type: nvarchar(255)
48826
+ * * Description: An allowed host/origin (e.g. https://partner.example.com) where the link may be framed.
48827
+ */
48828
+ get Domain(): string;
48829
+ set Domain(value: string);
48830
+ /**
48831
+ * * Field Name: __mj_CreatedAt
48832
+ * * Display Name: Created At
48833
+ * * SQL Data Type: datetimeoffset
48834
+ * * Default Value: getutcdate()
48835
+ */
48836
+ get __mj_CreatedAt(): Date;
48837
+ /**
48838
+ * * Field Name: __mj_UpdatedAt
48839
+ * * Display Name: Updated At
48840
+ * * SQL Data Type: datetimeoffset
48841
+ * * Default Value: getutcdate()
48842
+ */
48843
+ get __mj_UpdatedAt(): Date;
48844
+ }
48845
+ /**
48846
+ * MJ: Magic Link Invite Allowed Paths - strongly typed entity sub-class
48847
+ * * Schema: __mj
48848
+ * * Base Table: MagicLinkInviteAllowedPath
48849
+ * * Base View: vwMagicLinkInviteAllowedPaths
48850
+ * * @description An Explorer FE path (after the base URL) this link is confined to in the UI. This is UX confinement only — the real authorization boundary is server-side entity/resource permissions. Multiple rows = multiple allowed paths.
48851
+ * * Primary Key: ID
48852
+ * @extends {BaseEntity}
48853
+ * @class
48854
+ * @public
48855
+ */
48856
+ export declare class MJMagicLinkInviteAllowedPathEntity extends BaseEntity<MJMagicLinkInviteAllowedPathEntityType> {
48857
+ /**
48858
+ * Loads the MJ: Magic Link Invite Allowed Paths record from the database
48859
+ * @param ID: string - primary key value to load the MJ: Magic Link Invite Allowed Paths record.
48860
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
48861
+ * @returns {Promise<boolean>} - true if successful, false otherwise
47882
48862
  * @public
48863
+ * @async
48864
+ * @memberof MJMagicLinkInviteAllowedPathEntity
47883
48865
  * @method
48866
+ * @override
47884
48867
  */
47885
- ValidateUserIDOrRoleIDExclusive(result: ValidationResult): void;
48868
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
47886
48869
  /**
47887
48870
  * * Field Name: ID
47888
48871
  * * Display Name: ID
@@ -47892,58 +48875,87 @@ export declare class MJMCPServerConnectionPermissionEntity extends BaseEntity<MJ
47892
48875
  get ID(): string;
47893
48876
  set ID(value: string);
47894
48877
  /**
47895
- * * Field Name: MCPServerConnectionID
47896
- * * Display Name: MCP Server Connection ID
48878
+ * * Field Name: InviteID
48879
+ * * Display Name: Invite ID
47897
48880
  * * SQL Data Type: uniqueidentifier
47898
- * * Related Entity/Foreign Key: MJ: MCP Server Connections (vwMCPServerConnections.ID)
48881
+ * * Related Entity/Foreign Key: MJ: Magic Link Invites (vwMagicLinkInvites.ID)
48882
+ * * Description: Foreign key to the MagicLinkInvite this allowed-path belongs to.
47899
48883
  */
47900
- get MCPServerConnectionID(): string;
47901
- set MCPServerConnectionID(value: string);
48884
+ get InviteID(): string;
48885
+ set InviteID(value: string);
47902
48886
  /**
47903
- * * Field Name: UserID
47904
- * * Display Name: User
47905
- * * SQL Data Type: uniqueidentifier
47906
- * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
47907
- * * Description: FK to User (mutually exclusive with RoleID)
48887
+ * * Field Name: Path
48888
+ * * Display Name: Path
48889
+ * * SQL Data Type: nvarchar(1000)
48890
+ * * Description: An allowed FE path (after the Explorer base URL) the session may navigate to. UX confinement only.
47908
48891
  */
47909
- get UserID(): string | null;
47910
- set UserID(value: string | null);
48892
+ get Path(): string;
48893
+ set Path(value: string);
47911
48894
  /**
47912
- * * Field Name: RoleID
47913
- * * Display Name: Role
47914
- * * SQL Data Type: uniqueidentifier
47915
- * * Related Entity/Foreign Key: MJ: Roles (vwRoles.ID)
47916
- * * Description: FK to Role (mutually exclusive with UserID)
48895
+ * * Field Name: __mj_CreatedAt
48896
+ * * Display Name: Created At
48897
+ * * SQL Data Type: datetimeoffset
48898
+ * * Default Value: getutcdate()
47917
48899
  */
47918
- get RoleID(): string | null;
47919
- set RoleID(value: string | null);
48900
+ get __mj_CreatedAt(): Date;
47920
48901
  /**
47921
- * * Field Name: CanExecute
47922
- * * Display Name: Can Execute
47923
- * * SQL Data Type: bit
47924
- * * Default Value: 1
47925
- * * Description: Can invoke tools via this connection
48902
+ * * Field Name: __mj_UpdatedAt
48903
+ * * Display Name: Updated At
48904
+ * * SQL Data Type: datetimeoffset
48905
+ * * Default Value: getutcdate()
47926
48906
  */
47927
- get CanExecute(): boolean;
47928
- set CanExecute(value: boolean);
48907
+ get __mj_UpdatedAt(): Date;
48908
+ }
48909
+ /**
48910
+ * MJ: Magic Link Invite Applications - strongly typed entity sub-class
48911
+ * * Schema: __mj
48912
+ * * Base Table: MagicLinkInviteApplication
48913
+ * * Base View: vwMagicLinkInviteApplications
48914
+ * * @description Join row granting a magic-link invite access to one Application. An invite may eventually carry several; today create/redeem write exactly one (mirroring MagicLinkInvite.ApplicationID) while multi-scope enforcement is being designed.
48915
+ * * Primary Key: ID
48916
+ * @extends {BaseEntity}
48917
+ * @class
48918
+ * @public
48919
+ */
48920
+ export declare class MJMagicLinkInviteApplicationEntity extends BaseEntity<MJMagicLinkInviteApplicationEntityType> {
47929
48921
  /**
47930
- * * Field Name: CanModify
47931
- * * Display Name: Can Modify
47932
- * * SQL Data Type: bit
47933
- * * Default Value: 0
47934
- * * Description: Can modify connection settings
48922
+ * Loads the MJ: Magic Link Invite Applications record from the database
48923
+ * @param ID: string - primary key value to load the MJ: Magic Link Invite Applications record.
48924
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
48925
+ * @returns {Promise<boolean>} - true if successful, false otherwise
48926
+ * @public
48927
+ * @async
48928
+ * @memberof MJMagicLinkInviteApplicationEntity
48929
+ * @method
48930
+ * @override
47935
48931
  */
47936
- get CanModify(): boolean;
47937
- set CanModify(value: boolean);
48932
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
47938
48933
  /**
47939
- * * Field Name: CanViewCredentials
47940
- * * Display Name: Can View Credentials
47941
- * * SQL Data Type: bit
47942
- * * Default Value: 0
47943
- * * Description: Can see credential info (but not decrypt)
48934
+ * * Field Name: ID
48935
+ * * Display Name: ID
48936
+ * * SQL Data Type: uniqueidentifier
48937
+ * * Default Value: newsequentialid()
47944
48938
  */
47945
- get CanViewCredentials(): boolean;
47946
- set CanViewCredentials(value: boolean);
48939
+ get ID(): string;
48940
+ set ID(value: string);
48941
+ /**
48942
+ * * Field Name: InviteID
48943
+ * * Display Name: Invite ID
48944
+ * * SQL Data Type: uniqueidentifier
48945
+ * * Related Entity/Foreign Key: MJ: Magic Link Invites (vwMagicLinkInvites.ID)
48946
+ * * Description: Foreign key to the MagicLinkInvite this application grant belongs to.
48947
+ */
48948
+ get InviteID(): string;
48949
+ set InviteID(value: string);
48950
+ /**
48951
+ * * Field Name: ApplicationID
48952
+ * * Display Name: Application ID
48953
+ * * SQL Data Type: uniqueidentifier
48954
+ * * Related Entity/Foreign Key: MJ: Applications (vwApplications.ID)
48955
+ * * Description: Foreign key to the Application this invite grants access to.
48956
+ */
48957
+ get ApplicationID(): string;
48958
+ set ApplicationID(value: string);
47947
48959
  /**
47948
48960
  * * Field Name: __mj_CreatedAt
47949
48961
  * * Display Name: Created At
@@ -47959,43 +48971,32 @@ export declare class MJMCPServerConnectionPermissionEntity extends BaseEntity<MJ
47959
48971
  */
47960
48972
  get __mj_UpdatedAt(): Date;
47961
48973
  /**
47962
- * * Field Name: MCPServerConnection
47963
- * * Display Name: MCP Server Connection
47964
- * * SQL Data Type: nvarchar(255)
47965
- */
47966
- get MCPServerConnection(): string;
47967
- /**
47968
- * * Field Name: User
47969
- * * Display Name: User Name
48974
+ * * Field Name: Application
48975
+ * * Display Name: Application
47970
48976
  * * SQL Data Type: nvarchar(100)
47971
48977
  */
47972
- get User(): string | null;
47973
- /**
47974
- * * Field Name: Role
47975
- * * Display Name: Role Name
47976
- * * SQL Data Type: nvarchar(50)
47977
- */
47978
- get Role(): string | null;
48978
+ get Application(): string;
47979
48979
  }
47980
48980
  /**
47981
- * MJ: MCP Server Connection Tools - strongly typed entity sub-class
48981
+ * MJ: Magic Link Invite Roles - strongly typed entity sub-class
47982
48982
  * * Schema: __mj
47983
- * * Base Table: MCPServerConnectionTool
47984
- * * Base View: vwMCPServerConnectionTools
48983
+ * * Base Table: MagicLinkInviteRole
48984
+ * * Base View: vwMagicLinkInviteRoles
48985
+ * * @description Join row granting a magic-link invite a Role. An invite may eventually carry several; today create/redeem write exactly one (mirroring MagicLinkInvite.RoleID) while multi-scope enforcement is being designed.
47985
48986
  * * Primary Key: ID
47986
48987
  * @extends {BaseEntity}
47987
48988
  * @class
47988
48989
  * @public
47989
48990
  */
47990
- export declare class MJMCPServerConnectionToolEntity extends BaseEntity<MJMCPServerConnectionToolEntityType> {
48991
+ export declare class MJMagicLinkInviteRoleEntity extends BaseEntity<MJMagicLinkInviteRoleEntityType> {
47991
48992
  /**
47992
- * Loads the MJ: MCP Server Connection Tools record from the database
47993
- * @param ID: string - primary key value to load the MJ: MCP Server Connection Tools record.
48993
+ * Loads the MJ: Magic Link Invite Roles record from the database
48994
+ * @param ID: string - primary key value to load the MJ: Magic Link Invite Roles record.
47994
48995
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
47995
48996
  * @returns {Promise<boolean>} - true if successful, false otherwise
47996
48997
  * @public
47997
48998
  * @async
47998
- * @memberof MJMCPServerConnectionToolEntity
48999
+ * @memberof MJMagicLinkInviteRoleEntity
47999
49000
  * @method
48000
49001
  * @override
48001
49002
  */
@@ -48009,46 +49010,23 @@ export declare class MJMCPServerConnectionToolEntity extends BaseEntity<MJMCPSer
48009
49010
  get ID(): string;
48010
49011
  set ID(value: string);
48011
49012
  /**
48012
- * * Field Name: MCPServerConnectionID
48013
- * * Display Name: Connection
49013
+ * * Field Name: InviteID
49014
+ * * Display Name: Invite ID
48014
49015
  * * SQL Data Type: uniqueidentifier
48015
- * * Related Entity/Foreign Key: MJ: MCP Server Connections (vwMCPServerConnections.ID)
49016
+ * * Related Entity/Foreign Key: MJ: Magic Link Invites (vwMagicLinkInvites.ID)
49017
+ * * Description: Foreign key to the MagicLinkInvite this role grant belongs to.
48016
49018
  */
48017
- get MCPServerConnectionID(): string;
48018
- set MCPServerConnectionID(value: string);
49019
+ get InviteID(): string;
49020
+ set InviteID(value: string);
48019
49021
  /**
48020
- * * Field Name: MCPServerToolID
48021
- * * Display Name: Tool
49022
+ * * Field Name: RoleID
49023
+ * * Display Name: Role ID
48022
49024
  * * SQL Data Type: uniqueidentifier
48023
- * * Related Entity/Foreign Key: MJ: MCP Server Tools (vwMCPServerTools.ID)
48024
- */
48025
- get MCPServerToolID(): string;
48026
- set MCPServerToolID(value: string);
48027
- /**
48028
- * * Field Name: IsEnabled
48029
- * * Display Name: Enabled
48030
- * * SQL Data Type: bit
48031
- * * Default Value: 1
48032
- * * Description: Whether this tool is enabled for the connection
48033
- */
48034
- get IsEnabled(): boolean;
48035
- set IsEnabled(value: boolean);
48036
- /**
48037
- * * Field Name: DefaultInputValues
48038
- * * Display Name: Default Input Values
48039
- * * SQL Data Type: nvarchar(MAX)
48040
- * * Description: JSON default values for tool inputs
48041
- */
48042
- get DefaultInputValues(): string | null;
48043
- set DefaultInputValues(value: string | null);
48044
- /**
48045
- * * Field Name: MaxCallsPerMinute
48046
- * * Display Name: Max Calls Per Minute
48047
- * * SQL Data Type: int
48048
- * * Description: Override rate limit for this specific tool
49025
+ * * Related Entity/Foreign Key: MJ: Roles (vwRoles.ID)
49026
+ * * Description: Foreign key to the Role this invite grants to the redeeming user.
48049
49027
  */
48050
- get MaxCallsPerMinute(): number | null;
48051
- set MaxCallsPerMinute(value: number | null);
49028
+ get RoleID(): string;
49029
+ set RoleID(value: string);
48052
49030
  /**
48053
49031
  * * Field Name: __mj_CreatedAt
48054
49032
  * * Display Name: Created At
@@ -48064,42 +49042,60 @@ export declare class MJMCPServerConnectionToolEntity extends BaseEntity<MJMCPSer
48064
49042
  */
48065
49043
  get __mj_UpdatedAt(): Date;
48066
49044
  /**
48067
- * * Field Name: MCPServerConnection
48068
- * * Display Name: Connection Name
48069
- * * SQL Data Type: nvarchar(255)
48070
- */
48071
- get MCPServerConnection(): string;
48072
- /**
48073
- * * Field Name: MCPServerTool
48074
- * * Display Name: Tool Name
48075
- * * SQL Data Type: nvarchar(255)
49045
+ * * Field Name: Role
49046
+ * * Display Name: Role
49047
+ * * SQL Data Type: nvarchar(50)
48076
49048
  */
48077
- get MCPServerTool(): string | null;
49049
+ get Role(): string;
48078
49050
  }
48079
49051
  /**
48080
- * MJ: MCP Server Connections - strongly typed entity sub-class
49052
+ * MJ: Magic Link Invites - strongly typed entity sub-class
48081
49053
  * * Schema: __mj
48082
- * * Base Table: MCPServerConnection
48083
- * * Base View: vwMCPServerConnections
49054
+ * * Base Table: MagicLinkInvite
49055
+ * * Base View: vwMagicLinkInvites
49056
+ * * @description A shareable, single-use, app-scoped magic-link invite for an external user. Bound to one Application and one restricted Role; redeeming it provisions/links a user with that scope and mints a short-lived MJ-issued JWT. The raw token is never stored — only its SHA-256 hash.
48084
49057
  * * Primary Key: ID
48085
49058
  * @extends {BaseEntity}
48086
49059
  * @class
48087
49060
  * @public
48088
49061
  */
48089
- export declare class MJMCPServerConnectionEntity extends BaseEntity<MJMCPServerConnectionEntityType> {
49062
+ export declare class MJMagicLinkInviteEntity extends BaseEntity<MJMagicLinkInviteEntityType> {
48090
49063
  /**
48091
- * Loads the MJ: MCP Server Connections record from the database
48092
- * @param ID: string - primary key value to load the MJ: MCP Server Connections record.
49064
+ * Loads the MJ: Magic Link Invites record from the database
49065
+ * @param ID: string - primary key value to load the MJ: Magic Link Invites record.
48093
49066
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
48094
49067
  * @returns {Promise<boolean>} - true if successful, false otherwise
48095
49068
  * @public
48096
49069
  * @async
48097
- * @memberof MJMCPServerConnectionEntity
49070
+ * @memberof MJMagicLinkInviteEntity
48098
49071
  * @method
48099
49072
  * @override
48100
49073
  */
48101
49074
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
48102
49075
  /**
49076
+ * Validate() method override for MJ: Magic Link Invites entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
49077
+ * * Table-Level: An email address must be provided if the identity mode is set to 'email'.
49078
+ * * Table-Level: The number of times a token has been used must be greater than or equal to 0 and cannot exceed the maximum allowed uses.
49079
+ * @public
49080
+ * @method
49081
+ * @override
49082
+ */
49083
+ Validate(): ValidationResult;
49084
+ /**
49085
+ * An email address must be provided if the identity mode is set to 'email'.
49086
+ * @param result - the ValidationResult object to add any errors or warnings to
49087
+ * @public
49088
+ * @method
49089
+ */
49090
+ ValidateEmailRequiredForEmailIdentityMode(result: ValidationResult): void;
49091
+ /**
49092
+ * The number of times a token has been used must be greater than or equal to 0 and cannot exceed the maximum allowed uses.
49093
+ * @param result - the ValidationResult object to add any errors or warnings to
49094
+ * @public
49095
+ * @method
49096
+ */
49097
+ ValidateUseCountWithinMaxUsesLimit(result: ValidationResult): void;
49098
+ /**
48103
49099
  * * Field Name: ID
48104
49100
  * * Display Name: ID
48105
49101
  * * SQL Data Type: uniqueidentifier
@@ -48108,25 +49104,584 @@ export declare class MJMCPServerConnectionEntity extends BaseEntity<MJMCPServerC
48108
49104
  get ID(): string;
48109
49105
  set ID(value: string);
48110
49106
  /**
48111
- * * Field Name: MCPServerID
48112
- * * Display Name: MCP Server
48113
- * * SQL Data Type: uniqueidentifier
48114
- * * Related Entity/Foreign Key: MJ: MCP Servers (vwMCPServers.ID)
49107
+ * * Field Name: TokenHash
49108
+ * * Display Name: Token Hash
49109
+ * * SQL Data Type: nvarchar(128)
49110
+ * * Description: SHA-256 hash of the raw magic-link token, base64url-encoded (43 chars). The raw token is delivered only in the emailed URL and is never persisted. Lookups hash the incoming token and match against this column. Unique.
48115
49111
  */
48116
- get MCPServerID(): string;
48117
- set MCPServerID(value: string);
49112
+ get TokenHash(): string;
49113
+ set TokenHash(value: string);
48118
49114
  /**
48119
- * * Field Name: Name
48120
- * * Display Name: Name
49115
+ * * Field Name: Email
49116
+ * * Display Name: Email
48121
49117
  * * SQL Data Type: nvarchar(255)
48122
- * * Description: Connection name (unique per company)
49118
+ * * Description: Email address the invite was issued to and delivered at. Becomes the provisioned user's email on first redemption.
48123
49119
  */
48124
- get Name(): string;
48125
- set Name(value: string);
49120
+ get Email(): string | null;
49121
+ set Email(value: string | null);
48126
49122
  /**
48127
- * * Field Name: Description
48128
- * * Display Name: Description
48129
- * * SQL Data Type: nvarchar(MAX)
49123
+ * * Field Name: ApplicationID
49124
+ * * Display Name: Application ID
49125
+ * * SQL Data Type: uniqueidentifier
49126
+ * * Related Entity/Foreign Key: MJ: Applications (vwApplications.ID)
49127
+ * * Description: Foreign key to Application — the single app this invite grants access to. The provisioned user receives exactly one User Application record for this app.
49128
+ */
49129
+ get ApplicationID(): string;
49130
+ set ApplicationID(value: string);
49131
+ /**
49132
+ * * Field Name: RoleID
49133
+ * * Display Name: Role ID
49134
+ * * SQL Data Type: uniqueidentifier
49135
+ * * Related Entity/Foreign Key: MJ: Roles (vwRoles.ID)
49136
+ * * Description: Foreign key to Role — the restricted role assigned to the redeeming user. This role's entity permissions are the real authorization boundary that confines the external user to the shared app's data.
49137
+ */
49138
+ get RoleID(): string;
49139
+ set RoleID(value: string);
49140
+ /**
49141
+ * * Field Name: ExpiresAt
49142
+ * * Display Name: Expires At
49143
+ * * SQL Data Type: datetimeoffset
49144
+ * * Description: Hard expiry for the link. After this instant the invite cannot be redeemed regardless of Status.
49145
+ */
49146
+ get ExpiresAt(): Date;
49147
+ set ExpiresAt(value: Date);
49148
+ /**
49149
+ * * Field Name: ConsumedAt
49150
+ * * Display Name: Consumed At
49151
+ * * SQL Data Type: datetimeoffset
49152
+ * * Description: Timestamp of the first successful redemption. NULL while unconsumed. Set in the same transaction that mints the session JWT to enforce single-use semantics.
49153
+ */
49154
+ get ConsumedAt(): Date | null;
49155
+ set ConsumedAt(value: Date | null);
49156
+ /**
49157
+ * * Field Name: MaxUses
49158
+ * * Display Name: Max Uses
49159
+ * * SQL Data Type: int
49160
+ * * Default Value: 1
49161
+ * * Description: Maximum number of times this invite may be redeemed. Defaults to 1 (true single-use). Set higher only for intentionally multi-use links.
49162
+ */
49163
+ get MaxUses(): number;
49164
+ set MaxUses(value: number);
49165
+ /**
49166
+ * * Field Name: UseCount
49167
+ * * Display Name: Use Count
49168
+ * * SQL Data Type: int
49169
+ * * Default Value: 0
49170
+ * * Description: Number of times this invite has been redeemed so far. Incremented on each successful redemption; redemption is rejected once UseCount reaches MaxUses.
49171
+ */
49172
+ get UseCount(): number;
49173
+ set UseCount(value: number);
49174
+ /**
49175
+ * * Field Name: CreatedByUserID
49176
+ * * Display Name: Created By User ID
49177
+ * * SQL Data Type: uniqueidentifier
49178
+ * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
49179
+ * * Description: Foreign key to User — the internal user who created/shared this invite. Audit trail for who granted external access.
49180
+ */
49181
+ get CreatedByUserID(): string;
49182
+ set CreatedByUserID(value: string);
49183
+ /**
49184
+ * * Field Name: Status
49185
+ * * Display Name: Status
49186
+ * * SQL Data Type: nvarchar(20)
49187
+ * * Default Value: Active
49188
+ * * Value List Type: List
49189
+ * * Possible Values
49190
+ * * Active
49191
+ * * Consumed
49192
+ * * Expired
49193
+ * * Revoked
49194
+ * * Description: Lifecycle status: Active (redeemable), Consumed (single-use link fully redeemed), Revoked (manually disabled), Expired (past ExpiresAt). Revoking an unconsumed link is the primary revocation mechanism.
49195
+ */
49196
+ get Status(): 'Active' | 'Consumed' | 'Expired' | 'Revoked';
49197
+ set Status(value: 'Active' | 'Consumed' | 'Expired' | 'Revoked');
49198
+ /**
49199
+ * * Field Name: IdentityMode
49200
+ * * Display Name: Identity Mode
49201
+ * * SQL Data Type: nvarchar(20)
49202
+ * * Default Value: email
49203
+ * * Value List Type: List
49204
+ * * Possible Values
49205
+ * * anonymous
49206
+ * * email
49207
+ * * Description: Identity resolution mode. 'email' (default, legacy): redemption provisions/links a per-email user and enforcement rides that user's DB roles. 'anonymous': all redemptions resolve to the shared Anonymous principal (an attribution anchor, not a permission holder); scope is carried per-session in the minted JWT claims, never as roles on that user.
49208
+ */
49209
+ get IdentityMode(): 'anonymous' | 'email';
49210
+ set IdentityMode(value: 'anonymous' | 'email');
49211
+ /**
49212
+ * * Field Name: Kind
49213
+ * * Display Name: Kind
49214
+ * * SQL Data Type: nvarchar(30)
49215
+ * * Default Value: app-session
49216
+ * * Value List Type: List
49217
+ * * Possible Values
49218
+ * * anonymous-embed
49219
+ * * app-session
49220
+ * * resource-share
49221
+ * * Description: Invite kind, gating which scope columns/claims are valid and which issuance capability check applies. 'app-session' (default): the legacy app+role session. 'resource-share': scoped to a single resource (ResourceTypeID/ResourceID). 'anonymous-embed': framed in an external site (requires allowed domains + tier capability).
49222
+ */
49223
+ get Kind(): 'anonymous-embed' | 'app-session' | 'resource-share';
49224
+ set Kind(value: 'anonymous-embed' | 'app-session' | 'resource-share');
49225
+ /**
49226
+ * * Field Name: ResourceTypeID
49227
+ * * Display Name: Resource Type ID
49228
+ * * SQL Data Type: uniqueidentifier
49229
+ * * Related Entity/Foreign Key: MJ: Resource Types (vwResourceTypes.ID)
49230
+ * * Description: For resource-share/embed kinds: the ResourceType of the single resource this link shares. The link's reach to dependent data is admitted at runtime via FK-reachable resource-pinned row-level security, not an enumerated list. NULL for app-session invites.
49231
+ */
49232
+ get ResourceTypeID(): string | null;
49233
+ set ResourceTypeID(value: string | null);
49234
+ /**
49235
+ * * Field Name: ResourceID
49236
+ * * Display Name: Resource ID
49237
+ * * SQL Data Type: nvarchar(450)
49238
+ * * Description: For resource-share/embed kinds: the primary-key value of the specific shared resource (stringified to support any resource's key type). NULL for app-session invites.
49239
+ */
49240
+ get ResourceID(): string | null;
49241
+ set ResourceID(value: string | null);
49242
+ /**
49243
+ * * Field Name: __mj_CreatedAt
49244
+ * * Display Name: Created At
49245
+ * * SQL Data Type: datetimeoffset
49246
+ * * Default Value: getutcdate()
49247
+ */
49248
+ get __mj_CreatedAt(): Date;
49249
+ /**
49250
+ * * Field Name: __mj_UpdatedAt
49251
+ * * Display Name: Updated At
49252
+ * * SQL Data Type: datetimeoffset
49253
+ * * Default Value: getutcdate()
49254
+ */
49255
+ get __mj_UpdatedAt(): Date;
49256
+ /**
49257
+ * * Field Name: Application
49258
+ * * Display Name: Application
49259
+ * * SQL Data Type: nvarchar(100)
49260
+ */
49261
+ get Application(): string;
49262
+ /**
49263
+ * * Field Name: Role
49264
+ * * Display Name: Role
49265
+ * * SQL Data Type: nvarchar(50)
49266
+ */
49267
+ get Role(): string;
49268
+ /**
49269
+ * * Field Name: CreatedByUser
49270
+ * * Display Name: Created By User
49271
+ * * SQL Data Type: nvarchar(100)
49272
+ */
49273
+ get CreatedByUser(): string;
49274
+ /**
49275
+ * * Field Name: ResourceType
49276
+ * * Display Name: Resource Type
49277
+ * * SQL Data Type: nvarchar(255)
49278
+ */
49279
+ get ResourceType(): string | null;
49280
+ }
49281
+ /**
49282
+ * MJ: Magic Link Redemptions - strongly typed entity sub-class
49283
+ * * Schema: __mj
49284
+ * * Base Table: MagicLinkRedemption
49285
+ * * Base View: vwMagicLinkRedemptions
49286
+ * * @description One row per magic-link redemption ATTEMPT (success or failure). Provides per-use redemption history and forensic visibility into token scanning/brute-force. Distinct from MagicLinkInvite, which keeps only an aggregate UseCount + last ConsumedAt.
49287
+ * * Primary Key: ID
49288
+ * @extends {BaseEntity}
49289
+ * @class
49290
+ * @public
49291
+ */
49292
+ export declare class MJMagicLinkRedemptionEntity extends BaseEntity<MJMagicLinkRedemptionEntityType> {
49293
+ /**
49294
+ * Loads the MJ: Magic Link Redemptions record from the database
49295
+ * @param ID: string - primary key value to load the MJ: Magic Link Redemptions record.
49296
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
49297
+ * @returns {Promise<boolean>} - true if successful, false otherwise
49298
+ * @public
49299
+ * @async
49300
+ * @memberof MJMagicLinkRedemptionEntity
49301
+ * @method
49302
+ * @override
49303
+ */
49304
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
49305
+ /**
49306
+ * * Field Name: ID
49307
+ * * Display Name: ID
49308
+ * * SQL Data Type: uniqueidentifier
49309
+ * * Default Value: newsequentialid()
49310
+ */
49311
+ get ID(): string;
49312
+ set ID(value: string);
49313
+ /**
49314
+ * * Field Name: InviteID
49315
+ * * Display Name: Invite ID
49316
+ * * SQL Data Type: uniqueidentifier
49317
+ * * Related Entity/Foreign Key: MJ: Magic Link Invites (vwMagicLinkInvites.ID)
49318
+ * * Description: Foreign key to MagicLinkInvite. NULLABLE: a redemption attempt against a token that matches no invite (not_found — the signature of scanning/brute-force) has no invite to reference but is still logged.
49319
+ */
49320
+ get InviteID(): string | null;
49321
+ set InviteID(value: string | null);
49322
+ /**
49323
+ * * Field Name: AttemptedAt
49324
+ * * Display Name: Attempted At
49325
+ * * SQL Data Type: datetimeoffset
49326
+ * * Default Value: sysutcdatetime()
49327
+ * * Description: Timestamp of the redemption attempt (UTC). Defaults to the time of insert.
49328
+ */
49329
+ get AttemptedAt(): Date;
49330
+ set AttemptedAt(value: Date);
49331
+ /**
49332
+ * * Field Name: Outcome
49333
+ * * Display Name: Outcome
49334
+ * * SQL Data Type: nvarchar(30)
49335
+ * * Value List Type: List
49336
+ * * Possible Values
49337
+ * * consumed
49338
+ * * expired
49339
+ * * invalid
49340
+ * * not_found
49341
+ * * provisioning_failed
49342
+ * * revoked
49343
+ * * server_error
49344
+ * * success
49345
+ * * Description: Outcome of the attempt: 'success', or one of the redemption error codes (not_found, expired, consumed, revoked, invalid, provisioning_failed, server_error). Mirrors the RedeemErrorCode union in the server code.
49346
+ */
49347
+ get Outcome(): 'consumed' | 'expired' | 'invalid' | 'not_found' | 'provisioning_failed' | 'revoked' | 'server_error' | 'success';
49348
+ set Outcome(value: 'consumed' | 'expired' | 'invalid' | 'not_found' | 'provisioning_failed' | 'revoked' | 'server_error' | 'success');
49349
+ /**
49350
+ * * Field Name: IPAddress
49351
+ * * Display Name: IP Address
49352
+ * * SQL Data Type: nvarchar(64)
49353
+ * * Description: Client IP address the redemption came from, as captured by the request middleware. May be stored full, truncated, hashed, or omitted per the deployment's magicLink.audit.ipStorage policy. NULL when unavailable or policy is 'none'.
49354
+ */
49355
+ get IPAddress(): string | null;
49356
+ set IPAddress(value: string | null);
49357
+ /**
49358
+ * * Field Name: UserAgent
49359
+ * * Display Name: User Agent
49360
+ * * SQL Data Type: nvarchar(512)
49361
+ * * Description: User-Agent header of the redeeming client. NULL when unavailable.
49362
+ */
49363
+ get UserAgent(): string | null;
49364
+ set UserAgent(value: string | null);
49365
+ /**
49366
+ * * Field Name: Origin
49367
+ * * Display Name: Origin
49368
+ * * SQL Data Type: nvarchar(512)
49369
+ * * Description: Origin header of the redemption request. Retained for embed/domain forensics (which host framed or initiated the redemption). NULL for direct (non-embedded) redemptions.
49370
+ */
49371
+ get Origin(): string | null;
49372
+ set Origin(value: string | null);
49373
+ /**
49374
+ * * Field Name: ProvisionedUserID
49375
+ * * Display Name: Provisioned User ID
49376
+ * * SQL Data Type: uniqueidentifier
49377
+ * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
49378
+ * * Description: Foreign key to the User provisioned/linked by a SUCCESSFUL redemption. NULL on failed attempts and on (future) anonymous redemptions that resolve to a shared principal rather than a per-email user.
49379
+ */
49380
+ get ProvisionedUserID(): string | null;
49381
+ set ProvisionedUserID(value: string | null);
49382
+ /**
49383
+ * * Field Name: __mj_CreatedAt
49384
+ * * Display Name: Created At
49385
+ * * SQL Data Type: datetimeoffset
49386
+ * * Default Value: getutcdate()
49387
+ */
49388
+ get __mj_CreatedAt(): Date;
49389
+ /**
49390
+ * * Field Name: __mj_UpdatedAt
49391
+ * * Display Name: Updated At
49392
+ * * SQL Data Type: datetimeoffset
49393
+ * * Default Value: getutcdate()
49394
+ */
49395
+ get __mj_UpdatedAt(): Date;
49396
+ /**
49397
+ * * Field Name: ProvisionedUser
49398
+ * * Display Name: Provisioned User
49399
+ * * SQL Data Type: nvarchar(100)
49400
+ */
49401
+ get ProvisionedUser(): string | null;
49402
+ }
49403
+ /**
49404
+ * MJ: MCP Server Connection Permissions - strongly typed entity sub-class
49405
+ * * Schema: __mj
49406
+ * * Base Table: MCPServerConnectionPermission
49407
+ * * Base View: vwMCPServerConnectionPermissions
49408
+ * * Primary Key: ID
49409
+ * @extends {BaseEntity}
49410
+ * @class
49411
+ * @public
49412
+ */
49413
+ export declare class MJMCPServerConnectionPermissionEntity extends BaseEntity<MJMCPServerConnectionPermissionEntityType> {
49414
+ /**
49415
+ * Loads the MJ: MCP Server Connection Permissions record from the database
49416
+ * @param ID: string - primary key value to load the MJ: MCP Server Connection Permissions record.
49417
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
49418
+ * @returns {Promise<boolean>} - true if successful, false otherwise
49419
+ * @public
49420
+ * @async
49421
+ * @memberof MJMCPServerConnectionPermissionEntity
49422
+ * @method
49423
+ * @override
49424
+ */
49425
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
49426
+ /**
49427
+ * Validate() method override for MJ: MCP Server Connection Permissions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
49428
+ * * Table-Level: Either a specific user or a role must be assigned to the permission record, but you cannot assign both at the same time and you cannot leave both empty. This ensures that each permission is linked to exactly one entity, maintaining clear ownership and preventing ambiguous access settings.
49429
+ * @public
49430
+ * @method
49431
+ * @override
49432
+ */
49433
+ Validate(): ValidationResult;
49434
+ /**
49435
+ * Either a specific user or a role must be assigned to the permission record, but you cannot assign both at the same time and you cannot leave both empty. This ensures that each permission is linked to exactly one entity, maintaining clear ownership and preventing ambiguous access settings.
49436
+ * @param result - the ValidationResult object to add any errors or warnings to
49437
+ * @public
49438
+ * @method
49439
+ */
49440
+ ValidateUserIDOrRoleIDExclusive(result: ValidationResult): void;
49441
+ /**
49442
+ * * Field Name: ID
49443
+ * * Display Name: ID
49444
+ * * SQL Data Type: uniqueidentifier
49445
+ * * Default Value: newsequentialid()
49446
+ */
49447
+ get ID(): string;
49448
+ set ID(value: string);
49449
+ /**
49450
+ * * Field Name: MCPServerConnectionID
49451
+ * * Display Name: MCP Server Connection ID
49452
+ * * SQL Data Type: uniqueidentifier
49453
+ * * Related Entity/Foreign Key: MJ: MCP Server Connections (vwMCPServerConnections.ID)
49454
+ */
49455
+ get MCPServerConnectionID(): string;
49456
+ set MCPServerConnectionID(value: string);
49457
+ /**
49458
+ * * Field Name: UserID
49459
+ * * Display Name: User
49460
+ * * SQL Data Type: uniqueidentifier
49461
+ * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
49462
+ * * Description: FK to User (mutually exclusive with RoleID)
49463
+ */
49464
+ get UserID(): string | null;
49465
+ set UserID(value: string | null);
49466
+ /**
49467
+ * * Field Name: RoleID
49468
+ * * Display Name: Role
49469
+ * * SQL Data Type: uniqueidentifier
49470
+ * * Related Entity/Foreign Key: MJ: Roles (vwRoles.ID)
49471
+ * * Description: FK to Role (mutually exclusive with UserID)
49472
+ */
49473
+ get RoleID(): string | null;
49474
+ set RoleID(value: string | null);
49475
+ /**
49476
+ * * Field Name: CanExecute
49477
+ * * Display Name: Can Execute
49478
+ * * SQL Data Type: bit
49479
+ * * Default Value: 1
49480
+ * * Description: Can invoke tools via this connection
49481
+ */
49482
+ get CanExecute(): boolean;
49483
+ set CanExecute(value: boolean);
49484
+ /**
49485
+ * * Field Name: CanModify
49486
+ * * Display Name: Can Modify
49487
+ * * SQL Data Type: bit
49488
+ * * Default Value: 0
49489
+ * * Description: Can modify connection settings
49490
+ */
49491
+ get CanModify(): boolean;
49492
+ set CanModify(value: boolean);
49493
+ /**
49494
+ * * Field Name: CanViewCredentials
49495
+ * * Display Name: Can View Credentials
49496
+ * * SQL Data Type: bit
49497
+ * * Default Value: 0
49498
+ * * Description: Can see credential info (but not decrypt)
49499
+ */
49500
+ get CanViewCredentials(): boolean;
49501
+ set CanViewCredentials(value: boolean);
49502
+ /**
49503
+ * * Field Name: __mj_CreatedAt
49504
+ * * Display Name: Created At
49505
+ * * SQL Data Type: datetimeoffset
49506
+ * * Default Value: getutcdate()
49507
+ */
49508
+ get __mj_CreatedAt(): Date;
49509
+ /**
49510
+ * * Field Name: __mj_UpdatedAt
49511
+ * * Display Name: Updated At
49512
+ * * SQL Data Type: datetimeoffset
49513
+ * * Default Value: getutcdate()
49514
+ */
49515
+ get __mj_UpdatedAt(): Date;
49516
+ /**
49517
+ * * Field Name: MCPServerConnection
49518
+ * * Display Name: MCP Server Connection
49519
+ * * SQL Data Type: nvarchar(255)
49520
+ */
49521
+ get MCPServerConnection(): string;
49522
+ /**
49523
+ * * Field Name: User
49524
+ * * Display Name: User Name
49525
+ * * SQL Data Type: nvarchar(100)
49526
+ */
49527
+ get User(): string | null;
49528
+ /**
49529
+ * * Field Name: Role
49530
+ * * Display Name: Role Name
49531
+ * * SQL Data Type: nvarchar(50)
49532
+ */
49533
+ get Role(): string | null;
49534
+ }
49535
+ /**
49536
+ * MJ: MCP Server Connection Tools - strongly typed entity sub-class
49537
+ * * Schema: __mj
49538
+ * * Base Table: MCPServerConnectionTool
49539
+ * * Base View: vwMCPServerConnectionTools
49540
+ * * Primary Key: ID
49541
+ * @extends {BaseEntity}
49542
+ * @class
49543
+ * @public
49544
+ */
49545
+ export declare class MJMCPServerConnectionToolEntity extends BaseEntity<MJMCPServerConnectionToolEntityType> {
49546
+ /**
49547
+ * Loads the MJ: MCP Server Connection Tools record from the database
49548
+ * @param ID: string - primary key value to load the MJ: MCP Server Connection Tools record.
49549
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
49550
+ * @returns {Promise<boolean>} - true if successful, false otherwise
49551
+ * @public
49552
+ * @async
49553
+ * @memberof MJMCPServerConnectionToolEntity
49554
+ * @method
49555
+ * @override
49556
+ */
49557
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
49558
+ /**
49559
+ * * Field Name: ID
49560
+ * * Display Name: ID
49561
+ * * SQL Data Type: uniqueidentifier
49562
+ * * Default Value: newsequentialid()
49563
+ */
49564
+ get ID(): string;
49565
+ set ID(value: string);
49566
+ /**
49567
+ * * Field Name: MCPServerConnectionID
49568
+ * * Display Name: Connection
49569
+ * * SQL Data Type: uniqueidentifier
49570
+ * * Related Entity/Foreign Key: MJ: MCP Server Connections (vwMCPServerConnections.ID)
49571
+ */
49572
+ get MCPServerConnectionID(): string;
49573
+ set MCPServerConnectionID(value: string);
49574
+ /**
49575
+ * * Field Name: MCPServerToolID
49576
+ * * Display Name: Tool
49577
+ * * SQL Data Type: uniqueidentifier
49578
+ * * Related Entity/Foreign Key: MJ: MCP Server Tools (vwMCPServerTools.ID)
49579
+ */
49580
+ get MCPServerToolID(): string;
49581
+ set MCPServerToolID(value: string);
49582
+ /**
49583
+ * * Field Name: IsEnabled
49584
+ * * Display Name: Enabled
49585
+ * * SQL Data Type: bit
49586
+ * * Default Value: 1
49587
+ * * Description: Whether this tool is enabled for the connection
49588
+ */
49589
+ get IsEnabled(): boolean;
49590
+ set IsEnabled(value: boolean);
49591
+ /**
49592
+ * * Field Name: DefaultInputValues
49593
+ * * Display Name: Default Input Values
49594
+ * * SQL Data Type: nvarchar(MAX)
49595
+ * * Description: JSON default values for tool inputs
49596
+ */
49597
+ get DefaultInputValues(): string | null;
49598
+ set DefaultInputValues(value: string | null);
49599
+ /**
49600
+ * * Field Name: MaxCallsPerMinute
49601
+ * * Display Name: Max Calls Per Minute
49602
+ * * SQL Data Type: int
49603
+ * * Description: Override rate limit for this specific tool
49604
+ */
49605
+ get MaxCallsPerMinute(): number | null;
49606
+ set MaxCallsPerMinute(value: number | null);
49607
+ /**
49608
+ * * Field Name: __mj_CreatedAt
49609
+ * * Display Name: Created At
49610
+ * * SQL Data Type: datetimeoffset
49611
+ * * Default Value: getutcdate()
49612
+ */
49613
+ get __mj_CreatedAt(): Date;
49614
+ /**
49615
+ * * Field Name: __mj_UpdatedAt
49616
+ * * Display Name: Updated At
49617
+ * * SQL Data Type: datetimeoffset
49618
+ * * Default Value: getutcdate()
49619
+ */
49620
+ get __mj_UpdatedAt(): Date;
49621
+ /**
49622
+ * * Field Name: MCPServerConnection
49623
+ * * Display Name: Connection Name
49624
+ * * SQL Data Type: nvarchar(255)
49625
+ */
49626
+ get MCPServerConnection(): string;
49627
+ /**
49628
+ * * Field Name: MCPServerTool
49629
+ * * Display Name: Tool Name
49630
+ * * SQL Data Type: nvarchar(255)
49631
+ */
49632
+ get MCPServerTool(): string | null;
49633
+ }
49634
+ /**
49635
+ * MJ: MCP Server Connections - strongly typed entity sub-class
49636
+ * * Schema: __mj
49637
+ * * Base Table: MCPServerConnection
49638
+ * * Base View: vwMCPServerConnections
49639
+ * * Primary Key: ID
49640
+ * @extends {BaseEntity}
49641
+ * @class
49642
+ * @public
49643
+ */
49644
+ export declare class MJMCPServerConnectionEntity extends BaseEntity<MJMCPServerConnectionEntityType> {
49645
+ /**
49646
+ * Loads the MJ: MCP Server Connections record from the database
49647
+ * @param ID: string - primary key value to load the MJ: MCP Server Connections record.
49648
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
49649
+ * @returns {Promise<boolean>} - true if successful, false otherwise
49650
+ * @public
49651
+ * @async
49652
+ * @memberof MJMCPServerConnectionEntity
49653
+ * @method
49654
+ * @override
49655
+ */
49656
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
49657
+ /**
49658
+ * * Field Name: ID
49659
+ * * Display Name: ID
49660
+ * * SQL Data Type: uniqueidentifier
49661
+ * * Default Value: newsequentialid()
49662
+ */
49663
+ get ID(): string;
49664
+ set ID(value: string);
49665
+ /**
49666
+ * * Field Name: MCPServerID
49667
+ * * Display Name: MCP Server
49668
+ * * SQL Data Type: uniqueidentifier
49669
+ * * Related Entity/Foreign Key: MJ: MCP Servers (vwMCPServers.ID)
49670
+ */
49671
+ get MCPServerID(): string;
49672
+ set MCPServerID(value: string);
49673
+ /**
49674
+ * * Field Name: Name
49675
+ * * Display Name: Name
49676
+ * * SQL Data Type: nvarchar(255)
49677
+ * * Description: Connection name (unique per company)
49678
+ */
49679
+ get Name(): string;
49680
+ set Name(value: string);
49681
+ /**
49682
+ * * Field Name: Description
49683
+ * * Display Name: Description
49684
+ * * SQL Data Type: nvarchar(MAX)
48130
49685
  */
48131
49686
  get Description(): string | null;
48132
49687
  set Description(value: string | null);
@@ -56621,6 +58176,752 @@ export declare class MJSearchScopeEntity extends BaseEntity<MJSearchScopeEntityT
56621
58176
  */
56622
58177
  get OwnerUser(): string | null;
56623
58178
  }
58179
+ /**
58180
+ * MJ: Signature Accounts - strongly typed entity sub-class
58181
+ * * Schema: __mj
58182
+ * * Base Table: SignatureAccount
58183
+ * * Base View: vwSignatureAccounts
58184
+ * * Primary Key: ID
58185
+ * @extends {BaseEntity}
58186
+ * @class
58187
+ * @public
58188
+ */
58189
+ export declare class MJSignatureAccountEntity extends BaseEntity<MJSignatureAccountEntityType> {
58190
+ /**
58191
+ * Loads the MJ: Signature Accounts record from the database
58192
+ * @param ID: string - primary key value to load the MJ: Signature Accounts record.
58193
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
58194
+ * @returns {Promise<boolean>} - true if successful, false otherwise
58195
+ * @public
58196
+ * @async
58197
+ * @memberof MJSignatureAccountEntity
58198
+ * @method
58199
+ * @override
58200
+ */
58201
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
58202
+ /**
58203
+ * * Field Name: ID
58204
+ * * Display Name: ID
58205
+ * * SQL Data Type: uniqueidentifier
58206
+ * * Default Value: newsequentialid()
58207
+ */
58208
+ get ID(): string;
58209
+ set ID(value: string);
58210
+ /**
58211
+ * * Field Name: Name
58212
+ * * Display Name: Name
58213
+ * * SQL Data Type: nvarchar(200)
58214
+ * * Description: Human-readable account name (e.g. "Acme Prod DocuSign").
58215
+ */
58216
+ get Name(): string;
58217
+ set Name(value: string);
58218
+ /**
58219
+ * * Field Name: SignatureProviderID
58220
+ * * Display Name: Signature Provider
58221
+ * * SQL Data Type: uniqueidentifier
58222
+ * * Related Entity/Foreign Key: MJ: Signature Providers (vwSignatureProviders.ID)
58223
+ */
58224
+ get SignatureProviderID(): string;
58225
+ set SignatureProviderID(value: string);
58226
+ /**
58227
+ * * Field Name: CredentialID
58228
+ * * Display Name: Credential
58229
+ * * SQL Data Type: uniqueidentifier
58230
+ * * Related Entity/Foreign Key: MJ: Credentials (vwCredentials.ID)
58231
+ */
58232
+ get CredentialID(): string;
58233
+ set CredentialID(value: string);
58234
+ /**
58235
+ * * Field Name: CompanyID
58236
+ * * Display Name: Company
58237
+ * * SQL Data Type: uniqueidentifier
58238
+ * * Related Entity/Foreign Key: MJ: Companies (vwCompanies.ID)
58239
+ */
58240
+ get CompanyID(): string | null;
58241
+ set CompanyID(value: string | null);
58242
+ /**
58243
+ * * Field Name: IsActive
58244
+ * * Display Name: Is Active
58245
+ * * SQL Data Type: bit
58246
+ * * Default Value: 1
58247
+ * * Description: Whether this account is available for use. Inactive accounts are not pre-initialized by the engine driver cache.
58248
+ */
58249
+ get IsActive(): boolean;
58250
+ set IsActive(value: boolean);
58251
+ /**
58252
+ * * Field Name: IsDefault
58253
+ * * Display Name: Is Default
58254
+ * * SQL Data Type: bit
58255
+ * * Default Value: 0
58256
+ * * Description: Whether this is the default account for its provider (and Company, when scoped).
58257
+ */
58258
+ get IsDefault(): boolean;
58259
+ set IsDefault(value: boolean);
58260
+ /**
58261
+ * * Field Name: DefaultFromName
58262
+ * * Display Name: Default From Name
58263
+ * * SQL Data Type: nvarchar(200)
58264
+ * * Description: Default sender display name for envelopes from this account.
58265
+ */
58266
+ get DefaultFromName(): string | null;
58267
+ set DefaultFromName(value: string | null);
58268
+ /**
58269
+ * * Field Name: DefaultFromEmail
58270
+ * * Display Name: Default From Email
58271
+ * * SQL Data Type: nvarchar(320)
58272
+ * * Description: Default sender email for envelopes from this account.
58273
+ */
58274
+ get DefaultFromEmail(): string | null;
58275
+ set DefaultFromEmail(value: string | null);
58276
+ /**
58277
+ * * Field Name: Configuration
58278
+ * * Display Name: Configuration
58279
+ * * SQL Data Type: nvarchar(MAX)
58280
+ * * Description: JSON of non-secret per-account overrides (e.g. accountId, restBase). Merged over provider Configuration and under decrypted credential values at driver initialize().
58281
+ */
58282
+ get Configuration(): string | null;
58283
+ set Configuration(value: string | null);
58284
+ /**
58285
+ * * Field Name: __mj_CreatedAt
58286
+ * * Display Name: Created At
58287
+ * * SQL Data Type: datetimeoffset
58288
+ * * Default Value: getutcdate()
58289
+ */
58290
+ get __mj_CreatedAt(): Date;
58291
+ /**
58292
+ * * Field Name: __mj_UpdatedAt
58293
+ * * Display Name: Updated At
58294
+ * * SQL Data Type: datetimeoffset
58295
+ * * Default Value: getutcdate()
58296
+ */
58297
+ get __mj_UpdatedAt(): Date;
58298
+ /**
58299
+ * * Field Name: SignatureProvider
58300
+ * * Display Name: Signature Provider Name
58301
+ * * SQL Data Type: nvarchar(100)
58302
+ */
58303
+ get SignatureProvider(): string;
58304
+ /**
58305
+ * * Field Name: Credential
58306
+ * * Display Name: Credential Name
58307
+ * * SQL Data Type: nvarchar(200)
58308
+ */
58309
+ get Credential(): string;
58310
+ /**
58311
+ * * Field Name: Company
58312
+ * * Display Name: Company Name
58313
+ * * SQL Data Type: nvarchar(50)
58314
+ */
58315
+ get Company(): string | null;
58316
+ }
58317
+ /**
58318
+ * MJ: Signature Providers - strongly typed entity sub-class
58319
+ * * Schema: __mj
58320
+ * * Base Table: SignatureProvider
58321
+ * * Base View: vwSignatureProviders
58322
+ * * Primary Key: ID
58323
+ * @extends {BaseEntity}
58324
+ * @class
58325
+ * @public
58326
+ */
58327
+ export declare class MJSignatureProviderEntity extends BaseEntity<MJSignatureProviderEntityType> {
58328
+ /**
58329
+ * Loads the MJ: Signature Providers record from the database
58330
+ * @param ID: string - primary key value to load the MJ: Signature Providers record.
58331
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
58332
+ * @returns {Promise<boolean>} - true if successful, false otherwise
58333
+ * @public
58334
+ * @async
58335
+ * @memberof MJSignatureProviderEntity
58336
+ * @method
58337
+ * @override
58338
+ */
58339
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
58340
+ /**
58341
+ * * Field Name: ID
58342
+ * * Display Name: ID
58343
+ * * SQL Data Type: uniqueidentifier
58344
+ * * Default Value: newsequentialid()
58345
+ */
58346
+ get ID(): string;
58347
+ set ID(value: string);
58348
+ /**
58349
+ * * Field Name: Name
58350
+ * * Display Name: Name
58351
+ * * SQL Data Type: nvarchar(100)
58352
+ * * Description: Display name of the eSignature provider type (e.g. DocuSign, Adobe Sign).
58353
+ */
58354
+ get Name(): string;
58355
+ set Name(value: string);
58356
+ /**
58357
+ * * Field Name: ServerDriverKey
58358
+ * * Display Name: Server Driver Key
58359
+ * * SQL Data Type: nvarchar(100)
58360
+ * * Description: Driver key resolved at runtime via MJGlobal.ClassFactory.CreateInstance(BaseSignatureProvider, ServerDriverKey). MUST match the @RegisterClass key on the concrete driver (e.g. 'DocuSign').
58361
+ */
58362
+ get ServerDriverKey(): string;
58363
+ set ServerDriverKey(value: string);
58364
+ /**
58365
+ * * Field Name: IsActive
58366
+ * * Display Name: Is Active
58367
+ * * SQL Data Type: bit
58368
+ * * Default Value: 1
58369
+ * * Description: Whether this provider type is available for use. Inactive providers are skipped by the engine.
58370
+ */
58371
+ get IsActive(): boolean;
58372
+ set IsActive(value: boolean);
58373
+ /**
58374
+ * * Field Name: Priority
58375
+ * * Display Name: Priority
58376
+ * * SQL Data Type: int
58377
+ * * Default Value: 0
58378
+ * * Description: Selection priority when multiple providers could apply. Lower number = higher priority.
58379
+ */
58380
+ get Priority(): number;
58381
+ set Priority(value: number);
58382
+ /**
58383
+ * * Field Name: RequiresOAuth
58384
+ * * Display Name: Requires OAuth
58385
+ * * SQL Data Type: bit
58386
+ * * Default Value: 1
58387
+ * * Description: Whether this provider requires OAuth-based credentials (vs. a static API key).
58388
+ */
58389
+ get RequiresOAuth(): boolean;
58390
+ set RequiresOAuth(value: boolean);
58391
+ /**
58392
+ * * Field Name: SupportsTemplates
58393
+ * * Display Name: Supports Templates
58394
+ * * SQL Data Type: bit
58395
+ * * Default Value: 0
58396
+ * * Description: Whether this provider supports creating envelopes from provider-hosted templates (ApplyTemplate operation).
58397
+ */
58398
+ get SupportsTemplates(): boolean;
58399
+ set SupportsTemplates(value: boolean);
58400
+ /**
58401
+ * * Field Name: SupportsEmbeddedSigning
58402
+ * * Display Name: Supports Embedded Signing
58403
+ * * SQL Data Type: bit
58404
+ * * Default Value: 0
58405
+ * * Description: Whether this provider supports embedded (in-app) signing URLs (CreateEmbeddedSigningUrl operation).
58406
+ */
58407
+ get SupportsEmbeddedSigning(): boolean;
58408
+ set SupportsEmbeddedSigning(value: boolean);
58409
+ /**
58410
+ * * Field Name: Configuration
58411
+ * * Display Name: Configuration
58412
+ * * SQL Data Type: nvarchar(MAX)
58413
+ * * Description: JSON of non-secret provider-type defaults (e.g. oauthBase, restBase). Merged under per-account Configuration and decrypted credential values at driver initialize().
58414
+ */
58415
+ get Configuration(): string | null;
58416
+ set Configuration(value: string | null);
58417
+ /**
58418
+ * * Field Name: __mj_CreatedAt
58419
+ * * Display Name: Created At
58420
+ * * SQL Data Type: datetimeoffset
58421
+ * * Default Value: getutcdate()
58422
+ */
58423
+ get __mj_CreatedAt(): Date;
58424
+ /**
58425
+ * * Field Name: __mj_UpdatedAt
58426
+ * * Display Name: Updated At
58427
+ * * SQL Data Type: datetimeoffset
58428
+ * * Default Value: getutcdate()
58429
+ */
58430
+ get __mj_UpdatedAt(): Date;
58431
+ }
58432
+ /**
58433
+ * MJ: Signature Request Documents - strongly typed entity sub-class
58434
+ * * Schema: __mj
58435
+ * * Base Table: SignatureRequestDocument
58436
+ * * Base View: vwSignatureRequestDocuments
58437
+ * * Primary Key: ID
58438
+ * @extends {BaseEntity}
58439
+ * @class
58440
+ * @public
58441
+ */
58442
+ export declare class MJSignatureRequestDocumentEntity extends BaseEntity<MJSignatureRequestDocumentEntityType> {
58443
+ /**
58444
+ * Loads the MJ: Signature Request Documents record from the database
58445
+ * @param ID: string - primary key value to load the MJ: Signature Request Documents record.
58446
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
58447
+ * @returns {Promise<boolean>} - true if successful, false otherwise
58448
+ * @public
58449
+ * @async
58450
+ * @memberof MJSignatureRequestDocumentEntity
58451
+ * @method
58452
+ * @override
58453
+ */
58454
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
58455
+ /**
58456
+ * * Field Name: ID
58457
+ * * Display Name: ID
58458
+ * * SQL Data Type: uniqueidentifier
58459
+ * * Default Value: newsequentialid()
58460
+ */
58461
+ get ID(): string;
58462
+ set ID(value: string);
58463
+ /**
58464
+ * * Field Name: SignatureRequestID
58465
+ * * Display Name: Signature Request
58466
+ * * SQL Data Type: uniqueidentifier
58467
+ * * Related Entity/Foreign Key: MJ: Signature Requests (vwSignatureRequests.ID)
58468
+ */
58469
+ get SignatureRequestID(): string;
58470
+ set SignatureRequestID(value: string);
58471
+ /**
58472
+ * * Field Name: ArtifactID
58473
+ * * Display Name: Artifact
58474
+ * * SQL Data Type: uniqueidentifier
58475
+ * * Related Entity/Foreign Key: MJ: Artifacts (vwArtifacts.ID)
58476
+ */
58477
+ get ArtifactID(): string | null;
58478
+ set ArtifactID(value: string | null);
58479
+ /**
58480
+ * * Field Name: ArtifactVersionID
58481
+ * * Display Name: Artifact Version
58482
+ * * SQL Data Type: uniqueidentifier
58483
+ * * Related Entity/Foreign Key: MJ: Artifact Versions (vwArtifactVersions.ID)
58484
+ */
58485
+ get ArtifactVersionID(): string | null;
58486
+ set ArtifactVersionID(value: string | null);
58487
+ /**
58488
+ * * Field Name: Name
58489
+ * * Display Name: Document Name
58490
+ * * SQL Data Type: nvarchar(255)
58491
+ * * Description: Document filename as presented to the provider / signer.
58492
+ */
58493
+ get Name(): string;
58494
+ set Name(value: string);
58495
+ /**
58496
+ * * Field Name: Sequence
58497
+ * * Display Name: Sequence
58498
+ * * SQL Data Type: int
58499
+ * * Default Value: 1
58500
+ * * Description: Ordering of this document within the envelope (1-based).
58501
+ */
58502
+ get Sequence(): number;
58503
+ set Sequence(value: number);
58504
+ /**
58505
+ * * Field Name: Role
58506
+ * * Display Name: Document Role
58507
+ * * SQL Data Type: nvarchar(20)
58508
+ * * Default Value: Source
58509
+ * * Value List Type: List
58510
+ * * Possible Values
58511
+ * * Signed
58512
+ * * Source
58513
+ * * Description: Document role: Source = the document sent for signature; Signed = the executed document downloaded after completion (written back as a new Artifact Version).
58514
+ */
58515
+ get Role(): 'Signed' | 'Source';
58516
+ set Role(value: 'Signed' | 'Source');
58517
+ /**
58518
+ * * Field Name: __mj_CreatedAt
58519
+ * * Display Name: Created At
58520
+ * * SQL Data Type: datetimeoffset
58521
+ * * Default Value: getutcdate()
58522
+ */
58523
+ get __mj_CreatedAt(): Date;
58524
+ /**
58525
+ * * Field Name: __mj_UpdatedAt
58526
+ * * Display Name: Updated At
58527
+ * * SQL Data Type: datetimeoffset
58528
+ * * Default Value: getutcdate()
58529
+ */
58530
+ get __mj_UpdatedAt(): Date;
58531
+ /**
58532
+ * * Field Name: SignatureRequest
58533
+ * * Display Name: Signature Request Name
58534
+ * * SQL Data Type: nvarchar(255)
58535
+ */
58536
+ get SignatureRequest(): string;
58537
+ /**
58538
+ * * Field Name: Artifact
58539
+ * * Display Name: Artifact Name
58540
+ * * SQL Data Type: nvarchar(255)
58541
+ */
58542
+ get Artifact(): string | null;
58543
+ /**
58544
+ * * Field Name: ArtifactVersion
58545
+ * * Display Name: Artifact Version Name
58546
+ * * SQL Data Type: nvarchar(255)
58547
+ */
58548
+ get ArtifactVersion(): string | null;
58549
+ }
58550
+ /**
58551
+ * MJ: Signature Request Logs - strongly typed entity sub-class
58552
+ * * Schema: __mj
58553
+ * * Base Table: SignatureRequestLog
58554
+ * * Base View: vwSignatureRequestLogs
58555
+ * * Primary Key: ID
58556
+ * @extends {BaseEntity}
58557
+ * @class
58558
+ * @public
58559
+ */
58560
+ export declare class MJSignatureRequestLogEntity extends BaseEntity<MJSignatureRequestLogEntityType> {
58561
+ /**
58562
+ * Loads the MJ: Signature Request Logs record from the database
58563
+ * @param ID: string - primary key value to load the MJ: Signature Request Logs record.
58564
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
58565
+ * @returns {Promise<boolean>} - true if successful, false otherwise
58566
+ * @public
58567
+ * @async
58568
+ * @memberof MJSignatureRequestLogEntity
58569
+ * @method
58570
+ * @override
58571
+ */
58572
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
58573
+ /**
58574
+ * * Field Name: ID
58575
+ * * Display Name: ID
58576
+ * * SQL Data Type: uniqueidentifier
58577
+ * * Default Value: newsequentialid()
58578
+ */
58579
+ get ID(): string;
58580
+ set ID(value: string);
58581
+ /**
58582
+ * * Field Name: SignatureRequestID
58583
+ * * Display Name: Signature Request
58584
+ * * SQL Data Type: uniqueidentifier
58585
+ * * Related Entity/Foreign Key: MJ: Signature Requests (vwSignatureRequests.ID)
58586
+ */
58587
+ get SignatureRequestID(): string | null;
58588
+ set SignatureRequestID(value: string | null);
58589
+ /**
58590
+ * * Field Name: Operation
58591
+ * * Display Name: Operation
58592
+ * * SQL Data Type: nvarchar(50)
58593
+ * * Description: The provider operation logged (e.g. CreateEnvelope, GetEnvelopeStatus, DownloadSignedDocument, VoidEnvelope, Webhook).
58594
+ */
58595
+ get Operation(): string;
58596
+ set Operation(value: string);
58597
+ /**
58598
+ * * Field Name: Success
58599
+ * * Display Name: Success
58600
+ * * SQL Data Type: bit
58601
+ * * Default Value: 0
58602
+ * * Description: Whether the operation succeeded.
58603
+ */
58604
+ get Success(): boolean;
58605
+ set Success(value: boolean);
58606
+ /**
58607
+ * * Field Name: StatusBefore
58608
+ * * Display Name: Status Before
58609
+ * * SQL Data Type: nvarchar(20)
58610
+ * * Description: Signature request status immediately before the operation, when applicable.
58611
+ */
58612
+ get StatusBefore(): string | null;
58613
+ set StatusBefore(value: string | null);
58614
+ /**
58615
+ * * Field Name: StatusAfter
58616
+ * * Display Name: Status After
58617
+ * * SQL Data Type: nvarchar(20)
58618
+ * * Description: Signature request status immediately after the operation, when applicable.
58619
+ */
58620
+ get StatusAfter(): string | null;
58621
+ set StatusAfter(value: string | null);
58622
+ /**
58623
+ * * Field Name: Detail
58624
+ * * Display Name: Detail
58625
+ * * SQL Data Type: nvarchar(MAX)
58626
+ * * Description: Free-form detail: error text on failure, or normalized event JSON for webhook entries.
58627
+ */
58628
+ get Detail(): string | null;
58629
+ set Detail(value: string | null);
58630
+ /**
58631
+ * * Field Name: __mj_CreatedAt
58632
+ * * Display Name: Created At
58633
+ * * SQL Data Type: datetimeoffset
58634
+ * * Default Value: getutcdate()
58635
+ */
58636
+ get __mj_CreatedAt(): Date;
58637
+ /**
58638
+ * * Field Name: __mj_UpdatedAt
58639
+ * * Display Name: Updated At
58640
+ * * SQL Data Type: datetimeoffset
58641
+ * * Default Value: getutcdate()
58642
+ */
58643
+ get __mj_UpdatedAt(): Date;
58644
+ /**
58645
+ * * Field Name: SignatureRequest
58646
+ * * Display Name: Signature Request Name
58647
+ * * SQL Data Type: nvarchar(255)
58648
+ */
58649
+ get SignatureRequest(): string | null;
58650
+ }
58651
+ /**
58652
+ * MJ: Signature Request Recipients - strongly typed entity sub-class
58653
+ * * Schema: __mj
58654
+ * * Base Table: SignatureRequestRecipient
58655
+ * * Base View: vwSignatureRequestRecipients
58656
+ * * Primary Key: ID
58657
+ * @extends {BaseEntity}
58658
+ * @class
58659
+ * @public
58660
+ */
58661
+ export declare class MJSignatureRequestRecipientEntity extends BaseEntity<MJSignatureRequestRecipientEntityType> {
58662
+ /**
58663
+ * Loads the MJ: Signature Request Recipients record from the database
58664
+ * @param ID: string - primary key value to load the MJ: Signature Request Recipients record.
58665
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
58666
+ * @returns {Promise<boolean>} - true if successful, false otherwise
58667
+ * @public
58668
+ * @async
58669
+ * @memberof MJSignatureRequestRecipientEntity
58670
+ * @method
58671
+ * @override
58672
+ */
58673
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
58674
+ /**
58675
+ * * Field Name: ID
58676
+ * * Display Name: ID
58677
+ * * SQL Data Type: uniqueidentifier
58678
+ * * Default Value: newsequentialid()
58679
+ */
58680
+ get ID(): string;
58681
+ set ID(value: string);
58682
+ /**
58683
+ * * Field Name: SignatureRequestID
58684
+ * * Display Name: Signature Request ID
58685
+ * * SQL Data Type: uniqueidentifier
58686
+ * * Related Entity/Foreign Key: MJ: Signature Requests (vwSignatureRequests.ID)
58687
+ */
58688
+ get SignatureRequestID(): string;
58689
+ set SignatureRequestID(value: string);
58690
+ /**
58691
+ * * Field Name: Email
58692
+ * * Display Name: Email
58693
+ * * SQL Data Type: nvarchar(320)
58694
+ * * Description: Recipient email address.
58695
+ */
58696
+ get Email(): string;
58697
+ set Email(value: string);
58698
+ /**
58699
+ * * Field Name: Name
58700
+ * * Display Name: Name
58701
+ * * SQL Data Type: nvarchar(200)
58702
+ * * Description: Recipient display name.
58703
+ */
58704
+ get Name(): string | null;
58705
+ set Name(value: string | null);
58706
+ /**
58707
+ * * Field Name: RoutingOrder
58708
+ * * Display Name: Routing Order
58709
+ * * SQL Data Type: int
58710
+ * * Default Value: 1
58711
+ * * Description: Signing order; lower routes first (1-based).
58712
+ */
58713
+ get RoutingOrder(): number;
58714
+ set RoutingOrder(value: number);
58715
+ /**
58716
+ * * Field Name: Role
58717
+ * * Display Name: Role
58718
+ * * SQL Data Type: nvarchar(100)
58719
+ * * Description: Template role name for this recipient, when the envelope was created from a provider template.
58720
+ */
58721
+ get Role(): string | null;
58722
+ set Role(value: string | null);
58723
+ /**
58724
+ * * Field Name: Status
58725
+ * * Display Name: Status
58726
+ * * SQL Data Type: nvarchar(20)
58727
+ * * Default Value: Created
58728
+ * * Value List Type: List
58729
+ * * Possible Values
58730
+ * * Created
58731
+ * * Declined
58732
+ * * Delivered
58733
+ * * Sent
58734
+ * * Signed
58735
+ * * Description: Per-recipient status: Created, Sent, Delivered, Signed, or Declined.
58736
+ */
58737
+ get Status(): 'Created' | 'Declined' | 'Delivered' | 'Sent' | 'Signed';
58738
+ set Status(value: 'Created' | 'Declined' | 'Delivered' | 'Sent' | 'Signed');
58739
+ /**
58740
+ * * Field Name: SignedAt
58741
+ * * Display Name: Signed At
58742
+ * * SQL Data Type: datetimeoffset
58743
+ * * Description: Timestamp this recipient signed.
58744
+ */
58745
+ get SignedAt(): Date | null;
58746
+ set SignedAt(value: Date | null);
58747
+ /**
58748
+ * * Field Name: ExternalRecipientID
58749
+ * * Display Name: External Recipient ID
58750
+ * * SQL Data Type: nvarchar(255)
58751
+ * * Description: Provider-side recipient identifier, for correlation with provider events.
58752
+ */
58753
+ get ExternalRecipientID(): string | null;
58754
+ set ExternalRecipientID(value: string | null);
58755
+ /**
58756
+ * * Field Name: __mj_CreatedAt
58757
+ * * Display Name: Created At
58758
+ * * SQL Data Type: datetimeoffset
58759
+ * * Default Value: getutcdate()
58760
+ */
58761
+ get __mj_CreatedAt(): Date;
58762
+ /**
58763
+ * * Field Name: __mj_UpdatedAt
58764
+ * * Display Name: Updated At
58765
+ * * SQL Data Type: datetimeoffset
58766
+ * * Default Value: getutcdate()
58767
+ */
58768
+ get __mj_UpdatedAt(): Date;
58769
+ /**
58770
+ * * Field Name: SignatureRequest
58771
+ * * Display Name: Signature Request
58772
+ * * SQL Data Type: nvarchar(255)
58773
+ */
58774
+ get SignatureRequest(): string;
58775
+ }
58776
+ /**
58777
+ * MJ: Signature Requests - strongly typed entity sub-class
58778
+ * * Schema: __mj
58779
+ * * Base Table: SignatureRequest
58780
+ * * Base View: vwSignatureRequests
58781
+ * * Primary Key: ID
58782
+ * @extends {BaseEntity}
58783
+ * @class
58784
+ * @public
58785
+ */
58786
+ export declare class MJSignatureRequestEntity extends BaseEntity<MJSignatureRequestEntityType> {
58787
+ /**
58788
+ * Loads the MJ: Signature Requests record from the database
58789
+ * @param ID: string - primary key value to load the MJ: Signature Requests record.
58790
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
58791
+ * @returns {Promise<boolean>} - true if successful, false otherwise
58792
+ * @public
58793
+ * @async
58794
+ * @memberof MJSignatureRequestEntity
58795
+ * @method
58796
+ * @override
58797
+ */
58798
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
58799
+ /**
58800
+ * * Field Name: ID
58801
+ * * Display Name: ID
58802
+ * * SQL Data Type: uniqueidentifier
58803
+ * * Default Value: newsequentialid()
58804
+ */
58805
+ get ID(): string;
58806
+ set ID(value: string);
58807
+ /**
58808
+ * * Field Name: SignatureAccountID
58809
+ * * Display Name: Signature Account ID
58810
+ * * SQL Data Type: uniqueidentifier
58811
+ * * Related Entity/Foreign Key: MJ: Signature Accounts (vwSignatureAccounts.ID)
58812
+ */
58813
+ get SignatureAccountID(): string;
58814
+ set SignatureAccountID(value: string);
58815
+ /**
58816
+ * * Field Name: Name
58817
+ * * Display Name: Name
58818
+ * * SQL Data Type: nvarchar(255)
58819
+ * * Description: Envelope title / email subject.
58820
+ */
58821
+ get Name(): string;
58822
+ set Name(value: string);
58823
+ /**
58824
+ * * Field Name: Message
58825
+ * * Display Name: Message
58826
+ * * SQL Data Type: nvarchar(MAX)
58827
+ * * Description: Optional email body / message sent to recipients with the envelope.
58828
+ */
58829
+ get Message(): string | null;
58830
+ set Message(value: string | null);
58831
+ /**
58832
+ * * Field Name: Status
58833
+ * * Display Name: Status
58834
+ * * SQL Data Type: nvarchar(20)
58835
+ * * Default Value: Draft
58836
+ * * Value List Type: List
58837
+ * * Possible Values
58838
+ * * Completed
58839
+ * * Declined
58840
+ * * Delivered
58841
+ * * Draft
58842
+ * * Sent
58843
+ * * Signed
58844
+ * * Voided
58845
+ * * Description: Normalized envelope lifecycle status: Draft, Sent, Delivered, Signed, Completed, Declined, or Voided.
58846
+ */
58847
+ get Status(): 'Completed' | 'Declined' | 'Delivered' | 'Draft' | 'Sent' | 'Signed' | 'Voided';
58848
+ set Status(value: 'Completed' | 'Declined' | 'Delivered' | 'Draft' | 'Sent' | 'Signed' | 'Voided');
58849
+ /**
58850
+ * * Field Name: ExternalEnvelopeID
58851
+ * * Display Name: External Envelope ID
58852
+ * * SQL Data Type: nvarchar(255)
58853
+ * * Description: Provider-side envelope identifier (e.g. DocuSign envelopeId), assigned after the envelope is created.
58854
+ */
58855
+ get ExternalEnvelopeID(): string | null;
58856
+ set ExternalEnvelopeID(value: string | null);
58857
+ /**
58858
+ * * Field Name: EntityID
58859
+ * * Display Name: Entity ID
58860
+ * * SQL Data Type: uniqueidentifier
58861
+ * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
58862
+ * * Description: Polymorphic reference (entity half): the Entity of the originating business record that owns this signature request. NULL for standalone requests. Paired with RecordID.
58863
+ */
58864
+ get EntityID(): string | null;
58865
+ set EntityID(value: string | null);
58866
+ /**
58867
+ * * Field Name: RecordID
58868
+ * * Display Name: Record ID
58869
+ * * SQL Data Type: nvarchar(450)
58870
+ * * Description: Polymorphic reference (record half): the primary key value of the originating business record in the entity named by EntityID. NULL for standalone requests.
58871
+ */
58872
+ get RecordID(): string | null;
58873
+ set RecordID(value: string | null);
58874
+ /**
58875
+ * * Field Name: SentAt
58876
+ * * Display Name: Sent At
58877
+ * * SQL Data Type: datetimeoffset
58878
+ * * Description: Timestamp the envelope was sent to recipients.
58879
+ */
58880
+ get SentAt(): Date | null;
58881
+ set SentAt(value: Date | null);
58882
+ /**
58883
+ * * Field Name: CompletedAt
58884
+ * * Display Name: Completed At
58885
+ * * SQL Data Type: datetimeoffset
58886
+ * * Description: Timestamp the envelope reached a terminal completed state (all recipients signed).
58887
+ */
58888
+ get CompletedAt(): Date | null;
58889
+ set CompletedAt(value: Date | null);
58890
+ /**
58891
+ * * Field Name: VoidReason
58892
+ * * Display Name: Void Reason
58893
+ * * SQL Data Type: nvarchar(500)
58894
+ * * Description: Reason supplied when the envelope was voided/cancelled.
58895
+ */
58896
+ get VoidReason(): string | null;
58897
+ set VoidReason(value: string | null);
58898
+ /**
58899
+ * * Field Name: __mj_CreatedAt
58900
+ * * Display Name: Created At
58901
+ * * SQL Data Type: datetimeoffset
58902
+ * * Default Value: getutcdate()
58903
+ */
58904
+ get __mj_CreatedAt(): Date;
58905
+ /**
58906
+ * * Field Name: __mj_UpdatedAt
58907
+ * * Display Name: Updated At
58908
+ * * SQL Data Type: datetimeoffset
58909
+ * * Default Value: getutcdate()
58910
+ */
58911
+ get __mj_UpdatedAt(): Date;
58912
+ /**
58913
+ * * Field Name: SignatureAccount
58914
+ * * Display Name: Signature Account
58915
+ * * SQL Data Type: nvarchar(200)
58916
+ */
58917
+ get SignatureAccount(): string;
58918
+ /**
58919
+ * * Field Name: Entity
58920
+ * * Display Name: Entity
58921
+ * * SQL Data Type: nvarchar(255)
58922
+ */
58923
+ get Entity(): string | null;
58924
+ }
56624
58925
  /**
56625
58926
  * MJ: Skills - strongly typed entity sub-class
56626
58927
  * * Schema: __mj
@@ -61994,6 +64295,29 @@ export interface MJUserViewEntity_IDisplayState {
61994
64295
  cards?: MJUserViewEntity_IDisplayCardState;
61995
64296
  /** Grid-specific configuration */
61996
64297
  grid?: MJUserViewEntity_IGridDisplayState;
64298
+ /**
64299
+ * Per-view-type configuration, one entry per view type the user has configured.
64300
+ * Keyed by the `MJ: View Types` row ID so each type (Grid, Cards, Timeline, Map,
64301
+ * Cluster, …) keeps its own settings in parallel — switching from one type to another
64302
+ * and back preserves each type's config. The *active* view type is stored on
64303
+ * `UserView.ViewTypeID` (the source of truth), not here; this array holds only the
64304
+ * per-type configuration payloads.
64305
+ */
64306
+ viewTypeConfigs?: MJUserViewEntity_IViewTypeConfigEntry[];
64307
+ }
64308
+ /**
64309
+ * A single per-view-type configuration entry within {@link MJUserViewEntity_IDisplayState}.viewTypeConfigs.
64310
+ *
64311
+ * `config` is intentionally an open map: each view-type plug-in owns the shape of its own
64312
+ * configuration (e.g. the Cluster plug-in stores algorithm/K/dimensions; a Map plug-in stores
64313
+ * lat/long field names). The host persists/loads it opaquely and hands it to the plug-in's
64314
+ * renderer + prop-sheet, which interpret it with their own typed config interface.
64315
+ */
64316
+ export interface MJUserViewEntity_IViewTypeConfigEntry {
64317
+ /** The `MJ: View Types` row ID this configuration applies to. */
64318
+ viewTypeId: string;
64319
+ /** The view-type-specific configuration payload (shape owned by the plug-in). */
64320
+ config: Record<string, unknown>;
61997
64321
  }
61998
64322
  /**
61999
64323
  * Timeline-specific configuration for the entity viewer's timeline display mode.
@@ -62293,6 +64617,15 @@ export declare class MJUserViewEntity extends BaseEntity<MJUserViewEntityType> {
62293
64617
  get DisplayStateObject(): MJUserViewEntity_IDisplayState | null;
62294
64618
  set DisplayStateObject(value: MJUserViewEntity_IDisplayState | null);
62295
64619
  /**
64620
+ * * Field Name: ViewTypeID
64621
+ * * Display Name: View Type ID
64622
+ * * SQL Data Type: uniqueidentifier
64623
+ * * Related Entity/Foreign Key: MJ: View Types (vwViewTypes.ID)
64624
+ * * Description: Foreign key to the view's default / active ViewType (Grid, Cards, Timeline, Map, Cluster, Tag Cloud, ...). Supersedes DisplayState.defaultMode as the source of truth for which view type the view opens in. NULL means the system default (Grid). The set of enabled view types and each type's configuration remain in the DisplayState JSON column.
64625
+ */
64626
+ get ViewTypeID(): string | null;
64627
+ set ViewTypeID(value: string | null);
64628
+ /**
62296
64629
  * * Field Name: UserName
62297
64630
  * * Display Name: User Name
62298
64631
  * * SQL Data Type: nvarchar(100)
@@ -63303,6 +65636,128 @@ export declare class MJVersionLabelEntity extends BaseEntity<MJVersionLabelEntit
63303
65636
  */
63304
65637
  get RootParentID(): string | null;
63305
65638
  }
65639
+ /**
65640
+ * MJ: View Types - strongly typed entity sub-class
65641
+ * * Schema: __mj
65642
+ * * Base Table: ViewType
65643
+ * * Base View: vwViewTypes
65644
+ * * @description Registry of available view types (Grid, Cards, Timeline, Map, Cluster, Tag Cloud, ...) for the entity-viewer plugin system. Each row binds a logical view to its renderer and (optionally) its configuration prop-sheet, so adding a new way to visualize records is a metadata row plus a registered driver class — no change to the host viewer. Whether a given view type is offered for a given entity is decided at runtime by the driver's availability predicate (e.g. Timeline needs a date field, Map needs geocoding, Cluster needs an Entity Document with vectors).
65645
+ * * Primary Key: ID
65646
+ * @extends {BaseEntity}
65647
+ * @class
65648
+ * @public
65649
+ */
65650
+ export declare class MJViewTypeEntity extends BaseEntity<MJViewTypeEntityType> {
65651
+ /**
65652
+ * Loads the MJ: View Types record from the database
65653
+ * @param ID: string - primary key value to load the MJ: View Types record.
65654
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
65655
+ * @returns {Promise<boolean>} - true if successful, false otherwise
65656
+ * @public
65657
+ * @async
65658
+ * @memberof MJViewTypeEntity
65659
+ * @method
65660
+ * @override
65661
+ */
65662
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
65663
+ /**
65664
+ * * Field Name: ID
65665
+ * * Display Name: ID
65666
+ * * SQL Data Type: uniqueidentifier
65667
+ * * Default Value: newsequentialid()
65668
+ */
65669
+ get ID(): string;
65670
+ set ID(value: string);
65671
+ /**
65672
+ * * Field Name: Name
65673
+ * * Display Name: Name
65674
+ * * SQL Data Type: nvarchar(100)
65675
+ * * Description: Stable internal key for the view type (e.g. "Grid", "Cluster", "TagCloud"). Referenced by UserView.DisplayState (enabledModes / defaultMode). Unique.
65676
+ */
65677
+ get Name(): string;
65678
+ set Name(value: string);
65679
+ /**
65680
+ * * Field Name: DisplayName
65681
+ * * Display Name: Display Name
65682
+ * * SQL Data Type: nvarchar(255)
65683
+ * * Description: User-facing label shown in the view-mode switcher (e.g. "Tag Cloud").
65684
+ */
65685
+ get DisplayName(): string;
65686
+ set DisplayName(value: string);
65687
+ /**
65688
+ * * Field Name: Description
65689
+ * * Display Name: Description
65690
+ * * SQL Data Type: nvarchar(MAX)
65691
+ * * Description: Optional description of what the view type does and when it is useful.
65692
+ */
65693
+ get Description(): string | null;
65694
+ set Description(value: string | null);
65695
+ /**
65696
+ * * Field Name: DriverClass
65697
+ * * Display Name: Driver Class
65698
+ * * SQL Data Type: nvarchar(255)
65699
+ * * Description: Name of the registered driver class (via @RegisterClass) that supplies this view type's runtime renderer component and its availability predicate (IsAvailableFor). This is the main view plugin — the component that renders the grid / cards / timeline / scatter, etc.
65700
+ */
65701
+ get DriverClass(): string;
65702
+ set DriverClass(value: string);
65703
+ /**
65704
+ * * Field Name: PropertySheetDriverClass
65705
+ * * Display Name: Property Sheet Driver Class
65706
+ * * SQL Data Type: nvarchar(255)
65707
+ * * Description: Optional name of the registered driver class that supplies this view type's configuration prop-sheet — the panel that snaps into the view's settings area to edit this view type's options (e.g. clustering parameters). NULL when the view type has no configurable options.
65708
+ */
65709
+ get PropertySheetDriverClass(): string | null;
65710
+ set PropertySheetDriverClass(value: string | null);
65711
+ /**
65712
+ * * Field Name: Icon
65713
+ * * Display Name: Icon
65714
+ * * SQL Data Type: nvarchar(100)
65715
+ * * Description: Font Awesome icon class shown next to the view type in the mode switcher (e.g. "fa-solid fa-diagram-project").
65716
+ */
65717
+ get Icon(): string | null;
65718
+ set Icon(value: string | null);
65719
+ /**
65720
+ * * Field Name: Sequence
65721
+ * * Display Name: Sequence
65722
+ * * SQL Data Type: int
65723
+ * * Default Value: 0
65724
+ * * Description: Display order of the view type in the mode switcher (ascending).
65725
+ */
65726
+ get Sequence(): number;
65727
+ set Sequence(value: number);
65728
+ /**
65729
+ * * Field Name: IsActive
65730
+ * * Display Name: Is Active
65731
+ * * SQL Data Type: bit
65732
+ * * Default Value: 1
65733
+ * * Description: When 0, the view type is registered but hidden from users (e.g. disabled or under development).
65734
+ */
65735
+ get IsActive(): boolean;
65736
+ set IsActive(value: boolean);
65737
+ /**
65738
+ * * Field Name: SupportsConfiguration
65739
+ * * Display Name: Supports Configuration
65740
+ * * SQL Data Type: bit
65741
+ * * Default Value: 1
65742
+ * * Description: When 1, the view type exposes a configuration prop-sheet (see PropertySheetDriverClass) and the host shows a settings affordance for it; when 0, the view type renders with no user-editable options.
65743
+ */
65744
+ get SupportsConfiguration(): boolean;
65745
+ set SupportsConfiguration(value: boolean);
65746
+ /**
65747
+ * * Field Name: __mj_CreatedAt
65748
+ * * Display Name: Created At
65749
+ * * SQL Data Type: datetimeoffset
65750
+ * * Default Value: getutcdate()
65751
+ */
65752
+ get __mj_CreatedAt(): Date;
65753
+ /**
65754
+ * * Field Name: __mj_UpdatedAt
65755
+ * * Display Name: Updated At
65756
+ * * SQL Data Type: datetimeoffset
65757
+ * * Default Value: getutcdate()
65758
+ */
65759
+ get __mj_UpdatedAt(): Date;
65760
+ }
63306
65761
  /**
63307
65762
  * MJ: Workflow Engines - strongly typed entity sub-class
63308
65763
  * * Schema: __mj