| .. | .. |
|---|
| 28 | 28 | export interface WsTextMessage { |
|---|
| 29 | 29 | type: "text"; |
|---|
| 30 | 30 | content: string; |
|---|
| 31 | + sessionId?: string; |
|---|
| 31 | 32 | } |
|---|
| 32 | 33 | |
|---|
| 33 | 34 | export interface WsVoiceMessage { |
|---|
| .. | .. |
|---|
| 35 | 36 | audioBase64: string; |
|---|
| 36 | 37 | content: string; |
|---|
| 37 | 38 | messageId?: string; |
|---|
| 39 | + sessionId?: string; |
|---|
| 38 | 40 | } |
|---|
| 39 | 41 | |
|---|
| 40 | 42 | export interface WsImageMessage { |
|---|
| .. | .. |
|---|
| 42 | 44 | imageBase64: string; |
|---|
| 43 | 45 | caption: string; |
|---|
| 44 | 46 | mimeType: string; |
|---|
| 47 | + sessionId?: string; |
|---|
| 45 | 48 | } |
|---|
| 46 | 49 | |
|---|
| 47 | 50 | export interface WsCommandMessage { |
|---|
| 48 | 51 | type: "command"; |
|---|
| 49 | 52 | command: string; |
|---|
| 50 | 53 | args?: Record<string, unknown>; |
|---|
| 54 | + sessionId?: string; |
|---|
| 51 | 55 | } |
|---|
| 52 | 56 | |
|---|
| 53 | 57 | export type WsOutgoing = WsTextMessage | WsVoiceMessage | WsImageMessage | WsCommandMessage; |
|---|