|
| 1 | +import { BehaviorSubject, Observable } from 'rxjs'; |
| 2 | +import { Activity, DirectLineOptions, Conversation, IBotConnection } from './directLine'; |
| 3 | +import { ConnectionStatus } from './directline.enum'; |
| 4 | +export * from './directline.interface'; |
| 5 | +export * from './directline.enum'; |
| 6 | +export declare class DirectLine implements IBotConnection { |
| 7 | + connectionStatus$: BehaviorSubject<ConnectionStatus>; |
| 8 | + activity$: Observable<Activity>; |
| 9 | + private domain; |
| 10 | + private webSocket; |
| 11 | + conversationId: string; |
| 12 | + private expiredTokenExhaustion; |
| 13 | + private secret; |
| 14 | + private token; |
| 15 | + private watermark; |
| 16 | + private streamUrl; |
| 17 | + private _botAgent; |
| 18 | + private _userAgent; |
| 19 | + referenceGrammarId: string; |
| 20 | + private pollingInterval; |
| 21 | + private tokenRefreshSubscription; |
| 22 | + constructor(options: DirectLineOptions); |
| 23 | + private checkConnection; |
| 24 | + setConnectionStatusFallback(connectionStatusFrom: ConnectionStatus, connectionStatusTo: ConnectionStatus, maxAttempts?: number): (status: ConnectionStatus) => ConnectionStatus; |
| 25 | + private expiredToken; |
| 26 | + private startConversation; |
| 27 | + private refreshTokenLoop; |
| 28 | + private refreshToken; |
| 29 | + reconnect(conversation: Conversation): void; |
| 30 | + end(): void; |
| 31 | + getSessionId(): Observable<string>; |
| 32 | + postActivity(activity: Activity): Observable<string>; |
| 33 | + private postMessageWithAttachments; |
| 34 | + private catchPostError; |
| 35 | + private catchExpiredToken; |
| 36 | + private pollingGetActivity$; |
| 37 | + private observableFromActivityGroup; |
| 38 | + private webSocketActivity$; |
| 39 | + private getRetryDelay; |
| 40 | + private observableWebSocket; |
| 41 | + private reconnectToConversation; |
| 42 | + private commonHeaders; |
| 43 | + private getBotAgent; |
| 44 | +} |
0 commit comments