fix(api): 👽 Ignore what the Mastodon docs say, they're wrong

This commit is contained in:
Jesse Wierzbinski 2025-01-02 04:13:12 +01:00
parent 5d64ecd04f
commit cde2836982
No known key found for this signature in database
5 changed files with 35 additions and 27 deletions

View file

@ -24,20 +24,19 @@ export const WebPushSubscriptionInput = z
})
.strict(),
}),
policy: z
.enum(["all", "followed", "follower", "none"])
.default("all")
.openapi({
description:
"Specify whether to receive push notifications from all, followed, follower, or none users.",
}),
data: z
.object({
policy: z
.enum(["all", "followed", "follower", "none"])
.default("all")
.openapi({
description:
"Specify whether to receive push notifications from all, followed, follower, or none users.",
}),
alerts: PushSubscription.schema.shape.alerts,
})
.strict()
.default({
policy: "all",
alerts: {
mention: false,
favourite: false,