mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
feat(api): defer registration phone verification to community joins (#1709)
This commit is contained in:
1 parent
7e1ca9ed6a
commit
d7b2e67c35
39 files changed
+1000
-32
No files matched your search
@@ -527,6 +527,11 @@ const InstancePolicyResponse = z.object({
|
||||
youtube: z.boolean(),
|
||||
bluesky: z.boolean(),
|
||||
}),
|
||||
deferred_phone_gate: z.object({
|
||||
enabled: z.boolean(),
|
||||
window_hours: z.number(),
|
||||
member_threshold: z.number(),
|
||||
}),
|
||||
});
|
||||
|
||||
const CaptchaProviderSchema = z.enum(['hcaptcha', 'turnstile', 'none']);
|
||||
@@ -735,6 +740,13 @@ export const InstanceConfigUpdateRequest = z.object({
|
||||
bluesky_enabled: z.boolean().nullish(),
|
||||
})
|
||||
.nullish(),
|
||||
deferred_phone_gate: z
|
||||
.object({
|
||||
enabled: z.boolean().optional(),
|
||||
window_hours: z.number().positive().max(8760).optional(),
|
||||
member_threshold: z.number().int().positive().max(1_000_000).optional(),
|
||||
})
|
||||
.nullish(),
|
||||
})
|
||||
.nullish(),
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user