@hey-api/openapi-ts 0.90.4 → 0.90.5

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/README.md CHANGED
@@ -5,10 +5,11 @@
5
5
  </div>
6
6
 
7
7
  <p align="center">
8
- <a href="https://npmjs.com/package/@hey-api/openapi-ts" rel="nofollow"><img src="https://img.shields.io/npm/dm/%40hey-api%2Fopenapi-ts?label=npm" alt="npm downloads"></a>
8
+ <a href="https://www.devtrends.dev/trends?c=v1.kZIBIg"><img src="https://api.devtrends.dev/badge/npm/%40hey-api%2Fopenapi-ts?period=month&style=flat&view=value" alt="DevTrends badge for @hey-api/openapi-ts" /></a>
9
+ <a href="https://www.devtrends.dev/trends?c=v1.kZIBIg&v=change"><img src="https://api.devtrends.dev/badge/npm/%40hey-api%2Fopenapi-ts?period=year&style=flat&view=change" alt="DevTrends badge for @hey-api/openapi-ts" /></a>
9
10
  <a href="https://github.com/hey-api/openapi-ts/actions?query=branch%3Amain"><img src="https://github.com/hey-api/openapi-ts/actions/workflows/ci.yml/badge.svg?event=push&branch=main" alt="CI status" /></a>
10
- <a href="https://github.com/hey-api/openapi-ts" rel="nofollow"><img src="https://img.shields.io/github/stars/hey-api/openapi-ts?style=flat&logo=github&label=GitHub&color=54C82D" alt="GitHub stars" /></a>
11
- <a href="https://github.com/hey-api/openapi-ts/blob/main/LICENSE.md" rel="nofollow"><img src="https://img.shields.io/github/license/hey-api/openapi-ts" alt="MIT License"></a>
11
+ <a href="https://github.com/hey-api/openapi-ts"><img src="https://img.shields.io/github/stars/hey-api/openapi-ts?style=flat&logo=github&label=GitHub&color=54C82D" alt="GitHub stars" /></a>
12
+ <a href="https://github.com/hey-api/openapi-ts/blob/main/LICENSE.md"><img src="https://img.shields.io/github/license/hey-api/openapi-ts" alt="MIT License"></a>
12
13
  </p>
13
14
 
14
15
  <p align="center">
@@ -92,6 +93,26 @@ Hey API is sponsor-funded. If you rely on Hey API in production, consider becomi
92
93
  <p></p>
93
94
  </td>
94
95
  </tr>
96
+ <tr>
97
+ <td align="center">
98
+ <p></p>
99
+ <p>
100
+ <a href="https://kutt.it/6vrYy9" target="_blank">
101
+ <picture height="50px">
102
+ <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/mintlify/logo-light.svg">
103
+ <img alt="Mintlify logo" height="50px" src="https://heyapi.dev/assets/mintlify/logo-dark.svg">
104
+ </picture>
105
+ </a>
106
+ <br/>
107
+ The intelligent knowledge platform.
108
+ <br/>
109
+ <a href="https://kutt.it/6vrYy9" style="text-decoration:none;" target="_blank">
110
+ mintlify.com
111
+ </a>
112
+ </p>
113
+ <p></p>
114
+ </td>
115
+ </tr>
95
116
  </tbody>
96
117
  </table>
97
118
 
@@ -3,32 +3,15 @@ import * as _hey_api_codegen_core0 from "@hey-api/codegen-core";
3
3
  import { AnalysisContext, BindingKind, ExportModule, File, FromRef, IProject, ImportModule, Language, NameConflictResolver, Node, NodeName, NodeNameSanitizer, NodeRelationship, NodeScope, Project, Ref, Refs, RenderContext, Renderer, StructureLocation, Symbol, SymbolIdentifier, SymbolIn, SymbolMeta } from "@hey-api/codegen-core";
4
4
  import ts from "typescript";
5
5
  import { RangeOptions, SemVer } from "semver";
6
+ import { MaybeArray, MaybeFunc, MaybePromise } from "@hey-api/types";
6
7
  import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
7
8
  import { Injector } from "@angular/core";
8
9
  import { AxiosError, AxiosInstance, AxiosRequestHeaders, AxiosResponse, AxiosStatic, CreateAxiosDefaults } from "axios";
9
10
  import { AsyncDataOptions, UseFetchOptions, useAsyncData, useFetch, useLazyAsyncData, useLazyFetch } from "nuxt/app";
10
11
  import { Ref as Ref$1 } from "vue";
11
12
  import { FetchOptions, ResponseType, ofetch } from "ofetch";
13
+ import { MaybeFunc as MaybeFunc$1 } from "~/types/utils";
12
14
 
13
- //#region src/types/utils.d.ts
14
-
15
- /**
16
- * Accepts a value, a function returning a value, or a function returning a promise of a value.
17
- */
18
- type LazyOrAsync<T> = T | (() => MaybePromise<T>);
19
- /**
20
- * Accepts a value or a readonly array of values of type T.
21
- */
22
- type MaybeArray$1<T> = T | ReadonlyArray<T>;
23
- /**
24
- * Accepts a value or a function returning a value.
25
- */
26
- type MaybeFunc$1<T extends (...args: Array<any>) => any> = T | ReturnType<T>;
27
- /**
28
- * Accepts a value or a promise of a value.
29
- */
30
- type MaybePromise<T> = T | Promise<T>;
31
- //#endregion
32
15
  //#region src/utils/naming/types.d.ts
33
16
  /**
34
17
  * Available casing strategies.
@@ -39,7 +22,7 @@ type Casing = 'camelCase' | 'PascalCase' | 'preserve' | 'snake_case' | 'SCREAMIN
39
22
  *
40
23
  * Template supports `{{name}}` variable.
41
24
  */
42
- type NameTransformer = MaybeFunc$1<(name: string) => string>;
25
+ type NameTransformer = MaybeFunc<(name: string) => string>;
43
26
  /**
44
27
  * Full naming configuration.
45
28
  */
