import type { ApiErrorInfo } from '../../../../types/command.types.js'; import { CcApiSimpleCommand } from '../../lib/cc-api-command.js'; import type { IdResolve } from '../../types/resource-id-resolver.types.js'; import type { CreateDomainCommandInput } from './create-domain-command.types.js'; /** * The error codes this command can produce, to compare against `error.code`. * * - `INVALID_FORMAT`: the given domain is not something the API can work with (bad syntax, IP address, * public suffix, malformed wildcard...) * - `ALREADY_USED`: the given domain is already attached to an application, or belongs to a domain the * owner is not allowed to use * - `FORBIDDEN`: the given domain has been flagged as forbidden, only the support can unlock it */ export declare const CREATE_DOMAIN_ERROR_CODES: { readonly INVALID_FORMAT: 'clever.domain.invalid-format'; readonly ALREADY_USED: 'clever.domain.already-used'; readonly FORBIDDEN: 'clever.domain.forbidden'; }; export type CreateDomainErrorCode = (typeof CREATE_DOMAIN_ERROR_CODES)[keyof typeof CREATE_DOMAIN_ERROR_CODES]; /** * Attaches a domain to an application. * * Common error codes: see {@link CREATE_DOMAIN_ERROR_CODES} * * @endpoint [PUT] /v2/organisations/:XXX/applications/:XXX/vhosts/:XXX * @group Domain * @version 2 */ export declare class CreateDomainCommand extends CcApiSimpleCommand { toRequestParams(params: CreateDomainCommandInput): Partial; transformCommandOutput(): undefined; transformErrorCode({ code, message }: ApiErrorInfo): CreateDomainErrorCode; getIdsToResolve(): IdResolve; isIdempotent(): boolean; } //# sourceMappingURL=create-domain-command.d.ts.map