import type { ApiErrorInfo } from '../../../../types/command.types.js'; import { CcApiSimpleCommand } from '../../lib/cc-api-command.js'; import type { AddOrganisationMemberCommandInput } from './add-organisation-member-command.types.js'; /** * The error codes this command can produce, to compare against `error.code`. * * - `UNAUTHORISED_ADDITION`: the current user is not allowed to add a member to this organisation * - `UNAUTHORISED_ROLE_ASSIGNMENT`: the current user is not allowed to assign this role */ export declare const ADD_ORGANISATION_MEMBER_ERROR_CODES: { readonly UNAUTHORISED_ADDITION: 'clever.organisation.member.unauthorised-addition'; readonly UNAUTHORISED_ROLE_ASSIGNMENT: 'clever.organisation.member.unauthorised-role-assignment'; }; export type AddOrganisationMemberErrorCode = (typeof ADD_ORGANISATION_MEMBER_ERROR_CODES)[keyof typeof ADD_ORGANISATION_MEMBER_ERROR_CODES]; /** * Adds a member to an organisation, or accepts a pending invitation to one. * * Without an invitation key, an invitation email is sent to the given address and the member only * joins once they follow it; the current user must be allowed to add members and to assign the * requested role. With an invitation key, the current user joins the organisation the invitation * was issued for, and the other parameters are ignored. * * Common error codes: see {@link ADD_ORGANISATION_MEMBER_ERROR_CODES} * * @endpoint [POST] /v2/organisations/:XXX/members * @group Organisation * @version 2 */ export declare class AddOrganisationMemberCommand extends CcApiSimpleCommand { toRequestParams(params: AddOrganisationMemberCommandInput): Partial; transformCommandOutput(): undefined; transformErrorCode({ code }: ApiErrorInfo): AddOrganisationMemberErrorCode; isIdempotent(): boolean; } //# sourceMappingURL=add-organisation-member-command.d.ts.map