@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,12 +1,9 @@
1
1
  import { IProject, Project, Symbol, SymbolIdentifier, SymbolIn, SymbolMeta } from "@hey-api/codegen-core";
2
- import fs from "node:fs";
3
- import ts from "typescript";
4
2
  import { RangeOptions, SemVer } from "semver";
3
+ import ts from "typescript";
5
4
 
6
- //#region rolldown:runtime
7
-
8
- //#endregion
9
5
  //#region src/plugins/shared/types/refs.d.ts
6
+
10
7
  /**
11
8
  * Ref wrapper which ensures a stable reference for a value.
12
9
  *
@@ -58,509 +55,8 @@ interface EnumExtensions {
58
55
  */
59
56
  'x-enumNames'?: ReadonlyArray<string>;
60
57
  }
61
- declare namespace types_d_exports {
62
- 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 };
63
- }
64
- type AccessLevel = 'private' | 'protected' | 'public';
65
- type FunctionParameter = {
66
- accessLevel?: AccessLevel;
67
- default?: any;
68
- isReadOnly?: boolean;
69
- isRequired?: boolean;
70
- name: string;
71
- type?: any | ts.TypeNode;
72
- } | {
73
- destructure: ReadonlyArray<FunctionParameter>;
74
- type?: any | ts.TypeNode;
75
- };
76
- interface FunctionTypeParameter {
77
- default?: any;
78
- extends?: string | ts.TypeNode;
79
- name: string | ts.Identifier;
80
- }
81
- declare const createTypeNode: (base: any | ts.TypeNode, args?: (any | ts.TypeNode)[]) => ts.TypeNode;
82
- declare const createPropertyAccessChain: ({
83
- expression,
84
- name
85
- }: {
86
- expression: ts.Expression;
87
- name: string | ts.MemberName;
88
- }) => ts.PropertyAccessChain;
89
- declare const createPropertyAccessExpression: ({
90
- expression,
91
- isOptional,
92
- name
93
- }: {
94
- expression: string | ts.Expression;
95
- isOptional?: boolean;
96
- name: string | number | ts.MemberName;
97
- }) => ts.PropertyAccessChain | ts.PropertyAccessExpression | ts.ElementAccessExpression;
98
- declare const createNull: () => ts.NullLiteral;
99
- /**
100
- * Convert an unknown value to an expression.
101
- * @param identifiers - list of keys that are treated as identifiers.
102
- * @param shorthand - if shorthand syntax is allowed.
103
- * @param unescape - if string should be unescaped.
104
- * @param value - the unknown value.
105
- * @returns ts.Expression
106
- */
107
- declare const toExpression: <T = unknown>({
108
- identifiers,
109
- isValueAccess,
110
- shorthand,
111
- unescape,
112
- value
113
- }: {
114
- identifiers?: string[];
115
- isValueAccess?: boolean;
116
- shorthand?: boolean;
117
- unescape?: boolean;
118
- value: T;
119
- }) => ts.Expression | undefined;
120
- /**
121
- * Convert parameters to the declaration array expected by TypeScript
122
- * Compiler API.
123
- * @param parameters - the parameters to convert to declarations
124
- * @returns ts.ParameterDeclaration[]
125
- */
126
- declare const toParameterDeclarations: (parameters: ReadonlyArray<FunctionParameter>) => ts.ParameterDeclaration[];
127
- type SyntaxKindKeyword = 'any' | 'async' | 'boolean' | 'export' | 'never' | 'number' | 'private' | 'protected' | 'public' | 'readonly' | 'static' | 'string' | 'undefined' | 'unknown' | 'void';
128
- declare const syntaxKindKeyword: <T extends SyntaxKindKeyword>({
129
- keyword
130
- }: {
131
- keyword: T;
132
- }) => 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;
133
- declare const createKeywordTypeNode: ({
134
- keyword
135
- }: {
136
- keyword: Extract<SyntaxKindKeyword, "any" | "boolean" | "never" | "number" | "string" | "undefined" | "unknown" | "void">;
137
- }) => 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>;
138
- declare const toTypeParameters: (types: (FunctionTypeParameter | ts.TypeParameterDeclaration)[]) => ts.TypeParameterDeclaration[];
139
- declare const createTypeOperatorNode: ({
140
- operator,
141
- type
142
- }: {
143
- operator: "keyof" | "readonly" | "unique";
144
- type: ts.TypeNode;
145
- }) => ts.TypeOperatorNode;
146
- declare const createTypeParameterDeclaration: ({
147
- constraint,
148
- defaultType,
149
- modifiers,
150
- name
151
- }: {
152
- constraint?: ts.TypeNode;
153
- defaultType?: ts.TypeNode;
154
- modifiers?: Array<ts.Modifier>;
155
- name: string | ts.Identifier;
156
- }) => ts.TypeParameterDeclaration;
157
- declare const createMappedTypeNode: ({
158
- members,
159
- nameType,
160
- questionToken,
161
- readonlyToken,
162
- type,
163
- typeParameter
164
- }: {
165
- members?: ts.NodeArray<ts.TypeElement>;
166
- nameType?: ts.TypeNode;
167
- questionToken?: ts.QuestionToken | ts.PlusToken | ts.MinusToken;
168
- readonlyToken?: ts.ReadonlyKeyword | ts.PlusToken | ts.MinusToken;
169
- type?: ts.TypeNode;
170
- typeParameter: ts.TypeParameterDeclaration;
171
- }) => ts.MappedTypeNode;
172
- declare const createLiteralTypeNode: ({
173
- literal
174
- }: {
175
- literal: ts.LiteralTypeNode["literal"];
176
- }) => ts.LiteralTypeNode;
177
- /**
178
- * Create arrow function type expression.
179
- */
180
- declare const createArrowFunction: ({
181
- async,
182
- comment,
183
- multiLine,
184
- parameters,
185
- returnType,
186
- statements,
187
- types
188
- }: {
189
- async?: boolean;
190
- comment?: Comments;
191
- multiLine?: boolean;
192
- parameters?: ReadonlyArray<FunctionParameter>;
193
- returnType?: string | ts.TypeNode;
194
- statements?: ts.Statement[] | ts.Expression;
195
- types?: FunctionTypeParameter[];
196
- }) => ts.ArrowFunction;
197
- /**
198
- * Create anonymous function type expression.
199
- */
200
- declare const createAnonymousFunction: ({
201
- async,
202
- comment,
203
- multiLine,
204
- parameters,
205
- returnType,
206
- statements,
207
- types
208
- }: {
209
- async?: boolean;
210
- comment?: Comments;
211
- multiLine?: boolean;
212
- parameters?: FunctionParameter[];
213
- returnType?: string | ts.TypeNode;
214
- statements?: ReadonlyArray<ts.Statement>;
215
- types?: FunctionTypeParameter[];
216
- }) => ts.FunctionExpression;
217
- /**
218
- * Create Array type expression.
219
- */
220
- declare const createArrayLiteralExpression: <T>({
221
- elements,
222
- multiLine
223
- }: {
224
- /**
225
- * The array to create.
226
- */
227
- elements: T[];
228
- /**
229
- * Should the array be multi line?
230
- *
231
- * @default false
232
- */
233
- multiLine?: boolean;
234
- }) => ts.ArrayLiteralExpression;
235
- declare const createAwaitExpression: ({
236
- expression
237
- }: {
238
- expression: ts.Expression;
239
- }) => ts.AwaitExpression;
240
- declare const createFunctionTypeNode: ({
241
- parameters,
242
- returnType,
243
- typeParameters
244
- }: {
245
- parameters?: ts.ParameterDeclaration[];
246
- returnType: ts.TypeNode;
247
- typeParameters?: ts.TypeParameterDeclaration[];
248
- }) => ts.FunctionTypeNode;
249
- type ObjectValue = {
250
- assertion?: 'any' | ts.TypeNode;
251
- comments?: Comments;
252
- spread: string;
253
- } | {
254
- comments?: Comments;
255
- isValueAccess?: boolean;
256
- key: string;
257
- shorthand?: boolean;
258
- value: any;
259
- };
260
- /**
261
- * Create Object type expression.
262
- * @param comments - comments to add to each property.
263
- * @param identifier - keys that should be treated as identifiers.
264
- * @param multiLine - if the object should be multiline.
265
- * @param obj - the object to create expression with.
266
- * @param shorthand - if shorthand syntax should be used.
267
- * @param unescape - if properties strings should be unescaped.
268
- * @returns ts.ObjectLiteralExpression
269
- */
270
- declare const createObjectType: <T extends Record<string, any> | Array<ObjectValue>>({
271
- comments,
272
- identifiers,
273
- multiLine,
274
- obj,
275
- shorthand,
276
- unescape
277
- }: {
278
- comments?: Comments;
279
- identifiers?: string[];
280
- multiLine?: boolean;
281
- obj: T;
282
- shorthand?: boolean;
283
- unescape?: boolean;
284
- }) => ts.ObjectLiteralExpression;
285
- /**
286
- * Create enum declaration. Example `export enum T = { X, Y };`
287
- * @param asConst - whether to use const enums.
288
- * @param comments - comments to add to each property.
289
- * @param leadingComment - leading comment to add to enum.
290
- * @param name - the name of the enum.
291
- * @param obj - the object representing the enum.
292
- * @returns ts.EnumDeclaration
293
- */
294
- declare const createEnumDeclaration: <T extends Record<string, any> | Array<ObjectValue>>({
295
- asConst,
296
- comments: enumMemberComments,
297
- leadingComment: comments,
298
- name,
299
- obj
300
- }: {
301
- asConst: boolean;
302
- comments?: Record<string | number, Comments>;
303
- leadingComment?: Comments;
304
- name: string | ts.TypeReferenceNode;
305
- obj: T;
306
- }) => ts.EnumDeclaration;
307
- /**
308
- * Create namespace declaration. Example `export namespace MyNamespace { ... }`
309
- * @param name - the name of the namespace.
310
- * @param nodes - the nodes in the namespace.
311
- * @returns
312
- */
313
- declare const createNamespaceDeclaration: ({
314
- name,
315
- statements
316
- }: {
317
- name: string;
318
- statements: Array<ts.Statement>;
319
- }) => ts.ModuleDeclaration;
320
- declare const createIndexedAccessTypeNode: ({
321
- indexType,
322
- objectType
323
- }: {
324
- indexType: ts.TypeNode;
325
- objectType: ts.TypeNode;
326
- }) => ts.IndexedAccessTypeNode;
327
- declare const createGetAccessorDeclaration: ({
328
- modifiers,
329
- name,
330
- returnType,
331
- statements
332
- }: {
333
- modifiers?: Modifier | ReadonlyArray<Modifier>;
334
- name: string | ts.PropertyName;
335
- returnType?: string | ts.Identifier;
336
- statements: ReadonlyArray<ts.Statement>;
337
- }) => ts.GetAccessorDeclaration;
338
- declare const createStringLiteral: ({
339
- isSingleQuote,
340
- text
341
- }: {
342
- isSingleQuote?: boolean;
343
- text: string;
344
- }) => ts.StringLiteral;
345
- declare const createConditionalExpression: ({
346
- condition,
347
- whenFalse,
348
- whenTrue
349
- }: {
350
- condition: ts.Expression;
351
- whenFalse: ts.Expression;
352
- whenTrue: ts.Expression;
353
- }) => ts.ConditionalExpression;
354
- declare const createTypeOfExpression: ({
355
- text
356
- }: {
357
- text: string | ts.Identifier;
358
- }) => ts.TypeOfExpression;
359
- /**
360
- * Create a type alias declaration. Example `export type X = Y;`.
361
- * @param comment (optional) comments to add
362
- * @param name the name of the type
363
- * @param type the type
364
- * @returns ts.TypeAliasDeclaration
365
- */
366
- declare const createTypeAliasDeclaration: ({
367
- comment,
368
- exportType,
369
- name,
370
- type,
371
- typeParameters
372
- }: {
373
- comment?: Comments;
374
- exportType?: boolean;
375
- name: string | ts.TypeReferenceNode;
376
- type: string | ts.TypeNode | ts.Identifier;
377
- typeParameters?: FunctionTypeParameter[];
378
- }) => ts.TypeAliasDeclaration;
379
- declare const createTypeReferenceNode: ({
380
- typeArguments,
381
- typeName
382
- }: {
383
- typeArguments?: ts.TypeNode[];
384
- typeName: string | ts.EntityName;
385
- }) => ts.TypeReferenceNode;
386
- declare const createTypeParenthesizedNode: ({
387
- type
388
- }: {
389
- type: ts.TypeNode;
390
- }) => ts.ParenthesizedTypeNode;
391
- declare const createParameterDeclaration: ({
392
- initializer,
393
- modifiers,
394
- name,
395
- required,
396
- type
397
- }: {
398
- initializer?: ts.Expression;
399
- modifiers?: ReadonlyArray<ts.ModifierLike>;
400
- name: string | ts.BindingName;
401
- required?: boolean;
402
- type?: ts.TypeNode;
403
- }) => ts.ParameterDeclaration;
404
- declare const createNewExpression: ({
405
- argumentsArray,
406
- expression,
407
- typeArguments
408
- }: {
409
- argumentsArray?: Array<ts.Expression>;
410
- expression: ts.Expression;
411
- typeArguments?: Array<ts.TypeNode>;
412
- }) => ts.NewExpression;
413
- declare const createForOfStatement: ({
414
- awaitModifier,
415
- expression,
416
- initializer,
417
- statement
418
- }: {
419
- awaitModifier?: ts.AwaitKeyword;
420
- expression: ts.Expression;
421
- initializer: ts.ForInitializer;
422
- statement: ts.Statement;
423
- }) => ts.ForOfStatement;
424
- declare const createAssignment: ({
425
- left,
426
- right
427
- }: {
428
- left: ts.Expression;
429
- right: ts.Expression;
430
- }) => ts.AssignmentExpression<ts.EqualsToken>;
431
- declare const createBlock: ({
432
- multiLine,
433
- statements
434
- }: {
435
- multiLine?: boolean;
436
- statements: ReadonlyArray<ts.Statement>;
437
- }) => ts.Block;
438
- declare const createPropertyAssignment: ({
439
- initializer,
440
- name
441
- }: {
442
- initializer: ts.Expression;
443
- name: string | ts.PropertyName;
444
- }) => ts.PropertyAssignment;
445
- declare const createRegularExpressionLiteral: ({
446
- flags,
447
- text
448
- }: {
449
- flags?: ReadonlyArray<"g" | "i" | "m" | "s" | "u" | "y">;
450
- text: string;
451
- }) => ts.RegularExpressionLiteral;
452
- declare const createAsExpression: ({
453
- expression,
454
- type
455
- }: {
456
- expression: ts.Expression;
457
- type: ts.TypeNode;
458
- }) => ts.AsExpression;
459
- declare const createTemplateLiteralType: ({
460
- value
461
- }: {
462
- value: ReadonlyArray<string | ts.TypeNode>;
463
- }) => ts.TemplateLiteralTypeNode;
464
- //#endregion
465
- //#region src/tsc/utils.d.ts
466
- interface ImportExportItemObject<Name extends string | undefined = string | undefined, Alias extends string | undefined = undefined> {
467
- alias?: Alias;
468
- asType?: boolean;
469
- name: Name;
470
- }
471
- /**
472
- * Print a TypeScript node to a string.
473
- * @param node the node to print
474
- * @returns string
475
- */
476
- declare function tsNodeToString({
477
- node,
478
- unescape
479
- }: {
480
- node: ts.Node;
481
- unescape?: boolean;
482
- }): string;
483
- type Modifier = AccessLevel | 'async' | 'export' | 'readonly' | 'static';
484
- type CommentLines = Array<string | null | false | undefined>;
485
- type CommentObject = {
486
- jsdoc?: boolean;
487
- lines: CommentLines;
488
- };
489
- type Comments = CommentLines | Array<CommentObject>;
490
- //#endregion
491
- //#region src/generate/file.d.ts
492
- type FileImportResult<Name extends string | undefined = string | undefined, Alias extends string | undefined = undefined> = {
493
- asType?: boolean;
494
- name: Alias extends string ? Alias : Name;
495
- };
496
- /**
497
- * TODO: remove, it's used by legacy plugins
498
- *
499
- * @deprecated
500
- */
501
- declare class GeneratedFile {
502
- /**
503
- * Should the exports from this file be re-exported in the index barrel file?
504
- */
505
- private _exportFromIndex;
506
- private _headers;
507
- private _id;
508
- private _imports;
509
- private _items;
510
- private _name;
511
- private _path;
512
- constructor({
513
- dir,
514
- exportFromIndex,
515
- header,
516
- id,
517
- name
518
- }: {
519
- dir: string;
520
- /**
521
- * Should the exports from this file be re-exported in the index barrel file?
522
- */
523
- exportFromIndex?: boolean;
524
- header?: boolean;
525
- /**
526
- * Unique file ID. Used to generate correct relative paths to the file.
527
- * This should be refactored later as it's basically the file name unless
528
- * nested inside another folder.
529
- */
530
- id: string;
531
- name: string;
532
- });
533
- add(...nodes: Array<ts.Node | string>): void;
534
- get exportFromIndex(): boolean;
535
- get id(): string;
536
- /**
537
- * Adds an import to the provided module. Handles duplication, returns added
538
- * import. Returns the imported name. If we import an aliased export, `name`
539
- * will be equal to the specified `alias`.
540
- */
541
- import<Name extends string | undefined = string | undefined, Alias extends string | undefined = undefined>({
542
- module,
543
- ...importedItem
544
- }: ImportExportItemObject<Name, Alias> & {
545
- module: string;
546
- }): FileImportResult<Name, Alias>;
547
- isEmpty(): boolean;
548
- nameWithoutExtension(): string;
549
- remove(options?: Parameters<typeof fs.rmSync>[1]): void;
550
- /**
551
- * Removes last node form the stack. Works as undo.
552
- *
553
- * @deprecated
554
- */
555
- removeNode_LEGACY(): void;
556
- private _setName;
557
- private _toString;
558
- write(separator?: string, tsConfig?: ts.ParsedCommandLine | null): void;
559
- }
560
58
  //#endregion
