@memberjunction/core-entities 5.29.0 → 5.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/custom/MJConversationDetailEntityExtended.d.ts +31 -0
  2. package/dist/custom/MJConversationDetailEntityExtended.d.ts.map +1 -0
  3. package/dist/custom/MJConversationDetailEntityExtended.js +106 -0
  4. package/dist/custom/MJConversationDetailEntityExtended.js.map +1 -0
  5. package/dist/custom/PermissionProviders/AIAgentPermissionProvider.d.ts +31 -0
  6. package/dist/custom/PermissionProviders/AIAgentPermissionProvider.d.ts.map +1 -0
  7. package/dist/custom/PermissionProviders/AIAgentPermissionProvider.js +151 -0
  8. package/dist/custom/PermissionProviders/AIAgentPermissionProvider.js.map +1 -0
  9. package/dist/custom/PermissionProviders/AccessControlRuleProvider.d.ts +45 -0
  10. package/dist/custom/PermissionProviders/AccessControlRuleProvider.d.ts.map +1 -0
  11. package/dist/custom/PermissionProviders/AccessControlRuleProvider.js +253 -0
  12. package/dist/custom/PermissionProviders/AccessControlRuleProvider.js.map +1 -0
  13. package/dist/custom/PermissionProviders/ApplicationRolePermissionProvider.d.ts +28 -0
  14. package/dist/custom/PermissionProviders/ApplicationRolePermissionProvider.d.ts.map +1 -0
  15. package/dist/custom/PermissionProviders/ApplicationRolePermissionProvider.js +144 -0
  16. package/dist/custom/PermissionProviders/ApplicationRolePermissionProvider.js.map +1 -0
  17. package/dist/custom/PermissionProviders/ArtifactPermissionProvider.d.ts +45 -0
  18. package/dist/custom/PermissionProviders/ArtifactPermissionProvider.d.ts.map +1 -0
  19. package/dist/custom/PermissionProviders/ArtifactPermissionProvider.js +169 -0
  20. package/dist/custom/PermissionProviders/ArtifactPermissionProvider.js.map +1 -0
  21. package/dist/custom/PermissionProviders/CollectionPermissionProvider.d.ts +40 -0
  22. package/dist/custom/PermissionProviders/CollectionPermissionProvider.d.ts.map +1 -0
  23. package/dist/custom/PermissionProviders/CollectionPermissionProvider.js +220 -0
  24. package/dist/custom/PermissionProviders/CollectionPermissionProvider.js.map +1 -0
  25. package/dist/custom/PermissionProviders/DashboardPermissionProvider.d.ts +47 -0
  26. package/dist/custom/PermissionProviders/DashboardPermissionProvider.d.ts.map +1 -0
  27. package/dist/custom/PermissionProviders/DashboardPermissionProvider.js +218 -0
  28. package/dist/custom/PermissionProviders/DashboardPermissionProvider.js.map +1 -0
  29. package/dist/custom/PermissionProviders/EntityPermissionProvider.d.ts +25 -0
  30. package/dist/custom/PermissionProviders/EntityPermissionProvider.d.ts.map +1 -0
  31. package/dist/custom/PermissionProviders/EntityPermissionProvider.js +129 -0
  32. package/dist/custom/PermissionProviders/EntityPermissionProvider.js.map +1 -0
  33. package/dist/custom/PermissionProviders/QueryPermissionProvider.d.ts +24 -0
  34. package/dist/custom/PermissionProviders/QueryPermissionProvider.d.ts.map +1 -0
  35. package/dist/custom/PermissionProviders/QueryPermissionProvider.js +123 -0
  36. package/dist/custom/PermissionProviders/QueryPermissionProvider.js.map +1 -0
  37. package/dist/custom/PermissionProviders/ResourcePermissionProvider.d.ts +39 -0
  38. package/dist/custom/PermissionProviders/ResourcePermissionProvider.d.ts.map +1 -0
  39. package/dist/custom/PermissionProviders/ResourcePermissionProvider.js +193 -0
  40. package/dist/custom/PermissionProviders/ResourcePermissionProvider.js.map +1 -0
  41. package/dist/custom/PermissionProviders/index.d.ts +16 -0
  42. package/dist/custom/PermissionProviders/index.d.ts.map +1 -0
  43. package/dist/custom/PermissionProviders/index.js +41 -0
  44. package/dist/custom/PermissionProviders/index.js.map +1 -0
  45. package/dist/custom/Permissions/BaseShareEntityExtended.d.ts +105 -0
  46. package/dist/custom/Permissions/BaseShareEntityExtended.d.ts.map +1 -0
  47. package/dist/custom/Permissions/BaseShareEntityExtended.js +162 -0
  48. package/dist/custom/Permissions/BaseShareEntityExtended.js.map +1 -0
  49. package/dist/custom/Permissions/MJAccessControlRuleEntityExtended.d.ts +22 -0
  50. package/dist/custom/Permissions/MJAccessControlRuleEntityExtended.d.ts.map +1 -0
  51. package/dist/custom/Permissions/MJAccessControlRuleEntityExtended.js +75 -0
  52. package/dist/custom/Permissions/MJAccessControlRuleEntityExtended.js.map +1 -0
  53. package/dist/custom/Permissions/MJArtifactPermissionEntityExtended.d.ts +22 -0
  54. package/dist/custom/Permissions/MJArtifactPermissionEntityExtended.d.ts.map +1 -0
  55. package/dist/custom/Permissions/MJArtifactPermissionEntityExtended.js +114 -0
  56. package/dist/custom/Permissions/MJArtifactPermissionEntityExtended.js.map +1 -0
  57. package/dist/custom/Permissions/MJCollectionPermissionEntityExtended.d.ts +25 -0
  58. package/dist/custom/Permissions/MJCollectionPermissionEntityExtended.d.ts.map +1 -0
  59. package/dist/custom/Permissions/MJCollectionPermissionEntityExtended.js +101 -0
  60. package/dist/custom/Permissions/MJCollectionPermissionEntityExtended.js.map +1 -0
  61. package/dist/custom/Permissions/MJDashboardPermissionEntityExtended.d.ts +32 -0
  62. package/dist/custom/Permissions/MJDashboardPermissionEntityExtended.d.ts.map +1 -0
  63. package/dist/custom/Permissions/MJDashboardPermissionEntityExtended.js +95 -0
  64. package/dist/custom/Permissions/MJDashboardPermissionEntityExtended.js.map +1 -0
  65. package/dist/custom/Permissions/index.d.ts +13 -0
  66. package/dist/custom/Permissions/index.d.ts.map +1 -0
  67. package/dist/custom/Permissions/index.js +22 -0
  68. package/dist/custom/Permissions/index.js.map +1 -0
  69. package/dist/custom/Permissions/shareNotification.d.ts +72 -0
  70. package/dist/custom/Permissions/shareNotification.d.ts.map +1 -0
  71. package/dist/custom/Permissions/shareNotification.js +98 -0
  72. package/dist/custom/Permissions/shareNotification.js.map +1 -0
  73. package/dist/custom/ResourcePermissions/MJResourcePermissionEntityExtended.d.ts +63 -1
  74. package/dist/custom/ResourcePermissions/MJResourcePermissionEntityExtended.d.ts.map +1 -1
  75. package/dist/custom/ResourcePermissions/MJResourcePermissionEntityExtended.js +244 -27
  76. package/dist/custom/ResourcePermissions/MJResourcePermissionEntityExtended.js.map +1 -1
  77. package/dist/custom/ResourcePermissions/ResourcePermissionEngine.d.ts +7 -0
  78. package/dist/custom/ResourcePermissions/ResourcePermissionEngine.d.ts.map +1 -1
  79. package/dist/custom/ResourcePermissions/ResourcePermissionEngine.js +13 -0
  80. package/dist/custom/ResourcePermissions/ResourcePermissionEngine.js.map +1 -1
  81. package/dist/engines/GeoDataEngine.d.ts +42 -8
  82. package/dist/engines/GeoDataEngine.d.ts.map +1 -1
  83. package/dist/engines/GeoDataEngine.js +191 -36
  84. package/dist/engines/GeoDataEngine.js.map +1 -1
  85. package/dist/engines/PermissionEngine.d.ts +142 -0
  86. package/dist/engines/PermissionEngine.d.ts.map +1 -0
  87. package/dist/engines/PermissionEngine.js +343 -0
  88. package/dist/engines/PermissionEngine.js.map +1 -0
  89. package/dist/engines/UserInfoEngine.d.ts +6 -1
  90. package/dist/engines/UserInfoEngine.d.ts.map +1 -1
  91. package/dist/engines/UserInfoEngine.js +21 -5
  92. package/dist/engines/UserInfoEngine.js.map +1 -1
  93. package/dist/engines/conversations.d.ts +35 -0
  94. package/dist/engines/conversations.d.ts.map +1 -1
  95. package/dist/engines/conversations.js +103 -16
  96. package/dist/engines/conversations.js.map +1 -1
  97. package/dist/generated/entity_subclasses.d.ts +579 -52
  98. package/dist/generated/entity_subclasses.d.ts.map +1 -1
  99. package/dist/generated/entity_subclasses.js +697 -66
  100. package/dist/generated/entity_subclasses.js.map +1 -1
  101. package/dist/index.d.ts +4 -0
  102. package/dist/index.d.ts.map +1 -1
  103. package/dist/index.js +8 -0
  104. package/dist/index.js.map +1 -1
  105. package/package.json +5 -5
