mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
feat(federation): ⬆️ Upgrade to Versia 0.5
This commit is contained in:
parent
e6c7e8a597
commit
ed9ffe34f4
10 changed files with 34 additions and 28 deletions
|
|
@ -5,9 +5,9 @@ import { InboxJobType, inboxQueue } from "~/classes/queues/inbox";
|
|||
|
||||
const schemas = {
|
||||
header: z.object({
|
||||
"x-signature": z.string().optional(),
|
||||
"x-nonce": z.string().optional(),
|
||||
"x-signed-by": z
|
||||
"versia-signature": z.string().optional(),
|
||||
"versia-signed-at": z.coerce.number().optional(),
|
||||
"versia-signed-by": z
|
||||
.string()
|
||||
.url()
|
||||
.or(z.string().startsWith("instance "))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue