@decaf-ts/integrations 0.3.5 → 0.3.7

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 (272) hide show
  1. package/dist/integrations.cjs +1608 -7
  2. package/dist/integrations.js +1841 -5
  3. package/lib/cjs/graph/execution/SwitchGraphNodeExecutor.cjs +13 -5
  4. package/lib/cjs/graph/nodes/base.cjs +35 -0
  5. package/lib/cjs/graph/nodes/flow-control.cjs +31 -3
  6. package/lib/cjs/graph/nodes/index.cjs +3 -2
  7. package/lib/cjs/graph/types.cjs +2 -2
  8. package/lib/cjs/index.cjs +6 -5
  9. package/lib/cjs/namespaces/index.cjs +26 -0
  10. package/lib/cjs/namespaces/models/authorization-model.cjs +12 -0
  11. package/lib/cjs/namespaces/models/effective-permission.model.cjs +95 -0
  12. package/lib/cjs/namespaces/models/group-membership.model.cjs +66 -0
  13. package/lib/cjs/namespaces/models/group.model.cjs +74 -0
  14. package/lib/cjs/namespaces/models/index.cjs +39 -0
  15. package/lib/cjs/namespaces/models/inheritance-block.model.cjs +76 -0
  16. package/lib/cjs/namespaces/models/org-unit-closure.model.cjs +66 -0
  17. package/lib/cjs/namespaces/models/org-unit-membership.model.cjs +73 -0
  18. package/lib/cjs/namespaces/models/org-unit-profile.model.cjs +64 -0
  19. package/lib/cjs/namespaces/models/org-unit.model.cjs +102 -0
  20. package/lib/cjs/namespaces/models/permission.model.cjs +64 -0
  21. package/lib/cjs/namespaces/models/principal.model.cjs +77 -0
  22. package/lib/cjs/namespaces/models/protected-resource.model.cjs +99 -0
  23. package/lib/cjs/namespaces/models/resource-grant.model.cjs +88 -0
  24. package/lib/cjs/namespaces/models/role-assignment.model.cjs +98 -0
  25. package/lib/cjs/namespaces/models/role-permission.model.cjs +55 -0
  26. package/lib/cjs/namespaces/models/role.model.cjs +84 -0
  27. package/lib/cjs/namespaces/models/storage-binding.model.cjs +85 -0
  28. package/lib/cjs/namespaces/models/tenant-membership.model.cjs +67 -0
  29. package/lib/cjs/namespaces/models/tenant-profile.model.cjs +64 -0
  30. package/lib/cjs/namespaces/models/tenant.model.cjs +88 -0
  31. package/lib/cjs/namespaces/models/user.model.cjs +75 -0
  32. package/lib/cjs/namespaces/org-based-authorization-system.cjs +286 -0
  33. package/lib/cjs/namespaces/org-based-authorization-system.models.cjs +968 -0
  34. package/lib/cjs/namespaces/org-based-authorization-system.services.cjs +1046 -0
  35. package/lib/cjs/namespaces/services/authz.service.cjs +76 -0
  36. package/lib/cjs/namespaces/services/bootstrap.service.cjs +112 -0
  37. package/lib/cjs/namespaces/services/effective-permission.service.cjs +150 -0
  38. package/lib/cjs/namespaces/services/group-membership.service.cjs +42 -0
  39. package/lib/cjs/namespaces/services/group.service.cjs +30 -0
  40. package/lib/cjs/namespaces/services/index.cjs +42 -0
  41. package/lib/cjs/namespaces/services/inheritance-block.service.cjs +32 -0
  42. package/lib/cjs/namespaces/services/org-unit-closure.service.cjs +55 -0
  43. package/lib/cjs/namespaces/services/org-unit-membership.service.cjs +34 -0
  44. package/lib/cjs/namespaces/services/org-unit-profile.service.cjs +23 -0
  45. package/lib/cjs/namespaces/services/org-unit.service.cjs +160 -0
  46. package/lib/cjs/namespaces/services/permission.service.cjs +29 -0
  47. package/lib/cjs/namespaces/services/principal.service.cjs +35 -0
  48. package/lib/cjs/namespaces/services/protected-resource.service.cjs +43 -0
  49. package/lib/cjs/namespaces/services/resource-grant.service.cjs +45 -0
  50. package/lib/cjs/namespaces/services/resource-lifecycle.service.cjs +24 -0
  51. package/lib/cjs/namespaces/services/role-assignment.service.cjs +41 -0
  52. package/lib/cjs/namespaces/services/role-permission.service.cjs +51 -0
  53. package/lib/cjs/namespaces/services/role.service.cjs +45 -0
  54. package/lib/cjs/namespaces/services/storage-binding.service.cjs +39 -0
  55. package/lib/cjs/namespaces/services/system-management.service.cjs +102 -0
  56. package/lib/cjs/namespaces/services/tenant-membership.service.cjs +33 -0
  57. package/lib/cjs/namespaces/services/tenant-profile.service.cjs +28 -0
  58. package/lib/cjs/namespaces/services/tenant.service.cjs +36 -0
  59. package/lib/cjs/namespaces/services/user.service.cjs +32 -0
  60. package/lib/cjs/namespaces/types.cjs +67 -0
  61. package/lib/cjs/namespaces/utils.cjs +161 -0
  62. package/lib/cjs/nest/authService.cjs +5 -2
  63. package/lib/cjs/nest/graph/GraphExecutionController.cjs +153 -0
  64. package/lib/cjs/nest/graph/GraphExecutionModule.cjs +84 -0
  65. package/lib/cjs/nest/graph/GraphExecutionResultModel.cjs +82 -0
  66. package/lib/cjs/nest/graph/GraphExecutionResultRepository.cjs +66 -0
  67. package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs +35 -0
  68. package/lib/cjs/nest/graph/index.cjs +28 -0
  69. package/lib/cjs/nest/index.cjs +3 -2
  70. package/lib/esm/graph/execution/SwitchGraphNodeExecutor.js +12 -4
  71. package/lib/esm/graph/nodes/base.js +30 -0
  72. package/lib/esm/graph/nodes/flow-control.js +31 -3
  73. package/lib/esm/graph/nodes/index.js +2 -1
  74. package/lib/esm/graph/types.js +1 -1
  75. package/lib/esm/index.js +5 -4
  76. package/lib/esm/namespaces/index.js +9 -0
  77. package/lib/esm/namespaces/models/authorization-model.js +7 -0
  78. package/lib/esm/namespaces/models/effective-permission.model.js +86 -0
  79. package/lib/esm/namespaces/models/group-membership.model.js +57 -0
  80. package/lib/esm/namespaces/models/group.model.js +65 -0
  81. package/lib/esm/namespaces/models/index.js +22 -0
  82. package/lib/esm/namespaces/models/inheritance-block.model.js +67 -0
  83. package/lib/esm/namespaces/models/org-unit-closure.model.js +57 -0
  84. package/lib/esm/namespaces/models/org-unit-membership.model.js +64 -0
  85. package/lib/esm/namespaces/models/org-unit-profile.model.js +55 -0
  86. package/lib/esm/namespaces/models/org-unit.model.js +93 -0
  87. package/lib/esm/namespaces/models/permission.model.js +55 -0
  88. package/lib/esm/namespaces/models/principal.model.js +68 -0
  89. package/lib/esm/namespaces/models/protected-resource.model.js +90 -0
  90. package/lib/esm/namespaces/models/resource-grant.model.js +79 -0
  91. package/lib/esm/namespaces/models/role-assignment.model.js +89 -0
  92. package/lib/esm/namespaces/models/role-permission.model.js +46 -0
  93. package/lib/esm/namespaces/models/role.model.js +75 -0
  94. package/lib/esm/namespaces/models/storage-binding.model.js +76 -0
  95. package/lib/esm/namespaces/models/tenant-membership.model.js +58 -0
  96. package/lib/esm/namespaces/models/tenant-profile.model.js +55 -0
  97. package/lib/esm/namespaces/models/tenant.model.js +79 -0
  98. package/lib/esm/namespaces/models/user.model.js +66 -0
  99. package/lib/esm/namespaces/org-based-authorization-system.js +283 -0
  100. package/lib/esm/namespaces/org-based-authorization-system.models.js +958 -0
  101. package/lib/esm/namespaces/org-based-authorization-system.services.js +1014 -0
  102. package/lib/esm/namespaces/services/authz.service.js +71 -0
  103. package/lib/esm/namespaces/services/bootstrap.service.js +102 -0
  104. package/lib/esm/namespaces/services/effective-permission.service.js +140 -0
  105. package/lib/esm/namespaces/services/group-membership.service.js +37 -0
  106. package/lib/esm/namespaces/services/group.service.js +25 -0
  107. package/lib/esm/namespaces/services/index.js +25 -0
  108. package/lib/esm/namespaces/services/inheritance-block.service.js +27 -0
  109. package/lib/esm/namespaces/services/org-unit-closure.service.js +50 -0
  110. package/lib/esm/namespaces/services/org-unit-membership.service.js +29 -0
  111. package/lib/esm/namespaces/services/org-unit-profile.service.js +18 -0
  112. package/lib/esm/namespaces/services/org-unit.service.js +150 -0
  113. package/lib/esm/namespaces/services/permission.service.js +24 -0
  114. package/lib/esm/namespaces/services/principal.service.js +30 -0
  115. package/lib/esm/namespaces/services/protected-resource.service.js +38 -0
  116. package/lib/esm/namespaces/services/resource-grant.service.js +40 -0
  117. package/lib/esm/namespaces/services/resource-lifecycle.service.js +19 -0
  118. package/lib/esm/namespaces/services/role-assignment.service.js +36 -0
  119. package/lib/esm/namespaces/services/role-permission.service.js +46 -0
  120. package/lib/esm/namespaces/services/role.service.js +40 -0
  121. package/lib/esm/namespaces/services/storage-binding.service.js +34 -0
  122. package/lib/esm/namespaces/services/system-management.service.js +92 -0
  123. package/lib/esm/namespaces/services/tenant-membership.service.js +28 -0
  124. package/lib/esm/namespaces/services/tenant-profile.service.js +23 -0
  125. package/lib/esm/namespaces/services/tenant.service.js +31 -0
  126. package/lib/esm/namespaces/services/user.service.js +27 -0
  127. package/lib/esm/namespaces/types.js +71 -0
  128. package/lib/esm/namespaces/utils.js +143 -0
  129. package/lib/esm/nest/authService.js +4 -1
  130. package/lib/esm/nest/graph/GraphExecutionController.js +144 -0
  131. package/lib/esm/nest/graph/GraphExecutionModule.js +76 -0
  132. package/lib/esm/nest/graph/GraphExecutionResultModel.js +73 -0
  133. package/lib/esm/nest/graph/GraphExecutionResultRepository.js +60 -0
  134. package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js +31 -0
  135. package/lib/esm/nest/graph/index.js +11 -0
  136. package/lib/esm/nest/index.js +2 -1
  137. package/lib/types/graph/nodes/base.d.cts +28 -0
  138. package/lib/types/graph/nodes/base.d.mts +28 -0
  139. package/lib/types/graph/nodes/flow-control.d.cts +9 -1
  140. package/lib/types/graph/nodes/flow-control.d.mts +9 -1
  141. package/lib/types/graph/nodes/index.d.cts +1 -0
  142. package/lib/types/graph/nodes/index.d.mts +1 -0
  143. package/lib/types/graph/types.d.cts +15 -1
  144. package/lib/types/graph/types.d.mts +15 -1
  145. package/lib/types/index.d.cts +3 -2
  146. package/lib/types/index.d.mts +3 -2
  147. package/lib/types/namespaces/index.d.cts +8 -0
  148. package/lib/types/namespaces/index.d.mts +8 -0
  149. package/lib/types/namespaces/models/authorization-model.d.cts +4 -0
  150. package/lib/types/namespaces/models/authorization-model.d.mts +4 -0
  151. package/lib/types/namespaces/models/effective-permission.model.d.cts +18 -0
  152. package/lib/types/namespaces/models/effective-permission.model.d.mts +18 -0
  153. package/lib/types/namespaces/models/group-membership.model.d.cts +13 -0
  154. package/lib/types/namespaces/models/group-membership.model.d.mts +13 -0
  155. package/lib/types/namespaces/models/group.model.d.cts +15 -0
  156. package/lib/types/namespaces/models/group.model.d.mts +15 -0
  157. package/lib/types/namespaces/models/index.d.cts +21 -0
  158. package/lib/types/namespaces/models/index.d.mts +21 -0
  159. package/lib/types/namespaces/models/inheritance-block.model.d.cts +15 -0
  160. package/lib/types/namespaces/models/inheritance-block.model.d.mts +15 -0
  161. package/lib/types/namespaces/models/org-unit-closure.model.d.cts +12 -0
  162. package/lib/types/namespaces/models/org-unit-closure.model.d.mts +12 -0
  163. package/lib/types/namespaces/models/org-unit-membership.model.d.cts +15 -0
  164. package/lib/types/namespaces/models/org-unit-membership.model.d.mts +15 -0
  165. package/lib/types/namespaces/models/org-unit-profile.model.d.cts +11 -0
  166. package/lib/types/namespaces/models/org-unit-profile.model.d.mts +11 -0
  167. package/lib/types/namespaces/models/org-unit.model.d.cts +23 -0
  168. package/lib/types/namespaces/models/org-unit.model.d.mts +23 -0
  169. package/lib/types/namespaces/models/permission.model.d.cts +11 -0
  170. package/lib/types/namespaces/models/permission.model.d.mts +11 -0
  171. package/lib/types/namespaces/models/principal.model.d.cts +16 -0
  172. package/lib/types/namespaces/models/principal.model.d.mts +16 -0
  173. package/lib/types/namespaces/models/protected-resource.model.d.cts +21 -0
  174. package/lib/types/namespaces/models/protected-resource.model.d.mts +21 -0
  175. package/lib/types/namespaces/models/resource-grant.model.d.cts +18 -0
  176. package/lib/types/namespaces/models/resource-grant.model.d.mts +18 -0
  177. package/lib/types/namespaces/models/role-assignment.model.d.cts +20 -0
  178. package/lib/types/namespaces/models/role-assignment.model.d.mts +20 -0
  179. package/lib/types/namespaces/models/role-permission.model.d.cts +10 -0
  180. package/lib/types/namespaces/models/role-permission.model.d.mts +10 -0
  181. package/lib/types/namespaces/models/role.model.d.cts +17 -0
  182. package/lib/types/namespaces/models/role.model.d.mts +17 -0
  183. package/lib/types/namespaces/models/storage-binding.model.d.cts +15 -0
  184. package/lib/types/namespaces/models/storage-binding.model.d.mts +15 -0
  185. package/lib/types/namespaces/models/tenant-membership.model.d.cts +13 -0
  186. package/lib/types/namespaces/models/tenant-membership.model.d.mts +13 -0
  187. package/lib/types/namespaces/models/tenant-profile.model.d.cts +11 -0
  188. package/lib/types/namespaces/models/tenant-profile.model.d.mts +11 -0
  189. package/lib/types/namespaces/models/tenant.model.d.cts +19 -0
  190. package/lib/types/namespaces/models/tenant.model.d.mts +19 -0
  191. package/lib/types/namespaces/models/user.model.d.cts +14 -0
  192. package/lib/types/namespaces/models/user.model.d.mts +14 -0
  193. package/lib/types/namespaces/org-based-authorization-system.d.cts +299 -0
  194. package/lib/types/namespaces/org-based-authorization-system.d.mts +299 -0
  195. package/lib/types/namespaces/org-based-authorization-system.models.d.cts +212 -0
  196. package/lib/types/namespaces/org-based-authorization-system.models.d.mts +212 -0
  197. package/lib/types/namespaces/org-based-authorization-system.services.d.cts +217 -0
  198. package/lib/types/namespaces/org-based-authorization-system.services.d.mts +217 -0
  199. package/lib/types/namespaces/services/authz.service.d.cts +10 -0
  200. package/lib/types/namespaces/services/authz.service.d.mts +10 -0
  201. package/lib/types/namespaces/services/bootstrap.service.d.cts +21 -0
  202. package/lib/types/namespaces/services/bootstrap.service.d.mts +21 -0
  203. package/lib/types/namespaces/services/effective-permission.service.d.cts +13 -0
  204. package/lib/types/namespaces/services/effective-permission.service.d.mts +13 -0
  205. package/lib/types/namespaces/services/group-membership.service.d.cts +10 -0
  206. package/lib/types/namespaces/services/group-membership.service.d.mts +10 -0
  207. package/lib/types/namespaces/services/group.service.d.cts +9 -0
  208. package/lib/types/namespaces/services/group.service.d.mts +9 -0
  209. package/lib/types/namespaces/services/index.d.cts +24 -0
  210. package/lib/types/namespaces/services/index.d.mts +24 -0
  211. package/lib/types/namespaces/services/inheritance-block.service.d.cts +10 -0
  212. package/lib/types/namespaces/services/inheritance-block.service.d.mts +10 -0
  213. package/lib/types/namespaces/services/org-unit-closure.service.d.cts +11 -0
  214. package/lib/types/namespaces/services/org-unit-closure.service.d.mts +11 -0
  215. package/lib/types/namespaces/services/org-unit-membership.service.d.cts +11 -0
  216. package/lib/types/namespaces/services/org-unit-membership.service.d.mts +11 -0
  217. package/lib/types/namespaces/services/org-unit-profile.service.d.cts +7 -0
  218. package/lib/types/namespaces/services/org-unit-profile.service.d.mts +7 -0
  219. package/lib/types/namespaces/services/org-unit.service.d.cts +18 -0
  220. package/lib/types/namespaces/services/org-unit.service.d.mts +18 -0
  221. package/lib/types/namespaces/services/permission.service.d.cts +10 -0
  222. package/lib/types/namespaces/services/permission.service.d.mts +10 -0
  223. package/lib/types/namespaces/services/principal.service.d.cts +11 -0
  224. package/lib/types/namespaces/services/principal.service.d.mts +11 -0
  225. package/lib/types/namespaces/services/protected-resource.service.d.cts +13 -0
  226. package/lib/types/namespaces/services/protected-resource.service.d.mts +13 -0
  227. package/lib/types/namespaces/services/resource-grant.service.d.cts +12 -0
  228. package/lib/types/namespaces/services/resource-grant.service.d.mts +12 -0
  229. package/lib/types/namespaces/services/resource-lifecycle.service.d.cts +10 -0
  230. package/lib/types/namespaces/services/resource-lifecycle.service.d.mts +10 -0
  231. package/lib/types/namespaces/services/role-assignment.service.d.cts +12 -0
  232. package/lib/types/namespaces/services/role-assignment.service.d.mts +12 -0
  233. package/lib/types/namespaces/services/role-permission.service.d.cts +12 -0
  234. package/lib/types/namespaces/services/role-permission.service.d.mts +12 -0
  235. package/lib/types/namespaces/services/role.service.d.cts +12 -0
  236. package/lib/types/namespaces/services/role.service.d.mts +12 -0
  237. package/lib/types/namespaces/services/storage-binding.service.d.cts +12 -0
  238. package/lib/types/namespaces/services/storage-binding.service.d.mts +12 -0
  239. package/lib/types/namespaces/services/system-management.service.d.cts +14 -0
  240. package/lib/types/namespaces/services/system-management.service.d.mts +14 -0
  241. package/lib/types/namespaces/services/tenant-membership.service.d.cts +11 -0
  242. package/lib/types/namespaces/services/tenant-membership.service.d.mts +11 -0
  243. package/lib/types/namespaces/services/tenant-profile.service.d.cts +8 -0
  244. package/lib/types/namespaces/services/tenant-profile.service.d.mts +8 -0
  245. package/lib/types/namespaces/services/tenant.service.d.cts +12 -0
  246. package/lib/types/namespaces/services/tenant.service.d.mts +12 -0
  247. package/lib/types/namespaces/services/user.service.d.cts +11 -0
  248. package/lib/types/namespaces/services/user.service.d.mts +11 -0
  249. package/lib/types/namespaces/types.d.cts +230 -0
  250. package/lib/types/namespaces/types.d.mts +230 -0
  251. package/lib/types/namespaces/utils.d.cts +68 -0
  252. package/lib/types/namespaces/utils.d.mts +68 -0
  253. package/lib/types/nest/authService.d.cts +1 -0
  254. package/lib/types/nest/authService.d.mts +1 -0
  255. package/lib/types/nest/graph/GraphExecutionController.d.cts +62 -0
  256. package/lib/types/nest/graph/GraphExecutionController.d.mts +62 -0
  257. package/lib/types/nest/graph/GraphExecutionModule.d.cts +39 -0
  258. package/lib/types/nest/graph/GraphExecutionModule.d.mts +39 -0
  259. package/lib/types/nest/graph/GraphExecutionResultModel.d.cts +46 -0
  260. package/lib/types/nest/graph/GraphExecutionResultModel.d.mts +46 -0
  261. package/lib/types/nest/graph/GraphExecutionResultRepository.d.cts +38 -0
  262. package/lib/types/nest/graph/GraphExecutionResultRepository.d.mts +38 -0
  263. package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.cts +17 -0
  264. package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.mts +17 -0
  265. package/lib/types/nest/graph/index.d.cts +10 -0
  266. package/lib/types/nest/graph/index.d.mts +10 -0
  267. package/lib/types/nest/index.d.cts +1 -0
  268. package/lib/types/nest/index.d.mts +1 -0
  269. package/package.json +16 -5
  270. package/sql/001_constraints.sql +11 -0
  271. package/sql/002_rls.sql +20 -0
  272. package/sql/003_indexes.sql +2 -0
