@orval/core 6.19.1 → 6.21.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.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import SwaggerParser from '@apidevtools/swagger-parser';
2
2
  import * as openapi3_ts from 'openapi3-ts';
3
- import { InfoObject, OperationObject, OpenAPIObject, ResponsesObject, ReferenceObject, RequestBodyObject, ParameterObject, SchemaObject, ComponentsObject, SchemasObject, PathItemObject, ResponseObject } from 'openapi3-ts';
3
+ import { InfoObject, OperationObject, OpenAPIObject, ResponsesObject, ReferenceObject, RequestBodyObject, ParameterObject, SchemaObject, ComponentsObject, SchemasObject, PathItemObject, ResponseObject, ExampleObject } from 'openapi3-ts';
4
4
  import swagger2openapi from 'swagger2openapi';
5
+ import { allLocales } from '@faker-js/faker';
5
6
  import { CompareOperator } from 'compare-versions';
6
7
  import debug from 'debug';
7
8
 
@@ -10,14 +11,14 @@ interface Options {
10
11
  input?: string | InputOptions;
11
12
  hooks?: Partial<HooksOptions>;
12
13
  }
13
- declare type OptionsFn = () => Options | Promise<Options>;
14
- declare type OptionsExport = Options | Promise<Options> | OptionsFn;
15
- declare type Config = {
14
+ type OptionsFn = () => Options | Promise<Options>;
15
+ type OptionsExport = Options | Promise<Options> | OptionsFn;
16
+ type Config = {
16
17
  [project: string]: OptionsExport;
17
18
  };
18
- declare type ConfigFn = () => Config | Promise<Config>;
19
- declare type ConfigExternal = Config | Promise<Config> | ConfigFn;
20
- declare type NormizaledConfig = {
19
+ type ConfigFn = () => Config | Promise<Config>;
20
+ type ConfigExternal = Config | Promise<Config> | ConfigFn;
21
+ type NormalizedConfig = {
21
22
  [project: string]: NormalizedOptions;
22
23
  };
23
24
  interface NormalizedOptions {
@@ -25,12 +26,12 @@ interface NormalizedOptions {
25
26
  input: NormalizedInputOptions;
26
27
  hooks: NormalizedHookOptions;
27
28
  }
28
- declare type NormalizedOutputOptions = {
29
+ type NormalizedOutputOptions = {
29
30
  workspace?: string;
30
31
  target?: string;
31
32
  schemas?: string;
32
33
  mode: OutputMode;
33
- mock: boolean | ClientMSWBuilder;
34
+ mock?: GlobalMockOptions | ClientMockBuilder;
34
35
  override: NormalizedOverrideOutput;
35
36
  client: OutputClient | OutputClientFunc;
36
37
  clean: boolean | string[];
@@ -42,7 +43,10 @@ declare type NormalizedOutputOptions = {
42
43
  indexFiles: boolean;
43
44
  baseUrl?: string;
44
45
  };
45
- declare type NormalizedOverrideOutput = {
46
+ type NormalizedParamsSerializerOptions = {
47
+ qs?: Record<string, any>;
48
+ };
49
+ type NormalizedOverrideOutput = {
46
50
  title?: (title: string) => string;
47
51
  transformer?: OutputTransformer;
48
52
  mutator?: NormalizedMutator;
@@ -52,21 +56,13 @@ declare type NormalizedOverrideOutput = {
52
56
  tags: {
53
57
  [key: string]: NormalizedOperationOptions;
54
58
  };
55
- mock?: {
56
- arrayMin?: number;
57
- arrayMax?: number;
58
- properties?: MockProperties;
59
- format?: {
60
- [key: string]: unknown;
61
- };
62
- required?: boolean;
63
- baseUrl?: string;
64
- delay?: number | (() => number);
65
- };
59
+ mock?: OverrideMockOptions;
66
60
  contentType?: OverrideOutputContentType;
67
61
  header: false | ((info: InfoObject) => string[] | string);
68
62
  formData: boolean | NormalizedMutator;
69
63
  formUrlEncoded: boolean | NormalizedMutator;
64
+ paramsSerializer?: NormalizedMutator;
65
+ paramsSerializerOptions?: NormalizedParamsSerializerOptions;
70
66
  components: {
71
67
  schemas: {
72
68
  suffix: string;
@@ -89,18 +85,20 @@ declare type NormalizedOverrideOutput = {
89
85
  operationName?: (operation: OperationObject, route: string, verb: Verbs) => string;
90
86
  requestOptions: Record<string, any> | boolean;
91
87
  useDates?: boolean;
88
+ coerceTypes?: boolean;
92
89
  useTypeOverInterfaces?: boolean;
93
90
  useDeprecatedOperations?: boolean;
94
91
  useBigInt?: boolean;
95
92
  useNamedParameters?: boolean;
93
+ useNativeEnums?: boolean;
96
94
  };
97
- declare type NormalizedMutator = {
95
+ type NormalizedMutator = {
98
96
  path: string;
99
97
  name?: string;
100
98
  default: boolean;
101
99
  alias?: Record<string, string>;
102
100
  };
103
- declare type NormalizedOperationOptions = {
101
+ type NormalizedOperationOptions = {
104
102
  transformer?: OutputTransformer;
105
103
  mutator?: NormalizedMutator;
106
104
  mock?: {
@@ -116,9 +114,10 @@ declare type NormalizedOperationOptions = {
116
114
  operationName?: (operation: OperationObject, route: string, verb: Verbs) => string;
117
115
  formData?: boolean | NormalizedMutator;
118
116
  formUrlEncoded?: boolean | NormalizedMutator;
117
+ paramsSerializer?: NormalizedMutator;
119
118
  requestOptions?: object | boolean;
120
119
  };
121
- declare type NormalizedInputOptions = {
120
+ type NormalizedInputOptions = {
122
121
  target: string | Record<string, unknown> | OpenAPIObject;
123
122
  validation: boolean;
124
123
  override: OverrideInput;
@@ -128,13 +127,13 @@ declare type NormalizedInputOptions = {
128
127
  tags?: (string | RegExp)[];
129
128
  };
130
129
  };
131
- declare type OutputClientFunc = (clients: GeneratorClients) => ClientGeneratorsBuilder;
132
- declare type OutputOptions = {
130
+ type OutputClientFunc = (clients: GeneratorClients) => ClientGeneratorsBuilder;
131
+ type OutputOptions = {
133
132
  workspace?: string;
134
133
  target?: string;
135
134
  schemas?: string;
136
135
  mode?: OutputMode;
137
- mock?: boolean | ClientMSWBuilder;
136
+ mock?: boolean | GlobalMockOptions | ClientMockBuilder;
138
137
  override?: OverrideOutput;
139
138
  client?: OutputClient | OutputClientFunc;
140
139
  clean?: boolean | string[];
@@ -146,10 +145,10 @@ declare type OutputOptions = {
146
145
  indexFiles?: boolean;
147
146
  baseUrl?: string;
148
147
  };
149
- declare type SwaggerParserOptions = Omit<SwaggerParser.Options, 'validate'> & {
148
+ type SwaggerParserOptions = Omit<SwaggerParser.Options, 'validate'> & {
150
149
  validate?: boolean;
151
150
  };
152
- declare type InputOptions = {
151
+ type InputOptions = {
153
152
  target: string | Record<string, unknown> | OpenAPIObject;
154
153
  validation?: boolean;
155
154
  override?: OverrideInput;
@@ -159,50 +158,67 @@ declare type InputOptions = {
159
158
  tags?: string[];
160
159
  };
161
160
  };
162
- declare type OutputClient = 'axios' | 'axios-functions' | 'angular' | 'react-query' | 'svelte-query' | 'vue-query' | 'swr' | 'zod';
163
161
  declare const OutputClient: {
164
- ANGULAR: OutputClient;
165
- AXIOS: OutputClient;
166
- AXIOS_FUNCTIONS: OutputClient;
167
- REACT_QUERY: OutputClient;
168
- SVELTE_QUERY: OutputClient;
169
- VUE_QUERY: OutputClient;
162
+ readonly ANGULAR: "angular";
163
+ readonly AXIOS: "axios";
164
+ readonly AXIOS_FUNCTIONS: "axios-functions";
165
+ readonly REACT_QUERY: "react-query";
166
+ readonly SVELTE_QUERY: "svelte-query";
167
+ readonly VUE_QUERY: "vue-query";
170
168
  };
171
- declare type OutputMode = 'single' | 'split' | 'tags' | 'tags-split';
169
+ type OutputClient = typeof OutputClient[keyof typeof OutputClient];
172
170
  declare const OutputMode: {
173
- SINGLE: OutputMode;
174
- SPLIT: OutputMode;
175
- TAGS: OutputMode;
176
- TAGS_SPLIT: OutputMode;
171
+ readonly SINGLE: "single";
172
+ readonly SPLIT: "split";
173
+ readonly TAGS: "tags";
174
+ readonly TAGS_SPLIT: "tags-split";
175
+ };
176
+ type OutputMode = typeof OutputMode[keyof typeof OutputMode];
177
+ declare const OutputMockType: {
178
+ readonly MSW: "msw";
179
+ };
180
+ type OutputMockType = typeof OutputMockType[keyof typeof OutputMockType];
181
+ type GlobalMockOptions = {
182
+ type: OutputMockType;
183
+ useExamples?: boolean;
184
+ delay?: number | (() => number);
185
+ baseUrl?: string;
186
+ locale?: keyof typeof allLocales;
177
187
  };
178
- declare type MockOptions = {
188
+ type OverrideMockOptions = Partial<GlobalMockOptions> & {
179
189
  arrayMin?: number;
180
190
  arrayMax?: number;
181
191
  required?: boolean;
182
- properties?: Record<string, string>;
192
+ properties?: MockProperties;
193
+ format?: Record<string, unknown>;
194
+ };
195
+ type MockOptions = Omit<OverrideMockOptions, 'properties'> & {
196
+ properties?: Record<string, unknown>;
183
197
  operations?: Record<string, {
184
- properties: Record<string, string>;
198
+ properties: Record<string, unknown>;
185
199
  }>;
186
- format?: Record<string, string>;
187
200
  tags?: Record<string, {
188
- properties: Record<string, string>;
201
+ properties: Record<string, unknown>;
189
202
  }>;
190
203
  };
191
- declare type MockProperties = {
204
+ type MockProperties = {
192
205
  [key: string]: unknown;
193
206
  } | ((specs: OpenAPIObject) => {
194
207
  [key: string]: unknown;
195
208
  });
196
- declare type OutputTransformerFn = (verb: GeneratorVerbOptions) => GeneratorVerbOptions;
197
- declare type OutputTransformer = string | OutputTransformerFn;
198
- declare type MutatorObject = {
209
+ type OutputTransformerFn = (verb: GeneratorVerbOptions) => GeneratorVerbOptions;
210
+ type OutputTransformer = string | OutputTransformerFn;
211
+ type MutatorObject = {
199
212
  path: string;
200
213
  name?: string;
201
214
  default?: boolean;
202
215
  alias?: Record<string, string>;
203
216
  };
204
- declare type Mutator = string | MutatorObject;
205
- declare type OverrideOutput = {
217
+ type Mutator = string | MutatorObject;
218
+ type ParamsSerializerOptions = {
219
+ qs?: Record<string, any>;
220
+ };
221
+ type OverrideOutput = {
206
222
  title?: (title: string) => string;
207
223
  transformer?: OutputTransformer;
208
224
  mutator?: Mutator;
@@ -212,21 +228,13 @@ declare type OverrideOutput = {
212
228
  tags?: {
213
229
  [key: string]: OperationOptions;
214
230
  };
215
- mock?: {
216
- arrayMin?: number;
217
- arrayMax?: number;
218
- properties?: MockProperties;
219
- format?: {
220
- [key: string]: unknown;
221
- };
222
- required?: boolean;
223
- baseUrl?: string;
224
- delay?: number;
225
- };
231
+ mock?: OverrideMockOptions;
226
232
  contentType?: OverrideOutputContentType;
227
233
  header?: boolean | ((info: InfoObject) => string[] | string);
228
234
  formData?: boolean | Mutator;
229
235
  formUrlEncoded?: boolean | Mutator;
236
+ paramsSerializer?: Mutator;
237
+ paramsSerializerOptions?: ParamsSerializerOptions;
230
238
  components?: {
231
239
  schemas?: {
232
240
  suffix?: string;
@@ -253,18 +261,20 @@ declare type OverrideOutput = {
253
261
  useDeprecatedOperations?: boolean;
254
262
  useBigInt?: boolean;
255
263
  useNamedParameters?: boolean;
264
+ useNativeEnums?: boolean;
256
265
  };
257
- declare type OverrideOutputContentType = {
266
+ type OverrideOutputContentType = {
258
267
  include?: string[];
259
268
  exclude?: string[];
260
269
  };
261
- declare type NormalizedQueryOptions = {
270
+ type NormalizedQueryOptions = {
262
271
  useQuery?: boolean;
263
272
  useSuspenseQuery?: boolean;
264
273
  useMutation?: boolean;
265
274
  useInfinite?: boolean;
266
275
  useSuspenseInfiniteQuery?: boolean;
267
276
  useInfiniteQueryParam?: string;
277
+ usePrefetch?: boolean;
268
278
  options?: any;
269
279
  queryKey?: NormalizedMutator;
270
280
  queryOptions?: NormalizedMutator;
@@ -272,13 +282,14 @@ declare type NormalizedQueryOptions = {
272
282
  signal?: boolean;
273
283
  version?: 3 | 4 | 5;
274
284
  };
275
- declare type QueryOptions = {
285
+ type QueryOptions = {
276
286
  useQuery?: boolean;
277
287
  useSuspenseQuery?: boolean;
278
288
  useMutation?: boolean;
279
289
  useInfinite?: boolean;
280
290
  useSuspenseInfiniteQuery?: boolean;
281
291
  useInfiniteQueryParam?: string;
292
+ usePrefetch?: boolean;
282
293
  options?: any;
283
294
  queryKey?: Mutator;
284
295
  queryOptions?: Mutator;
@@ -286,15 +297,15 @@ declare type QueryOptions = {
286
297
  signal?: boolean;
287
298
  version?: 3 | 4 | 5;
288
299
  };
289
- declare type AngularOptions = {
300
+ type AngularOptions = {
290
301
  provideIn?: 'root' | 'any' | boolean;
291
302
  };
292
- declare type InputTransformerFn = (spec: OpenAPIObject) => OpenAPIObject;
293
- declare type InputTransformer = string | InputTransformerFn;
294
- declare type OverrideInput = {
303
+ type InputTransformerFn = (spec: OpenAPIObject) => OpenAPIObject;
304
+ type InputTransformer = string | InputTransformerFn;
305
+ type OverrideInput = {
295
306
  transformer?: InputTransformer;
296
307
  };
297
- declare type OperationOptions = {
308
+ type OperationOptions = {
298
309
  transformer?: OutputTransformer;
299
310
  mutator?: Mutator;
300
311
  mock?: {
@@ -309,15 +320,16 @@ declare type OperationOptions = {
309
320
  operationName?: (operation: OperationObject, route: string, verb: Verbs) => string;
310
321
  formData?: boolean | Mutator;
311
322
  formUrlEncoded?: boolean | Mutator;
323
+ paramsSerializer?: Mutator;
312
324
  requestOptions?: object | boolean;
313
325
  };
314
- declare type Hook = 'afterAllFilesWrite';
315
- declare type HookFunction = (...args: any[]) => void | Promise<void>;
316
- declare type HookCommand = string | HookFunction | (string | HookFunction)[];
317
- declare type NormalizedHookCommand = HookCommand[];
318
- declare type HooksOptions<T = HookCommand | NormalizedHookCommand> = Partial<Record<Hook, T>>;
319
- declare type NormalizedHookOptions = HooksOptions<NormalizedHookCommand>;
320
- declare type Verbs = 'post' | 'put' | 'get' | 'patch' | 'delete' | 'head';
326
+ type Hook = 'afterAllFilesWrite';
327
+ type HookFunction = (...args: any[]) => void | Promise<void>;
328
+ type HookCommand = string | HookFunction | (string | HookFunction)[];
329
+ type NormalizedHookCommand = HookCommand[];
330
+ type HooksOptions<T = HookCommand | NormalizedHookCommand> = Partial<Record<Hook, T>>;
331
+ type NormalizedHookOptions = HooksOptions<NormalizedHookCommand>;
332
+ type Verbs = 'post' | 'put' | 'get' | 'patch' | 'delete' | 'head';
321
333
  declare const Verbs: {
322
334
  POST: Verbs;
323
335
  PUT: Verbs;
@@ -326,7 +338,7 @@ declare const Verbs: {
326
338
  DELETE: Verbs;
327
339
  HEAD: Verbs;
328
340
  };
329
- declare type ImportOpenApi = {
341
+ type ImportOpenApi = {
330
342
  data: Record<string, unknown | OpenAPIObject>;
331
343
  input: InputOptions;
332
344
  output: NormalizedOutputOptions;
@@ -350,7 +362,7 @@ interface GlobalOptions {
350
362
  clean?: boolean | string[];
351
363
  prettier?: boolean;
352
364
  tslint?: boolean;
353
- mock?: boolean;
365
+ mock?: boolean | GlobalMockOptions;
354
366
  client?: OutputClient;
355
367
  mode?: OutputMode;
356
368
  tsconfig?: string | Tsconfig;
@@ -368,17 +380,17 @@ interface Tsconfig {
368
380
  target?: TsConfigTarget;
369
381
  };
370
382
  }
371
- declare type TsConfigTarget = 'es3' | 'es5' | 'es6' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'esnext';
383
+ type TsConfigTarget = 'es3' | 'es5' | 'es6' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'esnext';
372
384
  interface PackageJson {
373
385
  dependencies?: Record<string, string>;
374
386
  devDependencies?: Record<string, string>;
375
387
  }
376
- declare type GeneratorSchema = {
388
+ type GeneratorSchema = {
377
389
  name: string;
378
390
  model: string;
379
391
  imports: GeneratorImport[];
380
392
  };
381
- declare type GeneratorImport = {
393
+ type GeneratorImport = {
382
394
  name: string;
383
395
  schemaName?: string;
384
396
  alias?: string;
@@ -387,59 +399,62 @@ declare type GeneratorImport = {
387
399
  values?: boolean;
388
400
  syntheticDefaultImport?: boolean;
389
401
  };
390
- declare type GeneratorDependency = {
402
+ type GeneratorDependency = {
391
403
  exports: GeneratorImport[];
392
404
  dependency: string;
393
405
  };
394
- declare type GeneratorApiResponse = {
406
+ type GeneratorApiResponse = {
395
407
  operations: GeneratorOperations;
396
408
  schemas: GeneratorSchema[];
397
409
  };
398
- declare type GeneratorOperations = {
410
+ type GeneratorOperations = {
399
411
  [operationId: string]: GeneratorOperation;
400
412
  };
401
- declare type GeneratorTarget = {
413
+ type GeneratorTarget = {
402
414
  imports: GeneratorImport[];
403
415
  implementation: string;
404
- implementationMSW: string;
405
- importsMSW: GeneratorImport[];
416
+ implementationMock: string;
417
+ importsMock: GeneratorImport[];
406
418
  mutators?: GeneratorMutator[];
407
419
  clientMutators?: GeneratorMutator[];
408
420
  formData?: GeneratorMutator[];
409
421
  formUrlEncoded?: GeneratorMutator[];
422
+ paramsSerializer?: GeneratorMutator[];
410
423
  };
411
- declare type GeneratorTargetFull = {
424
+ type GeneratorTargetFull = {
412
425
  imports: GeneratorImport[];
413
426
  implementation: string;
414
- implementationMSW: {
427
+ implementationMock: {
415
428
  function: string;
416
429
  handler: string;
417
430
  };
418
- importsMSW: GeneratorImport[];
431
+ importsMock: GeneratorImport[];
419
432
  mutators?: GeneratorMutator[];
420
433
  clientMutators?: GeneratorMutator[];
421
434
  formData?: GeneratorMutator[];
422
435
  formUrlEncoded?: GeneratorMutator[];
436
+ paramsSerializer?: GeneratorMutator[];
423
437
  };
424
- declare type GeneratorOperation = {
438
+ type GeneratorOperation = {
425
439
  imports: GeneratorImport[];
426
440
  implementation: string;
427
- implementationMSW: {
441
+ implementationMock: {
428
442
  function: string;
429
443
  handler: string;
430
444
  };
431
- importsMSW: GeneratorImport[];
445
+ importsMock: GeneratorImport[];
432
446
  tags: string[];
433
447
  mutator?: GeneratorMutator;
434
448
  clientMutators?: GeneratorMutator[];
435
449
  formData?: GeneratorMutator;
436
450
  formUrlEncoded?: GeneratorMutator;
451
+ paramsSerializer?: GeneratorMutator;
437
452
  operationName: string;
438
453
  types?: {
439
454
  result: (title?: string) => string;
440
455
  };
441
456
  };
442
- declare type GeneratorVerbOptions = {
457
+ type GeneratorVerbOptions = {
443
458
  verb: Verbs;
444
459
  summary?: string;
445
460
  doc: string;
@@ -455,29 +470,30 @@ declare type GeneratorVerbOptions = {
455
470
  mutator?: GeneratorMutator;
456
471
  formData?: GeneratorMutator;
457
472
  formUrlEncoded?: GeneratorMutator;
473
+ paramsSerializer?: GeneratorMutator;
458
474
  override: NormalizedOverrideOutput;
459
475
  deprecated?: boolean;
460
476
  originalOperation: OperationObject;
461
477
  };
462
- declare type GeneratorVerbsOptions = GeneratorVerbOptions[];
463
- declare type GeneratorOptions = {
478
+ type GeneratorVerbsOptions = GeneratorVerbOptions[];
479
+ type GeneratorOptions = {
464
480
  route: string;
465
481
  pathRoute: string;
466
482
  override: NormalizedOverrideOutput;
467
483
  context: ContextSpecs;
468
- mock: boolean;
484
+ mock?: GlobalMockOptions | ClientMockBuilder;
469
485
  output: string;
470
486
  };
471
- declare type GeneratorClient = {
487
+ type GeneratorClient = {
472
488
  implementation: string;
473
489
  imports: GeneratorImport[];
474
490
  mutators?: GeneratorMutator[];
475
491
  };
476
- declare type GeneratorMutatorParsingInfo = {
492
+ type GeneratorMutatorParsingInfo = {
477
493
  numberOfParams: number;
478
494
  returnNumberOfParams?: number;
479
495
  };
480
- declare type GeneratorMutator = {
496
+ type GeneratorMutator = {
481
497
  name: string;
482
498
  path: string;
483
499
  default: boolean;
@@ -488,8 +504,8 @@ declare type GeneratorMutator = {
488
504
  isHook: boolean;
489
505
  bodyTypeName?: string;
490
506
  };
491
- declare type ClientBuilder = (verbOptions: GeneratorVerbOptions, options: GeneratorOptions, outputClient: OutputClient | OutputClientFunc) => GeneratorClient | Promise<GeneratorClient>;
492
- declare type ClientHeaderBuilder = (params: {
507
+ type ClientBuilder = (verbOptions: GeneratorVerbOptions, options: GeneratorOptions, outputClient: OutputClient | OutputClientFunc) => GeneratorClient | Promise<GeneratorClient>;
508
+ type ClientHeaderBuilder = (params: {
493
509
  title: string;
494
510
  isRequestOptions: boolean;
495
511
  isMutator: boolean;
@@ -498,16 +514,16 @@ declare type ClientHeaderBuilder = (params: {
498
514
  provideIn: boolean | 'root' | 'any';
499
515
  hasAwaitedType: boolean;
500
516
  }) => string;
501
- declare type ClientFooterBuilder = (params: {
517
+ type ClientFooterBuilder = (params: {
502
518
  noFunction?: boolean | undefined;
503
519
  operationNames: string[];
504
520
  title?: string;
505
521
  hasAwaitedType: boolean;
506
522
  hasMutator: boolean;
507
523
  }) => string;
508
- declare type ClientTitleBuilder = (title: string) => string;
509
- declare type ClientDependenciesBuilder = (hasGlobalMutator: boolean, packageJson?: PackageJson) => GeneratorDependency[];
510
- declare type ClientMSWBuilder = (verbOptions: GeneratorVerbOptions, generatorOptions: GeneratorOptions) => {
524
+ type ClientTitleBuilder = (title: string) => string;
525
+ type ClientDependenciesBuilder = (hasGlobalMutator: boolean, hasParamsSerializerOptions: boolean, packageJson?: PackageJson) => GeneratorDependency[];
526
+ type ClientMockBuilder = (verbOptions: GeneratorVerbOptions, generatorOptions: GeneratorOptions) => {
511
527
  imports: string[];
512
528
  implementation: string;
513
529
  };
@@ -518,8 +534,8 @@ interface ClientGeneratorsBuilder {
518
534
  footer?: ClientFooterBuilder;
519
535
  title?: ClientTitleBuilder;
520
536
  }
521
- declare type GeneratorClients = Record<OutputClient, ClientGeneratorsBuilder>;
522
- declare type GetterResponse = {
537
+ type GeneratorClients = Record<OutputClient, ClientGeneratorsBuilder>;
538
+ type GetterResponse = {
523
539
  imports: GeneratorImport[];
524
540
  definition: {
525
541
  success: string;
@@ -534,7 +550,7 @@ declare type GetterResponse = {
534
550
  schemas: GeneratorSchema[];
535
551
  originalSchema?: ResponsesObject;
536
552
  };
537
- declare type GetterBody = {
553
+ type GetterBody = {
538
554
  originalSchema: ReferenceObject | RequestBodyObject;
539
555
  imports: GeneratorImport[];
540
556
  definition: string;
@@ -544,7 +560,7 @@ declare type GetterBody = {
544
560
  formUrlEncoded?: string;
545
561
  contentType: string;
546
562
  };
547
- declare type GetterParameters = {
563
+ type GetterParameters = {
548
564
  query: {
549
565
  parameter: ParameterObject;
550
566
  imports: GeneratorImport[];
@@ -558,7 +574,7 @@ declare type GetterParameters = {
558
574
  imports: GeneratorImport[];
559
575
  }[];
560
576
  };
561
- declare type GetterParam = {
577
+ type GetterParam = {
562
578
  name: string;
563
579
  definition: string;
564
580
  implementation: string;
@@ -566,14 +582,14 @@ declare type GetterParam = {
566
582
  required: boolean;
567
583
  imports: GeneratorImport[];
568
584
  };
569
- declare type GetterParams = GetterParam[];
570
- declare type GetterQueryParam = {
585
+ type GetterParams = GetterParam[];
586
+ type GetterQueryParam = {
571
587
  schema: GeneratorSchema;
572
588
  deps: GeneratorSchema[];
573
589
  isOptional: boolean;
574
590
  originalSchema?: SchemaObject;
575
591
  };
576
- declare type GetterPropType = 'param' | 'body' | 'queryParam' | 'header' | 'namedPathParams';
592
+ type GetterPropType = 'param' | 'body' | 'queryParam' | 'header' | 'namedPathParams';
577
593
  declare const GetterPropType: {
578
594
  readonly PARAM: "param";
579
595
  readonly NAMED_PATH_PARAMS: "namedPathParams";
@@ -581,22 +597,22 @@ declare const GetterPropType: {
581
597
  readonly QUERY_PARAM: "queryParam";
582
598
  readonly HEADER: "header";
583
599
  };
584
- declare type GetterPropBase = {
600
+ type GetterPropBase = {
585
601
  name: string;
586
602
  definition: string;
587
603
  implementation: string;
588
604
  default: boolean;
589
605
  required: boolean;
590
606
  };
591
- declare type GetterProp = GetterPropBase & ({
607
+ type GetterProp = GetterPropBase & ({
592
608
  type: 'namedPathParams';
593
609
  destructured: string;
594
610
  schema: GeneratorSchema;
595
611
  } | {
596
612
  type: Exclude<GetterPropType, 'namedPathParams'>;
597
613
  });
598
- declare type GetterProps = GetterProp[];
599
- declare type SchemaType = 'integer' | 'number' | 'string' | 'boolean' | 'object' | 'null' | 'array' | 'enum' | 'unknown';
614
+ type GetterProps = GetterProp[];
615
+ type SchemaType = 'integer' | 'number' | 'string' | 'boolean' | 'object' | 'null' | 'array' | 'enum' | 'unknown';
600
616
  declare const SchemaType: {
601
617
  integer: string;
602
618
  number: string;
@@ -608,7 +624,7 @@ declare const SchemaType: {
608
624
  enum: string;
609
625
  unknown: string;
610
626
  };
611
- declare type ScalarValue = {
627
+ type ScalarValue = {
612
628
  value: string;
613
629
  isEnum: boolean;
614
630
  hasReadonlyProps: boolean;
@@ -616,11 +632,13 @@ declare type ScalarValue = {
616
632
  imports: GeneratorImport[];
617
633
  schemas: GeneratorSchema[];
618
634
  isRef: boolean;
635
+ example?: any;
636
+ examples?: Record<string, any>;
619
637
  };
620
- declare type ResolverValue = ScalarValue & {
638
+ type ResolverValue = ScalarValue & {
621
639
  originalSchema: SchemaObject;
622
640
  };
623
- declare type ResReqTypesValue = ScalarValue & {
641
+ type ResReqTypesValue = ScalarValue & {
624
642
  formData?: string;
625
643
  formUrlEncoded?: string;
626
644
  isRef?: boolean;
@@ -629,7 +647,7 @@ declare type ResReqTypesValue = ScalarValue & {
629
647
  contentType: string;
630
648
  originalSchema?: SchemaObject;
631
649
  };
632
- declare type WriteSpecsBuilder = {
650
+ type WriteSpecsBuilder = {
633
651
  operations: GeneratorOperations;
634
652
  schemas: Record<string, GeneratorSchema[]>;
635
653
  title: GeneratorClientTitle;
@@ -640,7 +658,7 @@ declare type WriteSpecsBuilder = {
640
658
  info: InfoObject;
641
659
  target: string;
642
660
  };
643
- declare type WriteModeProps = {
661
+ type WriteModeProps = {
644
662
  builder: WriteSpecsBuilder;
645
663
  output: NormalizedOutputOptions;
646
664
  workspace: string;
@@ -648,20 +666,20 @@ declare type WriteModeProps = {
648
666
  header: string;
649
667
  needSchema: boolean;
650
668
  };
651
- declare type GeneratorApiOperations = {
669
+ type GeneratorApiOperations = {
652
670
  operations: GeneratorOperations;
653
671
  schemas: GeneratorSchema[];
654
672
  };
655
- declare type GeneratorClientExtra = {
673
+ type GeneratorClientExtra = {
656
674
  implementation: string;
657
- implementationMSW: string;
675
+ implementationMock: string;
658
676
  };
659
- declare type GeneratorClientTitle = (data: {
677
+ type GeneratorClientTitle = (data: {
660
678
  outputClient?: OutputClient | OutputClientFunc;
661
679
  title: string;
662
680
  customTitleFunc?: (title: string) => string;
663
681
  }) => GeneratorClientExtra;
664
- declare type GeneratorClientHeader = (data: {
682
+ type GeneratorClientHeader = (data: {
665
683
  outputClient?: OutputClient | OutputClientFunc;
666
684
  isRequestOptions: boolean;
667
685
  isMutator: boolean;
@@ -670,14 +688,14 @@ declare type GeneratorClientHeader = (data: {
670
688
  hasAwaitedType: boolean;
671
689
  titles: GeneratorClientExtra;
672
690
  }) => GeneratorClientExtra;
673
- declare type GeneratorClientFooter = (data: {
691
+ type GeneratorClientFooter = (data: {
674
692
  outputClient: OutputClient | OutputClientFunc;
675
693
  operationNames: string[];
676
694
  hasMutator: boolean;
677
695
  hasAwaitedType: boolean;
678
696
  titles: GeneratorClientExtra;
679
697
  }) => GeneratorClientExtra;
680
- declare type GeneratorClientImports = (data: {
698
+ type GeneratorClientImports = (data: {
681
699
  client: OutputClient | OutputClientFunc;
682
700
  implementation: string;
683
701
  imports: {
@@ -688,9 +706,10 @@ declare type GeneratorClientImports = (data: {
688
706
  hasSchemaDir: boolean;
689
707
  isAllowSyntheticDefaultImports: boolean;
690
708
  hasGlobalMutator: boolean;
709
+ hasParamsSerializerOptions: boolean;
691
710
  packageJson?: PackageJson;
692
711
  }) => string;
693
- declare type GenerateMockImports = (data: {
712
+ type GenerateMockImports = (data: {
694
713
  implementation: string;
695
714
  imports: {
696
715
  exports: GeneratorImport[];
@@ -699,8 +718,9 @@ declare type GenerateMockImports = (data: {
699
718
  specsName: Record<string, string>;
700
719
  hasSchemaDir: boolean;
701
720
  isAllowSyntheticDefaultImports: boolean;
721
+ options?: GlobalMockOptions;
702
722
  }) => string;
703
- declare type GeneratorApiBuilder = GeneratorApiOperations & {
723
+ type GeneratorApiBuilder = GeneratorApiOperations & {
704
724
  title: GeneratorClientTitle;
705
725
  header: GeneratorClientHeader;
706
726
  footer: GeneratorClientFooter;
@@ -754,15 +774,17 @@ declare const generateMutator: ({ output, mutator, name, workspace, tsconfig, }:
754
774
  }) => Promise<GeneratorMutator | undefined>;
755
775
 
756
776
  declare const generateBodyOptions: (body: GetterBody, isFormData: boolean, isFormUrlEncoded: boolean) => string;
757
- declare const generateAxiosOptions: ({ response, isExactOptionalPropertyTypes, queryParams, headers, requestOptions, hasSignal, }: {
777
+ declare const generateAxiosOptions: ({ response, isExactOptionalPropertyTypes, queryParams, headers, requestOptions, hasSignal, paramsSerializer, paramsSerializerOptions, }: {
758
778
  response: GetterResponse;
759
779
  isExactOptionalPropertyTypes: boolean;
760
780
  queryParams?: GeneratorSchema | undefined;
761
781
  headers?: GeneratorSchema | undefined;
762
782
  requestOptions?: boolean | object | undefined;
763
783
  hasSignal: boolean;
784
+ paramsSerializer?: GeneratorMutator | undefined;
785
+ paramsSerializerOptions?: ParamsSerializerOptions | undefined;
764
786
  }) => string;
765
- declare const generateOptions: ({ route, body, headers, queryParams, response, verb, requestOptions, isFormData, isFormUrlEncoded, isAngular, isExactOptionalPropertyTypes, hasSignal, }: {
787
+ declare const generateOptions: ({ route, body, headers, queryParams, response, verb, requestOptions, isFormData, isFormUrlEncoded, isAngular, isExactOptionalPropertyTypes, hasSignal, paramsSerializer, paramsSerializerOptions, }: {
766
788
  route: string;
767
789
  body: GetterBody;
768
790
  headers?: GetterQueryParam | undefined;
@@ -775,6 +797,8 @@ declare const generateOptions: ({ route, body, headers, queryParams, response, v
775
797
  isAngular?: boolean | undefined;
776
798
  isExactOptionalPropertyTypes: boolean;
777
799
  hasSignal: boolean;
800
+ paramsSerializer?: GeneratorMutator | undefined;
801
+ paramsSerializerOptions?: ParamsSerializerOptions | undefined;
778
802
  }) => string;
779
803
  declare const generateBodyMutatorConfig: (body: GetterBody, isFormData: boolean, isFormUrlEncoded: boolean) => string;
780
804
  declare const generateQueryParamsAxiosConfig: (response: GetterResponse, queryParams?: GetterQueryParam) => string;
@@ -836,7 +860,7 @@ declare const getBody: ({ requestBody, operationName, context, contentType, }: {
836
860
  contentType?: OverrideOutputContentType | undefined;
837
861
  }) => GetterBody;
838
862
 
839
- declare type Separator = 'allOf' | 'anyOf' | 'oneOf';
863
+ type Separator = 'allOf' | 'anyOf' | 'oneOf';
840
864
  declare const combineSchemas: ({ name, schema, separator, context, nullable, }: {
841
865
  name?: string | undefined;
842
866
  schema: SchemaObject;
@@ -847,7 +871,7 @@ declare const combineSchemas: ({ name, schema, separator, context, nullable, }:
847
871
 
848
872
  declare const resolveDiscriminators: (schemas: SchemasObject, context: ContextSpecs) => SchemasObject;
849
873
 
850
- declare const getEnum: (value: string, enumName: string, names?: string[]) => string;
874
+ declare const getEnum: (value: string, enumName: string, names?: string[], useNativeEnums?: boolean) => string;
851
875
  declare const getEnumImplementation: (value: string, names?: string[]) => string;
852
876
 
853
877
  declare const getKey: (key: string) => string;
@@ -908,7 +932,7 @@ declare const getQueryParams: ({ queryParams, operationName, context, suffix, }:
908
932
  suffix?: string | undefined;
909
933
  }) => GetterQueryParam | undefined;
910
934
 
911
- declare type RefComponent = 'schemas' | 'responses' | 'parameters' | 'requestBodies';
935
+ type RefComponent = 'schemas' | 'responses' | 'parameters' | 'requestBodies';
912
936
  declare const RefComponent: {
913
937
  schemas: RefComponent;
914
938
  responses: RefComponent;
@@ -963,11 +987,14 @@ declare const resolveObject: ({ schema, propName, combined, context, }: {
963
987
  context: ContextSpecs;
964
988
  }) => ResolverValue;
965
989
 
966
- declare type ComponentObject = SchemaObject | ResponseObject | ParameterObject | RequestBodyObject | ReferenceObject;
990
+ type ComponentObject = SchemaObject | ResponseObject | ParameterObject | RequestBodyObject | ReferenceObject;
967
991
  declare const resolveRef: <Schema extends ComponentObject = ComponentObject>(schema: ComponentObject, context: ContextSpecs, imports?: GeneratorImport[]) => {
968
992
  schema: Schema;
969
993
  imports: GeneratorImport[];
970
994
  };
995
+ type Example = ExampleObject | ReferenceObject;
996
+ type Examples = Example[] | Record<string, Example> | undefined;
997
+ declare const resolveExampleRefs: (examples: Examples, context: ContextSpecs) => Examples;
971
998
 
972
999
  declare const resolveValue: ({ schema, name, context, }: {
973
1000
  schema: SchemaObject | ReferenceObject;
@@ -1041,8 +1068,8 @@ declare const ibmOpenapiValidatorErrors: (errors: {
1041
1068
  path: string;
1042
1069
  message: string;
1043
1070
  }[]) => void;
1044
- declare type LogType = 'error' | 'warn' | 'info';
1045
- declare type LogLevel = LogType | 'silent';
1071
+ type LogType = 'error' | 'warn' | 'info';
1072
+ type LogLevel = LogType | 'silent';
1046
1073
  interface Logger {
1047
1074
  info(msg: string, options?: LogOptions): void;
1048
1075
  warn(msg: string, options?: LogOptions): void;
@@ -1089,6 +1116,8 @@ declare function loadFile<File = any>(filePath?: string, options?: {
1089
1116
  }>;
1090
1117
  declare function removeFiles(patterns: string[], dir: string): Promise<void>;
1091
1118
 
1119
+ declare const getMockFileExtensionByTypeName: (mock: GlobalMockOptions | ClientMockBuilder) => string;
1120
+
1092
1121
  declare function mergeDeep<T extends Record<string, any>>(source: T, target: T): T;
1093
1122
 
1094
1123
  declare const count: (str: string | undefined, key: string) => number;
@@ -1099,7 +1128,7 @@ declare let join: (...paths: string[]) => string;
1099
1128
  declare let resolve: (...paths: string[]) => string;
1100
1129
  declare let extname: (path: string) => string;
1101
1130
  declare let dirname: (path: string) => string;
1102
- declare let basename: (path: string, ext?: string | undefined) => string;
1131
+ declare let basename: (path: string, suffix?: string | undefined) => string;
1103
1132
  declare let isAbsolute: (path: string) => boolean;
1104
1133
 
1105
1134
  /**
@@ -1112,33 +1141,20 @@ declare const separator = "/";
1112
1141
  declare const normalizeSafe: (value: string) => string;
1113
1142
  declare const joinSafe: (...values: string[]) => string;
1114
1143
 
1115
- declare const path_join: typeof join;
1116
- declare const path_resolve: typeof resolve;
1117
- declare const path_extname: typeof extname;
1118
- declare const path_dirname: typeof dirname;
1119
1144
  declare const path_basename: typeof basename;
1145
+ declare const path_dirname: typeof dirname;
1146
+ declare const path_extname: typeof extname;
1147
+ declare const path_getSchemaFileName: typeof getSchemaFileName;
1148
+ declare const path_getSpecName: typeof getSpecName;
1120
1149
  declare const path_isAbsolute: typeof isAbsolute;
1150
+ declare const path_join: typeof join;
1151
+ declare const path_joinSafe: typeof joinSafe;
1152
+ declare const path_normalizeSafe: typeof normalizeSafe;
1121
1153
  declare const path_relativeSafe: typeof relativeSafe;
1122
- declare const path_getSpecName: typeof getSpecName;
1123
- declare const path_getSchemaFileName: typeof getSchemaFileName;
1154
+ declare const path_resolve: typeof resolve;
1124
1155
  declare const path_separator: typeof separator;
1125
- declare const path_normalizeSafe: typeof normalizeSafe;
1126
- declare const path_joinSafe: typeof joinSafe;
1127
1156
  declare namespace path {
1128
- export {
1129
- path_join as join,
1130
- path_resolve as resolve,
1131
- path_extname as extname,
1132
- path_dirname as dirname,
1133
- path_basename as basename,
1134
- path_isAbsolute as isAbsolute,
1135
- path_relativeSafe as relativeSafe,
1136
- path_getSpecName as getSpecName,
1137
- path_getSchemaFileName as getSchemaFileName,
1138
- path_separator as separator,
1139
- path_normalizeSafe as normalizeSafe,
1140
- path_joinSafe as joinSafe,
1141
- };
1157
+ export { path_basename as basename, path_dirname as dirname, path_extname as extname, path_getSchemaFileName as getSchemaFileName, path_getSpecName as getSpecName, path_isAbsolute as isAbsolute, path_join as join, path_joinSafe as joinSafe, path_normalizeSafe as normalizeSafe, path_relativeSafe as relativeSafe, path_resolve as resolve, path_separator as separator };
1142
1158
  }
1143
1159
 
1144
1160
  declare const sortByPriority: <T>(arr: (T & {
@@ -1220,4 +1236,4 @@ declare const generateTarget: (builder: WriteSpecsBuilder, options: NormalizedOu
1220
1236
 
1221
1237
  declare const generateTargetForTags: (builder: WriteSpecsBuilder, options: NormalizedOutputOptions) => Record<string, GeneratorTarget>;
1222
1238
 
1223
- export { AngularOptions, BODY_TYPE_NAME, ClientBuilder, ClientDependenciesBuilder, ClientFooterBuilder, ClientGeneratorsBuilder, ClientHeaderBuilder, ClientMSWBuilder, ClientTitleBuilder, Config, ConfigExternal, ConfigFn, ContextSpecs, GenerateMockImports, GeneratorApiBuilder, GeneratorApiOperations, GeneratorApiResponse, GeneratorClient, GeneratorClientExtra, GeneratorClientFooter, GeneratorClientHeader, GeneratorClientImports, GeneratorClientTitle, GeneratorClients, GeneratorDependency, GeneratorImport, GeneratorMutator, GeneratorMutatorParsingInfo, GeneratorOperation, GeneratorOperations, GeneratorOptions, GeneratorSchema, GeneratorTarget, GeneratorTargetFull, GeneratorVerbOptions, GeneratorVerbsOptions, GetterBody, GetterParam, GetterParameters, GetterParams, GetterProp, GetterPropType, GetterProps, GetterQueryParam, GetterResponse, GlobalOptions, Hook, HookCommand, HookFunction, HooksOptions, ImportOpenApi, InputOptions, InputTransformerFn, LogLevel, LogLevels, LogOptions, LogType, Logger, LoggerOptions, MockOptions, MockProperties, Mutator, MutatorObject, NormalizedHookCommand, NormalizedHookOptions, NormalizedInputOptions, NormalizedMutator, NormalizedOperationOptions, NormalizedOptions, NormalizedOutputOptions, NormalizedOverrideOutput, NormalizedQueryOptions, NormizaledConfig, OperationOptions, Options, OptionsExport, OptionsFn, OutputClient, OutputClientFunc, OutputMode, OutputOptions, OverrideInput, OverrideOutput, OverrideOutputContentType, PackageJson, QueryOptions, RefComponentSuffix, RefInfo, ResReqTypesValue, ResolverValue, ScalarValue, SchemaType, SwaggerParserOptions, TsConfigTarget, Tsconfig, URL_REGEX, VERBS_WITH_BODY, Verbs, WriteModeProps, WriteSpecsBuilder, _filteredVerbs, addDependency, asyncReduce, camel, combineSchemas, compareVersions, count, createDebugger, createLogger, createSuccessMessage, dynamicImport, errorMessage, escape, generalJSTypes, generalJSTypesWithArray, generateAxiosOptions, generateBodyMutatorConfig, generateBodyOptions, generateComponentDefinition, generateDependencyImports, generateFormDataAndUrlEncodedFunction, generateImports, generateModelInline, generateModelsInline, generateMutator, generateMutatorConfig, generateMutatorImports, generateMutatorRequestOptions, generateOptions, generateParameterDefinition, generateQueryParamsAxiosConfig, generateSchemasDefinition, generateTarget, generateTargetForTags, generateVerbImports, generateVerbsOptions, getArray, getBody, getEnum, getEnumImplementation, getExtension, getFileInfo, getKey, getNumberWord, getObject, getOperationId, getOrvalGeneratedTypes, getParameters, getParams, getParamsInPath, getProps, getQueryParams, getRefInfo, getResReqTypes, getResponse, getRoute, getRouteAsArray, getScalar, ibmOpenapiValidator, ibmOpenapiValidatorErrors, ibmOpenapiValidatorWarnings, isBoolean, isDirectory, isFunction, isModule, isNull, isNumber, isNumeric, isObject, isReference, isRootKey, isSchema, isString, isSyntheticDefaultImportsAllow, isUndefined, isUrl, isVerb, jsDoc, jsStringEscape, kebab, loadFile, log, mergeDeep, mismatchArgsMessage, openApiConverter, pascal, removeFiles, resolveDiscriminators, resolveObject, resolveRef, resolveValue, sanitize, snake, sortByPriority, startMessage, stringify, toObjectString, path as upath, upper, writeModelInline, writeModelsInline, writeSchema, writeSchemas, writeSingleMode, writeSplitMode, writeSplitTagsMode, writeTagsMode };
1239
+ export { type AngularOptions, BODY_TYPE_NAME, type ClientBuilder, type ClientDependenciesBuilder, type ClientFooterBuilder, type ClientGeneratorsBuilder, type ClientHeaderBuilder, type ClientMockBuilder, type ClientTitleBuilder, type Config, type ConfigExternal, type ConfigFn, type ContextSpecs, type GenerateMockImports, type GeneratorApiBuilder, type GeneratorApiOperations, type GeneratorApiResponse, type GeneratorClient, type GeneratorClientExtra, type GeneratorClientFooter, type GeneratorClientHeader, type GeneratorClientImports, type GeneratorClientTitle, type GeneratorClients, type GeneratorDependency, type GeneratorImport, type GeneratorMutator, type GeneratorMutatorParsingInfo, type GeneratorOperation, type GeneratorOperations, type GeneratorOptions, type GeneratorSchema, type GeneratorTarget, type GeneratorTargetFull, type GeneratorVerbOptions, type GeneratorVerbsOptions, type GetterBody, type GetterParam, type GetterParameters, type GetterParams, type GetterProp, GetterPropType, type GetterProps, type GetterQueryParam, type GetterResponse, type GlobalMockOptions, type GlobalOptions, type Hook, type HookCommand, type HookFunction, type HooksOptions, type ImportOpenApi, type InputOptions, type InputTransformerFn, type LogLevel, LogLevels, type LogOptions, type LogType, type Logger, type LoggerOptions, type MockOptions, type MockProperties, type Mutator, type MutatorObject, type NormalizedConfig, type NormalizedHookCommand, type NormalizedHookOptions, type NormalizedInputOptions, type NormalizedMutator, type NormalizedOperationOptions, type NormalizedOptions, type NormalizedOutputOptions, type NormalizedOverrideOutput, type NormalizedParamsSerializerOptions, type NormalizedQueryOptions, type OperationOptions, type Options, type OptionsExport, type OptionsFn, OutputClient, type OutputClientFunc, OutputMockType, OutputMode, type OutputOptions, type OverrideInput, type OverrideMockOptions, type OverrideOutput, type OverrideOutputContentType, type PackageJson, type ParamsSerializerOptions, type QueryOptions, RefComponentSuffix, type RefInfo, type ResReqTypesValue, type ResolverValue, type ScalarValue, SchemaType, type SwaggerParserOptions, type TsConfigTarget, type Tsconfig, URL_REGEX, VERBS_WITH_BODY, Verbs, type WriteModeProps, type WriteSpecsBuilder, _filteredVerbs, addDependency, asyncReduce, camel, combineSchemas, compareVersions, count, createDebugger, createLogger, createSuccessMessage, dynamicImport, errorMessage, escape, generalJSTypes, generalJSTypesWithArray, generateAxiosOptions, generateBodyMutatorConfig, generateBodyOptions, generateComponentDefinition, generateDependencyImports, generateFormDataAndUrlEncodedFunction, generateImports, generateModelInline, generateModelsInline, generateMutator, generateMutatorConfig, generateMutatorImports, generateMutatorRequestOptions, generateOptions, generateParameterDefinition, generateQueryParamsAxiosConfig, generateSchemasDefinition, generateTarget, generateTargetForTags, generateVerbImports, generateVerbsOptions, getArray, getBody, getEnum, getEnumImplementation, getExtension, getFileInfo, getKey, getMockFileExtensionByTypeName, getNumberWord, getObject, getOperationId, getOrvalGeneratedTypes, getParameters, getParams, getParamsInPath, getProps, getQueryParams, getRefInfo, getResReqTypes, getResponse, getRoute, getRouteAsArray, getScalar, ibmOpenapiValidator, ibmOpenapiValidatorErrors, ibmOpenapiValidatorWarnings, isBoolean, isDirectory, isFunction, isModule, isNull, isNumber, isNumeric, isObject, isReference, isRootKey, isSchema, isString, isSyntheticDefaultImportsAllow, isUndefined, isUrl, isVerb, jsDoc, jsStringEscape, kebab, loadFile, log, mergeDeep, mismatchArgsMessage, openApiConverter, pascal, removeFiles, resolveDiscriminators, resolveExampleRefs, resolveObject, resolveRef, resolveValue, sanitize, snake, sortByPriority, startMessage, stringify, toObjectString, path as upath, upper, writeModelInline, writeModelsInline, writeSchema, writeSchemas, writeSingleMode, writeSplitMode, writeSplitTagsMode, writeTagsMode };