@hey-api/openapi-ts 0.87.0 → 0.87.1

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.
Files changed (40) hide show
  1. package/README.md +1 -1
  2. package/dist/clients/angular/index.ts +0 -1
  3. package/dist/clients/angular/types.ts +0 -27
  4. package/dist/clients/axios/index.ts +0 -1
  5. package/dist/clients/axios/types.ts +0 -19
  6. package/dist/clients/fetch/index.ts +0 -1
  7. package/dist/clients/fetch/types.ts +0 -27
  8. package/dist/clients/next/index.ts +0 -1
  9. package/dist/clients/next/types.ts +0 -19
  10. package/dist/clients/nuxt/index.ts +0 -1
  11. package/dist/clients/nuxt/types.ts +0 -12
  12. package/dist/clients/ofetch/index.ts +0 -1
  13. package/dist/clients/ofetch/types.ts +0 -27
  14. package/dist/{config-oAoGatJ7.d.ts → config-CNi83ZTD.d.ts} +746 -280
  15. package/dist/{config-B2o9ax_a.d.cts → config-PWeoedFF.d.cts} +723 -257
  16. package/dist/index.cjs +1 -1
  17. package/dist/index.d.cts +28 -14
  18. package/dist/index.d.ts +28 -14
  19. package/dist/index.js +1 -1
  20. package/dist/internal.cjs +1 -1
  21. package/dist/internal.d.cts +1 -1
  22. package/dist/internal.d.ts +1 -1
  23. package/dist/internal.js +1 -1
  24. package/dist/openApi-CCTdD3hW.cjs +19 -0
  25. package/dist/openApi-CCTdD3hW.cjs.map +1 -0
  26. package/dist/openApi-D7xrG_wR.js +19 -0
  27. package/dist/openApi-D7xrG_wR.js.map +1 -0
  28. package/dist/run.cjs +1 -1
  29. package/dist/run.cjs.map +1 -1
  30. package/dist/run.js +1 -1
  31. package/dist/run.js.map +1 -1
  32. package/dist/{src-CTUbY-zd.js → src-CZCpIWy7.js} +2 -2
  33. package/dist/{src-CTUbY-zd.js.map → src-CZCpIWy7.js.map} +1 -1
  34. package/dist/{src-H1fIt1p4.cjs → src-Cvd6zAsc.cjs} +2 -2
  35. package/dist/{src-H1fIt1p4.cjs.map → src-Cvd6zAsc.cjs.map} +1 -1
  36. package/package.json +1 -1
  37. package/dist/openApi-BWD76jue.cjs +0 -21
  38. package/dist/openApi-BWD76jue.cjs.map +0 -1
  39. package/dist/openApi-DXfWYPpF.js +0 -21
  40. package/dist/openApi-DXfWYPpF.js.map +0 -1
@@ -2800,9 +2800,6 @@ type WalkOptions<T extends string = string> = {
2800
2800
  type StringCase = 'camelCase' | 'PascalCase' | 'preserve' | 'snake_case' | 'SCREAMING_SNAKE_CASE';
2801
2801
  type StringName = string | ((name: string) => string);
2802
2802
  //#endregion
2803
- //#region src/plugins/@angular/common/api.d.ts
2804
- type IApi$20 = any;
2805
- //#endregion
2806
2803
  //#region src/plugins/@angular/common/types.d.ts
2807
2804
  type UserConfig$22 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
2808
2805
  /**
@@ -2872,7 +2869,7 @@ type UserConfig$22 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
2872
2869
  methodNameBuilder?: (operation: IR.OperationObject) => string;
2873
2870
  };
2874
2871
  };
2875
- type Config$20 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
2872
+ type Config$21 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
2876
2873
  /**
2877
2874
  * Should the exports from the generated files be re-exported in the index
2878
2875
  * barrel file?
@@ -2935,7 +2932,7 @@ type Config$20 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
2935
2932
  methodNameBuilder: (operation: IR.OperationObject) => string;
2936
2933
  };
2937
2934
  };
2938
- type AngularCommonPlugin = DefinePlugin<UserConfig$22, Config$20, IApi$20>;
2935
+ type AngularCommonPlugin = DefinePlugin<UserConfig$22, Config$21>;
2939
2936
  //#endregion
2940
2937
  //#region src/plugins/@hey-api/client-core/bundle/auth.d.ts
2941
2938
  type AuthToken = string | undefined;
@@ -2985,20 +2982,20 @@ type QuerySerializerOptions = QuerySerializerOptionsObject & {
2985
2982
  //#endregion
2986
2983
  //#region src/plugins/@hey-api/client-core/bundle/types.d.ts
2987
2984
  type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
2988
- type Client$1<RequestFn$6 = never, Config$21 = unknown, MethodFn$6 = never, BuildUrlFn$6 = never, SseFn$6 = never> = {
2985
+ type Client$1<RequestFn$6 = never, Config$22 = unknown, MethodFn$6 = never, BuildUrlFn$6 = never, SseFn$6 = never> = {
2989
2986
  /**
2990
2987
  * Returns the final request URL.
2991
2988
  */
2992
2989
  buildUrl: BuildUrlFn$6;
2993
- getConfig: () => Config$21;
2990
+ getConfig: () => Config$22;
2994
2991
  request: RequestFn$6;
2995
- setConfig: (config: Config$21) => Config$21;
2992
+ setConfig: (config: Config$22) => Config$22;
2996
2993
  } & { [K in HttpMethod]: MethodFn$6 } & ([SseFn$6] extends [never] ? {
2997
2994
  sse?: never;
2998
2995
  } : {
2999
2996
  sse: { [K in HttpMethod]: SseFn$6 };
3000
2997
  });
