feat(api): track privacy setup and open community DMs by default (#3322)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-08 20:47:22 +02:00
1 parent ae820ba4ea
commit e9a4f33a7e
13 files changed
+122 -6

No files matched your search

@@ -394,6 +394,14 @@ export const UserSettingsUpdateRequest = z
default_share_voice_activity: z
.boolean()
.describe('Default share_voice_activity applied to new friend relationships'),
privacy_setup_version: z
.number()
.int()
.min(1)
.max(1000)
.describe(
'Version of the privacy setup the user just reviewed. The server also records privacy_setup_completed_at as the current time.',
),
synced_preferences: z
.string()
.max(SYNCED_PREFERENCES_MAX_ENCODED_LENGTH)
@@ -375,6 +375,14 @@ export const UserSettingsResponse = z.object({
.describe(
'Default value of share_voice_activity applied to newly accepted friend relationships. Read-only here; mutated via PUT /users/@me/settings/voice-activity-sharing.',
),
privacy_setup_version: z
.number()
.int()
.describe('Latest privacy setup version the user has reviewed, 0 if never reviewed'),
privacy_setup_completed_at: z.iso
.datetime()
.nullable()
.describe('When the user last completed the privacy setup, or null if never'),
});
export type UserSettingsResponse = z.infer<typeof UserSettingsResponse>;