@hey-api/openapi-ts 0.96.0 → 0.97.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as UserConfig } from "./types-DAEl4_a4.mjs";
1
+ import { n as UserConfig } from "./types-KzipN7UT.mjs";
2
2
  import { AnalysisContext, BindingKind, ExportModule, File, FromRef, ImportModule, Language, Logger, Node, NodeName, NodeNameSanitizer, NodeRelationship, NodeScope, Ref, RenderContext, Renderer, Symbol } from "@hey-api/codegen-core";
3
3
  import { BaseOutput, Casing, Context, DefinePlugin, DefinePlugin as DefinePlugin$1, FeatureToggle, IR, IR as IR$1, NameTransformer, NamingConfig, NamingOptions, NamingRule, OpenApi, OpenApiMetaObject, OpenApiOperationObject, OpenApiParameterObject, OpenApiRequestBodyObject, OpenApiResponseObject, OpenApiSchemaObject, OperationPath, OperationPathStrategy, OperationStrategy, OperationsStrategy, Plugin, Plugin as Plugin$1, RequestSchemaContext, ResolvedRequestValidatorLayer, SchemaVisitorContext, SchemaWithType, Walker, defaultPaginationKeywords, definePluginConfig, utils } from "@hey-api/shared";
4
4
  import ts from "typescript";
@@ -2706,7 +2706,11 @@ type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> =
2706
2706
  };
2707
2707
  //#endregion
2708
2708
  //#region src/plugins/@hey-api/client-angular/bundle/utils.d.ts
2709
- type ErrInterceptor$4<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
2709
+ type ErrInterceptor$4<Err, Res, Req, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
2710
+
2711
+ response: Res | undefined, /** request may be undefined, because error may be from building the request object itself */
2712
+
2713
+ request: Req | undefined, options: Options) => Err | Promise<Err>;
2710
2714
  type ReqInterceptor$4<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
2711
2715
  type ResInterceptor$4<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
2712
2716
  declare class Interceptors$4<Interceptor> {
@@ -2778,6 +2782,7 @@ interface RequestOptions$6<TData = unknown, TResponseStyle extends ResponseStyle
2778
2782
  url: Url;
2779
2783
  }
2780
2784
  interface ResolvedRequestOptions$4<TResponseStyle extends ResponseStyle$3 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions$6<unknown, TResponseStyle, ThrowOnError, Url> {
2785
+ headers: HttpHeaders;
2781
2786
  serializedBody?: string;
2782
2787
  }
2783
2788
  type RequestResult$6<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle$3 = 'fields'> = Promise<ThrowOnError extends true ? TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
@@ -2791,9 +2796,9 @@ type RequestResult$6<TData = unknown, TError = unknown, ThrowOnError extends boo
2791
2796
  response: HttpResponse<TData>;
2792
2797
  } | {
2793
2798
  data: undefined;
2794
- error: TError[keyof TError];
2795
- request: HttpRequest<unknown>;
2796
- response: HttpErrorResponse & {
2799
+ error: TError[keyof TError]; /** request may be undefined, because error may be from building the request object itself */
2800
+ request?: HttpRequest<unknown>; /** response may be undefined, because error may be from building the request object itself or from a network error */
2801
+ response?: HttpErrorResponse & {
2797
2802
  error: TError[keyof TError] | null;
2798
2803
  };
2799
2804
  }>;
@@ -2904,7 +2909,11 @@ type UserConfig$25 = Plugin$1.Name<'@hey-api/client-axios'> & Client.Config & {
2904
2909
  type HeyApiClientAxiosPlugin = DefinePlugin$1<UserConfig$25, UserConfig$25>;
2905
2910
  //#endregion
2906
2911
  //#region src/plugins/@hey-api/client-fetch/bundle/utils.d.ts
2907
- type ErrInterceptor$3<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
2912
+ type ErrInterceptor$3<Err, Res, Req, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
2913
+
2914
+ response: Res | undefined, /** request may be undefined, because error may be from building the request object itself */
2915
+
2916
+ request: Req | undefined, options: Options) => Err | Promise<Err>;
2908
2917
  type ReqInterceptor$3<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
2909
2918
  type ResInterceptor$3<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
2910
2919
  declare class Interceptors$3<Interceptor> {
@@ -2984,6 +2993,7 @@ interface RequestOptions$4<TData = unknown, TResponseStyle extends ResponseStyle
2984
2993
  url: Url;
2985
2994
  }
2986
2995
  interface ResolvedRequestOptions$3<TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions$4<unknown, TResponseStyle, ThrowOnError, Url> {
2996
+ headers: Headers;
2987
2997
  serializedBody?: string;
2988
2998
  }
2989
2999
  type RequestResult$4<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle$2 = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
@@ -2997,8 +3007,8 @@ type RequestResult$4<TData = unknown, TError = unknown, ThrowOnError extends boo
2997
3007
  data: undefined;
2998
3008
  error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
2999
3009
  }) & {
3000
- request: Request;
3001
- response: Response;
3010
+ /** request may be undefined, because error may be from building the request object itself */request?: Request; /** response may be undefined, because error may be from building the request object itself or from a network error */
3011
+ response?: Response;
3002
3012
  }>;
3003
3013
  interface ClientOptions$4 {
3004
3014
  baseUrl?: string;
@@ -3039,7 +3049,9 @@ type UserConfig$24 = Plugin$1.Name<'@hey-api/client-fetch'> & Client.Config & {
3039
3049
  type HeyApiClientFetchPlugin = DefinePlugin$1<UserConfig$24, UserConfig$24>;
3040
3050
  //#endregion
3041
3051
  //#region src/plugins/@hey-api/client-next/bundle/utils.d.ts
3042
- type ErrInterceptor$2<Err, Res, Options> = (error: Err, response: Res, options: Options) => Err | Promise<Err>;
3052
+ type ErrInterceptor$2<Err, Res, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
3053
+
3054
+ response: Res | undefined, options: Options) => Err | Promise<Err>;
3043
3055
  type ReqInterceptor$2<Options> = (options: Options) => void | Promise<void>;
3044
3056
  type ResInterceptor$2<Res, Options> = (response: Res, options: Options) => Res | Promise<Res>;
3045
3057
  declare class Interceptors$2<Interceptor> {
@@ -3104,6 +3116,7 @@ interface RequestOptions$3<TData = unknown, ThrowOnError extends boolean = boole
3104
3116
  url: Url;
3105
3117
  }
3106
3118
  interface ResolvedRequestOptions$2<ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions$3<unknown, ThrowOnError, Url> {
3119
+ headers: Headers;
3107
3120
  serializedBody?: string;
3108
3121
  }
3109
3122
  type RequestResult$3<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean> = ThrowOnError extends true ? Promise<{
@@ -3116,7 +3129,7 @@ type RequestResult$3<TData = unknown, TError = unknown, ThrowOnError extends boo
3116
3129
  data: undefined;
3117
3130
  error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
3118
3131
  }) & {
3119
- response: Response;
3132
+ /** response may be undefined due to a network error where no response object is produced */response?: Response;
3120
3133
  }>;
3121
3134
  interface ClientOptions$3 {
3122
3135
  baseUrl?: string;
@@ -3228,7 +3241,11 @@ type UserConfig$22 = Plugin$1.Name<'@hey-api/client-nuxt'> & Client.Config;
3228
3241
  type HeyApiClientNuxtPlugin = DefinePlugin$1<UserConfig$22, UserConfig$22>;
3229
3242
  //#endregion
3230
3243
  //#region src/plugins/@hey-api/client-ofetch/bundle/utils.d.ts
3231
- type ErrInterceptor$1<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
3244
+ type ErrInterceptor$1<Err, Res, Req, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
3245
+
3246
+ response: Res | undefined, /** request may be undefined, because error may be from building the request object itself */
3247
+
3248
+ request: Req | undefined, options: Options) => Err | Promise<Err>;
3232
3249
  type ReqInterceptor$1<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
3233
3250
  type ResInterceptor$1<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
3234
3251
  declare class Interceptors$1<Interceptor> {
@@ -3368,6 +3385,7 @@ interface RequestOptions$1<TData = unknown, TResponseStyle extends ResponseStyle
3368
3385
  url: Url;
3369
3386
  }
3370
3387
  interface ResolvedRequestOptions$1<TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions$1<unknown, TResponseStyle, ThrowOnError, Url> {
3388
+ headers: Headers;
3371
3389
  serializedBody?: string;
3372
3390
  }
3373
3391
  type RequestResult$1<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle$1 = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
@@ -3381,8 +3399,8 @@ type RequestResult$1<TData = unknown, TError = unknown, ThrowOnError extends boo
3381
3399
  data: undefined;
3382
3400
  error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
3383
3401
  }) & {
3384
- request: Request;
3385
- response: Response;
3402
+ /** request may be undefined, because error may be from building the request object itself */request?: Request; /** response may be undefined due to a network error where no response object is produced */
3403
+ response?: Response;
3386
3404
  }>;
3387
3405
  interface ClientOptions$1 {
3388
3406
  baseUrl?: string;
@@ -3494,7 +3512,11 @@ type UserConfig$20 = Plugin$1.Name<'@hey-api/client-angular'> & Client.Config &
3494
3512
  type HeyApiClientAngularPlugin = DefinePlugin$1<UserConfig$20, UserConfig$20>;
3495
3513
  //#endregion
3496
3514
  //#region src/plugins/@hey-api/client-ky/bundle/utils.d.ts
3497
- type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
3515
+ type ErrInterceptor<Err, Res, Req, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
3516
+
3517
+ response: Res | undefined, /** request may be undefined, because error may be from building the request object itself */
3518
+
3519
+ request: Req | undefined, options: Options) => Err | Promise<Err>;
3498
3520
  type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
3499
3521
  type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
3500
3522
  declare class Interceptors<Interceptor> {
@@ -3514,27 +3536,7 @@ interface Middleware<Req, Res, Err, Options> {
3514
3536
  //#endregion
3515
3537
  //#region src/plugins/@hey-api/client-ky/bundle/types.d.ts
3516
3538
  type ResponseStyle = 'data' | 'fields';
3517
- interface RetryOptions {
3518
- /**
3519
- * Maximum number of retry attempts
3520
- *
3521
- * @default 2
3522
- */
3523
- limit?: number;
3524
- /**
3525
- * HTTP methods to retry
3526
- *
3527
- * @default ['get', 'put', 'head', 'delete', 'options', 'trace']
3528
- */
3529
- methods?: Array<'get' | 'post' | 'put' | 'delete' | 'patch' | 'head' | 'options' | 'trace'>;
3530
- /**
3531
- * HTTP status codes to retry
3532
- *
3533
- * @default [408, 413, 429, 500, 502, 503, 504]
3534
- */
3535
- statusCodes?: number[];
3536
- }
3537
- interface Config$15<T extends ClientOptions = ClientOptions> extends Omit<Options, 'body' | 'headers' | 'method' | 'prefixUrl' | 'retry' | 'throwHttpErrors'>, Config$22 {
3539
+ interface Config$15<T extends ClientOptions = ClientOptions> extends Pick<Options, 'cache' | 'credentials' | 'retry' | 'signal' | 'integrity' | 'keepalive' | 'mode' | 'redirect' | 'referrer' | 'referrerPolicy' | 'timeout'>, Config$22 {
3538
3540
  /**
3539
3541
  * Base URL for all requests made by this client.
3540
3542
  */
@@ -3542,6 +3544,10 @@ interface Config$15<T extends ClientOptions = ClientOptions> extends Omit<Option
3542
3544
  /**
3543
3545
  * Ky instance to use. You can use this option to provide a custom
3544
3546
  * ky instance.
3547
+ *
3548
+ * Note that the `prefixUrl` of your ky instance will be ignored, as we
3549
+ * will always build the full URL and pass it to your ky instance. You
3550
+ * should configure `baseUrl` instead.
3545
3551
  */
3546
3552
  ky?: typeof ky;
3547
3553
  /**
@@ -3564,22 +3570,12 @@ interface Config$15<T extends ClientOptions = ClientOptions> extends Omit<Option
3564
3570
  * @default 'fields'
3565
3571
  */
3566
3572
  responseStyle?: ResponseStyle;
3567
- /**
3568
- * Retry configuration
3569
- */
3570
- retry?: RetryOptions;
3571
3573
  /**
3572
3574
  * Throw an error instead of returning it in the response?
3573
3575
  *
3574
3576
  * @default false
3575
3577
  */
3576
3578
  throwOnError?: T['throwOnError'];
3577
- /**
3578
- * Request timeout in milliseconds
3579
- *
3580
- * @default 10000
3581
- */
3582
- timeout?: number;
3583
3579
  }
3584
3580
  interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$15<{
3585
3581
  responseStyle: TResponseStyle;
@@ -3600,6 +3596,7 @@ interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle =
3600
3596
  url: Url;
3601
3597
  }
3602
3598
  interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
3599
+ headers: Headers;
3603
3600
  serializedBody?: string;
3604
3601
  }
3605
3602
  type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
@@ -3613,8 +3610,8 @@ type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boole
3613
3610
  data: undefined;
3614
3611
  error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
3615
3612
  }) & {
3616
- request: Request;
3617
- response: Response;
3613
+ /** request may be undefined, because error may be from building the request object itself */request?: Request; /** response may be undefined due to a network error where no response object is produced */
3614
+ response?: Response;
3618
3615
  }>;
