fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add fastify plugin

+7743 -43
+5
.changeset/gorgeous-cups-search.md
··· 1 + --- 2 + '@hey-api/openapi-ts': minor 3 + --- 4 + 5 + feat: add fastify-openapi-glue plugin
+10
examples/openapi-ts-fastify/openapi-ts.config.ts
··· 1 + import { defineConfig } from '@hey-api/openapi-ts'; 2 + 3 + export default defineConfig({ 4 + client: '@hey-api/client-fetch', 5 + experimentalParser: true, 6 + input: 7 + 'https://gist.githubusercontent.com/seriousme/55bd4c8ba2e598e416bb5543dcd362dc/raw/cf0b86ba37bb54bf1a6bf047c0ecf2a0ce4c62e0/petstore-v3.1.json', 8 + output: './src/gen', 9 + plugins: ['fastify'], 10 + });
+20
examples/openapi-ts-fastify/package.json
··· 1 + { 2 + "name": "@example/openapi-ts-fastify", 3 + "private": true, 4 + "version": "0.0.1", 5 + "type": "module", 6 + "scripts": { 7 + "openapi-ts": "openapi-ts", 8 + "typecheck": "tsc --noEmit", 9 + "test": "vitest" 10 + }, 11 + "dependencies": { 12 + "@hey-api/openapi-ts": "workspace:*", 13 + "fastify": "5.0.0", 14 + "fastify-openapi-glue": "4.7.1" 15 + }, 16 + "devDependencies": { 17 + "@hey-api/client-fetch": "workspace:*", 18 + "vitest": "2.1.5" 19 + } 20 + }
+46
examples/openapi-ts-fastify/src/gen/fastify.gen.ts
··· 1 + // This file is auto-generated by @hey-api/openapi-ts 2 + 3 + import type { RouteHandler } from 'fastify'; 4 + 5 + export type Pet = { 6 + id: number; 7 + name: string; 8 + tag?: string; 9 + }; 10 + 11 + export type Pets = Array<Pet>; 12 + 13 + export type Error = { 14 + code: number; 15 + message: string; 16 + }; 17 + 18 + export type RouteHandlers = { 19 + createPets: RouteHandler<{ 20 + Reply: { 21 + 201: unknown; 22 + }; 23 + }>; 24 + listPets: RouteHandler<{ 25 + Querystring?: { 26 + /** 27 + * How many items to return at one time (max 100) 28 + */ 29 + limit?: number; 30 + }; 31 + Reply: { 32 + 200: Pets; 33 + }; 34 + }>; 35 + showPetById: RouteHandler<{ 36 + Params: { 37 + /** 38 + * The id of the pet to retrieve 39 + */ 40 + petId: string; 41 + }; 42 + Reply: { 43 + 200: Pet; 44 + }; 45 + }>; 46 + };
+3
examples/openapi-ts-fastify/src/gen/index.ts
··· 1 + // This file is auto-generated by @hey-api/openapi-ts 2 + export * from './services.gen'; 3 + export * from './types.gen';
+60
examples/openapi-ts-fastify/src/gen/services.gen.ts
··· 1 + // This file is auto-generated by @hey-api/openapi-ts 2 + 3 + import { 4 + createClient, 5 + createConfig, 6 + type Options, 7 + } from '@hey-api/client-fetch'; 8 + 9 + import type { 10 + CreatePetsError, 11 + ListPetsData, 12 + ListPetsError, 13 + ListPetsResponse, 14 + ShowPetByIdData, 15 + ShowPetByIdError, 16 + ShowPetByIdResponse, 17 + } from './types.gen'; 18 + 19 + export const client = createClient(createConfig()); 20 + 21 + /** 22 + * List all pets 23 + */ 24 + export const listPets = <ThrowOnError extends boolean = false>( 25 + options?: Options<ListPetsData, ThrowOnError>, 26 + ) => 27 + (options?.client ?? client).get< 28 + ListPetsResponse, 29 + ListPetsError, 30 + ThrowOnError 31 + >({ 32 + ...options, 33 + url: '/pets', 34 + }); 35 + 36 + /** 37 + * Create a pet 38 + */ 39 + export const createPets = <ThrowOnError extends boolean = false>( 40 + options?: Options<unknown, ThrowOnError>, 41 + ) => 42 + (options?.client ?? client).post<unknown, CreatePetsError, ThrowOnError>({ 43 + ...options, 44 + url: '/pets', 45 + }); 46 + 47 + /** 48 + * Info for a specific pet 49 + */ 50 + export const showPetById = <ThrowOnError extends boolean = false>( 51 + options: Options<ShowPetByIdData, ThrowOnError>, 52 + ) => 53 + (options?.client ?? client).get< 54 + ShowPetByIdResponse, 55 + ShowPetByIdError, 56 + ThrowOnError 57 + >({ 58 + ...options, 59 + url: '/pets/{petId}', 60 + });
+46
examples/openapi-ts-fastify/src/gen/types.gen.ts
··· 1 + // This file is auto-generated by @hey-api/openapi-ts 2 + 3 + export type Pet = { 4 + id: number; 5 + name: string; 6 + tag?: string; 7 + }; 8 + 9 + export type Pets = Array<Pet>; 10 + 11 + export type Error = { 12 + code: number; 13 + message: string; 14 + }; 15 + 16 + export type ListPetsData = { 17 + body?: never; 18 + path?: never; 19 + query?: { 20 + /** 21 + * How many items to return at one time (max 100) 22 + */ 23 + limit?: number; 24 + }; 25 + }; 26 + 27 + export type ListPetsError = Error; 28 + 29 + export type ListPetsResponse = Pets; 30 + 31 + export type CreatePetsError = Error; 32 + 33 + export type ShowPetByIdData = { 34 + body?: never; 35 + path: { 36 + /** 37 + * The id of the pet to retrieve 38 + */ 39 + petId: string; 40 + }; 41 + query?: never; 42 + }; 43 + 44 + export type ShowPetByIdError = Error; 45 + 46 + export type ShowPetByIdResponse = Pet;
+14
examples/openapi-ts-fastify/src/handlers.ts
··· 1 + import type { Pet, RouteHandlers } from './gen/fastify.gen'; 2 + 3 + export const serviceHandlers: Pick<RouteHandlers, 'showPetById'> = { 4 + showPetById(request, reply) { 5 + const { 6 + params: { petId }, 7 + } = request; 8 + const pet: Pet = { 9 + id: Number(petId), 10 + name: 'petname', 11 + }; 12 + reply.code(200).send(pet); 13 + }, 14 + };
+10
examples/openapi-ts-fastify/src/index.ts
··· 1 + import { buildServer } from './server'; 2 + 3 + const fastify = buildServer(); 4 + 5 + fastify.listen({ port: 3000 }, function (err) { 6 + if (err) { 7 + fastify.log.error(err); 8 + process.exit(1); 9 + } 10 + });
+23
examples/openapi-ts-fastify/src/server.ts
··· 1 + import Fastify from 'fastify'; 2 + import glue from 'fastify-openapi-glue'; 3 + 4 + import { serviceHandlers } from './handlers'; 5 + 6 + export const buildServer = () => { 7 + const fastify = Fastify(); 8 + 9 + const specification = fetch( 10 + 'https://gist.githubusercontent.com/seriousme/55bd4c8ba2e598e416bb5543dcd362dc/raw/cf0b86ba37bb54bf1a6bf047c0ecf2a0ce4c62e0/petstore-v3.1.json', 11 + ) 12 + .then((reply) => reply.json()) 13 + .then((data) => data); 14 + console.log(specification); 15 + 16 + fastify.register(glue, { 17 + prefix: 'v3', 18 + serviceHandlers, 19 + specification, 20 + }); 21 + 22 + return fastify; 23 + };
+31
examples/openapi-ts-fastify/test/pets.test.ts
··· 1 + import { type FastifyInstance } from 'fastify'; 2 + import { client, showPetById } from 'src/gen'; 3 + import { buildServer } from 'src/server'; 4 + import { afterAll, beforeAll, describe, expect, test } from 'vitest'; 5 + 6 + describe('/pet/findByTags', () => { 7 + let server: FastifyInstance; 8 + 9 + beforeAll(async () => { 10 + server = buildServer(); 11 + await server.listen(); 12 + 13 + // @ts-ignore 14 + const baseUrl = `http://localhost:${server.server.address().port}/v3`; 15 + client.setConfig({ baseUrl }); 16 + }); 17 + 18 + afterAll(async () => { 19 + await Promise.all([server.close()]); 20 + }); 21 + 22 + test('showPetById', async () => { 23 + const result = await showPetById({ 24 + client, 25 + path: { 26 + petId: '123', 27 + }, 28 + }); 29 + expect(result.response.status).toBe(200); 30 + }); 31 + });
+13
examples/openapi-ts-fastify/tsconfig.json
··· 1 + { 2 + "include": ["src/**/*", "test/**/*"], 3 + "compilerOptions": { 4 + "lib": ["es2023"], 5 + "target": "es2022", 6 + "module": "ESNext", 7 + "moduleResolution": "Bundler", 8 + "strict": true, 9 + "esModuleInterop": true, 10 + "skipLibCheck": true, 11 + "baseUrl": "." 12 + } 13 + }
+1
packages/openapi-ts/package.json
··· 110 110 "cross-spawn": "7.0.3", 111 111 "eslint": "9.6.0", 112 112 "express": "4.21.0", 113 + "fastify": "5.0.0", 113 114 "glob": "10.4.3", 114 115 "node-fetch": "3.3.2", 115 116 "prettier": "3.3.2",
+1
packages/openapi-ts/src/plugins/@tanstack/query-core/plugin.ts
··· 35 35 } from '../../@hey-api/services/plugin-legacy'; 36 36 import { typesId } from '../../@hey-api/types/plugin'; 37 37 import type { PluginHandler } from '../../types'; 38 + import { schemaToType, type SchemaToTypeOptions } from '../../utils/types'; 38 39 import type { Config as AngularQueryConfig } from '../angular-query-experimental'; 39 40 import type { Config as ReactQueryConfig } from '../react-query'; 40 41 import type { Config as SolidQueryConfig } from '../solid-query';
+20
packages/openapi-ts/src/plugins/fastify/config.ts
··· 1 + import type { DefineConfig, PluginConfig } from '../types'; 2 + import { handler } from './plugin'; 3 + import type { Config } from './types'; 4 + 5 + export const defaultConfig: PluginConfig<Config> = { 6 + _dependencies: ['@hey-api/services'], 7 + _handler: handler, 8 + _handlerLegacy: () => {}, 9 + name: 'fastify', 10 + operationId: true, 11 + output: 'fastify', 12 + }; 13 + 14 + /** 15 + * Type helper for the Fastify plugin, returns {@link PluginConfig} object 16 + */ 17 + export const defineConfig: DefineConfig<Config> = (config) => ({ 18 + ...defaultConfig, 19 + ...config, 20 + });
+2
packages/openapi-ts/src/plugins/fastify/index.ts
··· 1 + export { defaultConfig, defineConfig } from './config'; 2 + export type { Config } from './types';
+182
packages/openapi-ts/src/plugins/fastify/plugin.ts
··· 1 + import ts from 'typescript'; 2 + 3 + import { compiler, type Property } from '../../compiler'; 4 + import type { IRContext } from '../../ir/context'; 5 + import type { 6 + IROperationObject, 7 + IRParameterObject, 8 + IRPathItemObject, 9 + IRPathsObject, 10 + } from '../../ir/ir'; 11 + import { irParametersToIrSchema } from '../../ir/schema'; 12 + import type { PluginHandler } from '../types'; 13 + import { 14 + componentsToType, 15 + schemaToType, 16 + type SchemaToTypeOptions, 17 + } from '../utils/types'; 18 + import type { Config } from './types'; 19 + 20 + const FILE_ID = 'fastify'; 21 + const ROUTE_HANDLER_NAME = 'RouteHandler'; 22 + const OPERATIONS_IDENTIFIER = 'RouteHandlers'; 23 + const ROUTE_PROPERTY_NAME = { 24 + BODY: 'Body', 25 + HEADER: 'Headers', 26 + PATH: 'Params', 27 + QUERY: 'Querystring', 28 + RESPONSE: 'Reply', 29 + }; 30 + const NUMERIC_CODE_REGEX = /\b[0-9]{3}\b/; 31 + 32 + const parameterToProperty = ({ 33 + options, 34 + parameter, 35 + name, 36 + }: { 37 + name: string; 38 + options: SchemaToTypeOptions; 39 + parameter: Record<string, IRParameterObject>; 40 + }): Property => { 41 + const schema = irParametersToIrSchema({ 42 + parameters: parameter, 43 + }); 44 + return { 45 + isRequired: !!schema.required, 46 + name, 47 + type: schemaToType({ options, schema }), 48 + }; 49 + }; 50 + 51 + const operationToProperty = ({ 52 + operation, 53 + options, 54 + }: { 55 + operation: IROperationObject; 56 + options: SchemaToTypeOptions; 57 + }): Property => { 58 + const operationProperties: Array<Property> = []; 59 + 60 + if (operation.body) { 61 + operationProperties.push({ 62 + isRequired: operation.body.required, 63 + name: ROUTE_PROPERTY_NAME.BODY, 64 + type: schemaToType({ 65 + options, 66 + schema: operation.body.schema, 67 + }), 68 + }); 69 + } 70 + 71 + if (operation.parameters) { 72 + if (operation.parameters.header) { 73 + operationProperties.push( 74 + parameterToProperty({ 75 + name: ROUTE_PROPERTY_NAME.HEADER, 76 + options, 77 + parameter: operation.parameters.header, 78 + }), 79 + ); 80 + } 81 + 82 + if (operation.parameters.query) { 83 + operationProperties.push( 84 + parameterToProperty({ 85 + name: ROUTE_PROPERTY_NAME.QUERY, 86 + options, 87 + parameter: operation.parameters.query, 88 + }), 89 + ); 90 + } 91 + 92 + if (operation.parameters.path) { 93 + operationProperties.push( 94 + parameterToProperty({ 95 + name: ROUTE_PROPERTY_NAME.PATH, 96 + options, 97 + parameter: operation.parameters.path, 98 + }), 99 + ); 100 + } 101 + } 102 + 103 + if (operation.responses) { 104 + const responseProperties: Array<Property> = []; 105 + for (const code in operation.responses) { 106 + if (code === 'default') continue; 107 + const response = operation.responses[code]; 108 + responseProperties.push({ 109 + name: NUMERIC_CODE_REGEX.test(code) 110 + ? ts.factory.createNumericLiteral(code) 111 + : code, 112 + type: schemaToType({ 113 + options, 114 + schema: response?.schema ?? {}, 115 + }), 116 + }); 117 + } 118 + operationProperties.push({ 119 + name: ROUTE_PROPERTY_NAME.RESPONSE, 120 + type: compiler.typeInterfaceNode({ 121 + properties: responseProperties, 122 + useLegacyResolution: false, 123 + }), 124 + }); 125 + } 126 + 127 + const operationType = compiler.typeInterfaceNode({ 128 + properties: operationProperties, 129 + useLegacyResolution: false, 130 + }); 131 + const property: Property = { 132 + name: operation.id, 133 + type: compiler.typeNode(ROUTE_HANDLER_NAME, [operationType]), 134 + }; 135 + return property; 136 + }; 137 + 138 + const pathsToType = ({ 139 + context, 140 + options, 141 + }: { 142 + context: IRContext; 143 + options: SchemaToTypeOptions; 144 + }): ts.Node => { 145 + const operationsProperties = []; 146 + for (const path in context.ir.paths) { 147 + const pathItem = context.ir.paths[path as keyof IRPathsObject]; 148 + for (const method in pathItem) { 149 + const operation = pathItem[method as keyof IRPathItemObject]; 150 + if (operation) { 151 + const operationProperty = operationToProperty({ operation, options }); 152 + operationsProperties.push(operationProperty); 153 + } 154 + } 155 + } 156 + 157 + const identifier = context.file({ id: FILE_ID })!.identifier({ 158 + $ref: OPERATIONS_IDENTIFIER, 159 + create: true, 160 + namespace: 'type', 161 + }); 162 + const paths = compiler.typeAliasDeclaration({ 163 + exportType: true, 164 + name: identifier.name || '', 165 + type: compiler.typeInterfaceNode({ 166 + properties: operationsProperties, 167 + useLegacyResolution: false, 168 + }), 169 + }); 170 + return paths; 171 + }; 172 + 173 + export const handler: PluginHandler<Config> = ({ context, plugin }) => { 174 + const file = context.createFile({ id: FILE_ID, path: plugin.output }); 175 + const options: SchemaToTypeOptions = { file }; 176 + file.import({ asType: true, module: 'fastify', name: ROUTE_HANDLER_NAME }); 177 + componentsToType({ 178 + context, 179 + options, 180 + }); 181 + file.add(pathsToType({ context, options })); 182 + };
+17
packages/openapi-ts/src/plugins/fastify/types.d.ts
··· 1 + import type { PluginName } from '../types'; 2 + 3 + export interface Config extends PluginName<'fastify'> { 4 + // TODO: parser - rename operationId option to something like inferId?: boolean 5 + /** 6 + * Use operation ID to generate operation names? 7 + * @default true 8 + */ 9 + operationId?: boolean; 10 + /** 11 + * Name of the generated file. 12 + * @default 'fastify' 13 + */ 14 + output?: string; 15 + } 16 + 17 + export interface UserConfig extends Omit<Config, 'output'> {}
+5 -1
packages/openapi-ts/src/plugins/index.ts
··· 34 34 type Config as TanStackVueQuery, 35 35 defaultConfig as tanStackVueQuery, 36 36 } from './@tanstack/vue-query'; 37 + import { type Config as Fastify, defaultConfig as fastify } from './fastify'; 37 38 import type { 38 39 DefaultPluginConfigsMap, 39 40 PluginConfig, ··· 53 54 | UserConfig<TanStackReactQuery> 54 55 | UserConfig<TanStackSolidQuery> 55 56 | UserConfig<TanStackSvelteQuery> 56 - | UserConfig<TanStackVueQuery>; 57 + | UserConfig<TanStackVueQuery> 58 + | UserConfig<Fastify>; 57 59 // | UserConfig<Zod> 58 60 59 61 export type ClientPlugins = ··· 66 68 | PluginConfig<TanStackSolidQuery> 67 69 | PluginConfig<TanStackSvelteQuery> 68 70 | PluginConfig<TanStackVueQuery> 71 + | PluginConfig<Fastify> 69 72 | PluginConfig<Zod>; 70 73 71 74 export const defaultPluginConfigs: DefaultPluginConfigsMap<ClientPlugins> = { ··· 78 81 '@tanstack/solid-query': tanStackSolidQuery, 79 82 '@tanstack/svelte-query': tanStackSvelteQuery, 80 83 '@tanstack/vue-query': tanStackVueQuery, 84 + fastify, 81 85 zod, 82 86 };
+1
packages/openapi-ts/src/plugins/types.d.ts
··· 33 33 | '@tanstack/solid-query' 34 34 | '@tanstack/svelte-query' 35 35 | '@tanstack/vue-query' 36 + | 'fastify' 36 37 | 'zod'; 37 38 38 39 export interface PluginName<Name extends PluginNames> {
+25 -8
packages/openapi-ts/src/plugins/utils/types.ts
··· 139 139 // blocker for referencing these identifiers within the file as 140 140 // we cannot guarantee just because they have a duplicate identifier, 141 141 // they have a duplicate value. 142 - if (!identifier.created && options.enums !== 'typescript+namespace') { 142 + if ( 143 + !identifier.created && 144 + !isRefOpenApiComponent($ref) && 145 + options.enums !== 'typescript+namespace' 146 + ) { 143 147 return; 144 148 } 145 149 ··· 376 380 }) => { 377 381 let indexProperty: Property | undefined; 378 382 const schemaProperties: Array<Property> = []; 379 - const indexPropertyItems: Array<IRSchemaObject> = []; 383 + let indexPropertyItems: Array<IRSchemaObject> = []; 380 384 const required = schema.required ?? []; 381 385 let hasOptionalProperties = false; 382 386 ··· 402 406 } 403 407 } 404 408 405 - if (schema.additionalProperties) { 406 - indexPropertyItems.unshift(schema.additionalProperties); 409 + if ( 410 + schema.additionalProperties && 411 + (schema.additionalProperties.type !== 'never' || !indexPropertyItems.length) 412 + ) { 413 + if (schema.additionalProperties.type === 'never') { 414 + indexPropertyItems = [schema.additionalProperties]; 415 + } else { 416 + indexPropertyItems.unshift(schema.additionalProperties); 417 + } 407 418 408 419 if (hasOptionalProperties) { 409 420 indexPropertyItems.push({ 410 - type: 'void', 421 + type: 'undefined', 411 422 }); 412 423 } 413 424 ··· 530 541 options, 531 542 schema: schema as SchemaWithType<'enum'>, 532 543 }); 544 + case 'never': 545 + return compiler.keywordTypeNode({ keyword: 'never' }); 533 546 case 'null': 534 547 return compiler.literalTypeNode({ 535 548 literal: compiler.null(), ··· 555 568 options, 556 569 schema: schema as SchemaWithType<'tuple'>, 557 570 }); 571 + case 'undefined': 572 + return compiler.keywordTypeNode({ keyword: 'undefined' }); 558 573 case 'unknown': 559 574 return compiler.keywordTypeNode({ 560 575 keyword: 'unknown', 561 576 }); 562 577 case 'void': 563 578 return compiler.keywordTypeNode({ 564 - keyword: 'undefined', 579 + keyword: 'void', 565 580 }); 566 581 } 567 582 }; ··· 673 688 if (context.ir.components) { 674 689 for (const name in context.ir.components.schemas) { 675 690 const schema = context.ir.components.schemas[name]; 691 + const $ref = `#/components/schemas/${name}`; 676 692 677 693 schemaToType({ 678 - $ref: `#/components/schemas/${name}`, 694 + $ref, 679 695 options, 680 696 schema, 681 697 }); ··· 683 699 684 700 for (const name in context.ir.components.parameters) { 685 701 const parameter = context.ir.components.parameters[name]; 702 + const $ref = `#/components/parameters/${name}`; 686 703 687 704 schemaToType({ 688 - $ref: `#/components/parameters/${name}`, 705 + $ref, 689 706 options, 690 707 schema: parameter.schema, 691 708 });
+1473
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/fastify/fastify.gen.ts
··· 1 + // This file is auto-generated by @hey-api/openapi-ts 2 + 3 + import type { RouteHandler } from 'fastify'; 4 + 5 + /** 6 + * Model with number-only name 7 + */ 8 + export type _400 = string; 9 + 10 + /** 11 + * Testing multiline comments in string: First line 12 + * Second line 13 + * 14 + * Fourth line 15 + */ 16 + export type camelCaseCommentWithBreaks = number; 17 + 18 + /** 19 + * Testing multiline comments in string: First line 20 + * Second line 21 + * 22 + * Fourth line 23 + */ 24 + export type CommentWithBreaks = number; 25 + 26 + /** 27 + * Testing backticks in string: `backticks` and ```multiple backticks``` should work 28 + */ 29 + export type CommentWithBackticks = number; 30 + 31 + /** 32 + * Testing backticks and quotes in string: `backticks`, 'quotes', "double quotes" and ```multiple backticks``` should work 33 + */ 34 + export type CommentWithBackticksAndQuotes = number; 35 + 36 + /** 37 + * Testing slashes in string: \backwards\\\ and /forwards/// should work 38 + */ 39 + export type CommentWithSlashes = number; 40 + 41 + /** 42 + * Testing expression placeholders in string: ${expression} should work 43 + */ 44 + export type CommentWithExpressionPlaceholders = number; 45 + 46 + /** 47 + * Testing quotes in string: 'single quote''' and "double quotes""" should work 48 + */ 49 + export type CommentWithQuotes = number; 50 + 51 + /** 52 + * Testing reserved characters in string: * inline * and ** inline ** should work 53 + */ 54 + export type CommentWithReservedCharacters = number; 55 + 56 + /** 57 + * This is a simple number 58 + */ 59 + export type SimpleInteger = number; 60 + 61 + /** 62 + * This is a simple boolean 63 + */ 64 + export type SimpleBoolean = boolean; 65 + 66 + /** 67 + * This is a simple string 68 + */ 69 + export type SimpleString = string; 70 + 71 + /** 72 + * A string with non-ascii (unicode) characters valid in typescript identifiers (æøåÆØÅöÔèÈ字符串) 73 + */ 74 + export type NonAsciiStringæøåÆØÅöôêÊ字符串 = string; 75 + 76 + /** 77 + * This is a simple file 78 + */ 79 + export type SimpleFile = Blob | File; 80 + 81 + /** 82 + * This is a simple reference 83 + */ 84 + export type SimpleReference = ModelWithString; 85 + 86 + /** 87 + * This is a simple string 88 + */ 89 + export type SimpleStringWithPattern = string | null; 90 + 91 + /** 92 + * This is a simple enum with strings 93 + */ 94 + export type EnumWithStrings = 'Success' | 'Warning' | 'Error' | "'Single Quote'" | '"Double Quotes"' | 'Non-ascii: øæåôöØÆÅÔÖ字符串'; 95 + 96 + export type EnumWithReplacedCharacters = "'Single Quote'" | '"Double Quotes"' | 'øæåôöØÆÅÔÖ字符串' | 3.1 | ''; 97 + 98 + /** 99 + * This is a simple enum with numbers 100 + */ 101 + export type EnumWithNumbers = 1 | 2 | 3 | 1.1 | 1.2 | 1.3 | 100 | 200 | 300 | -100 | -200 | -300 | -1.1 | -1.2 | -1.3; 102 + 103 + /** 104 + * Success=1,Warning=2,Error=3 105 + */ 106 + export type EnumFromDescription = number; 107 + 108 + /** 109 + * This is a simple enum with numbers 110 + */ 111 + export type EnumWithExtensions = 200 | 400 | 500; 112 + 113 + export type EnumWithXEnumNames = 0 | 1 | 2; 114 + 115 + /** 116 + * This is a simple array with numbers 117 + */ 118 + export type ArrayWithNumbers = Array<number>; 119 + 120 + /** 121 + * This is a simple array with booleans 122 + */ 123 + export type ArrayWithBooleans = Array<boolean>; 124 + 125 + /** 126 + * This is a simple array with strings 127 + */ 128 + export type ArrayWithStrings = Array<string>; 129 + 130 + /** 131 + * This is a simple array with references 132 + */ 133 + export type ArrayWithReferences = Array<ModelWithString>; 134 + 135 + /** 136 + * This is a simple array containing an array 137 + */ 138 + export type ArrayWithArray = Array<Array<ModelWithString>>; 139 + 140 + /** 141 + * This is a simple array with properties 142 + */ 143 + export type ArrayWithProperties = Array<{ 144 + '16x16'?: camelCaseCommentWithBreaks; 145 + bar?: string; 146 + }>; 147 + 148 + /** 149 + * This is a simple array with any of properties 150 + */ 151 + export type ArrayWithAnyOfProperties = Array<{ 152 + foo?: string; 153 + } | { 154 + bar?: string; 155 + }>; 156 + 157 + export type AnyOfAnyAndNull = { 158 + data?: unknown; 159 + }; 160 + 161 + /** 162 + * This is a simple array with any of properties 163 + */ 164 + export type AnyOfArrays = { 165 + results?: Array<{ 166 + foo?: string; 167 + } | { 168 + bar?: string; 169 + }>; 170 + }; 171 + 172 + /** 173 + * This is a string dictionary 174 + */ 175 + export type DictionaryWithString = { 176 + [key: string]: string; 177 + }; 178 + 179 + export type DictionaryWithPropertiesAndAdditionalProperties = { 180 + foo?: number; 181 + bar?: boolean; 182 + [key: string]: string | number | boolean | undefined; 183 + }; 184 + 185 + /** 186 + * This is a string reference 187 + */ 188 + export type DictionaryWithReference = { 189 + [key: string]: ModelWithString; 190 + }; 191 + 192 + /** 193 + * This is a complex dictionary 194 + */ 195 + export type DictionaryWithArray = { 196 + [key: string]: Array<ModelWithString>; 197 + }; 198 + 199 + /** 200 + * This is a string dictionary 201 + */ 202 + export type DictionaryWithDictionary = { 203 + [key: string]: { 204 + [key: string]: string; 205 + }; 206 + }; 207 + 208 + /** 209 + * This is a complex dictionary 210 + */ 211 + export type DictionaryWithProperties = { 212 + [key: string]: { 213 + foo?: string; 214 + bar?: string; 215 + }; 216 + }; 217 + 218 + /** 219 + * This is a model with one number property 220 + */ 221 + export type ModelWithInteger = { 222 + /** 223 + * This is a simple number property 224 + */ 225 + prop?: number; 226 + }; 227 + 228 + /** 229 + * This is a model with one boolean property 230 + */ 231 + export type ModelWithBoolean = { 232 + /** 233 + * This is a simple boolean property 234 + */ 235 + prop?: boolean; 236 + }; 237 + 238 + /** 239 + * This is a model with one string property 240 + */ 241 + export type ModelWithString = { 242 + /** 243 + * This is a simple string property 244 + */ 245 + prop?: string; 246 + }; 247 + 248 + /** 249 + * This is a model with one string property 250 + */ 251 + export type ModelWithStringError = { 252 + /** 253 + * This is a simple string property 254 + */ 255 + prop?: string; 256 + }; 257 + 258 + /** 259 + * `Comment` or `VoiceComment`. The JSON object for adding voice comments to tickets is different. See [Adding voice comments to tickets](/documentation/ticketing/managing-tickets/adding-voice-comments-to-tickets) 260 + */ 261 + export type Model_From_Zendesk = string; 262 + 263 + /** 264 + * This is a model with one string property 265 + */ 266 + export type ModelWithNullableString = { 267 + /** 268 + * This is a simple string property 269 + */ 270 + nullableProp1?: string | null; 271 + /** 272 + * This is a simple string property 273 + */ 274 + nullableRequiredProp1: string | null; 275 + /** 276 + * This is a simple string property 277 + */ 278 + nullableProp2?: string | null; 279 + /** 280 + * This is a simple string property 281 + */ 282 + nullableRequiredProp2: string | null; 283 + /** 284 + * This is a simple enum with strings 285 + */ 286 + 'foo_bar-enum'?: 'Success' | 'Warning' | 'Error' | 'ØÆÅ字符串'; 287 + }; 288 + 289 + /** 290 + * This is a model with one enum 291 + */ 292 + export type ModelWithEnum = { 293 + /** 294 + * This is a simple enum with strings 295 + */ 296 + 'foo_bar-enum'?: 'Success' | 'Warning' | 'Error' | 'ØÆÅ字符串'; 297 + /** 298 + * These are the HTTP error code enums 299 + */ 300 + statusCode?: '100' | '200 FOO' | '300 FOO_BAR' | '400 foo-bar' | '500 foo.bar' | '600 foo&bar'; 301 + /** 302 + * Simple boolean enum 303 + */ 304 + bool?: true; 305 + }; 306 + 307 + /** 308 + * This is a model with one enum with escaped name 309 + */ 310 + export type ModelWithEnumWithHyphen = { 311 + 'foo-bar-baz-qux'?: '3.0'; 312 + }; 313 + 314 + /** 315 + * This is a model with one enum 316 + */ 317 + export type ModelWithEnumFromDescription = { 318 + /** 319 + * Success=1,Warning=2,Error=3 320 + */ 321 + test?: number; 322 + }; 323 + 324 + /** 325 + * This is a model with nested enums 326 + */ 327 + export type ModelWithNestedEnums = { 328 + dictionaryWithEnum?: { 329 + [key: string]: 'Success' | 'Warning' | 'Error'; 330 + }; 331 + dictionaryWithEnumFromDescription?: { 332 + [key: string]: number; 333 + }; 334 + arrayWithEnum?: Array<'Success' | 'Warning' | 'Error'>; 335 + arrayWithDescription?: Array<number>; 336 + /** 337 + * This is a simple enum with strings 338 + */ 339 + 'foo_bar-enum'?: 'Success' | 'Warning' | 'Error' | 'ØÆÅ字符串'; 340 + }; 341 + 342 + /** 343 + * This is a model with one property containing a reference 344 + */ 345 + export type ModelWithReference = { 346 + prop?: ModelWithProperties; 347 + }; 348 + 349 + /** 350 + * This is a model with one property containing an array 351 + */ 352 + export type ModelWithArrayReadOnlyAndWriteOnly = { 353 + prop?: Array<ModelWithReadOnlyAndWriteOnly>; 354 + propWithFile?: Array<Blob | File>; 355 + propWithNumber?: Array<number>; 356 + }; 357 + 358 + /** 359 + * This is a model with one property containing an array 360 + */ 361 + export type ModelWithArray = { 362 + prop?: Array<ModelWithString>; 363 + propWithFile?: Array<Blob | File>; 364 + propWithNumber?: Array<number>; 365 + }; 366 + 367 + /** 368 + * This is a model with one property containing a dictionary 369 + */ 370 + export type ModelWithDictionary = { 371 + prop?: { 372 + [key: string]: string; 373 + }; 374 + }; 375 + 376 + /** 377 + * This is a deprecated model with a deprecated property 378 + * @deprecated 379 + */ 380 + export type DeprecatedModel = { 381 + /** 382 + * This is a deprecated property 383 + * @deprecated 384 + */ 385 + prop?: string; 386 + }; 387 + 388 + /** 389 + * This is a model with one property containing a circular reference 390 + */ 391 + export type ModelWithCircularReference = { 392 + prop?: ModelWithCircularReference; 393 + }; 394 + 395 + /** 396 + * This is a model with one property with a 'one of' relationship 397 + */ 398 + export type CompositionWithOneOf = { 399 + propA?: ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary; 400 + }; 401 + 402 + /** 403 + * This is a model with one property with a 'one of' relationship where the options are not $ref 404 + */ 405 + export type CompositionWithOneOfAnonymous = { 406 + propA?: { 407 + propA?: string; 408 + } | string | number; 409 + }; 410 + 411 + /** 412 + * Circle 413 + */ 414 + export type ModelCircle = { 415 + kind: string; 416 + radius?: number; 417 + }; 418 + 419 + /** 420 + * Square 421 + */ 422 + export type ModelSquare = { 423 + kind: string; 424 + sideLength?: number; 425 + }; 426 + 427 + /** 428 + * This is a model with one property with a 'one of' relationship where the options are not $ref 429 + */ 430 + export type CompositionWithOneOfDiscriminator = ({ 431 + kind?: 'circle'; 432 + } & ModelCircle) | ({ 433 + kind?: 'square'; 434 + } & ModelSquare); 435 + 436 + /** 437 + * This is a model with one property with a 'any of' relationship 438 + */ 439 + export type CompositionWithAnyOf = { 440 + propA?: ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary; 441 + }; 442 + 443 + /** 444 + * This is a model with one property with a 'any of' relationship where the options are not $ref 445 + */ 446 + export type CompositionWithAnyOfAnonymous = { 447 + propA?: { 448 + propA?: string; 449 + } | string | number; 450 + }; 451 + 452 + /** 453 + * This is a model with nested 'any of' property with a type null 454 + */ 455 + export type CompositionWithNestedAnyAndTypeNull = { 456 + propA?: Array<ModelWithDictionary | null> | Array<ModelWithArray | null>; 457 + }; 458 + 459 + export type _3e_num_1Период = 'Bird' | 'Dog'; 460 + 461 + export type ConstValue = 'ConstValue'; 462 + 463 + /** 464 + * This is a model with one property with a 'any of' relationship where the options are not $ref 465 + */ 466 + export type CompositionWithNestedAnyOfAndNull = { 467 + propA?: Array<_3e_num_1Период | ConstValue> | null; 468 + }; 469 + 470 + /** 471 + * This is a model with one property with a 'one of' relationship 472 + */ 473 + export type CompositionWithOneOfAndNullable = { 474 + propA?: { 475 + boolean?: boolean; 476 + } | ModelWithEnum | ModelWithArray | ModelWithDictionary | null; 477 + }; 478 + 479 + /** 480 + * This is a model that contains a simple dictionary within composition 481 + */ 482 + export type CompositionWithOneOfAndSimpleDictionary = { 483 + propA?: boolean | { 484 + [key: string]: number; 485 + }; 486 + }; 487 + 488 + /** 489 + * This is a model that contains a dictionary of simple arrays within composition 490 + */ 491 + export type CompositionWithOneOfAndSimpleArrayDictionary = { 492 + propA?: boolean | { 493 + [key: string]: Array<boolean>; 494 + }; 495 + }; 496 + 497 + /** 498 + * This is a model that contains a dictionary of complex arrays (composited) within composition 499 + */ 500 + export type CompositionWithOneOfAndComplexArrayDictionary = { 501 + propA?: boolean | { 502 + [key: string]: Array<number | string>; 503 + }; 504 + }; 505 + 506 + /** 507 + * This is a model with one property with a 'all of' relationship 508 + */ 509 + export type CompositionWithAllOfAndNullable = { 510 + propA?: ({ 511 + boolean?: boolean; 512 + } & ModelWithEnum & ModelWithArray & ModelWithDictionary) | null; 513 + }; 514 + 515 + /** 516 + * This is a model with one property with a 'any of' relationship 517 + */ 518 + export type CompositionWithAnyOfAndNullable = { 519 + propA?: { 520 + boolean?: boolean; 521 + } | ModelWithEnum | ModelWithArray | ModelWithDictionary | null; 522 + }; 523 + 524 + /** 525 + * This is a base model with two simple optional properties 526 + */ 527 + export type CompositionBaseModel = { 528 + firstName?: string; 529 + lastname?: string; 530 + }; 531 + 532 + /** 533 + * This is a model that extends the base model 534 + */ 535 + export type CompositionExtendedModel = CompositionBaseModel & { 536 + age: number; 537 + firstName: string; 538 + lastname: string; 539 + }; 540 + 541 + /** 542 + * This is a model with one nested property 543 + */ 544 + export type ModelWithProperties = { 545 + required: string; 546 + readonly requiredAndReadOnly: string; 547 + requiredAndNullable: string | null; 548 + string?: string; 549 + number?: number; 550 + boolean?: boolean; 551 + reference?: ModelWithString; 552 + 'property with space'?: string; 553 + default?: string; 554 + try?: string; 555 + readonly '@namespace.string'?: string; 556 + readonly '@namespace.integer'?: number; 557 + }; 558 + 559 + /** 560 + * This is a model with one nested property 561 + */ 562 + export type ModelWithNestedProperties = { 563 + readonly first: { 564 + readonly second: { 565 + readonly third: string | null; 566 + } | null; 567 + } | null; 568 + }; 569 + 570 + /** 571 + * This is a model with duplicated properties 572 + */ 573 + export type ModelWithDuplicateProperties = { 574 + prop?: ModelWithString; 575 + }; 576 + 577 + /** 578 + * This is a model with ordered properties 579 + */ 580 + export type ModelWithOrderedProperties = { 581 + zebra?: string; 582 + apple?: string; 583 + hawaii?: string; 584 + }; 585 + 586 + /** 587 + * This is a model with duplicated imports 588 + */ 589 + export type ModelWithDuplicateImports = { 590 + propA?: ModelWithString; 591 + propB?: ModelWithString; 592 + propC?: ModelWithString; 593 + }; 594 + 595 + /** 596 + * This is a model that extends another model 597 + */ 598 + export type ModelThatExtends = ModelWithString & { 599 + propExtendsA?: string; 600 + propExtendsB?: ModelWithString; 601 + }; 602 + 603 + /** 604 + * This is a model that extends another model 605 + */ 606 + export type ModelThatExtendsExtends = ModelWithString & ModelThatExtends & { 607 + propExtendsC?: string; 608 + propExtendsD?: ModelWithString; 609 + }; 610 + 611 + /** 612 + * This is a model that contains a some patterns 613 + */ 614 + export type ModelWithPattern = { 615 + key: string; 616 + name: string; 617 + readonly enabled?: boolean; 618 + readonly modified?: string; 619 + id?: string; 620 + text?: string; 621 + patternWithSingleQuotes?: string; 622 + patternWithNewline?: string; 623 + patternWithBacktick?: string; 624 + }; 625 + 626 + export type File = { 627 + readonly id?: string; 628 + readonly updated_at?: string; 629 + readonly created_at?: string; 630 + mime: string; 631 + readonly file?: string; 632 + }; 633 + 634 + export type _default = { 635 + name?: string; 636 + }; 637 + 638 + export type Pageable = { 639 + page?: number; 640 + size?: number; 641 + sort?: Array<string>; 642 + }; 643 + 644 + /** 645 + * This is a free-form object without additionalProperties. 646 + */ 647 + export type FreeFormObjectWithoutAdditionalProperties = {}; 648 + 649 + /** 650 + * This is a free-form object with additionalProperties: true. 651 + */ 652 + export type FreeFormObjectWithAdditionalPropertiesEqTrue = { 653 + [key: string]: unknown; 654 + }; 655 + 656 + /** 657 + * This is a free-form object with additionalProperties: {}. 658 + */ 659 + export type FreeFormObjectWithAdditionalPropertiesEqEmptyObject = {}; 660 + 661 + export type ModelWithConst = { 662 + String?: 'String'; 663 + number?: 0; 664 + null?: unknown; 665 + withType?: 'Some string'; 666 + }; 667 + 668 + /** 669 + * This is a model with one property and additionalProperties: true 670 + */ 671 + export type ModelWithAdditionalPropertiesEqTrue = { 672 + /** 673 + * This is a simple string property 674 + */ 675 + prop?: string; 676 + [key: string]: unknown | string | undefined; 677 + }; 678 + 679 + export type NestedAnyOfArraysNullable = { 680 + nullableArray?: Array<string | boolean> | null; 681 + }; 682 + 683 + export type CompositionWithOneOfAndProperties = ({ 684 + foo: SimpleParameter; 685 + } | { 686 + bar: NonAsciiStringæøåÆØÅöôêÊ字符串; 687 + }) & { 688 + baz: number | null; 689 + qux: number; 690 + }; 691 + 692 + /** 693 + * An object that can be null 694 + */ 695 + export type NullableObject = { 696 + foo?: string; 697 + } | null; 698 + 699 + /** 700 + * Some % character 701 + */ 702 + export type CharactersInDescription = string; 703 + 704 + export type ModelWithNullableObject = { 705 + data?: NullableObject; 706 + }; 707 + 708 + export type ModelWithOneOfEnum = { 709 + foo: 'Bar'; 710 + } | { 711 + foo: 'Baz'; 712 + } | { 713 + foo: 'Qux'; 714 + } | { 715 + content: string; 716 + foo: 'Quux'; 717 + } | { 718 + content: [ 719 + string, 720 + string 721 + ]; 722 + foo: 'Corge'; 723 + }; 724 + 725 + export type ModelWithNestedArrayEnumsDataFoo = 'foo' | 'bar'; 726 + 727 + export type ModelWithNestedArrayEnumsDataBar = 'baz' | 'qux'; 728 + 729 + export type ModelWithNestedArrayEnumsData = { 730 + foo?: Array<ModelWithNestedArrayEnumsDataFoo>; 731 + bar?: Array<ModelWithNestedArrayEnumsDataBar>; 732 + }; 733 + 734 + export type ModelWithNestedArrayEnums = { 735 + array_strings?: Array<string>; 736 + data?: ModelWithNestedArrayEnumsData; 737 + }; 738 + 739 + export type ModelWithNestedCompositionEnums = { 740 + foo?: ModelWithNestedArrayEnumsDataFoo; 741 + }; 742 + 743 + export type ModelWithReadOnlyAndWriteOnly = { 744 + foo: string; 745 + readonly bar: string; 746 + baz: string; 747 + }; 748 + 749 + export type ModelWithConstantSizeArray = [ 750 + number, 751 + number 752 + ]; 753 + 754 + export type ModelWithAnyOfConstantSizeArray = [ 755 + number | string, 756 + number | string, 757 + number | string 758 + ]; 759 + 760 + export type ModelWithPrefixItemsConstantSizeArray = Array<ModelWithInteger | number | string>; 761 + 762 + export type ModelWithAnyOfConstantSizeArrayNullable = [ 763 + number | null | string, 764 + number | null | string, 765 + number | null | string 766 + ]; 767 + 768 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptions = [ 769 + number | _import, 770 + number | _import 771 + ]; 772 + 773 + export type ModelWithAnyOfConstantSizeArrayAndIntersect = [ 774 + number & string, 775 + number & string 776 + ]; 777 + 778 + export type ModelWithNumericEnumUnion = { 779 + /** 780 + * Период 781 + */ 782 + value?: -10 | -1 | 0 | 1 | 3 | 6 | 12; 783 + }; 784 + 785 + /** 786 + * Some description with `back ticks` 787 + */ 788 + export type ModelWithBackticksInDescription = { 789 + /** 790 + * The template `that` should be used for parsing and importing the contents of the CSV file. 791 + * 792 + * <br/><p>There is one placeholder currently supported:<ul> <li><b>${x}</b> - refers to the n-th column in the CSV file, e.g. ${1}, ${2}, ...)</li></ul><p>Example of a correct JSON template:</p> 793 + * <pre> 794 + * [ 795 + * { 796 + * "resourceType": "Asset", 797 + * "identifier": { 798 + * "name": "${1}", 799 + * "domain": { 800 + * "name": "${2}", 801 + * "community": { 802 + * "name": "Some Community" 803 + * } 804 + * } 805 + * }, 806 + * "attributes" : { 807 + * "00000000-0000-0000-0000-000000003115" : [ { 808 + * "value" : "${3}" 809 + * } ], 810 + * "00000000-0000-0000-0000-000000000222" : [ { 811 + * "value" : "${4}" 812 + * } ] 813 + * } 814 + * } 815 + * ] 816 + * </pre> 817 + */ 818 + template?: string; 819 + }; 820 + 821 + export type ModelWithOneOfAndProperties = (SimpleParameter | NonAsciiStringæøåÆØÅöôêÊ字符串) & { 822 + baz: number | null; 823 + qux: number; 824 + }; 825 + 826 + /** 827 + * Model used to test deduplication strategy (unused) 828 + */ 829 + export type ParameterSimpleParameterUnused = string; 830 + 831 + /** 832 + * Model used to test deduplication strategy 833 + */ 834 + export type PostServiceWithEmptyTagResponse = string; 835 + 836 + /** 837 + * Model used to test deduplication strategy 838 + */ 839 + export type PostServiceWithEmptyTagResponse2 = string; 840 + 841 + /** 842 + * Model used to test deduplication strategy 843 + */ 844 + export type DeleteFooData = string; 845 + 846 + /** 847 + * Model used to test deduplication strategy 848 + */ 849 + export type DeleteFooData2 = string; 850 + 851 + /** 852 + * Model with restricted keyword name 853 + */ 854 + export type _import = string; 855 + 856 + export type SchemaWithFormRestrictedKeys = { 857 + description?: string; 858 + 'x-enum-descriptions'?: string; 859 + 'x-enum-varnames'?: string; 860 + 'x-enumNames'?: string; 861 + title?: string; 862 + object?: { 863 + description?: string; 864 + 'x-enum-descriptions'?: string; 865 + 'x-enum-varnames'?: string; 866 + 'x-enumNames'?: string; 867 + title?: string; 868 + }; 869 + array?: Array<{ 870 + description?: string; 871 + 'x-enum-descriptions'?: string; 872 + 'x-enum-varnames'?: string; 873 + 'x-enumNames'?: string; 874 + title?: string; 875 + }>; 876 + }; 877 + 878 + /** 879 + * This schema was giving PascalCase transformations a hard time 880 + */ 881 + export type io_k8s_apimachinery_pkg_apis_meta_v1_DeleteOptions = { 882 + /** 883 + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. 884 + */ 885 + preconditions?: io_k8s_apimachinery_pkg_apis_meta_v1_Preconditions; 886 + }; 887 + 888 + /** 889 + * This schema was giving PascalCase transformations a hard time 890 + */ 891 + export type io_k8s_apimachinery_pkg_apis_meta_v1_Preconditions = { 892 + /** 893 + * Specifies the target ResourceVersion 894 + */ 895 + resourceVersion?: string; 896 + /** 897 + * Specifies the target UID. 898 + */ 899 + uid?: string; 900 + }; 901 + 902 + export type AdditionalPropertiesUnknownIssue = { 903 + [key: string]: string | number; 904 + }; 905 + 906 + export type AdditionalPropertiesUnknownIssue2 = { 907 + [key: string]: string | number; 908 + }; 909 + 910 + export type AdditionalPropertiesUnknownIssue3 = string & { 911 + entries: { 912 + [key: string]: AdditionalPropertiesUnknownIssue; 913 + }; 914 + }; 915 + 916 + export type AdditionalPropertiesIntegerIssue = { 917 + value: number; 918 + [key: string]: number; 919 + }; 920 + 921 + export type OneOfAllOfIssue = ((ConstValue | Generic_Schema_Duplicate_Issue_1_System_Boolean_) & _3e_num_1Период) | Generic_Schema_Duplicate_Issue_1_System_String_; 922 + 923 + export type Generic_Schema_Duplicate_Issue_1_System_Boolean_ = { 924 + item?: boolean; 925 + error?: string | null; 926 + readonly hasError?: boolean; 927 + data?: { 928 + [key: string]: never; 929 + }; 930 + }; 931 + 932 + export type Generic_Schema_Duplicate_Issue_1_System_String_ = { 933 + item?: string | null; 934 + error?: string | null; 935 + readonly hasError?: boolean; 936 + }; 937 + 938 + /** 939 + * This is a reusable parameter 940 + */ 941 + export type SimpleParameter = string; 942 + 943 + /** 944 + * Parameter with illegal characters 945 + */ 946 + export type x_Foo_Bar = ModelWithString; 947 + 948 + export type RouteHandlers = { 949 + export: RouteHandler<{}>; 950 + import: RouteHandler<{ 951 + Body: ModelWithReadOnlyAndWriteOnly | ModelWithArrayReadOnlyAndWriteOnly; 952 + Reply: { 953 + 200: Model_From_Zendesk; 954 + }; 955 + }>; 956 + apiVVersionOdataControllerCount: RouteHandler<{ 957 + Reply: { 958 + 200: Model_From_Zendesk; 959 + }; 960 + }>; 961 + getApiVbyApiVersionSimpleOperation: RouteHandler<{ 962 + Params: { 963 + /** 964 + * foo in method 965 + */ 966 + foo_param: string; 967 + }; 968 + Reply: { 969 + 200: number; 970 + }; 971 + }>; 972 + deleteCallWithoutParametersAndResponse: RouteHandler<{}>; 973 + getCallWithoutParametersAndResponse: RouteHandler<{}>; 974 + headCallWithoutParametersAndResponse: RouteHandler<{}>; 975 + optionsCallWithoutParametersAndResponse: RouteHandler<{}>; 976 + patchCallWithoutParametersAndResponse: RouteHandler<{}>; 977 + postCallWithoutParametersAndResponse: RouteHandler<{}>; 978 + putCallWithoutParametersAndResponse: RouteHandler<{}>; 979 + deleteFoo: RouteHandler<{ 980 + Headers: { 981 + /** 982 + * Parameter with illegal characters 983 + */ 984 + 'x-Foo-Bar': ModelWithString; 985 + }; 986 + Params: { 987 + /** 988 + * foo in method 989 + */ 990 + foo_param: string; 991 + /** 992 + * bar in method 993 + */ 994 + BarParam: string; 995 + }; 996 + }>; 997 + callWithDescriptions: RouteHandler<{ 998 + Querystring?: { 999 + /** 1000 + * Testing multiline comments in string: First line 1001 + * Second line 1002 + * 1003 + * Fourth line 1004 + */ 1005 + parameterWithBreaks?: string; 1006 + /** 1007 + * Testing backticks in string: `backticks` and ```multiple backticks``` should work 1008 + */ 1009 + parameterWithBackticks?: string; 1010 + /** 1011 + * Testing slashes in string: \backwards\\\ and /forwards/// should work 1012 + */ 1013 + parameterWithSlashes?: string; 1014 + /** 1015 + * Testing expression placeholders in string: ${expression} should work 1016 + */ 1017 + parameterWithExpressionPlaceholders?: string; 1018 + /** 1019 + * Testing quotes in string: 'single quote''' and "double quotes""" should work 1020 + */ 1021 + parameterWithQuotes?: string; 1022 + /** 1023 + * Testing reserved characters in string: * inline * and ** inline ** should work 1024 + */ 1025 + parameterWithReservedCharacters?: string; 1026 + }; 1027 + }>; 1028 + deprecatedCall: RouteHandler<{ 1029 + Headers: { 1030 + /** 1031 + * This parameter is deprecated 1032 + * @deprecated 1033 + */ 1034 + parameter: DeprecatedModel | null; 1035 + }; 1036 + }>; 1037 + callWithParameters: RouteHandler<{ 1038 + Body: {} | null; 1039 + Headers: { 1040 + /** 1041 + * This is the parameter that goes into the header 1042 + */ 1043 + parameterHeader: string | null; 1044 + }; 1045 + Querystring: { 1046 + foo_ref_enum?: ModelWithNestedArrayEnumsDataFoo; 1047 + foo_all_of_enum: ModelWithNestedArrayEnumsDataFoo; 1048 + /** 1049 + * This is the parameter that goes into the query params 1050 + */ 1051 + cursor: string | null; 1052 + }; 1053 + Params: { 1054 + /** 1055 + * This is the parameter that goes into the path 1056 + */ 1057 + parameterPath: string | null; 1058 + /** 1059 + * api-version should be required in standalone clients 1060 + */ 1061 + 'api-version': string | null; 1062 + }; 1063 + }>; 1064 + callWithWeirdParameterNames: RouteHandler<{ 1065 + Body: ModelWithString | null; 1066 + Headers: { 1067 + /** 1068 + * This is the parameter that goes into the request header 1069 + */ 1070 + 'parameter.header': string | null; 1071 + }; 1072 + Querystring: { 1073 + /** 1074 + * This is the parameter with a reserved keyword 1075 + */ 1076 + default?: string; 1077 + /** 1078 + * This is the parameter that goes into the request query params 1079 + */ 1080 + 'parameter-query': string | null; 1081 + }; 1082 + Params: { 1083 + /** 1084 + * This is the parameter that goes into the path 1085 + */ 1086 + 'parameter.path.1'?: string; 1087 + /** 1088 + * This is the parameter that goes into the path 1089 + */ 1090 + 'parameter-path-2'?: string; 1091 + /** 1092 + * This is the parameter that goes into the path 1093 + */ 1094 + 'PARAMETER-PATH-3'?: string; 1095 + /** 1096 + * api-version should be required in standalone clients 1097 + */ 1098 + 'api-version': string | null; 1099 + }; 1100 + }>; 1101 + getCallWithOptionalParam: RouteHandler<{ 1102 + Body: ModelWithOneOfEnum; 1103 + Querystring?: { 1104 + /** 1105 + * This is an optional parameter 1106 + */ 1107 + page?: number; 1108 + }; 1109 + }>; 1110 + postCallWithOptionalParam: RouteHandler<{ 1111 + Body: { 1112 + offset?: number | null; 1113 + }; 1114 + Querystring: { 1115 + /** 1116 + * This is a required parameter 1117 + */ 1118 + parameter: Pageable; 1119 + }; 1120 + Reply: { 1121 + 200: number; 1122 + 204: void; 1123 + }; 1124 + }>; 1125 + postApiVbyApiVersionRequestBody: RouteHandler<{ 1126 + Body: ModelWithString; 1127 + Querystring?: { 1128 + /** 1129 + * This is a reusable parameter 1130 + */ 1131 + parameter?: string; 1132 + }; 1133 + }>; 1134 + postApiVbyApiVersionFormData: RouteHandler<{ 1135 + Body: ModelWithString; 1136 + Querystring?: { 1137 + /** 1138 + * This is a reusable parameter 1139 + */ 1140 + parameter?: string; 1141 + }; 1142 + }>; 1143 + callWithDefaultParameters: RouteHandler<{ 1144 + Querystring?: { 1145 + /** 1146 + * This is a simple string with default value 1147 + */ 1148 + parameterString?: string | null; 1149 + /** 1150 + * This is a simple number with default value 1151 + */ 1152 + parameterNumber?: number | null; 1153 + /** 1154 + * This is a simple boolean with default value 1155 + */ 1156 + parameterBoolean?: boolean | null; 1157 + /** 1158 + * This is a simple enum with default value 1159 + */ 1160 + parameterEnum?: 'Success' | 'Warning' | 'Error'; 1161 + /** 1162 + * This is a simple model with default value 1163 + */ 1164 + parameterModel?: ModelWithString | null; 1165 + }; 1166 + }>; 1167 + callWithDefaultOptionalParameters: RouteHandler<{ 1168 + Querystring?: { 1169 + /** 1170 + * This is a simple string that is optional with default value 1171 + */ 1172 + parameterString?: string; 1173 + /** 1174 + * This is a simple number that is optional with default value 1175 + */ 1176 + parameterNumber?: number; 1177 + /** 1178 + * This is a simple boolean that is optional with default value 1179 + */ 1180 + parameterBoolean?: boolean; 1181 + /** 1182 + * This is a simple enum that is optional with default value 1183 + */ 1184 + parameterEnum?: 'Success' | 'Warning' | 'Error'; 1185 + /** 1186 + * This is a simple model that is optional with default value 1187 + */ 1188 + parameterModel?: ModelWithString; 1189 + }; 1190 + }>; 1191 + callToTestOrderOfParams: RouteHandler<{ 1192 + Querystring: { 1193 + /** 1194 + * This is a optional string with default 1195 + */ 1196 + parameterOptionalStringWithDefault?: string; 1197 + /** 1198 + * This is a optional string with empty default 1199 + */ 1200 + parameterOptionalStringWithEmptyDefault?: string; 1201 + /** 1202 + * This is a optional string with no default 1203 + */ 1204 + parameterOptionalStringWithNoDefault?: string; 1205 + /** 1206 + * This is a string with default 1207 + */ 1208 + parameterStringWithDefault: string; 1209 + /** 1210 + * This is a string with empty default 1211 + */ 1212 + parameterStringWithEmptyDefault: string; 1213 + /** 1214 + * This is a string with no default 1215 + */ 1216 + parameterStringWithNoDefault: string; 1217 + /** 1218 + * This is a string that can be null with no default 1219 + */ 1220 + parameterStringNullableWithNoDefault?: string | null; 1221 + /** 1222 + * This is a string that can be null with default 1223 + */ 1224 + parameterStringNullableWithDefault?: string | null; 1225 + }; 1226 + }>; 1227 + duplicateName: RouteHandler<{}>; 1228 + duplicateName2: RouteHandler<{}>; 1229 + duplicateName3: RouteHandler<{}>; 1230 + duplicateName4: RouteHandler<{}>; 1231 + callWithNoContentResponse: RouteHandler<{ 1232 + Reply: { 1233 + 204: void; 1234 + }; 1235 + }>; 1236 + callWithResponseAndNoContentResponse: RouteHandler<{ 1237 + Reply: { 1238 + 200: number; 1239 + 204: void; 1240 + }; 1241 + }>; 1242 + dummyA: RouteHandler<{ 1243 + Reply: { 1244 + 200: _400; 1245 + }; 1246 + }>; 1247 + dummyB: RouteHandler<{ 1248 + Reply: { 1249 + 204: void; 1250 + }; 1251 + }>; 1252 + callWithResponse: RouteHandler<{ 1253 + Reply: {}; 1254 + }>; 1255 + callWithDuplicateResponses: RouteHandler<{ 1256 + Reply: { 1257 + 200: ModelWithBoolean & ModelWithInteger; 1258 + 201: ModelWithString; 1259 + 202: ModelWithString; 1260 + 500: ModelWithStringError; 1261 + 501: ModelWithStringError; 1262 + 502: ModelWithStringError; 1263 + '4XX': DictionaryWithArray; 1264 + }; 1265 + }>; 1266 + callWithResponses: RouteHandler<{ 1267 + Reply: { 1268 + 200: { 1269 + readonly '@namespace.string'?: string; 1270 + readonly '@namespace.integer'?: number; 1271 + readonly value?: Array<ModelWithString>; 1272 + }; 1273 + 201: ModelThatExtends; 1274 + 202: ModelThatExtendsExtends; 1275 + 500: ModelWithStringError; 1276 + 501: ModelWithStringError; 1277 + 502: ModelWithStringError; 1278 + }; 1279 + }>; 1280 + collectionFormat: RouteHandler<{ 1281 + Querystring: { 1282 + /** 1283 + * This is an array parameter that is sent as csv format (comma-separated values) 1284 + */ 1285 + parameterArrayCSV: Array<string> | null; 1286 + /** 1287 + * This is an array parameter that is sent as ssv format (space-separated values) 1288 + */ 1289 + parameterArraySSV: Array<string> | null; 1290 + /** 1291 + * This is an array parameter that is sent as tsv format (tab-separated values) 1292 + */ 1293 + parameterArrayTSV: Array<string> | null; 1294 + /** 1295 + * This is an array parameter that is sent as pipes format (pipe-separated values) 1296 + */ 1297 + parameterArrayPipes: Array<string> | null; 1298 + /** 1299 + * This is an array parameter that is sent as multi format (multiple parameter instances) 1300 + */ 1301 + parameterArrayMulti: Array<string> | null; 1302 + }; 1303 + }>; 1304 + types: RouteHandler<{ 1305 + Querystring: { 1306 + /** 1307 + * This is a number parameter 1308 + */ 1309 + parameterNumber: number; 1310 + /** 1311 + * This is a string parameter 1312 + */ 1313 + parameterString: string | null; 1314 + /** 1315 + * This is a boolean parameter 1316 + */ 1317 + parameterBoolean: boolean | null; 1318 + /** 1319 + * This is an object parameter 1320 + */ 1321 + parameterObject: {} | null; 1322 + /** 1323 + * This is an array parameter 1324 + */ 1325 + parameterArray: Array<string> | null; 1326 + /** 1327 + * This is a dictionary parameter 1328 + */ 1329 + parameterDictionary: {} | null; 1330 + /** 1331 + * This is an enum parameter 1332 + */ 1333 + parameterEnum: 'Success' | 'Warning' | 'Error'; 1334 + }; 1335 + Params?: { 1336 + /** 1337 + * This is a number parameter 1338 + */ 1339 + id?: number; 1340 + }; 1341 + Reply: { 1342 + 200: number; 1343 + 201: string; 1344 + 202: boolean; 1345 + 203: {}; 1346 + }; 1347 + }>; 1348 + uploadFile: RouteHandler<{ 1349 + Body: Blob | File; 1350 + Params: { 1351 + /** 1352 + * api-version should be required in standalone clients 1353 + */ 1354 + 'api-version': string | null; 1355 + }; 1356 + Reply: { 1357 + 200: boolean; 1358 + }; 1359 + }>; 1360 + fileResponse: RouteHandler<{ 1361 + Params: { 1362 + id: string; 1363 + /** 1364 + * api-version should be required in standalone clients 1365 + */ 1366 + 'api-version': string; 1367 + }; 1368 + Reply: { 1369 + 200: Blob | File; 1370 + }; 1371 + }>; 1372 + complexTypes: RouteHandler<{ 1373 + Querystring: { 1374 + /** 1375 + * Parameter containing object 1376 + */ 1377 + parameterObject: { 1378 + first?: { 1379 + second?: { 1380 + third?: string; 1381 + }; 1382 + }; 1383 + }; 1384 + /** 1385 + * Parameter containing reference 1386 + */ 1387 + parameterReference: ModelWithString; 1388 + }; 1389 + Reply: { 1390 + 200: Array<ModelWithString>; 1391 + 400: unknown; 1392 + 500: unknown; 1393 + }; 1394 + }>; 1395 + multipartResponse: RouteHandler<{ 1396 + Reply: { 1397 + 200: { 1398 + file?: Blob | File; 1399 + metadata?: { 1400 + foo?: string; 1401 + bar?: string; 1402 + }; 1403 + }; 1404 + }; 1405 + }>; 1406 + multipartRequest: RouteHandler<{ 1407 + Body: { 1408 + content?: Blob | File; 1409 + data?: ModelWithString | null; 1410 + }; 1411 + }>; 1412 + complexParams: RouteHandler<{ 1413 + Body: { 1414 + readonly key: string | null; 1415 + name: string | null; 1416 + enabled?: boolean; 1417 + type: 'Monkey' | 'Horse' | 'Bird'; 1418 + listOfModels?: Array<ModelWithString> | null; 1419 + listOfStrings?: Array<string> | null; 1420 + parameters: ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary; 1421 + readonly user?: { 1422 + readonly id?: number; 1423 + readonly name?: string | null; 1424 + }; 1425 + }; 1426 + Params: { 1427 + id: number; 1428 + /** 1429 + * api-version should be required in standalone clients 1430 + */ 1431 + 'api-version': string; 1432 + }; 1433 + Reply: { 1434 + 200: ModelWithString; 1435 + }; 1436 + }>; 1437 + callWithResultFromHeader: RouteHandler<{ 1438 + Reply: { 1439 + 200: unknown; 1440 + 400: unknown; 1441 + 500: unknown; 1442 + }; 1443 + }>; 1444 + testErrorCode: RouteHandler<{ 1445 + Querystring: { 1446 + /** 1447 + * Status code to return 1448 + */ 1449 + status: number; 1450 + }; 1451 + Reply: { 1452 + 200: unknown; 1453 + 500: unknown; 1454 + 501: unknown; 1455 + 502: unknown; 1456 + 503: unknown; 1457 + }; 1458 + }>; 1459 + nonAsciiæøåÆøÅöôêÊ字符串: RouteHandler<{ 1460 + Querystring: { 1461 + /** 1462 + * Dummy input param 1463 + */ 1464 + nonAsciiParamæøåÆØÅöôêÊ: number; 1465 + }; 1466 + Reply: { 1467 + 200: Array<NonAsciiStringæøåÆØÅöôêÊ字符串>; 1468 + }; 1469 + }>; 1470 + putWithFormUrlEncoded: RouteHandler<{ 1471 + Body: ArrayWithStrings; 1472 + }>; 1473 + };
+3
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/fastify/index.ts
··· 1 + // This file is auto-generated by @hey-api/openapi-ts 2 + export * from './types.gen'; 3 + export * from './services.gen';
+382
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/fastify/services.gen.ts
··· 1 + // This file is auto-generated by @hey-api/openapi-ts 2 + 3 + import { createClient, createConfig, type Options, formDataBodySerializer, urlSearchParamsBodySerializer } from '@hey-api/client-fetch'; 4 + import type { ImportData, ImportResponse, ApiVversionOdataControllerCountResponse, GetApiVbyApiVersionSimpleOperationData, GetApiVbyApiVersionSimpleOperationError, GetApiVbyApiVersionSimpleOperationResponse, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithNoContentResponseResponse, CallWithResponseAndNoContentResponseResponse, DummyAResponse, DummyBResponse, CallWithResponseResponse, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, TypesResponse, UploadFileData, UploadFileResponse, FileResponseData, FileResponseResponse, ComplexTypesData, ComplexTypesResponse, MultipartResponseResponse, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from './types.gen'; 5 + 6 + export const client = createClient(createConfig()); 7 + 8 + export const export_ = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 9 + return (options?.client ?? client).get<unknown, unknown, ThrowOnError>({ 10 + ...options, 11 + url: '/api/v{api-version}/no-tag' 12 + }); 13 + }; 14 + 15 + export const import_ = <ThrowOnError extends boolean = false>(options: Options<ImportData, ThrowOnError>) => { 16 + return (options?.client ?? client).post<ImportResponse, unknown, ThrowOnError>({ 17 + ...options, 18 + headers: { 19 + 'Content-Type': 'application/json', 20 + ...options?.headers 21 + }, 22 + url: '/api/v{api-version}/no-tag' 23 + }); 24 + }; 25 + 26 + export const apiVVersionOdataControllerCount = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 27 + return (options?.client ?? client).get<ApiVversionOdataControllerCountResponse, unknown, ThrowOnError>({ 28 + ...options, 29 + url: '/api/v{api-version}/simple/$count' 30 + }); 31 + }; 32 + 33 + export const getApiVbyApiVersionSimpleOperation = <ThrowOnError extends boolean = false>(options: Options<GetApiVbyApiVersionSimpleOperationData, ThrowOnError>) => { 34 + return (options?.client ?? client).get<GetApiVbyApiVersionSimpleOperationResponse, GetApiVbyApiVersionSimpleOperationError, ThrowOnError>({ 35 + ...options, 36 + url: '/api/v{api-version}/simple:operation' 37 + }); 38 + }; 39 + 40 + export const deleteCallWithoutParametersAndResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 41 + return (options?.client ?? client).delete<unknown, unknown, ThrowOnError>({ 42 + ...options, 43 + url: '/api/v{api-version}/simple' 44 + }); 45 + }; 46 + 47 + export const getCallWithoutParametersAndResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 48 + return (options?.client ?? client).get<unknown, unknown, ThrowOnError>({ 49 + ...options, 50 + url: '/api/v{api-version}/simple' 51 + }); 52 + }; 53 + 54 + export const headCallWithoutParametersAndResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 55 + return (options?.client ?? client).head<unknown, unknown, ThrowOnError>({ 56 + ...options, 57 + url: '/api/v{api-version}/simple' 58 + }); 59 + }; 60 + 61 + export const optionsCallWithoutParametersAndResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 62 + return (options?.client ?? client).options<unknown, unknown, ThrowOnError>({ 63 + ...options, 64 + url: '/api/v{api-version}/simple' 65 + }); 66 + }; 67 + 68 + export const patchCallWithoutParametersAndResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 69 + return (options?.client ?? client).patch<unknown, unknown, ThrowOnError>({ 70 + ...options, 71 + url: '/api/v{api-version}/simple' 72 + }); 73 + }; 74 + 75 + export const postCallWithoutParametersAndResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 76 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 77 + ...options, 78 + url: '/api/v{api-version}/simple' 79 + }); 80 + }; 81 + 82 + export const putCallWithoutParametersAndResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 83 + return (options?.client ?? client).put<unknown, unknown, ThrowOnError>({ 84 + ...options, 85 + url: '/api/v{api-version}/simple' 86 + }); 87 + }; 88 + 89 + export const deleteFoo = <ThrowOnError extends boolean = false>(options: Options<DeleteFooData3, ThrowOnError>) => { 90 + return (options?.client ?? client).delete<unknown, unknown, ThrowOnError>({ 91 + ...options, 92 + url: '/api/v{api-version}/foo/{foo_param}/bar/{BarParam}' 93 + }); 94 + }; 95 + 96 + export const callWithDescriptions = <ThrowOnError extends boolean = false>(options?: Options<CallWithDescriptionsData, ThrowOnError>) => { 97 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 98 + ...options, 99 + url: '/api/v{api-version}/descriptions' 100 + }); 101 + }; 102 + 103 + /** 104 + * @deprecated 105 + */ 106 + export const deprecatedCall = <ThrowOnError extends boolean = false>(options: Options<DeprecatedCallData, ThrowOnError>) => { 107 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 108 + ...options, 109 + url: '/api/v{api-version}/parameters/deprecated' 110 + }); 111 + }; 112 + 113 + export const callWithParameters = <ThrowOnError extends boolean = false>(options: Options<CallWithParametersData, ThrowOnError>) => { 114 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 115 + ...options, 116 + headers: { 117 + 'Content-Type': 'application/json', 118 + ...options?.headers 119 + }, 120 + url: '/api/v{api-version}/parameters/{parameterPath}' 121 + }); 122 + }; 123 + 124 + export const callWithWeirdParameterNames = <ThrowOnError extends boolean = false>(options: Options<CallWithWeirdParameterNamesData, ThrowOnError>) => { 125 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 126 + ...options, 127 + headers: { 128 + 'Content-Type': 'application/json', 129 + ...options?.headers 130 + }, 131 + url: '/api/v{api-version}/parameters/{parameter.path.1}/{parameter-path-2}/{PARAMETER-PATH-3}' 132 + }); 133 + }; 134 + 135 + export const getCallWithOptionalParam = <ThrowOnError extends boolean = false>(options: Options<GetCallWithOptionalParamData, ThrowOnError>) => { 136 + return (options?.client ?? client).get<unknown, unknown, ThrowOnError>({ 137 + ...options, 138 + headers: { 139 + 'Content-Type': 'application/json', 140 + ...options?.headers 141 + }, 142 + url: '/api/v{api-version}/parameters' 143 + }); 144 + }; 145 + 146 + export const postCallWithOptionalParam = <ThrowOnError extends boolean = false>(options: Options<PostCallWithOptionalParamData, ThrowOnError>) => { 147 + return (options?.client ?? client).post<PostCallWithOptionalParamResponse, unknown, ThrowOnError>({ 148 + ...options, 149 + headers: { 150 + 'Content-Type': 'application/json', 151 + ...options?.headers 152 + }, 153 + url: '/api/v{api-version}/parameters' 154 + }); 155 + }; 156 + 157 + export const postApiVbyApiVersionRequestBody = <ThrowOnError extends boolean = false>(options?: Options<PostApiVbyApiVersionRequestBodyData, ThrowOnError>) => { 158 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 159 + ...options, 160 + headers: { 161 + 'Content-Type': 'application/json', 162 + ...options?.headers 163 + }, 164 + url: '/api/v{api-version}/requestBody' 165 + }); 166 + }; 167 + 168 + export const postApiVbyApiVersionFormData = <ThrowOnError extends boolean = false>(options?: Options<PostApiVbyApiVersionFormDataData, ThrowOnError>) => { 169 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 170 + ...options, 171 + ...formDataBodySerializer, 172 + headers: { 173 + 'Content-Type': null, 174 + ...options?.headers 175 + }, 176 + url: '/api/v{api-version}/formData' 177 + }); 178 + }; 179 + 180 + export const callWithDefaultParameters = <ThrowOnError extends boolean = false>(options?: Options<CallWithDefaultParametersData, ThrowOnError>) => { 181 + return (options?.client ?? client).get<unknown, unknown, ThrowOnError>({ 182 + ...options, 183 + url: '/api/v{api-version}/defaults' 184 + }); 185 + }; 186 + 187 + export const callWithDefaultOptionalParameters = <ThrowOnError extends boolean = false>(options?: Options<CallWithDefaultOptionalParametersData, ThrowOnError>) => { 188 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 189 + ...options, 190 + url: '/api/v{api-version}/defaults' 191 + }); 192 + }; 193 + 194 + export const callToTestOrderOfParams = <ThrowOnError extends boolean = false>(options: Options<CallToTestOrderOfParamsData, ThrowOnError>) => { 195 + return (options?.client ?? client).put<unknown, unknown, ThrowOnError>({ 196 + ...options, 197 + url: '/api/v{api-version}/defaults' 198 + }); 199 + }; 200 + 201 + export const duplicateName = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 202 + return (options?.client ?? client).delete<unknown, unknown, ThrowOnError>({ 203 + ...options, 204 + url: '/api/v{api-version}/duplicate' 205 + }); 206 + }; 207 + 208 + export const duplicateName2 = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 209 + return (options?.client ?? client).get<unknown, unknown, ThrowOnError>({ 210 + ...options, 211 + url: '/api/v{api-version}/duplicate' 212 + }); 213 + }; 214 + 215 + export const duplicateName3 = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 216 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 217 + ...options, 218 + url: '/api/v{api-version}/duplicate' 219 + }); 220 + }; 221 + 222 + export const duplicateName4 = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 223 + return (options?.client ?? client).put<unknown, unknown, ThrowOnError>({ 224 + ...options, 225 + url: '/api/v{api-version}/duplicate' 226 + }); 227 + }; 228 + 229 + export const callWithNoContentResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 230 + return (options?.client ?? client).get<CallWithNoContentResponseResponse, unknown, ThrowOnError>({ 231 + ...options, 232 + url: '/api/v{api-version}/no-content' 233 + }); 234 + }; 235 + 236 + export const callWithResponseAndNoContentResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 237 + return (options?.client ?? client).get<CallWithResponseAndNoContentResponseResponse, unknown, ThrowOnError>({ 238 + ...options, 239 + url: '/api/v{api-version}/multiple-tags/response-and-no-content' 240 + }); 241 + }; 242 + 243 + export const dummyA = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 244 + return (options?.client ?? client).get<DummyAResponse, unknown, ThrowOnError>({ 245 + ...options, 246 + url: '/api/v{api-version}/multiple-tags/a' 247 + }); 248 + }; 249 + 250 + export const dummyB = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 251 + return (options?.client ?? client).get<DummyBResponse, unknown, ThrowOnError>({ 252 + ...options, 253 + url: '/api/v{api-version}/multiple-tags/b' 254 + }); 255 + }; 256 + 257 + export const callWithResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 258 + return (options?.client ?? client).get<CallWithResponseResponse, unknown, ThrowOnError>({ 259 + ...options, 260 + url: '/api/v{api-version}/response' 261 + }); 262 + }; 263 + 264 + export const callWithDuplicateResponses = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 265 + return (options?.client ?? client).post<CallWithDuplicateResponsesResponse, CallWithDuplicateResponsesError, ThrowOnError>({ 266 + ...options, 267 + url: '/api/v{api-version}/response' 268 + }); 269 + }; 270 + 271 + export const callWithResponses = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 272 + return (options?.client ?? client).put<CallWithResponsesResponse, CallWithResponsesError, ThrowOnError>({ 273 + ...options, 274 + url: '/api/v{api-version}/response' 275 + }); 276 + }; 277 + 278 + export const collectionFormat = <ThrowOnError extends boolean = false>(options: Options<CollectionFormatData, ThrowOnError>) => { 279 + return (options?.client ?? client).get<unknown, unknown, ThrowOnError>({ 280 + ...options, 281 + url: '/api/v{api-version}/collectionFormat' 282 + }); 283 + }; 284 + 285 + export const types = <ThrowOnError extends boolean = false>(options: Options<TypesData, ThrowOnError>) => { 286 + return (options?.client ?? client).get<TypesResponse, unknown, ThrowOnError>({ 287 + ...options, 288 + url: '/api/v{api-version}/types' 289 + }); 290 + }; 291 + 292 + export const uploadFile = <ThrowOnError extends boolean = false>(options: Options<UploadFileData, ThrowOnError>) => { 293 + return (options?.client ?? client).post<UploadFileResponse, unknown, ThrowOnError>({ 294 + ...options, 295 + ...urlSearchParamsBodySerializer, 296 + headers: { 297 + 'Content-Type': 'application/x-www-form-urlencoded', 298 + ...options?.headers 299 + }, 300 + url: '/api/v{api-version}/upload' 301 + }); 302 + }; 303 + 304 + export const fileResponse = <ThrowOnError extends boolean = false>(options: Options<FileResponseData, ThrowOnError>) => { 305 + return (options?.client ?? client).get<FileResponseResponse, unknown, ThrowOnError>({ 306 + ...options, 307 + url: '/api/v{api-version}/file/{id}' 308 + }); 309 + }; 310 + 311 + export const complexTypes = <ThrowOnError extends boolean = false>(options: Options<ComplexTypesData, ThrowOnError>) => { 312 + return (options?.client ?? client).get<ComplexTypesResponse, unknown, ThrowOnError>({ 313 + ...options, 314 + url: '/api/v{api-version}/complex' 315 + }); 316 + }; 317 + 318 + export const multipartResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 319 + return (options?.client ?? client).get<MultipartResponseResponse, unknown, ThrowOnError>({ 320 + ...options, 321 + url: '/api/v{api-version}/multipart' 322 + }); 323 + }; 324 + 325 + export const multipartRequest = <ThrowOnError extends boolean = false>(options?: Options<MultipartRequestData, ThrowOnError>) => { 326 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 327 + ...options, 328 + ...formDataBodySerializer, 329 + headers: { 330 + 'Content-Type': null, 331 + ...options?.headers 332 + }, 333 + url: '/api/v{api-version}/multipart' 334 + }); 335 + }; 336 + 337 + export const complexParams = <ThrowOnError extends boolean = false>(options: Options<ComplexParamsData, ThrowOnError>) => { 338 + return (options?.client ?? client).put<ComplexParamsResponse, unknown, ThrowOnError>({ 339 + ...options, 340 + headers: { 341 + 'Content-Type': 'application/json-patch+json', 342 + ...options?.headers 343 + }, 344 + url: '/api/v{api-version}/complex/{id}' 345 + }); 346 + }; 347 + 348 + export const callWithResultFromHeader = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 349 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 350 + ...options, 351 + url: '/api/v{api-version}/header' 352 + }); 353 + }; 354 + 355 + export const testErrorCode = <ThrowOnError extends boolean = false>(options: Options<TestErrorCodeData, ThrowOnError>) => { 356 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 357 + ...options, 358 + url: '/api/v{api-version}/error' 359 + }); 360 + }; 361 + 362 + export const nonAsciiæøåÆøÅöôêÊ字符串 = <ThrowOnError extends boolean = false>(options: Options<NonAsciiæøåÆøÅöôêÊ字符串Data, ThrowOnError>) => { 363 + return (options?.client ?? client).post<NonAsciiæøåÆøÅöôêÊ字符串Response, unknown, ThrowOnError>({ 364 + ...options, 365 + url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串' 366 + }); 367 + }; 368 + 369 + /** 370 + * Login User 371 + */ 372 + export const putWithFormUrlEncoded = <ThrowOnError extends boolean = false>(options: Options<PutWithFormUrlEncodedData, ThrowOnError>) => { 373 + return (options?.client ?? client).put<unknown, unknown, ThrowOnError>({ 374 + ...options, 375 + ...urlSearchParamsBodySerializer, 376 + headers: { 377 + 'Content-Type': 'application/x-www-form-urlencoded', 378 + ...options?.headers 379 + }, 380 + url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串' 381 + }); 382 + };
+1470
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/fastify/types.gen.ts
··· 1 + // This file is auto-generated by @hey-api/openapi-ts 2 + 3 + /** 4 + * Model with number-only name 5 + */ 6 + export type _400 = string; 7 + 8 + /** 9 + * Testing multiline comments in string: First line 10 + * Second line 11 + * 12 + * Fourth line 13 + */ 14 + export type camelCaseCommentWithBreaks = number; 15 + 16 + /** 17 + * Testing multiline comments in string: First line 18 + * Second line 19 + * 20 + * Fourth line 21 + */ 22 + export type CommentWithBreaks = number; 23 + 24 + /** 25 + * Testing backticks in string: `backticks` and ```multiple backticks``` should work 26 + */ 27 + export type CommentWithBackticks = number; 28 + 29 + /** 30 + * Testing backticks and quotes in string: `backticks`, 'quotes', "double quotes" and ```multiple backticks``` should work 31 + */ 32 + export type CommentWithBackticksAndQuotes = number; 33 + 34 + /** 35 + * Testing slashes in string: \backwards\\\ and /forwards/// should work 36 + */ 37 + export type CommentWithSlashes = number; 38 + 39 + /** 40 + * Testing expression placeholders in string: ${expression} should work 41 + */ 42 + export type CommentWithExpressionPlaceholders = number; 43 + 44 + /** 45 + * Testing quotes in string: 'single quote''' and "double quotes""" should work 46 + */ 47 + export type CommentWithQuotes = number; 48 + 49 + /** 50 + * Testing reserved characters in string: * inline * and ** inline ** should work 51 + */ 52 + export type CommentWithReservedCharacters = number; 53 + 54 + /** 55 + * This is a simple number 56 + */ 57 + export type SimpleInteger = number; 58 + 59 + /** 60 + * This is a simple boolean 61 + */ 62 + export type SimpleBoolean = boolean; 63 + 64 + /** 65 + * This is a simple string 66 + */ 67 + export type SimpleString = string; 68 + 69 + /** 70 + * A string with non-ascii (unicode) characters valid in typescript identifiers (æøåÆØÅöÔèÈ字符串) 71 + */ 72 + export type NonAsciiStringæøåÆØÅöôêÊ字符串 = string; 73 + 74 + /** 75 + * This is a simple file 76 + */ 77 + export type SimpleFile = Blob | File; 78 + 79 + /** 80 + * This is a simple reference 81 + */ 82 + export type SimpleReference = ModelWithString; 83 + 84 + /** 85 + * This is a simple string 86 + */ 87 + export type SimpleStringWithPattern = string | null; 88 + 89 + /** 90 + * This is a simple enum with strings 91 + */ 92 + export type EnumWithStrings = 'Success' | 'Warning' | 'Error' | "'Single Quote'" | '"Double Quotes"' | 'Non-ascii: øæåôöØÆÅÔÖ字符串'; 93 + 94 + export type EnumWithReplacedCharacters = "'Single Quote'" | '"Double Quotes"' | 'øæåôöØÆÅÔÖ字符串' | 3.1 | ''; 95 + 96 + /** 97 + * This is a simple enum with numbers 98 + */ 99 + export type EnumWithNumbers = 1 | 2 | 3 | 1.1 | 1.2 | 1.3 | 100 | 200 | 300 | -100 | -200 | -300 | -1.1 | -1.2 | -1.3; 100 + 101 + /** 102 + * Success=1,Warning=2,Error=3 103 + */ 104 + export type EnumFromDescription = number; 105 + 106 + /** 107 + * This is a simple enum with numbers 108 + */ 109 + export type EnumWithExtensions = 200 | 400 | 500; 110 + 111 + export type EnumWithXEnumNames = 0 | 1 | 2; 112 + 113 + /** 114 + * This is a simple array with numbers 115 + */ 116 + export type ArrayWithNumbers = Array<number>; 117 + 118 + /** 119 + * This is a simple array with booleans 120 + */ 121 + export type ArrayWithBooleans = Array<boolean>; 122 + 123 + /** 124 + * This is a simple array with strings 125 + */ 126 + export type ArrayWithStrings = Array<string>; 127 + 128 + /** 129 + * This is a simple array with references 130 + */ 131 + export type ArrayWithReferences = Array<ModelWithString>; 132 + 133 + /** 134 + * This is a simple array containing an array 135 + */ 136 + export type ArrayWithArray = Array<Array<ModelWithString>>; 137 + 138 + /** 139 + * This is a simple array with properties 140 + */ 141 + export type ArrayWithProperties = Array<{ 142 + '16x16'?: camelCaseCommentWithBreaks; 143 + bar?: string; 144 + }>; 145 + 146 + /** 147 + * This is a simple array with any of properties 148 + */ 149 + export type ArrayWithAnyOfProperties = Array<{ 150 + foo?: string; 151 + } | { 152 + bar?: string; 153 + }>; 154 + 155 + export type AnyOfAnyAndNull = { 156 + data?: unknown; 157 + }; 158 + 159 + /** 160 + * This is a simple array with any of properties 161 + */ 162 + export type AnyOfArrays = { 163 + results?: Array<{ 164 + foo?: string; 165 + } | { 166 + bar?: string; 167 + }>; 168 + }; 169 + 170 + /** 171 + * This is a string dictionary 172 + */ 173 + export type DictionaryWithString = { 174 + [key: string]: string; 175 + }; 176 + 177 + export type DictionaryWithPropertiesAndAdditionalProperties = { 178 + foo?: number; 179 + bar?: boolean; 180 + [key: string]: string | number | boolean | undefined; 181 + }; 182 + 183 + /** 184 + * This is a string reference 185 + */ 186 + export type DictionaryWithReference = { 187 + [key: string]: ModelWithString; 188 + }; 189 + 190 + /** 191 + * This is a complex dictionary 192 + */ 193 + export type DictionaryWithArray = { 194 + [key: string]: Array<ModelWithString>; 195 + }; 196 + 197 + /** 198 + * This is a string dictionary 199 + */ 200 + export type DictionaryWithDictionary = { 201 + [key: string]: { 202 + [key: string]: string; 203 + }; 204 + }; 205 + 206 + /** 207 + * This is a complex dictionary 208 + */ 209 + export type DictionaryWithProperties = { 210 + [key: string]: { 211 + foo?: string; 212 + bar?: string; 213 + }; 214 + }; 215 + 216 + /** 217 + * This is a model with one number property 218 + */ 219 + export type ModelWithInteger = { 220 + /** 221 + * This is a simple number property 222 + */ 223 + prop?: number; 224 + }; 225 + 226 + /** 227 + * This is a model with one boolean property 228 + */ 229 + export type ModelWithBoolean = { 230 + /** 231 + * This is a simple boolean property 232 + */ 233 + prop?: boolean; 234 + }; 235 + 236 + /** 237 + * This is a model with one string property 238 + */ 239 + export type ModelWithString = { 240 + /** 241 + * This is a simple string property 242 + */ 243 + prop?: string; 244 + }; 245 + 246 + /** 247 + * This is a model with one string property 248 + */ 249 + export type ModelWithStringError = { 250 + /** 251 + * This is a simple string property 252 + */ 253 + prop?: string; 254 + }; 255 + 256 + /** 257 + * `Comment` or `VoiceComment`. The JSON object for adding voice comments to tickets is different. See [Adding voice comments to tickets](/documentation/ticketing/managing-tickets/adding-voice-comments-to-tickets) 258 + */ 259 + export type Model_From_Zendesk = string; 260 + 261 + /** 262 + * This is a model with one string property 263 + */ 264 + export type ModelWithNullableString = { 265 + /** 266 + * This is a simple string property 267 + */ 268 + nullableProp1?: string | null; 269 + /** 270 + * This is a simple string property 271 + */ 272 + nullableRequiredProp1: string | null; 273 + /** 274 + * This is a simple string property 275 + */ 276 + nullableProp2?: string | null; 277 + /** 278 + * This is a simple string property 279 + */ 280 + nullableRequiredProp2: string | null; 281 + /** 282 + * This is a simple enum with strings 283 + */ 284 + 'foo_bar-enum'?: 'Success' | 'Warning' | 'Error' | 'ØÆÅ字符串'; 285 + }; 286 + 287 + /** 288 + * This is a model with one enum 289 + */ 290 + export type ModelWithEnum = { 291 + /** 292 + * This is a simple enum with strings 293 + */ 294 + 'foo_bar-enum'?: 'Success' | 'Warning' | 'Error' | 'ØÆÅ字符串'; 295 + /** 296 + * These are the HTTP error code enums 297 + */ 298 + statusCode?: '100' | '200 FOO' | '300 FOO_BAR' | '400 foo-bar' | '500 foo.bar' | '600 foo&bar'; 299 + /** 300 + * Simple boolean enum 301 + */ 302 + bool?: true; 303 + }; 304 + 305 + /** 306 + * This is a model with one enum with escaped name 307 + */ 308 + export type ModelWithEnumWithHyphen = { 309 + 'foo-bar-baz-qux'?: '3.0'; 310 + }; 311 + 312 + /** 313 + * This is a model with one enum 314 + */ 315 + export type ModelWithEnumFromDescription = { 316 + /** 317 + * Success=1,Warning=2,Error=3 318 + */ 319 + test?: number; 320 + }; 321 + 322 + /** 323 + * This is a model with nested enums 324 + */ 325 + export type ModelWithNestedEnums = { 326 + dictionaryWithEnum?: { 327 + [key: string]: 'Success' | 'Warning' | 'Error'; 328 + }; 329 + dictionaryWithEnumFromDescription?: { 330 + [key: string]: number; 331 + }; 332 + arrayWithEnum?: Array<'Success' | 'Warning' | 'Error'>; 333 + arrayWithDescription?: Array<number>; 334 + /** 335 + * This is a simple enum with strings 336 + */ 337 + 'foo_bar-enum'?: 'Success' | 'Warning' | 'Error' | 'ØÆÅ字符串'; 338 + }; 339 + 340 + /** 341 + * This is a model with one property containing a reference 342 + */ 343 + export type ModelWithReference = { 344 + prop?: ModelWithProperties; 345 + }; 346 + 347 + /** 348 + * This is a model with one property containing an array 349 + */ 350 + export type ModelWithArrayReadOnlyAndWriteOnly = { 351 + prop?: Array<ModelWithReadOnlyAndWriteOnly>; 352 + propWithFile?: Array<Blob | File>; 353 + propWithNumber?: Array<number>; 354 + }; 355 + 356 + /** 357 + * This is a model with one property containing an array 358 + */ 359 + export type ModelWithArray = { 360 + prop?: Array<ModelWithString>; 361 + propWithFile?: Array<Blob | File>; 362 + propWithNumber?: Array<number>; 363 + }; 364 + 365 + /** 366 + * This is a model with one property containing a dictionary 367 + */ 368 + export type ModelWithDictionary = { 369 + prop?: { 370 + [key: string]: string; 371 + }; 372 + }; 373 + 374 + /** 375 + * This is a deprecated model with a deprecated property 376 + * @deprecated 377 + */ 378 + export type DeprecatedModel = { 379 + /** 380 + * This is a deprecated property 381 + * @deprecated 382 + */ 383 + prop?: string; 384 + }; 385 + 386 + /** 387 + * This is a model with one property containing a circular reference 388 + */ 389 + export type ModelWithCircularReference = { 390 + prop?: ModelWithCircularReference; 391 + }; 392 + 393 + /** 394 + * This is a model with one property with a 'one of' relationship 395 + */ 396 + export type CompositionWithOneOf = { 397 + propA?: ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary; 398 + }; 399 + 400 + /** 401 + * This is a model with one property with a 'one of' relationship where the options are not $ref 402 + */ 403 + export type CompositionWithOneOfAnonymous = { 404 + propA?: { 405 + propA?: string; 406 + } | string | number; 407 + }; 408 + 409 + /** 410 + * Circle 411 + */ 412 + export type ModelCircle = { 413 + kind: string; 414 + radius?: number; 415 + }; 416 + 417 + /** 418 + * Square 419 + */ 420 + export type ModelSquare = { 421 + kind: string; 422 + sideLength?: number; 423 + }; 424 + 425 + /** 426 + * This is a model with one property with a 'one of' relationship where the options are not $ref 427 + */ 428 + export type CompositionWithOneOfDiscriminator = ({ 429 + kind?: 'circle'; 430 + } & ModelCircle) | ({ 431 + kind?: 'square'; 432 + } & ModelSquare); 433 + 434 + /** 435 + * This is a model with one property with a 'any of' relationship 436 + */ 437 + export type CompositionWithAnyOf = { 438 + propA?: ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary; 439 + }; 440 + 441 + /** 442 + * This is a model with one property with a 'any of' relationship where the options are not $ref 443 + */ 444 + export type CompositionWithAnyOfAnonymous = { 445 + propA?: { 446 + propA?: string; 447 + } | string | number; 448 + }; 449 + 450 + /** 451 + * This is a model with nested 'any of' property with a type null 452 + */ 453 + export type CompositionWithNestedAnyAndTypeNull = { 454 + propA?: Array<ModelWithDictionary | null> | Array<ModelWithArray | null>; 455 + }; 456 + 457 + export type _3e_num_1Период = 'Bird' | 'Dog'; 458 + 459 + export type ConstValue = 'ConstValue'; 460 + 461 + /** 462 + * This is a model with one property with a 'any of' relationship where the options are not $ref 463 + */ 464 + export type CompositionWithNestedAnyOfAndNull = { 465 + propA?: Array<_3e_num_1Период | ConstValue> | null; 466 + }; 467 + 468 + /** 469 + * This is a model with one property with a 'one of' relationship 470 + */ 471 + export type CompositionWithOneOfAndNullable = { 472 + propA?: { 473 + boolean?: boolean; 474 + } | ModelWithEnum | ModelWithArray | ModelWithDictionary | null; 475 + }; 476 + 477 + /** 478 + * This is a model that contains a simple dictionary within composition 479 + */ 480 + export type CompositionWithOneOfAndSimpleDictionary = { 481 + propA?: boolean | { 482 + [key: string]: number; 483 + }; 484 + }; 485 + 486 + /** 487 + * This is a model that contains a dictionary of simple arrays within composition 488 + */ 489 + export type CompositionWithOneOfAndSimpleArrayDictionary = { 490 + propA?: boolean | { 491 + [key: string]: Array<boolean>; 492 + }; 493 + }; 494 + 495 + /** 496 + * This is a model that contains a dictionary of complex arrays (composited) within composition 497 + */ 498 + export type CompositionWithOneOfAndComplexArrayDictionary = { 499 + propA?: boolean | { 500 + [key: string]: Array<number | string>; 501 + }; 502 + }; 503 + 504 + /** 505 + * This is a model with one property with a 'all of' relationship 506 + */ 507 + export type CompositionWithAllOfAndNullable = { 508 + propA?: ({ 509 + boolean?: boolean; 510 + } & ModelWithEnum & ModelWithArray & ModelWithDictionary) | null; 511 + }; 512 + 513 + /** 514 + * This is a model with one property with a 'any of' relationship 515 + */ 516 + export type CompositionWithAnyOfAndNullable = { 517 + propA?: { 518 + boolean?: boolean; 519 + } | ModelWithEnum | ModelWithArray | ModelWithDictionary | null; 520 + }; 521 + 522 + /** 523 + * This is a base model with two simple optional properties 524 + */ 525 + export type CompositionBaseModel = { 526 + firstName?: string; 527 + lastname?: string; 528 + }; 529 + 530 + /** 531 + * This is a model that extends the base model 532 + */ 533 + export type CompositionExtendedModel = CompositionBaseModel & { 534 + age: number; 535 + firstName: string; 536 + lastname: string; 537 + }; 538 + 539 + /** 540 + * This is a model with one nested property 541 + */ 542 + export type ModelWithProperties = { 543 + required: string; 544 + readonly requiredAndReadOnly: string; 545 + requiredAndNullable: string | null; 546 + string?: string; 547 + number?: number; 548 + boolean?: boolean; 549 + reference?: ModelWithString; 550 + 'property with space'?: string; 551 + default?: string; 552 + try?: string; 553 + readonly '@namespace.string'?: string; 554 + readonly '@namespace.integer'?: number; 555 + }; 556 + 557 + /** 558 + * This is a model with one nested property 559 + */ 560 + export type ModelWithNestedProperties = { 561 + readonly first: { 562 + readonly second: { 563 + readonly third: string | null; 564 + } | null; 565 + } | null; 566 + }; 567 + 568 + /** 569 + * This is a model with duplicated properties 570 + */ 571 + export type ModelWithDuplicateProperties = { 572 + prop?: ModelWithString; 573 + }; 574 + 575 + /** 576 + * This is a model with ordered properties 577 + */ 578 + export type ModelWithOrderedProperties = { 579 + zebra?: string; 580 + apple?: string; 581 + hawaii?: string; 582 + }; 583 + 584 + /** 585 + * This is a model with duplicated imports 586 + */ 587 + export type ModelWithDuplicateImports = { 588 + propA?: ModelWithString; 589 + propB?: ModelWithString; 590 + propC?: ModelWithString; 591 + }; 592 + 593 + /** 594 + * This is a model that extends another model 595 + */ 596 + export type ModelThatExtends = ModelWithString & { 597 + propExtendsA?: string; 598 + propExtendsB?: ModelWithString; 599 + }; 600 + 601 + /** 602 + * This is a model that extends another model 603 + */ 604 + export type ModelThatExtendsExtends = ModelWithString & ModelThatExtends & { 605 + propExtendsC?: string; 606 + propExtendsD?: ModelWithString; 607 + }; 608 + 609 + /** 610 + * This is a model that contains a some patterns 611 + */ 612 + export type ModelWithPattern = { 613 + key: string; 614 + name: string; 615 + readonly enabled?: boolean; 616 + readonly modified?: string; 617 + id?: string; 618 + text?: string; 619 + patternWithSingleQuotes?: string; 620 + patternWithNewline?: string; 621 + patternWithBacktick?: string; 622 + }; 623 + 624 + export type File = { 625 + readonly id?: string; 626 + readonly updated_at?: string; 627 + readonly created_at?: string; 628 + mime: string; 629 + readonly file?: string; 630 + }; 631 + 632 + export type _default = { 633 + name?: string; 634 + }; 635 + 636 + export type Pageable = { 637 + page?: number; 638 + size?: number; 639 + sort?: Array<string>; 640 + }; 641 + 642 + /** 643 + * This is a free-form object without additionalProperties. 644 + */ 645 + export type FreeFormObjectWithoutAdditionalProperties = {}; 646 + 647 + /** 648 + * This is a free-form object with additionalProperties: true. 649 + */ 650 + export type FreeFormObjectWithAdditionalPropertiesEqTrue = { 651 + [key: string]: unknown; 652 + }; 653 + 654 + /** 655 + * This is a free-form object with additionalProperties: {}. 656 + */ 657 + export type FreeFormObjectWithAdditionalPropertiesEqEmptyObject = {}; 658 + 659 + export type ModelWithConst = { 660 + String?: 'String'; 661 + number?: 0; 662 + null?: unknown; 663 + withType?: 'Some string'; 664 + }; 665 + 666 + /** 667 + * This is a model with one property and additionalProperties: true 668 + */ 669 + export type ModelWithAdditionalPropertiesEqTrue = { 670 + /** 671 + * This is a simple string property 672 + */ 673 + prop?: string; 674 + [key: string]: unknown | string | undefined; 675 + }; 676 + 677 + export type NestedAnyOfArraysNullable = { 678 + nullableArray?: Array<string | boolean> | null; 679 + }; 680 + 681 + export type CompositionWithOneOfAndProperties = ({ 682 + foo: SimpleParameter; 683 + } | { 684 + bar: NonAsciiStringæøåÆØÅöôêÊ字符串; 685 + }) & { 686 + baz: number | null; 687 + qux: number; 688 + }; 689 + 690 + /** 691 + * An object that can be null 692 + */ 693 + export type NullableObject = { 694 + foo?: string; 695 + } | null; 696 + 697 + /** 698 + * Some % character 699 + */ 700 + export type CharactersInDescription = string; 701 + 702 + export type ModelWithNullableObject = { 703 + data?: NullableObject; 704 + }; 705 + 706 + export type ModelWithOneOfEnum = { 707 + foo: 'Bar'; 708 + } | { 709 + foo: 'Baz'; 710 + } | { 711 + foo: 'Qux'; 712 + } | { 713 + content: string; 714 + foo: 'Quux'; 715 + } | { 716 + content: [ 717 + string, 718 + string 719 + ]; 720 + foo: 'Corge'; 721 + }; 722 + 723 + export type ModelWithNestedArrayEnumsDataFoo = 'foo' | 'bar'; 724 + 725 + export type ModelWithNestedArrayEnumsDataBar = 'baz' | 'qux'; 726 + 727 + export type ModelWithNestedArrayEnumsData = { 728 + foo?: Array<ModelWithNestedArrayEnumsDataFoo>; 729 + bar?: Array<ModelWithNestedArrayEnumsDataBar>; 730 + }; 731 + 732 + export type ModelWithNestedArrayEnums = { 733 + array_strings?: Array<string>; 734 + data?: ModelWithNestedArrayEnumsData; 735 + }; 736 + 737 + export type ModelWithNestedCompositionEnums = { 738 + foo?: ModelWithNestedArrayEnumsDataFoo; 739 + }; 740 + 741 + export type ModelWithReadOnlyAndWriteOnly = { 742 + foo: string; 743 + readonly bar: string; 744 + baz: string; 745 + }; 746 + 747 + export type ModelWithConstantSizeArray = [ 748 + number, 749 + number 750 + ]; 751 + 752 + export type ModelWithAnyOfConstantSizeArray = [ 753 + number | string, 754 + number | string, 755 + number | string 756 + ]; 757 + 758 + export type ModelWithPrefixItemsConstantSizeArray = Array<ModelWithInteger | number | string>; 759 + 760 + export type ModelWithAnyOfConstantSizeArrayNullable = [ 761 + number | null | string, 762 + number | null | string, 763 + number | null | string 764 + ]; 765 + 766 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptions = [ 767 + number | _import, 768 + number | _import 769 + ]; 770 + 771 + export type ModelWithAnyOfConstantSizeArrayAndIntersect = [ 772 + number & string, 773 + number & string 774 + ]; 775 + 776 + export type ModelWithNumericEnumUnion = { 777 + /** 778 + * Период 779 + */ 780 + value?: -10 | -1 | 0 | 1 | 3 | 6 | 12; 781 + }; 782 + 783 + /** 784 + * Some description with `back ticks` 785 + */ 786 + export type ModelWithBackticksInDescription = { 787 + /** 788 + * The template `that` should be used for parsing and importing the contents of the CSV file. 789 + * 790 + * <br/><p>There is one placeholder currently supported:<ul> <li><b>${x}</b> - refers to the n-th column in the CSV file, e.g. ${1}, ${2}, ...)</li></ul><p>Example of a correct JSON template:</p> 791 + * <pre> 792 + * [ 793 + * { 794 + * "resourceType": "Asset", 795 + * "identifier": { 796 + * "name": "${1}", 797 + * "domain": { 798 + * "name": "${2}", 799 + * "community": { 800 + * "name": "Some Community" 801 + * } 802 + * } 803 + * }, 804 + * "attributes" : { 805 + * "00000000-0000-0000-0000-000000003115" : [ { 806 + * "value" : "${3}" 807 + * } ], 808 + * "00000000-0000-0000-0000-000000000222" : [ { 809 + * "value" : "${4}" 810 + * } ] 811 + * } 812 + * } 813 + * ] 814 + * </pre> 815 + */ 816 + template?: string; 817 + }; 818 + 819 + export type ModelWithOneOfAndProperties = (SimpleParameter | NonAsciiStringæøåÆØÅöôêÊ字符串) & { 820 + baz: number | null; 821 + qux: number; 822 + }; 823 + 824 + /** 825 + * Model used to test deduplication strategy (unused) 826 + */ 827 + export type ParameterSimpleParameterUnused = string; 828 + 829 + /** 830 + * Model used to test deduplication strategy 831 + */ 832 + export type PostServiceWithEmptyTagResponse = string; 833 + 834 + /** 835 + * Model used to test deduplication strategy 836 + */ 837 + export type PostServiceWithEmptyTagResponse2 = string; 838 + 839 + /** 840 + * Model used to test deduplication strategy 841 + */ 842 + export type DeleteFooData = string; 843 + 844 + /** 845 + * Model used to test deduplication strategy 846 + */ 847 + export type DeleteFooData2 = string; 848 + 849 + /** 850 + * Model with restricted keyword name 851 + */ 852 + export type _import = string; 853 + 854 + export type SchemaWithFormRestrictedKeys = { 855 + description?: string; 856 + 'x-enum-descriptions'?: string; 857 + 'x-enum-varnames'?: string; 858 + 'x-enumNames'?: string; 859 + title?: string; 860 + object?: { 861 + description?: string; 862 + 'x-enum-descriptions'?: string; 863 + 'x-enum-varnames'?: string; 864 + 'x-enumNames'?: string; 865 + title?: string; 866 + }; 867 + array?: Array<{ 868 + description?: string; 869 + 'x-enum-descriptions'?: string; 870 + 'x-enum-varnames'?: string; 871 + 'x-enumNames'?: string; 872 + title?: string; 873 + }>; 874 + }; 875 + 876 + /** 877 + * This schema was giving PascalCase transformations a hard time 878 + */ 879 + export type io_k8s_apimachinery_pkg_apis_meta_v1_DeleteOptions = { 880 + /** 881 + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. 882 + */ 883 + preconditions?: io_k8s_apimachinery_pkg_apis_meta_v1_Preconditions; 884 + }; 885 + 886 + /** 887 + * This schema was giving PascalCase transformations a hard time 888 + */ 889 + export type io_k8s_apimachinery_pkg_apis_meta_v1_Preconditions = { 890 + /** 891 + * Specifies the target ResourceVersion 892 + */ 893 + resourceVersion?: string; 894 + /** 895 + * Specifies the target UID. 896 + */ 897 + uid?: string; 898 + }; 899 + 900 + export type AdditionalPropertiesUnknownIssue = { 901 + [key: string]: string | number; 902 + }; 903 + 904 + export type AdditionalPropertiesUnknownIssue2 = { 905 + [key: string]: string | number; 906 + }; 907 + 908 + export type AdditionalPropertiesUnknownIssue3 = string & { 909 + entries: { 910 + [key: string]: AdditionalPropertiesUnknownIssue; 911 + }; 912 + }; 913 + 914 + export type AdditionalPropertiesIntegerIssue = { 915 + value: number; 916 + [key: string]: number; 917 + }; 918 + 919 + export type OneOfAllOfIssue = ((ConstValue | Generic_Schema_Duplicate_Issue_1_System_Boolean_) & _3e_num_1Период) | Generic_Schema_Duplicate_Issue_1_System_String_; 920 + 921 + export type Generic_Schema_Duplicate_Issue_1_System_Boolean_ = { 922 + item?: boolean; 923 + error?: string | null; 924 + readonly hasError?: boolean; 925 + data?: { 926 + [key: string]: never; 927 + }; 928 + }; 929 + 930 + export type Generic_Schema_Duplicate_Issue_1_System_String_ = { 931 + item?: string | null; 932 + error?: string | null; 933 + readonly hasError?: boolean; 934 + }; 935 + 936 + /** 937 + * This is a reusable parameter 938 + */ 939 + export type SimpleParameter = string; 940 + 941 + /** 942 + * Parameter with illegal characters 943 + */ 944 + export type x_Foo_Bar = ModelWithString; 945 + 946 + export type ImportData = { 947 + body: ModelWithReadOnlyAndWriteOnly | ModelWithArrayReadOnlyAndWriteOnly; 948 + }; 949 + 950 + export type ImportResponse = Model_From_Zendesk | ModelWithReadOnlyAndWriteOnly; 951 + 952 + export type ApiVversionOdataControllerCountResponse = Model_From_Zendesk; 953 + 954 + export type GetApiVbyApiVersionSimpleOperationData = { 955 + body?: never; 956 + path: { 957 + /** 958 + * foo in method 959 + */ 960 + foo_param: string; 961 + }; 962 + query?: never; 963 + }; 964 + 965 + export type GetApiVbyApiVersionSimpleOperationError = ModelWithBoolean; 966 + 967 + export type GetApiVbyApiVersionSimpleOperationResponse = number; 968 + 969 + export type DeleteFooData3 = { 970 + body?: never; 971 + headers: { 972 + /** 973 + * Parameter with illegal characters 974 + */ 975 + 'x-Foo-Bar': ModelWithString; 976 + }; 977 + path: { 978 + /** 979 + * foo in method 980 + */ 981 + foo_param: string; 982 + /** 983 + * bar in method 984 + */ 985 + BarParam: string; 986 + }; 987 + query?: never; 988 + }; 989 + 990 + export type CallWithDescriptionsData = { 991 + body?: never; 992 + path?: never; 993 + query?: { 994 + /** 995 + * Testing multiline comments in string: First line 996 + * Second line 997 + * 998 + * Fourth line 999 + */ 1000 + parameterWithBreaks?: string; 1001 + /** 1002 + * Testing backticks in string: `backticks` and ```multiple backticks``` should work 1003 + */ 1004 + parameterWithBackticks?: string; 1005 + /** 1006 + * Testing slashes in string: \backwards\\\ and /forwards/// should work 1007 + */ 1008 + parameterWithSlashes?: string; 1009 + /** 1010 + * Testing expression placeholders in string: ${expression} should work 1011 + */ 1012 + parameterWithExpressionPlaceholders?: string; 1013 + /** 1014 + * Testing quotes in string: 'single quote''' and "double quotes""" should work 1015 + */ 1016 + parameterWithQuotes?: string; 1017 + /** 1018 + * Testing reserved characters in string: * inline * and ** inline ** should work 1019 + */ 1020 + parameterWithReservedCharacters?: string; 1021 + }; 1022 + }; 1023 + 1024 + export type DeprecatedCallData = { 1025 + body?: never; 1026 + headers: { 1027 + /** 1028 + * This parameter is deprecated 1029 + * @deprecated 1030 + */ 1031 + parameter: DeprecatedModel | null; 1032 + }; 1033 + path?: never; 1034 + query?: never; 1035 + }; 1036 + 1037 + export type CallWithParametersData = { 1038 + /** 1039 + * This is the parameter that goes into the body 1040 + */ 1041 + body: {} | null; 1042 + headers: { 1043 + /** 1044 + * This is the parameter that goes into the header 1045 + */ 1046 + parameterHeader: string | null; 1047 + }; 1048 + path: { 1049 + /** 1050 + * This is the parameter that goes into the path 1051 + */ 1052 + parameterPath: string | null; 1053 + /** 1054 + * api-version should be required in standalone clients 1055 + */ 1056 + 'api-version': string | null; 1057 + }; 1058 + query: { 1059 + foo_ref_enum?: ModelWithNestedArrayEnumsDataFoo; 1060 + foo_all_of_enum: ModelWithNestedArrayEnumsDataFoo; 1061 + /** 1062 + * This is the parameter that goes into the query params 1063 + */ 1064 + cursor: string | null; 1065 + }; 1066 + }; 1067 + 1068 + export type CallWithWeirdParameterNamesData = { 1069 + /** 1070 + * This is the parameter that goes into the body 1071 + */ 1072 + body: ModelWithString | null; 1073 + headers: { 1074 + /** 1075 + * This is the parameter that goes into the request header 1076 + */ 1077 + 'parameter.header': string | null; 1078 + }; 1079 + path: { 1080 + /** 1081 + * This is the parameter that goes into the path 1082 + */ 1083 + 'parameter.path.1'?: string; 1084 + /** 1085 + * This is the parameter that goes into the path 1086 + */ 1087 + 'parameter-path-2'?: string; 1088 + /** 1089 + * This is the parameter that goes into the path 1090 + */ 1091 + 'PARAMETER-PATH-3'?: string; 1092 + /** 1093 + * api-version should be required in standalone clients 1094 + */ 1095 + 'api-version': string | null; 1096 + }; 1097 + query: { 1098 + /** 1099 + * This is the parameter with a reserved keyword 1100 + */ 1101 + default?: string; 1102 + /** 1103 + * This is the parameter that goes into the request query params 1104 + */ 1105 + 'parameter-query': string | null; 1106 + }; 1107 + }; 1108 + 1109 + export type GetCallWithOptionalParamData = { 1110 + /** 1111 + * This is a required parameter 1112 + */ 1113 + body: ModelWithOneOfEnum; 1114 + path?: never; 1115 + query?: { 1116 + /** 1117 + * This is an optional parameter 1118 + */ 1119 + page?: number; 1120 + }; 1121 + }; 1122 + 1123 + export type PostCallWithOptionalParamData = { 1124 + /** 1125 + * This is an optional parameter 1126 + */ 1127 + body?: { 1128 + offset?: number | null; 1129 + }; 1130 + path?: never; 1131 + query: { 1132 + /** 1133 + * This is a required parameter 1134 + */ 1135 + parameter: Pageable; 1136 + }; 1137 + }; 1138 + 1139 + export type PostCallWithOptionalParamResponse = number | void; 1140 + 1141 + export type PostApiVbyApiVersionRequestBodyData = { 1142 + /** 1143 + * A reusable request body 1144 + */ 1145 + body?: ModelWithString; 1146 + path?: never; 1147 + query?: { 1148 + /** 1149 + * This is a reusable parameter 1150 + */ 1151 + parameter?: string; 1152 + }; 1153 + }; 1154 + 1155 + export type PostApiVbyApiVersionFormDataData = { 1156 + /** 1157 + * A reusable request body 1158 + */ 1159 + body?: ModelWithString; 1160 + path?: never; 1161 + query?: { 1162 + /** 1163 + * This is a reusable parameter 1164 + */ 1165 + parameter?: string; 1166 + }; 1167 + }; 1168 + 1169 + export type CallWithDefaultParametersData = { 1170 + body?: never; 1171 + path?: never; 1172 + query?: { 1173 + /** 1174 + * This is a simple string with default value 1175 + */ 1176 + parameterString?: string | null; 1177 + /** 1178 + * This is a simple number with default value 1179 + */ 1180 + parameterNumber?: number | null; 1181 + /** 1182 + * This is a simple boolean with default value 1183 + */ 1184 + parameterBoolean?: boolean | null; 1185 + /** 1186 + * This is a simple enum with default value 1187 + */ 1188 + parameterEnum?: 'Success' | 'Warning' | 'Error'; 1189 + /** 1190 + * This is a simple model with default value 1191 + */ 1192 + parameterModel?: ModelWithString | null; 1193 + }; 1194 + }; 1195 + 1196 + export type CallWithDefaultOptionalParametersData = { 1197 + body?: never; 1198 + path?: never; 1199 + query?: { 1200 + /** 1201 + * This is a simple string that is optional with default value 1202 + */ 1203 + parameterString?: string; 1204 + /** 1205 + * This is a simple number that is optional with default value 1206 + */ 1207 + parameterNumber?: number; 1208 + /** 1209 + * This is a simple boolean that is optional with default value 1210 + */ 1211 + parameterBoolean?: boolean; 1212 + /** 1213 + * This is a simple enum that is optional with default value 1214 + */ 1215 + parameterEnum?: 'Success' | 'Warning' | 'Error'; 1216 + /** 1217 + * This is a simple model that is optional with default value 1218 + */ 1219 + parameterModel?: ModelWithString; 1220 + }; 1221 + }; 1222 + 1223 + export type CallToTestOrderOfParamsData = { 1224 + body?: never; 1225 + path?: never; 1226 + query: { 1227 + /** 1228 + * This is a optional string with default 1229 + */ 1230 + parameterOptionalStringWithDefault?: string; 1231 + /** 1232 + * This is a optional string with empty default 1233 + */ 1234 + parameterOptionalStringWithEmptyDefault?: string; 1235 + /** 1236 + * This is a optional string with no default 1237 + */ 1238 + parameterOptionalStringWithNoDefault?: string; 1239 + /** 1240 + * This is a string with default 1241 + */ 1242 + parameterStringWithDefault: string; 1243 + /** 1244 + * This is a string with empty default 1245 + */ 1246 + parameterStringWithEmptyDefault: string; 1247 + /** 1248 + * This is a string with no default 1249 + */ 1250 + parameterStringWithNoDefault: string; 1251 + /** 1252 + * This is a string that can be null with no default 1253 + */ 1254 + parameterStringNullableWithNoDefault?: string | null; 1255 + /** 1256 + * This is a string that can be null with default 1257 + */ 1258 + parameterStringNullableWithDefault?: string | null; 1259 + }; 1260 + }; 1261 + 1262 + export type CallWithNoContentResponseResponse = void; 1263 + 1264 + export type CallWithResponseAndNoContentResponseResponse = number | void; 1265 + 1266 + export type DummyAResponse = _400; 1267 + 1268 + export type DummyBResponse = void; 1269 + 1270 + export type CallWithResponseResponse = _import; 1271 + 1272 + export type CallWithDuplicateResponsesError = ModelWithStringError | DictionaryWithArray | ModelWithBoolean; 1273 + 1274 + export type CallWithDuplicateResponsesResponse = (ModelWithBoolean & ModelWithInteger) | ModelWithString; 1275 + 1276 + export type CallWithResponsesError = ModelWithStringError; 1277 + 1278 + export type CallWithResponsesResponse = { 1279 + readonly '@namespace.string'?: string; 1280 + readonly '@namespace.integer'?: number; 1281 + readonly value?: Array<ModelWithString>; 1282 + } | ModelThatExtends | ModelThatExtendsExtends; 1283 + 1284 + export type CollectionFormatData = { 1285 + body?: never; 1286 + path?: never; 1287 + query: { 1288 + /** 1289 + * This is an array parameter that is sent as csv format (comma-separated values) 1290 + */ 1291 + parameterArrayCSV: Array<string> | null; 1292 + /** 1293 + * This is an array parameter that is sent as ssv format (space-separated values) 1294 + */ 1295 + parameterArraySSV: Array<string> | null; 1296 + /** 1297 + * This is an array parameter that is sent as tsv format (tab-separated values) 1298 + */ 1299 + parameterArrayTSV: Array<string> | null; 1300 + /** 1301 + * This is an array parameter that is sent as pipes format (pipe-separated values) 1302 + */ 1303 + parameterArrayPipes: Array<string> | null; 1304 + /** 1305 + * This is an array parameter that is sent as multi format (multiple parameter instances) 1306 + */ 1307 + parameterArrayMulti: Array<string> | null; 1308 + }; 1309 + }; 1310 + 1311 + export type TypesData = { 1312 + body?: never; 1313 + path?: { 1314 + /** 1315 + * This is a number parameter 1316 + */ 1317 + id?: number; 1318 + }; 1319 + query: { 1320 + /** 1321 + * This is a number parameter 1322 + */ 1323 + parameterNumber: number; 1324 + /** 1325 + * This is a string parameter 1326 + */ 1327 + parameterString: string | null; 1328 + /** 1329 + * This is a boolean parameter 1330 + */ 1331 + parameterBoolean: boolean | null; 1332 + /** 1333 + * This is an object parameter 1334 + */ 1335 + parameterObject: {} | null; 1336 + /** 1337 + * This is an array parameter 1338 + */ 1339 + parameterArray: Array<string> | null; 1340 + /** 1341 + * This is a dictionary parameter 1342 + */ 1343 + parameterDictionary: {} | null; 1344 + /** 1345 + * This is an enum parameter 1346 + */ 1347 + parameterEnum: 'Success' | 'Warning' | 'Error'; 1348 + }; 1349 + }; 1350 + 1351 + export type TypesResponse = number | string | boolean | {}; 1352 + 1353 + export type UploadFileData = { 1354 + body: Blob | File; 1355 + path: { 1356 + /** 1357 + * api-version should be required in standalone clients 1358 + */ 1359 + 'api-version': string | null; 1360 + }; 1361 + query?: never; 1362 + }; 1363 + 1364 + export type UploadFileResponse = boolean; 1365 + 1366 + export type FileResponseData = { 1367 + body?: never; 1368 + path: { 1369 + id: string; 1370 + /** 1371 + * api-version should be required in standalone clients 1372 + */ 1373 + 'api-version': string; 1374 + }; 1375 + query?: never; 1376 + }; 1377 + 1378 + export type FileResponseResponse = Blob | File; 1379 + 1380 + export type ComplexTypesData = { 1381 + body?: never; 1382 + path?: never; 1383 + query: { 1384 + /** 1385 + * Parameter containing object 1386 + */ 1387 + parameterObject: { 1388 + first?: { 1389 + second?: { 1390 + third?: string; 1391 + }; 1392 + }; 1393 + }; 1394 + /** 1395 + * Parameter containing reference 1396 + */ 1397 + parameterReference: ModelWithString; 1398 + }; 1399 + }; 1400 + 1401 + export type ComplexTypesResponse = Array<ModelWithString>; 1402 + 1403 + export type MultipartResponseResponse = { 1404 + file?: Blob | File; 1405 + metadata?: { 1406 + foo?: string; 1407 + bar?: string; 1408 + }; 1409 + }; 1410 + 1411 + export type MultipartRequestData = { 1412 + body?: { 1413 + content?: Blob | File; 1414 + data?: ModelWithString | null; 1415 + }; 1416 + }; 1417 + 1418 + export type ComplexParamsData = { 1419 + body?: { 1420 + readonly key: string | null; 1421 + name: string | null; 1422 + enabled?: boolean; 1423 + type: 'Monkey' | 'Horse' | 'Bird'; 1424 + listOfModels?: Array<ModelWithString> | null; 1425 + listOfStrings?: Array<string> | null; 1426 + parameters: ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary; 1427 + readonly user?: { 1428 + readonly id?: number; 1429 + readonly name?: string | null; 1430 + }; 1431 + }; 1432 + path: { 1433 + id: number; 1434 + /** 1435 + * api-version should be required in standalone clients 1436 + */ 1437 + 'api-version': string; 1438 + }; 1439 + query?: never; 1440 + }; 1441 + 1442 + export type ComplexParamsResponse = ModelWithString; 1443 + 1444 + export type TestErrorCodeData = { 1445 + body?: never; 1446 + path?: never; 1447 + query: { 1448 + /** 1449 + * Status code to return 1450 + */ 1451 + status: number; 1452 + }; 1453 + }; 1454 + 1455 + export type NonAsciiæøåÆøÅöôêÊ字符串Data = { 1456 + body?: never; 1457 + path?: never; 1458 + query: { 1459 + /** 1460 + * Dummy input param 1461 + */ 1462 + nonAsciiParamæøåÆØÅöôêÊ: number; 1463 + }; 1464 + }; 1465 + 1466 + export type NonAsciiæøåÆøÅöôêÊ字符串Response = Array<NonAsciiStringæøåÆØÅöôêÊ字符串>; 1467 + 1468 + export type PutWithFormUrlEncodedData = { 1469 + body: ArrayWithStrings; 1470 + };
+1477
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/fastify/fastify.gen.ts
··· 1 + // This file is auto-generated by @hey-api/openapi-ts 2 + 3 + import type { RouteHandler } from 'fastify'; 4 + 5 + /** 6 + * Model with number-only name 7 + */ 8 + export type _400 = string; 9 + 10 + /** 11 + * Testing multiline comments in string: First line 12 + * Second line 13 + * 14 + * Fourth line 15 + */ 16 + export type camelCaseCommentWithBreaks = number; 17 + 18 + /** 19 + * Testing multiline comments in string: First line 20 + * Second line 21 + * 22 + * Fourth line 23 + */ 24 + export type CommentWithBreaks = number; 25 + 26 + /** 27 + * Testing backticks in string: `backticks` and ```multiple backticks``` should work 28 + */ 29 + export type CommentWithBackticks = number; 30 + 31 + /** 32 + * Testing backticks and quotes in string: `backticks`, 'quotes', "double quotes" and ```multiple backticks``` should work 33 + */ 34 + export type CommentWithBackticksAndQuotes = number; 35 + 36 + /** 37 + * Testing slashes in string: \backwards\\\ and /forwards/// should work 38 + */ 39 + export type CommentWithSlashes = number; 40 + 41 + /** 42 + * Testing expression placeholders in string: ${expression} should work 43 + */ 44 + export type CommentWithExpressionPlaceholders = number; 45 + 46 + /** 47 + * Testing quotes in string: 'single quote''' and "double quotes""" should work 48 + */ 49 + export type CommentWithQuotes = number; 50 + 51 + /** 52 + * Testing reserved characters in string: * inline * and ** inline ** should work 53 + */ 54 + export type CommentWithReservedCharacters = number; 55 + 56 + /** 57 + * This is a simple number 58 + */ 59 + export type SimpleInteger = number; 60 + 61 + /** 62 + * This is a simple boolean 63 + */ 64 + export type SimpleBoolean = boolean; 65 + 66 + /** 67 + * This is a simple string 68 + */ 69 + export type SimpleString = string; 70 + 71 + /** 72 + * A string with non-ascii (unicode) characters valid in typescript identifiers (æøåÆØÅöÔèÈ字符串) 73 + */ 74 + export type NonAsciiStringæøåÆØÅöôêÊ字符串 = string; 75 + 76 + /** 77 + * This is a simple file 78 + */ 79 + export type SimpleFile = Blob | File; 80 + 81 + /** 82 + * This is a simple reference 83 + */ 84 + export type SimpleReference = ModelWithString; 85 + 86 + /** 87 + * This is a simple string 88 + */ 89 + export type SimpleStringWithPattern = string | null; 90 + 91 + /** 92 + * This is a simple enum with strings 93 + */ 94 + export type EnumWithStrings = 'Success' | 'Warning' | 'Error' | "'Single Quote'" | '"Double Quotes"' | 'Non-ascii: øæåôöØÆÅÔÖ字符串'; 95 + 96 + export type EnumWithReplacedCharacters = "'Single Quote'" | '"Double Quotes"' | 'øæåôöØÆÅÔÖ字符串' | 3.1 | ''; 97 + 98 + /** 99 + * This is a simple enum with numbers 100 + */ 101 + export type EnumWithNumbers = 1 | 2 | 3 | 1.1 | 1.2 | 1.3 | 100 | 200 | 300 | -100 | -200 | -300 | -1.1 | -1.2 | -1.3; 102 + 103 + /** 104 + * Success=1,Warning=2,Error=3 105 + */ 106 + export type EnumFromDescription = number; 107 + 108 + /** 109 + * This is a simple enum with numbers 110 + */ 111 + export type EnumWithExtensions = 200 | 400 | 500; 112 + 113 + export type EnumWithXEnumNames = 0 | 1 | 2; 114 + 115 + /** 116 + * This is a simple array with numbers 117 + */ 118 + export type ArrayWithNumbers = Array<number>; 119 + 120 + /** 121 + * This is a simple array with booleans 122 + */ 123 + export type ArrayWithBooleans = Array<boolean>; 124 + 125 + /** 126 + * This is a simple array with strings 127 + */ 128 + export type ArrayWithStrings = Array<string>; 129 + 130 + /** 131 + * This is a simple array with references 132 + */ 133 + export type ArrayWithReferences = Array<ModelWithString>; 134 + 135 + /** 136 + * This is a simple array containing an array 137 + */ 138 + export type ArrayWithArray = Array<Array<ModelWithString>>; 139 + 140 + /** 141 + * This is a simple array with properties 142 + */ 143 + export type ArrayWithProperties = Array<{ 144 + '16x16'?: camelCaseCommentWithBreaks; 145 + bar?: string; 146 + }>; 147 + 148 + /** 149 + * This is a simple array with any of properties 150 + */ 151 + export type ArrayWithAnyOfProperties = Array<{ 152 + foo?: string; 153 + } | { 154 + bar?: string; 155 + }>; 156 + 157 + export type AnyOfAnyAndNull = { 158 + data?: unknown | null; 159 + }; 160 + 161 + /** 162 + * This is a simple array with any of properties 163 + */ 164 + export type AnyOfArrays = { 165 + results?: Array<{ 166 + foo?: string; 167 + } | { 168 + bar?: string; 169 + }>; 170 + }; 171 + 172 + /** 173 + * This is a string dictionary 174 + */ 175 + export type DictionaryWithString = { 176 + [key: string]: string; 177 + }; 178 + 179 + export type DictionaryWithPropertiesAndAdditionalProperties = { 180 + foo?: number; 181 + bar?: boolean; 182 + [key: string]: string | number | boolean | undefined; 183 + }; 184 + 185 + /** 186 + * This is a string reference 187 + */ 188 + export type DictionaryWithReference = { 189 + [key: string]: ModelWithString; 190 + }; 191 + 192 + /** 193 + * This is a complex dictionary 194 + */ 195 + export type DictionaryWithArray = { 196 + [key: string]: Array<ModelWithString>; 197 + }; 198 + 199 + /** 200 + * This is a string dictionary 201 + */ 202 + export type DictionaryWithDictionary = { 203 + [key: string]: { 204 + [key: string]: string; 205 + }; 206 + }; 207 + 208 + /** 209 + * This is a complex dictionary 210 + */ 211 + export type DictionaryWithProperties = { 212 + [key: string]: { 213 + foo?: string; 214 + bar?: string; 215 + }; 216 + }; 217 + 218 + /** 219 + * This is a model with one number property 220 + */ 221 + export type ModelWithInteger = { 222 + /** 223 + * This is a simple number property 224 + */ 225 + prop?: number; 226 + }; 227 + 228 + /** 229 + * This is a model with one boolean property 230 + */ 231 + export type ModelWithBoolean = { 232 + /** 233 + * This is a simple boolean property 234 + */ 235 + prop?: boolean; 236 + }; 237 + 238 + /** 239 + * This is a model with one string property 240 + */ 241 + export type ModelWithString = { 242 + /** 243 + * This is a simple string property 244 + */ 245 + prop?: string; 246 + }; 247 + 248 + /** 249 + * This is a model with one string property 250 + */ 251 + export type ModelWithStringError = { 252 + /** 253 + * This is a simple string property 254 + */ 255 + prop?: string; 256 + }; 257 + 258 + /** 259 + * `Comment` or `VoiceComment`. The JSON object for adding voice comments to tickets is different. See [Adding voice comments to tickets](/documentation/ticketing/managing-tickets/adding-voice-comments-to-tickets) 260 + */ 261 + export type Model_From_Zendesk = string; 262 + 263 + /** 264 + * This is a model with one string property 265 + */ 266 + export type ModelWithNullableString = { 267 + /** 268 + * This is a simple string property 269 + */ 270 + nullableProp1?: string | null; 271 + /** 272 + * This is a simple string property 273 + */ 274 + nullableRequiredProp1: string | null; 275 + /** 276 + * This is a simple string property 277 + */ 278 + nullableProp2?: string | null; 279 + /** 280 + * This is a simple string property 281 + */ 282 + nullableRequiredProp2: string | null; 283 + /** 284 + * This is a simple enum with strings 285 + */ 286 + 'foo_bar-enum'?: 'Success' | 'Warning' | 'Error' | 'ØÆÅ字符串'; 287 + }; 288 + 289 + /** 290 + * This is a model with one enum 291 + */ 292 + export type ModelWithEnum = { 293 + /** 294 + * This is a simple enum with strings 295 + */ 296 + 'foo_bar-enum'?: 'Success' | 'Warning' | 'Error' | 'ØÆÅ字符串'; 297 + /** 298 + * These are the HTTP error code enums 299 + */ 300 + statusCode?: '100' | '200 FOO' | '300 FOO_BAR' | '400 foo-bar' | '500 foo.bar' | '600 foo&bar'; 301 + /** 302 + * Simple boolean enum 303 + */ 304 + bool?: true; 305 + }; 306 + 307 + /** 308 + * This is a model with one enum with escaped name 309 + */ 310 + export type ModelWithEnumWithHyphen = { 311 + 'foo-bar-baz-qux'?: '3.0'; 312 + }; 313 + 314 + /** 315 + * This is a model with one enum 316 + */ 317 + export type ModelWithEnumFromDescription = { 318 + /** 319 + * Success=1,Warning=2,Error=3 320 + */ 321 + test?: number; 322 + }; 323 + 324 + /** 325 + * This is a model with nested enums 326 + */ 327 + export type ModelWithNestedEnums = { 328 + dictionaryWithEnum?: { 329 + [key: string]: 'Success' | 'Warning' | 'Error'; 330 + }; 331 + dictionaryWithEnumFromDescription?: { 332 + [key: string]: number; 333 + }; 334 + arrayWithEnum?: Array<'Success' | 'Warning' | 'Error'>; 335 + arrayWithDescription?: Array<number>; 336 + /** 337 + * This is a simple enum with strings 338 + */ 339 + 'foo_bar-enum'?: 'Success' | 'Warning' | 'Error' | 'ØÆÅ字符串'; 340 + }; 341 + 342 + /** 343 + * This is a model with one property containing a reference 344 + */ 345 + export type ModelWithReference = { 346 + prop?: ModelWithProperties; 347 + }; 348 + 349 + /** 350 + * This is a model with one property containing an array 351 + */ 352 + export type ModelWithArrayReadOnlyAndWriteOnly = { 353 + prop?: Array<ModelWithReadOnlyAndWriteOnly>; 354 + propWithFile?: Array<Blob | File>; 355 + propWithNumber?: Array<number>; 356 + }; 357 + 358 + /** 359 + * This is a model with one property containing an array 360 + */ 361 + export type ModelWithArray = { 362 + prop?: Array<ModelWithString>; 363 + propWithFile?: Array<Blob | File>; 364 + propWithNumber?: Array<number>; 365 + }; 366 + 367 + /** 368 + * This is a model with one property containing a dictionary 369 + */ 370 + export type ModelWithDictionary = { 371 + prop?: { 372 + [key: string]: string; 373 + }; 374 + }; 375 + 376 + /** 377 + * This is a deprecated model with a deprecated property 378 + * @deprecated 379 + */ 380 + export type DeprecatedModel = { 381 + /** 382 + * This is a deprecated property 383 + * @deprecated 384 + */ 385 + prop?: string; 386 + }; 387 + 388 + /** 389 + * This is a model with one property containing a circular reference 390 + */ 391 + export type ModelWithCircularReference = { 392 + prop?: ModelWithCircularReference; 393 + }; 394 + 395 + /** 396 + * This is a model with one property with a 'one of' relationship 397 + */ 398 + export type CompositionWithOneOf = { 399 + propA?: ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary; 400 + }; 401 + 402 + /** 403 + * This is a model with one property with a 'one of' relationship where the options are not $ref 404 + */ 405 + export type CompositionWithOneOfAnonymous = { 406 + propA?: { 407 + propA?: string; 408 + } | string | number; 409 + }; 410 + 411 + /** 412 + * Circle 413 + */ 414 + export type ModelCircle = { 415 + kind: string; 416 + radius?: number; 417 + }; 418 + 419 + /** 420 + * Square 421 + */ 422 + export type ModelSquare = { 423 + kind: string; 424 + sideLength?: number; 425 + }; 426 + 427 + /** 428 + * This is a model with one property with a 'one of' relationship where the options are not $ref 429 + */ 430 + export type CompositionWithOneOfDiscriminator = ({ 431 + kind?: 'circle'; 432 + } & ModelCircle) | ({ 433 + kind?: 'square'; 434 + } & ModelSquare); 435 + 436 + /** 437 + * This is a model with one property with a 'any of' relationship 438 + */ 439 + export type CompositionWithAnyOf = { 440 + propA?: ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary; 441 + }; 442 + 443 + /** 444 + * This is a model with one property with a 'any of' relationship where the options are not $ref 445 + */ 446 + export type CompositionWithAnyOfAnonymous = { 447 + propA?: { 448 + propA?: string; 449 + } | string | number; 450 + }; 451 + 452 + /** 453 + * This is a model with nested 'any of' property with a type null 454 + */ 455 + export type CompositionWithNestedAnyAndTypeNull = { 456 + propA?: Array<ModelWithDictionary | null> | Array<ModelWithArray | null>; 457 + }; 458 + 459 + export type _3e_num_1Период = 'Bird' | 'Dog'; 460 + 461 + export type ConstValue = 'ConstValue'; 462 + 463 + /** 464 + * This is a model with one property with a 'any of' relationship where the options are not $ref 465 + */ 466 + export type CompositionWithNestedAnyOfAndNull = { 467 + propA?: Array<_3e_num_1Период | ConstValue> | null; 468 + }; 469 + 470 + /** 471 + * This is a model with one property with a 'one of' relationship 472 + */ 473 + export type CompositionWithOneOfAndNullable = { 474 + propA?: { 475 + boolean?: boolean; 476 + } | ModelWithEnum | ModelWithArray | ModelWithDictionary | null; 477 + }; 478 + 479 + /** 480 + * This is a model that contains a simple dictionary within composition 481 + */ 482 + export type CompositionWithOneOfAndSimpleDictionary = { 483 + propA?: boolean | { 484 + [key: string]: number; 485 + }; 486 + }; 487 + 488 + /** 489 + * This is a model that contains a dictionary of simple arrays within composition 490 + */ 491 + export type CompositionWithOneOfAndSimpleArrayDictionary = { 492 + propA?: boolean | { 493 + [key: string]: Array<boolean>; 494 + }; 495 + }; 496 + 497 + /** 498 + * This is a model that contains a dictionary of complex arrays (composited) within composition 499 + */ 500 + export type CompositionWithOneOfAndComplexArrayDictionary = { 501 + propA?: boolean | { 502 + [key: string]: Array<number | string>; 503 + }; 504 + }; 505 + 506 + /** 507 + * This is a model with one property with a 'all of' relationship 508 + */ 509 + export type CompositionWithAllOfAndNullable = { 510 + propA?: ({ 511 + boolean?: boolean; 512 + } & ModelWithEnum & ModelWithArray & ModelWithDictionary) | null; 513 + }; 514 + 515 + /** 516 + * This is a model with one property with a 'any of' relationship 517 + */ 518 + export type CompositionWithAnyOfAndNullable = { 519 + propA?: { 520 + boolean?: boolean; 521 + } | ModelWithEnum | ModelWithArray | ModelWithDictionary | null; 522 + }; 523 + 524 + /** 525 + * This is a base model with two simple optional properties 526 + */ 527 + export type CompositionBaseModel = { 528 + firstName?: string; 529 + lastname?: string; 530 + }; 531 + 532 + /** 533 + * This is a model that extends the base model 534 + */ 535 + export type CompositionExtendedModel = CompositionBaseModel & { 536 + age: number; 537 + firstName: string; 538 + lastname: string; 539 + }; 540 + 541 + /** 542 + * This is a model with one nested property 543 + */ 544 + export type ModelWithProperties = { 545 + required: string; 546 + readonly requiredAndReadOnly: string; 547 + requiredAndNullable: string | null; 548 + string?: string; 549 + number?: number; 550 + boolean?: boolean; 551 + reference?: ModelWithString; 552 + 'property with space'?: string; 553 + default?: string; 554 + try?: string; 555 + readonly '@namespace.string'?: string; 556 + readonly '@namespace.integer'?: number; 557 + }; 558 + 559 + /** 560 + * This is a model with one nested property 561 + */ 562 + export type ModelWithNestedProperties = { 563 + readonly first: { 564 + readonly second: { 565 + readonly third: string | null; 566 + } | null; 567 + } | null; 568 + }; 569 + 570 + /** 571 + * This is a model with duplicated properties 572 + */ 573 + export type ModelWithDuplicateProperties = { 574 + prop?: ModelWithString; 575 + }; 576 + 577 + /** 578 + * This is a model with ordered properties 579 + */ 580 + export type ModelWithOrderedProperties = { 581 + zebra?: string; 582 + apple?: string; 583 + hawaii?: string; 584 + }; 585 + 586 + /** 587 + * This is a model with duplicated imports 588 + */ 589 + export type ModelWithDuplicateImports = { 590 + propA?: ModelWithString; 591 + propB?: ModelWithString; 592 + propC?: ModelWithString; 593 + }; 594 + 595 + /** 596 + * This is a model that extends another model 597 + */ 598 + export type ModelThatExtends = ModelWithString & { 599 + propExtendsA?: string; 600 + propExtendsB?: ModelWithString; 601 + }; 602 + 603 + /** 604 + * This is a model that extends another model 605 + */ 606 + export type ModelThatExtendsExtends = ModelWithString & ModelThatExtends & { 607 + propExtendsC?: string; 608 + propExtendsD?: ModelWithString; 609 + }; 610 + 611 + /** 612 + * This is a model that contains a some patterns 613 + */ 614 + export type ModelWithPattern = { 615 + key: string; 616 + name: string; 617 + readonly enabled?: boolean; 618 + readonly modified?: string; 619 + id?: string; 620 + text?: string; 621 + patternWithSingleQuotes?: string; 622 + patternWithNewline?: string; 623 + patternWithBacktick?: string; 624 + }; 625 + 626 + export type File = { 627 + readonly id?: string; 628 + readonly updated_at?: string; 629 + readonly created_at?: string; 630 + mime: string; 631 + readonly file?: string; 632 + }; 633 + 634 + export type _default = { 635 + name?: string; 636 + }; 637 + 638 + export type Pageable = { 639 + page?: number; 640 + size?: number; 641 + sort?: Array<string>; 642 + }; 643 + 644 + /** 645 + * This is a free-form object without additionalProperties. 646 + */ 647 + export type FreeFormObjectWithoutAdditionalProperties = {}; 648 + 649 + /** 650 + * This is a free-form object with additionalProperties: true. 651 + */ 652 + export type FreeFormObjectWithAdditionalPropertiesEqTrue = { 653 + [key: string]: unknown; 654 + }; 655 + 656 + /** 657 + * This is a free-form object with additionalProperties: {}. 658 + */ 659 + export type FreeFormObjectWithAdditionalPropertiesEqEmptyObject = {}; 660 + 661 + export type ModelWithConst = { 662 + String?: 'String'; 663 + number?: 0; 664 + null?: null; 665 + withType?: 'Some string'; 666 + }; 667 + 668 + /** 669 + * This is a model with one property and additionalProperties: true 670 + */ 671 + export type ModelWithAdditionalPropertiesEqTrue = { 672 + /** 673 + * This is a simple string property 674 + */ 675 + prop?: string; 676 + [key: string]: unknown | string | undefined; 677 + }; 678 + 679 + export type NestedAnyOfArraysNullable = { 680 + nullableArray?: Array<string | boolean> | null; 681 + }; 682 + 683 + export type CompositionWithOneOfAndProperties = ({ 684 + foo: SimpleParameter; 685 + } | { 686 + bar: NonAsciiStringæøåÆØÅöôêÊ字符串; 687 + }) & { 688 + baz: number | null; 689 + qux: number; 690 + }; 691 + 692 + /** 693 + * An object that can be null 694 + */ 695 + export type NullableObject = { 696 + foo?: string; 697 + } | null; 698 + 699 + /** 700 + * Some % character 701 + */ 702 + export type CharactersInDescription = string; 703 + 704 + export type ModelWithNullableObject = { 705 + data?: NullableObject; 706 + }; 707 + 708 + export type ModelWithOneOfEnum = { 709 + foo: 'Bar'; 710 + } | { 711 + foo: 'Baz'; 712 + } | { 713 + foo: 'Qux'; 714 + } | { 715 + content: string; 716 + foo: 'Quux'; 717 + } | { 718 + content: [ 719 + string, 720 + string 721 + ]; 722 + foo: 'Corge'; 723 + }; 724 + 725 + export type ModelWithNestedArrayEnumsDataFoo = 'foo' | 'bar'; 726 + 727 + export type ModelWithNestedArrayEnumsDataBar = 'baz' | 'qux'; 728 + 729 + export type ModelWithNestedArrayEnumsData = { 730 + foo?: Array<ModelWithNestedArrayEnumsDataFoo>; 731 + bar?: Array<ModelWithNestedArrayEnumsDataBar>; 732 + }; 733 + 734 + export type ModelWithNestedArrayEnums = { 735 + array_strings?: Array<string>; 736 + data?: ModelWithNestedArrayEnumsData; 737 + }; 738 + 739 + export type ModelWithNestedCompositionEnums = { 740 + foo?: ModelWithNestedArrayEnumsDataFoo; 741 + }; 742 + 743 + export type ModelWithReadOnlyAndWriteOnly = { 744 + foo: string; 745 + readonly bar: string; 746 + baz: string; 747 + }; 748 + 749 + export type ModelWithConstantSizeArray = [ 750 + number, 751 + number 752 + ]; 753 + 754 + export type ModelWithAnyOfConstantSizeArray = [ 755 + number | string, 756 + number | string, 757 + number | string 758 + ]; 759 + 760 + export type ModelWithPrefixItemsConstantSizeArray = [ 761 + ModelWithInteger, 762 + number | string, 763 + string 764 + ]; 765 + 766 + export type ModelWithAnyOfConstantSizeArrayNullable = [ 767 + number | null | string, 768 + number | null | string, 769 + number | null | string 770 + ]; 771 + 772 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptions = [ 773 + number | _import, 774 + number | _import 775 + ]; 776 + 777 + export type ModelWithAnyOfConstantSizeArrayAndIntersect = [ 778 + number & string, 779 + number & string 780 + ]; 781 + 782 + export type ModelWithNumericEnumUnion = { 783 + /** 784 + * Период 785 + */ 786 + value?: -10 | -1 | 0 | 1 | 3 | 6 | 12; 787 + }; 788 + 789 + /** 790 + * Some description with `back ticks` 791 + */ 792 + export type ModelWithBackticksInDescription = { 793 + /** 794 + * The template `that` should be used for parsing and importing the contents of the CSV file. 795 + * 796 + * <br/><p>There is one placeholder currently supported:<ul> <li><b>${x}</b> - refers to the n-th column in the CSV file, e.g. ${1}, ${2}, ...)</li></ul><p>Example of a correct JSON template:</p> 797 + * <pre> 798 + * [ 799 + * { 800 + * "resourceType": "Asset", 801 + * "identifier": { 802 + * "name": "${1}", 803 + * "domain": { 804 + * "name": "${2}", 805 + * "community": { 806 + * "name": "Some Community" 807 + * } 808 + * } 809 + * }, 810 + * "attributes" : { 811 + * "00000000-0000-0000-0000-000000003115" : [ { 812 + * "value" : "${3}" 813 + * } ], 814 + * "00000000-0000-0000-0000-000000000222" : [ { 815 + * "value" : "${4}" 816 + * } ] 817 + * } 818 + * } 819 + * ] 820 + * </pre> 821 + */ 822 + template?: string; 823 + }; 824 + 825 + export type ModelWithOneOfAndProperties = (SimpleParameter | NonAsciiStringæøåÆØÅöôêÊ字符串) & { 826 + baz: number | null; 827 + qux: number; 828 + }; 829 + 830 + /** 831 + * Model used to test deduplication strategy (unused) 832 + */ 833 + export type ParameterSimpleParameterUnused = string; 834 + 835 + /** 836 + * Model used to test deduplication strategy 837 + */ 838 + export type PostServiceWithEmptyTagResponse = string; 839 + 840 + /** 841 + * Model used to test deduplication strategy 842 + */ 843 + export type PostServiceWithEmptyTagResponse2 = string; 844 + 845 + /** 846 + * Model used to test deduplication strategy 847 + */ 848 + export type DeleteFooData = string; 849 + 850 + /** 851 + * Model used to test deduplication strategy 852 + */ 853 + export type DeleteFooData2 = string; 854 + 855 + /** 856 + * Model with restricted keyword name 857 + */ 858 + export type _import = string; 859 + 860 + export type SchemaWithFormRestrictedKeys = { 861 + description?: string; 862 + 'x-enum-descriptions'?: string; 863 + 'x-enum-varnames'?: string; 864 + 'x-enumNames'?: string; 865 + title?: string; 866 + object?: { 867 + description?: string; 868 + 'x-enum-descriptions'?: string; 869 + 'x-enum-varnames'?: string; 870 + 'x-enumNames'?: string; 871 + title?: string; 872 + }; 873 + array?: Array<{ 874 + description?: string; 875 + 'x-enum-descriptions'?: string; 876 + 'x-enum-varnames'?: string; 877 + 'x-enumNames'?: string; 878 + title?: string; 879 + }>; 880 + }; 881 + 882 + /** 883 + * This schema was giving PascalCase transformations a hard time 884 + */ 885 + export type io_k8s_apimachinery_pkg_apis_meta_v1_DeleteOptions = { 886 + /** 887 + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. 888 + */ 889 + preconditions?: io_k8s_apimachinery_pkg_apis_meta_v1_Preconditions; 890 + }; 891 + 892 + /** 893 + * This schema was giving PascalCase transformations a hard time 894 + */ 895 + export type io_k8s_apimachinery_pkg_apis_meta_v1_Preconditions = { 896 + /** 897 + * Specifies the target ResourceVersion 898 + */ 899 + resourceVersion?: string; 900 + /** 901 + * Specifies the target UID. 902 + */ 903 + uid?: string; 904 + }; 905 + 906 + export type AdditionalPropertiesUnknownIssue = { 907 + [key: string]: string | number; 908 + }; 909 + 910 + export type AdditionalPropertiesUnknownIssue2 = { 911 + [key: string]: string | number; 912 + }; 913 + 914 + export type AdditionalPropertiesUnknownIssue3 = string & { 915 + entries: { 916 + [key: string]: AdditionalPropertiesUnknownIssue; 917 + }; 918 + }; 919 + 920 + export type AdditionalPropertiesIntegerIssue = { 921 + value: number; 922 + [key: string]: number; 923 + }; 924 + 925 + export type OneOfAllOfIssue = ((ConstValue | Generic_Schema_Duplicate_Issue_1_System_Boolean_) & _3e_num_1Период) | Generic_Schema_Duplicate_Issue_1_System_String_; 926 + 927 + export type Generic_Schema_Duplicate_Issue_1_System_Boolean_ = { 928 + item?: boolean; 929 + error?: string | null; 930 + readonly hasError?: boolean; 931 + data?: { 932 + [key: string]: never; 933 + }; 934 + }; 935 + 936 + export type Generic_Schema_Duplicate_Issue_1_System_String_ = { 937 + item?: string | null; 938 + error?: string | null; 939 + readonly hasError?: boolean; 940 + }; 941 + 942 + /** 943 + * This is a reusable parameter 944 + */ 945 + export type SimpleParameter = string; 946 + 947 + /** 948 + * Parameter with illegal characters 949 + */ 950 + export type x_Foo_Bar = ModelWithString; 951 + 952 + export type RouteHandlers = { 953 + export: RouteHandler<{}>; 954 + import: RouteHandler<{ 955 + Body: ModelWithReadOnlyAndWriteOnly | ModelWithArrayReadOnlyAndWriteOnly; 956 + Reply: { 957 + 200: Model_From_Zendesk; 958 + }; 959 + }>; 960 + apiVVersionOdataControllerCount: RouteHandler<{ 961 + Reply: { 962 + 200: Model_From_Zendesk; 963 + }; 964 + }>; 965 + getApiVbyApiVersionSimpleOperation: RouteHandler<{ 966 + Params: { 967 + /** 968 + * foo in method 969 + */ 970 + foo_param: unknown; 971 + }; 972 + Reply: { 973 + 200: number; 974 + }; 975 + }>; 976 + deleteCallWithoutParametersAndResponse: RouteHandler<{}>; 977 + getCallWithoutParametersAndResponse: RouteHandler<{}>; 978 + headCallWithoutParametersAndResponse: RouteHandler<{}>; 979 + optionsCallWithoutParametersAndResponse: RouteHandler<{}>; 980 + patchCallWithoutParametersAndResponse: RouteHandler<{}>; 981 + postCallWithoutParametersAndResponse: RouteHandler<{}>; 982 + putCallWithoutParametersAndResponse: RouteHandler<{}>; 983 + deleteFoo: RouteHandler<{ 984 + Headers: { 985 + /** 986 + * Parameter with illegal characters 987 + */ 988 + 'x-Foo-Bar': ModelWithString; 989 + }; 990 + Params: { 991 + /** 992 + * foo in method 993 + */ 994 + foo_param: string; 995 + /** 996 + * bar in method 997 + */ 998 + BarParam: string; 999 + }; 1000 + }>; 1001 + callWithDescriptions: RouteHandler<{ 1002 + Querystring?: { 1003 + /** 1004 + * Testing multiline comments in string: First line 1005 + * Second line 1006 + * 1007 + * Fourth line 1008 + */ 1009 + parameterWithBreaks?: string; 1010 + /** 1011 + * Testing backticks in string: `backticks` and ```multiple backticks``` should work 1012 + */ 1013 + parameterWithBackticks?: string; 1014 + /** 1015 + * Testing slashes in string: \backwards\\\ and /forwards/// should work 1016 + */ 1017 + parameterWithSlashes?: string; 1018 + /** 1019 + * Testing expression placeholders in string: ${expression} should work 1020 + */ 1021 + parameterWithExpressionPlaceholders?: string; 1022 + /** 1023 + * Testing quotes in string: 'single quote''' and "double quotes""" should work 1024 + */ 1025 + parameterWithQuotes?: string; 1026 + /** 1027 + * Testing reserved characters in string: * inline * and ** inline ** should work 1028 + */ 1029 + parameterWithReservedCharacters?: string; 1030 + }; 1031 + }>; 1032 + deprecatedCall: RouteHandler<{ 1033 + Headers: { 1034 + /** 1035 + * This parameter is deprecated 1036 + * @deprecated 1037 + */ 1038 + parameter: DeprecatedModel | null; 1039 + }; 1040 + }>; 1041 + callWithParameters: RouteHandler<{ 1042 + Body: {} | null; 1043 + Headers: { 1044 + /** 1045 + * This is the parameter that goes into the header 1046 + */ 1047 + parameterHeader: string | null; 1048 + }; 1049 + Querystring: { 1050 + foo_ref_enum?: ModelWithNestedArrayEnumsDataFoo; 1051 + foo_all_of_enum: ModelWithNestedArrayEnumsDataFoo; 1052 + /** 1053 + * This is the parameter that goes into the query params 1054 + */ 1055 + cursor: string | null; 1056 + }; 1057 + Params: { 1058 + /** 1059 + * This is the parameter that goes into the path 1060 + */ 1061 + parameterPath: string | null; 1062 + /** 1063 + * api-version should be required in standalone clients 1064 + */ 1065 + 'api-version': string | null; 1066 + }; 1067 + }>; 1068 + callWithWeirdParameterNames: RouteHandler<{ 1069 + Body: ModelWithString | null; 1070 + Headers: { 1071 + /** 1072 + * This is the parameter that goes into the request header 1073 + */ 1074 + 'parameter.header': string | null; 1075 + }; 1076 + Querystring: { 1077 + /** 1078 + * This is the parameter with a reserved keyword 1079 + */ 1080 + default?: string; 1081 + /** 1082 + * This is the parameter that goes into the request query params 1083 + */ 1084 + 'parameter-query': string | null; 1085 + }; 1086 + Params: { 1087 + /** 1088 + * This is the parameter that goes into the path 1089 + */ 1090 + 'parameter.path.1'?: string; 1091 + /** 1092 + * This is the parameter that goes into the path 1093 + */ 1094 + 'parameter-path-2'?: string; 1095 + /** 1096 + * This is the parameter that goes into the path 1097 + */ 1098 + 'PARAMETER-PATH-3'?: string; 1099 + /** 1100 + * api-version should be required in standalone clients 1101 + */ 1102 + 'api-version': string | null; 1103 + }; 1104 + }>; 1105 + getCallWithOptionalParam: RouteHandler<{ 1106 + Body: ModelWithOneOfEnum; 1107 + Querystring?: { 1108 + /** 1109 + * This is an optional parameter 1110 + */ 1111 + page?: number; 1112 + }; 1113 + }>; 1114 + postCallWithOptionalParam: RouteHandler<{ 1115 + Body: { 1116 + offset?: number | null; 1117 + }; 1118 + Querystring: { 1119 + /** 1120 + * This is a required parameter 1121 + */ 1122 + parameter: Pageable; 1123 + }; 1124 + Reply: { 1125 + 200: number; 1126 + 204: void; 1127 + }; 1128 + }>; 1129 + postApiVbyApiVersionRequestBody: RouteHandler<{ 1130 + Body: ModelWithString; 1131 + Querystring?: { 1132 + /** 1133 + * This is a reusable parameter 1134 + */ 1135 + parameter?: string; 1136 + }; 1137 + }>; 1138 + postApiVbyApiVersionFormData: RouteHandler<{ 1139 + Body: ModelWithString; 1140 + Querystring?: { 1141 + /** 1142 + * This is a reusable parameter 1143 + */ 1144 + parameter?: string; 1145 + }; 1146 + }>; 1147 + callWithDefaultParameters: RouteHandler<{ 1148 + Querystring?: { 1149 + /** 1150 + * This is a simple string with default value 1151 + */ 1152 + parameterString?: string | null; 1153 + /** 1154 + * This is a simple number with default value 1155 + */ 1156 + parameterNumber?: number | null; 1157 + /** 1158 + * This is a simple boolean with default value 1159 + */ 1160 + parameterBoolean?: boolean | null; 1161 + /** 1162 + * This is a simple enum with default value 1163 + */ 1164 + parameterEnum?: 'Success' | 'Warning' | 'Error'; 1165 + /** 1166 + * This is a simple model with default value 1167 + */ 1168 + parameterModel?: ModelWithString | null; 1169 + }; 1170 + }>; 1171 + callWithDefaultOptionalParameters: RouteHandler<{ 1172 + Querystring?: { 1173 + /** 1174 + * This is a simple string that is optional with default value 1175 + */ 1176 + parameterString?: string; 1177 + /** 1178 + * This is a simple number that is optional with default value 1179 + */ 1180 + parameterNumber?: number; 1181 + /** 1182 + * This is a simple boolean that is optional with default value 1183 + */ 1184 + parameterBoolean?: boolean; 1185 + /** 1186 + * This is a simple enum that is optional with default value 1187 + */ 1188 + parameterEnum?: 'Success' | 'Warning' | 'Error'; 1189 + /** 1190 + * This is a simple model that is optional with default value 1191 + */ 1192 + parameterModel?: ModelWithString; 1193 + }; 1194 + }>; 1195 + callToTestOrderOfParams: RouteHandler<{ 1196 + Querystring: { 1197 + /** 1198 + * This is a optional string with default 1199 + */ 1200 + parameterOptionalStringWithDefault?: string; 1201 + /** 1202 + * This is a optional string with empty default 1203 + */ 1204 + parameterOptionalStringWithEmptyDefault?: string; 1205 + /** 1206 + * This is a optional string with no default 1207 + */ 1208 + parameterOptionalStringWithNoDefault?: string; 1209 + /** 1210 + * This is a string with default 1211 + */ 1212 + parameterStringWithDefault: string; 1213 + /** 1214 + * This is a string with empty default 1215 + */ 1216 + parameterStringWithEmptyDefault: string; 1217 + /** 1218 + * This is a string with no default 1219 + */ 1220 + parameterStringWithNoDefault: string; 1221 + /** 1222 + * This is a string that can be null with no default 1223 + */ 1224 + parameterStringNullableWithNoDefault?: string | null; 1225 + /** 1226 + * This is a string that can be null with default 1227 + */ 1228 + parameterStringNullableWithDefault?: string | null; 1229 + }; 1230 + }>; 1231 + duplicateName: RouteHandler<{}>; 1232 + duplicateName2: RouteHandler<{}>; 1233 + duplicateName3: RouteHandler<{}>; 1234 + duplicateName4: RouteHandler<{}>; 1235 + callWithNoContentResponse: RouteHandler<{ 1236 + Reply: { 1237 + 204: void; 1238 + }; 1239 + }>; 1240 + callWithResponseAndNoContentResponse: RouteHandler<{ 1241 + Reply: { 1242 + 200: number; 1243 + 204: void; 1244 + }; 1245 + }>; 1246 + dummyA: RouteHandler<{ 1247 + Reply: { 1248 + 200: _400; 1249 + }; 1250 + }>; 1251 + dummyB: RouteHandler<{ 1252 + Reply: { 1253 + 204: void; 1254 + }; 1255 + }>; 1256 + callWithResponse: RouteHandler<{ 1257 + Reply: {}; 1258 + }>; 1259 + callWithDuplicateResponses: RouteHandler<{ 1260 + Reply: { 1261 + 200: ModelWithBoolean & ModelWithInteger; 1262 + 201: ModelWithString; 1263 + 202: ModelWithString; 1264 + 500: ModelWithStringError; 1265 + 501: ModelWithStringError; 1266 + 502: ModelWithStringError; 1267 + '4XX': DictionaryWithArray; 1268 + }; 1269 + }>; 1270 + callWithResponses: RouteHandler<{ 1271 + Reply: { 1272 + 200: { 1273 + readonly '@namespace.string'?: string; 1274 + readonly '@namespace.integer'?: number; 1275 + readonly value?: Array<ModelWithString>; 1276 + }; 1277 + 201: ModelThatExtends; 1278 + 202: ModelThatExtendsExtends; 1279 + 500: ModelWithStringError; 1280 + 501: ModelWithStringError; 1281 + 502: ModelWithStringError; 1282 + }; 1283 + }>; 1284 + collectionFormat: RouteHandler<{ 1285 + Querystring: { 1286 + /** 1287 + * This is an array parameter that is sent as csv format (comma-separated values) 1288 + */ 1289 + parameterArrayCSV: Array<string> | null; 1290 + /** 1291 + * This is an array parameter that is sent as ssv format (space-separated values) 1292 + */ 1293 + parameterArraySSV: Array<string> | null; 1294 + /** 1295 + * This is an array parameter that is sent as tsv format (tab-separated values) 1296 + */ 1297 + parameterArrayTSV: Array<string> | null; 1298 + /** 1299 + * This is an array parameter that is sent as pipes format (pipe-separated values) 1300 + */ 1301 + parameterArrayPipes: Array<string> | null; 1302 + /** 1303 + * This is an array parameter that is sent as multi format (multiple parameter instances) 1304 + */ 1305 + parameterArrayMulti: Array<string> | null; 1306 + }; 1307 + }>; 1308 + types: RouteHandler<{ 1309 + Querystring: { 1310 + /** 1311 + * This is a number parameter 1312 + */ 1313 + parameterNumber: number; 1314 + /** 1315 + * This is a string parameter 1316 + */ 1317 + parameterString: string | null; 1318 + /** 1319 + * This is a boolean parameter 1320 + */ 1321 + parameterBoolean: boolean | null; 1322 + /** 1323 + * This is an object parameter 1324 + */ 1325 + parameterObject: {} | null; 1326 + /** 1327 + * This is an array parameter 1328 + */ 1329 + parameterArray: Array<string> | null; 1330 + /** 1331 + * This is a dictionary parameter 1332 + */ 1333 + parameterDictionary: {} | null; 1334 + /** 1335 + * This is an enum parameter 1336 + */ 1337 + parameterEnum: 'Success' | 'Warning' | 'Error' | null; 1338 + }; 1339 + Params?: { 1340 + /** 1341 + * This is a number parameter 1342 + */ 1343 + id?: number; 1344 + }; 1345 + Reply: { 1346 + 200: number; 1347 + 201: string; 1348 + 202: boolean; 1349 + 203: {}; 1350 + }; 1351 + }>; 1352 + uploadFile: RouteHandler<{ 1353 + Body: Blob | File; 1354 + Params: { 1355 + /** 1356 + * api-version should be required in standalone clients 1357 + */ 1358 + 'api-version': string | null; 1359 + }; 1360 + Reply: { 1361 + 200: boolean; 1362 + }; 1363 + }>; 1364 + fileResponse: RouteHandler<{ 1365 + Params: { 1366 + id: string; 1367 + /** 1368 + * api-version should be required in standalone clients 1369 + */ 1370 + 'api-version': string; 1371 + }; 1372 + Reply: { 1373 + 200: Blob | File; 1374 + }; 1375 + }>; 1376 + complexTypes: RouteHandler<{ 1377 + Querystring: { 1378 + /** 1379 + * Parameter containing object 1380 + */ 1381 + parameterObject: { 1382 + first?: { 1383 + second?: { 1384 + third?: string; 1385 + }; 1386 + }; 1387 + }; 1388 + /** 1389 + * Parameter containing reference 1390 + */ 1391 + parameterReference: ModelWithString; 1392 + }; 1393 + Reply: { 1394 + 200: Array<ModelWithString>; 1395 + 400: unknown; 1396 + 500: unknown; 1397 + }; 1398 + }>; 1399 + multipartResponse: RouteHandler<{ 1400 + Reply: { 1401 + 200: { 1402 + file?: Blob | File; 1403 + metadata?: { 1404 + foo?: string; 1405 + bar?: string; 1406 + }; 1407 + }; 1408 + }; 1409 + }>; 1410 + multipartRequest: RouteHandler<{ 1411 + Body: { 1412 + content?: Blob | File; 1413 + data?: ModelWithString | null; 1414 + }; 1415 + }>; 1416 + complexParams: RouteHandler<{ 1417 + Body: { 1418 + readonly key: string | null; 1419 + name: string | null; 1420 + enabled?: boolean; 1421 + type: 'Monkey' | 'Horse' | 'Bird'; 1422 + listOfModels?: Array<ModelWithString> | null; 1423 + listOfStrings?: Array<string> | null; 1424 + parameters: ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary; 1425 + readonly user?: { 1426 + readonly id?: number; 1427 + readonly name?: string | null; 1428 + }; 1429 + }; 1430 + Params: { 1431 + id: number; 1432 + /** 1433 + * api-version should be required in standalone clients 1434 + */ 1435 + 'api-version': string; 1436 + }; 1437 + Reply: { 1438 + 200: ModelWithString; 1439 + }; 1440 + }>; 1441 + callWithResultFromHeader: RouteHandler<{ 1442 + Reply: { 1443 + 200: unknown; 1444 + 400: unknown; 1445 + 500: unknown; 1446 + }; 1447 + }>; 1448 + testErrorCode: RouteHandler<{ 1449 + Querystring: { 1450 + /** 1451 + * Status code to return 1452 + */ 1453 + status: number; 1454 + }; 1455 + Reply: { 1456 + 200: unknown; 1457 + 500: unknown; 1458 + 501: unknown; 1459 + 502: unknown; 1460 + 503: unknown; 1461 + }; 1462 + }>; 1463 + nonAsciiæøåÆøÅöôêÊ字符串: RouteHandler<{ 1464 + Querystring: { 1465 + /** 1466 + * Dummy input param 1467 + */ 1468 + nonAsciiParamæøåÆØÅöôêÊ: number; 1469 + }; 1470 + Reply: { 1471 + 200: Array<NonAsciiStringæøåÆØÅöôêÊ字符串>; 1472 + }; 1473 + }>; 1474 + putWithFormUrlEncoded: RouteHandler<{ 1475 + Body: ArrayWithStrings; 1476 + }>; 1477 + };
+3
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/fastify/index.ts
··· 1 + // This file is auto-generated by @hey-api/openapi-ts 2 + export * from './types.gen'; 3 + export * from './services.gen';
+382
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/fastify/services.gen.ts
··· 1 + // This file is auto-generated by @hey-api/openapi-ts 2 + 3 + import { createClient, createConfig, type Options, formDataBodySerializer, urlSearchParamsBodySerializer } from '@hey-api/client-fetch'; 4 + import type { ImportData, ImportResponse, ApiVversionOdataControllerCountResponse, GetApiVbyApiVersionSimpleOperationData, GetApiVbyApiVersionSimpleOperationError, GetApiVbyApiVersionSimpleOperationResponse, DeleteFooData3, CallWithDescriptionsData, DeprecatedCallData, CallWithParametersData, CallWithWeirdParameterNamesData, GetCallWithOptionalParamData, PostCallWithOptionalParamData, PostCallWithOptionalParamResponse, PostApiVbyApiVersionRequestBodyData, PostApiVbyApiVersionFormDataData, CallWithDefaultParametersData, CallWithDefaultOptionalParametersData, CallToTestOrderOfParamsData, CallWithNoContentResponseResponse, CallWithResponseAndNoContentResponseResponse, DummyAResponse, DummyBResponse, CallWithResponseResponse, CallWithDuplicateResponsesError, CallWithDuplicateResponsesResponse, CallWithResponsesError, CallWithResponsesResponse, CollectionFormatData, TypesData, TypesResponse, UploadFileData, UploadFileResponse, FileResponseData, FileResponseResponse, ComplexTypesData, ComplexTypesResponse, MultipartResponseResponse, MultipartRequestData, ComplexParamsData, ComplexParamsResponse, TestErrorCodeData, NonAsciiæøåÆøÅöôêÊ字符串Data, NonAsciiæøåÆøÅöôêÊ字符串Response, PutWithFormUrlEncodedData } from './types.gen'; 5 + 6 + export const client = createClient(createConfig()); 7 + 8 + export const export_ = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 9 + return (options?.client ?? client).get<unknown, unknown, ThrowOnError>({ 10 + ...options, 11 + url: '/api/v{api-version}/no-tag' 12 + }); 13 + }; 14 + 15 + export const import_ = <ThrowOnError extends boolean = false>(options: Options<ImportData, ThrowOnError>) => { 16 + return (options?.client ?? client).post<ImportResponse, unknown, ThrowOnError>({ 17 + ...options, 18 + headers: { 19 + 'Content-Type': 'application/json', 20 + ...options?.headers 21 + }, 22 + url: '/api/v{api-version}/no-tag' 23 + }); 24 + }; 25 + 26 + export const apiVVersionOdataControllerCount = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 27 + return (options?.client ?? client).get<ApiVversionOdataControllerCountResponse, unknown, ThrowOnError>({ 28 + ...options, 29 + url: '/api/v{api-version}/simple/$count' 30 + }); 31 + }; 32 + 33 + export const getApiVbyApiVersionSimpleOperation = <ThrowOnError extends boolean = false>(options: Options<GetApiVbyApiVersionSimpleOperationData, ThrowOnError>) => { 34 + return (options?.client ?? client).get<GetApiVbyApiVersionSimpleOperationResponse, GetApiVbyApiVersionSimpleOperationError, ThrowOnError>({ 35 + ...options, 36 + url: '/api/v{api-version}/simple:operation' 37 + }); 38 + }; 39 + 40 + export const deleteCallWithoutParametersAndResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 41 + return (options?.client ?? client).delete<unknown, unknown, ThrowOnError>({ 42 + ...options, 43 + url: '/api/v{api-version}/simple' 44 + }); 45 + }; 46 + 47 + export const getCallWithoutParametersAndResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 48 + return (options?.client ?? client).get<unknown, unknown, ThrowOnError>({ 49 + ...options, 50 + url: '/api/v{api-version}/simple' 51 + }); 52 + }; 53 + 54 + export const headCallWithoutParametersAndResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 55 + return (options?.client ?? client).head<unknown, unknown, ThrowOnError>({ 56 + ...options, 57 + url: '/api/v{api-version}/simple' 58 + }); 59 + }; 60 + 61 + export const optionsCallWithoutParametersAndResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 62 + return (options?.client ?? client).options<unknown, unknown, ThrowOnError>({ 63 + ...options, 64 + url: '/api/v{api-version}/simple' 65 + }); 66 + }; 67 + 68 + export const patchCallWithoutParametersAndResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 69 + return (options?.client ?? client).patch<unknown, unknown, ThrowOnError>({ 70 + ...options, 71 + url: '/api/v{api-version}/simple' 72 + }); 73 + }; 74 + 75 + export const postCallWithoutParametersAndResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 76 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 77 + ...options, 78 + url: '/api/v{api-version}/simple' 79 + }); 80 + }; 81 + 82 + export const putCallWithoutParametersAndResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 83 + return (options?.client ?? client).put<unknown, unknown, ThrowOnError>({ 84 + ...options, 85 + url: '/api/v{api-version}/simple' 86 + }); 87 + }; 88 + 89 + export const deleteFoo = <ThrowOnError extends boolean = false>(options: Options<DeleteFooData3, ThrowOnError>) => { 90 + return (options?.client ?? client).delete<unknown, unknown, ThrowOnError>({ 91 + ...options, 92 + url: '/api/v{api-version}/foo/{foo_param}/bar/{BarParam}' 93 + }); 94 + }; 95 + 96 + export const callWithDescriptions = <ThrowOnError extends boolean = false>(options?: Options<CallWithDescriptionsData, ThrowOnError>) => { 97 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 98 + ...options, 99 + url: '/api/v{api-version}/descriptions' 100 + }); 101 + }; 102 + 103 + /** 104 + * @deprecated 105 + */ 106 + export const deprecatedCall = <ThrowOnError extends boolean = false>(options: Options<DeprecatedCallData, ThrowOnError>) => { 107 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 108 + ...options, 109 + url: '/api/v{api-version}/parameters/deprecated' 110 + }); 111 + }; 112 + 113 + export const callWithParameters = <ThrowOnError extends boolean = false>(options: Options<CallWithParametersData, ThrowOnError>) => { 114 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 115 + ...options, 116 + headers: { 117 + 'Content-Type': 'application/json', 118 + ...options?.headers 119 + }, 120 + url: '/api/v{api-version}/parameters/{parameterPath}' 121 + }); 122 + }; 123 + 124 + export const callWithWeirdParameterNames = <ThrowOnError extends boolean = false>(options: Options<CallWithWeirdParameterNamesData, ThrowOnError>) => { 125 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 126 + ...options, 127 + headers: { 128 + 'Content-Type': 'application/json', 129 + ...options?.headers 130 + }, 131 + url: '/api/v{api-version}/parameters/{parameter.path.1}/{parameter-path-2}/{PARAMETER-PATH-3}' 132 + }); 133 + }; 134 + 135 + export const getCallWithOptionalParam = <ThrowOnError extends boolean = false>(options: Options<GetCallWithOptionalParamData, ThrowOnError>) => { 136 + return (options?.client ?? client).get<unknown, unknown, ThrowOnError>({ 137 + ...options, 138 + headers: { 139 + 'Content-Type': 'application/json', 140 + ...options?.headers 141 + }, 142 + url: '/api/v{api-version}/parameters' 143 + }); 144 + }; 145 + 146 + export const postCallWithOptionalParam = <ThrowOnError extends boolean = false>(options: Options<PostCallWithOptionalParamData, ThrowOnError>) => { 147 + return (options?.client ?? client).post<PostCallWithOptionalParamResponse, unknown, ThrowOnError>({ 148 + ...options, 149 + headers: { 150 + 'Content-Type': 'application/json', 151 + ...options?.headers 152 + }, 153 + url: '/api/v{api-version}/parameters' 154 + }); 155 + }; 156 + 157 + export const postApiVbyApiVersionRequestBody = <ThrowOnError extends boolean = false>(options?: Options<PostApiVbyApiVersionRequestBodyData, ThrowOnError>) => { 158 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 159 + ...options, 160 + headers: { 161 + 'Content-Type': 'application/json', 162 + ...options?.headers 163 + }, 164 + url: '/api/v{api-version}/requestBody' 165 + }); 166 + }; 167 + 168 + export const postApiVbyApiVersionFormData = <ThrowOnError extends boolean = false>(options?: Options<PostApiVbyApiVersionFormDataData, ThrowOnError>) => { 169 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 170 + ...options, 171 + ...formDataBodySerializer, 172 + headers: { 173 + 'Content-Type': null, 174 + ...options?.headers 175 + }, 176 + url: '/api/v{api-version}/formData' 177 + }); 178 + }; 179 + 180 + export const callWithDefaultParameters = <ThrowOnError extends boolean = false>(options?: Options<CallWithDefaultParametersData, ThrowOnError>) => { 181 + return (options?.client ?? client).get<unknown, unknown, ThrowOnError>({ 182 + ...options, 183 + url: '/api/v{api-version}/defaults' 184 + }); 185 + }; 186 + 187 + export const callWithDefaultOptionalParameters = <ThrowOnError extends boolean = false>(options?: Options<CallWithDefaultOptionalParametersData, ThrowOnError>) => { 188 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 189 + ...options, 190 + url: '/api/v{api-version}/defaults' 191 + }); 192 + }; 193 + 194 + export const callToTestOrderOfParams = <ThrowOnError extends boolean = false>(options: Options<CallToTestOrderOfParamsData, ThrowOnError>) => { 195 + return (options?.client ?? client).put<unknown, unknown, ThrowOnError>({ 196 + ...options, 197 + url: '/api/v{api-version}/defaults' 198 + }); 199 + }; 200 + 201 + export const duplicateName = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 202 + return (options?.client ?? client).delete<unknown, unknown, ThrowOnError>({ 203 + ...options, 204 + url: '/api/v{api-version}/duplicate' 205 + }); 206 + }; 207 + 208 + export const duplicateName2 = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 209 + return (options?.client ?? client).get<unknown, unknown, ThrowOnError>({ 210 + ...options, 211 + url: '/api/v{api-version}/duplicate' 212 + }); 213 + }; 214 + 215 + export const duplicateName3 = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 216 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 217 + ...options, 218 + url: '/api/v{api-version}/duplicate' 219 + }); 220 + }; 221 + 222 + export const duplicateName4 = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 223 + return (options?.client ?? client).put<unknown, unknown, ThrowOnError>({ 224 + ...options, 225 + url: '/api/v{api-version}/duplicate' 226 + }); 227 + }; 228 + 229 + export const callWithNoContentResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 230 + return (options?.client ?? client).get<CallWithNoContentResponseResponse, unknown, ThrowOnError>({ 231 + ...options, 232 + url: '/api/v{api-version}/no-content' 233 + }); 234 + }; 235 + 236 + export const callWithResponseAndNoContentResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 237 + return (options?.client ?? client).get<CallWithResponseAndNoContentResponseResponse, unknown, ThrowOnError>({ 238 + ...options, 239 + url: '/api/v{api-version}/multiple-tags/response-and-no-content' 240 + }); 241 + }; 242 + 243 + export const dummyA = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 244 + return (options?.client ?? client).get<DummyAResponse, unknown, ThrowOnError>({ 245 + ...options, 246 + url: '/api/v{api-version}/multiple-tags/a' 247 + }); 248 + }; 249 + 250 + export const dummyB = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 251 + return (options?.client ?? client).get<DummyBResponse, unknown, ThrowOnError>({ 252 + ...options, 253 + url: '/api/v{api-version}/multiple-tags/b' 254 + }); 255 + }; 256 + 257 + export const callWithResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 258 + return (options?.client ?? client).get<CallWithResponseResponse, unknown, ThrowOnError>({ 259 + ...options, 260 + url: '/api/v{api-version}/response' 261 + }); 262 + }; 263 + 264 + export const callWithDuplicateResponses = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 265 + return (options?.client ?? client).post<CallWithDuplicateResponsesResponse, CallWithDuplicateResponsesError, ThrowOnError>({ 266 + ...options, 267 + url: '/api/v{api-version}/response' 268 + }); 269 + }; 270 + 271 + export const callWithResponses = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 272 + return (options?.client ?? client).put<CallWithResponsesResponse, CallWithResponsesError, ThrowOnError>({ 273 + ...options, 274 + url: '/api/v{api-version}/response' 275 + }); 276 + }; 277 + 278 + export const collectionFormat = <ThrowOnError extends boolean = false>(options: Options<CollectionFormatData, ThrowOnError>) => { 279 + return (options?.client ?? client).get<unknown, unknown, ThrowOnError>({ 280 + ...options, 281 + url: '/api/v{api-version}/collectionFormat' 282 + }); 283 + }; 284 + 285 + export const types = <ThrowOnError extends boolean = false>(options: Options<TypesData, ThrowOnError>) => { 286 + return (options?.client ?? client).get<TypesResponse, unknown, ThrowOnError>({ 287 + ...options, 288 + url: '/api/v{api-version}/types' 289 + }); 290 + }; 291 + 292 + export const uploadFile = <ThrowOnError extends boolean = false>(options: Options<UploadFileData, ThrowOnError>) => { 293 + return (options?.client ?? client).post<UploadFileResponse, unknown, ThrowOnError>({ 294 + ...options, 295 + ...urlSearchParamsBodySerializer, 296 + headers: { 297 + 'Content-Type': 'application/x-www-form-urlencoded', 298 + ...options?.headers 299 + }, 300 + url: '/api/v{api-version}/upload' 301 + }); 302 + }; 303 + 304 + export const fileResponse = <ThrowOnError extends boolean = false>(options: Options<FileResponseData, ThrowOnError>) => { 305 + return (options?.client ?? client).get<FileResponseResponse, unknown, ThrowOnError>({ 306 + ...options, 307 + url: '/api/v{api-version}/file/{id}' 308 + }); 309 + }; 310 + 311 + export const complexTypes = <ThrowOnError extends boolean = false>(options: Options<ComplexTypesData, ThrowOnError>) => { 312 + return (options?.client ?? client).get<ComplexTypesResponse, unknown, ThrowOnError>({ 313 + ...options, 314 + url: '/api/v{api-version}/complex' 315 + }); 316 + }; 317 + 318 + export const multipartResponse = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 319 + return (options?.client ?? client).get<MultipartResponseResponse, unknown, ThrowOnError>({ 320 + ...options, 321 + url: '/api/v{api-version}/multipart' 322 + }); 323 + }; 324 + 325 + export const multipartRequest = <ThrowOnError extends boolean = false>(options?: Options<MultipartRequestData, ThrowOnError>) => { 326 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 327 + ...options, 328 + ...formDataBodySerializer, 329 + headers: { 330 + 'Content-Type': null, 331 + ...options?.headers 332 + }, 333 + url: '/api/v{api-version}/multipart' 334 + }); 335 + }; 336 + 337 + export const complexParams = <ThrowOnError extends boolean = false>(options: Options<ComplexParamsData, ThrowOnError>) => { 338 + return (options?.client ?? client).put<ComplexParamsResponse, unknown, ThrowOnError>({ 339 + ...options, 340 + headers: { 341 + 'Content-Type': 'application/json-patch+json', 342 + ...options?.headers 343 + }, 344 + url: '/api/v{api-version}/complex/{id}' 345 + }); 346 + }; 347 + 348 + export const callWithResultFromHeader = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { 349 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 350 + ...options, 351 + url: '/api/v{api-version}/header' 352 + }); 353 + }; 354 + 355 + export const testErrorCode = <ThrowOnError extends boolean = false>(options: Options<TestErrorCodeData, ThrowOnError>) => { 356 + return (options?.client ?? client).post<unknown, unknown, ThrowOnError>({ 357 + ...options, 358 + url: '/api/v{api-version}/error' 359 + }); 360 + }; 361 + 362 + export const nonAsciiæøåÆøÅöôêÊ字符串 = <ThrowOnError extends boolean = false>(options: Options<NonAsciiæøåÆøÅöôêÊ字符串Data, ThrowOnError>) => { 363 + return (options?.client ?? client).post<NonAsciiæøåÆøÅöôêÊ字符串Response, unknown, ThrowOnError>({ 364 + ...options, 365 + url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串' 366 + }); 367 + }; 368 + 369 + /** 370 + * Login User 371 + */ 372 + export const putWithFormUrlEncoded = <ThrowOnError extends boolean = false>(options: Options<PutWithFormUrlEncodedData, ThrowOnError>) => { 373 + return (options?.client ?? client).put<unknown, unknown, ThrowOnError>({ 374 + ...options, 375 + ...urlSearchParamsBodySerializer, 376 + headers: { 377 + 'Content-Type': 'application/x-www-form-urlencoded', 378 + ...options?.headers 379 + }, 380 + url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串' 381 + }); 382 + };
+1474
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/fastify/types.gen.ts
··· 1 + // This file is auto-generated by @hey-api/openapi-ts 2 + 3 + /** 4 + * Model with number-only name 5 + */ 6 + export type _400 = string; 7 + 8 + /** 9 + * Testing multiline comments in string: First line 10 + * Second line 11 + * 12 + * Fourth line 13 + */ 14 + export type camelCaseCommentWithBreaks = number; 15 + 16 + /** 17 + * Testing multiline comments in string: First line 18 + * Second line 19 + * 20 + * Fourth line 21 + */ 22 + export type CommentWithBreaks = number; 23 + 24 + /** 25 + * Testing backticks in string: `backticks` and ```multiple backticks``` should work 26 + */ 27 + export type CommentWithBackticks = number; 28 + 29 + /** 30 + * Testing backticks and quotes in string: `backticks`, 'quotes', "double quotes" and ```multiple backticks``` should work 31 + */ 32 + export type CommentWithBackticksAndQuotes = number; 33 + 34 + /** 35 + * Testing slashes in string: \backwards\\\ and /forwards/// should work 36 + */ 37 + export type CommentWithSlashes = number; 38 + 39 + /** 40 + * Testing expression placeholders in string: ${expression} should work 41 + */ 42 + export type CommentWithExpressionPlaceholders = number; 43 + 44 + /** 45 + * Testing quotes in string: 'single quote''' and "double quotes""" should work 46 + */ 47 + export type CommentWithQuotes = number; 48 + 49 + /** 50 + * Testing reserved characters in string: * inline * and ** inline ** should work 51 + */ 52 + export type CommentWithReservedCharacters = number; 53 + 54 + /** 55 + * This is a simple number 56 + */ 57 + export type SimpleInteger = number; 58 + 59 + /** 60 + * This is a simple boolean 61 + */ 62 + export type SimpleBoolean = boolean; 63 + 64 + /** 65 + * This is a simple string 66 + */ 67 + export type SimpleString = string; 68 + 69 + /** 70 + * A string with non-ascii (unicode) characters valid in typescript identifiers (æøåÆØÅöÔèÈ字符串) 71 + */ 72 + export type NonAsciiStringæøåÆØÅöôêÊ字符串 = string; 73 + 74 + /** 75 + * This is a simple file 76 + */ 77 + export type SimpleFile = Blob | File; 78 + 79 + /** 80 + * This is a simple reference 81 + */ 82 + export type SimpleReference = ModelWithString; 83 + 84 + /** 85 + * This is a simple string 86 + */ 87 + export type SimpleStringWithPattern = string | null; 88 + 89 + /** 90 + * This is a simple enum with strings 91 + */ 92 + export type EnumWithStrings = 'Success' | 'Warning' | 'Error' | "'Single Quote'" | '"Double Quotes"' | 'Non-ascii: øæåôöØÆÅÔÖ字符串'; 93 + 94 + export type EnumWithReplacedCharacters = "'Single Quote'" | '"Double Quotes"' | 'øæåôöØÆÅÔÖ字符串' | 3.1 | ''; 95 + 96 + /** 97 + * This is a simple enum with numbers 98 + */ 99 + export type EnumWithNumbers = 1 | 2 | 3 | 1.1 | 1.2 | 1.3 | 100 | 200 | 300 | -100 | -200 | -300 | -1.1 | -1.2 | -1.3; 100 + 101 + /** 102 + * Success=1,Warning=2,Error=3 103 + */ 104 + export type EnumFromDescription = number; 105 + 106 + /** 107 + * This is a simple enum with numbers 108 + */ 109 + export type EnumWithExtensions = 200 | 400 | 500; 110 + 111 + export type EnumWithXEnumNames = 0 | 1 | 2; 112 + 113 + /** 114 + * This is a simple array with numbers 115 + */ 116 + export type ArrayWithNumbers = Array<number>; 117 + 118 + /** 119 + * This is a simple array with booleans 120 + */ 121 + export type ArrayWithBooleans = Array<boolean>; 122 + 123 + /** 124 + * This is a simple array with strings 125 + */ 126 + export type ArrayWithStrings = Array<string>; 127 + 128 + /** 129 + * This is a simple array with references 130 + */ 131 + export type ArrayWithReferences = Array<ModelWithString>; 132 + 133 + /** 134 + * This is a simple array containing an array 135 + */ 136 + export type ArrayWithArray = Array<Array<ModelWithString>>; 137 + 138 + /** 139 + * This is a simple array with properties 140 + */ 141 + export type ArrayWithProperties = Array<{ 142 + '16x16'?: camelCaseCommentWithBreaks; 143 + bar?: string; 144 + }>; 145 + 146 + /** 147 + * This is a simple array with any of properties 148 + */ 149 + export type ArrayWithAnyOfProperties = Array<{ 150 + foo?: string; 151 + } | { 152 + bar?: string; 153 + }>; 154 + 155 + export type AnyOfAnyAndNull = { 156 + data?: unknown | null; 157 + }; 158 + 159 + /** 160 + * This is a simple array with any of properties 161 + */ 162 + export type AnyOfArrays = { 163 + results?: Array<{ 164 + foo?: string; 165 + } | { 166 + bar?: string; 167 + }>; 168 + }; 169 + 170 + /** 171 + * This is a string dictionary 172 + */ 173 + export type DictionaryWithString = { 174 + [key: string]: string; 175 + }; 176 + 177 + export type DictionaryWithPropertiesAndAdditionalProperties = { 178 + foo?: number; 179 + bar?: boolean; 180 + [key: string]: string | number | boolean | undefined; 181 + }; 182 + 183 + /** 184 + * This is a string reference 185 + */ 186 + export type DictionaryWithReference = { 187 + [key: string]: ModelWithString; 188 + }; 189 + 190 + /** 191 + * This is a complex dictionary 192 + */ 193 + export type DictionaryWithArray = { 194 + [key: string]: Array<ModelWithString>; 195 + }; 196 + 197 + /** 198 + * This is a string dictionary 199 + */ 200 + export type DictionaryWithDictionary = { 201 + [key: string]: { 202 + [key: string]: string; 203 + }; 204 + }; 205 + 206 + /** 207 + * This is a complex dictionary 208 + */ 209 + export type DictionaryWithProperties = { 210 + [key: string]: { 211 + foo?: string; 212 + bar?: string; 213 + }; 214 + }; 215 + 216 + /** 217 + * This is a model with one number property 218 + */ 219 + export type ModelWithInteger = { 220 + /** 221 + * This is a simple number property 222 + */ 223 + prop?: number; 224 + }; 225 + 226 + /** 227 + * This is a model with one boolean property 228 + */ 229 + export type ModelWithBoolean = { 230 + /** 231 + * This is a simple boolean property 232 + */ 233 + prop?: boolean; 234 + }; 235 + 236 + /** 237 + * This is a model with one string property 238 + */ 239 + export type ModelWithString = { 240 + /** 241 + * This is a simple string property 242 + */ 243 + prop?: string; 244 + }; 245 + 246 + /** 247 + * This is a model with one string property 248 + */ 249 + export type ModelWithStringError = { 250 + /** 251 + * This is a simple string property 252 + */ 253 + prop?: string; 254 + }; 255 + 256 + /** 257 + * `Comment` or `VoiceComment`. The JSON object for adding voice comments to tickets is different. See [Adding voice comments to tickets](/documentation/ticketing/managing-tickets/adding-voice-comments-to-tickets) 258 + */ 259 + export type Model_From_Zendesk = string; 260 + 261 + /** 262 + * This is a model with one string property 263 + */ 264 + export type ModelWithNullableString = { 265 + /** 266 + * This is a simple string property 267 + */ 268 + nullableProp1?: string | null; 269 + /** 270 + * This is a simple string property 271 + */ 272 + nullableRequiredProp1: string | null; 273 + /** 274 + * This is a simple string property 275 + */ 276 + nullableProp2?: string | null; 277 + /** 278 + * This is a simple string property 279 + */ 280 + nullableRequiredProp2: string | null; 281 + /** 282 + * This is a simple enum with strings 283 + */ 284 + 'foo_bar-enum'?: 'Success' | 'Warning' | 'Error' | 'ØÆÅ字符串'; 285 + }; 286 + 287 + /** 288 + * This is a model with one enum 289 + */ 290 + export type ModelWithEnum = { 291 + /** 292 + * This is a simple enum with strings 293 + */ 294 + 'foo_bar-enum'?: 'Success' | 'Warning' | 'Error' | 'ØÆÅ字符串'; 295 + /** 296 + * These are the HTTP error code enums 297 + */ 298 + statusCode?: '100' | '200 FOO' | '300 FOO_BAR' | '400 foo-bar' | '500 foo.bar' | '600 foo&bar'; 299 + /** 300 + * Simple boolean enum 301 + */ 302 + bool?: true; 303 + }; 304 + 305 + /** 306 + * This is a model with one enum with escaped name 307 + */ 308 + export type ModelWithEnumWithHyphen = { 309 + 'foo-bar-baz-qux'?: '3.0'; 310 + }; 311 + 312 + /** 313 + * This is a model with one enum 314 + */ 315 + export type ModelWithEnumFromDescription = { 316 + /** 317 + * Success=1,Warning=2,Error=3 318 + */ 319 + test?: number; 320 + }; 321 + 322 + /** 323 + * This is a model with nested enums 324 + */ 325 + export type ModelWithNestedEnums = { 326 + dictionaryWithEnum?: { 327 + [key: string]: 'Success' | 'Warning' | 'Error'; 328 + }; 329 + dictionaryWithEnumFromDescription?: { 330 + [key: string]: number; 331 + }; 332 + arrayWithEnum?: Array<'Success' | 'Warning' | 'Error'>; 333 + arrayWithDescription?: Array<number>; 334 + /** 335 + * This is a simple enum with strings 336 + */ 337 + 'foo_bar-enum'?: 'Success' | 'Warning' | 'Error' | 'ØÆÅ字符串'; 338 + }; 339 + 340 + /** 341 + * This is a model with one property containing a reference 342 + */ 343 + export type ModelWithReference = { 344 + prop?: ModelWithProperties; 345 + }; 346 + 347 + /** 348 + * This is a model with one property containing an array 349 + */ 350 + export type ModelWithArrayReadOnlyAndWriteOnly = { 351 + prop?: Array<ModelWithReadOnlyAndWriteOnly>; 352 + propWithFile?: Array<Blob | File>; 353 + propWithNumber?: Array<number>; 354 + }; 355 + 356 + /** 357 + * This is a model with one property containing an array 358 + */ 359 + export type ModelWithArray = { 360 + prop?: Array<ModelWithString>; 361 + propWithFile?: Array<Blob | File>; 362 + propWithNumber?: Array<number>; 363 + }; 364 + 365 + /** 366 + * This is a model with one property containing a dictionary 367 + */ 368 + export type ModelWithDictionary = { 369 + prop?: { 370 + [key: string]: string; 371 + }; 372 + }; 373 + 374 + /** 375 + * This is a deprecated model with a deprecated property 376 + * @deprecated 377 + */ 378 + export type DeprecatedModel = { 379 + /** 380 + * This is a deprecated property 381 + * @deprecated 382 + */ 383 + prop?: string; 384 + }; 385 + 386 + /** 387 + * This is a model with one property containing a circular reference 388 + */ 389 + export type ModelWithCircularReference = { 390 + prop?: ModelWithCircularReference; 391 + }; 392 + 393 + /** 394 + * This is a model with one property with a 'one of' relationship 395 + */ 396 + export type CompositionWithOneOf = { 397 + propA?: ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary; 398 + }; 399 + 400 + /** 401 + * This is a model with one property with a 'one of' relationship where the options are not $ref 402 + */ 403 + export type CompositionWithOneOfAnonymous = { 404 + propA?: { 405 + propA?: string; 406 + } | string | number; 407 + }; 408 + 409 + /** 410 + * Circle 411 + */ 412 + export type ModelCircle = { 413 + kind: string; 414 + radius?: number; 415 + }; 416 + 417 + /** 418 + * Square 419 + */ 420 + export type ModelSquare = { 421 + kind: string; 422 + sideLength?: number; 423 + }; 424 + 425 + /** 426 + * This is a model with one property with a 'one of' relationship where the options are not $ref 427 + */ 428 + export type CompositionWithOneOfDiscriminator = ({ 429 + kind?: 'circle'; 430 + } & ModelCircle) | ({ 431 + kind?: 'square'; 432 + } & ModelSquare); 433 + 434 + /** 435 + * This is a model with one property with a 'any of' relationship 436 + */ 437 + export type CompositionWithAnyOf = { 438 + propA?: ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary; 439 + }; 440 + 441 + /** 442 + * This is a model with one property with a 'any of' relationship where the options are not $ref 443 + */ 444 + export type CompositionWithAnyOfAnonymous = { 445 + propA?: { 446 + propA?: string; 447 + } | string | number; 448 + }; 449 + 450 + /** 451 + * This is a model with nested 'any of' property with a type null 452 + */ 453 + export type CompositionWithNestedAnyAndTypeNull = { 454 + propA?: Array<ModelWithDictionary | null> | Array<ModelWithArray | null>; 455 + }; 456 + 457 + export type _3e_num_1Период = 'Bird' | 'Dog'; 458 + 459 + export type ConstValue = 'ConstValue'; 460 + 461 + /** 462 + * This is a model with one property with a 'any of' relationship where the options are not $ref 463 + */ 464 + export type CompositionWithNestedAnyOfAndNull = { 465 + propA?: Array<_3e_num_1Период | ConstValue> | null; 466 + }; 467 + 468 + /** 469 + * This is a model with one property with a 'one of' relationship 470 + */ 471 + export type CompositionWithOneOfAndNullable = { 472 + propA?: { 473 + boolean?: boolean; 474 + } | ModelWithEnum | ModelWithArray | ModelWithDictionary | null; 475 + }; 476 + 477 + /** 478 + * This is a model that contains a simple dictionary within composition 479 + */ 480 + export type CompositionWithOneOfAndSimpleDictionary = { 481 + propA?: boolean | { 482 + [key: string]: number; 483 + }; 484 + }; 485 + 486 + /** 487 + * This is a model that contains a dictionary of simple arrays within composition 488 + */ 489 + export type CompositionWithOneOfAndSimpleArrayDictionary = { 490 + propA?: boolean | { 491 + [key: string]: Array<boolean>; 492 + }; 493 + }; 494 + 495 + /** 496 + * This is a model that contains a dictionary of complex arrays (composited) within composition 497 + */ 498 + export type CompositionWithOneOfAndComplexArrayDictionary = { 499 + propA?: boolean | { 500 + [key: string]: Array<number | string>; 501 + }; 502 + }; 503 + 504 + /** 505 + * This is a model with one property with a 'all of' relationship 506 + */ 507 + export type CompositionWithAllOfAndNullable = { 508 + propA?: ({ 509 + boolean?: boolean; 510 + } & ModelWithEnum & ModelWithArray & ModelWithDictionary) | null; 511 + }; 512 + 513 + /** 514 + * This is a model with one property with a 'any of' relationship 515 + */ 516 + export type CompositionWithAnyOfAndNullable = { 517 + propA?: { 518 + boolean?: boolean; 519 + } | ModelWithEnum | ModelWithArray | ModelWithDictionary | null; 520 + }; 521 + 522 + /** 523 + * This is a base model with two simple optional properties 524 + */ 525 + export type CompositionBaseModel = { 526 + firstName?: string; 527 + lastname?: string; 528 + }; 529 + 530 + /** 531 + * This is a model that extends the base model 532 + */ 533 + export type CompositionExtendedModel = CompositionBaseModel & { 534 + age: number; 535 + firstName: string; 536 + lastname: string; 537 + }; 538 + 539 + /** 540 + * This is a model with one nested property 541 + */ 542 + export type ModelWithProperties = { 543 + required: string; 544 + readonly requiredAndReadOnly: string; 545 + requiredAndNullable: string | null; 546 + string?: string; 547 + number?: number; 548 + boolean?: boolean; 549 + reference?: ModelWithString; 550 + 'property with space'?: string; 551 + default?: string; 552 + try?: string; 553 + readonly '@namespace.string'?: string; 554 + readonly '@namespace.integer'?: number; 555 + }; 556 + 557 + /** 558 + * This is a model with one nested property 559 + */ 560 + export type ModelWithNestedProperties = { 561 + readonly first: { 562 + readonly second: { 563 + readonly third: string | null; 564 + } | null; 565 + } | null; 566 + }; 567 + 568 + /** 569 + * This is a model with duplicated properties 570 + */ 571 + export type ModelWithDuplicateProperties = { 572 + prop?: ModelWithString; 573 + }; 574 + 575 + /** 576 + * This is a model with ordered properties 577 + */ 578 + export type ModelWithOrderedProperties = { 579 + zebra?: string; 580 + apple?: string; 581 + hawaii?: string; 582 + }; 583 + 584 + /** 585 + * This is a model with duplicated imports 586 + */ 587 + export type ModelWithDuplicateImports = { 588 + propA?: ModelWithString; 589 + propB?: ModelWithString; 590 + propC?: ModelWithString; 591 + }; 592 + 593 + /** 594 + * This is a model that extends another model 595 + */ 596 + export type ModelThatExtends = ModelWithString & { 597 + propExtendsA?: string; 598 + propExtendsB?: ModelWithString; 599 + }; 600 + 601 + /** 602 + * This is a model that extends another model 603 + */ 604 + export type ModelThatExtendsExtends = ModelWithString & ModelThatExtends & { 605 + propExtendsC?: string; 606 + propExtendsD?: ModelWithString; 607 + }; 608 + 609 + /** 610 + * This is a model that contains a some patterns 611 + */ 612 + export type ModelWithPattern = { 613 + key: string; 614 + name: string; 615 + readonly enabled?: boolean; 616 + readonly modified?: string; 617 + id?: string; 618 + text?: string; 619 + patternWithSingleQuotes?: string; 620 + patternWithNewline?: string; 621 + patternWithBacktick?: string; 622 + }; 623 + 624 + export type File = { 625 + readonly id?: string; 626 + readonly updated_at?: string; 627 + readonly created_at?: string; 628 + mime: string; 629 + readonly file?: string; 630 + }; 631 + 632 + export type _default = { 633 + name?: string; 634 + }; 635 + 636 + export type Pageable = { 637 + page?: number; 638 + size?: number; 639 + sort?: Array<string>; 640 + }; 641 + 642 + /** 643 + * This is a free-form object without additionalProperties. 644 + */ 645 + export type FreeFormObjectWithoutAdditionalProperties = {}; 646 + 647 + /** 648 + * This is a free-form object with additionalProperties: true. 649 + */ 650 + export type FreeFormObjectWithAdditionalPropertiesEqTrue = { 651 + [key: string]: unknown; 652 + }; 653 + 654 + /** 655 + * This is a free-form object with additionalProperties: {}. 656 + */ 657 + export type FreeFormObjectWithAdditionalPropertiesEqEmptyObject = {}; 658 + 659 + export type ModelWithConst = { 660 + String?: 'String'; 661 + number?: 0; 662 + null?: null; 663 + withType?: 'Some string'; 664 + }; 665 + 666 + /** 667 + * This is a model with one property and additionalProperties: true 668 + */ 669 + export type ModelWithAdditionalPropertiesEqTrue = { 670 + /** 671 + * This is a simple string property 672 + */ 673 + prop?: string; 674 + [key: string]: unknown | string | undefined; 675 + }; 676 + 677 + export type NestedAnyOfArraysNullable = { 678 + nullableArray?: Array<string | boolean> | null; 679 + }; 680 + 681 + export type CompositionWithOneOfAndProperties = ({ 682 + foo: SimpleParameter; 683 + } | { 684 + bar: NonAsciiStringæøåÆØÅöôêÊ字符串; 685 + }) & { 686 + baz: number | null; 687 + qux: number; 688 + }; 689 + 690 + /** 691 + * An object that can be null 692 + */ 693 + export type NullableObject = { 694 + foo?: string; 695 + } | null; 696 + 697 + /** 698 + * Some % character 699 + */ 700 + export type CharactersInDescription = string; 701 + 702 + export type ModelWithNullableObject = { 703 + data?: NullableObject; 704 + }; 705 + 706 + export type ModelWithOneOfEnum = { 707 + foo: 'Bar'; 708 + } | { 709 + foo: 'Baz'; 710 + } | { 711 + foo: 'Qux'; 712 + } | { 713 + content: string; 714 + foo: 'Quux'; 715 + } | { 716 + content: [ 717 + string, 718 + string 719 + ]; 720 + foo: 'Corge'; 721 + }; 722 + 723 + export type ModelWithNestedArrayEnumsDataFoo = 'foo' | 'bar'; 724 + 725 + export type ModelWithNestedArrayEnumsDataBar = 'baz' | 'qux'; 726 + 727 + export type ModelWithNestedArrayEnumsData = { 728 + foo?: Array<ModelWithNestedArrayEnumsDataFoo>; 729 + bar?: Array<ModelWithNestedArrayEnumsDataBar>; 730 + }; 731 + 732 + export type ModelWithNestedArrayEnums = { 733 + array_strings?: Array<string>; 734 + data?: ModelWithNestedArrayEnumsData; 735 + }; 736 + 737 + export type ModelWithNestedCompositionEnums = { 738 + foo?: ModelWithNestedArrayEnumsDataFoo; 739 + }; 740 + 741 + export type ModelWithReadOnlyAndWriteOnly = { 742 + foo: string; 743 + readonly bar: string; 744 + baz: string; 745 + }; 746 + 747 + export type ModelWithConstantSizeArray = [ 748 + number, 749 + number 750 + ]; 751 + 752 + export type ModelWithAnyOfConstantSizeArray = [ 753 + number | string, 754 + number | string, 755 + number | string 756 + ]; 757 + 758 + export type ModelWithPrefixItemsConstantSizeArray = [ 759 + ModelWithInteger, 760 + number | string, 761 + string 762 + ]; 763 + 764 + export type ModelWithAnyOfConstantSizeArrayNullable = [ 765 + number | null | string, 766 + number | null | string, 767 + number | null | string 768 + ]; 769 + 770 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptions = [ 771 + number | _import, 772 + number | _import 773 + ]; 774 + 775 + export type ModelWithAnyOfConstantSizeArrayAndIntersect = [ 776 + number & string, 777 + number & string 778 + ]; 779 + 780 + export type ModelWithNumericEnumUnion = { 781 + /** 782 + * Период 783 + */ 784 + value?: -10 | -1 | 0 | 1 | 3 | 6 | 12; 785 + }; 786 + 787 + /** 788 + * Some description with `back ticks` 789 + */ 790 + export type ModelWithBackticksInDescription = { 791 + /** 792 + * The template `that` should be used for parsing and importing the contents of the CSV file. 793 + * 794 + * <br/><p>There is one placeholder currently supported:<ul> <li><b>${x}</b> - refers to the n-th column in the CSV file, e.g. ${1}, ${2}, ...)</li></ul><p>Example of a correct JSON template:</p> 795 + * <pre> 796 + * [ 797 + * { 798 + * "resourceType": "Asset", 799 + * "identifier": { 800 + * "name": "${1}", 801 + * "domain": { 802 + * "name": "${2}", 803 + * "community": { 804 + * "name": "Some Community" 805 + * } 806 + * } 807 + * }, 808 + * "attributes" : { 809 + * "00000000-0000-0000-0000-000000003115" : [ { 810 + * "value" : "${3}" 811 + * } ], 812 + * "00000000-0000-0000-0000-000000000222" : [ { 813 + * "value" : "${4}" 814 + * } ] 815 + * } 816 + * } 817 + * ] 818 + * </pre> 819 + */ 820 + template?: string; 821 + }; 822 + 823 + export type ModelWithOneOfAndProperties = (SimpleParameter | NonAsciiStringæøåÆØÅöôêÊ字符串) & { 824 + baz: number | null; 825 + qux: number; 826 + }; 827 + 828 + /** 829 + * Model used to test deduplication strategy (unused) 830 + */ 831 + export type ParameterSimpleParameterUnused = string; 832 + 833 + /** 834 + * Model used to test deduplication strategy 835 + */ 836 + export type PostServiceWithEmptyTagResponse = string; 837 + 838 + /** 839 + * Model used to test deduplication strategy 840 + */ 841 + export type PostServiceWithEmptyTagResponse2 = string; 842 + 843 + /** 844 + * Model used to test deduplication strategy 845 + */ 846 + export type DeleteFooData = string; 847 + 848 + /** 849 + * Model used to test deduplication strategy 850 + */ 851 + export type DeleteFooData2 = string; 852 + 853 + /** 854 + * Model with restricted keyword name 855 + */ 856 + export type _import = string; 857 + 858 + export type SchemaWithFormRestrictedKeys = { 859 + description?: string; 860 + 'x-enum-descriptions'?: string; 861 + 'x-enum-varnames'?: string; 862 + 'x-enumNames'?: string; 863 + title?: string; 864 + object?: { 865 + description?: string; 866 + 'x-enum-descriptions'?: string; 867 + 'x-enum-varnames'?: string; 868 + 'x-enumNames'?: string; 869 + title?: string; 870 + }; 871 + array?: Array<{ 872 + description?: string; 873 + 'x-enum-descriptions'?: string; 874 + 'x-enum-varnames'?: string; 875 + 'x-enumNames'?: string; 876 + title?: string; 877 + }>; 878 + }; 879 + 880 + /** 881 + * This schema was giving PascalCase transformations a hard time 882 + */ 883 + export type io_k8s_apimachinery_pkg_apis_meta_v1_DeleteOptions = { 884 + /** 885 + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. 886 + */ 887 + preconditions?: io_k8s_apimachinery_pkg_apis_meta_v1_Preconditions; 888 + }; 889 + 890 + /** 891 + * This schema was giving PascalCase transformations a hard time 892 + */ 893 + export type io_k8s_apimachinery_pkg_apis_meta_v1_Preconditions = { 894 + /** 895 + * Specifies the target ResourceVersion 896 + */ 897 + resourceVersion?: string; 898 + /** 899 + * Specifies the target UID. 900 + */ 901 + uid?: string; 902 + }; 903 + 904 + export type AdditionalPropertiesUnknownIssue = { 905 + [key: string]: string | number; 906 + }; 907 + 908 + export type AdditionalPropertiesUnknownIssue2 = { 909 + [key: string]: string | number; 910 + }; 911 + 912 + export type AdditionalPropertiesUnknownIssue3 = string & { 913 + entries: { 914 + [key: string]: AdditionalPropertiesUnknownIssue; 915 + }; 916 + }; 917 + 918 + export type AdditionalPropertiesIntegerIssue = { 919 + value: number; 920 + [key: string]: number; 921 + }; 922 + 923 + export type OneOfAllOfIssue = ((ConstValue | Generic_Schema_Duplicate_Issue_1_System_Boolean_) & _3e_num_1Период) | Generic_Schema_Duplicate_Issue_1_System_String_; 924 + 925 + export type Generic_Schema_Duplicate_Issue_1_System_Boolean_ = { 926 + item?: boolean; 927 + error?: string | null; 928 + readonly hasError?: boolean; 929 + data?: { 930 + [key: string]: never; 931 + }; 932 + }; 933 + 934 + export type Generic_Schema_Duplicate_Issue_1_System_String_ = { 935 + item?: string | null; 936 + error?: string | null; 937 + readonly hasError?: boolean; 938 + }; 939 + 940 + /** 941 + * This is a reusable parameter 942 + */ 943 + export type SimpleParameter = string; 944 + 945 + /** 946 + * Parameter with illegal characters 947 + */ 948 + export type x_Foo_Bar = ModelWithString; 949 + 950 + export type ImportData = { 951 + body: ModelWithReadOnlyAndWriteOnly | ModelWithArrayReadOnlyAndWriteOnly; 952 + }; 953 + 954 + export type ImportResponse = Model_From_Zendesk | ModelWithReadOnlyAndWriteOnly; 955 + 956 + export type ApiVversionOdataControllerCountResponse = Model_From_Zendesk; 957 + 958 + export type GetApiVbyApiVersionSimpleOperationData = { 959 + body?: never; 960 + path: { 961 + /** 962 + * foo in method 963 + */ 964 + foo_param: string; 965 + }; 966 + query?: never; 967 + }; 968 + 969 + export type GetApiVbyApiVersionSimpleOperationError = ModelWithBoolean; 970 + 971 + export type GetApiVbyApiVersionSimpleOperationResponse = number; 972 + 973 + export type DeleteFooData3 = { 974 + body?: never; 975 + headers: { 976 + /** 977 + * Parameter with illegal characters 978 + */ 979 + 'x-Foo-Bar': ModelWithString; 980 + }; 981 + path: { 982 + /** 983 + * foo in method 984 + */ 985 + foo_param: string; 986 + /** 987 + * bar in method 988 + */ 989 + BarParam: string; 990 + }; 991 + query?: never; 992 + }; 993 + 994 + export type CallWithDescriptionsData = { 995 + body?: never; 996 + path?: never; 997 + query?: { 998 + /** 999 + * Testing multiline comments in string: First line 1000 + * Second line 1001 + * 1002 + * Fourth line 1003 + */ 1004 + parameterWithBreaks?: string; 1005 + /** 1006 + * Testing backticks in string: `backticks` and ```multiple backticks``` should work 1007 + */ 1008 + parameterWithBackticks?: string; 1009 + /** 1010 + * Testing slashes in string: \backwards\\\ and /forwards/// should work 1011 + */ 1012 + parameterWithSlashes?: string; 1013 + /** 1014 + * Testing expression placeholders in string: ${expression} should work 1015 + */ 1016 + parameterWithExpressionPlaceholders?: string; 1017 + /** 1018 + * Testing quotes in string: 'single quote''' and "double quotes""" should work 1019 + */ 1020 + parameterWithQuotes?: string; 1021 + /** 1022 + * Testing reserved characters in string: * inline * and ** inline ** should work 1023 + */ 1024 + parameterWithReservedCharacters?: string; 1025 + }; 1026 + }; 1027 + 1028 + export type DeprecatedCallData = { 1029 + body?: never; 1030 + headers: { 1031 + /** 1032 + * This parameter is deprecated 1033 + * @deprecated 1034 + */ 1035 + parameter: DeprecatedModel | null; 1036 + }; 1037 + path?: never; 1038 + query?: never; 1039 + }; 1040 + 1041 + export type CallWithParametersData = { 1042 + /** 1043 + * This is the parameter that goes into the body 1044 + */ 1045 + body: {} | null; 1046 + headers: { 1047 + /** 1048 + * This is the parameter that goes into the header 1049 + */ 1050 + parameterHeader: string | null; 1051 + }; 1052 + path: { 1053 + /** 1054 + * This is the parameter that goes into the path 1055 + */ 1056 + parameterPath: string | null; 1057 + /** 1058 + * api-version should be required in standalone clients 1059 + */ 1060 + 'api-version': string | null; 1061 + }; 1062 + query: { 1063 + foo_ref_enum?: ModelWithNestedArrayEnumsDataFoo; 1064 + foo_all_of_enum: ModelWithNestedArrayEnumsDataFoo; 1065 + /** 1066 + * This is the parameter that goes into the query params 1067 + */ 1068 + cursor: string | null; 1069 + }; 1070 + }; 1071 + 1072 + export type CallWithWeirdParameterNamesData = { 1073 + /** 1074 + * This is the parameter that goes into the body 1075 + */ 1076 + body: ModelWithString | null; 1077 + headers: { 1078 + /** 1079 + * This is the parameter that goes into the request header 1080 + */ 1081 + 'parameter.header': string | null; 1082 + }; 1083 + path: { 1084 + /** 1085 + * This is the parameter that goes into the path 1086 + */ 1087 + 'parameter.path.1'?: string; 1088 + /** 1089 + * This is the parameter that goes into the path 1090 + */ 1091 + 'parameter-path-2'?: string; 1092 + /** 1093 + * This is the parameter that goes into the path 1094 + */ 1095 + 'PARAMETER-PATH-3'?: string; 1096 + /** 1097 + * api-version should be required in standalone clients 1098 + */ 1099 + 'api-version': string | null; 1100 + }; 1101 + query: { 1102 + /** 1103 + * This is the parameter with a reserved keyword 1104 + */ 1105 + default?: string; 1106 + /** 1107 + * This is the parameter that goes into the request query params 1108 + */ 1109 + 'parameter-query': string | null; 1110 + }; 1111 + }; 1112 + 1113 + export type GetCallWithOptionalParamData = { 1114 + /** 1115 + * This is a required parameter 1116 + */ 1117 + body: ModelWithOneOfEnum; 1118 + path?: never; 1119 + query?: { 1120 + /** 1121 + * This is an optional parameter 1122 + */ 1123 + page?: number; 1124 + }; 1125 + }; 1126 + 1127 + export type PostCallWithOptionalParamData = { 1128 + /** 1129 + * This is an optional parameter 1130 + */ 1131 + body?: { 1132 + offset?: number | null; 1133 + }; 1134 + path?: never; 1135 + query: { 1136 + /** 1137 + * This is a required parameter 1138 + */ 1139 + parameter: Pageable; 1140 + }; 1141 + }; 1142 + 1143 + export type PostCallWithOptionalParamResponse = number | void; 1144 + 1145 + export type PostApiVbyApiVersionRequestBodyData = { 1146 + /** 1147 + * A reusable request body 1148 + */ 1149 + body?: ModelWithString; 1150 + path?: never; 1151 + query?: { 1152 + /** 1153 + * This is a reusable parameter 1154 + */ 1155 + parameter?: string; 1156 + }; 1157 + }; 1158 + 1159 + export type PostApiVbyApiVersionFormDataData = { 1160 + /** 1161 + * A reusable request body 1162 + */ 1163 + body?: ModelWithString; 1164 + path?: never; 1165 + query?: { 1166 + /** 1167 + * This is a reusable parameter 1168 + */ 1169 + parameter?: string; 1170 + }; 1171 + }; 1172 + 1173 + export type CallWithDefaultParametersData = { 1174 + body?: never; 1175 + path?: never; 1176 + query?: { 1177 + /** 1178 + * This is a simple string with default value 1179 + */ 1180 + parameterString?: string | null; 1181 + /** 1182 + * This is a simple number with default value 1183 + */ 1184 + parameterNumber?: number | null; 1185 + /** 1186 + * This is a simple boolean with default value 1187 + */ 1188 + parameterBoolean?: boolean | null; 1189 + /** 1190 + * This is a simple enum with default value 1191 + */ 1192 + parameterEnum?: 'Success' | 'Warning' | 'Error'; 1193 + /** 1194 + * This is a simple model with default value 1195 + */ 1196 + parameterModel?: ModelWithString | null; 1197 + }; 1198 + }; 1199 + 1200 + export type CallWithDefaultOptionalParametersData = { 1201 + body?: never; 1202 + path?: never; 1203 + query?: { 1204 + /** 1205 + * This is a simple string that is optional with default value 1206 + */ 1207 + parameterString?: string; 1208 + /** 1209 + * This is a simple number that is optional with default value 1210 + */ 1211 + parameterNumber?: number; 1212 + /** 1213 + * This is a simple boolean that is optional with default value 1214 + */ 1215 + parameterBoolean?: boolean; 1216 + /** 1217 + * This is a simple enum that is optional with default value 1218 + */ 1219 + parameterEnum?: 'Success' | 'Warning' | 'Error'; 1220 + /** 1221 + * This is a simple model that is optional with default value 1222 + */ 1223 + parameterModel?: ModelWithString; 1224 + }; 1225 + }; 1226 + 1227 + export type CallToTestOrderOfParamsData = { 1228 + body?: never; 1229 + path?: never; 1230 + query: { 1231 + /** 1232 + * This is a optional string with default 1233 + */ 1234 + parameterOptionalStringWithDefault?: string; 1235 + /** 1236 + * This is a optional string with empty default 1237 + */ 1238 + parameterOptionalStringWithEmptyDefault?: string; 1239 + /** 1240 + * This is a optional string with no default 1241 + */ 1242 + parameterOptionalStringWithNoDefault?: string; 1243 + /** 1244 + * This is a string with default 1245 + */ 1246 + parameterStringWithDefault: string; 1247 + /** 1248 + * This is a string with empty default 1249 + */ 1250 + parameterStringWithEmptyDefault: string; 1251 + /** 1252 + * This is a string with no default 1253 + */ 1254 + parameterStringWithNoDefault: string; 1255 + /** 1256 + * This is a string that can be null with no default 1257 + */ 1258 + parameterStringNullableWithNoDefault?: string | null; 1259 + /** 1260 + * This is a string that can be null with default 1261 + */ 1262 + parameterStringNullableWithDefault?: string | null; 1263 + }; 1264 + }; 1265 + 1266 + export type CallWithNoContentResponseResponse = void; 1267 + 1268 + export type CallWithResponseAndNoContentResponseResponse = number | void; 1269 + 1270 + export type DummyAResponse = _400; 1271 + 1272 + export type DummyBResponse = void; 1273 + 1274 + export type CallWithResponseResponse = _import; 1275 + 1276 + export type CallWithDuplicateResponsesError = ModelWithStringError | DictionaryWithArray | ModelWithBoolean; 1277 + 1278 + export type CallWithDuplicateResponsesResponse = (ModelWithBoolean & ModelWithInteger) | ModelWithString; 1279 + 1280 + export type CallWithResponsesError = ModelWithStringError; 1281 + 1282 + export type CallWithResponsesResponse = { 1283 + readonly '@namespace.string'?: string; 1284 + readonly '@namespace.integer'?: number; 1285 + readonly value?: Array<ModelWithString>; 1286 + } | ModelThatExtends | ModelThatExtendsExtends; 1287 + 1288 + export type CollectionFormatData = { 1289 + body?: never; 1290 + path?: never; 1291 + query: { 1292 + /** 1293 + * This is an array parameter that is sent as csv format (comma-separated values) 1294 + */ 1295 + parameterArrayCSV: Array<string> | null; 1296 + /** 1297 + * This is an array parameter that is sent as ssv format (space-separated values) 1298 + */ 1299 + parameterArraySSV: Array<string> | null; 1300 + /** 1301 + * This is an array parameter that is sent as tsv format (tab-separated values) 1302 + */ 1303 + parameterArrayTSV: Array<string> | null; 1304 + /** 1305 + * This is an array parameter that is sent as pipes format (pipe-separated values) 1306 + */ 1307 + parameterArrayPipes: Array<string> | null; 1308 + /** 1309 + * This is an array parameter that is sent as multi format (multiple parameter instances) 1310 + */ 1311 + parameterArrayMulti: Array<string> | null; 1312 + }; 1313 + }; 1314 + 1315 + export type TypesData = { 1316 + body?: never; 1317 + path?: { 1318 + /** 1319 + * This is a number parameter 1320 + */ 1321 + id?: number; 1322 + }; 1323 + query: { 1324 + /** 1325 + * This is a number parameter 1326 + */ 1327 + parameterNumber: number; 1328 + /** 1329 + * This is a string parameter 1330 + */ 1331 + parameterString: string | null; 1332 + /** 1333 + * This is a boolean parameter 1334 + */ 1335 + parameterBoolean: boolean | null; 1336 + /** 1337 + * This is an object parameter 1338 + */ 1339 + parameterObject: {} | null; 1340 + /** 1341 + * This is an array parameter 1342 + */ 1343 + parameterArray: Array<string> | null; 1344 + /** 1345 + * This is a dictionary parameter 1346 + */ 1347 + parameterDictionary: {} | null; 1348 + /** 1349 + * This is an enum parameter 1350 + */ 1351 + parameterEnum: 'Success' | 'Warning' | 'Error' | null; 1352 + }; 1353 + }; 1354 + 1355 + export type TypesResponse = number | string | boolean | {}; 1356 + 1357 + export type UploadFileData = { 1358 + body: Blob | File; 1359 + path: { 1360 + /** 1361 + * api-version should be required in standalone clients 1362 + */ 1363 + 'api-version': string | null; 1364 + }; 1365 + query?: never; 1366 + }; 1367 + 1368 + export type UploadFileResponse = boolean; 1369 + 1370 + export type FileResponseData = { 1371 + body?: never; 1372 + path: { 1373 + id: string; 1374 + /** 1375 + * api-version should be required in standalone clients 1376 + */ 1377 + 'api-version': string; 1378 + }; 1379 + query?: never; 1380 + }; 1381 + 1382 + export type FileResponseResponse = Blob | File; 1383 + 1384 + export type ComplexTypesData = { 1385 + body?: never; 1386 + path?: never; 1387 + query: { 1388 + /** 1389 + * Parameter containing object 1390 + */ 1391 + parameterObject: { 1392 + first?: { 1393 + second?: { 1394 + third?: string; 1395 + }; 1396 + }; 1397 + }; 1398 + /** 1399 + * Parameter containing reference 1400 + */ 1401 + parameterReference: ModelWithString; 1402 + }; 1403 + }; 1404 + 1405 + export type ComplexTypesResponse = Array<ModelWithString>; 1406 + 1407 + export type MultipartResponseResponse = { 1408 + file?: Blob | File; 1409 + metadata?: { 1410 + foo?: string; 1411 + bar?: string; 1412 + }; 1413 + }; 1414 + 1415 + export type MultipartRequestData = { 1416 + body?: { 1417 + content?: Blob | File; 1418 + data?: ModelWithString | null; 1419 + }; 1420 + }; 1421 + 1422 + export type ComplexParamsData = { 1423 + body?: { 1424 + readonly key: string | null; 1425 + name: string | null; 1426 + enabled?: boolean; 1427 + type: 'Monkey' | 'Horse' | 'Bird'; 1428 + listOfModels?: Array<ModelWithString> | null; 1429 + listOfStrings?: Array<string> | null; 1430 + parameters: ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary; 1431 + readonly user?: { 1432 + readonly id?: number; 1433 + readonly name?: string | null; 1434 + }; 1435 + }; 1436 + path: { 1437 + id: number; 1438 + /** 1439 + * api-version should be required in standalone clients 1440 + */ 1441 + 'api-version': string; 1442 + }; 1443 + query?: never; 1444 + }; 1445 + 1446 + export type ComplexParamsResponse = ModelWithString; 1447 + 1448 + export type TestErrorCodeData = { 1449 + body?: never; 1450 + path?: never; 1451 + query: { 1452 + /** 1453 + * Status code to return 1454 + */ 1455 + status: number; 1456 + }; 1457 + }; 1458 + 1459 + export type NonAsciiæøåÆøÅöôêÊ字符串Data = { 1460 + body?: never; 1461 + path?: never; 1462 + query: { 1463 + /** 1464 + * Dummy input param 1465 + */ 1466 + nonAsciiParamæøåÆØÅöôêÊ: number; 1467 + }; 1468 + }; 1469 + 1470 + export type NonAsciiæøåÆøÅöôêÊ字符串Response = Array<NonAsciiStringæøåÆØÅöôêÊ字符串>; 1471 + 1472 + export type PutWithFormUrlEncodedData = { 1473 + body: ArrayWithStrings; 1474 + };
+7
packages/openapi-ts/test/plugins.spec.ts
··· 202 202 }), 203 203 description: 'generate services', 204 204 }, 205 + { 206 + config: createConfig({ 207 + output: '.', 208 + plugins: ['fastify'], 209 + }), 210 + description: 'generate Fastify types with Fastify plugin', 211 + }, 205 212 ]; 206 213 207 214 it.each(scenarios)('$description', async ({ config }) => {
+537 -34
pnpm-lock.yaml
··· 149 149 specifier: 5.4.6 150 150 version: 5.4.6(@types/node@22.8.5)(less@4.2.0)(sass@1.77.6)(terser@5.31.6) 151 151 152 + examples/openapi-ts-fastify: 153 + dependencies: 154 + '@hey-api/openapi-ts': 155 + specifier: workspace:* 156 + version: link:../../packages/openapi-ts 157 + fastify: 158 + specifier: 5.0.0 159 + version: 5.0.0 160 + fastify-openapi-glue: 161 + specifier: 4.7.1 162 + version: 4.7.1 163 + devDependencies: 164 + '@hey-api/client-fetch': 165 + specifier: workspace:* 166 + version: link:../../packages/client-fetch 167 + vitest: 168 + specifier: 2.1.5 169 + version: 2.1.5(@types/node@22.8.5)(jsdom@24.1.0)(less@4.2.0)(sass@1.77.6)(terser@5.31.6) 170 + 152 171 examples/openapi-ts-fetch: 153 172 dependencies: 154 173 '@hey-api/client-fetch': ··· 632 651 express: 633 652 specifier: 4.21.0 634 653 version: 4.21.0 654 + fastify: 655 + specifier: 5.0.0 656 + version: 5.0.0 635 657 glob: 636 658 specifier: 10.4.3 637 659 version: 10.4.3 ··· 2225 2247 resolution: {integrity: sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ==} 2226 2248 engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} 2227 2249 2250 + '@fastify/ajv-compiler@4.0.1': 2251 + resolution: {integrity: sha512-DxrBdgsjNLP0YM6W5Hd6/Fmj43S8zMKiFJYgi+Ri3htTGAowPVG/tG1wpnWLMjufEnehRivUCKZ1pLDIoZdTuw==} 2252 + 2253 + '@fastify/error@4.0.0': 2254 + resolution: {integrity: sha512-OO/SA8As24JtT1usTUTKgGH7uLvhfwZPwlptRi2Dp5P4KKmJI3gvsZ8MIHnNwDs4sLf/aai5LzTyl66xr7qMxA==} 2255 + 2256 + '@fastify/fast-json-stringify-compiler@5.0.1': 2257 + resolution: {integrity: sha512-f2d3JExJgFE3UbdFcpPwqNUEoHWmt8pAKf8f+9YuLESdefA0WgqxeT6DrGL4Yrf/9ihXNSKOqpjEmurV405meA==} 2258 + 2259 + '@fastify/merge-json-schemas@0.1.1': 2260 + resolution: {integrity: sha512-fERDVz7topgNjtXsJTTW1JKLy0rhuLRcquYqNR9rF7OcVpCa2OVW49ZPDIhaRRCaUuvVxI+N416xUoF76HNSXA==} 2261 + 2228 2262 '@floating-ui/core@1.6.2': 2229 2263 resolution: {integrity: sha512-+2XpQV9LLZeanU4ZevzRnGFg2neDeKHgFLjP6YLW+tly0IvrhqT4u8enLGjLH3qeh85g19xY5rsAusfwTdn5lg==} 2230 2264 ··· 3347 3381 resolution: {integrity: sha512-jT54mc9+hPOwie9bji/g2krVuK1kkNh2PNFGwfgCg3Ofmt3hcyOBai1DKuot5uLTX4VCCbvfwiVR/hJniQl2SA==} 3348 3382 engines: {node: ^18.19.1 || ^20.11.1 || >=22.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} 3349 3383 3384 + '@seriousme/openapi-schema-validator@2.2.5': 3385 + resolution: {integrity: sha512-WQJjr03X6PLw8TOC4vTHqPl9ihtpY17jaVBJ6Yt/lHrGabUYP+BTq4yM9AbfDLP5C7v6+sfF2OJsET/W7QvKQw==} 3386 + hasBin: true 3387 + 3350 3388 '@shikijs/core@1.10.3': 3351 3389 resolution: {integrity: sha512-D45PMaBaeDHxww+EkcDQtDAtzv00Gcsp72ukBtaLSmqRvh0WgGMq3Al0rl1QQBZfuneO75NXMIzEZGFitThWbg==} 3352 3390 ··· 3842 3880 '@vitest/expect@2.0.0': 3843 3881 resolution: {integrity: sha512-5BSfZ0+dAVmC6uPF7s+TcKx0i7oyYHb1WQQL5gg6G2c+Qkaa5BNrdRM74sxDfUIZUgYCr6bfCqmJp+X5bfcNxQ==} 3844 3882 3883 + '@vitest/expect@2.1.5': 3884 + resolution: {integrity: sha512-nZSBTW1XIdpZvEJyoP/Sy8fUg0b8od7ZpGDkTUcfJ7wz/VoZAFzFfLyxVxGFhUjJzhYqSbIpfMtl/+k/dpWa3Q==} 3885 + 3886 + '@vitest/mocker@2.1.5': 3887 + resolution: {integrity: sha512-XYW6l3UuBmitWqSUXTNXcVBUCRytDogBsWuNXQijc00dtnU/9OqpXWp4OJroVrad/gLIomAq9aW8yWDBtMthhQ==} 3888 + peerDependencies: 3889 + msw: ^2.4.9 3890 + vite: ^5.0.0 3891 + peerDependenciesMeta: 3892 + msw: 3893 + optional: true 3894 + vite: 3895 + optional: true 3896 + 3897 + '@vitest/pretty-format@2.1.5': 3898 + resolution: {integrity: sha512-4ZOwtk2bqG5Y6xRGHcveZVr+6txkH7M2e+nPFd6guSoN638v/1XQ0K06eOpi0ptVU/2tW/pIU4IoPotY/GZ9fw==} 3899 + 3845 3900 '@vitest/runner@1.6.0': 3846 3901 resolution: {integrity: sha512-P4xgwPjwesuBiHisAVz/LSSZtDjOTPYZVmNAnpHHSR6ONrf8eCJOFRvUwdHn30F5M1fxhqtl7QZQUk2dprIXAg==} 3847 3902 3848 3903 '@vitest/runner@2.0.0': 3849 3904 resolution: {integrity: sha512-OovFmlkfRmdhevbWImBUtn9IEM+CKac8O+m9p6W9jTATGVBnDJQ6/jb1gpHyWxsu0ALi5f+TLi+Uyst7AAimMw==} 3850 3905 3906 + '@vitest/runner@2.1.5': 3907 + resolution: {integrity: sha512-pKHKy3uaUdh7X6p1pxOkgkVAFW7r2I818vHDthYLvUyjRfkKOU6P45PztOch4DZarWQne+VOaIMwA/erSSpB9g==} 3908 + 3851 3909 '@vitest/snapshot@1.6.0': 3852 3910 resolution: {integrity: sha512-+Hx43f8Chus+DCmygqqfetcAZrDJwvTj0ymqjQq4CvmpKFSTVteEOBzCusu1x2tt4OJcvBflyHUE0DZSLgEMtQ==} 3853 3911 3854 3912 '@vitest/snapshot@2.0.0': 3855 3913 resolution: {integrity: sha512-B520cSAQwtWgocPpARadnNLslHCxFs5tf7SG2TT96qz+SZgsXqcB1xI3w3/S9kUzdqykEKrMLvW+sIIpMcuUdw==} 3856 3914 3915 + '@vitest/snapshot@2.1.5': 3916 + resolution: {integrity: sha512-zmYw47mhfdfnYbuhkQvkkzYroXUumrwWDGlMjpdUr4jBd3HZiV2w7CQHj+z7AAS4VOtWxI4Zt4bWt4/sKcoIjg==} 3917 + 3857 3918 '@vitest/spy@1.6.0': 3858 3919 resolution: {integrity: sha512-leUTap6B/cqi/bQkXUu6bQV5TZPx7pmMBKBQiI0rJA8c3pB56ZsaTbREnF7CJfmvAS4V2cXIBAh/3rVwrrCYgw==} 3859 3920 3860 3921 '@vitest/spy@2.0.0': 3861 3922 resolution: {integrity: sha512-0g7ho4wBK09wq8iNZFtUcQZcUcbPmbLWFotL0GXel0fvk5yPi4nTEKpIvZ+wA5eRyqPUCIfIUl10AWzLr67cmA==} 3923 + 3924 + '@vitest/spy@2.1.5': 3925 + resolution: {integrity: sha512-aWZF3P0r3w6DiYTVskOYuhBc7EMc3jvn1TkBg8ttylFFRqNN2XGD7V5a4aQdk6QiUzZQ4klNBSpCLJgWNdIiNw==} 3862 3926 3863 3927 '@vitest/utils@1.6.0': 3864 3928 resolution: {integrity: sha512-21cPiuGMoMZwiOHa2i4LXkMkMkCGzA+MVFV70jRwHo95dL4x/ts5GZhML1QWuy7yfp3WzK3lRvZi3JnXTYqrBw==} 3865 3929 3866 3930 '@vitest/utils@2.0.0': 3867 3931 resolution: {integrity: sha512-t0jbx8VugWEP6A29NbyfQKVU68Vo6oUw0iX3a8BwO3nrZuivfHcFO4Y5UsqXlplX+83P9UaqEvC2YQhspC0JSA==} 3932 + 3933 + '@vitest/utils@2.1.5': 3934 + resolution: {integrity: sha512-yfj6Yrp0Vesw2cwJbP+cl04OC+IHFsuQsrsJBL9pyGeQXE56v1UAOQco+SR55Vf1nQzfV0QJg1Qum7AaWUwwYg==} 3868 3935 3869 3936 '@volar/language-core@2.4.0-alpha.18': 3870 3937 resolution: {integrity: sha512-JAYeJvYQQROmVRtSBIczaPjP3DX4QW1fOqW1Ebs0d3Y3EwSNRglz03dSv0Dm61dzd0Yx3WgTW3hndDnTQqgmyg==} ··· 4114 4181 resolution: {integrity: sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==} 4115 4182 engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} 4116 4183 4184 + abstract-logging@2.0.1: 4185 + resolution: {integrity: sha512-2BjRTZxTPvheOvGbBslFSYOUkr+SjPtOnrLP33f+VIWLzezQpZcqVg7ja3L4dBXmzzgwT+a029jRx5PCi3JuiA==} 4186 + 4117 4187 accepts@1.3.8: 4118 4188 resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==} 4119 4189 engines: {node: '>= 0.6'} ··· 4300 4370 asynckit@0.4.0: 4301 4371 resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} 4302 4372 4373 + atomic-sleep@1.0.0: 4374 + resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==} 4375 + engines: {node: '>=8.0.0'} 4376 + 4303 4377 autoprefixer@10.4.19: 4304 4378 resolution: {integrity: sha512-BaENR2+zBZ8xXhM4pUaKUxlVdxZ0EZhjvbopwnXmxRUfqDmwSpC2lAi/QXvx7NRdPCo1WKEcEF6mV64si1z4Ew==} 4305 4379 engines: {node: ^10 || ^12 || >=14} ··· 4313 4387 hasBin: true 4314 4388 peerDependencies: 4315 4389 postcss: ^8.1.0 4390 + 4391 + avvio@9.1.0: 4392 + resolution: {integrity: sha512-fYASnYi600CsH/j9EQov7lECAniYiBFiiAtBNuZYLA2leLe9qOvZzqYHFjtIj6gD2VMoMLP14834LFWvr4IfDw==} 4316 4393 4317 4394 axios@1.7.7: 4318 4395 resolution: {integrity: sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==} ··· 4508 4585 4509 4586 chai@5.1.1: 4510 4587 resolution: {integrity: sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==} 4588 + engines: {node: '>=12'} 4589 + 4590 + chai@5.1.2: 4591 + resolution: {integrity: sha512-aGtmf24DW6MLHHG5gCx4zaI3uBq3KRtxeVs0DjFH6Z0rDNbsvTxFASFvdj79pxjxZ8/5u3PIiN3IwEIQkiiuPw==} 4511 4592 engines: {node: '>=12'} 4512 4593 4513 4594 chalk@2.4.2: ··· 4720 4801 resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==} 4721 4802 engines: {node: '>= 0.6'} 4722 4803 4804 + cookie@1.0.1: 4805 + resolution: {integrity: sha512-Xd8lFX4LM9QEEwxQpF9J9NTUh8pmdJO0cyRJhFiDoLTk2eH8FXlRv2IFGYVadZpqI3j8fhNrSdKCeYPxiAhLXw==} 4806 + engines: {node: '>=18'} 4807 + 4723 4808 copy-anything@2.0.6: 4724 4809 resolution: {integrity: sha512-1j20GZTsvKNkc4BY3NpMOM8tt///wY3FpIzozTOFO2ffuZcV61nojHXVKIy3WM+7ADCy5FVhdZYHYDdgTU0yJw==} 4725 4810 ··· 5107 5192 es-module-lexer@1.5.3: 5108 5193 resolution: {integrity: sha512-i1gCgmR9dCl6Vil6UKPI/trA69s08g/syhiDK9TG0Nf1RJjjFI+AzoWW7sPufzkgYAn861skuCwJa0pIIHYxvg==} 5109 5194 5195 + es-module-lexer@1.5.4: 5196 + resolution: {integrity: sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw==} 5197 + 5110 5198 es6-promise@3.3.1: 5111 5199 resolution: {integrity: sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==} 5112 5200 ··· 5328 5416 resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==} 5329 5417 engines: {node: '>=16.17'} 5330 5418 5419 + expect-type@1.1.0: 5420 + resolution: {integrity: sha512-bFi65yM+xZgk+u/KRIpekdSYkTB5W1pEf0Lt8Q8Msh7b+eQ7LXVtIB1Bkm4fvclDEL1b2CZkMhv2mOeF8tMdkA==} 5421 + engines: {node: '>=12.0.0'} 5422 + 5331 5423 exponential-backoff@3.1.1: 5332 5424 resolution: {integrity: sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw==} 5333 5425 ··· 5349 5441 resolution: {integrity: sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==} 5350 5442 engines: {node: '>= 10.17.0'} 5351 5443 hasBin: true 5444 + 5445 + fast-decode-uri-component@1.0.1: 5446 + resolution: {integrity: sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==} 5352 5447 5353 5448 fast-deep-equal@3.1.3: 5354 5449 resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} ··· 5366 5461 fast-json-stable-stringify@2.1.0: 5367 5462 resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} 5368 5463 5464 + fast-json-stringify@6.0.0: 5465 + resolution: {integrity: sha512-FGMKZwniMTgZh7zQp9b6XnBVxUmKVahQLQeRQHqwYmPDqDhcEKZ3BaQsxelFFI5PY7nN71OEeiL47/zUWcYe1A==} 5466 + 5369 5467 fast-levenshtein@2.0.6: 5370 5468 resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} 5469 + 5470 + fast-querystring@1.1.2: 5471 + resolution: {integrity: sha512-g6KuKWmFXc0fID8WWH0jit4g0AGBoJhCkJMb1RmbsSEUNvQ+ZC8D6CUZ+GtF8nMzSPXnhiePyyqqipzNNEnHjg==} 5472 + 5473 + fast-redact@3.5.0: 5474 + resolution: {integrity: sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==} 5475 + engines: {node: '>=6'} 5476 + 5477 + fast-uri@2.4.0: 5478 + resolution: {integrity: sha512-ypuAmmMKInk5q7XcepxlnUWDLWv4GFtaJqAzWKqn62IpQ3pejtr5dTVbt3vwqVaMKmkNR55sTT+CqUKIaT21BA==} 5371 5479 5372 5480 fast-uri@3.0.3: 5373 5481 resolution: {integrity: sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw==} 5374 5482 5483 + fastify-openapi-glue@4.7.1: 5484 + resolution: {integrity: sha512-vP9rVJYohzrnj60qD7feB6aaDdpE1BQgVOaVYuTHXT6ce7MHyf/oj9Wo0o6RhST7BtP7J3SET+7k+mh/ShECag==} 5485 + engines: {node: '>=14.0.0'} 5486 + hasBin: true 5487 + 5488 + fastify-plugin@4.5.1: 5489 + resolution: {integrity: sha512-stRHYGeuqpEZTL1Ef0Ovr2ltazUT9g844X5z/zEBFLG8RYlpDiOCIG+ATvYEp+/zmc7sN29mcIMp8gvYplYPIQ==} 5490 + 5491 + fastify@5.0.0: 5492 + resolution: {integrity: sha512-Qe4dU+zGOzg7vXjw4EvcuyIbNnMwTmcuOhlOrOJsgwzvjEZmsM/IeHulgJk+r46STjdJS/ZJbxO8N70ODXDMEQ==} 5493 + 5375 5494 fastq@1.17.1: 5376 5495 resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} 5377 5496 ··· 5416 5535 find-cache-dir@4.0.0: 5417 5536 resolution: {integrity: sha512-9ZonPT4ZAK4a+1pUPVPZJapbi7O5qbbJPdYw/NOQWZZbVLdDTYM3A4R9z/DpAM08IDaFGsvPgiGZ82WEwUDWjg==} 5418 5537 engines: {node: '>=14.16'} 5538 + 5539 + find-my-way@9.1.0: 5540 + resolution: {integrity: sha512-Y5jIsuYR4BwWDYYQ2A/RWWE6gD8a0FMgtU+HOq1WKku+Cwdz8M1v8wcAmRXXM1/iqtoqg06v+LjAxMYbCjViMw==} 5541 + engines: {node: '>=14'} 5419 5542 5420 5543 find-up@4.1.0: 5421 5544 resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} ··· 5718 5841 resolution: {integrity: sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==} 5719 5842 engines: {node: '>=8.0.0'} 5720 5843 5721 - https-proxy-agent@7.0.4: 5722 - resolution: {integrity: sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg==} 5723 - engines: {node: '>= 14'} 5724 - 5725 5844 https-proxy-agent@7.0.5: 5726 5845 resolution: {integrity: sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==} 5727 5846 engines: {node: '>= 14'} ··· 6069 6188 resolution: {integrity: sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ==} 6070 6189 engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} 6071 6190 6191 + json-schema-ref-resolver@1.0.1: 6192 + resolution: {integrity: sha512-EJAj1pgHc1hxF6vo2Z3s69fMjO1INq6eGHXZ8Z6wCQeldCuwxGK9Sxf4/cScGn3FZubCVUehfWtcDM/PLteCQw==} 6193 + 6072 6194 json-schema-traverse@0.4.1: 6073 6195 resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} 6074 6196 ··· 6177 6299 webpack: 6178 6300 optional: true 6179 6301 6302 + light-my-request@6.3.0: 6303 + resolution: {integrity: sha512-bWTAPJmeWQH5suJNYwG0f5cs0p6ho9e6f1Ppoxv5qMosY+s9Ir2+ZLvvHcgA7VTDop4zl/NCHhOVVqU+kd++Ow==} 6304 + 6180 6305 lilconfig@2.1.0: 6181 6306 resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==} 6182 6307 engines: {node: '>=10'} ··· 6281 6406 loupe@3.1.1: 6282 6407 resolution: {integrity: sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==} 6283 6408 6409 + loupe@3.1.2: 6410 + resolution: {integrity: sha512-23I4pFZHmAemUnz8WZXbYRSKYj801VDaNv9ETuMh7IrMc7VuVVSo+Z9iLE3ni30+U48iDWfi30d3twAXBYmnCg==} 6411 + 6284 6412 lru-cache@10.4.0: 6285 6413 resolution: {integrity: sha512-bfJaPTuEiTYBu+ulDaeQ0F+uLmlfFkMgXj4cbwfuMSjgObGMzb55FMMbDvbRU0fAHZ4sLGkz2mKwcMg8Dvm8Ww==} 6286 6414 engines: {node: '>=18'} ··· 6307 6435 6308 6436 magic-string@0.30.11: 6309 6437 resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==} 6438 + 6439 + magic-string@0.30.12: 6440 + resolution: {integrity: sha512-Ea8I3sQMVXr8JhN4z+H/d8zwo+tYDgHE9+5G4Wnrwhs0gaK9fXTKx0Tw5Xwsd/bCPTTZNRAdpyzvoeORe9LYpw==} 6310 6441 6311 6442 magicast@0.3.4: 6312 6443 resolution: {integrity: sha512-TyDF/Pn36bBji9rWKHlZe+PZb6Mx5V8IHCSxk7X4aljM4e/vyDvZZYwHewdVaqiA0nb3ghfHU/6AUpDxWoER2Q==} ··· 6699 6830 6700 6831 ohash@1.1.4: 6701 6832 resolution: {integrity: sha512-FlDryZAahJmEF3VR3w1KogSEdWX3WhA5GPakFx4J81kEAiHyLMpdLLElS8n8dfNadMgAne/MywcvmogzscVt4g==} 6833 + 6834 + on-exit-leak-free@2.1.2: 6835 + resolution: {integrity: sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==} 6836 + engines: {node: '>=14.0.0'} 6702 6837 6703 6838 on-finished@2.3.0: 6704 6839 resolution: {integrity: sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==} ··· 6949 7084 typescript: 6950 7085 optional: true 6951 7086 7087 + pino-abstract-transport@2.0.0: 7088 + resolution: {integrity: sha512-F63x5tizV6WCh4R6RHyi2Ml+M70DNRXt/+HANowMflpgGFMAym/VKm6G7ZOQRjqN7XbGxK1Lg9t6ZrtzOaivMw==} 7089 + 7090 + pino-std-serializers@7.0.0: 7091 + resolution: {integrity: sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==} 7092 + 7093 + pino@9.5.0: 7094 + resolution: {integrity: sha512-xSEmD4pLnV54t0NOUN16yCl7RIB1c5UUOse5HSyEXtBp+FgFQyPeDutc+Q2ZO7/22vImV7VfEjH/1zV2QuqvYw==} 7095 + hasBin: true 7096 + 6952 7097 pirates@4.0.6: 6953 7098 resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} 6954 7099 engines: {node: '>= 6'} ··· 7141 7286 process-nextick-args@2.0.1: 7142 7287 resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} 7143 7288 7289 + process-warning@4.0.0: 7290 + resolution: {integrity: sha512-/MyYDxttz7DfGMMHiysAsFE4qF+pQYAA8ziO/3NcRVrQ5fSk+Mns4QZA/oRPFzvcqNoVJXQNWNAsdwBXLUkQKw==} 7291 + 7144 7292 progress@2.0.3: 7145 7293 resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==} 7146 7294 engines: {node: '>=0.4.0'} ··· 7215 7363 7216 7364 queue-tick@1.0.1: 7217 7365 resolution: {integrity: sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==} 7366 + 7367 + quick-format-unescaped@4.0.4: 7368 + resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==} 7218 7369 7219 7370 randombytes@2.1.0: 7220 7371 resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} ··· 7302 7453 resolution: {integrity: sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA==} 7303 7454 engines: {node: '>= 14.16.0'} 7304 7455 7456 + real-require@0.2.0: 7457 + resolution: {integrity: sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==} 7458 + engines: {node: '>= 12.13.0'} 7459 + 7305 7460 reflect-metadata@0.2.2: 7306 7461 resolution: {integrity: sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==} 7307 7462 ··· 7381 7536 resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} 7382 7537 engines: {node: '>=18'} 7383 7538 7539 + ret@0.5.0: 7540 + resolution: {integrity: sha512-I1XxrZSQ+oErkRR4jYbAyEEu2I0avBvvMM5JN+6EBprOGRCs63ENqZ3vjavq8fBw2+62G5LF5XelKwuJpcvcxw==} 7541 + engines: {node: '>=10'} 7542 + 7384 7543 retry@0.12.0: 7385 7544 resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==} 7386 7545 engines: {node: '>= 4'} ··· 7446 7605 safe-buffer@5.2.1: 7447 7606 resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} 7448 7607 7608 + safe-regex2@4.0.0: 7609 + resolution: {integrity: sha512-Hvjfv25jPDVr3U+4LDzBuZPPOymELG3PYcSk5hcevooo1yxxamQL/bHs/GrEPGmMoMEwRrHVGiCA1pXi97B8Ew==} 7610 + 7611 + safe-stable-stringify@2.5.0: 7612 + resolution: {integrity: sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==} 7613 + engines: {node: '>=10'} 7614 + 7449 7615 safer-buffer@2.1.2: 7450 7616 resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} 7451 7617 ··· 7498 7664 7499 7665 search-insights@2.14.0: 7500 7666 resolution: {integrity: sha512-OLN6MsPMCghDOqlCtsIsYgtsC0pnwVTyT9Mu6A3ewOj1DxvzZF6COrn2g86E/c05xbktB0XN04m/t1Z+n+fTGw==} 7667 + 7668 + secure-json-parse@2.7.0: 7669 + resolution: {integrity: sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==} 7501 7670 7502 7671 select-hose@2.0.0: 7503 7672 resolution: {integrity: sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==} ··· 7669 7838 solid-js@1.8.20: 7670 7839 resolution: {integrity: sha512-SsgaExCJ97mPm9WpAusjZ484Z8zTp8ggiueQOsrm81iAP7UaxaN+wiOgnPcJ9u6B2SQpoQ4FiDPAZBqVWi1V4g==} 7671 7840 7841 + sonic-boom@4.2.0: 7842 + resolution: {integrity: sha512-INb7TM37/mAcsGmc9hyyI6+QR3rR1zVRu36B0NeGXKnOOLiZOfER5SA+N7X7k3yUYRzLWafduTDvJAfDswwEww==} 7843 + 7672 7844 sorcery@0.11.1: 7673 7845 resolution: {integrity: sha512-o7npfeJE6wi6J9l0/5LKshFzZ2rMatRiCDwYeDQaOzqdzRJwALhX7mk/A/ecg6wjMu7wdZbmXfD2S/vpOg0bdQ==} 7674 7846 hasBin: true ··· 7728 7900 resolution: {integrity: sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==} 7729 7901 engines: {node: '>=0.10.0'} 7730 7902 7903 + split2@4.2.0: 7904 + resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} 7905 + engines: {node: '>= 10.x'} 7906 + 7731 7907 sprintf-js@1.0.3: 7732 7908 resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} 7733 7909 ··· 7751 7927 7752 7928 std-env@3.7.0: 7753 7929 resolution: {integrity: sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==} 7930 + 7931 + std-env@3.8.0: 7932 + resolution: {integrity: sha512-Bc3YwwCB+OzldMxOXJIIvC6cPRWr/LxOp48CdQTOkPyk/t4JWWJbrilwBd7RJzKV8QW7tJkcgAmeuLLJugl5/w==} 7754 7933 7755 7934 streamroller@3.1.5: 7756 7935 resolution: {integrity: sha512-KFxaM7XT+irxvdqSP1LGLgNWbYN7ay5owZ3r/8t77p+EtSUAfUgtl7be3xtqtOmGUl9K9YPO2ca8133RlTjvKw==} ··· 7992 8171 peerDependencies: 7993 8172 tslib: ^2 7994 8173 8174 + thread-stream@3.1.0: 8175 + resolution: {integrity: sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==} 8176 + 7995 8177 through@2.3.8: 7996 8178 resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} 7997 8179 ··· 8004 8186 tinybench@2.8.0: 8005 8187 resolution: {integrity: sha512-1/eK7zUnIklz4JUUlL+658n58XO2hHLQfSk1Zf2LKieUjxidN16eKFEoDEfjHc3ohofSSqK3X5yO6VGb6iW8Lw==} 8006 8188 8189 + tinybench@2.9.0: 8190 + resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} 8191 + 8192 + tinyexec@0.3.1: 8193 + resolution: {integrity: sha512-WiCJLEECkO18gwqIp6+hJg0//p23HXp4S+gGtAKu3mI2F2/sXC4FvHvXvB0zJVVaTPhx1/tOwdbRsa1sOBIKqQ==} 8194 + 8007 8195 tinyglobby@0.2.6: 8008 8196 resolution: {integrity: sha512-NbBoFBpqfcgd1tCiO8Lkfdk+xrA7mlLR9zgvZcZWQQwU63XAfUePyd6wZBaU93Hqw347lHnwFzttAkemHzzz4g==} 8009 8197 engines: {node: '>=12.0.0'} ··· 8016 8204 resolution: {integrity: sha512-KIKExllK7jp3uvrNtvRBYBWBOAXSX8ZvoaD8T+7KB/QHIuoJW3Pmr60zucywjAlMb5TeXUkcs/MWeWLu0qvuAQ==} 8017 8205 engines: {node: ^18.0.0 || >=20.0.0} 8018 8206 8207 + tinypool@1.0.1: 8208 + resolution: {integrity: sha512-URZYihUbRPcGv95En+sz6MfghfIc2OJ1sv/RmhWZLouPY0/8Vo80viwPvg3dlaS9fuq7fQMEfgRRK7BBZThBEA==} 8209 + engines: {node: ^18.0.0 || >=20.0.0} 8210 + 8211 + tinyrainbow@1.2.0: 8212 + resolution: {integrity: sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==} 8213 + engines: {node: '>=14.0.0'} 8214 + 8019 8215 tinyspy@2.2.1: 8020 8216 resolution: {integrity: sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==} 8021 8217 engines: {node: '>=14.0.0'} ··· 8024 8220 resolution: {integrity: sha512-q5nmENpTHgiPVd1cJDDc9cVoYN5x4vCvwT3FMilvKPKneCBZAxn2YWQjDF0UMcE9k0Cay1gBiDfTMU0g+mPMQA==} 8025 8221 engines: {node: '>=14.0.0'} 8026 8222 8223 + tinyspy@3.0.2: 8224 + resolution: {integrity: sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==} 8225 + engines: {node: '>=14.0.0'} 8226 + 8027 8227 tmp@0.0.33: 8028 8228 resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==} 8029 8229 engines: {node: '>=0.6.0'} ··· 8039 8239 to-regex-range@5.0.1: 8040 8240 resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} 8041 8241 engines: {node: '>=8.0'} 8242 + 8243 + toad-cache@3.7.0: 8244 + resolution: {integrity: sha512-/m8M+2BJUpoJdgAHoG+baCwBT+tf2VraSfkBgl0Y00qIWt41DJ8R5B8nsEw0I58YwF5IZH6z24/2TobDKnqSWw==} 8245 + engines: {node: '>=12'} 8042 8246 8043 8247 toidentifier@1.0.1: 8044 8248 resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} ··· 8351 8555 engines: {node: ^18.0.0 || >=20.0.0} 8352 8556 hasBin: true 8353 8557 8558 + vite-node@2.1.5: 8559 + resolution: {integrity: sha512-rd0QIgx74q4S1Rd56XIiL2cYEdyWn13cunYBIuqh9mpmQr7gGS0IxXoP8R6OaZtNQQLyXSWbd4rXKYUbhFpK5w==} 8560 + engines: {node: ^18.0.0 || >=20.0.0} 8561 + hasBin: true 8562 + 8354 8563 vite-plugin-inspect@0.8.5: 8355 8564 resolution: {integrity: sha512-JvTUqsP1JNDw0lMZ5Z/r5cSj81VK2B7884LO1DC3GMBhdcjcsAnJjdWq7bzQL01Xbh+v60d3lju3g+z7eAtNew==} 8356 8565 engines: {node: '>=14'} ··· 8457 8666 '@types/node': ^18.0.0 || >=20.0.0 8458 8667 '@vitest/browser': 2.0.0 8459 8668 '@vitest/ui': 2.0.0 8669 + happy-dom: '*' 8670 + jsdom: '*' 8671 + peerDependenciesMeta: 8672 + '@edge-runtime/vm': 8673 + optional: true 8674 + '@types/node': 8675 + optional: true 8676 + '@vitest/browser': 8677 + optional: true 8678 + '@vitest/ui': 8679 + optional: true 8680 + happy-dom: 8681 + optional: true 8682 + jsdom: 8683 + optional: true 8684 + 8685 + vitest@2.1.5: 8686 + resolution: {integrity: sha512-P4ljsdpuzRTPI/kbND2sDZ4VmieerR2c9szEZpjc+98Z9ebvnXmM5+0tHEKqYZumXqlvnmfWsjeFOjXVriDG7A==} 8687 + engines: {node: ^18.0.0 || >=20.0.0} 8688 + hasBin: true 8689 + peerDependencies: 8690 + '@edge-runtime/vm': '*' 8691 + '@types/node': ^18.0.0 || >=20.0.0 8692 + '@vitest/browser': 2.1.5 8693 + '@vitest/ui': 2.1.5 8460 8694 happy-dom: '*' 8461 8695 jsdom: '*' 8462 8696 peerDependenciesMeta: ··· 8956 9190 typescript: 5.5.3 8957 9191 vite: 5.4.6(@types/node@22.8.5)(less@4.2.0)(sass@1.77.6)(terser@5.31.6) 8958 9192 watchpack: 2.4.1 8959 - webpack: 5.94.0(esbuild@0.23.1) 9193 + webpack: 5.94.0(esbuild@0.23.0) 8960 9194 webpack-dev-middleware: 7.4.2(webpack@5.94.0(esbuild@0.23.0)) 8961 9195 webpack-dev-server: 5.0.4(webpack@5.94.0(esbuild@0.23.0)) 8962 9196 webpack-merge: 6.0.1 ··· 9044 9278 typescript: 5.5.3 9045 9279 vite: 5.4.6(@types/node@22.8.5)(less@4.2.0)(sass@1.77.6)(terser@5.31.6) 9046 9280 watchpack: 2.4.1 9047 - webpack: 5.94.0(esbuild@0.23.1) 9281 + webpack: 5.94.0(esbuild@0.23.0) 9048 9282 webpack-dev-middleware: 7.4.2(webpack@5.94.0(esbuild@0.23.0)) 9049 9283 webpack-dev-server: 5.0.4(webpack@5.94.0(esbuild@0.23.0)) 9050 9284 webpack-merge: 6.0.1 ··· 9075 9309 dependencies: 9076 9310 '@angular-devkit/architect': 0.1802.11(chokidar@3.6.0) 9077 9311 rxjs: 7.8.1 9078 - webpack: 5.94.0(esbuild@0.23.1) 9312 + webpack: 5.94.0(esbuild@0.23.0) 9079 9313 webpack-dev-server: 5.0.4(webpack@5.94.0(esbuild@0.23.0)) 9080 9314 transitivePeerDependencies: 9081 9315 - chokidar ··· 10790 11024 10791 11025 '@eslint/object-schema@2.1.4': {} 10792 11026 11027 + '@fastify/ajv-compiler@4.0.1': 11028 + dependencies: 11029 + ajv: 8.17.1 11030 + ajv-formats: 3.0.1(ajv@8.17.1) 11031 + fast-uri: 3.0.3 11032 + 11033 + '@fastify/error@4.0.0': {} 11034 + 11035 + '@fastify/fast-json-stringify-compiler@5.0.1': 11036 + dependencies: 11037 + fast-json-stringify: 6.0.0 11038 + 11039 + '@fastify/merge-json-schemas@0.1.1': 11040 + dependencies: 11041 + fast-deep-equal: 3.1.3 11042 + 10793 11043 '@floating-ui/core@1.6.2': 10794 11044 dependencies: 10795 11045 '@floating-ui/utils': 0.2.2 ··· 11094 11344 dependencies: 11095 11345 '@angular/compiler-cli': 18.2.11(@angular/compiler@18.2.11(@angular/core@18.2.11(rxjs@7.8.1)(zone.js@0.15.0)))(typescript@5.5.3) 11096 11346 typescript: 5.5.3 11097 - webpack: 5.94.0(esbuild@0.23.1) 11347 + webpack: 5.94.0(esbuild@0.23.0) 11098 11348 11099 11349 '@nodelib/fs.scandir@2.1.5': 11100 11350 dependencies: ··· 12000 12250 transitivePeerDependencies: 12001 12251 - chokidar 12002 12252 12253 + '@seriousme/openapi-schema-validator@2.2.5': 12254 + dependencies: 12255 + ajv: 8.17.1 12256 + ajv-draft-04: 1.0.0(ajv@8.17.1) 12257 + ajv-formats: 3.0.1(ajv@8.17.1) 12258 + js-yaml: 4.1.0 12259 + minimist: 1.2.8 12260 + 12003 12261 '@shikijs/core@1.10.3': 12004 12262 dependencies: 12005 12263 '@types/hast': 3.0.4 ··· 12630 12888 '@vitest/utils': 2.0.0 12631 12889 chai: 5.1.1 12632 12890 12891 + '@vitest/expect@2.1.5': 12892 + dependencies: 12893 + '@vitest/spy': 2.1.5 12894 + '@vitest/utils': 2.1.5 12895 + chai: 5.1.2 12896 + tinyrainbow: 1.2.0 12897 + 12898 + '@vitest/mocker@2.1.5(vite@5.4.6(@types/node@22.8.5)(less@4.2.0)(sass@1.77.6)(terser@5.31.6))': 12899 + dependencies: 12900 + '@vitest/spy': 2.1.5 12901 + estree-walker: 3.0.3 12902 + magic-string: 0.30.12 12903 + optionalDependencies: 12904 + vite: 5.4.6(@types/node@22.8.5)(less@4.2.0)(sass@1.77.6)(terser@5.31.6) 12905 + 12906 + '@vitest/pretty-format@2.1.5': 12907 + dependencies: 12908 + tinyrainbow: 1.2.0 12909 + 12633 12910 '@vitest/runner@1.6.0': 12634 12911 dependencies: 12635 12912 '@vitest/utils': 1.6.0 ··· 12641 12918 '@vitest/utils': 2.0.0 12642 12919 pathe: 1.1.2 12643 12920 12921 + '@vitest/runner@2.1.5': 12922 + dependencies: 12923 + '@vitest/utils': 2.1.5 12924 + pathe: 1.1.2 12925 + 12644 12926 '@vitest/snapshot@1.6.0': 12645 12927 dependencies: 12646 12928 magic-string: 0.30.11 ··· 12653 12935 pathe: 1.1.2 12654 12936 pretty-format: 29.7.0 12655 12937 12938 + '@vitest/snapshot@2.1.5': 12939 + dependencies: 12940 + '@vitest/pretty-format': 2.1.5 12941 + magic-string: 0.30.12 12942 + pathe: 1.1.2 12943 + 12656 12944 '@vitest/spy@1.6.0': 12657 12945 dependencies: 12658 12946 tinyspy: 2.2.1 ··· 12661 12949 dependencies: 12662 12950 tinyspy: 3.0.0 12663 12951 12952 + '@vitest/spy@2.1.5': 12953 + dependencies: 12954 + tinyspy: 3.0.2 12955 + 12664 12956 '@vitest/utils@1.6.0': 12665 12957 dependencies: 12666 12958 diff-sequences: 29.6.3 ··· 12674 12966 estree-walker: 3.0.3 12675 12967 loupe: 3.1.1 12676 12968 pretty-format: 29.7.0 12969 + 12970 + '@vitest/utils@2.1.5': 12971 + dependencies: 12972 + '@vitest/pretty-format': 2.1.5 12973 + loupe: 3.1.2 12974 + tinyrainbow: 1.2.0 12677 12975 12678 12976 '@volar/language-core@2.4.0-alpha.18': 12679 12977 dependencies: ··· 13056 13354 13057 13355 abbrev@2.0.0: {} 13058 13356 13357 + abstract-logging@2.0.1: {} 13358 + 13059 13359 accepts@1.3.8: 13060 13360 dependencies: 13061 13361 mime-types: 2.1.35 ··· 13103 13403 optionalDependencies: 13104 13404 ajv: 8.13.0 13105 13405 optional: true 13406 + 13407 + ajv-draft-04@1.0.0(ajv@8.17.1): 13408 + optionalDependencies: 13409 + ajv: 8.17.1 13106 13410 13107 13411 ajv-formats@2.1.1(ajv@8.17.1): 13108 13412 optionalDependencies: ··· 13242 13546 tslib: 2.8.1 13243 13547 13244 13548 asynckit@0.4.0: {} 13549 + 13550 + atomic-sleep@1.0.0: {} 13245 13551 13246 13552 autoprefixer@10.4.19(postcss@8.4.39): 13247 13553 dependencies: ··· 13263 13569 postcss: 8.4.41 13264 13570 postcss-value-parser: 4.2.0 13265 13571 13572 + avvio@9.1.0: 13573 + dependencies: 13574 + '@fastify/error': 4.0.0 13575 + fastq: 1.17.1 13576 + 13266 13577 axios@1.7.7: 13267 13578 dependencies: 13268 13579 follow-redirects: 1.15.6(debug@4.3.7) ··· 13280 13591 '@babel/core': 7.25.2 13281 13592 find-cache-dir: 4.0.0 13282 13593 schema-utils: 4.2.0 13283 - webpack: 5.94.0(esbuild@0.23.1) 13594 + webpack: 5.94.0(esbuild@0.23.0) 13284 13595 13285 13596 babel-plugin-polyfill-corejs2@0.4.11(@babel/core@7.25.2): 13286 13597 dependencies: ··· 13507 13818 loupe: 3.1.1 13508 13819 pathval: 2.0.0 13509 13820 13821 + chai@5.1.2: 13822 + dependencies: 13823 + assertion-error: 2.0.1 13824 + check-error: 2.1.1 13825 + deep-eql: 5.0.2 13826 + loupe: 3.1.1 13827 + pathval: 2.0.0 13828 + 13510 13829 chalk@2.4.2: 13511 13830 dependencies: 13512 13831 ansi-styles: 3.2.1 ··· 13717 14036 13718 14037 cookie@0.7.2: {} 13719 14038 14039 + cookie@1.0.1: {} 14040 + 13720 14041 copy-anything@2.0.6: 13721 14042 dependencies: 13722 14043 is-what: 3.14.1 ··· 13733 14054 normalize-path: 3.0.0 13734 14055 schema-utils: 4.2.0 13735 14056 serialize-javascript: 6.0.2 13736 - webpack: 5.94.0(esbuild@0.23.1) 14057 + webpack: 5.94.0(esbuild@0.23.0) 13737 14058 13738 14059 core-js-compat@3.39.0: 13739 14060 dependencies: ··· 13790 14111 postcss-value-parser: 4.2.0 13791 14112 semver: 7.6.3 13792 14113 optionalDependencies: 13793 - webpack: 5.94.0(esbuild@0.23.1) 14114 + webpack: 5.94.0(esbuild@0.23.0) 13794 14115 13795 14116 css-select@5.1.0: 13796 14117 dependencies: ··· 14061 14382 es-errors@1.3.0: {} 14062 14383 14063 14384 es-module-lexer@1.5.3: {} 14385 + 14386 + es-module-lexer@1.5.4: {} 14064 14387 14065 14388 es6-promise@3.3.1: {} 14066 14389 ··· 14436 14759 signal-exit: 4.1.0 14437 14760 strip-final-newline: 3.0.0 14438 14761 14762 + expect-type@1.1.0: {} 14763 + 14439 14764 exponential-backoff@3.1.1: {} 14440 14765 14441 14766 express@4.21.0: ··· 14493 14818 '@types/yauzl': 2.10.3 14494 14819 transitivePeerDependencies: 14495 14820 - supports-color 14821 + 14822 + fast-decode-uri-component@1.0.1: {} 14496 14823 14497 14824 fast-deep-equal@3.1.3: {} 14498 14825 ··· 14510 14837 14511 14838 fast-json-stable-stringify@2.1.0: {} 14512 14839 14840 + fast-json-stringify@6.0.0: 14841 + dependencies: 14842 + '@fastify/merge-json-schemas': 0.1.1 14843 + ajv: 8.17.1 14844 + ajv-formats: 3.0.1(ajv@8.17.1) 14845 + fast-deep-equal: 3.1.3 14846 + fast-uri: 2.4.0 14847 + json-schema-ref-resolver: 1.0.1 14848 + rfdc: 1.4.1 14849 + 14513 14850 fast-levenshtein@2.0.6: {} 14851 + 14852 + fast-querystring@1.1.2: 14853 + dependencies: 14854 + fast-decode-uri-component: 1.0.1 14855 + 14856 + fast-redact@3.5.0: {} 14857 + 14858 + fast-uri@2.4.0: {} 14514 14859 14515 14860 fast-uri@3.0.3: {} 14861 + 14862 + fastify-openapi-glue@4.7.1: 14863 + dependencies: 14864 + '@seriousme/openapi-schema-validator': 2.2.5 14865 + fastify-plugin: 4.5.1 14866 + js-yaml: 4.1.0 14867 + minimist: 1.2.8 14868 + 14869 + fastify-plugin@4.5.1: {} 14870 + 14871 + fastify@5.0.0: 14872 + dependencies: 14873 + '@fastify/ajv-compiler': 4.0.1 14874 + '@fastify/error': 4.0.0 14875 + '@fastify/fast-json-stringify-compiler': 5.0.1 14876 + abstract-logging: 2.0.1 14877 + avvio: 9.1.0 14878 + fast-json-stringify: 6.0.0 14879 + find-my-way: 9.1.0 14880 + light-my-request: 6.3.0 14881 + pino: 9.5.0 14882 + process-warning: 4.0.0 14883 + proxy-addr: 2.0.7 14884 + rfdc: 1.4.1 14885 + secure-json-parse: 2.7.0 14886 + semver: 7.6.3 14887 + toad-cache: 3.7.0 14516 14888 14517 14889 fastq@1.17.1: 14518 14890 dependencies: ··· 14574 14946 common-path-prefix: 3.0.0 14575 14947 pkg-dir: 7.0.0 14576 14948 14949 + find-my-way@9.1.0: 14950 + dependencies: 14951 + fast-deep-equal: 3.1.3 14952 + fast-querystring: 1.1.2 14953 + safe-regex2: 4.0.0 14954 + 14577 14955 find-up@4.1.0: 14578 14956 dependencies: 14579 14957 locate-path: 5.0.0 ··· 14866 15244 http-proxy-agent@7.0.2: 14867 15245 dependencies: 14868 15246 agent-base: 7.1.1 14869 - debug: 4.3.5 15247 + debug: 4.3.7 14870 15248 transitivePeerDependencies: 14871 15249 - supports-color 14872 15250 ··· 14901 15279 transitivePeerDependencies: 14902 15280 - debug 14903 15281 14904 - https-proxy-agent@7.0.4: 14905 - dependencies: 14906 - agent-base: 7.1.1 14907 - debug: 4.3.5 14908 - transitivePeerDependencies: 14909 - - supports-color 14910 - 14911 15282 https-proxy-agent@7.0.5: 14912 15283 dependencies: 14913 15284 agent-base: 7.1.1 ··· 15181 15552 form-data: 4.0.0 15182 15553 html-encoding-sniffer: 4.0.0 15183 15554 http-proxy-agent: 7.0.2 15184 - https-proxy-agent: 7.0.4 15555 + https-proxy-agent: 7.0.5 15185 15556 is-potential-custom-element-name: 1.0.1 15186 15557 nwsapi: 2.2.12 15187 15558 parse5: 7.1.2 ··· 15211 15582 15212 15583 json-parse-even-better-errors@3.0.2: {} 15213 15584 15585 + json-schema-ref-resolver@1.0.1: 15586 + dependencies: 15587 + fast-deep-equal: 3.1.3 15588 + 15214 15589 json-schema-traverse@0.4.1: {} 15215 15590 15216 15591 json-schema-traverse@1.0.0: {} ··· 15318 15693 dependencies: 15319 15694 less: 4.2.0 15320 15695 optionalDependencies: 15321 - webpack: 5.94.0(esbuild@0.23.1) 15696 + webpack: 5.94.0(esbuild@0.23.0) 15322 15697 15323 15698 less@4.2.0: 15324 15699 dependencies: ··· 15343 15718 dependencies: 15344 15719 webpack-sources: 3.2.3 15345 15720 optionalDependencies: 15346 - webpack: 5.94.0(esbuild@0.23.1) 15721 + webpack: 5.94.0(esbuild@0.23.0) 15722 + 15723 + light-my-request@6.3.0: 15724 + dependencies: 15725 + cookie: 1.0.1 15726 + process-warning: 4.0.0 15727 + set-cookie-parser: 2.7.0 15347 15728 15348 15729 lilconfig@2.1.0: {} 15349 15730 ··· 15483 15864 dependencies: 15484 15865 get-func-name: 2.0.2 15485 15866 15867 + loupe@3.1.2: {} 15868 + 15486 15869 lru-cache@10.4.0: {} 15487 15870 15488 15871 lru-cache@10.4.3: {} ··· 15510 15893 dependencies: 15511 15894 '@jridgewell/sourcemap-codec': 1.5.0 15512 15895 15896 + magic-string@0.30.12: 15897 + dependencies: 15898 + '@jridgewell/sourcemap-codec': 1.5.0 15899 + 15513 15900 magicast@0.3.4: 15514 15901 dependencies: 15515 15902 '@babel/parser': 7.25.3 ··· 15612 15999 dependencies: 15613 16000 schema-utils: 4.2.0 15614 16001 tapable: 2.2.1 15615 - webpack: 5.94.0(esbuild@0.23.1) 16002 + webpack: 5.94.0(esbuild@0.23.0) 15616 16003 15617 16004 minimalistic-assert@1.0.1: {} 15618 16005 ··· 15908 16295 15909 16296 ohash@1.1.4: {} 15910 16297 16298 + on-exit-leak-free@2.1.2: {} 16299 + 15911 16300 on-finished@2.3.0: 15912 16301 dependencies: 15913 16302 ee-first: 1.1.1 ··· 16159 16548 optionalDependencies: 16160 16549 typescript: 5.5.3 16161 16550 16551 + pino-abstract-transport@2.0.0: 16552 + dependencies: 16553 + split2: 4.2.0 16554 + 16555 + pino-std-serializers@7.0.0: {} 16556 + 16557 + pino@9.5.0: 16558 + dependencies: 16559 + atomic-sleep: 1.0.0 16560 + fast-redact: 3.5.0 16561 + on-exit-leak-free: 2.1.2 16562 + pino-abstract-transport: 2.0.0 16563 + pino-std-serializers: 7.0.0 16564 + process-warning: 4.0.0 16565 + quick-format-unescaped: 4.0.4 16566 + real-require: 0.2.0 16567 + safe-stable-stringify: 2.5.0 16568 + sonic-boom: 4.2.0 16569 + thread-stream: 3.1.0 16570 + 16162 16571 pirates@4.0.6: {} 16163 16572 16164 16573 piscina@4.6.1: ··· 16227 16636 postcss: 8.4.41 16228 16637 semver: 7.6.3 16229 16638 optionalDependencies: 16230 - webpack: 5.94.0(esbuild@0.23.1) 16639 + webpack: 5.94.0(esbuild@0.23.0) 16231 16640 transitivePeerDependencies: 16232 16641 - typescript 16233 16642 ··· 16323 16732 16324 16733 process-nextick-args@2.0.1: {} 16325 16734 16735 + process-warning@4.0.0: {} 16736 + 16326 16737 progress@2.0.3: {} 16327 16738 16328 16739 promise-inflight@1.0.1: {} ··· 16405 16816 queue-microtask@1.2.3: {} 16406 16817 16407 16818 queue-tick@1.0.1: {} 16819 + 16820 + quick-format-unescaped@4.0.4: {} 16408 16821 16409 16822 randombytes@2.1.0: 16410 16823 dependencies: ··· 16504 16917 16505 16918 readdirp@4.0.2: {} 16506 16919 16920 + real-require@0.2.0: {} 16921 + 16507 16922 reflect-metadata@0.2.2: {} 16508 16923 16509 16924 regenerate-unicode-properties@10.2.0: ··· 16580 16995 dependencies: 16581 16996 onetime: 7.0.0 16582 16997 signal-exit: 4.1.0 16998 + 16999 + ret@0.5.0: {} 16583 17000 16584 17001 retry@0.12.0: {} 16585 17002 ··· 16667 17084 16668 17085 safe-buffer@5.2.1: {} 16669 17086 17087 + safe-regex2@4.0.0: 17088 + dependencies: 17089 + ret: 0.5.0 17090 + 17091 + safe-stable-stringify@2.5.0: {} 17092 + 16670 17093 safer-buffer@2.1.2: {} 16671 17094 16672 17095 sander@0.5.1: ··· 16681 17104 neo-async: 2.6.2 16682 17105 optionalDependencies: 16683 17106 sass: 1.77.6 16684 - webpack: 5.94.0(esbuild@0.23.1) 17107 + webpack: 5.94.0(esbuild@0.23.0) 16685 17108 16686 17109 sass@1.77.6: 16687 17110 dependencies: ··· 16714 17137 ajv-keywords: 5.1.0(ajv@8.17.1) 16715 17138 16716 17139 search-insights@2.14.0: {} 17140 + 17141 + secure-json-parse@2.7.0: {} 16717 17142 16718 17143 select-hose@2.0.0: {} 16719 17144 ··· 16932 17357 seroval: 1.1.1 16933 17358 seroval-plugins: 1.1.1(seroval@1.1.1) 16934 17359 17360 + sonic-boom@4.2.0: 17361 + dependencies: 17362 + atomic-sleep: 1.0.0 17363 + 16935 17364 sorcery@0.11.1: 16936 17365 dependencies: 16937 17366 '@jridgewell/sourcemap-codec': 1.5.0 ··· 16947 17376 dependencies: 16948 17377 iconv-lite: 0.6.3 16949 17378 source-map-js: 1.2.1 16950 - webpack: 5.94.0(esbuild@0.23.1) 17379 + webpack: 5.94.0(esbuild@0.23.0) 16951 17380 16952 17381 source-map-support@0.5.21: 16953 17382 dependencies: ··· 17003 17432 - supports-color 17004 17433 17005 17434 speakingurl@14.0.1: {} 17435 + 17436 + split2@4.2.0: {} 17006 17437 17007 17438 sprintf-js@1.0.3: {} 17008 17439 ··· 17020 17451 17021 17452 std-env@3.7.0: {} 17022 17453 17454 + std-env@3.8.0: {} 17455 + 17023 17456 streamroller@3.1.5: 17024 17457 dependencies: 17025 17458 date-format: 4.0.14 ··· 17312 17745 17313 17746 term-size@2.2.1: {} 17314 17747 17315 - terser-webpack-plugin@5.3.10(esbuild@0.23.1)(webpack@5.94.0(esbuild@0.23.0)): 17748 + terser-webpack-plugin@5.3.10(esbuild@0.23.0)(webpack@5.94.0(esbuild@0.23.0)): 17316 17749 dependencies: 17317 17750 '@jridgewell/trace-mapping': 0.3.25 17318 17751 jest-worker: 27.5.1 17319 17752 schema-utils: 3.3.0 17320 17753 serialize-javascript: 6.0.2 17321 17754 terser: 5.31.6 17322 - webpack: 5.94.0(esbuild@0.23.1) 17755 + webpack: 5.94.0(esbuild@0.23.0) 17323 17756 optionalDependencies: 17324 - esbuild: 0.23.1 17757 + esbuild: 0.23.0 17325 17758 17326 17759 terser@5.31.6: 17327 17760 dependencies: ··· 17354 17787 dependencies: 17355 17788 tslib: 2.8.1 17356 17789 17790 + thread-stream@3.1.0: 17791 + dependencies: 17792 + real-require: 0.2.0 17793 + 17357 17794 through@2.3.8: {} 17358 17795 17359 17796 thunky@1.1.0: {} ··· 17365 17802 17366 17803 tinybench@2.8.0: {} 17367 17804 17805 + tinybench@2.9.0: {} 17806 + 17807 + tinyexec@0.3.1: {} 17808 + 17368 17809 tinyglobby@0.2.6: 17369 17810 dependencies: 17370 17811 fdir: 6.3.0(picomatch@4.0.2) ··· 17374 17815 17375 17816 tinypool@1.0.0: {} 17376 17817 17818 + tinypool@1.0.1: {} 17819 + 17820 + tinyrainbow@1.2.0: {} 17821 + 17377 17822 tinyspy@2.2.1: {} 17378 17823 17379 17824 tinyspy@3.0.0: {} 17825 + 17826 + tinyspy@3.0.2: {} 17380 17827 17381 17828 tmp@0.0.33: 17382 17829 dependencies: ··· 17389 17836 to-regex-range@5.0.1: 17390 17837 dependencies: 17391 17838 is-number: 7.0.0 17839 + 17840 + toad-cache@3.7.0: {} 17392 17841 17393 17842 toidentifier@1.0.1: {} 17394 17843 ··· 17727 18176 - supports-color 17728 18177 - terser 17729 18178 18179 + vite-node@2.1.5(@types/node@22.8.5)(less@4.2.0)(sass@1.77.6)(terser@5.31.6): 18180 + dependencies: 18181 + cac: 6.7.14 18182 + debug: 4.3.7 18183 + es-module-lexer: 1.5.4 18184 + pathe: 1.1.2 18185 + vite: 5.4.6(@types/node@22.8.5)(less@4.2.0)(sass@1.77.6)(terser@5.31.6) 18186 + transitivePeerDependencies: 18187 + - '@types/node' 18188 + - less 18189 + - lightningcss 18190 + - sass 18191 + - sass-embedded 18192 + - stylus 18193 + - sugarss 18194 + - supports-color 18195 + - terser 18196 + 17730 18197 vite-plugin-inspect@0.8.5(rollup@4.22.4)(vite@5.4.6(@types/node@20.14.5)(less@4.2.0)(sass@1.77.6)(terser@5.31.6)): 17731 18198 dependencies: 17732 18199 '@antfu/utils': 0.7.10 ··· 17965 18432 - supports-color 17966 18433 - terser 17967 18434 18435 + vitest@2.1.5(@types/node@22.8.5)(jsdom@24.1.0)(less@4.2.0)(sass@1.77.6)(terser@5.31.6): 18436 + dependencies: 18437 + '@vitest/expect': 2.1.5 18438 + '@vitest/mocker': 2.1.5(vite@5.4.6(@types/node@22.8.5)(less@4.2.0)(sass@1.77.6)(terser@5.31.6)) 18439 + '@vitest/pretty-format': 2.1.5 18440 + '@vitest/runner': 2.1.5 18441 + '@vitest/snapshot': 2.1.5 18442 + '@vitest/spy': 2.1.5 18443 + '@vitest/utils': 2.1.5 18444 + chai: 5.1.2 18445 + debug: 4.3.7 18446 + expect-type: 1.1.0 18447 + magic-string: 0.30.12 18448 + pathe: 1.1.2 18449 + std-env: 3.8.0 18450 + tinybench: 2.9.0 18451 + tinyexec: 0.3.1 18452 + tinypool: 1.0.1 18453 + tinyrainbow: 1.2.0 18454 + vite: 5.4.6(@types/node@22.8.5)(less@4.2.0)(sass@1.77.6)(terser@5.31.6) 18455 + vite-node: 2.1.5(@types/node@22.8.5)(less@4.2.0)(sass@1.77.6)(terser@5.31.6) 18456 + why-is-node-running: 2.3.0 18457 + optionalDependencies: 18458 + '@types/node': 22.8.5 18459 + jsdom: 24.1.0 18460 + transitivePeerDependencies: 18461 + - less 18462 + - lightningcss 18463 + - msw 18464 + - sass 18465 + - sass-embedded 18466 + - stylus 18467 + - sugarss 18468 + - supports-color 18469 + - terser 18470 + 17968 18471 void-elements@2.0.1: {} 17969 18472 17970 18473 vscode-uri@3.0.8: {} ··· 18060 18563 range-parser: 1.2.1 18061 18564 schema-utils: 4.2.0 18062 18565 optionalDependencies: 18063 - webpack: 5.94.0(esbuild@0.23.1) 18566 + webpack: 5.94.0(esbuild@0.23.0) 18064 18567 18065 18568 webpack-dev-server@5.0.4(webpack@5.94.0(esbuild@0.23.0)): 18066 18569 dependencies: ··· 18095 18598 webpack-dev-middleware: 7.4.2(webpack@5.94.0(esbuild@0.23.0)) 18096 18599 ws: 8.17.1 18097 18600 optionalDependencies: 18098 - webpack: 5.94.0(esbuild@0.23.1) 18601 + webpack: 5.94.0(esbuild@0.23.0) 18099 18602 transitivePeerDependencies: 18100 18603 - bufferutil 18101 18604 - debug ··· 18113 18616 webpack-subresource-integrity@5.1.0(webpack@5.94.0(esbuild@0.23.0)): 18114 18617 dependencies: 18115 18618 typed-assert: 1.0.9 18116 - webpack: 5.94.0(esbuild@0.23.1) 18619 + webpack: 5.94.0(esbuild@0.23.0) 18117 18620 18118 - webpack@5.94.0(esbuild@0.23.1): 18621 + webpack@5.94.0(esbuild@0.23.0): 18119 18622 dependencies: 18120 18623 '@types/estree': 1.0.5 18121 18624 '@webassemblyjs/ast': 1.12.1 ··· 18137 18640 neo-async: 2.6.2 18138 18641 schema-utils: 3.3.0 18139 18642 tapable: 2.2.1 18140 - terser-webpack-plugin: 5.3.10(esbuild@0.23.1)(webpack@5.94.0(esbuild@0.23.0)) 18643 + terser-webpack-plugin: 5.3.10(esbuild@0.23.0)(webpack@5.94.0(esbuild@0.23.0)) 18141 18644 watchpack: 2.4.1 18142 18645 webpack-sources: 3.2.3 18143 18646 transitivePeerDependencies: