1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-21 13:47:39 +02:00
unleash.unleash/src/lib/openapi/spec/telemetry-settings-schema.ts
Christopher Kolstad 53354224fc
chore: Bump biome and configure husky (#6589)
Upgrades biome to 1.6.1, and updates husky pre-commit hook.

Most changes here are making type imports explicit.
2024-03-18 13:58:05 +01:00

30 lines
993 B
TypeScript

import type { FromSchema } from 'json-schema-to-ts';
export const telemetrySettingsSchema = {
$id: '#/components/schemas/telemetrySettingsSchema',
type: 'object',
additionalProperties: false,
required: ['versionInfoCollectionEnabled', 'featureInfoCollectionEnabled'],
description:
'Contains information about which settings are configured for version info collection and feature usage collection.',
properties: {
versionInfoCollectionEnabled: {
type: 'boolean',
description:
'Whether collection of version info is enabled/active.',
example: true,
},
featureInfoCollectionEnabled: {
type: 'boolean',
description:
'Whether collection of feature usage metrics is enabled/active.',
example: true,
},
},
components: {},
} as const;
export type TelemetrySettingsSchema = FromSchema<
typeof telemetrySettingsSchema
>;