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 InboundReportInstance */ export interface InboundReportListInstanceCreateOptions { /** */ insightsV2CreatePhoneNumbersReportRequest?: InsightsV2CreatePhoneNumbersReportRequest; } export interface InboundReportSolution { } export interface InboundReportListInstance { _version: V2; _solution: InboundReportSolution; _uri: string; /** * Create a InboundReportInstance * * @param callback - Callback to handle processed record * * @returns Resolves to processed InboundReportInstance */ create(callback?: (error: Error | null, item?: InboundReportInstance) => any): Promise; /** * Create a InboundReportInstance * * @param params - Body for request * @param headers - header params for request * @param callback - Callback to handle processed record * * @returns Resolves to processed InboundReportInstance */ create(params: InsightsV2CreatePhoneNumbersReportRequest, headers?: any, callback?: (error: Error | null, item?: InboundReportInstance) => any): Promise; /** * Create a InboundReportInstance and return HTTP info * * @param callback - Callback to handle processed record * * @returns Resolves to processed InboundReportInstance with HTTP metadata */ createWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse) => any): Promise>; /** * Create a InboundReportInstance 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 InboundReportInstance 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 InboundReportListInstance(version: V2): InboundReportListInstance; interface InboundReportResource { account_sid: string; report_id: string; status: ReportStatus; request_meta: ReportMetadata; url: string; } export declare class InboundReportInstance { protected _version: V2; constructor(_version: V2, payload: InboundReportResource); /** * 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 {};