import { inspect, InspectOptions } from "util"; import V1 from "../V1"; import { ApiResponse } from "../../../base/ApiResponse"; export declare class NumbersV1VoiceVerificationRequest { /** * The phone number to verify in E.164 format. */ "phoneNumber": string; /** * A human-readable name for the caller ID. */ "friendlyName"?: string; /** * A custom verification code to use instead of a generated one. */ "customCode"?: string; /** * Number of seconds to delay the verification call (0-60). */ "callDelay"?: string; /** * URL to receive status callback events. */ "statusCallback"?: string; /** * HTTP method for status callback requests. */ "statusCallbackMethod"?: string; /** * Phone extension to dial after connecting. */ "extension"?: string; /** * Custom message to play after successful verification. */ "customSuccessMessage"?: string; constructor(payload: any); } /** * Options to pass to create a VoiceVerificationInstance */ export interface VoiceVerificationListInstanceCreateOptions { /** */ numbersV1VoiceVerificationRequest: NumbersV1VoiceVerificationRequest; } export interface VoiceVerificationSolution { } export interface VoiceVerificationListInstance { _version: V1; _solution: VoiceVerificationSolution; _uri: string; /** * Create a VoiceVerificationInstance * * @param params - Body for request * @param headers - header params for request * @param callback - Callback to handle processed record * * @returns Resolves to processed VoiceVerificationInstance */ create(params: NumbersV1VoiceVerificationRequest, headers?: any, callback?: (error: Error | null, item?: VoiceVerificationInstance) => any): Promise; /** * Create a VoiceVerificationInstance and return HTTP info * * @param params - Body for request * @param headers - header params for request * @param callback - Callback to handle processed record * * @returns Resolves to processed VoiceVerificationInstance with HTTP metadata */ createWithHttpInfo(params: NumbersV1VoiceVerificationRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse) => any): Promise>; /** * Provide a user-friendly representation */ toJSON(): any; [inspect.custom](_depth: any, options: InspectOptions): any; } export declare function VoiceVerificationListInstance(version: V1): VoiceVerificationListInstance; interface VoiceVerificationResource { accountSid: string; phoneNumber: string; friendlyName: string; validationCode: string; callSid: string; } export declare class VoiceVerificationInstance { protected _version: V1; constructor(_version: V1, payload: VoiceVerificationResource); /** * The Account SID that owns this verification. */ accountSid: string; /** * The phone number being verified in E.164 format. */ phoneNumber: string; /** * A human-readable name for this caller ID. */ friendlyName: string; /** * The 6-digit validation code to be entered during the call. */ validationCode: string; /** * The Call SID for the verification call. */ callSid: string; /** * Provide a user-friendly representation * * @returns Object */ toJSON(): { accountSid: string; phoneNumber: string; friendlyName: string; validationCode: string; callSid: string; }; [inspect.custom](_depth: any, options: InspectOptions): string; } export {};