|
1 | 1 | import { z } from "zod"; |
2 | 2 |
|
3 | | -const telemetryCategorySchema = z.object({ |
4 | | - enabled: z.boolean().optional(), |
5 | | -}); |
| 3 | +function telemetryCategorySchema() { |
| 4 | + return z.object({ |
| 5 | + enabled: z.boolean().optional(), |
| 6 | + }); |
| 7 | +} |
6 | 8 |
|
7 | 9 | const telemetryCategoriesSchema = z.object({ |
8 | | - captcha: telemetryCategorySchema.optional(), |
9 | | - connection: telemetryCategorySchema.optional(), |
10 | | - console: telemetryCategorySchema.optional(), |
11 | | - control: telemetryCategorySchema.optional(), |
12 | | - interaction: telemetryCategorySchema.optional(), |
13 | | - network: telemetryCategorySchema.optional(), |
14 | | - page: telemetryCategorySchema.optional(), |
15 | | - screenshot: telemetryCategorySchema.optional(), |
16 | | - system: telemetryCategorySchema.optional(), |
| 10 | + captcha: telemetryCategorySchema().optional(), |
| 11 | + connection: telemetryCategorySchema().optional(), |
| 12 | + console: telemetryCategorySchema().optional(), |
| 13 | + control: telemetryCategorySchema().optional(), |
| 14 | + interaction: telemetryCategorySchema().optional(), |
| 15 | + network: telemetryCategorySchema().optional(), |
| 16 | + page: telemetryCategorySchema().optional(), |
| 17 | + screenshot: telemetryCategorySchema().optional(), |
| 18 | + system: telemetryCategorySchema().optional(), |
17 | 19 | }); |
18 | 20 |
|
19 | 21 | export const managedAuthBrowserTelemetrySchema = z |
|
0 commit comments