@hey-api/openapi-ts 0.86.12 → 0.87.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,4 @@
1
1
  import { IProject, Project, Symbol, SymbolIdentifier, SymbolIn, SymbolMeta } from "@hey-api/codegen-core";
2
- import fs from "node:fs";
3
2
  import ts from "typescript";
4
3
  import { RangeOptions, SemVer } from "semver";
5
4
  import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
@@ -61,509 +60,8 @@ interface EnumExtensions {
61
60
  */
62
61
  'x-enumNames'?: ReadonlyArray<string>;
63
62
  }
64
- declare namespace types_d_exports {
65
- export { AccessLevel, FunctionParameter, FunctionTypeParameter, ObjectValue, SyntaxKindKeyword, createAnonymousFunction, createArrayLiteralExpression, createArrowFunction, createAsExpression, createAssignment, createAwaitExpression, createBlock, createConditionalExpression, createEnumDeclaration, createForOfStatement, createFunctionTypeNode, createGetAccessorDeclaration, createIndexedAccessTypeNode, createKeywordTypeNode, createLiteralTypeNode, createMappedTypeNode, createNamespaceDeclaration, createNewExpression, createNull, createObjectType, createParameterDeclaration, createPropertyAccessChain, createPropertyAccessExpression, createPropertyAssignment, createRegularExpressionLiteral, createStringLiteral, createTemplateLiteralType, createTypeAliasDeclaration, createTypeNode, createTypeOfExpression, createTypeOperatorNode, createTypeParameterDeclaration, createTypeParenthesizedNode, createTypeReferenceNode, syntaxKindKeyword, toExpression, toParameterDeclarations, toTypeParameters };
66
- }
67
- type AccessLevel = 'private' | 'protected' | 'public';
68
- type FunctionParameter = {
69
- accessLevel?: AccessLevel;
70
- default?: any;
71
- isReadOnly?: boolean;
72
- isRequired?: boolean;
73
- name: string;
74
- type?: any | ts.TypeNode;
75
- } | {
76
- destructure: ReadonlyArray<FunctionParameter>;
77
- type?: any | ts.TypeNode;
78
- };
79
- interface FunctionTypeParameter {
80
- default?: any;
81
- extends?: string | ts.TypeNode;
82
- name: string | ts.Identifier;
83
- }
84
- declare const createTypeNode: (base: any | ts.TypeNode, args?: (any | ts.TypeNode)[]) => ts.TypeNode;
85
- declare const createPropertyAccessChain: ({
86
- expression,
87
- name
88
- }: {
89
- expression: ts.Expression;
90
- name: string | ts.MemberName;
91
- }) => ts.PropertyAccessChain;
92
- declare const createPropertyAccessExpression: ({
93
- expression,
94
- isOptional,
95
- name
96
- }: {
97
- expression: string | ts.Expression;
98
- isOptional?: boolean;
99
- name: string | number | ts.MemberName;
100
- }) => ts.PropertyAccessChain | ts.PropertyAccessExpression | ts.ElementAccessExpression;
101
- declare const createNull: () => ts.NullLiteral;
102
- /**
103
- * Convert an unknown value to an expression.
104
- * @param identifiers - list of keys that are treated as identifiers.
105
- * @param shorthand - if shorthand syntax is allowed.
106
- * @param unescape - if string should be unescaped.
107
- * @param value - the unknown value.
108
- * @returns ts.Expression
109
- */
110
- declare const toExpression: <T = unknown>({
111
- identifiers,
112
- isValueAccess,
113
- shorthand,
114
- unescape,
115
- value
116
- }: {
117
- identifiers?: string[];
118
- isValueAccess?: boolean;
119
- shorthand?: boolean;
120
- unescape?: boolean;
121
- value: T;
122
- }) => ts.Expression | undefined;
123
- /**
124
- * Convert parameters to the declaration array expected by TypeScript
125
- * Compiler API.
126
- * @param parameters - the parameters to convert to declarations
127
- * @returns ts.ParameterDeclaration[]
128
- */
129
- declare const toParameterDeclarations: (parameters: ReadonlyArray<FunctionParameter>) => ts.ParameterDeclaration[];
130
- type SyntaxKindKeyword = 'any' | 'async' | 'boolean' | 'export' | 'never' | 'number' | 'private' | 'protected' | 'public' | 'readonly' | 'static' | 'string' | 'undefined' | 'unknown' | 'void';
131
- declare const syntaxKindKeyword: <T extends SyntaxKindKeyword>({
132
- keyword
133
- }: {
134
- keyword: T;
135
- }) => T extends "protected" ? ts.SyntaxKind.ProtectedKeyword : T extends "public" ? ts.SyntaxKind.PublicKeyword : T extends "private" ? ts.SyntaxKind.PrivateKeyword : T extends "export" ? ts.SyntaxKind.ExportKeyword : T extends "async" ? ts.SyntaxKind.ExportKeyword : T extends "readonly" ? ts.SyntaxKind.ExportKeyword : T extends "static" ? ts.SyntaxKind.ExportKeyword : ts.SyntaxKind.AnyKeyword | ts.SyntaxKind.BooleanKeyword | ts.SyntaxKind.NeverKeyword | ts.SyntaxKind.NumberKeyword | ts.SyntaxKind.StringKeyword | ts.SyntaxKind.UndefinedKeyword | ts.SyntaxKind.UnknownKeyword | ts.SyntaxKind.VoidKeyword;
136
- declare const createKeywordTypeNode: ({
137
- keyword
138
- }: {
139
- keyword: Extract<SyntaxKindKeyword, "any" | "boolean" | "never" | "number" | "string" | "undefined" | "unknown" | "void">;
140
- }) => ts.KeywordTypeNode<ts.SyntaxKind.VoidKeyword | ts.SyntaxKind.AnyKeyword | ts.SyntaxKind.BooleanKeyword | ts.SyntaxKind.NeverKeyword | ts.SyntaxKind.NumberKeyword | ts.SyntaxKind.StringKeyword | ts.SyntaxKind.UndefinedKeyword | ts.SyntaxKind.UnknownKeyword>;
141
- declare const toTypeParameters: (types: (FunctionTypeParameter | ts.TypeParameterDeclaration)[]) => ts.TypeParameterDeclaration[];
142
- declare const createTypeOperatorNode: ({
143
- operator,
144
- type
145
- }: {
146
- operator: "keyof" | "readonly" | "unique";
147
- type: ts.TypeNode;
148
- }) => ts.TypeOperatorNode;
149
- declare const createTypeParameterDeclaration: ({
150
- constraint,
151
- defaultType,
152
- modifiers,
153
- name
154
- }: {
155
- constraint?: ts.TypeNode;
156
- defaultType?: ts.TypeNode;
157
- modifiers?: Array<ts.Modifier>;
158
- name: string | ts.Identifier;
159
- }) => ts.TypeParameterDeclaration;
160
- declare const createMappedTypeNode: ({
161
- members,
162
- nameType,
163
- questionToken,
164
- readonlyToken,
165
- type,
166
- typeParameter
167
- }: {
168
- members?: ts.NodeArray<ts.TypeElement>;
169
- nameType?: ts.TypeNode;
170
- questionToken?: ts.QuestionToken | ts.PlusToken | ts.MinusToken;
171
- readonlyToken?: ts.ReadonlyKeyword | ts.PlusToken | ts.MinusToken;
172
- type?: ts.TypeNode;
173
- typeParameter: ts.TypeParameterDeclaration;
174
- }) => ts.MappedTypeNode;
175
- declare const createLiteralTypeNode: ({
176
- literal
177
- }: {
178
- literal: ts.LiteralTypeNode["literal"];
179
- }) => ts.LiteralTypeNode;
180
- /**
181
- * Create arrow function type expression.
182
- */
183
- declare const createArrowFunction: ({
184
- async,
185
- comment,
186
- multiLine,
187
- parameters,
188
- returnType,
189
- statements,
190
- types
191
- }: {
192
- async?: boolean;
193
- comment?: Comments;
194
- multiLine?: boolean;
195
- parameters?: ReadonlyArray<FunctionParameter>;
196
- returnType?: string | ts.TypeNode;
197
- statements?: ts.Statement[] | ts.Expression;
198
- types?: FunctionTypeParameter[];
199
- }) => ts.ArrowFunction;
200
- /**
201
- * Create anonymous function type expression.
202
- */
203
- declare const createAnonymousFunction: ({
204
- async,
205
- comment,
206
- multiLine,
207
- parameters,
208
- returnType,
209
- statements,
210
- types
211
- }: {
212
- async?: boolean;
213
- comment?: Comments;
214
- multiLine?: boolean;
215
- parameters?: FunctionParameter[];
216
- returnType?: string | ts.TypeNode;
217
- statements?: ReadonlyArray<ts.Statement>;
218
- types?: FunctionTypeParameter[];
219
- }) => ts.FunctionExpression;
220
- /**
221
- * Create Array type expression.
222
- */
223
- declare const createArrayLiteralExpression: <T>({
224
- elements,
225
- multiLine
226
- }: {
227
- /**
228
- * The array to create.
229
- */
230
- elements: T[];
231
- /**
232
- * Should the array be multi line?
233
- *
234
- * @default false
235
- */
236
- multiLine?: boolean;
237
- }) => ts.ArrayLiteralExpression;
238
- declare const createAwaitExpression: ({
239
- expression
240
- }: {
241
- expression: ts.Expression;
242
- }) => ts.AwaitExpression;
243
- declare const createFunctionTypeNode: ({
244
- parameters,
245
- returnType,
246
- typeParameters
247
- }: {
248
- parameters?: ts.ParameterDeclaration[];
249
- returnType: ts.TypeNode;
250
- typeParameters?: ts.TypeParameterDeclaration[];
251
- }) => ts.FunctionTypeNode;
252
- type ObjectValue = {
253
- assertion?: 'any' | ts.TypeNode;
254
- comments?: Comments;
255
- spread: string;
256
- } | {
257
- comments?: Comments;
258
- isValueAccess?: boolean;
259
- key: string;
260
- shorthand?: boolean;
261
- value: any;
262
- };
263
- /**
264
- * Create Object type expression.
265
- * @param comments - comments to add to each property.
266
- * @param identifier - keys that should be treated as identifiers.
267
- * @param multiLine - if the object should be multiline.
268
- * @param obj - the object to create expression with.
269
- * @param shorthand - if shorthand syntax should be used.
270
- * @param unescape - if properties strings should be unescaped.
271
- * @returns ts.ObjectLiteralExpression
272
- */
273
- declare const createObjectType: <T extends Record<string, any> | Array<ObjectValue>>({
274
- comments,
275
- identifiers,
276
- multiLine,
277
- obj,
278
- shorthand,
279
- unescape
280
- }: {
281
- comments?: Comments;
282
- identifiers?: string[];
283
- multiLine?: boolean;
284
- obj: T;
285
- shorthand?: boolean;
286
- unescape?: boolean;
287
- }) => ts.ObjectLiteralExpression;
288
- /**
289
- * Create enum declaration. Example `export enum T = { X, Y };`
290
- * @param asConst - whether to use const enums.
291
- * @param comments - comments to add to each property.
292
- * @param leadingComment - leading comment to add to enum.
293
- * @param name - the name of the enum.
294
- * @param obj - the object representing the enum.
295
- * @returns ts.EnumDeclaration
296
- */
297
- declare const createEnumDeclaration: <T extends Record<string, any> | Array<ObjectValue>>({
298
- asConst,
299
- comments: enumMemberComments,
300
- leadingComment: comments,
301
- name,
302
- obj
303
- }: {
304
- asConst: boolean;
305
- comments?: Record<string | number, Comments>;
306
- leadingComment?: Comments;
307
- name: string | ts.TypeReferenceNode;
308
- obj: T;
309
- }) => ts.EnumDeclaration;
310
- /**
311
- * Create namespace declaration. Example `export namespace MyNamespace { ... }`
312
- * @param name - the name of the namespace.
313
- * @param nodes - the nodes in the namespace.
314
- * @returns
315
- */
316
- declare const createNamespaceDeclaration: ({
317
- name,
318
- statements
319
- }: {
320
- name: string;
321
- statements: Array<ts.Statement>;
322
- }) => ts.ModuleDeclaration;
323
- declare const createIndexedAccessTypeNode: ({
324
- indexType,
325
- objectType
326
- }: {
327
- indexType: ts.TypeNode;
328
- objectType: ts.TypeNode;
329
- }) => ts.IndexedAccessTypeNode;
330
- declare const createGetAccessorDeclaration: ({
331
- modifiers,
332
- name,
333
- returnType,
334
- statements
335
- }: {
336
- modifiers?: Modifier | ReadonlyArray<Modifier>;
337
- name: string | ts.PropertyName;
338
- returnType?: string | ts.Identifier;
339
- statements: ReadonlyArray<ts.Statement>;
340
- }) => ts.GetAccessorDeclaration;
341
- declare const createStringLiteral: ({
342
- isSingleQuote,
343
- text
344
- }: {
345
- isSingleQuote?: boolean;
346
- text: string;
347
- }) => ts.StringLiteral;
348
- declare const createConditionalExpression: ({
349
- condition,
350
- whenFalse,
351
- whenTrue
352
- }: {
353
- condition: ts.Expression;
354
- whenFalse: ts.Expression;
355
- whenTrue: ts.Expression;
356
- }) => ts.ConditionalExpression;
357
- declare const createTypeOfExpression: ({
358
- text
359
- }: {
360
- text: string | ts.Identifier;
361
- }) => ts.TypeOfExpression;
362
- /**
363
- * Create a type alias declaration. Example `export type X = Y;`.
364
- * @param comment (optional) comments to add
365
- * @param name the name of the type
366
- * @param type the type
367
- * @returns ts.TypeAliasDeclaration
368
- */
369
- declare const createTypeAliasDeclaration: ({
370
- comment,
371
- exportType,
372
- name,
373
- type,
374
- typeParameters
375
- }: {
376
- comment?: Comments;
377
- exportType?: boolean;
378
- name: string | ts.TypeReferenceNode;
379
- type: string | ts.TypeNode | ts.Identifier;
380
- typeParameters?: FunctionTypeParameter[];
381
- }) => ts.TypeAliasDeclaration;
382
- declare const createTypeReferenceNode: ({
383
- typeArguments,
384
- typeName
385
- }: {
386
- typeArguments?: ts.TypeNode[];
387
- typeName: string | ts.EntityName;
388
- }) => ts.TypeReferenceNode;
389
- declare const createTypeParenthesizedNode: ({
390
- type
391
- }: {
392
- type: ts.TypeNode;
393
- }) => ts.ParenthesizedTypeNode;
394
- declare const createParameterDeclaration: ({
395
- initializer,
396
- modifiers,
397
- name,
398
- required,
399
- type
400
- }: {
401
- initializer?: ts.Expression;
402
- modifiers?: ReadonlyArray<ts.ModifierLike>;
403
- name: string | ts.BindingName;
404
- required?: boolean;
405
- type?: ts.TypeNode;
406
- }) => ts.ParameterDeclaration;
407
- declare const createNewExpression: ({
408
- argumentsArray,
409
- expression,
410
- typeArguments
411
- }: {
412
- argumentsArray?: Array<ts.Expression>;
413
- expression: ts.Expression;
414
- typeArguments?: Array<ts.TypeNode>;
415
- }) => ts.NewExpression;
416
- declare const createForOfStatement: ({
417
- awaitModifier,
418
- expression,
419
- initializer,
420
- statement
421
- }: {
422
- awaitModifier?: ts.AwaitKeyword;
423
- expression: ts.Expression;
424
- initializer: ts.ForInitializer;
425
- statement: ts.Statement;
426
- }) => ts.ForOfStatement;
427
- declare const createAssignment: ({
428
- left,
429
- right
430
- }: {
431
- left: ts.Expression;
432
- right: ts.Expression;
433
- }) => ts.AssignmentExpression<ts.EqualsToken>;
434
- declare const createBlock: ({
435
- multiLine,
436
- statements
437
- }: {
438
- multiLine?: boolean;
439
- statements: ReadonlyArray<ts.Statement>;
440
- }) => ts.Block;
441
- declare const createPropertyAssignment: ({
442
- initializer,
443
- name
444
- }: {
445
- initializer: ts.Expression;
446
- name: string | ts.PropertyName;
447
- }) => ts.PropertyAssignment;
448
- declare const createRegularExpressionLiteral: ({
449
- flags,
450
- text
451
- }: {
452
- flags?: ReadonlyArray<"g" | "i" | "m" | "s" | "u" | "y">;
453
- text: string;
454
- }) => ts.RegularExpressionLiteral;
455
- declare const createAsExpression: ({
456
- expression,
457
- type
458
- }: {
459
- expression: ts.Expression;
460
- type: ts.TypeNode;
461
- }) => ts.AsExpression;
462
- declare const createTemplateLiteralType: ({
463
- value
464
- }: {
465
- value: ReadonlyArray<string | ts.TypeNode>;
466
- }) => ts.TemplateLiteralTypeNode;
467
- //#endregion
468
- //#region src/tsc/utils.d.ts
469
- interface ImportExportItemObject<Name extends string | undefined = string | undefined, Alias extends string | undefined = undefined> {
470
- alias?: Alias;
471
- asType?: boolean;
472
- name: Name;
473
- }
474
- /**
475
- * Print a TypeScript node to a string.
476
- * @param node the node to print
477
- * @returns string
478
- */
479
- declare function tsNodeToString({
480
- node,
481
- unescape
482
- }: {
483
- node: ts.Node;
484
- unescape?: boolean;
485
- }): string;
486
- type Modifier = AccessLevel | 'async' | 'export' | 'readonly' | 'static';
487
- type CommentLines = Array<string | null | false | undefined>;
488
- type CommentObject = {
489
- jsdoc?: boolean;
490
- lines: CommentLines;
491
- };
492
- type Comments = CommentLines | Array<CommentObject>;
493
- //#endregion
494
- //#region src/generate/file.d.ts
495
- type FileImportResult<Name extends string | undefined = string | undefined, Alias extends string | undefined = undefined> = {
496
- asType?: boolean;
497
- name: Alias extends string ? Alias : Name;
498
- };
499
- /**
500
- * TODO: remove, it's used by legacy plugins
501
- *
502
- * @deprecated
503
- */
504
- declare class GeneratedFile {
505
- /**
506
- * Should the exports from this file be re-exported in the index barrel file?
507
- */
508
- private _exportFromIndex;
509
- private _headers;
510
- private _id;
511
- private _imports;
512
- private _items;
513
- private _name;
514
- private _path;
515
- constructor({
516
- dir,
517
- exportFromIndex,
518
- header,
519
- id,
520
- name
521
- }: {
522
- dir: string;
523
- /**
524
- * Should the exports from this file be re-exported in the index barrel file?
525
- */
526
- exportFromIndex?: boolean;
527
- header?: boolean;
528
- /**
529
- * Unique file ID. Used to generate correct relative paths to the file.
530
- * This should be refactored later as it's basically the file name unless
531
- * nested inside another folder.
532
- */
533
- id: string;
534
- name: string;
535
- });
536
- add(...nodes: Array<ts.Node | string>): void;
537
- get exportFromIndex(): boolean;
538
- get id(): string;
539
- /**
540
- * Adds an import to the provided module. Handles duplication, returns added
541
- * import. Returns the imported name. If we import an aliased export, `name`
542
- * will be equal to the specified `alias`.
543
- */
544
- import<Name extends string | undefined = string | undefined, Alias extends string | undefined = undefined>({
545
- module,
546
- ...importedItem
547
- }: ImportExportItemObject<Name, Alias> & {
548
- module: string;
549
- }): FileImportResult<Name, Alias>;
550
- isEmpty(): boolean;
551
- nameWithoutExtension(): string;
552
- remove(options?: Parameters<typeof fs.rmSync>[1]): void;
553
- /**
554
- * Removes last node form the stack. Works as undo.
555
- *
556
- * @deprecated
557
- */
558
- removeNode_LEGACY(): void;
559
- private _setName;
560
- private _toString;
561
- write(separator?: string, tsConfig?: ts.ParsedCommandLine | null): void;
562
- }
563
63
  //#endregion
