(headers, input)
| 374 | headers, |
| 375 | input, |
| 376 | 'sendMessageV2' |
| 377 | ); |
| 378 | if (typeof data.executionId !== 'string') { |
| 379 | throw new Error( |
| 380 | `Unexpected sendMessageV2 response shape: ${JSON.stringify(data).slice(0, 500)}` |
| 381 | ); |
| 382 | } |
| 383 | return data as unknown as CloudAgentSendMessageOutput; |
| 384 | }, |
| 385 | |
| 386 | async getSessionHealth(headers, input) { |