( chatId: Id<ChatResponse>, req: ChatMessageCreateRequest, )
| 469 | } |
| 470 | |
| 471 | const postChatMessage = async ( |
| 472 | chatId: Id<ChatResponse>, |
| 473 | req: ChatMessageCreateRequest, |
| 474 | ): Promise<ChatMessageResponse> => { |
| 475 | return ( |
| 476 | await post<ChatMessageCreateRequest, ChatMessageResponse>( |
| 477 | postChatMessagesApiPath(chatId), |
| 478 | req, |
| 479 | ) |
| 480 | ).response; |
| 481 | }; |
| 482 | |
| 483 | const indexDocument = async ({ |
| 484 | collectionId, |
no test coverage detected