@@ -374,7 +374,7 @@ export declare const MJActionSchema: z.ZodObject<{
374
374
  CategoryID: z.ZodNullable<z.ZodString>;
375
375
  Name: z.ZodString;
376
376
  Description: z.ZodNullable<z.ZodString>;
377
- Type: z.ZodUnion<[z.ZodLiteral<"Custom">, z.ZodLiteral<"Generated">]>;
377
+ Type: z.ZodUnion<[z.ZodLiteral<"Custom">, z.ZodLiteral<"Generated">, z.ZodLiteral<"Runtime">]>;
378
378
  UserPrompt: z.ZodNullable<z.ZodString>;
379
379
  UserComments: z.ZodNullable<z.ZodString>;
380
380
  Code: z.ZodNullable<z.ZodString>;
@@ -394,10 +394,14 @@ export declare const MJActionSchema: z.ZodObject<{
394
394
  IconClass: z.ZodNullable<z.ZodString>;
395
395
  DefaultCompactPromptID: z.ZodNullable<z.ZodString>;
396
396
  Config_: z.ZodNullable<z.ZodString>;
397
+ RuntimeActionConfiguration: z.ZodNullable<z.ZodAny>;
398
+ MaxExecutionTimeMS: z.ZodNullable<z.ZodNumber>;
399
+ CreatedByAgentID: z.ZodNullable<z.ZodString>;
397
400
  Category: z.ZodNullable<z.ZodString>;
398
401
  CodeApprovedByUser: z.ZodNullable<z.ZodString>;
399
402
  Parent: z.ZodNullable<z.ZodString>;
400
403
  DefaultCompactPrompt: z.ZodNullable<z.ZodString>;
404
+ CreatedByAgent: z.ZodNullable<z.ZodString>;
401
405
  RootParentID: z.ZodNullable<z.ZodString>;
402
406
  }, "strip", z.ZodTypeAny, {
403
407
  ID?: string;
@@ -412,7 +416,7 @@ export declare const MJActionSchema: z.ZodObject<{
412
416
  RetentionPeriod?: number;
413
417
  UserComments?: string;
414
418
  Code?: string;
415
- Type?: "Custom" | "Generated";
419
+ Type?: "Custom" | "Generated" | "Runtime";
416
420
  CategoryID?: string;
417
421
  UserPrompt?: string;
418
422
  CodeComments?: string;
@@ -426,9 +430,13 @@ export declare const MJActionSchema: z.ZodObject<{
426
430
  IconClass?: string;
427
431
  DefaultCompactPromptID?: string;
428
432
  Config_?: string;
433
+ RuntimeActionConfiguration?: any;
434
+ MaxExecutionTimeMS?: number;
435
+ CreatedByAgentID?: string;
429
436
  Category?: string;
430
437
  CodeApprovedByUser?: string;
431
438
  DefaultCompactPrompt?: string;
439
+ CreatedByAgent?: string;
432
440
  }, {
433
441
  ID?: string;
434
442
  __mj_CreatedAt?: Date;
@@ -442,7 +450,7 @@ export declare const MJActionSchema: z.ZodObject<{
442
450
  RetentionPeriod?: number;
443
451
  UserComments?: string;
444
452
  Code?: string;
445
- Type?: "Custom" | "Generated";
453
+ Type?: "Custom" | "Generated" | "Runtime";
446
454
  CategoryID?: string;
447
455
  UserPrompt?: string;
448
456
  CodeComments?: string;
@@ -456,9 +464,13 @@ export declare const MJActionSchema: z.ZodObject<{
456
464
  IconClass?: string;
457
465
  DefaultCompactPromptID?: string;
458
466
  Config_?: string;
467
+ RuntimeActionConfiguration?: any;
468
+ MaxExecutionTimeMS?: number;
469
+ CreatedByAgentID?: string;
459
470
  Category?: string;
460
471
  CodeApprovedByUser?: string;
461
472
  DefaultCompactPrompt?: string;
473
+ CreatedByAgent?: string;
462
474
  }>;
463
475
  export type MJActionEntityType = z.infer<typeof MJActionSchema>;
464
476
  /**
@@ -804,7 +816,7 @@ export declare const MJAIAgentExampleSchema: z.ZodObject<{
804
816
  SourceAIAgentRunID: z.ZodNullable<z.ZodString>;
805
817
  SuccessScore: z.ZodNullable<z.ZodNumber>;
806
818
  Comments: z.ZodNullable<z.ZodString>;
807
- Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Revoked">]>;
819
+ Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Archived">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Revoked">]>;
808
820
  __mj_CreatedAt: z.ZodDate;
809
821
  __mj_UpdatedAt: z.ZodDate;
810
822
  EmbeddingVector: z.ZodNullable<z.ZodString>;
@@ -830,7 +842,7 @@ export declare const MJAIAgentExampleSchema: z.ZodObject<{
830
842
  __mj_CreatedAt?: Date;
831
843
  __mj_UpdatedAt?: Date;
832
844
  Comments?: string;
833
- Status?: "Active" | "Pending" | "Revoked";
845
+ Status?: "Active" | "Pending" | "Revoked" | "Archived";
834
846
  UserID?: string;
835
847
  Type?: "Context" | "Constraint" | "Example" | "Issue" | "Preference";
836
848
  AgentID?: string;
@@ -863,7 +875,7 @@ export declare const MJAIAgentExampleSchema: z.ZodObject<{
863
875
  __mj_CreatedAt?: Date;
864
876
  __mj_UpdatedAt?: Date;
865
877
  Comments?: string;
866
- Status?: "Active" | "Pending" | "Revoked";
878
+ Status?: "Active" | "Pending" | "Revoked" | "Archived";
867
879
  UserID?: string;
868
880
  Type?: "Context" | "Constraint" | "Example" | "Issue" | "Preference";
869
881
  AgentID?: string;
@@ -1045,7 +1057,7 @@ export declare const MJAIAgentNoteSchema: z.ZodObject<{
1045
1057
  Type: z.ZodUnion<[z.ZodLiteral<"Constraint">, z.ZodLiteral<"Context">, z.ZodLiteral<"Example">, z.ZodLiteral<"Issue">, z.ZodLiteral<"Preference">]>;
1046
1058
  IsAutoGenerated: z.ZodBoolean;
1047
1059
  Comments: z.ZodNullable<z.ZodString>;
1048
- Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Revoked">]>;
1060
+ Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Archived">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Revoked">]>;
1049
1061
  SourceConversationID: z.ZodNullable<z.ZodString>;
1050
1062
  SourceConversationDetailID: z.ZodNullable<z.ZodString>;
1051
1063
  SourceAIAgentRunID: z.ZodNullable<z.ZodString>;
@@ -1058,6 +1070,11 @@ export declare const MJAIAgentNoteSchema: z.ZodObject<{
1058
1070
  LastAccessedAt: z.ZodNullable<z.ZodDate>;
1059
1071
  AccessCount: z.ZodNumber;
1060
1072
  ExpiresAt: z.ZodNullable<z.ZodDate>;
1073
+ ConsolidatedIntoNoteID: z.ZodNullable<z.ZodString>;
1074
+ ConsolidationCount: z.ZodNumber;
1075
+ DerivedFromNoteIDs: z.ZodNullable<z.ZodString>;
1076
+ ProtectionTier: z.ZodUnion<[z.ZodLiteral<"Ephemeral">, z.ZodLiteral<"Immutable">, z.ZodLiteral<"Protected">, z.ZodLiteral<"Standard">]>;
1077
+ ImportanceScore: z.ZodNullable<z.ZodNumber>;
1061
1078
  Agent: z.ZodNullable<z.ZodString>;
1062
1079
  AgentNoteType: z.ZodNullable<z.ZodString>;
1063
1080
  User: z.ZodNullable<z.ZodString>;
@@ -1067,6 +1084,8 @@ export declare const MJAIAgentNoteSchema: z.ZodObject<{
1067
1084
  Company: z.ZodNullable<z.ZodString>;
1068
1085
  EmbeddingModel: z.ZodNullable<z.ZodString>;
1069
1086
  PrimaryScopeEntity: z.ZodNullable<z.ZodString>;
1087
+ ConsolidatedIntoNote: z.ZodNullable<z.ZodString>;
1088
+ RootConsolidatedIntoNoteID: z.ZodNullable<z.ZodString>;
1070
1089
  }, "strip", z.ZodTypeAny, {
1071
1090
  ID?: string;
1072
1091
  User?: string;
@@ -1074,7 +1093,7 @@ export declare const MJAIAgentNoteSchema: z.ZodObject<{
1074
1093
  __mj_CreatedAt?: Date;
1075
1094
  __mj_UpdatedAt?: Date;
1076
1095
  Comments?: string;
1077
- Status?: "Active" | "Pending" | "Revoked";
1096
+ Status?: "Active" | "Pending" | "Revoked" | "Archived";
1078
1097
  UserID?: string;
1079
1098
  Type?: "Context" | "Constraint" | "Example" | "Issue" | "Preference";
1080
1099
  AgentID?: string;
@@ -1099,7 +1118,14 @@ export declare const MJAIAgentNoteSchema: z.ZodObject<{
1099
1118
  PrimaryScopeEntity?: string;
1100
1119
  AgentNoteTypeID?: string;
1101
1120
  Note?: string;
1121
+ ConsolidatedIntoNoteID?: string;
1122
+ ConsolidationCount?: number;
1123
+ DerivedFromNoteIDs?: string;
1124
+ ProtectionTier?: "Ephemeral" | "Immutable" | "Protected" | "Standard";
1125
+ ImportanceScore?: number;
1102
1126
  AgentNoteType?: string;
1127
+ ConsolidatedIntoNote?: string;
1128
+ RootConsolidatedIntoNoteID?: string;
1103
1129
  }, {
1104
1130
  ID?: string;
1105
1131
  User?: string;
@@ -1107,7 +1133,7 @@ export declare const MJAIAgentNoteSchema: z.ZodObject<{
1107
1133
  __mj_CreatedAt?: Date;
1108
1134
  __mj_UpdatedAt?: Date;
1109
1135
  Comments?: string;
1110
- Status?: "Active" | "Pending" | "Revoked";
1136
+ Status?: "Active" | "Pending" | "Revoked" | "Archived";
1111
1137
  UserID?: string;
1112
1138
  Type?: "Context" | "Constraint" | "Example" | "Issue" | "Preference";
1113
1139
  AgentID?: string;
@@ -1132,7 +1158,14 @@ export declare const MJAIAgentNoteSchema: z.ZodObject<{
1132
1158
  PrimaryScopeEntity?: string;
1133
1159
  AgentNoteTypeID?: string;
1134
1160
  Note?: string;
1161
+ ConsolidatedIntoNoteID?: string;
1162
+ ConsolidationCount?: number;
1163
+ DerivedFromNoteIDs?: string;
1164
+ ProtectionTier?: "Ephemeral" | "Immutable" | "Protected" | "Standard";
1165
+ ImportanceScore?: number;
1135
1166
  AgentNoteType?: string;
1167
+ ConsolidatedIntoNote?: string;
1168
+ RootConsolidatedIntoNoteID?: string;
1136
1169
  }>;
1137
1170
  export type MJAIAgentNoteEntityType = z.infer<typeof MJAIAgentNoteSchema>;
1138
1171
  /**
@@ -1621,6 +1654,7 @@ export declare const MJAIAgentRunSchema: z.ZodObject<{
1621
1654
  PrimaryScopeRecordID: z.ZodNullable<z.ZodString>;
1622
1655
  SecondaryScopes: z.ZodNullable<z.ZodString>;
1623
1656
  ExternalReferenceID: z.ZodNullable<z.ZodString>;
1657
+ CompanyID: z.ZodNullable<z.ZodString>;
1624
1658
  Agent: z.ZodNullable<z.ZodString>;
1625
1659
  ParentRun: z.ZodNullable<z.ZodString>;
1626
1660
  Conversation: z.ZodNullable<z.ZodString>;
@@ -1648,6 +1682,7 @@ export declare const MJAIAgentRunSchema: z.ZodObject<{
1648
1682
  AgentID?: string;
1649
1683
  Agent?: string;
1650
1684
  Data?: string;
1685
+ CompanyID?: string;
1651
1686
  PrimaryScopeEntityID?: string;
1652
1687
  PrimaryScopeRecordID?: string;
1653
1688
  SecondaryScopes?: string;
@@ -1708,6 +1743,7 @@ export declare const MJAIAgentRunSchema: z.ZodObject<{
1708
1743
  AgentID?: string;
1709
1744
  Agent?: string;
1710
1745
  Data?: string;
1746
+ CompanyID?: string;
1711
1747
  PrimaryScopeEntityID?: string;
1712
1748
  PrimaryScopeRecordID?: string;
1713
1749
  SecondaryScopes?: string;
@@ -4309,6 +4345,7 @@ export declare const MJArchiveRunDetailSchema: z.ZodObject<{
4309
4345
  IsRecordChangeArchive: z.ZodBoolean;
4310
4346
  __mj_CreatedAt: z.ZodDate;
4311
4347
  __mj_UpdatedAt: z.ZodDate;
4348
+ ArchiveRun: z.ZodDate;
4312
4349
  Entity: z.ZodString;
4313
4350
  }, "strip", z.ZodTypeAny, {
4314
4351
  ID?: string;
@@ -4325,6 +4362,7 @@ export declare const MJArchiveRunDetailSchema: z.ZodObject<{
4325
4362
  ArchivedAt?: Date;
4326
4363
  VersionStamp?: Date;
4327
4364
  IsRecordChangeArchive?: boolean;
4365
+ ArchiveRun?: Date;
4328
4366
  }, {
4329
4367
  ID?: string;
4330
4368
  EntityID?: string;
@@ -4340,6 +4378,7 @@ export declare const MJArchiveRunDetailSchema: z.ZodObject<{
4340
4378
  ArchivedAt?: Date;
4341
4379
  VersionStamp?: Date;
4342
4380
  IsRecordChangeArchive?: boolean;
4381
+ ArchiveRun?: Date;
4343
4382
  }>;
4344
4383
  export type MJArchiveRunDetailEntityType = z.infer<typeof MJArchiveRunDetailSchema>;
4345
4384
  /**
@@ -5713,7 +5752,7 @@ export declare const MJComponentLibrarySchema: z.ZodObject<{
5713
5752
  Name?: string;
5714
5753
  Description?: string;
5715
5754
  Status?: "Active" | "Disabled" | "Deprecated";
5716
- Category?: "Other" | "Core" | "Charting" | "Runtime" | "UI" | "Utility";
5755
+ Category?: "Other" | "Runtime" | "Core" | "Charting" | "UI" | "Utility";
5717
5756
  DisplayName?: string;
5718
5757
  UsageType?: "Both" | "Dependency" | "Direct";
5719
5758
  Version?: string;
@@ -5729,7 +5768,7 @@ export declare const MJComponentLibrarySchema: z.ZodObject<{
5729
5768
  Name?: string;
5730
5769
  Description?: string;
5731
5770
  Status?: "Active" | "Disabled" | "Deprecated";
5732
- Category?: "Other" | "Core" | "Charting" | "Runtime" | "UI" | "Utility";
5771
+ Category?: "Other" | "Runtime" | "Core" | "Charting" | "UI" | "Utility";
5733
5772
  DisplayName?: string;
5734
5773
  UsageType?: "Both" | "Dependency" | "Direct";
5735
5774
  Version?: string;
@@ -9160,6 +9199,7 @@ export declare const MJEntityPermissionSchema: z.ZodObject<{
9160
9199
  DeleteRLSFilterID: z.ZodNullable<z.ZodString>;
9161
9200
  __mj_CreatedAt: z.ZodDate;
9162
9201
  __mj_UpdatedAt: z.ZodDate;
9202
+ Type: z.ZodUnion<[z.ZodLiteral<"Allow">, z.ZodLiteral<"Deny">]>;
9163
9203
  Entity: z.ZodString;
9164
9204
  RoleName: z.ZodString;
9165
9205
  RoleSQLName: z.ZodNullable<z.ZodString>;
@@ -9177,6 +9217,7 @@ export declare const MJEntityPermissionSchema: z.ZodObject<{
9177
9217
  __mj_CreatedAt?: Date;
9178
9218
  __mj_UpdatedAt?: Date;
9179
9219
  Entity?: string;
9220
+ Type?: "Allow" | "Deny";
9180
9221
  RoleID?: string;
9181
9222
  ReadRLSFilterID?: string;
9182
9223
  CreateRLSFilterID?: string;
@@ -9198,6 +9239,7 @@ export declare const MJEntityPermissionSchema: z.ZodObject<{
9198
9239
  __mj_CreatedAt?: Date;
9199
9240
  __mj_UpdatedAt?: Date;
9200
9241
  Entity?: string;
9242
+ Type?: "Allow" | "Deny";
9201
9243
  RoleID?: string;
9202
9244
  ReadRLSFilterID?: string;
9203
9245
  CreateRLSFilterID?: string;
@@ -11385,6 +11427,56 @@ export declare const MJOutputTriggerTypeSchema: z.ZodObject<{
11385
11427
  Description?: string;
11386
11428
  }>;
11387
11429
  export type MJOutputTriggerTypeEntityType = z.infer<typeof MJOutputTriggerTypeSchema>;
11430
+ /**
11431
+ * zod schema definition for the entity MJ: Permission Domains
11432
+ */
11433
+ export declare const MJPermissionDomainSchema: z.ZodObject<{
11434
+ ID: z.ZodString;
11435
+ Name: z.ZodString;
11436
+ Description: z.ZodNullable<z.ZodString>;
11437
+ ProviderClassName: z.ZodString;
11438
+ SupportedGranteeTypes: z.ZodString;
11439
+ SupportedActions: z.ZodString;
11440
+ SupportsDeny: z.ZodBoolean;
11441
+ SupportsExpiration: z.ZodBoolean;
11442
+ SupportsHierarchyInheritance: z.ZodBoolean;
11443
+ IsActive: z.ZodBoolean;
11444
+ DisplayOrder: z.ZodNumber;
11445
+ Icon: z.ZodNullable<z.ZodString>;
11446
+ __mj_CreatedAt: z.ZodDate;
11447
+ __mj_UpdatedAt: z.ZodDate;
11448
+ }, "strip", z.ZodTypeAny, {
11449
+ ID?: string;
11450
+ __mj_CreatedAt?: Date;
11451
+ __mj_UpdatedAt?: Date;
11452
+ Name?: string;
11453
+ Description?: string;
11454
+ IsActive?: boolean;
11455
+ Icon?: string;
11456
+ DisplayOrder?: number;
11457
+ ProviderClassName?: string;
11458
+ SupportedGranteeTypes?: string;
11459
+ SupportedActions?: string;
11460
+ SupportsDeny?: boolean;
11461
+ SupportsExpiration?: boolean;
11462
+ SupportsHierarchyInheritance?: boolean;
11463
+ }, {
11464
+ ID?: string;
11465
+ __mj_CreatedAt?: Date;
11466
+ __mj_UpdatedAt?: Date;
11467
+ Name?: string;
11468
+ Description?: string;
11469
+ IsActive?: boolean;
11470
+ Icon?: string;
11471
+ DisplayOrder?: number;
11472
+ ProviderClassName?: string;
11473
+ SupportedGranteeTypes?: string;
11474
+ SupportedActions?: string;
11475
+ SupportsDeny?: boolean;
11476
+ SupportsExpiration?: boolean;
11477
+ SupportsHierarchyInheritance?: boolean;
11478
+ }>;
11479
+ export type MJPermissionDomainEntityType = z.infer<typeof MJPermissionDomainSchema>;
11388
11480
  /**
11389
11481
  * zod schema definition for the entity MJ: Projects
11390
11482
  */
@@ -12752,9 +12844,11 @@ export declare const MJResourcePermissionSchema: z.ZodObject<{
12752
12844
  __mj_CreatedAt: z.ZodDate;
12753
12845
  __mj_UpdatedAt: z.ZodDate;
12754
12846
  Status: z.ZodUnion<[z.ZodLiteral<"Approved">, z.ZodLiteral<"Rejected">, z.ZodLiteral<"Requested">, z.ZodLiteral<"Revoked">]>;
12847
+ SharedByUserID: z.ZodNullable<z.ZodString>;
12755
12848
  ResourceType: z.ZodString;
12756
12849
  Role: z.ZodNullable<z.ZodString>;
12757
12850
  User: z.ZodNullable<z.ZodString>;
12851
+ SharedByUser: z.ZodNullable<z.ZodString>;
12758
12852
  }, "strip", z.ZodTypeAny, {
12759
12853
  ID?: string;
12760
12854
  Role?: string;
@@ -12766,6 +12860,8 @@ export declare const MJResourcePermissionSchema: z.ZodObject<{
12766
12860
  Type?: "Role" | "User";
12767
12861
  RoleID?: string;
12768
12862
  ResourceType?: string;
12863
+ SharedByUserID?: string;
12864
+ SharedByUser?: string;
12769
12865
  ResourceTypeID?: string;
12770
12866
  ResourceRecordID?: string;
12771
12867
  StartSharingAt?: Date;
@@ -12782,6 +12878,8 @@ export declare const MJResourcePermissionSchema: z.ZodObject<{
12782
12878
  Type?: "Role" | "User";
12783
12879
  RoleID?: string;
12784
12880
  ResourceType?: string;
12881
+ SharedByUserID?: string;
12882
+ SharedByUser?: string;
12785
12883
  ResourceTypeID?: string;
12786
12884
  ResourceRecordID?: string;
12787
12885
  StartSharingAt?: Date;
@@ -14344,9 +14442,9 @@ export declare const MJTestSuiteSchema: z.ZodObject<{
14344
14442
  Status?: "Active" | "Disabled" | "Pending";
14345
14443
  Parent?: string;
14346
14444
  RootParentID?: string;
14445
+ MaxExecutionTimeMS?: number;
14347
14446
  Configuration?: string;
14348
14447
  Tags?: string;
14349
- MaxExecutionTimeMS?: number;
14350
14448
  Variables?: string;
14351
14449
  }, {
14352
14450
  ID?: string;
@@ -14358,9 +14456,9 @@ export declare const MJTestSuiteSchema: z.ZodObject<{
14358
14456
  Status?: "Active" | "Disabled" | "Pending";
14359
14457
  Parent?: string;
14360
14458
  RootParentID?: string;
14459
+ MaxExecutionTimeMS?: number;
14361
14460
  Configuration?: string;
14362
14461
  Tags?: string;
14363
- MaxExecutionTimeMS?: number;
14364
14462
  Variables?: string;
14365
14463
  }>;
14366
14464
  export type MJTestSuiteEntityType = z.infer<typeof MJTestSuiteSchema>;
@@ -14426,11 +14524,11 @@ export declare const MJTestSchema: z.ZodObject<{
14426
14524
  Description?: string;
14427
14525
  Status?: "Active" | "Disabled" | "Pending";
14428
14526
  Type?: string;
14527
+ MaxExecutionTimeMS?: number;
14429
14528
  Priority?: number;
14430
14529
  Configuration?: string;
14431
14530
  TypeID?: string;
14432
14531
  Tags?: string;
14433
- MaxExecutionTimeMS?: number;
14434
14532
  Variables?: string;
14435
14533
  InputDefinition?: string;
14436
14534
  ExpectedOutcomes?: string;
@@ -14445,11 +14543,11 @@ export declare const MJTestSchema: z.ZodObject<{
14445
14543
  Description?: string;
14446
14544
  Status?: "Active" | "Disabled" | "Pending";
14447
14545
  Type?: string;
14546
+ MaxExecutionTimeMS?: number;
14448
14547
  Priority?: number;
14449
14548
  Configuration?: string;
14450
14549
  TypeID?: string;
14451
14550
  Tags?: string;
14452
- MaxExecutionTimeMS?: number;
14453
14551
  Variables?: string;
14454
14552
  InputDefinition?: string;
14455
14553
  ExpectedOutcomes?: string;
@@ -16582,6 +16680,136 @@ export declare class MJActionResultCodeEntity extends BaseEntity<MJActionResultC
16582
16680
  */
16583
16681
  get Action(): string;
16584
16682
  }
16683
+ /**
16684
+ * Configuration stored on Action.RuntimeActionConfiguration when Action.Type='Runtime'.
16685
+ *
16686
+ * Runtime actions are JavaScript payloads executed inside MJ's isolated-vm
16687
+ * sandbox that call back to the host via a permissioned bridge (utilities
16688
+ * object) to access metadata, views, queries, entity CRUD, other actions,
16689
+ * agents, and AI capabilities.
16690
+ *
16691
+ * This configuration is the security and resource contract for a single
16692
+ * Runtime action:
16693
+ * - What it is permitted to touch (permissions)
16694
+ * - How much it is allowed to consume (limits)
16695
+ * - What sandbox affordances it needs (sandbox)
16696
+ * - How it relates to prior versions of itself (version / previousVersionId)
16697
+ *
16698
+ * The JSON blob is evolvable — new optional keys can be added without a
16699
+ * schema migration. Required keys MUST be marked required here and enforced
16700
+ * at Save time (see the zod validator in @memberjunction/actions-base).
16701
+ *
16702
+ * Only applicable when Action.Type='Runtime'. NULL for Custom / Generated actions.
16703
+ */
16704
+ export interface MJActionEntity_IRuntimeActionConfiguration {
16705
+ /** Declarative permission scopes. The bridge validates every call against these. */
16706
+ permissions: MJActionEntity_IRuntimeActionPermissions;
16707
+ /** Resource limits (memory, bridge-call count). Defaults applied when omitted. */
16708
+ limits?: MJActionEntity_IRuntimeActionLimits;
16709
+ /** Sandbox options — additional libraries, debug mode, etc. */
16710
+ sandbox?: MJActionEntity_IRuntimeActionSandboxOptions;
16711
+ /** Semantic version of this action (e.g. "1.0.3"). Tracked in version history. */
16712
+ version?: string;
16713
+ /** ID of the previous Action record this version was derived from, if any. */
16714
+ previousVersionId?: string;
16715
+ }
16716
+ /**
16717
+ * Declarative permission scopes for a Runtime action. The bridge enforces
16718
+ * each scope on every call — an attempt to touch an unlisted entity / action /
16719
+ * agent throws a PermissionDenied error before the downstream operation runs.
16720
+ *
16721
+ * IDs are the source of truth; names are kept alongside for display, logging,
16722
+ * and human review during the approval workflow.
16723
+ *
16724
+ * The `allowAnyEntity` / `allowAnyAction` / `allowAnyAgent` booleans are
16725
+ * escape hatches for framework-shipped utility actions that must accept the
16726
+ * target entity/action/agent as runtime input (e.g. a generic "data quality
16727
+ * report" that can analyze any entity). They bypass the allowlist entirely
16728
+ * for their namespace. The approval UI renders a prominent warning when any
16729
+ * of them is set so a human reviewer sees the blast radius at approval time;
16730
+ * agent-authored Runtime actions should enumerate specific references rather
16731
+ * than set these flags.
16732
+ */
16733
+ export interface MJActionEntity_IRuntimeActionPermissions {
16734
+ /** Other actions this Runtime action can invoke via utilities.actions.Invoke */
16735
+ allowedActions: MJActionEntity_IRuntimeActionReference[];
16736
+ /** Agents this Runtime action can run via utilities.agents.Run */
16737
+ allowedAgents: MJActionEntity_IRuntimeActionReference[];
16738
+ /** Entities this Runtime action can read or mutate via utilities.rv / utilities.entity */
16739
+ allowedEntities: MJActionEntity_IRuntimeActionReference[];
16740
+ /**
16741
+ * DANGEROUS ESCAPE HATCH. When true, allows access to ANY entity via
16742
+ * `utilities.md.*`, `utilities.rv.*`, and `utilities.entity.*`, ignoring
16743
+ * `allowedEntities`. Only set for framework-authored utility actions that
16744
+ * accept the target entity as runtime input. Approval UI flags this.
16745
+ */
16746
+ allowAnyEntity?: boolean;
16747
+ /**
16748
+ * DANGEROUS ESCAPE HATCH. When true, allows invocation of ANY action via
16749
+ * `utilities.actions.Invoke`, ignoring `allowedActions`. Only set for
16750
+ * framework-authored orchestrators. Approval UI flags this.
16751
+ */
16752
+ allowAnyAction?: boolean;
16753
+ /**
16754
+ * DANGEROUS ESCAPE HATCH. When true, allows invocation of ANY agent via
16755
+ * `utilities.agents.Run`, ignoring `allowedAgents`. Only set for
16756
+ * framework-authored orchestrators. Approval UI flags this.
16757
+ */
16758
+ allowAnyAgent?: boolean;
16759
+ }
16760
+ /**
16761
+ * Resource limits enforced per invocation. Host enforces memory via isolated-vm;
16762
+ * bridge-call count is tracked on the host side and blocks once exceeded.
16763
+ */
16764
+ export interface MJActionEntity_IRuntimeActionLimits {
16765
+ /** Memory limit in MB. Default: 128. */
16766
+ maxMemoryMB?: number;
16767
+ /** Max bridge calls per single execution. Default: 100. Prevents runaway loops. */
16768
+ maxBridgeCalls?: number;
16769
+ }
16770
+ /**
16771
+ * Sandbox affordances the action needs beyond the default library set
16772
+ * (lodash, date-fns, uuid, validator).
16773
+ */
16774
+ export interface MJActionEntity_IRuntimeActionSandboxOptions {
16775
+ /**
16776
+ * Additional libraries beyond the default set. Must be in the approved
16777
+ * registry in @memberjunction/action-runtime — arbitrary npm packages
16778
+ * are not allowed. Currently approved opt-in libraries:
16779
+ * - mathjs (heavy math)
16780
+ * - papaparse (CSV parsing)
16781
+ * - cheerio (HTML parsing)
16782
+ * - marked (markdown parsing)
16783
+ */
16784
+ additionalLibraries?: MJActionEntity_IRuntimeLibraryReference[];
16785
+ /** Enable verbose console output in the sandbox. Default false. */
16786
+ debugMode?: boolean;
16787
+ }
16788
+ /**
16789
+ * Stable reference to an entity / action / agent.
16790
+ *
16791
+ * `id` is authoritative (used for lookups and permission checks).
16792
+ * `name` is kept so that the approval UI, logs, and diffs stay readable
16793
+ * even when items are renamed — the UI should show the current name from
16794
+ * the lookup and fall back to the stored one if the target is deleted.
16795
+ */
16796
+ export interface MJActionEntity_IRuntimeActionReference {
16797
+ /** UUID of the referenced item */
16798
+ id: string;
16799
+ /** Human-readable name at the time this configuration was authored */
16800
+ name: string;
16801
+ }
16802
+ /**
16803
+ * Reference to a sandbox library. Names must match the approved library
16804
+ * registry in @memberjunction/action-runtime. Version is optional and only
16805
+ * honored if multiple versions of the same library are registered.
16806
+ */
16807
+ export interface MJActionEntity_IRuntimeLibraryReference {
16808
+ /** Library name as used in require() / import (e.g. "papaparse") */
16809
+ name: string;
16810
+ /** Optional semver constraint. If omitted, uses the registry's default. */
16811
+ version?: string;
16812
+ }
16585
16813
  /**
16586
16814
  * MJ: Actions - strongly typed entity sub-class
16587
16815
  * * Schema: __mj
@@ -16656,10 +16884,11 @@ export declare class MJActionEntity extends BaseEntity<MJActionEntityType> {
16656
16884
  * * Possible Values
16657
16885
  * * Custom
16658
16886
  * * Generated
16887
+ * * Runtime
16659
16888
  * * Description: Generated or Custom. Generated means the UserPrompt is used to prompt an AI model to automatically create the code for the Action. Custom means that a custom class has been implemented that subclasses the BaseAction class. The custom class needs to use the @RegisterClass decorator and be included in the MJAPI (or other runtime environment) to be available for execution.
16660
16889
  */
16661
- get Type(): 'Custom' | 'Generated';
16662
- set Type(value: 'Custom' | 'Generated');
16890
+ get Type(): 'Custom' | 'Generated' | 'Runtime';
16891
+ set Type(value: 'Custom' | 'Generated' | 'Runtime');
16663
16892
  /**
16664
16893
  * * Field Name: UserPrompt
16665
16894
  * * Display Name: User Prompt
@@ -16694,7 +16923,7 @@ export declare class MJActionEntity extends BaseEntity<MJActionEntityType> {
16694
16923
  set CodeComments(value: string | null);
16695
16924
  /**
16696
16925
  * * Field Name: CodeApprovalStatus
16697
- * * Display Name: Code Approval Status
16926
+ * * Display Name: Approval Status
16698
16927
  * * SQL Data Type: nvarchar(20)
16699
16928
  * * Default Value: Pending
16700
16929
  * * Value List Type: List
@@ -16708,7 +16937,7 @@ export declare class MJActionEntity extends BaseEntity<MJActionEntityType> {
16708
16937
  set CodeApprovalStatus(value: 'Approved' | 'Pending' | 'Rejected');
16709
16938
  /**
16710
16939
  * * Field Name: CodeApprovalComments
16711
- * * Display Name: Code Approval Comments
16940
+ * * Display Name: Approval Comments
16712
16941
  * * SQL Data Type: nvarchar(MAX)
16713
16942
  * * Description: Optional comments when an individual (or an AI) reviews and approves the code.
16714
16943
  */
@@ -16716,7 +16945,7 @@ export declare class MJActionEntity extends BaseEntity<MJActionEntityType> {
16716
16945
  set CodeApprovalComments(value: string | null);
16717
16946
  /**
16718
16947
  * * Field Name: CodeApprovedByUserID
16719
- * * Display Name: Code Approved By
16948
+ * * Display Name: Approved By User
16720
16949
  * * SQL Data Type: uniqueidentifier
16721
16950
  * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
16722
16951
  */
@@ -16724,7 +16953,7 @@ export declare class MJActionEntity extends BaseEntity<MJActionEntityType> {
16724
16953
  set CodeApprovedByUserID(value: string | null);
16725
16954
  /**
16726
16955
  * * Field Name: CodeApprovedAt
16727
- * * Display Name: Code Approved At
16956
+ * * Display Name: Approved At
16728
16957
  * * SQL Data Type: datetimeoffset
16729
16958
  * * Description: When the code was approved.
16730
16959
  */
@@ -16794,7 +17023,7 @@ export declare class MJActionEntity extends BaseEntity<MJActionEntityType> {
16794
17023
  set DriverClass(value: string | null);
16795
17024
  /**
16796
17025
  * * Field Name: ParentID
16797
- * * Display Name: Parent
17026
+ * * Display Name: Parent Action
16798
17027
  * * SQL Data Type: uniqueidentifier
16799
17028
  * * Related Entity/Foreign Key: MJ: Actions (vwActions.ID)
16800
17029
  * * Description: Optional ID of the parent action this action inherits from. Used for hierarchical action composition where child actions can specialize parent actions.
@@ -16828,6 +17057,40 @@ export declare class MJActionEntity extends BaseEntity<MJActionEntityType> {
16828
17057
  get Config_(): string | null;
16829
17058
  set Config_(value: string | null);
16830
17059
  /**
17060
+ * * Field Name: RuntimeActionConfiguration
17061
+ * * Display Name: Runtime Configuration
17062
+ * * SQL Data Type: nvarchar(MAX)
17063
+ * * JSON Type: MJActionEntity_IRuntimeActionConfiguration
17064
+ * * Description: JSON blob holding configuration specific to Type='Runtime' actions: declarative permission scopes (allowedEntities, allowedActions, allowedAgents with id+name pairs), resource limits (maxMemoryMB, maxBridgeCalls), and sandbox options (additionalLibraries, debugMode). Evolvable — new keys can be introduced without schema changes. NULL for non-Runtime actions.
17065
+ */
17066
+ get RuntimeActionConfiguration(): string | null;
17067
+ set RuntimeActionConfiguration(value: string | null);
17068
+ private _RuntimeActionConfigurationObject_cached;
17069
+ private _RuntimeActionConfigurationObject_lastRaw;
17070
+ /**
17071
+ * Typed accessor for RuntimeActionConfiguration — returns parsed JSON as MJActionEntity_IRuntimeActionConfiguration.
17072
+ * Uses lazy parsing with cache invalidation when the underlying raw value changes.
17073
+ */
17074
+ get RuntimeActionConfigurationObject(): MJActionEntity_IRuntimeActionConfiguration | null;
17075
+ set RuntimeActionConfigurationObject(value: MJActionEntity_IRuntimeActionConfiguration | null);
17076
+ /**
17077
+ * * Field Name: MaxExecutionTimeMS
17078
+ * * Display Name: Max Execution Time (ms)
17079
+ * * SQL Data Type: int
17080
+ * * Description: Universal maximum execution time in milliseconds for a single action invocation. Enforced by ActionEngine across ALL action types (Custom, Generated, Runtime) via AbortSignal passed through RunActionParams. NULL means use the engine default.
17081
+ */
17082
+ get MaxExecutionTimeMS(): number | null;
17083
+ set MaxExecutionTimeMS(value: number | null);
17084
+ /**
17085
+ * * Field Name: CreatedByAgentID
17086
+ * * Display Name: Created By Agent
17087
+ * * SQL Data Type: uniqueidentifier
17088
+ * * Related Entity/Foreign Key: MJ: AI Agents (vwAIAgents.ID)
17089
+ * * Description: Optional reference to the AI Agent that authored this action — populated when an agent (e.g. ActionSmith) dynamically generates a Runtime action. NULL for human-authored Custom/Generated actions. Provides an audit trail linking agent-generated capabilities back to their creator.
17090
+ */
17091
+ get CreatedByAgentID(): string | null;
17092
+ set CreatedByAgentID(value: string | null);
17093
+ /**
16831
17094
  * * Field Name: Category
16832
17095
  * * Display Name: Category Name
16833
17096
  * * SQL Data Type: nvarchar(255)
@@ -16835,23 +17098,29 @@ export declare class MJActionEntity extends BaseEntity<MJActionEntityType> {
16835
17098
  get Category(): string | null;
16836
17099
  /**
16837
17100
  * * Field Name: CodeApprovedByUser
16838
- * * Display Name: Code Approved By (User)
17101
+ * * Display Name: Approved By User Name
16839
17102
  * * SQL Data Type: nvarchar(100)
16840
17103
  */
16841
17104
  get CodeApprovedByUser(): string | null;
16842
17105
  /**
16843
17106
  * * Field Name: Parent
16844
- * * Display Name: Parent Name
17107
+ * * Display Name: Parent Action Name
16845
17108
  * * SQL Data Type: nvarchar(425)
16846
17109
  */
16847
17110
  get Parent(): string | null;
16848
17111
  /**
16849
17112
  * * Field Name: DefaultCompactPrompt
16850
- * * Display Name: Default Compact Prompt Text
17113
+ * * Display Name: Default Compact Prompt Name
16851
17114
  * * SQL Data Type: nvarchar(255)
16852
17115
  */
16853
17116
  get DefaultCompactPrompt(): string | null;
16854
17117
  /**
17118
+ * * Field Name: CreatedByAgent
17119
+ * * Display Name: Created By Agent Name
17120
+ * * SQL Data Type: nvarchar(255)
17121
+ */
17122
+ get CreatedByAgent(): string | null;
17123
+ /**
16855
17124
  * * Field Name: RootParentID
16856
17125
  * * Display Name: Root Parent
16857
17126
  * * SQL Data Type: uniqueidentifier
@@ -18050,12 +18319,13 @@ export declare class MJAIAgentExampleEntity extends BaseEntity<MJAIAgentExampleE
18050
18319
  * * Value List Type: List
18051
18320
  * * Possible Values
18052
18321
  * * Active
18322
+ * * Archived
18053
18323
  * * Pending
18054
18324
  * * Revoked
18055
18325
  * * Description: Status of the example: Pending (awaiting review), Active (in use), or Revoked (disabled).
18056
18326
  */
18057
- get Status(): 'Active' | 'Pending' | 'Revoked';
18058
- set Status(value: 'Active' | 'Pending' | 'Revoked');
18327
+ get Status(): 'Active' | 'Archived' | 'Pending' | 'Revoked';
18328
+ set Status(value: 'Active' | 'Archived' | 'Pending' | 'Revoked');
18059
18329
  /**
18060
18330
  * * Field Name: __mj_CreatedAt
18061
18331
  * * Display Name: Created At
@@ -18698,12 +18968,13 @@ export declare class MJAIAgentNoteEntity extends BaseEntity<MJAIAgentNoteEntityT
18698
18968
  * * Value List Type: List
18699
18969
  * * Possible Values
18700
18970
  * * Active
18971
+ * * Archived
18701
18972
  * * Pending
18702
18973
  * * Revoked
18703
18974
  * * Description: Status of the note: Pending (awaiting review), Active (in use), or Revoked (disabled).
18704
18975
  */
18705
- get Status(): 'Active' | 'Pending' | 'Revoked';
18706
- set Status(value: 'Active' | 'Pending' | 'Revoked');
18976
+ get Status(): 'Active' | 'Archived' | 'Pending' | 'Revoked';
18977
+ set Status(value: 'Active' | 'Archived' | 'Pending' | 'Revoked');
18707
18978
  /**
18708
18979
  * * Field Name: SourceConversationID
18709
18980
  * * Display Name: Source Conversation
@@ -18808,6 +19079,55 @@ export declare class MJAIAgentNoteEntity extends BaseEntity<MJAIAgentNoteEntityT
18808
19079
  get ExpiresAt(): Date | null;
18809
19080
  set ExpiresAt(value: Date | null);
18810
19081
  /**
19082
+ * * Field Name: ConsolidatedIntoNoteID
19083
+ * * Display Name: Consolidated Into Note ID
19084
+ * * SQL Data Type: uniqueidentifier
19085
+ * * Related Entity/Foreign Key: MJ: AI Agent Notes (vwAIAgentNotes.ID)
19086
+ * * Description: Self-referential FK. Points to the consolidated note that replaced this one when revoked during consolidation or contradiction resolution.
19087
+ */
19088
+ get ConsolidatedIntoNoteID(): string | null;
19089
+ set ConsolidatedIntoNoteID(value: string | null);
19090
+ /**
19091
+ * * Field Name: ConsolidationCount
19092
+ * * Display Name: Consolidation Count
19093
+ * * SQL Data Type: int
19094
+ * * Default Value: 0
19095
+ * * Description: Tracks re-summarization depth. 0=raw extraction, 1=first consolidation, etc. Capped at 3 to prevent semantic drift.
19096
+ */
19097
+ get ConsolidationCount(): number;
19098
+ set ConsolidationCount(value: number);
19099
+ /**
19100
+ * * Field Name: DerivedFromNoteIDs
19101
+ * * Display Name: Derived From Note I Ds
19102
+ * * SQL Data Type: nvarchar(MAX)
19103
+ * * Description: JSON array of source note IDs that were consolidated into this note. Enables provenance chain resolution and rollback.
19104
+ */
19105
+ get DerivedFromNoteIDs(): string | null;
19106
+ set DerivedFromNoteIDs(value: string | null);
19107
+ /**
19108
+ * * Field Name: ProtectionTier
19109
+ * * Display Name: Protection Tier
19110
+ * * SQL Data Type: nvarchar(20)
19111
+ * * Default Value: Standard
19112
+ * * Value List Type: List
19113
+ * * Possible Values
19114
+ * * Ephemeral
19115
+ * * Immutable
19116
+ * * Protected
19117
+ * * Standard
19118
+ * * Description: Protection level: Immutable (never consolidated/archived), Protected (no consolidation, extended 365-day retention), Standard (default), Ephemeral (aggressive consolidation, 2x decay rate).
19119
+ */
19120
+ get ProtectionTier(): 'Ephemeral' | 'Immutable' | 'Protected' | 'Standard';
19121
+ set ProtectionTier(value: 'Ephemeral' | 'Immutable' | 'Protected' | 'Standard');
19122
+ /**
19123
+ * * Field Name: ImportanceScore
19124
+ * * Display Name: Importance Score
19125
+ * * SQL Data Type: decimal(5, 2)
19126
+ * * Description: Composite importance score (0-10) computed from 7 signals: recency, LLM-importance, relevance, uniqueness, correction boost, goal alignment, user mark. Replaces raw AccessCount for authority and retention decisions.
19127
+ */
19128
+ get ImportanceScore(): number | null;
19129
+ set ImportanceScore(value: number | null);
19130
+ /**
18811
19131
  * * Field Name: Agent
18812
19132
  * * Display Name: Agent
18813
19133
  * * SQL Data Type: nvarchar(255)
@@ -18861,6 +19181,18 @@ export declare class MJAIAgentNoteEntity extends BaseEntity<MJAIAgentNoteEntityT
18861
19181
  * * SQL Data Type: nvarchar(255)
18862
19182
  */
18863
19183
  get PrimaryScopeEntity(): string | null;
19184
+ /**
19185
+ * * Field Name: ConsolidatedIntoNote
19186
+ * * Display Name: Consolidated Into Note
19187
+ * * SQL Data Type: nvarchar(MAX)
19188
+ */
19189
+ get ConsolidatedIntoNote(): string | null;
19190
+ /**
19191
+ * * Field Name: RootConsolidatedIntoNoteID
19192
+ * * Display Name: Root Consolidated Into Note ID
19193
+ * * SQL Data Type: uniqueidentifier
19194
+ */
19195
+ get RootConsolidatedIntoNoteID(): string | null;
18864
19196
  }
18865
19197
  /**
18866
19198
  * MJ: AI Agent Permissions - strongly typed entity sub-class
@@ -20637,6 +20969,14 @@ each time the agent processes a prompt step.
20637
20969
  get ExternalReferenceID(): string | null;
20638
20970
  set ExternalReferenceID(value: string | null);
20639
20971
  /**
20972
+ * * Field Name: CompanyID
20973
+ * * Display Name: Company ID
20974
+ * * SQL Data Type: uniqueidentifier
20975
+ * * Description: Optional company scope for multi-tenant memory. When populated, Memory Manager uses this to scope extracted notes to the company. Flows from ExecuteAgentParams.companyId at agent invocation time.
20976
+ */
20977
+ get CompanyID(): string | null;
20978
+ set CompanyID(value: string | null);
20979
+ /**
20640
20980
  * * Field Name: Agent
20641
20981
  * * Display Name: Agent Name
20642
20982
  * * SQL Data Type: nvarchar(255)
@@ -28372,7 +28712,7 @@ export declare class MJArchiveRunDetailEntity extends BaseEntity<MJArchiveRunDet
28372
28712
  set ArchiveRunID(value: string);
28373
28713
  /**
28374
28714
  * * Field Name: EntityID
28375
- * * Display Name: Entity Record
28715
+ * * Display Name: Entity ID
28376
28716
  * * SQL Data Type: uniqueidentifier
28377
28717
  * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
28378
28718
  * * Description: Foreign key to the Entity this record belongs to.
@@ -28443,7 +28783,7 @@ export declare class MJArchiveRunDetailEntity extends BaseEntity<MJArchiveRunDet
28443
28783
  set VersionStamp(value: Date | null);
28444
28784
  /**
28445
28785
  * * Field Name: IsRecordChangeArchive
28446
- * * Display Name: Is Record Change Archive
28786
+ * * Display Name: Is Record Change
28447
28787
  * * SQL Data Type: bit
28448
28788
  * * Default Value: 0
28449
28789
  * * Description: When true, this detail row represents an archived Record Change entry rather than a primary entity record.
@@ -28465,8 +28805,14 @@ export declare class MJArchiveRunDetailEntity extends BaseEntity<MJArchiveRunDet
28465
28805
  */
28466
28806
  get __mj_UpdatedAt(): Date;
28467
28807
  /**
28808
+ * * Field Name: ArchiveRun
28809
+ * * Display Name: Archive Run Timestamp
28810
+ * * SQL Data Type: datetimeoffset
28811
+ */
28812
+ get ArchiveRun(): Date;
28813
+ /**
28468
28814
  * * Field Name: Entity
28469
- * * Display Name: Entity Type
28815
+ * * Display Name: Entity Name
28470
28816
  * * SQL Data Type: nvarchar(255)
28471
28817
  */
28472
28818
  get Entity(): string;
@@ -37192,6 +37538,16 @@ export declare class MJDashboardEntity extends BaseEntity<MJDashboardEntityType>
37192
37538
  */
37193
37539
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
37194
37540
  /**
37541
+ * MJ: Dashboards - Delete method override to wrap in transaction since CascadeDeletes is true.
37542
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
37543
+ * @public
37544
+ * @method
37545
+ * @override
37546
+ * @memberof MJDashboardEntity
37547
+ * @returns {Promise<boolean>} - true if successful, false otherwise
37548
+ */
37549
+ Delete(options?: EntityDeleteOptions): Promise<boolean>;
37550
+ /**
37195
37551
  * * Field Name: ID
37196
37552
  * * Display Name: ID
37197
37553
  * * SQL Data Type: uniqueidentifier
@@ -42060,6 +42416,7 @@ export declare class MJEntityPermissionEntity extends BaseEntity<MJEntityPermiss
42060
42416
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
42061
42417
  /**
42062
42418
  * * Field Name: ID
42419
+ * * Display Name: ID
42063
42420
  * * SQL Data Type: uniqueidentifier
42064
42421
  * * Default Value: newsequentialid()
42065
42422
  */
@@ -42119,7 +42476,7 @@ export declare class MJEntityPermissionEntity extends BaseEntity<MJEntityPermiss
42119
42476
  set CanDelete(value: boolean);
42120
42477
  /**
42121
42478
  * * Field Name: ReadRLSFilterID
42122
- * * Display Name: Read RLSFilter ID
42479
+ * * Display Name: Read Filter ID
42123
42480
  * * SQL Data Type: uniqueidentifier
42124
42481
  * * Related Entity/Foreign Key: MJ: Row Level Security Filters (vwRowLevelSecurityFilters.ID)
42125
42482
  */
@@ -42127,7 +42484,7 @@ export declare class MJEntityPermissionEntity extends BaseEntity<MJEntityPermiss
42127
42484
  set ReadRLSFilterID(value: string | null);
42128
42485
  /**
42129
42486
  * * Field Name: CreateRLSFilterID
42130
- * * Display Name: Create RLSFilter ID
42487
+ * * Display Name: Create Filter ID
42131
42488
  * * SQL Data Type: uniqueidentifier
42132
42489
  * * Related Entity/Foreign Key: MJ: Row Level Security Filters (vwRowLevelSecurityFilters.ID)
42133
42490
  */
@@ -42135,7 +42492,7 @@ export declare class MJEntityPermissionEntity extends BaseEntity<MJEntityPermiss
42135
42492
  set CreateRLSFilterID(value: string | null);
42136
42493
  /**
42137
42494
  * * Field Name: UpdateRLSFilterID
42138
- * * Display Name: Update RLSFilter ID
42495
+ * * Display Name: Update Filter ID
42139
42496
  * * SQL Data Type: uniqueidentifier
42140
42497
  * * Related Entity/Foreign Key: MJ: Row Level Security Filters (vwRowLevelSecurityFilters.ID)
42141
42498
  */
@@ -42143,7 +42500,7 @@ export declare class MJEntityPermissionEntity extends BaseEntity<MJEntityPermiss
42143
42500
  set UpdateRLSFilterID(value: string | null);
42144
42501
  /**
42145
42502
  * * Field Name: DeleteRLSFilterID
42146
- * * Display Name: Delete RLSFilter ID
42503
+ * * Display Name: Delete Filter ID
42147
42504
  * * SQL Data Type: uniqueidentifier
42148
42505
  * * Related Entity/Foreign Key: MJ: Row Level Security Filters (vwRowLevelSecurityFilters.ID)
42149
42506
  */
@@ -42151,19 +42508,32 @@ export declare class MJEntityPermissionEntity extends BaseEntity<MJEntityPermiss
42151
42508
  set DeleteRLSFilterID(value: string | null);
42152
42509
  /**
42153
42510
  * * Field Name: __mj_CreatedAt
42154
- * * Display Name: __mj _Created At
42511
+ * * Display Name: Created At
42155
42512
  * * SQL Data Type: datetimeoffset
42156
42513
  * * Default Value: getutcdate()
42157
42514
  */
42158
42515
  get __mj_CreatedAt(): Date;
42159
42516
  /**
42160
42517
  * * Field Name: __mj_UpdatedAt
42161
- * * Display Name: __mj _Updated At
42518
+ * * Display Name: Updated At
42162
42519
  * * SQL Data Type: datetimeoffset
42163
42520
  * * Default Value: getutcdate()
42164
42521
  */
42165
42522
  get __mj_UpdatedAt(): Date;
42166
42523
  /**
42524
+ * * Field Name: Type
42525
+ * * Display Name: Access Type
42526
+ * * SQL Data Type: nvarchar(10)
42527
+ * * Default Value: Allow
42528
+ * * Value List Type: List
42529
+ * * Possible Values
42530
+ * * Allow
42531
+ * * Deny
42532
+ * * Description: Allow or Deny. Deny rows override any Allow grants on the same (EntityID, RoleID, action) at evaluation time, letting administrators exclude a role from an action another role grants.
42533
+ */
42534
+ get Type(): 'Allow' | 'Deny';
42535
+ set Type(value: 'Allow' | 'Deny');
42536
+ /**
42167
42537
  * * Field Name: Entity
42168
42538
  * * Display Name: Entity
42169
42539
  * * SQL Data Type: nvarchar(255)
@@ -42177,31 +42547,31 @@ export declare class MJEntityPermissionEntity extends BaseEntity<MJEntityPermiss
42177
42547
  get RoleName(): string;
42178
42548
  /**
42179
42549
  * * Field Name: RoleSQLName
42180
- * * Display Name: Role SQLName
42550
+ * * Display Name: Role SQL Name
42181
42551
  * * SQL Data Type: nvarchar(250)
42182
42552
  */
42183
42553
  get RoleSQLName(): string | null;
42184
42554
  /**
42185
42555
  * * Field Name: CreateRLSFilter
42186
- * * Display Name: Create RLSFilter
42556
+ * * Display Name: Create Filter
42187
42557
  * * SQL Data Type: nvarchar(100)
42188
42558
  */
42189
42559
  get CreateRLSFilter(): string | null;
42190
42560
  /**
42191
42561
  * * Field Name: ReadRLSFilter
42192
- * * Display Name: Read RLSFilter
42562
+ * * Display Name: Read Filter
42193
42563
  * * SQL Data Type: nvarchar(100)
42194
42564
  */
42195
42565
  get ReadRLSFilter(): string | null;
42196
42566
  /**
42197
42567
  * * Field Name: UpdateRLSFilter
42198
- * * Display Name: Update RLSFilter
42568
+ * * Display Name: Update Filter
42199
42569
  * * SQL Data Type: nvarchar(100)
42200
42570
  */
42201
42571
  get UpdateRLSFilter(): string | null;
42202
42572
  /**
42203
42573
  * * Field Name: DeleteRLSFilter
42204
- * * Display Name: Delete RLSFilter
42574
+ * * Display Name: Delete Filter
42205
42575
  * * SQL Data Type: nvarchar(100)
42206
42576
  */
42207
42577
  get DeleteRLSFilter(): string | null;
@@ -46747,7 +47117,7 @@ export declare class MJMCPToolExecutionLogEntity extends BaseEntity<MJMCPToolExe
46747
47117
  * * Schema: __mj
46748
47118
  * * Base Table: MCPToolFavorite
46749
47119
  * * Base View: vwMCPToolFavorites
46750
- * * @description Per-user favorite marker for an MCP Server Tool. Lets users star tools for quick access in the MCP Dashboard and Test dialog.
47120
+ * * @description Per-user favorite marker for an MCP Server Tool. Each row indicates the user has starred the referenced tool for quick access in the MCP Dashboard Tools tab and in the Test Tool dialog picker. Combined with UserID forms a unique pair so a user cannot favorite the same tool twice.
46751
47121
  * * Primary Key: ID
46752
47122
  * @extends {BaseEntity}
46753
47123
  * @class
@@ -46776,17 +47146,19 @@ export declare class MJMCPToolFavoriteEntity extends BaseEntity<MJMCPToolFavorit
46776
47146
  set ID(value: string);
46777
47147
  /**
46778
47148
  * * Field Name: UserID
46779
- * * Display Name: User ID
47149
+ * * Display Name: User
46780
47150
  * * SQL Data Type: uniqueidentifier
46781
47151
  * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
47152
+ * * Description: The user who starred this tool. Favorites are per-user; multiple users can favorite the same tool independently. References the MJ User table.
46782
47153
  */
46783
47154
  get UserID(): string;
46784
47155
  set UserID(value: string);
46785
47156
  /**
46786
47157
  * * Field Name: MCPServerToolID
46787
- * * Display Name: MCP Server Tool ID
47158
+ * * Display Name: MCP Server Tool
46788
47159
  * * SQL Data Type: uniqueidentifier
46789
47160
  * * Related Entity/Foreign Key: MJ: MCP Server Tools (vwMCPServerTools.ID)
47161
+ * * Description: The MCP Server Tool that has been favorited. Combined with UserID this forms a unique constraint so a user cannot favorite the same tool twice.
46790
47162
  */
46791
47163
  get MCPServerToolID(): string;
46792
47164
  set MCPServerToolID(value: string);
@@ -46806,13 +47178,13 @@ export declare class MJMCPToolFavoriteEntity extends BaseEntity<MJMCPToolFavorit
46806
47178
  get __mj_UpdatedAt(): Date;
46807
47179
  /**
46808
47180
  * * Field Name: User
46809
- * * Display Name: User
47181
+ * * Display Name: User Name
46810
47182
  * * SQL Data Type: nvarchar(100)
46811
47183
  */
46812
47184
  get User(): string;
46813
47185
  /**
46814
47186
  * * Field Name: MCPServerTool
46815
- * * Display Name: MCP Server Tool
47187
+ * * Display Name: Tool Name
46816
47188
  * * SQL Data Type: nvarchar(255)
46817
47189
  */
46818
47190
  get MCPServerTool(): string | null;
@@ -48144,6 +48516,146 @@ export declare class MJOutputTriggerTypeEntity extends BaseEntity<MJOutputTrigge
48144
48516
  */
48145
48517
  get __mj_UpdatedAt(): Date;
48146
48518
  }
48519
+ /**
48520
+ * MJ: Permission Domains - strongly typed entity sub-class
48521
+ * * Schema: __mj
48522
+ * * Base Table: PermissionDomain
48523
+ * * Base View: vwPermissionDomains
48524
+ * * @description Catalog of registered permission subsystems. Each row describes one permission provider; the PermissionEngine uses ProviderClassName as the ClassFactory key to instantiate providers at startup. Enables unified permission queries across all subsystems.
48525
+ * * Primary Key: ID
48526
+ * @extends {BaseEntity}
48527
+ * @class
48528
+ * @public
48529
+ */
48530
+ export declare class MJPermissionDomainEntity extends BaseEntity<MJPermissionDomainEntityType> {
48531
+ /**
48532
+ * Loads the MJ: Permission Domains record from the database
48533
+ * @param ID: string - primary key value to load the MJ: Permission Domains record.
48534
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
48535
+ * @returns {Promise<boolean>} - true if successful, false otherwise
48536
+ * @public
48537
+ * @async
48538
+ * @memberof MJPermissionDomainEntity
48539
+ * @method
48540
+ * @override
48541
+ */
48542
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
48543
+ /**
48544
+ * * Field Name: ID
48545
+ * * Display Name: ID
48546
+ * * SQL Data Type: uniqueidentifier
48547
+ * * Default Value: newsequentialid()
48548
+ */
48549
+ get ID(): string;
48550
+ set ID(value: string);
48551
+ /**
48552
+ * * Field Name: Name
48553
+ * * Display Name: Name
48554
+ * * SQL Data Type: nvarchar(200)
48555
+ * * Description: Human-readable unique name for the permission domain (e.g., "Entity Permissions", "Dashboard Permissions"). Used in admin UI and as the domain identifier in PermissionEngine API calls.
48556
+ */
48557
+ get Name(): string;
48558
+ set Name(value: string);
48559
+ /**
48560
+ * * Field Name: Description
48561
+ * * Display Name: Description
48562
+ * * SQL Data Type: nvarchar(MAX)
48563
+ * * Description: Detailed description of what this permission domain covers and how permissions are enforced.
48564
+ */
48565
+ get Description(): string | null;
48566
+ set Description(value: string | null);
48567
+ /**
48568
+ * * Field Name: ProviderClassName
48569
+ * * Display Name: Provider Class Name
48570
+ * * SQL Data Type: nvarchar(500)
48571
+ * * Description: ClassFactory key used to instantiate this provider. Must match the key passed to @RegisterClass(PermissionProviderBase, 'ClassName'). Convention: prefix with MJ for built-in providers (e.g., MJEntityPermissionProvider).
48572
+ */
48573
+ get ProviderClassName(): string;
48574
+ set ProviderClassName(value: string);
48575
+ /**
48576
+ * * Field Name: SupportedGranteeTypes
48577
+ * * Display Name: Supported Grantee Types
48578
+ * * SQL Data Type: nvarchar(200)
48579
+ * * Description: Comma-delimited list of grantee types this provider supports. Valid tokens: User, Role, Everyone, Public. Example: "User,Role".
48580
+ */
48581
+ get SupportedGranteeTypes(): string;
48582
+ set SupportedGranteeTypes(value: string);
48583
+ /**
48584
+ * * Field Name: SupportedActions
48585
+ * * Display Name: Supported Actions
48586
+ * * SQL Data Type: nvarchar(500)
48587
+ * * Description: Comma-delimited list of permission actions this provider can evaluate. Valid tokens: Read, Create, Update, Delete, Share, Execute, Admin. Example: "Read,Create,Update,Delete".
48588
+ */
48589
+ get SupportedActions(): string;
48590
+ set SupportedActions(value: string);
48591
+ /**
48592
+ * * Field Name: SupportsDeny
48593
+ * * Display Name: Supports Deny
48594
+ * * SQL Data Type: bit
48595
+ * * Default Value: 0
48596
+ * * Description: When true, this provider supports explicit Deny records that override Allow grants at the same scope.
48597
+ */
48598
+ get SupportsDeny(): boolean;
48599
+ set SupportsDeny(value: boolean);
48600
+ /**
48601
+ * * Field Name: SupportsExpiration
48602
+ * * Display Name: Supports Expiration
48603
+ * * SQL Data Type: bit
48604
+ * * Default Value: 0
48605
+ * * Description: When true, this provider supports time-bound permissions with an expiration timestamp.
48606
+ */
48607
+ get SupportsExpiration(): boolean;
48608
+ set SupportsExpiration(value: boolean);
48609
+ /**
48610
+ * * Field Name: SupportsHierarchyInheritance
48611
+ * * Display Name: Supports Hierarchy Inheritance
48612
+ * * SQL Data Type: bit
48613
+ * * Default Value: 0
48614
+ * * Description: When true, this provider resolves permissions hierarchically (e.g., category-level grants cascade to items within the category).
48615
+ */
48616
+ get SupportsHierarchyInheritance(): boolean;
48617
+ set SupportsHierarchyInheritance(value: boolean);
48618
+ /**
48619
+ * * Field Name: IsActive
48620
+ * * Display Name: Is Active
48621
+ * * SQL Data Type: bit
48622
+ * * Default Value: 1
48623
+ * * Description: When false, the PermissionEngine skips loading this provider at startup. Use to temporarily disable a provider without removing its record.
48624
+ */
48625
+ get IsActive(): boolean;
48626
+ set IsActive(value: boolean);
48627
+ /**
48628
+ * * Field Name: DisplayOrder
48629
+ * * Display Name: Display Order
48630
+ * * SQL Data Type: int
48631
+ * * Default Value: 100
48632
+ * * Description: Sort order for displaying domains in the Sharing Center admin UI. Lower numbers appear first.
48633
+ */
48634
+ get DisplayOrder(): number;
48635
+ set DisplayOrder(value: number);
48636
+ /**
48637
+ * * Field Name: Icon
48638
+ * * Display Name: Icon
48639
+ * * SQL Data Type: nvarchar(100)
48640
+ * * Description: Optional Font Awesome icon class for display in admin UI (e.g., "fa-solid fa-shield").
48641
+ */
48642
+ get Icon(): string | null;
48643
+ set Icon(value: string | null);
48644
+ /**
48645
+ * * Field Name: __mj_CreatedAt
48646
+ * * Display Name: Created At
48647
+ * * SQL Data Type: datetimeoffset
48648
+ * * Default Value: getutcdate()
48649
+ */
48650
+ get __mj_CreatedAt(): Date;
48651
+ /**
48652
+ * * Field Name: __mj_UpdatedAt
48653
+ * * Display Name: Updated At
48654
+ * * SQL Data Type: datetimeoffset
48655
+ * * Default Value: getutcdate()
48656
+ */
48657
+ get __mj_UpdatedAt(): Date;
48658
+ }
48147
48659
  /**
48148
48660
  * MJ: Projects - strongly typed entity sub-class
48149
48661
  * * Schema: __mj
@@ -51911,7 +52423,7 @@ export declare class MJResourcePermissionEntity extends BaseEntity<MJResourcePer
51911
52423
  set ResourceTypeID(value: string);
51912
52424
  /**
51913
52425
  * * Field Name: ResourceRecordID
51914
- * * Display Name: Resource Record ID
52426
+ * * Display Name: Resource Record
51915
52427
  * * SQL Data Type: nvarchar(255)
51916
52428
  * * Description: ID of the specific resource being shared
51917
52429
  */
@@ -51919,7 +52431,7 @@ export declare class MJResourcePermissionEntity extends BaseEntity<MJResourcePer
51919
52431
  set ResourceRecordID(value: string);
51920
52432
  /**
51921
52433
  * * Field Name: Type
51922
- * * Display Name: Type
52434
+ * * Display Name: Share Type
51923
52435
  * * SQL Data Type: nvarchar(10)
51924
52436
  * * Value List Type: List
51925
52437
  * * Possible Values
@@ -51931,7 +52443,7 @@ export declare class MJResourcePermissionEntity extends BaseEntity<MJResourcePer
51931
52443
  set Type(value: 'Role' | 'User');
51932
52444
  /**
51933
52445
  * * Field Name: StartSharingAt
51934
- * * Display Name: Start Sharing At
52446
+ * * Display Name: Start Date
51935
52447
  * * SQL Data Type: datetimeoffset
51936
52448
  * * Description: Optional: Date when sharing starts
51937
52449
  */
@@ -51939,7 +52451,7 @@ export declare class MJResourcePermissionEntity extends BaseEntity<MJResourcePer
51939
52451
  set StartSharingAt(value: Date | null);
51940
52452
  /**
51941
52453
  * * Field Name: EndSharingAt
51942
- * * Display Name: End Sharing At
52454
+ * * Display Name: End Date
51943
52455
  * * SQL Data Type: datetimeoffset
51944
52456
  * * Description: Optional: Date when sharing ends
51945
52457
  */
@@ -52004,6 +52516,15 @@ export declare class MJResourcePermissionEntity extends BaseEntity<MJResourcePer
52004
52516
  get Status(): 'Approved' | 'Rejected' | 'Requested' | 'Revoked';
52005
52517
  set Status(value: 'Approved' | 'Rejected' | 'Requested' | 'Revoked');
52006
52518
  /**
52519
+ * * Field Name: SharedByUserID
52520
+ * * Display Name: Shared By User ID
52521
+ * * SQL Data Type: uniqueidentifier
52522
+ * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
52523
+ * * Description: The user who granted this permission. NULL when the share pre-dates this column or when the grantor is unknown (e.g., a system-seeded permission).
52524
+ */
52525
+ get SharedByUserID(): string | null;
52526
+ set SharedByUserID(value: string | null);
52527
+ /**
52007
52528
  * * Field Name: ResourceType
52008
52529
  * * Display Name: Resource Type
52009
52530
  * * SQL Data Type: nvarchar(255)
@@ -52021,6 +52542,12 @@ export declare class MJResourcePermissionEntity extends BaseEntity<MJResourcePer
52021
52542
  * * SQL Data Type: nvarchar(100)
52022
52543
  */
52023
52544
  get User(): string | null;
52545
+ /**
52546
+ * * Field Name: SharedByUser
52547
+ * * Display Name: Shared By User
52548
+ * * SQL Data Type: nvarchar(100)
52549
+ */
52550
+ get SharedByUser(): string | null;
52024
52551
  }
52025
52552
  /**
52026
52553
  * MJ: Resource Types - strongly typed entity sub-class