/// import http from 'http'; import { GetMessageResponsesById200Response } from '../model/getMessageResponsesById200Response'; import { GetMessages200Response } from '../model/getMessages200Response'; import { Message } from '../model/message'; import { MessageStatus } from '../model/messageStatus'; import { Authentication, Interceptor } from '../model/models'; import { HttpBasicAuth, ApiKeyAuth } from '../model/models'; export declare enum MessagesApiApiKeys { ApiKeyAuth = 0 } export declare class MessagesApi { 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: MessagesApiApiKeys, value: string): void; set username(username: string); set password(password: string); addInterceptor(interceptor: Interceptor): void; getMessageById(workspaceId: string, xApiKey: string, accept: 'application/vnd.whispir.message-v1+json' | 'application/vnd.whispir.bulkmessage-v1+json' | 'application/vnd.whispir.message-v1+xml' | 'application/vnd.whispir.bulkmessage-v1+xml', messageId: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Message; }>; getMessageResponsesById(workspaceId: string, xApiKey: string, accept: 'application/vnd.whispir.messageresponse-v1+json' | 'application/vnd.whispir.messageresponse-v1+xml', messageId: string, limit?: number, offset?: number, sortOrder?: 'asc' | 'desc', sortFields?: string, view?: 'summary' | 'detailed', filter?: 'noresponse' | 'notmatched' | 'responserule', options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: GetMessageResponsesById200Response; }>; getMessageStatus(workspaceId: string, xApiKey: string, accept: 'application/vnd.whispir.messagestatus-v1+json' | 'application/vnd.whispir.messagestatus-v1+xml', messageId: string, limit?: number, offset?: number, sortOrder?: 'asc' | 'desc', sortFields?: string, view?: 'summary' | 'detailed', filter?: 'default' | 'responserule', options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: MessageStatus; }>; getMessages(workspaceId: string, xApiKey: string, accept: 'application/vnd.whispir.message-v1+json' | 'application/vnd.whispir.bulkmessage-v1+json' | 'application/vnd.whispir.message-v1+xml' | 'application/vnd.whispir.bulkmessage-v1+xml', limit?: number, offset?: number, sortOrder?: 'asc' | 'desc', sortFields?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: GetMessages200Response; }>; postMessages(workspaceId: string, xApiKey: string, contentType: 'application/vnd.whispir.message-v1+json' | 'application/vnd.whispir.bulkmessage-v1+json' | 'application/vnd.whispir.message-v1+xml' | 'application/vnd.whispir.bulkmessage-v1+xml', accept: 'application/vnd.whispir.message-v1+json' | 'application/vnd.whispir.bulkmessage-v1+json' | 'application/vnd.whispir.message-v1+xml' | 'application/vnd.whispir.bulkmessage-v1+xml', message: Message, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Message; }>; }