/** * Bandwidth * Bandwidth\'s Communication APIs * * The version of the OpenAPI document: 1.0.0 * Contact: letstalk@bandwidth.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import { type RequestArgs, BaseAPI } from '../base'; import type { AsyncLookupRequest } from '../models'; import type { CreateAsyncBulkLookupResponse } from '../models'; import type { CreateSyncLookupResponse } from '../models'; import type { GetAsyncBulkLookupResponse } from '../models'; import type { SyncLookupRequest } from '../models'; /** * PhoneNumberLookupApi - axios parameter creator */ export declare const PhoneNumberLookupApiAxiosParamCreator: (configuration?: Configuration) => { /** * Creates an asynchronous bulk phone number lookup request. Maximum of 15,000 telephone numbers per request. Use the [Get Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/getAsyncBulkLookup) endpoint to check the status of the request and view the results. * @summary Create Asynchronous Bulk Number Lookup * @param {string} accountId * @param {AsyncLookupRequest} asyncLookupRequest Asynchronous bulk phone number lookup request. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAsyncBulkLookup: (accountId: string, asyncLookupRequest: AsyncLookupRequest, options?: RawAxiosRequestConfig) => Promise; /** * Creates a synchronous phone number lookup request. Maximum of 100 telephone numbers per request. * @summary Create Synchronous Number Lookup * @param {string} accountId * @param {SyncLookupRequest} syncLookupRequest Synchronous phone number lookup request. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSyncLookup: (accountId: string, syncLookupRequest: SyncLookupRequest, options?: RawAxiosRequestConfig) => Promise; /** * Get an existing [Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/createAsyncBulkLookup). Use this endpoint to check the status of the request and view the results. * @summary Get Asynchronous Bulk Number Lookup * @param {string} accountId * @param {string} requestId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAsyncBulkLookup: (accountId: string, requestId: string, options?: RawAxiosRequestConfig) => Promise; }; /** * PhoneNumberLookupApi - functional programming interface */ export declare const PhoneNumberLookupApiFp: (configuration?: Configuration) => { /** * Creates an asynchronous bulk phone number lookup request. Maximum of 15,000 telephone numbers per request. Use the [Get Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/getAsyncBulkLookup) endpoint to check the status of the request and view the results. * @summary Create Asynchronous Bulk Number Lookup * @param {string} accountId * @param {AsyncLookupRequest} asyncLookupRequest Asynchronous bulk phone number lookup request. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAsyncBulkLookup(accountId: string, asyncLookupRequest: AsyncLookupRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Creates a synchronous phone number lookup request. Maximum of 100 telephone numbers per request. * @summary Create Synchronous Number Lookup * @param {string} accountId * @param {SyncLookupRequest} syncLookupRequest Synchronous phone number lookup request. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSyncLookup(accountId: string, syncLookupRequest: SyncLookupRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get an existing [Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/createAsyncBulkLookup). Use this endpoint to check the status of the request and view the results. * @summary Get Asynchronous Bulk Number Lookup * @param {string} accountId * @param {string} requestId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAsyncBulkLookup(accountId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * PhoneNumberLookupApi - factory interface */ export declare const PhoneNumberLookupApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Creates an asynchronous bulk phone number lookup request. Maximum of 15,000 telephone numbers per request. Use the [Get Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/getAsyncBulkLookup) endpoint to check the status of the request and view the results. * @summary Create Asynchronous Bulk Number Lookup * @param {string} accountId * @param {AsyncLookupRequest} asyncLookupRequest Asynchronous bulk phone number lookup request. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAsyncBulkLookup(accountId: string, asyncLookupRequest: AsyncLookupRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Creates a synchronous phone number lookup request. Maximum of 100 telephone numbers per request. * @summary Create Synchronous Number Lookup * @param {string} accountId * @param {SyncLookupRequest} syncLookupRequest Synchronous phone number lookup request. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSyncLookup(accountId: string, syncLookupRequest: SyncLookupRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get an existing [Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/createAsyncBulkLookup). Use this endpoint to check the status of the request and view the results. * @summary Get Asynchronous Bulk Number Lookup * @param {string} accountId * @param {string} requestId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAsyncBulkLookup(accountId: string, requestId: string, options?: RawAxiosRequestConfig): AxiosPromise; }; /** * PhoneNumberLookupApi - object-oriented interface */ export declare class PhoneNumberLookupApi extends BaseAPI { /** * Creates an asynchronous bulk phone number lookup request. Maximum of 15,000 telephone numbers per request. Use the [Get Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/getAsyncBulkLookup) endpoint to check the status of the request and view the results. * @summary Create Asynchronous Bulk Number Lookup * @param {string} accountId * @param {AsyncLookupRequest} asyncLookupRequest Asynchronous bulk phone number lookup request. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAsyncBulkLookup(accountId: string, asyncLookupRequest: AsyncLookupRequest, options?: RawAxiosRequestConfig): Promise>; /** * Creates a synchronous phone number lookup request. Maximum of 100 telephone numbers per request. * @summary Create Synchronous Number Lookup * @param {string} accountId * @param {SyncLookupRequest} syncLookupRequest Synchronous phone number lookup request. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSyncLookup(accountId: string, syncLookupRequest: SyncLookupRequest, options?: RawAxiosRequestConfig): Promise>; /** * Get an existing [Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/createAsyncBulkLookup). Use this endpoint to check the status of the request and view the results. * @summary Get Asynchronous Bulk Number Lookup * @param {string} accountId * @param {string} requestId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAsyncBulkLookup(accountId: string, requestId: string, options?: RawAxiosRequestConfig): Promise>; }