@unkey/api
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.
27 lines • 1.74 kB
TypeScript
import { UnkeyCore } from "../core.js";
import { RequestOptions } from "../lib/sdks.js";
import * as components from "../models/components/index.js";
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
import * as errors from "../models/errors/index.js";
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
import { UnkeyError } from "../models/errors/unkeyerror.js";
import { APIPromise } from "../types/async.js";
import { Result } from "../types/fp.js";
/**
* Delete role
*
* @remarks
* Remove a role from your workspace. This also removes the role from all assigned API keys.
*
* **Important:** This operation cannot be undone and immediately affects all API keys that had this role assigned.
*
* **Required Permissions**
*
* Your root key must have the following permission:
* - `rbac.*.delete_role`
*
* If set, this operation will use {@link Security.rootKey} from the global security.
*/
export declare function permissionsDeleteRole(client: UnkeyCore, request: components.V2PermissionsDeleteRoleRequestBody, options?: RequestOptions): APIPromise<Result<components.V2PermissionsDeleteRoleResponseBody, errors.BadRequestErrorResponse | errors.UnauthorizedErrorResponse | errors.ForbiddenErrorResponse | errors.TooManyRequestsErrorResponse | errors.InternalServerErrorResponse | UnkeyError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
//# sourceMappingURL=permissionsDeleteRole.d.ts.map