import { inspect, InspectOptions } from "util"; import V2 from "../V2"; import { ApiResponse } from "../../../base/ApiResponse"; export declare class InsightsV2CreatePhoneNumbersReportRequest { "timeRange"?: InsightsV2CreatePhoneNumbersReportRequestTimeRange; "filters"?: Array; /** * The number of max available top Phone Numbers to generate. */ "size"?: number; constructor(payload: any); } export declare class InsightsV2CreatePhoneNumbersReportRequestTimeRange { /** * Start date time of the report */ "startDatetime"?: Date; /** * End date time of the report */ "endDatetime"?: Date; constructor(payload: any); } export declare class PhoneNumberReportFilter { /** * The name of the filter */ "key"?: string; /** * List of supported filter values for the field name */ "values"?: Array; constructor(payload: any); } export declare class ReportFilter { /** * The name of the filter \'call_state\', \'call_direction\', \'call_type\', \'twilio_regions\', \'caller_country_code\', \'callee_country_code\', \'silent\' */ "key"?: string; /** * List of supported filter values for the field name */ "values"?: Array; constructor(payload: any); } export declare class ReportMetadata { /** * Start date time of the report */ "startDatetime"?: Date; /** * End date time of the report */ "endDatetime"?: Date; /** * Filter values applied to the report */ "filters"?: Array; constructor(payload: any); } /** * The status of the report. */ export type ReportStatus = "created" | "running" | "completed"; /** * Options to pass to create a OutboundReportInstance */ export interface OutboundReportListInstanceCreateOptions { /** */ insightsV2CreatePhoneNumbersReportRequest?: InsightsV2CreatePhoneNumbersReportRequest; } export interface OutboundReportSolution { } export interface OutboundReportListInstance { _version: V2; _solution: OutboundReportSolution; _uri: string; /** * Create a OutboundReportInstance * * @param callback - Callback to handle processed record * * @returns Resolves to processed OutboundReportInstance */ create(callback?: (error: Error | null, item?: OutboundReportInstance) => any): Promise; /** * Create a OutboundReportInstance * * @param params - Body for request * @param headers - header params for request * @param callback - Callback to handle processed record * * @returns Resolves to processed OutboundReportInstance */ create(params: InsightsV2CreatePhoneNumbersReportRequest, headers?: any, callback?: (error: Error | null, item?: OutboundReportInstance) => any): Promise; /** * Create a OutboundReportInstance and return HTTP info * * @param callback - Callback to handle processed record * * @returns Resolves to processed OutboundReportInstance with HTTP metadata */ createWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse) => any): Promise>; /** * Create a OutboundReportInstance 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 OutboundReportInstance with HTTP metadata */ createWithHttpInfo(params: InsightsV2CreatePhoneNumbersReportRequest, 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 OutboundReportListInstance(version: V2): OutboundReportListInstance; interface OutboundReportResource { account_sid: string; report_id: string; status: ReportStatus; request_meta: ReportMetadata; url: string; } export declare class OutboundReportInstance { protected _version: V2; constructor(_version: V2, payload: OutboundReportResource); /** * The unique SID identifier of the Account. */ accountSid: string; /** * The report identifier as Voice Insights Report TTID. */ reportId: string; status: ReportStatus; requestMeta: ReportMetadata; /** * The URL of this resource. */ url: string; /** * Provide a user-friendly representation * * @returns Object */ toJSON(): { accountSid: string; reportId: string; status: ReportStatus; requestMeta: ReportMetadata; url: string; }; [inspect.custom](_depth: any, options: InspectOptions): string; } export {};