import { FromSchema } from 'json-schema-to-ts'; import { sdkContextSchema } from './sdk-context-schema'; import { playgroundRequestSchema } from './playground-request-schema'; import { playgroundFeatureSchema } from './playground-feature-schema'; import { variantSchema } from './variant-schema'; import { overrideSchema } from './override-schema'; export const playgroundResponseSchema = { $id: '#/components/schemas/playgroundResponseSchema', description: 'The state of all features given the provided input.', type: 'object', additionalProperties: false, required: ['features', 'input'], properties: { input: { $ref: playgroundRequestSchema.$id, }, features: { type: 'array', items: { $ref: playgroundFeatureSchema.$id }, }, }, components: { schemas: { playgroundFeatureSchema, playgroundRequestSchema, sdkContextSchema, variantSchema, overrideSchema, }, }, } as const; export type PlaygroundResponseSchema = FromSchema< typeof playgroundResponseSchema >;