3619
3616
  interface ClientOptions {
3620
3617
  baseUrl?: string;
@@ -5364,139 +5361,61 @@ type UserConfig$13 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
5364
5361
  */
5365
5362
  name?: NameTransformer;
5366
5363
  };
5367
- };
5368
- type Config$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
5369
- /**
5370
- * Casing convention for generated names.
5371
- */
5372
- case: Casing;
5373
5364
  /**
5374
- * Resolved configuration for generated infinite query key helpers.
5365
+ * Configuration for generated `setQueryData` helpers.
5375
5366
  *
5376
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/infiniteQueryOptions
5377
- */
5378
- infiniteQueryKeys: NamingOptions & FeatureToggle & {
5379
- /**
5380
- * Whether to include operation tags in infinite query keys.
5381
- * This will make query keys larger but provides better cache invalidation capabilities.
5382
- *
5383
- * @default false
5384
- */
5385
- tags: boolean;
5386
- };
5387
- /**
5388
- * Resolved configuration for generated infinite query options helpers.
5367
+ * When enabled, generates a helper per query operation that wraps
5368
+ * `queryClient.setQueryData()` with the correct query key and response
5369
+ * type already wired up.
5370
+ *
5371
+ * Can be:
5372
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
5373
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
5374
+ * - `object`: Full configuration object
5389
5375
  *
5390
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/infiniteQueryOptions
5376
+ * @default false
5391
5377
  */
5392
- infiniteQueryOptions: NamingOptions & FeatureToggle & {
5378
+ setQueryData?: boolean | NameTransformer | {
5393
5379
  /**
5394
- * Custom function to generate metadata for the operation.
5395
- * Can return any valid meta object that will be included in the generated infinite query options.
5396
- * @param operation - The operation object containing all available metadata
5397
- * @returns A meta object with any properties you want to include
5398
- *
5399
- * @example
5400
- * ```ts
5401
- * meta: (operation) => ({
5402
- * customField: operation.id,
5403
- * isDeprecated: operation.deprecated,
5404
- * tags: operation.tags,
5405
- * customObject: {
5406
- * method: operation.method,
5407
- * path: operation.path
5408
- * }
5409
- * })
5410
- * ```
5380
+ * Casing convention for generated names.
5411
5381
  *
5412
- * @default undefined
5382
+ * @default 'camelCase'
5413
5383
  */
5414
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5415
- };
5416
- /**
5417
- * Resolved configuration for generated mutation options helpers.
5418
- *
5419
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/useMutation
5420
- */
5421
- mutationOptions: NamingOptions & FeatureToggle & {
5384
+ case?: Casing;
5422
5385
  /**
5423
- * Whether to export generated symbols.
5386
+ * Whether this feature is enabled.
5424
5387
  *
5425
5388
  * @default true
5426
5389
  */
5427
- exported: boolean;
5390
+ enabled?: boolean;
5428
5391
  /**
5429
- * Custom function to generate metadata for the operation.
5430
- * Can return any valid meta object that will be included in the generated mutation options.
5431
- * @param operation - The operation object containing all available metadata
5432
- * @returns A meta object with any properties you want to include
5433
- *
5434
- * @example
5435
- * ```ts
5436
- * meta: (operation) => ({
5437
- * customField: operation.id,
5438
- * isDeprecated: operation.deprecated,
5439
- * tags: operation.tags,
5440
- * customObject: {
5441
- * method: operation.method,
5442
- * path: operation.path
5443
- * }
5444
- * })
5445
- * ```
5392
+ * Naming pattern for generated names.
5446
5393
  *
5447
- * @default undefined
5394
+ * @default '{{name}}SetQueryData'
5448
5395
  */
5449
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5396
+ name?: NameTransformer;
5450
5397
  };
5451
- /**
5452
- * Resolved configuration for generated query keys.
5453
- *
5454
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/queryKey
5455
- */
5398
+ };
5399
+ type Config$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
5400
+ /** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated infinite query key helpers. */
5401
+ infiniteQueryKeys: NamingOptions & FeatureToggle & {
5402
+ /** Whether to include operation tags in infinite query keys. */tags: boolean;
5403
+ }; /** Resolved configuration for generated infinite query options helpers. */
5404
+ infiniteQueryOptions: NamingOptions & FeatureToggle & {
5405
+ /** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5406
+ }; /** Resolved configuration for generated mutation options helpers. */
5407
+ mutationOptions: NamingOptions & FeatureToggle & {
5408
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
5409
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5410
+ }; /** Resolved configuration for generated query keys. */
5456
5411
  queryKeys: NamingOptions & FeatureToggle & {
5457
- /**
5458
- * Whether to include operation tags in query keys.
5459
- * This will make query keys larger but provides better cache invalidation capabilities.
5460
- *
5461
- * @default false
5462
- */
5463
- tags: boolean;
5464
- };
5465
- /**
5466
- * Resolved configuration for generated query options helpers.
5467
- *
5468
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/queryOptions
5469
- */
5412
+ /** Whether to include operation tags in query keys. */tags: boolean;
5413
+ }; /** Resolved configuration for generated query options helpers. */
5470
5414
  queryOptions: NamingOptions & FeatureToggle & {
5471
- /**
5472
- * Whether to export generated symbols.
5473
- *
5474
- * @default true
5475
- */
5476
- exported: boolean;
5477
- /**
5478
- * Custom function to generate metadata for the operation.
5479
- * Can return any valid meta object that will be included in the generated query options.
5480
- * @param operation - The operation object containing all available metadata
5481
- * @returns A meta object with any properties you want to include
5482
- *
5483
- * @example
5484
- * ```ts
5485
- * meta: (operation) => ({
5486
- * customField: operation.id,
5487
- * isDeprecated: operation.deprecated,
5488
- * tags: operation.tags,
5489
- * customObject: {
5490
- * method: operation.method,
5491
- * path: operation.path
5492
- * }
5493
- * })
5494
- * ```
5495
- *
5496
- * @default undefined
5497
- */
5415
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
5498
5416
  meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5499
- };
5417
+ }; /** Resolved configuration for generated `setQueryData` helpers. */
5418
+ setQueryData: NamingOptions & FeatureToggle;
5500
5419
  };
5501
5420
  type TanStackAngularQueryPlugin = DefinePlugin$1<UserConfig$13, Config$10>;
5502
5421
  //#endregion
@@ -5773,6 +5692,40 @@ type UserConfig$12 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks &
5773
5692
  */
5774
5693
  name?: NameTransformer;
5775
5694
  };
5695
+ /**
5696
+ * Configuration for generated `setQueryData` helpers.
5697
+ *
5698
+ * When enabled, generates a helper per query operation that wraps
5699
+ * `queryClient.setQueryData()` with the correct query key and response
5700
+ * type already wired up.
5701
+ *
5702
+ * Can be:
5703
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
5704
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
5705
+ * - `object`: Full configuration object
5706
+ *
5707
+ * @default false
5708
+ */
5709
+ setQueryData?: boolean | NameTransformer | {
5710
+ /**
5711
+ * Casing convention for generated names.
5712
+ *
5713
+ * @default 'camelCase'
5714
+ */
5715
+ case?: Casing;
5716
+ /**
5717
+ * Whether this feature is enabled.
5718
+ *
5719
+ * @default true
5720
+ */
5721
+ enabled?: boolean;
5722
+ /**
5723
+ * Naming pattern for generated names.
5724
+ *
5725
+ * @default '{{name}}SetQueryData'
5726
+ */
5727
+ name?: NameTransformer;
5728
+ };
5776
5729
  /**
5777
5730
  * Configuration for generated `useMutation()` function helpers.
5778
5731
  *
@@ -5841,154 +5794,63 @@ type UserConfig$12 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks &
5841
5794
  */
5842
5795
  name?: NameTransformer;
5843
5796
  };
5844
- };
5845
- type Config$9 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
5846
- /**
5847
- * Casing convention for generated names.
5848
- */
5849
- case: Casing;
5850
5797
  /**
5851
- * Resolved configuration for generated infinite query key helpers.
5798
+ * Configuration for generated Preact Query hook variant of `setQueryData`.
5852
5799
  *
5853
- * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/infiniteQueryOptions infiniteQueryOptions}
5854
- */
5855
- infiniteQueryKeys: NamingOptions & FeatureToggle & {
5856
- /**
5857
- * Whether to include operation tags in infinite query keys.
5858
- * This will make query keys larger but provides better cache invalidation capabilities.
5859
- *
5860
- * @default false
5861
- */
5862
- tags: boolean;
5863
- };
5864
- /**
5865
- * Resolved configuration for generated infinite query options helpers.
5800
+ * When enabled, generates a hook per query operation that calls
5801
+ * `useQueryClient()` internally and returns a typed setter function.
5866
5802
  *
5867
- * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/infiniteQueryOptions infiniteQueryOptions}
5803
+ * Can be:
5804
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
5805
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
5806
+ * - `object`: Full configuration object
5807
+ *
5808
+ * @default false
5868
5809
  */
5869
- infiniteQueryOptions: NamingOptions & FeatureToggle & {
5810
+ useSetQueryData?: boolean | NameTransformer | {
5870
5811
  /**
5871
- * Custom function to generate metadata for the operation.
5872
- * Can return any valid meta object that will be included in the generated infinite query options.
5873
- *
5874
- * @param operation - The operation object containing all available metadata
5875
- * @returns A meta object with any properties you want to include
5876
- *
5877
- * @example
5878
- * ```ts
5879
- * meta: (operation) => ({
5880
- * customField: operation.id,
5881
- * isDeprecated: operation.deprecated,
5882
- * tags: operation.tags,
5883
- * customObject: {
5884
- * method: operation.method,
5885
- * path: operation.path
5886
- * }
5887
- * })
5888
- * ```
5812
+ * Casing convention for generated names.
5889
5813
  *
5890
- * @default undefined
5814
+ * @default 'camelCase'
5891
5815
  */
5892
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5893
- };
5894
- /**
5895
- * Resolved configuration for generated mutation options helpers.
5896
- *
5897
- * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/useMutation useMutation}
5898
- */
5899
- mutationOptions: NamingOptions & FeatureToggle & {
5816
+ case?: Casing;
5900
5817
  /**
5901
- * Whether to export generated symbols.
5818
+ * Whether this feature is enabled.
5902
5819
  *
5903
5820
  * @default true
5904
5821
  */
5905
- exported: boolean;
5822
+ enabled?: boolean;
5906
5823
  /**
5907
- * Custom function to generate metadata for the operation.
5908
- * Can return any valid meta object that will be included in the generated mutation options.
5909
- *
5910
- * @param operation - The operation object containing all available metadata
5911
- * @returns A meta object with any properties you want to include
5912
- *
5913
- * @example
5914
- * ```ts
5915
- * meta: (operation) => ({
5916
- * customField: operation.id,
5917
- * isDeprecated: operation.deprecated,
5918
- * tags: operation.tags,
5919
- * customObject: {
5920
- * method: operation.method,
5921
- * path: operation.path
5922
- * }
5923
- * })
5924
- * ```
5824
+ * Naming pattern for generated names.
5925
5825
  *
5926
- * @default undefined
5826
+ * @default 'use{{name}}SetQueryData'
5927
5827
  */
5928
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5828
+ name?: NameTransformer;
5929
5829
  };
5930
- /**
5931
- * Resolved configuration for generated query keys.
5932
- *
5933
- * See {@link https://tanstack.com/query/v5/docs/framework/preact/guides/query-keys Query Keys}
5934
- */
5830
+ };
5831
+ type Config$9 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
5832
+ /** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated infinite query key helpers. */
5833
+ infiniteQueryKeys: NamingOptions & FeatureToggle & {
5834
+ /** Whether to include operation tags in infinite query keys. */tags: boolean;
5835
+ }; /** Resolved configuration for generated infinite query options helpers. */
5836
+ infiniteQueryOptions: NamingOptions & FeatureToggle & {
5837
+ /** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5838
+ }; /** Resolved configuration for generated mutation options helpers. */
5839
+ mutationOptions: NamingOptions & FeatureToggle & {
5840
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
5841
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5842
+ }; /** Resolved configuration for generated query keys. */
5935
5843
  queryKeys: NamingOptions & FeatureToggle & {
5936
- /**
5937
- * Whether to include operation tags in query keys.
5938
- * This will make query keys larger but provides better cache invalidation capabilities.
5939
- *
5940
- * @default false
5941
- */
5942
- tags: boolean;
5943
- };
5944
- /**
5945
- * Resolved configuration for generated query options helpers.
5946
- *
5947
- * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/queryOptions queryOptions}
5948
- */
5844
+ /** Whether to include operation tags in query keys. */tags: boolean;
5845
+ }; /** Resolved configuration for generated query options helpers. */
5949
5846
  queryOptions: NamingOptions & FeatureToggle & {
5950
- /**
5951
- * Whether to export generated symbols.
5952
- *
5953
- * @default true
5954
- */
5955
- exported: boolean;
5956
- /**
5957
- * Custom function to generate metadata for the operation.
5958
- * Can return any valid meta object that will be included in the generated query options.
5959
- *
5960
- * @param operation - The operation object containing all available metadata
5961
- * @returns A meta object with any properties you want to include
5962
- *
5963
- * @example
5964
- * ```ts
5965
- * meta: (operation) => ({
5966
- * customField: operation.id,
5967
- * isDeprecated: operation.deprecated,
5968
- * tags: operation.tags,
5969
- * customObject: {
5970
- * method: operation.method,
5971
- * path: operation.path
5972
- * }
5973
- * })
5974
- * ```
5975
- *
5976
- * @default undefined
5977
- */
5847
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
5978
5848
  meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5979
- };
5980
- /**
5981
- * Configuration for generated `useMutation()` function helpers.
5982
- *
5983
- * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/useMutation useMutation}
5984
- */
5985
- useMutation: NamingOptions & FeatureToggle;
5986
- /**
5987
- * Configuration for generated `useQuery()` function helpers.
5988
- *
5989
- * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/useQuery useQuery}
5990
- */
5991
- useQuery: NamingOptions & FeatureToggle;
5849
+ }; /** Resolved configuration for generated `setQueryData` helpers. */
5850
+ setQueryData: NamingOptions & FeatureToggle; /** Configuration for generated `useMutation()` function helpers. */
5851
+ useMutation: NamingOptions & FeatureToggle; /** Configuration for generated `useQuery()` function helpers. */
5852
+ useQuery: NamingOptions & FeatureToggle; /** Configuration for generated Preact Query hook variant of `setQueryData`. */
5853
+ useSetQueryData: NamingOptions & FeatureToggle;
5992
5854
  };
