import { APIResource } from "../../../core/resource.js"; import * as V2API from "./v2.js"; import { AdminConnector, AdminUser, V2 } from "./v2.js"; import { APIPromise } from "../../../core/api-promise.js"; import { RequestOptions } from "../../../internal/request-options.js"; export declare class Whatsapp extends APIResource { v2: V2API.V2; /** * Register or re-register a user with WhatsApp. Idempotent — repeated calls reuse * the existing user. */ register(params: WhatsappRegisterParams, options?: RequestOptions): APIPromise; } /** * Phone and email verification response model. * * Attributes: challenge_id: Unique identifier for the verification challenge * expires_at: Timestamp when the verification code expires user_detail: User * details including username and display name cooldown: Cooldown period in seconds * before next resend is allowed */ export interface VerificationResponse { /** * Unique challenge ID for verification */ challenge_id: string; /** * Cooldown period in seconds */ cooldown: number; /** * When the verification code expires */ expires_at: string; /** * User details with username, display_name and email */ user_detail: { [key: string]: string; }; /** * Echo of verification_profile when applicable (e.g. deferred_link_email_otp). */ flow?: string | null; } export interface WhatsappRegisterParams { /** * Body param */ provider_code: string; /** * Body param */ whatsapp_id: string; /** * Body param */ email?: string | null; /** * Body param */ profile_name?: string | null; /** * Body param */ username?: string | null; /** * Header param */ 'Accept-Language'?: string; /** * Header param: Set to `structured` to receive errors in the structured envelope. * Omit it to keep the legacy error body. */ 'X-Error-Format'?: string; } export declare namespace Whatsapp { export { type VerificationResponse as VerificationResponse, type WhatsappRegisterParams as WhatsappRegisterParams, }; export { V2 as V2, type AdminConnector as AdminConnector, type AdminUser as AdminUser }; } //# sourceMappingURL=whatsapp.d.ts.map