@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,152 @@
1
+ import { z } from 'zod';
2
+ import type { ClientRequestInit, IHttpClient } from '@equinor/fusion-framework-module-http/client';
3
+ import type { ClientMethod, ClientMethodType, ExtractApiVersion, FilterAllowedApiVersions, VersionedArgs, VersionedResponse } from '../types';
4
+ import { ApiVersion } from '../static';
5
+ /** Concrete API versions this operation publishes. */
6
+ type AvailableVersions = ApiVersion.v1;
7
+ /**
8
+ * API version identifiers `getClaimableRoleAssignment` accepts for
9
+ * `GET /claimable-roles/{claimableRoleIdentifier}/assignments/{claimableRoleAssignmentId}`.
10
+ *
11
+ * Roles V2 publishes version 1.0 of this operation, nameable as `'v1'`, `'1.0'`, or
12
+ * `ApiVersion.v1`. All three resolve to the same contract entry, so all three infer the same
13
+ * {@link GetClaimableRoleAssignmentArg} and {@link GetClaimableRoleAssignmentResponse}.
14
+ */
15
+ type GetClaimableRoleAssignmentVersion = FilterAllowedApiVersions<AvailableVersions>;
16
+ /**
17
+ * Version contract for `getClaimableRoleAssignment`, implementing
18
+ * `GET /claimable-roles/{claimableRoleIdentifier}/assignments/{claimableRoleAssignmentId}`.
19
+ *
20
+ * Each concrete {@link ApiVersion} maps to the argument and response schemas that
21
+ * version publishes, so the version a caller passes is the single discriminator
22
+ * for the request shape, the request path, and the response shape.
23
+ */
24
+ declare const VersionContract: {
25
+ readonly "1.0": {
26
+ /** Arguments accepted by version 1.0 of this operation. */
27
+ readonly args: z.ZodObject<{
28
+ claimableRoleIdentifier: z.ZodString;
29
+ claimableRoleAssignmentId: z.ZodString;
30
+ }, z.core.$strip>;
31
+ /** Response published by version 1.0 of this operation. */
32
+ readonly response: z.ZodObject<{
33
+ id: z.ZodOptional<z.ZodString>;
34
+ assignedTo: z.ZodOptional<z.ZodObject<{
35
+ azureUniqueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ displayName: z.ZodOptional<z.ZodString>;
38
+ upn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ accountType: z.ZodOptional<z.ZodString>;
40
+ accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ }, z.core.$strip>>;
42
+ claimableRole: z.ZodOptional<z.ZodObject<{
43
+ id: z.ZodOptional<z.ZodString>;
44
+ name: z.ZodOptional<z.ZodString>;
45
+ displayName: z.ZodOptional<z.ZodString>;
46
+ description: z.ZodOptional<z.ZodString>;
47
+ accessRoleMappings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
48
+ accessRole: z.ZodOptional<z.ZodObject<{
49
+ id: z.ZodOptional<z.ZodString>;
50
+ name: z.ZodOptional<z.ZodString>;
51
+ description: z.ZodOptional<z.ZodString>;
52
+ scopeType: z.ZodOptional<z.ZodNullable<z.ZodObject<{
53
+ id: z.ZodOptional<z.ZodString>;
54
+ name: z.ZodOptional<z.ZodString>;
55
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ }, z.core.$strip>>>;
57
+ }, z.core.$strip>>;
58
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ }, z.core.$strip>>>>;
60
+ system: z.ZodOptional<z.ZodNullable<z.ZodObject<{
61
+ id: z.ZodOptional<z.ZodString>;
62
+ name: z.ZodOptional<z.ZodString>;
63
+ }, z.core.$strip>>>;
64
+ }, z.core.$strip>>;
65
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
+ externalIdentifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ reason: z.ZodOptional<z.ZodString>;
68
+ type: z.ZodOptional<z.ZodString>;
69
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ validTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ isActive: z.ZodOptional<z.ZodBoolean>;
72
+ activeTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ scope: z.ZodOptional<z.ZodNullable<z.ZodObject<{
74
+ isGlobal: z.ZodBoolean;
75
+ value: z.ZodNullable<z.ZodString>;
76
+ scopeTypeIdentifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ }, z.core.$strip>>>;
78
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
79
+ }, z.core.$strip>;
80
+ };
81
+ };
82
+ /**
83
+ * Response body `getClaimableRoleAssignment` resolves for the selected API version.
84
+ *
85
+ * Version 1.0 resolves to `ApiClaimableRoleAssignmentV1`, inferred from
86
+ * `ApiClaimableRoleAssignmentSchemaV1` — the very schema that validates the `200 OK` body at
87
+ * runtime.
88
+ */
89
+ type GetClaimableRoleAssignmentResponse<TVersion extends GetClaimableRoleAssignmentVersion> = VersionedResponse<typeof VersionContract, ExtractApiVersion<TVersion>>;
90
+ /**
91
+ * Arguments `getClaimableRoleAssignment` accepts, resolved from the selected API version.
92
+ *
93
+ * Version 1.0 accepts the path identifiers `claimableRoleIdentifier`,
94
+ * `claimableRoleAssignmentId`.
95
+ *
96
+ * The value is parsed by the version's Zod argument schema before the request path is built, so
97
+ * defaults and range checks apply up front.
98
+ */
99
+ type GetClaimableRoleAssignmentArg<TVersion extends GetClaimableRoleAssignmentVersion> = VersionedArgs<typeof VersionContract, ExtractApiVersion<TVersion>>;
100
+ /**
101
+ * What `getClaimableRoleAssignment` hands back once the request runs, for the selected API
102
+ * version and client method.
103
+ *
104
+ * `'json'` gives `Promise<GetClaimableRoleAssignmentResponse<TVersion>>` and `'json$'` gives
105
+ * `StreamResponse<GetClaimableRoleAssignmentResponse<TVersion>>`, so promise and observable
106
+ * callers share one response type.
107
+ */
108
+ type GetClaimableRoleAssignmentResult<TVersion extends GetClaimableRoleAssignmentVersion, TMethod extends ClientMethodType = 'json'> = ClientMethod<GetClaimableRoleAssignmentResponse<TVersion>>[TMethod];
109
+ /**
110
+ * Fetches one assignment of a claimable role, addressed by its assignment ID.
111
+ *
112
+ * Roles V2 operation:
113
+ * `GET /claimable-roles/{claimableRoleIdentifier}/assignments/{claimableRoleAssignmentId}` —
114
+ * "Get a claimable role assignment by ID."
115
+ *
116
+ * Curried in two stages: `getClaimableRoleAssignment(version, client, method)` binds the API
117
+ * version, the `IHttpClient` that reaches the Roles service, and the execution method —
118
+ * `'json'` for a promise, `'json$'` for an observable stream. The returned function takes
119
+ * {@link GetClaimableRoleAssignmentArg} plus an optional `ClientRequestInit`, and gives back
120
+ * {@link GetClaimableRoleAssignmentResult}.
121
+ *
122
+ * The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
123
+ * `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
124
+ * `ApiClaimableRoleAssignmentSchemaV1`, and sends `api-version=1.0` on the request.
125
+ *
126
+ * Roles V2 answers `200 OK`; the body is typed `ApiClaimableRoleAssignmentV1`.
127
+ *
128
+ * @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
129
+ * @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
130
+ * @param version - API version selecting the request path, the argument schema, and the
131
+ * response schema.
132
+ * @param client - HTTP client that executes the request against the Roles service.
133
+ * @param method - Execution method, defaulting to `'json'`.
134
+ * @returns A request function taking {@link GetClaimableRoleAssignmentArg} and an optional
135
+ * `ClientRequestInit`, returning {@link GetClaimableRoleAssignmentResult}.
136
+ * @throws {Error} When `version` names an API version this operation does not publish. The
137
+ * check runs while binding, before the HTTP client is used.
138
+ * @throws {z.ZodError} From the returned function, when the arguments fail this version's
139
+ * argument schema or the response body fails its response schema.
140
+ *
141
+ * @example
142
+ * ```ts
143
+ * import { getClaimableRoleAssignment } from '@equinor/fusion-services/roles';
144
+ *
145
+ * const assignment = await getClaimableRoleAssignment('v1', httpClient)({
146
+ * claimableRoleIdentifier: 'on-call-approver',
147
+ * claimableRoleAssignmentId: '6b1d4f2a-8c3e-4d59-9f70-1a2b3c4d5e6f',
148
+ * });
149
+ * ```
150
+ */
151
+ declare const getClaimableRoleAssignment: <TVersion extends GetClaimableRoleAssignmentVersion, TMethod extends ClientMethodType = 'json'>(version: TVersion, client: IHttpClient, method?: TMethod) => (input: GetClaimableRoleAssignmentArg<ExtractApiVersion<TVersion>>, init?: ClientRequestInit<IHttpClient, GetClaimableRoleAssignmentResponse<ExtractApiVersion<TVersion>>>) => GetClaimableRoleAssignmentResult<ExtractApiVersion<TVersion>, TMethod>;
152
+ export { type GetClaimableRoleAssignmentArg, type GetClaimableRoleAssignmentResponse, type GetClaimableRoleAssignmentResult, type GetClaimableRoleAssignmentVersion, getClaimableRoleAssignment, };
@@ -0,0 +1,158 @@
1
+ import { z } from 'zod';
2
+ import type { ClientRequestInit, IHttpClient } from '@equinor/fusion-framework-module-http/client';
3
+ import type { ClientMethod, ClientMethodType, ExtractApiVersion, FilterAllowedApiVersions, VersionedArgs, VersionedResponse } from '../types';
4
+ import { ApiVersion } from '../static';
5
+ /** Concrete API versions this operation publishes. */
6
+ type AvailableVersions = ApiVersion.v1;
7
+ /**
8
+ * API version identifiers `updateClaimableRoleAssignment` accepts for
9
+ * `PATCH /claimable-roles/{claimableRoleIdentifier}/assignments/{claimableRoleAssignmentId}`.
10
+ *
11
+ * Roles V2 publishes version 1.0 of this operation, nameable as `'v1'`, `'1.0'`, or
12
+ * `ApiVersion.v1`. All three resolve to the same contract entry, so all three infer the same
13
+ * {@link UpdateClaimableRoleAssignmentArg} and {@link UpdateClaimableRoleAssignmentResponse}.
14
+ */
15
+ type UpdateClaimableRoleAssignmentVersion = FilterAllowedApiVersions<AvailableVersions>;
16
+ /**
17
+ * Version contract for `updateClaimableRoleAssignment`, implementing
18
+ * `PATCH /claimable-roles/{claimableRoleIdentifier}/assignments/{claimableRoleAssignmentId}`.
19
+ *
20
+ * Each concrete {@link ApiVersion} maps to the argument and response schemas that
21
+ * version publishes, so the version a caller passes is the single discriminator
22
+ * for the request shape, the request path, and the response shape.
23
+ */
24
+ declare const VersionContract: {
25
+ readonly "1.0": {
26
+ /** Arguments accepted by version 1.0 of this operation. */
27
+ readonly args: z.ZodObject<{
28
+ validTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ claimableRoleIdentifier: z.ZodString;
30
+ claimableRoleAssignmentId: z.ZodString;
31
+ }, z.core.$strip>;
32
+ /** Response published by version 1.0 of this operation. */
33
+ readonly response: z.ZodObject<{
34
+ id: z.ZodOptional<z.ZodString>;
35
+ assignedTo: z.ZodOptional<z.ZodObject<{
36
+ azureUniqueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ displayName: z.ZodOptional<z.ZodString>;
39
+ upn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ accountType: z.ZodOptional<z.ZodString>;
41
+ accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ }, z.core.$strip>>;
43
+ claimableRole: z.ZodOptional<z.ZodObject<{
44
+ id: z.ZodOptional<z.ZodString>;
45
+ name: z.ZodOptional<z.ZodString>;
46
+ displayName: z.ZodOptional<z.ZodString>;
47
+ description: z.ZodOptional<z.ZodString>;
48
+ accessRoleMappings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
49
+ accessRole: z.ZodOptional<z.ZodObject<{
50
+ id: z.ZodOptional<z.ZodString>;
51
+ name: z.ZodOptional<z.ZodString>;
52
+ description: z.ZodOptional<z.ZodString>;
53
+ scopeType: z.ZodOptional<z.ZodNullable<z.ZodObject<{
54
+ id: z.ZodOptional<z.ZodString>;
55
+ name: z.ZodOptional<z.ZodString>;
56
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ }, z.core.$strip>>>;
58
+ }, z.core.$strip>>;
59
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ }, z.core.$strip>>>>;
61
+ system: z.ZodOptional<z.ZodNullable<z.ZodObject<{
62
+ id: z.ZodOptional<z.ZodString>;
63
+ name: z.ZodOptional<z.ZodString>;
64
+ }, z.core.$strip>>>;
65
+ }, z.core.$strip>>;
66
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ externalIdentifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ reason: z.ZodOptional<z.ZodString>;
69
+ type: z.ZodOptional<z.ZodString>;
70
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ validTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ isActive: z.ZodOptional<z.ZodBoolean>;
73
+ activeTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ scope: z.ZodOptional<z.ZodNullable<z.ZodObject<{
75
+ isGlobal: z.ZodBoolean;
76
+ value: z.ZodNullable<z.ZodString>;
77
+ scopeTypeIdentifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ }, z.core.$strip>>>;
79
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
80
+ }, z.core.$strip>;
81
+ };
82
+ };
83
+ /**
84
+ * Response body `updateClaimableRoleAssignment` resolves for the selected API version.
85
+ *
86
+ * Version 1.0 resolves to `ApiClaimableRoleAssignmentV1`, inferred from
87
+ * `ApiClaimableRoleAssignmentSchemaV1` — the very schema that validates the `200 OK` body at
88
+ * runtime.
89
+ */
90
+ type UpdateClaimableRoleAssignmentResponse<TVersion extends UpdateClaimableRoleAssignmentVersion> = VersionedResponse<typeof VersionContract, ExtractApiVersion<TVersion>>;
91
+ /**
92
+ * Arguments `updateClaimableRoleAssignment` accepts, resolved from the selected API version.
93
+ *
94
+ * Version 1.0 accepts the path identifiers `claimableRoleIdentifier`,
95
+ * `claimableRoleAssignmentId`, and the request body fields of
96
+ * `UpdateClaimableRoleAssignmentRequestV1`.
97
+ *
98
+ * Path identifiers and body fields share one flat object; the endpoint separates them when it
99
+ * builds the request. The value is parsed by the version's Zod argument schema before anything
100
+ * is sent.
101
+ */
102
+ type UpdateClaimableRoleAssignmentArg<TVersion extends UpdateClaimableRoleAssignmentVersion> = VersionedArgs<typeof VersionContract, ExtractApiVersion<TVersion>>;
103
+ /**
104
+ * What `updateClaimableRoleAssignment` hands back once the request runs, for the selected API
105
+ * version and client method.
106
+ *
107
+ * `'json'` gives `Promise<UpdateClaimableRoleAssignmentResponse<TVersion>>` and `'json$'` gives
108
+ * `StreamResponse<UpdateClaimableRoleAssignmentResponse<TVersion>>`, so promise and observable
109
+ * callers share one response type.
110
+ */
111
+ type UpdateClaimableRoleAssignmentResult<TVersion extends UpdateClaimableRoleAssignmentVersion, TMethod extends ClientMethodType = 'json'> = ClientMethod<UpdateClaimableRoleAssignmentResponse<TVersion>>[TMethod];
112
+ /**
113
+ * Extends or shortens a claimable role assignment by updating its `validTo` date.
114
+ *
115
+ * Roles V2 operation:
116
+ * `PATCH /claimable-roles/{claimableRoleIdentifier}/assignments/{claimableRoleAssignmentId}` —
117
+ * "Update a claimable role assignment's valid to date."
118
+ *
119
+ * Curried in two stages: `updateClaimableRoleAssignment(version, client, method)` binds the API
120
+ * version, the `IHttpClient` that reaches the Roles service, and the execution method —
121
+ * `'json'` for a promise, `'json$'` for an observable stream. The returned function takes
122
+ * {@link UpdateClaimableRoleAssignmentArg} plus an optional `ClientRequestInit`, and gives back
123
+ * {@link UpdateClaimableRoleAssignmentResult}.
124
+ *
125
+ * The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
126
+ * `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
127
+ * `ApiClaimableRoleAssignmentSchemaV1`, and sends `api-version=1.0` on the request.
128
+ *
129
+ * Roles V2 answers `200 OK`; the body is typed `ApiClaimableRoleAssignmentV1`. Fields left out
130
+ * of the arguments are not sent, so they keep their stored values. The contract declares `403
131
+ * Forbidden` for callers the Roles service does not authorise for this operation.
132
+ *
133
+ * @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
134
+ * @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
135
+ * @param version - API version selecting the request path, the argument schema, and the
136
+ * response schema.
137
+ * @param client - HTTP client that executes the request against the Roles service.
138
+ * @param method - Execution method, defaulting to `'json'`.
139
+ * @returns A request function taking {@link UpdateClaimableRoleAssignmentArg} and an optional
140
+ * `ClientRequestInit`, returning {@link UpdateClaimableRoleAssignmentResult}.
141
+ * @throws {Error} When `version` names an API version this operation does not publish. The
142
+ * check runs while binding, before the HTTP client is used.
143
+ * @throws {z.ZodError} From the returned function, when the arguments fail this version's
144
+ * argument schema or the response body fails its response schema.
145
+ *
146
+ * @example
147
+ * ```ts
148
+ * import { updateClaimableRoleAssignment } from '@equinor/fusion-services/roles';
149
+ *
150
+ * const assignment = await updateClaimableRoleAssignment('v1', httpClient)({
151
+ * claimableRoleIdentifier: 'on-call-approver',
152
+ * claimableRoleAssignmentId: '6b1d4f2a-8c3e-4d59-9f70-1a2b3c4d5e6f',
153
+ * validTo: '2026-06-30T23:59:59Z',
154
+ * });
155
+ * ```
156
+ */
157
+ declare const updateClaimableRoleAssignment: <TVersion extends UpdateClaimableRoleAssignmentVersion, TMethod extends ClientMethodType = 'json'>(version: TVersion, client: IHttpClient, method?: TMethod) => (input: UpdateClaimableRoleAssignmentArg<ExtractApiVersion<TVersion>>, init?: ClientRequestInit<IHttpClient, UpdateClaimableRoleAssignmentResponse<ExtractApiVersion<TVersion>>>) => UpdateClaimableRoleAssignmentResult<ExtractApiVersion<TVersion>, TMethod>;
158
+ export { type UpdateClaimableRoleAssignmentArg, type UpdateClaimableRoleAssignmentResponse, type UpdateClaimableRoleAssignmentResult, type UpdateClaimableRoleAssignmentVersion, updateClaimableRoleAssignment, };
@@ -0,0 +1,113 @@
1
+ import { z } from 'zod';
2
+ import type { ClientRequestInit, IHttpClient } from '@equinor/fusion-framework-module-http/client';
3
+ import type { ClientMethod, ClientMethodType, ExtractApiVersion, FilterAllowedApiVersions, VersionedArgs, VersionedResponse } from '../types';
4
+ import { ApiVersion } from '../static';
5
+ /** Concrete API versions this operation publishes. */
6
+ type AvailableVersions = ApiVersion.v1;
7
+ /**
8
+ * API version identifiers `deleteClaimableRoleAssignmentsByExternalIdentifier` accepts for
9
+ * `DELETE /claimable-role-assignments/{externalIdentifier}`.
10
+ *
11
+ * Roles V2 publishes version 1.0 of this operation, nameable as `'v1'`, `'1.0'`, or
12
+ * `ApiVersion.v1`. All three resolve to the same contract entry, so all three infer the same
13
+ * {@link DeleteClaimableRoleAssignmentsByExternalIdentifierArg} and
14
+ * {@link DeleteClaimableRoleAssignmentsByExternalIdentifierResponse}.
15
+ */
16
+ type DeleteClaimableRoleAssignmentsByExternalIdentifierVersion = FilterAllowedApiVersions<AvailableVersions>;
17
+ /**
18
+ * Version contract for `deleteClaimableRoleAssignmentsByExternalIdentifier`, implementing
19
+ * `DELETE /claimable-role-assignments/{externalIdentifier}`.
20
+ *
21
+ * Each concrete {@link ApiVersion} maps to the argument and response schemas that
22
+ * version publishes, so the version a caller passes is the single discriminator
23
+ * for the request shape, the request path, and the response shape.
24
+ */
25
+ declare const VersionContract: {
26
+ readonly "1.0": {
27
+ /** Arguments accepted by version 1.0 of this operation. */
28
+ readonly args: z.ZodObject<{
29
+ externalIdentifier: z.ZodString;
30
+ }, z.core.$strip>;
31
+ /** Response published by version 1.0. The operation answers `204 No Content`. */
32
+ readonly response: z.ZodVoid;
33
+ };
34
+ };
35
+ /**
36
+ * Response body `deleteClaimableRoleAssignmentsByExternalIdentifier` resolves for the selected
37
+ * API version.
38
+ *
39
+ * Version 1.0 answers `204 No Content` without a body, so the type resolves to `void`.
40
+ */
41
+ type DeleteClaimableRoleAssignmentsByExternalIdentifierResponse<TVersion extends DeleteClaimableRoleAssignmentsByExternalIdentifierVersion> = VersionedResponse<typeof VersionContract, ExtractApiVersion<TVersion>>;
42
+ /**
43
+ * Arguments `deleteClaimableRoleAssignmentsByExternalIdentifier` accepts, resolved from the
44
+ * selected API version.
45
+ *
46
+ * Version 1.0 accepts the path identifier `externalIdentifier`.
47
+ *
48
+ * The value is parsed by the version's Zod argument schema before the request path is built, so
49
+ * defaults and range checks apply up front.
50
+ */
51
+ type DeleteClaimableRoleAssignmentsByExternalIdentifierArg<TVersion extends DeleteClaimableRoleAssignmentsByExternalIdentifierVersion> = VersionedArgs<typeof VersionContract, ExtractApiVersion<TVersion>>;
52
+ /**
53
+ * What `deleteClaimableRoleAssignmentsByExternalIdentifier` hands back once the request runs,
54
+ * for the selected API version and client method.
55
+ *
56
+ * `'json'` gives
57
+ * `Promise<DeleteClaimableRoleAssignmentsByExternalIdentifierResponse<TVersion>>` and `'json$'`
58
+ * gives `StreamResponse<DeleteClaimableRoleAssignmentsByExternalIdentifierResponse<TVersion>>`,
59
+ * so promise and observable callers share one response type.
60
+ */
61
+ type DeleteClaimableRoleAssignmentsByExternalIdentifierResult<TVersion extends DeleteClaimableRoleAssignmentsByExternalIdentifierVersion, TMethod extends ClientMethodType = 'json'> = ClientMethod<DeleteClaimableRoleAssignmentsByExternalIdentifierResponse<TVersion>>[TMethod];
62
+ /**
63
+ * Deletes every claimable role assignment carrying one external identifier, across all
64
+ * claimable roles.
65
+ *
66
+ * Roles V2 operation: `DELETE /claimable-role-assignments/{externalIdentifier}` — "Delete all
67
+ * claimable role assignments matching the provided external identifier across all claimable
68
+ * roles. This operation is idempotent — if no matching assignments exist, a 204 is still
69
+ * returned."
70
+ *
71
+ * Curried in two stages: `deleteClaimableRoleAssignmentsByExternalIdentifier(version, client,
72
+ * method)` binds the API version, the `IHttpClient` that reaches the Roles service, and the
73
+ * execution method — `'json'` for a promise, `'json$'` for an observable stream. The returned
74
+ * function takes {@link DeleteClaimableRoleAssignmentsByExternalIdentifierArg} plus an optional
75
+ * `ClientRequestInit`, and gives back
76
+ * {@link DeleteClaimableRoleAssignmentsByExternalIdentifierResult}.
77
+ *
78
+ * The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
79
+ * `ApiVersion.v1` — selects the version-1.0 argument schema, expects the empty success body,
80
+ * and sends `api-version=1.0` on the request.
81
+ *
82
+ * Destructive: it removes every matching claimable role assignment permanently, and the
83
+ * deletion cannot be undone through this API. The operation is idempotent, so a request
84
+ * matching nothing still answers `204 No Content`. Roles V2 answers `204 No Content` with no
85
+ * body, so the resolved value is `void`. The contract declares `403 Forbidden` for callers the
86
+ * Roles service does not authorise for this operation.
87
+ *
88
+ * @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
89
+ * @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
90
+ * @param version - API version selecting the request path, the argument schema, and the
91
+ * response schema.
92
+ * @param client - HTTP client that executes the request against the Roles service.
93
+ * @param method - Execution method, defaulting to `'json'`.
94
+ * @returns A request function taking
95
+ * {@link DeleteClaimableRoleAssignmentsByExternalIdentifierArg} and an optional
96
+ * `ClientRequestInit`, returning
97
+ * {@link DeleteClaimableRoleAssignmentsByExternalIdentifierResult}.
98
+ * @throws {Error} When `version` names an API version this operation does not publish. The
99
+ * check runs while binding, before the HTTP client is used.
100
+ * @throws {z.ZodError} From the returned function, when the arguments fail this version's
101
+ * argument schema or the response body fails its response schema.
102
+ *
103
+ * @example
104
+ * ```ts
105
+ * import { deleteClaimableRoleAssignmentsByExternalIdentifier } from '@equinor/fusion-services/roles';
106
+ *
107
+ * await deleteClaimableRoleAssignmentsByExternalIdentifier('v1', httpClient)({
108
+ * externalIdentifier: 'sap-2f10c9',
109
+ * });
110
+ * ```
111
+ */
112
+ declare const deleteClaimableRoleAssignmentsByExternalIdentifier: <TVersion extends DeleteClaimableRoleAssignmentsByExternalIdentifierVersion, TMethod extends ClientMethodType = 'json'>(version: TVersion, client: IHttpClient, method?: TMethod) => (input: DeleteClaimableRoleAssignmentsByExternalIdentifierArg<ExtractApiVersion<TVersion>>, init?: ClientRequestInit<IHttpClient, DeleteClaimableRoleAssignmentsByExternalIdentifierResponse<ExtractApiVersion<TVersion>>>) => DeleteClaimableRoleAssignmentsByExternalIdentifierResult<ExtractApiVersion<TVersion>, TMethod>;
113
+ export { type DeleteClaimableRoleAssignmentsByExternalIdentifierArg, type DeleteClaimableRoleAssignmentsByExternalIdentifierResponse, type DeleteClaimableRoleAssignmentsByExternalIdentifierResult, type DeleteClaimableRoleAssignmentsByExternalIdentifierVersion, deleteClaimableRoleAssignmentsByExternalIdentifier, };
@@ -0,0 +1,211 @@
1
+ import { z } from 'zod';
2
+ import type { ClientRequestInit, IHttpClient } from '@equinor/fusion-framework-module-http/client';
3
+ import type { ClientMethod, ClientMethodType, ExtractApiVersion, FilterAllowedApiVersions, VersionedArgs, VersionedResponse } from '../types';
4
+ import { ApiVersion } from '../static';
5
+ /** Concrete API versions this operation publishes. */
6
+ type AvailableVersions = ApiVersion.v1;
7
+ /**
8
+ * API version identifiers `listClaimableRoleAssignments` accepts for
9
+ * `GET /claimable-roles/{claimableRoleIdentifier}/assignments`.
10
+ *
11
+ * Roles V2 publishes version 1.0 of this operation, nameable as `'v1'`, `'1.0'`, or
12
+ * `ApiVersion.v1`. All three resolve to the same contract entry, so all three infer the same
13
+ * {@link ListClaimableRoleAssignmentsArg} and {@link ListClaimableRoleAssignmentsResponse}.
14
+ */
15
+ type ListClaimableRoleAssignmentsVersion = FilterAllowedApiVersions<AvailableVersions>;
16
+ /**
17
+ * Version contract for `listClaimableRoleAssignments`, implementing
18
+ * `GET /claimable-roles/{claimableRoleIdentifier}/assignments`.
19
+ *
20
+ * Each concrete {@link ApiVersion} maps to the argument and response schemas that
21
+ * version publishes, so the version a caller passes is the single discriminator
22
+ * for the request shape, the request path, and the response shape.
23
+ */
24
+ declare const VersionContract: {
25
+ readonly "1.0": {
26
+ /** Arguments accepted by version 1.0 of this operation. */
27
+ readonly args: z.ZodObject<{
28
+ claimableRoleIdentifier: z.ZodString;
29
+ top: z.ZodOptional<z.ZodNumber>;
30
+ skip: z.ZodOptional<z.ZodNumber>;
31
+ filter: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strip>;
33
+ /** Response published by version 1.0 of this operation. */
34
+ readonly response: z.ZodObject<{
35
+ totalCount: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
36
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
37
+ nextPage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ prevPage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ value: z.ZodOptional<z.ZodArray<z.ZodType<{
40
+ id?: string | undefined;
41
+ assignedTo?: {
42
+ azureUniqueId?: string | null | undefined;
43
+ mail?: string | null | undefined;
44
+ displayName?: string | undefined;
45
+ upn?: string | null | undefined;
46
+ accountType?: string | undefined;
47
+ accountClassification?: string | null | undefined;
48
+ } | undefined;
49
+ claimableRole?: {
50
+ id?: string | undefined;
51
+ name?: string | undefined;
52
+ displayName?: string | undefined;
53
+ description?: string | undefined;
54
+ accessRoleMappings?: {
55
+ accessRole?: {
56
+ id?: string | undefined;
57
+ name?: string | undefined;
58
+ description?: string | undefined;
59
+ scopeType?: {
60
+ id?: string | undefined;
61
+ name?: string | undefined;
62
+ description?: string | null | undefined;
63
+ } | null | undefined;
64
+ } | undefined;
65
+ reason?: string | null | undefined;
66
+ }[] | null | undefined;
67
+ system?: {
68
+ id?: string | undefined;
69
+ name?: string | undefined;
70
+ } | null | undefined;
71
+ } | undefined;
72
+ source?: string | null | undefined;
73
+ externalIdentifier?: string | null | undefined;
74
+ reason?: string | undefined;
75
+ type?: string | undefined;
76
+ validFrom?: string | null | undefined;
77
+ validTo?: string | null | undefined;
78
+ isActive?: boolean | undefined;
79
+ activeTo?: string | null | undefined;
80
+ scope?: {
81
+ isGlobal: boolean;
82
+ value: string | null;
83
+ scopeTypeIdentifier?: string | null | undefined;
84
+ } | null | undefined;
85
+ tags?: string[] | undefined;
86
+ }, unknown, z.core.$ZodTypeInternals<{
87
+ id?: string | undefined;
88
+ assignedTo?: {
89
+ azureUniqueId?: string | null | undefined;
90
+ mail?: string | null | undefined;
91
+ displayName?: string | undefined;
92
+ upn?: string | null | undefined;
93
+ accountType?: string | undefined;
94
+ accountClassification?: string | null | undefined;
95
+ } | undefined;
96
+ claimableRole?: {
97
+ id?: string | undefined;
98
+ name?: string | undefined;
99
+ displayName?: string | undefined;
100
+ description?: string | undefined;
101
+ accessRoleMappings?: {
102
+ accessRole?: {
103
+ id?: string | undefined;
104
+ name?: string | undefined;
105
+ description?: string | undefined;
106
+ scopeType?: {
107
+ id?: string | undefined;
108
+ name?: string | undefined;
109
+ description?: string | null | undefined;
110
+ } | null | undefined;
111
+ } | undefined;
112
+ reason?: string | null | undefined;
113
+ }[] | null | undefined;
114
+ system?: {
115
+ id?: string | undefined;
116
+ name?: string | undefined;
117
+ } | null | undefined;
118
+ } | undefined;
119
+ source?: string | null | undefined;
120
+ externalIdentifier?: string | null | undefined;
121
+ reason?: string | undefined;
122
+ type?: string | undefined;
123
+ validFrom?: string | null | undefined;
124
+ validTo?: string | null | undefined;
125
+ isActive?: boolean | undefined;
126
+ activeTo?: string | null | undefined;
127
+ scope?: {
128
+ isGlobal: boolean;
129
+ value: string | null;
130
+ scopeTypeIdentifier?: string | null | undefined;
131
+ } | null | undefined;
132
+ tags?: string[] | undefined;
133
+ }, unknown>>>>;
134
+ }, z.core.$strip>;
135
+ };
136
+ };
137
+ /**
138
+ * Response body `listClaimableRoleAssignments` resolves for the selected API version.
139
+ *
140
+ * Version 1.0 resolves to `ApiPagedCollectionV1<ApiClaimableRoleAssignmentV1>`, inferred from
141
+ * `apiPagedCollectionSchemaV1(ApiClaimableRoleAssignmentSchemaV1)` — the very schema that
142
+ * validates the `200 OK` body at runtime.
143
+ */
144
+ type ListClaimableRoleAssignmentsResponse<TVersion extends ListClaimableRoleAssignmentsVersion> = VersionedResponse<typeof VersionContract, ExtractApiVersion<TVersion>>;
145
+ /**
146
+ * Arguments `listClaimableRoleAssignments` accepts, resolved from the selected API version.
147
+ *
148
+ * Version 1.0 accepts the path identifier `claimableRoleIdentifier`, and the optional query
149
+ * options `top`, `skip`, `filter`.
150
+ *
151
+ * The value is parsed by the version's Zod argument schema before the request path is built, so
152
+ * defaults and range checks apply up front.
153
+ */
154
+ type ListClaimableRoleAssignmentsArg<TVersion extends ListClaimableRoleAssignmentsVersion> = VersionedArgs<typeof VersionContract, ExtractApiVersion<TVersion>>;
155
+ /**
156
+ * What `listClaimableRoleAssignments` hands back once the request runs, for the selected API
157
+ * version and client method.
158
+ *
159
+ * `'json'` gives `Promise<ListClaimableRoleAssignmentsResponse<TVersion>>` and `'json$'` gives
160
+ * `StreamResponse<ListClaimableRoleAssignmentsResponse<TVersion>>`, so promise and observable
161
+ * callers share one response type.
162
+ */
163
+ type ListClaimableRoleAssignmentsResult<TVersion extends ListClaimableRoleAssignmentsVersion, TMethod extends ClientMethodType = 'json'> = ClientMethod<ListClaimableRoleAssignmentsResponse<TVersion>>[TMethod];
164
+ /**
165
+ * Lists the assignments of one claimable role.
166
+ *
167
+ * Roles V2 operation: `GET /claimable-roles/{claimableRoleIdentifier}/assignments` — "Get all
168
+ * claimable role assignments for a claimable role."
169
+ *
170
+ * Curried in two stages: `listClaimableRoleAssignments(version, client, method)` binds the API
171
+ * version, the `IHttpClient` that reaches the Roles service, and the execution method —
172
+ * `'json'` for a promise, `'json$'` for an observable stream. The returned function takes
173
+ * {@link ListClaimableRoleAssignmentsArg} plus an optional `ClientRequestInit`, and gives back
174
+ * {@link ListClaimableRoleAssignmentsResult}.
175
+ *
176
+ * The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
177
+ * `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
178
+ * `apiPagedCollectionSchemaV1(ApiClaimableRoleAssignmentSchemaV1)`, and sends `api-version=1.0`
179
+ * on the request.
180
+ *
181
+ * Query options: `top` and `skip` page the collection as `$top` and `$skip` (`top` accepts
182
+ * 0–100); and `filter` is sent as an OData `$filter` expression.
183
+ *
184
+ * Roles V2 answers `200 OK`; the body is typed
185
+ * `ApiPagedCollectionV1<ApiClaimableRoleAssignmentV1>`.
186
+ *
187
+ * @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
188
+ * @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
189
+ * @param version - API version selecting the request path, the argument schema, and the
190
+ * response schema.
191
+ * @param client - HTTP client that executes the request against the Roles service.
192
+ * @param method - Execution method, defaulting to `'json'`.
193
+ * @returns A request function taking {@link ListClaimableRoleAssignmentsArg} and an optional
194
+ * `ClientRequestInit`, returning {@link ListClaimableRoleAssignmentsResult}.
195
+ * @throws {Error} When `version` names an API version this operation does not publish. The
196
+ * check runs while binding, before the HTTP client is used.
197
+ * @throws {z.ZodError} From the returned function, when the arguments fail this version's
198
+ * argument schema or the response body fails its response schema.
199
+ *
200
+ * @example
201
+ * ```ts
202
+ * import { listClaimableRoleAssignments } from '@equinor/fusion-services/roles';
203
+ *
204
+ * const page = await listClaimableRoleAssignments('v1', httpClient)({
205
+ * claimableRoleIdentifier: 'on-call-approver',
206
+ * top: 25,
207
+ * });
208
+ * ```
209
+ */
210
+ declare const listClaimableRoleAssignments: <TVersion extends ListClaimableRoleAssignmentsVersion, TMethod extends ClientMethodType = 'json'>(version: TVersion, client: IHttpClient, method?: TMethod) => (input: ListClaimableRoleAssignmentsArg<ExtractApiVersion<TVersion>>, init?: ClientRequestInit<IHttpClient, ListClaimableRoleAssignmentsResponse<ExtractApiVersion<TVersion>>>) => ListClaimableRoleAssignmentsResult<ExtractApiVersion<TVersion>, TMethod>;
211
+ export { type ListClaimableRoleAssignmentsArg, type ListClaimableRoleAssignmentsResponse, type ListClaimableRoleAssignmentsResult, type ListClaimableRoleAssignmentsVersion, listClaimableRoleAssignments, };