5993
5855
  type TanStackPreactQueryPlugin = DefinePlugin$1<UserConfig$12, Config$9>;
5994
5856
  //#endregion
@@ -6265,6 +6127,40 @@ type UserConfig$11 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & P
6265
6127
  */
6266
6128
  name?: NameTransformer;
6267
6129
  };
6130
+ /**
6131
+ * Configuration for generated `setQueryData` helpers.
6132
+ *
6133
+ * When enabled, generates a helper per query operation that wraps
6134
+ * `queryClient.setQueryData()` with the correct query key and response
6135
+ * type already wired up.
6136
+ *
6137
+ * Can be:
6138
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6139
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6140
+ * - `object`: Full configuration object
6141
+ *
6142
+ * @default false
6143
+ */
6144
+ setQueryData?: boolean | NameTransformer | {
6145
+ /**
6146
+ * Casing convention for generated names.
6147
+ *
6148
+ * @default 'camelCase'
6149
+ */
6150
+ case?: Casing;
6151
+ /**
6152
+ * Whether this feature is enabled.
6153
+ *
6154
+ * @default true
6155
+ */
6156
+ enabled?: boolean;
6157
+ /**
6158
+ * Naming pattern for generated names.
6159
+ *
6160
+ * @default '{{name}}SetQueryData'
6161
+ */
6162
+ name?: NameTransformer;
6163
+ };
6268
6164
  /**
6269
6165
  * Configuration for generated `useMutation()` function helpers.
6270
6166
  *
@@ -6333,32 +6229,139 @@ type UserConfig$11 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & P
6333
6229
  */
6334
6230
  name?: NameTransformer;
6335
6231
  };
6232
+ /**
6233
+ * Configuration for generated React Query hook variant of `setQueryData`.
6234
+ *
6235
+ * When enabled, generates a hook per query operation that calls
6236
+ * `useQueryClient()` internally and returns a typed setter function.
6237
+ *
6238
+ * Can be:
6239
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6240
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6241
+ * - `object`: Full configuration object
6242
+ *
6243
+ * @default false
6244
+ */
6245
+ useSetQueryData?: boolean | NameTransformer | {
6246
+ /**
6247
+ * Casing convention for generated names.
6248
+ *
6249
+ * @default 'camelCase'
6250
+ */
6251
+ case?: Casing;
6252
+ /**
6253
+ * Whether this feature is enabled.
6254
+ *
6255
+ * @default true
6256
+ */
6257
+ enabled?: boolean;
6258
+ /**
6259
+ * Naming pattern for generated names.
6260
+ *
6261
+ * @default 'use{{name}}SetQueryData'
6262
+ */
6263
+ name?: NameTransformer;
6264
+ };
6336
6265
  };
6337
6266
  type Config$8 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
6267
+ /** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated infinite query key helpers. */
6268
+ infiniteQueryKeys: NamingOptions & FeatureToggle & {
6269
+ /** Whether to include operation tags in infinite query keys. */tags: boolean;
6270
+ }; /** Resolved configuration for generated infinite query options helpers. */
6271
+ infiniteQueryOptions: NamingOptions & FeatureToggle & {
6272
+ /** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6273
+ }; /** Resolved configuration for generated mutation options helpers. */
6274
+ mutationOptions: NamingOptions & FeatureToggle & {
6275
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
6276
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6277
+ }; /** Resolved configuration for generated query keys. */
6278
+ queryKeys: NamingOptions & FeatureToggle & {
6279
+ /** Whether to include operation tags in query keys. */tags: boolean;
6280
+ }; /** Resolved configuration for generated query options helpers. */
6281
+ queryOptions: NamingOptions & FeatureToggle & {
6282
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
6283
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6284
+ }; /** Resolved configuration for generated `setQueryData` helpers. */
6285
+ setQueryData: NamingOptions & FeatureToggle; /** Configuration for generated `useMutation()` function helpers. */
6286
+ useMutation: NamingOptions & FeatureToggle; /** Configuration for generated `useQuery()` function helpers. */
6287
+ useQuery: NamingOptions & FeatureToggle; /** Configuration for generated React Query hook variant of `setQueryData`. */
6288
+ useSetQueryData: NamingOptions & FeatureToggle;
6289
+ };
6290
+ type TanStackReactQueryPlugin = DefinePlugin$1<UserConfig$11, Config$8>;
6291
+ //#endregion
6292
+ //#region src/plugins/@tanstack/solid-query/types.d.ts
6293
+ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
6338
6294
  /**
6339
6295
  * Casing convention for generated names.
6296
+ *
6297
+ * @default 'camelCase'
6340
6298
  */
6341
- case: Casing;
6299
+ case?: Casing;
6342
6300
  /**
6343
- * Resolved configuration for generated infinite query key helpers.
6301
+ * Configuration for generated infinite query key helpers.
6344
6302
  *
6345
- * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
6303
+ * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery}
6304
+ *
6305
+ * Can be:
6306
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6307
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6308
+ * - `object`: Full configuration object
6309
+ *
6310
+ * @default true
6346
6311
  */
