Skip to content

Commit

Permalink
add flags to telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7d8 committed Dec 28, 2024
1 parent a4592c2 commit be59253
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
19 changes: 13 additions & 6 deletions src/globals/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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)
})
})
})
Expand Down

0 comments on commit be59253

Please sign in to comment.