3001
- interface Config$13 {
2998
+ interface Config$14 {
3002
2999
  /**
3003
3000
  * Auth token or a function returning auth token. The resolved value will be
3004
3001
  * added to the request payload as defined by its `security` array.
@@ -3053,7 +3050,7 @@ interface Config$13 {
3053
3050
  }
3054
3051
  //#endregion
3055
3052
  //#region src/plugins/@hey-api/client-core/bundle/serverSentEvents.d.ts
3056
- type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$13, 'method' | 'responseTransformer' | 'responseValidator'> & {
3053
+ type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$14, 'method' | 'responseTransformer' | 'responseValidator'> & {
3057
3054
  /**
3058
3055
  * Fetch API implementation. You can use this option to provide a custom
3059
3056
  * fetch instance.
@@ -3144,7 +3141,7 @@ interface Middleware$3<Req, Res, Err, Options$6> {
3144
3141
  //#endregion
3145
3142
  //#region src/plugins/@hey-api/client-angular/bundle/types.d.ts
3146
3143
  type ResponseStyle$2 = 'data' | 'fields';
3147
- interface Config$19<T extends ClientOptions$5 = ClientOptions$5> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Omit<Config$13, 'headers'> {
3144
+ interface Config$20<T extends ClientOptions$5 = ClientOptions$5> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Omit<Config$14, 'headers'> {
3148
3145
  /**
3149
3146
  * Base URL for all requests made by this client.
3150
3147
  */
@@ -3173,7 +3170,7 @@ interface Config$19<T extends ClientOptions$5 = ClientOptions$5> extends Omit<Re
3173
3170
  */
3174
3171
  throwOnError?: T['throwOnError'];
3175
3172
  }
3176
- interface RequestOptions$5<TData = unknown, TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$19<{
3173
+ interface RequestOptions$5<TData = unknown, TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$20<{
3177
3174
  responseStyle: TResponseStyle;
3178
3175
  throwOnError: ThrowOnError;
3179
3176
  }>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
@@ -3230,7 +3227,7 @@ type BuildUrlFn$5 = <TData extends {
3230
3227
  query?: Record<string, unknown>;
3231
3228
  url: string;
3232
3229
  }>(options: TData & Options$5<TData>) => string;
3233
- type Client$7 = Client$1<RequestFn$5, Config$19, MethodFn$5, BuildUrlFn$5, SseFn$5> & {
3230
+ type Client$7 = Client$1<RequestFn$5, Config$20, MethodFn$5, BuildUrlFn$5, SseFn$5> & {
3234
3231
  interceptors: Middleware$3<HttpRequest<unknown>, HttpResponse<unknown>, unknown, ResolvedRequestOptions$3>;
3235
3232
  requestOptions: RequestOptionsFn;
3236
3233
  };
@@ -3245,7 +3242,7 @@ type OmitKeys$5<T, K$1> = Pick<T, Exclude<keyof T, K$1>>;
3245
3242
  type Options$5<TData extends TDataShape$5 = TDataShape$5, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$2 = 'fields'> = OmitKeys$5<RequestOptions$5<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
3246
3243
  //#endregion
3247
3244
  //#region src/plugins/@hey-api/client-axios/bundle/types.d.ts
3248
- interface Config$18<T extends ClientOptions$4 = ClientOptions$4> extends Omit<CreateAxiosDefaults, 'auth' | 'baseURL' | 'headers' | 'method'>, Config$13 {
3245
+ interface Config$19<T extends ClientOptions$4 = ClientOptions$4> extends Omit<CreateAxiosDefaults, 'auth' | 'baseURL' | 'headers' | 'method'>, Config$14 {
3249
3246
  /**
3250
3247
  * Axios implementation. You can use this option to provide either an
3251
3248
  * `AxiosStatic` or an `AxiosInstance`.
@@ -3271,7 +3268,7 @@ interface Config$18<T extends ClientOptions$4 = ClientOptions$4> extends Omit<Cr
3271
3268
  */
3272
3269
  throwOnError?: T['throwOnError'];
3273
3270
  }
3274
- interface RequestOptions$4<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$18<{
3271
+ interface RequestOptions$4<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$19<{
3275
3272
  throwOnError: ThrowOnError;
3276
3273
  }>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
3277
3274
  /**
@@ -3307,7 +3304,7 @@ type BuildUrlFn$4 = <TData extends {
3307
3304
  query?: Record<string, unknown>;
3308
3305
  url: string;
3309
3306
  }>(options: TData & Options$4<TData>) => string;
3310
- type Client$6 = Client$1<RequestFn$4, Config$18, MethodFn$4, BuildUrlFn$4, SseFn$4> & {
3307
+ type Client$6 = Client$1<RequestFn$4, Config$19, MethodFn$4, BuildUrlFn$4, SseFn$4> & {
3311
3308
  instance: AxiosInstance;
3312
3309
  };
3313
3310
  interface TDataShape$4 {
@@ -3320,9 +3317,6 @@ interface TDataShape$4 {
3320
3317
  type OmitKeys$4<T, K$1> = Pick<T, Exclude<keyof T, K$1>>;
3321
3318
  type Options$4<TData extends TDataShape$4 = TDataShape$4, ThrowOnError extends boolean = boolean, TResponse = unknown> = OmitKeys$4<RequestOptions$4<TResponse, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
3322
3319
  //#endregion
3323
- //#region src/plugins/@hey-api/client-axios/api.d.ts
3324
- type IApi$19 = any;
3325
- //#endregion
3326
3320
  //#region src/plugins/@hey-api/client-axios/types.d.ts
3327
3321
  type UserConfig$21 = Plugin.Name<'@hey-api/client-axios'> & Client.Config & {
3328
3322
  /**
@@ -3332,7 +3326,7 @@ type UserConfig$21 = Plugin.Name<'@hey-api/client-axios'> & Client.Config & {
3332
3326
  */
3333
3327
  throwOnError?: boolean;
3334
3328
  };
3335
- type HeyApiClientAxiosPlugin = DefinePlugin<UserConfig$21, UserConfig$21, IApi$19>;
3329
+ type HeyApiClientAxiosPlugin = DefinePlugin<UserConfig$21, UserConfig$21>;
3336
3330
  //#endregion
3337
3331
  //#region src/plugins/@hey-api/client-fetch/bundle/utils.d.ts
3338
3332
  type ErrInterceptor$2<Err, Res, Req, Options$6> = (error: Err, response: Res, request: Req, options: Options$6) => Err | Promise<Err>;
@@ -3355,7 +3349,7 @@ interface Middleware$2<Req, Res, Err, Options$6> {
3355
3349
  //#endregion
3356
3350
  //#region src/plugins/@hey-api/client-fetch/bundle/types.d.ts
3357
3351
  type ResponseStyle$1 = 'data' | 'fields';
3358
- interface Config$17<T extends ClientOptions$3 = ClientOptions$3> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$13 {
3352
+ interface Config$18<T extends ClientOptions$3 = ClientOptions$3> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$14 {
3359
3353
  /**
3360
3354
  * Base URL for all requests made by this client.
3361
3355
  */
@@ -3396,7 +3390,7 @@ interface Config$17<T extends ClientOptions$3 = ClientOptions$3> extends Omit<Re
3396
3390
  */
3397
3391
  throwOnError?: T['throwOnError'];
3398
3392
  }
3399
- interface RequestOptions$3<TData = unknown, TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$17<{
3393
+ interface RequestOptions$3<TData = unknown, TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$18<{
3400
3394
  responseStyle: TResponseStyle;
3401
3395
  throwOnError: ThrowOnError;
3402
3396
  }>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
@@ -3445,7 +3439,7 @@ type BuildUrlFn$3 = <TData extends {
3445
3439
  query?: Record<string, unknown>;
3446
3440
  url: string;
3447
3441
  }>(options: TData & Options$3<TData>) => string;
3448
- type Client$5 = Client$1<RequestFn$3, Config$17, MethodFn$3, BuildUrlFn$3, SseFn$3> & {
3442
+ type Client$5 = Client$1<RequestFn$3, Config$18, MethodFn$3, BuildUrlFn$3, SseFn$3> & {
3449
3443
  interceptors: Middleware$2<Request, Response, unknown, ResolvedRequestOptions$2>;
3450
3444
  };
3451
3445
  interface TDataShape$3 {
@@ -3458,9 +3452,6 @@ interface TDataShape$3 {
3458
3452
  type OmitKeys$3<T, K$1> = Pick<T, Exclude<keyof T, K$1>>;
3459
3453
  type Options$3<TData extends TDataShape$3 = TDataShape$3, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$1 = 'fields'> = OmitKeys$3<RequestOptions$3<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
3460
3454
  //#endregion
3461
- //#region src/plugins/@hey-api/client-fetch/api.d.ts
3462
- type IApi$18 = any;
3463
- //#endregion
3464
3455
  //#region src/plugins/@hey-api/client-fetch/types.d.ts
3465
3456
  type UserConfig$20 = Plugin.Name<'@hey-api/client-fetch'> & Client.Config & {
3466
3457
  /**
@@ -3470,7 +3461,7 @@ type UserConfig$20 = Plugin.Name<'@hey-api/client-fetch'> & Client.Config & {
3470
3461
  */
3471
3462
  throwOnError?: boolean;
3472
3463
  };
3473
- type HeyApiClientFetchPlugin = DefinePlugin<UserConfig$20, UserConfig$20, IApi$18>;
3464
+ type HeyApiClientFetchPlugin = DefinePlugin<UserConfig$20, UserConfig$20>;
3474
3465
  //#endregion
3475
3466
  //#region src/plugins/@hey-api/client-next/bundle/utils.d.ts
3476
3467
  type ErrInterceptor$1<Err, Res, Options$6> = (error: Err, response: Res, options: Options$6) => Err | Promise<Err>;
@@ -3492,7 +3483,7 @@ interface Middleware$1<Res, Err, Options$6> {
3492
3483
  }
3493
3484
  //#endregion
3494
3485
  //#region src/plugins/@hey-api/client-next/bundle/types.d.ts
3495
- interface Config$16<T extends ClientOptions$2 = ClientOptions$2> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$13 {
3486
+ interface Config$17<T extends ClientOptions$2 = ClientOptions$2> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$14 {
3496
3487
  /**
3497
3488
  * Base URL for all requests made by this client.
3498
3489
  */
@@ -3520,7 +3511,7 @@ interface Config$16<T extends ClientOptions$2 = ClientOptions$2> extends Omit<Re
3520
3511
  */
3521
3512
  throwOnError?: T['throwOnError'];
3522
3513
  }
3523
- interface RequestOptions$2<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$16<{
3514
+ interface RequestOptions$2<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$17<{
3524
3515
  throwOnError: ThrowOnError;
3525
3516
  }>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
3526
3517
  /**
@@ -3565,7 +3556,7 @@ type BuildUrlFn$2 = <TData extends {
3565
3556
  query?: Record<string, unknown>;
3566
3557
  url: string;
3567
3558
  }>(options: TData & Options$2<TData>) => string;
3568
- type Client$4 = Client$1<RequestFn$2, Config$16, MethodFn$2, BuildUrlFn$2, SseFn$2> & {
3559
+ type Client$4 = Client$1<RequestFn$2, Config$17, MethodFn$2, BuildUrlFn$2, SseFn$2> & {
3569
3560
  interceptors: Middleware$1<Response, unknown, ResolvedRequestOptions$1>;
3570
3561
  };
3571
3562
  interface TDataShape$2 {
@@ -3578,9 +3569,6 @@ interface TDataShape$2 {
3578
3569
  type OmitKeys$2<T, K$1> = Pick<T, Exclude<keyof T, K$1>>;
3579
3570
  type Options$2<TData extends TDataShape$2 = TDataShape$2, ThrowOnError extends boolean = boolean, TResponse = unknown> = OmitKeys$2<RequestOptions$2<TResponse, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
3580
3571
  //#endregion
3581
- //#region src/plugins/@hey-api/client-next/api.d.ts
3582
- type IApi$17 = any;
3583
- //#endregion
3584
3572
  //#region src/plugins/@hey-api/client-next/types.d.ts
3585
3573
  type UserConfig$19 = Plugin.Name<'@hey-api/client-next'> & Client.Config & {
3586
3574
  /**
@@ -3590,13 +3578,13 @@ type UserConfig$19 = Plugin.Name<'@hey-api/client-next'> & Client.Config & {
3590
3578
  */
3591
3579
  throwOnError?: boolean;
3592
3580
  };
3593
- type HeyApiClientNextPlugin = DefinePlugin<UserConfig$19, UserConfig$19, IApi$17>;
3581
+ type HeyApiClientNextPlugin = DefinePlugin<UserConfig$19, UserConfig$19>;
3594
3582
  //#endregion
3595
3583
  //#region src/plugins/@hey-api/client-nuxt/bundle/types.d.ts
3596
3584
  type QuerySerializer = (query: Parameters<Client$3['buildUrl']>[0]['query']) => string;
3597
3585
  type WithRefs<TData> = { [K in keyof TData]: NonNullable<TData[K]> extends object ? WithRefs<NonNullable<TData[K]>> | Ref<NonNullable<TData[K]>> : NonNullable<TData[K]> | Ref<NonNullable<TData[K]>> };
3598
3586
  type KeysOf<T> = Array<T extends T ? (keyof T extends string ? keyof T : never) : never>;
3599
- interface Config$15<T extends ClientOptions$1 = ClientOptions$1> extends Omit<FetchOptions$1<unknown>, 'baseURL' | 'body' | 'headers' | 'method' | 'query'>, WithRefs<Pick<FetchOptions$1<unknown>, 'query'>>, Omit<Config$13, 'querySerializer'> {
3587
+ interface Config$16<T extends ClientOptions$1 = ClientOptions$1> extends Omit<FetchOptions$1<unknown>, 'baseURL' | 'body' | 'headers' | 'method' | 'query'>, WithRefs<Pick<FetchOptions$1<unknown>, 'query'>>, Omit<Config$14, 'querySerializer'> {
3600
3588
  /**
3601
3589
  * Base URL for all requests made by this client.
3602
3590
  */
@@ -3610,7 +3598,7 @@ interface Config$15<T extends ClientOptions$1 = ClientOptions$1> extends Omit<Fe
3610
3598
  */
3611
3599
  querySerializer?: QuerySerializer | QuerySerializerOptions;
3612
3600
  }
3613
- interface RequestOptions$1<TComposable extends Composable = '$fetch', ResT = unknown, DefaultT = undefined, Url extends string = string> extends Config$15, WithRefs<{
3601
+ interface RequestOptions$1<TComposable extends Composable = '$fetch', ResT = unknown, DefaultT = undefined, Url extends string = string> extends Config$16, WithRefs<{
3614
3602
  /**
3615
3603
  * Any body that you want to add to your request.
3616
3604
  *
@@ -3655,18 +3643,15 @@ interface TDataShape$1 {
3655
3643
  }
3656
3644
  type BuildUrlOptions<TData extends Omit<TDataShape$1, 'headers'> = Omit<TDataShape$1, 'headers'>> = Pick<WithRefs<TData>, 'path' | 'query'> & Pick<TData, 'url'> & Pick<Options$1<'$fetch', TData>, 'baseURL' | 'querySerializer'>;
3657
3645
  type BuildUrlFn$1 = <TData extends Omit<TDataShape$1, 'headers'>>(options: BuildUrlOptions<TData>) => string;
3658
- type Client$3 = Client$1<RequestFn$1, Config$15, MethodFn$1, BuildUrlFn$1, SseFn$1>;
3646
+ type Client$3 = Client$1<RequestFn$1, Config$16, MethodFn$1, BuildUrlFn$1, SseFn$1>;
3659
3647
  type OmitKeys$1<T, K$1> = Pick<T, Exclude<keyof T, K$1>>;
3660
3648
  type Options$1<TComposable extends Composable = '$fetch', TData extends TDataShape$1 = TDataShape$1, ResT = unknown, DefaultT = undefined> = OmitKeys$1<RequestOptions$1<TComposable, ResT, DefaultT>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : WithRefs<Omit<TData, 'url'>>);
3661
3649
  type FetchOptions$1<TData> = Omit<UseFetchOptions<TData, TData>, keyof AsyncDataOptions<TData>>;
3662
3650
  type Composable = '$fetch' | 'useAsyncData' | 'useFetch' | 'useLazyAsyncData' | 'useLazyFetch';
3663
3651
  //#endregion
3664
- //#region src/plugins/@hey-api/client-nuxt/api.d.ts
3665
- type IApi$16 = any;
3666
- //#endregion
3667
3652
  //#region src/plugins/@hey-api/client-nuxt/types.d.ts
3668
3653
  type UserConfig$18 = Plugin.Name<'@hey-api/client-nuxt'> & Client.Config;
3669
- type HeyApiClientNuxtPlugin = DefinePlugin<UserConfig$18, UserConfig$18, IApi$16>;
3654
+ type HeyApiClientNuxtPlugin = DefinePlugin<UserConfig$18, UserConfig$18>;
3670
3655
  //#endregion
3671
3656
  //#region src/plugins/@hey-api/client-ofetch/bundle/utils.d.ts
3672
3657
  type ErrInterceptor<Err, Res, Req, Options$6> = (error: Err, response: Res, request: Req, options: Options$6) => Err | Promise<Err>;
@@ -3689,7 +3674,7 @@ interface Middleware<Req, Res, Err, Options$6> {
3689
3674
  //#endregion
3690
3675
  //#region src/plugins/@hey-api/client-ofetch/bundle/types.d.ts
3691
3676
  type ResponseStyle = 'data' | 'fields';
3692
- interface Config$14<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$13 {
3677
+ interface Config$15<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$14 {
3693
3678
  /**
3694
3679
  * HTTP(S) agent configuration (Node.js only). Passed through to ofetch.
3695
3680
  */
@@ -3790,7 +3775,7 @@ interface Config$14<T extends ClientOptions = ClientOptions> extends Omit<Reques
3790
3775
  */
3791
3776
  timeout?: number;
3792
3777
  }
3793
- interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$14<{
3778
+ interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$15<{
3794
3779
  responseStyle: TResponseStyle;
3795
3780
  throwOnError: ThrowOnError;
3796
3781
  }>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
@@ -3839,7 +3824,7 @@ type BuildUrlFn = <TData extends {
3839
3824
  query?: Record<string, unknown>;
3840
3825
  url: string;
3841
3826
  }>(options: TData & Options<TData>) => string;
3842
- type Client$2 = Client$1<RequestFn, Config$14, MethodFn, BuildUrlFn, SseFn> & {
3827
+ type Client$2 = Client$1<RequestFn, Config$15, MethodFn, BuildUrlFn, SseFn> & {
3843
3828
  interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
3844
3829
  };
3845
3830
  interface TDataShape {
@@ -3852,9 +3837,6 @@ interface TDataShape {
3852
3837
  type OmitKeys<T, K$1> = Pick<T, Exclude<keyof T, K$1>>;
3853
3838
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
3854
3839
  //#endregion
3855
- //#region src/plugins/@hey-api/client-ofetch/api.d.ts
3856
- type IApi$15 = any;
3857
- //#endregion
3858
3840
  //#region src/plugins/@hey-api/client-ofetch/types.d.ts
3859
3841
  type UserConfig$17 = Plugin.Name<'@hey-api/client-ofetch'> & Client.Config & {
3860
3842
  /**
@@ -3864,7 +3846,7 @@ type UserConfig$17 = Plugin.Name<'@hey-api/client-ofetch'> & Client.Config & {
3864
3846
  */
3865
3847
  throwOnError?: boolean;
3866
3848
  };
3867
- type HeyApiClientOfetchPlugin = DefinePlugin<UserConfig$17, UserConfig$17, IApi$15>;
3849
+ type HeyApiClientOfetchPlugin = DefinePlugin<UserConfig$17, UserConfig$17>;
3868
3850
  //#endregion
3869
3851
  //#region src/plugins/@hey-api/client-core/types.d.ts
3870
3852
  interface PluginHandler {
@@ -3933,9 +3915,6 @@ declare namespace Client {
3933
3915
  };
3934
3916
  }
3935
3917
  //#endregion
3936
- //#region src/plugins/@hey-api/client-angular/api.d.ts
3937
- type IApi$14 = any;
3938
- //#endregion
3939
3918
  //#region src/plugins/@hey-api/client-angular/types.d.ts
3940
3919
  type UserConfig$16 = Plugin.Name<'@hey-api/client-angular'> & Client.Config & {
3941
3920
  /**
@@ -3945,7 +3924,7 @@ type UserConfig$16 = Plugin.Name<'@hey-api/client-angular'> & Client.Config & {
3945
3924
  */
3946
3925
  throwOnError?: boolean;
3947
3926
  };
3948
- type HeyApiClientAngularPlugin = DefinePlugin<UserConfig$16, UserConfig$16, IApi$14>;
3927
+ type HeyApiClientAngularPlugin = DefinePlugin<UserConfig$16, UserConfig$16>;
3949
3928
  //#endregion
3950
3929
  //#region src/openApi/2.0.x/types/json-schema-draft-4.d.ts
3951
3930
  interface JsonSchemaDraft4 extends EnumExtensions {
@@ -6895,9 +6874,6 @@ interface OpenApiV3_1_XTypes {
6895
6874
  SchemaObject: SchemaObject;
6896
6875
  }
6897
6876
  //#endregion
6898
- //#region src/plugins/@hey-api/schemas/api.d.ts
6899
- type IApi$13 = any;
6900
- //#endregion
6901
6877
  //#region src/plugins/@hey-api/schemas/types.d.ts
6902
6878
  type UserConfig$15 = Plugin.Name<'@hey-api/schemas'> & Plugin.Hooks & {
6903
6879
  /**
@@ -6924,10 +6900,7 @@ type UserConfig$15 = Plugin.Name<'@hey-api/schemas'> & Plugin.Hooks & {
6924
6900
  */
6925
6901
  type?: 'form' | 'json';
6926
6902
  };
6927
- type HeyApiSchemasPlugin = DefinePlugin<UserConfig$15, UserConfig$15, IApi$13>;
6928
- //#endregion
6929
- //#region src/plugins/@hey-api/sdk/api.d.ts
6930
- type IApi$12 = any;
6903
+ type HeyApiSchemasPlugin = DefinePlugin<UserConfig$15, UserConfig$15>;
6931
6904
  //#endregion
6932
6905
  //#region src/plugins/@hey-api/sdk/types.d.ts
6933
6906
  type UserConfig$14 = Plugin.Name<'@hey-api/sdk'> & Plugin.Hooks & {
@@ -7104,7 +7077,7 @@ type UserConfig$14 = Plugin.Name<'@hey-api/sdk'> & Plugin.Hooks & {
7104
7077
  */
7105
7078
  response?: 'body' | 'response';
7106
7079
  };
7107
- type Config$12 = Plugin.Name<'@hey-api/sdk'> & Plugin.Hooks & {
7080
+ type Config$13 = Plugin.Name<'@hey-api/sdk'> & Plugin.Hooks & {
7108
7081
  /**
7109
7082
  * Group operation methods into classes? When enabled, you can select which
7110
7083
  * classes to export with `sdk.include` and/or transform their names with
@@ -7260,10 +7233,7 @@ type Config$12 = Plugin.Name<'@hey-api/sdk'> & Plugin.Hooks & {
7260
7233
  */
7261
7234
  response: 'body' | 'response';
7262
7235
  };
7263
- type HeyApiSdkPlugin = DefinePlugin<UserConfig$14, Config$12, IApi$12>;
7264
- //#endregion
7265
- //#region src/plugins/@hey-api/transformers/api.d.ts
7266
- type IApi$11 = any;
7236
+ type HeyApiSdkPlugin = DefinePlugin<UserConfig$14, Config$13>;
7267
7237
  //#endregion
7268
7238
  //#region src/plugins/@hey-api/transformers/expressions.d.ts
7269
7239
  type ExpressionTransformer = ({
@@ -7315,7 +7285,7 @@ type UserConfig$13 = Plugin.Name<'@hey-api/transformers'> & Plugin.Hooks & {
7315
7285
  */
7316
7286
  typeTransformers?: ReadonlyArray<TypeTransformer>;
7317
7287
  };
7318
- type Config$11 = Plugin.Name<'@hey-api/transformers'> & Plugin.Hooks & {
7288
+ type Config$12 = Plugin.Name<'@hey-api/transformers'> & Plugin.Hooks & {
7319
7289
  /**
7320
7290
  * Convert long integers into BigInt values?
7321
7291
  *
@@ -7344,7 +7314,7 @@ type Config$11 = Plugin.Name<'@hey-api/transformers'> & Plugin.Hooks & {
7344
7314
  */
7345
7315
  typeTransformers: ReadonlyArray<TypeTransformer>;
7346
7316
  };
7347
- type HeyApiTransformersPlugin = DefinePlugin<UserConfig$13, Config$11, IApi$11>;
7317
+ type HeyApiTransformersPlugin = DefinePlugin<UserConfig$13, Config$12>;
7348
7318
  //#endregion
7349
7319
  //#region src/plugins/@hey-api/typescript/shared/types.d.ts
7350
7320
  type IrSchemaToAstOptions = {
@@ -7363,7 +7333,7 @@ declare const irSchemaToAst: ({
7363
7333
  }) => ts.TypeNode;
7364
7334
  //#endregion
7365
7335
  //#region src/plugins/@hey-api/typescript/api.d.ts
7366
- type IApi$10 = {
7336
+ type IApi$3 = {
7367
7337
  schemaToType: (args: Parameters<typeof irSchemaToAst>[0]) => ts.TypeNode;
7368
7338
  };
7369
7339
  //#endregion
@@ -7590,39 +7560,8 @@ type UserConfig$12 = Plugin.Name<'@hey-api/typescript'> & Plugin.Hooks & {
7590
7560
  */
7591
7561
  payload?: StringName;
7592
7562
  };
7593
-
7594
- // DEPRECATED OPTIONS BELOW
7595
-
7596
- /**
7597
- * **This feature works only with the legacy parser**
7598
- *
7599
- * Include only types matching regular expression.
7600
- *
7601
- * @deprecated
7602
- */
7603
- // eslint-disable-next-line typescript-sort-keys/interface
7604
- include?: string;
7605
- /**
7606
- * **This feature works only with the legacy parser**
7607
- *
7608
- * Use your preferred naming pattern
7609
- *
7610
- * @deprecated
7611
- * @default 'preserve'
7612
- */
7613
- style?: 'PascalCase' | 'preserve';
7614
- /**
7615
- * **This feature works only with the legacy parser**
7616
- *
7617
- * Generate a tree of types containing all operations? It will be named
7618
- * $OpenApiTs.
7619
- *
7620
- * @deprecated
7621
- * @default false
7622
- */
7623
- tree?: boolean;
7624
7563
  };
7625
- type Config$10 = Plugin.Name<'@hey-api/typescript'> & Plugin.Hooks & {
7564
+ type Config$11 = Plugin.Name<'@hey-api/typescript'> & Plugin.Hooks & {
7626
7565
  /**
7627
7566
  * The casing convention to use for generated names.
7628
7567
  *
@@ -7811,42 +7750,8 @@ type Config$10 = Plugin.Name<'@hey-api/typescript'> & Plugin.Hooks & {
7811
7750
  */
7812
7751
  payload: StringName;
7813
7752
  };
7814
-
7815
- // DEPRECATED OPTIONS BELOW
7816
-
7817
- /**
7818
- * **This feature works only with the legacy parser**
7819
- *
7820
- * Include only types matching regular expression.
7821
- *
7822
- * @deprecated
7823
- */
7824
- // eslint-disable-next-line typescript-sort-keys/interface
7825
- include?: string;
7826
- /**
7827
- * **This feature works only with the legacy parser**
7828
- *
7829
- * Use your preferred naming pattern
7830
- *
7831
- * @deprecated
7832
- * @default 'preserve'
7833
- */
7834
- style: 'PascalCase' | 'preserve';
7835
- /**
7836
- * **This feature works only with the legacy parser**
7837
- *
7838
- * Generate a tree of types containing all operations? It will be named
7839
- * $OpenApiTs.
7840
- *
7841
- * @deprecated
7842
- * @default false
7843
- */
7844
- tree: boolean;
7845
7753
  };
7846
- type HeyApiTypeScriptPlugin = DefinePlugin<UserConfig$12, Config$10, IApi$10>;
7847
- //#endregion
7848
- //#region src/plugins/@pinia/colada/api.d.ts
7849
- type IApi$9 = any;
7754
+ type HeyApiTypeScriptPlugin = DefinePlugin<UserConfig$12, Config$11, IApi$3>;
7850
7755
  //#endregion
7851
7756
  //#region src/plugins/@pinia/colada/types.d.ts
7852
7757
  type UserConfig$11 = Plugin.Name<'@pinia/colada'> & Plugin.Hooks & {
@@ -8027,7 +7932,7 @@ type UserConfig$11 = Plugin.Name<'@pinia/colada'> & Plugin.Hooks & {
8027
7932
  name?: StringName;
8028
7933
  };
8029
7934
  };
8030
- type Config$9 = Plugin.Name<'@pinia/colada'> & Plugin.Hooks & {
7935
+ type Config$10 = Plugin.Name<'@pinia/colada'> & Plugin.Hooks & {
8031
7936
  /**
8032
7937
  * The casing convention to use for generated names.
8033
7938
  *
@@ -8176,10 +8081,7 @@ type Config$9 = Plugin.Name<'@pinia/colada'> & Plugin.Hooks & {
8176
8081
  name: StringName;
8177
8082
  };
8178
8083
  };
8179
- type PiniaColadaPlugin = DefinePlugin<UserConfig$11, Config$9, IApi$9>;
8180
- //#endregion
8181
- //#region src/plugins/@tanstack/angular-query-experimental/api.d.ts
8182
- type IApi$8 = any;
8084
+ type PiniaColadaPlugin = DefinePlugin<UserConfig$11, Config$10>;
8183
8085
  //#endregion
8184
8086
  //#region src/plugins/@tanstack/angular-query-experimental/types.d.ts
8185
8087
  type UserConfig$10 = Plugin.Name<'@tanstack/angular-query-experimental'> & Plugin.Hooks & {
@@ -8463,7 +8365,7 @@ type UserConfig$10 = Plugin.Name<'@tanstack/angular-query-experimental'> & Plugi
8463
8365
  name?: StringName;
8464
8366
  };
8465
8367
  };
8466
- type Config$8 = Plugin.Name<'@tanstack/angular-query-experimental'> & Plugin.Hooks & {
8368
+ type Config$9 = Plugin.Name<'@tanstack/angular-query-experimental'> & Plugin.Hooks & {
8467
8369
  /**
8468
8370
  * The casing convention to use for generated names.
8469
8371
  *
@@ -8704,10 +8606,7 @@ type Config$8 = Plugin.Name<'@tanstack/angular-query-experimental'> & Plugin.Hoo
8704
8606
  name: StringName;
8705
8607
  };
8706
8608
  };
8707
- type TanStackAngularQueryPlugin = DefinePlugin<UserConfig$10, Config$8, IApi$8>;
8708
- //#endregion
8709
- //#region src/plugins/@tanstack/react-query/api.d.ts
8710
- type IApi$7 = any;
8609
+ type TanStackAngularQueryPlugin = DefinePlugin<UserConfig$10, Config$9>;
8711
8610
  //#endregion
8712
8611
  //#region src/plugins/@tanstack/react-query/types.d.ts
8713
8612
  type UserConfig$9 = Plugin.Name<'@tanstack/react-query'> & Plugin.Hooks & {
@@ -9035,7 +8934,7 @@ type UserConfig$9 = Plugin.Name<'@tanstack/react-query'> & Plugin.Hooks & {
9035
8934
  name?: StringName;
9036
8935
  };
9037
8936
  };
9038
- type Config$7 = Plugin.Name<'@tanstack/react-query'> & Plugin.Hooks & {
8937
+ type Config$8 = Plugin.Name<'@tanstack/react-query'> & Plugin.Hooks & {
9039
8938
  /**
9040
8939
  * The casing convention to use for generated names.
9041
8940
  *
@@ -9307,10 +9206,7 @@ type Config$7 = Plugin.Name<'@tanstack/react-query'> & Plugin.Hooks & {
9307
9206
  name: StringName;
9308
9207
  };
9309
9208
  };
9310
- type TanStackReactQueryPlugin = DefinePlugin<UserConfig$9, Config$7, IApi$7>;
9311
- //#endregion
9312
- //#region src/plugins/@tanstack/solid-query/api.d.ts
9313
- type IApi$6 = any;
9209
+ type TanStackReactQueryPlugin = DefinePlugin<UserConfig$9, Config$8>;
9314
9210
  //#endregion
9315
9211
  //#region src/plugins/@tanstack/solid-query/types.d.ts
9316
9212
  type UserConfig$8 = Plugin.Name<'@tanstack/solid-query'> & Plugin.Hooks & {
@@ -9595,7 +9491,7 @@ type UserConfig$8 = Plugin.Name<'@tanstack/solid-query'> & Plugin.Hooks & {
9595
9491
  name?: StringName;
9596
9492
  };
9597
9493
  };
9598
- type Config$6 = Plugin.Name<'@tanstack/solid-query'> & Plugin.Hooks & {
9494
+ type Config$7 = Plugin.Name<'@tanstack/solid-query'> & Plugin.Hooks & {
9599
9495
  /**
9600
9496
  * The casing convention to use for generated names.
9601
9497
  *
@@ -9836,10 +9732,7 @@ type Config$6 = Plugin.Name<'@tanstack/solid-query'> & Plugin.Hooks & {
9836
9732
  name: StringName;
9837
9733
  };
9838
9734
  };
9839
- type TanStackSolidQueryPlugin = DefinePlugin<UserConfig$8, Config$6, IApi$6>;
9840
- //#endregion
9841
- //#region src/plugins/@tanstack/svelte-query/api.d.ts
9842
- type IApi$5 = any;
9735
+ type TanStackSolidQueryPlugin = DefinePlugin<UserConfig$8, Config$7>;
9843
9736
  //#endregion
9844
9737
  //#region src/plugins/@tanstack/svelte-query/types.d.ts
9845
9738
  type UserConfig$7 = Plugin.Name<'@tanstack/svelte-query'> & Plugin.Hooks & {
@@ -10123,7 +10016,7 @@ type UserConfig$7 = Plugin.Name<'@tanstack/svelte-query'> & Plugin.Hooks & {
10123
10016
  name?: StringName;
10124
10017
  };
10125
10018
  };
10126
- type Config$5 = Plugin.Name<'@tanstack/svelte-query'> & Plugin.Hooks & {
10019
+ type Config$6 = Plugin.Name<'@tanstack/svelte-query'> & Plugin.Hooks & {
10127
10020
  /**
10128
10021
  * The casing convention to use for generated names.
10129
10022
  *
@@ -10364,10 +10257,7 @@ type Config$5 = Plugin.Name<'@tanstack/svelte-query'> & Plugin.Hooks & {
10364
10257
  name: StringName;
10365
10258
  };
10366
10259
  };
10367
- type TanStackSvelteQueryPlugin = DefinePlugin<UserConfig$7, Config$5, IApi$5>;
10368
- //#endregion
10369
- //#region src/plugins/@tanstack/vue-query/api.d.ts
10370
- type IApi$4 = any;
10260
+ type TanStackSvelteQueryPlugin = DefinePlugin<UserConfig$7, Config$6>;
10371
10261
  //#endregion
10372
10262
  //#region src/plugins/@tanstack/vue-query/types.d.ts
10373
10263
  type UserConfig$6 = Plugin.Name<'@tanstack/vue-query'> & Plugin.Hooks & {
@@ -10654,7 +10544,7 @@ type UserConfig$6 = Plugin.Name<'@tanstack/vue-query'> & Plugin.Hooks & {
10654
10544
  name?: StringName;
10655
10545
  };
10656
10546
  };
10657
- type Config$4 = Plugin.Name<'@tanstack/vue-query'> & Plugin.Hooks & {
10547
+ type Config$5 = Plugin.Name<'@tanstack/vue-query'> & Plugin.Hooks & {
10658
10548
  /**
10659
10549
  * The casing convention to use for generated names.
10660
10550
  *
@@ -10898,7 +10788,7 @@ type Config$4 = Plugin.Name<'@tanstack/vue-query'> & Plugin.Hooks & {
10898
10788
  name: StringName;
10899
10789
  };
10900
10790
  };
10901
- type TanStackVueQueryPlugin = DefinePlugin<UserConfig$6, Config$4, IApi$4>;
10791
+ type TanStackVueQueryPlugin = DefinePlugin<UserConfig$6, Config$5>;
10902
10792
  //#endregion
10903
10793
  //#region src/plugins/arktype/shared/types.d.ts
10904
10794
  type ValidatorArgs$2 = {
@@ -10907,7 +10797,7 @@ type ValidatorArgs$2 = {
10907
10797
  };
10908
10798
  //#endregion
10909
10799
  //#region src/plugins/arktype/api.d.ts
10910
- type IApi$3 = {
10800
+ type IApi$2 = {
10911
10801
  createRequestValidator: (args: ValidatorArgs$2) => ts.ArrowFunction | undefined;
10912
10802
  createResponseValidator: (args: ValidatorArgs$2) => ts.ArrowFunction | undefined;
10913
10803
  };
@@ -11258,7 +11148,7 @@ type UserConfig$5 = Plugin.Name<'arktype'> & Plugin.Hooks & {
11258
11148
  };
11259
11149
  };
11260
11150
  };
11261
- type Config$3 = Plugin.Name<'arktype'> & Plugin.Hooks & {
11151
+ type Config$4 = Plugin.Name<'arktype'> & Plugin.Hooks & {
11262
11152
  /**
11263
11153
  * The casing convention to use for generated names.
11264
11154
  *
@@ -11542,10 +11432,7 @@ type Config$3 = Plugin.Name<'arktype'> & Plugin.Hooks & {
11542
11432
  };
11543
11433
  };
11544
11434
  };
11545
- type ArktypePlugin = DefinePlugin<UserConfig$5, Config$3, IApi$3>;
11546
- //#endregion
11547
- //#region src/plugins/fastify/api.d.ts
11548
- type IApi$2 = any;
11435
+ type ArktypePlugin = DefinePlugin<UserConfig$5, Config$4, IApi$2>;
11549
11436
  //#endregion
11550
11437
  //#region src/plugins/fastify/types.d.ts
11551
11438
  type UserConfig$4 = Plugin.Name<'fastify'> & Plugin.Hooks & {
@@ -11557,22 +11444,10 @@ type UserConfig$4 = Plugin.Name<'fastify'> & Plugin.Hooks & {
11557
11444
  */
11558
11445
  exportFromIndex?: boolean;
11559
11446
  };
11560
- type FastifyPlugin = DefinePlugin<UserConfig$4, UserConfig$4, IApi$2>;
11561
- //#endregion
11562
- //#region src/plugins/valibot/shared/types.d.ts
11563
- type ValidatorArgs$1 = {
11564
- operation: IR$1.OperationObject;
11565
- plugin: ValibotPlugin['Instance'];
11566
- };
11567
- //#endregion
11568
- //#region src/plugins/valibot/api.d.ts
11569
- type IApi$1 = {
11570
- createRequestValidator: (args: ValidatorArgs$1) => ts.ArrowFunction | undefined;
11571
- createResponseValidator: (args: ValidatorArgs$1) => ts.ArrowFunction | undefined;
11572
- };
11447
+ type FastifyPlugin = DefinePlugin<UserConfig$4, UserConfig$4>;
11573
11448
  //#endregion
11574
- //#region src/plugins/valibot/types.d.ts
11575
- type UserConfig$3 = Plugin.Name<'valibot'> & Plugin.Hooks & {
11449
+ //#region src/plugins/swr/types.d.ts
11450
+ type UserConfig$3 = Plugin.Name<'swr'> & Plugin.Hooks & {
11576
11451
  /**
11577
11452
  * The casing convention to use for generated names.
11578
11453
  *
@@ -11580,23 +11455,36 @@ type UserConfig$3 = Plugin.Name<'valibot'> & Plugin.Hooks & {
11580
11455
  */
11581
11456
  case?: StringCase;
11582
11457
  /**
11583
- * Add comments from input to the generated Valibot schemas?
11458
+ * Add comments from SDK functions to the generated SWR code?
11459
+ *
11460
+ * Duplicating comments this way is useful so you don't need to drill into
11461
+ * the underlying SDK function to learn what it does or whether it's
11462
+ * deprecated. You can set this option to `false` if you prefer less
11463
+ * comment duplication.
11584
11464
  *
11585
11465
  * @default true
11586
11466
  */
11587
11467
  comments?: boolean;
11588
11468
  /**
11589
- * Configuration for reusable schema definitions.
11469
+ * Should the exports from the generated files be re-exported in the index
11470
+ * barrel file?
11590
11471
  *
11591
- * Controls generation of shared Valibot schemas that can be referenced
11592
- * across requests and responses.
11472
+ * @default false
11473
+ */
11474
+ exportFromIndex?: boolean;
11475
+ /**
11476
+ * Configuration for generated infinite query key helpers.
11477
+ *
11478
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
11593
11479
  *
11594
11480
  * Can be:
11595
11481
  * - `boolean`: Shorthand for `{ enabled: boolean }`
11596
11482
  * - `string` or `function`: Shorthand for `{ name: string | function }`
11597
11483
  * - `object`: Full configuration object
11484
+ *
11485
+ * @default true
11598
11486
  */
11599
- definitions?: boolean | StringName | {
11487
+ infiniteQueryKeys?: boolean | StringName | {
11600
11488
  /**
11601
11489
  * The casing convention to use for generated names.
11602
11490
  *
@@ -11604,46 +11492,41 @@ type UserConfig$3 = Plugin.Name<'valibot'> & Plugin.Hooks & {
11604
11492
  */
11605
11493
  case?: StringCase;
11606
11494
  /**
11607
- * Whether to generate Valibot schemas for reusable definitions.
11495
+ * Whether to generate infinite query key helpers.
11608
11496
  *
11609
11497
  * @default true
11610
11498
  */
11611
11499
  enabled?: boolean;
11612
11500
  /**
11613
- * Custom naming pattern for generated schema names. The name variable
11614
- * is obtained from the schema name.
11501
+ * Custom naming pattern for generated infinite query key names. The name variable is
11502
+ * obtained from the SDK function name.
11615
11503
  *
11616
- * @default 'v{{name}}'
11504
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
11505
+ *
11506
+ * @default '{{name}}InfiniteQueryKey'
11617
11507
  */
11618
11508
  name?: StringName;
11509
+ /**
11510
+ * Whether to include operation tags in infinite query keys.
11511
+ * This will make query keys larger but provides better cache invalidation capabilities.
11512
+ *
11513
+ * @default false
11514
+ */
11515
+ tags?: boolean;
11619
11516
  };
11620
11517
  /**
11621
- * Should the exports from the generated files be re-exported in the index
11622
- * barrel file?
11623
- *
11624
- * @default false
11625
- */
11626
- exportFromIndex?: boolean;
11627
- /**
11628
- * Enable Valibot metadata support? It's often useful to associate a schema
11629
- * with some additional metadata for documentation, code generation, AI
11630
- * structured outputs, form validation, and other purposes.
11631
- *
11632
- * @default false
11633
- */
11634
- metadata?: boolean;
11635
- /**
11636
- * Configuration for request-specific Valibot schemas.
11518
+ * Configuration for generated infinite query options helpers.
11637
11519
  *
11638
- * Controls generation of Valibot schemas for request bodies, query
11639
- * parameters, path parameters, and headers.
11520
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
11640
11521
  *
11641
11522
  * Can be:
11642
11523
  * - `boolean`: Shorthand for `{ enabled: boolean }`
11643
11524
  * - `string` or `function`: Shorthand for `{ name: string | function }`
11644
11525
  * - `object`: Full configuration object
11526
+ *
11527
+ * @default true
11645
11528
  */
11646
- requests?: boolean | StringName | {
11529
+ infiniteQueryOptions?: boolean | StringName | {
11647
11530
  /**
11648
11531
  * The casing convention to use for generated names.
11649
11532
  *
@@ -11651,31 +11534,57 @@ type UserConfig$3 = Plugin.Name<'valibot'> & Plugin.Hooks & {
11651
11534
  */
11652
11535
  case?: StringCase;
11653
11536
  /**
11654
- * Whether to generate Valibot schemas for request definitions.
11537
+ * Whether to generate infinite query options helpers.
11655
11538
  *
11656
11539
  * @default true
11657
11540
  */
11658
11541
  enabled?: boolean;
11659
11542
  /**
11660
- * Custom naming pattern for generated schema names. The name variable
11661
- * is obtained from the operation name.
11543
+ * Custom function to generate metadata for the operation.
11544
+ * Can return any valid meta object that will be included in the generated infinite query options.
11662
11545
  *
11663
- * @default 'v{{name}}Data'
11546
+ * @param operation - The operation object containing all available metadata
11547
+ * @returns A meta object with any properties you want to include
11548
+ *
11549
+ * @example
11550
+ * ```typescript
11551
+ * meta: (operation) => ({
11552
+ * customField: operation.id,
11553
+ * isDeprecated: operation.deprecated,
11554
+ * tags: operation.tags,
11555
+ * customObject: {
11556
+ * method: operation.method,
11557
+ * path: operation.path
11558
+ * }
11559
+ * })
11560
+ * ```
11561
+ *
11562
+ * @default undefined
11563
+ */
11564
+ meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
11565
+ /**
11566
+ * Custom naming pattern for generated infinite query options names. The name variable is
11567
+ * obtained from the SDK function name.
11568
+ *
11569
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
11570
+ *
11571
+ * @default '{{name}}InfiniteOptions'
11664
11572
  */
11665
11573
  name?: StringName;
11666
11574
  };
11667
11575
  /**
11668
- * Configuration for response-specific Valibot schemas.
11576
+ * Configuration for generated mutation options helpers.
11669
11577
  *
11670
- * Controls generation of Valibot schemas for response bodies, error
11671
- * responses, and status codes.
11578
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
11672
11579
  *
11673
11580
  * Can be:
11674
11581
  * - `boolean`: Shorthand for `{ enabled: boolean }`
11675
11582
  * - `string` or `function`: Shorthand for `{ name: string | function }`
11676
11583
  * - `object`: Full configuration object
11584
+ *
11585
+ * @default true
11677
11586
  */
11678
- responses?: boolean | StringName | {
11587
+ mutationOptions?: boolean | StringName | {
11679
11588
  /**
11680
11589
  * The casing convention to use for generated names.
11681
11590
  *
@@ -11683,23 +11592,48 @@ type UserConfig$3 = Plugin.Name<'valibot'> & Plugin.Hooks & {
11683
11592
  */
11684
11593
  case?: StringCase;
11685
11594
  /**
11686
- * Whether to generate Valibot schemas for response definitions.
11595
+ * Whether to generate mutation options helpers.
11687
11596
  *
11688
11597
  * @default true
11689
11598
  */
11690
11599
  enabled?: boolean;
11691
11600
  /**
11692
- * Custom naming pattern for generated schema names. The name variable
11693
- * is obtained from the operation name.
11601
+ * Custom function to generate metadata for the operation.
11602
+ * Can return any valid meta object that will be included in the generated mutation options.
11694
11603
  *
11695
- * @default 'v{{name}}Response'
11604
+ * @param operation - The operation object containing all available metadata
11605
+ * @returns A meta object with any properties you want to include
11606
+ *
11607
+ * @example
11608
+ * ```typescript
11609
+ * meta: (operation) => ({
11610
+ * customField: operation.id,
11611
+ * isDeprecated: operation.deprecated,
11612
+ * tags: operation.tags,
11613
+ * customObject: {
11614
+ * method: operation.method,
11615
+ * path: operation.path
11616
+ * }
11617
+ * })
11618
+ * ```
11619
+ *
11620
+ * @default undefined
11621
+ */
11622
+ meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
11623
+ /**
11624
+ * Custom naming pattern for generated mutation options names. The name variable is
11625
+ * obtained from the SDK function name.
11626
+ *
11627
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
11628
+ *
11629
+ * @default '{{name}}Mutation'
11696
11630
  */
11697
11631
  name?: StringName;
11698
11632
  };
11699
11633
  /**
11700
- * Configuration for webhook-specific Valibot schemas.
11634
+ * Configuration for generated query keys.
11701
11635
  *
11702
- * Controls generation of Valibot schemas for webhook payloads.
11636
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryKey queryKey}
11703
11637
  *
11704
11638
  * Can be:
11705
11639
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -11708,7 +11642,7 @@ type UserConfig$3 = Plugin.Name<'valibot'> & Plugin.Hooks & {
11708
11642
  *
11709
11643
  * @default true
11710
11644
  */
11711
- webhooks?: boolean | StringName | {
11645
+ queryKeys?: boolean | StringName | {
11712
11646
  /**
11713
11647
  * The casing convention to use for generated names.
11714
11648
  *
@@ -11716,29 +11650,582 @@ type UserConfig$3 = Plugin.Name<'valibot'> & Plugin.Hooks & {
11716
11650
  */
11717
11651
  case?: StringCase;
11718
11652
  /**
11719
- * Whether to generate Valibot schemas for webhook definitions.
11653
+ * Whether to generate query keys.
11720
11654
  *
11721
11655
  * @default true
11722
11656
  */
11723
11657
  enabled?: boolean;
11724
11658
  /**
11725
- * Custom naming pattern for generated schema names. The name variable
11726
- * is obtained from the webhook key.
11659
+ * Custom naming pattern for generated query key names. The name variable is
11660
+ * obtained from the SDK function name.
11727
11661
  *
11728
- * @default 'v{{name}}WebhookRequest'
11662
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/guides/query-keys Query Keys}
11663
+ *
11664
+ * @default '{{name}}QueryKey'
11729
11665
  */
11730
11666
  name?: StringName;
11667
+ /**
11668
+ * Whether to include operation tags in query keys.
11669
+ * This will make query keys larger but provides better cache invalidation capabilities.
11670
+ *
11671
+ * @default false
11672
+ */
11673
+ tags?: boolean;
11731
11674
  };
11732
- };
11733
- type Config$2 = Plugin.Name<'valibot'> & Plugin.Hooks & {
11734
11675
  /**
11735
- * The casing convention to use for generated names.
11676
+ * Configuration for generated query options helpers.
11736
11677
  *
11737
- * @default 'camelCase'
11738
- */
11739
- case: StringCase;
11740
- /**
11741
- * Add comments from input to the generated Valibot schemas?
11678
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryOptions queryOptions}
11679
+ *
11680
+ * Can be:
11681
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
11682
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
11683
+ * - `object`: Full configuration object
11684
+ *
11685
+ * @default true
11686
+ */
11687
+ queryOptions?: boolean | StringName | {
11688
+ /**
11689
+ * The casing convention to use for generated names.
11690
+ *
11691
+ * @default 'camelCase'
11692
+ */
11693
+ case?: StringCase;
11694
+ /**
11695
+ * Whether to generate query options helpers.
11696
+ *
11697
+ * @default true
11698
+ */
11699
+ enabled?: boolean;
11700
+ /**
11701
+ * Whether to export generated symbols.
11702
+ *
11703
+ * @default true
11704
+ */
11705
+ exported?: boolean;
11706
+ /**
11707
+ * Custom function to generate metadata for the operation.
11708
+ * Can return any valid meta object that will be included in the generated query options.
11709
+ *
11710
+ * @param operation - The operation object containing all available metadata
11711
+ * @returns A meta object with any properties you want to include
11712
+ *
11713
+ * @example
11714
+ * ```typescript
11715
+ * meta: (operation) => ({
11716
+ * customField: operation.id,
11717
+ * isDeprecated: operation.deprecated,
11718
+ * tags: operation.tags,
11719
+ * customObject: {
11720
+ * method: operation.method,
11721
+ * path: operation.path
11722
+ * }
11723
+ * })
11724
+ * ```
11725
+ *
11726
+ * @default undefined
11727
+ */
11728
+ meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
11729
+ /**
11730
+ * Custom naming pattern for generated query options names. The name variable is
11731
+ * obtained from the SDK function name.
11732
+ *
11733
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryOptions queryOptions}
11734
+ *
11735
+ * @default '{{name}}Options'
11736
+ */
11737
+ name?: StringName;
11738
+ };
11739
+ /**
11740
+ * Configuration for generated `useSwr()` function helpers.
11741
+ *
11742
+ * See {@link https://swr.vercel.app/docs/api API}
11743
+ *
11744
+ * Can be:
11745
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
11746
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
11747
+ * - `object`: Full configuration object
11748
+ *
11749
+ * @default true
11750
+ */
11751
+ useSwr?: boolean | StringName | {
11752
+ /**
11753
+ * The casing convention to use for generated names.
11754
+ *
11755
+ * @default 'camelCase'
11756
+ */
11757
+ case?: StringCase;
11758
+ /**
11759
+ * Whether to generate `useSwr()` function helpers.
11760
+ *
11761
+ * @default true
11762
+ */
11763
+ enabled?: boolean;
11764
+ /**
11765
+ * Custom naming pattern for generated `useSwr()` function names. The name variable is
11766
+ * obtained from the SDK function name.
11767
+ *
11768
+ * See {@link https://swr.vercel.app/docs/api API}
11769
+ *
11770
+ * @default 'use{{name}}'
11771
+ */
11772
+ name?: StringName;
11773
+ };
11774
+ };
11775
+ type Config$3 = Plugin.Name<'swr'> & Plugin.Hooks & {
11776
+ /**
11777
+ * The casing convention to use for generated names.
11778
+ *
11779
+ * @default 'camelCase'
11780
+ */
11781
+ case: StringCase;
11782
+ /**
11783
+ * Add comments from SDK functions to the generated SWR code?
11784
+ *
11785
+ * @default true
11786
+ */
11787
+ comments: boolean;
11788
+ /**
11789
+ * Should the exports from the generated files be re-exported in the index barrel file?
11790
+ *
11791
+ * @default false
11792
+ */
11793
+ exportFromIndex: boolean;
11794
+ /**
11795
+ * Resolved configuration for generated infinite query key helpers.
11796
+ *
11797
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
11798
+ */
11799
+ infiniteQueryKeys: {
11800
+ /**
11801
+ * The casing convention to use for generated names.
11802
+ *
11803
+ * @default 'camelCase'
11804
+ */
11805
+ case: StringCase;
11806
+ /**
11807
+ * Whether to generate infinite query key helpers.
11808
+ *
11809
+ * @default true
11810
+ */
11811
+ enabled: boolean;
11812
+ /**
11813
+ * Custom naming pattern for generated infinite query key names. The name variable is obtained from the SDK function name.
11814
+ *
11815
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
11816
+ *
11817
+ * @default '{{name}}InfiniteQueryKey'
11818
+ */
11819
+ name: StringName;
11820
+ /**
11821
+ * Whether to include operation tags in infinite query keys.
11822
+ * This will make query keys larger but provides better cache invalidation capabilities.
11823
+ *
11824
+ * @default false
11825
+ */
11826
+ tags: boolean;
11827
+ };
11828
+ /**
11829
+ * Resolved configuration for generated infinite query options helpers.
11830
+ *
11831
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
11832
+ */
11833
+ infiniteQueryOptions: {
11834
+ /**
11835
+ * The casing convention to use for generated names.
11836
+ *
11837
+ * @default 'camelCase'
11838
+ */
11839
+ case: StringCase;
11840
+ /**
11841
+ * Whether to generate infinite query options helpers.
11842
+ *
11843
+ * @default true
11844
+ */
11845
+ enabled: boolean;
11846
+ /**
11847
+ * Custom function to generate metadata for the operation.
11848
+ * Can return any valid meta object that will be included in the generated infinite query options.
11849
+ *
11850
+ * @param operation - The operation object containing all available metadata
11851
+ * @returns A meta object with any properties you want to include
11852
+ *
11853
+ * @example
11854
+ * ```typescript
11855
+ * meta: (operation) => ({
11856
+ * customField: operation.id,
11857
+ * isDeprecated: operation.deprecated,
11858
+ * tags: operation.tags,
11859
+ * customObject: {
11860
+ * method: operation.method,
11861
+ * path: operation.path
11862
+ * }
11863
+ * })
11864
+ * ```
11865
+ *
11866
+ * @default undefined
11867
+ */
11868
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
11869
+ /**
11870
+ * Custom naming pattern for generated infinite query options names. The name variable is obtained from the SDK function name.
11871
+ *
11872
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
11873
+ *
11874
+ * @default '{{name}}InfiniteOptions'
11875
+ */
11876
+ name: StringName;
11877
+ };
11878
+ /**
11879
+ * Resolved configuration for generated mutation options helpers.
11880
+ *
11881
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
11882
+ */
11883
+ mutationOptions: {
11884
+ /**
11885
+ * The casing convention to use for generated names.
11886
+ *
11887
+ * @default 'camelCase'
11888
+ */
11889
+ case: StringCase;
11890
+ /**
11891
+ * Whether to generate mutation options helpers.
11892
+ *
11893
+ * @default true
11894
+ */
11895
+ enabled: boolean;
11896
+ /**
11897
+ * Custom function to generate metadata for the operation.
11898
+ * Can return any valid meta object that will be included in the generated mutation options.
11899
+ *
11900
+ * @param operation - The operation object containing all available metadata
11901
+ * @returns A meta object with any properties you want to include
11902
+ *
11903
+ * @example
11904
+ * ```typescript
11905
+ * meta: (operation) => ({
11906
+ * customField: operation.id,
11907
+ * isDeprecated: operation.deprecated,
11908
+ * tags: operation.tags,
11909
+ * customObject: {
11910
+ * method: operation.method,
11911
+ * path: operation.path
11912
+ * }
11913
+ * })
11914
+ * ```
11915
+ *
11916
+ * @default undefined
11917
+ */
11918
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
11919
+ /**
11920
+ * Custom naming pattern for generated mutation options names. The name variable is obtained from the SDK function name.
11921
+ *
11922
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
11923
+ *
11924
+ * @default '{{name}}Mutation'
11925
+ */
11926
+ name: StringName;
11927
+ };
11928
+ /**
11929
+ * Resolved configuration for generated query keys.
11930
+ *
11931
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/guides/query-keys Query Keys}
11932
+ */
11933
+ queryKeys: {
11934
+ /**
11935
+ * The casing convention to use for generated names.
11936
+ *
11937
+ * @default 'camelCase'
11938
+ */
11939
+ case: StringCase;
11940
+ /**
11941
+ * Whether to generate query keys.
11942
+ *
11943
+ * @default true
11944
+ */
11945
+ enabled: boolean;
11946
+ /**
11947
+ * Custom naming pattern for generated query key names. The name variable is obtained from the SDK function name.
11948
+ *
11949
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/guides/query-keys Query Keys}
11950
+ *
11951
+ * @default '{{name}}QueryKey'
11952
+ */
11953
+ name: StringName;
11954
+ /**
11955
+ * Whether to include operation tags in query keys.
11956
+ * This will make query keys larger but provides better cache invalidation capabilities.
11957
+ *
11958
+ * @default false
11959
+ */
11960
+ tags: boolean;
11961
+ };
11962
+ /**
11963
+ * Resolved configuration for generated query options helpers.
11964
+ *
11965
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryOptions queryOptions}
11966
+ */
11967
+ queryOptions: {
11968
+ /**
11969
+ * The casing convention to use for generated names.
11970
+ *
11971
+ * @default 'camelCase'
11972
+ */
11973
+ case: StringCase;
11974
+ /**
11975
+ * Whether to generate query options helpers.
11976
+ *
11977
+ * @default true
11978
+ */
11979
+ enabled: boolean;
11980
+ /**
11981
+ * Whether to export generated symbols.
11982
+ *
11983
+ * @default true
11984
+ */
11985
+ exported: boolean;
11986
+ /**
11987
+ * Custom function to generate metadata for the operation.
11988
+ * Can return any valid meta object that will be included in the generated query options.
11989
+ *
11990
+ * @param operation - The operation object containing all available metadata
11991
+ * @returns A meta object with any properties you want to include
11992
+ *
11993
+ * @example
11994
+ * ```typescript
11995
+ * meta: (operation) => ({
11996
+ * customField: operation.id,
11997
+ * isDeprecated: operation.deprecated,
11998
+ * tags: operation.tags,
11999
+ * customObject: {
12000
+ * method: operation.method,
12001
+ * path: operation.path
12002
+ * }
12003
+ * })
12004
+ * ```
12005
+ *
12006
+ * @default undefined
12007
+ */
12008
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
12009
+ /**
12010
+ * Custom naming pattern for generated query options names. The name variable is obtained from the SDK function name.
12011
+ *
12012
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryOptions queryOptions}
12013
+ *
12014
+ * @default '{{name}}Options'
12015
+ */
12016
+ name: StringName;
12017
+ };
12018
+ /**
12019
+ * Configuration for generated `useSwr()` function helpers.
12020
+ *
12021
+ * See {@link https://swr.vercel.app/docs/api API}
12022
+ */
12023
+ useSwr: {
12024
+ /**
12025
+ * The casing convention to use for generated names.
12026
+ *
12027
+ * @default 'camelCase'
12028
+ */
12029
+ case: StringCase;
12030
+ /**
12031
+ * Whether to generate `useSwr()` function helpers.
12032
+ *
12033
+ * @default true
12034
+ */
12035
+ enabled: boolean;
12036
+ /**
12037
+ * Custom naming pattern for generated `useSwr()` function names. The name variable is
12038
+ * obtained from the SDK function name.
12039
+ *
12040
+ * See {@link https://swr.vercel.app/docs/api API}
12041
+ *
12042
+ * @default 'use{{name}}'
12043
+ */
12044
+ name: StringName;
12045
+ };
12046
+ };
12047
+ type SwrPlugin = DefinePlugin<UserConfig$3, Config$3>;
12048
+ //#endregion
12049
+ //#region src/plugins/valibot/shared/types.d.ts
12050
+ type ValidatorArgs$1 = {
12051
+ operation: IR$1.OperationObject;
12052
+ plugin: ValibotPlugin['Instance'];
12053
+ };
12054
+ //#endregion
12055
+ //#region src/plugins/valibot/api.d.ts
12056
+ type IApi$1 = {
12057
+ createRequestValidator: (args: ValidatorArgs$1) => ts.ArrowFunction | undefined;
12058
+ createResponseValidator: (args: ValidatorArgs$1) => ts.ArrowFunction | undefined;
12059
+ };
12060
+ //#endregion
12061
+ //#region src/plugins/valibot/types.d.ts
12062
+ type UserConfig$2 = Plugin.Name<'valibot'> & Plugin.Hooks & {
12063
+ /**
12064
+ * The casing convention to use for generated names.
12065
+ *
12066
+ * @default 'camelCase'
12067
+ */
12068
+ case?: StringCase;
12069
+ /**
12070
+ * Add comments from input to the generated Valibot schemas?
12071
+ *
12072
+ * @default true
12073
+ */
12074
+ comments?: boolean;
12075
+ /**
12076
+ * Configuration for reusable schema definitions.
12077
+ *
12078
+ * Controls generation of shared Valibot schemas that can be referenced
12079
+ * across requests and responses.
12080
+ *
12081
+ * Can be:
12082
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
12083
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
12084
+ * - `object`: Full configuration object
12085
+ */
12086
+ definitions?: boolean | StringName | {
12087
+ /**
12088
+ * The casing convention to use for generated names.
12089
+ *
12090
+ * @default 'camelCase'
12091
+ */
12092
+ case?: StringCase;
12093
+ /**
12094
+ * Whether to generate Valibot schemas for reusable definitions.
12095
+ *
12096
+ * @default true
12097
+ */
12098
+ enabled?: boolean;
12099
+ /**
12100
+ * Custom naming pattern for generated schema names. The name variable
12101
+ * is obtained from the schema name.
12102
+ *
12103
+ * @default 'v{{name}}'
12104
+ */
12105
+ name?: StringName;
12106
+ };
12107
+ /**
12108
+ * Should the exports from the generated files be re-exported in the index
12109
+ * barrel file?
12110
+ *
12111
+ * @default false
12112
+ */
12113
+ exportFromIndex?: boolean;
12114
+ /**
12115
+ * Enable Valibot metadata support? It's often useful to associate a schema
12116
+ * with some additional metadata for documentation, code generation, AI
12117
+ * structured outputs, form validation, and other purposes.
12118
+ *
12119
+ * @default false
12120
+ */
12121
+ metadata?: boolean;
12122
+ /**
12123
+ * Configuration for request-specific Valibot schemas.
12124
+ *
12125
+ * Controls generation of Valibot schemas for request bodies, query
12126
+ * parameters, path parameters, and headers.
12127
+ *
12128
+ * Can be:
12129
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
12130
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
12131
+ * - `object`: Full configuration object
12132
+ */
12133
+ requests?: boolean | StringName | {
12134
+ /**
12135
+ * The casing convention to use for generated names.
12136
+ *
12137
+ * @default 'camelCase'
12138
+ */
12139
+ case?: StringCase;
12140
+ /**
12141
+ * Whether to generate Valibot schemas for request definitions.
12142
+ *
12143
+ * @default true
12144
+ */
12145
+ enabled?: boolean;
12146
+ /**
12147
+ * Custom naming pattern for generated schema names. The name variable
12148
+ * is obtained from the operation name.
12149
+ *
12150
+ * @default 'v{{name}}Data'
12151
+ */
12152
+ name?: StringName;
12153
+ };
12154
+ /**
12155
+ * Configuration for response-specific Valibot schemas.
12156
+ *
12157
+ * Controls generation of Valibot schemas for response bodies, error
12158
+ * responses, and status codes.
12159
+ *
12160
+ * Can be:
12161
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
12162
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
12163
+ * - `object`: Full configuration object
12164
+ */
12165
+ responses?: boolean | StringName | {
12166
+ /**
12167
+ * The casing convention to use for generated names.
12168
+ *
12169
+ * @default 'camelCase'
12170
+ */
12171
+ case?: StringCase;
12172
+ /**
12173
+ * Whether to generate Valibot schemas for response definitions.
12174
+ *
12175
+ * @default true
12176
+ */
12177
+ enabled?: boolean;
12178
+ /**
12179
+ * Custom naming pattern for generated schema names. The name variable
12180
+ * is obtained from the operation name.
12181
+ *
12182
+ * @default 'v{{name}}Response'
12183
+ */
12184
+ name?: StringName;
12185
+ };
12186
+ /**
12187
+ * Configuration for webhook-specific Valibot schemas.
12188
+ *
12189
+ * Controls generation of Valibot schemas for webhook payloads.
12190
+ *
12191
+ * Can be:
12192
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
12193
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
12194
+ * - `object`: Full configuration object
12195
+ *
12196
+ * @default true
12197
+ */
12198
+ webhooks?: boolean | StringName | {
12199
+ /**
12200
+ * The casing convention to use for generated names.
12201
+ *
12202
+ * @default 'camelCase'
12203
+ */
12204
+ case?: StringCase;
12205
+ /**
12206
+ * Whether to generate Valibot schemas for webhook definitions.
12207
+ *
12208
+ * @default true
12209
+ */
12210
+ enabled?: boolean;
12211
+ /**
12212
+ * Custom naming pattern for generated schema names. The name variable
12213
+ * is obtained from the webhook key.
12214
+ *
12215
+ * @default 'v{{name}}WebhookRequest'
12216
+ */
12217
+ name?: StringName;
12218
+ };
12219
+ };
12220
+ type Config$2 = Plugin.Name<'valibot'> & Plugin.Hooks & {
12221
+ /**
12222
+ * The casing convention to use for generated names.
12223
+ *
12224
+ * @default 'camelCase'
12225
+ */
12226
+ case: StringCase;
12227
+ /**
12228
+ * Add comments from input to the generated Valibot schemas?
11742
12229
  *
11743
12230
  * @default true
11744
12231
  */
@@ -11866,7 +12353,7 @@ type Config$2 = Plugin.Name<'valibot'> & Plugin.Hooks & {
11866
12353
  name: StringName;
11867
12354
  };
11868
12355
  };
11869
- type ValibotPlugin = DefinePlugin<UserConfig$3, Config$2, IApi$1>;
12356
+ type ValibotPlugin = DefinePlugin<UserConfig$2, Config$2, IApi$1>;
11870
12357
  //#endregion
11871
12358
  //#region src/plugins/zod/shared/types.d.ts
11872
12359
  type ValidatorArgs = {
@@ -11881,7 +12368,7 @@ type IApi = {
11881
12368
  };
11882
12369
  //#endregion
11883
12370
  //#region src/plugins/zod/types.d.ts
11884
- type UserConfig$2 = Plugin.Name<'zod'> & Plugin.Hooks & {
12371
+ type UserConfig$1 = Plugin.Name<'zod'> & Plugin.Hooks & {
11885
12372
  /**
11886
12373
  * The casing convention to use for generated names.
11887
12374
  *
@@ -12586,7 +13073,7 @@ type Config$1 = Plugin.Name<'zod'> & Plugin.Hooks & {
12586
13073
  };
12587
13074
  };
12588
13075
  };
12589
- type ZodPlugin = DefinePlugin<UserConfig$2, Config$1, IApi>;
13076
+ type ZodPlugin = DefinePlugin<UserConfig$1, Config$1, IApi>;
12590
13077
  //#endregion
12591
13078
  //#region src/plugins/config.d.ts
12592
13079
  interface PluginConfigMap {
@@ -12609,6 +13096,7 @@ interface PluginConfigMap {
12609
13096
  '@tanstack/vue-query': TanStackVueQueryPlugin['Types'];
12610
13097
  arktype: ArktypePlugin['Types'];
12611
13098
  fastify: FastifyPlugin['Types'];
13099
+ swr: SwrPlugin['Types'];
12612
13100
  valibot: ValibotPlugin['Types'];
12613
13101
  zod: ZodPlugin['Types'];
12614
13102
  }
@@ -12797,14 +13285,13 @@ type WalkEvent<T extends IrTopLevelKind = IrTopLevelKind> = Extract<WalkEvents,
12797
13285
  //#region src/plugins/shared/utils/instance.d.ts
12798
13286
  declare class PluginInstance<T extends Plugin.Types = Plugin.Types> {
12799
13287
  api: T['api'];
12800
- config: Omit<T['resolvedConfig'], 'name' | 'output'>;
13288
+ config: Omit<T['resolvedConfig'], 'name'>;
12801
13289
  context: Context;
12802
13290
  dependencies: Required<Plugin.Config<T>>['dependencies'];
12803
13291
  private eventHooks;
12804
13292
  gen: IProject;
12805
13293
  private handler;
12806
13294
  name: T['resolvedConfig']['name'];
12807
- output: string;
12808
13295
  /**
12809
13296
  * The package metadata and utilities for the current context, constructed
12810
13297
  * from the provided dependencies. Used for managing package-related
@@ -12817,7 +13304,6 @@ declare class PluginInstance<T extends Plugin.Types = Plugin.Types> {
12817
13304
  context: Context<OpenApi.V2_0_X | OpenApi.V3_0_X | OpenApi.V3_1_X>;
12818
13305
  gen: IProject;
12819
13306
  name: string;
12820
- output: string;
12821
13307
  });
12822
13308
  /**
12823
13309
  * Iterates over various input elements as specified by the event types, in
@@ -13070,9 +13556,9 @@ type Hooks = {
13070
13556
  //#region src/plugins/types.d.ts
13071
13557
  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';
13072
13558
  type PluginValidatorNames = 'arktype' | 'valibot' | 'zod';
13073
- type PluginNames = PluginClientNames | '@angular/common' | '@hey-api/schemas' | '@hey-api/sdk' | '@hey-api/transformers' | '@hey-api/typescript' | '@pinia/colada' | '@tanstack/angular-query-experimental' | '@tanstack/react-query' | '@tanstack/solid-query' | '@tanstack/svelte-query' | '@tanstack/vue-query' | 'fastify' | PluginValidatorNames;
13559
+ 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' | 'swr' | PluginValidatorNames;
13074
13560
  type AnyPluginName = PluginNames | (string & {});
13075
- type PluginTag = 'client' | 'transformer' | 'validator';
13561
+ type PluginTag = 'client' | 'sdk' | 'transformer' | 'validator';
13076
13562
  type PluginContext = {
13077
13563
  package: Package;
13078
13564
  pluginByTag: <T extends AnyPluginName | boolean = AnyPluginName>(tag: PluginTag, props?: {
@@ -13103,7 +13589,7 @@ type BaseConfig = {
13103
13589
  */
13104
13590
  declare namespace Plugin {
13105
13591
  export type Config<T extends Types> = Pick<T, 'api'> & {
13106
- config: Omit<T['config'], 'name' | 'output'>;
13592
+ config: Omit<T['config'], 'name'>;
13107
13593
  /**
13108
13594
  * Dependency plugins will be always processed, regardless of whether user
13109
13595
  * explicitly defines them in their `plugins` config.
@@ -13111,7 +13597,6 @@ declare namespace Plugin {
13111
13597
  dependencies?: ReadonlyArray<AnyPluginName>;
13112
13598
  handler: Handler<T>;
13113
13599
  name: T['config']['name'];
13114
- output?: NonNullable<T['config']['output']>;
13115
13600
  /**
13116
13601
  * Resolves static configuration values into their runtime equivalents. For
13117
13602
  * example, when `validator` is set to `true`, it figures out which plugin
@@ -13121,25 +13606,11 @@ declare namespace Plugin {
13121
13606
  dependencies: Set<AnyPluginName>;
13122
13607
  }, context: PluginContext) => void;
13123
13608
  /**
13124
- * Optional tags can be used to help with deciding plugin order and resolving
13609
+ * Tags can be used to help with deciding plugin order and resolving
13125
13610
  * plugin configuration options.
13126
13611
  */
13127
13612
  tags?: ReadonlyArray<PluginTag>;
13128
13613
  };
13129
- export type ConfigWithName<T extends Types> = Omit<Config$21<T>, 'config'> & {
13130
- config: Omit<T['config'], 'output'>;
13131
- };
13132
-
13133
- /** @deprecated use `definePluginConfig()` instead */
13134
- export type DefineConfig<Config$21 extends BaseConfig, ResolvedConfig extends BaseConfig = Config$21> = (config?: UserConfig<Omit<Config$21, 'name'>>) => Omit<Plugin.Config<Config$21, ResolvedConfig>, 'name'> & {
13135
- /**
13136
- * Cast name to `any` so it doesn't throw type error in `plugins` array.
13137
- * We could allow any `string` as plugin `name` in the object syntax, but
13138
- * that TypeScript trick would cause all string methods to appear as
13139
- * suggested auto completions, which is undesirable.
13140
- */
13141
- name: any;
13142
- };
13143
13614
 
13144
13615
  /**
13145
13616
  * Generic wrapper for plugin hooks.
@@ -13148,27 +13619,22 @@ declare namespace Plugin {
13148
13619
  export interface Name<Name extends PluginNames> {
13149
13620
  name: Name;
13150
13621
  }
13151
- export type Types<Config$21 extends BaseConfig = BaseConfig, ResolvedConfig extends BaseConfig = Config$21, Api extends BaseApi = never> = ([Api] extends [never] ? {
13622
+ export type Types<Config$22 extends BaseConfig = BaseConfig, ResolvedConfig extends BaseConfig = Config$22, Api extends BaseApi = never> = ([Api] extends [never] ? {
13152
13623
  api?: BaseApi;
13153
13624
  } : {
13154
13625
  api: Api;
13155
13626
  }) & {
13156
- config: Config$21;
13627
+ config: Config$22;
13157
13628
  resolvedConfig: ResolvedConfig;
13158
13629
  };
13159
-
13160
- /**
13161
- * Users cannot modify output file path to avoid risk of conflicts.
13162
- */
13163
- export type UserConfig<Config$21 extends BaseConfig> = Omit<Config$21, 'output'>;
13164
13630
  }
13165
- type DefinePlugin<Config$21 extends BaseConfig = BaseConfig, ResolvedConfig extends BaseConfig = Config$21, Api extends BaseApi = never> = {
13166
- Config: Plugin.Config<Plugin.Types<Config$21, ResolvedConfig, Api>>;
13631
+ type DefinePlugin<Config$22 extends BaseConfig = BaseConfig, ResolvedConfig extends BaseConfig = Config$22, Api extends BaseApi = never> = {
13632
+ Config: Plugin.Config<Plugin.Types<Config$22, ResolvedConfig, Api>>;
13167
13633
  Handler: (args: {
13168
- plugin: PluginInstance<Plugin.Types<Config$21, ResolvedConfig, Api>>;
13634
+ plugin: PluginInstance<Plugin.Types<Config$22, ResolvedConfig, Api>>;
13169
13635
  }) => void;
13170
- Instance: PluginInstance<Plugin.Types<Config$21, ResolvedConfig, Api>>;
13171
- Types: Plugin.Types<Config$21, ResolvedConfig, Api>;
13636
+ Instance: PluginInstance<Plugin.Types<Config$22, ResolvedConfig, Api>>;
13637
+ Types: Plugin.Types<Config$22, ResolvedConfig, Api>;
13172
13638
  };
13173
13639
  //#endregion
13174
13640
  //#region src/types/input.d.ts
@@ -14137,7 +14603,7 @@ type Patch = {
14137
14603
  };
14138
14604
  //#endregion
14139
14605
  //#region src/types/config.d.ts
14140
- interface UserConfig$1 {
14606
+ interface UserConfig {
14141
14607
  /**
14142
14608
  * Path to the config file. Set this value if you don't use the default
14143
14609
  * config file name, or it's not located in the project root.
@@ -14197,7 +14663,7 @@ interface UserConfig$1 {
14197
14663
  *
14198
14664
  * @default ['@hey-api/typescript', '@hey-api/sdk']
14199
14665
  */
14200
- plugins?: ReadonlyArray<PluginNames | { [K in PluginNames]: Plugin.UserConfig<PluginConfigMap[K]['config']> & {
14666
+ plugins?: ReadonlyArray<PluginNames | { [K in PluginNames]: PluginConfigMap[K]['config'] & {
14201
14667
  name: K;
14202
14668
  } }[PluginNames]>;
14203
14669
  /**
@@ -14205,7 +14671,7 @@ interface UserConfig$1 {
14205
14671
  */
14206
14672
  watch?: boolean | number | Watch;
14207
14673
  }
14208
- type Config = Omit<Required<UserConfig$1>, 'input' | 'logs' | 'output' | 'parser' | 'plugins' | 'watch'> & {
14674
+ type Config = Omit<Required<UserConfig>, 'input' | 'logs' | 'output' | 'parser' | 'plugins' | 'watch'> & {
14209
14675
  /**
14210
14676
  * Path to the input specification.
14211
14677
  */
@@ -14221,8 +14687,8 @@ type Config = Omit<Required<UserConfig$1>, 'input' | 'logs' | 'output' | 'parser
14221
14687
  */
14222
14688
  parser: Parser;
14223
14689
  pluginOrder: ReadonlyArray<keyof PluginConfigMap>;
14224
- plugins: { [K in PluginNames]?: Plugin.ConfigWithName<PluginConfigMap[K]> };
14690
+ plugins: { [K in PluginNames]?: Plugin.Config<PluginConfigMap[K]> };
14225
14691
  };
14226
14692
  //#endregion
14227
- export { Client$6 as C, LazyOrAsync as D, IR$1 as E, MaybeArray as O, Client$5 as S, StringCase as T, Client as _, Plugin as a, Client$3 as b, OpenApiOperationObject as c, OpenApiResponseObject as d, OpenApiSchemaObject as f, ExpressionTransformer as g, TypeTransformer as h, DefinePlugin as i, OpenApiParameterObject as l, Logger as m, UserConfig$1 as n, OpenApi as o, Context as p, Input as r, OpenApiMetaObject as s, Config as t, OpenApiRequestBodyObject as u, PluginHandler as v, Client$7 as w, Client$4 as x, Client$2 as y };
14228
- //# sourceMappingURL=config-oAoGatJ7.d.ts.map
14693
+ export { Client$6 as C, LazyOrAsync as D, IR$1 as E, MaybeArray as O, Client$5 as S, StringCase as T, Client as _, Plugin as a, Client$3 as b, OpenApiOperationObject as c, OpenApiResponseObject as d, OpenApiSchemaObject as f, ExpressionTransformer as g, TypeTransformer as h, DefinePlugin as i, OpenApiParameterObject as l, Logger as m, UserConfig as n, OpenApi as o, Context as p, Input as r, OpenApiMetaObject as s, Config as t, OpenApiRequestBodyObject as u, PluginHandler as v, Client$7 as w, Client$4 as x, Client$2 as y };
14694
+ //# sourceMappingURL=config-CNi83ZTD.d.ts.map