refactor(api): emit moderation events and apply account actions (#3031)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-29 12:24:15 +02:00
1 parent c488906131
commit 364084c819
385 files changed
+8994 -22221

No files matched your search

@@ -137,9 +137,7 @@ export const UserPrivateResponse = UserPartialResponse.extend({
force_inbound_phone_verification: z
.boolean()
.optional()
.describe(
'Whether this account is forced through the inbound (expensive-destination) phone verification flow regardless of prefix, for debugging',
),
.describe('Whether this account is forced through the inbound phone verification flow, for debugging'),
password_last_changed_at: z.string().nullable().describe('ISO8601 timestamp of the last password change'),
last_voice_activity_sharing_change_at: z
.string()
@@ -653,13 +651,9 @@ const PhoneGateEscapeGuildResponse = z.object({
});
export const PhoneGateEscapePreviewResponse = z.object({
available: z.boolean().describe('Whether this account can set the deferred phone verification check aside right now'),
guilds: z
.array(PhoneGateEscapeGuildResponse)
.describe('Communities that trigger the phone check and will be left when the escape runs'),
owned_guilds: z
.array(PhoneGateEscapeGuildResponse)
.describe('Communities that trigger the phone check but are owned by this user, so they are kept'),
available: z.boolean().describe('Whether this account can set a due phone verification requirement aside right now'),
guilds: z.array(PhoneGateEscapeGuildResponse).describe('Always empty, the escape leaves no community'),
owned_guilds: z.array(PhoneGateEscapeGuildResponse).describe('Always empty, the escape leaves no community'),
});
export type PhoneGateEscapePreviewResponse = z.infer<typeof PhoneGateEscapePreviewResponse>;