@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 @@
1
+ {"version":3,"file":"system-access-role.delete.js","sourceRoot":"","sources":["../../../../src/roles/endpoints/system-access-role.delete.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';
3
+ import { ApiVersion } from '../static';
4
+ import { ApiAccessRoleSchemaV1 } from '../v1/schemas/api-access-role-schema-v1';
5
+ /**
6
+ * Version contract for `getSystemAccessRole`, implementing
7
+ * `GET /systems/{systemIdentifier}/access-roles/{accessRoleIdentifier}`.
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
+ /** System UUID or unique system name. */
19
+ systemIdentifier: z.string().describe('System UUID or unique system name.'),
20
+ /** Access role UUID or unique access role name. */
21
+ accessRoleIdentifier: z.string().describe('Access role UUID or unique access role name.'),
22
+ })
23
+ .describe('Arguments for GET /systems/{systemIdentifier}/access-roles/{accessRoleIdentifier} (getSystemAccessRole v1.0).'),
24
+ /** Response published by version 1.0 of this operation. */
25
+ response: ApiAccessRoleSchemaV1,
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
+ const baseInit = {
34
+ selector: versionedResponseSelector(VersionContract, version),
35
+ };
36
+ // Apply the caller-supplied `init` first, then the generated defaults, so the
37
+ // version-specific response `selector` always wins and cannot be bypassed.
38
+ return Object.assign({}, init, baseInit);
39
+ }
40
+ }
41
+ throw Error(`Unknown API version: ${version}`);
42
+ };
43
+ /** Builds the request path for the resolved version, including its `api-version` parameter. */
44
+ const generateApiPath = (version, args) => {
45
+ // Build the endpoint path according to the requested API version.
46
+ switch (version) {
47
+ case ApiVersion.v1: {
48
+ const params = new URLSearchParams();
49
+ params.append('api-version', version);
50
+ return `/systems/${encodeURIComponent(args.systemIdentifier)}/access-roles/${encodeURIComponent(args.accessRoleIdentifier)}?${String(params)}`;
51
+ }
52
+ }
53
+ throw Error(`Unknown API version: ${version}`);
54
+ };
55
+ /**
56
+ * Fetches one access role owned by a system, by its UUID or unique name.
57
+ *
58
+ * Roles V2 operation: `GET /systems/{systemIdentifier}/access-roles/{accessRoleIdentifier}` —
59
+ * "Get an access role by identifier."
60
+ *
61
+ * Curried in two stages: `getSystemAccessRole(version, client, method)` binds the API version,
62
+ * the `IHttpClient` that reaches the Roles service, and the execution method — `'json'` for a
63
+ * promise, `'json$'` for an observable stream. The returned function takes
64
+ * {@link GetSystemAccessRoleArg} plus an optional `ClientRequestInit`, and gives back
65
+ * {@link GetSystemAccessRoleResult}.
66
+ *
67
+ * The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
68
+ * `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
69
+ * `ApiAccessRoleSchemaV1`, and sends `api-version=1.0` on the request.
70
+ *
71
+ * Roles V2 answers `200 OK`; the body is typed `ApiAccessRoleV1`.
72
+ *
73
+ * @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
74
+ * @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
75
+ * @param version - API version selecting the request path, the argument schema, and the
76
+ * response schema.
77
+ * @param client - HTTP client that executes the request against the Roles service.
78
+ * @param method - Execution method, defaulting to `'json'`.
79
+ * @returns A request function taking {@link GetSystemAccessRoleArg} and an optional
80
+ * `ClientRequestInit`, returning {@link GetSystemAccessRoleResult}.
81
+ * @throws {Error} When `version` names an API version this operation does not publish. The
82
+ * check runs while binding, before the HTTP client is used.
83
+ * @throws {z.ZodError} From the returned function, when the arguments fail this version's
84
+ * argument schema or the response body fails its response schema.
85
+ *
86
+ * @example
87
+ * ```ts
88
+ * import { getSystemAccessRole } from '@equinor/fusion-services/roles';
89
+ *
90
+ * const accessRole = await getSystemAccessRole('v1', httpClient)({
91
+ * systemIdentifier: 'fusion-core',
92
+ * accessRoleIdentifier: 'writer',
93
+ * });
94
+ * ```
95
+ */
96
+ const getSystemAccessRole = (version, client, method = 'json') => {
97
+ const apiVersion = extractVersion(ApiVersion, version);
98
+ return (input, init) => {
99
+ const args = parseVersionedArgs(VersionContract, apiVersion, input);
100
+ return client[method](generateApiPath(apiVersion, args), generateRequestParameters(apiVersion, args, init));
101
+ };
102
+ };
103
+ // Every symbol is declared under its public name so hover and code completion show this
104
+ // endpoint's own documentation. They are exported in one block rather than inline because an
105
+ // inline `export const` would require renaming the file away from the `<resource>.<verb>`
106
+ // convention that mirrors the OpenAPI operation it implements.
107
+ // fusion-lint-disable-next-line no-separate-export
108
+ export { getSystemAccessRole, };
109
+ //# sourceMappingURL=system-access-role.get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-access-role.get.js","sourceRoot":"","sources":["../../../../src/roles/endpoints/system-access-role.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,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAehF;;;;;;;GAOG;AACH,MAAM,eAAe,GAAG;IACtB,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE;QACf,2DAA2D;QAC3D,IAAI,EAAE,CAAC;aACJ,MAAM,CAAC;YACN,yCAAyC;YACzC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;YAC3E,mDAAmD;YACnD,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC;SAC1F,CAAC;aACD,QAAQ,CACP,+GAA+G,CAChH;QACH,2DAA2D;QAC3D,QAAQ,EAAE,qBAAqB;KAChC;CACoC,CAAC;AAuCxC,gGAAgG;AAChG,MAAM,yBAAyB,GAAG,CAChC,OAAiB,EACjB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AAI,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,CACG,CAAC;IACzD,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,wFAAwF;AACxF,6FAA6F;AAC7F,0FAA0F;AAC1F,+DAA+D;AAC/D,mDAAmD;AACnD,OAAO,EAKL,mBAAmB,GACpB,CAAC"}
@@ -0,0 +1,119 @@
1
+ import { z } from 'zod';
2
+ import { extractVersion, parseVersionedArgs, versionedResponseSelector } from '../../utils';
3
+ import { ApiVersion } from '../static';
4
+ import { ApiAccessRoleSchemaV1 } from '../v1/schemas/api-access-role-schema-v1';
5
+ import { UpdateAccessRoleRequestSchemaV1 } from '../v1/schemas/update-access-role-request-schema-v1';
6
+ /**
7
+ * Version contract for `updateSystemAccessRole`, implementing
8
+ * `PATCH /systems/{systemIdentifier}/access-roles/{accessRoleIdentifier}`.
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
+ /** System UUID or unique system name. */
20
+ systemIdentifier: z.string().describe('System UUID or unique system name.'),
21
+ /** Access role UUID or unique access role name. */
22
+ accessRoleIdentifier: z.string().describe('Access role UUID or unique access role name.'),
23
+ ...UpdateAccessRoleRequestSchemaV1.shape,
24
+ })
25
+ .describe('Arguments for PATCH /systems/{systemIdentifier}/access-roles/{accessRoleIdentifier} (updateSystemAccessRole v1.0).'),
26
+ /** Response published by version 1.0 of this operation. */
27
+ response: ApiAccessRoleSchemaV1,
28
+ },
29
+ };
30
+ /** Builds the request init for the resolved version, including its response-schema selector. */
31
+ const generateRequestParameters = (version, args, init) => {
32
+ // Select the response schema that matches the requested API version.
33
+ switch (version) {
34
+ case ApiVersion.v1: {
35
+ // Path identifiers address the resource, so only the remaining fields form the request body.
36
+ const { systemIdentifier: _systemIdentifier, accessRoleIdentifier: _accessRoleIdentifier, ...body } = args;
37
+ const baseInit = {
38
+ method: 'PATCH',
39
+ selector: versionedResponseSelector(VersionContract, version),
40
+ body,
41
+ };
42
+ // Apply the caller-supplied `init` first, then the generated defaults, so the
43
+ // generated `method`, `body`, and version-specific response `selector` always win
44
+ // and cannot be overridden or bypassed.
45
+ return Object.assign({}, init, baseInit);
46
+ }
47
+ }
48
+ throw Error(`Unknown API version: ${version}`);
49
+ };
50
+ /** Builds the request path for the resolved version, including its `api-version` parameter. */
51
+ const generateApiPath = (version, args) => {
52
+ // Build the endpoint path according to the requested API version.
53
+ switch (version) {
54
+ case ApiVersion.v1: {
55
+ const params = new URLSearchParams();
56
+ params.append('api-version', version);
57
+ return `/systems/${encodeURIComponent(args.systemIdentifier)}/access-roles/${encodeURIComponent(args.accessRoleIdentifier)}?${String(params)}`;
58
+ }
59
+ }
60
+ throw Error(`Unknown API version: ${version}`);
61
+ };
62
+ /**
63
+ * Updates the description of a system access role.
64
+ *
65
+ * Roles V2 operation: `PATCH /systems/{systemIdentifier}/access-roles/{accessRoleIdentifier}` —
66
+ * "Update an access role for a system."
67
+ *
68
+ * Curried in two stages: `updateSystemAccessRole(version, client, method)` binds the API
69
+ * version, the `IHttpClient` that reaches the Roles service, and the execution method —
70
+ * `'json'` for a promise, `'json$'` for an observable stream. The returned function takes
71
+ * {@link UpdateSystemAccessRoleArg} plus an optional `ClientRequestInit`, and gives back
72
+ * {@link UpdateSystemAccessRoleResult}.
73
+ *
74
+ * The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
75
+ * `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
76
+ * `ApiAccessRoleSchemaV1`, and sends `api-version=1.0` on the request.
77
+ *
78
+ * Roles V2 answers `200 OK`; the body is typed `ApiAccessRoleV1`. Fields left out of the
79
+ * arguments are not sent, so they keep their stored values. The contract declares `403
80
+ * Forbidden` for callers the Roles service does not authorise for this operation.
81
+ *
82
+ * @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
83
+ * @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
84
+ * @param version - API version selecting the request path, the argument schema, and the
85
+ * response schema.
86
+ * @param client - HTTP client that executes the request against the Roles service.
87
+ * @param method - Execution method, defaulting to `'json'`.
88
+ * @returns A request function taking {@link UpdateSystemAccessRoleArg} and an optional
89
+ * `ClientRequestInit`, returning {@link UpdateSystemAccessRoleResult}.
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 { updateSystemAccessRole } from '@equinor/fusion-services/roles';
98
+ *
99
+ * const accessRole = await updateSystemAccessRole('v1', httpClient)({
100
+ * systemIdentifier: 'fusion-core',
101
+ * accessRoleIdentifier: 'writer',
102
+ * description: 'Write access',
103
+ * });
104
+ * ```
105
+ */
106
+ const updateSystemAccessRole = (version, client, method = 'json') => {
107
+ const apiVersion = extractVersion(ApiVersion, version);
108
+ return (input, init) => {
109
+ const args = parseVersionedArgs(VersionContract, apiVersion, input);
110
+ return client[method](generateApiPath(apiVersion, args), generateRequestParameters(apiVersion, args, init));
111
+ };
112
+ };
113
+ // Every symbol is declared under its public name so hover and code completion show this
114
+ // endpoint's own documentation. They are exported in one block rather than inline because an
115
+ // inline `export const` would require renaming the file away from the `<resource>.<verb>`
116
+ // convention that mirrors the OpenAPI operation it implements.
117
+ // fusion-lint-disable-next-line no-separate-export
118
+ export { updateSystemAccessRole, };
119
+ //# sourceMappingURL=system-access-role.patch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-access-role.patch.js","sourceRoot":"","sources":["../../../../src/roles/endpoints/system-access-role.patch.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,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,+BAA+B,EAAE,MAAM,oDAAoD,CAAC;AAerG;;;;;;;GAOG;AACH,MAAM,eAAe,GAAG;IACtB,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE;QACf,2DAA2D;QAC3D,IAAI,EAAE,CAAC;aACJ,MAAM,CAAC;YACN,yCAAyC;YACzC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;YAC3E,mDAAmD;YACnD,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC;YACzF,GAAG,+BAA+B,CAAC,KAAK;SACzC,CAAC;aACD,QAAQ,CACP,oHAAoH,CACrH;QACH,2DAA2D;QAC3D,QAAQ,EAAE,qBAAqB;KAChC;CACoC,CAAC;AAuCxC,gGAAgG;AAChG,MAAM,yBAAyB,GAAG,CAChC,OAAiB,EACjB,IAA2D,EAC3D,IAA8C,EACL,EAAE;IAC3C,qEAAqE;IACrE,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,UAAU,CAAC,EAAE,EAAE,CAAC;YACnB,6FAA6F;YAC7F,MAAM,EACJ,gBAAgB,EAAE,iBAAiB,EACnC,oBAAoB,EAAE,qBAAqB,EAC3C,GAAG,IAAI,EACR,GAAG,IAAI,CAAC;YACT,MAAM,QAAQ,GAGV;gBACF,MAAM,EAAE,OAAO;gBACf,QAAQ,EAAE,yBAAyB,CAAC,eAAe,EA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,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,CACM,CAAC;IAC5D,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,wFAAwF;AACxF,6FAA6F;AAC7F,0FAA0F;AAC1F,+DAA+D;AAC/D,mDAAmD;AACnD,OAAO,EAKL,sBAAsB,GACvB,CAAC"}
@@ -0,0 +1,106 @@
1
+ import { z } from 'zod';
2
+ import { extractVersion, parseVersionedArgs, versionedResponseSelector } from '../../utils';
3
+ import { ApiVersion } from '../static';
4
+ import { ApiAccessRoleSchemaV1 } from '../v1/schemas/api-access-role-schema-v1';
5
+ /**
6
+ * Version contract for `listSystemAccessRoles`, implementing
7
+ * `GET /systems/{systemIdentifier}/access-roles`.
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
+ /** System UUID or unique system name. */
19
+ systemIdentifier: z.string().describe('System UUID or unique system name.'),
20
+ })
21
+ .describe('Arguments for GET /systems/{systemIdentifier}/access-roles (listSystemAccessRoles v1.0).'),
22
+ /** Response published by version 1.0 of this operation. */
23
+ response: z.array(ApiAccessRoleSchemaV1),
24
+ },
25
+ };
26
+ /** Builds the request init for the resolved version, including its response-schema selector. */
27
+ const generateRequestParameters = (version, _args, init) => {
28
+ // Select the response schema that matches the requested API version.
29
+ switch (version) {
30
+ case ApiVersion.v1: {
31
+ const baseInit = {
32
+ selector: versionedResponseSelector(VersionContract, version),
33
+ };
34
+ // Apply the caller-supplied `init` first, then the generated defaults, so the
35
+ // version-specific response `selector` always wins and cannot be bypassed.
36
+ return Object.assign({}, init, baseInit);
37
+ }
38
+ }
39
+ throw Error(`Unknown API version: ${version}`);
40
+ };
41
+ /** Builds the request path for the resolved version, including its `api-version` parameter. */
42
+ const generateApiPath = (version, args) => {
43
+ // Build the endpoint path according to the requested API version.
44
+ switch (version) {
45
+ case ApiVersion.v1: {
46
+ const params = new URLSearchParams();
47
+ params.append('api-version', version);
48
+ return `/systems/${encodeURIComponent(args.systemIdentifier)}/access-roles?${String(params)}`;
49
+ }
50
+ }
51
+ throw Error(`Unknown API version: ${version}`);
52
+ };
53
+ /**
54
+ * Lists the access roles owned by one registered system.
55
+ *
56
+ * Roles V2 operation: `GET /systems/{systemIdentifier}/access-roles` — "Get all access roles
57
+ * for a system."
58
+ *
59
+ * Curried in two stages: `listSystemAccessRoles(version, client, method)` binds the API
60
+ * version, the `IHttpClient` that reaches the Roles service, and the execution method —
61
+ * `'json'` for a promise, `'json$'` for an observable stream. The returned function takes
62
+ * {@link ListSystemAccessRolesArg} plus an optional `ClientRequestInit`, and gives back
63
+ * {@link ListSystemAccessRolesResult}.
64
+ *
65
+ * The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
66
+ * `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
67
+ * `z.array(ApiAccessRoleSchemaV1)`, and sends `api-version=1.0` on the request.
68
+ *
69
+ * Roles V2 answers `200 OK`; the body is typed `ApiAccessRoleV1[]`.
70
+ *
71
+ * @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
72
+ * @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
73
+ * @param version - API version selecting the request path, the argument schema, and the
74
+ * response schema.
75
+ * @param client - HTTP client that executes the request against the Roles service.
76
+ * @param method - Execution method, defaulting to `'json'`.
77
+ * @returns A request function taking {@link ListSystemAccessRolesArg} and an optional
78
+ * `ClientRequestInit`, returning {@link ListSystemAccessRolesResult}.
79
+ * @throws {Error} When `version` names an API version this operation does not publish. The
80
+ * check runs while binding, before the HTTP client is used.
81
+ * @throws {z.ZodError} From the returned function, when the arguments fail this version's
82
+ * argument schema or the response body fails its response schema.
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * import { listSystemAccessRoles } from '@equinor/fusion-services/roles';
87
+ *
88
+ * const page = await listSystemAccessRoles('v1', httpClient)({
89
+ * systemIdentifier: 'fusion-core',
90
+ * });
91
+ * ```
92
+ */
93
+ const listSystemAccessRoles = (version, client, method = 'json') => {
94
+ const apiVersion = extractVersion(ApiVersion, version);
95
+ return (input, init) => {
96
+ const args = parseVersionedArgs(VersionContract, apiVersion, input);
97
+ return client[method](generateApiPath(apiVersion, args), generateRequestParameters(apiVersion, args, init));
98
+ };
99
+ };
100
+ // Every symbol is declared under its public name so hover and code completion show this
101
+ // endpoint's own documentation. They are exported in one block rather than inline because an
102
+ // inline `export const` would require renaming the file away from the `<resource>.<verb>`
103
+ // convention that mirrors the OpenAPI operation it implements.
104
+ // fusion-lint-disable-next-line no-separate-export
105
+ export { listSystemAccessRoles, };
106
+ //# sourceMappingURL=system-access-roles.get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-access-roles.get.js","sourceRoot":"","sources":["../../../../src/roles/endpoints/system-access-roles.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,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAehF;;;;;;;GAOG;AACH,MAAM,eAAe,GAAG;IACtB,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE;QACf,2DAA2D;QAC3D,IAAI,EAAE,CAAC;aACJ,MAAM,CAAC;YACN,yCAAyC;YACzC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;SAC5E,CAAC;aACD,QAAQ,CACP,0FAA0F,CAC3F;QACH,2DAA2D;QAC3D,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC;KACzC;CACoC,CAAC;A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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,CACK,CAAC;IAC3D,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,wFAAwF;AACxF,6FAA6F;AAC7F,0FAA0F;AAC1F,+DAA+D;AAC/D,mDAAmD;AACnD,OAAO,EAKL,qBAAqB,GACtB,CAAC"}
@@ -0,0 +1,116 @@
1
+ import { z } from 'zod';
2
+ import { extractVersion, parseVersionedArgs, versionedResponseSelector } from '../../utils';
3
+ import { ApiVersion } from '../static';
4
+ import { ApiAccessRoleSchemaV1 } from '../v1/schemas/api-access-role-schema-v1';
5
+ import { CreateAccessRoleRequestSchemaV1 } from '../v1/schemas/create-access-role-request-schema-v1';
6
+ /**
7
+ * Version contract for `createSystemAccessRole`, implementing
8
+ * `POST /systems/{systemIdentifier}/access-roles`.
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
+ /** System UUID or unique system name. */
20
+ systemIdentifier: z.string().describe('System UUID or unique system name.'),
21
+ ...CreateAccessRoleRequestSchemaV1.shape,
22
+ })
23
+ .describe('Arguments for POST /systems/{systemIdentifier}/access-roles (createSystemAccessRole v1.0).'),
24
+ /** Response published by version 1.0 of this operation. */
25
+ response: ApiAccessRoleSchemaV1,
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 { systemIdentifier: _systemIdentifier, ...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 `/systems/${encodeURIComponent(args.systemIdentifier)}/access-roles?${String(params)}`;
56
+ }
57
+ }
58
+ throw Error(`Unknown API version: ${version}`);
59
+ };
60
+ /**
61
+ * Creates an access role owned by a registered system.
62
+ *
63
+ * Roles V2 operation: `POST /systems/{systemIdentifier}/access-roles` — "Create an access role
64
+ * for a system."
65
+ *
66
+ * Curried in two stages: `createSystemAccessRole(version, client, method)` binds the API
67
+ * version, the `IHttpClient` that reaches the Roles service, and the execution method —
68
+ * `'json'` for a promise, `'json$'` for an observable stream. The returned function takes
69
+ * {@link CreateSystemAccessRoleArg} plus an optional `ClientRequestInit`, and gives back
70
+ * {@link CreateSystemAccessRoleResult}.
71
+ *
72
+ * The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
73
+ * `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
74
+ * `ApiAccessRoleSchemaV1`, and sends `api-version=1.0` on the request.
75
+ *
76
+ * Roles V2 answers `201 Created`; the body is typed `ApiAccessRoleV1`. The contract declares
77
+ * `403 Forbidden` for callers the Roles service does not authorise for this operation.
78
+ *
79
+ * @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
80
+ * @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
81
+ * @param version - API version selecting the request path, the argument schema, and the
82
+ * response schema.
83
+ * @param client - HTTP client that executes the request against the Roles service.
84
+ * @param method - Execution method, defaulting to `'json'`.
85
+ * @returns A request function taking {@link CreateSystemAccessRoleArg} and an optional
86
+ * `ClientRequestInit`, returning {@link CreateSystemAccessRoleResult}.
87
+ * @throws {Error} When `version` names an API version this operation does not publish. The
88
+ * check runs while binding, before the HTTP client is used.
89
+ * @throws {z.ZodError} From the returned function, when the arguments fail this version's
90
+ * argument schema or the response body fails its response schema.
91
+ *
92
+ * @example
93
+ * ```ts
94
+ * import { createSystemAccessRole } from '@equinor/fusion-services/roles';
95
+ *
96
+ * const accessRole = await createSystemAccessRole('v1', httpClient)({
97
+ * systemIdentifier: 'fusion-core',
98
+ * name: 'writer',
99
+ * description: 'Write access',
100
+ * });
101
+ * ```
102
+ */
103
+ const createSystemAccessRole = (version, client, method = 'json') => {
104
+ const apiVersion = extractVersion(ApiVersion, version);
105
+ return (input, init) => {
106
+ const args = parseVersionedArgs(VersionContract, apiVersion, input);
107
+ return client[method](generateApiPath(apiVersion, args), generateRequestParameters(apiVersion, args, init));
108
+ };
109
+ };
110
+ // Every symbol is declared under its public name so hover and code completion show this
111
+ // endpoint's own documentation. They are exported in one block rather than inline because an
112
+ // inline `export const` would require renaming the file away from the `<resource>.<verb>`
113
+ // convention that mirrors the OpenAPI operation it implements.
114
+ // fusion-lint-disable-next-line no-separate-export
115
+ export { createSystemAccessRole, };
116
+ //# sourceMappingURL=system-access-roles.post.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-access-roles.post.js","sourceRoot":"","sources":["../../../../src/roles/endpoints/system-access-roles.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,UA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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,YAAY,kBAAkB,CAAC,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAChG,CAAC;IACH,CAAC;IACD,MAAM,KAAK,CAAC,wBAAwB,OAAO,EAAE,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,sBAAsB,GAAG,CAI7B,OAAiB,EACjB,MAAmB,EACnB,MAAM,GAAY,MAAiB,EACnC,EAAE;IAEF,MAAM,UAAU,GAAG,cAAc,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACvD,OAAO,CACL,KAA+C,EAC/C,IAAoF,EAC9B,EAAE;QACxD,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,CACM,CAAC;IAC5D,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,wFAAwF;AACxF,6FAA6F;AAC7F,0FAA0F;AAC1F,+DAA+D;AAC/D,mDAAmD;AACnD,OAAO,EAKL,sBAAsB,GACvB,CAAC"}
@@ -0,0 +1,108 @@
1
+ import { z } from 'zod';
2
+ import { extractVersion, parseVersionedArgs, versionedResponseSelector } from '../../utils';
3
+ import { ApiVersion } from '../static';
4
+ /**
5
+ * Version contract for `deleteSystem`, implementing `DELETE /systems/{systemIdentifier}`.
6
+ *
7
+ * Each concrete {@link ApiVersion} maps to the argument and response schemas that
8
+ * version publishes, so the version a caller passes is the single discriminator
9
+ * for the request shape, the request path, and the response shape.
10
+ */
11
+ const VersionContract = {
12
+ [ApiVersion.v1]: {
13
+ /** Arguments accepted by version 1.0 of this operation. */
14
+ args: z
15
+ .object({
16
+ /** System UUID or unique system name. */
17
+ systemIdentifier: z.string().describe('System UUID or unique system name.'),
18
+ })
19
+ .describe('Arguments for DELETE /systems/{systemIdentifier} (deleteSystem v1.0).'),
20
+ /** Response published by version 1.0. The operation answers `204 No Content`. */
21
+ response: z.void(),
22
+ },
23
+ };
24
+ /** Builds the request init for the resolved version, including its response-schema selector. */
25
+ const generateRequestParameters = (version, _args, init) => {
26
+ // Select the response schema that matches the requested API version.
27
+ switch (version) {
28
+ case ApiVersion.v1: {
29
+ const baseInit = {
30
+ method: 'DELETE',
31
+ selector: versionedResponseSelector(VersionContract, version),
32
+ // The contract declares no request body, so any caller-supplied body is dropped.
33
+ body: undefined,
34
+ };
35
+ // Apply the caller-supplied `init` first, then the generated defaults, so the
36
+ // generated `method`, forced empty `body`, and version-specific response `selector`
37
+ // always win and cannot be overridden or bypassed.
38
+ return Object.assign({}, init, baseInit);
39
+ }
40
+ }
41
+ throw Error(`Unknown API version: ${version}`);
42
+ };
43
+ /** Builds the request path for the resolved version, including its `api-version` parameter. */
44
+ const generateApiPath = (version, args) => {
45
+ // Build the endpoint path according to the requested API version.
46
+ switch (version) {
47
+ case ApiVersion.v1: {
48
+ const params = new URLSearchParams();
49
+ params.append('api-version', version);
50
+ return `/systems/${encodeURIComponent(args.systemIdentifier)}?${String(params)}`;
51
+ }
52
+ }
53
+ throw Error(`Unknown API version: ${version}`);
54
+ };
55
+ /**
56
+ * Deletes a registered system, addressed by its UUID or unique name.
57
+ *
58
+ * Roles V2 operation: `DELETE /systems/{systemIdentifier}` — "Delete a system by identifier."
59
+ *
60
+ * Curried in two stages: `deleteSystem(version, client, method)` binds the API version, the
61
+ * `IHttpClient` that reaches the Roles service, and the execution method — `'json'` for a
62
+ * promise, `'json$'` for an observable stream. The returned function takes
63
+ * {@link DeleteSystemArg} plus an optional `ClientRequestInit`, and gives back
64
+ * {@link DeleteSystemResult}.
65
+ *
66
+ * The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
67
+ * `ApiVersion.v1` — selects the version-1.0 argument schema, expects the empty success body,
68
+ * and sends `api-version=1.0` on the request.
69
+ *
70
+ * Destructive: it removes the registered system permanently, and the deletion cannot be undone
71
+ * through this API. Roles V2 answers `204 No Content` with no body, so the resolved value is
72
+ * `void`. The contract declares `403 Forbidden` for callers the Roles service does not
73
+ * authorise for this operation.
74
+ *
75
+ * @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
76
+ * @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
77
+ * @param version - API version selecting the request path, the argument schema, and the
78
+ * response schema.
79
+ * @param client - HTTP client that executes the request against the Roles service.
80
+ * @param method - Execution method, defaulting to `'json'`.
81
+ * @returns A request function taking {@link DeleteSystemArg} and an optional
82
+ * `ClientRequestInit`, returning {@link DeleteSystemResult}.
83
+ * @throws {Error} When `version` names an API version this operation does not publish. The
84
+ * check runs while binding, before the HTTP client is used.
85
+ * @throws {z.ZodError} From the returned function, when the arguments fail this version's
86
+ * argument schema or the response body fails its response schema.
87
+ *
88
+ * @example
89
+ * ```ts
90
+ * import { deleteSystem } from '@equinor/fusion-services/roles';
91
+ *
92
+ * await deleteSystem('v1', httpClient)({ systemIdentifier: 'fusion-core' });
93
+ * ```
94
+ */
95
+ const deleteSystem = (version, client, method = 'json') => {
96
+ const apiVersion = extractVersion(ApiVersion, version);
97
+ return (input, init) => {
98
+ const args = parseVersionedArgs(VersionContract, apiVersion, input);
99
+ return client[method](generateApiPath(apiVersion, args), generateRequestParameters(apiVersion, args, init));
100
+ };
101
+ };
102
+ // Every symbol is declared under its public name so hover and code completion show this
103
+ // endpoint's own documentation. They are exported in one block rather than inline because an
104
+ // inline `export const` would require renaming the file away from the `<resource>.<verb>`
105
+ // convention that mirrors the OpenAPI operation it implements.
106
+ // fusion-lint-disable-next-line no-separate-export
107
+ export { deleteSystem, };
108
+ //# sourceMappingURL=system.delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.delete.js","sourceRoot":"","sources":["../../../../src/roles/endpoints/system.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;;;;;;GAMG;AACH,MAAM,eAAe,GAAG;IACtB,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE;QACf,2DAA2D;QAC3D,IAAI,EAAE,CAAC;aACJ,MAAM,CAAC;YACN,yCAAyC;YACzC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;SAC5E,CAAC;aACD,QAAQ,CAAC,uEAAuE,CAAC;QACpF,iFAAiF;QACjF,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE;KACnB;CACoC,CAAC;AAsCxC,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,GAAuE;gBACnF,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,C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