(sessionId: string, text: string, localId?: string | null, attachments?: AttachmentMetadata[], scheduledAt?: number | null)
| 388 | } |
| 389 | |
| 390 | async sendMessage(sessionId: string, text: string, localId?: string | null, attachments?: AttachmentMetadata[], scheduledAt?: number | null): Promise<void> { |
| 391 | await this.request(`/api/sessions/${encodeURIComponent(sessionId)}/messages`, { |
| 392 | method: 'POST', |
| 393 | body: JSON.stringify({ |
| 394 | text, |
| 395 | localId: localId ?? undefined, |
| 396 | attachments: attachments ?? undefined, |
| 397 | scheduledAt: scheduledAt ?? undefined |
| 398 | }) |
| 399 | }) |
| 400 | } |
| 401 | |
| 402 | async cancelMessage(sessionId: string, messageId: string): Promise<CancelMessageResponse> { |
| 403 | const response = await this.request( |
no test coverage detected