UNPKG

wh-wrapper

Version:

JavaScript wrapper for the WhatsApp Cloud API

49 lines (48 loc) 2.05 kB
import { ZodError } from "zod"; import { LibraryError, WhatsAppError } from "./base-errors"; export declare class AuthError extends WhatsAppError { constructor(code: number, message: string, fbtrace_id?: string, type?: string, details?: string); toString(): string; } export declare class ThrottlingError extends WhatsAppError { constructor(code: number, message: string, fbtrace_id?: string, type?: string, details?: string); toString(): string; } export declare class IntegrityError extends WhatsAppError { constructor(code: number, message: string, fbtrace_id?: string, type?: string, details?: string); toString(): string; } export declare class ParameterError extends WhatsAppError { constructor(code: number, message: string, fbtrace_id?: string, type?: string, details?: string); toString(): string; } export declare class MessageError extends WhatsAppError { constructor(code: number, message: string, fbtrace_id?: string, type?: string, details?: string); toString(): string; } export declare class TemplateError extends WhatsAppError { constructor(code: number, message: string, fbtrace_id?: string, type?: string, details?: string); toString(): string; } export declare class RegistrationError extends WhatsAppError { constructor(code: number, message: string, fbtrace_id?: string, type?: string, details?: string); toString(): string; } export declare class BillingError extends WhatsAppError { constructor(code: number, message: string, fbtrace_id?: string, type?: string, details?: string); toString(): string; } export declare class UnknownError extends WhatsAppError { constructor(code: number, message: string, fbtrace_id?: string, type?: string, details?: string); toString(): string; } export declare class ParametersError extends LibraryError { errors: { errorCode: string; errorParam: string; errorMessage: string; expected?: string; received?: string; }[]; constructor(message: string, error: ZodError); }