@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,118 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { extractVersion, parseVersionedArgs, versionedResponseSelector } from '../../utils';
|
|
3
|
+
import { ApiVersion } from '../static';
|
|
4
|
+
import { ApiRoleAssignmentSchemaV1 } from '../v1/schemas/api-role-assignment-schema-v1';
|
|
5
|
+
import { AssignRoleRequestSchemaV1 } from '../v1/schemas/assign-role-request-schema-v1';
|
|
6
|
+
/**
|
|
7
|
+
* Version contract for `assignRole`, implementing `POST /roles/{roleIdentifier}/assignments`.
|
|
8
|
+
*
|
|
9
|
+
* Each concrete {@link ApiVersion} maps to the argument and response schemas that
|
|
10
|
+
* version publishes, so the version a caller passes is the single discriminator
|
|
11
|
+
* for the request shape, the request path, and the response shape.
|
|
12
|
+
*/
|
|
13
|
+
const VersionContract = {
|
|
14
|
+
[ApiVersion.v1]: {
|
|
15
|
+
/** Arguments accepted by version 1.0 of this operation. */
|
|
16
|
+
args: z
|
|
17
|
+
.object({
|
|
18
|
+
/** Role UUID or unique role name. */
|
|
19
|
+
roleIdentifier: z.string().describe('Role UUID or unique role name.'),
|
|
20
|
+
...AssignRoleRequestSchemaV1.shape,
|
|
21
|
+
})
|
|
22
|
+
.describe('Arguments for POST /roles/{roleIdentifier}/assignments (assignRole v1.0).'),
|
|
23
|
+
/** Response published by version 1.0 of this operation. */
|
|
24
|
+
response: ApiRoleAssignmentSchemaV1,
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
/** Builds the request init for the resolved version, including its response-schema selector. */
|
|
28
|
+
const generateRequestParameters = (version, args, init) => {
|
|
29
|
+
// Select the response schema that matches the requested API version.
|
|
30
|
+
switch (version) {
|
|
31
|
+
case ApiVersion.v1: {
|
|
32
|
+
// Path identifiers address the resource, so only the remaining fields form the request body.
|
|
33
|
+
const { roleIdentifier: _roleIdentifier, ...body } = args;
|
|
34
|
+
const baseInit = {
|
|
35
|
+
method: 'POST',
|
|
36
|
+
selector: versionedResponseSelector(VersionContract, version),
|
|
37
|
+
body,
|
|
38
|
+
};
|
|
39
|
+
// Apply the caller-supplied `init` first, then the generated defaults, so the
|
|
40
|
+
// generated `method`, `body`, and version-specific response `selector` always win
|
|
41
|
+
// and cannot be overridden or bypassed.
|
|
42
|
+
return Object.assign({}, init, baseInit);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
throw Error(`Unknown API version: ${version}`);
|
|
46
|
+
};
|
|
47
|
+
/** Builds the request path for the resolved version, including its `api-version` parameter. */
|
|
48
|
+
const generateApiPath = (version, args) => {
|
|
49
|
+
// Build the endpoint path according to the requested API version.
|
|
50
|
+
switch (version) {
|
|
51
|
+
case ApiVersion.v1: {
|
|
52
|
+
const params = new URLSearchParams();
|
|
53
|
+
params.append('api-version', version);
|
|
54
|
+
return `/roles/${encodeURIComponent(args.roleIdentifier)}/assignments?${String(params)}`;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
throw Error(`Unknown API version: ${version}`);
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Assigns a role to a user or application, optionally scoped, tagged, and time-boxed by the
|
|
61
|
+
* request body.
|
|
62
|
+
*
|
|
63
|
+
* Roles V2 operation: `POST /roles/{roleIdentifier}/assignments` — "Assign a role assignment"
|
|
64
|
+
*
|
|
65
|
+
* Curried in two stages: `assignRole(version, client, method)` binds the API version, the
|
|
66
|
+
* `IHttpClient` that reaches the Roles service, and the execution method — `'json'` for a
|
|
67
|
+
* promise, `'json$'` for an observable stream. The returned function takes
|
|
68
|
+
* {@link AssignRoleArg} plus an optional `ClientRequestInit`, and gives back
|
|
69
|
+
* {@link AssignRoleResult}.
|
|
70
|
+
*
|
|
71
|
+
* The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
|
|
72
|
+
* `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
|
|
73
|
+
* `ApiRoleAssignmentSchemaV1`, and sends `api-version=1.0` on the request.
|
|
74
|
+
*
|
|
75
|
+
* Roles V2 answers `201 Created`; the body is typed `ApiRoleAssignmentV1`. The contract
|
|
76
|
+
* declares `403 Forbidden` for callers the Roles service does not authorise for this operation.
|
|
77
|
+
*
|
|
78
|
+
* Related: `listAccountRoleAssignments` shows everything one user or application account
|
|
79
|
+
* already holds.
|
|
80
|
+
*
|
|
81
|
+
* @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
|
|
82
|
+
* @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
|
|
83
|
+
* @param version - API version selecting the request path, the argument schema, and the
|
|
84
|
+
* response schema.
|
|
85
|
+
* @param client - HTTP client that executes the request against the Roles service.
|
|
86
|
+
* @param method - Execution method, defaulting to `'json'`.
|
|
87
|
+
* @returns A request function taking {@link AssignRoleArg} and an optional `ClientRequestInit`,
|
|
88
|
+
* returning {@link AssignRoleResult}.
|
|
89
|
+
* @throws {Error} When `version` names an API version this operation does not publish. The
|
|
90
|
+
* check runs while binding, before the HTTP client is used.
|
|
91
|
+
* @throws {z.ZodError} From the returned function, when the arguments fail this version's
|
|
92
|
+
* argument schema or the response body fails its response schema.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```ts
|
|
96
|
+
* import { assignRole } from '@equinor/fusion-services/roles';
|
|
97
|
+
*
|
|
98
|
+
* const assignment = await assignRole('v1', httpClient)({
|
|
99
|
+
* roleIdentifier: 'reader',
|
|
100
|
+
* accountIdentifier: 'user@equinor.com',
|
|
101
|
+
* validTo: '2026-12-31T23:59:59Z',
|
|
102
|
+
* });
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
const assignRole = (version, client, method = 'json') => {
|
|
106
|
+
const apiVersion = extractVersion(ApiVersion, version);
|
|
107
|
+
return (input, init) => {
|
|
108
|
+
const args = parseVersionedArgs(VersionContract, apiVersion, input);
|
|
109
|
+
return client[method](generateApiPath(apiVersion, args), generateRequestParameters(apiVersion, args, init));
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
// Every symbol is declared under its public name so hover and code completion show this
|
|
113
|
+
// endpoint's own documentation. They are exported in one block rather than inline because an
|
|
114
|
+
// inline `export const` would require renaming the file away from the `<resource>.<verb>`
|
|
115
|
+
// convention that mirrors the OpenAPI operation it implements.
|
|
116
|
+
// fusion-lint-disable-next-line no-separate-export
|
|
117
|
+
export { assignRole, };
|
|
118
|
+
//# sourceMappingURL=role-assignments.post.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-assignments.post.js","sourceRoot":"","sources":["../../../../src/roles/endpoints/role-assignments.post.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AAcxF;;;;;;GAMG;AACH,MAAM,eAAe,GAAG;IACtB,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE;QACf,2DAA2D;QAC3D,IAAI,EAAE,CAAC;aACJ,MAAM,CAAC;YACN,qCAAqC;YACrC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;YACrE,GAAG,yBAAyB,CAAC,KAAK;SACnC,CAAC;aACD,QAAQ,CAAC,2EAA2E,CAAC;QACxF,2DAA2D;QAC3D,QAAQ,EAAE,yBAAyB;KACpC;CACoC,CAAC;AAyCxC,gGAAgG;AAChG,MAAM,yBAAyB,GAAG,CAChC,OAAiB,EACjB,IAA2D,EAC3D,IAA8C,EACL,EAAE;IAC3C,qEAAqE;IACrE,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,UAAU,CAAC,EAAE,EAAE,CAAC;YACnB,6FAA6F;YAC7F,MAAM,EAAE,cAAc,EAAE,eAAe,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;YAC1D,MAAM,QAAQ,GAAqE;gBACjF,MAAM,EAAE,MAAM;gBACd,QAAQ,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AE,IAAI,CAAC,CACN,CAAC;IAChD,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,wFAAwF;AACxF,6FAA6F;AAC7F,0FAA0F;AAC1F,+DAA+D;AAC/D,mDAAmD;AACnD,OAAO,EAKL,UAAU,GACX,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { extractVersion, parseVersionedArgs, versionedResponseSelector } from '../../utils';
|
|
3
|
+
import { ApiVersion } from '../static';
|
|
4
|
+
import { ApiPurgeBindingResultSchemaV1 } from '../v1/schemas/api-purge-binding-result-schema-v1';
|
|
5
|
+
/**
|
|
6
|
+
* Version contract for `purgeExpiredRoleBindingConfigurationHistory`, implementing
|
|
7
|
+
* `DELETE /role-binding-configurations/history/expired`.
|
|
8
|
+
*
|
|
9
|
+
* Each concrete {@link ApiVersion} maps to the argument and response schemas that
|
|
10
|
+
* version publishes, so the version a caller passes is the single discriminator
|
|
11
|
+
* for the request shape, the request path, and the response shape.
|
|
12
|
+
*/
|
|
13
|
+
const VersionContract = {
|
|
14
|
+
[ApiVersion.v1]: {
|
|
15
|
+
/** Arguments accepted by version 1.0 of this operation. */
|
|
16
|
+
args: z
|
|
17
|
+
.object({})
|
|
18
|
+
.describe('Arguments for DELETE /role-binding-configurations/history/expired (purgeExpiredRoleBindingConfigurationHistory v1.0).'),
|
|
19
|
+
/** Response published by version 1.0 of this operation. */
|
|
20
|
+
response: ApiPurgeBindingResultSchemaV1,
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
/** Builds the request init for the resolved version, including its response-schema selector. */
|
|
24
|
+
const generateRequestParameters = (version, _args, init) => {
|
|
25
|
+
// Select the response schema that matches the requested API version.
|
|
26
|
+
switch (version) {
|
|
27
|
+
case ApiVersion.v1: {
|
|
28
|
+
const baseInit = {
|
|
29
|
+
method: 'DELETE',
|
|
30
|
+
selector: versionedResponseSelector(VersionContract, version),
|
|
31
|
+
// The contract declares no request body, so any caller-supplied body is dropped.
|
|
32
|
+
body: undefined,
|
|
33
|
+
};
|
|
34
|
+
// Apply the caller-supplied `init` first, then the generated defaults, so the
|
|
35
|
+
// generated `method`, forced empty `body`, and version-specific response `selector`
|
|
36
|
+
// always win and cannot be overridden or bypassed.
|
|
37
|
+
return Object.assign({}, init, baseInit);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
throw Error(`Unknown API version: ${version}`);
|
|
41
|
+
};
|
|
42
|
+
/** Builds the request path for the resolved version, including its `api-version` parameter. */
|
|
43
|
+
const generateApiPath = (version, _args) => {
|
|
44
|
+
// Build the endpoint path according to the requested API version.
|
|
45
|
+
switch (version) {
|
|
46
|
+
case ApiVersion.v1: {
|
|
47
|
+
const params = new URLSearchParams();
|
|
48
|
+
params.append('api-version', version);
|
|
49
|
+
return `/role-binding-configurations/history/expired?${String(params)}`;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
throw Error(`Unknown API version: ${version}`);
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Purges role binding execution history and notification records that have aged out of the
|
|
56
|
+
* retention window.
|
|
57
|
+
*
|
|
58
|
+
* Roles V2 operation: `DELETE /role-binding-configurations/history/expired` — "Purge expired
|
|
59
|
+
* history and notification records beyond the retention window."
|
|
60
|
+
*
|
|
61
|
+
* Curried in two stages: `purgeExpiredRoleBindingConfigurationHistory(version, client, method)`
|
|
62
|
+
* binds the API version, the `IHttpClient` that reaches the Roles service, and the execution
|
|
63
|
+
* method — `'json'` for a promise, `'json$'` for an observable stream. The returned function
|
|
64
|
+
* takes {@link PurgeExpiredRoleBindingConfigurationHistoryArg} plus an optional
|
|
65
|
+
* `ClientRequestInit`, and gives back
|
|
66
|
+
* {@link PurgeExpiredRoleBindingConfigurationHistoryResult}.
|
|
67
|
+
*
|
|
68
|
+
* The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
|
|
69
|
+
* `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
|
|
70
|
+
* `ApiPurgeBindingResultSchemaV1`, and sends `api-version=1.0` on the request.
|
|
71
|
+
*
|
|
72
|
+
* Destructive: it removes the expired history and notification records permanently, and the
|
|
73
|
+
* deletion cannot be undone through this API. Roles V2 answers `200 OK`; the body is typed
|
|
74
|
+
* `ApiPurgeBindingResultV1`. The contract declares `403 Forbidden` for callers the Roles
|
|
75
|
+
* service does not authorise for this operation.
|
|
76
|
+
*
|
|
77
|
+
* @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
|
|
78
|
+
* @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
|
|
79
|
+
* @param version - API version selecting the request path, the argument schema, and the
|
|
80
|
+
* response schema.
|
|
81
|
+
* @param client - HTTP client that executes the request against the Roles service.
|
|
82
|
+
* @param method - Execution method, defaulting to `'json'`.
|
|
83
|
+
* @returns A request function taking {@link PurgeExpiredRoleBindingConfigurationHistoryArg} and
|
|
84
|
+
* an optional `ClientRequestInit`, returning
|
|
85
|
+
* {@link PurgeExpiredRoleBindingConfigurationHistoryResult}.
|
|
86
|
+
* @throws {Error} When `version` names an API version this operation does not publish. The
|
|
87
|
+
* check runs while binding, before the HTTP client is used.
|
|
88
|
+
* @throws {z.ZodError} From the returned function, when the arguments fail this version's
|
|
89
|
+
* argument schema or the response body fails its response schema.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```ts
|
|
93
|
+
* import { purgeExpiredRoleBindingConfigurationHistory } from '@equinor/fusion-services/roles';
|
|
94
|
+
*
|
|
95
|
+
* const result = await purgeExpiredRoleBindingConfigurationHistory('v1', httpClient)({});
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
const purgeExpiredRoleBindingConfigurationHistory = (version, client, method = 'json') => {
|
|
99
|
+
const apiVersion = extractVersion(ApiVersion, version);
|
|
100
|
+
return (input, init) => {
|
|
101
|
+
// The operation has no required arguments, so an omitted argument object parses as empty.
|
|
102
|
+
const args = parseVersionedArgs(VersionContract, apiVersion, input ?? {});
|
|
103
|
+
return client[method](generateApiPath(apiVersion, args), generateRequestParameters(apiVersion, args, init));
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
// Every symbol is declared under its public name so hover and code completion show this
|
|
107
|
+
// endpoint's own documentation. They are exported in one block rather than inline because an
|
|
108
|
+
// inline `export const` would require renaming the file away from the `<resource>.<verb>`
|
|
109
|
+
// convention that mirrors the OpenAPI operation it implements.
|
|
110
|
+
// fusion-lint-disable-next-line no-separate-export
|
|
111
|
+
export { purgeExpiredRoleBindingConfigurationHistory, };
|
|
112
|
+
//# sourceMappingURL=role-binding-configuration-expired-history.delete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-binding-configuration-expired-history.delete.js","sourceRoot":"","sources":["../../../../src/roles/endpoints/role-binding-configuration-expired-history.delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AAiBjG;;;;;;;GAOG;AACH,MAAM,eAAe,GAAG;IACtB,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE;QACf,2DAA2D;QAC3D,IAAI,EAAE,CAAC;aACJ,MAAM,CAAC,EAAE,CAAC;aACV,QAAQ,CACP,uHAAuH,CACxH;QACH,2DAA2D;QAC3D,QAAQ,EAAE,6BAA6B;KACxC;CACoC,CAAC;AAyCxC,gGAAgG;AAChG,MAAM,yBAAyB,GAAG,CAChC,OAAiB,EACjB,KAA4D,EAC5D,IAA8C,EACL,EAAE;IAC3C,qEAAqE;IACrE,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,UAAU,CAAC,EAAE,EAAE,CAAC;YACnB,MAAM,QAAQ,GAGV;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IAAI,CAAC,EACjC,yBAAyB,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,CAC2B,CAAC;IACjF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,wFAAwF;AACxF,6FAA6F;AAC7F,0FAA0F;AAC1F,+DAA+D;AAC/D,mDAAmD;AACnD,OAAO,EAKL,2CAA2C,GAC5C,CAAC"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { extractVersion, parseVersionedArgs, versionedResponseSelector } from '../../utils';
|
|
3
|
+
import { ApiVersion } from '../static';
|
|
4
|
+
import { ApiBindingExecutionRecordSchemaV1 } from '../v1/schemas/api-binding-execution-record-schema-v1';
|
|
5
|
+
import { SkipSchemaV1 } from '../v1/schemas/skip-schema-v1';
|
|
6
|
+
import { TopSchemaV1 } from '../v1/schemas/top-schema-v1';
|
|
7
|
+
import { apiPagedCollectionSchemaV1 } from '../v1/schemas/api-paged-collection-schema-v1';
|
|
8
|
+
/**
|
|
9
|
+
* Version contract for `listRoleBindingConfigurationHistory`, implementing
|
|
10
|
+
* `GET /role-binding-configurations/{identifier}/history`.
|
|
11
|
+
*
|
|
12
|
+
* Each concrete {@link ApiVersion} maps to the argument and response schemas that
|
|
13
|
+
* version publishes, so the version a caller passes is the single discriminator
|
|
14
|
+
* for the request shape, the request path, and the response shape.
|
|
15
|
+
*/
|
|
16
|
+
const VersionContract = {
|
|
17
|
+
[ApiVersion.v1]: {
|
|
18
|
+
/** Arguments accepted by version 1.0 of this operation. */
|
|
19
|
+
args: z
|
|
20
|
+
.object({
|
|
21
|
+
/** Role binding configuration UUID or unique identifier. */
|
|
22
|
+
identifier: z.string().describe('Role binding configuration UUID or unique identifier.'),
|
|
23
|
+
/** Maximum number of records to return. Roles V2 accepts values from 0 through 100. */
|
|
24
|
+
top: TopSchemaV1,
|
|
25
|
+
/** Number of records to skip before returning results. */
|
|
26
|
+
skip: SkipSchemaV1,
|
|
27
|
+
})
|
|
28
|
+
.describe('Arguments for GET /role-binding-configurations/{identifier}/history (listRoleBindingConfigurationHistory v1.0).'),
|
|
29
|
+
/** Response published by version 1.0 of this operation. */
|
|
30
|
+
response: apiPagedCollectionSchemaV1(ApiBindingExecutionRecordSchemaV1),
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
/** Builds the request init for the resolved version, including its response-schema selector. */
|
|
34
|
+
const generateRequestParameters = (version, _args, init) => {
|
|
35
|
+
// Select the response schema that matches the requested API version.
|
|
36
|
+
switch (version) {
|
|
37
|
+
case ApiVersion.v1: {
|
|
38
|
+
const baseInit = {
|
|
39
|
+
selector: versionedResponseSelector(VersionContract, version),
|
|
40
|
+
};
|
|
41
|
+
// Apply the caller-supplied `init` first, then the generated defaults, so the
|
|
42
|
+
// version-specific response `selector` always wins and cannot be bypassed.
|
|
43
|
+
return Object.assign({}, init, baseInit);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
throw Error(`Unknown API version: ${version}`);
|
|
47
|
+
};
|
|
48
|
+
/** Builds the request path for the resolved version, including its `api-version` parameter. */
|
|
49
|
+
const generateApiPath = (version, args) => {
|
|
50
|
+
// Build the endpoint path according to the requested API version.
|
|
51
|
+
switch (version) {
|
|
52
|
+
case ApiVersion.v1: {
|
|
53
|
+
const params = new URLSearchParams();
|
|
54
|
+
params.append('api-version', version);
|
|
55
|
+
args.top !== undefined && params.append('$top', String(args.top));
|
|
56
|
+
args.skip !== undefined && params.append('$skip', String(args.skip));
|
|
57
|
+
return `/role-binding-configurations/${encodeURIComponent(args.identifier)}/history?${String(params)}`;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
throw Error(`Unknown API version: ${version}`);
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Lists the sync execution history of one role binding configuration, newest execution first.
|
|
64
|
+
*
|
|
65
|
+
* Roles V2 operation: `GET /role-binding-configurations/{identifier}/history` — "Get execution
|
|
66
|
+
* history for a role binding configuration. Returns a paginated list of sync execution records
|
|
67
|
+
* in descending order by execution time."
|
|
68
|
+
*
|
|
69
|
+
* Curried in two stages: `listRoleBindingConfigurationHistory(version, client, method)` binds
|
|
70
|
+
* the API version, the `IHttpClient` that reaches the Roles service, and the execution method —
|
|
71
|
+
* `'json'` for a promise, `'json$'` for an observable stream. The returned function takes
|
|
72
|
+
* {@link ListRoleBindingConfigurationHistoryArg} plus an optional `ClientRequestInit`, and
|
|
73
|
+
* gives back {@link ListRoleBindingConfigurationHistoryResult}.
|
|
74
|
+
*
|
|
75
|
+
* The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
|
|
76
|
+
* `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
|
|
77
|
+
* `apiPagedCollectionSchemaV1(ApiBindingExecutionRecordSchemaV1)`, and sends `api-version=1.0`
|
|
78
|
+
* on the request.
|
|
79
|
+
*
|
|
80
|
+
* Query options: `top` and `skip` page the collection as `$top` and `$skip` (`top` accepts
|
|
81
|
+
* 0–100).
|
|
82
|
+
*
|
|
83
|
+
* Roles V2 answers `200 OK`; the body is typed
|
|
84
|
+
* `ApiPagedCollectionV1<ApiBindingExecutionRecordV1>`.
|
|
85
|
+
*
|
|
86
|
+
* @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
|
|
87
|
+
* @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
|
|
88
|
+
* @param version - API version selecting the request path, the argument schema, and the
|
|
89
|
+
* response schema.
|
|
90
|
+
* @param client - HTTP client that executes the request against the Roles service.
|
|
91
|
+
* @param method - Execution method, defaulting to `'json'`.
|
|
92
|
+
* @returns A request function taking {@link ListRoleBindingConfigurationHistoryArg} and an
|
|
93
|
+
* optional `ClientRequestInit`, returning {@link ListRoleBindingConfigurationHistoryResult}.
|
|
94
|
+
* @throws {Error} When `version` names an API version this operation does not publish. The
|
|
95
|
+
* check runs while binding, before the HTTP client is used.
|
|
96
|
+
* @throws {z.ZodError} From the returned function, when the arguments fail this version's
|
|
97
|
+
* argument schema or the response body fails its response schema.
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```ts
|
|
101
|
+
* import { listRoleBindingConfigurationHistory } from '@equinor/fusion-services/roles';
|
|
102
|
+
*
|
|
103
|
+
* const page = await listRoleBindingConfigurationHistory('v1', httpClient)({
|
|
104
|
+
* identifier: 'org-chart-sync',
|
|
105
|
+
* top: 25,
|
|
106
|
+
* });
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
const listRoleBindingConfigurationHistory = (version, client, method = 'json') => {
|
|
110
|
+
const apiVersion = extractVersion(ApiVersion, version);
|
|
111
|
+
return (input, init) => {
|
|
112
|
+
const args = parseVersionedArgs(VersionContract, apiVersion, input);
|
|
113
|
+
return client[method](generateApiPath(apiVersion, args), generateRequestParameters(apiVersion, args, init));
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
// Every symbol is declared under its public name so hover and code completion show this
|
|
117
|
+
// endpoint's own documentation. They are exported in one block rather than inline because an
|
|
118
|
+
// inline `export const` would require renaming the file away from the `<resource>.<verb>`
|
|
119
|
+
// convention that mirrors the OpenAPI operation it implements.
|
|
120
|
+
// fusion-lint-disable-next-line no-separate-export
|
|
121
|
+
export { listRoleBindingConfigurationHistory, };
|
|
122
|
+
//# sourceMappingURL=role-binding-configuration-history.get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-binding-configuration-history.get.js","sourceRoot":"","sources":["../../../../src/roles/endpoints/role-binding-configuration-history.get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,sDAAsD,CAAC;AACzG,OAAO,EAAE,YAAY,EAAE,MAAM,8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'zod';
|
|
2
|
+
import { extractVersion, parseVersionedArgs, versionedResponseSelector } from '../../utils';
|
|
3
|
+
import { ApiVersion } from '../static';
|
|
4
|
+
import { CreateBindingExecutionRecordRequestSchemaV1 } from '../v1/schemas/create-binding-execution-record-request-schema-v1';
|
|
5
|
+
import { CreateBindingExecutionRecordResponseSchemaV1 } from '../v1/schemas/create-binding-execution-record-response-schema-v1';
|
|
6
|
+
/**
|
|
7
|
+
* Version contract for `createRoleBindingConfigurationHistoryRecord`, implementing
|
|
8
|
+
* `POST /role-binding-configurations/{identifier}/history`.
|
|
9
|
+
*
|
|
10
|
+
* Each concrete {@link ApiVersion} maps to the argument and response schemas that
|
|
11
|
+
* version publishes, so the version a caller passes is the single discriminator
|
|
12
|
+
* for the request shape, the request path, and the response shape.
|
|
13
|
+
*/
|
|
14
|
+
const VersionContract = {
|
|
15
|
+
[ApiVersion.v1]: {
|
|
16
|
+
/** Arguments accepted by version 1.0 of this operation. */
|
|
17
|
+
args: z
|
|
18
|
+
.object({
|
|
19
|
+
/** Role binding configuration UUID or unique identifier. */
|
|
20
|
+
identifier: z.string().describe('Role binding configuration UUID or unique identifier.'),
|
|
21
|
+
...CreateBindingExecutionRecordRequestSchemaV1.shape,
|
|
22
|
+
})
|
|
23
|
+
.describe('Arguments for POST /role-binding-configurations/{identifier}/history (createRoleBindingConfigurationHistoryRecord v1.0).'),
|
|
24
|
+
/** Response published by version 1.0 of this operation. */
|
|
25
|
+
response: CreateBindingExecutionRecordResponseSchemaV1,
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
/** Builds the request init for the resolved version, including its response-schema selector. */
|
|
29
|
+
const generateRequestParameters = (version, args, init) => {
|
|
30
|
+
// Select the response schema that matches the requested API version.
|
|
31
|
+
switch (version) {
|
|
32
|
+
case ApiVersion.v1: {
|
|
33
|
+
// Path identifiers address the resource, so only the remaining fields form the request body.
|
|
34
|
+
const { identifier: _identifier, ...body } = args;
|
|
35
|
+
const baseInit = {
|
|
36
|
+
method: 'POST',
|
|
37
|
+
selector: versionedResponseSelector(VersionContract, version),
|
|
38
|
+
body,
|
|
39
|
+
};
|
|
40
|
+
// Apply the caller-supplied `init` first, then the generated defaults, so the
|
|
41
|
+
// generated `method`, `body`, and version-specific response `selector` always win
|
|
42
|
+
// and cannot be overridden or bypassed.
|
|
43
|
+
return Object.assign({}, init, baseInit);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
throw Error(`Unknown API version: ${version}`);
|
|
47
|
+
};
|
|
48
|
+
/** Builds the request path for the resolved version, including its `api-version` parameter. */
|
|
49
|
+
const generateApiPath = (version, args) => {
|
|
50
|
+
// Build the endpoint path according to the requested API version.
|
|
51
|
+
switch (version) {
|
|
52
|
+
case ApiVersion.v1: {
|
|
53
|
+
const params = new URLSearchParams();
|
|
54
|
+
params.append('api-version', version);
|
|
55
|
+
return `/role-binding-configurations/${encodeURIComponent(args.identifier)}/history?${String(params)}`;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
throw Error(`Unknown API version: ${version}`);
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Records one sync execution in a role binding configuration's execution history.
|
|
62
|
+
*
|
|
63
|
+
* Roles V2 operation: `POST /role-binding-configurations/{identifier}/history` — "Create an
|
|
64
|
+
* execution history record for a role binding configuration."
|
|
65
|
+
*
|
|
66
|
+
* Curried in two stages: `createRoleBindingConfigurationHistoryRecord(version, client, method)`
|
|
67
|
+
* binds the API version, the `IHttpClient` that reaches the Roles service, and the execution
|
|
68
|
+
* method — `'json'` for a promise, `'json$'` for an observable stream. The returned function
|
|
69
|
+
* takes {@link CreateRoleBindingConfigurationHistoryRecordArg} plus an optional
|
|
70
|
+
* `ClientRequestInit`, and gives back
|
|
71
|
+
* {@link CreateRoleBindingConfigurationHistoryRecordResult}.
|
|
72
|
+
*
|
|
73
|
+
* The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
|
|
74
|
+
* `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
|
|
75
|
+
* `CreateBindingExecutionRecordResponseSchemaV1`, and sends `api-version=1.0` on the request.
|
|
76
|
+
*
|
|
77
|
+
* Roles V2 answers `201 Created`; the body is typed `CreateBindingExecutionRecordResponseV1`.
|
|
78
|
+
* The contract declares `403 Forbidden` for callers the Roles service does not authorise for
|
|
79
|
+
* this operation.
|
|
80
|
+
*
|
|
81
|
+
* @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
|
|
82
|
+
* @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
|
|
83
|
+
* @param version - API version selecting the request path, the argument schema, and the
|
|
84
|
+
* response schema.
|
|
85
|
+
* @param client - HTTP client that executes the request against the Roles service.
|
|
86
|
+
* @param method - Execution method, defaulting to `'json'`.
|
|
87
|
+
* @returns A request function taking {@link CreateRoleBindingConfigurationHistoryRecordArg} and
|
|
88
|
+
* an optional `ClientRequestInit`, returning
|
|
89
|
+
* {@link CreateRoleBindingConfigurationHistoryRecordResult}.
|
|
90
|
+
* @throws {Error} When `version` names an API version this operation does not publish. The
|
|
91
|
+
* check runs while binding, before the HTTP client is used.
|
|
92
|
+
* @throws {z.ZodError} From the returned function, when the arguments fail this version's
|
|
93
|
+
* argument schema or the response body fails its response schema.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```ts
|
|
97
|
+
* import { createRoleBindingConfigurationHistoryRecord } from '@equinor/fusion-services/roles';
|
|
98
|
+
*
|
|
99
|
+
* const record = await createRoleBindingConfigurationHistoryRecord('v1', httpClient)({
|
|
100
|
+
* identifier: 'org-chart-sync',
|
|
101
|
+
* triggerType: 'Scheduled',
|
|
102
|
+
* outcome: 'Success',
|
|
103
|
+
* executedAt: '2026-01-15T04:00:00Z',
|
|
104
|
+
* });
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
const createRoleBindingConfigurationHistoryRecord = (version, client, method = 'json') => {
|
|
108
|
+
const apiVersion = extractVersion(ApiVersion, version);
|
|
109
|
+
return (input, init) => {
|
|
110
|
+
const args = parseVersionedArgs(VersionContract, apiVersion, input);
|
|
111
|
+
return client[method](generateApiPath(apiVersion, args), generateRequestParameters(apiVersion, args, init));
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
// Every symbol is declared under its public name so hover and code completion show this
|
|
115
|
+
// endpoint's own documentation. They are exported in one block rather than inline because an
|
|
116
|
+
// inline `export const` would require renaming the file away from the `<resource>.<verb>`
|
|
117
|
+
// convention that mirrors the OpenAPI operation it implements.
|
|
118
|
+
// fusion-lint-disable-next-line no-separate-export
|
|
119
|
+
export { createRoleBindingConfigurationHistoryRecord, };
|
|
120
|
+
//# sourceMappingURL=role-binding-configuration-history.post.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-binding-configuration-history.post.js","sourceRoot":"","sources":["../../../../src/roles/endpoints/role-binding-configuration-history.post.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,2CAA2C,EAAE,MAAM,iEAAiE,CAAC;AAC9H,OAAO,EAAE,4CAA4C,EAAE,MAAM,kEAAkE,CAAC;AAiBhI;;;;;;;GAOG;AACH,MAAM,eAAe,GAAG;IACtB,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE;QACf,2DAA2D;QAC3D,IAAI,EAAE,CAAC;aACJ,MAAM,CAAC;YACN,4DAA4D;YAC5D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uDAAuD,CAAC;YACxF,GAAG,2CAA2C,CAAC,KAAK;SACrD,CAAC;aACD,QAAQ,CACP,0HAA0H,CAC3H;QACH,2DAA2D;QAC3D,QAAQ,EAAE,4CAA4C;KACvD;CAC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ACnB,MAAM,GAAY,MAAiB,EACnC,EAAE;IAEF,MAAM,UAAU,GAAG,cAAc,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACvD,OAAO,CACL,KAAoE,EACpE,IAGC,EAC0E,EAAE;QAC7E,MAAM,IAAI,GAAG,kBAAkB,CAAC,eAAe,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;QACpE,OAAO,MAAM,CAAC,MAAM,CAAC,CACnB,eAAe,CAAC,UAAU,EAAE,IAAI,CAAC,EACjC,yBAAyB,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,CAC2B,CAAC;IACjF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,wFAAwF;AACxF,6FAA6F;AAC7F,0FAA0F;AAC1F,+DAA+D;AAC/D,mDAAmD;AACnD,OAAO,EAKL,2CAA2C,GAC5C,CAAC"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { extractVersion, parseVersionedArgs, versionedResponseSelector } from '../../utils';
|
|
3
|
+
import { ApiVersion } from '../static';
|
|
4
|
+
import { ApiBindingNotificationRecordSchemaV1 } from '../v1/schemas/api-binding-notification-record-schema-v1';
|
|
5
|
+
import { SkipSchemaV1 } from '../v1/schemas/skip-schema-v1';
|
|
6
|
+
import { TopSchemaV1 } from '../v1/schemas/top-schema-v1';
|
|
7
|
+
import { apiPagedCollectionSchemaV1 } from '../v1/schemas/api-paged-collection-schema-v1';
|
|
8
|
+
/**
|
|
9
|
+
* Version contract for `listRoleBindingConfigurationNotifications`, implementing
|
|
10
|
+
* `GET /role-binding-configurations/{identifier}/notifications`.
|
|
11
|
+
*
|
|
12
|
+
* Each concrete {@link ApiVersion} maps to the argument and response schemas that
|
|
13
|
+
* version publishes, so the version a caller passes is the single discriminator
|
|
14
|
+
* for the request shape, the request path, and the response shape.
|
|
15
|
+
*/
|
|
16
|
+
const VersionContract = {
|
|
17
|
+
[ApiVersion.v1]: {
|
|
18
|
+
/** Arguments accepted by version 1.0 of this operation. */
|
|
19
|
+
args: z
|
|
20
|
+
.object({
|
|
21
|
+
/** Role binding configuration UUID or unique identifier. */
|
|
22
|
+
identifier: z.string().describe('Role binding configuration UUID or unique identifier.'),
|
|
23
|
+
/** Maximum number of records to return. Roles V2 accepts values from 0 through 100. */
|
|
24
|
+
top: TopSchemaV1,
|
|
25
|
+
/** Number of records to skip before returning results. */
|
|
26
|
+
skip: SkipSchemaV1,
|
|
27
|
+
})
|
|
28
|
+
.describe('Arguments for GET /role-binding-configurations/{identifier}/notifications (listRoleBindingConfigurationNotifications v1.0).'),
|
|
29
|
+
/** Response published by version 1.0 of this operation. */
|
|
30
|
+
response: apiPagedCollectionSchemaV1(ApiBindingNotificationRecordSchemaV1),
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
/** Builds the request init for the resolved version, including its response-schema selector. */
|
|
34
|
+
const generateRequestParameters = (version, _args, init) => {
|
|
35
|
+
// Select the response schema that matches the requested API version.
|
|
36
|
+
switch (version) {
|
|
37
|
+
case ApiVersion.v1: {
|
|
38
|
+
const baseInit = {
|
|
39
|
+
selector: versionedResponseSelector(VersionContract, version),
|
|
40
|
+
};
|
|
41
|
+
// Apply the caller-supplied `init` first, then the generated defaults, so the
|
|
42
|
+
// version-specific response `selector` always wins and cannot be bypassed.
|
|
43
|
+
return Object.assign({}, init, baseInit);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
throw Error(`Unknown API version: ${version}`);
|
|
47
|
+
};
|
|
48
|
+
/** Builds the request path for the resolved version, including its `api-version` parameter. */
|
|
49
|
+
const generateApiPath = (version, args) => {
|
|
50
|
+
// Build the endpoint path according to the requested API version.
|
|
51
|
+
switch (version) {
|
|
52
|
+
case ApiVersion.v1: {
|
|
53
|
+
const params = new URLSearchParams();
|
|
54
|
+
params.append('api-version', version);
|
|
55
|
+
args.top !== undefined && params.append('$top', String(args.top));
|
|
56
|
+
args.skip !== undefined && params.append('$skip', String(args.skip));
|
|
57
|
+
return `/role-binding-configurations/${encodeURIComponent(args.identifier)}/notifications?${String(params)}`;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
throw Error(`Unknown API version: ${version}`);
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Lists the notification log of one role binding configuration, newest notification first.
|
|
64
|
+
*
|
|
65
|
+
* Roles V2 operation: `GET /role-binding-configurations/{identifier}/notifications` — "Get
|
|
66
|
+
* notification log for a role binding configuration. Returns a paginated list of notification
|
|
67
|
+
* records in descending order by received time."
|
|
68
|
+
*
|
|
69
|
+
* Curried in two stages: `listRoleBindingConfigurationNotifications(version, client, method)`
|
|
70
|
+
* binds the API version, the `IHttpClient` that reaches the Roles service, and the execution
|
|
71
|
+
* method — `'json'` for a promise, `'json$'` for an observable stream. The returned function
|
|
72
|
+
* takes {@link ListRoleBindingConfigurationNotificationsArg} plus an optional
|
|
73
|
+
* `ClientRequestInit`, and gives back {@link ListRoleBindingConfigurationNotificationsResult}.
|
|
74
|
+
*
|
|
75
|
+
* The version argument is the single discriminator: `'v1'` — equivalently `'1.0'` or
|
|
76
|
+
* `ApiVersion.v1` — selects the version-1.0 argument schema, validates the response with
|
|
77
|
+
* `apiPagedCollectionSchemaV1(ApiBindingNotificationRecordSchemaV1)`, and sends
|
|
78
|
+
* `api-version=1.0` on the request.
|
|
79
|
+
*
|
|
80
|
+
* Query options: `top` and `skip` page the collection as `$top` and `$skip` (`top` accepts
|
|
81
|
+
* 0–100).
|
|
82
|
+
*
|
|
83
|
+
* Roles V2 answers `200 OK`; the body is typed
|
|
84
|
+
* `ApiPagedCollectionV1<ApiBindingNotificationRecordV1>`.
|
|
85
|
+
*
|
|
86
|
+
* @template TVersion - Roles API version identifier: `'v1'`, `'1.0'`, or `ApiVersion.v1`.
|
|
87
|
+
* @template TMethod - Execution method: `'json'` for a promise, `'json$'` for an observable.
|
|
88
|
+
* @param version - API version selecting the request path, the argument schema, and the
|
|
89
|
+
* response schema.
|
|
90
|
+
* @param client - HTTP client that executes the request against the Roles service.
|
|
91
|
+
* @param method - Execution method, defaulting to `'json'`.
|
|
92
|
+
* @returns A request function taking {@link ListRoleBindingConfigurationNotificationsArg} and
|
|
93
|
+
* an optional `ClientRequestInit`, returning
|
|
94
|
+
* {@link ListRoleBindingConfigurationNotificationsResult}.
|
|
95
|
+
* @throws {Error} When `version` names an API version this operation does not publish. The
|
|
96
|
+
* check runs while binding, before the HTTP client is used.
|
|
97
|
+
* @throws {z.ZodError} From the returned function, when the arguments fail this version's
|
|
98
|
+
* argument schema or the response body fails its response schema.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```ts
|
|
102
|
+
* import { listRoleBindingConfigurationNotifications } from '@equinor/fusion-services/roles';
|
|
103
|
+
*
|
|
104
|
+
* const page = await listRoleBindingConfigurationNotifications('v1', httpClient)({
|
|
105
|
+
* identifier: 'org-chart-sync',
|
|
106
|
+
* top: 25,
|
|
107
|
+
* });
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
const listRoleBindingConfigurationNotifications = (version, client, method = 'json') => {
|
|
111
|
+
const apiVersion = extractVersion(ApiVersion, version);
|
|
112
|
+
return (input, init) => {
|
|
113
|
+
const args = parseVersionedArgs(VersionContract, apiVersion, input);
|
|
114
|
+
return client[method](generateApiPath(apiVersion, args), generateRequestParameters(apiVersion, args, init));
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
// Every symbol is declared under its public name so hover and code completion show this
|
|
118
|
+
// endpoint's own documentation. They are exported in one block rather than inline because an
|
|
119
|
+
// inline `export const` would require renaming the file away from the `<resource>.<verb>`
|
|
120
|
+
// convention that mirrors the OpenAPI operation it implements.
|
|
121
|
+
// fusion-lint-disable-next-line no-separate-export
|
|
122
|
+
export { listRoleBindingConfigurationNotifications, };
|
|
123
|
+
//# sourceMappingURL=role-binding-configuration-notifications.get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-binding-configuration-notifications.get.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