@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,150 @@
|
|
|
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 `addClaimableRoleAccessRoles` accepts for
|
|
9
|
+
* `POST /claimable-roles/{claimableRoleIdentifier}/access-roles`.
|
|
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 AddClaimableRoleAccessRolesArg} and {@link AddClaimableRoleAccessRolesResponse}.
|
|
14
|
+
*/
|
|
15
|
+
type AddClaimableRoleAccessRolesVersion = FilterAllowedApiVersions<AvailableVersions>;
|
|
16
|
+
/**
|
|
17
|
+
* Version contract for `addClaimableRoleAccessRoles`, implementing
|
|
18
|
+
* `POST /claimable-roles/{claimableRoleIdentifier}/access-roles`.
|
|
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
|
+
accessRoleMappings: z.ZodArray<z.ZodObject<{
|
|
29
|
+
accessRoleIdentifier: z.ZodOptional<z.ZodString>;
|
|
30
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
claimableRoleIdentifier: z.ZodString;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
/** Response published by version 1.0 of this operation. */
|
|
35
|
+
readonly response: z.ZodIntersection<z.ZodObject<{
|
|
36
|
+
id: z.ZodOptional<z.ZodString>;
|
|
37
|
+
name: z.ZodOptional<z.ZodString>;
|
|
38
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
39
|
+
description: z.ZodOptional<z.ZodString>;
|
|
40
|
+
accessRoleMappings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
41
|
+
accessRole: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
id: z.ZodOptional<z.ZodString>;
|
|
43
|
+
name: z.ZodOptional<z.ZodString>;
|
|
44
|
+
description: z.ZodOptional<z.ZodString>;
|
|
45
|
+
scopeType: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
46
|
+
id: z.ZodOptional<z.ZodString>;
|
|
47
|
+
name: z.ZodOptional<z.ZodString>;
|
|
48
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
}, z.core.$strip>>>;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
}, z.core.$strip>>>>;
|
|
53
|
+
system: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
54
|
+
id: z.ZodOptional<z.ZodString>;
|
|
55
|
+
name: z.ZodOptional<z.ZodString>;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
57
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
createdBy: z.ZodOptional<z.ZodObject<{
|
|
59
|
+
azureUniqueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
62
|
+
upn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
accountType: z.ZodOptional<z.ZodString>;
|
|
64
|
+
accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
createdDate: z.ZodOptional<z.ZodString>;
|
|
67
|
+
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
68
|
+
azureUniqueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
71
|
+
upn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
accountType: z.ZodOptional<z.ZodString>;
|
|
73
|
+
accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
|
+
}, z.core.$strip>>>;
|
|
75
|
+
updatedDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Response body `addClaimableRoleAccessRoles` resolves for the selected API version.
|
|
81
|
+
*
|
|
82
|
+
* Version 1.0 resolves to `ApiClaimableRoleV1`, inferred from `ApiClaimableRoleSchemaV1` — the
|
|
83
|
+
* very schema that validates the `201 Created` body at runtime.
|
|
84
|
+
*/
|
|
85
|
+
type AddClaimableRoleAccessRolesResponse<TVersion extends AddClaimableRoleAccessRolesVersion> = VersionedResponse<typeof VersionContract, ExtractApiVersion<TVersion>>;
|
|
86
|
+
/**
|
|
87
|
+
* Arguments `addClaimableRoleAccessRoles` accepts, resolved from the selected API version.
|
|
88
|
+
*
|
|
89
|
+
* Version 1.0 accepts the path identifier `claimableRoleIdentifier`, and the request body
|
|
90
|
+
* fields of `AddClaimableRoleAccessRoleRequestV1`.
|
|
91
|
+
*
|
|
92
|
+
* Path identifiers and body fields share one flat object; the endpoint separates them when it
|
|
93
|
+
* builds the request. The value is parsed by the version's Zod argument schema before anything
|
|
94
|
+
* is sent.
|
|
95
|
+
*/
|
|
96
|
+
type AddClaimableRoleAccessRolesArg<TVersion extends AddClaimableRoleAccessRolesVersion> = VersionedArgs<typeof VersionContract, ExtractApiVersion<TVersion>>;
|
|
97
|
+
/**
|
|
98
|
+
* What `addClaimableRoleAccessRoles` hands back once the request runs, for the selected API
|
|
99
|
+
* version and client method.
|
|
100
|
+
*
|
|
101
|
+
* `'json'` gives `Promise<AddClaimableRoleAccessRolesResponse<TVersion>>` and `'json$'` gives
|
|
102
|
+
* `StreamResponse<AddClaimableRoleAccessRolesResponse<TVersion>>`, so promise and observable
|
|
103
|
+
* callers share one response type.
|
|
104
|
+
*/
|
|
105
|
+
type AddClaimableRoleAccessRolesResult<TVersion extends AddClaimableRoleAccessRolesVersion, TMethod extends ClientMethodType = 'json'> = ClientMethod<AddClaimableRoleAccessRolesResponse<TVersion>>[TMethod];
|
|
106
|
+
/**
|
|
107
|
+
* Adds one or more access role mappings to a claimable role, so activating that claimable role
|
|
108
|
+
* grants the mapped access roles.
|
|
109
|
+
*
|
|
110
|
+
* Roles V2 operation: `POST /claimable-roles/{claimableRoleIdentifier}/access-roles` — "Add one
|
|
111
|
+
* or more access role mappings to a claimable role."
|
|
112
|
+
*
|
|
113
|
+
* Curried in two stages: `addClaimableRoleAccessRoles(version, client, method)` binds the API
|
|
114
|
+
* version, the `IHttpClient` that reaches the Roles service, and the execution method —
|
|
115
|
+
* `'json'` for a promise, `'json$'` for an observable stream. The returned function takes
|
|
116
|
+
* {@link AddClaimableRoleAccessRolesArg} plus an optional `ClientRequestInit`, and gives back
|
|
117
|
+
* {@link AddClaimableRoleAccessRolesResult}.
|
|
118
|
+
*
|
|
119
|
+
* The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
|
|
120
|
+
* `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
|
|
121
|
+
* `ApiClaimableRoleSchemaV1`, and sends `api-version=1.0` on the request.
|
|
122
|
+
*
|
|
123
|
+
* Roles V2 answers `201 Created`; the body is typed `ApiClaimableRoleV1`. The contract declares
|
|
124
|
+
* `403 Forbidden` for callers the Roles service does not authorise for this operation.
|
|
125
|
+
*
|
|
126
|
+
* @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
|
|
127
|
+
* @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
|
|
128
|
+
* @param version - API version selecting the request path, the argument schema, and the
|
|
129
|
+
* response schema.
|
|
130
|
+
* @param client - HTTP client that executes the request against the Roles service.
|
|
131
|
+
* @param method - Execution method, defaulting to `'json'`.
|
|
132
|
+
* @returns A request function taking {@link AddClaimableRoleAccessRolesArg} and an optional
|
|
133
|
+
* `ClientRequestInit`, returning {@link AddClaimableRoleAccessRolesResult}.
|
|
134
|
+
* @throws {Error} When `version` names an API version this operation does not publish. The
|
|
135
|
+
* check runs while binding, before the HTTP client is used.
|
|
136
|
+
* @throws {z.ZodError} From the returned function, when the arguments fail this version's
|
|
137
|
+
* argument schema or the response body fails its response schema.
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* ```ts
|
|
141
|
+
* import { addClaimableRoleAccessRoles } from '@equinor/fusion-services/roles';
|
|
142
|
+
*
|
|
143
|
+
* const claimableRole = await addClaimableRoleAccessRoles('v1', httpClient)({
|
|
144
|
+
* claimableRoleIdentifier: 'on-call-approver',
|
|
145
|
+
* accessRoleMappings: [{ accessRoleIdentifier: 'writer' }],
|
|
146
|
+
* });
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
declare const addClaimableRoleAccessRoles: <TVersion extends AddClaimableRoleAccessRolesVersion, TMethod extends ClientMethodType = 'json'>(version: TVersion, client: IHttpClient, method?: TMethod) => (input: AddClaimableRoleAccessRolesArg<ExtractApiVersion<TVersion>>, init?: ClientRequestInit<IHttpClient, AddClaimableRoleAccessRolesResponse<ExtractApiVersion<TVersion>>>) => AddClaimableRoleAccessRolesResult<ExtractApiVersion<TVersion>, TMethod>;
|
|
150
|
+
export { type AddClaimableRoleAccessRolesArg, type AddClaimableRoleAccessRolesResponse, type AddClaimableRoleAccessRolesResult, type AddClaimableRoleAccessRolesVersion, addClaimableRoleAccessRoles, };
|
package/dist/types/roles/endpoints/claimable-role-assignment-activations-by-assignment.get.d.ts
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
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 `listActivationsForClaimableRoleAssignment` accepts for
|
|
9
|
+
* `GET /claimable-roles/{claimableRoleIdentifier}/assignments/{claimableRoleAssignmentId}/activations`.
|
|
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 ListActivationsForClaimableRoleAssignmentArg} and
|
|
14
|
+
* {@link ListActivationsForClaimableRoleAssignmentResponse}.
|
|
15
|
+
*/
|
|
16
|
+
type ListActivationsForClaimableRoleAssignmentVersion = FilterAllowedApiVersions<AvailableVersions>;
|
|
17
|
+
/**
|
|
18
|
+
* Version contract for `listActivationsForClaimableRoleAssignment`, implementing
|
|
19
|
+
* `GET /claimable-roles/{claimableRoleIdentifier}/assignments/{claimableRoleAssignmentId}/activations`.
|
|
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
|
+
claimableRoleIdentifier: z.ZodString;
|
|
30
|
+
claimableRoleAssignmentId: z.ZodString;
|
|
31
|
+
top: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
/** Response published by version 1.0 of this operation. */
|
|
35
|
+
readonly response: z.ZodObject<{
|
|
36
|
+
totalCount: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
37
|
+
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
38
|
+
nextPage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
prevPage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
value: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
41
|
+
id?: string | undefined;
|
|
42
|
+
activationDate?: string | undefined;
|
|
43
|
+
activeToDate?: string | undefined;
|
|
44
|
+
reason?: string | undefined;
|
|
45
|
+
activatedBy?: {
|
|
46
|
+
azureUniqueId?: string | null | undefined;
|
|
47
|
+
mail?: string | null | undefined;
|
|
48
|
+
displayName?: string | undefined;
|
|
49
|
+
upn?: string | null | undefined;
|
|
50
|
+
accountType?: string | undefined;
|
|
51
|
+
accountClassification?: string | null | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
54
|
+
id?: string | undefined;
|
|
55
|
+
activationDate?: string | undefined;
|
|
56
|
+
activeToDate?: string | undefined;
|
|
57
|
+
reason?: string | undefined;
|
|
58
|
+
activatedBy?: {
|
|
59
|
+
azureUniqueId?: string | null | undefined;
|
|
60
|
+
mail?: string | null | undefined;
|
|
61
|
+
displayName?: string | undefined;
|
|
62
|
+
upn?: string | null | undefined;
|
|
63
|
+
accountType?: string | undefined;
|
|
64
|
+
accountClassification?: string | null | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
}, unknown>>>>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Response body `listActivationsForClaimableRoleAssignment` resolves for the selected API
|
|
72
|
+
* version.
|
|
73
|
+
*
|
|
74
|
+
* Version 1.0 resolves to `ApiPagedCollectionV1<ApiClaimableRoleAssignmentActivationV1>`,
|
|
75
|
+
* inferred from `apiPagedCollectionSchemaV1(ApiClaimableRoleAssignmentActivationSchemaV1)` —
|
|
76
|
+
* the very schema that validates the `200 OK` body at runtime.
|
|
77
|
+
*/
|
|
78
|
+
type ListActivationsForClaimableRoleAssignmentResponse<TVersion extends ListActivationsForClaimableRoleAssignmentVersion> = VersionedResponse<typeof VersionContract, ExtractApiVersion<TVersion>>;
|
|
79
|
+
/**
|
|
80
|
+
* Arguments `listActivationsForClaimableRoleAssignment` accepts, resolved from the selected API
|
|
81
|
+
* version.
|
|
82
|
+
*
|
|
83
|
+
* Version 1.0 accepts the path identifiers `claimableRoleIdentifier`,
|
|
84
|
+
* `claimableRoleAssignmentId`, and the optional query options `top`, `skip`.
|
|
85
|
+
*
|
|
86
|
+
* The value is parsed by the version's Zod argument schema before the request path is built, so
|
|
87
|
+
* defaults and range checks apply up front.
|
|
88
|
+
*/
|
|
89
|
+
type ListActivationsForClaimableRoleAssignmentArg<TVersion extends ListActivationsForClaimableRoleAssignmentVersion> = VersionedArgs<typeof VersionContract, ExtractApiVersion<TVersion>>;
|
|
90
|
+
/**
|
|
91
|
+
* What `listActivationsForClaimableRoleAssignment` hands back once the request runs, for the
|
|
92
|
+
* selected API version and client method.
|
|
93
|
+
*
|
|
94
|
+
* `'json'` gives `Promise<ListActivationsForClaimableRoleAssignmentResponse<TVersion>>` and
|
|
95
|
+
* `'json$'` gives
|
|
96
|
+
* `StreamResponse<ListActivationsForClaimableRoleAssignmentResponse<TVersion>>`, so promise and
|
|
97
|
+
* observable callers share one response type.
|
|
98
|
+
*/
|
|
99
|
+
type ListActivationsForClaimableRoleAssignmentResult<TVersion extends ListActivationsForClaimableRoleAssignmentVersion, TMethod extends ClientMethodType = 'json'> = ClientMethod<ListActivationsForClaimableRoleAssignmentResponse<TVersion>>[TMethod];
|
|
100
|
+
/**
|
|
101
|
+
* Lists every activation (every claim) recorded against one claimable role assignment.
|
|
102
|
+
*
|
|
103
|
+
* Roles V2 operation:
|
|
104
|
+
* `GET /claimable-roles/{claimableRoleIdentifier}/assignments/{claimableRoleAssignmentId}/activations`
|
|
105
|
+
* — "Get all activations for a claimable role assignment."
|
|
106
|
+
*
|
|
107
|
+
* Curried in two stages: `listActivationsForClaimableRoleAssignment(version, client, method)`
|
|
108
|
+
* binds the API version, the `IHttpClient` that reaches the Roles service, and the execution
|
|
109
|
+
* method — `'json'` for a promise, `'json$'` for an observable stream. The returned function
|
|
110
|
+
* takes {@link ListActivationsForClaimableRoleAssignmentArg} plus an optional
|
|
111
|
+
* `ClientRequestInit`, and gives back {@link ListActivationsForClaimableRoleAssignmentResult}.
|
|
112
|
+
*
|
|
113
|
+
* The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
|
|
114
|
+
* `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
|
|
115
|
+
* `apiPagedCollectionSchemaV1(ApiClaimableRoleAssignmentActivationSchemaV1)`, and sends
|
|
116
|
+
* `api-version=1.0` on the request.
|
|
117
|
+
*
|
|
118
|
+
* Query options: `top` and `skip` page the collection as `$top` and `$skip` (`top` accepts
|
|
119
|
+
* 0–100).
|
|
120
|
+
*
|
|
121
|
+
* Roles V2 answers `200 OK`; the body is typed
|
|
122
|
+
* `ApiPagedCollectionV1<ApiClaimableRoleAssignmentActivationV1>`.
|
|
123
|
+
*
|
|
124
|
+
* @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
|
|
125
|
+
* @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
|
|
126
|
+
* @param version - API version selecting the request path, the argument schema, and the
|
|
127
|
+
* response schema.
|
|
128
|
+
* @param client - HTTP client that executes the request against the Roles service.
|
|
129
|
+
* @param method - Execution method, defaulting to `'json'`.
|
|
130
|
+
* @returns A request function taking {@link ListActivationsForClaimableRoleAssignmentArg} and
|
|
131
|
+
* an optional `ClientRequestInit`, returning
|
|
132
|
+
* {@link ListActivationsForClaimableRoleAssignmentResult}.
|
|
133
|
+
* @throws {Error} When `version` names an API version this operation does not publish. The
|
|
134
|
+
* check runs while binding, before the HTTP client is used.
|
|
135
|
+
* @throws {z.ZodError} From the returned function, when the arguments fail this version's
|
|
136
|
+
* argument schema or the response body fails its response schema.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* ```ts
|
|
140
|
+
* import { listActivationsForClaimableRoleAssignment } from '@equinor/fusion-services/roles';
|
|
141
|
+
*
|
|
142
|
+
* const page = await listActivationsForClaimableRoleAssignment('v1', httpClient)({
|
|
143
|
+
* claimableRoleIdentifier: 'on-call-approver',
|
|
144
|
+
* claimableRoleAssignmentId: '6b1d4f2a-8c3e-4d59-9f70-1a2b3c4d5e6f',
|
|
145
|
+
* top: 25,
|
|
146
|
+
* });
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
declare const listActivationsForClaimableRoleAssignment: <TVersion extends ListActivationsForClaimableRoleAssignmentVersion, TMethod extends ClientMethodType = 'json'>(version: TVersion, client: IHttpClient, method?: TMethod) => (input: ListActivationsForClaimableRoleAssignmentArg<ExtractApiVersion<TVersion>>, init?: ClientRequestInit<IHttpClient, ListActivationsForClaimableRoleAssignmentResponse<ExtractApiVersion<TVersion>>>) => ListActivationsForClaimableRoleAssignmentResult<ExtractApiVersion<TVersion>, TMethod>;
|
|
150
|
+
export { type ListActivationsForClaimableRoleAssignmentArg, type ListActivationsForClaimableRoleAssignmentResponse, type ListActivationsForClaimableRoleAssignmentResult, type ListActivationsForClaimableRoleAssignmentVersion, listActivationsForClaimableRoleAssignment, };
|
|
@@ -0,0 +1,187 @@
|
|
|
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 `listClaimableRoleAssignmentActivations` accepts for
|
|
9
|
+
* `GET /claimable-role-assignment-activations`.
|
|
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 ListClaimableRoleAssignmentActivationsArg} and
|
|
14
|
+
* {@link ListClaimableRoleAssignmentActivationsResponse}.
|
|
15
|
+
*/
|
|
16
|
+
type ListClaimableRoleAssignmentActivationsVersion = FilterAllowedApiVersions<AvailableVersions>;
|
|
17
|
+
/**
|
|
18
|
+
* Version contract for `listClaimableRoleAssignmentActivations`, implementing
|
|
19
|
+
* `GET /claimable-role-assignment-activations`.
|
|
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<{}, z.core.$strip>;
|
|
29
|
+
/** Response published by version 1.0 of this operation. */
|
|
30
|
+
readonly response: z.ZodObject<{
|
|
31
|
+
totalCount: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
32
|
+
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
33
|
+
nextPage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
prevPage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
value: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
36
|
+
id?: string | undefined;
|
|
37
|
+
claimableRoleAssignment?: {
|
|
38
|
+
id?: string | undefined;
|
|
39
|
+
claimableRole?: {
|
|
40
|
+
id?: string | undefined;
|
|
41
|
+
name?: string | undefined;
|
|
42
|
+
displayName?: string | undefined;
|
|
43
|
+
description?: string | undefined;
|
|
44
|
+
accessRoleMappings?: {
|
|
45
|
+
accessRole?: {
|
|
46
|
+
id?: string | undefined;
|
|
47
|
+
name?: string | undefined;
|
|
48
|
+
description?: string | undefined;
|
|
49
|
+
scopeType?: {
|
|
50
|
+
id?: string | undefined;
|
|
51
|
+
name?: string | undefined;
|
|
52
|
+
description?: string | null | undefined;
|
|
53
|
+
} | null | undefined;
|
|
54
|
+
} | undefined;
|
|
55
|
+
reason?: string | null | undefined;
|
|
56
|
+
}[] | null | undefined;
|
|
57
|
+
system?: {
|
|
58
|
+
id?: string | undefined;
|
|
59
|
+
name?: string | undefined;
|
|
60
|
+
} | null | undefined;
|
|
61
|
+
} | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
activationDate?: string | undefined;
|
|
64
|
+
activeToDate?: string | undefined;
|
|
65
|
+
reason?: string | undefined;
|
|
66
|
+
activatedBy?: {
|
|
67
|
+
azureUniqueId?: string | null | undefined;
|
|
68
|
+
mail?: string | null | undefined;
|
|
69
|
+
displayName?: string | undefined;
|
|
70
|
+
upn?: string | null | undefined;
|
|
71
|
+
accountType?: string | undefined;
|
|
72
|
+
accountClassification?: string | null | undefined;
|
|
73
|
+
} | undefined;
|
|
74
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
75
|
+
id?: string | undefined;
|
|
76
|
+
claimableRoleAssignment?: {
|
|
77
|
+
id?: string | undefined;
|
|
78
|
+
claimableRole?: {
|
|
79
|
+
id?: string | undefined;
|
|
80
|
+
name?: string | undefined;
|
|
81
|
+
displayName?: string | undefined;
|
|
82
|
+
description?: string | undefined;
|
|
83
|
+
accessRoleMappings?: {
|
|
84
|
+
accessRole?: {
|
|
85
|
+
id?: string | undefined;
|
|
86
|
+
name?: string | undefined;
|
|
87
|
+
description?: string | undefined;
|
|
88
|
+
scopeType?: {
|
|
89
|
+
id?: string | undefined;
|
|
90
|
+
name?: string | undefined;
|
|
91
|
+
description?: string | null | undefined;
|
|
92
|
+
} | null | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
reason?: string | null | undefined;
|
|
95
|
+
}[] | null | undefined;
|
|
96
|
+
system?: {
|
|
97
|
+
id?: string | undefined;
|
|
98
|
+
name?: string | undefined;
|
|
99
|
+
} | null | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
} | undefined;
|
|
102
|
+
activationDate?: string | undefined;
|
|
103
|
+
activeToDate?: string | undefined;
|
|
104
|
+
reason?: string | undefined;
|
|
105
|
+
activatedBy?: {
|
|
106
|
+
azureUniqueId?: string | null | undefined;
|
|
107
|
+
mail?: string | null | undefined;
|
|
108
|
+
displayName?: string | undefined;
|
|
109
|
+
upn?: string | null | undefined;
|
|
110
|
+
accountType?: string | undefined;
|
|
111
|
+
accountClassification?: string | null | undefined;
|
|
112
|
+
} | undefined;
|
|
113
|
+
}, unknown>>>>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Response body `listClaimableRoleAssignmentActivations` resolves for the selected API version.
|
|
119
|
+
*
|
|
120
|
+
* Version 1.0 resolves to
|
|
121
|
+
* `ApiPagedCollectionV1<ApiExtendedClaimableRoleAssignmentActivationV1>`, inferred from
|
|
122
|
+
* `apiPagedCollectionSchemaV1(ApiExtendedClaimableRoleAssignmentActivationSchemaV1)` — the very
|
|
123
|
+
* schema that validates the `200 OK` body at runtime.
|
|
124
|
+
*/
|
|
125
|
+
type ListClaimableRoleAssignmentActivationsResponse<TVersion extends ListClaimableRoleAssignmentActivationsVersion> = VersionedResponse<typeof VersionContract, ExtractApiVersion<TVersion>>;
|
|
126
|
+
/**
|
|
127
|
+
* Arguments `listClaimableRoleAssignmentActivations` accepts, resolved from the selected API
|
|
128
|
+
* version.
|
|
129
|
+
*
|
|
130
|
+
* Version 1.0 of this operation takes no arguments, so the shape is an empty object.
|
|
131
|
+
*
|
|
132
|
+
* The value is parsed by the version's Zod argument schema before the request path is built, so
|
|
133
|
+
* defaults and range checks apply up front.
|
|
134
|
+
*/
|
|
135
|
+
type ListClaimableRoleAssignmentActivationsArg<TVersion extends ListClaimableRoleAssignmentActivationsVersion> = VersionedArgs<typeof VersionContract, ExtractApiVersion<TVersion>>;
|
|
136
|
+
/**
|
|
137
|
+
* What `listClaimableRoleAssignmentActivations` hands back once the request runs, for the
|
|
138
|
+
* selected API version and client method.
|
|
139
|
+
*
|
|
140
|
+
* `'json'` gives `Promise<ListClaimableRoleAssignmentActivationsResponse<TVersion>>` and
|
|
141
|
+
* `'json$'` gives `StreamResponse<ListClaimableRoleAssignmentActivationsResponse<TVersion>>`,
|
|
142
|
+
* so promise and observable callers share one response type.
|
|
143
|
+
*/
|
|
144
|
+
type ListClaimableRoleAssignmentActivationsResult<TVersion extends ListClaimableRoleAssignmentActivationsVersion, TMethod extends ClientMethodType = 'json'> = ClientMethod<ListClaimableRoleAssignmentActivationsResponse<TVersion>>[TMethod];
|
|
145
|
+
/**
|
|
146
|
+
* Lists claimable role assignment activations across the whole Roles service, not scoped to one
|
|
147
|
+
* role or account.
|
|
148
|
+
*
|
|
149
|
+
* Roles V2 operation: `GET /claimable-role-assignment-activations` — "Get all claimable role
|
|
150
|
+
* assignment activations across the system."
|
|
151
|
+
*
|
|
152
|
+
* Curried in two stages: `listClaimableRoleAssignmentActivations(version, client, method)`
|
|
153
|
+
* binds the API version, the `IHttpClient` that reaches the Roles service, and the execution
|
|
154
|
+
* method — `'json'` for a promise, `'json$'` for an observable stream. The returned function
|
|
155
|
+
* takes {@link ListClaimableRoleAssignmentActivationsArg} plus an optional `ClientRequestInit`,
|
|
156
|
+
* and gives back {@link ListClaimableRoleAssignmentActivationsResult}.
|
|
157
|
+
*
|
|
158
|
+
* The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
|
|
159
|
+
* `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
|
|
160
|
+
* `apiPagedCollectionSchemaV1(ApiExtendedClaimableRoleAssignmentActivationSchemaV1)`, and sends
|
|
161
|
+
* `api-version=1.0` on the request.
|
|
162
|
+
*
|
|
163
|
+
* Roles V2 answers `200 OK`; the body is typed
|
|
164
|
+
* `ApiPagedCollectionV1<ApiExtendedClaimableRoleAssignmentActivationV1>`.
|
|
165
|
+
*
|
|
166
|
+
* @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
|
|
167
|
+
* @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
|
|
168
|
+
* @param version - API version selecting the request path, the argument schema, and the
|
|
169
|
+
* response schema.
|
|
170
|
+
* @param client - HTTP client that executes the request against the Roles service.
|
|
171
|
+
* @param method - Execution method, defaulting to `'json'`.
|
|
172
|
+
* @returns A request function taking {@link ListClaimableRoleAssignmentActivationsArg} and an
|
|
173
|
+
* optional `ClientRequestInit`, returning {@link ListClaimableRoleAssignmentActivationsResult}.
|
|
174
|
+
* @throws {Error} When `version` names an API version this operation does not publish. The
|
|
175
|
+
* check runs while binding, before the HTTP client is used.
|
|
176
|
+
* @throws {z.ZodError} From the returned function, when the arguments fail this version's
|
|
177
|
+
* argument schema or the response body fails its response schema.
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* ```ts
|
|
181
|
+
* import { listClaimableRoleAssignmentActivations } from '@equinor/fusion-services/roles';
|
|
182
|
+
*
|
|
183
|
+
* const page = await listClaimableRoleAssignmentActivations('v1', httpClient)({});
|
|
184
|
+
* ```
|
|
185
|
+
*/
|
|
186
|
+
declare const listClaimableRoleAssignmentActivations: <TVersion extends ListClaimableRoleAssignmentActivationsVersion, TMethod extends ClientMethodType = 'json'>(version: TVersion, client: IHttpClient, method?: TMethod) => (input?: ListClaimableRoleAssignmentActivationsArg<ExtractApiVersion<TVersion>>, init?: ClientRequestInit<IHttpClient, ListClaimableRoleAssignmentActivationsResponse<ExtractApiVersion<TVersion>>>) => ListClaimableRoleAssignmentActivationsResult<ExtractApiVersion<TVersion>, TMethod>;
|
|
187
|
+
export { type ListClaimableRoleAssignmentActivationsArg, type ListClaimableRoleAssignmentActivationsResponse, type ListClaimableRoleAssignmentActivationsResult, type ListClaimableRoleAssignmentActivationsVersion, listClaimableRoleAssignmentActivations, };
|
|
@@ -0,0 +1,106 @@
|
|
|
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 `deleteClaimableRoleAssignment` accepts for
|
|
9
|
+
* `DELETE /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 DeleteClaimableRoleAssignmentArg} and {@link DeleteClaimableRoleAssignmentResponse}.
|
|
14
|
+
*/
|
|
15
|
+
type DeleteClaimableRoleAssignmentVersion = FilterAllowedApiVersions<AvailableVersions>;
|
|
16
|
+
/**
|
|
17
|
+
* Version contract for `deleteClaimableRoleAssignment`, implementing
|
|
18
|
+
* `DELETE /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. The operation answers `204 No Content`. */
|
|
32
|
+
readonly response: z.ZodVoid;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Response body `deleteClaimableRoleAssignment` resolves for the selected API version.
|
|
37
|
+
*
|
|
38
|
+
* Version 1.0 answers `204 No Content` without a body, so the type resolves to `void`.
|
|
39
|
+
*/
|
|
40
|
+
type DeleteClaimableRoleAssignmentResponse<TVersion extends DeleteClaimableRoleAssignmentVersion> = VersionedResponse<typeof VersionContract, ExtractApiVersion<TVersion>>;
|
|
41
|
+
/**
|
|
42
|
+
* Arguments `deleteClaimableRoleAssignment` accepts, resolved from the selected API version.
|
|
43
|
+
*
|
|
44
|
+
* Version 1.0 accepts the path identifiers `claimableRoleIdentifier`,
|
|
45
|
+
* `claimableRoleAssignmentId`.
|
|
46
|
+
*
|
|
47
|
+
* The value is parsed by the version's Zod argument schema before the request path is built, so
|
|
48
|
+
* defaults and range checks apply up front.
|
|
49
|
+
*/
|
|
50
|
+
type DeleteClaimableRoleAssignmentArg<TVersion extends DeleteClaimableRoleAssignmentVersion> = VersionedArgs<typeof VersionContract, ExtractApiVersion<TVersion>>;
|
|
51
|
+
/**
|
|
52
|
+
* What `deleteClaimableRoleAssignment` hands back once the request runs, for the selected API
|
|
53
|
+
* version and client method.
|
|
54
|
+
*
|
|
55
|
+
* `'json'` gives `Promise<DeleteClaimableRoleAssignmentResponse<TVersion>>` and `'json$'` gives
|
|
56
|
+
* `StreamResponse<DeleteClaimableRoleAssignmentResponse<TVersion>>`, so promise and observable
|
|
57
|
+
* callers share one response type.
|
|
58
|
+
*/
|
|
59
|
+
type DeleteClaimableRoleAssignmentResult<TVersion extends DeleteClaimableRoleAssignmentVersion, TMethod extends ClientMethodType = 'json'> = ClientMethod<DeleteClaimableRoleAssignmentResponse<TVersion>>[TMethod];
|
|
60
|
+
/**
|
|
61
|
+
* Deletes one assignment of a claimable role, addressed by its assignment ID.
|
|
62
|
+
*
|
|
63
|
+
* Roles V2 operation:
|
|
64
|
+
* `DELETE /claimable-roles/{claimableRoleIdentifier}/assignments/{claimableRoleAssignmentId}` —
|
|
65
|
+
* "Delete a claimable role assignment by ID."
|
|
66
|
+
*
|
|
67
|
+
* Curried in two stages: `deleteClaimableRoleAssignment(version, client, method)` binds the API
|
|
68
|
+
* version, the `IHttpClient` that reaches the Roles service, and the execution method —
|
|
69
|
+
* `'json'` for a promise, `'json$'` for an observable stream. The returned function takes
|
|
70
|
+
* {@link DeleteClaimableRoleAssignmentArg} plus an optional `ClientRequestInit`, and gives back
|
|
71
|
+
* {@link DeleteClaimableRoleAssignmentResult}.
|
|
72
|
+
*
|
|
73
|
+
* The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
|
|
74
|
+
* `ApiVersion.v1` — selects the version-1.0 argument schema, expects the empty success body,
|
|
75
|
+
* and sends `api-version=1.0` on the request.
|
|
76
|
+
*
|
|
77
|
+
* Destructive: it removes the claimable role assignment permanently, and the deletion cannot be
|
|
78
|
+
* undone through this API. Roles V2 answers `204 No Content` with no body, so the resolved
|
|
79
|
+
* value is `void`. The contract declares `403 Forbidden` for callers the Roles service does not
|
|
80
|
+
* authorise for this operation.
|
|
81
|
+
*
|
|
82
|
+
* @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
|
|
83
|
+
* @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
|
|
84
|
+
* @param version - API version selecting the request path, the argument schema, and the
|
|
85
|
+
* response schema.
|
|
86
|
+
* @param client - HTTP client that executes the request against the Roles service.
|
|
87
|
+
* @param method - Execution method, defaulting to `'json'`.
|
|
88
|
+
* @returns A request function taking {@link DeleteClaimableRoleAssignmentArg} and an optional
|
|
89
|
+
* `ClientRequestInit`, returning {@link DeleteClaimableRoleAssignmentResult}.
|
|
90
|
+
* @throws {Error} When `version` names an API version this operation does not publish. The
|
|
91
|
+
* check runs while binding, before the HTTP client is used.
|
|
92
|
+
* @throws {z.ZodError} From the returned function, when the arguments fail this version's
|
|
93
|
+
* argument schema or the response body fails its response schema.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```ts
|
|
97
|
+
* import { deleteClaimableRoleAssignment } from '@equinor/fusion-services/roles';
|
|
98
|
+
*
|
|
99
|
+
* await deleteClaimableRoleAssignment('v1', httpClient)({
|
|
100
|
+
* claimableRoleIdentifier: 'on-call-approver',
|
|
101
|
+
* claimableRoleAssignmentId: '6b1d4f2a-8c3e-4d59-9f70-1a2b3c4d5e6f',
|
|
102
|
+
* });
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
declare const deleteClaimableRoleAssignment: <TVersion extends DeleteClaimableRoleAssignmentVersion, TMethod extends ClientMethodType = 'json'>(version: TVersion, client: IHttpClient, method?: TMethod) => (input: DeleteClaimableRoleAssignmentArg<ExtractApiVersion<TVersion>>, init?: ClientRequestInit<IHttpClient, DeleteClaimableRoleAssignmentResponse<ExtractApiVersion<TVersion>>>) => DeleteClaimableRoleAssignmentResult<ExtractApiVersion<TVersion>, TMethod>;
|
|
106
|
+
export { type DeleteClaimableRoleAssignmentArg, type DeleteClaimableRoleAssignmentResponse, type DeleteClaimableRoleAssignmentResult, type DeleteClaimableRoleAssignmentVersion, deleteClaimableRoleAssignment, };
|