6347
- infiniteQueryKeys: NamingOptions & FeatureToggle & {
6312
+ infiniteQueryKeys?: boolean | NameTransformer | {
6313
+ /**
6314
+ * Casing convention for generated names.
6315
+ *
6316
+ * @default 'camelCase'
6317
+ */
6318
+ case?: Casing;
6319
+ /**
6320
+ * Whether this feature is enabled.
6321
+ *
6322
+ * @default true
6323
+ */
6324
+ enabled?: boolean;
6325
+ /**
6326
+ * Naming pattern for generated names.
6327
+ *
6328
+ * @default '{{name}}InfiniteQueryKey'
6329
+ * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery
6330
+ */
6331
+ name?: NameTransformer;
6348
6332
  /**
6349
6333
  * Whether to include operation tags in infinite query keys.
6350
6334
  * This will make query keys larger but provides better cache invalidation capabilities.
6351
6335
  *
6352
6336
  * @default false
6353
6337
  */
6354
- tags: boolean;
6338
+ tags?: boolean;
6355
6339
  };
6356
6340
  /**
6357
- * Resolved configuration for generated infinite query options helpers.
6341
+ * Configuration for generated infinite query options helpers.
6358
6342
  *
6359
- * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
6343
+ * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery}
6344
+ *
6345
+ * Can be:
6346
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6347
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6348
+ * - `object`: Full configuration object
6349
+ *
6350
+ * @default true
6360
6351
  */
6361
- infiniteQueryOptions: NamingOptions & FeatureToggle & {
6352
+ infiniteQueryOptions?: boolean | NameTransformer | {
6353
+ /**
6354
+ * Casing convention for generated names.
6355
+ *
6356
+ * @default 'camelCase'
6357
+ */
6358
+ case?: Casing;
6359
+ /**
6360
+ * Whether this feature is enabled.
6361
+ *
6362
+ * @default true
6363
+ */
6364
+ enabled?: boolean;
6362
6365
  /**
6363
6366
  * Custom function to generate metadata for the operation.
6364
6367
  * Can return any valid meta object that will be included in the generated infinite query options.
@@ -6381,24 +6384,49 @@ type Config$8 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin
6381
6384
  *
6382
6385
  * @default undefined
6383
6386
  */
6384
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6387
+ meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
6388
+ /**
6389
+ * Naming pattern for generated names.
6390
+ *
6391
+ * @default '{{name}}InfiniteOptions'
6392
+ * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery
6393
+ */
6394
+ name?: NameTransformer;
6385
6395
  };
6386
6396
  /**
6387
- * Resolved configuration for generated mutation options helpers.
6397
+ * Configuration for generated mutation options helpers.
6388
6398
  *
6389
- * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
6399
+ * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/createMutation}
6400
+ *
6401
+ * Can be:
6402
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6403
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6404
+ * - `object`: Full configuration object
6405
+ *
6406
+ * @default true
6390
6407
  */
6391
- mutationOptions: NamingOptions & FeatureToggle & {
6408
+ mutationOptions?: boolean | NameTransformer | {
6409
+ /**
6410
+ * Casing convention for generated names.
6411
+ *
6412
+ * @default 'camelCase'
6413
+ */
6414
+ case?: Casing;
6415
+ /**
6416
+ * Whether this feature is enabled.
6417
+ *
6418
+ * @default true
6419
+ */
6420
+ enabled?: boolean;
6392
6421
  /**
6393
6422
  * Whether to export generated symbols.
6394
6423
  *
6395
6424
  * @default true
6396
6425
  */
6397
- exported: boolean;
6426
+ exported?: boolean;
6398
6427
  /**
6399
6428
  * Custom function to generate metadata for the operation.
6400
6429
  * Can return any valid meta object that will be included in the generated mutation options.
6401
- *
6402
6430
  * @param operation - The operation object containing all available metadata
6403
6431
  * @returns A meta object with any properties you want to include
6404
6432
  *
@@ -6417,38 +6445,89 @@ type Config$8 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin
6417
6445
  *
6418
6446
  * @default undefined
6419
6447
  */
6420
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6421
- };
6422
- /**
6423
- * Resolved configuration for generated query keys.
6424
- *
6425
- * See {@link https://tanstack.com/query/v5/docs/framework/react/guides/query-keys Query Keys}
6448
+ meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
6449
+ /**
6450
+ * Naming pattern for generated names.
6451
+ *
6452
+ * @default '{{name}}Mutation'
6453
+ * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createMutation
6454
+ */
6455
+ name?: NameTransformer;
6456
+ };
6457
+ /**
6458
+ * Configuration for generated query keys.
6459
+ *
6460
+ * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/queryKey}
6461
+ *
6462
+ * Can be:
6463
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6464
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6465
+ * - `object`: Full configuration object
6466
+ *
6467
+ * @default true
6426
6468
  */
6427
- queryKeys: NamingOptions & FeatureToggle & {
6469
+ queryKeys?: boolean | NameTransformer | {
6470
+ /**
6471
+ * Casing convention for generated names.
6472
+ *
6473
+ * @default 'camelCase'
6474
+ */
6475
+ case?: Casing;
6476
+ /**
6477
+ * Whether this feature is enabled.
6478
+ *
6479
+ * @default true
6480
+ */
6481
+ enabled?: boolean;
6482
+ /**
6483
+ * Naming pattern for generated names.
6484
+ *
6485
+ * @default '{{name}}QueryKey'
6486
+ * @see https://tanstack.com/query/v5/docs/framework/solid/reference/queryKey
6487
+ */
6488
+ name?: NameTransformer;
6428
6489
  /**
6429
6490
  * Whether to include operation tags in query keys.
6430
6491
  * This will make query keys larger but provides better cache invalidation capabilities.
6431
6492
  *
6432
6493
  * @default false
6433
6494
  */
6434
- tags: boolean;
6495
+ tags?: boolean;
6435
6496
  };
6436
6497
  /**
6437
- * Resolved configuration for generated query options helpers.
6498
+ * Configuration for generated query options helpers.
6438
6499
  *
6439
- * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryOptions queryOptions}
6500
+ * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/createQuery}
6501
+ *
6502
+ * Can be:
6503
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6504
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6505
+ * - `object`: Full configuration object
6506
+ *
6507
+ * @default true
6440
6508
  */
6441
- queryOptions: NamingOptions & FeatureToggle & {
6509
+ queryOptions?: boolean | NameTransformer | {
6510
+ /**
6511
+ * Casing convention for generated names.
6512
+ *
6513
+ * @default 'camelCase'
6514
+ */
6515
+ case?: Casing;
6516
+ /**
6517
+ * Whether this feature is enabled.
6518
+ *
6519
+ * @default true
6520
+ */
6521
+ enabled?: boolean;
6442
6522
  /**
6443
6523
  * Whether to export generated symbols.
6444
6524
  *
6445
6525
  * @default true
6446
6526
  */
6447
- exported: boolean;
6527
+ exported?: boolean;
6448
6528
  /**
6449
6529
  * Custom function to generate metadata for the operation.
6450
6530
  * Can return any valid meta object that will be included in the generated query options.
6451
- *
6452
6531
  * @param operation - The operation object containing all available metadata
6453
6532
  * @returns A meta object with any properties you want to include
6454
6533
  *
@@ -6467,25 +6546,75 @@ type Config$8 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin
6467
6546
  *
6468
6547
  * @default undefined
6469
6548
  */
6470
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6549
+ meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
6550
+ /**
6551
+ * Naming pattern for generated names.
6552
+ *
6553
+ * @default '{{name}}Options'
6554
+ * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createQuery
6555
+ */
6556
+ name?: NameTransformer;
6471
6557
  };
6472
6558
  /**
6473
- * Configuration for generated `useMutation()` function helpers.
6559
+ * Configuration for generated `setQueryData` helpers.
6474
6560
  *
6475
- * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
6476
- */
6477
- useMutation: NamingOptions & FeatureToggle;
6478
- /**
6479
- * Configuration for generated `useQuery()` function helpers.
6561
+ * When enabled, generates a helper per query operation that wraps
6562
+ * `queryClient.setQueryData()` with the correct query key and response
6563
+ * type already wired up.
6480
6564
  *
6481
- * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useQuery useQuery}
6565
+ * Can be:
6566
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6567
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6568
+ * - `object`: Full configuration object
6569
+ *
6570
+ * @default false
6482
6571
  */
6483
- useQuery: NamingOptions & FeatureToggle;
6572
+ setQueryData?: boolean | NameTransformer | {
6573
+ /**
6574
+ * Casing convention for generated names.
6575
+ *
6576
+ * @default 'camelCase'
6577
+ */
6578
+ case?: Casing;
6579
+ /**
6580
+ * Whether this feature is enabled.
6581
+ *
6582
+ * @default true
6583
+ */
6584
+ enabled?: boolean;
6585
+ /**
6586
+ * Naming pattern for generated names.
6587
+ *
6588
+ * @default '{{name}}SetQueryData'
6589
+ */
6590
+ name?: NameTransformer;
6591
+ };
6484
6592
  };
6485
- type TanStackReactQueryPlugin = DefinePlugin$1<UserConfig$11, Config$8>;
6593
+ type Config$7 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
6594
+ /** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated infinite query key helpers. */
6595
+ infiniteQueryKeys: NamingOptions & FeatureToggle & {
6596
+ /** Whether to include operation tags in infinite query keys. */tags: boolean;
6597
+ }; /** Resolved configuration for generated infinite query options helpers. */
6598
+ infiniteQueryOptions: NamingOptions & FeatureToggle & {
6599
+ /** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6600
+ }; /** Resolved configuration for generated mutation options helpers. */
6601
+ mutationOptions: NamingOptions & FeatureToggle & {
6602
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
6603
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6604
+ }; /** Resolved configuration for generated query keys. */
6605
+ queryKeys: NamingOptions & FeatureToggle & {
6606
+ /** Whether to include operation tags in query keys. */tags: boolean;
6607
+ }; /** Resolved configuration for generated query options helpers. */
6608
+ queryOptions: NamingOptions & FeatureToggle & {
6609
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
6610
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6611
+ }; /** Resolved configuration for generated `setQueryData` helpers. */
6612
+ setQueryData: NamingOptions & FeatureToggle;
6613
+ };
6614
+ type TanStackSolidQueryPlugin = DefinePlugin$1<UserConfig$10, Config$7>;
6486
6615
  //#endregion
6487
- //#region src/plugins/@tanstack/solid-query/types.d.ts
6488
- type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
6616
+ //#region src/plugins/@tanstack/svelte-query/types.d.ts
6617
+ type UserConfig$9 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
6489
6618
  /**
6490
6619
  * Casing convention for generated names.
6491
6620
  *
@@ -6495,7 +6624,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6495
6624
  /**
6496
6625
  * Configuration for generated infinite query key helpers.
6497
6626
  *
6498
- * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery}
6627
+ * See {@link https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery}
6499
6628
  *
6500
6629
  * Can be:
6501
6630
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -6521,7 +6650,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6521
6650
  * Naming pattern for generated names.
6522
6651
  *
6523
6652
  * @default '{{name}}InfiniteQueryKey'
6524
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery
6653
+ * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery
6525
6654
  */
6526
6655
  name?: NameTransformer;
6527
6656
  /**
@@ -6535,7 +6664,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6535
6664
  /**
6536
6665
  * Configuration for generated infinite query options helpers.
6537
6666
  *
6538
- * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery}
6667
+ * See {@link https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery}
6539
6668
  *
6540
6669
  * Can be:
6541
6670
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -6560,7 +6689,6 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6560
6689
  /**
6561
6690
  * Custom function to generate metadata for the operation.
6562
6691
  * Can return any valid meta object that will be included in the generated infinite query options.
6563
- *
6564
6692
  * @param operation - The operation object containing all available metadata
6565
6693
  * @returns A meta object with any properties you want to include
6566
6694
  *
@@ -6584,14 +6712,14 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6584
6712
  * Naming pattern for generated names.
6585
6713
  *
6586
6714
  * @default '{{name}}InfiniteOptions'
6587
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery
6715
+ * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery
6588
6716
  */
6589
6717
  name?: NameTransformer;
6590
6718
  };
6591
6719
  /**
6592
6720
  * Configuration for generated mutation options helpers.
6593
6721
  *
6594
- * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/createMutation}
6722
+ * See {@link https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createmutation}
6595
6723
  *
6596
6724
  * Can be:
6597
6725
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -6645,14 +6773,14 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6645
6773
  * Naming pattern for generated names.
6646
6774
  *
6647
6775
  * @default '{{name}}Mutation'
6648
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createMutation
6776
+ * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createmutation
6649
6777
  */
6650
6778
  name?: NameTransformer;
6651
6779
  };
6652
6780
  /**
6653
6781
  * Configuration for generated query keys.
6654
6782
  *
6655
- * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/queryKey}
6783
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/guides/query-keys}
6656
6784
  *
6657
6785
  * Can be:
6658
6786
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -6678,7 +6806,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6678
6806
  * Naming pattern for generated names.
6679
6807
  *
6680
6808
  * @default '{{name}}QueryKey'
6681
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/queryKey
6809
+ * @see https://tanstack.com/query/v5/docs/framework/react/guides/query-keys
6682
6810
  */
6683
6811
  name?: NameTransformer;
6684
6812
  /**
@@ -6692,7 +6820,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6692
6820
  /**
6693
6821
  * Configuration for generated query options helpers.
6694
6822
  *
6695
- * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/createQuery}
6823
+ * See {@link https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createquery}
6696
6824
  *
6697
6825
  * Can be:
6698
6826
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -6746,624 +6874,145 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6746
6874
  * Naming pattern for generated names.
6747
6875
  *
6748
6876
  * @default '{{name}}Options'
6749
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createQuery
6877
+ * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createquery
6878
+ */
6879
+ name?: NameTransformer;
6880
+ };
6881
+ /**
6882
+ * Configuration for generated `setQueryData` helpers.
6883
+ *
6884
+ * When enabled, generates a helper per query operation that wraps
6885
+ * `queryClient.setQueryData()` with the correct query key and response
6886
+ * type already wired up.
6887
+ *
6888
+ * Can be:
6889
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6890
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6891
+ * - `object`: Full configuration object
6892
+ *
6893
+ * @default false
6894
+ */
6895
+ setQueryData?: boolean | NameTransformer | {
6896
+ /**
6897
+ * Casing convention for generated names.
6898
+ *
6899
+ * @default 'camelCase'
6900
+ */
6901
+ case?: Casing;
6902
+ /**
6903
+ * Whether this feature is enabled.
6904
+ *
6905
+ * @default true
6906
+ */
6907
+ enabled?: boolean;
6908
+ /**
6909
+ * Naming pattern for generated names.
6910
+ *
6911
+ * @default '{{name}}SetQueryData'
6750
6912
  */
6751
6913
  name?: NameTransformer;
6752
6914
  };
6753
6915
  };
6754
- type Config$7 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
6916
+ type Config$6 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
6917
+ /** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated infinite query key helpers. */
6918
+ infiniteQueryKeys: NamingOptions & FeatureToggle & {
6919
+ /** Whether to include operation tags in infinite query keys. */tags: boolean;
6920
+ }; /** Resolved configuration for generated infinite query options helpers. */
6921
+ infiniteQueryOptions: NamingOptions & FeatureToggle & {
6922
+ /** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6923
+ }; /** Resolved configuration for generated mutation options helpers. */
6924
+ mutationOptions: NamingOptions & FeatureToggle & {
6925
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
6926
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6927
+ }; /** Resolved configuration for generated query keys. */
6928
+ queryKeys: NamingOptions & FeatureToggle & {
6929
+ /** Whether to include operation tags in query keys. */tags: boolean;
6930
+ }; /** Resolved configuration for generated query options helpers. */
6931
+ queryOptions: NamingOptions & FeatureToggle & {
6932
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
6933
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6934
+ }; /** Resolved configuration for generated `setQueryData` helpers. */
6935
+ setQueryData: NamingOptions & FeatureToggle;
6936
+ };
6937
+ type TanStackSvelteQueryPlugin = DefinePlugin$1<UserConfig$9, Config$6>;
6938
+ //#endregion
6939
+ //#region src/plugins/@tanstack/vue-query/types.d.ts
6940
+ type UserConfig$8 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
6755
6941
  /**
6756
6942
  * Casing convention for generated names.
6943
+ *
6944
+ * @default 'camelCase'
6757
6945
  */
6758
- case: Casing;
6946
+ case?: Casing;
6759
6947
  /**
6760
- * Resolved configuration for generated infinite query key helpers.
6948
+ * Configuration for generated infinite query key helpers.
6949
+ *
6950
+ * See {@link https://tanstack.com/query/v5/docs/framework/vue/reference/infiniteQueryOptions}
6951
+ *
6952
+ * Can be:
6953
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6954
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6955
+ * - `object`: Full configuration object
6761
6956
  *
6762
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery
6957
+ * @default true
6763
6958
  */
