( chatId: Id<ChatResponse>, req: ChatMessageCreateRequest, )
| 23 | }; |
| 24 | |
| 25 | export const postChatMessage = async ( |
| 26 | chatId: Id<ChatResponse>, |
| 27 | req: ChatMessageCreateRequest, |
| 28 | ): Promise<ChatMessageResponse> => { |
| 29 | return ( |
| 30 | await post<ChatMessageCreateRequest, ChatMessageResponse>( |
| 31 | postChatMessagesApiPath(chatId), |
| 32 | req, |
| 33 | ) |
| 34 | ).response; |
| 35 | }; |
no test coverage detected