mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(api): ✨ Add Emoji Reactions
This commit is contained in:
parent
70974d3c35
commit
9722b94eae
17 changed files with 755 additions and 7 deletions
|
|
@ -73,6 +73,21 @@ export const NoteReaction = z
|
|||
ref: "NoteReaction",
|
||||
});
|
||||
|
||||
/* Versia Server API extension */
|
||||
export const NoteReactionWithAccounts = NoteReaction.extend({
|
||||
account_ids: z.array(Id).openapi({
|
||||
description: "Array of user IDs who reacted with this emoji.",
|
||||
example: [
|
||||
"1d0185bc-d949-4ff5-8a15-1d691b256489",
|
||||
"d9de4aeb-4591-424d-94ec-659f958aa23d",
|
||||
"1f0c4eb9-a742-4c82-96c9-697a39831cd1",
|
||||
],
|
||||
}),
|
||||
}).openapi({
|
||||
description: "Information about a reaction to a note with account IDs.",
|
||||
ref: "NoteReactionWithAccounts",
|
||||
});
|
||||
|
||||
/* Versia Server API extension */
|
||||
export const SSOConfig = z.object({
|
||||
forced: z.boolean().openapi({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue