@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
@@ -2795,9 +2795,6 @@ type WalkOptions<T extends string = string> = {
2795
2795
  type StringCase = 'camelCase' | 'PascalCase' | 'preserve' | 'snake_case' | 'SCREAMING_SNAKE_CASE';
2796
2796
  type StringName = string | ((name: string) => string);
2797
2797
  //#endregion
2798
- //#region src/plugins/@angular/common/api.d.ts
2799
- type IApi$20 = any;
2800
- //#endregion
2801
2798
  //#region src/plugins/@angular/common/types.d.ts
2802
2799
  type UserConfig$22 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
2803
2800
  /**
@@ -2867,7 +2864,7 @@ type UserConfig$22 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
2867
2864
  methodNameBuilder?: (operation: IR.OperationObject) => string;
2868
2865
  };
2869
2866
  };
2870
- type Config$13 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
2867
+ type Config$14 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
2871
2868
  /**
2872
2869
  * Should the exports from the generated files be re-exported in the index
2873
2870
  * barrel file?
@@ -2930,10 +2927,7 @@ type Config$13 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
2930
2927
  methodNameBuilder: (operation: IR.OperationObject) => string;
2931
2928
  };
2932
2929
  };
2933
- type AngularCommonPlugin = DefinePlugin<UserConfig$22, Config$13, IApi$20>;
2934
- //#endregion
2935
- //#region src/plugins/@hey-api/client-axios/api.d.ts
2936
- type IApi$19 = any;
2930
+ type AngularCommonPlugin = DefinePlugin<UserConfig$22, Config$14>;
2937
2931
  //#endregion
2938
2932
  //#region src/plugins/@hey-api/client-axios/types.d.ts
2939
2933
  type UserConfig$21 = Plugin.Name<'@hey-api/client-axios'> & Client.Config & {
@@ -2944,10 +2938,7 @@ type UserConfig$21 = Plugin.Name<'@hey-api/client-axios'> & Client.Config & {
2944
2938
  */
2945
2939
  throwOnError?: boolean;
2946
2940
  };
2947
- type HeyApiClientAxiosPlugin = DefinePlugin<UserConfig$21, UserConfig$21, IApi$19>;
2948
- //#endregion
2949
- //#region src/plugins/@hey-api/client-fetch/api.d.ts
2950
- type IApi$18 = any;
2941
+ type HeyApiClientAxiosPlugin = DefinePlugin<UserConfig$21, UserConfig$21>;
2951
2942
  //#endregion
2952
2943
  //#region src/plugins/@hey-api/client-fetch/types.d.ts