561
59
  //#region src/types/utils.d.ts
562
- /** @deprecated */
563
- type Files = Record<string, GeneratedFile>;
564
60
  /**
565
61
  * Accepts a value, a function returning a value, or a function returning a promise of a value.
566
62
  */
@@ -1463,7 +959,7 @@ interface LinkObject$1 {
1463
959
  * $ref: "#/components/examples/frog-example"
1464
960
  * ```
1465
961
  */
1466
- interface MediaTypeObject$2 {
962
+ interface MediaTypeObject$1 {
1467
963
  /**
1468
964
  * 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`.
1469
965
  */
@@ -1753,7 +1249,7 @@ interface ParameterObject {
1753
1249
  /**
1754
1250
  * 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.
1755
1251
  */
1756
- content?: Record<string, MediaTypeObject$2>;
1252
+ content?: Record<string, MediaTypeObject$1>;
1757
1253
  /**
1758
1254
  * Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is `false`.
1759
1255
  */
@@ -2042,7 +1538,7 @@ interface RequestBodyObject {
2042
1538
  /**
2043
1539
  * **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/*
2044
1540
  */
2045
- content: Record<string, MediaTypeObject$2>;
1541
+ content: Record<string, MediaTypeObject$1>;
2046
1542
  /**
2047
1543
  * 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.
2048
1544
  */
@@ -2117,7 +1613,7 @@ interface ResponseObject {
2117
1613
  /**
2118
1614
  * 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/*
2119
1615
  */
2120
- content?: Record<string, MediaTypeObject$2>;
1616
+ content?: Record<string, MediaTypeObject$1>;
2121
1617
  /**
2122
1618
  * **REQUIRED**. A description of the response. {@link https://spec.commonmark.org/ CommonMark syntax} MAY be used for rich text representation.
2123
1619
  */
@@ -3303,7 +2799,7 @@ type StringName = string | ((name: string) => string);
3303
2799
  type IApi$20 = any;
3304
2800
  //#endregion
3305
2801
  //#region src/plugins/@angular/common/types.d.ts
3306
- type UserConfig$27 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
2802
+ type UserConfig$22 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
3307
2803
  /**
3308
2804
  * Should the exports from the generated files be re-exported in the index
3309
2805
  * barrel file?
@@ -3434,13 +2930,13 @@ type Config$13 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
3434
2930
  methodNameBuilder: (operation: IR.OperationObject) => string;
3435
2931
  };
3436
2932
  };
3437
- type AngularCommonPlugin = DefinePlugin<UserConfig$27, Config$13, IApi$20>;
2933
+ type AngularCommonPlugin = DefinePlugin<UserConfig$22, Config$13, IApi$20>;
3438
2934
  //#endregion
3439
2935
  //#region src/plugins/@hey-api/client-axios/api.d.ts
3440
2936
  type IApi$19 = any;
3441
2937
  //#endregion
3442
2938
  //#region src/plugins/@hey-api/client-axios/types.d.ts
3443
- type UserConfig$26 = Plugin.Name<'@hey-api/client-axios'> & Client$2.Config & {
2939
+ type UserConfig$21 = Plugin.Name<'@hey-api/client-axios'> & Client.Config & {
3444
2940
  /**
3445
2941
  * Throw an error instead of returning it in the response?
3446
2942
  *
@@ -3448,13 +2944,13 @@ type UserConfig$26 = Plugin.Name<'@hey-api/client-axios'> & Client$2.Config & {
3448
2944
  */
3449
2945
  throwOnError?: boolean;
3450
2946
  };
3451
- type HeyApiClientAxiosPlugin = DefinePlugin<UserConfig$26, UserConfig$26, IApi$19>;
2947
+ type HeyApiClientAxiosPlugin = DefinePlugin<UserConfig$21, UserConfig$21, IApi$19>;
3452
2948
  //#endregion
3453
2949
  //#region src/plugins/@hey-api/client-fetch/api.d.ts
3454
2950
  type IApi$18 = any;
3455
2951
  //#endregion
3456
2952
  //#region src/plugins/@hey-api/client-fetch/types.d.ts
3457
- type UserConfig$25 = Plugin.Name<'@hey-api/client-fetch'> & Client$2.Config & {
2953
+ type UserConfig$20 = Plugin.Name<'@hey-api/client-fetch'> & Client.Config & {
3458
2954
  /**
3459
2955
  * Throw an error instead of returning it in the response?
3460
2956
  *
@@ -3462,13 +2958,13 @@ type UserConfig$25 = Plugin.Name<'@hey-api/client-fetch'> & Client$2.Config & {
3462
2958
  */
3463
2959
  throwOnError?: boolean;
3464
2960
  };
3465
- type HeyApiClientFetchPlugin = DefinePlugin<UserConfig$25, UserConfig$25, IApi$18>;
2961
+ type HeyApiClientFetchPlugin = DefinePlugin<UserConfig$20, UserConfig$20, IApi$18>;
3466
2962
  //#endregion
3467
2963
  //#region src/plugins/@hey-api/client-next/api.d.ts
3468
2964
  type IApi$17 = any;
3469
2965
  //#endregion
3470
2966
  //#region src/plugins/@hey-api/client-next/types.d.ts
3471
- type UserConfig$24 = Plugin.Name<'@hey-api/client-next'> & Client$2.Config & {
2967
+ type UserConfig$19 = Plugin.Name<'@hey-api/client-next'> & Client.Config & {
3472
2968
  /**
3473
2969
  * Throw an error instead of returning it in the response?
3474
2970
  *
@@ -3476,20 +2972,20 @@ type UserConfig$24 = Plugin.Name<'@hey-api/client-next'> & Client$2.Config & {
3476
2972
  */
3477
2973
  throwOnError?: boolean;
3478
2974
  };
3479
- type HeyApiClientNextPlugin = DefinePlugin<UserConfig$24, UserConfig$24, IApi$17>;
2975
+ type HeyApiClientNextPlugin = DefinePlugin<UserConfig$19, UserConfig$19, IApi$17>;
3480
2976
  //#endregion
3481
2977
  //#region src/plugins/@hey-api/client-nuxt/api.d.ts
3482
2978
  type IApi$16 = any;
3483
2979
  //#endregion
3484
2980
  //#region src/plugins/@hey-api/client-nuxt/types.d.ts
3485
- type UserConfig$23 = Plugin.Name<'@hey-api/client-nuxt'> & Client$2.Config;
3486
- type HeyApiClientNuxtPlugin = DefinePlugin<UserConfig$23, UserConfig$23, IApi$16>;
2981
+ type UserConfig$18 = Plugin.Name<'@hey-api/client-nuxt'> & Client.Config;
2982
+ type HeyApiClientNuxtPlugin = DefinePlugin<UserConfig$18, UserConfig$18, IApi$16>;
3487
2983
  //#endregion
3488
2984
  //#region src/plugins/@hey-api/client-ofetch/api.d.ts
3489
2985
  type IApi$15 = any;
3490
2986
  //#endregion
3491
2987
  //#region src/plugins/@hey-api/client-ofetch/types.d.ts
3492
- type UserConfig$22 = Plugin.Name<'@hey-api/client-ofetch'> & Client$2.Config & {
2988
+ type UserConfig$17 = Plugin.Name<'@hey-api/client-ofetch'> & Client.Config & {
3493
2989
  /**
3494
2990
  * Throw an error instead of returning it in the response?
3495
2991
  *
@@ -3497,7 +2993,7 @@ type UserConfig$22 = Plugin.Name<'@hey-api/client-ofetch'> & Client$2.Config & {
3497
2993
  */
3498
2994
  throwOnError?: boolean;
3499
2995
  };
3500
- type HeyApiClientOfetchPlugin = DefinePlugin<UserConfig$22, UserConfig$22, IApi$15>;
2996
+ type HeyApiClientOfetchPlugin = DefinePlugin<UserConfig$17, UserConfig$17, IApi$15>;
3501
2997
  //#endregion
3502
2998
  //#region src/plugins/@hey-api/client-core/types.d.ts
3503
2999
  interface PluginHandler {
@@ -3511,7 +3007,7 @@ interface PluginHandler {
3511
3007
  /**
3512
3008
  * Public Client API.
3513
3009
  */
3514
- declare namespace Client$2 {
3010
+ declare namespace Client {
3515
3011
  export type Config = Plugin.Hooks & {
3516
3012
  /**
3517
3013
  * Set a default base URL when creating the client? You can set `baseUrl`
@@ -3570,7 +3066,7 @@ declare namespace Client$2 {
3570
3066
  type IApi$14 = any;
3571
3067
  //#endregion
3572
3068
  //#region src/plugins/@hey-api/client-angular/types.d.ts
3573
- type UserConfig$21 = Plugin.Name<'@hey-api/client-angular'> & Client$2.Config & {
3069
+ type UserConfig$16 = Plugin.Name<'@hey-api/client-angular'> & Client.Config & {
3574
3070
  /**
3575
3071
  * Throw an error instead of returning it in the response?
3576
3072
  *
@@ -3578,27 +3074,7 @@ type UserConfig$21 = Plugin.Name<'@hey-api/client-angular'> & Client$2.Config &
3578
3074
  */
3579
3075
  throwOnError?: boolean;
3580
3076
  };
3581
- type HeyApiClientAngularPlugin = DefinePlugin<UserConfig$21, UserConfig$21, IApi$14>;
3582
- //#endregion
3583
- //#region src/plugins/@hey-api/legacy-angular/types.d.ts
3584
- type UserConfig$20 = Plugin.Name<'legacy/angular'> & Pick<Client$2.Config, 'output'>;
3585
- type HeyApiClientLegacyAngularPlugin = DefinePlugin<UserConfig$20>;
3586
- //#endregion
3587
- //#region src/plugins/@hey-api/legacy-axios/types.d.ts
3588
- type UserConfig$19 = Plugin.Name<'legacy/axios'> & Pick<Client$2.Config, 'output'>;
3589
- type HeyApiClientLegacyAxiosPlugin = DefinePlugin<UserConfig$19>;
3590
- //#endregion
3591
- //#region src/plugins/@hey-api/legacy-fetch/types.d.ts
3592
- type UserConfig$18 = Plugin.Name<'legacy/fetch'> & Pick<Client$2.Config, 'output'>;
3593
- type HeyApiClientLegacyFetchPlugin = DefinePlugin<UserConfig$18>;
3594
- //#endregion
3595
- //#region src/plugins/@hey-api/legacy-node/types.d.ts
3596
- type UserConfig$17 = Plugin.Name<'legacy/node'> & Pick<Client$2.Config, 'output'>;
3597
- type HeyApiClientLegacyNodePlugin = DefinePlugin<UserConfig$17>;
3598
- //#endregion
3599
- //#region src/plugins/@hey-api/legacy-xhr/types.d.ts
3600
- type UserConfig$16 = Plugin.Name<'legacy/xhr'> & Pick<Client$2.Config, 'output'>;
3601
- type HeyApiClientLegacyXhrPlugin = DefinePlugin<UserConfig$16>;
3077
+ type HeyApiClientAngularPlugin = DefinePlugin<UserConfig$16, UserConfig$16, IApi$14>;
3602
3078
  //#endregion
3603
3079
  //#region src/openApi/2.0.x/types/json-schema-draft-4.d.ts
3604
3080
  interface JsonSchemaDraft4 extends EnumExtensions {
@@ -5668,7 +5144,7 @@ interface LinkObject {
5668
5144
  *
5669
5145
  * TODO: examples
5670
5146
  */
5671
- interface MediaTypeObject$1 {
5147
+ interface MediaTypeObject {
5672
5148
  /**
5673
5149
  * 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.
5674
5150
  */
@@ -5847,7 +5323,7 @@ interface ParameterObject$1 {
5847
5323
  /**
5848
5324
  * 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.
5849
5325
  */
5850
- content?: Record<string, MediaTypeObject$1>;
5326
+ content?: Record<string, MediaTypeObject>;
5851
5327
  /**
5852
5328
  * Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is `false`.
5853
5329
  */
@@ -6010,7 +5486,7 @@ interface RequestBodyObject$1 {
6010
5486
  /**
6011
5487
  * **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/*"`
6012
5488
  */
6013
- content: Record<string, MediaTypeObject$1>;
5489
+ content: Record<string, MediaTypeObject>;
6014
5490
  /**
6015
5491
  * 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.
6016
5492
  */
@@ -6031,7 +5507,7 @@ interface ResponseObject$1 {
6031
5507
  /**
6032
5508
  * 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/*"`
6033
5509
  */
6034
- content?: Record<string, MediaTypeObject$1>;
5510
+ content?: Record<string, MediaTypeObject>;
6035
5511
  /**
6036
5512
  * **REQUIRED**. A description of the response. {@link https://spec.commonmark.org/ CommonMark syntax} MAY be used for rich text representation.
6037
5513
  */
@@ -6567,7 +6043,7 @@ type UserConfig$15 = Plugin.Name<'@hey-api/schemas'> & Plugin.Hooks & {
6567
6043
  *
6568
6044
  * @default '{{name}}Schema'
6569
6045
  */
6570
- 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);
6046
+ nameBuilder?: string | ((name: string, schema: OpenApiV2_0_XTypes['SchemaObject'] | OpenApiV3_0_XTypes['ReferenceObject'] | OpenApiV3_0_XTypes['SchemaObject'] | OpenApiV3_1_XTypes['SchemaObject']) => string);
6571
6047
  /**
6572
6048
  * Choose schema type to generate. Select 'form' if you don't want
6573
6049
  * descriptions to reduce bundle size and you plan to use schemas
@@ -6579,17 +6055,6 @@ type UserConfig$15 = Plugin.Name<'@hey-api/schemas'> & Plugin.Hooks & {
6579
6055
  };
6580
6056
  type HeyApiSchemasPlugin = DefinePlugin<UserConfig$15, UserConfig$15, IApi$13>;
6581
6057
  //#endregion
6582
- //#region src/types/client.d.ts
6583
- interface Operation extends Omit<Operation$1, 'tags'> {
6584
- service: string;
6585
- }
6586
- interface Service extends Pick<Model, '$refs' | 'imports' | 'name'> {
6587
- operations: Operation[];
6588
- }
6589
- interface Client extends Omit<Client$1, 'operations'> {
6590
- services: Service[];
6591
- }
6592
- //#endregion
6593
6058
  //#region src/plugins/@hey-api/sdk/api.d.ts
6594
6059
  type IApi$12 = any;
6595
6060
  //#endregion
@@ -6665,9 +6130,9 @@ type UserConfig$14 = Plugin.Name<'@hey-api/sdk'> & Plugin.Hooks & {
6665
6130
  instance?: string | boolean;
6666
6131
  /**
6667
6132
  * Customise the name of methods within the service. By default,
6668
- * {@link IR.OperationObject.id} or {@link Operation.name} is used.
6133
+ * {@link IR.OperationObject.id} is used.
6669
6134
  */
6670
- methodNameBuilder?: (operation: IR$1.OperationObject | Operation) => string;
6135
+ methodNameBuilder?: (operation: IR$1.OperationObject) => string;
6671
6136
  // TODO: parser - rename operationId option to something like inferId?: boolean
6672
6137
  /**
6673
6138
  * Use operation ID to generate operation names?
@@ -6839,9 +6304,9 @@ type Config$12 = Plugin.Name<'@hey-api/sdk'> & Plugin.Hooks & {
6839
6304
  instance: string | boolean;
6840
6305
  /**
6841
6306
  * Customise the name of methods within the service. By default,
6842
- * {@link IR.OperationObject.id} or {@link Operation.name} is used.
6307
+ * {@link IR.OperationObject.id} is used.
6843
6308
  */
6844
- methodNameBuilder?: (operation: IR$1.OperationObject | Operation) => string;
6309
+ methodNameBuilder?: (operation: IR$1.OperationObject) => string;
6845
6310
  // TODO: parser - rename operationId option to something like inferId?: boolean
6846
6311
  /**
6847
6312
  * Use operation ID to generate operation names?
@@ -12273,21 +11738,114 @@ interface PluginConfigMap {
12273
11738
  '@tanstack/vue-query': TanStackVueQueryPlugin['Types'];
12274
11739
  arktype: ArktypePlugin['Types'];
12275
11740
  fastify: FastifyPlugin['Types'];
12276
- 'legacy/angular': HeyApiClientLegacyAngularPlugin['Types'];
12277
- 'legacy/axios': HeyApiClientLegacyAxiosPlugin['Types'];
12278
- 'legacy/fetch': HeyApiClientLegacyFetchPlugin['Types'];
12279
- 'legacy/node': HeyApiClientLegacyNodePlugin['Types'];
12280
- 'legacy/xhr': HeyApiClientLegacyXhrPlugin['Types'];
12281
11741
  valibot: ValibotPlugin['Types'];
12282
11742
  zod: ZodPlugin['Types'];
12283
11743
  }
12284
11744
  //#endregion
11745
+ //#region src/utils/logger.d.ts
11746
+ declare class Logger {
11747
+ private events;
11748
+ private end;
11749
+ /**
11750
+ * Recursively end all unended events in the event tree.
11751
+ * This ensures all events have end marks before measuring.
11752
+ */
11753
+ private endAllEvents;
11754
+ report(print?: boolean): PerformanceMeasure | undefined;
11755
+ private reportEvent;
11756
+ private start;
11757
+ private storeEvent;
11758
+ timeEvent(name: string): {
11759
+ mark: PerformanceMark;
11760
+ timeEnd: () => void;
11761
+ };
11762
+ }
11763
+ //#endregion
11764
+ //#region src/ir/context.d.ts
11765
+ declare class Context<Spec extends Record<string, any> = any> {
11766
+ /**
11767
+ * Configuration for parsing and generating the output. This
11768
+ * is a mix of user-provided and default values.
11769
+ */
11770
+ config: Config;
11771
+ /**
11772
+ * The code generation project instance used to manage files, symbols,
11773
+ */
11774
+ gen: Project;
11775
+ /**
11776
+ * The dependency graph built from the intermediate representation.
11777
+ */
11778
+ graph: Graph | undefined;
11779
+ /**
11780
+ * Intermediate representation model obtained from `spec`.
11781
+ */
11782
+ ir: IR$1.Model;
11783
+ /**
11784
+ * Logger instance.
11785
+ */
11786
+ logger: Logger;
11787
+ /**
11788
+ * The package metadata and utilities for the current context, constructed
11789
+ * from the provided dependencies. Used for managing package-related
11790
+ * information such as name, version, and dependency resolution during
11791
+ * code generation.
11792
+ */
11793
+ package: Package;
11794
+ /**
11795
+ * A map of registered plugin instances, keyed by plugin name. Plugins are
11796
+ * registered through the `registerPlugin` method and can be accessed by
11797
+ * their configured name from the config.
11798
+ */
11799
+ plugins: Partial<Record<PluginNames, PluginInstance<PluginConfigMap[keyof PluginConfigMap]>>>;
11800
+ /**
11801
+ * Resolved specification from `input`.
11802
+ */
11803
+ spec: Spec;
11804
+ constructor({
11805
+ config,
11806
+ dependencies,
11807
+ logger,
11808
+ spec
11809
+ }: {
11810
+ config: Config;
11811
+ dependencies: Record<string, string>;
11812
+ logger: Logger;
11813
+ spec: Spec;
11814
+ });
11815
+ /**
11816
+ * Returns a resolved and dereferenced schema from `spec`.
11817
+ */
11818
+ dereference<T>(schema: {
11819
+ $ref: string;
11820
+ }): T;
11821
+ /**
11822
+ * Registers a new plugin to the global context.
11823
+ *
11824
+ * @param name Plugin name.
11825
+ * @returns Registered plugin instance.
11826
+ */
11827
+ private registerPlugin;
11828
+ /**
11829
+ * Registers all plugins in the order specified by the configuration and returns
11830
+ * an array of the registered PluginInstance objects. Each plugin is instantiated
11831
+ * and added to the context's plugins map.
11832
+ *
11833
+ * @returns {ReadonlyArray<PluginInstance>} An array of registered plugin instances in order.
11834
+ */
11835
+ registerPlugins(): ReadonlyArray<PluginInstance>;
11836
+ resolveIrRef<T>($ref: string): T;
11837
+ /**
11838
+ * Returns a resolved reference from `spec`.
11839
+ */
11840
+ resolveRef<T>($ref: string): T;
11841
+ }
11842
+ //#endregion
12285
11843
  //#region src/ir/graph.d.ts
12286
11844
  declare const irTopLevelKinds: readonly ["operation", "parameter", "requestBody", "schema", "server", "webhook"];
12287
11845
  type IrTopLevelKind = (typeof irTopLevelKinds)[number];
12288
11846
  //#endregion
12289
11847
  //#region src/openApi/types.d.ts
12290
- declare namespace OpenApi$3 {
11848
+ declare namespace OpenApi {
12291
11849
  export type V2_0_X = OpenApiV2_0_X;
12292
11850
  export type V3_0_X = OpenApiV3_0_X;
12293
11851
  export type V3_1_X = OpenApiV3_1_X;
@@ -12385,7 +11943,7 @@ declare class PluginInstance<T extends Plugin.Types = Plugin.Types> {
12385
11943
  package: Context['package'];
12386
11944
  constructor(props: Pick<Required<Plugin.Config<T>>, 'config' | 'dependencies' | 'handler'> & {
12387
11945
  api?: T['api'];
12388
- context: Context<OpenApi$3.V2_0_X | OpenApi$3.V3_0_X | OpenApi$3.V3_1_X>;
11946
+ context: Context<OpenApi.V2_0_X | OpenApi.V3_0_X | OpenApi.V3_1_X>;
12389
11947
  gen: IProject;
12390
11948
  name: string;
12391
11949
  output: string;
@@ -12454,975 +12012,10 @@ declare class PluginInstance<T extends Plugin.Types = Plugin.Types> {
12454
12012
  private isOperationKind;
12455
12013
  }
12456
12014
  //#endregion
12457
- //#region src/utils/logger.d.ts
12458
- declare class Logger {
12459
- private events;
12460
- private end;
12461
- /**
12462
- * Recursively end all unended events in the event tree.
12463
- * This ensures all events have end marks before measuring.
12464
- */
12465
- private endAllEvents;
12466
- report(print?: boolean): PerformanceMeasure | undefined;
12467
- private reportEvent;
12468
- private start;
12469
- private storeEvent;
12470
- timeEvent(name: string): {
12471
- mark: PerformanceMark;
12472
- timeEnd: () => void;
12473
- };
12474
- }
12475
- //#endregion
12476
- //#region src/ir/context.d.ts
12477
- declare class Context<Spec extends Record<string, any> = any> {
12478
- /**
12479
- * Configuration for parsing and generating the output. This
12480
- * is a mix of user-provided and default values.
12481
- */
12482
- config: Config;
12483
- /**
12484
- * The code generation project instance used to manage files, symbols,
12485
- */
12486
- gen: Project;
12487
- /**
12488
- * The dependency graph built from the intermediate representation.
12489
- */
12490
- graph: Graph | undefined;
12015
+ //#region src/parser/types/hooks.d.ts
12016
+ type Hooks = {
12491
12017
  /**
12492
- * Intermediate representation model obtained from `spec`.
12493
- */
12494
- ir: IR$1.Model;
12495
- /**
12496
- * Logger instance.
12497
- */
12498
- logger: Logger;
12499
- /**
12500
- * The package metadata and utilities for the current context, constructed
12501
- * from the provided dependencies. Used for managing package-related
12502
- * information such as name, version, and dependency resolution during
12503
- * code generation.
12504
- */
12505
- package: Package;
12506
- /**
12507
- * A map of registered plugin instances, keyed by plugin name. Plugins are
12508
- * registered through the `registerPlugin` method and can be accessed by
12509
- * their configured name from the config.
12510
- */
12511
- plugins: Partial<Record<PluginNames, PluginInstance<PluginConfigMap[keyof PluginConfigMap]>>>;
12512
- /**
12513
- * Resolved specification from `input`.
12514
- */
12515
- spec: Spec;
12516
- constructor({
12517
- config,
12518
- dependencies,
12519
- logger,
12520
- spec
12521
- }: {
12522
- config: Config;
12523
- dependencies: Record<string, string>;
12524
- logger: Logger;
12525
- spec: Spec;
12526
- });
12527
- /**
12528
- * Returns a resolved and dereferenced schema from `spec`.
12529
- */
12530
- dereference<T>(schema: {
12531
- $ref: string;
12532
- }): T;
12533
- /**
12534
- * Registers a new plugin to the global context.
12535
- *
12536
- * @param name Plugin name.
12537
- * @returns Registered plugin instance.
12538
- */
12539
- private registerPlugin;
12540
- /**
12541
- * Registers all plugins in the order specified by the configuration and returns
12542
- * an array of the registered PluginInstance objects. Each plugin is instantiated
12543
- * and added to the context's plugins map.
12544
- *
12545
- * @returns {ReadonlyArray<PluginInstance>} An array of registered plugin instances in order.
12546
- */
12547
- registerPlugins(): ReadonlyArray<PluginInstance>;
12548
- resolveIrRef<T>($ref: string): T;
12549
- /**
12550
- * Returns a resolved reference from `spec`.
12551
- */
12552
- resolveRef<T>($ref: string): T;
12553
- }
12554
- //#endregion
12555
- //#region src/openApi/common/interfaces/Dictionary.d.ts
12556
- interface Dictionary<T = unknown> {
12557
- [key: string]: T;
12558
- }
12559
- //#endregion
12560
- //#region src/openApi/v3/interfaces/OpenApiReference.d.ts
12561
- /**
12562
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#reference-object
12563
- */
12564
- interface OpenApiReference {
12565
- $ref?: string;
12566
- }
12567
- //#endregion
12568
- //#region src/openApi/v3/interfaces/OpenApiExample.d.ts
12569
- /**
12570
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#example-object
12571
- */
12572
- interface OpenApiExample extends OpenApiReference {
12573
- description?: string;
12574
- externalValue?: string;
12575
- summary?: string;
12576
- value?: unknown;
12577
- }
12578
- //#endregion
12579
- //#region src/openApi/common/interfaces/WithEnumExtension.d.ts
12580
- interface WithEnumExtension {
12581
- 'x-enum-descriptions'?: ReadonlyArray<string>;
12582
- 'x-enum-varnames'?: ReadonlyArray<string>;
12583
- 'x-enumNames'?: ReadonlyArray<string>;
12584
- }
12585
- //#endregion
12586
- //#region src/openApi/v3/interfaces/OpenApiDiscriminator.d.ts
12587
- /**
12588
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#discriminator-object
12589
- */
12590
- interface OpenApiDiscriminator {
12591
- mapping?: Dictionary<string>;
12592
- propertyName: string;
12593
- }
12594
- //#endregion
12595
- //#region src/openApi/v3/interfaces/OpenApiExternalDocs.d.ts
12596
- /**
12597
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#external-documentation-object
12598
- */
12599
- interface OpenApiExternalDocs {
12600
- description?: string;
12601
- url: string;
12602
- }
12603
- //#endregion
12604
- //#region src/openApi/v3/interfaces/OpenApiXml.d.ts
12605
- /**
12606
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#xml-object
12607
- */
12608
- interface OpenApiXml$1 {
12609
- attribute?: boolean;
12610
- name?: string;
12611
- namespace?: string;
12612
- prefix?: string;
12613
- wrapped?: boolean;
12614
- }
12615
- //#endregion
12616
- //#region src/openApi/v3/interfaces/OpenApiSchema.d.ts
12617
- /**
12618
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#schema-object
12619
- */
12620
- interface OpenApiSchema$1 extends OpenApiReference, WithEnumExtension {
12621
- additionalProperties?: boolean | OpenApiSchema$1;
12622
- allOf?: OpenApiSchema$1[];
12623
- anyOf?: OpenApiSchema$1[];
12624
- const?: string | number | boolean | null;
12625
- default?: unknown;
12626
- deprecated?: boolean;
12627
- description?: string;
12628
- discriminator?: OpenApiDiscriminator;
12629
- enum?: (string | number)[];
12630
- example?: unknown;
12631
- exclusiveMaximum?: boolean;
12632
- exclusiveMinimum?: boolean;
12633
- externalDocs?: OpenApiExternalDocs;
12634
- format?: 'binary' | 'boolean' | 'byte' | 'date-time' | 'date' | 'double' | 'float' | 'int32' | 'int64' | 'password' | 'string';
12635
- items?: OpenApiSchema$1;
12636
- maxItems?: number;
12637
- maxLength?: number;
12638
- maxProperties?: number;
12639
- maximum?: number;
12640
- minItems?: number;
12641
- minLength?: number;
12642
- minProperties?: number;
12643
- minimum?: number;
12644
- multipleOf?: number;
12645
- not?: OpenApiSchema$1[];
12646
- nullable?: boolean;
12647
- oneOf?: OpenApiSchema$1[];
12648
- pattern?: string;
12649
- prefixItems?: OpenApiSchema$1[];
12650
- properties?: Dictionary<OpenApiSchema$1>;
12651
- readOnly?: boolean;
12652
- required?: string[];
12653
- title?: string;
12654
- type?: string | string[];
12655
- uniqueItems?: boolean;
12656
- writeOnly?: boolean;
12657
- xml?: OpenApiXml$1;
12658
- }
12659
- //#endregion
12660
- //#region src/openApi/v3/interfaces/OpenApiParameter.d.ts
12661
- /**
12662
- * add only one type for now as that's needed to resolve the reported issue,
12663
- * more types should be added though
12664
- * {@link https://github.com/hey-api/openapi-ts/issues/612}
12665
- */
12666
- type MediaType = 'application/json';
12667
- /**
12668
- * encoding interface should be added, not adding it for now as it's not needed
12669
- * to resolve the issue reported
12670
- * {@link https://github.com/hey-api/openapi-ts/issues/612}
12671
- */
12672
- interface MediaTypeObject {
12673
- example?: unknown;
12674
- examples?: Dictionary<OpenApiExample>;
12675
- schema: OpenApiSchema$1;
12676
- }
12677
- /**
12678
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-object
12679
- */
12680
- interface OpenApiParameter extends OpenApiReference {
12681
- allowEmptyValue?: boolean;
12682
- allowReserved?: boolean;
12683
- content?: Record<MediaType, MediaTypeObject>;
12684
- deprecated?: boolean;
12685
- description?: string;
12686
- example?: unknown;
12687
- examples?: Dictionary<OpenApiExample>;
12688
- explode?: boolean;
12689
- in: 'cookie' | 'formData' | 'header' | 'path' | 'query';
12690
- name: string;
12691
- nullable?: boolean;
12692
- required?: boolean;
12693
- schema?: OpenApiSchema$1;
12694
- style?: string;
12695
- }
12696
- //#endregion
12697
- //#region src/openApi/common/interfaces/client.d.ts
12698
- interface Enum {
12699
- customDescription?: string;
12700
- customName?: string;
12701
- description?: string;
12702
- value: string | number;
12703
- }
12704
- interface OperationParameter extends Model {
12705
- in: 'body' | 'cookie' | 'formData' | 'header' | 'path' | 'query';
12706
- mediaType: string | null;
12707
- prop: string;
12708
- }
12709
- interface OperationParameters extends Pick<Model, '$refs' | 'imports'> {
12710
- parameters: OperationParameter[];
12711
- parametersBody: OperationParameter | null;
12712
- parametersCookie: OperationParameter[];
12713
- parametersForm: OperationParameter[];
12714
- parametersHeader: OperationParameter[];
12715
- parametersPath: OperationParameter[];
12716
- parametersQuery: OperationParameter[];
12717
- }
12718
- interface OperationResponse extends Model {
12719
- code: number | 'default' | '1XX' | '2XX' | '3XX' | '4XX' | '5XX';
12720
- in: 'header' | 'response';
12721
- responseTypes: Array<'error' | 'success'>;
12722
- }
12723
- type Method = 'CONNECT' | 'DELETE' | 'GET' | 'HEAD' | 'OPTIONS' | 'PATCH' | 'POST' | 'PUT' | 'TRACE';
12724
- interface Operation$1 extends OperationParameters {
12725
- deprecated: boolean;
12726
- description: string | null;
12727
- /**
12728
- * The operationId from OpenAPI specification.
12729
- */
12730
- id: string | null;
12731
- method: Method;
12732
- name: string;
12733
- path: string;
12734
- responseHeader: string | null;
12735
- /**
12736
- * All operation responses defined in OpenAPI specification.
12737
- * Sorted by status code.
12738
- */
12739
- responses: OperationResponse[];
12740
- summary: string | null;
12741
- tags: string[] | null;
12742
- }
12743
- interface Schema {
12744
- default?: unknown;
12745
- exclusiveMaximum?: boolean;
12746
- exclusiveMinimum?: boolean;
12747
- format?: 'binary' | 'boolean' | 'byte' | 'date-time' | 'date' | 'double' | 'float' | 'int32' | 'int64' | 'password' | 'string';
12748
- isDefinition: boolean;
12749
- isNullable: boolean;
12750
- isReadOnly: boolean;
12751
- isRequired: boolean;
12752
- maxItems?: number;
12753
- maxLength?: number;
12754
- maxProperties?: number;
12755
- maximum?: number;
12756
- minItems?: number;
12757
- minLength?: number;
12758
- minProperties?: number;
12759
- minimum?: number;
12760
- multipleOf?: number;
12761
- pattern?: string;
12762
- uniqueItems?: boolean;
12763
- }
12764
- interface ModelMeta {
12765
- /**
12766
- * Ref to the type in OpenAPI specification.
12767
- */
12768
- $ref: string;
12769
- /**
12770
- * Name passed to the initial `getModel()` call.
12771
- */
12772
- name: string;
12773
- }
12774
- interface Model extends Schema {
12775
- /**
12776
- * **Experimental.** Contains list of original refs so they can be used
12777
- * to access the schema from anywhere instead of relying on string name.
12778
- * This allows us to do things like detect type of ref.
12779
- */
12780
- $refs: string[];
12781
- base: string;
12782
- deprecated?: boolean;
12783
- description: string | null;
12784
- enum: Enum[];
12785
- enums: Model[];
12786
- export: 'all-of' | 'any-of' | 'array' | 'const' | 'dictionary' | 'enum' | 'generic' | 'interface' | 'one-of' | 'reference';
12787
- imports: string[];
12788
- in: OperationParameter['in'] | OpenApiParameter['in'] | OperationResponse['in'] | '';
12789
- link: Model | Model[] | null;
12790
- meta?: ModelMeta;
12791
- /**
12792
- * @deprecated use `meta.name` instead
12793
- */
12794
- name: string;
12795
- properties: Model[];
12796
- template: string | null;
12797
- type: string;
12798
- }
12799
- interface Client$1 {
12800
- /**
12801
- * Configuration for parsing and generating the output. This
12802
- * is a mix of user-provided and default values.
12803
- */
12804
- config: Config;
12805
- models: Model[];
12806
- operations: Operation$1[];
12807
- server: string;
12808
- /**
12809
- * Map of generated types where type names are keys. This is used to track
12810
- * uniquely generated types as we may want to deduplicate if there are
12811
- * multiple definitions with the same name but different value, or if we
12812
- * want to transform names.
12813
- */
12814
- types: Record<string, ModelMeta>;
12815
- version: string;
12816
- }
12817
- //#endregion
12818
- //#region src/openApi/v2/interfaces/OpenApiExternalDocs.d.ts
12819
- /**
12820
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#external-documentation-object
12821
- */
12822
- interface OpenApiExternalDocs$1 {
12823
- description?: string;
12824
- url: string;
12825
- }
12826
- //#endregion
12827
- //#region src/openApi/v2/interfaces/OpenApiContact.d.ts
12828
- /**
12829
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#contact-object
12830
- */
12831
- interface OpenApiContact$1 {
12832
- email?: string;
12833
- name?: string;
12834
- url?: string;
12835
- }
12836
- //#endregion
12837
- //#region src/openApi/v2/interfaces/OpenApiLicense.d.ts
12838
- /**
12839
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#license-object
12840
- */
12841
- interface OpenApiLicense$1 {
12842
- name: string;
12843
- url?: string;
12844
- }
12845
- //#endregion
12846
- //#region src/openApi/v2/interfaces/OpenApiInfo.d.ts
12847
- /**
12848
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#info-object
12849
- */
12850
- interface OpenApiInfo$1 {
12851
- contact?: OpenApiContact$1;
12852
- description?: string;
12853
- license?: OpenApiLicense$1;
12854
- termsOfService?: string;
12855
- title: string;
12856
- version: string;
12857
- }
12858
- //#endregion
12859
- //#region src/openApi/v2/interfaces/Extensions/WithNullableExtension.d.ts
12860
- interface WithNullableExtension {
12861
- 'x-nullable'?: boolean;
12862
- }
12863
- //#endregion
12864
- //#region src/openApi/v2/interfaces/OpenApiItems.d.ts
12865
- /**
12866
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#items-object)
12867
- */
12868
- interface OpenApiItems extends WithEnumExtension {
12869
- collectionFormat?: 'csv' | 'ssv' | 'tsv' | 'pipes';
12870
- default?: unknown;
12871
- enum?: (string | number)[];
12872
- exclusiveMaximum?: number;
12873
- exclusiveMinimum?: number;
12874
- format?: 'int32' | 'int64' | 'float' | 'double' | 'string' | 'boolean' | 'byte' | 'binary' | 'date' | 'date-time' | 'password';
12875
- items?: OpenApiItems;
12876
- maxItems?: number;
12877
- maxLength?: number;
12878
- maximum?: number;
12879
- minItems?: number;
12880
- minLength?: number;
12881
- minimum?: number;
12882
- multipleOf?: number;
12883
- pattern?: string;
12884
- type?: string;
12885
- uniqueItems?: boolean;
12886
- }
12887
- //#endregion
12888
- //#region src/openApi/v2/interfaces/OpenApiReference.d.ts
12889
- /**
12890
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#reference-object
12891
- */
12892
- interface OpenApiReference$1 {
12893
- $ref?: string;
12894
- }
12895
- //#endregion
12896
- //#region src/openApi/v2/interfaces/OpenApiXml.d.ts
12897
- /**
12898
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#xml-object
12899
- */
12900
- interface OpenApiXml {
12901
- attribute?: boolean;
12902
- name?: string;
12903
- namespace?: string;
12904
- prefix?: string;
12905
- wrapped?: boolean;
12906
- }
12907
- //#endregion
12908
- //#region src/openApi/v2/interfaces/OpenApiSchema.d.ts
12909
- /**
12910
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#schema-object
12911
- */
12912
- interface OpenApiSchema extends OpenApiReference$1, WithEnumExtension, WithNullableExtension {
12913
- additionalProperties?: boolean | OpenApiSchema;
12914
- allOf?: OpenApiSchema[];
12915
- default?: unknown;
12916
- description?: string;
12917
- discriminator?: string;
12918
- enum?: (string | number)[];
12919
- example?: unknown;
12920
- exclusiveMaximum?: boolean;
12921
- exclusiveMinimum?: boolean;
12922
- externalDocs?: OpenApiExternalDocs$1;
12923
- format?: 'int32' | 'int64' | 'float' | 'double' | 'string' | 'boolean' | 'byte' | 'binary' | 'date' | 'date-time' | 'password';
12924
- items?: OpenApiSchema;
12925
- maxItems?: number;
12926
- maxLength?: number;
12927
- maxProperties?: number;
12928
- maximum?: number;
12929
- minItems?: number;
12930
- minLength?: number;
12931
- minProperties?: number;
12932
- minimum?: number;
12933
- multipleOf?: number;
12934
- pattern?: string;
12935
- properties?: Dictionary<OpenApiSchema>;
12936
- readOnly?: boolean;
12937
- required?: string[];
12938
- title?: string;
12939
- type?: string;
12940
- uniqueItems?: boolean;
12941
- xml?: OpenApiXml;
12942
- }
12943
- //#endregion
12944
- //#region src/openApi/v2/interfaces/OpenApiParameter.d.ts
12945
- /**
12946
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#parameter-object
12947
- */
12948
- interface OpenApiParameter$1 extends OpenApiReference$1, WithEnumExtension, WithNullableExtension {
12949
- allowEmptyValue?: boolean;
12950
- collectionFormat?: 'csv' | 'ssv' | 'tsv' | 'pipes' | 'multi';
12951
- default?: unknown;
12952
- description?: string;
12953
- enum?: (string | number)[];
12954
- exclusiveMaximum?: boolean;
12955
- exclusiveMinimum?: boolean;
12956
- format?: 'int32' | 'int64' | 'float' | 'double' | 'string' | 'boolean' | 'byte' | 'binary' | 'date' | 'date-time' | 'password';
12957
- in: 'path' | 'query' | 'header' | 'formData' | 'body';
12958
- items?: OpenApiItems;
12959
- maxItems?: number;
12960
- maxLength?: number;
12961
- maximum?: number;
12962
- minItems?: number;
12963
- minLength?: number;
12964
- minimum?: number;
12965
- multipleOf?: number;
12966
- name: string;
12967
- pattern?: string;
12968
- required?: boolean;
12969
- schema?: OpenApiSchema;
12970
- type?: string;
12971
- uniqueItems?: boolean;
12972
- }
12973
- //#endregion
12974
- //#region src/openApi/v2/interfaces/OpenApiExample.d.ts
12975
- /**
12976
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#example-object
12977
- */
12978
- interface OpenApiExample$1 {
12979
- [mimetype: string]: unknown;
12980
- }
12981
- //#endregion
12982
- //#region src/openApi/v2/interfaces/OpenApiHeader.d.ts
12983
- /**
12984
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#header-object
12985
- */
12986
- interface OpenApiHeader$1 {
12987
- collectionFormat?: 'csv' | 'ssv' | 'tsv' | 'pipes';
12988
- default?: unknown;
12989
- description?: string;
12990
- enum?: (string | number)[];
12991
- exclusiveMaximum?: boolean;
12992
- exclusiveMinimum?: boolean;
12993
- format?: 'int32' | 'int64' | 'float' | 'double' | 'string' | 'boolean' | 'byte' | 'binary' | 'date' | 'date-time' | 'password';
12994
- items?: Dictionary<OpenApiItems>;
12995
- maxItems?: number;
12996
- maxLength?: number;
12997
- maximum?: number;
12998
- minItems?: number;
12999
- minLength?: number;
13000
- minimum?: number;
13001
- multipleOf?: number;
13002
- pattern?: string;
13003
- type: 'string' | 'number' | 'integer' | 'boolean' | 'array';
13004
- uniqueItems?: boolean;
13005
- }
13006
- //#endregion
13007
- //#region src/openApi/v2/interfaces/OpenApiResponse.d.ts
13008
- /**
13009
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#response-object
13010
- */
13011
- interface OpenApiResponse$1 extends OpenApiReference$1 {
13012
- description: string;
13013
- examples?: OpenApiExample$1;
13014
- headers?: Dictionary<OpenApiHeader$1>;
13015
- schema?: OpenApiSchema & OpenApiReference$1;
13016
- }
13017
- //#endregion
13018
- //#region src/openApi/v2/interfaces/OpenApiResponses.d.ts
13019
- /**
13020
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#responses-object
13021
- */
13022
- interface Response$1 {
13023
- [httpcode: string]: OpenApiResponse$1;
13024
- }
13025
- type OpenApiResponses$1 = Response$1 & {
13026
- default?: OpenApiResponse$1;
13027
- };
13028
- //#endregion
13029
- //#region src/openApi/v2/interfaces/OpenApiSecurityRequirement.d.ts
13030
- /**
13031
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#security-requirement-object
13032
- */
13033
- interface OpenApiSecurityRequirement$1 {
13034
- [key: string]: string;
13035
- }
13036
- //#endregion
13037
- //#region src/openApi/v2/interfaces/OpenApiOperation.d.ts
13038
- /**
13039
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#operation-object
13040
- */
13041
- interface OpenApiOperation$1 {
13042
- consumes?: string[];
13043
- deprecated?: boolean;
13044
- description?: string;
13045
- externalDocs?: OpenApiExternalDocs$1;
13046
- operationId?: string;
13047
- parameters?: OpenApiParameter$1[];
13048
- produces?: string[];
13049
- responses: OpenApiResponses$1;
13050
- schemes?: ('http' | 'https' | 'ws' | 'wss')[];
13051
- security?: OpenApiSecurityRequirement$1[];
13052
- summary?: string;
13053
- tags?: string[];
13054
- }
13055
- //#endregion
13056
- //#region src/openApi/v2/interfaces/OpenApiPath.d.ts
13057
- /**
13058
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#path-item-object
13059
- */
13060
- interface OpenApiPath$1 extends OpenApiReference$1 {
13061
- connect?: OpenApiOperation$1;
13062
- delete?: OpenApiOperation$1;
13063
- get?: OpenApiOperation$1;
13064
- head?: OpenApiOperation$1;
13065
- options?: OpenApiOperation$1;
13066
- parameters?: OpenApiParameter$1[];
13067
- patch?: OpenApiOperation$1;
13068
- post?: OpenApiOperation$1;
13069
- put?: OpenApiOperation$1;
13070
- trace?: OpenApiOperation$1;
13071
- }
13072
- //#endregion
13073
- //#region src/openApi/v2/interfaces/OpenApiSecurityScheme.d.ts
13074
- /**
13075
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#security-scheme-object
13076
- */
13077
- interface OpenApiSecurityScheme$1 {
13078
- authorizationUrl?: string;
13079
- description?: string;
13080
- flow?: 'implicit' | 'password' | 'application' | 'accessCode';
13081
- in?: 'query' | 'header';
13082
- name?: string;
13083
- scopes: Dictionary<string>;
13084
- tokenUrl?: string;
13085
- type: 'basic' | 'apiKey' | 'oauth2';
13086
- }
13087
- //#endregion
13088
- //#region src/openApi/v2/interfaces/OpenApiTag.d.ts
13089
- /**
13090
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#tag-object
13091
- */
13092
- interface OpenApiTag$1 {
13093
- description?: string;
13094
- externalDocs?: OpenApiExternalDocs$1;
13095
- name: string;
13096
- }
13097
- //#endregion
13098
- //#region src/openApi/v2/interfaces/OpenApi.d.ts
13099
- /**
13100
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md
13101
- */
13102
- interface OpenApi$1 {
13103
- basePath?: string;
13104
- consumes?: string[];
13105
- definitions?: Dictionary<OpenApiSchema>;
13106
- externalDocs?: OpenApiExternalDocs$1;
13107
- host?: string;
13108
- info: OpenApiInfo$1;
13109
- parameters?: Dictionary<OpenApiParameter$1>;
13110
- paths: Dictionary<OpenApiPath$1>;
13111
- produces?: string[];
13112
- responses?: Dictionary<OpenApiResponse$1>;
13113
- schemes?: string[];
13114
- security?: OpenApiSecurityRequirement$1[];
13115
- securityDefinitions?: Dictionary<OpenApiSecurityScheme$1>;
13116
- swagger: string;
13117
- tags?: OpenApiTag$1[];
13118
- }
13119
- //#endregion
13120
- //#region src/openApi/v3/interfaces/OpenApiHeader.d.ts
13121
- /**
13122
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#header-object
13123
- */
13124
- interface OpenApiHeader extends OpenApiReference {
13125
- allowEmptyValue?: boolean;
13126
- allowReserved?: boolean;
13127
- deprecated?: boolean;
13128
- description?: string;
13129
- example?: unknown;
13130
- examples?: Dictionary<OpenApiExample>;
13131
- explode?: boolean;
13132
- required?: boolean;
13133
- schema?: OpenApiSchema$1;
13134
- style?: string;
13135
- }
13136
- //#endregion
13137
- //#region src/openApi/v3/interfaces/OpenApiEncoding.d.ts
13138
- /**
13139
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#encoding-object
13140
- */
13141
- interface OpenApiEncoding {
13142
- allowReserved?: boolean;
13143
- contentType?: string;
13144
- explode?: boolean;
13145
- headers?: Dictionary<OpenApiHeader>;
13146
- style?: string;
13147
- }
13148
- //#endregion
13149
- //#region src/openApi/v3/interfaces/OpenApiMediaType.d.ts
13150
- /**
13151
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#media-type-object
13152
- */
13153
- interface OpenApiMediaType extends OpenApiReference {
13154
- encoding?: Dictionary<OpenApiEncoding>;
13155
- example?: unknown;
13156
- examples?: Dictionary<OpenApiExample>;
13157
- schema?: OpenApiSchema$1;
13158
- }
13159
- //#endregion
13160
- //#region src/openApi/v3/interfaces/OpenApiRequestBody.d.ts
13161
- /**
13162
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#request-body-object
13163
- */
13164
- interface OpenApiRequestBody extends OpenApiReference {
13165
- content: Dictionary<OpenApiMediaType>;
13166
- description?: string;
13167
- nullable?: boolean;
13168
- required?: boolean;
13169
- 'x-body-name'?: string;
13170
- }
13171
- //#endregion
13172
- //#region src/openApi/v3/interfaces/OpenApiServerVariable.d.ts
13173
- /**
13174
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#server-variable-object
13175
- */
13176
- interface OpenApiServerVariable extends WithEnumExtension {
13177
- default: string;
13178
- description?: string;
13179
- enum?: (string | number)[];
13180
- }
13181
- //#endregion
13182
- //#region src/openApi/v3/interfaces/OpenApiServer.d.ts
13183
- /**
13184
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#server-object
13185
- */
13186
- interface OpenApiServer {
13187
- description?: string;
13188
- url: string;
13189
- variables?: Dictionary<OpenApiServerVariable>;
13190
- }
13191
- //#endregion
13192
- //#region src/openApi/v3/interfaces/OpenApiLink.d.ts
13193
- /**
13194
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#link-object
13195
- */
13196
- interface OpenApiLink extends OpenApiReference {
13197
- description?: string;
13198
- operationId?: string;
13199
- operationRef?: string;
13200
- parameters?: Dictionary<unknown>;
13201
- requestBody?: unknown;
13202
- server?: OpenApiServer;
13203
- }
13204
- //#endregion
13205
- //#region src/openApi/v3/interfaces/OpenApiResponse.d.ts
13206
- /**
13207
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#response-object
13208
- */
13209
- interface OpenApiResponse extends OpenApiReference {
13210
- content?: Dictionary<OpenApiMediaType>;
13211
- description: string;
13212
- headers?: Dictionary<OpenApiHeader>;
13213
- links?: Dictionary<OpenApiLink>;
13214
- }
13215
- //#endregion
13216
- //#region src/openApi/v3/interfaces/OpenApiResponses.d.ts
13217
- /**
13218
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#responses-object
13219
- */
13220
- interface Response {
13221
- [httpcode: string]: OpenApiResponse;
13222
- }
13223
- type OpenApiResponses = OpenApiReference & Response & {
13224
- default: OpenApiResponse;
13225
- };
13226
- //#endregion
13227
- //#region src/openApi/v3/interfaces/OpenApiSecurityRequirement.d.ts
13228
- /**
13229
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#security-requirement-object
13230
- */
13231
- interface OpenApiSecurityRequirement {
13232
- [name: string]: string;
13233
- }
13234
- //#endregion
13235
- //#region src/openApi/v3/interfaces/OpenApiOperation.d.ts
13236
- /**
13237
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#operation-object
13238
- */
13239
- interface OpenApiOperation {
13240
- callbacks?: Dictionary<OpenApiCallback>;
13241
- deprecated?: boolean;
13242
- description?: string;
13243
- externalDocs?: OpenApiExternalDocs;
13244
- operationId?: string;
13245
- parameters?: OpenApiParameter[];
13246
- requestBody?: OpenApiRequestBody;
13247
- responses: OpenApiResponses;
13248
- security?: OpenApiSecurityRequirement[];
13249
- servers?: OpenApiServer[];
13250
- summary?: string;
13251
- tags?: string[];
13252
- }
13253
- //#endregion
13254
- //#region src/openApi/v3/interfaces/OpenApiPath.d.ts
13255
- /**
13256
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#path-item-object
13257
- */
13258
- interface OpenApiPath {
13259
- connect?: OpenApiOperation;
13260
- delete?: OpenApiOperation;
13261
- description?: string;
13262
- get?: OpenApiOperation;
13263
- head?: OpenApiOperation;
13264
- options?: OpenApiOperation;
13265
- parameters?: OpenApiParameter[];
13266
- patch?: OpenApiOperation;
13267
- post?: OpenApiOperation;
13268
- put?: OpenApiOperation;
13269
- servers?: OpenApiServer[];
13270
- summary?: string;
13271
- trace?: OpenApiOperation;
13272
- }
13273
- //#endregion
13274
- //#region src/openApi/v3/interfaces/OpenApiCallback.d.ts
13275
- /**
13276
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#callback-object
13277
- */
13278
- interface Callback {
13279
- [key: string]: OpenApiPath;
13280
- }
13281
- type OpenApiCallback = OpenApiReference & Callback;
13282
- //#endregion
13283
- //#region src/openApi/v3/interfaces/OpenApiOAuthFlow.d.ts
13284
- /**
13285
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#oauth-flow-object
13286
- */
13287
- interface OpenApiOAuthFlow {
13288
- authorizationUrl: string;
13289
- refreshUrl?: string;
13290
- scopes: Dictionary<string>;
13291
- tokenUrl: string;
13292
- }
13293
- //#endregion
13294
- //#region src/openApi/v3/interfaces/OpenApiOAuthFlows.d.ts
13295
- /**
13296
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#oauth-flows-object
13297
- */
13298
- interface OpenApiOAuthFlows {
13299
- authorizationCode?: OpenApiOAuthFlow;
13300
- clientCredentials?: OpenApiOAuthFlow;
13301
- implicit?: OpenApiOAuthFlow;
13302
- password?: OpenApiOAuthFlow;
13303
- }
13304
- //#endregion
13305
- //#region src/openApi/v3/interfaces/OpenApiSecurityScheme.d.ts
13306
- /**
13307
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#security-scheme-object
13308
- */
13309
- interface OpenApiSecurityScheme extends OpenApiReference {
13310
- bearerFormat?: string;
13311
- description?: string;
13312
- flows?: OpenApiOAuthFlows;
13313
- in?: 'query' | 'header' | 'cookie';
13314
- name?: string;
13315
- openIdConnectUrl?: string;
13316
- scheme?: string;
13317
- type: 'apiKey' | 'http' | 'oauth2' | 'openIdConnect';
13318
- }
13319
- //#endregion
13320
- //#region src/openApi/v3/interfaces/OpenApiComponents.d.ts
13321
- /**
13322
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#components-object
13323
- */
13324
- interface OpenApiComponents {
13325
- callbacks?: Dictionary<OpenApiCallback>;
13326
- examples?: Dictionary<OpenApiExample>;
13327
- headers?: Dictionary<OpenApiHeader>;
13328
- links?: Dictionary<OpenApiLink>;
13329
- parameters?: Dictionary<OpenApiParameter>;
13330
- requestBodies?: Dictionary<OpenApiRequestBody>;
13331
- responses?: Dictionary<OpenApiResponses>;
13332
- schemas?: Dictionary<OpenApiSchema$1>;
13333
- securitySchemes?: Dictionary<OpenApiSecurityScheme>;
13334
- }
13335
- //#endregion
13336
- //#region src/openApi/v3/interfaces/OpenApiContact.d.ts
13337
- /**
13338
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#contact-object
13339
- */
13340
- interface OpenApiContact {
13341
- email?: string;
13342
- name?: string;
13343
- url?: string;
13344
- }
13345
- //#endregion
13346
- //#region src/openApi/v3/interfaces/OpenApiLicense.d.ts
13347
- /**
13348
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#license-object
13349
- */
13350
- interface OpenApiLicense {
13351
- name: string;
13352
- url?: string;
13353
- }
13354
- //#endregion
13355
- //#region src/openApi/v3/interfaces/OpenApiInfo.d.ts
13356
- /**
13357
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#info-object
13358
- */
13359
- interface OpenApiInfo {
13360
- contact?: OpenApiContact;
13361
- description?: string;
13362
- license?: OpenApiLicense;
13363
- termsOfService?: string;
13364
- title: string;
13365
- version: string;
13366
- }
13367
- //#endregion
13368
- //#region src/openApi/v3/interfaces/OpenApiPaths.d.ts
13369
- /**
13370
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#paths-object
13371
- */
13372
- interface OpenApiPaths {
13373
- [path: string]: OpenApiPath;
13374
- }
13375
- //#endregion
13376
- //#region src/openApi/v3/interfaces/OpenApiTag.d.ts
13377
- /**
13378
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#tag-object
13379
- */
13380
- interface OpenApiTag {
13381
- description?: string;
13382
- externalDocs?: OpenApiExternalDocs;
13383
- name: string;
13384
- }
13385
- //#endregion
13386
- //#region src/openApi/v3/interfaces/OpenApi.d.ts
13387
- /**
13388
- * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md
13389
- */
13390
- interface OpenApi$2 {
13391
- components?: OpenApiComponents;
13392
- externalDocs?: OpenApiExternalDocs;
13393
- info: OpenApiInfo;
13394
- openapi: string;
13395
- paths: OpenApiPaths;
13396
- security?: OpenApiSecurityRequirement[];
13397
- servers?: OpenApiServer[];
13398
- tags?: OpenApiTag[];
13399
- }
13400
- //#endregion
13401
- //#region src/openApi/common/interfaces/OpenApi.d.ts
13402
- type OpenApi = OpenApi$1 | OpenApi$2;
13403
- //#endregion
13404
- //#region src/openApi/index.d.ts
13405
- /**
13406
- * @internal
13407
- * Parse the resolved OpenAPI specification. This will populate and return
13408
- * `context` with intermediate representation obtained from the parsed spec.
13409
- */
13410
- declare const parseOpenApiSpec: ({
13411
- config,
13412
- dependencies,
13413
- logger,
13414
- spec
13415
- }: {
13416
- config: Config;
13417
- dependencies: Record<string, string>;
13418
- logger: Logger;
13419
- spec: unknown;
13420
- }) => Context | undefined;
13421
- //#endregion
13422
- //#region src/parser/types/hooks.d.ts
13423
- type Hooks = {
13424
- /**
13425
- * Event hooks.
12018
+ * Event hooks.
13426
12019
  */
13427
12020
  events?: {
13428
12021
  /**
@@ -13604,7 +12197,7 @@ type Hooks = {
13604
12197
  };
13605
12198
  //#endregion
13606
12199
  //#region src/plugins/types.d.ts
13607
- 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';
12200
+ 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';
13608
12201
  type PluginValidatorNames = 'arktype' | 'valibot' | 'zod';
13609
12202
  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;
13610
12203
  type AnyPluginName = PluginNames | (string & {});
@@ -13646,7 +12239,6 @@ declare namespace Plugin {
13646
12239
  */
13647
12240
  dependencies?: ReadonlyArray<AnyPluginName>;
13648
12241
  handler: Handler<T>;
13649
- handlerLegacy?: LegacyHandler<T>;
13650
12242
  name: T['config']['name'];
13651
12243
  output?: NonNullable<T['config']['output']>;
13652
12244
  /**
@@ -13705,17 +12297,6 @@ type DefinePlugin<Config$14 extends BaseConfig = BaseConfig, ResolvedConfig exte
13705
12297
  plugin: PluginInstance<Plugin.Types<Config$14, ResolvedConfig, Api>>;
13706
12298
  }) => void;
13707
12299
  Instance: PluginInstance<Plugin.Types<Config$14, ResolvedConfig, Api>>;
13708
- /**
13709
- * Plugin implementation for legacy parser.
13710
- *
13711
- * @deprecated
13712
- */
13713
- LegacyHandler: (args: {
13714
- client: Client;
13715
- files: Files;
13716
- openApi: OpenApi;
13717
- plugin: PluginInstance<Plugin.Types<Config$14, ResolvedConfig, Api>>;
13718
- }) => void;
13719
12300
  Types: Plugin.Types<Config$14, ResolvedConfig, Api>;
13720
12301
  };
13721
12302
  //#endregion
@@ -14748,61 +13329,12 @@ interface UserConfig$1 {
14748
13329
  plugins?: ReadonlyArray<PluginNames | { [K in PluginNames]: Plugin.UserConfig<PluginConfigMap[K]['config']> & {
14749
13330
  name: K;
14750
13331
  } }[PluginNames]>;
14751
-
14752
- // DEPRECATED OPTIONS BELOW
14753
-
14754
- /**
14755
- * Manually set base in OpenAPI config instead of inferring from server value
14756
- *
14757
- * @deprecated
14758
- */
14759
- // eslint-disable-next-line typescript-sort-keys/interface
14760
- base?: string;
14761
- /**
14762
- * Opt in to the experimental parser?
14763
- *
14764
- * @deprecated
14765
- * @default true
14766
- */
14767
- experimentalParser?: boolean;
14768
- /**
14769
- * Generate core client classes?
14770
- *
14771
- * @deprecated
14772
- * @default true
14773
- */
14774
- exportCore?: boolean;
14775
- /**
14776
- * Custom client class name. Please note this option is deprecated and
14777
- * will be removed in favor of clients.
14778
- *
14779
- * @deprecated
14780
- * @link https://heyapi.dev/openapi-ts/migrating.html#deprecated-name
14781
- */
14782
- name?: string;
14783
- /**
14784
- * Path to custom request file. Please note this option is deprecated and
14785
- * will be removed in favor of clients.
14786
- *
14787
- * @deprecated
14788
- * @link https://heyapi.dev/openapi-ts/migrating.html#deprecated-request
14789
- */
14790
- request?: string;
14791
- /**
14792
- * Use options or arguments functions. Please note this option is deprecated and
14793
- * will be removed in favor of clients.
14794
- *
14795
- * @deprecated
14796
- * @default true
14797
- * @link https://heyapi.dev/openapi-ts/migrating.html#deprecated-useoptions
14798
- */
14799
- useOptions?: boolean;
14800
13332
  /**
14801
13333
  * @deprecated use `input.watch` instead
14802
13334
  */
14803
13335
  watch?: boolean | number | Watch;
14804
13336
  }
14805
- type Config = Omit<Required<UserConfig$1>, 'base' | 'input' | 'logs' | 'name' | 'output' | 'parser' | 'plugins' | 'request' | 'watch'> & Pick<UserConfig$1, 'base' | 'name' | 'request'> & {
13337
+ type Config = Omit<Required<UserConfig$1>, 'input' | 'logs' | 'output' | 'parser' | 'plugins' | 'watch'> & {
14806
13338
  /**
14807
13339
  * Path to the input specification.
14808
13340
  */
@@ -14821,27 +13353,5 @@ type Config = Omit<Required<UserConfig$1>, 'base' | 'input' | 'logs' | 'name' |
14821
13353
  plugins: { [K in PluginNames]?: Plugin.ConfigWithName<PluginConfigMap[K]> };
14822
13354
  };
14823
13355
  //#endregion
14824
- //#region src/types/types.d.ts
14825
- declare namespace LegacyIR {
14826
- export type LegacyOperation = Operation;
14827
- }
14828
- interface WatchValues {
14829
- /**
14830
- * Headers to be sent with each HEAD and/or GET request. This effectively
14831
- * serves as a mechanism resolver because setting certain headers will opt
14832
- * into comparing the specifications using that method.
14833
- */
14834
- headers: Headers;
14835
- /**
14836
- * Can we send a HEAD request instead of fetching the whole specification?
14837
- * This value will be set after the first successful fetch.
14838
- */
14839
- isHeadMethodSupported?: boolean;
14840
- /**
14841
- * String content of the last successfully fetched specification.
14842
- */
14843
- lastValue?: string;
14844
- }
14845
- //#endregion
14846
- export { Modifier as A, PluginHandler as C, MaybeArray as D, LazyOrAsync as E, ObjectValue as F, SyntaxKindKeyword as I, types_d_exports as L, AccessLevel as M, FunctionParameter as N, Comments as O, FunctionTypeParameter as P, __export as R, Client$2 as S, IR$1 as T, 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, tsNodeToString as j, ImportExportItemObject 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, StringCase as w, Operation as x, ExpressionTransformer as y };
14847
- //# sourceMappingURL=types-Dh80P1tV.d.cts.map
13356
+ export { MaybeArray as S, Client as _, Plugin as a, IR$1 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, LazyOrAsync as x, StringCase as y };
13357
+ //# sourceMappingURL=config-B2o9ax_a.d.cts.map