import type { ApiErrorInfo } from '../../../../types/command.types.js'; import { CcApiSimpleCommand } from '../../lib/cc-api-command.js'; import type { CreateProfileEmailAddressCommandInput } from './create-profile-email-address-command.types.js'; /** * The error codes this command can produce, to compare against `error.code`. * * - `INVALID_FORMAT`: the email address format is invalid * - `ALREADY_DEFINED`: the email address already belongs to the user * - `ALREADY_USED`: the email address already belongs to another user */ export declare const CREATE_PROFILE_EMAIL_ADDRESS_ERROR_CODES: { readonly INVALID_FORMAT: 'clever.profile.email-address.invalid-format'; readonly ALREADY_DEFINED: 'clever.profile.email-address.already-defined'; readonly ALREADY_USED: 'clever.profile.email-address.already-used'; }; export type CreateProfileEmailAddressErrorCode = (typeof CREATE_PROFILE_EMAIL_ADDRESS_ERROR_CODES)[keyof typeof CREATE_PROFILE_EMAIL_ADDRESS_ERROR_CODES]; /** * Adds a new email address to the user profile. * * Common error codes: see {@link CREATE_PROFILE_EMAIL_ADDRESS_ERROR_CODES} * * @endpoint [PUT] /v2/self/emails/:XXX * @group Profile * @version 2 */ export declare class CreateProfileEmailAddressCommand extends CcApiSimpleCommand { toRequestParams(params: CreateProfileEmailAddressCommandInput): Partial; transformCommandOutput(): undefined; transformErrorCode({ code }: ApiErrorInfo): CreateProfileEmailAddressErrorCode; isIdempotent(): boolean; } //# sourceMappingURL=create-profile-email-address-command.d.ts.map