@@ -0,0 +1,10 @@
1
+ import { AuthzDataSources, CanAccessInput } from "../types.d.mts";
2
+ export declare class AuthzService {
3
+ private readonly dataSources;
4
+ constructor(dataSources?: AuthzDataSources);
5
+ canAccess(input: CanAccessInput, ...args: any[]): Promise<boolean>;
6
+ requireAccess(input: CanAccessInput, ...args: any[]): Promise<void>;
7
+ buildAccessContext(tenantId: string, principalId: string, ...args: any[]): Promise<import("../types.d.mts").AccessContext>;
8
+ buildArangoContext(tenantId: string, principalId: string, permissionKey: string, ...args: any[]): Promise<import("..").ArangoAuthContext>;
9
+ buildQdrantFilter(tenantId: string, principalId: string, permissionKey: string, ...args: any[]): Promise<import("..").QdrantAuthFilter>;
10
+ }
@@ -0,0 +1,21 @@
1
+ import type { BootstrapTemplate } from "../types.d.cts";
2
+ export declare class BootstrapService {
3
+ private tenantService;
4
+ private tenantProfileService;
5
+ private orgUnitService;
6
+ private orgUnitProfileService;
7
+ private userService;
8
+ private membershipService;
9
+ private principalService;
10
+ private permissionService;
11
+ private roleService;
12
+ private rolePermissionService;
13
+ private roleAssignmentService;
14
+ private effectivePermissionService;
15
+ bootstrapTenantFromTemplate(template: BootstrapTemplate, ...args: any[]): Promise<{
16
+ tenantId: string;
17
+ rootOrgUnitId: string;
18
+ ownerUserId: string;
19
+ ownerPrincipalId: string;
20
+ }>;
21
+ }
@@ -0,0 +1,21 @@
1
+ import type { BootstrapTemplate } from "../types.d.mts";
2
+ export declare class BootstrapService {
3
+ private tenantService;
4
+ private tenantProfileService;
5
+ private orgUnitService;
6
+ private orgUnitProfileService;
7
+ private userService;
8
+ private membershipService;
9
+ private principalService;
10
+ private permissionService;
11
+ private roleService;
12
+ private rolePermissionService;
13
+ private roleAssignmentService;
14
+ private effectivePermissionService;
15
+ bootstrapTenantFromTemplate(template: BootstrapTemplate, ...args: any[]): Promise<{
16
+ tenantId: string;
17
+ rootOrgUnitId: string;
18
+ ownerUserId: string;
19
+ ownerPrincipalId: string;
20
+ }>;
21
+ }
@@ -0,0 +1,13 @@
1
+ import { BaseModelService } from "../utils.d.cts";
2
+ import { ScopeKind } from "../types.d.cts";
3
+ import { EffectivePermission } from "../models/effective-permission.model.d.cts";
4
+ export declare class EffectivePermissionService extends BaseModelService<EffectivePermission> {
5
+ constructor();
6
+ listForPrincipal(tenantId: string, principalId: string, ...args: any[]): Promise<EffectivePermission[]>;
7
+ listForScope(tenantId: string, scopeKind: ScopeKind, scopeId: string, ...args: any[]): Promise<EffectivePermission[]>;
8
+ hasPermission(tenantId: string, principalId: string, permissionKey: string, scopeKind: ScopeKind, scopeId: string, at?: Date, ...args: any[]): Promise<boolean>;
9
+ deleteForPrincipal(tenantId: string, principalId: string, ...args: any[]): Promise<void>;
10
+ deleteForTenant(tenantId: string, ...args: any[]): Promise<void>;
11
+ rebuildForPrincipal(tenantId: string, principalId: string, ...args: any[]): Promise<EffectivePermission[]>;
12
+ rebuildForTenant(tenantId: string, ...args: any[]): Promise<void>;
13
+ }
@@ -0,0 +1,13 @@
1
+ import { BaseModelService } from "../utils.d.mts";
2
+ import { ScopeKind } from "../types.d.mts";
3
+ import { EffectivePermission } from "../models/effective-permission.model.d.mts";
4
+ export declare class EffectivePermissionService extends BaseModelService<EffectivePermission> {
5
+ constructor();
6
+ listForPrincipal(tenantId: string, principalId: string, ...args: any[]): Promise<EffectivePermission[]>;
7
+ listForScope(tenantId: string, scopeKind: ScopeKind, scopeId: string, ...args: any[]): Promise<EffectivePermission[]>;
8
+ hasPermission(tenantId: string, principalId: string, permissionKey: string, scopeKind: ScopeKind, scopeId: string, at?: Date, ...args: any[]): Promise<boolean>;
9
+ deleteForPrincipal(tenantId: string, principalId: string, ...args: any[]): Promise<void>;
10
+ deleteForTenant(tenantId: string, ...args: any[]): Promise<void>;
11
+ rebuildForPrincipal(tenantId: string, principalId: string, ...args: any[]): Promise<EffectivePermission[]>;
12
+ rebuildForTenant(tenantId: string, ...args: any[]): Promise<void>;
13
+ }
@@ -0,0 +1,10 @@
1
+ import { BaseModelService } from "../utils.d.cts";
2
+ import { GroupMembership } from "../models/group-membership.model.d.cts";
3
+ export declare class GroupMembershipService extends BaseModelService<GroupMembership> {
4
+ constructor();
5
+ addPrincipalToGroup(tenantId: string, groupId: string, principalId: string, metadata?: Record<string, unknown>, ...args: any[]): Promise<GroupMembership>;
6
+ listGroupMembers(groupId: string, ...args: any[]): Promise<GroupMembership[]>;
7
+ listPrincipalGroups(principalId: string, ...args: any[]): Promise<GroupMembership[]>;
8
+ removePrincipalFromGroup(membershipId: string, ...args: any[]): Promise<void>;
9
+ resolveGroupPrincipalIdsForPrincipal(principalId: string, ...args: any[]): Promise<string[]>;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { BaseModelService } from "../utils.d.mts";
2
+ import { GroupMembership } from "../models/group-membership.model.d.mts";
3
+ export declare class GroupMembershipService extends BaseModelService<GroupMembership> {
4
+ constructor();
5
+ addPrincipalToGroup(tenantId: string, groupId: string, principalId: string, metadata?: Record<string, unknown>, ...args: any[]): Promise<GroupMembership>;
6
+ listGroupMembers(groupId: string, ...args: any[]): Promise<GroupMembership[]>;
7
+ listPrincipalGroups(principalId: string, ...args: any[]): Promise<GroupMembership[]>;
8
+ removePrincipalFromGroup(membershipId: string, ...args: any[]): Promise<void>;
9
+ resolveGroupPrincipalIdsForPrincipal(principalId: string, ...args: any[]): Promise<string[]>;
10
+ }
@@ -0,0 +1,9 @@
1
+ import { BaseModelService } from "../utils.d.cts";
2
+ import { Group } from "../models/group.model.d.cts";
3
+ export declare class GroupService extends BaseModelService<Group> {
4
+ constructor();
5
+ createGroup(tenantId: string, name: string, orgUnitId?: string, metadata?: Record<string, unknown>, ...args: any[]): Promise<Group>;
6
+ renameGroup(groupId: string, name: string, ...args: any[]): Promise<Group>;
7
+ moveGroupToOrgUnit(groupId: string, orgUnitId: string | undefined, ...args: any[]): Promise<Group>;
8
+ listTenantGroups(tenantId: string, ...args: any[]): Promise<Group[]>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { BaseModelService } from "../utils.d.mts";
2
+ import { Group } from "../models/group.model.d.mts";
3
+ export declare class GroupService extends BaseModelService<Group> {
4
+ constructor();
5
+ createGroup(tenantId: string, name: string, orgUnitId?: string, metadata?: Record<string, unknown>, ...args: any[]): Promise<Group>;
6
+ renameGroup(groupId: string, name: string, ...args: any[]): Promise<Group>;
7
+ moveGroupToOrgUnit(groupId: string, orgUnitId: string | undefined, ...args: any[]): Promise<Group>;
8
+ listTenantGroups(tenantId: string, ...args: any[]): Promise<Group[]>;
9
+ }
@@ -0,0 +1,24 @@
1
+ export * from "./tenant-profile.service.d.cts";
2
+ export * from "./org-unit-profile.service.d.cts";
3
+ export * from "./org-unit-closure.service.d.cts";
4
+ export * from "./inheritance-block.service.d.cts";
5
+ export * from "./tenant.service.d.cts";
6
+ export * from "./org-unit.service.d.cts";
7
+ export * from "./user.service.d.cts";
8
+ export * from "./principal.service.d.cts";
9
+ export * from "./tenant-membership.service.d.cts";
10
+ export * from "./org-unit-membership.service.d.cts";
11
+ export * from "./group.service.d.cts";
12
+ export * from "./group-membership.service.d.cts";
13
+ export * from "./permission.service.d.cts";
14
+ export * from "./role.service.d.cts";
15
+ export * from "./role-permission.service.d.cts";
16
+ export * from "./role-assignment.service.d.cts";
17
+ export * from "./effective-permission.service.d.cts";
18
+ export * from "./protected-resource.service.d.cts";
19
+ export * from "./resource-grant.service.d.cts";
20
+ export * from "./resource-lifecycle.service.d.cts";
21
+ export * from "./storage-binding.service.d.cts";
22
+ export * from "./bootstrap.service.d.cts";
23
+ export * from "./system-management.service.d.cts";
24
+ export * from "./authz.service.d.cts";
@@ -0,0 +1,24 @@
1
+ export * from "./tenant-profile.service.d.mts";
2
+ export * from "./org-unit-profile.service.d.mts";
3
+ export * from "./org-unit-closure.service.d.mts";
4
+ export * from "./inheritance-block.service.d.mts";
5
+ export * from "./tenant.service.d.mts";
6
+ export * from "./org-unit.service.d.mts";
7
+ export * from "./user.service.d.mts";
8
+ export * from "./principal.service.d.mts";
9
+ export * from "./tenant-membership.service.d.mts";
10
+ export * from "./org-unit-membership.service.d.mts";
11
+ export * from "./group.service.d.mts";
12
+ export * from "./group-membership.service.d.mts";
13
+ export * from "./permission.service.d.mts";
14
+ export * from "./role.service.d.mts";
15
+ export * from "./role-permission.service.d.mts";
16
+ export * from "./role-assignment.service.d.mts";
17
+ export * from "./effective-permission.service.d.mts";
18
+ export * from "./protected-resource.service.d.mts";
19
+ export * from "./resource-grant.service.d.mts";
20
+ export * from "./resource-lifecycle.service.d.mts";
21
+ export * from "./storage-binding.service.d.mts";
22
+ export * from "./bootstrap.service.d.mts";
23
+ export * from "./system-management.service.d.mts";
24
+ export * from "./authz.service.d.mts";
@@ -0,0 +1,10 @@
1
+ import { BaseModelService } from "../utils.d.cts";
2
+ import { PermissionCategory } from "../types.d.cts";
3
+ import { InheritanceBlock } from "../models/inheritance-block.model.d.cts";
4
+ export declare class InheritanceBlockService extends BaseModelService<InheritanceBlock> {
5
+ constructor();
6
+ blockCategory(tenantId: string, orgUnitId: string, permissionCategory: PermissionCategory, blockedFromAncestorId?: string, reason?: string, ...args: any[]): Promise<InheritanceBlock>;
7
+ unblockCategory(blockId: string, ...args: any[]): Promise<void>;
8
+ listForOrgUnit(tenantId: string, orgUnitId: string, ...args: any[]): Promise<InheritanceBlock[]>;
9
+ categoryBlockedForAncestor(tenantId: string, orgUnitId: string, ancestorOrgUnitId: string, category: PermissionCategory, ...args: any[]): Promise<boolean>;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { BaseModelService } from "../utils.d.mts";
2
+ import { PermissionCategory } from "../types.d.mts";
3
+ import { InheritanceBlock } from "../models/inheritance-block.model.d.mts";
4
+ export declare class InheritanceBlockService extends BaseModelService<InheritanceBlock> {
5
+ constructor();
6
+ blockCategory(tenantId: string, orgUnitId: string, permissionCategory: PermissionCategory, blockedFromAncestorId?: string, reason?: string, ...args: any[]): Promise<InheritanceBlock>;
7
+ unblockCategory(blockId: string, ...args: any[]): Promise<void>;
8
+ listForOrgUnit(tenantId: string, orgUnitId: string, ...args: any[]): Promise<InheritanceBlock[]>;
9
+ categoryBlockedForAncestor(tenantId: string, orgUnitId: string, ancestorOrgUnitId: string, category: PermissionCategory, ...args: any[]): Promise<boolean>;
10
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseModelService } from "../utils.d.cts";
2
+ import { OrgUnitClosure } from "../models/org-unit-closure.model.d.cts";
3
+ export declare class OrgUnitClosureService extends BaseModelService<OrgUnitClosure> {
4
+ constructor();
5
+ listAncestors(tenantId: string, orgUnitId: string, ...args: any[]): Promise<OrgUnitClosure[]>;
6
+ listDescendants(tenantId: string, orgUnitId: string, ...args: any[]): Promise<OrgUnitClosure[]>;
7
+ isAncestorOf(tenantId: string, ancestorOrgUnitId: string, descendantOrgUnitId: string, ...args: any[]): Promise<boolean>;
8
+ createSelfLink(tenantId: string, orgUnitId: string, ...args: any[]): Promise<OrgUnitClosure>;
9
+ insertAncestorLinksForNewChild(tenantId: string, parentOrgUnitId: string, childOrgUnitId: string, ...args: any[]): Promise<void>;
10
+ deleteLinksForSubtree(tenantId: string, orgUnitId: string, ...args: any[]): Promise<void>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseModelService } from "../utils.d.mts";
2
+ import { OrgUnitClosure } from "../models/org-unit-closure.model.d.mts";
3
+ export declare class OrgUnitClosureService extends BaseModelService<OrgUnitClosure> {
4
+ constructor();
5
+ listAncestors(tenantId: string, orgUnitId: string, ...args: any[]): Promise<OrgUnitClosure[]>;
6
+ listDescendants(tenantId: string, orgUnitId: string, ...args: any[]): Promise<OrgUnitClosure[]>;
7
+ isAncestorOf(tenantId: string, ancestorOrgUnitId: string, descendantOrgUnitId: string, ...args: any[]): Promise<boolean>;
8
+ createSelfLink(tenantId: string, orgUnitId: string, ...args: any[]): Promise<OrgUnitClosure>;
9
+ insertAncestorLinksForNewChild(tenantId: string, parentOrgUnitId: string, childOrgUnitId: string, ...args: any[]): Promise<void>;
10
+ deleteLinksForSubtree(tenantId: string, orgUnitId: string, ...args: any[]): Promise<void>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseModelService } from "../utils.d.cts";
2
+ import { MembershipStatus } from "../types.d.cts";
3
+ import { OrgUnitMembership } from "../models/org-unit-membership.model.d.cts";
4
+ export declare class OrgUnitMembershipService extends BaseModelService<OrgUnitMembership> {
5
+ constructor();
6
+ addUserToOrgUnit(tenantId: string, orgUnitId: string, userId: string, status?: MembershipStatus, ...args: any[]): Promise<OrgUnitMembership>;
7
+ setStatus(membershipId: string, status: MembershipStatus, ...args: any[]): Promise<OrgUnitMembership>;
8
+ listUserOrgUnits(userId: string, ...args: any[]): Promise<OrgUnitMembership[]>;
9
+ listOrgUnitUsers(orgUnitId: string, ...args: any[]): Promise<OrgUnitMembership[]>;
10
+ removeUserFromOrgUnit(membershipId: string, ...args: any[]): Promise<void>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseModelService } from "../utils.d.mts";
2
+ import { MembershipStatus } from "../types.d.mts";
3
+ import { OrgUnitMembership } from "../models/org-unit-membership.model.d.mts";
4
+ export declare class OrgUnitMembershipService extends BaseModelService<OrgUnitMembership> {
5
+ constructor();
6
+ addUserToOrgUnit(tenantId: string, orgUnitId: string, userId: string, status?: MembershipStatus, ...args: any[]): Promise<OrgUnitMembership>;
7
+ setStatus(membershipId: string, status: MembershipStatus, ...args: any[]): Promise<OrgUnitMembership>;
8
+ listUserOrgUnits(userId: string, ...args: any[]): Promise<OrgUnitMembership[]>;
9
+ listOrgUnitUsers(orgUnitId: string, ...args: any[]): Promise<OrgUnitMembership[]>;
10
+ removeUserFromOrgUnit(membershipId: string, ...args: any[]): Promise<void>;
11
+ }
@@ -0,0 +1,7 @@
1
+ import { BaseModelService } from "../utils.d.cts";
2
+ import { OrgUnitProfile } from "../models/org-unit-profile.model.d.cts";
3
+ export declare class OrgUnitProfileService extends BaseModelService<OrgUnitProfile> {
4
+ constructor();
5
+ createProfile(orgUnitId: string, profileKey: string, metadata?: Record<string, unknown>, ...args: any[]): Promise<OrgUnitProfile>;
6
+ listForOrgUnit(orgUnitId: string, ...args: any[]): Promise<OrgUnitProfile[]>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { BaseModelService } from "../utils.d.mts";
2
+ import { OrgUnitProfile } from "../models/org-unit-profile.model.d.mts";
3
+ export declare class OrgUnitProfileService extends BaseModelService<OrgUnitProfile> {
4
+ constructor();
5
+ createProfile(orgUnitId: string, profileKey: string, metadata?: Record<string, unknown>, ...args: any[]): Promise<OrgUnitProfile>;
6
+ listForOrgUnit(orgUnitId: string, ...args: any[]): Promise<OrgUnitProfile[]>;
7
+ }
@@ -0,0 +1,18 @@
1
+ import { BaseModelService } from "../utils.d.cts";
2
+ import type { CreateOrgUnitInput } from "../types.d.cts";
3
+ import { OrgUnit } from "../models/org-unit.model.d.cts";
4
+ export declare class OrgUnitService extends BaseModelService<OrgUnit> {
5
+ constructor();
6
+ private orgUnitPath;
7
+ private createProfileIfNeeded;
8
+ createRoot(tenantId: string, name: string, metadata?: Record<string, unknown>, profileKey?: string, profileMetadata?: Record<string, unknown>, ...args: any[]): Promise<OrgUnit>;
9
+ createChild(input: CreateOrgUnitInput, ...args: any[]): Promise<OrgUnit>;
10
+ listChildren(parentOrgUnitId: string, ...args: any[]): Promise<OrgUnit[]>;
11
+ listTenantOrgUnits(tenantId: string, ...args: any[]): Promise<OrgUnit[]>;
12
+ listDescendantOrgUnits(tenantId: string, orgUnitId: string, includeSelf?: boolean, ...args: any[]): Promise<OrgUnit[]>;
13
+ listAncestorOrgUnits(tenantId: string, orgUnitId: string, includeSelf?: boolean, ...args: any[]): Promise<OrgUnit[]>;
14
+ renameOrgUnit(orgUnitId: string, name: string, ...args: any[]): Promise<OrgUnit>;
15
+ moveOrgUnit(tenantId: string, orgUnitId: string, newParentOrgUnitId: string, ...args: any[]): Promise<OrgUnit>;
16
+ rebuildTenantClosure(tenantId: string, ...args: any[]): Promise<void>;
17
+ deleteOrgUnitTree(tenantId: string, orgUnitId: string, ...args: any[]): Promise<void>;
18
+ }
@@ -0,0 +1,18 @@
1
+ import { BaseModelService } from "../utils.d.mts";
2
+ import type { CreateOrgUnitInput } from "../types.d.mts";
3
+ import { OrgUnit } from "../models/org-unit.model.d.mts";
4
+ export declare class OrgUnitService extends BaseModelService<OrgUnit> {
5
+ constructor();
6
+ private orgUnitPath;
7
+ private createProfileIfNeeded;
8
+ createRoot(tenantId: string, name: string, metadata?: Record<string, unknown>, profileKey?: string, profileMetadata?: Record<string, unknown>, ...args: any[]): Promise<OrgUnit>;
9
+ createChild(input: CreateOrgUnitInput, ...args: any[]): Promise<OrgUnit>;
10
+ listChildren(parentOrgUnitId: string, ...args: any[]): Promise<OrgUnit[]>;
11
+ listTenantOrgUnits(tenantId: string, ...args: any[]): Promise<OrgUnit[]>;
12
+ listDescendantOrgUnits(tenantId: string, orgUnitId: string, includeSelf?: boolean, ...args: any[]): Promise<OrgUnit[]>;
13
+ listAncestorOrgUnits(tenantId: string, orgUnitId: string, includeSelf?: boolean, ...args: any[]): Promise<OrgUnit[]>;
14
+ renameOrgUnit(orgUnitId: string, name: string, ...args: any[]): Promise<OrgUnit>;
15
+ moveOrgUnit(tenantId: string, orgUnitId: string, newParentOrgUnitId: string, ...args: any[]): Promise<OrgUnit>;
16
+ rebuildTenantClosure(tenantId: string, ...args: any[]): Promise<void>;
17
+ deleteOrgUnitTree(tenantId: string, orgUnitId: string, ...args: any[]): Promise<void>;
18
+ }
@@ -0,0 +1,10 @@
1
+ import { BaseModelService } from "../utils.d.cts";
2
+ import { PermissionCategory, CreatePermissionInput } from "../types.d.cts";
3
+ import { Permission } from "../models/permission.model.d.cts";
4
+ export declare class PermissionService extends BaseModelService<Permission> {
5
+ constructor();
6
+ createPermission(input: CreatePermissionInput, ...args: any[]): Promise<Permission>;
7
+ getByKey(key: string, ...args: any[]): Promise<Permission>;
8
+ listByCategory(category: PermissionCategory, ...args: any[]): Promise<Permission[]>;
9
+ updateDescription(permissionId: string, description: string | undefined, ...args: any[]): Promise<Permission>;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { BaseModelService } from "../utils.d.mts";
2
+ import { PermissionCategory, CreatePermissionInput } from "../types.d.mts";
3
+ import { Permission } from "../models/permission.model.d.mts";
4
+ export declare class PermissionService extends BaseModelService<Permission> {
5
+ constructor();
6
+ createPermission(input: CreatePermissionInput, ...args: any[]): Promise<Permission>;
7
+ getByKey(key: string, ...args: any[]): Promise<Permission>;
8
+ listByCategory(category: PermissionCategory, ...args: any[]): Promise<Permission[]>;
9
+ updateDescription(permissionId: string, description: string | undefined, ...args: any[]): Promise<Permission>;
10
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseModelService } from "../utils.d.cts";
2
+ import { PrincipalKind } from "../types.d.cts";
3
+ import { Principal } from "../models/principal.model.d.cts";
4
+ export declare class PrincipalService extends BaseModelService<Principal> {
5
+ constructor();
6
+ createPrincipal(tenantId: string, kind: PrincipalKind, subjectId: string, ...args: any[]): Promise<Principal>;
7
+ getForSubject(tenantId: string, kind: PrincipalKind, subjectId: string, ...args: any[]): Promise<Principal | undefined>;
8
+ getOrCreateForSubject(tenantId: string, kind: PrincipalKind, subjectId: string, ...args: any[]): Promise<Principal>;
9
+ getUserPrincipal(tenantId: string, userId: string, ...args: any[]): Promise<Principal>;
10
+ getGroupPrincipal(tenantId: string, groupId: string, ...args: any[]): Promise<Principal>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseModelService } from "../utils.d.mts";
2
+ import { PrincipalKind } from "../types.d.mts";
3
+ import { Principal } from "../models/principal.model.d.mts";
4
+ export declare class PrincipalService extends BaseModelService<Principal> {
5
+ constructor();
6
+ createPrincipal(tenantId: string, kind: PrincipalKind, subjectId: string, ...args: any[]): Promise<Principal>;
7
+ getForSubject(tenantId: string, kind: PrincipalKind, subjectId: string, ...args: any[]): Promise<Principal | undefined>;
8
+ getOrCreateForSubject(tenantId: string, kind: PrincipalKind, subjectId: string, ...args: any[]): Promise<Principal>;
9
+ getUserPrincipal(tenantId: string, userId: string, ...args: any[]): Promise<Principal>;
10
+ getGroupPrincipal(tenantId: string, groupId: string, ...args: any[]): Promise<Principal>;
11
+ }
@@ -0,0 +1,13 @@
1
+ import { BaseModelService } from "../utils.d.cts";
2
+ import { RegisterResourceInput, ResourceVisibility } from "../types.d.cts";
3
+ import { ProtectedResource } from "../models/protected-resource.model.d.cts";
4
+ export declare class ProtectedResourceService extends BaseModelService<ProtectedResource> {
5
+ constructor();
6
+ registerResource(input: RegisterResourceInput, ...args: any[]): Promise<ProtectedResource>;
7
+ getByDomainResource(tenantId: string, resourceType: string, resourceId: string, ...args: any[]): Promise<ProtectedResource | undefined>;
8
+ moveResourceToOrgUnit(protectedResourceId: string, orgUnitId: string, ...args: any[]): Promise<ProtectedResource>;
9
+ setVisibility(protectedResourceId: string, visibility: ResourceVisibility, ...args: any[]): Promise<ProtectedResource>;
10
+ transferOwnership(protectedResourceId: string, ownerPrincipalId: string | undefined, ...args: any[]): Promise<ProtectedResource>;
11
+ listOrgUnitResources(orgUnitId: string, ...args: any[]): Promise<ProtectedResource[]>;
12
+ listTenantResources(tenantId: string, ...args: any[]): Promise<ProtectedResource[]>;
13
+ }
@@ -0,0 +1,13 @@
1
+ import { BaseModelService } from "../utils.d.mts";
2
+ import { RegisterResourceInput, ResourceVisibility } from "../types.d.mts";
3
+ import { ProtectedResource } from "../models/protected-resource.model.d.mts";
4
+ export declare class ProtectedResourceService extends BaseModelService<ProtectedResource> {
5
+ constructor();
6
+ registerResource(input: RegisterResourceInput, ...args: any[]): Promise<ProtectedResource>;
7
+ getByDomainResource(tenantId: string, resourceType: string, resourceId: string, ...args: any[]): Promise<ProtectedResource | undefined>;
8
+ moveResourceToOrgUnit(protectedResourceId: string, orgUnitId: string, ...args: any[]): Promise<ProtectedResource>;
9
+ setVisibility(protectedResourceId: string, visibility: ResourceVisibility, ...args: any[]): Promise<ProtectedResource>;
10
+ transferOwnership(protectedResourceId: string, ownerPrincipalId: string | undefined, ...args: any[]): Promise<ProtectedResource>;
11
+ listOrgUnitResources(orgUnitId: string, ...args: any[]): Promise<ProtectedResource[]>;
12
+ listTenantResources(tenantId: string, ...args: any[]): Promise<ProtectedResource[]>;
13
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseModelService } from "../utils.d.cts";
2
+ import { GrantResourceInput } from "../types.d.cts";
3
+ import { ResourceGrant } from "../models/resource-grant.model.d.cts";
4
+ export declare class ResourceGrantService extends BaseModelService<ResourceGrant> {
5
+ constructor();
6
+ grantResource(input: GrantResourceInput, ...args: any[]): Promise<ResourceGrant>;
7
+ revokeGrant(grantId: string, ...args: any[]): Promise<void>;
8
+ listResourceGrants(protectedResourceId: string, ...args: any[]): Promise<ResourceGrant[]>;
9
+ listPrincipalGrants(tenantId: string, principalId: string, ...args: any[]): Promise<ResourceGrant[]>;
10
+ hasGrant(tenantId: string, principalId: string, protectedResourceId: string, permissionKey: string, at?: Date, ...args: any[]): Promise<boolean>;
11
+ deleteAllForResource(protectedResourceId: string, ...args: any[]): Promise<void>;
12
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseModelService } from "../utils.d.mts";
2
+ import { GrantResourceInput } from "../types.d.mts";
3
+ import { ResourceGrant } from "../models/resource-grant.model.d.mts";
4
+ export declare class ResourceGrantService extends BaseModelService<ResourceGrant> {
5
+ constructor();
6
+ grantResource(input: GrantResourceInput, ...args: any[]): Promise<ResourceGrant>;
7
+ revokeGrant(grantId: string, ...args: any[]): Promise<void>;
8
+ listResourceGrants(protectedResourceId: string, ...args: any[]): Promise<ResourceGrant[]>;
9
+ listPrincipalGrants(tenantId: string, principalId: string, ...args: any[]): Promise<ResourceGrant[]>;
10
+ hasGrant(tenantId: string, principalId: string, protectedResourceId: string, permissionKey: string, at?: Date, ...args: any[]): Promise<boolean>;
11
+ deleteAllForResource(protectedResourceId: string, ...args: any[]): Promise<void>;
12
+ }
@@ -0,0 +1,10 @@
1
+ import { ResourceVisibility } from "../types.d.cts";
2
+ export declare class ResourceLifecycleService {
3
+ unregisterResource(protectedResourceId: string, ...args: any[]): Promise<void>;
4
+ resolveResourceScope(protectedResourceId: string, ...args: any[]): Promise<{
5
+ tenantId: string;
6
+ orgUnitId: string;
7
+ visibility: ResourceVisibility;
8
+ ownerPrincipalId?: string;
9
+ }>;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { ResourceVisibility } from "../types.d.mts";
2
+ export declare class ResourceLifecycleService {
3
+ unregisterResource(protectedResourceId: string, ...args: any[]): Promise<void>;
4
+ resolveResourceScope(protectedResourceId: string, ...args: any[]): Promise<{
5
+ tenantId: string;
6
+ orgUnitId: string;
7
+ visibility: ResourceVisibility;
8
+ ownerPrincipalId?: string;
9
+ }>;
10
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseModelService } from "../utils.d.cts";
2
+ import { AssignRoleInput } from "../types.d.cts";
3
+ import { RoleAssignment } from "../models/role-assignment.model.d.cts";
4
+ export declare class RoleAssignmentService extends BaseModelService<RoleAssignment> {
5
+ constructor();
6
+ assignRole(input: AssignRoleInput, ...args: any[]): Promise<RoleAssignment>;
7
+ revokeAssignment(assignmentId: string, ...args: any[]): Promise<void>;
8
+ listPrincipalAssignments(tenantId: string, principalId: string, ...args: any[]): Promise<RoleAssignment[]>;
9
+ listRoleAssignments(roleId: string, ...args: any[]): Promise<RoleAssignment[]>;
10
+ listTenantAssignments(tenantId: string, ...args: any[]): Promise<RoleAssignment[]>;
11
+ updateAssignmentWindow(assignmentId: string, startsAt: Date | undefined, expiresAt: Date | undefined, ...args: any[]): Promise<RoleAssignment>;
12
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseModelService } from "../utils.d.mts";
2
+ import { AssignRoleInput } from "../types.d.mts";
3
+ import { RoleAssignment } from "../models/role-assignment.model.d.mts";
4
+ export declare class RoleAssignmentService extends BaseModelService<RoleAssignment> {
5
+ constructor();
6
+ assignRole(input: AssignRoleInput, ...args: any[]): Promise<RoleAssignment>;
7
+ revokeAssignment(assignmentId: string, ...args: any[]): Promise<void>;
8
+ listPrincipalAssignments(tenantId: string, principalId: string, ...args: any[]): Promise<RoleAssignment[]>;
9
+ listRoleAssignments(roleId: string, ...args: any[]): Promise<RoleAssignment[]>;
10
+ listTenantAssignments(tenantId: string, ...args: any[]): Promise<RoleAssignment[]>;
11
+ updateAssignmentWindow(assignmentId: string, startsAt: Date | undefined, expiresAt: Date | undefined, ...args: any[]): Promise<RoleAssignment>;
12
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseModelService } from "../utils.d.cts";
2
+ import { RolePermission } from "../models/role-permission.model.d.cts";
3
+ export declare class RolePermissionService extends BaseModelService<RolePermission> {
4
+ constructor();
5
+ addPermissionToRole(roleId: string, permissionId: string, ...args: any[]): Promise<RolePermission>;
6
+ addPermissionKeyToRole(roleId: string, permissionKey: string, ...args: any[]): Promise<RolePermission>;
7
+ removePermissionFromRole(rolePermissionId: string, ...args: any[]): Promise<void>;
8
+ listRolePermissions(roleId: string, ...args: any[]): Promise<RolePermission[]>;
9
+ listPermissionRoles(permissionId: string, ...args: any[]): Promise<RolePermission[]>;
10
+ replaceRolePermissions(roleId: string, permissionIds: string[], ...args: any[]): Promise<RolePermission[]>;
11
+ createRoleWithPermissions(input: import("../types.d.cts").CreateRoleInput, permissionKeys: string[], ...args: any[]): Promise<import("../models/role.model.d.cts").Role>;
12
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseModelService } from "../utils.d.mts";
2
+ import { RolePermission } from "../models/role-permission.model.d.mts";
3
+ export declare class RolePermissionService extends BaseModelService<RolePermission> {
4
+ constructor();
5
+ addPermissionToRole(roleId: string, permissionId: string, ...args: any[]): Promise<RolePermission>;
6
+ addPermissionKeyToRole(roleId: string, permissionKey: string, ...args: any[]): Promise<RolePermission>;
7
+ removePermissionFromRole(rolePermissionId: string, ...args: any[]): Promise<void>;
8
+ listRolePermissions(roleId: string, ...args: any[]): Promise<RolePermission[]>;
9
+ listPermissionRoles(permissionId: string, ...args: any[]): Promise<RolePermission[]>;
10
+ replaceRolePermissions(roleId: string, permissionIds: string[], ...args: any[]): Promise<RolePermission[]>;
11
+ createRoleWithPermissions(input: import("../types.d.mts").CreateRoleInput, permissionKeys: string[], ...args: any[]): Promise<import("../models/role.model.d.mts").Role>;
12
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseModelService } from "../utils.d.cts";
2
+ import { CreateRoleInput } from "../types.d.cts";
3
+ import { Role } from "../models/role.model.d.cts";
4
+ export declare class RoleService extends BaseModelService<Role> {
5
+ constructor();
6
+ createRole(input: CreateRoleInput, ...args: any[]): Promise<Role>;
7
+ getSystemRoleByKey(key: string, ...args: any[]): Promise<Role>;
8
+ getTenantRoleByKey(tenantId: string, key: string, ...args: any[]): Promise<Role>;
9
+ renameRole(roleId: string, name: string, ...args: any[]): Promise<Role>;
10
+ updateRoleMetadata(roleId: string, metadata: Record<string, unknown> | undefined, ...args: any[]): Promise<Role>;
11
+ listTenantRoles(tenantId: string, includeSystem?: boolean, ...args: any[]): Promise<Role[]>;
12
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseModelService } from "../utils.d.mts";
2
+ import { CreateRoleInput } from "../types.d.mts";
3
+ import { Role } from "../models/role.model.d.mts";
4
+ export declare class RoleService extends BaseModelService<Role> {
5
+ constructor();
6
+ createRole(input: CreateRoleInput, ...args: any[]): Promise<Role>;
7
+ getSystemRoleByKey(key: string, ...args: any[]): Promise<Role>;
8
+ getTenantRoleByKey(tenantId: string, key: string, ...args: any[]): Promise<Role>;
9
+ renameRole(roleId: string, name: string, ...args: any[]): Promise<Role>;
10
+ updateRoleMetadata(roleId: string, metadata: Record<string, unknown> | undefined, ...args: any[]): Promise<Role>;
11
+ listTenantRoles(tenantId: string, includeSystem?: boolean, ...args: any[]): Promise<Role[]>;
12
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseModelService } from "../utils.d.cts";
2
+ import { CreateStorageBindingInput, StorageKind } from "../types.d.cts";
3
+ import { StorageBinding } from "../models/storage-binding.model.d.cts";
4
+ export declare class StorageBindingService extends BaseModelService<StorageBinding> {
5
+ constructor();
6
+ createBinding(input: CreateStorageBindingInput, ...args: any[]): Promise<StorageBinding>;
7
+ listTenantBindings(tenantId: string, ...args: any[]): Promise<StorageBinding[]>;
8
+ getBinding(tenantId: string, storageKind: StorageKind, ...args: any[]): Promise<StorageBinding | undefined>;
9
+ setBindingConfig(bindingId: string, config: Record<string, unknown> | undefined, ...args: any[]): Promise<StorageBinding>;
10
+ promoteToDedicated(bindingId: string, bindingKey: string, region: string, config?: Record<string, unknown>, ...args: any[]): Promise<StorageBinding>;
11
+ setShared(bindingId: string, bindingKey: string, region: string, config?: Record<string, unknown>, ...args: any[]): Promise<StorageBinding>;
12
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseModelService } from "../utils.d.mts";
2
+ import { CreateStorageBindingInput, StorageKind } from "../types.d.mts";
3
+ import { StorageBinding } from "../models/storage-binding.model.d.mts";
4
+ export declare class StorageBindingService extends BaseModelService<StorageBinding> {
5
+ constructor();
6
+ createBinding(input: CreateStorageBindingInput, ...args: any[]): Promise<StorageBinding>;
7
+ listTenantBindings(tenantId: string, ...args: any[]): Promise<StorageBinding[]>;
8
+ getBinding(tenantId: string, storageKind: StorageKind, ...args: any[]): Promise<StorageBinding | undefined>;
9
+ setBindingConfig(bindingId: string, config: Record<string, unknown> | undefined, ...args: any[]): Promise<StorageBinding>;
10
+ promoteToDedicated(bindingId: string, bindingKey: string, region: string, config?: Record<string, unknown>, ...args: any[]): Promise<StorageBinding>;
11
+ setShared(bindingId: string, bindingKey: string, region: string, config?: Record<string, unknown>, ...args: any[]): Promise<StorageBinding>;
12
+ }
@@ -0,0 +1,14 @@
1
+ export declare class SystemManagementService {
2
+ private membershipService;
3
+ private orgMembershipService;
4
+ private principalService;
5
+ private roleService;
6
+ private roleAssignmentService;
7
+ private effectivePermissionService;
8
+ onboardUserToTenantAndOrgUnit(tenantId: string, userId: string, orgUnitId: string, roleKey: string, ...args: any[]): Promise<{
9
+ principalId: string;
10
+ }>;
11
+ changeUserOrgRole(tenantId: string, principalId: string, orgUnitId: string, roleKey: string, inheritDown: boolean, ...args: any[]): Promise<void>;
12
+ suspendUserInTenant(tenantMembershipId: string, tenantId: string, principalId: string, ...args: any[]): Promise<void>;
13
+ reactivateUserInTenant(tenantMembershipId: string, tenantId: string, principalId: string, ...args: any[]): Promise<void>;
14
+ }
@@ -0,0 +1,14 @@
1
+ export declare class SystemManagementService {
2
+ private membershipService;
3
+ private orgMembershipService;
4
+ private principalService;
5
+ private roleService;
6
+ private roleAssignmentService;
7
+ private effectivePermissionService;
8
+ onboardUserToTenantAndOrgUnit(tenantId: string, userId: string, orgUnitId: string, roleKey: string, ...args: any[]): Promise<{
9
+ principalId: string;
10
+ }>;
11
+ changeUserOrgRole(tenantId: string, principalId: string, orgUnitId: string, roleKey: string, inheritDown: boolean, ...args: any[]): Promise<void>;
12
+ suspendUserInTenant(tenantMembershipId: string, tenantId: string, principalId: string, ...args: any[]): Promise<void>;
13
+ reactivateUserInTenant(tenantMembershipId: string, tenantId: string, principalId: string, ...args: any[]): Promise<void>;
14
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseModelService } from "../utils.d.cts";
2
+ import { MembershipStatus } from "../types.d.cts";
3
+ import { TenantMembership } from "../models/tenant-membership.model.d.cts";
4
+ export declare class TenantMembershipService extends BaseModelService<TenantMembership> {
5
+ constructor();
6
+ addUserToTenant(tenantId: string, userId: string, status?: MembershipStatus, ...args: any[]): Promise<TenantMembership>;
7
+ setStatus(membershipId: string, status: MembershipStatus, ...args: any[]): Promise<TenantMembership>;
8
+ listUserTenants(userId: string, ...args: any[]): Promise<TenantMembership[]>;
9
+ listTenantUsers(tenantId: string, ...args: any[]): Promise<TenantMembership[]>;
10
+ removeUserFromTenant(membershipId: string, ...args: any[]): Promise<void>;
11
+ }