6764
- infiniteQueryKeys: NamingOptions & FeatureToggle & {
6959
+ infiniteQueryKeys?: boolean | NameTransformer | {
6960
+ /**
6961
+ * Casing convention for generated names.
6962
+ *
6963
+ * @default 'camelCase'
6964
+ */
6965
+ case?: Casing;
6966
+ /**
6967
+ * Whether this feature is enabled.
6968
+ *
6969
+ * @default true
6970
+ */
6971
+ enabled?: boolean;
6972
+ /**
6973
+ * Naming pattern for generated names.
6974
+ *
6975
+ * @default '{{name}}InfiniteQueryKey'
6976
+ * @see https://tanstack.com/query/v5/docs/framework/vue/reference/infiniteQueryOptions
6977
+ */
6978
+ name?: NameTransformer;
6765
6979
  /**
6766
6980
  * Whether to include operation tags in infinite query keys.
6767
6981
  * This will make query keys larger but provides better cache invalidation capabilities.
6768
6982
  *
6769
6983
  * @default false
6770
6984
  */
6771
- tags: boolean;
6985
+ tags?: boolean;
6772
6986
  };
6773
6987
  /**
6774
- * Resolved configuration for generated infinite query options helpers.
6988
+ * Configuration for generated infinite query options helpers.
6989
+ *
6990
+ * See {@link https://tanstack.com/query/v5/docs/framework/vue/reference/infiniteQueryOptions}
6991
+ *
6992
+ * Can be:
6993
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6994
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6995
+ * - `object`: Full configuration object
6775
6996
  *
6776
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery
6997
+ * @default true
6777
6998
  */
6778
- infiniteQueryOptions: NamingOptions & FeatureToggle & {
6999
+ infiniteQueryOptions?: boolean | NameTransformer | {
7000
+ /**
7001
+ * Casing convention for generated names.
7002
+ *
7003
+ * @default 'camelCase'
7004
+ */
7005
+ case?: Casing;
7006
+ /**
7007
+ * Whether this feature is enabled.
7008
+ *
7009
+ * @default true
7010
+ */
7011
+ enabled?: boolean;
6779
7012
  /**
6780
7013
  * Custom function to generate metadata for the operation.
6781
7014
  * Can return any valid meta object that will be included in the generated infinite query options.
6782
- * @param operation - The operation object containing all available metadata
6783
- * @returns A meta object with any properties you want to include
6784
- *
6785
- * @example
6786
- * ```ts
6787
- * meta: (operation) => ({
6788
- * customField: operation.id,
6789
- * isDeprecated: operation.deprecated,
6790
- * tags: operation.tags,
6791
- * customObject: {
6792
- * method: operation.method,
6793
- * path: operation.path
6794
- * }
6795
- * })
6796
- * ```
6797
- *
6798
- * @default undefined
6799
- */
6800
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6801
- };
6802
- /**
6803
- * Resolved configuration for generated mutation options helpers.
6804
- *
6805
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createMutation
6806
- */
6807
- mutationOptions: NamingOptions & FeatureToggle & {
6808
- /**
6809
- * Whether to export generated symbols.
6810
- *
6811
- * @default true
6812
- */
6813
- exported: boolean;
6814
- /**
6815
- * Custom function to generate metadata for the operation.
6816
- * Can return any valid meta object that will be included in the generated mutation options.
6817
- * @param operation - The operation object containing all available metadata
6818
- * @returns A meta object with any properties you want to include
6819
- *
6820
- * @example
6821
- * ```ts
6822
- * meta: (operation) => ({
6823
- * customField: operation.id,
6824
- * isDeprecated: operation.deprecated,
6825
- * tags: operation.tags,
6826
- * customObject: {
6827
- * method: operation.method,
6828
- * path: operation.path
6829
- * }
6830
- * })
6831
- * ```
6832
- *
6833
- * @default undefined
6834
- */
6835
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6836
- };
6837
- /**
6838
- * Resolved configuration for generated query keys.
6839
- *
6840
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/queryKey
6841
- */
6842
- queryKeys: NamingOptions & FeatureToggle & {
6843
- /**
6844
- * Whether to include operation tags in query keys.
6845
- * This will make query keys larger but provides better cache invalidation capabilities.
6846
- *
6847
- * @default false
6848
- */
6849
- tags: boolean;
6850
- };
6851
- /**
6852
- * Resolved configuration for generated query options helpers.
6853
- *
6854
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createQuery
6855
- */
6856
- queryOptions: NamingOptions & FeatureToggle & {
6857
- /**
6858
- * Whether to export generated symbols.
6859
- *
6860
- * @default true
6861
- */
6862
- exported: boolean;
6863
- /**
6864
- * Custom function to generate metadata for the operation.
6865
- * Can return any valid meta object that will be included in the generated query options.
6866
- * @param operation - The operation object containing all available metadata
6867
- * @returns A meta object with any properties you want to include
6868
- *
6869
- * @example
6870
- * ```ts
6871
- * meta: (operation) => ({
6872
- * customField: operation.id,
6873
- * isDeprecated: operation.deprecated,
6874
- * tags: operation.tags,
6875
- * customObject: {
6876
- * method: operation.method,
6877
- * path: operation.path
6878
- * }
6879
- * })
6880
- * ```
6881
- *
6882
- * @default undefined
6883
- */
6884
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6885
- };
6886
- };
6887
- type TanStackSolidQueryPlugin = DefinePlugin$1<UserConfig$10, Config$7>;
6888
- //#endregion
6889
- //#region src/plugins/@tanstack/svelte-query/types.d.ts
6890
- type UserConfig$9 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
6891
- /**
6892
- * Casing convention for generated names.
6893
- *
6894
- * @default 'camelCase'
6895
- */
6896
- case?: Casing;
6897
- /**
6898
- * Configuration for generated infinite query key helpers.
6899
- *
6900
- * See {@link https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery}
6901
- *
6902
- * Can be:
6903
- * - `boolean`: Shorthand for `{ enabled: boolean }`
6904
- * - `string` or `function`: Shorthand for `{ name: string | function }`
6905
- * - `object`: Full configuration object
6906
- *
6907
- * @default true
6908
- */
6909
- infiniteQueryKeys?: boolean | NameTransformer | {
6910
- /**
6911
- * Casing convention for generated names.
6912
- *
6913
- * @default 'camelCase'
6914
- */
6915
- case?: Casing;
6916
- /**
6917
- * Whether this feature is enabled.
6918
- *
6919
- * @default true
6920
- */
6921
- enabled?: boolean;
6922
- /**
6923
- * Naming pattern for generated names.
6924
- *
6925
- * @default '{{name}}InfiniteQueryKey'
6926
- * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery
6927
- */
6928
- name?: NameTransformer;
6929
- /**
6930
- * Whether to include operation tags in infinite query keys.
6931
- * This will make query keys larger but provides better cache invalidation capabilities.
6932
- *
6933
- * @default false
6934
- */
6935
- tags?: boolean;
6936
- };
6937
- /**
6938
- * Configuration for generated infinite query options helpers.
6939
- *
6940
- * See {@link https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery}
6941
- *
6942
- * Can be:
6943
- * - `boolean`: Shorthand for `{ enabled: boolean }`
6944
- * - `string` or `function`: Shorthand for `{ name: string | function }`
6945
- * - `object`: Full configuration object
6946
- *
6947
- * @default true
6948
- */
6949
- infiniteQueryOptions?: boolean | NameTransformer | {
6950
- /**
6951
- * Casing convention for generated names.
6952
- *
6953
- * @default 'camelCase'
6954
- */
6955
- case?: Casing;
6956
- /**
6957
- * Whether this feature is enabled.
6958
- *
6959
- * @default true
6960
- */
6961
- enabled?: boolean;
6962
- /**
6963
- * Custom function to generate metadata for the operation.
6964
- * Can return any valid meta object that will be included in the generated infinite query options.
6965
- * @param operation - The operation object containing all available metadata
6966
- * @returns A meta object with any properties you want to include
6967
- *
6968
- * @example
6969
- * ```ts
6970
- * meta: (operation) => ({
6971
- * customField: operation.id,
6972
- * isDeprecated: operation.deprecated,
6973
- * tags: operation.tags,
6974
- * customObject: {
6975
- * method: operation.method,
6976
- * path: operation.path
6977
- * }
6978
- * })
6979
- * ```
6980
- *
6981
- * @default undefined
6982
- */
6983
- meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
6984
- /**
6985
- * Naming pattern for generated names.
6986
- *
6987
- * @default '{{name}}InfiniteOptions'
6988
- * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery
6989
- */
6990
- name?: NameTransformer;
6991
- };
6992
- /**
6993
- * Configuration for generated mutation options helpers.
6994
- *
6995
- * See {@link https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createmutation}
6996
- *
6997
- * Can be:
6998
- * - `boolean`: Shorthand for `{ enabled: boolean }`
6999
- * - `string` or `function`: Shorthand for `{ name: string | function }`
7000
- * - `object`: Full configuration object
7001
- *
7002
- * @default true
7003
- */
7004
- mutationOptions?: boolean | NameTransformer | {
7005
- /**
7006
- * Casing convention for generated names.
7007
- *
7008
- * @default 'camelCase'
7009
- */
7010
- case?: Casing;
7011
- /**
7012
- * Whether this feature is enabled.
7013
- *
7014
- * @default true
7015
- */
7016
- enabled?: boolean;
7017
- /**
7018
- * Whether to export generated symbols.
7019
- *
7020
- * @default true
7021
- */
7022
- exported?: boolean;
7023
- /**
7024
- * Custom function to generate metadata for the operation.
7025
- * Can return any valid meta object that will be included in the generated mutation options.
7026
- * @param operation - The operation object containing all available metadata
7027
- * @returns A meta object with any properties you want to include
7028
- *
7029
- * @example
7030
- * ```ts
7031
- * meta: (operation) => ({
7032
- * customField: operation.id,
7033
- * isDeprecated: operation.deprecated,
7034
- * tags: operation.tags,
7035
- * customObject: {
7036
- * method: operation.method,
7037
- * path: operation.path
7038
- * }
7039
- * })
7040
- * ```
7041
- *
7042
- * @default undefined
7043
- */
7044
- meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
7045
- /**
7046
- * Naming pattern for generated names.
7047
- *
7048
- * @default '{{name}}Mutation'
7049
- * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createmutation
7050
- */
7051
- name?: NameTransformer;
7052
- };
7053
- /**
7054
- * Configuration for generated query keys.
7055
- *
7056
- * See {@link https://tanstack.com/query/v5/docs/framework/react/guides/query-keys}
7057
- *
7058
- * Can be:
7059
- * - `boolean`: Shorthand for `{ enabled: boolean }`
7060
- * - `string` or `function`: Shorthand for `{ name: string | function }`
7061
- * - `object`: Full configuration object
7062
- *
7063
- * @default true
7064
- */
7065
- queryKeys?: boolean | NameTransformer | {
7066
- /**
7067
- * Casing convention for generated names.
7068
- *
7069
- * @default 'camelCase'
7070
- */
7071
- case?: Casing;
7072
- /**
7073
- * Whether this feature is enabled.
7074
- *
7075
- * @default true
7076
- */
7077
- enabled?: boolean;
7078
- /**
7079
- * Naming pattern for generated names.
7080
- *
7081
- * @default '{{name}}QueryKey'
7082
- * @see https://tanstack.com/query/v5/docs/framework/react/guides/query-keys
7083
- */
7084
- name?: NameTransformer;
7085
- /**
7086
- * Whether to include operation tags in query keys.
7087
- * This will make query keys larger but provides better cache invalidation capabilities.
7088
- *
7089
- * @default false
7090
- */
7091
- tags?: boolean;
7092
- };
7093
- /**
7094
- * Configuration for generated query options helpers.
7095
- *
7096
- * See {@link https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createquery}
7097
- *
7098
- * Can be:
7099
- * - `boolean`: Shorthand for `{ enabled: boolean }`
7100
- * - `string` or `function`: Shorthand for `{ name: string | function }`
7101
- * - `object`: Full configuration object
7102
- *
7103
- * @default true
7104
- */
7105
- queryOptions?: boolean | NameTransformer | {
7106
- /**
7107
- * Casing convention for generated names.
7108
- *
7109
- * @default 'camelCase'
7110
- */
7111
- case?: Casing;
7112
- /**
7113
- * Whether this feature is enabled.
7114
- *
7115
- * @default true
7116
- */
7117
- enabled?: boolean;
7118
- /**
7119
- * Whether to export generated symbols.
7120
- *
7121
- * @default true
7122
- */
7123
- exported?: boolean;
7124
- /**
7125
- * Custom function to generate metadata for the operation.
7126
- * Can return any valid meta object that will be included in the generated query options.
7127
- * @param operation - The operation object containing all available metadata
7128
- * @returns A meta object with any properties you want to include
7129
- *
7130
- * @example
7131
- * ```ts
7132
- * meta: (operation) => ({
7133
- * customField: operation.id,
7134
- * isDeprecated: operation.deprecated,
7135
- * tags: operation.tags,
7136
- * customObject: {
7137
- * method: operation.method,
7138
- * path: operation.path
7139
- * }
7140
- * })
7141
- * ```
7142
- *
7143
- * @default undefined
7144
- */
7145
- meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
7146
- /**
7147
- * Naming pattern for generated names.
7148
- *
7149
- * @default '{{name}}Options'
7150
- * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createquery
7151
- */
7152
- name?: NameTransformer;
7153
- };
7154
- };
7155
- type Config$6 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
7156
- /**
7157
- * Casing convention for generated names.
7158
- */
7159
- case: Casing;
7160
- /**
7161
- * Resolved configuration for generated infinite query key helpers.
7162
- *
7163
- * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery
7164
- */
7165
- infiniteQueryKeys: NamingOptions & FeatureToggle & {
7166
- /**
7167
- * Whether to include operation tags in infinite query keys.
7168
- * This will make query keys larger but provides better cache invalidation capabilities.
7169
- *
7170
- * @default false
7171
- */
7172
- tags: boolean;
7173
- };
7174
- /**
7175
- * Resolved configuration for generated infinite query options helpers.
7176
- *
7177
- * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery
7178
- */
7179
- infiniteQueryOptions: NamingOptions & FeatureToggle & {
7180
- /**
7181
- * Custom function to generate metadata for the operation.
7182
- * Can return any valid meta object that will be included in the generated infinite query options.
7183
- * @param operation - The operation object containing all available metadata
7184
- * @returns A meta object with any properties you want to include
7185
- *
7186
- * @example
7187
- * ```ts
7188
- * meta: (operation) => ({
7189
- * customField: operation.id,
7190
- * isDeprecated: operation.deprecated,
7191
- * tags: operation.tags,
7192
- * customObject: {
7193
- * method: operation.method,
7194
- * path: operation.path
7195
- * }
7196
- * })
7197
- * ```
7198
- *
7199
- * @default undefined
7200
- */
7201
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
7202
- };
7203
- /**
7204
- * Resolved configuration for generated mutation options helpers.
7205
- *
7206
- * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createmutation
7207
- */
7208
- mutationOptions: NamingOptions & FeatureToggle & {
7209
- /**
7210
- * Whether to export generated symbols.
7211
- *
7212
- * @default true
7213
- */
7214
- exported: boolean;
7215
- /**
7216
- * Custom function to generate metadata for the operation.
7217
- * Can return any valid meta object that will be included in the generated mutation options.
7218
- * @param operation - The operation object containing all available metadata
7219
- * @returns A meta object with any properties you want to include
7220
- *
7221
- * @example
7222
- * ```ts
7223
- * meta: (operation) => ({
7224
- * customField: operation.id,
7225
- * isDeprecated: operation.deprecated,
7226
- * tags: operation.tags,
7227
- * customObject: {
7228
- * method: operation.method,
7229
- * path: operation.path
7230
- * }
7231
- * })
7232
- * ```
7233
- *
7234
- * @default undefined
7235
- */
7236
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
7237
- };
7238
- /**
7239
- * Resolved configuration for generated query keys.
7240
- *
7241
- * @see https://tanstack.com/query/v5/docs/framework/react/guides/query-keys
7242
- */
7243
- queryKeys: NamingOptions & FeatureToggle & {
7244
- /**
7245
- * Whether to include operation tags in query keys.
7246
- * This will make query keys larger but provides better cache invalidation capabilities.
7247
- *
7248
- * @default false
7249
- */
7250
- tags: boolean;
7251
- };
7252
- /**
7253
- * Resolved configuration for generated query options helpers.
7254
- *
7255
- * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createquery
7256
- */
7257
- queryOptions: NamingOptions & FeatureToggle & {
7258
- /**
7259
- * Whether to export generated symbols.
7260
- *
7261
- * @default true
7262
- */
7263
- exported: boolean;
7264
- /**
7265
- * Custom function to generate metadata for the operation.
7266
- * Can return any valid meta object that will be included in the generated query options.
7267
- * @param operation - The operation object containing all available metadata
7268
- * @returns A meta object with any properties you want to include
7269
- *
7270
- * @example
7271
- * ```ts
7272
- * meta: (operation) => ({
7273
- * customField: operation.id,
7274
- * isDeprecated: operation.deprecated,
7275
- * tags: operation.tags,
7276
- * customObject: {
7277
- * method: operation.method,
7278
- * path: operation.path
7279
- * }
7280
- * })
7281
- * ```
7282
- *
7283
- * @default undefined
7284
- */
7285
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
7286
- };
7287
- };
7288
- type TanStackSvelteQueryPlugin = DefinePlugin$1<UserConfig$9, Config$6>;
7289
- //#endregion
7290
- //#region src/plugins/@tanstack/vue-query/types.d.ts
7291
- type UserConfig$8 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
7292
- /**
7293
- * Casing convention for generated names.
7294
- *
7295
- * @default 'camelCase'
7296
- */
7297
- case?: Casing;
7298
- /**
7299
- * Configuration for generated infinite query key helpers.
7300
- *
7301
- * See {@link https://tanstack.com/query/v5/docs/framework/vue/reference/infiniteQueryOptions}
7302
- *
7303
- * Can be:
7304
- * - `boolean`: Shorthand for `{ enabled: boolean }`
7305
- * - `string` or `function`: Shorthand for `{ name: string | function }`
7306
- * - `object`: Full configuration object
7307
- *
7308
- * @default true
7309
- */
7310
- infiniteQueryKeys?: boolean | NameTransformer | {
7311
- /**
7312
- * Casing convention for generated names.
7313
- *
7314
- * @default 'camelCase'
7315
- */
7316
- case?: Casing;
7317
- /**
7318
- * Whether this feature is enabled.
7319
- *
7320
- * @default true
7321
- */
7322
- enabled?: boolean;
7323
- /**
7324
- * Naming pattern for generated names.
7325
- *
7326
- * @default '{{name}}InfiniteQueryKey'
7327
- * @see https://tanstack.com/query/v5/docs/framework/vue/reference/infiniteQueryOptions
7328
- */
7329
- name?: NameTransformer;
7330
- /**
7331
- * Whether to include operation tags in infinite query keys.
7332
- * This will make query keys larger but provides better cache invalidation capabilities.
7333
- *
7334
- * @default false
7335
- */
7336
- tags?: boolean;
7337
- };
7338
- /**
7339
- * Configuration for generated infinite query options helpers.
7340
- *
7341
- * See {@link https://tanstack.com/query/v5/docs/framework/vue/reference/infiniteQueryOptions}
7342
- *
7343
- * Can be:
7344
- * - `boolean`: Shorthand for `{ enabled: boolean }`
7345
- * - `string` or `function`: Shorthand for `{ name: string | function }`
7346
- * - `object`: Full configuration object
7347
- *
7348
- * @default true
7349
- */
7350
- infiniteQueryOptions?: boolean | NameTransformer | {
7351
- /**
7352
- * Casing convention for generated names.
7353
- *
7354
- * @default 'camelCase'
7355
- */
7356
- case?: Casing;
7357
- /**
7358
- * Whether this feature is enabled.
7359
- *
7360
- * @default true
7361
- */
7362
- enabled?: boolean;
7363
- /**
7364
- * Custom function to generate metadata for the operation.
7365
- * Can return any valid meta object that will be included in the generated infinite query options.
7366
- *
7015
+ *
7367
7016
  * @param operation - The operation object containing all available metadata
7368
7017
  * @returns A meta object with any properties you want to include
7369
7018
  *
@@ -7555,142 +7204,61 @@ type UserConfig$8 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plug
7555
7204
  */
7556
7205
  name?: NameTransformer;
7557
7206
  };
