[api] msg delete

This commit is contained in:
Devin Zuczek
2026-08-22 12:23:31 -04:00
parent 8c5de75eed
commit 1a2643240b
3 changed files with 47 additions and 0 deletions
+9
View File
@@ -213,6 +213,15 @@ export const SendMultipleMessagesRequest = z.object({
Data: z.string().optional().describe('The message payload; often empty'),
})
/**
* `POST /api/messages/v3/delete` JSON body — the messages the client is dropping from
* its inbox. Ids are the `Id` of a stored message, which this server has never issued:
* with no message store the list is only ever echoed back as accepted.
*/
export const DeleteMessagesRequest = z.object({
MessageIds: z.array(z.int()).describe('Ids of the messages to delete'),
})
/**
* `POST /api/messages/v1/friendOnlineStatus` — how many of the caller's friends are
* online, wrapped in the client's `{ success, value }` envelope.