@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.
- package/LICENSE +21 -0
- package/README.md +78 -0
- package/dist/esm/index.js +25 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/roles/endpoints/access-roles.get.js +118 -0
- package/dist/esm/roles/endpoints/access-roles.get.js.map +1 -0
- package/dist/esm/roles/endpoints/account-access-role-assignments.get.js +133 -0
- package/dist/esm/roles/endpoints/account-access-role-assignments.get.js.map +1 -0
- package/dist/esm/roles/endpoints/account-active-access-role-assignments.get.js +115 -0
- package/dist/esm/roles/endpoints/account-active-access-role-assignments.get.js.map +1 -0
- package/dist/esm/roles/endpoints/account-claimable-role-assignment-activation.get.js +118 -0
- package/dist/esm/roles/endpoints/account-claimable-role-assignment-activation.get.js.map +1 -0
- package/dist/esm/roles/endpoints/account-claimable-role-assignment-activation.post.js +124 -0
- package/dist/esm/roles/endpoints/account-claimable-role-assignment-activation.post.js.map +1 -0
- package/dist/esm/roles/endpoints/account-claimable-role-assignment-deactivation.post.js +120 -0
- package/dist/esm/roles/endpoints/account-claimable-role-assignment-deactivation.post.js.map +1 -0
- package/dist/esm/roles/endpoints/account-claimable-role-assignments.get.js +118 -0
- package/dist/esm/roles/endpoints/account-claimable-role-assignments.get.js.map +1 -0
- package/dist/esm/roles/endpoints/account-consolidated-claimable-role-assignments.get.js +120 -0
- package/dist/esm/roles/endpoints/account-consolidated-claimable-role-assignments.get.js.map +1 -0
- package/dist/esm/roles/endpoints/account-consolidated-role-assignments.get.js +116 -0
- package/dist/esm/roles/endpoints/account-consolidated-role-assignments.get.js.map +1 -0
- package/dist/esm/roles/endpoints/account-role-assignments.get.js +115 -0
- package/dist/esm/roles/endpoints/account-role-assignments.get.js.map +1 -0
- package/dist/esm/roles/endpoints/claimable-role-access-role.delete.js +118 -0
- package/dist/esm/roles/endpoints/claimable-role-access-role.delete.js.map +1 -0
- package/dist/esm/roles/endpoints/claimable-role-access-roles.post.js +118 -0
- package/dist/esm/roles/endpoints/claimable-role-access-roles.post.js.map +1 -0
- package/dist/esm/roles/endpoints/claimable-role-assignment-activations-by-assignment.get.js +128 -0
- package/dist/esm/roles/endpoints/claimable-role-assignment-activations-by-assignment.get.js.map +1 -0
- package/dist/esm/roles/endpoints/claimable-role-assignment-activations.get.js +106 -0
- package/dist/esm/roles/endpoints/claimable-role-assignment-activations.get.js.map +1 -0
- package/dist/esm/roles/endpoints/claimable-role-assignment.delete.js +118 -0
- package/dist/esm/roles/endpoints/claimable-role-assignment.delete.js.map +1 -0
- package/dist/esm/roles/endpoints/claimable-role-assignment.get.js +112 -0
- package/dist/esm/roles/endpoints/claimable-role-assignment.get.js.map +1 -0
- package/dist/esm/roles/endpoints/claimable-role-assignment.patch.js +122 -0
- package/dist/esm/roles/endpoints/claimable-role-assignment.patch.js.map +1 -0
- package/dist/esm/roles/endpoints/claimable-role-assignments-by-external-identifier.delete.js +121 -0
- package/dist/esm/roles/endpoints/claimable-role-assignments-by-external-identifier.delete.js.map +1 -0
- package/dist/esm/roles/endpoints/claimable-role-assignments.get.js +127 -0
- package/dist/esm/roles/endpoints/claimable-role-assignments.get.js.map +1 -0
- package/dist/esm/roles/endpoints/claimable-role-assignments.post.js +120 -0
- package/dist/esm/roles/endpoints/claimable-role-assignments.post.js.map +1 -0
- package/dist/esm/roles/endpoints/claimable-role.delete.js +112 -0
- package/dist/esm/roles/endpoints/claimable-role.delete.js.map +1 -0
- package/dist/esm/roles/endpoints/claimable-role.get.js +108 -0
- package/dist/esm/roles/endpoints/claimable-role.get.js.map +1 -0
- package/dist/esm/roles/endpoints/claimable-role.patch.js +118 -0
- package/dist/esm/roles/endpoints/claimable-role.patch.js.map +1 -0
- package/dist/esm/roles/endpoints/claimable-roles.get.js +127 -0
- package/dist/esm/roles/endpoints/claimable-roles.get.js.map +1 -0
- package/dist/esm/roles/endpoints/claimable-roles.post.js +114 -0
- package/dist/esm/roles/endpoints/claimable-roles.post.js.map +1 -0
- package/dist/esm/roles/endpoints/public-schema.get.js +104 -0
- package/dist/esm/roles/endpoints/public-schema.get.js.map +1 -0
- package/dist/esm/roles/endpoints/role-access-role.delete.js +115 -0
- package/dist/esm/roles/endpoints/role-access-role.delete.js.map +1 -0
- package/dist/esm/roles/endpoints/role-access-roles.post.js +116 -0
- package/dist/esm/roles/endpoints/role-access-roles.post.js.map +1 -0
- package/dist/esm/roles/endpoints/role-assignment.delete.js +115 -0
- package/dist/esm/roles/endpoints/role-assignment.delete.js.map +1 -0
- package/dist/esm/roles/endpoints/role-assignment.get.js +113 -0
- package/dist/esm/roles/endpoints/role-assignment.get.js.map +1 -0
- package/dist/esm/roles/endpoints/role-assignment.patch.js +119 -0
- package/dist/esm/roles/endpoints/role-assignment.patch.js.map +1 -0
- package/dist/esm/roles/endpoints/role-assignments-by-external-identifier.delete.js +117 -0
- package/dist/esm/roles/endpoints/role-assignments-by-external-identifier.delete.js.map +1 -0
- package/dist/esm/roles/endpoints/role-assignments-delete.post.js +118 -0
- package/dist/esm/roles/endpoints/role-assignments-delete.post.js.map +1 -0
- package/dist/esm/roles/endpoints/role-assignments.get.js +128 -0
- package/dist/esm/roles/endpoints/role-assignments.get.js.map +1 -0
- package/dist/esm/roles/endpoints/role-assignments.post.js +118 -0
- package/dist/esm/roles/endpoints/role-assignments.post.js.map +1 -0
- package/dist/esm/roles/endpoints/role-binding-configuration-expired-history.delete.js +112 -0
- package/dist/esm/roles/endpoints/role-binding-configuration-expired-history.delete.js.map +1 -0
- package/dist/esm/roles/endpoints/role-binding-configuration-history.get.js +122 -0
- package/dist/esm/roles/endpoints/role-binding-configuration-history.get.js.map +1 -0
- package/dist/esm/roles/endpoints/role-binding-configuration-history.post.js +120 -0
- package/dist/esm/roles/endpoints/role-binding-configuration-history.post.js.map +1 -0
- package/dist/esm/roles/endpoints/role-binding-configuration-notifications.get.js +123 -0
- package/dist/esm/roles/endpoints/role-binding-configuration-notifications.get.js.map +1 -0
- package/dist/esm/roles/endpoints/role-binding-configuration-notifications.post.js +121 -0
- package/dist/esm/roles/endpoints/role-binding-configuration-notifications.post.js.map +1 -0
- package/dist/esm/roles/endpoints/role-binding-configuration-status.get.js +106 -0
- package/dist/esm/roles/endpoints/role-binding-configuration-status.get.js.map +1 -0
- package/dist/esm/roles/endpoints/role-binding-configuration-status.patch.js +116 -0
- package/dist/esm/roles/endpoints/role-binding-configuration-status.patch.js.map +1 -0
- package/dist/esm/roles/endpoints/role-binding-configuration.delete.js +110 -0
- package/dist/esm/roles/endpoints/role-binding-configuration.delete.js.map +1 -0
- package/dist/esm/roles/endpoints/role-binding-configuration.get.js +114 -0
- package/dist/esm/roles/endpoints/role-binding-configuration.get.js.map +1 -0
- package/dist/esm/roles/endpoints/role-binding-configuration.patch.js +115 -0
- package/dist/esm/roles/endpoints/role-binding-configuration.patch.js.map +1 -0
- package/dist/esm/roles/endpoints/role-binding-configurations.get.js +119 -0
- package/dist/esm/roles/endpoints/role-binding-configurations.get.js.map +1 -0
- package/dist/esm/roles/endpoints/role-binding-configurations.post.js +116 -0
- package/dist/esm/roles/endpoints/role-binding-configurations.post.js.map +1 -0
- package/dist/esm/roles/endpoints/role.delete.js +111 -0
- package/dist/esm/roles/endpoints/role.delete.js.map +1 -0
- package/dist/esm/roles/endpoints/role.get.js +110 -0
- package/dist/esm/roles/endpoints/role.get.js.map +1 -0
- package/dist/esm/roles/endpoints/role.patch.js +117 -0
- package/dist/esm/roles/endpoints/role.patch.js.map +1 -0
- package/dist/esm/roles/endpoints/roles-subscription.put.js +115 -0
- package/dist/esm/roles/endpoints/roles-subscription.put.js.map +1 -0
- package/dist/esm/roles/endpoints/roles.get.js +125 -0
- package/dist/esm/roles/endpoints/roles.get.js.map +1 -0
- package/dist/esm/roles/endpoints/roles.post.js +116 -0
- package/dist/esm/roles/endpoints/roles.post.js.map +1 -0
- package/dist/esm/roles/endpoints/scope-type.delete.js +110 -0
- package/dist/esm/roles/endpoints/scope-type.delete.js.map +1 -0
- package/dist/esm/roles/endpoints/scope-type.get.js +103 -0
- package/dist/esm/roles/endpoints/scope-type.get.js.map +1 -0
- package/dist/esm/roles/endpoints/scope-type.patch.js +116 -0
- package/dist/esm/roles/endpoints/scope-type.patch.js.map +1 -0
- package/dist/esm/roles/endpoints/scope-types.get.js +98 -0
- package/dist/esm/roles/endpoints/scope-types.get.js.map +1 -0
- package/dist/esm/roles/endpoints/scope-types.post.js +113 -0
- package/dist/esm/roles/endpoints/scope-types.post.js.map +1 -0
- package/dist/esm/roles/endpoints/system-access-role-assignment.delete.js +119 -0
- package/dist/esm/roles/endpoints/system-access-role-assignment.delete.js.map +1 -0
- package/dist/esm/roles/endpoints/system-access-role-assignment.get.js +119 -0
- package/dist/esm/roles/endpoints/system-access-role-assignment.get.js.map +1 -0
- package/dist/esm/roles/endpoints/system-access-role-assignment.patch.js +123 -0
- package/dist/esm/roles/endpoints/system-access-role-assignment.patch.js.map +1 -0
- package/dist/esm/roles/endpoints/system-access-role-assignments.get.js +134 -0
- package/dist/esm/roles/endpoints/system-access-role-assignments.get.js.map +1 -0
- package/dist/esm/roles/endpoints/system-access-role-assignments.post.js +120 -0
- package/dist/esm/roles/endpoints/system-access-role-assignments.post.js.map +1 -0
- package/dist/esm/roles/endpoints/system-access-role.delete.js +115 -0
- package/dist/esm/roles/endpoints/system-access-role.delete.js.map +1 -0
- package/dist/esm/roles/endpoints/system-access-role.get.js +109 -0
- package/dist/esm/roles/endpoints/system-access-role.get.js.map +1 -0
- package/dist/esm/roles/endpoints/system-access-role.patch.js +119 -0
- package/dist/esm/roles/endpoints/system-access-role.patch.js.map +1 -0
- package/dist/esm/roles/endpoints/system-access-roles.get.js +106 -0
- package/dist/esm/roles/endpoints/system-access-roles.get.js.map +1 -0
- package/dist/esm/roles/endpoints/system-access-roles.post.js +116 -0
- package/dist/esm/roles/endpoints/system-access-roles.post.js.map +1 -0
- package/dist/esm/roles/endpoints/system.delete.js +108 -0
- package/dist/esm/roles/endpoints/system.delete.js.map +1 -0
- package/dist/esm/roles/endpoints/system.get.js +101 -0
- package/dist/esm/roles/endpoints/system.get.js.map +1 -0
- package/dist/esm/roles/endpoints/system.patch.js +114 -0
- package/dist/esm/roles/endpoints/system.patch.js.map +1 -0
- package/dist/esm/roles/endpoints/systems.get.js +113 -0
- package/dist/esm/roles/endpoints/systems.get.js.map +1 -0
- package/dist/esm/roles/endpoints/systems.post.js +113 -0
- package/dist/esm/roles/endpoints/systems.post.js.map +1 -0
- package/dist/esm/roles/index.js +190 -0
- package/dist/esm/roles/index.js.map +1 -0
- package/dist/esm/roles/static.js +29 -0
- package/dist/esm/roles/static.js.map +1 -0
- package/dist/esm/roles/types.js +7 -0
- package/dist/esm/roles/types.js.map +1 -0
- package/dist/esm/roles/v1/schemas/access-role-mapping-schema-v1.js +11 -0
- package/dist/esm/roles/v1/schemas/access-role-mapping-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/activate-assigned-claimable-role-request-schema-v1.js +14 -0
- package/dist/esm/roles/v1/schemas/activate-assigned-claimable-role-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/add-claimable-role-access-role-request-schema-v1.js +13 -0
- package/dist/esm/roles/v1/schemas/add-claimable-role-access-role-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/add-role-access-role-request-schema-v1.js +13 -0
- package/dist/esm/roles/v1/schemas/add-role-access-role-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-access-role-assignment-schema-v1.js +46 -0
- package/dist/esm/roles/v1/schemas/api-access-role-assignment-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-access-role-mapping-schema-v1.js +15 -0
- package/dist/esm/roles/v1/schemas/api-access-role-mapping-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-access-role-schema-v1.js +16 -0
- package/dist/esm/roles/v1/schemas/api-access-role-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-account-access-role-assignment-schema-v1.js +46 -0
- package/dist/esm/roles/v1/schemas/api-account-access-role-assignment-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-account-access-role-schema-v1.js +9 -0
- package/dist/esm/roles/v1/schemas/api-account-access-role-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-account-active-access-role-assignment-schema-v1.js +21 -0
- package/dist/esm/roles/v1/schemas/api-account-active-access-role-assignment-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-account-claimable-role-assignment-schema-v1.js +11 -0
- package/dist/esm/roles/v1/schemas/api-account-claimable-role-assignment-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-account-role-assignment-schema-v1.js +11 -0
- package/dist/esm/roles/v1/schemas/api-account-role-assignment-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-account-schema-v1.js +25 -0
- package/dist/esm/roles/v1/schemas/api-account-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-binding-execution-record-schema-v1.js +52 -0
- package/dist/esm/roles/v1/schemas/api-binding-execution-record-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-binding-notification-record-schema-v1.js +32 -0
- package/dist/esm/roles/v1/schemas/api-binding-notification-record-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-claimable-access-role-mapping-schema-v1.js +15 -0
- package/dist/esm/roles/v1/schemas/api-claimable-access-role-mapping-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-claimable-role-assignment-activation-schema-v1.js +21 -0
- package/dist/esm/roles/v1/schemas/api-claimable-role-assignment-activation-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-claimable-role-assignment-schema-v1.js +48 -0
- package/dist/esm/roles/v1/schemas/api-claimable-role-assignment-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-claimable-role-schema-v1.js +18 -0
- package/dist/esm/roles/v1/schemas/api-claimable-role-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-claimable-role-scope-schema-v1.js +16 -0
- package/dist/esm/roles/v1/schemas/api-claimable-role-scope-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-consolidated-assignment-entry-schema-v1.js +25 -0
- package/dist/esm/roles/v1/schemas/api-consolidated-assignment-entry-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-consolidated-claimable-role-assignment-schema-v1.js +51 -0
- package/dist/esm/roles/v1/schemas/api-consolidated-claimable-role-assignment-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-consolidated-claimable-role-ref-schema-v1.js +18 -0
- package/dist/esm/roles/v1/schemas/api-consolidated-claimable-role-ref-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-consolidated-role-assignment-schema-v1.js +41 -0
- package/dist/esm/roles/v1/schemas/api-consolidated-role-assignment-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-extended-access-role-schema-v1.js +9 -0
- package/dist/esm/roles/v1/schemas/api-extended-access-role-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-extended-claimable-role-assignment-activation-schema-v1.js +24 -0
- package/dist/esm/roles/v1/schemas/api-extended-claimable-role-assignment-activation-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-owner-schema-v1.js +12 -0
- package/dist/esm/roles/v1/schemas/api-owner-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-paged-collection-schema-v1.js +41 -0
- package/dist/esm/roles/v1/schemas/api-paged-collection-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-purge-binding-result-schema-v1.js +12 -0
- package/dist/esm/roles/v1/schemas/api-purge-binding-result-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-role-assignment-schema-v1.js +38 -0
- package/dist/esm/roles/v1/schemas/api-role-assignment-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-role-binding-configuration-schema-v1.js +36 -0
- package/dist/esm/roles/v1/schemas/api-role-binding-configuration-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-role-binding-configuration-status-schema-v1.js +28 -0
- package/dist/esm/roles/v1/schemas/api-role-binding-configuration-status-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-role-schema-v1.js +24 -0
- package/dist/esm/roles/v1/schemas/api-role-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-role-scope-schema-v1.js +16 -0
- package/dist/esm/roles/v1/schemas/api-role-scope-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-scope-schema-v1.js +16 -0
- package/dist/esm/roles/v1/schemas/api-scope-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-scope-type-schema-v1.js +13 -0
- package/dist/esm/roles/v1/schemas/api-scope-type-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-scope-values-schema-v1.js +22 -0
- package/dist/esm/roles/v1/schemas/api-scope-values-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-simple-claimable-role-assignment-schema-v1.js +12 -0
- package/dist/esm/roles/v1/schemas/api-simple-claimable-role-assignment-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-simple-claimable-role-schema-v1.js +27 -0
- package/dist/esm/roles/v1/schemas/api-simple-claimable-role-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-simple-role-assignment-schema-v1.js +12 -0
- package/dist/esm/roles/v1/schemas/api-simple-role-assignment-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-simple-role-schema-v1.js +18 -0
- package/dist/esm/roles/v1/schemas/api-simple-role-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-simple-system-schema-v1.js +11 -0
- package/dist/esm/roles/v1/schemas/api-simple-system-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-subscription-type-schema-v1.js +6 -0
- package/dist/esm/roles/v1/schemas/api-subscription-type-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/api-system-schema-v1.js +11 -0
- package/dist/esm/roles/v1/schemas/api-system-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/assign-access-role-request-schema-v1.js +32 -0
- package/dist/esm/roles/v1/schemas/assign-access-role-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/assign-claimable-role-request-schema-v1.js +32 -0
- package/dist/esm/roles/v1/schemas/assign-claimable-role-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/assign-role-request-schema-v1.js +32 -0
- package/dist/esm/roles/v1/schemas/assign-role-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/claimable-role-binding-schema-v1.js +14 -0
- package/dist/esm/roles/v1/schemas/claimable-role-binding-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/create-access-role-request-schema-v1.js +19 -0
- package/dist/esm/roles/v1/schemas/create-access-role-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/create-binding-execution-record-request-schema-v1.js +49 -0
- package/dist/esm/roles/v1/schemas/create-binding-execution-record-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/create-binding-execution-record-response-schema-v1.js +9 -0
- package/dist/esm/roles/v1/schemas/create-binding-execution-record-response-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/create-binding-notification-record-request-schema-v1.js +23 -0
- package/dist/esm/roles/v1/schemas/create-binding-notification-record-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/create-binding-notification-record-response-schema-v1.js +9 -0
- package/dist/esm/roles/v1/schemas/create-binding-notification-record-response-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/create-claimable-role-request-schema-v1.js +27 -0
- package/dist/esm/roles/v1/schemas/create-claimable-role-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/create-role-binding-configuration-request-schema-v1.js +27 -0
- package/dist/esm/roles/v1/schemas/create-role-binding-configuration-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/create-role-request-schema-v1.js +27 -0
- package/dist/esm/roles/v1/schemas/create-role-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/create-scope-type-request-schema-v1.js +14 -0
- package/dist/esm/roles/v1/schemas/create-scope-type-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/delete-role-assignments-request-schema-v1.js +13 -0
- package/dist/esm/roles/v1/schemas/delete-role-assignments-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/entra-group-binding-schema-v1.js +24 -0
- package/dist/esm/roles/v1/schemas/entra-group-binding-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/entra-group-schema-v1.js +11 -0
- package/dist/esm/roles/v1/schemas/entra-group-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/expand-schema-v1.js +4 -0
- package/dist/esm/roles/v1/schemas/expand-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/filter-schema-v1.js +4 -0
- package/dist/esm/roles/v1/schemas/filter-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/include-deleted-schema-v1.js +7 -0
- package/dist/esm/roles/v1/schemas/include-deleted-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/org-chart-assign-entry-schema-v1.js +14 -0
- package/dist/esm/roles/v1/schemas/org-chart-assign-entry-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/org-chart-assignment-schema-v1.js +18 -0
- package/dist/esm/roles/v1/schemas/org-chart-assignment-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/org-chart-binding-schema-v1.js +19 -0
- package/dist/esm/roles/v1/schemas/org-chart-binding-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/org-chart-context-schema-v1.js +22 -0
- package/dist/esm/roles/v1/schemas/org-chart-context-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/org-chart-match-criteria-schema-v1.js +16 -0
- package/dist/esm/roles/v1/schemas/org-chart-match-criteria-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/org-chart-profile-schema-v1.js +15 -0
- package/dist/esm/roles/v1/schemas/org-chart-profile-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/org-chart-rule-schema-v1.js +13 -0
- package/dist/esm/roles/v1/schemas/org-chart-rule-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/org-chart-scope-schema-v1.js +20 -0
- package/dist/esm/roles/v1/schemas/org-chart-scope-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/owner-info-schema-v1.js +11 -0
- package/dist/esm/roles/v1/schemas/owner-info-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/register-system-request-schema-v1.js +17 -0
- package/dist/esm/roles/v1/schemas/register-system-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/request-claimable-role-scope-schema-v1.js +19 -0
- package/dist/esm/roles/v1/schemas/request-claimable-role-scope-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/request-role-scope-schema-v1.js +19 -0
- package/dist/esm/roles/v1/schemas/request-role-scope-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/request-scope-schema-v1.js +19 -0
- package/dist/esm/roles/v1/schemas/request-scope-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/role-binding-configuration-binding-schema-v1.js +13 -0
- package/dist/esm/roles/v1/schemas/role-binding-configuration-binding-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/role-binding-schema-v1.js +14 -0
- package/dist/esm/roles/v1/schemas/role-binding-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/scope-binding-schema-v1.js +19 -0
- package/dist/esm/roles/v1/schemas/scope-binding-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/skip-schema-v1.js +9 -0
- package/dist/esm/roles/v1/schemas/skip-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/subscription-request-schema-v1.js +19 -0
- package/dist/esm/roles/v1/schemas/subscription-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/top-schema-v1.js +10 -0
- package/dist/esm/roles/v1/schemas/top-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/update-access-role-assignment-request-schema-v1.js +12 -0
- package/dist/esm/roles/v1/schemas/update-access-role-assignment-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/update-access-role-request-schema-v1.js +12 -0
- package/dist/esm/roles/v1/schemas/update-access-role-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/update-claimable-role-assignment-request-schema-v1.js +12 -0
- package/dist/esm/roles/v1/schemas/update-claimable-role-assignment-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/update-claimable-role-request-schema-v1.js +22 -0
- package/dist/esm/roles/v1/schemas/update-claimable-role-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/update-role-assignment-request-schema-v1.js +12 -0
- package/dist/esm/roles/v1/schemas/update-role-assignment-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/update-role-binding-configuration-request-schema-v1.js +32 -0
- package/dist/esm/roles/v1/schemas/update-role-binding-configuration-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/update-role-binding-configuration-status-request-schema-v1.js +14 -0
- package/dist/esm/roles/v1/schemas/update-role-binding-configuration-status-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/update-role-request-schema-v1.js +22 -0
- package/dist/esm/roles/v1/schemas/update-role-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/update-scope-request-schema-v1.js +12 -0
- package/dist/esm/roles/v1/schemas/update-scope-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/schemas/update-system-request-schema-v1.js +18 -0
- package/dist/esm/roles/v1/schemas/update-system-request-schema-v1.js.map +1 -0
- package/dist/esm/roles/v1/types.js +19 -0
- package/dist/esm/roles/v1/types.js.map +1 -0
- package/dist/esm/types.js +2 -0
- package/dist/esm/types.js.map +1 -0
- package/dist/esm/utils.js +118 -0
- package/dist/esm/utils.js.map +1 -0
- package/dist/esm/version.js +3 -0
- package/dist/esm/version.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/index.d.ts +23 -0
- package/dist/types/roles/endpoints/access-roles.get.d.ts +136 -0
- package/dist/types/roles/endpoints/account-access-role-assignments.get.d.ts +275 -0
- package/dist/types/roles/endpoints/account-active-access-role-assignments.get.d.ts +118 -0
- package/dist/types/roles/endpoints/account-claimable-role-assignment-activation.get.d.ts +123 -0
- package/dist/types/roles/endpoints/account-claimable-role-assignment-activation.post.d.ts +127 -0
- package/dist/types/roles/endpoints/account-claimable-role-assignment-deactivation.post.d.ts +123 -0
- package/dist/types/roles/endpoints/account-claimable-role-assignments.get.d.ts +230 -0
- package/dist/types/roles/endpoints/account-consolidated-claimable-role-assignments.get.d.ts +150 -0
- package/dist/types/roles/endpoints/account-consolidated-role-assignments.get.d.ts +146 -0
- package/dist/types/roles/endpoints/account-role-assignments.get.d.ts +197 -0
- package/dist/types/roles/endpoints/claimable-role-access-role.delete.d.ts +105 -0
- package/dist/types/roles/endpoints/claimable-role-access-roles.post.d.ts +150 -0
- package/dist/types/roles/endpoints/claimable-role-assignment-activations-by-assignment.get.d.ts +150 -0
- package/dist/types/roles/endpoints/claimable-role-assignment-activations.get.d.ts +187 -0
- package/dist/types/roles/endpoints/claimable-role-assignment.delete.d.ts +106 -0
- package/dist/types/roles/endpoints/claimable-role-assignment.get.d.ts +152 -0
- package/dist/types/roles/endpoints/claimable-role-assignment.patch.d.ts +158 -0
- package/dist/types/roles/endpoints/claimable-role-assignments-by-external-identifier.delete.d.ts +113 -0
- package/dist/types/roles/endpoints/claimable-role-assignments.get.d.ts +211 -0
- package/dist/types/roles/endpoints/claimable-role-assignments.post.d.ts +168 -0
- package/dist/types/roles/endpoints/claimable-role.delete.d.ts +100 -0
- package/dist/types/roles/endpoints/claimable-role.get.d.ts +141 -0
- package/dist/types/roles/endpoints/claimable-role.patch.d.ts +149 -0
- package/dist/types/roles/endpoints/claimable-roles.get.d.ts +199 -0
- package/dist/types/roles/endpoints/claimable-roles.post.d.ts +150 -0
- package/dist/types/roles/endpoints/public-schema.get.d.ts +98 -0
- package/dist/types/roles/endpoints/role-access-role.delete.d.ts +104 -0
- package/dist/types/roles/endpoints/role-access-roles.post.d.ts +150 -0
- package/dist/types/roles/endpoints/role-assignment.delete.d.ts +104 -0
- package/dist/types/roles/endpoints/role-assignment.get.d.ts +138 -0
- package/dist/types/roles/endpoints/role-assignment.patch.d.ts +140 -0
- package/dist/types/roles/endpoints/role-assignments-by-external-identifier.delete.d.ts +109 -0
- package/dist/types/roles/endpoints/role-assignments-delete.post.d.ts +108 -0
- package/dist/types/roles/endpoints/role-assignments.get.d.ts +184 -0
- package/dist/types/roles/endpoints/role-assignments.post.d.ts +151 -0
- package/dist/types/roles/endpoints/role-binding-configuration-expired-history.delete.d.ts +109 -0
- package/dist/types/roles/endpoints/role-binding-configuration-history.get.d.ts +145 -0
- package/dist/types/roles/endpoints/role-binding-configuration-history.post.d.ts +125 -0
- package/dist/types/roles/endpoints/role-binding-configuration-notifications.get.d.ts +140 -0
- package/dist/types/roles/endpoints/role-binding-configuration-notifications.post.d.ts +122 -0
- package/dist/types/roles/endpoints/role-binding-configuration-status.get.d.ts +110 -0
- package/dist/types/roles/endpoints/role-binding-configuration-status.patch.d.ts +117 -0
- package/dist/types/roles/endpoints/role-binding-configuration.delete.d.ts +100 -0
- package/dist/types/roles/endpoints/role-binding-configuration.get.d.ts +117 -0
- package/dist/types/roles/endpoints/role-binding-configuration.patch.d.ts +171 -0
- package/dist/types/roles/endpoints/role-binding-configurations.get.d.ts +115 -0
- package/dist/types/roles/endpoints/role-binding-configurations.post.d.ts +173 -0
- package/dist/types/roles/endpoints/role.delete.d.ts +100 -0
- package/dist/types/roles/endpoints/role.get.d.ts +144 -0
- package/dist/types/roles/endpoints/role.patch.d.ts +149 -0
- package/dist/types/roles/endpoints/roles-subscription.put.d.ts +110 -0
- package/dist/types/roles/endpoints/roles.get.d.ts +197 -0
- package/dist/types/roles/endpoints/roles.post.d.ts +152 -0
- package/dist/types/roles/endpoints/scope-type.delete.d.ts +100 -0
- package/dist/types/roles/endpoints/scope-type.get.d.ts +100 -0
- package/dist/types/roles/endpoints/scope-type.patch.d.ts +110 -0
- package/dist/types/roles/endpoints/scope-types.get.d.ts +97 -0
- package/dist/types/roles/endpoints/scope-types.post.d.ts +106 -0
- package/dist/types/roles/endpoints/system-access-role-assignment.delete.d.ts +109 -0
- package/dist/types/roles/endpoints/system-access-role-assignment.get.d.ts +182 -0
- package/dist/types/roles/endpoints/system-access-role-assignment.patch.d.ts +186 -0
- package/dist/types/roles/endpoints/system-access-role-assignments.get.d.ts +267 -0
- package/dist/types/roles/endpoints/system-access-role-assignments.post.d.ts +194 -0
- package/dist/types/roles/endpoints/system-access-role.delete.d.ts +104 -0
- package/dist/types/roles/endpoints/system-access-role.get.d.ts +111 -0
- package/dist/types/roles/endpoints/system-access-role.patch.d.ts +117 -0
- package/dist/types/roles/endpoints/system-access-roles.get.d.ts +109 -0
- package/dist/types/roles/endpoints/system-access-roles.post.d.ts +117 -0
- package/dist/types/roles/endpoints/system.delete.d.ts +97 -0
- package/dist/types/roles/endpoints/system.get.d.ts +110 -0
- package/dist/types/roles/endpoints/system.patch.d.ts +123 -0
- package/dist/types/roles/endpoints/systems.get.d.ts +138 -0
- package/dist/types/roles/endpoints/systems.post.d.ts +122 -0
- package/dist/types/roles/index.d.ts +191 -0
- package/dist/types/roles/static.d.ts +27 -0
- package/dist/types/roles/types.d.ts +22 -0
- package/dist/types/roles/v1/schemas/access-role-mapping-schema-v1.d.ts +13 -0
- package/dist/types/roles/v1/schemas/activate-assigned-claimable-role-request-schema-v1.d.ts +14 -0
- package/dist/types/roles/v1/schemas/add-claimable-role-access-role-request-schema-v1.d.ts +16 -0
- package/dist/types/roles/v1/schemas/add-role-access-role-request-schema-v1.d.ts +15 -0
- package/dist/types/roles/v1/schemas/api-access-role-assignment-schema-v1.d.ts +82 -0
- package/dist/types/roles/v1/schemas/api-access-role-mapping-schema-v1.d.ts +22 -0
- package/dist/types/roles/v1/schemas/api-access-role-schema-v1.d.ts +19 -0
- package/dist/types/roles/v1/schemas/api-account-access-role-assignment-schema-v1.d.ts +88 -0
- package/dist/types/roles/v1/schemas/api-account-access-role-schema-v1.d.ts +25 -0
- package/dist/types/roles/v1/schemas/api-account-active-access-role-assignment-schema-v1.d.ts +21 -0
- package/dist/types/roles/v1/schemas/api-account-claimable-role-assignment-schema-v1.d.ts +69 -0
- package/dist/types/roles/v1/schemas/api-account-role-assignment-schema-v1.d.ts +52 -0
- package/dist/types/roles/v1/schemas/api-account-schema-v1.d.ts +17 -0
- package/dist/types/roles/v1/schemas/api-binding-execution-record-schema-v1.d.ts +23 -0
- package/dist/types/roles/v1/schemas/api-binding-notification-record-schema-v1.d.ts +20 -0
- package/dist/types/roles/v1/schemas/api-claimable-access-role-mapping-schema-v1.d.ts +23 -0
- package/dist/types/roles/v1/schemas/api-claimable-role-assignment-activation-schema-v1.d.ts +24 -0
- package/dist/types/roles/v1/schemas/api-claimable-role-assignment-schema-v1.d.ts +57 -0
- package/dist/types/roles/v1/schemas/api-claimable-role-schema-v1.d.ts +52 -0
- package/dist/types/roles/v1/schemas/api-claimable-role-scope-schema-v1.d.ts +15 -0
- package/dist/types/roles/v1/schemas/api-consolidated-assignment-entry-schema-v1.d.ts +18 -0
- package/dist/types/roles/v1/schemas/api-consolidated-claimable-role-assignment-schema-v1.d.ts +47 -0
- package/dist/types/roles/v1/schemas/api-consolidated-claimable-role-ref-schema-v1.d.ts +16 -0
- package/dist/types/roles/v1/schemas/api-consolidated-role-assignment-schema-v1.d.ts +48 -0
- package/dist/types/roles/v1/schemas/api-extended-access-role-schema-v1.d.ts +24 -0
- package/dist/types/roles/v1/schemas/api-extended-claimable-role-assignment-activation-schema-v1.d.ts +52 -0
- package/dist/types/roles/v1/schemas/api-owner-schema-v1.d.ts +20 -0
- package/dist/types/roles/v1/schemas/api-paged-collection-schema-v1.d.ts +37 -0
- package/dist/types/roles/v1/schemas/api-purge-binding-result-schema-v1.d.ts +12 -0
- package/dist/types/roles/v1/schemas/api-role-assignment-schema-v1.d.ts +42 -0
- package/dist/types/roles/v1/schemas/api-role-binding-configuration-schema-v1.d.ts +23 -0
- package/dist/types/roles/v1/schemas/api-role-binding-configuration-status-schema-v1.d.ts +18 -0
- package/dist/types/roles/v1/schemas/api-role-schema-v1.d.ts +51 -0
- package/dist/types/roles/v1/schemas/api-role-scope-schema-v1.d.ts +14 -0
- package/dist/types/roles/v1/schemas/api-scope-schema-v1.d.ts +14 -0
- package/dist/types/roles/v1/schemas/api-scope-type-schema-v1.d.ts +14 -0
- package/dist/types/roles/v1/schemas/api-scope-values-schema-v1.d.ts +14 -0
- package/dist/types/roles/v1/schemas/api-simple-claimable-role-assignment-schema-v1.d.ts +37 -0
- package/dist/types/roles/v1/schemas/api-simple-claimable-role-schema-v1.d.ts +32 -0
- package/dist/types/roles/v1/schemas/api-simple-role-assignment-schema-v1.d.ts +22 -0
- package/dist/types/roles/v1/schemas/api-simple-role-schema-v1.d.ts +19 -0
- package/dist/types/roles/v1/schemas/api-simple-system-schema-v1.d.ts +13 -0
- package/dist/types/roles/v1/schemas/api-subscription-type-schema-v1.d.ts +14 -0
- package/dist/types/roles/v1/schemas/api-system-schema-v1.d.ts +26 -0
- package/dist/types/roles/v1/schemas/assign-access-role-request-schema-v1.d.ts +24 -0
- package/dist/types/roles/v1/schemas/assign-claimable-role-request-schema-v1.d.ts +24 -0
- package/dist/types/roles/v1/schemas/assign-role-request-schema-v1.d.ts +24 -0
- package/dist/types/roles/v1/schemas/claimable-role-binding-schema-v1.d.ts +18 -0
- package/dist/types/roles/v1/schemas/create-access-role-request-schema-v1.d.ts +14 -0
- package/dist/types/roles/v1/schemas/create-binding-execution-record-request-schema-v1.d.ts +21 -0
- package/dist/types/roles/v1/schemas/create-binding-execution-record-response-schema-v1.d.ts +13 -0
- package/dist/types/roles/v1/schemas/create-binding-notification-record-request-schema-v1.d.ts +17 -0
- package/dist/types/roles/v1/schemas/create-binding-notification-record-response-schema-v1.d.ts +13 -0
- package/dist/types/roles/v1/schemas/create-claimable-role-request-schema-v1.d.ts +19 -0
- package/dist/types/roles/v1/schemas/create-role-binding-configuration-request-schema-v1.d.ts +81 -0
- package/dist/types/roles/v1/schemas/create-role-request-schema-v1.d.ts +19 -0
- package/dist/types/roles/v1/schemas/create-scope-type-request-schema-v1.d.ts +13 -0
- package/dist/types/roles/v1/schemas/delete-role-assignments-request-schema-v1.d.ts +13 -0
- package/dist/types/roles/v1/schemas/entra-group-binding-schema-v1.d.ts +35 -0
- package/dist/types/roles/v1/schemas/entra-group-schema-v1.d.ts +13 -0
- package/dist/types/roles/v1/schemas/expand-schema-v1.d.ts +11 -0
- package/dist/types/roles/v1/schemas/filter-schema-v1.d.ts +10 -0
- package/dist/types/roles/v1/schemas/include-deleted-schema-v1.d.ts +11 -0
- package/dist/types/roles/v1/schemas/org-chart-assign-entry-schema-v1.d.ts +18 -0
- package/dist/types/roles/v1/schemas/org-chart-assignment-schema-v1.d.ts +29 -0
- package/dist/types/roles/v1/schemas/org-chart-binding-schema-v1.d.ts +48 -0
- package/dist/types/roles/v1/schemas/org-chart-context-schema-v1.d.ts +15 -0
- package/dist/types/roles/v1/schemas/org-chart-match-criteria-schema-v1.d.ts +13 -0
- package/dist/types/roles/v1/schemas/org-chart-profile-schema-v1.d.ts +38 -0
- package/dist/types/roles/v1/schemas/org-chart-rule-schema-v1.d.ts +35 -0
- package/dist/types/roles/v1/schemas/org-chart-scope-schema-v1.d.ts +14 -0
- package/dist/types/roles/v1/schemas/owner-info-schema-v1.d.ts +13 -0
- package/dist/types/roles/v1/schemas/register-system-request-schema-v1.d.ts +17 -0
- package/dist/types/roles/v1/schemas/request-claimable-role-scope-schema-v1.d.ts +14 -0
- package/dist/types/roles/v1/schemas/request-role-scope-schema-v1.d.ts +14 -0
- package/dist/types/roles/v1/schemas/request-scope-schema-v1.d.ts +14 -0
- package/dist/types/roles/v1/schemas/role-binding-configuration-binding-schema-v1.d.ts +78 -0
- package/dist/types/roles/v1/schemas/role-binding-schema-v1.d.ts +18 -0
- package/dist/types/roles/v1/schemas/scope-binding-schema-v1.d.ts +14 -0
- package/dist/types/roles/v1/schemas/skip-schema-v1.d.ts +11 -0
- package/dist/types/roles/v1/schemas/subscription-request-schema-v1.d.ts +19 -0
- package/dist/types/roles/v1/schemas/top-schema-v1.d.ts +11 -0
- package/dist/types/roles/v1/schemas/update-access-role-assignment-request-schema-v1.d.ts +13 -0
- package/dist/types/roles/v1/schemas/update-access-role-request-schema-v1.d.ts +12 -0
- package/dist/types/roles/v1/schemas/update-claimable-role-assignment-request-schema-v1.d.ts +13 -0
- package/dist/types/roles/v1/schemas/update-claimable-role-request-schema-v1.d.ts +14 -0
- package/dist/types/roles/v1/schemas/update-role-assignment-request-schema-v1.d.ts +13 -0
- package/dist/types/roles/v1/schemas/update-role-binding-configuration-request-schema-v1.d.ts +79 -0
- package/dist/types/roles/v1/schemas/update-role-binding-configuration-status-request-schema-v1.d.ts +15 -0
- package/dist/types/roles/v1/schemas/update-role-request-schema-v1.d.ts +14 -0
- package/dist/types/roles/v1/schemas/update-scope-request-schema-v1.d.ts +12 -0
- package/dist/types/roles/v1/schemas/update-system-request-schema-v1.d.ts +16 -0
- package/dist/types/roles/v1/types.d.ts +109 -0
- package/dist/types/types.d.ts +173 -0
- package/dist/types/utils.d.ts +97 -0
- package/dist/types/version.d.ts +1 -0
- package/docs/roles.md +211 -0
- package/package.json +62 -0
- package/src/roles/v1/openapi.json +1 -0
|
@@ -0,0 +1,123 @@
|
|
|
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 `getClaimableRoleAssignmentActivation` accepts for
|
|
9
|
+
* `GET /accounts/{accountIdentifier}/claimable-role-assignments/{claimableRoleAssignmentId}/activations/{claimableRoleAssignmentActivationId}`.
|
|
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 GetClaimableRoleAssignmentActivationArg} and
|
|
14
|
+
* {@link GetClaimableRoleAssignmentActivationResponse}.
|
|
15
|
+
*/
|
|
16
|
+
type GetClaimableRoleAssignmentActivationVersion = FilterAllowedApiVersions<AvailableVersions>;
|
|
17
|
+
/**
|
|
18
|
+
* Version contract for `getClaimableRoleAssignmentActivation`, implementing
|
|
19
|
+
* `GET /accounts/{accountIdentifier}/claimable-role-assignments/{claimableRoleAssignmentId}/activations/{claimableRoleAssignmentActivationId}`.
|
|
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
|
+
accountIdentifier: z.ZodString;
|
|
30
|
+
claimableRoleAssignmentId: z.ZodString;
|
|
31
|
+
claimableRoleAssignmentActivationId: z.ZodString;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
/** Response published by version 1.0 of this operation. */
|
|
34
|
+
readonly response: z.ZodObject<{
|
|
35
|
+
id: z.ZodOptional<z.ZodString>;
|
|
36
|
+
activationDate: z.ZodOptional<z.ZodString>;
|
|
37
|
+
activeToDate: z.ZodOptional<z.ZodString>;
|
|
38
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
39
|
+
activatedBy: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
azureUniqueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
43
|
+
upn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
accountType: z.ZodOptional<z.ZodString>;
|
|
45
|
+
accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Response body `getClaimableRoleAssignmentActivation` resolves for the selected API version.
|
|
52
|
+
*
|
|
53
|
+
* Version 1.0 resolves to `ApiClaimableRoleAssignmentActivationV1`, inferred from
|
|
54
|
+
* `ApiClaimableRoleAssignmentActivationSchemaV1` — the very schema that validates the `200 OK`
|
|
55
|
+
* body at runtime.
|
|
56
|
+
*/
|
|
57
|
+
type GetClaimableRoleAssignmentActivationResponse<TVersion extends GetClaimableRoleAssignmentActivationVersion> = VersionedResponse<typeof VersionContract, ExtractApiVersion<TVersion>>;
|
|
58
|
+
/**
|
|
59
|
+
* Arguments `getClaimableRoleAssignmentActivation` accepts, resolved from the selected API
|
|
60
|
+
* version.
|
|
61
|
+
*
|
|
62
|
+
* Version 1.0 accepts the path identifiers `accountIdentifier`, `claimableRoleAssignmentId`,
|
|
63
|
+
* `claimableRoleAssignmentActivationId`.
|
|
64
|
+
*
|
|
65
|
+
* The value is parsed by the version's Zod argument schema before the request path is built, so
|
|
66
|
+
* defaults and range checks apply up front.
|
|
67
|
+
*/
|
|
68
|
+
type GetClaimableRoleAssignmentActivationArg<TVersion extends GetClaimableRoleAssignmentActivationVersion> = VersionedArgs<typeof VersionContract, ExtractApiVersion<TVersion>>;
|
|
69
|
+
/**
|
|
70
|
+
* What `getClaimableRoleAssignmentActivation` hands back once the request runs, for the
|
|
71
|
+
* selected API version and client method.
|
|
72
|
+
*
|
|
73
|
+
* `'json'` gives `Promise<GetClaimableRoleAssignmentActivationResponse<TVersion>>` and
|
|
74
|
+
* `'json$'` gives `StreamResponse<GetClaimableRoleAssignmentActivationResponse<TVersion>>`, so
|
|
75
|
+
* promise and observable callers share one response type.
|
|
76
|
+
*/
|
|
77
|
+
type GetClaimableRoleAssignmentActivationResult<TVersion extends GetClaimableRoleAssignmentActivationVersion, TMethod extends ClientMethodType = 'json'> = ClientMethod<GetClaimableRoleAssignmentActivationResponse<TVersion>>[TMethod];
|
|
78
|
+
/**
|
|
79
|
+
* Fetches one activation (one claim) of an account's claimable role assignment, addressed by
|
|
80
|
+
* its activation ID.
|
|
81
|
+
*
|
|
82
|
+
* Roles V2 operation:
|
|
83
|
+
* `GET /accounts/{accountIdentifier}/claimable-role-assignments/{claimableRoleAssignmentId}/activations/{claimableRoleAssignmentActivationId}`
|
|
84
|
+
* — "Get a claimable role assignment activation by ID."
|
|
85
|
+
*
|
|
86
|
+
* Curried in two stages: `getClaimableRoleAssignmentActivation(version, client, method)` binds
|
|
87
|
+
* the API version, the `IHttpClient` that reaches the Roles service, and the execution method —
|
|
88
|
+
* `'json'` for a promise, `'json$'` for an observable stream. The returned function takes
|
|
89
|
+
* {@link GetClaimableRoleAssignmentActivationArg} plus an optional `ClientRequestInit`, and
|
|
90
|
+
* gives back {@link GetClaimableRoleAssignmentActivationResult}.
|
|
91
|
+
*
|
|
92
|
+
* The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
|
|
93
|
+
* `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
|
|
94
|
+
* `ApiClaimableRoleAssignmentActivationSchemaV1`, and sends `api-version=1.0` on the request.
|
|
95
|
+
*
|
|
96
|
+
* Roles V2 answers `200 OK`; the body is typed `ApiClaimableRoleAssignmentActivationV1`.
|
|
97
|
+
*
|
|
98
|
+
* @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
|
|
99
|
+
* @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
|
|
100
|
+
* @param version - API version selecting the request path, the argument schema, and the
|
|
101
|
+
* response schema.
|
|
102
|
+
* @param client - HTTP client that executes the request against the Roles service.
|
|
103
|
+
* @param method - Execution method, defaulting to `'json'`.
|
|
104
|
+
* @returns A request function taking {@link GetClaimableRoleAssignmentActivationArg} and an
|
|
105
|
+
* optional `ClientRequestInit`, returning {@link GetClaimableRoleAssignmentActivationResult}.
|
|
106
|
+
* @throws {Error} When `version` names an API version this operation does not publish. The
|
|
107
|
+
* check runs while binding, before the HTTP client is used.
|
|
108
|
+
* @throws {z.ZodError} From the returned function, when the arguments fail this version's
|
|
109
|
+
* argument schema or the response body fails its response schema.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```ts
|
|
113
|
+
* import { getClaimableRoleAssignmentActivation } from '@equinor/fusion-services/roles';
|
|
114
|
+
*
|
|
115
|
+
* const activation = await getClaimableRoleAssignmentActivation('v1', httpClient)({
|
|
116
|
+
* accountIdentifier: 'user@equinor.com',
|
|
117
|
+
* claimableRoleAssignmentId: '6b1d4f2a-8c3e-4d59-9f70-1a2b3c4d5e6f',
|
|
118
|
+
* claimableRoleAssignmentActivationId: '9c7e2b10-4a5d-4f38-8b21-3e4f5a6b7c8d',
|
|
119
|
+
* });
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
declare const getClaimableRoleAssignmentActivation: <TVersion extends GetClaimableRoleAssignmentActivationVersion, TMethod extends ClientMethodType = 'json'>(version: TVersion, client: IHttpClient, method?: TMethod) => (input: GetClaimableRoleAssignmentActivationArg<ExtractApiVersion<TVersion>>, init?: ClientRequestInit<IHttpClient, GetClaimableRoleAssignmentActivationResponse<ExtractApiVersion<TVersion>>>) => GetClaimableRoleAssignmentActivationResult<ExtractApiVersion<TVersion>, TMethod>;
|
|
123
|
+
export { type GetClaimableRoleAssignmentActivationArg, type GetClaimableRoleAssignmentActivationResponse, type GetClaimableRoleAssignmentActivationResult, type GetClaimableRoleAssignmentActivationVersion, getClaimableRoleAssignmentActivation, };
|
|
@@ -0,0 +1,127 @@
|
|
|
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 `activateClaimableRoleAssignment` accepts for
|
|
9
|
+
* `POST /accounts/{accountIdentifier}/claimable-role-assignments/{claimableRoleAssignmentId}/activate`.
|
|
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 ActivateClaimableRoleAssignmentArg} and
|
|
14
|
+
* {@link ActivateClaimableRoleAssignmentResponse}.
|
|
15
|
+
*/
|
|
16
|
+
type ActivateClaimableRoleAssignmentVersion = FilterAllowedApiVersions<AvailableVersions>;
|
|
17
|
+
/**
|
|
18
|
+
* Version contract for `activateClaimableRoleAssignment`, implementing
|
|
19
|
+
* `POST /accounts/{accountIdentifier}/claimable-role-assignments/{claimableRoleAssignmentId}/activate`.
|
|
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
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
30
|
+
hours: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
31
|
+
accountIdentifier: z.ZodString;
|
|
32
|
+
claimableRoleAssignmentId: z.ZodString;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
/** Response published by version 1.0 of this operation. */
|
|
35
|
+
readonly response: z.ZodObject<{
|
|
36
|
+
id: z.ZodOptional<z.ZodString>;
|
|
37
|
+
activationDate: z.ZodOptional<z.ZodString>;
|
|
38
|
+
activeToDate: z.ZodOptional<z.ZodString>;
|
|
39
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
40
|
+
activatedBy: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
azureUniqueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
44
|
+
upn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
accountType: z.ZodOptional<z.ZodString>;
|
|
46
|
+
accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Response body `activateClaimableRoleAssignment` resolves for the selected API version.
|
|
53
|
+
*
|
|
54
|
+
* Version 1.0 resolves to `ApiClaimableRoleAssignmentActivationV1`, inferred from
|
|
55
|
+
* `ApiClaimableRoleAssignmentActivationSchemaV1` — the very schema that validates the `201
|
|
56
|
+
* Created` body at runtime.
|
|
57
|
+
*/
|
|
58
|
+
type ActivateClaimableRoleAssignmentResponse<TVersion extends ActivateClaimableRoleAssignmentVersion> = VersionedResponse<typeof VersionContract, ExtractApiVersion<TVersion>>;
|
|
59
|
+
/**
|
|
60
|
+
* Arguments `activateClaimableRoleAssignment` accepts, resolved from the selected API version.
|
|
61
|
+
*
|
|
62
|
+
* Version 1.0 accepts the path identifiers `accountIdentifier`, `claimableRoleAssignmentId`,
|
|
63
|
+
* and the request body fields of `ActivateAssignedClaimableRoleRequestV1`.
|
|
64
|
+
*
|
|
65
|
+
* Path identifiers and body fields share one flat object; the endpoint separates them when it
|
|
66
|
+
* builds the request. The value is parsed by the version's Zod argument schema before anything
|
|
67
|
+
* is sent.
|
|
68
|
+
*/
|
|
69
|
+
type ActivateClaimableRoleAssignmentArg<TVersion extends ActivateClaimableRoleAssignmentVersion> = VersionedArgs<typeof VersionContract, ExtractApiVersion<TVersion>>;
|
|
70
|
+
/**
|
|
71
|
+
* What `activateClaimableRoleAssignment` hands back once the request runs, for the selected API
|
|
72
|
+
* version and client method.
|
|
73
|
+
*
|
|
74
|
+
* `'json'` gives `Promise<ActivateClaimableRoleAssignmentResponse<TVersion>>` and `'json$'`
|
|
75
|
+
* gives `StreamResponse<ActivateClaimableRoleAssignmentResponse<TVersion>>`, so promise and
|
|
76
|
+
* observable callers share one response type.
|
|
77
|
+
*/
|
|
78
|
+
type ActivateClaimableRoleAssignmentResult<TVersion extends ActivateClaimableRoleAssignmentVersion, TMethod extends ClientMethodType = 'json'> = ClientMethod<ActivateClaimableRoleAssignmentResponse<TVersion>>[TMethod];
|
|
79
|
+
/**
|
|
80
|
+
* Claims (activates) a claimable role assignment on behalf of a Fusion account, turning a role
|
|
81
|
+
* the account is eligible for into a time-boxed, active assignment.
|
|
82
|
+
*
|
|
83
|
+
* Roles V2 operation:
|
|
84
|
+
* `POST /accounts/{accountIdentifier}/claimable-role-assignments/{claimableRoleAssignmentId}/activate`
|
|
85
|
+
* — "Activate a claimable role assignment for an account."
|
|
86
|
+
*
|
|
87
|
+
* Curried in two stages: `activateClaimableRoleAssignment(version, client, method)` binds the
|
|
88
|
+
* API version, the `IHttpClient` that reaches the Roles service, and the execution method —
|
|
89
|
+
* `'json'` for a promise, `'json$'` for an observable stream. The returned function takes
|
|
90
|
+
* {@link ActivateClaimableRoleAssignmentArg} plus an optional `ClientRequestInit`, and gives
|
|
91
|
+
* back {@link ActivateClaimableRoleAssignmentResult}.
|
|
92
|
+
*
|
|
93
|
+
* The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
|
|
94
|
+
* `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
|
|
95
|
+
* `ApiClaimableRoleAssignmentActivationSchemaV1`, and sends `api-version=1.0` on the request.
|
|
96
|
+
*
|
|
97
|
+
* Roles V2 answers `201 Created`; the body is typed `ApiClaimableRoleAssignmentActivationV1`.
|
|
98
|
+
* The contract declares `403 Forbidden` for callers the Roles service does not authorise for
|
|
99
|
+
* this operation.
|
|
100
|
+
*
|
|
101
|
+
* @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
|
|
102
|
+
* @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
|
|
103
|
+
* @param version - API version selecting the request path, the argument schema, and the
|
|
104
|
+
* response schema.
|
|
105
|
+
* @param client - HTTP client that executes the request against the Roles service.
|
|
106
|
+
* @param method - Execution method, defaulting to `'json'`.
|
|
107
|
+
* @returns A request function taking {@link ActivateClaimableRoleAssignmentArg} and an optional
|
|
108
|
+
* `ClientRequestInit`, returning {@link ActivateClaimableRoleAssignmentResult}.
|
|
109
|
+
* @throws {Error} When `version` names an API version this operation does not publish. The
|
|
110
|
+
* check runs while binding, before the HTTP client is used.
|
|
111
|
+
* @throws {z.ZodError} From the returned function, when the arguments fail this version's
|
|
112
|
+
* argument schema or the response body fails its response schema.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```ts
|
|
116
|
+
* import { activateClaimableRoleAssignment } from '@equinor/fusion-services/roles';
|
|
117
|
+
*
|
|
118
|
+
* const activation = await activateClaimableRoleAssignment('v1', httpClient)({
|
|
119
|
+
* accountIdentifier: 'user@equinor.com',
|
|
120
|
+
* claimableRoleAssignmentId: '6b1d4f2a-8c3e-4d59-9f70-1a2b3c4d5e6f',
|
|
121
|
+
* reason: 'on-call incident 4471',
|
|
122
|
+
* hours: 8,
|
|
123
|
+
* });
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
declare const activateClaimableRoleAssignment: <TVersion extends ActivateClaimableRoleAssignmentVersion, TMethod extends ClientMethodType = 'json'>(version: TVersion, client: IHttpClient, method?: TMethod) => (input: ActivateClaimableRoleAssignmentArg<ExtractApiVersion<TVersion>>, init?: ClientRequestInit<IHttpClient, ActivateClaimableRoleAssignmentResponse<ExtractApiVersion<TVersion>>>) => ActivateClaimableRoleAssignmentResult<ExtractApiVersion<TVersion>, TMethod>;
|
|
127
|
+
export { type ActivateClaimableRoleAssignmentArg, type ActivateClaimableRoleAssignmentResponse, type ActivateClaimableRoleAssignmentResult, type ActivateClaimableRoleAssignmentVersion, activateClaimableRoleAssignment, };
|
|
@@ -0,0 +1,123 @@
|
|
|
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 `deactivateClaimableRoleAssignment` accepts for
|
|
9
|
+
* `POST /accounts/{accountIdentifier}/claimable-role-assignments/{claimableRoleAssignmentId}/deactivate`.
|
|
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 DeactivateClaimableRoleAssignmentArg} and
|
|
14
|
+
* {@link DeactivateClaimableRoleAssignmentResponse}.
|
|
15
|
+
*/
|
|
16
|
+
type DeactivateClaimableRoleAssignmentVersion = FilterAllowedApiVersions<AvailableVersions>;
|
|
17
|
+
/**
|
|
18
|
+
* Version contract for `deactivateClaimableRoleAssignment`, implementing
|
|
19
|
+
* `POST /accounts/{accountIdentifier}/claimable-role-assignments/{claimableRoleAssignmentId}/deactivate`.
|
|
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
|
+
accountIdentifier: 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
|
+
activationDate: z.ZodOptional<z.ZodString>;
|
|
36
|
+
activeToDate: z.ZodOptional<z.ZodString>;
|
|
37
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
38
|
+
activatedBy: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
azureUniqueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
42
|
+
upn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
accountType: z.ZodOptional<z.ZodString>;
|
|
44
|
+
accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Response body `deactivateClaimableRoleAssignment` resolves for the selected API version.
|
|
51
|
+
*
|
|
52
|
+
* Version 1.0 resolves to `ApiClaimableRoleAssignmentActivationV1`, inferred from
|
|
53
|
+
* `ApiClaimableRoleAssignmentActivationSchemaV1` — the very schema that validates the `201
|
|
54
|
+
* Created` body at runtime.
|
|
55
|
+
*/
|
|
56
|
+
type DeactivateClaimableRoleAssignmentResponse<TVersion extends DeactivateClaimableRoleAssignmentVersion> = VersionedResponse<typeof VersionContract, ExtractApiVersion<TVersion>>;
|
|
57
|
+
/**
|
|
58
|
+
* Arguments `deactivateClaimableRoleAssignment` accepts, resolved from the selected API
|
|
59
|
+
* version.
|
|
60
|
+
*
|
|
61
|
+
* Version 1.0 accepts the path identifiers `accountIdentifier`, `claimableRoleAssignmentId`.
|
|
62
|
+
*
|
|
63
|
+
* The value is parsed by the version's Zod argument schema before the request path is built, so
|
|
64
|
+
* defaults and range checks apply up front.
|
|
65
|
+
*/
|
|
66
|
+
type DeactivateClaimableRoleAssignmentArg<TVersion extends DeactivateClaimableRoleAssignmentVersion> = VersionedArgs<typeof VersionContract, ExtractApiVersion<TVersion>>;
|
|
67
|
+
/**
|
|
68
|
+
* What `deactivateClaimableRoleAssignment` hands back once the request runs, for the selected
|
|
69
|
+
* API version and client method.
|
|
70
|
+
*
|
|
71
|
+
* `'json'` gives `Promise<DeactivateClaimableRoleAssignmentResponse<TVersion>>` and `'json$'`
|
|
72
|
+
* gives `StreamResponse<DeactivateClaimableRoleAssignmentResponse<TVersion>>`, so promise and
|
|
73
|
+
* observable callers share one response type.
|
|
74
|
+
*/
|
|
75
|
+
type DeactivateClaimableRoleAssignmentResult<TVersion extends DeactivateClaimableRoleAssignmentVersion, TMethod extends ClientMethodType = 'json'> = ClientMethod<DeactivateClaimableRoleAssignmentResponse<TVersion>>[TMethod];
|
|
76
|
+
/**
|
|
77
|
+
* Ends an active claim early: deactivates a claimable role assignment for an account by setting
|
|
78
|
+
* its expiration to now.
|
|
79
|
+
*
|
|
80
|
+
* Roles V2 operation:
|
|
81
|
+
* `POST /accounts/{accountIdentifier}/claimable-role-assignments/{claimableRoleAssignmentId}/deactivate`
|
|
82
|
+
* — "Deactivate a claimable role assignment for an account by setting the expiration date to
|
|
83
|
+
* now."
|
|
84
|
+
*
|
|
85
|
+
* Curried in two stages: `deactivateClaimableRoleAssignment(version, client, method)` binds the
|
|
86
|
+
* API version, the `IHttpClient` that reaches the Roles service, and the execution method —
|
|
87
|
+
* `'json'` for a promise, `'json$'` for an observable stream. The returned function takes
|
|
88
|
+
* {@link DeactivateClaimableRoleAssignmentArg} plus an optional `ClientRequestInit`, and gives
|
|
89
|
+
* back {@link DeactivateClaimableRoleAssignmentResult}.
|
|
90
|
+
*
|
|
91
|
+
* The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
|
|
92
|
+
* `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
|
|
93
|
+
* `ApiClaimableRoleAssignmentActivationSchemaV1`, and sends `api-version=1.0` on the request.
|
|
94
|
+
*
|
|
95
|
+
* Roles V2 answers `201 Created`; the body is typed `ApiClaimableRoleAssignmentActivationV1`.
|
|
96
|
+
* The contract declares `403 Forbidden` for callers the Roles service does not authorise for
|
|
97
|
+
* this operation.
|
|
98
|
+
*
|
|
99
|
+
* @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
|
|
100
|
+
* @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
|
|
101
|
+
* @param version - API version selecting the request path, the argument schema, and the
|
|
102
|
+
* response schema.
|
|
103
|
+
* @param client - HTTP client that executes the request against the Roles service.
|
|
104
|
+
* @param method - Execution method, defaulting to `'json'`.
|
|
105
|
+
* @returns A request function taking {@link DeactivateClaimableRoleAssignmentArg} and an
|
|
106
|
+
* optional `ClientRequestInit`, returning {@link DeactivateClaimableRoleAssignmentResult}.
|
|
107
|
+
* @throws {Error} When `version` names an API version this operation does not publish. The
|
|
108
|
+
* check runs while binding, before the HTTP client is used.
|
|
109
|
+
* @throws {z.ZodError} From the returned function, when the arguments fail this version's
|
|
110
|
+
* argument schema or the response body fails its response schema.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```ts
|
|
114
|
+
* import { deactivateClaimableRoleAssignment } from '@equinor/fusion-services/roles';
|
|
115
|
+
*
|
|
116
|
+
* const activation = await deactivateClaimableRoleAssignment('v1', httpClient)({
|
|
117
|
+
* accountIdentifier: 'user@equinor.com',
|
|
118
|
+
* claimableRoleAssignmentId: '6b1d4f2a-8c3e-4d59-9f70-1a2b3c4d5e6f',
|
|
119
|
+
* });
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
declare const deactivateClaimableRoleAssignment: <TVersion extends DeactivateClaimableRoleAssignmentVersion, TMethod extends ClientMethodType = 'json'>(version: TVersion, client: IHttpClient, method?: TMethod) => (input: DeactivateClaimableRoleAssignmentArg<ExtractApiVersion<TVersion>>, init?: ClientRequestInit<IHttpClient, DeactivateClaimableRoleAssignmentResponse<ExtractApiVersion<TVersion>>>) => DeactivateClaimableRoleAssignmentResult<ExtractApiVersion<TVersion>, TMethod>;
|
|
123
|
+
export { type DeactivateClaimableRoleAssignmentArg, type DeactivateClaimableRoleAssignmentResponse, type DeactivateClaimableRoleAssignmentResult, type DeactivateClaimableRoleAssignmentVersion, deactivateClaimableRoleAssignment, };
|
|
@@ -0,0 +1,230 @@
|
|
|
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 `listAccountClaimableRoleAssignments` accepts for
|
|
9
|
+
* `GET /accounts/{accountIdentifier}/claimable-role-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 ListAccountClaimableRoleAssignmentsArg} and
|
|
14
|
+
* {@link ListAccountClaimableRoleAssignmentsResponse}.
|
|
15
|
+
*/
|
|
16
|
+
type ListAccountClaimableRoleAssignmentsVersion = FilterAllowedApiVersions<AvailableVersions>;
|
|
17
|
+
/**
|
|
18
|
+
* Version contract for `listAccountClaimableRoleAssignments`, implementing
|
|
19
|
+
* `GET /accounts/{accountIdentifier}/claimable-role-assignments`.
|
|
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
|
+
accountIdentifier: z.ZodString;
|
|
30
|
+
expand: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
/** Response published by version 1.0 of this operation. */
|
|
33
|
+
readonly response: z.ZodObject<{
|
|
34
|
+
totalCount: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
35
|
+
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
36
|
+
nextPage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
prevPage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
value: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
39
|
+
id?: string | undefined;
|
|
40
|
+
assignedTo?: {
|
|
41
|
+
azureUniqueId?: string | null | undefined;
|
|
42
|
+
mail?: string | null | undefined;
|
|
43
|
+
displayName?: string | undefined;
|
|
44
|
+
upn?: string | null | undefined;
|
|
45
|
+
accountType?: string | undefined;
|
|
46
|
+
accountClassification?: string | null | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
claimableRole?: {
|
|
49
|
+
id?: string | undefined;
|
|
50
|
+
name?: string | undefined;
|
|
51
|
+
displayName?: string | undefined;
|
|
52
|
+
description?: string | undefined;
|
|
53
|
+
accessRoleMappings?: {
|
|
54
|
+
accessRole?: {
|
|
55
|
+
id?: string | undefined;
|
|
56
|
+
name?: string | undefined;
|
|
57
|
+
description?: string | undefined;
|
|
58
|
+
scopeType?: {
|
|
59
|
+
id?: string | undefined;
|
|
60
|
+
name?: string | undefined;
|
|
61
|
+
description?: string | null | undefined;
|
|
62
|
+
} | null | undefined;
|
|
63
|
+
} | undefined;
|
|
64
|
+
reason?: string | null | undefined;
|
|
65
|
+
}[] | null | undefined;
|
|
66
|
+
system?: {
|
|
67
|
+
id?: string | undefined;
|
|
68
|
+
name?: string | undefined;
|
|
69
|
+
} | null | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
source?: string | null | undefined;
|
|
72
|
+
externalIdentifier?: string | null | undefined;
|
|
73
|
+
reason?: string | undefined;
|
|
74
|
+
type?: string | undefined;
|
|
75
|
+
validFrom?: string | null | undefined;
|
|
76
|
+
validTo?: string | null | undefined;
|
|
77
|
+
isActive?: boolean | undefined;
|
|
78
|
+
activeTo?: string | null | undefined;
|
|
79
|
+
scope?: {
|
|
80
|
+
isGlobal: boolean;
|
|
81
|
+
value: string | null;
|
|
82
|
+
scopeTypeIdentifier?: string | null | undefined;
|
|
83
|
+
} | null | undefined;
|
|
84
|
+
tags?: string[] | undefined;
|
|
85
|
+
} & {
|
|
86
|
+
createdBy?: {
|
|
87
|
+
azureUniqueId?: string | null | undefined;
|
|
88
|
+
mail?: string | null | undefined;
|
|
89
|
+
displayName?: string | undefined;
|
|
90
|
+
upn?: string | null | undefined;
|
|
91
|
+
accountType?: string | undefined;
|
|
92
|
+
accountClassification?: string | null | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
createdDate?: string | undefined;
|
|
95
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
96
|
+
id?: string | undefined;
|
|
97
|
+
assignedTo?: {
|
|
98
|
+
azureUniqueId?: string | null | undefined;
|
|
99
|
+
mail?: string | null | undefined;
|
|
100
|
+
displayName?: string | undefined;
|
|
101
|
+
upn?: string | null | undefined;
|
|
102
|
+
accountType?: string | undefined;
|
|
103
|
+
accountClassification?: string | null | undefined;
|
|
104
|
+
} | undefined;
|
|
105
|
+
claimableRole?: {
|
|
106
|
+
id?: string | undefined;
|
|
107
|
+
name?: string | undefined;
|
|
108
|
+
displayName?: string | undefined;
|
|
109
|
+
description?: string | undefined;
|
|
110
|
+
accessRoleMappings?: {
|
|
111
|
+
accessRole?: {
|
|
112
|
+
id?: string | undefined;
|
|
113
|
+
name?: string | undefined;
|
|
114
|
+
description?: string | undefined;
|
|
115
|
+
scopeType?: {
|
|
116
|
+
id?: string | undefined;
|
|
117
|
+
name?: string | undefined;
|
|
118
|
+
description?: string | null | undefined;
|
|
119
|
+
} | null | undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
reason?: string | null | undefined;
|
|
122
|
+
}[] | null | undefined;
|
|
123
|
+
system?: {
|
|
124
|
+
id?: string | undefined;
|
|
125
|
+
name?: string | undefined;
|
|
126
|
+
} | null | undefined;
|
|
127
|
+
} | undefined;
|
|
128
|
+
source?: string | null | undefined;
|
|
129
|
+
externalIdentifier?: string | null | undefined;
|
|
130
|
+
reason?: string | undefined;
|
|
131
|
+
type?: string | undefined;
|
|
132
|
+
validFrom?: string | null | undefined;
|
|
133
|
+
validTo?: string | null | undefined;
|
|
134
|
+
isActive?: boolean | undefined;
|
|
135
|
+
activeTo?: string | null | undefined;
|
|
136
|
+
scope?: {
|
|
137
|
+
isGlobal: boolean;
|
|
138
|
+
value: string | null;
|
|
139
|
+
scopeTypeIdentifier?: string | null | undefined;
|
|
140
|
+
} | null | undefined;
|
|
141
|
+
tags?: string[] | undefined;
|
|
142
|
+
} & {
|
|
143
|
+
createdBy?: {
|
|
144
|
+
azureUniqueId?: string | null | undefined;
|
|
145
|
+
mail?: string | null | undefined;
|
|
146
|
+
displayName?: string | undefined;
|
|
147
|
+
upn?: string | null | undefined;
|
|
148
|
+
accountType?: string | undefined;
|
|
149
|
+
accountClassification?: string | null | undefined;
|
|
150
|
+
} | undefined;
|
|
151
|
+
createdDate?: string | undefined;
|
|
152
|
+
}, unknown>>>>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Response body `listAccountClaimableRoleAssignments` resolves for the selected API version.
|
|
158
|
+
*
|
|
159
|
+
* Version 1.0 resolves to `ApiPagedCollectionV1<ApiAccountClaimableRoleAssignmentV1>`, inferred
|
|
160
|
+
* from `apiPagedCollectionSchemaV1(ApiAccountClaimableRoleAssignmentSchemaV1)` — the very
|
|
161
|
+
* schema that validates the `200 OK` body at runtime.
|
|
162
|
+
*/
|
|
163
|
+
type ListAccountClaimableRoleAssignmentsResponse<TVersion extends ListAccountClaimableRoleAssignmentsVersion> = VersionedResponse<typeof VersionContract, ExtractApiVersion<TVersion>>;
|
|
164
|
+
/**
|
|
165
|
+
* Arguments `listAccountClaimableRoleAssignments` accepts, resolved from the selected API
|
|
166
|
+
* version.
|
|
167
|
+
*
|
|
168
|
+
* Version 1.0 accepts the path identifier `accountIdentifier`, and the optional query options
|
|
169
|
+
* `expand`.
|
|
170
|
+
*
|
|
171
|
+
* The value is parsed by the version's Zod argument schema before the request path is built, so
|
|
172
|
+
* defaults and range checks apply up front.
|
|
173
|
+
*/
|
|
174
|
+
type ListAccountClaimableRoleAssignmentsArg<TVersion extends ListAccountClaimableRoleAssignmentsVersion> = VersionedArgs<typeof VersionContract, ExtractApiVersion<TVersion>>;
|
|
175
|
+
/**
|
|
176
|
+
* What `listAccountClaimableRoleAssignments` hands back once the request runs, for the selected
|
|
177
|
+
* API version and client method.
|
|
178
|
+
*
|
|
179
|
+
* `'json'` gives `Promise<ListAccountClaimableRoleAssignmentsResponse<TVersion>>` and `'json$'`
|
|
180
|
+
* gives `StreamResponse<ListAccountClaimableRoleAssignmentsResponse<TVersion>>`, so promise and
|
|
181
|
+
* observable callers share one response type.
|
|
182
|
+
*/
|
|
183
|
+
type ListAccountClaimableRoleAssignmentsResult<TVersion extends ListAccountClaimableRoleAssignmentsVersion, TMethod extends ClientMethodType = 'json'> = ClientMethod<ListAccountClaimableRoleAssignmentsResponse<TVersion>>[TMethod];
|
|
184
|
+
/**
|
|
185
|
+
* Lists the claimable role assignments granted to one account, that is, the roles that account
|
|
186
|
+
* may claim.
|
|
187
|
+
*
|
|
188
|
+
* Roles V2 operation: `GET /accounts/{accountIdentifier}/claimable-role-assignments` — "Get all
|
|
189
|
+
* claimable role assignments for an account."
|
|
190
|
+
*
|
|
191
|
+
* Curried in two stages: `listAccountClaimableRoleAssignments(version, client, method)` binds
|
|
192
|
+
* the API version, the `IHttpClient` that reaches the Roles service, and the execution method —
|
|
193
|
+
* `'json'` for a promise, `'json$'` for an observable stream. The returned function takes
|
|
194
|
+
* {@link ListAccountClaimableRoleAssignmentsArg} plus an optional `ClientRequestInit`, and
|
|
195
|
+
* gives back {@link ListAccountClaimableRoleAssignmentsResult}.
|
|
196
|
+
*
|
|
197
|
+
* The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
|
|
198
|
+
* `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
|
|
199
|
+
* `apiPagedCollectionSchemaV1(ApiAccountClaimableRoleAssignmentSchemaV1)`, and sends
|
|
200
|
+
* `api-version=1.0` on the request.
|
|
201
|
+
*
|
|
202
|
+
* Query options: `expand` is sent as `$expand` to inline related resources.
|
|
203
|
+
*
|
|
204
|
+
* Roles V2 answers `200 OK`; the body is typed
|
|
205
|
+
* `ApiPagedCollectionV1<ApiAccountClaimableRoleAssignmentV1>`.
|
|
206
|
+
*
|
|
207
|
+
* @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
|
|
208
|
+
* @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
|
|
209
|
+
* @param version - API version selecting the request path, the argument schema, and the
|
|
210
|
+
* response schema.
|
|
211
|
+
* @param client - HTTP client that executes the request against the Roles service.
|
|
212
|
+
* @param method - Execution method, defaulting to `'json'`.
|
|
213
|
+
* @returns A request function taking {@link ListAccountClaimableRoleAssignmentsArg} and an
|
|
214
|
+
* optional `ClientRequestInit`, returning {@link ListAccountClaimableRoleAssignmentsResult}.
|
|
215
|
+
* @throws {Error} When `version` names an API version this operation does not publish. The
|
|
216
|
+
* check runs while binding, before the HTTP client is used.
|
|
217
|
+
* @throws {z.ZodError} From the returned function, when the arguments fail this version's
|
|
218
|
+
* argument schema or the response body fails its response schema.
|
|
219
|
+
*
|
|
220
|
+
* @example
|
|
221
|
+
* ```ts
|
|
222
|
+
* import { listAccountClaimableRoleAssignments } from '@equinor/fusion-services/roles';
|
|
223
|
+
*
|
|
224
|
+
* const page = await listAccountClaimableRoleAssignments('v1', httpClient)({
|
|
225
|
+
* accountIdentifier: 'user@equinor.com',
|
|
226
|
+
* });
|
|
227
|
+
* ```
|
|
228
|
+
*/
|
|
229
|
+
declare const listAccountClaimableRoleAssignments: <TVersion extends ListAccountClaimableRoleAssignmentsVersion, TMethod extends ClientMethodType = 'json'>(version: TVersion, client: IHttpClient, method?: TMethod) => (input: ListAccountClaimableRoleAssignmentsArg<ExtractApiVersion<TVersion>>, init?: ClientRequestInit<IHttpClient, ListAccountClaimableRoleAssignmentsResponse<ExtractApiVersion<TVersion>>>) => ListAccountClaimableRoleAssignmentsResult<ExtractApiVersion<TVersion>, TMethod>;
|
|
230
|
+
export { type ListAccountClaimableRoleAssignmentsArg, type ListAccountClaimableRoleAssignmentsResponse, type ListAccountClaimableRoleAssignmentsResult, type ListAccountClaimableRoleAssignmentsVersion, listAccountClaimableRoleAssignments, };
|