forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

postMessage.ts13 lines, 345 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Message } from "../client";
3
4export type PostMessageBody = {
5 recipient_id: string;
6 subject: string;
7 body?: string | null;
8 label?: string | null;
9};
10
11export function postMessage(body: PostMessageBody): Promise<Message> {
12 return client<Message>("/messages", { method: "POST", body });
13}