7558
- };
7559
- type Config$5 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
7560
- /**
7561
- * Casing convention for generated names.
7562
- */
7563
- case: Casing;
7564
7207
  /**
7565
- * Resolved configuration for generated infinite query key helpers.
7208
+ * Configuration for generated `setQueryData` helpers.
7566
7209
  *
7567
- * @see https://tanstack.com/query/v5/docs/framework/vue/reference/infiniteQueryOptions
7568
- */
7569
- infiniteQueryKeys: NamingOptions & FeatureToggle & {
7570
- /**
7571
- * Whether to include operation tags in infinite query keys.
7572
- * This will make query keys larger but provides better cache invalidation capabilities.
7573
- *
7574
- * @default false
7575
- */
7576
- tags: boolean;
7577
- };
7578
- /**
7579
- * Resolved configuration for generated infinite query options helpers.
7210
+ * When enabled, generates a helper per query operation that wraps
7211
+ * `queryClient.setQueryData()` with the correct query key and response
7212
+ * type already wired up.
7213
+ *
7214
+ * Can be:
7215
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
7216
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
7217
+ * - `object`: Full configuration object
7580
7218
  *
7581
- * @see https://tanstack.com/query/v5/docs/framework/vue/reference/infiniteQueryOptions
7219
+ * @default false
7582
7220
  */
7583
- infiniteQueryOptions: NamingOptions & FeatureToggle & {
7221
+ setQueryData?: boolean | NameTransformer | {
7584
7222
  /**
7585
- * Custom function to generate metadata for the operation.
7586
- * Can return any valid meta object that will be included in the generated infinite query options.
7587
- *
7588
- * @param operation - The operation object containing all available metadata
7589
- * @returns A meta object with any properties you want to include
7590
- *
7591
- * @example
7592
- * ```ts
7593
- * meta: (operation) => ({
7594
- * customField: operation.id,
7595
- * isDeprecated: operation.deprecated,
7596
- * tags: operation.tags,
7597
- * customObject: {
7598
- * method: operation.method,
7599
- * path: operation.path
7600
- * }
7601
- * })
7602
- * ```
7223
+ * Casing convention for generated names.
7603
7224
  *
7604
- * @default undefined
7225
+ * @default 'camelCase'
7605
7226
  */
7606
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
7607
- };
7608
- /**
7609
- * Resolved configuration for generated mutation options helpers.
7610
- *
7611
- * @see https://tanstack.com/query/v5/docs/framework/vue/reference/useMutation
7612
- */
7613
- mutationOptions: NamingOptions & FeatureToggle & {
7227
+ case?: Casing;
7614
7228
  /**
7615
- * Whether to export generated symbols.
7229
+ * Whether this feature is enabled.
7616
7230
  *
7617
7231
  * @default true
7618
7232
  */
7619
- exported: boolean;
7233
+ enabled?: boolean;
7620
7234
  /**
7621
- * Custom function to generate metadata for the operation.
7622
- * Can return any valid meta object that will be included in the generated mutation options.
7623
- *
7624
- * @param operation - The operation object containing all available metadata
7625
- * @returns A meta object with any properties you want to include
7626
- *
7627
- * @example
7628
- * ```ts
7629
- * meta: (operation) => ({
7630
- * customField: operation.id,
7631
- * isDeprecated: operation.deprecated,
7632
- * tags: operation.tags,
7633
- * customObject: {
7634
- * method: operation.method,
7635
- * path: operation.path
7636
- * }
7637
- * })
7638
- * ```
7235
+ * Naming pattern for generated names.
7639
7236
  *
7640
- * @default undefined
7237
+ * @default '{{name}}SetQueryData'
7641
7238
  */
7642
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
7239
+ name?: NameTransformer;
7643
7240
  };
7644
- /**
7645
- * Resolved configuration for generated query keys.
7646
- *
7647
- * @see https://tanstack.com/query/v5/docs/framework/vue/reference/queryKey
7648
- */
7241
+ };
7242
+ type Config$5 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
7243
+ /** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated infinite query key helpers. */
7244
+ infiniteQueryKeys: NamingOptions & FeatureToggle & {
7245
+ /** Whether to include operation tags in infinite query keys. */tags: boolean;
7246
+ }; /** Resolved configuration for generated infinite query options helpers. */
7247
+ infiniteQueryOptions: NamingOptions & FeatureToggle & {
7248
+ /** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
7249
+ }; /** Resolved configuration for generated mutation options helpers. */
7250
+ mutationOptions: NamingOptions & FeatureToggle & {
7251
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
7252
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
7253
+ }; /** Resolved configuration for generated query keys. */
7649
7254
  queryKeys: NamingOptions & FeatureToggle & {
7650
- /**
7651
- * Whether to include operation tags in query keys.
7652
- * This will make query keys larger but provides better cache invalidation capabilities.
7653
- *
7654
- * @default false
7655
- */
7656
- tags: boolean;
7657
- };
7658
- /**
7659
- * Resolved configuration for generated query options helpers.
7660
- *
7661
- * @see https://tanstack.com/query/v5/docs/framework/vue/reference/queryOptions
7662
- */
7255
+ /** Whether to include operation tags in query keys. */tags: boolean;
7256
+ }; /** Resolved configuration for generated query options helpers. */
7663
7257
  queryOptions: NamingOptions & FeatureToggle & {
7664
- /**
7665
- * Whether to export generated symbols.
7666
- *
7667
- * @default true
7668
- */
7669
- exported: boolean;
7670
- /**
7671
- * Custom function to generate metadata for the operation.
7672
- * Can return any valid meta object that will be included in the generated query options.
7673
- *
7674
- * @param operation - The operation object containing all available metadata
7675
- * @returns A meta object with any properties you want to include
7676
- *
7677
- * @example
7678
- * ```ts
7679
- * meta: (operation) => ({
7680
- * customField: operation.id,
7681
- * isDeprecated: operation.deprecated,
7682
- * tags: operation.tags,
7683
- * customObject: {
7684
- * method: operation.method,
7685
- * path: operation.path
7686
- * }
7687
- * })
7688
- * ```
7689
- *
7690
- * @default undefined
7691
- */
7258
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
7692
7259
  meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
7693
- };
7260
+ }; /** Resolved configuration for generated `setQueryData` helpers. */
7261
+ setQueryData: NamingOptions & FeatureToggle;
7694
7262
  };
