@equinor/fusion-services 0.2.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 (525) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +78 -0
  3. package/dist/esm/index.js +25 -0
  4. package/dist/esm/index.js.map +1 -0
  5. package/dist/esm/roles/endpoints/access-roles.get.js +118 -0
  6. package/dist/esm/roles/endpoints/access-roles.get.js.map +1 -0
  7. package/dist/esm/roles/endpoints/account-access-role-assignments.get.js +133 -0
  8. package/dist/esm/roles/endpoints/account-access-role-assignments.get.js.map +1 -0
  9. package/dist/esm/roles/endpoints/account-active-access-role-assignments.get.js +115 -0
  10. package/dist/esm/roles/endpoints/account-active-access-role-assignments.get.js.map +1 -0
  11. package/dist/esm/roles/endpoints/account-claimable-role-assignment-activation.get.js +118 -0
  12. package/dist/esm/roles/endpoints/account-claimable-role-assignment-activation.get.js.map +1 -0
  13. package/dist/esm/roles/endpoints/account-claimable-role-assignment-activation.post.js +124 -0
  14. package/dist/esm/roles/endpoints/account-claimable-role-assignment-activation.post.js.map +1 -0
  15. package/dist/esm/roles/endpoints/account-claimable-role-assignment-deactivation.post.js +120 -0
  16. package/dist/esm/roles/endpoints/account-claimable-role-assignment-deactivation.post.js.map +1 -0
  17. package/dist/esm/roles/endpoints/account-claimable-role-assignments.get.js +118 -0
  18. package/dist/esm/roles/endpoints/account-claimable-role-assignments.get.js.map +1 -0
  19. package/dist/esm/roles/endpoints/account-consolidated-claimable-role-assignments.get.js +120 -0
  20. package/dist/esm/roles/endpoints/account-consolidated-claimable-role-assignments.get.js.map +1 -0
  21. package/dist/esm/roles/endpoints/account-consolidated-role-assignments.get.js +116 -0
  22. package/dist/esm/roles/endpoints/account-consolidated-role-assignments.get.js.map +1 -0
  23. package/dist/esm/roles/endpoints/account-role-assignments.get.js +115 -0
  24. package/dist/esm/roles/endpoints/account-role-assignments.get.js.map +1 -0
  25. package/dist/esm/roles/endpoints/claimable-role-access-role.delete.js +118 -0
  26. package/dist/esm/roles/endpoints/claimable-role-access-role.delete.js.map +1 -0
  27. package/dist/esm/roles/endpoints/claimable-role-access-roles.post.js +118 -0
  28. package/dist/esm/roles/endpoints/claimable-role-access-roles.post.js.map +1 -0
  29. package/dist/esm/roles/endpoints/claimable-role-assignment-activations-by-assignment.get.js +128 -0
  30. package/dist/esm/roles/endpoints/claimable-role-assignment-activations-by-assignment.get.js.map +1 -0
  31. package/dist/esm/roles/endpoints/claimable-role-assignment-activations.get.js +106 -0
  32. package/dist/esm/roles/endpoints/claimable-role-assignment-activations.get.js.map +1 -0
  33. package/dist/esm/roles/endpoints/claimable-role-assignment.delete.js +118 -0
  34. package/dist/esm/roles/endpoints/claimable-role-assignment.delete.js.map +1 -0
  35. package/dist/esm/roles/endpoints/claimable-role-assignment.get.js +112 -0
  36. package/dist/esm/roles/endpoints/claimable-role-assignment.get.js.map +1 -0
  37. package/dist/esm/roles/endpoints/claimable-role-assignment.patch.js +122 -0
  38. package/dist/esm/roles/endpoints/claimable-role-assignment.patch.js.map +1 -0
  39. package/dist/esm/roles/endpoints/claimable-role-assignments-by-external-identifier.delete.js +121 -0
  40. package/dist/esm/roles/endpoints/claimable-role-assignments-by-external-identifier.delete.js.map +1 -0
  41. package/dist/esm/roles/endpoints/claimable-role-assignments.get.js +127 -0
  42. package/dist/esm/roles/endpoints/claimable-role-assignments.get.js.map +1 -0
  43. package/dist/esm/roles/endpoints/claimable-role-assignments.post.js +120 -0
  44. package/dist/esm/roles/endpoints/claimable-role-assignments.post.js.map +1 -0
  45. package/dist/esm/roles/endpoints/claimable-role.delete.js +112 -0
  46. package/dist/esm/roles/endpoints/claimable-role.delete.js.map +1 -0
  47. package/dist/esm/roles/endpoints/claimable-role.get.js +108 -0
  48. package/dist/esm/roles/endpoints/claimable-role.get.js.map +1 -0
  49. package/dist/esm/roles/endpoints/claimable-role.patch.js +118 -0
  50. package/dist/esm/roles/endpoints/claimable-role.patch.js.map +1 -0
  51. package/dist/esm/roles/endpoints/claimable-roles.get.js +127 -0
  52. package/dist/esm/roles/endpoints/claimable-roles.get.js.map +1 -0
  53. package/dist/esm/roles/endpoints/claimable-roles.post.js +114 -0
  54. package/dist/esm/roles/endpoints/claimable-roles.post.js.map +1 -0
  55. package/dist/esm/roles/endpoints/public-schema.get.js +104 -0
  56. package/dist/esm/roles/endpoints/public-schema.get.js.map +1 -0
  57. package/dist/esm/roles/endpoints/role-access-role.delete.js +115 -0
  58. package/dist/esm/roles/endpoints/role-access-role.delete.js.map +1 -0
  59. package/dist/esm/roles/endpoints/role-access-roles.post.js +116 -0
  60. package/dist/esm/roles/endpoints/role-access-roles.post.js.map +1 -0
  61. package/dist/esm/roles/endpoints/role-assignment.delete.js +115 -0
  62. package/dist/esm/roles/endpoints/role-assignment.delete.js.map +1 -0
  63. package/dist/esm/roles/endpoints/role-assignment.get.js +113 -0
  64. package/dist/esm/roles/endpoints/role-assignment.get.js.map +1 -0
  65. package/dist/esm/roles/endpoints/role-assignment.patch.js +119 -0
  66. package/dist/esm/roles/endpoints/role-assignment.patch.js.map +1 -0
  67. package/dist/esm/roles/endpoints/role-assignments-by-external-identifier.delete.js +117 -0
  68. package/dist/esm/roles/endpoints/role-assignments-by-external-identifier.delete.js.map +1 -0
  69. package/dist/esm/roles/endpoints/role-assignments-delete.post.js +118 -0
  70. package/dist/esm/roles/endpoints/role-assignments-delete.post.js.map +1 -0
  71. package/dist/esm/roles/endpoints/role-assignments.get.js +128 -0
  72. package/dist/esm/roles/endpoints/role-assignments.get.js.map +1 -0
  73. package/dist/esm/roles/endpoints/role-assignments.post.js +118 -0
  74. package/dist/esm/roles/endpoints/role-assignments.post.js.map +1 -0
  75. package/dist/esm/roles/endpoints/role-binding-configuration-expired-history.delete.js +112 -0
  76. package/dist/esm/roles/endpoints/role-binding-configuration-expired-history.delete.js.map +1 -0
  77. package/dist/esm/roles/endpoints/role-binding-configuration-history.get.js +122 -0
  78. package/dist/esm/roles/endpoints/role-binding-configuration-history.get.js.map +1 -0
  79. package/dist/esm/roles/endpoints/role-binding-configuration-history.post.js +120 -0
  80. package/dist/esm/roles/endpoints/role-binding-configuration-history.post.js.map +1 -0
  81. package/dist/esm/roles/endpoints/role-binding-configuration-notifications.get.js +123 -0
  82. package/dist/esm/roles/endpoints/role-binding-configuration-notifications.get.js.map +1 -0
  83. package/dist/esm/roles/endpoints/role-binding-configuration-notifications.post.js +121 -0
  84. package/dist/esm/roles/endpoints/role-binding-configuration-notifications.post.js.map +1 -0
  85. package/dist/esm/roles/endpoints/role-binding-configuration-status.get.js +106 -0
  86. package/dist/esm/roles/endpoints/role-binding-configuration-status.get.js.map +1 -0
  87. package/dist/esm/roles/endpoints/role-binding-configuration-status.patch.js +116 -0
  88. package/dist/esm/roles/endpoints/role-binding-configuration-status.patch.js.map +1 -0
  89. package/dist/esm/roles/endpoints/role-binding-configuration.delete.js +110 -0
  90. package/dist/esm/roles/endpoints/role-binding-configuration.delete.js.map +1 -0
  91. package/dist/esm/roles/endpoints/role-binding-configuration.get.js +114 -0
  92. package/dist/esm/roles/endpoints/role-binding-configuration.get.js.map +1 -0
  93. package/dist/esm/roles/endpoints/role-binding-configuration.patch.js +115 -0
  94. package/dist/esm/roles/endpoints/role-binding-configuration.patch.js.map +1 -0
  95. package/dist/esm/roles/endpoints/role-binding-configurations.get.js +119 -0
  96. package/dist/esm/roles/endpoints/role-binding-configurations.get.js.map +1 -0
  97. package/dist/esm/roles/endpoints/role-binding-configurations.post.js +116 -0
  98. package/dist/esm/roles/endpoints/role-binding-configurations.post.js.map +1 -0
  99. package/dist/esm/roles/endpoints/role.delete.js +111 -0
  100. package/dist/esm/roles/endpoints/role.delete.js.map +1 -0
  101. package/dist/esm/roles/endpoints/role.get.js +110 -0
  102. package/dist/esm/roles/endpoints/role.get.js.map +1 -0
  103. package/dist/esm/roles/endpoints/role.patch.js +117 -0
  104. package/dist/esm/roles/endpoints/role.patch.js.map +1 -0
  105. package/dist/esm/roles/endpoints/roles-subscription.put.js +115 -0
  106. package/dist/esm/roles/endpoints/roles-subscription.put.js.map +1 -0
  107. package/dist/esm/roles/endpoints/roles.get.js +125 -0
  108. package/dist/esm/roles/endpoints/roles.get.js.map +1 -0
  109. package/dist/esm/roles/endpoints/roles.post.js +116 -0
  110. package/dist/esm/roles/endpoints/roles.post.js.map +1 -0
  111. package/dist/esm/roles/endpoints/scope-type.delete.js +110 -0
  112. package/dist/esm/roles/endpoints/scope-type.delete.js.map +1 -0
  113. package/dist/esm/roles/endpoints/scope-type.get.js +103 -0
  114. package/dist/esm/roles/endpoints/scope-type.get.js.map +1 -0
  115. package/dist/esm/roles/endpoints/scope-type.patch.js +116 -0
  116. package/dist/esm/roles/endpoints/scope-type.patch.js.map +1 -0
  117. package/dist/esm/roles/endpoints/scope-types.get.js +98 -0
  118. package/dist/esm/roles/endpoints/scope-types.get.js.map +1 -0
  119. package/dist/esm/roles/endpoints/scope-types.post.js +113 -0
  120. package/dist/esm/roles/endpoints/scope-types.post.js.map +1 -0
  121. package/dist/esm/roles/endpoints/system-access-role-assignment.delete.js +119 -0
  122. package/dist/esm/roles/endpoints/system-access-role-assignment.delete.js.map +1 -0
  123. package/dist/esm/roles/endpoints/system-access-role-assignment.get.js +119 -0
  124. package/dist/esm/roles/endpoints/system-access-role-assignment.get.js.map +1 -0
  125. package/dist/esm/roles/endpoints/system-access-role-assignment.patch.js +123 -0
  126. package/dist/esm/roles/endpoints/system-access-role-assignment.patch.js.map +1 -0
  127. package/dist/esm/roles/endpoints/system-access-role-assignments.get.js +134 -0
  128. package/dist/esm/roles/endpoints/system-access-role-assignments.get.js.map +1 -0
  129. package/dist/esm/roles/endpoints/system-access-role-assignments.post.js +120 -0
  130. package/dist/esm/roles/endpoints/system-access-role-assignments.post.js.map +1 -0
  131. package/dist/esm/roles/endpoints/system-access-role.delete.js +115 -0
  132. package/dist/esm/roles/endpoints/system-access-role.delete.js.map +1 -0
  133. package/dist/esm/roles/endpoints/system-access-role.get.js +109 -0
  134. package/dist/esm/roles/endpoints/system-access-role.get.js.map +1 -0
  135. package/dist/esm/roles/endpoints/system-access-role.patch.js +119 -0
  136. package/dist/esm/roles/endpoints/system-access-role.patch.js.map +1 -0
  137. package/dist/esm/roles/endpoints/system-access-roles.get.js +106 -0
  138. package/dist/esm/roles/endpoints/system-access-roles.get.js.map +1 -0
  139. package/dist/esm/roles/endpoints/system-access-roles.post.js +116 -0
  140. package/dist/esm/roles/endpoints/system-access-roles.post.js.map +1 -0
  141. package/dist/esm/roles/endpoints/system.delete.js +108 -0
  142. package/dist/esm/roles/endpoints/system.delete.js.map +1 -0
  143. package/dist/esm/roles/endpoints/system.get.js +101 -0
  144. package/dist/esm/roles/endpoints/system.get.js.map +1 -0
  145. package/dist/esm/roles/endpoints/system.patch.js +114 -0
  146. package/dist/esm/roles/endpoints/system.patch.js.map +1 -0
  147. package/dist/esm/roles/endpoints/systems.get.js +113 -0
  148. package/dist/esm/roles/endpoints/systems.get.js.map +1 -0
  149. package/dist/esm/roles/endpoints/systems.post.js +113 -0
  150. package/dist/esm/roles/endpoints/systems.post.js.map +1 -0
  151. package/dist/esm/roles/index.js +190 -0
  152. package/dist/esm/roles/index.js.map +1 -0
  153. package/dist/esm/roles/static.js +29 -0
  154. package/dist/esm/roles/static.js.map +1 -0
  155. package/dist/esm/roles/types.js +7 -0
  156. package/dist/esm/roles/types.js.map +1 -0
  157. package/dist/esm/roles/v1/schemas/access-role-mapping-schema-v1.js +11 -0
  158. package/dist/esm/roles/v1/schemas/access-role-mapping-schema-v1.js.map +1 -0
  159. package/dist/esm/roles/v1/schemas/activate-assigned-claimable-role-request-schema-v1.js +14 -0
  160. package/dist/esm/roles/v1/schemas/activate-assigned-claimable-role-request-schema-v1.js.map +1 -0
  161. package/dist/esm/roles/v1/schemas/add-claimable-role-access-role-request-schema-v1.js +13 -0
  162. package/dist/esm/roles/v1/schemas/add-claimable-role-access-role-request-schema-v1.js.map +1 -0
  163. package/dist/esm/roles/v1/schemas/add-role-access-role-request-schema-v1.js +13 -0
  164. package/dist/esm/roles/v1/schemas/add-role-access-role-request-schema-v1.js.map +1 -0
  165. package/dist/esm/roles/v1/schemas/api-access-role-assignment-schema-v1.js +46 -0
  166. package/dist/esm/roles/v1/schemas/api-access-role-assignment-schema-v1.js.map +1 -0
  167. package/dist/esm/roles/v1/schemas/api-access-role-mapping-schema-v1.js +15 -0
  168. package/dist/esm/roles/v1/schemas/api-access-role-mapping-schema-v1.js.map +1 -0
  169. package/dist/esm/roles/v1/schemas/api-access-role-schema-v1.js +16 -0
  170. package/dist/esm/roles/v1/schemas/api-access-role-schema-v1.js.map +1 -0
  171. package/dist/esm/roles/v1/schemas/api-account-access-role-assignment-schema-v1.js +46 -0
  172. package/dist/esm/roles/v1/schemas/api-account-access-role-assignment-schema-v1.js.map +1 -0
  173. package/dist/esm/roles/v1/schemas/api-account-access-role-schema-v1.js +9 -0
  174. package/dist/esm/roles/v1/schemas/api-account-access-role-schema-v1.js.map +1 -0
  175. package/dist/esm/roles/v1/schemas/api-account-active-access-role-assignment-schema-v1.js +21 -0
  176. package/dist/esm/roles/v1/schemas/api-account-active-access-role-assignment-schema-v1.js.map +1 -0
  177. package/dist/esm/roles/v1/schemas/api-account-claimable-role-assignment-schema-v1.js +11 -0
  178. package/dist/esm/roles/v1/schemas/api-account-claimable-role-assignment-schema-v1.js.map +1 -0
  179. package/dist/esm/roles/v1/schemas/api-account-role-assignment-schema-v1.js +11 -0
  180. package/dist/esm/roles/v1/schemas/api-account-role-assignment-schema-v1.js.map +1 -0
  181. package/dist/esm/roles/v1/schemas/api-account-schema-v1.js +25 -0
  182. package/dist/esm/roles/v1/schemas/api-account-schema-v1.js.map +1 -0
  183. package/dist/esm/roles/v1/schemas/api-binding-execution-record-schema-v1.js +52 -0
  184. package/dist/esm/roles/v1/schemas/api-binding-execution-record-schema-v1.js.map +1 -0
  185. package/dist/esm/roles/v1/schemas/api-binding-notification-record-schema-v1.js +32 -0
  186. package/dist/esm/roles/v1/schemas/api-binding-notification-record-schema-v1.js.map +1 -0
  187. package/dist/esm/roles/v1/schemas/api-claimable-access-role-mapping-schema-v1.js +15 -0
  188. package/dist/esm/roles/v1/schemas/api-claimable-access-role-mapping-schema-v1.js.map +1 -0
  189. package/dist/esm/roles/v1/schemas/api-claimable-role-assignment-activation-schema-v1.js +21 -0
  190. package/dist/esm/roles/v1/schemas/api-claimable-role-assignment-activation-schema-v1.js.map +1 -0
  191. package/dist/esm/roles/v1/schemas/api-claimable-role-assignment-schema-v1.js +48 -0
  192. package/dist/esm/roles/v1/schemas/api-claimable-role-assignment-schema-v1.js.map +1 -0
  193. package/dist/esm/roles/v1/schemas/api-claimable-role-schema-v1.js +18 -0
  194. package/dist/esm/roles/v1/schemas/api-claimable-role-schema-v1.js.map +1 -0
  195. package/dist/esm/roles/v1/schemas/api-claimable-role-scope-schema-v1.js +16 -0
  196. package/dist/esm/roles/v1/schemas/api-claimable-role-scope-schema-v1.js.map +1 -0
  197. package/dist/esm/roles/v1/schemas/api-consolidated-assignment-entry-schema-v1.js +25 -0
  198. package/dist/esm/roles/v1/schemas/api-consolidated-assignment-entry-schema-v1.js.map +1 -0
  199. package/dist/esm/roles/v1/schemas/api-consolidated-claimable-role-assignment-schema-v1.js +51 -0
  200. package/dist/esm/roles/v1/schemas/api-consolidated-claimable-role-assignment-schema-v1.js.map +1 -0
  201. package/dist/esm/roles/v1/schemas/api-consolidated-claimable-role-ref-schema-v1.js +18 -0
  202. package/dist/esm/roles/v1/schemas/api-consolidated-claimable-role-ref-schema-v1.js.map +1 -0
  203. package/dist/esm/roles/v1/schemas/api-consolidated-role-assignment-schema-v1.js +41 -0
  204. package/dist/esm/roles/v1/schemas/api-consolidated-role-assignment-schema-v1.js.map +1 -0
  205. package/dist/esm/roles/v1/schemas/api-extended-access-role-schema-v1.js +9 -0
  206. package/dist/esm/roles/v1/schemas/api-extended-access-role-schema-v1.js.map +1 -0
  207. package/dist/esm/roles/v1/schemas/api-extended-claimable-role-assignment-activation-schema-v1.js +24 -0
  208. package/dist/esm/roles/v1/schemas/api-extended-claimable-role-assignment-activation-schema-v1.js.map +1 -0
  209. package/dist/esm/roles/v1/schemas/api-owner-schema-v1.js +12 -0
  210. package/dist/esm/roles/v1/schemas/api-owner-schema-v1.js.map +1 -0
  211. package/dist/esm/roles/v1/schemas/api-paged-collection-schema-v1.js +41 -0
  212. package/dist/esm/roles/v1/schemas/api-paged-collection-schema-v1.js.map +1 -0
  213. package/dist/esm/roles/v1/schemas/api-purge-binding-result-schema-v1.js +12 -0
  214. package/dist/esm/roles/v1/schemas/api-purge-binding-result-schema-v1.js.map +1 -0
  215. package/dist/esm/roles/v1/schemas/api-role-assignment-schema-v1.js +38 -0
  216. package/dist/esm/roles/v1/schemas/api-role-assignment-schema-v1.js.map +1 -0
  217. package/dist/esm/roles/v1/schemas/api-role-binding-configuration-schema-v1.js +36 -0
  218. package/dist/esm/roles/v1/schemas/api-role-binding-configuration-schema-v1.js.map +1 -0
  219. package/dist/esm/roles/v1/schemas/api-role-binding-configuration-status-schema-v1.js +28 -0
  220. package/dist/esm/roles/v1/schemas/api-role-binding-configuration-status-schema-v1.js.map +1 -0
  221. package/dist/esm/roles/v1/schemas/api-role-schema-v1.js +24 -0
  222. package/dist/esm/roles/v1/schemas/api-role-schema-v1.js.map +1 -0
  223. package/dist/esm/roles/v1/schemas/api-role-scope-schema-v1.js +16 -0
  224. package/dist/esm/roles/v1/schemas/api-role-scope-schema-v1.js.map +1 -0
  225. package/dist/esm/roles/v1/schemas/api-scope-schema-v1.js +16 -0
  226. package/dist/esm/roles/v1/schemas/api-scope-schema-v1.js.map +1 -0
  227. package/dist/esm/roles/v1/schemas/api-scope-type-schema-v1.js +13 -0
  228. package/dist/esm/roles/v1/schemas/api-scope-type-schema-v1.js.map +1 -0
  229. package/dist/esm/roles/v1/schemas/api-scope-values-schema-v1.js +22 -0
  230. package/dist/esm/roles/v1/schemas/api-scope-values-schema-v1.js.map +1 -0
  231. package/dist/esm/roles/v1/schemas/api-simple-claimable-role-assignment-schema-v1.js +12 -0
  232. package/dist/esm/roles/v1/schemas/api-simple-claimable-role-assignment-schema-v1.js.map +1 -0
  233. package/dist/esm/roles/v1/schemas/api-simple-claimable-role-schema-v1.js +27 -0
  234. package/dist/esm/roles/v1/schemas/api-simple-claimable-role-schema-v1.js.map +1 -0
  235. package/dist/esm/roles/v1/schemas/api-simple-role-assignment-schema-v1.js +12 -0
  236. package/dist/esm/roles/v1/schemas/api-simple-role-assignment-schema-v1.js.map +1 -0
  237. package/dist/esm/roles/v1/schemas/api-simple-role-schema-v1.js +18 -0
  238. package/dist/esm/roles/v1/schemas/api-simple-role-schema-v1.js.map +1 -0
  239. package/dist/esm/roles/v1/schemas/api-simple-system-schema-v1.js +11 -0
  240. package/dist/esm/roles/v1/schemas/api-simple-system-schema-v1.js.map +1 -0
  241. package/dist/esm/roles/v1/schemas/api-subscription-type-schema-v1.js +6 -0
  242. package/dist/esm/roles/v1/schemas/api-subscription-type-schema-v1.js.map +1 -0
  243. package/dist/esm/roles/v1/schemas/api-system-schema-v1.js +11 -0
  244. package/dist/esm/roles/v1/schemas/api-system-schema-v1.js.map +1 -0
  245. package/dist/esm/roles/v1/schemas/assign-access-role-request-schema-v1.js +32 -0
  246. package/dist/esm/roles/v1/schemas/assign-access-role-request-schema-v1.js.map +1 -0
  247. package/dist/esm/roles/v1/schemas/assign-claimable-role-request-schema-v1.js +32 -0
  248. package/dist/esm/roles/v1/schemas/assign-claimable-role-request-schema-v1.js.map +1 -0
  249. package/dist/esm/roles/v1/schemas/assign-role-request-schema-v1.js +32 -0
  250. package/dist/esm/roles/v1/schemas/assign-role-request-schema-v1.js.map +1 -0
  251. package/dist/esm/roles/v1/schemas/claimable-role-binding-schema-v1.js +14 -0
  252. package/dist/esm/roles/v1/schemas/claimable-role-binding-schema-v1.js.map +1 -0
  253. package/dist/esm/roles/v1/schemas/create-access-role-request-schema-v1.js +19 -0
  254. package/dist/esm/roles/v1/schemas/create-access-role-request-schema-v1.js.map +1 -0
  255. package/dist/esm/roles/v1/schemas/create-binding-execution-record-request-schema-v1.js +49 -0
  256. package/dist/esm/roles/v1/schemas/create-binding-execution-record-request-schema-v1.js.map +1 -0
  257. package/dist/esm/roles/v1/schemas/create-binding-execution-record-response-schema-v1.js +9 -0
  258. package/dist/esm/roles/v1/schemas/create-binding-execution-record-response-schema-v1.js.map +1 -0
  259. package/dist/esm/roles/v1/schemas/create-binding-notification-record-request-schema-v1.js +23 -0
  260. package/dist/esm/roles/v1/schemas/create-binding-notification-record-request-schema-v1.js.map +1 -0
  261. package/dist/esm/roles/v1/schemas/create-binding-notification-record-response-schema-v1.js +9 -0
  262. package/dist/esm/roles/v1/schemas/create-binding-notification-record-response-schema-v1.js.map +1 -0
  263. package/dist/esm/roles/v1/schemas/create-claimable-role-request-schema-v1.js +27 -0
  264. package/dist/esm/roles/v1/schemas/create-claimable-role-request-schema-v1.js.map +1 -0
  265. package/dist/esm/roles/v1/schemas/create-role-binding-configuration-request-schema-v1.js +27 -0
  266. package/dist/esm/roles/v1/schemas/create-role-binding-configuration-request-schema-v1.js.map +1 -0
  267. package/dist/esm/roles/v1/schemas/create-role-request-schema-v1.js +27 -0
  268. package/dist/esm/roles/v1/schemas/create-role-request-schema-v1.js.map +1 -0
  269. package/dist/esm/roles/v1/schemas/create-scope-type-request-schema-v1.js +14 -0
  270. package/dist/esm/roles/v1/schemas/create-scope-type-request-schema-v1.js.map +1 -0
  271. package/dist/esm/roles/v1/schemas/delete-role-assignments-request-schema-v1.js +13 -0
  272. package/dist/esm/roles/v1/schemas/delete-role-assignments-request-schema-v1.js.map +1 -0
  273. package/dist/esm/roles/v1/schemas/entra-group-binding-schema-v1.js +24 -0
  274. package/dist/esm/roles/v1/schemas/entra-group-binding-schema-v1.js.map +1 -0
  275. package/dist/esm/roles/v1/schemas/entra-group-schema-v1.js +11 -0
  276. package/dist/esm/roles/v1/schemas/entra-group-schema-v1.js.map +1 -0
  277. package/dist/esm/roles/v1/schemas/expand-schema-v1.js +4 -0
  278. package/dist/esm/roles/v1/schemas/expand-schema-v1.js.map +1 -0
  279. package/dist/esm/roles/v1/schemas/filter-schema-v1.js +4 -0
  280. package/dist/esm/roles/v1/schemas/filter-schema-v1.js.map +1 -0
  281. package/dist/esm/roles/v1/schemas/include-deleted-schema-v1.js +7 -0
  282. package/dist/esm/roles/v1/schemas/include-deleted-schema-v1.js.map +1 -0
  283. package/dist/esm/roles/v1/schemas/org-chart-assign-entry-schema-v1.js +14 -0
  284. package/dist/esm/roles/v1/schemas/org-chart-assign-entry-schema-v1.js.map +1 -0
  285. package/dist/esm/roles/v1/schemas/org-chart-assignment-schema-v1.js +18 -0
  286. package/dist/esm/roles/v1/schemas/org-chart-assignment-schema-v1.js.map +1 -0
  287. package/dist/esm/roles/v1/schemas/org-chart-binding-schema-v1.js +19 -0
  288. package/dist/esm/roles/v1/schemas/org-chart-binding-schema-v1.js.map +1 -0
  289. package/dist/esm/roles/v1/schemas/org-chart-context-schema-v1.js +22 -0
  290. package/dist/esm/roles/v1/schemas/org-chart-context-schema-v1.js.map +1 -0
  291. package/dist/esm/roles/v1/schemas/org-chart-match-criteria-schema-v1.js +16 -0
  292. package/dist/esm/roles/v1/schemas/org-chart-match-criteria-schema-v1.js.map +1 -0
  293. package/dist/esm/roles/v1/schemas/org-chart-profile-schema-v1.js +15 -0
  294. package/dist/esm/roles/v1/schemas/org-chart-profile-schema-v1.js.map +1 -0
  295. package/dist/esm/roles/v1/schemas/org-chart-rule-schema-v1.js +13 -0
  296. package/dist/esm/roles/v1/schemas/org-chart-rule-schema-v1.js.map +1 -0
  297. package/dist/esm/roles/v1/schemas/org-chart-scope-schema-v1.js +20 -0
  298. package/dist/esm/roles/v1/schemas/org-chart-scope-schema-v1.js.map +1 -0
  299. package/dist/esm/roles/v1/schemas/owner-info-schema-v1.js +11 -0
  300. package/dist/esm/roles/v1/schemas/owner-info-schema-v1.js.map +1 -0
  301. package/dist/esm/roles/v1/schemas/register-system-request-schema-v1.js +17 -0
  302. package/dist/esm/roles/v1/schemas/register-system-request-schema-v1.js.map +1 -0
  303. package/dist/esm/roles/v1/schemas/request-claimable-role-scope-schema-v1.js +19 -0
  304. package/dist/esm/roles/v1/schemas/request-claimable-role-scope-schema-v1.js.map +1 -0
  305. package/dist/esm/roles/v1/schemas/request-role-scope-schema-v1.js +19 -0
  306. package/dist/esm/roles/v1/schemas/request-role-scope-schema-v1.js.map +1 -0
  307. package/dist/esm/roles/v1/schemas/request-scope-schema-v1.js +19 -0
  308. package/dist/esm/roles/v1/schemas/request-scope-schema-v1.js.map +1 -0
  309. package/dist/esm/roles/v1/schemas/role-binding-configuration-binding-schema-v1.js +13 -0
  310. package/dist/esm/roles/v1/schemas/role-binding-configuration-binding-schema-v1.js.map +1 -0
  311. package/dist/esm/roles/v1/schemas/role-binding-schema-v1.js +14 -0
  312. package/dist/esm/roles/v1/schemas/role-binding-schema-v1.js.map +1 -0
  313. package/dist/esm/roles/v1/schemas/scope-binding-schema-v1.js +19 -0
  314. package/dist/esm/roles/v1/schemas/scope-binding-schema-v1.js.map +1 -0
  315. package/dist/esm/roles/v1/schemas/skip-schema-v1.js +9 -0
  316. package/dist/esm/roles/v1/schemas/skip-schema-v1.js.map +1 -0
  317. package/dist/esm/roles/v1/schemas/subscription-request-schema-v1.js +19 -0
  318. package/dist/esm/roles/v1/schemas/subscription-request-schema-v1.js.map +1 -0
  319. package/dist/esm/roles/v1/schemas/top-schema-v1.js +10 -0
  320. package/dist/esm/roles/v1/schemas/top-schema-v1.js.map +1 -0
  321. package/dist/esm/roles/v1/schemas/update-access-role-assignment-request-schema-v1.js +12 -0
  322. package/dist/esm/roles/v1/schemas/update-access-role-assignment-request-schema-v1.js.map +1 -0
  323. package/dist/esm/roles/v1/schemas/update-access-role-request-schema-v1.js +12 -0
  324. package/dist/esm/roles/v1/schemas/update-access-role-request-schema-v1.js.map +1 -0
  325. package/dist/esm/roles/v1/schemas/update-claimable-role-assignment-request-schema-v1.js +12 -0
  326. package/dist/esm/roles/v1/schemas/update-claimable-role-assignment-request-schema-v1.js.map +1 -0
  327. package/dist/esm/roles/v1/schemas/update-claimable-role-request-schema-v1.js +22 -0
  328. package/dist/esm/roles/v1/schemas/update-claimable-role-request-schema-v1.js.map +1 -0
  329. package/dist/esm/roles/v1/schemas/update-role-assignment-request-schema-v1.js +12 -0
  330. package/dist/esm/roles/v1/schemas/update-role-assignment-request-schema-v1.js.map +1 -0
  331. package/dist/esm/roles/v1/schemas/update-role-binding-configuration-request-schema-v1.js +32 -0
  332. package/dist/esm/roles/v1/schemas/update-role-binding-configuration-request-schema-v1.js.map +1 -0
  333. package/dist/esm/roles/v1/schemas/update-role-binding-configuration-status-request-schema-v1.js +14 -0
  334. package/dist/esm/roles/v1/schemas/update-role-binding-configuration-status-request-schema-v1.js.map +1 -0
  335. package/dist/esm/roles/v1/schemas/update-role-request-schema-v1.js +22 -0
  336. package/dist/esm/roles/v1/schemas/update-role-request-schema-v1.js.map +1 -0
  337. package/dist/esm/roles/v1/schemas/update-scope-request-schema-v1.js +12 -0
  338. package/dist/esm/roles/v1/schemas/update-scope-request-schema-v1.js.map +1 -0
  339. package/dist/esm/roles/v1/schemas/update-system-request-schema-v1.js +18 -0
  340. package/dist/esm/roles/v1/schemas/update-system-request-schema-v1.js.map +1 -0
  341. package/dist/esm/roles/v1/types.js +19 -0
  342. package/dist/esm/roles/v1/types.js.map +1 -0
  343. package/dist/esm/types.js +2 -0
  344. package/dist/esm/types.js.map +1 -0
  345. package/dist/esm/utils.js +118 -0
  346. package/dist/esm/utils.js.map +1 -0
  347. package/dist/esm/version.js +3 -0
  348. package/dist/esm/version.js.map +1 -0
  349. package/dist/tsconfig.tsbuildinfo +1 -0
  350. package/dist/types/index.d.ts +23 -0
  351. package/dist/types/roles/endpoints/access-roles.get.d.ts +136 -0
  352. package/dist/types/roles/endpoints/account-access-role-assignments.get.d.ts +275 -0
  353. package/dist/types/roles/endpoints/account-active-access-role-assignments.get.d.ts +118 -0
  354. package/dist/types/roles/endpoints/account-claimable-role-assignment-activation.get.d.ts +123 -0
  355. package/dist/types/roles/endpoints/account-claimable-role-assignment-activation.post.d.ts +127 -0
  356. package/dist/types/roles/endpoints/account-claimable-role-assignment-deactivation.post.d.ts +123 -0
  357. package/dist/types/roles/endpoints/account-claimable-role-assignments.get.d.ts +230 -0
  358. package/dist/types/roles/endpoints/account-consolidated-claimable-role-assignments.get.d.ts +150 -0
  359. package/dist/types/roles/endpoints/account-consolidated-role-assignments.get.d.ts +146 -0
  360. package/dist/types/roles/endpoints/account-role-assignments.get.d.ts +197 -0
  361. package/dist/types/roles/endpoints/claimable-role-access-role.delete.d.ts +105 -0
  362. package/dist/types/roles/endpoints/claimable-role-access-roles.post.d.ts +150 -0
  363. package/dist/types/roles/endpoints/claimable-role-assignment-activations-by-assignment.get.d.ts +150 -0
  364. package/dist/types/roles/endpoints/claimable-role-assignment-activations.get.d.ts +187 -0
  365. package/dist/types/roles/endpoints/claimable-role-assignment.delete.d.ts +106 -0
  366. package/dist/types/roles/endpoints/claimable-role-assignment.get.d.ts +152 -0
  367. package/dist/types/roles/endpoints/claimable-role-assignment.patch.d.ts +158 -0
  368. package/dist/types/roles/endpoints/claimable-role-assignments-by-external-identifier.delete.d.ts +113 -0
  369. package/dist/types/roles/endpoints/claimable-role-assignments.get.d.ts +211 -0
  370. package/dist/types/roles/endpoints/claimable-role-assignments.post.d.ts +168 -0
  371. package/dist/types/roles/endpoints/claimable-role.delete.d.ts +100 -0
  372. package/dist/types/roles/endpoints/claimable-role.get.d.ts +141 -0
  373. package/dist/types/roles/endpoints/claimable-role.patch.d.ts +149 -0
  374. package/dist/types/roles/endpoints/claimable-roles.get.d.ts +199 -0
  375. package/dist/types/roles/endpoints/claimable-roles.post.d.ts +150 -0
  376. package/dist/types/roles/endpoints/public-schema.get.d.ts +98 -0
  377. package/dist/types/roles/endpoints/role-access-role.delete.d.ts +104 -0
  378. package/dist/types/roles/endpoints/role-access-roles.post.d.ts +150 -0
  379. package/dist/types/roles/endpoints/role-assignment.delete.d.ts +104 -0
  380. package/dist/types/roles/endpoints/role-assignment.get.d.ts +138 -0
  381. package/dist/types/roles/endpoints/role-assignment.patch.d.ts +140 -0
  382. package/dist/types/roles/endpoints/role-assignments-by-external-identifier.delete.d.ts +109 -0
  383. package/dist/types/roles/endpoints/role-assignments-delete.post.d.ts +108 -0
  384. package/dist/types/roles/endpoints/role-assignments.get.d.ts +184 -0
  385. package/dist/types/roles/endpoints/role-assignments.post.d.ts +151 -0
  386. package/dist/types/roles/endpoints/role-binding-configuration-expired-history.delete.d.ts +109 -0
  387. package/dist/types/roles/endpoints/role-binding-configuration-history.get.d.ts +145 -0
  388. package/dist/types/roles/endpoints/role-binding-configuration-history.post.d.ts +125 -0
  389. package/dist/types/roles/endpoints/role-binding-configuration-notifications.get.d.ts +140 -0
  390. package/dist/types/roles/endpoints/role-binding-configuration-notifications.post.d.ts +122 -0
  391. package/dist/types/roles/endpoints/role-binding-configuration-status.get.d.ts +110 -0
  392. package/dist/types/roles/endpoints/role-binding-configuration-status.patch.d.ts +117 -0
  393. package/dist/types/roles/endpoints/role-binding-configuration.delete.d.ts +100 -0
  394. package/dist/types/roles/endpoints/role-binding-configuration.get.d.ts +117 -0
  395. package/dist/types/roles/endpoints/role-binding-configuration.patch.d.ts +171 -0
  396. package/dist/types/roles/endpoints/role-binding-configurations.get.d.ts +115 -0
  397. package/dist/types/roles/endpoints/role-binding-configurations.post.d.ts +173 -0
  398. package/dist/types/roles/endpoints/role.delete.d.ts +100 -0
  399. package/dist/types/roles/endpoints/role.get.d.ts +144 -0
  400. package/dist/types/roles/endpoints/role.patch.d.ts +149 -0
  401. package/dist/types/roles/endpoints/roles-subscription.put.d.ts +110 -0
  402. package/dist/types/roles/endpoints/roles.get.d.ts +197 -0
  403. package/dist/types/roles/endpoints/roles.post.d.ts +152 -0
  404. package/dist/types/roles/endpoints/scope-type.delete.d.ts +100 -0
  405. package/dist/types/roles/endpoints/scope-type.get.d.ts +100 -0
  406. package/dist/types/roles/endpoints/scope-type.patch.d.ts +110 -0
  407. package/dist/types/roles/endpoints/scope-types.get.d.ts +97 -0
  408. package/dist/types/roles/endpoints/scope-types.post.d.ts +106 -0
  409. package/dist/types/roles/endpoints/system-access-role-assignment.delete.d.ts +109 -0
  410. package/dist/types/roles/endpoints/system-access-role-assignment.get.d.ts +182 -0
  411. package/dist/types/roles/endpoints/system-access-role-assignment.patch.d.ts +186 -0
  412. package/dist/types/roles/endpoints/system-access-role-assignments.get.d.ts +267 -0
  413. package/dist/types/roles/endpoints/system-access-role-assignments.post.d.ts +194 -0
  414. package/dist/types/roles/endpoints/system-access-role.delete.d.ts +104 -0
  415. package/dist/types/roles/endpoints/system-access-role.get.d.ts +111 -0
  416. package/dist/types/roles/endpoints/system-access-role.patch.d.ts +117 -0
  417. package/dist/types/roles/endpoints/system-access-roles.get.d.ts +109 -0
  418. package/dist/types/roles/endpoints/system-access-roles.post.d.ts +117 -0
  419. package/dist/types/roles/endpoints/system.delete.d.ts +97 -0
  420. package/dist/types/roles/endpoints/system.get.d.ts +110 -0
  421. package/dist/types/roles/endpoints/system.patch.d.ts +123 -0
  422. package/dist/types/roles/endpoints/systems.get.d.ts +138 -0
  423. package/dist/types/roles/endpoints/systems.post.d.ts +122 -0
  424. package/dist/types/roles/index.d.ts +191 -0
  425. package/dist/types/roles/static.d.ts +27 -0
  426. package/dist/types/roles/types.d.ts +22 -0
  427. package/dist/types/roles/v1/schemas/access-role-mapping-schema-v1.d.ts +13 -0
  428. package/dist/types/roles/v1/schemas/activate-assigned-claimable-role-request-schema-v1.d.ts +14 -0
  429. package/dist/types/roles/v1/schemas/add-claimable-role-access-role-request-schema-v1.d.ts +16 -0
  430. package/dist/types/roles/v1/schemas/add-role-access-role-request-schema-v1.d.ts +15 -0
  431. package/dist/types/roles/v1/schemas/api-access-role-assignment-schema-v1.d.ts +82 -0
  432. package/dist/types/roles/v1/schemas/api-access-role-mapping-schema-v1.d.ts +22 -0
  433. package/dist/types/roles/v1/schemas/api-access-role-schema-v1.d.ts +19 -0
  434. package/dist/types/roles/v1/schemas/api-account-access-role-assignment-schema-v1.d.ts +88 -0
  435. package/dist/types/roles/v1/schemas/api-account-access-role-schema-v1.d.ts +25 -0
  436. package/dist/types/roles/v1/schemas/api-account-active-access-role-assignment-schema-v1.d.ts +21 -0
  437. package/dist/types/roles/v1/schemas/api-account-claimable-role-assignment-schema-v1.d.ts +69 -0
  438. package/dist/types/roles/v1/schemas/api-account-role-assignment-schema-v1.d.ts +52 -0
  439. package/dist/types/roles/v1/schemas/api-account-schema-v1.d.ts +17 -0
  440. package/dist/types/roles/v1/schemas/api-binding-execution-record-schema-v1.d.ts +23 -0
  441. package/dist/types/roles/v1/schemas/api-binding-notification-record-schema-v1.d.ts +20 -0
  442. package/dist/types/roles/v1/schemas/api-claimable-access-role-mapping-schema-v1.d.ts +23 -0
  443. package/dist/types/roles/v1/schemas/api-claimable-role-assignment-activation-schema-v1.d.ts +24 -0
  444. package/dist/types/roles/v1/schemas/api-claimable-role-assignment-schema-v1.d.ts +57 -0
  445. package/dist/types/roles/v1/schemas/api-claimable-role-schema-v1.d.ts +52 -0
  446. package/dist/types/roles/v1/schemas/api-claimable-role-scope-schema-v1.d.ts +15 -0
  447. package/dist/types/roles/v1/schemas/api-consolidated-assignment-entry-schema-v1.d.ts +18 -0
  448. package/dist/types/roles/v1/schemas/api-consolidated-claimable-role-assignment-schema-v1.d.ts +47 -0
  449. package/dist/types/roles/v1/schemas/api-consolidated-claimable-role-ref-schema-v1.d.ts +16 -0
  450. package/dist/types/roles/v1/schemas/api-consolidated-role-assignment-schema-v1.d.ts +48 -0
  451. package/dist/types/roles/v1/schemas/api-extended-access-role-schema-v1.d.ts +24 -0
  452. package/dist/types/roles/v1/schemas/api-extended-claimable-role-assignment-activation-schema-v1.d.ts +52 -0
  453. package/dist/types/roles/v1/schemas/api-owner-schema-v1.d.ts +20 -0
  454. package/dist/types/roles/v1/schemas/api-paged-collection-schema-v1.d.ts +37 -0
  455. package/dist/types/roles/v1/schemas/api-purge-binding-result-schema-v1.d.ts +12 -0
  456. package/dist/types/roles/v1/schemas/api-role-assignment-schema-v1.d.ts +42 -0
  457. package/dist/types/roles/v1/schemas/api-role-binding-configuration-schema-v1.d.ts +23 -0
  458. package/dist/types/roles/v1/schemas/api-role-binding-configuration-status-schema-v1.d.ts +18 -0
  459. package/dist/types/roles/v1/schemas/api-role-schema-v1.d.ts +51 -0
  460. package/dist/types/roles/v1/schemas/api-role-scope-schema-v1.d.ts +14 -0
  461. package/dist/types/roles/v1/schemas/api-scope-schema-v1.d.ts +14 -0
  462. package/dist/types/roles/v1/schemas/api-scope-type-schema-v1.d.ts +14 -0
  463. package/dist/types/roles/v1/schemas/api-scope-values-schema-v1.d.ts +14 -0
  464. package/dist/types/roles/v1/schemas/api-simple-claimable-role-assignment-schema-v1.d.ts +37 -0
  465. package/dist/types/roles/v1/schemas/api-simple-claimable-role-schema-v1.d.ts +32 -0
  466. package/dist/types/roles/v1/schemas/api-simple-role-assignment-schema-v1.d.ts +22 -0
  467. package/dist/types/roles/v1/schemas/api-simple-role-schema-v1.d.ts +19 -0
  468. package/dist/types/roles/v1/schemas/api-simple-system-schema-v1.d.ts +13 -0
  469. package/dist/types/roles/v1/schemas/api-subscription-type-schema-v1.d.ts +14 -0
  470. package/dist/types/roles/v1/schemas/api-system-schema-v1.d.ts +26 -0
  471. package/dist/types/roles/v1/schemas/assign-access-role-request-schema-v1.d.ts +24 -0
  472. package/dist/types/roles/v1/schemas/assign-claimable-role-request-schema-v1.d.ts +24 -0
  473. package/dist/types/roles/v1/schemas/assign-role-request-schema-v1.d.ts +24 -0
  474. package/dist/types/roles/v1/schemas/claimable-role-binding-schema-v1.d.ts +18 -0
  475. package/dist/types/roles/v1/schemas/create-access-role-request-schema-v1.d.ts +14 -0
  476. package/dist/types/roles/v1/schemas/create-binding-execution-record-request-schema-v1.d.ts +21 -0
  477. package/dist/types/roles/v1/schemas/create-binding-execution-record-response-schema-v1.d.ts +13 -0
  478. package/dist/types/roles/v1/schemas/create-binding-notification-record-request-schema-v1.d.ts +17 -0
  479. package/dist/types/roles/v1/schemas/create-binding-notification-record-response-schema-v1.d.ts +13 -0
  480. package/dist/types/roles/v1/schemas/create-claimable-role-request-schema-v1.d.ts +19 -0
  481. package/dist/types/roles/v1/schemas/create-role-binding-configuration-request-schema-v1.d.ts +81 -0
  482. package/dist/types/roles/v1/schemas/create-role-request-schema-v1.d.ts +19 -0
  483. package/dist/types/roles/v1/schemas/create-scope-type-request-schema-v1.d.ts +13 -0
  484. package/dist/types/roles/v1/schemas/delete-role-assignments-request-schema-v1.d.ts +13 -0
  485. package/dist/types/roles/v1/schemas/entra-group-binding-schema-v1.d.ts +35 -0
  486. package/dist/types/roles/v1/schemas/entra-group-schema-v1.d.ts +13 -0
  487. package/dist/types/roles/v1/schemas/expand-schema-v1.d.ts +11 -0
  488. package/dist/types/roles/v1/schemas/filter-schema-v1.d.ts +10 -0
  489. package/dist/types/roles/v1/schemas/include-deleted-schema-v1.d.ts +11 -0
  490. package/dist/types/roles/v1/schemas/org-chart-assign-entry-schema-v1.d.ts +18 -0
  491. package/dist/types/roles/v1/schemas/org-chart-assignment-schema-v1.d.ts +29 -0
  492. package/dist/types/roles/v1/schemas/org-chart-binding-schema-v1.d.ts +48 -0
  493. package/dist/types/roles/v1/schemas/org-chart-context-schema-v1.d.ts +15 -0
  494. package/dist/types/roles/v1/schemas/org-chart-match-criteria-schema-v1.d.ts +13 -0
  495. package/dist/types/roles/v1/schemas/org-chart-profile-schema-v1.d.ts +38 -0
  496. package/dist/types/roles/v1/schemas/org-chart-rule-schema-v1.d.ts +35 -0
  497. package/dist/types/roles/v1/schemas/org-chart-scope-schema-v1.d.ts +14 -0
  498. package/dist/types/roles/v1/schemas/owner-info-schema-v1.d.ts +13 -0
  499. package/dist/types/roles/v1/schemas/register-system-request-schema-v1.d.ts +17 -0
  500. package/dist/types/roles/v1/schemas/request-claimable-role-scope-schema-v1.d.ts +14 -0
  501. package/dist/types/roles/v1/schemas/request-role-scope-schema-v1.d.ts +14 -0
  502. package/dist/types/roles/v1/schemas/request-scope-schema-v1.d.ts +14 -0
  503. package/dist/types/roles/v1/schemas/role-binding-configuration-binding-schema-v1.d.ts +78 -0
  504. package/dist/types/roles/v1/schemas/role-binding-schema-v1.d.ts +18 -0
  505. package/dist/types/roles/v1/schemas/scope-binding-schema-v1.d.ts +14 -0
  506. package/dist/types/roles/v1/schemas/skip-schema-v1.d.ts +11 -0
  507. package/dist/types/roles/v1/schemas/subscription-request-schema-v1.d.ts +19 -0
  508. package/dist/types/roles/v1/schemas/top-schema-v1.d.ts +11 -0
  509. package/dist/types/roles/v1/schemas/update-access-role-assignment-request-schema-v1.d.ts +13 -0
  510. package/dist/types/roles/v1/schemas/update-access-role-request-schema-v1.d.ts +12 -0
  511. package/dist/types/roles/v1/schemas/update-claimable-role-assignment-request-schema-v1.d.ts +13 -0
  512. package/dist/types/roles/v1/schemas/update-claimable-role-request-schema-v1.d.ts +14 -0
  513. package/dist/types/roles/v1/schemas/update-role-assignment-request-schema-v1.d.ts +13 -0
  514. package/dist/types/roles/v1/schemas/update-role-binding-configuration-request-schema-v1.d.ts +79 -0
  515. package/dist/types/roles/v1/schemas/update-role-binding-configuration-status-request-schema-v1.d.ts +15 -0
  516. package/dist/types/roles/v1/schemas/update-role-request-schema-v1.d.ts +14 -0
  517. package/dist/types/roles/v1/schemas/update-scope-request-schema-v1.d.ts +12 -0
  518. package/dist/types/roles/v1/schemas/update-system-request-schema-v1.d.ts +16 -0
  519. package/dist/types/roles/v1/types.d.ts +109 -0
  520. package/dist/types/types.d.ts +173 -0
  521. package/dist/types/utils.d.ts +97 -0
  522. package/dist/types/version.d.ts +1 -0
  523. package/docs/roles.md +211 -0
  524. package/package.json +62 -0
  525. package/src/roles/v1/openapi.json +1 -0
