Enable opt-in telemetry

This commit is contained in:
Will Chen
2025-04-21 12:49:54 -07:00
parent 497a3b7dac
commit 16d5320485
18 changed files with 299 additions and 81 deletions

View File

@@ -89,6 +89,8 @@ export const UserSettingsSchema = z.object({
githubUser: GithubUserSchema.optional(),
githubAccessToken: SecretSchema.optional(),
autoApproveChanges: z.boolean().optional(),
telemetryConsent: z.enum(["opted_in", "opted_out", "unset"]).optional(),
telemetryUserId: z.string().optional(),
// DEPRECATED.
runtimeMode: RuntimeModeSchema.optional(),
});