fix(guild): treat very high as high without phone verification (#3095)

This commit is contained in:
Hampus
2026-10-01 20:33:02 +02:00
committed by GitHub
parent d691047884
commit 2df82b2b5e
28 changed files with 289 additions and 18 deletions
@@ -113,6 +113,9 @@ export const InstanceFeaturesSchema = z
self_hosted: z.boolean().describe('Whether this is a self-hosted instance'),
presigned_attachment_uploads: z.boolean().describe('Whether clients can request presigned attachment upload URLs'),
emails_enabled: z.boolean().describe('Whether the instance sends emails (verification, password reset, etc.)'),
phone_verification_enabled: z
.boolean()
.describe('Whether users can verify a phone number, so the very high guild verification level applies'),
})
.describe('Feature flags for this instance');
export type InstanceFeatures = z.infer<typeof InstanceFeaturesSchema>;