@@ -0,0 +1,118 @@
1
+ import { z } from 'zod';
2
+ import { extractVersion, parseVersionedArgs, versionedResponseSelector } from '../../utils';
3
+ import { ApiVersion } from '../static';
4
+ import { ApiRoleAssignmentSchemaV1 } from '../v1/schemas/api-role-assignment-schema-v1';
5
+ import { AssignRoleRequestSchemaV1 } from '../v1/schemas/assign-role-request-schema-v1';
6
+ /**
7
+ * Version contract for `assignRole`, implementing `POST /roles/{roleIdentifier}/assignments`.
8
+ *
9
+ * Each concrete {@link ApiVersion} maps to the argument and response schemas that
10
+ * version publishes, so the version a caller passes is the single discriminator
11
+ * for the request shape, the request path, and the response shape.
12
+ */
13
+ const VersionContract = {
14
+ [ApiVersion.v1]: {
15
+ /** Arguments accepted by version 1.0 of this operation. */
16
+ args: z
17
+ .object({
18
+ /** Role UUID or unique role name. */
19
+ roleIdentifier: z.string().describe('Role UUID or unique role name.'),
20
+ ...AssignRoleRequestSchemaV1.shape,
21
+ })
22
+ .describe('Arguments for POST /roles/{roleIdentifier}/assignments (assignRole v1.0).'),
23
+ /** Response published by version 1.0 of this operation. */
24
+ response: ApiRoleAssignmentSchemaV1,
25
+ },
26
+ };
27
+ /** Builds the request init for the resolved version, including its response-schema selector. */
28
+ const generateRequestParameters = (version, args, init) => {
29
+ // Select the response schema that matches the requested API version.
30
+ switch (version) {
31
+ case ApiVersion.v1: {
32
+ // Path identifiers address the resource, so only the remaining fields form the request body.
33
+ const { roleIdentifier: _roleIdentifier, ...body } = args;
34
+ const baseInit = {
35
+ method: 'POST',
36
+ selector: versionedResponseSelector(VersionContract, version),
37
+ body,
38
+ };
39
+ // Apply the caller-supplied `init` first, then the generated defaults, so the
40
+ // generated `method`, `body`, and version-specific response `selector` always win
41
+ // and cannot be overridden or bypassed.
42
+ return Object.assign({}, init, baseInit);
43
+ }
44
+ }
45
+ throw Error(`Unknown API version: ${version}`);
46
+ };
47
+ /** Builds the request path for the resolved version, including its `api-version` parameter. */
48
+ const generateApiPath = (version, args) => {
49
+ // Build the endpoint path according to the requested API version.
50
+ switch (version) {
51
+ case ApiVersion.v1: {
52
+ const params = new URLSearchParams();
53
+ params.append('api-version', version);
54
+ return `/roles/${encodeURIComponent(args.roleIdentifier)}/assignments?${String(params)}`;
55
+ }
56
+ }
57
+ throw Error(`Unknown API version: ${version}`);
58
+ };
59
+ /**
60
+ * Assigns a role to a user or application, optionally scoped, tagged, and time-boxed by the
61
+ * request body.
62
+ *
63
+ * Roles V2 operation: `POST /roles/{roleIdentifier}/assignments` — "Assign a role assignment"
64
+ *
65
+ * Curried in two stages: `assignRole(version, client, method)` binds the API version, the
66
+ * `IHttpClient` that reaches the Roles service, and the execution method — `'json'` for a
67
+ * promise, `'json$'` for an observable stream. The returned function takes
68
+ * {@link AssignRoleArg} plus an optional `ClientRequestInit`, and gives back
69
+ * {@link AssignRoleResult}.
70
+ *
71
+ * The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
72
+ * `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
73
+ * `ApiRoleAssignmentSchemaV1`, and sends `api-version=1.0` on the request.
74
+ *
75
+ * Roles V2 answers `201 Created`; the body is typed `ApiRoleAssignmentV1`. The contract
76
+ * declares `403 Forbidden` for callers the Roles service does not authorise for this operation.
77
+ *
78
+ * Related: `listAccountRoleAssignments` shows everything one user or application account
79
+ * already holds.
80
+ *
81
+ * @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
82
+ * @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
83
+ * @param version - API version selecting the request path, the argument schema, and the
84
+ * response schema.
85
+ * @param client - HTTP client that executes the request against the Roles service.
86
+ * @param method - Execution method, defaulting to `'json'`.
87
+ * @returns A request function taking {@link AssignRoleArg} and an optional `ClientRequestInit`,
88
+ * returning {@link AssignRoleResult}.
89
+ * @throws {Error} When `version` names an API version this operation does not publish. The
90
+ * check runs while binding, before the HTTP client is used.
91
+ * @throws {z.ZodError} From the returned function, when the arguments fail this version's
92
+ * argument schema or the response body fails its response schema.
93
+ *
94
+ * @example
95
+ * ```ts
96
+ * import { assignRole } from '@equinor/fusion-services/roles';
97
+ *
98
+ * const assignment = await assignRole('v1', httpClient)({
99
+ * roleIdentifier: 'reader',
100
+ * accountIdentifier: 'user@equinor.com',
101
+ * validTo: '2026-12-31T23:59:59Z',
102
+ * });
103
+ * ```
104
+ */
105
+ const assignRole = (version, client, method = 'json') => {
106
+ const apiVersion = extractVersion(ApiVersion, version);
107
+ return (input, init) => {
108
+ const args = parseVersionedArgs(VersionContract, apiVersion, input);
109
+ return client[method](generateApiPath(apiVersion, args), generateRequestParameters(apiVersion, args, init));
110
+ };
111
+ };
112
+ // Every symbol is declared under its public name so hover and code completion show this
113
+ // endpoint's own documentation. They are exported in one block rather than inline because an
114
+ // inline `export const` would require renaming the file away from the `<resource>.<verb>`
115
+ // convention that mirrors the OpenAPI operation it implements.
116
+ // fusion-lint-disable-next-line no-separate-export
117
+ export { assignRole, };
118
+ //# sourceMappingURL=role-assignments.post.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role-assignments.post.js","sourceRoot":"","sources":["../../../../src/roles/endpoints/role-assignments.post.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AAcxF;;;;;;GAMG;AACH,MAAM,eAAe,GAAG;IACtB,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE;QACf,2DAA2D;QAC3D,IAAI,EAAE,CAAC;aACJ,MAAM,CAAC;YACN,qCAAqC;YACrC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;YACrE,GAAG,yBAAyB,CAAC,KAAK;SACnC,CAAC;aACD,QAAQ,CAAC,2EAA2E,CAAC;Q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AACH,MAAM,UAAU,GAAG,CACjB,OAAiB,EACjB,MAAmB,EACnB,MAAM,GAAY,MAAiB,EACnC,EAAE;IAEF,MAAM,UAAU,GAAG,cAAc,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACvD,OAAO,CACL,KAAmC,EACnC,IAAwE,EAC9B,EAAE;QAC5C,MAAM,IAAI,GAAG,kBAAkB,CAAC,eAAe,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;QACpE,OAAO,MAAM,CAAC,MAAM,CAAC,CACnB,eAAe,CAAC,UAAU,EAAE,IAAI,CAAC,EACjC,yBAAyB,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,CACN,CAAC;IAChD,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,wFAAwF;AACxF,6FAA6F;AAC7F,0FAA0F;AAC1F,+DAA+D;AAC/D,mDAAmD;AACnD,OAAO,EAKL,UAAU,GACX,CAAC"}
@@ -0,0 +1,112 @@
1
+ import { z } from 'zod';
2
+ import { extractVersion, parseVersionedArgs, versionedResponseSelector } from '../../utils';
3
+ import { ApiVersion } from '../static';
4
+ import { ApiPurgeBindingResultSchemaV1 } from '../v1/schemas/api-purge-binding-result-schema-v1';
5
+ /**
6
+ * Version contract for `purgeExpiredRoleBindingConfigurationHistory`, implementing
7
+ * `DELETE /role-binding-configurations/history/expired`.
8
+ *
9
+ * Each concrete {@link ApiVersion} maps to the argument and response schemas that
10
+ * version publishes, so the version a caller passes is the single discriminator
11
+ * for the request shape, the request path, and the response shape.
12
+ */
13
+ const VersionContract = {
14
+ [ApiVersion.v1]: {
15
+ /** Arguments accepted by version 1.0 of this operation. */
16
+ args: z
17
+ .object({})
18
+ .describe('Arguments for DELETE /role-binding-configurations/history/expired (purgeExpiredRoleBindingConfigurationHistory v1.0).'),
19
+ /** Response published by version 1.0 of this operation. */
20
+ response: ApiPurgeBindingResultSchemaV1,
21
+ },
22
+ };
23
+ /** Builds the request init for the resolved version, including its response-schema selector. */
24
+ const generateRequestParameters = (version, _args, init) => {
25
+ // Select the response schema that matches the requested API version.
26
+ switch (version) {
27
+ case ApiVersion.v1: {
28
+ const baseInit = {
29
+ method: 'DELETE',
30
+ selector: versionedResponseSelector(VersionContract, version),
31
+ // The contract declares no request body, so any caller-supplied body is dropped.
32
+ body: undefined,
33
+ };
34
+ // Apply the caller-supplied `init` first, then the generated defaults, so the
35
+ // generated `method`, forced empty `body`, and version-specific response `selector`
36
+ // always win and cannot be overridden or bypassed.
37
+ return Object.assign({}, init, baseInit);
38
+ }
39
+ }
40
+ throw Error(`Unknown API version: ${version}`);
41
+ };
42
+ /** Builds the request path for the resolved version, including its `api-version` parameter. */
43
+ const generateApiPath = (version, _args) => {
44
+ // Build the endpoint path according to the requested API version.
45
+ switch (version) {
46
+ case ApiVersion.v1: {
47
+ const params = new URLSearchParams();
48
+ params.append('api-version', version);
49
+ return `/role-binding-configurations/history/expired?${String(params)}`;
50
+ }
51
+ }
52
+ throw Error(`Unknown API version: ${version}`);
53
+ };
54
+ /**
55
+ * Purges role binding execution history and notification records that have aged out of the
56
+ * retention window.
57
+ *
58
+ * Roles V2 operation: `DELETE /role-binding-configurations/history/expired` — "Purge expired
59
+ * history and notification records beyond the retention window."
60
+ *
61
+ * Curried in two stages: `purgeExpiredRoleBindingConfigurationHistory(version, client, method)`
62
+ * binds the API version, the `IHttpClient` that reaches the Roles service, and the execution
63
+ * method — `'json'` for a promise, `'json$'` for an observable stream. The returned function
64
+ * takes {@link PurgeExpiredRoleBindingConfigurationHistoryArg} plus an optional
65
+ * `ClientRequestInit`, and gives back
66
+ * {@link PurgeExpiredRoleBindingConfigurationHistoryResult}.
67
+ *
68
+ * The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
69
+ * `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
70
+ * `ApiPurgeBindingResultSchemaV1`, and sends `api-version=1.0` on the request.
71
+ *
72
+ * Destructive: it removes the expired history and notification records permanently, and the
73
+ * deletion cannot be undone through this API. Roles V2 answers `200 OK`; the body is typed
74
+ * `ApiPurgeBindingResultV1`. The contract declares `403 Forbidden` for callers the Roles
75
+ * service does not authorise for this operation.
76
+ *
77
+ * @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
78
+ * @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
79
+ * @param version - API version selecting the request path, the argument schema, and the
80
+ * response schema.
81
+ * @param client - HTTP client that executes the request against the Roles service.
82
+ * @param method - Execution method, defaulting to `'json'`.
83
+ * @returns A request function taking {@link PurgeExpiredRoleBindingConfigurationHistoryArg} and
84
+ * an optional `ClientRequestInit`, returning
85
+ * {@link PurgeExpiredRoleBindingConfigurationHistoryResult}.
86
+ * @throws {Error} When `version` names an API version this operation does not publish. The
87
+ * check runs while binding, before the HTTP client is used.
88
+ * @throws {z.ZodError} From the returned function, when the arguments fail this version's
89
+ * argument schema or the response body fails its response schema.
90
+ *
91
+ * @example
92
+ * ```ts
93
+ * import { purgeExpiredRoleBindingConfigurationHistory } from '@equinor/fusion-services/roles';
94
+ *
95
+ * const result = await purgeExpiredRoleBindingConfigurationHistory('v1', httpClient)({});
96
+ * ```
97
+ */
98
+ const purgeExpiredRoleBindingConfigurationHistory = (version, client, method = 'json') => {
99
+ const apiVersion = extractVersion(ApiVersion, version);
100
+ return (input, init) => {
101
+ // The operation has no required arguments, so an omitted argument object parses as empty.
102
+ const args = parseVersionedArgs(VersionContract, apiVersion, input ?? {});
103
+ return client[method](generateApiPath(apiVersion, args), generateRequestParameters(apiVersion, args, init));
104
+ };
105
+ };
106
+ // Every symbol is declared under its public name so hover and code completion show this
107
+ // endpoint's own documentation. They are exported in one block rather than inline because an
108
+ // inline `export const` would require renaming the file away from the `<resource>.<verb>`
109
+ // convention that mirrors the OpenAPI operation it implements.
110
+ // fusion-lint-disable-next-line no-separate-export
111
+ export { purgeExpiredRoleBindingConfigurationHistory, };
112
+ //# sourceMappingURL=role-binding-configuration-expired-history.delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role-binding-configuration-expired-history.delete.js","sourceRoot":"","sources":["../../../../src/roles/endpoints/role-binding-configuration-expired-history.delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AAiBjG;;;;;;;GAOG;AACH,MAAM,eAAe,GAAG;IACtB,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE;QACf,2DAA2D;QAC3D,IAAI,EAAE,CAAC;aACJ,MAAM,CAAC,EAAE,CAAC;aACV,QAAQ,CACP,uHAAuH,CACxH;QACH,2DAA2D;QAC3D,QAAQ,EAAE,6BAA6B;KACxC;CACoC,CAAC;AAyCxC,gGAAgG;AAChG,MAAM,yBAAyB,GAAG,CAChC,OAAiB,EACjB,KAA4D,EAC5D,IAA8C,EACL,EAAE;IAC3C,qEAAqE;IACrE,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,UAAU,CAAC,EAAE,EAAE,CAAC;YACnB,MAAM,QAAQ,GAGV;gBACF,MAAM,EAAE,QAAQ;gBAChB,QAAQ,EAAE,yBAAyB,CAAC,eAAe,EAAE,OAAO,CAAC;gBAC7D,iFAAiF;gBACjF,IAAI,EAAE,SAAS;aAChB,CAAC;YACF,8EAA8E;YAC9E,oFAAoF;YACpF,mDAAmD;YACnD,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;IACD,MAAM,KAAK,CAAC,wBAAwB,OAAO,EAAE,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF,+FAA+F;AAC/F,MAAM,eAAe,GAAG,CACtB,OAAiB,EACjB,KAA4D,EACpD,EAAE;IACV,kEAAkE;IAClE,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,UAAU,CAAC,EAAE,EAAE,CAAC;YACnB,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;YACtC,OAAO,gDAAgD,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1E,CAAC;IACH,CAAC;IACD,MAAM,KAAK,CAAC,wBAAwB,OAAO,EAAE,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAM,2CAA2C,GAAG,CAIlD,OAAiB,EACjB,MAAmB,EACnB,MAAM,GAAY,MAAiB,EACnC,EAAE;IAEF,MAAM,UAAU,GAAG,cAAc,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACvD,OAAO,CACL,KAAqE,EACrE,IAGC,EAC0E,EAAE;QAC7E,0FAA0F;QAC1F,MAAM,IAAI,GAAG,kBAAkB,CAAC,eAAe,EAAE,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;QAC1E,OAAO,MAAM,CAAC,MAAM,CAAC,CACnB,eAAe,CAAC,UAAU,EAAE,IAAI,CAAC,EACjC,yBAAyB,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,CAC2B,CAAC;IACjF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,wFAAwF;AACxF,6FAA6F;AAC7F,0FAA0F;AAC1F,+DAA+D;AAC/D,mDAAmD;AACnD,OAAO,EAKL,2CAA2C,GAC5C,CAAC"}
@@ -0,0 +1,122 @@
1
+ import { z } from 'zod';
2
+ import { extractVersion, parseVersionedArgs, versionedResponseSelector } from '../../utils';
3
+ import { ApiVersion } from '../static';
4
+ import { ApiBindingExecutionRecordSchemaV1 } from '../v1/schemas/api-binding-execution-record-schema-v1';
5
+ import { SkipSchemaV1 } from '../v1/schemas/skip-schema-v1';
6
+ import { TopSchemaV1 } from '../v1/schemas/top-schema-v1';
7
+ import { apiPagedCollectionSchemaV1 } from '../v1/schemas/api-paged-collection-schema-v1';
8
+ /**
9
+ * Version contract for `listRoleBindingConfigurationHistory`, implementing
10
+ * `GET /role-binding-configurations/{identifier}/history`.
11
+ *
12
+ * Each concrete {@link ApiVersion} maps to the argument and response schemas that
13
+ * version publishes, so the version a caller passes is the single discriminator
14
+ * for the request shape, the request path, and the response shape.
15
+ */
16
+ const VersionContract = {
17
+ [ApiVersion.v1]: {
18
+ /** Arguments accepted by version 1.0 of this operation. */
19
+ args: z
20
+ .object({
21
+ /** Role binding configuration UUID or unique identifier. */
22
+ identifier: z.string().describe('Role binding configuration UUID or unique identifier.'),
23
+ /** Maximum number of records to return. Roles V2 accepts values from 0 through 100. */
24
+ top: TopSchemaV1,
25
+ /** Number of records to skip before returning results. */
26
+ skip: SkipSchemaV1,
27
+ })
28
+ .describe('Arguments for GET /role-binding-configurations/{identifier}/history (listRoleBindingConfigurationHistory v1.0).'),
29
+ /** Response published by version 1.0 of this operation. */
30
+ response: apiPagedCollectionSchemaV1(ApiBindingExecutionRecordSchemaV1),
31
+ },
32
+ };
33
+ /** Builds the request init for the resolved version, including its response-schema selector. */
34
+ const generateRequestParameters = (version, _args, init) => {
35
+ // Select the response schema that matches the requested API version.
36
+ switch (version) {
37
+ case ApiVersion.v1: {
38
+ const baseInit = {
39
+ selector: versionedResponseSelector(VersionContract, version),
40
+ };
41
+ // Apply the caller-supplied `init` first, then the generated defaults, so the
42
+ // version-specific response `selector` always wins and cannot be bypassed.
43
+ return Object.assign({}, init, baseInit);
44
+ }
45
+ }
46
+ throw Error(`Unknown API version: ${version}`);
47
+ };
48
+ /** Builds the request path for the resolved version, including its `api-version` parameter. */
49
+ const generateApiPath = (version, args) => {
50
+ // Build the endpoint path according to the requested API version.
51
+ switch (version) {
52
+ case ApiVersion.v1: {
53
+ const params = new URLSearchParams();
54
+ params.append('api-version', version);
55
+ args.top !== undefined && params.append('$top', String(args.top));
56
+ args.skip !== undefined && params.append('$skip', String(args.skip));
57
+ return `/role-binding-configurations/${encodeURIComponent(args.identifier)}/history?${String(params)}`;
58
+ }
59
+ }
60
+ throw Error(`Unknown API version: ${version}`);
61
+ };
62
+ /**
63
+ * Lists the sync execution history of one role binding configuration, newest execution first.
64
+ *
65
+ * Roles V2 operation: `GET /role-binding-configurations/{identifier}/history` — "Get execution
66
+ * history for a role binding configuration. Returns a paginated list of sync execution records
67
+ * in descending order by execution time."
68
+ *
69
+ * Curried in two stages: `listRoleBindingConfigurationHistory(version, client, method)` binds
70
+ * the API version, the `IHttpClient` that reaches the Roles service, and the execution method —
71
+ * `'json'` for a promise, `'json$'` for an observable stream. The returned function takes
72
+ * {@link ListRoleBindingConfigurationHistoryArg} plus an optional `ClientRequestInit`, and
73
+ * gives back {@link ListRoleBindingConfigurationHistoryResult}.
74
+ *
75
+ * The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
76
+ * `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
77
+ * `apiPagedCollectionSchemaV1(ApiBindingExecutionRecordSchemaV1)`, and sends `api-version=1.0`
78
+ * on the request.
79
+ *
80
+ * Query options: `top` and `skip` page the collection as `$top` and `$skip` (`top` accepts
81
+ * 0–100).
82
+ *
83
+ * Roles V2 answers `200 OK`; the body is typed
84
+ * `ApiPagedCollectionV1<ApiBindingExecutionRecordV1>`.
85
+ *
86
+ * @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
87
+ * @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
88
+ * @param version - API version selecting the request path, the argument schema, and the
89
+ * response schema.
90
+ * @param client - HTTP client that executes the request against the Roles service.
91
+ * @param method - Execution method, defaulting to `'json'`.
92
+ * @returns A request function taking {@link ListRoleBindingConfigurationHistoryArg} and an
93
+ * optional `ClientRequestInit`, returning {@link ListRoleBindingConfigurationHistoryResult}.
94
+ * @throws {Error} When `version` names an API version this operation does not publish. The
95
+ * check runs while binding, before the HTTP client is used.
96
+ * @throws {z.ZodError} From the returned function, when the arguments fail this version's
97
+ * argument schema or the response body fails its response schema.
98
+ *
99
+ * @example
100
+ * ```ts
101
+ * import { listRoleBindingConfigurationHistory } from '@equinor/fusion-services/roles';
102
+ *
103
+ * const page = await listRoleBindingConfigurationHistory('v1', httpClient)({
104
+ * identifier: 'org-chart-sync',
105
+ * top: 25,
106
+ * });
107
+ * ```
108
+ */
109
+ const listRoleBindingConfigurationHistory = (version, client, method = 'json') => {
110
+ const apiVersion = extractVersion(ApiVersion, version);
111
+ return (input, init) => {
112
+ const args = parseVersionedArgs(VersionContract, apiVersion, input);
113
+ return client[method](generateApiPath(apiVersion, args), generateRequestParameters(apiVersion, args, init));
114
+ };
115
+ };
116
+ // Every symbol is declared under its public name so hover and code completion show this
117
+ // endpoint's own documentation. They are exported in one block rather than inline because an
118
+ // inline `export const` would require renaming the file away from the `<resource>.<verb>`
119
+ // convention that mirrors the OpenAPI operation it implements.
120
+ // fusion-lint-disable-next-line no-separate-export
121
+ export { listRoleBindingConfigurationHistory, };
122
+ //# sourceMappingURL=role-binding-configuration-history.get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role-binding-configuration-history.get.js","sourceRoot":"","sources":["../../../../src/roles/endpoints/role-binding-configuration-history.get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,sDAAsD,CAAC;AACzG,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,0BAA0B,EAAE,MA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GAAG,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;YAClE,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YACrE,OAAO,gCAAgC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QACzG,CAAC;IACH,CAAC;IACD,MAAM,KAAK,CAAC,wBAAwB,OAAO,EAAE,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAM,mCAAmC,GAAG,CAI1C,OAAiB,EACjB,MAAmB,EACnB,MAAM,GAAY,MAAiB,EACnC,EAAE;IAEF,MAAM,UAAU,GAAG,cAAc,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACvD,OAAO,CACL,KAA4D,EAC5D,IAGC,EACkE,EAAE;QACrE,MAAM,IAAI,GAAG,kBAAkB,CAAC,eAAe,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;QACpE,OAAO,MAAM,CAAC,MAAM,CAAC,CACnB,eAAe,CAAC,UAAU,EAAE,IAAI,CAAC,EACjC,yBAAyB,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,CACmB,CAAC;IACzE,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,wFAAwF;AACxF,6FAA6F;AAC7F,0FAA0F;AAC1F,+DAA+D;AAC/D,mDAAmD;AACnD,OAAO,EAKL,mCAAmC,GACpC,CAAC"}
@@ -0,0 +1,120 @@
1
+ import { z } from 'zod';
2
+ import { extractVersion, parseVersionedArgs, versionedResponseSelector } from '../../utils';
3
+ import { ApiVersion } from '../static';
4
+ import { CreateBindingExecutionRecordRequestSchemaV1 } from '../v1/schemas/create-binding-execution-record-request-schema-v1';
5
+ import { CreateBindingExecutionRecordResponseSchemaV1 } from '../v1/schemas/create-binding-execution-record-response-schema-v1';
6
+ /**
7
+ * Version contract for `createRoleBindingConfigurationHistoryRecord`, implementing
8
+ * `POST /role-binding-configurations/{identifier}/history`.
9
+ *
10
+ * Each concrete {@link ApiVersion} maps to the argument and response schemas that
11
+ * version publishes, so the version a caller passes is the single discriminator
12
+ * for the request shape, the request path, and the response shape.
13
+ */
14
+ const VersionContract = {
15
+ [ApiVersion.v1]: {
16
+ /** Arguments accepted by version 1.0 of this operation. */
17
+ args: z
18
+ .object({
19
+ /** Role binding configuration UUID or unique identifier. */
20
+ identifier: z.string().describe('Role binding configuration UUID or unique identifier.'),
21
+ ...CreateBindingExecutionRecordRequestSchemaV1.shape,
22
+ })
23
+ .describe('Arguments for POST /role-binding-configurations/{identifier}/history (createRoleBindingConfigurationHistoryRecord v1.0).'),
24
+ /** Response published by version 1.0 of this operation. */
25
+ response: CreateBindingExecutionRecordResponseSchemaV1,
26
+ },
27
+ };
28
+ /** Builds the request init for the resolved version, including its response-schema selector. */
29
+ const generateRequestParameters = (version, args, init) => {
30
+ // Select the response schema that matches the requested API version.
31
+ switch (version) {
32
+ case ApiVersion.v1: {
33
+ // Path identifiers address the resource, so only the remaining fields form the request body.
34
+ const { identifier: _identifier, ...body } = args;
35
+ const baseInit = {
36
+ method: 'POST',
37
+ selector: versionedResponseSelector(VersionContract, version),
38
+ body,
39
+ };
40
+ // Apply the caller-supplied `init` first, then the generated defaults, so the
41
+ // generated `method`, `body`, and version-specific response `selector` always win
42
+ // and cannot be overridden or bypassed.
43
+ return Object.assign({}, init, baseInit);
44
+ }
45
+ }
46
+ throw Error(`Unknown API version: ${version}`);
47
+ };
48
+ /** Builds the request path for the resolved version, including its `api-version` parameter. */
49
+ const generateApiPath = (version, args) => {
50
+ // Build the endpoint path according to the requested API version.
51
+ switch (version) {
52
+ case ApiVersion.v1: {
53
+ const params = new URLSearchParams();
54
+ params.append('api-version', version);
55
+ return `/role-binding-configurations/${encodeURIComponent(args.identifier)}/history?${String(params)}`;
56
+ }
57
+ }
58
+ throw Error(`Unknown API version: ${version}`);
59
+ };
60
+ /**
61
+ * Records one sync execution in a role binding configuration's execution history.
62
+ *
63
+ * Roles V2 operation: `POST /role-binding-configurations/{identifier}/history` — "Create an
64
+ * execution history record for a role binding configuration."
65
+ *
66
+ * Curried in two stages: `createRoleBindingConfigurationHistoryRecord(version, client, method)`
67
+ * binds the API version, the `IHttpClient` that reaches the Roles service, and the execution
68
+ * method — `'json'` for a promise, `'json$'` for an observable stream. The returned function
69
+ * takes {@link CreateRoleBindingConfigurationHistoryRecordArg} plus an optional
70
+ * `ClientRequestInit`, and gives back
71
+ * {@link CreateRoleBindingConfigurationHistoryRecordResult}.
72
+ *
73
+ * The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
74
+ * `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
75
+ * `CreateBindingExecutionRecordResponseSchemaV1`, and sends `api-version=1.0` on the request.
76
+ *
77
+ * Roles V2 answers `201 Created`; the body is typed `CreateBindingExecutionRecordResponseV1`.
78
+ * The contract declares `403 Forbidden` for callers the Roles service does not authorise for
79
+ * this operation.
80
+ *
81
+ * @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
82
+ * @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
83
+ * @param version - API version selecting the request path, the argument schema, and the
84
+ * response schema.
85
+ * @param client - HTTP client that executes the request against the Roles service.
86
+ * @param method - Execution method, defaulting to `'json'`.
87
+ * @returns A request function taking {@link CreateRoleBindingConfigurationHistoryRecordArg} and
88
+ * an optional `ClientRequestInit`, returning
89
+ * {@link CreateRoleBindingConfigurationHistoryRecordResult}.
90
+ * @throws {Error} When `version` names an API version this operation does not publish. The
91
+ * check runs while binding, before the HTTP client is used.
92
+ * @throws {z.ZodError} From the returned function, when the arguments fail this version's
93
+ * argument schema or the response body fails its response schema.
94
+ *
95
+ * @example
96
+ * ```ts
97
+ * import { createRoleBindingConfigurationHistoryRecord } from '@equinor/fusion-services/roles';
98
+ *
99
+ * const record = await createRoleBindingConfigurationHistoryRecord('v1', httpClient)({
100
+ * identifier: 'org-chart-sync',
101
+ * triggerType: 'Scheduled',
102
+ * outcome: 'Success',
103
+ * executedAt: '2026-01-15T04:00:00Z',
104
+ * });
105
+ * ```
106
+ */
107
+ const createRoleBindingConfigurationHistoryRecord = (version, client, method = 'json') => {
108
+ const apiVersion = extractVersion(ApiVersion, version);
109
+ return (input, init) => {
110
+ const args = parseVersionedArgs(VersionContract, apiVersion, input);
111
+ return client[method](generateApiPath(apiVersion, args), generateRequestParameters(apiVersion, args, init));
112
+ };
113
+ };
114
+ // Every symbol is declared under its public name so hover and code completion show this
115
+ // endpoint's own documentation. They are exported in one block rather than inline because an
116
+ // inline `export const` would require renaming the file away from the `<resource>.<verb>`
117
+ // convention that mirrors the OpenAPI operation it implements.
118
+ // fusion-lint-disable-next-line no-separate-export
119
+ export { createRoleBindingConfigurationHistoryRecord, };
120
+ //# sourceMappingURL=role-binding-configuration-history.post.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role-binding-configuration-history.post.js","sourceRoot":"","sources":["../../../../src/roles/endpoints/role-binding-configuration-history.post.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,2CAA2C,EAAE,MAAM,iEAAiE,CAAC;AAC9H,OAAO,EAAE,4CAA4C,EAAE,MAAM,kEAAkE,CAAC;AAiBhI;;;;;;;GAOG;AACH,MAAM,eAAe,GAAG;IACtB,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE;QACf,2DAA2D;QAC3D,IAAI,EAAE,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MAAM,CAAC,EAAE,CAAC;QACzG,CAAC;IACH,CAAC;IACD,MAAM,KAAK,CAAC,wBAAwB,OAAO,EAAE,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAM,2CAA2C,GAAG,CAIlD,OAAiB,EACjB,MAAmB,EACnB,MAAM,GAAY,MAAiB,EACnC,EAAE;IAEF,MAAM,UAAU,GAAG,cAAc,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACvD,OAAO,CACL,KAAoE,EACpE,IAGC,EAC0E,EAAE;QAC7E,MAAM,IAAI,GAAG,kBAAkB,CAAC,eAAe,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;QACpE,OAAO,MAAM,CAAC,MAAM,CAAC,CACnB,eAAe,CAAC,UAAU,EAAE,IAAI,CAAC,EACjC,yBAAyB,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,CAC2B,CAAC;IACjF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,wFAAwF;AACxF,6FAA6F;AAC7F,0FAA0F;AAC1F,+DAA+D;AAC/D,mDAAmD;AACnD,OAAO,EAKL,2CAA2C,GAC5C,CAAC"}
@@ -0,0 +1,123 @@
1
+ import { z } from 'zod';
2
+ import { extractVersion, parseVersionedArgs, versionedResponseSelector } from '../../utils';
3
+ import { ApiVersion } from '../static';
4
+ import { ApiBindingNotificationRecordSchemaV1 } from '../v1/schemas/api-binding-notification-record-schema-v1';
5
+ import { SkipSchemaV1 } from '../v1/schemas/skip-schema-v1';
6
+ import { TopSchemaV1 } from '../v1/schemas/top-schema-v1';
7
+ import { apiPagedCollectionSchemaV1 } from '../v1/schemas/api-paged-collection-schema-v1';
8
+ /**
9
+ * Version contract for `listRoleBindingConfigurationNotifications`, implementing
10
+ * `GET /role-binding-configurations/{identifier}/notifications`.
11
+ *
12
+ * Each concrete {@link ApiVersion} maps to the argument and response schemas that
13
+ * version publishes, so the version a caller passes is the single discriminator
14
+ * for the request shape, the request path, and the response shape.
15
+ */
16
+ const VersionContract = {
17
+ [ApiVersion.v1]: {
18
+ /** Arguments accepted by version 1.0 of this operation. */
19
+ args: z
20
+ .object({
21
+ /** Role binding configuration UUID or unique identifier. */
22
+ identifier: z.string().describe('Role binding configuration UUID or unique identifier.'),
23
+ /** Maximum number of records to return. Roles V2 accepts values from 0 through 100. */
24
+ top: TopSchemaV1,
25
+ /** Number of records to skip before returning results. */
26
+ skip: SkipSchemaV1,
27
+ })
28
+ .describe('Arguments for GET /role-binding-configurations/{identifier}/notifications (listRoleBindingConfigurationNotifications v1.0).'),
29
+ /** Response published by version 1.0 of this operation. */
30
+ response: apiPagedCollectionSchemaV1(ApiBindingNotificationRecordSchemaV1),
31
+ },
32
+ };
33
+ /** Builds the request init for the resolved version, including its response-schema selector. */
34
+ const generateRequestParameters = (version, _args, init) => {
35
+ // Select the response schema that matches the requested API version.
36
+ switch (version) {
37
+ case ApiVersion.v1: {
38
+ const baseInit = {
39
+ selector: versionedResponseSelector(VersionContract, version),
40
+ };
41
+ // Apply the caller-supplied `init` first, then the generated defaults, so the
42
+ // version-specific response `selector` always wins and cannot be bypassed.
43
+ return Object.assign({}, init, baseInit);
44
+ }
45
+ }
46
+ throw Error(`Unknown API version: ${version}`);
47
+ };
48
+ /** Builds the request path for the resolved version, including its `api-version` parameter. */
49
+ const generateApiPath = (version, args) => {
50
+ // Build the endpoint path according to the requested API version.
51
+ switch (version) {
52
+ case ApiVersion.v1: {
53
+ const params = new URLSearchParams();
54
+ params.append('api-version', version);
55
+ args.top !== undefined && params.append('$top', String(args.top));
56
+ args.skip !== undefined && params.append('$skip', String(args.skip));
57
+ return `/role-binding-configurations/${encodeURIComponent(args.identifier)}/notifications?${String(params)}`;
58
+ }
59
+ }
60
+ throw Error(`Unknown API version: ${version}`);
61
+ };
62
+ /**
63
+ * Lists the notification log of one role binding configuration, newest notification first.
64
+ *
65
+ * Roles V2 operation: `GET /role-binding-configurations/{identifier}/notifications` — "Get
66
+ * notification log for a role binding configuration. Returns a paginated list of notification
67
+ * records in descending order by received time."
68
+ *
69
+ * Curried in two stages: `listRoleBindingConfigurationNotifications(version, client, method)`
70
+ * binds the API version, the `IHttpClient` that reaches the Roles service, and the execution
71
+ * method — `'json'` for a promise, `'json$'` for an observable stream. The returned function
72
+ * takes {@link ListRoleBindingConfigurationNotificationsArg} plus an optional
73
+ * `ClientRequestInit`, and gives back {@link ListRoleBindingConfigurationNotificationsResult}.
74
+ *
75
+ * The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
76
+ * `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
77
+ * `apiPagedCollectionSchemaV1(ApiBindingNotificationRecordSchemaV1)`, and sends
78
+ * `api-version=1.0` on the request.
79
+ *
80
+ * Query options: `top` and `skip` page the collection as `$top` and `$skip` (`top` accepts
81
+ * 0–100).
82
+ *
83
+ * Roles V2 answers `200 OK`; the body is typed
84
+ * `ApiPagedCollectionV1<ApiBindingNotificationRecordV1>`.
85
+ *
86
+ * @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
87
+ * @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
88
+ * @param version - API version selecting the request path, the argument schema, and the
89
+ * response schema.
90
+ * @param client - HTTP client that executes the request against the Roles service.
91
+ * @param method - Execution method, defaulting to `'json'`.
92
+ * @returns A request function taking {@link ListRoleBindingConfigurationNotificationsArg} and
93
+ * an optional `ClientRequestInit`, returning
94
+ * {@link ListRoleBindingConfigurationNotificationsResult}.
95
+ * @throws {Error} When `version` names an API version this operation does not publish. The
96
+ * check runs while binding, before the HTTP client is used.
97
+ * @throws {z.ZodError} From the returned function, when the arguments fail this version's
98
+ * argument schema or the response body fails its response schema.
99
+ *
100
+ * @example
101
+ * ```ts
102
+ * import { listRoleBindingConfigurationNotifications } from '@equinor/fusion-services/roles';
103
+ *
104
+ * const page = await listRoleBindingConfigurationNotifications('v1', httpClient)({
105
+ * identifier: 'org-chart-sync',
106
+ * top: 25,
107
+ * });
108
+ * ```
109
+ */
110
+ const listRoleBindingConfigurationNotifications = (version, client, method = 'json') => {
111
+ const apiVersion = extractVersion(ApiVersion, version);
112
+ return (input, init) => {
113
+ const args = parseVersionedArgs(VersionContract, apiVersion, input);
114
+ return client[method](generateApiPath(apiVersion, args), generateRequestParameters(apiVersion, args, init));
115
+ };
116
+ };
117
+ // Every symbol is declared under its public name so hover and code completion show this
118
+ // endpoint's own documentation. They are exported in one block rather than inline because an
119
+ // inline `export const` would require renaming the file away from the `<resource>.<verb>`
120
+ // convention that mirrors the OpenAPI operation it implements.
121
+ // fusion-lint-disable-next-line no-separate-export
122
+ export { listRoleBindingConfigurationNotifications, };
123
+ //# sourceMappingURL=role-binding-configuration-notifications.get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role-binding-configuration-notifications.get.js","sourceRoot":"","sources":["../../../../src/roles/endpoints/role-binding-configuration-notifications.get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,oCAAoC,EAAE,MAAM,yDAAyD,CAAC;AAC/G,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;AAgB1F;;;;;;;GAOG;AACH,MAAM,eAAe,GAAG;IACtB,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE;QACf,2DAA2D;QAC3D,IAAI,EAAE,CAAC;aACJ,MAAM,CAAC;YACN,4DAA4D;YAC5D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ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