7695
7263
  type TanStackVueQueryPlugin = DefinePlugin$1<UserConfig$8, Config$5>;
7696
7264
  //#endregion
@@ -9561,6 +9129,8 @@ type ValidatorArgs = {
9561
9129
  type TypeOptions = {
9562
9130
  types: {
9563
9131
  infer: NamingOptions & FeatureToggle;
9132
+ input: NamingOptions & FeatureToggle;
9133
+ output: NamingOptions & FeatureToggle;
9564
9134
  };
9565
9135
  };
9566
9136
  /**
@@ -9573,6 +9143,8 @@ interface ZodMeta {
9573
9143
  format?: string;
9574
9144
  /** Whether this or any child contains a lazy reference. */
9575
9145
  hasLazy: boolean;
9146
+ /** Whether this schema generates a ZodIntersection (e.g. via allOf). */
9147
+ isIntersection: boolean;
9576
9148
  /** Whether this schema itself is emitted as lazy. */
9577
9149
  isLazy: boolean;
9578
9150
  /** Whether this schema resolves to an object shape. */
@@ -9860,8 +9432,7 @@ interface IntersectionResolverContext extends BaseContext {
9860
9432
  };
9861
9433
  parentSchema: IR$1.SchemaObject;
9862
9434
  schema: IR$1.SchemaObject;
9863
- walk: Walker<ZodResult, ZodPlugin['Instance']>;
9864
- walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
9435
+ schemas: ReadonlyArray<IR$1.SchemaObject>;
9865
9436
  }
9866
9437
  interface NeverResolverContext extends BaseContext {
9867
9438
  /**
@@ -10033,8 +9604,6 @@ interface UnionResolverContext extends BaseContext {
10033
9604
  parentSchema: IR$1.SchemaObject;
10034
9605
  schema: IR$1.SchemaObject;
10035
9606
  schemas: ReadonlyArray<IR$1.SchemaObject>;
10036
- walk: Walker<ZodResult, ZodPlugin['Instance']>;
10037
- walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
10038
9607
  }
10039
9608
  interface UnknownResolverContext extends BaseContext {
10040
9609
  /**
@@ -10209,7 +9778,67 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
10209
9778
  *
10210
9779
  * @default false
10211
9780
  */
10212
- infer?: boolean | NameTransformer | {
9781
+ infer?: boolean | NameTransformer | {
9782
+ /**
9783
+ * Casing convention for generated names.
9784
+ *
9785
+ * @default 'PascalCase'
9786
+ */
9787
+ case?: Casing;
9788
+ /**
9789
+ * Whether this feature is enabled.
9790
+ *
9791
+ * @default true
9792
+ */
9793
+ enabled?: boolean;
9794
+ /**
9795
+ * Naming pattern for generated names.
9796
+ *
9797
+ * @default '{{name}}ZodType'
9798
+ */
9799
+ name?: NameTransformer;
9800
+ };
9801
+ /**
9802
+ * Configuration for `input` types.
9803
+ *
9804
+ * Can be:
9805
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
9806
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
9807
+ * - `object`: Full configuration object
9808
+ *
9809
+ * @default false
9810
+ */
9811
+ input?: boolean | NameTransformer | {
9812
+ /**
9813
+ * Casing convention for generated names.
9814
+ *
9815
+ * @default 'PascalCase'
9816
+ */
9817
+ case?: Casing;
9818
+ /**
9819
+ * Whether this feature is enabled.
9820
+ *
9821
+ * @default true
9822
+ */
9823
+ enabled?: boolean;
9824
+ /**
9825
+ * Naming pattern for generated names.
9826
+ *
9827
+ * @default '{{name}}ZodInput'
9828
+ */
9829
+ name?: NameTransformer;
9830
+ };
9831
+ /**
9832
+ * Configuration for `output` types.
9833
+ *
9834
+ * Can be:
9835
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
9836
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
9837
+ * - `object`: Full configuration object
9838
+ *
9839
+ * @default false
9840
+ */
9841
+ output?: boolean | NameTransformer | {
10213
9842
  /**
10214
9843
  * Casing convention for generated names.
10215
9844
  *
@@ -10225,7 +9854,7 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
10225
9854
  /**
10226
9855
  * Naming pattern for generated names.
10227
9856
  *
10228
- * @default '{{name}}ZodType'
9857
+ * @default '{{name}}ZodOutput'
10229
9858
  */
10230
9859
  name?: NameTransformer;
10231
9860
  };
@@ -10331,6 +9960,66 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
10331
9960
  */
10332
9961
  name?: NameTransformer;
10333
9962
  };
9963
+ /**
9964
+ * Configuration for `input` types.
9965
+ *
9966
+ * Can be:
9967
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
9968
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
9969
+ * - `object`: Full configuration object
9970
+ *
9971
+ * @default false
9972
+ */
9973
+ input?: boolean | NameTransformer | {
9974
+ /**
9975
+ * Casing convention for generated names.
9976
+ *
9977
+ * @default 'PascalCase'
9978
+ */
9979
+ case?: Casing;
9980
+ /**
9981
+ * Whether this feature is enabled.
9982
+ *
9983
+ * @default true
9984
+ */
9985
+ enabled?: boolean;
9986
+ /**
9987
+ * Naming pattern for generated names.
9988
+ *
9989
+ * @default '{{name}}BodyZodInput'
9990
+ */
9991
+ name?: NameTransformer;
9992
+ };
9993
+ /**
9994
+ * Configuration for `output` types.
9995
+ *
9996
+ * Can be:
9997
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
9998
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
9999
+ * - `object`: Full configuration object
10000
+ *
10001
+ * @default false
10002
+ */
10003
+ output?: boolean | NameTransformer | {
10004
+ /**
10005
+ * Casing convention for generated names.
10006
+ *
10007
+ * @default 'PascalCase'
10008
+ */
10009
+ case?: Casing;
10010
+ /**
10011
+ * Whether this feature is enabled.
10012
+ *
10013
+ * @default true
10014
+ */
10015
+ enabled?: boolean;
10016
+ /**
10017
+ * Naming pattern for generated names.
10018
+ *
10019
+ * @default '{{name}}BodyZodOutput'
10020
+ */
10021
+ name?: NameTransformer;
10022
+ };
10334
10023
  };
10335
10024
  };
10336
10025
  /**
@@ -10410,6 +10099,66 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
10410
10099
  */
10411
10100
  name?: NameTransformer;
10412
10101
  };
10102
+ /**
10103
+ * Configuration for `input` types.
10104
+ *
10105
+ * Can be:
10106
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
10107
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
10108
+ * - `object`: Full configuration object
10109
+ *
10110
+ * @default false
10111
+ */
10112
+ input?: boolean | NameTransformer | {
10113
+ /**
10114
+ * Casing convention for generated names.
10115
+ *
10116
+ * @default 'PascalCase'
10117
+ */
10118
+ case?: Casing;
10119
+ /**
10120
+ * Whether this feature is enabled.
10121
+ *
10122
+ * @default true
10123
+ */
10124
+ enabled?: boolean;
10125
+ /**
10126
+ * Naming pattern for generated names.
10127
+ *
10128
+ * @default '{{name}}HeadersZodInput'
10129
+ */
10130
+ name?: NameTransformer;
10131
+ };
10132
+ /**
10133
+ * Configuration for `output` types.
10134
+ *
10135
+ * Can be:
10136
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
10137
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
10138
+ * - `object`: Full configuration object
10139
+ *
10140
+ * @default false
10141
+ */
10142
+ output?: boolean | NameTransformer | {
10143
+ /**
10144
+ * Casing convention for generated names.
10145
+ *
10146
+ * @default 'PascalCase'
10147
+ */
10148
+ case?: Casing;
10149
+ /**
10150
+ * Whether this feature is enabled.
10151
+ *
10152
+ * @default true
10153
+ */
10154
+ enabled?: boolean;
10155
+ /**
10156
+ * Naming pattern for generated names.
10157
+ *
10158
+ * @default '{{name}}HeadersZodOutput'
10159
+ */
10160
+ name?: NameTransformer;
10161
+ };
10413
10162
  };
10414
10163
  };
10415
10164
  /**
@@ -10454,7 +10203,164 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
10454
10203
  */
