mirror of
https://github.com/versia-pub/server.git
synced 2026-04-28 13:19:16 +02:00
docs(federation): 📝 Update SDK documentation
This commit is contained in:
parent
f79b0bc999
commit
45e5460975
67 changed files with 332 additions and 65 deletions
19
packages/sdk/schemas/webfinger.ts
Normal file
19
packages/sdk/schemas/webfinger.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import { z } from "zod";
|
||||
import { url } from "./common.ts";
|
||||
|
||||
export const WebFingerSchema = z.object({
|
||||
subject: url,
|
||||
aliases: z.array(url).optional(),
|
||||
properties: z.record(url, z.string().or(z.null())).optional(),
|
||||
links: z
|
||||
.array(
|
||||
z.object({
|
||||
rel: z.string(),
|
||||
type: z.string().optional(),
|
||||
href: url.optional(),
|
||||
titles: z.record(z.string(), z.string()).optional(),
|
||||
properties: z.record(url, z.string().or(z.null())).optional(),
|
||||
}),
|
||||
)
|
||||
.optional(),
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue