export type Contact = { readonly name?: string readonly url?: string readonly email?: string } export type ExternalDocumentation = { readonly description?: string readonly url: string } export type Header = { readonly description?: string readonly type: ItemsType readonly format?: FormatType readonly items?: Items readonly collectionFormat?: CollectionFormatType readonly default?: any readonly maximum?: number readonly exclusiveMaximum?: boolean readonly minimum?: number readonly exclusiveMinimum?: boolean readonly maxLength?: number readonly minLength?: number readonly pattern?: string readonly maxItems?: number readonly minItems?: number readonly uniqueItems?: boolean readonly enum?: readonly any[] readonly multipleOf?: number } export type Info = { readonly title: string readonly description?: string readonly termsOfService?: string readonly contact?: Contact readonly license?: License readonly version: string } export type Items = { readonly type: ItemsType readonly format?: FormatType readonly items?: Items readonly collectionFormat?: CollectionFormatType readonly default?: any readonly maximum?: number readonly exclusiveMaximum?: boolean readonly minimum?: number readonly exclusiveMinimum?: boolean readonly maxLength?: number readonly minLength?: number readonly pattern?: string readonly maxItems?: number readonly minItems?: number readonly uniqueItems?: boolean readonly enum?: readonly any[] readonly multipleOf?: number } export type License = { readonly name: string readonly url?: string } export type Operation = { readonly tags?: readonly string[] readonly summary?: string readonly description?: string readonly externalDocs?: ExternalDocumentation readonly operationId?: string readonly consumes?: readonly string[] readonly produces?: readonly string[] readonly parameters?: readonly Parameter | Reference[] readonly responses: map[io.apibuilder.swagger.v0.unions.response_or_ref] readonly schemes?: readonly string[] readonly deprecated?: boolean readonly security?: readonly map[[string]][] } export type Parameter = { readonly name: string readonly in: ParameterInType readonly description?: string readonly required: boolean readonly schema?: Schema readonly type?: string readonly format?: string readonly allowEmptyValue?: boolean readonly items?: Items readonly collectionFormat?: CollectionFormatType readonly default?: any readonly maximum?: number readonly exclusiveMaximum?: boolean readonly minimum?: number readonly exclusiveMinimum?: boolean readonly maxLength?: number readonly minLength?: number readonly pattern?: string readonly maxItems?: number readonly minItems?: number readonly uniqueItems?: boolean readonly enum?: readonly any[] readonly multipleOf?: number } export type PathItem = { readonly ref?: string readonly get?: Operation readonly put?: Operation readonly post?: Operation readonly delete?: Operation readonly options?: Operation readonly head?: Operation readonly patch?: Operation readonly parameters?: readonly Parameter | Reference[] } export type Reference = { readonly ref: string } export type Response = { readonly description: string readonly schema?: Schema readonly headers?: map[io.apibuilder.swagger.v0.models.header] readonly examples?: any } export type Schema = { readonly ref?: string readonly format?: FormatType readonly title?: string readonly description?: string readonly default?: any readonly multipleOf?: number readonly maximum?: number readonly exclusiveMaximum?: boolean readonly minimum?: number readonly exclusiveMinimum?: boolean readonly maxLength?: number readonly minLength?: number readonly pattern?: string readonly maxItems?: number readonly minItems?: number readonly uniqueItems?: boolean readonly maxProperties?: number readonly minProperties?: number readonly required?: readonly string[] readonly enum?: readonly any[] readonly type?: readonly string[] readonly items?: Schema readonly allOf?: readonly Schema[] readonly properties?: map[io.apibuilder.swagger.v0.models.schema] readonly additionalProperties?: Schema readonly discriminator?: string readonly readOnly?: boolean readonly xml?: Xml readonly externalDocs?: ExternalDocumentation readonly example?: any } export type SecurityScheme = { readonly type: SecuritySchemeType readonly description?: string readonly name?: string readonly in?: ApiKeyInType readonly flow?: string readonly authorizationUrl?: string readonly tokenUrl?: string readonly scopes?: map[string] } export type Swagger = { readonly swagger: string readonly info: Info readonly host?: string readonly basePath?: string readonly schemes?: readonly string[] readonly consumes?: readonly string[] readonly produces?: readonly string[] readonly paths: map[io.apibuilder.swagger.v0.models.path_item] readonly definitions?: map[io.apibuilder.swagger.v0.models.schema] readonly parameters?: map[io.apibuilder.swagger.v0.models.parameter] readonly responses?: map[io.apibuilder.swagger.v0.models.response] readonly securityDefinitions?: map[io.apibuilder.swagger.v0.models.security_scheme] readonly security?: map[string] readonly tags?: readonly Tag[] readonly externalDocs?: ExternalDocumentation } export type Tag = { readonly name: string readonly description?: string readonly externalDocs?: ExternalDocumentation } export type Xml = { readonly name?: string readonly namespace?: string readonly prefix?: string readonly attribute?: boolean readonly wrapped?: boolean } export type ApiKeyInType = 'query' | 'header' export type CollectionFormatType = 'csv' | 'ssv' | 'tsv' | 'pipes' export type FormatType = | 'binary' | 'byte' | 'date' | 'date-time' | 'double' | 'float' | 'int32' | 'int64' | 'password' export type ItemsType = 'string' | 'number' | 'integer' | 'boolean' | 'array' export type ParameterInType = 'query' | 'header' | 'path' | 'formData' | 'body' export type SecuritySchemeType = 'basic' | 'apiKey' | 'oauth2' export type JSONValue = | string | number | boolean | { readonly [x: string]: JSONValue } | readonly JSONValue[]