@@ -175,7 +158,7 @@ type SourceConfig = FeatureToggle & {
175
158
  //#endregion
176
159
  //#region src/config/output/types.d.ts
177
160
  type ImportFileExtensions = '.js' | '.ts';
178
- type Header$1 = MaybeFunc$1<(ctx: RenderContext) => MaybeArray$1<string> | null | undefined>;
161
+ type Header$1 = MaybeFunc<(ctx: RenderContext) => MaybeArray<string> | null | undefined>;
179
162
  type UserOutput = {
180
163
  /**
181
164
  * Defines casing of the output fields. By default, we preserve `input`
@@ -2739,7 +2722,7 @@ interface JsonSchemaDraft2020_12 extends ArrayKeywords, NumberKeywords, ObjectKe
2739
2722
  /**
2740
2723
  * If it is an array, it must be an array of strings, where each string is the name of one of the basic types, and each element is unique. In this case, the JSON snippet is valid if it matches any of the given types.
2741
2724
  */
2742
- type?: MaybeArray$1<JsonSchemaTypes$1>;
2725
+ type?: MaybeArray<JsonSchemaTypes$1>;
2743
2726
  /**
2744
2727
  * The boolean keywords `readOnly` and `writeOnly` are typically used in an API context. `readOnly` indicates that a value should not be modified. It could be used to indicate that a `PUT` request that changes a value would result in a `400 Bad Request` response. `writeOnly` indicates that a value may be set, but will remain hidden. In could be used to indicate you can set a value with a `PUT` request, but it would not be included when retrieving that record with a `GET` request.
2745
2728
  */
@@ -4273,14 +4256,6 @@ declare class TsDslContext {
4273
4256
  declare const ctx: TsDslContext;
4274
4257
  //#endregion
4275
4258
  //#region src/ts-dsl/base.d.ts
4276
- /**
4277
- * Accepts a value or a readonly array of values of type T.
4278
- */
4279
- type MaybeArray<T> = T | ReadonlyArray<T>;
4280
- /**
4281
- * Accepts a value or a function returning a value.
4282
- */
4283
- type MaybeFunc<T extends (...args: Array<any>) => any> = T | ReturnType<T>;
4284
4259
  declare abstract class TsDsl<T extends ts.Node = ts.Node> implements Node<T> {
4285
4260
  analyze(_: AnalysisContext): void;
4286
4261
  clone(): this;
@@ -14408,7 +14383,7 @@ type Resolvers = Plugin.Resolvers<{
14408
14383
  response?: ValidatorResolver;
14409
14384
  };
14410
14385
  }>;
14411
- type ValidatorResolver = (ctx: ValidatorResolverContext) => MaybeArray$1<TsDsl<ts.Statement>> | null | undefined;
14386
+ type ValidatorResolver = (ctx: ValidatorResolverContext) => MaybeArray<TsDsl<ts.Statement>> | null | undefined;
14412
14387
  interface BaseContext extends DollarTsDsl {
14413
14388
  /**
14414
14389
  * Functions for working with chains.
@@ -16436,7 +16411,7 @@ interface UserConfig {
16436
16411
  * inputs. If you define an array of outputs with the same length, we will
16437
16412
  * generate multiple outputs, one for each input.
16438
16413
  */
16439
- input: MaybeArray$1<UserInput | Required<UserInput>['path']>;
16414
+ input: MaybeArray<UserInput | Required<UserInput>['path']>;
16440
16415
  /**
16441
16416
  * Show an interactive error reporting tool when the program crashes? You
16442
16417
  * generally want to keep this disabled (default).
@@ -16456,7 +16431,7 @@ interface UserConfig {
16456
16431
  * If you define an array of outputs with the same length as inputs, we will
16457
16432
  * generate multiple outputs, one for each input.
16458
16433
  */
16459
- output: MaybeArray$1<string | UserOutput>;
16434
+ output: MaybeArray<string | UserOutput>;
16460
16435
  /**
16461
16436
  * Customize how the input is parsed and transformed before it's passed to
16462
16437
  * plugins.
@@ -16496,5 +16471,5 @@ type Config = Omit<Required<UserConfig>, 'input' | 'logs' | 'output' | 'parser'
16496
16471
  plugins: { [K in PluginNames]?: Plugin.Config<PluginConfigMap[K]> };
16497
16472
  };
16498
16473
  //#endregion
16499
- export { keywords as A, IR as B, Client$5 as C, reserved as D, DollarTsDsl as E, TsDslContext as F, LazyOrAsync as H, ctx as I, CallArgs as L, TsDsl as M, TypeTsDsl as N, TypeScriptRenderer as O, ExampleOptions as P, OperationPath as R, Client$4 as S, $ as T, MaybeArray$1 as U, Casing as V, Client as _, Plugin as a, Client$2 as b, OpenApiOperationObject as c, OpenApiResponseObject as d, OpenApiSchemaObject as f, ExpressionTransformer as g, TypeTransformer as h, DefinePlugin as i, MaybeTsDsl as j, regexp as k, OpenApiParameterObject as l, Logger as m, UserConfig as n, OpenApi as o, Context as p, Input as r, OpenApiMetaObject as s, Config as t, OpenApiRequestBodyObject as u, PluginHandler as v, Client$6 as w, Client$3 as x, Client$1 as y, OperationStrategy as z };
16500
- //# sourceMappingURL=config-BY6SQ9vq.d.mts.map
16474
+ export { keywords as A, IR as B, Client$5 as C, reserved as D, DollarTsDsl as E, TsDslContext as F, ctx as I, CallArgs as L, TsDsl as M, TypeTsDsl as N, TypeScriptRenderer as O, ExampleOptions as P, OperationPath as R, Client$4 as S, $ as T, Casing as V, Client as _, Plugin as a, Client$2 as b, OpenApiOperationObject as c, OpenApiResponseObject as d, OpenApiSchemaObject as f, ExpressionTransformer as g, TypeTransformer as h, DefinePlugin as i, MaybeTsDsl as j, regexp as k, OpenApiParameterObject as l, Logger as m, UserConfig as n, OpenApi as o, Context as p, Input as r, OpenApiMetaObject as s, Config as t, OpenApiRequestBodyObject as u, PluginHandler as v, Client$6 as w, Client$3 as x, Client$1 as y, OperationStrategy as z };
16475
+ //# sourceMappingURL=config-BCMpBYUB.d.mts.map
@@ -1,28 +1,11 @@
1
1
 
2
2
  import * as _hey_api_codegen_core0 from "@hey-api/codegen-core";
3
3
  import { AnalysisContext, BindingKind, ExportModule, File, FromRef, IProject, ImportModule, Language, NameConflictResolver, Node, NodeName, NodeNameSanitizer, NodeRelationship, NodeScope, Project, Ref, Refs, RenderContext, Renderer, StructureLocation, Symbol, SymbolIdentifier, SymbolIn, SymbolMeta } from "@hey-api/codegen-core";
4
+ import { MaybeArray, MaybeFunc, MaybePromise } from "@hey-api/types";
4
5
  import ts from "typescript";
5
6
  import { RangeOptions, SemVer } from "semver";
7
+ import { MaybeFunc as MaybeFunc$1 } from "~/types/utils";
6
8
 
7
- //#region src/types/utils.d.ts
8
-
9
- /**
10
- * Accepts a value, a function returning a value, or a function returning a promise of a value.
11
- */
12
- type LazyOrAsync<T> = T | (() => MaybePromise<T>);
13
- /**
14
- * Accepts a value or a readonly array of values of type T.
15
- */
16
- type MaybeArray$1<T> = T | ReadonlyArray<T>;
17
- /**
18
- * Accepts a value or a function returning a value.
19
- */
20
- type MaybeFunc$1<T extends (...args: Array<any>) => any> = T | ReturnType<T>;
21
- /**
22
- * Accepts a value or a promise of a value.
23
- */
24
- type MaybePromise<T> = T | Promise<T>;
25
- //#endregion
26
9
  //#region src/utils/naming/types.d.ts
27
10
  /**
28
11
  * Available casing strategies.
@@ -33,7 +16,7 @@ type Casing = 'camelCase' | 'PascalCase' | 'preserve' | 'snake_case' | 'SCREAMIN
33
16
  *
34
17
  * Template supports `{{name}}` variable.
35
18
  */
36
- type NameTransformer = MaybeFunc$1<(name: string) => string>;
19
+ type NameTransformer = MaybeFunc<(name: string) => string>;
37
20
  /**
38
21
  * Full naming configuration.
39
22
  */
@@ -169,7 +152,7 @@ type SourceConfig = FeatureToggle & {
169
152
  //#endregion
170
153
  //#region src/config/output/types.d.ts
171
154
  type ImportFileExtensions = '.js' | '.ts';
172
- type Header$1 = MaybeFunc$1<(ctx: RenderContext) => MaybeArray$1<string> | null | undefined>;
155
+ type Header$1 = MaybeFunc<(ctx: RenderContext) => MaybeArray<string> | null | undefined>;
173
156
  type UserOutput = {
174
157
  /**
175
158
  * Defines casing of the output fields. By default, we preserve `input`
@@ -2733,7 +2716,7 @@ interface JsonSchemaDraft2020_12 extends ArrayKeywords, NumberKeywords, ObjectKe
2733
2716
  /**
2734
2717
  * If it is an array, it must be an array of strings, where each string is the name of one of the basic types, and each element is unique. In this case, the JSON snippet is valid if it matches any of the given types.
2735
2718
  */
2736
- type?: MaybeArray$1<JsonSchemaTypes$1>;
2719
+ type?: MaybeArray<JsonSchemaTypes$1>;
2737
2720
  /**
2738
2721
  * The boolean keywords `readOnly` and `writeOnly` are typically used in an API context. `readOnly` indicates that a value should not be modified. It could be used to indicate that a `PUT` request that changes a value would result in a `400 Bad Request` response. `writeOnly` indicates that a value may be set, but will remain hidden. In could be used to indicate you can set a value with a `PUT` request, but it would not be included when retrieving that record with a `GET` request.
2739
2722
  */
@@ -4267,14 +4250,6 @@ declare class TsDslContext {
4267
4250
  declare const ctx: TsDslContext;
4268
4251
  //#endregion
4269
4252
  //#region src/ts-dsl/base.d.ts
4270
- /**
4271
- * Accepts a value or a readonly array of values of type T.
4272
- */
4273
- type MaybeArray<T> = T | ReadonlyArray<T>;
4274
- /**
4275
- * Accepts a value or a function returning a value.
4276
- */
4277
- type MaybeFunc<T extends (...args: Array<any>) => any> = T | ReturnType<T>;
4278
4253
  declare abstract class TsDsl<T extends ts.Node = ts.Node> implements Node<T> {
4279
4254
  analyze(_: AnalysisContext): void;
4280
4255
  clone(): this;
@@ -13536,7 +13511,7 @@ type Resolvers = Plugin.Resolvers<{
13536
13511
  response?: ValidatorResolver;
13537
13512
  };
13538
13513
  }>;
13539
- type ValidatorResolver = (ctx: ValidatorResolverContext) => MaybeArray$1<TsDsl<ts.Statement>> | null | undefined;
13514
+ type ValidatorResolver = (ctx: ValidatorResolverContext) => MaybeArray<TsDsl<ts.Statement>> | null | undefined;
13540
13515
  interface BaseContext extends DollarTsDsl {
13541
13516
  /**
13542
13517
  * Functions for working with chains.
@@ -15564,7 +15539,7 @@ interface UserConfig {
15564
15539
  * inputs. If you define an array of outputs with the same length, we will
15565
15540
  * generate multiple outputs, one for each input.
15566
15541
  */
15567
- input: MaybeArray$1<UserInput | Required<UserInput>['path']>;
15542
+ input: MaybeArray<UserInput | Required<UserInput>['path']>;
15568
15543
  /**
15569
15544
  * Show an interactive error reporting tool when the program crashes? You
15570
15545
  * generally want to keep this disabled (default).
@@ -15584,7 +15559,7 @@ interface UserConfig {
15584
15559
  * If you define an array of outputs with the same length as inputs, we will
15585
15560
  * generate multiple outputs, one for each input.
15586
15561
  */
15587
- output: MaybeArray$1<string | UserOutput>;
15562
+ output: MaybeArray<string | UserOutput>;
15588
15563
  /**
15589
15564
  * Customize how the input is parsed and transformed before it's passed to
15590
15565
  * plugins.
@@ -15624,5 +15599,5 @@ type Config = Omit<Required<UserConfig>, 'input' | 'logs' | 'output' | 'parser'
15624
15599
  plugins: { [K in PluginNames]?: Plugin.Config<PluginConfigMap[K]> };
15625
15600
  };
15626
15601
  //#endregion
15627
- export { ctx as A, regexp as C, TypeTsDsl as D, TsDsl as E, Casing as F, LazyOrAsync as I, MaybeArray$1 as L, OperationPath as M, OperationStrategy as N, ExampleOptions as O, IR as P, TypeScriptRenderer as S, MaybeTsDsl as T, Client as _, Plugin as a, DollarTsDsl as b, OpenApiOperationObject as c, OpenApiResponseObject as d, OpenApiSchemaObject as f, ExpressionTransformer as g, TypeTransformer as h, DefinePlugin as i, CallArgs as j, TsDslContext as k, OpenApiParameterObject as l, Logger as m, UserConfig as n, OpenApi as o, Context as p, Input as r, OpenApiMetaObject as s, Config as t, OpenApiRequestBodyObject as u, PluginHandler as v, keywords as w, reserved as x, $ as y };
15628
- //# sourceMappingURL=config-BpoUoSpn.d.cts.map
15602
+ export { ctx as A, regexp as C, TypeTsDsl as D, TsDsl as E, Casing as F, OperationPath as M, OperationStrategy as N, ExampleOptions as O, IR as P, TypeScriptRenderer as S, MaybeTsDsl as T, Client as _, Plugin as a, DollarTsDsl as b, OpenApiOperationObject as c, OpenApiResponseObject as d, OpenApiSchemaObject as f, ExpressionTransformer as g, TypeTransformer as h, DefinePlugin as i, CallArgs as j, TsDslContext as k, OpenApiParameterObject as l, Logger as m, UserConfig as n, OpenApi as o, Context as p, Input as r, OpenApiMetaObject as s, Config as t, OpenApiRequestBodyObject as u, PluginHandler as v, keywords as w, reserved as x, $ as y };
15603
+ //# sourceMappingURL=config-CtVXEKSL.d.cts.map
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
- const require_openApi = require('./openApi-3_A4QzK7.cjs');
3
- const require_src = require('./src-CsHLuAJv.cjs');
2
+ const require_openApi = require('./openApi-BZ7m5ia5.cjs');
3
+ const require_src = require('./src-BkOFTEi8.cjs');
4
4
 
5
5
  exports.$ = require_openApi.$;
6
6
  exports.Logger = require_src.Logger;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,6 @@
1
1
 
2
- import { A as ctx, C as regexp, D as TypeTsDsl, E as TsDsl, F as Casing, I as LazyOrAsync, L as MaybeArray, M as OperationPath, N as OperationStrategy, O as ExampleOptions, P as IR, S as TypeScriptRenderer, T as MaybeTsDsl, _ as Client$2, a as Plugin, b as DollarTsDsl, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, j as CallArgs, k as TsDslContext, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as PluginHandler, w as keywords, x as reserved, y as $ } from "./config-BpoUoSpn.cjs";
2
+ import { A as ctx, C as regexp, D as TypeTsDsl, E as TsDsl, F as Casing, M as OperationPath, N as OperationStrategy, O as ExampleOptions, P as IR, S as TypeScriptRenderer, T as MaybeTsDsl, _ as Client$2, a as Plugin, b as DollarTsDsl, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, j as CallArgs, k as TsDslContext, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as PluginHandler, w as keywords, x as reserved, y as $ } from "./config-CtVXEKSL.cjs";
3
+ import { LazyOrAsync, MaybeArray } from "@hey-api/types";
3
4
  import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
4
5
  import { Injector } from "@angular/core";
5
6
  import { AxiosError, AxiosInstance, AxiosRequestHeaders, AxiosResponse, AxiosStatic, CreateAxiosDefaults } from "axios";
package/dist/index.d.mts CHANGED
@@ -1,6 +1,7 @@
1
1
 
2
- import { A as keywords, B as IR, C as Client$1, D as reserved, E as DollarTsDsl, F as TsDslContext, H as LazyOrAsync, I as ctx, L as CallArgs, M as TsDsl, N as TypeTsDsl, O as TypeScriptRenderer, P as ExampleOptions, R as OperationPath, S as Client$3, T as $, U as MaybeArray, V as Casing, _ as Client$2, a as Plugin, b as Client$5, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, j as MaybeTsDsl, k as regexp, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as PluginHandler, w as Client, x as Client$4, y as Client$6, z as OperationStrategy } from "./config-BY6SQ9vq.mjs";
2
+ import { A as keywords, B as IR, C as Client$1, D as reserved, E as DollarTsDsl, F as TsDslContext, I as ctx, L as CallArgs, M as TsDsl, N as TypeTsDsl, O as TypeScriptRenderer, P as ExampleOptions, R as OperationPath, S as Client$3, T as $, V as Casing, _ as Client$2, a as Plugin, b as Client$5, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, j as MaybeTsDsl, k as regexp, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as PluginHandler, w as Client, x as Client$4, y as Client$6, z as OperationStrategy } from "./config-BCMpBYUB.mjs";
3
3
  import "@hey-api/codegen-core";
4
+ import { LazyOrAsync, MaybeArray } from "@hey-api/types";
4
5
 
5
6
  //#region src/generate.d.ts
6
7
 
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- import { C as defaultPaginationKeywords, S as definePluginConfig, _ as regexp, a as defaultPlugins, b as OperationPath, c as clientDefaultConfig, d as $, f as TypeScriptRenderer, g as keywords, h as reserved, l as clientDefaultMeta, m as ctx, o as clientPluginHandler, p as TsDslContext, v as TsDsl, x as OperationStrategy } from "./openApi-D6jppAcA.mjs";
3
- import { i as Logger, n as utils, r as createClient, t as defineConfig } from "./src-CGmZM4HZ.mjs";
2
+ import { C as defaultPaginationKeywords, S as definePluginConfig, _ as regexp, a as defaultPlugins, b as OperationPath, c as clientDefaultConfig, d as $, f as TypeScriptRenderer, g as keywords, h as reserved, l as clientDefaultMeta, m as ctx, o as clientPluginHandler, p as TsDslContext, v as TsDsl, x as OperationStrategy } from "./openApi-B6J9qPwL.mjs";
3
+ import { i as Logger, n as utils, r as createClient, t as defineConfig } from "./src-BehyjtZ7.mjs";
4
4
 
5
5
  export { $, Logger, OperationPath, OperationStrategy, TsDsl, TsDslContext, TypeScriptRenderer, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, createClient, ctx, defaultPaginationKeywords, defaultPlugins, defineConfig, definePluginConfig, keywords, regexp, reserved, utils };
package/dist/internal.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- const require_openApi = require('./openApi-3_A4QzK7.cjs');
2
+ const require_openApi = require('./openApi-BZ7m5ia5.cjs');
3
3
 
4
4
  exports.getSpec = require_openApi.getSpec;
5
5
  exports.initConfigs = require_openApi.initConfigs;
@@ -1,5 +1,5 @@
1
1
 
2
- import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-BpoUoSpn.cjs";
2
+ import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-CtVXEKSL.cjs";
3
3
  import { getResolvedInput } from "@hey-api/json-schema-ref-parser";
4
4
 
5
5
  //#region src/config/init.d.ts
@@ -1,5 +1,5 @@
1
1
 
2
- import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-BY6SQ9vq.mjs";
2
+ import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-BCMpBYUB.mjs";
3
3
  import { getResolvedInput } from "@hey-api/json-schema-ref-parser";
4
4
 
5
5
  //#region src/config/init.d.ts
package/dist/internal.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
- import { i as initConfigs, r as getSpec, t as parseOpenApiSpec } from "./openApi-D6jppAcA.mjs";
2
+ import { i as initConfigs, r as getSpec, t as parseOpenApiSpec } from "./openApi-B6J9qPwL.mjs";
3
3
 
4
4
  export { getSpec, initConfigs, parseOpenApiSpec };
@@ -5499,7 +5499,7 @@ const operationAuth = ({ operation, plugin }) => {
5499
5499
  for (const securitySchemeObject of operation.security) {
5500
5500
  const authObject = securitySchemeObjectToAuthObject({ securitySchemeObject });
5501
5501
  if (authObject) auth.push(authObject);
5502
- else console.warn(`❗️ SDK warning: unsupported security scheme. Please open an issue if you'd like it added https://github.com/hey-api/openapi-ts/issues\n${JSON.stringify(securitySchemeObject, null, 2)}`);
5502
+ else if (securitySchemeObject.type !== "mutualTLS") console.warn(`❗️ SDK warning: unsupported security scheme. Please open an issue if you'd like it added https://github.com/hey-api/openapi-ts/issues\n${JSON.stringify(securitySchemeObject, null, 2)}`);
5503
5503
  }
5504
5504
  return auth;
5505
5505
  };
@@ -21733,4 +21733,4 @@ const parseOpenApiSpec = ({ config, dependencies, logger, spec }) => {
21733
21733
 
21734
21734
  //#endregion
21735
21735
  export { openGitHubIssueWithCrashReport as A, defaultPaginationKeywords as C, ConfigValidationError as D, ConfigError as E, shouldReportCrash as M, loadPackageJson as N, JobError as O, definePluginConfig as S, getLogs as T, regexp as _, defaultPlugins as a, OperationPath as b, clientDefaultConfig as c, $ as d, TypeScriptRenderer as f, keywords as g, reserved as h, initConfigs as i, printCrashReport as j, logCrashReport as k, clientDefaultMeta as l, ctx as m, buildGraph as n, clientPluginHandler as o, TsDslContext as p, getSpec as r, generateClientBundle as s, parseOpenApiSpec as t, toCase as u, TsDsl as v, postprocessOutput as w, OperationStrategy as x, getClientPlugin as y };
21736
- //# sourceMappingURL=openApi-D6jppAcA.mjs.map
21736
+ //# sourceMappingURL=openApi-B6J9qPwL.mjs.map