import type { ApiErrorInfo } from '../../../../types/command.types.js'; import { CcApiSimpleCommand } from '../../lib/cc-api-command.js'; import type { UpdateOrganisationMemberCommandInput } from './update-organisation-member-command.types.js'; /** * The error codes this command can produce, to compare against `error.code`. * * - `NOT_FOUND`: the member is not part of the organisation * - `UNAUTHORISED_ADDITION`: the current user is not allowed to edit the members of this organisation * - `UNAUTHORISED_ROLE_ASSIGNMENT`: the current user is not allowed to assign the old or the new role */ export declare const UPDATE_ORGANISATION_MEMBER_ERROR_CODES: { readonly NOT_FOUND: 'clever.organisation.member.not-found'; readonly UNAUTHORISED_ADDITION: 'clever.organisation.member.unauthorised-addition'; readonly UNAUTHORISED_ROLE_ASSIGNMENT: 'clever.organisation.member.unauthorised-role-assignment'; }; export type UpdateOrganisationMemberErrorCode = (typeof UPDATE_ORGANISATION_MEMBER_ERROR_CODES)[keyof typeof UPDATE_ORGANISATION_MEMBER_ERROR_CODES]; /** * Updates the role or the job title of an organisation member. * * The current user must be allowed to edit the members of the organisation, and to assign both the * role the member holds and the one they are given. * * Common error codes: see {@link UPDATE_ORGANISATION_MEMBER_ERROR_CODES} * * @endpoint [PUT] /v2/organisations/:XXX/members/:XXX * @group Organisation * @version 2 */ export declare class UpdateOrganisationMemberCommand extends CcApiSimpleCommand { toRequestParams(params: UpdateOrganisationMemberCommandInput): Partial; transformCommandOutput(): undefined; transformErrorCode({ code }: ApiErrorInfo): UpdateOrganisationMemberErrorCode; isIdempotent(): boolean; } //# sourceMappingURL=update-organisation-member-command.d.ts.map