( orgIdOrSlug: string, req: ChatCreateRequest, )
| 11 | import { Id } from "@repo/core"; |
| 12 | |
| 13 | export const postChat = async ( |
| 14 | orgIdOrSlug: string, |
| 15 | req: ChatCreateRequest, |
| 16 | ): Promise<ChatResponse> => { |
| 17 | return ( |
| 18 | await post<ChatCreateRequest, ChatResponse>( |
| 19 | organizationsIdOrSlugChatApiPath(orgIdOrSlug), |
| 20 | req, |
| 21 | ) |
| 22 | ).response; |
| 23 | }; |
| 24 | |
| 25 | export const postChatMessage = async ( |
| 26 | chatId: Id<ChatResponse>, |
no test coverage detected