UNPKG

@prefecthq/prefect-ui-library

Version:

This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.

28 lines (27 loc) 985 B
import { SchemaDefinition, SchemaPropertyType, SchemaStringFormat } from '../../schemas/types/schema'; export type SchemaPropertiesResponse = Record<string, SchemaPropertyResponse>; export type SchemaDefinitionsResponse = Record<string, SchemaPropertyResponse>; export type SchemaPropertyResponse = { position?: number; block_type_slug?: string; $ref?: SchemaDefinition; anyOf?: SchemaPropertyResponse[]; allOf?: SchemaPropertyResponse[]; example?: string; default?: unknown; const?: unknown; description?: string; enum?: unknown[]; format?: SchemaStringFormat; items?: SchemaPropertyResponse | SchemaPropertyResponse[]; prefixItems?: SchemaPropertyResponse[]; maxItems?: number; minItems?: number; properties?: SchemaPropertiesResponse; required?: string[]; title?: string; type?: SchemaPropertyType; }; export type SchemaResponse = SchemaPropertyResponse & { definitions?: SchemaDefinitionsResponse; };