10455
10204
  types?: {
10456
10205
  /**
10457
- * Configuration for `infer` types.
10206
+ * Configuration for `infer` types.
10207
+ *
10208
+ * Can be:
10209
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
10210
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
10211
+ * - `object`: Full configuration object
10212
+ *
10213
+ * @default false
10214
+ */
10215
+ infer?: boolean | NameTransformer | {
10216
+ /**
10217
+ * Casing convention for generated names.
10218
+ *
10219
+ * @default 'PascalCase'
10220
+ */
10221
+ case?: Casing;
10222
+ /**
10223
+ * Whether this feature is enabled.
10224
+ *
10225
+ * @default true
10226
+ */
10227
+ enabled?: boolean;
10228
+ /**
10229
+ * Naming pattern for generated names.
10230
+ *
10231
+ * @default '{{name}}PathZodType'
10232
+ */
10233
+ name?: NameTransformer;
10234
+ };
10235
+ /**
10236
+ * Configuration for `input` types.
10237
+ *
10238
+ * Can be:
10239
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
10240
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
10241
+ * - `object`: Full configuration object
10242
+ *
10243
+ * @default false
10244
+ */
10245
+ input?: boolean | NameTransformer | {
10246
+ /**
10247
+ * Casing convention for generated names.
10248
+ *
10249
+ * @default 'PascalCase'
10250
+ */
10251
+ case?: Casing;
10252
+ /**
10253
+ * Whether this feature is enabled.
10254
+ *
10255
+ * @default true
10256
+ */
10257
+ enabled?: boolean;
10258
+ /**
10259
+ * Naming pattern for generated names.
10260
+ *
10261
+ * @default '{{name}}PathZodInput'
10262
+ */
10263
+ name?: NameTransformer;
10264
+ };
10265
+ /**
10266
+ * Configuration for `output` types.
10267
+ *
10268
+ * Can be:
10269
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
10270
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
10271
+ * - `object`: Full configuration object
10272
+ *
10273
+ * @default false
10274
+ */
10275
+ output?: boolean | NameTransformer | {
10276
+ /**
10277
+ * Casing convention for generated names.
10278
+ *
10279
+ * @default 'PascalCase'
10280
+ */
10281
+ case?: Casing;
10282
+ /**
10283
+ * Whether this feature is enabled.
10284
+ *
10285
+ * @default true
10286
+ */
10287
+ enabled?: boolean;
10288
+ /**
10289
+ * Naming pattern for generated names.
10290
+ *
10291
+ * @default '{{name}}PathZodOutput'
10292
+ */
10293
+ name?: NameTransformer;
10294
+ };
10295
+ };
10296
+ };
10297
+ /**
10298
+ * Configuration for request query parameters Zod schemas.
10299
+ *
10300
+ * Can be:
10301
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
10302
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
10303
+ * - `object`: Full configuration object
10304
+ *
10305
+ * @default true
10306
+ */
10307
+ query?: boolean | NameTransformer | {
10308
+ /**
10309
+ * Casing convention for generated names.
10310
+ *
10311
+ * @default 'camelCase'
10312
+ */
10313
+ case?: Casing;
10314
+ /**
10315
+ * Whether this feature is enabled.
10316
+ *
10317
+ * @default true
10318
+ */
10319
+ enabled?: boolean;
10320
+ /**
10321
+ * Naming pattern for generated names.
10322
+ *
10323
+ * @default 'z{{name}}Query'
10324
+ */
10325
+ name?: NameTransformer;
10326
+ /**
10327
+ * Configuration for TypeScript type generation from Zod schemas.
10328
+ *
10329
+ * Controls generation of TypeScript types based on the generated Zod schemas.
10330
+ */
10331
+ types?: {
10332
+ /**
10333
+ * Configuration for `infer` types.
10334
+ *
10335
+ * Can be:
10336
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
10337
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
10338
+ * - `object`: Full configuration object
10339
+ *
10340
+ * @default false
10341
+ */
10342
+ infer?: boolean | NameTransformer | {
10343
+ /**
10344
+ * Casing convention for generated names.
10345
+ *
10346
+ * @default 'PascalCase'
10347
+ */
10348
+ case?: Casing;
10349
+ /**
10350
+ * Whether this feature is enabled.
10351
+ *
10352
+ * @default true
10353
+ */
10354
+ enabled?: boolean;
10355
+ /**
10356
+ * Naming pattern for generated names.
10357
+ *
10358
+ * @default '{{name}}QueryZodType'
10359
+ */
10360
+ name?: NameTransformer;
10361
+ };
10362
+ /**
10363
+ * Configuration for `input` types.
10458
10364
  *
10459
10365
  * Can be:
10460
10366
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -10463,7 +10369,7 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
10463
10369
  *
10464
10370
  * @default false
10465
10371
  */
10466
- infer?: boolean | NameTransformer | {
10372
+ input?: boolean | NameTransformer | {
10467
10373
  /**
10468
10374
  * Casing convention for generated names.
10469
10375
  *
@@ -10479,49 +10385,12 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
10479
10385
  /**
10480
10386
  * Naming pattern for generated names.
10481
10387
  *
10482
- * @default '{{name}}PathZodType'
10388
+ * @default '{{name}}QueryZodInput'
10483
10389
  */
10484
10390
  name?: NameTransformer;
10485
10391
  };
10486
- };
10487
- };
10488
- /**
10489
- * Configuration for request query parameters Zod schemas.
10490
- *
10491
- * Can be:
10492
- * - `boolean`: Shorthand for `{ enabled: boolean }`
10493
- * - `string` or `function`: Shorthand for `{ name: string | function }`
10494
- * - `object`: Full configuration object
10495
- *
10496
- * @default true
10497
- */
10498
- query?: boolean | NameTransformer | {
10499
- /**
10500
- * Casing convention for generated names.
10501
- *
10502
- * @default 'camelCase'
10503
- */
10504
- case?: Casing;
10505
- /**
10506
- * Whether this feature is enabled.
10507
- *
10508
- * @default true
10509
- */
10510
- enabled?: boolean;
10511
- /**
10512
- * Naming pattern for generated names.
10513
- *
10514
- * @default 'z{{name}}Query'
10515
- */
10516
- name?: NameTransformer;
10517
- /**
10518
- * Configuration for TypeScript type generation from Zod schemas.
10519
- *
10520
- * Controls generation of TypeScript types based on the generated Zod schemas.
10521
- */
10522
- types?: {
10523
10392
  /**
10524
- * Configuration for `infer` types.
10393
+ * Configuration for `output` types.
10525
10394
  *
10526
10395
  * Can be:
10527
10396
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -10530,7 +10399,7 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
10530
10399
  *
10531
10400
  * @default false
10532
10401
  */
10533
- infer?: boolean | NameTransformer | {
10402
+ output?: boolean | NameTransformer | {
10534
10403
  /**
10535
10404
  * Casing convention for generated names.
10536
10405
  *
@@ -10546,7 +10415,7 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
10546
10415
  /**
10547
10416
  * Naming pattern for generated names.
10548
10417
  *
10549
- * @default '{{name}}QueryZodType'
10418
+ * @default '{{name}}QueryZodOutput'
10550
10419
  */
10551
10420
  name?: NameTransformer;
10552
10421
  };
@@ -10614,6 +10483,66 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
10614
10483
  */
10615
10484
  name?: NameTransformer;
10616
10485
  };
10486
+ /**
10487
+ * Configuration for `input` types.
10488
+ *
10489
+ * Can be:
10490
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
10491
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
10492
+ * - `object`: Full configuration object
10493
+ *
10494
+ * @default false
10495
+ */
10496
+ input?: boolean | NameTransformer | {
10497
+ /**
10498
+ * Casing convention for generated names.
10499
+ *
10500
+ * @default 'PascalCase'
10501
+ */
10502
+ case?: Casing;
10503
+ /**
10504
+ * Whether this feature is enabled.
10505
+ *
10506
+ * @default true
10507
+ */
10508
+ enabled?: boolean;
10509
+ /**
10510
+ * Naming pattern for generated names.
10511
+ *
10512
+ * @default '{{name}}DataZodInput'
10513
+ */
10514
+ name?: NameTransformer;
10515
+ };
10516
+ /**
10517
+ * Configuration for `output` types.
10518
+ *
10519
+ * Can be:
10520
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
10521
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
10522
+ * - `object`: Full configuration object
10523
+ *
10524
+ * @default false
10525
+ */
10526
+ output?: boolean | NameTransformer | {
10527
+ /**
10528
+ * Casing convention for generated names.
10529
+ *
10530
+ * @default 'PascalCase'
10531
+ */
10532
+ case?: Casing;
10533
+ /**
10534
+ * Whether this feature is enabled.
10535
+ *
10536
+ * @default true
10537
+ */
10538
+ enabled?: boolean;
10539
+ /**
10540
+ * Naming pattern for generated names.
10541
+ *
10542
+ * @default '{{name}}DataZodOutput'
10543
+ */
10544
+ name?: NameTransformer;
10545
+ };
10617
10546
  };
10618
10547
  };
10619
10548
  /**
@@ -10684,6 +10613,66 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
10684
10613
  */
10685
10614
  name?: NameTransformer;
10686
10615
  };
10616
+ /**
10617
+ * Configuration for `input` types.
10618
+ *
10619
+ * Can be:
10620
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
10621
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
10622
+ * - `object`: Full configuration object
10623
+ *
10624
+ * @default false
10625
+ */
10626
+ input?: boolean | NameTransformer | {
10627
+ /**
10628
+ * Casing convention for generated names.
10629
+ *
10630
+ * @default 'PascalCase'
10631
+ */
10632
+ case?: Casing;
10633
+ /**
10634
+ * Whether this feature is enabled.
10635
+ *
10636
+ * @default true
10637
+ */
10638
+ enabled?: boolean;
10639
+ /**
10640
+ * Naming pattern for generated names.
10641
+ *
10642
+ * @default '{{name}}ResponseZodInput'
10643
+ */
10644
+ name?: NameTransformer;
10645
+ };
10646
+ /**
10647
+ * Configuration for `output` types.
10648
+ *
10649
+ * Can be:
10650
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
10651
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
10652
+ * - `object`: Full configuration object
10653
+ *
10654
+ * @default false
10655
+ */
10656
+ output?: boolean | NameTransformer | {
10657
+ /**
10658
+ * Casing convention for generated names.
10659
+ *
10660
+ * @default 'PascalCase'
10661
+ */
10662
+ case?: Casing;
10663
+ /**
10664
+ * Whether this feature is enabled.
10665
+ *
10666
+ * @default true
10667
+ */
10668
+ enabled?: boolean;
10669
+ /**
10670
+ * Naming pattern for generated names.
10671
+ *
10672
+ * @default '{{name}}ResponseZodOutput'
10673
+ */
10674
+ name?: NameTransformer;
10675
+ };
10687
10676
  };
10688
10677
  };
10689
10678
  /**
@@ -10697,12 +10686,57 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
10697
10686
  *
10698
10687
  * Can be:
10699
10688
  * - `boolean`: Shorthand for `{ enabled: boolean }`
10700
- * - `string` or `function`: Shorthand for `{ name: string | function }`
10701
10689
  * - `object`: Full configuration object
10702
10690
  *
10703
10691
  * @default false
10704
10692
  */
10705
- infer?: boolean | NameTransformer | {
10693
+ infer?: boolean | {
10694
+ /**
10695
+ * Casing convention for generated names.
10696
+ *
10697
+ * @default 'PascalCase'
10698
+ */
10699
+ case?: Casing;
10700
+ /**
10701
+ * Whether this feature is enabled.
10702
+ *
10703
+ * @default true
10704
+ */
10705
+ enabled?: boolean;
10706
+ };
10707
+ /**
10708
+ * Configuration for `input` types.
10709
+ *
10710
+ * Can be:
10711
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
10712
+ * - `object`: Full configuration object
10713
+ *
10714
+ * @default false
10715
+ */
10716
+ input?: boolean | {
10717
+ /**
10718
+ * Casing convention for generated names.
10719
+ *
10720
+ * @default 'PascalCase'
10721
+ */
10722
+ case?: Casing;
10723
+ /**
10724
+ * Whether this feature is enabled.
10725
+ *
10726
+ * @default true
10727
+ */
10728
+ enabled?: boolean;
10729
+ };
10730
+ /**
10731
+ * Configuration for `output` types.
10732
+ *
10733
+ * Can be:
10734
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
10735
+ * - `object`: Full configuration object
10736
+ *
10737
+ * @default false
10738
+ */
10739
+ output?: boolean | {
10706
10740
  /**
10707
10741
  * Casing convention for generated names.
10708
10742
  *
@@ -10784,6 +10818,66 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
10784
10818
  */
10785
10819
  name?: NameTransformer;
10786
10820
  };
10821
+ /**
10822
+ * Configuration for `input` types.
10823
+ *
10824
+ * Can be:
10825
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
10826
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
10827
+ * - `object`: Full configuration object
10828
+ *
10829
+ * @default false
10830
+ */
10831
+ input?: boolean | NameTransformer | {
10832
+ /**
10833
+ * Casing convention for generated names.
10834
+ *
10835
+ * @default 'PascalCase'
10836
+ */
10837
+ case?: Casing;
10838
+ /**
10839
+ * Whether this feature is enabled.
10840
+ *
10841
+ * @default true
10842
+ */
10843
+ enabled?: boolean;
10844
+ /**
10845
+ * Naming pattern for generated names.
10846
+ *
10847
+ * @default '{{name}}WebhookRequestZodInput'
10848
+ */
10849
+ name?: NameTransformer;
10850
+ };
10851
+ /**
10852
+ * Configuration for `output` types.
10853
+ *
10854
+ * Can be:
10855
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
10856
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
10857
+ * - `object`: Full configuration object
10858
+ *
10859
+ * @default false
10860
+ */
10861
+ output?: boolean | NameTransformer | {
10862
+ /**
10863
+ * Casing convention for generated names.
10864
+ *
10865
+ * @default 'PascalCase'
10866
+ */
10867
+ case?: Casing;
10868
+ /**
10869
+ * Whether this feature is enabled.
10870
+ *
10871
+ * @default true
10872
+ */
10873
+ enabled?: boolean;
10874
+ /**
10875
+ * Naming pattern for generated names.
10876
+ *
10877
+ * @default '{{name}}WebhookRequestZodOutput'
10878
+ */
10879
+ name?: NameTransformer;
10880
+ };
10787
10881
  };
10788
10882
  };
10789
10883
  };
@@ -10812,6 +10906,12 @@ type Config = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin
10812
10906
  types: {
10813
10907
  /** Configuration for `infer` types. */infer: FeatureToggle & {
10814
10908
  /** Casing convention for generated names. */case: Casing;
10909
+ }; /** Configuration for `input` types. */
10910
+ input: FeatureToggle & {
10911
+ /** Casing convention for generated names. */case: Casing;
10912
+ }; /** Configuration for `output` types. */
10913
+ output: FeatureToggle & {
10914
+ /** Casing convention for generated names. */case: Casing;
10815
10915
  };
10816
10916
  }; /** Configuration for webhook-specific Zod schemas. */
10817
10917
  webhooks: NamingOptions & FeatureToggle & TypeOptions;
@@ -10844,9 +10944,9 @@ declare const clientDefaultMeta: {
10844
10944
  };
10845
10945
  //#endregion
10846
10946
  //#region src/plugins/@hey-api/client-core/plugin.d.ts
10847
- declare const clientPluginHandler: ({
10947
+ declare function clientPluginHandler({
10848
10948
  plugin
10849
- }: Parameters<PluginHandler>[0]) => void;
10949
+ }: Parameters<PluginHandler>[0]): void;
10850
10950
  //#endregion
10851
10951
  //#region src/index.d.ts
10852
10952
  declare module '@hey-api/codegen-core' {