/// import http from 'http'; import { Callback } from '../model/callback'; import { GetCallbackInstances200Response } from '../model/getCallbackInstances200Response'; import { GetCallbacks200Response } from '../model/getCallbacks200Response'; import { PutCallbackInstanceStatusRequest } from '../model/putCallbackInstanceStatusRequest'; import { Authentication, Interceptor } from '../model/models'; import { HttpBasicAuth, ApiKeyAuth } from '../model/models'; export declare enum CallbacksApiApiKeys { ApiKeyAuth = 0 } export declare class CallbacksApi { protected _basePath: string; protected _defaultHeaders: any; protected _useQuerystring: boolean; protected authentications: { default: Authentication; ApiKeyAuth: ApiKeyAuth; BasicAuth: HttpBasicAuth; }; protected interceptors: Interceptor[]; constructor(basePath?: string); constructor(username: string, password: string, basePath?: string); set useQuerystring(value: boolean); set basePath(basePath: string); set defaultHeaders(defaultHeaders: any); get defaultHeaders(): any; get basePath(): string; setDefaultAuthentication(auth: Authentication): void; setApiKey(key: CallbacksApiApiKeys, value: string): void; set username(username: string); set password(password: string); addInterceptor(interceptor: Interceptor): void; deleteCallbackById(xApiKey: string, callbackId: string, contentType: 'application/vnd.whispir.api-callback-v1+json' | 'application/vnd.whispir.api-callback-v1+xml', accept: 'application/vnd.whispir.api-callback-v1+json' | 'application/vnd.whispir.api-callback-v1+xml', options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body?: any; }>; getCallbackById(xApiKey: string, callbackId: string, accept: 'application/vnd.whispir.api-callback-v1+json' | 'application/vnd.whispir.api-callback-v1+xml', options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Callback; }>; getCallbackInstances(xApiKey: string, callbackId: string, accept: 'application/vnd.whispir.api-call-v1+json' | 'application/vnd.whispir.api-call-v1+xml', limit?: number, offset?: number, sortOrder?: 'asc' | 'desc', sortFields?: string, status?: 'SUCCESS' | 'FAILED', options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: GetCallbackInstances200Response; }>; getCallbacks(xApiKey: string, accept: 'application/vnd.whispir.api-callback-v1+json' | 'application/vnd.whispir.api-callback-v1+xml', limit?: number, offset?: number, sortOrder?: 'asc' | 'desc', sortFields?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: GetCallbacks200Response; }>; postCallbacks(xApiKey: string, contentType: 'application/vnd.whispir.api-callback-v1+json' | 'application/vnd.whispir.api-callback-v1+xml', accept: 'application/vnd.whispir.api-callback-v1+json' | 'application/vnd.whispir.api-callback-v1+xml', callback: Callback, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Callback; }>; putCallbackById(xApiKey: string, callbackId: string, contentType: 'application/vnd.whispir.api-callback-v1+json' | 'application/vnd.whispir.api-callback-v1+xml', accept: 'application/vnd.whispir.api-callback-v1+json' | 'application/vnd.whispir.api-callback-v1+xml', callback?: Callback, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body?: any; }>; putCallbackInstanceStatus(xApiKey: string, callbackId: string, contentType: 'application/vnd.whispir.api-call-v1+json' | 'application/vnd.whispir.api-call-v1+xml', accept: 'application/vnd.whispir.api-call-v1+json' | 'application/vnd.whispir.api-call-v1+xml', id: string, putCallbackInstanceStatusRequest?: PutCallbackInstanceStatusRequest, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body?: any; }>; }