2953
2944
  type UserConfig$20 = Plugin.Name<'@hey-api/client-fetch'> & Client.Config & {
@@ -2958,10 +2949,7 @@ type UserConfig$20 = Plugin.Name<'@hey-api/client-fetch'> & Client.Config & {
2958
2949
  */
2959
2950
  throwOnError?: boolean;
2960
2951
  };
2961
- type HeyApiClientFetchPlugin = DefinePlugin<UserConfig$20, UserConfig$20, IApi$18>;
2962
- //#endregion
2963
- //#region src/plugins/@hey-api/client-next/api.d.ts
2964
- type IApi$17 = any;
2952
+ type HeyApiClientFetchPlugin = DefinePlugin<UserConfig$20, UserConfig$20>;
2965
2953
  //#endregion
2966
2954
  //#region src/plugins/@hey-api/client-next/types.d.ts
2967
2955
  type UserConfig$19 = Plugin.Name<'@hey-api/client-next'> & Client.Config & {
@@ -2972,17 +2960,11 @@ type UserConfig$19 = Plugin.Name<'@hey-api/client-next'> & Client.Config & {
2972
2960
  */
2973
2961
  throwOnError?: boolean;
2974
2962
  };
2975
- type HeyApiClientNextPlugin = DefinePlugin<UserConfig$19, UserConfig$19, IApi$17>;
2976
- //#endregion
2977
- //#region src/plugins/@hey-api/client-nuxt/api.d.ts
2978
- type IApi$16 = any;
2963
+ type HeyApiClientNextPlugin = DefinePlugin<UserConfig$19, UserConfig$19>;
2979
2964
  //#endregion
2980
2965
  //#region src/plugins/@hey-api/client-nuxt/types.d.ts
2981
2966
  type UserConfig$18 = Plugin.Name<'@hey-api/client-nuxt'> & Client.Config;
2982
- type HeyApiClientNuxtPlugin = DefinePlugin<UserConfig$18, UserConfig$18, IApi$16>;
2983
- //#endregion
2984
- //#region src/plugins/@hey-api/client-ofetch/api.d.ts
2985
- type IApi$15 = any;
2967
+ type HeyApiClientNuxtPlugin = DefinePlugin<UserConfig$18, UserConfig$18>;
2986
2968
  //#endregion
2987
2969
  //#region src/plugins/@hey-api/client-ofetch/types.d.ts
2988
2970
  type UserConfig$17 = Plugin.Name<'@hey-api/client-ofetch'> & Client.Config & {
@@ -2993,7 +2975,7 @@ type UserConfig$17 = Plugin.Name<'@hey-api/client-ofetch'> & Client.Config & {
2993
2975
  */
2994
2976
  throwOnError?: boolean;
2995
2977
  };
2996
- type HeyApiClientOfetchPlugin = DefinePlugin<UserConfig$17, UserConfig$17, IApi$15>;
2978
+ type HeyApiClientOfetchPlugin = DefinePlugin<UserConfig$17, UserConfig$17>;
2997
2979
  //#endregion
2998
2980
  //#region src/plugins/@hey-api/client-core/types.d.ts
2999
2981
  interface PluginHandler {
@@ -3062,9 +3044,6 @@ declare namespace Client {
3062
3044
  };
3063
3045
  }
3064
3046
  //#endregion
3065
- //#region src/plugins/@hey-api/client-angular/api.d.ts
3066
- type IApi$14 = any;
3067
- //#endregion
3068
3047
  //#region src/plugins/@hey-api/client-angular/types.d.ts
3069
3048
  type UserConfig$16 = Plugin.Name<'@hey-api/client-angular'> & Client.Config & {
3070
3049
  /**
@@ -3074,7 +3053,7 @@ type UserConfig$16 = Plugin.Name<'@hey-api/client-angular'> & Client.Config & {
3074
3053
  */
3075
3054
  throwOnError?: boolean;
3076
3055
  };
3077
- type HeyApiClientAngularPlugin = DefinePlugin<UserConfig$16, UserConfig$16, IApi$14>;
3056
+ type HeyApiClientAngularPlugin = DefinePlugin<UserConfig$16, UserConfig$16>;
3078
3057
  //#endregion
3079
3058
  //#region src/openApi/2.0.x/types/json-schema-draft-4.d.ts
3080
3059
  interface JsonSchemaDraft4 extends EnumExtensions {
@@ -6024,9 +6003,6 @@ interface OpenApiV3_1_XTypes {
6024
6003
  SchemaObject: SchemaObject;
6025
6004
  }
6026
6005
  //#endregion
6027
- //#region src/plugins/@hey-api/schemas/api.d.ts
6028
- type IApi$13 = any;
6029
- //#endregion
6030
6006
  //#region src/plugins/@hey-api/schemas/types.d.ts
6031
6007
  type UserConfig$15 = Plugin.Name<'@hey-api/schemas'> & Plugin.Hooks & {
6032
6008
  /**
@@ -6053,10 +6029,7 @@ type UserConfig$15 = Plugin.Name<'@hey-api/schemas'> & Plugin.Hooks & {
6053
6029
  */
6054
6030
  type?: 'form' | 'json';
6055
6031
  };
6056
- type HeyApiSchemasPlugin = DefinePlugin<UserConfig$15, UserConfig$15, IApi$13>;
6057
- //#endregion
6058
- //#region src/plugins/@hey-api/sdk/api.d.ts
6059
- type IApi$12 = any;
6032
+ type HeyApiSchemasPlugin = DefinePlugin<UserConfig$15, UserConfig$15>;
6060
6033
  //#endregion
6061
6034
  //#region src/plugins/@hey-api/sdk/types.d.ts
6062
6035
  type UserConfig$14 = Plugin.Name<'@hey-api/sdk'> & Plugin.Hooks & {
@@ -6233,7 +6206,7 @@ type UserConfig$14 = Plugin.Name<'@hey-api/sdk'> & Plugin.Hooks & {
6233
6206
  */
6234
6207
  response?: 'body' | 'response';
6235
6208
  };
6236
- type Config$12 = Plugin.Name<'@hey-api/sdk'> & Plugin.Hooks & {
6209
+ type Config$13 = Plugin.Name<'@hey-api/sdk'> & Plugin.Hooks & {
6237
6210
  /**
6238
6211
  * Group operation methods into classes? When enabled, you can select which
6239
6212
  * classes to export with `sdk.include` and/or transform their names with
@@ -6389,10 +6362,7 @@ type Config$12 = Plugin.Name<'@hey-api/sdk'> & Plugin.Hooks & {
6389
6362
  */
6390
6363
  response: 'body' | 'response';
6391
6364
  };
6392
- type HeyApiSdkPlugin = DefinePlugin<UserConfig$14, Config$12, IApi$12>;
6393
- //#endregion
6394
- //#region src/plugins/@hey-api/transformers/api.d.ts
6395
- type IApi$11 = any;
6365
+ type HeyApiSdkPlugin = DefinePlugin<UserConfig$14, Config$13>;
6396
6366
  //#endregion
6397
6367
  //#region src/plugins/@hey-api/transformers/expressions.d.ts
6398
6368
  type ExpressionTransformer = ({
@@ -6444,7 +6414,7 @@ type UserConfig$13 = Plugin.Name<'@hey-api/transformers'> & Plugin.Hooks & {
6444
6414
  */
6445
6415
  typeTransformers?: ReadonlyArray<TypeTransformer>;
6446
6416
  };
6447
- type Config$11 = Plugin.Name<'@hey-api/transformers'> & Plugin.Hooks & {
6417
+ type Config$12 = Plugin.Name<'@hey-api/transformers'> & Plugin.Hooks & {
6448
6418
  /**
6449
6419
  * Convert long integers into BigInt values?
6450
6420
  *
@@ -6473,7 +6443,7 @@ type Config$11 = Plugin.Name<'@hey-api/transformers'> & Plugin.Hooks & {
6473
6443
  */
6474
6444
  typeTransformers: ReadonlyArray<TypeTransformer>;
6475
6445
  };
6476
- type HeyApiTransformersPlugin = DefinePlugin<UserConfig$13, Config$11, IApi$11>;
6446
+ type HeyApiTransformersPlugin = DefinePlugin<UserConfig$13, Config$12>;
6477
6447
  //#endregion
6478
6448
  //#region src/plugins/@hey-api/typescript/shared/types.d.ts
6479
6449
  type IrSchemaToAstOptions = {
@@ -6492,7 +6462,7 @@ declare const irSchemaToAst: ({
6492
6462
  }) => ts.TypeNode;
6493
6463
  //#endregion
6494
6464
  //#region src/plugins/@hey-api/typescript/api.d.ts
6495
- type IApi$10 = {
6465
+ type IApi$3 = {
6496
6466
  schemaToType: (args: Parameters<typeof irSchemaToAst>[0]) => ts.TypeNode;
6497
6467
  };
6498
6468
  //#endregion
@@ -6719,39 +6689,8 @@ type UserConfig$12 = Plugin.Name<'@hey-api/typescript'> & Plugin.Hooks & {
6719
6689
  */
6720
6690
  payload?: StringName;
6721
6691
  };
6722
-
6723
- // DEPRECATED OPTIONS BELOW
6724
-
6725
- /**
6726
- * **This feature works only with the legacy parser**
6727
- *
6728
- * Include only types matching regular expression.
6729
- *
6730
- * @deprecated
6731
- */
6732
- // eslint-disable-next-line typescript-sort-keys/interface
6733
- include?: string;
6734
- /**
6735
- * **This feature works only with the legacy parser**
6736
- *
6737
- * Use your preferred naming pattern
6738
- *
6739
- * @deprecated
6740
- * @default 'preserve'
6741
- */
6742
- style?: 'PascalCase' | 'preserve';
6743
- /**
6744
- * **This feature works only with the legacy parser**
6745
- *
6746
- * Generate a tree of types containing all operations? It will be named
6747
- * $OpenApiTs.
6748
- *
6749
- * @deprecated
6750
- * @default false
6751
- */
6752
- tree?: boolean;
6753
6692
  };
6754
- type Config$10 = Plugin.Name<'@hey-api/typescript'> & Plugin.Hooks & {
6693
+ type Config$11 = Plugin.Name<'@hey-api/typescript'> & Plugin.Hooks & {
6755
6694
  /**
6756
6695
  * The casing convention to use for generated names.
6757
6696
  *
@@ -6940,42 +6879,8 @@ type Config$10 = Plugin.Name<'@hey-api/typescript'> & Plugin.Hooks & {
6940
6879
  */
6941
6880
  payload: StringName;
6942
6881
  };
6943
-
6944
- // DEPRECATED OPTIONS BELOW
6945
-
6946
- /**
6947
- * **This feature works only with the legacy parser**
6948
- *
6949
- * Include only types matching regular expression.
6950
- *
6951
- * @deprecated
6952
- */
6953
- // eslint-disable-next-line typescript-sort-keys/interface
6954
- include?: string;
6955
- /**
6956
- * **This feature works only with the legacy parser**
6957
- *
6958
- * Use your preferred naming pattern
6959
- *
6960
- * @deprecated
6961
- * @default 'preserve'
6962
- */
6963
- style: 'PascalCase' | 'preserve';
6964
- /**
6965
- * **This feature works only with the legacy parser**
6966
- *
6967
- * Generate a tree of types containing all operations? It will be named
6968
- * $OpenApiTs.
6969
- *
6970
- * @deprecated
6971
- * @default false
6972
- */
6973
- tree: boolean;
6974
6882
  };
6975
- type HeyApiTypeScriptPlugin = DefinePlugin<UserConfig$12, Config$10, IApi$10>;
6976
- //#endregion
6977
- //#region src/plugins/@pinia/colada/api.d.ts
6978
- type IApi$9 = any;
6883
+ type HeyApiTypeScriptPlugin = DefinePlugin<UserConfig$12, Config$11, IApi$3>;
6979
6884
  //#endregion
6980
6885
  //#region src/plugins/@pinia/colada/types.d.ts
6981
6886
  type UserConfig$11 = Plugin.Name<'@pinia/colada'> & Plugin.Hooks & {
@@ -7156,7 +7061,7 @@ type UserConfig$11 = Plugin.Name<'@pinia/colada'> & Plugin.Hooks & {
7156
7061
  name?: StringName;
7157
7062
  };
7158
7063
  };
7159
- type Config$9 = Plugin.Name<'@pinia/colada'> & Plugin.Hooks & {
7064
+ type Config$10 = Plugin.Name<'@pinia/colada'> & Plugin.Hooks & {
7160
7065
  /**
7161
7066
  * The casing convention to use for generated names.
7162
7067
  *
@@ -7305,10 +7210,7 @@ type Config$9 = Plugin.Name<'@pinia/colada'> & Plugin.Hooks & {
7305
7210
  name: StringName;
7306
7211
  };
7307
7212
  };
7308
- type PiniaColadaPlugin = DefinePlugin<UserConfig$11, Config$9, IApi$9>;
7309
- //#endregion
7310
- //#region src/plugins/@tanstack/angular-query-experimental/api.d.ts
7311
- type IApi$8 = any;
7213
+ type PiniaColadaPlugin = DefinePlugin<UserConfig$11, Config$10>;
7312
7214
  //#endregion
7313
7215
  //#region src/plugins/@tanstack/angular-query-experimental/types.d.ts
7314
7216
  type UserConfig$10 = Plugin.Name<'@tanstack/angular-query-experimental'> & Plugin.Hooks & {
@@ -7592,7 +7494,7 @@ type UserConfig$10 = Plugin.Name<'@tanstack/angular-query-experimental'> & Plugi
7592
7494
  name?: StringName;
7593
7495
  };
7594
7496
  };
7595
- type Config$8 = Plugin.Name<'@tanstack/angular-query-experimental'> & Plugin.Hooks & {
7497
+ type Config$9 = Plugin.Name<'@tanstack/angular-query-experimental'> & Plugin.Hooks & {
7596
7498
  /**
7597
7499
  * The casing convention to use for generated names.
7598
7500
  *
@@ -7833,10 +7735,7 @@ type Config$8 = Plugin.Name<'@tanstack/angular-query-experimental'> & Plugin.Hoo
7833
7735
  name: StringName;
7834
7736
  };
7835
7737
  };
7836
- type TanStackAngularQueryPlugin = DefinePlugin<UserConfig$10, Config$8, IApi$8>;
7837
- //#endregion
7838
- //#region src/plugins/@tanstack/react-query/api.d.ts
7839
- type IApi$7 = any;
7738
+ type TanStackAngularQueryPlugin = DefinePlugin<UserConfig$10, Config$9>;
7840
7739
  //#endregion
7841
7740
  //#region src/plugins/@tanstack/react-query/types.d.ts
7842
7741
  type UserConfig$9 = Plugin.Name<'@tanstack/react-query'> & Plugin.Hooks & {
@@ -8164,7 +8063,7 @@ type UserConfig$9 = Plugin.Name<'@tanstack/react-query'> & Plugin.Hooks & {
8164
8063
  name?: StringName;
8165
8064
  };
8166
8065
  };
8167
- type Config$7 = Plugin.Name<'@tanstack/react-query'> & Plugin.Hooks & {
8066
+ type Config$8 = Plugin.Name<'@tanstack/react-query'> & Plugin.Hooks & {
8168
8067
  /**
8169
8068
  * The casing convention to use for generated names.
8170
8069
  *
@@ -8436,10 +8335,7 @@ type Config$7 = Plugin.Name<'@tanstack/react-query'> & Plugin.Hooks & {
8436
8335
  name: StringName;
8437
8336
  };
8438
8337
  };
8439
- type TanStackReactQueryPlugin = DefinePlugin<UserConfig$9, Config$7, IApi$7>;
8440
- //#endregion
8441
- //#region src/plugins/@tanstack/solid-query/api.d.ts
8442
- type IApi$6 = any;
8338
+ type TanStackReactQueryPlugin = DefinePlugin<UserConfig$9, Config$8>;
8443
8339
  //#endregion
8444
8340
  //#region src/plugins/@tanstack/solid-query/types.d.ts
8445
8341
  type UserConfig$8 = Plugin.Name<'@tanstack/solid-query'> & Plugin.Hooks & {
@@ -8724,7 +8620,7 @@ type UserConfig$8 = Plugin.Name<'@tanstack/solid-query'> & Plugin.Hooks & {
8724
8620
  name?: StringName;
8725
8621
  };
8726
8622
  };
8727
- type Config$6 = Plugin.Name<'@tanstack/solid-query'> & Plugin.Hooks & {
8623
+ type Config$7 = Plugin.Name<'@tanstack/solid-query'> & Plugin.Hooks & {
8728
8624
  /**
8729
8625
  * The casing convention to use for generated names.
8730
8626
  *
@@ -8965,10 +8861,7 @@ type Config$6 = Plugin.Name<'@tanstack/solid-query'> & Plugin.Hooks & {
8965
8861
  name: StringName;
8966
8862
  };
8967
8863
  };
8968
- type TanStackSolidQueryPlugin = DefinePlugin<UserConfig$8, Config$6, IApi$6>;
8969
- //#endregion
8970
- //#region src/plugins/@tanstack/svelte-query/api.d.ts
8971
- type IApi$5 = any;
8864
+ type TanStackSolidQueryPlugin = DefinePlugin<UserConfig$8, Config$7>;
8972
8865
  //#endregion
8973
8866
  //#region src/plugins/@tanstack/svelte-query/types.d.ts
8974
8867
  type UserConfig$7 = Plugin.Name<'@tanstack/svelte-query'> & Plugin.Hooks & {
@@ -9252,7 +9145,7 @@ type UserConfig$7 = Plugin.Name<'@tanstack/svelte-query'> & Plugin.Hooks & {
9252
9145
  name?: StringName;
9253
9146
  };
9254
9147
  };
9255
- type Config$5 = Plugin.Name<'@tanstack/svelte-query'> & Plugin.Hooks & {
9148
+ type Config$6 = Plugin.Name<'@tanstack/svelte-query'> & Plugin.Hooks & {
9256
9149
  /**
9257
9150
  * The casing convention to use for generated names.
9258
9151
  *
@@ -9493,10 +9386,7 @@ type Config$5 = Plugin.Name<'@tanstack/svelte-query'> & Plugin.Hooks & {
9493
9386
  name: StringName;
9494
9387
  };
9495
9388
  };
9496
- type TanStackSvelteQueryPlugin = DefinePlugin<UserConfig$7, Config$5, IApi$5>;
9497
- //#endregion
9498
- //#region src/plugins/@tanstack/vue-query/api.d.ts
9499
- type IApi$4 = any;
9389
+ type TanStackSvelteQueryPlugin = DefinePlugin<UserConfig$7, Config$6>;
9500
9390
  //#endregion
9501
9391
  //#region src/plugins/@tanstack/vue-query/types.d.ts
9502
9392
  type UserConfig$6 = Plugin.Name<'@tanstack/vue-query'> & Plugin.Hooks & {
@@ -9783,7 +9673,7 @@ type UserConfig$6 = Plugin.Name<'@tanstack/vue-query'> & Plugin.Hooks & {
9783
9673
  name?: StringName;
9784
9674
  };
9785
9675
  };
9786
- type Config$4 = Plugin.Name<'@tanstack/vue-query'> & Plugin.Hooks & {
9676
+ type Config$5 = Plugin.Name<'@tanstack/vue-query'> & Plugin.Hooks & {
9787
9677
  /**
9788
9678
  * The casing convention to use for generated names.
9789
9679
  *
@@ -10027,7 +9917,7 @@ type Config$4 = Plugin.Name<'@tanstack/vue-query'> & Plugin.Hooks & {
10027
9917
  name: StringName;
10028
9918
  };
10029
9919
  };
10030
- type TanStackVueQueryPlugin = DefinePlugin<UserConfig$6, Config$4, IApi$4>;
9920
+ type TanStackVueQueryPlugin = DefinePlugin<UserConfig$6, Config$5>;
10031
9921
  //#endregion
10032
9922
  //#region src/plugins/arktype/shared/types.d.ts
10033
9923
  type ValidatorArgs$2 = {
@@ -10036,7 +9926,7 @@ type ValidatorArgs$2 = {
10036
9926
  };
10037
9927
  //#endregion
10038
9928
  //#region src/plugins/arktype/api.d.ts
10039
- type IApi$3 = {
9929
+ type IApi$2 = {
10040
9930
  createRequestValidator: (args: ValidatorArgs$2) => ts.ArrowFunction | undefined;
10041
9931
  createResponseValidator: (args: ValidatorArgs$2) => ts.ArrowFunction | undefined;
10042
9932
  };
@@ -10387,7 +10277,7 @@ type UserConfig$5 = Plugin.Name<'arktype'> & Plugin.Hooks & {
10387
10277
  };
10388
10278
  };
10389
10279
  };
10390
- type Config$3 = Plugin.Name<'arktype'> & Plugin.Hooks & {
10280
+ type Config$4 = Plugin.Name<'arktype'> & Plugin.Hooks & {
10391
10281
  /**
10392
10282
  * The casing convention to use for generated names.
10393
10283
  *
@@ -10671,10 +10561,7 @@ type Config$3 = Plugin.Name<'arktype'> & Plugin.Hooks & {
10671
10561
  };
10672
10562
  };
10673
10563
  };
10674
- type ArktypePlugin = DefinePlugin<UserConfig$5, Config$3, IApi$3>;
10675
- //#endregion
10676
- //#region src/plugins/fastify/api.d.ts
10677
- type IApi$2 = any;
10564
+ type ArktypePlugin = DefinePlugin<UserConfig$5, Config$4, IApi$2>;
10678
10565
  //#endregion
10679
10566
  //#region src/plugins/fastify/types.d.ts
10680
10567
  type UserConfig$4 = Plugin.Name<'fastify'> & Plugin.Hooks & {
@@ -10686,22 +10573,10 @@ type UserConfig$4 = Plugin.Name<'fastify'> & Plugin.Hooks & {
10686
10573
  */
10687
10574
  exportFromIndex?: boolean;
10688
10575
  };
10689
- type FastifyPlugin = DefinePlugin<UserConfig$4, UserConfig$4, IApi$2>;
10690
- //#endregion
10691
- //#region src/plugins/valibot/shared/types.d.ts
10692
- type ValidatorArgs$1 = {
10693
- operation: IR$1.OperationObject;
10694
- plugin: ValibotPlugin['Instance'];
10695
- };
10696
- //#endregion
10697
- //#region src/plugins/valibot/api.d.ts
10698
- type IApi$1 = {
10699
- createRequestValidator: (args: ValidatorArgs$1) => ts.ArrowFunction | undefined;
10700
- createResponseValidator: (args: ValidatorArgs$1) => ts.ArrowFunction | undefined;
10701
- };
10576
+ type FastifyPlugin = DefinePlugin<UserConfig$4, UserConfig$4>;
10702
10577
  //#endregion
10703
- //#region src/plugins/valibot/types.d.ts
10704
- type UserConfig$3 = Plugin.Name<'valibot'> & Plugin.Hooks & {
10578
+ //#region src/plugins/swr/types.d.ts
10579
+ type UserConfig$3 = Plugin.Name<'swr'> & Plugin.Hooks & {
10705
10580
  /**
10706
10581
  * The casing convention to use for generated names.
10707
10582
  *
@@ -10709,23 +10584,36 @@ type UserConfig$3 = Plugin.Name<'valibot'> & Plugin.Hooks & {
10709
10584
  */
10710
10585
  case?: StringCase;
10711
10586
  /**
10712
- * Add comments from input to the generated Valibot schemas?
10587
+ * Add comments from SDK functions to the generated SWR code?
10588
+ *
10589
+ * Duplicating comments this way is useful so you don't need to drill into
10590
+ * the underlying SDK function to learn what it does or whether it's
10591
+ * deprecated. You can set this option to `false` if you prefer less
10592
+ * comment duplication.
10713
10593
  *
10714
10594
  * @default true
10715
10595
  */
10716
10596
  comments?: boolean;
10717
10597
  /**
10718
- * Configuration for reusable schema definitions.
10598
+ * Should the exports from the generated files be re-exported in the index
10599
+ * barrel file?
10719
10600
  *
10720
- * Controls generation of shared Valibot schemas that can be referenced
10721
- * across requests and responses.
10601
+ * @default false
10602
+ */
10603
+ exportFromIndex?: boolean;
10604
+ /**
10605
+ * Configuration for generated infinite query key helpers.
10606
+ *
10607
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
10722
10608
  *
10723
10609
  * Can be:
10724
10610
  * - `boolean`: Shorthand for `{ enabled: boolean }`
10725
10611
  * - `string` or `function`: Shorthand for `{ name: string | function }`
10726
10612
  * - `object`: Full configuration object
10613
+ *
10614
+ * @default true
10727
10615
  */
10728
- definitions?: boolean | StringName | {
10616
+ infiniteQueryKeys?: boolean | StringName | {
10729
10617
  /**
10730
10618
  * The casing convention to use for generated names.
10731
10619
  *
@@ -10733,46 +10621,41 @@ type UserConfig$3 = Plugin.Name<'valibot'> & Plugin.Hooks & {
10733
10621
  */
10734
10622
  case?: StringCase;
10735
10623
  /**
10736
- * Whether to generate Valibot schemas for reusable definitions.
10624
+ * Whether to generate infinite query key helpers.
10737
10625
  *
10738
10626
  * @default true
10739
10627
  */
10740
10628
  enabled?: boolean;
10741
10629
  /**
10742
- * Custom naming pattern for generated schema names. The name variable
10743
- * is obtained from the schema name.
10630
+ * Custom naming pattern for generated infinite query key names. The name variable is
10631
+ * obtained from the SDK function name.
10744
10632
  *
10745
- * @default 'v{{name}}'
10633
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
10634
+ *
10635
+ * @default '{{name}}InfiniteQueryKey'
10746
10636
  */
10747
10637
  name?: StringName;
10638
+ /**
10639
+ * Whether to include operation tags in infinite query keys.
10640
+ * This will make query keys larger but provides better cache invalidation capabilities.
10641
+ *
10642
+ * @default false
10643
+ */
10644
+ tags?: boolean;
10748
10645
  };
10749
10646
  /**
10750
- * Should the exports from the generated files be re-exported in the index
10751
- * barrel file?
10752
- *
10753
- * @default false
10754
- */
10755
- exportFromIndex?: boolean;
10756
- /**
10757
- * Enable Valibot metadata support? It's often useful to associate a schema
10758
- * with some additional metadata for documentation, code generation, AI
10759
- * structured outputs, form validation, and other purposes.
10760
- *
10761
- * @default false
10762
- */
10763
- metadata?: boolean;
10764
- /**
10765
- * Configuration for request-specific Valibot schemas.
10647
+ * Configuration for generated infinite query options helpers.
10766
10648
  *
10767
- * Controls generation of Valibot schemas for request bodies, query
10768
- * parameters, path parameters, and headers.
10649
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
10769
10650
  *
10770
10651
  * Can be:
10771
10652
  * - `boolean`: Shorthand for `{ enabled: boolean }`
10772
10653
  * - `string` or `function`: Shorthand for `{ name: string | function }`
10773
10654
  * - `object`: Full configuration object
10655
+ *
10656
+ * @default true
10774
10657
  */
10775
- requests?: boolean | StringName | {
10658
+ infiniteQueryOptions?: boolean | StringName | {
10776
10659
  /**
10777
10660
  * The casing convention to use for generated names.
10778
10661
  *
@@ -10780,31 +10663,57 @@ type UserConfig$3 = Plugin.Name<'valibot'> & Plugin.Hooks & {
10780
10663
  */
10781
10664
  case?: StringCase;
10782
10665
  /**
10783
- * Whether to generate Valibot schemas for request definitions.
10666
+ * Whether to generate infinite query options helpers.
10784
10667
  *
10785
10668
  * @default true
10786
10669
  */
10787
10670
  enabled?: boolean;
10788
10671
  /**
10789
- * Custom naming pattern for generated schema names. The name variable
10790
- * is obtained from the operation name.
10672
+ * Custom function to generate metadata for the operation.
10673
+ * Can return any valid meta object that will be included in the generated infinite query options.
10791
10674
  *
10792
- * @default 'v{{name}}Data'
10675
+ * @param operation - The operation object containing all available metadata
10676
+ * @returns A meta object with any properties you want to include
10677
+ *
10678
+ * @example
10679
+ * ```typescript
10680
+ * meta: (operation) => ({
10681
+ * customField: operation.id,
10682
+ * isDeprecated: operation.deprecated,
10683
+ * tags: operation.tags,
10684
+ * customObject: {
10685
+ * method: operation.method,
10686
+ * path: operation.path
10687
+ * }
10688
+ * })
10689
+ * ```
10690
+ *
10691
+ * @default undefined
10692
+ */
10693
+ meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
10694
+ /**
10695
+ * Custom naming pattern for generated infinite query options names. The name variable is
10696
+ * obtained from the SDK function name.
10697
+ *
10698
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
10699
+ *
10700
+ * @default '{{name}}InfiniteOptions'
10793
10701
  */
10794
10702
  name?: StringName;
10795
10703
  };
10796
10704
  /**
10797
- * Configuration for response-specific Valibot schemas.
10705
+ * Configuration for generated mutation options helpers.
10798
10706
  *
10799
- * Controls generation of Valibot schemas for response bodies, error
10800
- * responses, and status codes.
10707
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
10801
10708
  *
10802
10709
  * Can be:
10803
10710
  * - `boolean`: Shorthand for `{ enabled: boolean }`
10804
10711
  * - `string` or `function`: Shorthand for `{ name: string | function }`
10805
10712
  * - `object`: Full configuration object
10713
+ *
10714
+ * @default true
10806
10715
  */
10807
- responses?: boolean | StringName | {
10716
+ mutationOptions?: boolean | StringName | {
10808
10717
  /**
10809
10718
  * The casing convention to use for generated names.
10810
10719
  *
@@ -10812,23 +10721,48 @@ type UserConfig$3 = Plugin.Name<'valibot'> & Plugin.Hooks & {
10812
10721
  */
10813
10722
  case?: StringCase;
10814
10723
  /**
10815
- * Whether to generate Valibot schemas for response definitions.
10724
+ * Whether to generate mutation options helpers.
10816
10725
  *
10817
10726
  * @default true
10818
10727
  */
10819
10728
  enabled?: boolean;
10820
10729
  /**
10821
- * Custom naming pattern for generated schema names. The name variable
10822
- * is obtained from the operation name.
10730
+ * Custom function to generate metadata for the operation.
10731
+ * Can return any valid meta object that will be included in the generated mutation options.
10823
10732
  *
10824
- * @default 'v{{name}}Response'
10733
+ * @param operation - The operation object containing all available metadata
10734
+ * @returns A meta object with any properties you want to include
10735
+ *
10736
+ * @example
10737
+ * ```typescript
10738
+ * meta: (operation) => ({
10739
+ * customField: operation.id,
10740
+ * isDeprecated: operation.deprecated,
10741
+ * tags: operation.tags,
10742
+ * customObject: {
10743
+ * method: operation.method,
10744
+ * path: operation.path
10745
+ * }
10746
+ * })
10747
+ * ```
10748
+ *
10749
+ * @default undefined
10750
+ */
10751
+ meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
10752
+ /**
10753
+ * Custom naming pattern for generated mutation options names. The name variable is
10754
+ * obtained from the SDK function name.
10755
+ *
10756
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
10757
+ *
10758
+ * @default '{{name}}Mutation'
10825
10759
  */
10826
10760
  name?: StringName;
10827
10761
  };
10828
10762
  /**
10829
- * Configuration for webhook-specific Valibot schemas.
10763
+ * Configuration for generated query keys.
10830
10764
  *
10831
- * Controls generation of Valibot schemas for webhook payloads.
10765
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryKey queryKey}
10832
10766
  *
10833
10767
  * Can be:
10834
10768
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -10837,7 +10771,7 @@ type UserConfig$3 = Plugin.Name<'valibot'> & Plugin.Hooks & {
10837
10771
  *
10838
10772
  * @default true
10839
10773
  */
10840
- webhooks?: boolean | StringName | {
10774
+ queryKeys?: boolean | StringName | {
10841
10775
  /**
10842
10776
  * The casing convention to use for generated names.
10843
10777
  *
@@ -10845,29 +10779,582 @@ type UserConfig$3 = Plugin.Name<'valibot'> & Plugin.Hooks & {
10845
10779
  */
10846
10780
  case?: StringCase;
10847
10781
  /**
10848
- * Whether to generate Valibot schemas for webhook definitions.
10782
+ * Whether to generate query keys.
10849
10783
  *
10850
10784
  * @default true
10851
10785
  */
10852
10786
  enabled?: boolean;
10853
10787
  /**
10854
- * Custom naming pattern for generated schema names. The name variable
10855
- * is obtained from the webhook key.
10788
+ * Custom naming pattern for generated query key names. The name variable is
10789
+ * obtained from the SDK function name.
10856
10790
  *
10857
- * @default 'v{{name}}WebhookRequest'
10791
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/guides/query-keys Query Keys}
10792
+ *
10793
+ * @default '{{name}}QueryKey'
10858
10794
  */
10859
10795
  name?: StringName;
10796
+ /**
10797
+ * Whether to include operation tags in query keys.
10798
+ * This will make query keys larger but provides better cache invalidation capabilities.
10799
+ *
10800
+ * @default false
10801
+ */
10802
+ tags?: boolean;
10860
10803
  };
10861
- };
10862
- type Config$2 = Plugin.Name<'valibot'> & Plugin.Hooks & {
10863
10804
  /**
10864
- * The casing convention to use for generated names.
10805
+ * Configuration for generated query options helpers.
10865
10806
  *
10866
- * @default 'camelCase'
10867
- */
10868
- case: StringCase;
10869
- /**
10870
- * Add comments from input to the generated Valibot schemas?
10807
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryOptions queryOptions}
10808
+ *
10809
+ * Can be:
10810
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
10811
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
10812
+ * - `object`: Full configuration object
10813
+ *
10814
+ * @default true
10815
+ */
10816
+ queryOptions?: boolean | StringName | {
10817
+ /**
10818
+ * The casing convention to use for generated names.
10819
+ *
10820
+ * @default 'camelCase'
10821
+ */
10822
+ case?: StringCase;
10823
+ /**
10824
+ * Whether to generate query options helpers.
10825
+ *
10826
+ * @default true
10827
+ */
10828
+ enabled?: boolean;
10829
+ /**
10830
+ * Whether to export generated symbols.
10831
+ *
10832
+ * @default true
10833
+ */
10834
+ exported?: boolean;
10835
+ /**
10836
+ * Custom function to generate metadata for the operation.
10837
+ * Can return any valid meta object that will be included in the generated query options.
10838
+ *
10839
+ * @param operation - The operation object containing all available metadata
10840
+ * @returns A meta object with any properties you want to include
10841
+ *
10842
+ * @example
10843
+ * ```typescript
10844
+ * meta: (operation) => ({
10845
+ * customField: operation.id,
10846
+ * isDeprecated: operation.deprecated,
10847
+ * tags: operation.tags,
10848
+ * customObject: {
10849
+ * method: operation.method,
10850
+ * path: operation.path
10851
+ * }
10852
+ * })
10853
+ * ```
10854
+ *
10855
+ * @default undefined
10856
+ */
10857
+ meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
10858
+ /**
10859
+ * Custom naming pattern for generated query options names. The name variable is
10860
+ * obtained from the SDK function name.
10861
+ *
10862
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryOptions queryOptions}
10863
+ *
10864
+ * @default '{{name}}Options'
10865
+ */
10866
+ name?: StringName;
10867
+ };
10868
+ /**
10869
+ * Configuration for generated `useSwr()` function helpers.
10870
+ *
10871
+ * See {@link https://swr.vercel.app/docs/api API}
10872
+ *
10873
+ * Can be:
10874
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
10875
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
10876
+ * - `object`: Full configuration object
10877
+ *
10878
+ * @default true
10879
+ */
10880
+ useSwr?: boolean | StringName | {
10881
+ /**
10882
+ * The casing convention to use for generated names.
10883
+ *
10884
+ * @default 'camelCase'
10885
+ */
10886
+ case?: StringCase;
10887
+ /**
10888
+ * Whether to generate `useSwr()` function helpers.
10889
+ *
10890
+ * @default true
10891
+ */
10892
+ enabled?: boolean;
10893
+ /**
10894
+ * Custom naming pattern for generated `useSwr()` function names. The name variable is
10895
+ * obtained from the SDK function name.
10896
+ *
10897
+ * See {@link https://swr.vercel.app/docs/api API}
10898
+ *
10899
+ * @default 'use{{name}}'
10900
+ */
10901
+ name?: StringName;
10902
+ };
10903
+ };
10904
+ type Config$3 = Plugin.Name<'swr'> & Plugin.Hooks & {
10905
+ /**
10906
+ * The casing convention to use for generated names.
10907
+ *
10908
+ * @default 'camelCase'
10909
+ */
10910
+ case: StringCase;
10911
+ /**
10912
+ * Add comments from SDK functions to the generated SWR code?
10913
+ *
10914
+ * @default true
10915
+ */
10916
+ comments: boolean;
10917
+ /**
10918
+ * Should the exports from the generated files be re-exported in the index barrel file?
10919
+ *
10920
+ * @default false
10921
+ */
10922
+ exportFromIndex: boolean;
10923
+ /**
10924
+ * Resolved configuration for generated infinite query key helpers.
10925
+ *
10926
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
10927
+ */
10928
+ infiniteQueryKeys: {
10929
+ /**
10930
+ * The casing convention to use for generated names.
10931
+ *
10932
+ * @default 'camelCase'
10933
+ */
10934
+ case: StringCase;
10935
+ /**
10936
+ * Whether to generate infinite query key helpers.
10937
+ *
10938
+ * @default true
10939
+ */
10940
+ enabled: boolean;
10941
+ /**
10942
+ * Custom naming pattern for generated infinite query key names. The name variable is obtained from the SDK function name.
10943
+ *
10944
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
10945
+ *
10946
+ * @default '{{name}}InfiniteQueryKey'
10947
+ */
10948
+ name: StringName;
10949
+ /**
10950
+ * Whether to include operation tags in infinite query keys.
10951
+ * This will make query keys larger but provides better cache invalidation capabilities.
10952
+ *
10953
+ * @default false
10954
+ */
10955
+ tags: boolean;
10956
+ };
10957
+ /**
10958
+ * Resolved configuration for generated infinite query options helpers.
10959
+ *
10960
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
10961
+ */
10962
+ infiniteQueryOptions: {
10963
+ /**
10964
+ * The casing convention to use for generated names.
10965
+ *
10966
+ * @default 'camelCase'
10967
+ */
10968
+ case: StringCase;
10969
+ /**
10970
+ * Whether to generate infinite query options helpers.
10971
+ *
10972
+ * @default true
10973
+ */
10974
+ enabled: boolean;
10975
+ /**
10976
+ * Custom function to generate metadata for the operation.
10977
+ * Can return any valid meta object that will be included in the generated infinite query options.
10978
+ *
10979
+ * @param operation - The operation object containing all available metadata
10980
+ * @returns A meta object with any properties you want to include
10981
+ *
10982
+ * @example
10983
+ * ```typescript
10984
+ * meta: (operation) => ({
10985
+ * customField: operation.id,
10986
+ * isDeprecated: operation.deprecated,
10987
+ * tags: operation.tags,
10988
+ * customObject: {
10989
+ * method: operation.method,
10990
+ * path: operation.path
10991
+ * }
10992
+ * })
10993
+ * ```
10994
+ *
10995
+ * @default undefined
10996
+ */
10997
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
10998
+ /**
10999
+ * Custom naming pattern for generated infinite query options names. The name variable is obtained from the SDK function name.
11000
+ *
11001
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
11002
+ *
11003
+ * @default '{{name}}InfiniteOptions'
11004
+ */
11005
+ name: StringName;
11006
+ };
11007
+ /**
11008
+ * Resolved configuration for generated mutation options helpers.
11009
+ *
11010
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
11011
+ */
11012
+ mutationOptions: {
11013
+ /**
11014
+ * The casing convention to use for generated names.
11015
+ *
11016
+ * @default 'camelCase'
11017
+ */
11018
+ case: StringCase;
11019
+ /**
11020
+ * Whether to generate mutation options helpers.
11021
+ *
11022
+ * @default true
11023
+ */
11024
+ enabled: boolean;
11025
+ /**
11026
+ * Custom function to generate metadata for the operation.
11027
+ * Can return any valid meta object that will be included in the generated mutation options.
11028
+ *
11029
+ * @param operation - The operation object containing all available metadata
11030
+ * @returns A meta object with any properties you want to include
11031
+ *
11032
+ * @example
11033
+ * ```typescript
11034
+ * meta: (operation) => ({
11035
+ * customField: operation.id,
11036
+ * isDeprecated: operation.deprecated,
11037
+ * tags: operation.tags,
11038
+ * customObject: {
11039
+ * method: operation.method,
11040
+ * path: operation.path
11041
+ * }
11042
+ * })
11043
+ * ```
11044
+ *
11045
+ * @default undefined
11046
+ */
11047
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
11048
+ /**
11049
+ * Custom naming pattern for generated mutation options names. The name variable is obtained from the SDK function name.
11050
+ *
11051
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
11052
+ *
11053
+ * @default '{{name}}Mutation'
11054
+ */
11055
+ name: StringName;
11056
+ };
11057
+ /**
11058
+ * Resolved configuration for generated query keys.
11059
+ *
11060
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/guides/query-keys Query Keys}
11061
+ */
11062
+ queryKeys: {
11063
+ /**
11064
+ * The casing convention to use for generated names.
11065
+ *
11066
+ * @default 'camelCase'
11067
+ */
11068
+ case: StringCase;
11069
+ /**
11070
+ * Whether to generate query keys.
11071
+ *
11072
+ * @default true
11073
+ */
11074
+ enabled: boolean;
11075
+ /**
11076
+ * Custom naming pattern for generated query key names. The name variable is obtained from the SDK function name.
11077
+ *
11078
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/guides/query-keys Query Keys}
11079
+ *
11080
+ * @default '{{name}}QueryKey'
11081
+ */
11082
+ name: StringName;
11083
+ /**
11084
+ * Whether to include operation tags in query keys.
11085
+ * This will make query keys larger but provides better cache invalidation capabilities.
11086
+ *
11087
+ * @default false
11088
+ */
11089
+ tags: boolean;
11090
+ };
11091
+ /**
11092
+ * Resolved configuration for generated query options helpers.
11093
+ *
11094
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryOptions queryOptions}
11095
+ */
11096
+ queryOptions: {
11097
+ /**
11098
+ * The casing convention to use for generated names.
11099
+ *
11100
+ * @default 'camelCase'
11101
+ */
11102
+ case: StringCase;
11103
+ /**
11104
+ * Whether to generate query options helpers.
11105
+ *
11106
+ * @default true
11107
+ */
11108
+ enabled: boolean;
11109
+ /**
11110
+ * Whether to export generated symbols.
11111
+ *
11112
+ * @default true
11113
+ */
11114
+ exported: boolean;
11115
+ /**
11116
+ * Custom function to generate metadata for the operation.
11117
+ * Can return any valid meta object that will be included in the generated query options.
11118
+ *
11119
+ * @param operation - The operation object containing all available metadata
11120
+ * @returns A meta object with any properties you want to include
11121
+ *
11122
+ * @example
11123
+ * ```typescript
11124
+ * meta: (operation) => ({
11125
+ * customField: operation.id,
11126
+ * isDeprecated: operation.deprecated,
11127
+ * tags: operation.tags,
11128
+ * customObject: {
11129
+ * method: operation.method,
11130
+ * path: operation.path
11131
+ * }
11132
+ * })
11133
+ * ```
11134
+ *
11135
+ * @default undefined
11136
+ */
11137
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
11138
+ /**
11139
+ * Custom naming pattern for generated query options names. The name variable is obtained from the SDK function name.
11140
+ *
11141
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryOptions queryOptions}
11142
+ *
11143
+ * @default '{{name}}Options'
11144
+ */
11145
+ name: StringName;
11146
+ };
11147
+ /**
11148
+ * Configuration for generated `useSwr()` function helpers.
11149
+ *
11150
+ * See {@link https://swr.vercel.app/docs/api API}
11151
+ */
11152
+ useSwr: {
11153
+ /**
11154
+ * The casing convention to use for generated names.
11155
+ *
11156
+ * @default 'camelCase'
11157
+ */
11158
+ case: StringCase;
11159
+ /**
11160
+ * Whether to generate `useSwr()` function helpers.
11161
+ *
11162
+ * @default true
11163
+ */
11164
+ enabled: boolean;
11165
+ /**
11166
+ * Custom naming pattern for generated `useSwr()` function names. The name variable is
11167
+ * obtained from the SDK function name.
11168
+ *
11169
+ * See {@link https://swr.vercel.app/docs/api API}
11170
+ *
11171
+ * @default 'use{{name}}'
11172
+ */
11173
+ name: StringName;
11174
+ };
11175
+ };
11176
+ type SwrPlugin = DefinePlugin<UserConfig$3, Config$3>;
11177
+ //#endregion
11178
+ //#region src/plugins/valibot/shared/types.d.ts
11179
+ type ValidatorArgs$1 = {
11180
+ operation: IR$1.OperationObject;
11181
+ plugin: ValibotPlugin['Instance'];
11182
+ };
11183
+ //#endregion
11184
+ //#region src/plugins/valibot/api.d.ts
11185
+ type IApi$1 = {
11186
+ createRequestValidator: (args: ValidatorArgs$1) => ts.ArrowFunction | undefined;
11187
+ createResponseValidator: (args: ValidatorArgs$1) => ts.ArrowFunction | undefined;
11188
+ };
11189
+ //#endregion
11190
+ //#region src/plugins/valibot/types.d.ts
11191
+ type UserConfig$2 = Plugin.Name<'valibot'> & Plugin.Hooks & {
11192
+ /**
11193
+ * The casing convention to use for generated names.
11194
+ *
11195
+ * @default 'camelCase'
11196
+ */
11197
+ case?: StringCase;
11198
+ /**
11199
+ * Add comments from input to the generated Valibot schemas?
11200
+ *
11201
+ * @default true
11202
+ */
11203
+ comments?: boolean;
11204
+ /**
11205
+ * Configuration for reusable schema definitions.
11206
+ *
11207
+ * Controls generation of shared Valibot schemas that can be referenced
11208
+ * across requests and responses.
11209
+ *
11210
+ * Can be:
11211
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
11212
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
11213
+ * - `object`: Full configuration object
11214
+ */
11215
+ definitions?: boolean | StringName | {
11216
+ /**
11217
+ * The casing convention to use for generated names.
11218
+ *
11219
+ * @default 'camelCase'
11220
+ */
11221
+ case?: StringCase;
11222
+ /**
11223
+ * Whether to generate Valibot schemas for reusable definitions.
11224
+ *
11225
+ * @default true
11226
+ */
11227
+ enabled?: boolean;
11228
+ /**
11229
+ * Custom naming pattern for generated schema names. The name variable
11230
+ * is obtained from the schema name.
11231
+ *
11232
+ * @default 'v{{name}}'
11233
+ */
11234
+ name?: StringName;
11235
+ };
11236
+ /**
11237
+ * Should the exports from the generated files be re-exported in the index
11238
+ * barrel file?
11239
+ *
11240
+ * @default false
11241
+ */
11242
+ exportFromIndex?: boolean;
11243
+ /**
11244
+ * Enable Valibot metadata support? It's often useful to associate a schema
11245
+ * with some additional metadata for documentation, code generation, AI
11246
+ * structured outputs, form validation, and other purposes.
11247
+ *
11248
+ * @default false
11249
+ */
11250
+ metadata?: boolean;
11251
+ /**
11252
+ * Configuration for request-specific Valibot schemas.
11253
+ *
11254
+ * Controls generation of Valibot schemas for request bodies, query
11255
+ * parameters, path parameters, and headers.
11256
+ *
11257
+ * Can be:
11258
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
11259
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
11260
+ * - `object`: Full configuration object
11261
+ */
11262
+ requests?: boolean | StringName | {
11263
+ /**
11264
+ * The casing convention to use for generated names.
11265
+ *
11266
+ * @default 'camelCase'
11267
+ */
11268
+ case?: StringCase;
11269
+ /**
11270
+ * Whether to generate Valibot schemas for request definitions.
11271
+ *
11272
+ * @default true
11273
+ */
11274
+ enabled?: boolean;
11275
+ /**
11276
+ * Custom naming pattern for generated schema names. The name variable
11277
+ * is obtained from the operation name.
11278
+ *
11279
+ * @default 'v{{name}}Data'
11280
+ */
11281
+ name?: StringName;
11282
+ };
11283
+ /**
11284
+ * Configuration for response-specific Valibot schemas.
11285
+ *
11286
+ * Controls generation of Valibot schemas for response bodies, error
11287
+ * responses, and status codes.
11288
+ *
11289
+ * Can be:
11290
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
11291
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
11292
+ * - `object`: Full configuration object
11293
+ */
11294
+ responses?: boolean | StringName | {
11295
+ /**
11296
+ * The casing convention to use for generated names.
11297
+ *
11298
+ * @default 'camelCase'
11299
+ */
11300
+ case?: StringCase;
11301
+ /**
11302
+ * Whether to generate Valibot schemas for response definitions.
11303
+ *
11304
+ * @default true
11305
+ */
11306
+ enabled?: boolean;
11307
+ /**
11308
+ * Custom naming pattern for generated schema names. The name variable
11309
+ * is obtained from the operation name.
11310
+ *
11311
+ * @default 'v{{name}}Response'
11312
+ */
11313
+ name?: StringName;
11314
+ };
11315
+ /**
11316
+ * Configuration for webhook-specific Valibot schemas.
11317
+ *
11318
+ * Controls generation of Valibot schemas for webhook payloads.
11319
+ *
11320
+ * Can be:
11321
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
11322
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
11323
+ * - `object`: Full configuration object
11324
+ *
11325
+ * @default true
11326
+ */
11327
+ webhooks?: boolean | StringName | {
11328
+ /**
11329
+ * The casing convention to use for generated names.
11330
+ *
11331
+ * @default 'camelCase'
11332
+ */
11333
+ case?: StringCase;
11334
+ /**
11335
+ * Whether to generate Valibot schemas for webhook definitions.
11336
+ *
11337
+ * @default true
11338
+ */
11339
+ enabled?: boolean;
11340
+ /**
11341
+ * Custom naming pattern for generated schema names. The name variable
11342
+ * is obtained from the webhook key.
11343
+ *
11344
+ * @default 'v{{name}}WebhookRequest'
11345
+ */
11346
+ name?: StringName;
11347
+ };
11348
+ };
11349
+ type Config$2 = Plugin.Name<'valibot'> & Plugin.Hooks & {
11350
+ /**
11351
+ * The casing convention to use for generated names.
11352
+ *
11353
+ * @default 'camelCase'
11354
+ */
11355
+ case: StringCase;
11356
+ /**
11357
+ * Add comments from input to the generated Valibot schemas?
10871
11358
  *
10872
11359
  * @default true
10873
11360
  */
@@ -10995,7 +11482,7 @@ type Config$2 = Plugin.Name<'valibot'> & Plugin.Hooks & {
10995
11482
  name: StringName;
10996
11483
  };
10997
11484
  };
10998
- type ValibotPlugin = DefinePlugin<UserConfig$3, Config$2, IApi$1>;
11485
+ type ValibotPlugin = DefinePlugin<UserConfig$2, Config$2, IApi$1>;
10999
11486
  //#endregion
11000
11487
  //#region src/plugins/zod/shared/types.d.ts
11001
11488
  type ValidatorArgs = {
@@ -11010,7 +11497,7 @@ type IApi = {
11010
11497
  };
11011
11498
  //#endregion
11012
11499
  //#region src/plugins/zod/types.d.ts
11013
- type UserConfig$2 = Plugin.Name<'zod'> & Plugin.Hooks & {
11500
+ type UserConfig$1 = Plugin.Name<'zod'> & Plugin.Hooks & {
11014
11501
  /**
11015
11502
  * The casing convention to use for generated names.
11016
11503
  *
@@ -11715,7 +12202,7 @@ type Config$1 = Plugin.Name<'zod'> & Plugin.Hooks & {
11715
12202
  };
11716
12203
  };
11717
12204
  };
11718
- type ZodPlugin = DefinePlugin<UserConfig$2, Config$1, IApi>;
12205
+ type ZodPlugin = DefinePlugin<UserConfig$1, Config$1, IApi>;
11719
12206
  //#endregion
11720
12207
  //#region src/plugins/config.d.ts
11721
12208
  interface PluginConfigMap {
@@ -11738,6 +12225,7 @@ interface PluginConfigMap {
11738
12225
  '@tanstack/vue-query': TanStackVueQueryPlugin['Types'];
11739
12226
  arktype: ArktypePlugin['Types'];
11740
12227
  fastify: FastifyPlugin['Types'];
12228
+ swr: SwrPlugin['Types'];
11741
12229
  valibot: ValibotPlugin['Types'];
11742
12230
  zod: ZodPlugin['Types'];
11743
12231
  }
@@ -11926,14 +12414,13 @@ type WalkEvent<T extends IrTopLevelKind = IrTopLevelKind> = Extract<WalkEvents,
11926
12414
  //#region src/plugins/shared/utils/instance.d.ts
11927
12415
  declare class PluginInstance<T extends Plugin.Types = Plugin.Types> {
11928
12416
  api: T['api'];
11929
- config: Omit<T['resolvedConfig'], 'name' | 'output'>;
12417
+ config: Omit<T['resolvedConfig'], 'name'>;
11930
12418
  context: Context;
11931
12419
  dependencies: Required<Plugin.Config<T>>['dependencies'];
11932
12420
  private eventHooks;
11933
12421
  gen: IProject;
11934
12422
  private handler;
11935
12423
  name: T['resolvedConfig']['name'];
11936
- output: string;
11937
12424
  /**
11938
12425
  * The package metadata and utilities for the current context, constructed
11939
12426
  * from the provided dependencies. Used for managing package-related
@@ -11946,7 +12433,6 @@ declare class PluginInstance<T extends Plugin.Types = Plugin.Types> {
11946
12433
  context: Context<OpenApi.V2_0_X | OpenApi.V3_0_X | OpenApi.V3_1_X>;
11947
12434
  gen: IProject;
11948
12435
  name: string;
11949
- output: string;
11950
12436
  });
11951
12437
  /**
11952
12438
  * Iterates over various input elements as specified by the event types, in
@@ -12199,9 +12685,9 @@ type Hooks = {
12199
12685
  //#region src/plugins/types.d.ts
12200
12686
  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';
12201
12687
  type PluginValidatorNames = 'arktype' | 'valibot' | 'zod';
12202
- type PluginNames = PluginClientNames | '@angular/common' | '@hey-api/schemas' | '@hey-api/sdk' | '@hey-api/transformers' | '@hey-api/typescript' | '@pinia/colada' | '@tanstack/angular-query-experimental' | '@tanstack/react-query' | '@tanstack/solid-query' | '@tanstack/svelte-query' | '@tanstack/vue-query' | 'fastify' | PluginValidatorNames;
12688
+ 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;
12203
12689
  type AnyPluginName = PluginNames | (string & {});
12204
- type PluginTag = 'client' | 'transformer' | 'validator';
12690
+ type PluginTag = 'client' | 'sdk' | 'transformer' | 'validator';
12205
12691
  type PluginContext = {
12206
12692
  package: Package;
12207
12693
  pluginByTag: <T extends AnyPluginName | boolean = AnyPluginName>(tag: PluginTag, props?: {
@@ -12232,7 +12718,7 @@ type BaseConfig = {
12232
12718
  */
12233
12719
  declare namespace Plugin {
12234
12720
  export type Config<T extends Types> = Pick<T, 'api'> & {
12235
- config: Omit<T['config'], 'name' | 'output'>;
12721
+ config: Omit<T['config'], 'name'>;
12236
12722
  /**
12237
12723
  * Dependency plugins will be always processed, regardless of whether user
12238
12724
  * explicitly defines them in their `plugins` config.
@@ -12240,7 +12726,6 @@ declare namespace Plugin {
12240
12726
  dependencies?: ReadonlyArray<AnyPluginName>;
12241
12727
  handler: Handler<T>;
12242
12728
  name: T['config']['name'];
12243
- output?: NonNullable<T['config']['output']>;
12244
12729
  /**
12245
12730
  * Resolves static configuration values into their runtime equivalents. For
12246
12731
  * example, when `validator` is set to `true`, it figures out which plugin
@@ -12250,25 +12735,11 @@ declare namespace Plugin {
12250
12735
  dependencies: Set<AnyPluginName>;
12251
12736
  }, context: PluginContext) => void;
12252
12737
  /**
12253
- * Optional tags can be used to help with deciding plugin order and resolving
12738
+ * Tags can be used to help with deciding plugin order and resolving
12254
12739
  * plugin configuration options.
12255
12740
  */
12256
12741
  tags?: ReadonlyArray<PluginTag>;
12257
12742
  };
12258
- export type ConfigWithName<T extends Types> = Omit<Config$14<T>, 'config'> & {
12259
- config: Omit<T['config'], 'output'>;
12260
- };
12261
-
12262
- /** @deprecated use `definePluginConfig()` instead */
12263
- export type DefineConfig<Config$14 extends BaseConfig, ResolvedConfig extends BaseConfig = Config$14> = (config?: UserConfig<Omit<Config$14, 'name'>>) => Omit<Plugin.Config<Config$14, ResolvedConfig>, 'name'> & {
12264
- /**
12265
- * Cast name to `any` so it doesn't throw type error in `plugins` array.
12266
- * We could allow any `string` as plugin `name` in the object syntax, but
12267
- * that TypeScript trick would cause all string methods to appear as
12268
- * suggested auto completions, which is undesirable.
12269
- */
12270
- name: any;
12271
- };
12272
12743
 
12273
12744
  /**
12274
12745
  * Generic wrapper for plugin hooks.
@@ -12277,27 +12748,22 @@ declare namespace Plugin {
12277
12748
  export interface Name<Name extends PluginNames> {
12278
12749
  name: Name;
12279
12750
  }
12280
- export type Types<Config$14 extends BaseConfig = BaseConfig, ResolvedConfig extends BaseConfig = Config$14, Api extends BaseApi = never> = ([Api] extends [never] ? {
12751
+ export type Types<Config$15 extends BaseConfig = BaseConfig, ResolvedConfig extends BaseConfig = Config$15, Api extends BaseApi = never> = ([Api] extends [never] ? {
12281
12752
  api?: BaseApi;
12282
12753
  } : {
12283
12754
  api: Api;
12284
12755
  }) & {
12285
- config: Config$14;
12756
+ config: Config$15;
12286
12757
  resolvedConfig: ResolvedConfig;
12287
12758
  };
12288
-
12289
- /**
12290
- * Users cannot modify output file path to avoid risk of conflicts.
12291
- */
12292
- export type UserConfig<Config$14 extends BaseConfig> = Omit<Config$14, 'output'>;
12293
12759
  }
12294
- type DefinePlugin<Config$14 extends BaseConfig = BaseConfig, ResolvedConfig extends BaseConfig = Config$14, Api extends BaseApi = never> = {
12295
- Config: Plugin.Config<Plugin.Types<Config$14, ResolvedConfig, Api>>;
12760
+ type DefinePlugin<Config$15 extends BaseConfig = BaseConfig, ResolvedConfig extends BaseConfig = Config$15, Api extends BaseApi = never> = {
12761
+ Config: Plugin.Config<Plugin.Types<Config$15, ResolvedConfig, Api>>;
12296
12762
  Handler: (args: {
12297
- plugin: PluginInstance<Plugin.Types<Config$14, ResolvedConfig, Api>>;
12763
+ plugin: PluginInstance<Plugin.Types<Config$15, ResolvedConfig, Api>>;
12298
12764
  }) => void;
12299
- Instance: PluginInstance<Plugin.Types<Config$14, ResolvedConfig, Api>>;
12300
- Types: Plugin.Types<Config$14, ResolvedConfig, Api>;
12765
+ Instance: PluginInstance<Plugin.Types<Config$15, ResolvedConfig, Api>>;
12766
+ Types: Plugin.Types<Config$15, ResolvedConfig, Api>;
12301
12767
  };
12302
12768
  //#endregion
12303
12769
  //#region src/types/input.d.ts
@@ -13266,7 +13732,7 @@ type Patch = {
13266
13732
  };
13267
13733
  //#endregion
13268
13734
  //#region src/types/config.d.ts
13269
- interface UserConfig$1 {
13735
+ interface UserConfig {
13270
13736
  /**
13271
13737
  * Path to the config file. Set this value if you don't use the default
13272
13738
  * config file name, or it's not located in the project root.
@@ -13326,7 +13792,7 @@ interface UserConfig$1 {
13326
13792
  *
13327
13793
  * @default ['@hey-api/typescript', '@hey-api/sdk']
13328
13794
  */
13329
- plugins?: ReadonlyArray<PluginNames | { [K in PluginNames]: Plugin.UserConfig<PluginConfigMap[K]['config']> & {
13795
+ plugins?: ReadonlyArray<PluginNames | { [K in PluginNames]: PluginConfigMap[K]['config'] & {
13330
13796
  name: K;
13331
13797
  } }[PluginNames]>;
13332
13798
  /**
@@ -13334,7 +13800,7 @@ interface UserConfig$1 {
13334
13800
  */
13335
13801
  watch?: boolean | number | Watch;
13336
13802
  }
13337
- type Config = Omit<Required<UserConfig$1>, 'input' | 'logs' | 'output' | 'parser' | 'plugins' | 'watch'> & {
13803
+ type Config = Omit<Required<UserConfig>, 'input' | 'logs' | 'output' | 'parser' | 'plugins' | 'watch'> & {
13338
13804
  /**
13339
13805
  * Path to the input specification.
13340
13806
  */
@@ -13350,8 +13816,8 @@ type Config = Omit<Required<UserConfig$1>, 'input' | 'logs' | 'output' | 'parser
13350
13816
  */
13351
13817
  parser: Parser;
13352
13818
  pluginOrder: ReadonlyArray<keyof PluginConfigMap>;
13353
- plugins: { [K in PluginNames]?: Plugin.ConfigWithName<PluginConfigMap[K]> };
13819
+ plugins: { [K in PluginNames]?: Plugin.Config<PluginConfigMap[K]> };
13354
13820
  };
13355
13821
  //#endregion
13356
- export { MaybeArray as S, Client as _, Plugin as a, IR$1 as b, OpenApiOperationObject as c, OpenApiResponseObject as d, OpenApiSchemaObject as f, ExpressionTransformer as g, TypeTransformer as h, DefinePlugin as i, OpenApiParameterObject as l, Logger as m, UserConfig$1 as n, OpenApi as o, Context as p, Input as r, OpenApiMetaObject as s, Config as t, OpenApiRequestBodyObject as u, PluginHandler as v, LazyOrAsync as x, StringCase as y };
13357
- //# sourceMappingURL=config-B2o9ax_a.d.cts.map
13822
+ export { MaybeArray as S, Client as _, Plugin as a, IR$1 as b, OpenApiOperationObject as c, OpenApiResponseObject as d, OpenApiSchemaObject as f, ExpressionTransformer as g, TypeTransformer as h, DefinePlugin as i, OpenApiParameterObject as l, Logger as m, UserConfig as n, OpenApi as o, Context as p, Input as r, OpenApiMetaObject as s, Config as t, OpenApiRequestBodyObject as u, PluginHandler as v, LazyOrAsync as x, StringCase as y };
13823
+ //# sourceMappingURL=config-PWeoedFF.d.cts.map