564
64
  //#region src/types/utils.d.ts
565
- /** @deprecated */
566
- type Files = Record<string, GeneratedFile>;
567
65
  /**
568
66
  * Accepts a value, a function returning a value, or a function returning a promise of a value.
569
67
  */
@@ -1466,7 +964,7 @@ interface LinkObject$1 {
1466
964
  * $ref: "#/components/examples/frog-example"
1467
965
  * ```
1468
966
  */
1469
- interface MediaTypeObject$2 {
967
+ interface MediaTypeObject$1 {
1470
968
  /**
1471
969
  * A map between a property name and its encoding information. The key, being the property name, MUST exist in the schema as a property. The encoding object SHALL only apply to `requestBody` objects when the media type is `multipart` or `application/x-www-form-urlencoded`.
1472
970
  */
@@ -1756,7 +1254,7 @@ interface ParameterObject {
1756
1254
  /**
1757
1255
  * A map containing the representations for the parameter. The key is the media type and the value describes it. The map MUST only contain one entry.
1758
1256
  */
1759
- content?: Record<string, MediaTypeObject$2>;
1257
+ content?: Record<string, MediaTypeObject$1>;
1760
1258
  /**
1761
1259
  * Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is `false`.
1762
1260
  */
@@ -2045,7 +1543,7 @@ interface RequestBodyObject {
2045
1543
  /**
2046
1544
  * **REQUIRED**. The content of the request body. The key is a media type or {@link https://tools.ietf.org/html/rfc7231#appendix-D media type range} and the value describes it. For requests that match multiple keys, only the most specific key is applicable. e.g. text/plain overrides text/*
2047
1545
  */
2048
- content: Record<string, MediaTypeObject$2>;
1546
+ content: Record<string, MediaTypeObject$1>;
2049
1547
  /**
2050
1548
  * A brief description of the request body. This could contain examples of use. {@link https://spec.commonmark.org/ CommonMark syntax} MAY be used for rich text representation.
2051
1549
  */
@@ -2120,7 +1618,7 @@ interface ResponseObject {
2120
1618
  /**
2121
1619
  * A map containing descriptions of potential response payloads. The key is a media type or {@link https://datatracker.ietf.org/doc/html/rfc7231#appendix-D media type range} and the value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g. text/plain overrides text/*
2122
1620
  */
2123
- content?: Record<string, MediaTypeObject$2>;
1621
+ content?: Record<string, MediaTypeObject$1>;
2124
1622
  /**
2125
1623
  * **REQUIRED**. A description of the response. {@link https://spec.commonmark.org/ CommonMark syntax} MAY be used for rich text representation.
2126
1624
  */
@@ -3306,7 +2804,7 @@ type StringName = string | ((name: string) => string);
3306
2804
  type IApi$20 = any;
3307
2805
  //#endregion
3308
2806
  //#region src/plugins/@angular/common/types.d.ts
3309
- type UserConfig$27 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
2807
+ type UserConfig$22 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
3310
2808
  /**
3311
2809
  * Should the exports from the generated files be re-exported in the index
3312
2810
  * barrel file?
@@ -3437,7 +2935,7 @@ type Config$20 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
3437
2935
  methodNameBuilder: (operation: IR.OperationObject) => string;
3438
2936
  };
3439
2937
  };
3440
- type AngularCommonPlugin = DefinePlugin<UserConfig$27, Config$20, IApi$20>;
2938
+ type AngularCommonPlugin = DefinePlugin<UserConfig$22, Config$20, IApi$20>;
3441
2939
  //#endregion
3442
2940
  //#region src/plugins/@hey-api/client-core/bundle/auth.d.ts
3443
2941
  type AuthToken = string | undefined;
@@ -3487,7 +2985,7 @@ type QuerySerializerOptions = QuerySerializerOptionsObject & {
3487
2985
  //#endregion
3488
2986
  //#region src/plugins/@hey-api/client-core/bundle/types.d.ts
3489
2987
  type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
3490
- type Client$3<RequestFn$6 = never, Config$21 = unknown, MethodFn$6 = never, BuildUrlFn$6 = never, SseFn$6 = never> = {
2988
+ type Client$1<RequestFn$6 = never, Config$21 = unknown, MethodFn$6 = never, BuildUrlFn$6 = never, SseFn$6 = never> = {
3491
2989
  /**
3492
2990
  * Returns the final request URL.
3493
2991
  */
@@ -3732,7 +3230,7 @@ type BuildUrlFn$5 = <TData extends {
3732
3230
  query?: Record<string, unknown>;
3733
3231
  url: string;
3734
3232
  }>(options: TData & Options$5<TData>) => string;
3735
- type Client$9 = Client$3<RequestFn$5, Config$19, MethodFn$5, BuildUrlFn$5, SseFn$5> & {
3233
+ type Client$7 = Client$1<RequestFn$5, Config$19, MethodFn$5, BuildUrlFn$5, SseFn$5> & {
3736
3234
  interceptors: Middleware$3<HttpRequest<unknown>, HttpResponse<unknown>, unknown, ResolvedRequestOptions$3>;
3737
3235
  requestOptions: RequestOptionsFn;
3738
3236
  };
@@ -3809,7 +3307,7 @@ type BuildUrlFn$4 = <TData extends {
3809
3307
  query?: Record<string, unknown>;
3810
3308
  url: string;
3811
3309
  }>(options: TData & Options$4<TData>) => string;
3812
- type Client$8 = Client$3<RequestFn$4, Config$18, MethodFn$4, BuildUrlFn$4, SseFn$4> & {
3310
+ type Client$6 = Client$1<RequestFn$4, Config$18, MethodFn$4, BuildUrlFn$4, SseFn$4> & {
3813
3311
  instance: AxiosInstance;
3814
3312
  };
3815
3313
  interface TDataShape$4 {
@@ -3826,7 +3324,7 @@ type Options$4<TData extends TDataShape$4 = TDataShape$4, ThrowOnError extends b
3826
3324
  type IApi$19 = any;
3827
3325
  //#endregion
3828
3326
  //#region src/plugins/@hey-api/client-axios/types.d.ts
3829
- type UserConfig$26 = Plugin.Name<'@hey-api/client-axios'> & Client$2.Config & {
3327
+ type UserConfig$21 = Plugin.Name<'@hey-api/client-axios'> & Client.Config & {
3830
3328
  /**
3831
3329
  * Throw an error instead of returning it in the response?
3832
3330
  *
@@ -3834,7 +3332,7 @@ type UserConfig$26 = Plugin.Name<'@hey-api/client-axios'> & Client$2.Config & {
3834
3332
  */
3835
3333
  throwOnError?: boolean;
3836
3334
  };
3837
- type HeyApiClientAxiosPlugin = DefinePlugin<UserConfig$26, UserConfig$26, IApi$19>;
3335
+ type HeyApiClientAxiosPlugin = DefinePlugin<UserConfig$21, UserConfig$21, IApi$19>;
3838
3336
  //#endregion
3839
3337
  //#region src/plugins/@hey-api/client-fetch/bundle/utils.d.ts
3840
3338
  type ErrInterceptor$2<Err, Res, Req, Options$6> = (error: Err, response: Res, request: Req, options: Options$6) => Err | Promise<Err>;
@@ -3947,7 +3445,7 @@ type BuildUrlFn$3 = <TData extends {
3947
3445
  query?: Record<string, unknown>;
3948
3446
  url: string;
3949
3447
  }>(options: TData & Options$3<TData>) => string;
3950
- type Client$7 = Client$3<RequestFn$3, Config$17, MethodFn$3, BuildUrlFn$3, SseFn$3> & {
3448
+ type Client$5 = Client$1<RequestFn$3, Config$17, MethodFn$3, BuildUrlFn$3, SseFn$3> & {
3951
3449
  interceptors: Middleware$2<Request, Response, unknown, ResolvedRequestOptions$2>;
3952
3450
  };
3953
3451
  interface TDataShape$3 {
@@ -3964,7 +3462,7 @@ type Options$3<TData extends TDataShape$3 = TDataShape$3, ThrowOnError extends b
3964
3462
  type IApi$18 = any;
3965
3463
  //#endregion
3966
3464
  //#region src/plugins/@hey-api/client-fetch/types.d.ts
3967
- type UserConfig$25 = Plugin.Name<'@hey-api/client-fetch'> & Client$2.Config & {
3465
+ type UserConfig$20 = Plugin.Name<'@hey-api/client-fetch'> & Client.Config & {
3968
3466
  /**
3969
3467
  * Throw an error instead of returning it in the response?
3970
3468
  *
@@ -3972,7 +3470,7 @@ type UserConfig$25 = Plugin.Name<'@hey-api/client-fetch'> & Client$2.Config & {
3972
3470
  */
3973
3471
  throwOnError?: boolean;
3974
3472
  };
3975
- type HeyApiClientFetchPlugin = DefinePlugin<UserConfig$25, UserConfig$25, IApi$18>;
3473
+ type HeyApiClientFetchPlugin = DefinePlugin<UserConfig$20, UserConfig$20, IApi$18>;
3976
3474
  //#endregion
3977
3475
  //#region src/plugins/@hey-api/client-next/bundle/utils.d.ts
3978
3476
  type ErrInterceptor$1<Err, Res, Options$6> = (error: Err, response: Res, options: Options$6) => Err | Promise<Err>;
@@ -4067,7 +3565,7 @@ type BuildUrlFn$2 = <TData extends {
4067
3565
  query?: Record<string, unknown>;
4068
3566
  url: string;
4069
3567
  }>(options: TData & Options$2<TData>) => string;
4070
- type Client$6 = Client$3<RequestFn$2, Config$16, MethodFn$2, BuildUrlFn$2, SseFn$2> & {
3568
+ type Client$4 = Client$1<RequestFn$2, Config$16, MethodFn$2, BuildUrlFn$2, SseFn$2> & {
4071
3569
  interceptors: Middleware$1<Response, unknown, ResolvedRequestOptions$1>;
4072
3570
  };
4073
3571
  interface TDataShape$2 {
@@ -4084,7 +3582,7 @@ type Options$2<TData extends TDataShape$2 = TDataShape$2, ThrowOnError extends b
4084
3582
  type IApi$17 = any;
4085
3583
  //#endregion
4086
3584
  //#region src/plugins/@hey-api/client-next/types.d.ts
4087
- type UserConfig$24 = Plugin.Name<'@hey-api/client-next'> & Client$2.Config & {
3585
+ type UserConfig$19 = Plugin.Name<'@hey-api/client-next'> & Client.Config & {
4088
3586
  /**
4089
3587
  * Throw an error instead of returning it in the response?
4090
3588
  *
@@ -4092,10 +3590,10 @@ type UserConfig$24 = Plugin.Name<'@hey-api/client-next'> & Client$2.Config & {
4092
3590
  */
4093
3591
  throwOnError?: boolean;
4094
3592
  };
4095
- type HeyApiClientNextPlugin = DefinePlugin<UserConfig$24, UserConfig$24, IApi$17>;
3593
+ type HeyApiClientNextPlugin = DefinePlugin<UserConfig$19, UserConfig$19, IApi$17>;
4096
3594
  //#endregion
4097
3595
  //#region src/plugins/@hey-api/client-nuxt/bundle/types.d.ts
4098
- type QuerySerializer = (query: Parameters<Client$5['buildUrl']>[0]['query']) => string;
3596
+ type QuerySerializer = (query: Parameters<Client$3['buildUrl']>[0]['query']) => string;
4099
3597
  type WithRefs<TData> = { [K in keyof TData]: NonNullable<TData[K]> extends object ? WithRefs<NonNullable<TData[K]>> | Ref<NonNullable<TData[K]>> : NonNullable<TData[K]> | Ref<NonNullable<TData[K]>> };
4100
3598
  type KeysOf<T> = Array<T extends T ? (keyof T extends string ? keyof T : never) : never>;
4101
3599
  interface Config$15<T extends ClientOptions$1 = ClientOptions$1> extends Omit<FetchOptions$1<unknown>, 'baseURL' | 'body' | 'headers' | 'method' | 'query'>, WithRefs<Pick<FetchOptions$1<unknown>, 'query'>>, Omit<Config$13, 'querySerializer'> {
@@ -4157,7 +3655,7 @@ interface TDataShape$1 {
4157
3655
  }
4158
3656
  type BuildUrlOptions<TData extends Omit<TDataShape$1, 'headers'> = Omit<TDataShape$1, 'headers'>> = Pick<WithRefs<TData>, 'path' | 'query'> & Pick<TData, 'url'> & Pick<Options$1<'$fetch', TData>, 'baseURL' | 'querySerializer'>;
4159
3657
  type BuildUrlFn$1 = <TData extends Omit<TDataShape$1, 'headers'>>(options: BuildUrlOptions<TData>) => string;
4160
- type Client$5 = Client$3<RequestFn$1, Config$15, MethodFn$1, BuildUrlFn$1, SseFn$1>;
3658
+ type Client$3 = Client$1<RequestFn$1, Config$15, MethodFn$1, BuildUrlFn$1, SseFn$1>;
4161
3659
  type OmitKeys$1<T, K$1> = Pick<T, Exclude<keyof T, K$1>>;
4162
3660
  type Options$1<TComposable extends Composable = '$fetch', TData extends TDataShape$1 = TDataShape$1, ResT = unknown, DefaultT = undefined> = OmitKeys$1<RequestOptions$1<TComposable, ResT, DefaultT>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : WithRefs<Omit<TData, 'url'>>);
4163
3661
  type FetchOptions$1<TData> = Omit<UseFetchOptions<TData, TData>, keyof AsyncDataOptions<TData>>;
@@ -4167,8 +3665,8 @@ type Composable = '$fetch' | 'useAsyncData' | 'useFetch' | 'useLazyAsyncData' |
4167
3665
  type IApi$16 = any;
4168
3666
  //#endregion
4169
3667
  //#region src/plugins/@hey-api/client-nuxt/types.d.ts
4170
- type UserConfig$23 = Plugin.Name<'@hey-api/client-nuxt'> & Client$2.Config;
4171
- type HeyApiClientNuxtPlugin = DefinePlugin<UserConfig$23, UserConfig$23, IApi$16>;
3668
+ type UserConfig$18 = Plugin.Name<'@hey-api/client-nuxt'> & Client.Config;
3669
+ type HeyApiClientNuxtPlugin = DefinePlugin<UserConfig$18, UserConfig$18, IApi$16>;
4172
3670
  //#endregion
4173
3671
  //#region src/plugins/@hey-api/client-ofetch/bundle/utils.d.ts
4174
3672
  type ErrInterceptor<Err, Res, Req, Options$6> = (error: Err, response: Res, request: Req, options: Options$6) => Err | Promise<Err>;
@@ -4341,7 +3839,7 @@ type BuildUrlFn = <TData extends {
4341
3839
  query?: Record<string, unknown>;
4342
3840
  url: string;
4343
3841
  }>(options: TData & Options<TData>) => string;
4344
- type Client$4 = Client$3<RequestFn, Config$14, MethodFn, BuildUrlFn, SseFn> & {
3842
+ type Client$2 = Client$1<RequestFn, Config$14, MethodFn, BuildUrlFn, SseFn> & {
4345
3843
  interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
4346
3844
  };
4347
3845
  interface TDataShape {
@@ -4358,7 +3856,7 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
4358
3856
  type IApi$15 = any;
4359
3857
  //#endregion
4360
3858
  //#region src/plugins/@hey-api/client-ofetch/types.d.ts
4361
- type UserConfig$22 = Plugin.Name<'@hey-api/client-ofetch'> & Client$2.Config & {
3859
+ type UserConfig$17 = Plugin.Name<'@hey-api/client-ofetch'> & Client.Config & {
4362
3860
  /**
4363
3861
  * Throw an error instead of returning it in the response?
4364
3862
  *
@@ -4366,7 +3864,7 @@ type UserConfig$22 = Plugin.Name<'@hey-api/client-ofetch'> & Client$2.Config & {
4366
3864
  */
4367
3865
  throwOnError?: boolean;
4368
3866
  };
4369
- type HeyApiClientOfetchPlugin = DefinePlugin<UserConfig$22, UserConfig$22, IApi$15>;
3867
+ type HeyApiClientOfetchPlugin = DefinePlugin<UserConfig$17, UserConfig$17, IApi$15>;
4370
3868
  //#endregion
4371
3869
  //#region src/plugins/@hey-api/client-core/types.d.ts
4372
3870
  interface PluginHandler {
@@ -4380,7 +3878,7 @@ interface PluginHandler {
4380
3878
  /**
4381
3879
  * Public Client API.
4382
3880
  */
4383
- declare namespace Client$2 {
3881
+ declare namespace Client {
4384
3882
  export type Config = Plugin.Hooks & {
4385
3883
  /**
4386
3884
  * Set a default base URL when creating the client? You can set `baseUrl`
@@ -4439,7 +3937,7 @@ declare namespace Client$2 {
4439
3937
  type IApi$14 = any;
4440
3938
  //#endregion
4441
3939
  //#region src/plugins/@hey-api/client-angular/types.d.ts
4442
- type UserConfig$21 = Plugin.Name<'@hey-api/client-angular'> & Client$2.Config & {
3940
+ type UserConfig$16 = Plugin.Name<'@hey-api/client-angular'> & Client.Config & {
4443
3941
  /**
4444
3942
  * Throw an error instead of returning it in the response?
4445
3943
  *
@@ -4447,27 +3945,7 @@ type UserConfig$21 = Plugin.Name<'@hey-api/client-angular'> & Client$2.Config &
4447
3945
  */
4448
3946
  throwOnError?: boolean;
4449
3947
  };
4450
- type HeyApiClientAngularPlugin = DefinePlugin<UserConfig$21, UserConfig$21, IApi$14>;
4451
- //#endregion
4452
- //#region src/plugins/@hey-api/legacy-angular/types.d.ts
4453
- type UserConfig$20 = Plugin.Name<'legacy/angular'> & Pick<Client$2.Config, 'output'>;
4454
- type HeyApiClientLegacyAngularPlugin = DefinePlugin<UserConfig$20>;
4455
- //#endregion
4456
- //#region src/plugins/@hey-api/legacy-axios/types.d.ts
4457
- type UserConfig$19 = Plugin.Name<'legacy/axios'> & Pick<Client$2.Config, 'output'>;
4458
- type HeyApiClientLegacyAxiosPlugin = DefinePlugin<UserConfig$19>;
4459
- //#endregion
4460
- //#region src/plugins/@hey-api/legacy-fetch/types.d.ts
4461
- type UserConfig$18 = Plugin.Name<'legacy/fetch'> & Pick<Client$2.Config, 'output'>;
4462
- type HeyApiClientLegacyFetchPlugin = DefinePlugin<UserConfig$18>;
4463
- //#endregion
4464
- //#region src/plugins/@hey-api/legacy-node/types.d.ts
4465
- type UserConfig$17 = Plugin.Name<'legacy/node'> & Pick<Client$2.Config, 'output'>;
4466
- type HeyApiClientLegacyNodePlugin = DefinePlugin<UserConfig$17>;
4467
- //#endregion
4468
- //#region src/plugins/@hey-api/legacy-xhr/types.d.ts
4469
- type UserConfig$16 = Plugin.Name<'legacy/xhr'> & Pick<Client$2.Config, 'output'>;
4470
- type HeyApiClientLegacyXhrPlugin = DefinePlugin<UserConfig$16>;
3948
+ type HeyApiClientAngularPlugin = DefinePlugin<UserConfig$16, UserConfig$16, IApi$14>;
4471
3949
  //#endregion
4472
3950
  //#region src/openApi/2.0.x/types/json-schema-draft-4.d.ts
4473
3951
  interface JsonSchemaDraft4 extends EnumExtensions {
@@ -6537,7 +6015,7 @@ interface LinkObject {
6537
6015
  *
6538
6016
  * TODO: examples
6539
6017
  */
6540
- interface MediaTypeObject$1 {
6018
+ interface MediaTypeObject {
6541
6019
  /**
6542
6020
  * A map between a property name and its encoding information. The key, being the property name, MUST exist in the schema as a property. The `encoding` field SHALL only apply to {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#request-body-object Request Body Objects}, and only when the media type is `multipart` or `application/x-www-form-urlencoded`. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object.
6543
6021
  */
@@ -6716,7 +6194,7 @@ interface ParameterObject$1 {
6716
6194
  /**
6717
6195
  * A map containing the representations for the parameter. The key is the media type and the value describes it. The map MUST only contain one entry.
6718
6196
  */
6719
- content?: Record<string, MediaTypeObject$1>;
6197
+ content?: Record<string, MediaTypeObject>;
6720
6198
  /**
6721
6199
  * Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is `false`.
6722
6200
  */
@@ -6879,7 +6357,7 @@ interface RequestBodyObject$1 {
6879
6357
  /**
6880
6358
  * **REQUIRED**. The content of the request body. The key is a media type or {@link https://tools.ietf.org/html/rfc7231#appendix-D media type range} and the value describes it. For requests that match multiple keys, only the most specific key is applicable. e.g. `"text/plain"` overrides `"text/*"`
6881
6359
  */
6882
- content: Record<string, MediaTypeObject$1>;
6360
+ content: Record<string, MediaTypeObject>;
6883
6361
  /**
6884
6362
  * A brief description of the request body. This could contain examples of use. {@link https://spec.commonmark.org/ CommonMark syntax} MAY be used for rich text representation.
6885
6363
  */
@@ -6900,7 +6378,7 @@ interface ResponseObject$1 {
6900
6378
  /**
6901
6379
  * A map containing descriptions of potential response payloads. The key is a media type or {@link https://tools.ietf.org/html/rfc7231#appendix-D media type range} and the value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g. `"text/plain"` overrides `"text/*"`
6902
6380
  */
6903
- content?: Record<string, MediaTypeObject$1>;
6381
+ content?: Record<string, MediaTypeObject>;
6904
6382
  /**
6905
6383
  * **REQUIRED**. A description of the response. {@link https://spec.commonmark.org/ CommonMark syntax} MAY be used for rich text representation.
6906
6384
  */
@@ -7436,7 +6914,7 @@ type UserConfig$15 = Plugin.Name<'@hey-api/schemas'> & Plugin.Hooks & {
7436
6914
  *
7437
6915
  * @default '{{name}}Schema'
7438
6916
  */
7439
- nameBuilder?: string | ((name: string, schema: OpenApiSchema | OpenApiSchema$1 | OpenApiV2_0_XTypes['SchemaObject'] | OpenApiV3_0_XTypes['ReferenceObject'] | OpenApiV3_0_XTypes['SchemaObject'] | OpenApiV3_1_XTypes['SchemaObject']) => string);
6917
+ nameBuilder?: string | ((name: string, schema: OpenApiV2_0_XTypes['SchemaObject'] | OpenApiV3_0_XTypes['ReferenceObject'] | OpenApiV3_0_XTypes['SchemaObject'] | OpenApiV3_1_XTypes['SchemaObject']) => string);
7440
6918
  /**
7441
6919
  * Choose schema type to generate. Select 'form' if you don't want
7442
6920
  * descriptions to reduce bundle size and you plan to use schemas
@@ -7448,17 +6926,6 @@ type UserConfig$15 = Plugin.Name<'@hey-api/schemas'> & Plugin.Hooks & {
7448
6926
  };
7449
6927
  type HeyApiSchemasPlugin = DefinePlugin<UserConfig$15, UserConfig$15, IApi$13>;
7450
6928
  //#endregion
7451
- //#region src/types/client.d.ts
7452
- interface Operation extends Omit<Operation$1, 'tags'> {
7453
- service: string;
7454
- }
7455
- interface Service extends Pick<Model, '$refs' | 'imports' | 'name'> {
7456
- operations: Operation[];
7457
- }
7458
- interface Client extends Omit<Client$1, 'operations'> {
7459
- services: Service[];
7460
- }
7461
- //#endregion
7462
6929
  //#region src/plugins/@hey-api/sdk/api.d.ts
7463
6930
  type IApi$12 = any;
7464
6931
  //#endregion
@@ -7534,9 +7001,9 @@ type UserConfig$14 = Plugin.Name<'@hey-api/sdk'> & Plugin.Hooks & {
7534
7001
  instance?: string | boolean;
7535
7002
  /**
7536
7003
  * Customise the name of methods within the service. By default,
7537
- * {@link IR.OperationObject.id} or {@link Operation.name} is used.
7004
+ * {@link IR.OperationObject.id} is used.
7538
7005
  */
7539
- methodNameBuilder?: (operation: IR$1.OperationObject | Operation) => string;
7006
+ methodNameBuilder?: (operation: IR$1.OperationObject) => string;
7540
7007
  // TODO: parser - rename operationId option to something like inferId?: boolean
7541
7008
  /**
7542
7009
  * Use operation ID to generate operation names?
@@ -7708,9 +7175,9 @@ type Config$12 = Plugin.Name<'@hey-api/sdk'> & Plugin.Hooks & {
7708
7175
  instance: string | boolean;
7709
7176
  /**
7710
7177
  * Customise the name of methods within the service. By default,
7711
- * {@link IR.OperationObject.id} or {@link Operation.name} is used.
7178
+ * {@link IR.OperationObject.id} is used.
7712
7179
  */
7713
- methodNameBuilder?: (operation: IR$1.OperationObject | Operation) => string;
7180
+ methodNameBuilder?: (operation: IR$1.OperationObject) => string;
7714
7181
  // TODO: parser - rename operationId option to something like inferId?: boolean
7715
7182
  /**
7716
7183
  * Use operation ID to generate operation names?
@@ -13142,21 +12609,114 @@ interface PluginConfigMap {
13142
12609
  '@tanstack/vue-query': TanStackVueQueryPlugin['Types'];
13143
12610
  arktype: ArktypePlugin['Types'];
13144
12611
  fastify: FastifyPlugin['Types'];
13145
- 'legacy/angular': HeyApiClientLegacyAngularPlugin['Types'];
13146
- 'legacy/axios': HeyApiClientLegacyAxiosPlugin['Types'];
13147
- 'legacy/fetch': HeyApiClientLegacyFetchPlugin['Types'];
13148
- 'legacy/node': HeyApiClientLegacyNodePlugin['Types'];
13149
- 'legacy/xhr': HeyApiClientLegacyXhrPlugin['Types'];
13150
12612
  valibot: ValibotPlugin['Types'];
13151
12613
  zod: ZodPlugin['Types'];
13152
12614
  }
13153
12615
  //#endregion
12616
+ //#region src/utils/logger.d.ts
12617
+ declare class Logger {
12618
+ private events;
12619
+ private end;
12620
+ /**
12621
+ * Recursively end all unended events in the event tree.
12622
+ * This ensures all events have end marks before measuring.
12623
+ */
12624
+ private endAllEvents;
12625
+ report(print?: boolean): PerformanceMeasure | undefined;
12626
+ private reportEvent;
12627
+ private start;
12628
+ private storeEvent;
12629
+ timeEvent(name: string): {
12630
+ mark: PerformanceMark;
12631
+ timeEnd: () => void;
12632
+ };
12633
+ }
12634
+ //#endregion
12635
+ //#region src/ir/context.d.ts
12636
+ declare class Context<Spec extends Record<string, any> = any> {
12637
+ /**
12638
+ * Configuration for parsing and generating the output. This
12639
+ * is a mix of user-provided and default values.
12640
+ */
12641
+ config: Config;
12642
+ /**
12643
+ * The code generation project instance used to manage files, symbols,
12644
+ */
12645
+ gen: Project;
12646
+ /**
12647
+ * The dependency graph built from the intermediate representation.
12648
+ */
12649
+ graph: Graph | undefined;
12650
+ /**
12651
+ * Intermediate representation model obtained from `spec`.
12652
+ */
12653
+ ir: IR$1.Model;
12654
+ /**
12655
+ * Logger instance.
12656
+ */
12657
+ logger: Logger;
12658
+ /**
12659
+ * The package metadata and utilities for the current context, constructed
12660
+ * from the provided dependencies. Used for managing package-related
12661
+ * information such as name, version, and dependency resolution during
12662
+ * code generation.
12663
+ */
12664
+ package: Package;
12665
+ /**
12666
+ * A map of registered plugin instances, keyed by plugin name. Plugins are
12667
+ * registered through the `registerPlugin` method and can be accessed by
12668
+ * their configured name from the config.
12669
+ */
12670
+ plugins: Partial<Record<PluginNames, PluginInstance<PluginConfigMap[keyof PluginConfigMap]>>>;
12671
+ /**
12672
+ * Resolved specification from `input`.
12673
+ */
12674
+ spec: Spec;
12675
+ constructor({
12676
+ config,
12677
+ dependencies,
12678
+ logger,
12679
+ spec
12680
+ }: {
12681
+ config: Config;
12682
+ dependencies: Record<string, string>;
12683
+ logger: Logger;
12684
+ spec: Spec;
12685
+ });
12686
+ /**
12687
+ * Returns a resolved and dereferenced schema from `spec`.
12688
+ */
12689
+ dereference<T>(schema: {
12690
+ $ref: string;
12691
+ }): T;
12692
+ /**
12693
+ * Registers a new plugin to the global context.
12694
+ *
12695
+ * @param name Plugin name.
12696
+ * @returns Registered plugin instance.
12697
+ */
12698
+ private registerPlugin;
12699
+ /**
12700
+ * Registers all plugins in the order specified by the configuration and returns
12701
+ * an array of the registered PluginInstance objects. Each plugin is instantiated
12702
+ * and added to the context's plugins map.
12703
+ *
12704
+ * @returns {ReadonlyArray<PluginInstance>} An array of registered plugin instances in order.
12705
+ */
12706
+ registerPlugins(): ReadonlyArray<PluginInstance>;
12707
+ resolveIrRef<T>($ref: string): T;
12708
+ /**
12709
+ * Returns a resolved reference from `spec`.
12710
+ */
12711
+ resolveRef<T>($ref: string): T;
12712
+ }
12713
+ //#endregion
13154
12714
  //#region src/ir/graph.d.ts
13155
12715
  declare const irTopLevelKinds: readonly ["operation", "parameter", "requestBody", "schema", "server", "webhook"];
13156
12716
  type IrTopLevelKind = (typeof irTopLevelKinds)[number];
13157
12717
  //#endregion
13158
12718
  //#region src/openApi/types.d.ts
13159
- declare namespace OpenApi$3 {
12719
+ declare namespace OpenApi {
13160
12720
  export type V2_0_X = OpenApiV2_0_X;
13161
12721
  export type V3_0_X = OpenApiV3_0_X;
13162
12722
  export type V3_1_X = OpenApiV3_1_X;
@@ -13254,7 +12814,7 @@ declare class PluginInstance<T extends Plugin.Types = Plugin.Types> {
13254
12814
  package: Context['package'];
13255
12815
  constructor(props: Pick<Required<Plugin.Config<T>>, 'config' | 'dependencies' | 'handler'> & {
13256
12816
  api?: T['api'];
13257
- context: Context<OpenApi$3.V2_0_X | OpenApi$3.V3_0_X | OpenApi$3.V3_1_X>;
12817
+ context: Context<OpenApi.V2_0_X | OpenApi.V3_0_X | OpenApi.V3_1_X>;
13258
12818
  gen: IProject;
13259
12819
  name: string;
13260
12820
  output: string;
@@ -13323,975 +12883,10 @@ declare class PluginInstance<T extends Plugin.Types = Plugin.Types> {
13323
12883
  private isOperationKind;
13324
12884
  }
13325
12885
  //#endregion
13326
- //#region src/utils/logger.d.ts
13327
- declare class Logger {
13328
- private events;
13329
- private end;
13330
- /**
13331
- * Recursively end all unended events in the event tree.
13332
- * This ensures all events have end marks before measuring.
13333
- */
13334
- private endAllEvents;
13335
- report(print?: boolean): PerformanceMeasure | undefined;
13336
- private reportEvent;
13337
- private start;
13338
- private storeEvent;
13339
- timeEvent(name: string): {
13340
- mark: PerformanceMark;
13341
- timeEnd: () => void;
13342
- };
13343
- }
13344
- //#endregion
13345
- //#region src/ir/context.d.ts
13346
- declare class Context<Spec extends Record<string, any> = any> {
13347
- /**
13348
- * Configuration for parsing and generating the output. This
13349
- * is a mix of user-provided and default values.
13350
- */
13351
- config: Config;
13352
- /**
13353
- * The code generation project instance used to manage files, symbols,
13354
- */
13355
- gen: Project;
13356
- /**
13357
- * The dependency graph built from the intermediate representation.
13358
- */
13359
- graph: Graph | undefined;
13360
- /**
13361
- * Intermediate representation model obtained from `spec`.
13362
- */
13363
- ir: IR$1.Model;
12886
+ //#region src/parser/types/hooks.d.ts
12887
+ type Hooks = {
13364
12888
  /**
13365
- * Logger instance.
13366
- */
13367
- logger: Logger;
13368
- /**
13369
- * The package metadata and utilities for the current context, constructed
13370
- * from the provided dependencies. Used for managing package-related
13371
- * information such as name, version, and dependency resolution during
13372
- * code generation.
13373
- */
13374
- package: Package;
13375
- /**
13376
- * A map of registered plugin instances, keyed by plugin name. Plugins are
13377
- * registered through the `registerPlugin` method and can be accessed by
13378
- * their configured name from the config.
13379
- */
13380
- plugins: Partial<Record<PluginNames, PluginInstance<PluginConfigMap[keyof PluginConfigMap]>>>;
13381
- /**
13382
- * Resolved specification from `input`.
13383
- */
13384
- spec: Spec;
13385
- constructor({
13386
- config,
13387
- dependencies,
13388
- logger,
13389
- spec
13390
- }: {
13391
- config: Config;
13392
- dependencies: Record<string, string>;
13393
- logger: Logger;
13394
- spec: Spec;
13395
- });
13396
- /**
13397
- * Returns a resolved and dereferenced schema from `spec`.
13398
- */
13399
- dereference<T>(schema: {
13400
- $ref: string;
13401
- }): T;
13402
- /**
13403
- * Registers a new plugin to the global context.
13404
- *
13405
- * @param name Plugin name.
13406
- * @returns Registered plugin instance.
13407
- */
13408
- private registerPlugin;
13409
- /**
13410
- * Registers all plugins in the order specified by the configuration and returns
13411
- * an array of the registered PluginInstance objects. Each plugin is instantiated
13412
- * and added to the context's plugins map.
13413
- *
13414
- * @returns {ReadonlyArray<PluginInstance>} An array of registered plugin instances in order.
13415
- */
13416
- registerPlugins(): ReadonlyArray<PluginInstance>;
13417
- resolveIrRef<T>($ref: string): T;
13418
- /**
13419
- * Returns a resolved reference from `spec`.
13420
- */
13421
- resolveRef<T>($ref: string): T;
13422
- }
13423
- //#endregion
13424
- //#region src/openApi/common/interfaces/Dictionary.d.ts
13425
- interface Dictionary<T = unknown> {
13426
- [key: string]: T;
13427
- }
13428
- //#endregion
13429
- //#region src/openApi/v3/interfaces/OpenApiReference.d.ts
13430
- /**
13431
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#reference-object
13432
- */
13433
- interface OpenApiReference {
13434
- $ref?: string;
13435
- }
13436
- //#endregion
13437
- //#region src/openApi/v3/interfaces/OpenApiExample.d.ts
13438
- /**
13439
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#example-object
13440
- */
13441
- interface OpenApiExample extends OpenApiReference {
13442
- description?: string;
13443
- externalValue?: string;
13444
- summary?: string;
13445
- value?: unknown;
13446
- }
13447
- //#endregion
13448
- //#region src/openApi/common/interfaces/WithEnumExtension.d.ts
13449
- interface WithEnumExtension {
13450
- 'x-enum-descriptions'?: ReadonlyArray<string>;
13451
- 'x-enum-varnames'?: ReadonlyArray<string>;
13452
- 'x-enumNames'?: ReadonlyArray<string>;
13453
- }
13454
- //#endregion
13455
- //#region src/openApi/v3/interfaces/OpenApiDiscriminator.d.ts
13456
- /**
13457
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#discriminator-object
13458
- */
13459
- interface OpenApiDiscriminator {
13460
- mapping?: Dictionary<string>;
13461
- propertyName: string;
13462
- }
13463
- //#endregion
13464
- //#region src/openApi/v3/interfaces/OpenApiExternalDocs.d.ts
13465
- /**
13466
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#external-documentation-object
13467
- */
13468
- interface OpenApiExternalDocs {
13469
- description?: string;
13470
- url: string;
13471
- }
13472
- //#endregion
13473
- //#region src/openApi/v3/interfaces/OpenApiXml.d.ts
13474
- /**
13475
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#xml-object
13476
- */
13477
- interface OpenApiXml$1 {
13478
- attribute?: boolean;
13479
- name?: string;
13480
- namespace?: string;
13481
- prefix?: string;
13482
- wrapped?: boolean;
13483
- }
13484
- //#endregion
13485
- //#region src/openApi/v3/interfaces/OpenApiSchema.d.ts
13486
- /**
13487
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#schema-object
13488
- */
13489
- interface OpenApiSchema$1 extends OpenApiReference, WithEnumExtension {
13490
- additionalProperties?: boolean | OpenApiSchema$1;
13491
- allOf?: OpenApiSchema$1[];
13492
- anyOf?: OpenApiSchema$1[];
13493
- const?: string | number | boolean | null;
13494
- default?: unknown;
13495
- deprecated?: boolean;
13496
- description?: string;
13497
- discriminator?: OpenApiDiscriminator;
13498
- enum?: (string | number)[];
13499
- example?: unknown;
13500
- exclusiveMaximum?: boolean;
13501
- exclusiveMinimum?: boolean;
13502
- externalDocs?: OpenApiExternalDocs;
13503
- format?: 'binary' | 'boolean' | 'byte' | 'date-time' | 'date' | 'double' | 'float' | 'int32' | 'int64' | 'password' | 'string';
13504
- items?: OpenApiSchema$1;
13505
- maxItems?: number;
13506
- maxLength?: number;
13507
- maxProperties?: number;
13508
- maximum?: number;
13509
- minItems?: number;
13510
- minLength?: number;
13511
- minProperties?: number;
13512
- minimum?: number;
13513
- multipleOf?: number;
13514
- not?: OpenApiSchema$1[];
13515
- nullable?: boolean;
13516
- oneOf?: OpenApiSchema$1[];
13517
- pattern?: string;
13518
- prefixItems?: OpenApiSchema$1[];
13519
- properties?: Dictionary<OpenApiSchema$1>;
13520
- readOnly?: boolean;
13521
- required?: string[];
13522
- title?: string;
13523
- type?: string | string[];
13524
- uniqueItems?: boolean;
13525
- writeOnly?: boolean;
13526
- xml?: OpenApiXml$1;
13527
- }
13528
- //#endregion
13529
- //#region src/openApi/v3/interfaces/OpenApiParameter.d.ts
13530
- /**
13531
- * add only one type for now as that's needed to resolve the reported issue,
13532
- * more types should be added though
13533
- * {@link https://github.com/hey-api/openapi-ts/issues/612}
13534
- */
13535
- type MediaType = 'application/json';
13536
- /**
13537
- * encoding interface should be added, not adding it for now as it's not needed
13538
- * to resolve the issue reported
13539
- * {@link https://github.com/hey-api/openapi-ts/issues/612}
13540
- */
13541
- interface MediaTypeObject {
13542
- example?: unknown;
13543
- examples?: Dictionary<OpenApiExample>;
13544
- schema: OpenApiSchema$1;
13545
- }
13546
- /**
13547
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-object
13548
- */
13549
- interface OpenApiParameter extends OpenApiReference {
13550
- allowEmptyValue?: boolean;
13551
- allowReserved?: boolean;
13552
- content?: Record<MediaType, MediaTypeObject>;
13553
- deprecated?: boolean;
13554
- description?: string;
13555
- example?: unknown;
13556
- examples?: Dictionary<OpenApiExample>;
13557
- explode?: boolean;
13558
- in: 'cookie' | 'formData' | 'header' | 'path' | 'query';
13559
- name: string;
13560
- nullable?: boolean;
13561
- required?: boolean;
13562
- schema?: OpenApiSchema$1;
13563
- style?: string;
13564
- }
13565
- //#endregion
13566
- //#region src/openApi/common/interfaces/client.d.ts
13567
- interface Enum {
13568
- customDescription?: string;
13569
- customName?: string;
13570
- description?: string;
13571
- value: string | number;
13572
- }
13573
- interface OperationParameter extends Model {
13574
- in: 'body' | 'cookie' | 'formData' | 'header' | 'path' | 'query';
13575
- mediaType: string | null;
13576
- prop: string;
13577
- }
13578
- interface OperationParameters extends Pick<Model, '$refs' | 'imports'> {
13579
- parameters: OperationParameter[];
13580
- parametersBody: OperationParameter | null;
13581
- parametersCookie: OperationParameter[];
13582
- parametersForm: OperationParameter[];
13583
- parametersHeader: OperationParameter[];
13584
- parametersPath: OperationParameter[];
13585
- parametersQuery: OperationParameter[];
13586
- }
13587
- interface OperationResponse extends Model {
13588
- code: number | 'default' | '1XX' | '2XX' | '3XX' | '4XX' | '5XX';
13589
- in: 'header' | 'response';
13590
- responseTypes: Array<'error' | 'success'>;
13591
- }
13592
- type Method = 'CONNECT' | 'DELETE' | 'GET' | 'HEAD' | 'OPTIONS' | 'PATCH' | 'POST' | 'PUT' | 'TRACE';
13593
- interface Operation$1 extends OperationParameters {
13594
- deprecated: boolean;
13595
- description: string | null;
13596
- /**
13597
- * The operationId from OpenAPI specification.
13598
- */
13599
- id: string | null;
13600
- method: Method;
13601
- name: string;
13602
- path: string;
13603
- responseHeader: string | null;
13604
- /**
13605
- * All operation responses defined in OpenAPI specification.
13606
- * Sorted by status code.
13607
- */
13608
- responses: OperationResponse[];
13609
- summary: string | null;
13610
- tags: string[] | null;
13611
- }
13612
- interface Schema {
13613
- default?: unknown;
13614
- exclusiveMaximum?: boolean;
13615
- exclusiveMinimum?: boolean;
13616
- format?: 'binary' | 'boolean' | 'byte' | 'date-time' | 'date' | 'double' | 'float' | 'int32' | 'int64' | 'password' | 'string';
13617
- isDefinition: boolean;
13618
- isNullable: boolean;
13619
- isReadOnly: boolean;
13620
- isRequired: boolean;
13621
- maxItems?: number;
13622
- maxLength?: number;
13623
- maxProperties?: number;
13624
- maximum?: number;
13625
- minItems?: number;
13626
- minLength?: number;
13627
- minProperties?: number;
13628
- minimum?: number;
13629
- multipleOf?: number;
13630
- pattern?: string;
13631
- uniqueItems?: boolean;
13632
- }
13633
- interface ModelMeta {
13634
- /**
13635
- * Ref to the type in OpenAPI specification.
13636
- */
13637
- $ref: string;
13638
- /**
13639
- * Name passed to the initial `getModel()` call.
13640
- */
13641
- name: string;
13642
- }
13643
- interface Model extends Schema {
13644
- /**
13645
- * **Experimental.** Contains list of original refs so they can be used
13646
- * to access the schema from anywhere instead of relying on string name.
13647
- * This allows us to do things like detect type of ref.
13648
- */
13649
- $refs: string[];
13650
- base: string;
13651
- deprecated?: boolean;
13652
- description: string | null;
13653
- enum: Enum[];
13654
- enums: Model[];
13655
- export: 'all-of' | 'any-of' | 'array' | 'const' | 'dictionary' | 'enum' | 'generic' | 'interface' | 'one-of' | 'reference';
13656
- imports: string[];
13657
- in: OperationParameter['in'] | OpenApiParameter['in'] | OperationResponse['in'] | '';
13658
- link: Model | Model[] | null;
13659
- meta?: ModelMeta;
13660
- /**
13661
- * @deprecated use `meta.name` instead
13662
- */
13663
- name: string;
13664
- properties: Model[];
13665
- template: string | null;
13666
- type: string;
13667
- }
13668
- interface Client$1 {
13669
- /**
13670
- * Configuration for parsing and generating the output. This
13671
- * is a mix of user-provided and default values.
13672
- */
13673
- config: Config;
13674
- models: Model[];
13675
- operations: Operation$1[];
13676
- server: string;
13677
- /**
13678
- * Map of generated types where type names are keys. This is used to track
13679
- * uniquely generated types as we may want to deduplicate if there are
13680
- * multiple definitions with the same name but different value, or if we
13681
- * want to transform names.
13682
- */
13683
- types: Record<string, ModelMeta>;
13684
- version: string;
13685
- }
13686
- //#endregion
13687
- //#region src/openApi/v2/interfaces/OpenApiExternalDocs.d.ts
13688
- /**
13689
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#external-documentation-object
13690
- */
13691
- interface OpenApiExternalDocs$1 {
13692
- description?: string;
13693
- url: string;
13694
- }
13695
- //#endregion
13696
- //#region src/openApi/v2/interfaces/OpenApiContact.d.ts
13697
- /**
13698
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#contact-object
13699
- */
13700
- interface OpenApiContact$1 {
13701
- email?: string;
13702
- name?: string;
13703
- url?: string;
13704
- }
13705
- //#endregion
13706
- //#region src/openApi/v2/interfaces/OpenApiLicense.d.ts
13707
- /**
13708
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#license-object
13709
- */
13710
- interface OpenApiLicense$1 {
13711
- name: string;
13712
- url?: string;
13713
- }
13714
- //#endregion
13715
- //#region src/openApi/v2/interfaces/OpenApiInfo.d.ts
13716
- /**
13717
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#info-object
13718
- */
13719
- interface OpenApiInfo$1 {
13720
- contact?: OpenApiContact$1;
13721
- description?: string;
13722
- license?: OpenApiLicense$1;
13723
- termsOfService?: string;
13724
- title: string;
13725
- version: string;
13726
- }
13727
- //#endregion
13728
- //#region src/openApi/v2/interfaces/Extensions/WithNullableExtension.d.ts
13729
- interface WithNullableExtension {
13730
- 'x-nullable'?: boolean;
13731
- }
13732
- //#endregion
13733
- //#region src/openApi/v2/interfaces/OpenApiItems.d.ts
13734
- /**
13735
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#items-object)
13736
- */
13737
- interface OpenApiItems extends WithEnumExtension {
13738
- collectionFormat?: 'csv' | 'ssv' | 'tsv' | 'pipes';
13739
- default?: unknown;
13740
- enum?: (string | number)[];
13741
- exclusiveMaximum?: number;
13742
- exclusiveMinimum?: number;
13743
- format?: 'int32' | 'int64' | 'float' | 'double' | 'string' | 'boolean' | 'byte' | 'binary' | 'date' | 'date-time' | 'password';
13744
- items?: OpenApiItems;
13745
- maxItems?: number;
13746
- maxLength?: number;
13747
- maximum?: number;
13748
- minItems?: number;
13749
- minLength?: number;
13750
- minimum?: number;
13751
- multipleOf?: number;
13752
- pattern?: string;
13753
- type?: string;
13754
- uniqueItems?: boolean;
13755
- }
13756
- //#endregion
13757
- //#region src/openApi/v2/interfaces/OpenApiReference.d.ts
13758
- /**
13759
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#reference-object
13760
- */
13761
- interface OpenApiReference$1 {
13762
- $ref?: string;
13763
- }
13764
- //#endregion
13765
- //#region src/openApi/v2/interfaces/OpenApiXml.d.ts
13766
- /**
13767
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#xml-object
13768
- */
13769
- interface OpenApiXml {
13770
- attribute?: boolean;
13771
- name?: string;
13772
- namespace?: string;
13773
- prefix?: string;
13774
- wrapped?: boolean;
13775
- }
13776
- //#endregion
13777
- //#region src/openApi/v2/interfaces/OpenApiSchema.d.ts
13778
- /**
13779
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#schema-object
13780
- */
13781
- interface OpenApiSchema extends OpenApiReference$1, WithEnumExtension, WithNullableExtension {
13782
- additionalProperties?: boolean | OpenApiSchema;
13783
- allOf?: OpenApiSchema[];
13784
- default?: unknown;
13785
- description?: string;
13786
- discriminator?: string;
13787
- enum?: (string | number)[];
13788
- example?: unknown;
13789
- exclusiveMaximum?: boolean;
13790
- exclusiveMinimum?: boolean;
13791
- externalDocs?: OpenApiExternalDocs$1;
13792
- format?: 'int32' | 'int64' | 'float' | 'double' | 'string' | 'boolean' | 'byte' | 'binary' | 'date' | 'date-time' | 'password';
13793
- items?: OpenApiSchema;
13794
- maxItems?: number;
13795
- maxLength?: number;
13796
- maxProperties?: number;
13797
- maximum?: number;
13798
- minItems?: number;
13799
- minLength?: number;
13800
- minProperties?: number;
13801
- minimum?: number;
13802
- multipleOf?: number;
13803
- pattern?: string;
13804
- properties?: Dictionary<OpenApiSchema>;
13805
- readOnly?: boolean;
13806
- required?: string[];
13807
- title?: string;
13808
- type?: string;
13809
- uniqueItems?: boolean;
13810
- xml?: OpenApiXml;
13811
- }
13812
- //#endregion
13813
- //#region src/openApi/v2/interfaces/OpenApiParameter.d.ts
13814
- /**
13815
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#parameter-object
13816
- */
13817
- interface OpenApiParameter$1 extends OpenApiReference$1, WithEnumExtension, WithNullableExtension {
13818
- allowEmptyValue?: boolean;
13819
- collectionFormat?: 'csv' | 'ssv' | 'tsv' | 'pipes' | 'multi';
13820
- default?: unknown;
13821
- description?: string;
13822
- enum?: (string | number)[];
13823
- exclusiveMaximum?: boolean;
13824
- exclusiveMinimum?: boolean;
13825
- format?: 'int32' | 'int64' | 'float' | 'double' | 'string' | 'boolean' | 'byte' | 'binary' | 'date' | 'date-time' | 'password';
13826
- in: 'path' | 'query' | 'header' | 'formData' | 'body';
13827
- items?: OpenApiItems;
13828
- maxItems?: number;
13829
- maxLength?: number;
13830
- maximum?: number;
13831
- minItems?: number;
13832
- minLength?: number;
13833
- minimum?: number;
13834
- multipleOf?: number;
13835
- name: string;
13836
- pattern?: string;
13837
- required?: boolean;
13838
- schema?: OpenApiSchema;
13839
- type?: string;
13840
- uniqueItems?: boolean;
13841
- }
13842
- //#endregion
13843
- //#region src/openApi/v2/interfaces/OpenApiExample.d.ts
13844
- /**
13845
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#example-object
13846
- */
13847
- interface OpenApiExample$1 {
13848
- [mimetype: string]: unknown;
13849
- }
13850
- //#endregion
13851
- //#region src/openApi/v2/interfaces/OpenApiHeader.d.ts
13852
- /**
13853
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#header-object
13854
- */
13855
- interface OpenApiHeader$1 {
13856
- collectionFormat?: 'csv' | 'ssv' | 'tsv' | 'pipes';
13857
- default?: unknown;
13858
- description?: string;
13859
- enum?: (string | number)[];
13860
- exclusiveMaximum?: boolean;
13861
- exclusiveMinimum?: boolean;
13862
- format?: 'int32' | 'int64' | 'float' | 'double' | 'string' | 'boolean' | 'byte' | 'binary' | 'date' | 'date-time' | 'password';
13863
- items?: Dictionary<OpenApiItems>;
13864
- maxItems?: number;
13865
- maxLength?: number;
13866
- maximum?: number;
13867
- minItems?: number;
13868
- minLength?: number;
13869
- minimum?: number;
13870
- multipleOf?: number;
13871
- pattern?: string;
13872
- type: 'string' | 'number' | 'integer' | 'boolean' | 'array';
13873
- uniqueItems?: boolean;
13874
- }
13875
- //#endregion
13876
- //#region src/openApi/v2/interfaces/OpenApiResponse.d.ts
13877
- /**
13878
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#response-object
13879
- */
13880
- interface OpenApiResponse$1 extends OpenApiReference$1 {
13881
- description: string;
13882
- examples?: OpenApiExample$1;
13883
- headers?: Dictionary<OpenApiHeader$1>;
13884
- schema?: OpenApiSchema & OpenApiReference$1;
13885
- }
13886
- //#endregion
13887
- //#region src/openApi/v2/interfaces/OpenApiResponses.d.ts
13888
- /**
13889
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#responses-object
13890
- */
13891
- interface Response$2 {
13892
- [httpcode: string]: OpenApiResponse$1;
13893
- }
13894
- type OpenApiResponses$1 = Response$2 & {
13895
- default?: OpenApiResponse$1;
13896
- };
13897
- //#endregion
13898
- //#region src/openApi/v2/interfaces/OpenApiSecurityRequirement.d.ts
13899
- /**
13900
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#security-requirement-object
13901
- */
13902
- interface OpenApiSecurityRequirement$1 {
13903
- [key: string]: string;
13904
- }
13905
- //#endregion
13906
- //#region src/openApi/v2/interfaces/OpenApiOperation.d.ts
13907
- /**
13908
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#operation-object
13909
- */
13910
- interface OpenApiOperation$1 {
13911
- consumes?: string[];
13912
- deprecated?: boolean;
13913
- description?: string;
13914
- externalDocs?: OpenApiExternalDocs$1;
13915
- operationId?: string;
13916
- parameters?: OpenApiParameter$1[];
13917
- produces?: string[];
13918
- responses: OpenApiResponses$1;
13919
- schemes?: ('http' | 'https' | 'ws' | 'wss')[];
13920
- security?: OpenApiSecurityRequirement$1[];
13921
- summary?: string;
13922
- tags?: string[];
13923
- }
13924
- //#endregion
13925
- //#region src/openApi/v2/interfaces/OpenApiPath.d.ts
13926
- /**
13927
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#path-item-object
13928
- */
13929
- interface OpenApiPath$1 extends OpenApiReference$1 {
13930
- connect?: OpenApiOperation$1;
13931
- delete?: OpenApiOperation$1;
13932
- get?: OpenApiOperation$1;
13933
- head?: OpenApiOperation$1;
13934
- options?: OpenApiOperation$1;
13935
- parameters?: OpenApiParameter$1[];
13936
- patch?: OpenApiOperation$1;
13937
- post?: OpenApiOperation$1;
13938
- put?: OpenApiOperation$1;
13939
- trace?: OpenApiOperation$1;
13940
- }
13941
- //#endregion
13942
- //#region src/openApi/v2/interfaces/OpenApiSecurityScheme.d.ts
13943
- /**
13944
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#security-scheme-object
13945
- */
13946
- interface OpenApiSecurityScheme$1 {
13947
- authorizationUrl?: string;
13948
- description?: string;
13949
- flow?: 'implicit' | 'password' | 'application' | 'accessCode';
13950
- in?: 'query' | 'header';
13951
- name?: string;
13952
- scopes: Dictionary<string>;
13953
- tokenUrl?: string;
13954
- type: 'basic' | 'apiKey' | 'oauth2';
13955
- }
13956
- //#endregion
13957
- //#region src/openApi/v2/interfaces/OpenApiTag.d.ts
13958
- /**
13959
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#tag-object
13960
- */
13961
- interface OpenApiTag$1 {
13962
- description?: string;
13963
- externalDocs?: OpenApiExternalDocs$1;
13964
- name: string;
13965
- }
13966
- //#endregion
13967
- //#region src/openApi/v2/interfaces/OpenApi.d.ts
13968
- /**
13969
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md
13970
- */
13971
- interface OpenApi$1 {
13972
- basePath?: string;
13973
- consumes?: string[];
13974
- definitions?: Dictionary<OpenApiSchema>;
13975
- externalDocs?: OpenApiExternalDocs$1;
13976
- host?: string;
13977
- info: OpenApiInfo$1;
13978
- parameters?: Dictionary<OpenApiParameter$1>;
13979
- paths: Dictionary<OpenApiPath$1>;
13980
- produces?: string[];
13981
- responses?: Dictionary<OpenApiResponse$1>;
13982
- schemes?: string[];
13983
- security?: OpenApiSecurityRequirement$1[];
13984
- securityDefinitions?: Dictionary<OpenApiSecurityScheme$1>;
13985
- swagger: string;
13986
- tags?: OpenApiTag$1[];
13987
- }
13988
- //#endregion
13989
- //#region src/openApi/v3/interfaces/OpenApiHeader.d.ts
13990
- /**
13991
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#header-object
13992
- */
13993
- interface OpenApiHeader extends OpenApiReference {
13994
- allowEmptyValue?: boolean;
13995
- allowReserved?: boolean;
13996
- deprecated?: boolean;
13997
- description?: string;
13998
- example?: unknown;
13999
- examples?: Dictionary<OpenApiExample>;
14000
- explode?: boolean;
14001
- required?: boolean;
14002
- schema?: OpenApiSchema$1;
14003
- style?: string;
14004
- }
14005
- //#endregion
14006
- //#region src/openApi/v3/interfaces/OpenApiEncoding.d.ts
14007
- /**
14008
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#encoding-object
14009
- */
14010
- interface OpenApiEncoding {
14011
- allowReserved?: boolean;
14012
- contentType?: string;
14013
- explode?: boolean;
14014
- headers?: Dictionary<OpenApiHeader>;
14015
- style?: string;
14016
- }
14017
- //#endregion
14018
- //#region src/openApi/v3/interfaces/OpenApiMediaType.d.ts
14019
- /**
14020
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#media-type-object
14021
- */
14022
- interface OpenApiMediaType extends OpenApiReference {
14023
- encoding?: Dictionary<OpenApiEncoding>;
14024
- example?: unknown;
14025
- examples?: Dictionary<OpenApiExample>;
14026
- schema?: OpenApiSchema$1;
14027
- }
14028
- //#endregion
14029
- //#region src/openApi/v3/interfaces/OpenApiRequestBody.d.ts
14030
- /**
14031
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#request-body-object
14032
- */
14033
- interface OpenApiRequestBody extends OpenApiReference {
14034
- content: Dictionary<OpenApiMediaType>;
14035
- description?: string;
14036
- nullable?: boolean;
14037
- required?: boolean;
14038
- 'x-body-name'?: string;
14039
- }
14040
- //#endregion
14041
- //#region src/openApi/v3/interfaces/OpenApiServerVariable.d.ts
14042
- /**
14043
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#server-variable-object
14044
- */
14045
- interface OpenApiServerVariable extends WithEnumExtension {
14046
- default: string;
14047
- description?: string;
14048
- enum?: (string | number)[];
14049
- }
14050
- //#endregion
14051
- //#region src/openApi/v3/interfaces/OpenApiServer.d.ts
14052
- /**
14053
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#server-object
14054
- */
14055
- interface OpenApiServer {
14056
- description?: string;
14057
- url: string;
14058
- variables?: Dictionary<OpenApiServerVariable>;
14059
- }
14060
- //#endregion
14061
- //#region src/openApi/v3/interfaces/OpenApiLink.d.ts
14062
- /**
14063
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#link-object
14064
- */
14065
- interface OpenApiLink extends OpenApiReference {
14066
- description?: string;
14067
- operationId?: string;
14068
- operationRef?: string;
14069
- parameters?: Dictionary<unknown>;
14070
- requestBody?: unknown;
14071
- server?: OpenApiServer;
14072
- }
14073
- //#endregion
14074
- //#region src/openApi/v3/interfaces/OpenApiResponse.d.ts
14075
- /**
14076
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#response-object
14077
- */
14078
- interface OpenApiResponse extends OpenApiReference {
14079
- content?: Dictionary<OpenApiMediaType>;
14080
- description: string;
14081
- headers?: Dictionary<OpenApiHeader>;
14082
- links?: Dictionary<OpenApiLink>;
14083
- }
14084
- //#endregion
14085
- //#region src/openApi/v3/interfaces/OpenApiResponses.d.ts
14086
- /**
14087
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#responses-object
14088
- */
14089
- interface Response$1 {
14090
- [httpcode: string]: OpenApiResponse;
14091
- }
14092
- type OpenApiResponses = OpenApiReference & Response$1 & {
14093
- default: OpenApiResponse;
14094
- };
14095
- //#endregion
14096
- //#region src/openApi/v3/interfaces/OpenApiSecurityRequirement.d.ts
14097
- /**
14098
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#security-requirement-object
14099
- */
14100
- interface OpenApiSecurityRequirement {
14101
- [name: string]: string;
14102
- }
14103
- //#endregion
14104
- //#region src/openApi/v3/interfaces/OpenApiOperation.d.ts
14105
- /**
14106
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#operation-object
14107
- */
14108
- interface OpenApiOperation {
14109
- callbacks?: Dictionary<OpenApiCallback>;
14110
- deprecated?: boolean;
14111
- description?: string;
14112
- externalDocs?: OpenApiExternalDocs;
14113
- operationId?: string;
14114
- parameters?: OpenApiParameter[];
14115
- requestBody?: OpenApiRequestBody;
14116
- responses: OpenApiResponses;
14117
- security?: OpenApiSecurityRequirement[];
14118
- servers?: OpenApiServer[];
14119
- summary?: string;
14120
- tags?: string[];
14121
- }
14122
- //#endregion
14123
- //#region src/openApi/v3/interfaces/OpenApiPath.d.ts
14124
- /**
14125
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#path-item-object
14126
- */
14127
- interface OpenApiPath {
14128
- connect?: OpenApiOperation;
14129
- delete?: OpenApiOperation;
14130
- description?: string;
14131
- get?: OpenApiOperation;
14132
- head?: OpenApiOperation;
14133
- options?: OpenApiOperation;
14134
- parameters?: OpenApiParameter[];
14135
- patch?: OpenApiOperation;
14136
- post?: OpenApiOperation;
14137
- put?: OpenApiOperation;
14138
- servers?: OpenApiServer[];
14139
- summary?: string;
14140
- trace?: OpenApiOperation;
14141
- }
14142
- //#endregion
14143
- //#region src/openApi/v3/interfaces/OpenApiCallback.d.ts
14144
- /**
14145
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#callback-object
14146
- */
14147
- interface Callback {
14148
- [key: string]: OpenApiPath;
14149
- }
14150
- type OpenApiCallback = OpenApiReference & Callback;
14151
- //#endregion
14152
- //#region src/openApi/v3/interfaces/OpenApiOAuthFlow.d.ts
14153
- /**
14154
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#oauth-flow-object
14155
- */
14156
- interface OpenApiOAuthFlow {
14157
- authorizationUrl: string;
14158
- refreshUrl?: string;
14159
- scopes: Dictionary<string>;
14160
- tokenUrl: string;
14161
- }
14162
- //#endregion
14163
- //#region src/openApi/v3/interfaces/OpenApiOAuthFlows.d.ts
14164
- /**
14165
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#oauth-flows-object
14166
- */
14167
- interface OpenApiOAuthFlows {
14168
- authorizationCode?: OpenApiOAuthFlow;
14169
- clientCredentials?: OpenApiOAuthFlow;
14170
- implicit?: OpenApiOAuthFlow;
14171
- password?: OpenApiOAuthFlow;
14172
- }
14173
- //#endregion
14174
- //#region src/openApi/v3/interfaces/OpenApiSecurityScheme.d.ts
14175
- /**
14176
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#security-scheme-object
14177
- */
14178
- interface OpenApiSecurityScheme extends OpenApiReference {
14179
- bearerFormat?: string;
14180
- description?: string;
14181
- flows?: OpenApiOAuthFlows;
14182
- in?: 'query' | 'header' | 'cookie';
14183
- name?: string;
14184
- openIdConnectUrl?: string;
14185
- scheme?: string;
14186
- type: 'apiKey' | 'http' | 'oauth2' | 'openIdConnect';
14187
- }
14188
- //#endregion
14189
- //#region src/openApi/v3/interfaces/OpenApiComponents.d.ts
14190
- /**
14191
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#components-object
14192
- */
14193
- interface OpenApiComponents {
14194
- callbacks?: Dictionary<OpenApiCallback>;
14195
- examples?: Dictionary<OpenApiExample>;
14196
- headers?: Dictionary<OpenApiHeader>;
14197
- links?: Dictionary<OpenApiLink>;
14198
- parameters?: Dictionary<OpenApiParameter>;
14199
- requestBodies?: Dictionary<OpenApiRequestBody>;
14200
- responses?: Dictionary<OpenApiResponses>;
14201
- schemas?: Dictionary<OpenApiSchema$1>;
14202
- securitySchemes?: Dictionary<OpenApiSecurityScheme>;
14203
- }
14204
- //#endregion
14205
- //#region src/openApi/v3/interfaces/OpenApiContact.d.ts
14206
- /**
14207
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#contact-object
14208
- */
14209
- interface OpenApiContact {
14210
- email?: string;
14211
- name?: string;
14212
- url?: string;
14213
- }
14214
- //#endregion
14215
- //#region src/openApi/v3/interfaces/OpenApiLicense.d.ts
14216
- /**
14217
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#license-object
14218
- */
14219
- interface OpenApiLicense {
14220
- name: string;
14221
- url?: string;
14222
- }
14223
- //#endregion
14224
- //#region src/openApi/v3/interfaces/OpenApiInfo.d.ts
14225
- /**
14226
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#info-object
14227
- */
14228
- interface OpenApiInfo {
14229
- contact?: OpenApiContact;
14230
- description?: string;
14231
- license?: OpenApiLicense;
14232
- termsOfService?: string;
14233
- title: string;
14234
- version: string;
14235
- }
14236
- //#endregion
14237
- //#region src/openApi/v3/interfaces/OpenApiPaths.d.ts
14238
- /**
14239
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#paths-object
14240
- */
14241
- interface OpenApiPaths {
14242
- [path: string]: OpenApiPath;
14243
- }
14244
- //#endregion
14245
- //#region src/openApi/v3/interfaces/OpenApiTag.d.ts
14246
- /**
14247
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#tag-object
14248
- */
14249
- interface OpenApiTag {
14250
- description?: string;
14251
- externalDocs?: OpenApiExternalDocs;
14252
- name: string;
14253
- }
14254
- //#endregion
14255
- //#region src/openApi/v3/interfaces/OpenApi.d.ts
14256
- /**
14257
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md
14258
- */
14259
- interface OpenApi$2 {
14260
- components?: OpenApiComponents;
14261
- externalDocs?: OpenApiExternalDocs;
14262
- info: OpenApiInfo;
14263
- openapi: string;
14264
- paths: OpenApiPaths;
14265
- security?: OpenApiSecurityRequirement[];
14266
- servers?: OpenApiServer[];
14267
- tags?: OpenApiTag[];
14268
- }
14269
- //#endregion
14270
- //#region src/openApi/common/interfaces/OpenApi.d.ts
14271
- type OpenApi = OpenApi$1 | OpenApi$2;
14272
- //#endregion
14273
- //#region src/openApi/index.d.ts
14274
- /**
14275
- * @internal
14276
- * Parse the resolved OpenAPI specification. This will populate and return
14277
- * `context` with intermediate representation obtained from the parsed spec.
14278
- */
14279
- declare const parseOpenApiSpec: ({
14280
- config,
14281
- dependencies,
14282
- logger,
14283
- spec
14284
- }: {
14285
- config: Config;
14286
- dependencies: Record<string, string>;
14287
- logger: Logger;
14288
- spec: unknown;
14289
- }) => Context | undefined;
14290
- //#endregion
14291
- //#region src/parser/types/hooks.d.ts
14292
- type Hooks = {
14293
- /**
14294
- * Event hooks.
12889
+ * Event hooks.
14295
12890
  */
14296
12891
  events?: {
14297
12892
  /**
@@ -14473,7 +13068,7 @@ type Hooks = {
14473
13068
  };
14474
13069
  //#endregion
14475
13070
  //#region src/plugins/types.d.ts
14476
- type PluginClientNames = '@hey-api/client-angular' | '@hey-api/client-axios' | '@hey-api/client-fetch' | '@hey-api/client-next' | '@hey-api/client-nuxt' | '@hey-api/client-ofetch' | 'legacy/angular' | 'legacy/axios' | 'legacy/fetch' | 'legacy/node' | 'legacy/xhr';
13071
+ type PluginClientNames = '@hey-api/client-angular' | '@hey-api/client-axios' | '@hey-api/client-fetch' | '@hey-api/client-next' | '@hey-api/client-nuxt' | '@hey-api/client-ofetch';
14477
13072
  type PluginValidatorNames = 'arktype' | 'valibot' | 'zod';
14478
13073
  type PluginNames = PluginClientNames | '@angular/common' | '@hey-api/schemas' | '@hey-api/sdk' | '@hey-api/transformers' | '@hey-api/typescript' | '@pinia/colada' | '@tanstack/angular-query-experimental' | '@tanstack/react-query' | '@tanstack/solid-query' | '@tanstack/svelte-query' | '@tanstack/vue-query' | 'fastify' | PluginValidatorNames;
14479
13074
  type AnyPluginName = PluginNames | (string & {});
@@ -14515,7 +13110,6 @@ declare namespace Plugin {
14515
13110
  */
14516
13111
  dependencies?: ReadonlyArray<AnyPluginName>;
14517
13112
  handler: Handler<T>;
14518
- handlerLegacy?: LegacyHandler<T>;
14519
13113
  name: T['config']['name'];
14520
13114
  output?: NonNullable<T['config']['output']>;
14521
13115
  /**
@@ -14574,17 +13168,6 @@ type DefinePlugin<Config$21 extends BaseConfig = BaseConfig, ResolvedConfig exte
14574
13168
  plugin: PluginInstance<Plugin.Types<Config$21, ResolvedConfig, Api>>;
14575
13169
  }) => void;
14576
13170
  Instance: PluginInstance<Plugin.Types<Config$21, ResolvedConfig, Api>>;
14577
- /**
14578
- * Plugin implementation for legacy parser.
14579
- *
14580
- * @deprecated
14581
- */
14582
- LegacyHandler: (args: {
14583
- client: Client;
14584
- files: Files;
14585
- openApi: OpenApi;
14586
- plugin: PluginInstance<Plugin.Types<Config$21, ResolvedConfig, Api>>;
14587
- }) => void;
14588
13171
  Types: Plugin.Types<Config$21, ResolvedConfig, Api>;
14589
13172
  };
14590
13173
  //#endregion
@@ -15617,61 +14200,12 @@ interface UserConfig$1 {
15617
14200
  plugins?: ReadonlyArray<PluginNames | { [K in PluginNames]: Plugin.UserConfig<PluginConfigMap[K]['config']> & {
15618
14201
  name: K;
15619
14202
  } }[PluginNames]>;
15620
-
15621
- // DEPRECATED OPTIONS BELOW
15622
-
15623
- /**
15624
- * Manually set base in OpenAPI config instead of inferring from server value
15625
- *
15626
- * @deprecated
15627
- */
15628
- // eslint-disable-next-line typescript-sort-keys/interface
15629
- base?: string;
15630
- /**
15631
- * Opt in to the experimental parser?
15632
- *
15633
- * @deprecated
15634
- * @default true
15635
- */
15636
- experimentalParser?: boolean;
15637
- /**
15638
- * Generate core client classes?
15639
- *
15640
- * @deprecated
15641
- * @default true
15642
- */
15643
- exportCore?: boolean;
15644
- /**
15645
- * Custom client class name. Please note this option is deprecated and
15646
- * will be removed in favor of clients.
15647
- *
15648
- * @deprecated
15649
- * @link https://heyapi.dev/openapi-ts/migrating.html#deprecated-name
15650
- */
15651
- name?: string;
15652
- /**
15653
- * Path to custom request file. Please note this option is deprecated and
15654
- * will be removed in favor of clients.
15655
- *
15656
- * @deprecated
15657
- * @link https://heyapi.dev/openapi-ts/migrating.html#deprecated-request
15658
- */
15659
- request?: string;
15660
- /**
15661
- * Use options or arguments functions. Please note this option is deprecated and
15662
- * will be removed in favor of clients.
15663
- *
15664
- * @deprecated
15665
- * @default true
15666
- * @link https://heyapi.dev/openapi-ts/migrating.html#deprecated-useoptions
15667
- */
15668
- useOptions?: boolean;
15669
14203
  /**
15670
14204
  * @deprecated use `input.watch` instead
15671
14205
  */
15672
14206
  watch?: boolean | number | Watch;
15673
14207
  }
15674
- type Config = Omit<Required<UserConfig$1>, 'base' | 'input' | 'logs' | 'name' | 'output' | 'parser' | 'plugins' | 'request' | 'watch'> & Pick<UserConfig$1, 'base' | 'name' | 'request'> & {
14208
+ type Config = Omit<Required<UserConfig$1>, 'input' | 'logs' | 'output' | 'parser' | 'plugins' | 'watch'> & {
15675
14209
  /**
15676
14210
  * Path to the input specification.
15677
14211
  */
@@ -15690,27 +14224,5 @@ type Config = Omit<Required<UserConfig$1>, 'base' | 'input' | 'logs' | 'name' |
15690
14224
  plugins: { [K in PluginNames]?: Plugin.ConfigWithName<PluginConfigMap[K]> };
15691
14225
  };
15692
14226
  //#endregion
15693
- //#region src/types/types.d.ts
15694
- declare namespace LegacyIR {
15695
- export type LegacyOperation = Operation;
15696
- }
15697
- interface WatchValues {
15698
- /**
15699
- * Headers to be sent with each HEAD and/or GET request. This effectively
15700
- * serves as a mechanism resolver because setting certain headers will opt
15701
- * into comparing the specifications using that method.
15702
- */
15703
- headers: Headers;
15704
- /**
15705
- * Can we send a HEAD request instead of fetching the whole specification?
15706
- * This value will be set after the first successful fetch.
15707
- */
15708
- isHeadMethodSupported?: boolean;
15709
- /**
15710
- * String content of the last successfully fetched specification.
15711
- */
15712
- lastValue?: string;
15713
- }
15714
- //#endregion
15715
- export { StringCase as A, FunctionTypeParameter as B, PluginHandler as C, Client$7 as D, Client$6 as E, ImportExportItemObject as F, SyntaxKindKeyword as H, Modifier as I, tsNodeToString as L, LazyOrAsync as M, MaybeArray as N, Client$8 as O, Comments as P, AccessLevel as R, Client$2 as S, Client$5 as T, types_d_exports as U, ObjectValue as V, OpenApiSchemaObject as _, Input as a, Client as b, parseOpenApiSpec as c, OpenApi$3 as d, OpenApiMetaObject as f, OpenApiResponseObject as g, OpenApiRequestBodyObject as h, UserConfig$1 as i, IR$1 as j, Client$9 as k, Context as l, OpenApiParameterObject as m, WatchValues as n, DefinePlugin as o, OpenApiOperationObject as p, Config as r, Plugin as s, LegacyIR as t, Logger as u, TypeTransformer as v, Client$4 as w, Operation as x, ExpressionTransformer as y, FunctionParameter as z };
15716
- //# sourceMappingURL=types-BRmx9r9T.d.ts.map
14227
+ export { Client$6 as C, LazyOrAsync as D, IR$1 as E, MaybeArray as O, Client$5 as S, StringCase as T, Client as _, Plugin as a, Client$3 as b, OpenApiOperationObject as c, OpenApiResponseObject as d, OpenApiSchemaObject as f, ExpressionTransformer as g, TypeTransformer as h, DefinePlugin as i, OpenApiParameterObject as l, Logger as m, UserConfig$1 as n, OpenApi as o, Context as p, Input as r, OpenApiMetaObject as s, Config as t, OpenApiRequestBodyObject as u, PluginHandler as v, Client$7 as w, Client$4 as x, Client$2 as y };
14228
+ //# sourceMappingURL=config-oAoGatJ7.d.ts.map