diff --git a/package.json b/package.json index ae20443..7ece5f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "api", - "version": "1.1.1", + "version": "1.1.2", "scripts": { "build": "rm -rf lib && esbuild `find src \\( -name '*.ts' -o -name '*.tsx' \\)` --platform='node' --sourcemap --ignore-annotations --format='cjs' --target='es2022' --outdir='lib' && esbuild src/index.ts --platform='node' --sourcemap --ignore-annotations --format='cjs' --target='es2022' --outdir='lib' --banner:js='require(\"module-alias\").addAlias(\"@\", __dirname);'", "kit": "drizzle-kit", diff --git a/src/globals/telemetry.ts b/src/globals/telemetry.ts index c4ca62b..150b801 100644 --- a/src/globals/telemetry.ts +++ b/src/globals/telemetry.ts @@ -14,6 +14,13 @@ export const telemetrySchema = z.object({ version: z.string().max(31), docker: z.boolean(), developer: z.boolean(), + + flags: z.object({ + disable_attribution: z.boolean(), + is_developer: z.boolean(), + show_in_sidebar: z.boolean() + }), + extensions: z.object({ identifier: z.string(), version: z.string(), @@ -22,21 +29,21 @@ export const telemetrySchema = z.object({ }), panel: z.object({ - version: z.string(), - phpVersion: z.string(), + version: z.string().max(31), + phpVersion: z.string().max(31), drivers: z.object({ backup: z.object({ - type: z.string() + type: z.string().max(31) }), cache: z.object({ - type: z.string() + type: z.string().max(31) }), database: z.object({ - type: z.string(), - version: z.string() + type: z.string().max(31), + version: z.string().max(255) }) }) })