import { FlexpriceCore } from "../core.js"; import { RequestOptions } from "../lib/sdks.js"; import { FlexPriceError } from "../sdk/models/flex-price-error.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/http-client-errors.js"; import * as models from "../sdk/models/index.js"; import { ResponseValidationError } from "../sdk/models/response-validation-error.js"; import { SDKValidationError } from "../sdk/models/sdk-validation-error.js"; import { APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** * Update user roles * * @remarks * Update the roles of a user account (not service accounts — their roles are fixed at creation). Restricted to super_admin; a caller cannot update their own roles. Blocked with a 400 if the user has any active (published, unexpired) API key in any environment, since a key's permissions are snapshotted at creation time and would otherwise silently keep running on the old roles; the error lists the active keys grouped by environment ID so the caller can prompt to expire them first, then retry. */ export declare function usersUpdateUserRoles(client: FlexpriceCore, id: string, body: models.UpdateUserRolesRequest, options?: RequestOptions): APIPromise>; //# sourceMappingURL=users-update-user-roles.d.ts.map