mirror of
https://github.com/versia-pub/server.git
synced 2026-04-28 13:19:16 +02:00
refactor(api): ♻️ Move all client schema code to new package
This commit is contained in:
parent
52602c3da7
commit
3fe07a79b8
128 changed files with 3904 additions and 169 deletions
26
packages/client/schemas/familiar-followers.ts
Normal file
26
packages/client/schemas/familiar-followers.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import { z } from "@hono/zod-openapi";
|
||||
import { Account } from "./account.ts";
|
||||
|
||||
export const FamiliarFollowers = z
|
||||
.object({
|
||||
id: Account.shape.id.openapi({
|
||||
description: "The ID of the Account in the database.",
|
||||
example: "48214efb-1f3c-459a-abfa-618a5aeb2f7a",
|
||||
externalDocs: {
|
||||
url: "https://docs.joinmastodon.org/entities/FamiliarFollowers/#id",
|
||||
},
|
||||
}),
|
||||
accounts: z.array(Account).openapi({
|
||||
description: "Accounts you follow that also follow this account.",
|
||||
externalDocs: {
|
||||
url: "https://docs.joinmastodon.org/entities/FamiliarFollowers/#accounts",
|
||||
},
|
||||
}),
|
||||
})
|
||||
.openapi({
|
||||
description:
|
||||
"Represents a subset of your follows who also follow some other user.",
|
||||
externalDocs: {
|
||||
url: "https://docs.joinmastodon.org/entities/FamiliarFollowers",
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue