mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +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
17
packages/sdk/schemas/common.ts
Normal file
17
packages/sdk/schemas/common.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { z } from "zod";
|
||||
|
||||
export const f64 = z
|
||||
.number()
|
||||
.nonnegative()
|
||||
.max(2 ** 64 - 1);
|
||||
|
||||
export const u64 = z
|
||||
.number()
|
||||
.int()
|
||||
.nonnegative()
|
||||
.max(2 ** 64 - 1);
|
||||
|
||||
export const url = z
|
||||
.string()
|
||||
.url()
|
||||
.transform((z) => new URL(z));
|
||||
Loading…
Add table
Add a link
Reference in a new issue