@hey-api/openapi-ts 0.97.1 → 0.97.3

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
@@ -1253,6 +1253,7 @@ type LazyThunk<T extends ts.Node> = (ctx: TsDslContext) => TsDsl<T>;
1253
1253
  declare class LazyTsDsl<T extends ts.Node = ts.Node> extends TsDsl<T> {
1254
1254
  readonly '~dsl' = "LazyTsDsl";
1255
1255
  private _thunk;
1256
+ private _result?;
1256
1257
  constructor(thunk: LazyThunk<T>);
1257
1258
  analyze(ctx: AnalysisContext): void;
1258
1259
  toResult(): TsDsl<T>;
@@ -1479,6 +1480,7 @@ type FuncMode = 'arrow' | 'decl' | 'expr';
1479
1480
  declare const Mixed$28: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ArrowFunction>, TypeReturnsMethods>, TypeParamsMethods>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, ExportMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AsMethods>, AbstractMethods>;
1480
1481
  declare class ImplFuncTsDsl<M extends FuncMode = 'arrow'> extends Mixed$28 {
1481
1482
  readonly '~dsl' = "FuncTsDsl";
1483
+ readonly '~mode': M;
1482
1484
  readonly nameSanitizer: (name: string) => string;
1483
1485
  protected mode?: FuncMode;
1484
1486
  constructor();
@@ -2489,33 +2491,29 @@ interface BaseContext$3 extends DollarTsDsl {
2489
2491
  faker: Symbol;
2490
2492
  };
2491
2493
  }
2492
- interface ArrayResolverContext$3 extends BaseContext$3 {
2493
- nodes: {
2494
- items: (ctx: ArrayResolverContext$3) => Expression;
2495
- length: (ctx: ArrayResolverContext$3) => Expression | undefined;
2496
- };
2494
+ interface ArrayResolverContext$3 extends BaseContext$3, Plugin$1.ResolverNodes<{
2495
+ items: (ctx: ArrayResolverContext$3) => Expression;
2496
+ length: (ctx: ArrayResolverContext$3) => Expression | undefined;
2497
+ }> {
2497
2498
  schema: SchemaWithType<'array'>;
2498
2499
  }
2499
- interface NumberResolverContext$3 extends BaseContext$3 {
2500
- nodes: {
2501
- base: (ctx: NumberResolverContext$3) => Expression;
2502
- max: (ctx: NumberResolverContext$3) => Expression | undefined;
2503
- min: (ctx: NumberResolverContext$3) => Expression | undefined;
2504
- };
2500
+ interface NumberResolverContext$3 extends BaseContext$3, Plugin$1.ResolverNodes<{
2501
+ base: (ctx: NumberResolverContext$3) => Expression;
2502
+ max: (ctx: NumberResolverContext$3) => Expression | undefined;
2503
+ min: (ctx: NumberResolverContext$3) => Expression | undefined;
2504
+ }> {
2505
2505
  schema: SchemaWithType<'integer' | 'number'>;
2506
2506
  }
2507
- interface ObjectResolverContext$3 extends BaseContext$3 {
2508
- nodes: {
2509
- properties: (ctx: ObjectResolverContext$3) => Expression;
2510
- };
2507
+ interface ObjectResolverContext$3 extends BaseContext$3, Plugin$1.ResolverNodes<{
2508
+ properties: (ctx: ObjectResolverContext$3) => Expression;
2509
+ }> {
2511
2510
  schema: SchemaWithType<'object'>;
2512
2511
  }
2513
- interface StringResolverContext$3 extends BaseContext$3 {
2514
- nodes: {
2515
- base: (ctx: StringResolverContext$3) => Expression;
2516
- format: (ctx: StringResolverContext$3) => Expression | undefined;
2517
- pattern: (ctx: StringResolverContext$3) => Expression | undefined;
2518
- };
2512
+ interface StringResolverContext$3 extends BaseContext$3, Plugin$1.ResolverNodes<{
2513
+ base: (ctx: StringResolverContext$3) => Expression;
2514
+ format: (ctx: StringResolverContext$3) => Expression | undefined;
2515
+ pattern: (ctx: StringResolverContext$3) => Expression | undefined;
2516
+ }> {
2519
2517
  schema: SchemaWithType<'string'>;
2520
2518
  }
2521
2519
  //#endregion
@@ -2808,7 +2806,7 @@ interface ClientOptions$6 {
2808
2806
  throwOnError?: boolean;
2809
2807
  }
2810
2808
  type MethodFn$6 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$3 = 'fields'>(options: Omit<RequestOptions$6<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult$6<TData, TError, ThrowOnError, TResponseStyle>;
2811
- type SseFn$6 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$3 = 'fields'>(options: Omit<RequestOptions$6<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
2809
+ type SseFn$6 = <TData = unknown, _TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$3 = 'fields'>(options: Omit<RequestOptions$6<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData>>;
2812
2810
  type RequestFn$6 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$3 = 'fields'>(options: Omit<RequestOptions$6<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$6<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult$6<TData, TError, ThrowOnError, TResponseStyle>;
2813
2811
  type RequestOptionsFn = <T, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$3 = 'fields'>(options: RequestOptions$6<T, TResponseStyle, ThrowOnError>) => HttpRequest<T>;
2814
2812
  type BuildUrlFn$6 = <TData extends {
@@ -2886,7 +2884,7 @@ type RequestResult$5<TData = unknown, TError = unknown, ThrowOnError extends boo
2886
2884
  error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
2887
2885
  })>;
2888
2886
  type MethodFn$5 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$5<TData, ThrowOnError>, 'method'>) => RequestResult$5<TData, TError, ThrowOnError>;
2889
- type SseFn$5 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$5<never, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
2887
+ type SseFn$5 = <TData = unknown, _TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$5<never, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData>>;
2890
2888
  type RequestFn$5 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$5<TData, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$5<TData, ThrowOnError>>, 'method'>) => RequestResult$5<TData, TError, ThrowOnError>;
2891
2889
  type BuildUrlFn$5 = <TData extends {
2892
2890
  path?: Record<string, unknown>;
@@ -3016,7 +3014,7 @@ interface ClientOptions$4 {
3016
3014
  throwOnError?: boolean;
3017
3015
  }
3018
3016
  type MethodFn$4 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$2 = 'fields'>(options: Omit<RequestOptions$4<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult$4<TData, TError, ThrowOnError, TResponseStyle>;
3019
- type SseFn$4 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$2 = 'fields'>(options: Omit<RequestOptions$4<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
3017
+ type SseFn$4 = <TData = unknown, _TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$2 = 'fields'>(options: Omit<RequestOptions$4<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData>>;
3020
3018
  type RequestFn$4 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$2 = 'fields'>(options: Omit<RequestOptions$4<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$4<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult$4<TData, TError, ThrowOnError, TResponseStyle>;
3021
3019
  type BuildUrlFn$4 = <TData extends {
3022
3020
  body?: unknown;
@@ -3136,7 +3134,7 @@ interface ClientOptions$3 {
3136
3134
  throwOnError?: boolean;
3137
3135
  }
3138
3136
  type MethodFn$3 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$3<TData, ThrowOnError>, 'method'>) => RequestResult$3<TData, TError, ThrowOnError>;
3139
- type SseFn$3 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$3<never, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
3137
+ type SseFn$3 = <TData = unknown, _TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$3<never, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData>>;
3140
3138
  type RequestFn$3 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$3<TData, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$3<TData, ThrowOnError>>, 'method'>) => RequestResult$3<TData, TError, ThrowOnError>;
3141
3139
  type BuildUrlFn$3 = <TData extends {
3142
3140
  body?: unknown;
@@ -3408,7 +3406,7 @@ interface ClientOptions$1 {
3408
3406
  throwOnError?: boolean;
3409
3407
  }
3410
3408
  type MethodFn$1 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$1 = 'fields'>(options: Omit<RequestOptions$1<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult$1<TData, TError, ThrowOnError, TResponseStyle>;
3411
- type SseFn$1 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$1 = 'fields'>(options: Omit<RequestOptions$1<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
3409
+ type SseFn$1 = <TData = unknown, _TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$1 = 'fields'>(options: Omit<RequestOptions$1<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData>>;
3412
3410
  type RequestFn$1 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$1 = 'fields'>(options: Omit<RequestOptions$1<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$1<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult$1<TData, TError, ThrowOnError, TResponseStyle>;
3413
3411
  type BuildUrlFn$1 = <TData extends {
3414
3412
  body?: unknown;
@@ -3619,7 +3617,7 @@ interface ClientOptions {
3619
3617
  throwOnError?: boolean;
3620
3618
  }
3621
3619
  type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
3622
- type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
3620
+ type SseFn = <TData = unknown, _TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData>>;
3623
3621
  type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
3624
3622
  type BuildUrlFn = <TData extends {
3625
3623
  body?: unknown;
@@ -3674,7 +3672,7 @@ type HeyApiSchemasPlugin = DefinePlugin$1<UserConfig$18, UserConfig$18>;
3674
3672
  //#endregion
3675
3673
  //#region src/plugins/types.d.ts
3676
3674
  type PluginClientNames = '@hey-api/client-angular' | '@hey-api/client-axios' | '@hey-api/client-fetch' | '@hey-api/client-ky' | '@hey-api/client-next' | '@hey-api/client-nuxt' | '@hey-api/client-ofetch';
3677
- type PluginTransformerNames = '@hey-api/transformers';
3675
+ type PluginTransformerNames = '@hey-api/transformers' | 'valibot' | 'zod';
3678
3676
  type PluginValidatorNames = 'arktype' | 'valibot' | 'zod';
3679
3677
  //#endregion
3680
3678
  //#region src/plugins/@hey-api/sdk/examples/types.d.ts
@@ -3914,13 +3912,26 @@ type UserConfig$17 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.U
3914
3912
  * convert for example ISO strings into Date objects. However, transformation
3915
3913
  * adds runtime overhead, so it's not recommended to use unless necessary.
3916
3914
  *
3917
- * You can customize the selected transformer output through its plugin. You
3918
- * can also set `transformer` to `true` to automatically choose the
3919
- * transformer from your defined plugins.
3915
+ * You can customize the transformer output through its plugin. You can also
3916
+ * set `transformer` to `true` to automatically choose the transformer from your
3917
+ * defined plugins.
3918
+ *
3919
+ * Ensure you have declared the selected library as a dependency to avoid
3920
+ * errors.
3920
3921
  *
3921
3922
  * @default false
3922
3923
  */
3923
- transformer?: PluginTransformerNames | boolean;
3924
+ transformer?: PluginTransformerNames | boolean | {
3925
+ /**
3926
+ * Transform response data before returning.
3927
+ *
3928
+ * Can be a transformer plugin name or boolean (true to auto-select, false
3929
+ * to disable).
3930
+ *
3931
+ * @default false
3932
+ */
3933
+ response?: PluginTransformerNames | boolean;
3934
+ };
3924
3935
  /**
3925
3936
  * Validate request and/or response data against schema before returning.
3926
3937
  * This is useful if you want to ensure the request and/or response conforms
@@ -4022,38 +4033,10 @@ type UserConfig$17 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.U
4022
4033
  response?: 'body' | 'response';
4023
4034
  };
4024
4035
  type Config$14 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
4025
- /**
4026
- * Should the generated functions contain auth mechanisms? You may want to
4027
- * disable this option if you're handling auth yourself or defining it
4028
- * globally on the client and want to reduce the size of generated code.
4029
- *
4030
- * @default true
4031
- */
4032
- auth: boolean;
4033
- /**
4034
- * Use an internal client instance to send HTTP requests? This is useful if
4035
- * you don't want to manually pass the client to each SDK function.
4036
- *
4037
- * You can customize the selected client output through its plugin. You can
4038
- * also set `client` to `true` to automatically choose the client from your
4039
- * defined plugins. If we can't detect a client plugin when using `true`, we
4040
- * will default to `@hey-api/client-fetch`.
4041
- *
4042
- * @default true
4043
- */
4036
+ /** Should the generated functions contain auth mechanisms? */auth: boolean; /** Use an internal client instance to send HTTP requests? */
4044
4037
  client: PluginClientNames | false; /** Configuration for generating SDK code examples. */
4045
4038
  examples: ExamplesConfig; /** Define the structure of generated SDK operations. */
4046
- operations: OperationsConfig;
4047
- /**
4048
- * Define how request parameters are structured in generated SDK methods.
4049
- *
4050
- * - `'flat'` merges parameters into a single object.
4051
- * - `'grouped'` separates parameters by transport layer.
4052
- *
4053
- * Use `'flat'` for simpler calls or `'grouped'` for stricter typing and code clarity.
4054
- *
4055
- * @default 'grouped'
4056
- */
4039
+ operations: OperationsConfig; /** Define how request parameters are structured in generated SDK methods. */
4057
4040
  paramsStructure: 'flat' | 'grouped';
4058
4041
  /**
4059
4042
  * **This feature works only with the Fetch client**
@@ -4062,37 +4045,12 @@ type Config$14 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.Comme
4062
4045
  *
4063
4046
  * @default 'fields'
4064
4047
  */
4065
- responseStyle: 'data' | 'fields';
4066
- /**
4067
- * Transform response data before returning. This is useful if you want to
4068
- * convert for example ISO strings into Date objects. However, transformation
4069
- * adds runtime overhead, so it's not recommended to use unless necessary.
4070
- *
4071
- * You can customize the selected transformer output through its plugin. You
4072
- * can also set `transformer` to `true` to automatically choose the
4073
- * transformer from your defined plugins.
4074
- *
4075
- * @default false
4076
- */
4077
- transformer: PluginTransformerNames | false;
4078
- /**
4079
- * Validate request and/or response data against schema before returning.
4080
- * This is useful if you want to ensure the request and/or response conforms
4081
- * to a desired shape. However, validation adds runtime overhead, so it's
4082
- * not recommended to use unless absolutely necessary.
4083
- */
4048
+ responseStyle: 'data' | 'fields'; /** Transform response data before returning. */
4049
+ transformer: {
4050
+ /** The transformer plugin to use for response transformation, or false to disable. */response: PluginTransformerNames | false;
4051
+ }; /** Validate request and/or response data against schema before returning. */
4084
4052
  validator: {
4085
- /**
4086
- * The validator plugin to use for request validation, or false to disable.
4087
- *
4088
- * @default false
4089
- */
4090
- request: PluginValidatorNames | false;
4091
- /**
4092
- * The validator plugin to use for response validation, or false to disable.
4093
- *
4094
- * @default false
4095
- */
4053
+ /** The validator plugin to use for request validation, or false to disable. */request: PluginValidatorNames | false; /** The validator plugin to use for response validation, or false to disable. */
4096
4054
  response: PluginValidatorNames | false;
4097
4055
  };
4098
4056
  /**
@@ -4127,11 +4085,18 @@ type UserConfig$16 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & P
4127
4085
  */
4128
4086
  bigInt?: boolean;
4129
4087
  /**
4130
- * Convert date strings into Date objects?
4088
+ * Convert date strings into date objects?
4089
+ *
4090
+ * - `true` (default): use the built-in `Date` object.
4091
+ * - `'date'`: explicit alias for the default `Date` behavior.
4092
+ * - `'temporal'`: use the [Temporal API](https://tc39.es/proposal-temporal/docs/),
4093
+ * imported from `temporal-polyfill`. `date-time` formats become
4094
+ * `Temporal.Instant` and `date` formats become `Temporal.PlainDate`.
4095
+ * - `false`: do not transform date strings.
4131
4096
  *
4132
4097
  * @default true
4133
4098
  */
4134
- dates?: boolean;
4099
+ dates?: boolean | 'date' | 'temporal';
4135
4100
  /**
4136
4101
  * Custom transforms to apply to the generated code.
4137
4102
  */
@@ -4149,11 +4114,18 @@ type Config$13 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugi
4149
4114
  */
4150
4115
  bigInt: boolean;
4151
4116
  /**
4152
- * Convert date strings into Date objects?
4117
+ * Convert date strings into date objects?
4118
+ *
4119
+ * - `true` (default): use the built-in `Date` object.
4120
+ * - `'date'`: explicit alias for the default `Date` behavior.
4121
+ * - `'temporal'`: use the [Temporal API](https://tc39.es/proposal-temporal/docs/),
4122
+ * imported from `temporal-polyfill`. `date-time` formats become
4123
+ * `Temporal.Instant` and `date` formats become `Temporal.PlainDate`.
4124
+ * - `false`: do not transform date strings.
4153
4125
  *
4154
4126
  * @default true
4155
4127
  */
4156
- dates: boolean;
4128
+ dates: boolean | 'date' | 'temporal';
4157
4129
  /**
4158
4130
  * Custom transforms to apply to the generated code.
4159
4131
  */
@@ -4312,79 +4284,59 @@ type HeyApiTypeScriptResolvers = Plugin$1.Resolvers<{
4312
4284
  */
4313
4285
  void?: (ctx: VoidResolverContext$2) => Type | undefined;
4314
4286
  }>;
4315
- interface BaseContext$2 extends DollarTsDsl {
4316
- /** The plugin instance. */
4317
- plugin: HeyApiTypeScriptPlugin['Instance'];
4318
- }
4319
- interface ArrayResolverContext$2 extends BaseContext$2 {
4287
+ interface BaseContext$2 extends DollarTsDsl, SchemaVisitorContext<HeyApiTypeScriptPlugin['Instance']> {}
4288
+ interface ArrayResolverContext$2 extends BaseContext$2, Plugin$1.ResolverNodes<{
4320
4289
  /**
4321
- * Nodes used to build different parts of the result.
4290
+ * Returns the base array type expression.
4322
4291
  */
4323
- nodes: {
4324
- /**
4325
- * Returns the base array type expression.
4326
- */
4327
- base: (ctx: ArrayResolverContext$2) => Type;
4328
- };
4292
+ base: (ctx: ArrayResolverContext$2) => Type;
4293
+ }> {
4329
4294
  schema: SchemaWithType<'array'>;
4330
4295
  walk: Walker<TypeScriptResult, HeyApiTypeScriptPlugin['Instance']>;
4331
- walkerCtx: SchemaVisitorContext<HeyApiTypeScriptPlugin['Instance']>;
4332
4296
  }
4333
- interface BooleanResolverContext$2 extends BaseContext$2 {
4297
+ interface BooleanResolverContext$2 extends BaseContext$2, Plugin$1.ResolverNodes<{
4334
4298
  /**
4335
- * Nodes used to build different parts of the result.
4299
+ * Returns the base boolean type expression.
4336
4300
  */
4337
- nodes: {
4338
- /**
4339
- * Returns the base boolean type expression.
4340
- */
4341
- base: (ctx: BooleanResolverContext$2) => Type;
4342
- /**
4343
- * Returns the literal type for const values.
4344
- */
4345
- const: (ctx: BooleanResolverContext$2) => Type | undefined;
4346
- };
4301
+ base: (ctx: BooleanResolverContext$2) => Type;
4302
+ /**
4303
+ * Returns the literal type for const values.
4304
+ */
4305
+ const: (ctx: BooleanResolverContext$2) => Type | undefined;
4306
+ }> {
4347
4307
  schema: SchemaWithType<'boolean'>;
4348
4308
  }
4349
- interface EnumResolverContext$2 extends BaseContext$2 {
4309
+ interface EnumResolverContext$2 extends BaseContext$2, Plugin$1.ResolverNodes<{
4310
+ /**
4311
+ * Returns the base enum type expression.
4312
+ */
4313
+ base: (ctx: EnumResolverContext$2) => Type;
4350
4314
  /**
4351
- * Nodes used to build different parts of the result.
4315
+ * Returns parsed enum items with metadata about the enum members.
4352
4316
  */
4353
- nodes: {
4317
+ items: (ctx: EnumResolverContext$2) => {
4354
4318
  /**
4355
- * Returns the base enum type expression.
4319
+ * String literal values for use with union types.
4356
4320
  */
4357
- base: (ctx: EnumResolverContext$2) => Type;
4321
+ enumMembers: Array<ReturnType<typeof $.type.literal>>;
4358
4322
  /**
4359
- * Returns parsed enum items with metadata about the enum members.
4323
+ * Whether the enum includes a null value.
4360
4324
  */
4361
- items: (ctx: EnumResolverContext$2) => {
4362
- /**
4363
- * String literal values for use with union types.
4364
- */
4365
- enumMembers: Array<ReturnType<typeof $.type.literal>>;
4366
- /**
4367
- * Whether the enum includes a null value.
4368
- */
4369
- isNullable: boolean;
4370
- };
4325
+ isNullable: boolean;
4371
4326
  };
4327
+ }> {
4372
4328
  schema: SchemaWithType<'enum'>;
4373
4329
  }
4374
- interface IntersectionResolverContext$2 extends BaseContext$2 {
4330
+ interface IntersectionResolverContext$2 extends BaseContext$2, Plugin$1.ResolverNodes<{
4375
4331
  /**
4376
- * The child results from walking intersection members.
4332
+ * Returns the base intersection type expression.
4377
4333
  */
4378
- childResults: ReadonlyArray<TypeScriptResult>;
4334
+ base: (ctx: IntersectionResolverContext$2) => Type;
4335
+ }> {
4379
4336
  /**
4380
- * Nodes used to build different parts of the result.
4337
+ * The child results from walking intersection members.
4381
4338
  */
4382
- nodes: {
4383
- /**
4384
- * Returns the base intersection type expression.
4385
- */
4386
- base: (ctx: IntersectionResolverContext$2) => Type;
4387
- };
4339
+ childResults: ReadonlyArray<TypeScriptResult>;
4388
4340
  /**
4389
4341
  * The parent schema containing the intersection.
4390
4342
  */
@@ -4394,116 +4346,86 @@ interface IntersectionResolverContext$2 extends BaseContext$2 {
4394
4346
  */
4395
4347
  schemas: ReadonlyArray<IR$1.SchemaObject>;
4396
4348
  }
4397
- interface NeverResolverContext$2 extends BaseContext$2 {
4349
+ interface NeverResolverContext$2 extends BaseContext$2, Plugin$1.ResolverNodes<{
4398
4350
  /**
4399
- * Nodes used to build different parts of the result.
4351
+ * Returns the base never type expression.
4400
4352
  */
4401
- nodes: {
4402
- /**
4403
- * Returns the base never type expression.
4404
- */
4405
- base: (ctx: NeverResolverContext$2) => Type;
4406
- };
4353
+ base: (ctx: NeverResolverContext$2) => Type;
4354
+ }> {
4407
4355
  schema: SchemaWithType<'never'>;
4408
4356
  }
4409
- interface NullResolverContext$2 extends BaseContext$2 {
4357
+ interface NullResolverContext$2 extends BaseContext$2, Plugin$1.ResolverNodes<{
4410
4358
  /**
4411
- * Nodes used to build different parts of the result.
4359
+ * Returns the base null type expression.
4412
4360
  */
4413
- nodes: {
4414
- /**
4415
- * Returns the base null type expression.
4416
- */
4417
- base: (ctx: NullResolverContext$2) => Type;
4418
- };
4361
+ base: (ctx: NullResolverContext$2) => Type;
4362
+ }> {
4419
4363
  schema: SchemaWithType<'null'>;
4420
4364
  }
4421
- interface NumberResolverContext$2 extends BaseContext$2 {
4365
+ interface NumberResolverContext$2 extends BaseContext$2, Plugin$1.ResolverNodes<{
4422
4366
  /**
4423
- * Nodes used to build different parts of the result.
4367
+ * Returns the base number type expression.
4424
4368
  */
4425
- nodes: {
4426
- /**
4427
- * Returns the base number type expression.
4428
- */
4429
- base: (ctx: NumberResolverContext$2) => Type;
4430
- /**
4431
- * Returns the literal type for const values.
4432
- */
4433
- const: (ctx: NumberResolverContext$2) => Type | undefined;
4434
- };
4369
+ base: (ctx: NumberResolverContext$2) => Type;
4370
+ /**
4371
+ * Returns the literal type for const values.
4372
+ */
4373
+ const: (ctx: NumberResolverContext$2) => Type | undefined;
4374
+ }> {
4435
4375
  schema: SchemaWithType<'integer' | 'number'>;
4436
4376
  }
4437
- interface ObjectResolverContext$2 extends BaseContext$2 {
4377
+ interface ObjectResolverContext$2 extends BaseContext$2, Plugin$1.ResolverNodes<{
4438
4378
  /**
4439
- * Nodes used to build different parts of the result.
4379
+ * Returns the base object type expression.
4440
4380
  */
4441
- nodes: {
4442
- /**
4443
- * Returns the base object type expression.
4444
- */
4445
- base: (ctx: ObjectResolverContext$2) => Type;
4446
- /**
4447
- * Returns the shape (properties) of the object type.
4448
- */
4449
- shape: (ctx: ObjectResolverContext$2) => ReturnType<typeof $.type.object>;
4450
- };
4381
+ base: (ctx: ObjectResolverContext$2) => Type;
4382
+ /**
4383
+ * Returns the shape (properties) of the object type.
4384
+ */
4385
+ shape: (ctx: ObjectResolverContext$2) => ReturnType<typeof $.type.object>;
4386
+ }> {
4451
4387
  schema: SchemaWithType<'object'>;
4452
4388
  walk: Walker<TypeScriptResult, HeyApiTypeScriptPlugin['Instance']>;
4453
- walkerCtx: SchemaVisitorContext<HeyApiTypeScriptPlugin['Instance']>;
4454
4389
  }
4455
- interface StringResolverContext$2 extends BaseContext$2 {
4390
+ interface StringResolverContext$2 extends BaseContext$2, Plugin$1.ResolverNodes<{
4456
4391
  /**
4457
- * Nodes used to build different parts of the result.
4392
+ * Returns the base string type expression.
4458
4393
  */
4459
- nodes: {
4460
- /**
4461
- * Returns the base string type expression.
4462
- */
4463
- base: (ctx: StringResolverContext$2) => Type;
4464
- /**
4465
- * Returns the literal type for const values.
4466
- */
4467
- const: (ctx: StringResolverContext$2) => Type | undefined;
4468
- /**
4469
- * Returns the format-specific type expression.
4470
- */
4471
- format: (ctx: StringResolverContext$2) => Type | undefined;
4472
- };
4394
+ base: (ctx: StringResolverContext$2) => Type;
4395
+ /**
4396
+ * Returns the literal type for const values.
4397
+ */
4398
+ const: (ctx: StringResolverContext$2) => Type | undefined;
4399
+ /**
4400
+ * Returns the format-specific type expression.
4401
+ */
4402
+ format: (ctx: StringResolverContext$2) => Type | undefined;
4403
+ }> {
4473
4404
  schema: SchemaWithType<'string'>;
4474
4405
  }
4475
- interface TupleResolverContext$2 extends BaseContext$2 {
4406
+ interface TupleResolverContext$2 extends BaseContext$2, Plugin$1.ResolverNodes<{
4476
4407
  /**
4477
- * Nodes used to build different parts of the result.
4408
+ * Returns the base tuple type expression.
4478
4409
  */
4479
- nodes: {
4480
- /**
4481
- * Returns the base tuple type expression.
4482
- */
4483
- base: (ctx: TupleResolverContext$2) => Type;
4484
- /**
4485
- * Returns the literal type for const tuple values.
4486
- */
4487
- const: (ctx: TupleResolverContext$2) => Type | undefined;
4488
- };
4410
+ base: (ctx: TupleResolverContext$2) => Type;
4411
+ /**
4412
+ * Returns the literal type for const tuple values.
4413
+ */
4414
+ const: (ctx: TupleResolverContext$2) => Type | undefined;
4415
+ }> {
4489
4416
  schema: SchemaWithType<'tuple'>;
4490
4417
  walk: Walker<TypeScriptResult, HeyApiTypeScriptPlugin['Instance']>;
4491
- walkerCtx: SchemaVisitorContext<HeyApiTypeScriptPlugin['Instance']>;
4492
4418
  }
4493
- interface UnionResolverContext$2 extends BaseContext$2 {
4419
+ interface UnionResolverContext$2 extends BaseContext$2, Plugin$1.ResolverNodes<{
4494
4420
  /**
4495
- * The child results from walking union members.
4421
+ * Returns the base union type expression.
4496
4422
  */
4497
- childResults: ReadonlyArray<TypeScriptResult>;
4423
+ base: (ctx: UnionResolverContext$2) => Type;
4424
+ }> {
4498
4425
  /**
4499
- * Nodes used to build different parts of the result.
4426
+ * The child results from walking union members.
4500
4427
  */
4501
- nodes: {
4502
- /**
4503
- * Returns the base union type expression.
4504
- */
4505
- base: (ctx: UnionResolverContext$2) => Type;
4506
- };
4428
+ childResults: ReadonlyArray<TypeScriptResult>;
4507
4429
  /**
4508
4430
  * The parent schema containing the union.
4509
4431
  */
@@ -4513,40 +4435,28 @@ interface UnionResolverContext$2 extends BaseContext$2 {
4513
4435
  */
4514
4436
  schemas: ReadonlyArray<IR$1.SchemaObject>;
4515
4437
  }
4516
- interface UndefinedResolverContext$2 extends BaseContext$2 {
4438
+ interface UndefinedResolverContext$2 extends BaseContext$2, Plugin$1.ResolverNodes<{
4517
4439
  /**
4518
- * Nodes used to build different parts of the result.
4440
+ * Returns the base undefined type expression.
4519
4441
  */
4520
- nodes: {
4521
- /**
4522
- * Returns the base undefined type expression.
4523
- */
4524
- base: (ctx: UndefinedResolverContext$2) => Type;
4525
- };
4442
+ base: (ctx: UndefinedResolverContext$2) => Type;
4443
+ }> {
4526
4444
  schema: SchemaWithType<'undefined'>;
4527
4445
  }
4528
- interface UnknownResolverContext$2 extends BaseContext$2 {
4446
+ interface UnknownResolverContext$2 extends BaseContext$2, Plugin$1.ResolverNodes<{
4529
4447
  /**
4530
- * Nodes used to build different parts of the result.
4448
+ * Returns the base unknown type expression.
4531
4449
  */
4532
- nodes: {
4533
- /**
4534
- * Returns the base unknown type expression.
4535
- */
4536
- base: (ctx: UnknownResolverContext$2) => Type;
4537
- };
4450
+ base: (ctx: UnknownResolverContext$2) => Type;
4451
+ }> {
4538
4452
  schema: SchemaWithType<'unknown'>;
4539
4453
  }
4540
- interface VoidResolverContext$2 extends BaseContext$2 {
4454
+ interface VoidResolverContext$2 extends BaseContext$2, Plugin$1.ResolverNodes<{
4541
4455
  /**
4542
- * Nodes used to build different parts of the result.
4456
+ * Returns the base void type expression.
4543
4457
  */
4544
- nodes: {
4545
- /**
4546
- * Returns the base void type expression.
4547
- */
4548
- base: (ctx: VoidResolverContext$2) => Type;
4549
- };
4458
+ base: (ctx: VoidResolverContext$2) => Type;
4459
+ }> {
4550
4460
  schema: SchemaWithType<'void'>;
4551
4461
  }
4552
4462
  //#endregion
@@ -5104,6 +5014,40 @@ type UserConfig$13 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
5104
5014
  * @default 'camelCase'
5105
5015
  */
5106
5016
  case?: Casing;
5017
+ /**
5018
+ * Configuration for generated `getQueryData` helpers.
5019
+ *
5020
+ * When enabled, generates a helper per query operation that wraps
5021
+ * `queryClient.getQueryData()` with the correct query key and response
5022
+ * type already wired up.
5023
+ *
5024
+ * Can be:
5025
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
5026
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
5027
+ * - `object`: Full configuration object
5028
+ *
5029
+ * @default false
5030
+ */
5031
+ getQueryData?: boolean | NameTransformer | {
5032
+ /**
5033
+ * Casing convention for generated names.
5034
+ *
5035
+ * @default 'camelCase'
5036
+ */
5037
+ case?: Casing;
5038
+ /**
5039
+ * Whether this feature is enabled.
5040
+ *
5041
+ * @default true
5042
+ */
5043
+ enabled?: boolean;
5044
+ /**
5045
+ * Naming pattern for generated names.
5046
+ *
5047
+ * @default '{{name}}GetQueryData'
5048
+ */
5049
+ name?: NameTransformer;
5050
+ };
5107
5051
  /**
5108
5052
  * Configuration for generated infinite query key helpers.
5109
5053
  *
@@ -5199,10 +5143,49 @@ type UserConfig$13 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
5199
5143
  */
5200
5144
  name?: NameTransformer;
5201
5145
  };
5146
+ /**
5147
+ * Configuration for generated mutation keys.
5148
+ *
5149
+ * See {@link https://tanstack.com/query/v5/docs/framework/angular/reference/functions/injectMutation injectMutation}
5150
+ *
5151
+ * Can be:
5152
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
5153
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
5154
+ * - `object`: Full configuration object
5155
+ *
5156
+ * @default false
5157
+ */
5158
+ mutationKeys?: boolean | NameTransformer | {
5159
+ /**
5160
+ * Casing convention for generated names.
5161
+ *
5162
+ * @default 'camelCase'
5163
+ */
5164
+ case?: Casing;
5165
+ /**
5166
+ * Whether this feature is enabled.
5167
+ *
5168
+ * @default true
5169
+ */
5170
+ enabled?: boolean;
5171
+ /**
5172
+ * Naming pattern for generated names.
5173
+ *
5174
+ * @default '{{name}}MutationKey'
5175
+ */
5176
+ name?: NameTransformer;
5177
+ /**
5178
+ * Whether to include operation tags in mutation keys.
5179
+ * This will make mutation keys larger but provides better cache invalidation capabilities.
5180
+ *
5181
+ * @default false
5182
+ */
5183
+ tags?: boolean;
5184
+ };
5202
5185
  /**
5203
5186
  * Configuration for generated mutation options helpers.
5204
5187
  *
5205
- * See {@link https://tanstack.com/query/v5/docs/framework/angular/reference/useMutation}
5188
+ * See {@link https://tanstack.com/query/v5/docs/framework/angular/reference/functions/injectMutation injectMutation}
5206
5189
  *
5207
5190
  * Can be:
5208
5191
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -5256,7 +5239,7 @@ type UserConfig$13 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
5256
5239
  * Naming pattern for generated names.
5257
5240
  *
5258
5241
  * @default '{{name}}Mutation'
5259
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/useMutation
5242
+ * @see https://tanstack.com/query/v5/docs/framework/angular/reference/functions/injectMutation
5260
5243
  */
5261
5244
  name?: NameTransformer;
5262
5245
  };
@@ -5397,12 +5380,16 @@ type UserConfig$13 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
5397
5380
  };
5398
5381
  };
5399
5382
  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. */
5383
+ /** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated `getQueryData` helpers. */
5384
+ getQueryData: NamingOptions & FeatureToggle; /** Resolved configuration for generated infinite query key helpers. */
5401
5385
  infiniteQueryKeys: NamingOptions & FeatureToggle & {
5402
5386
  /** Whether to include operation tags in infinite query keys. */tags: boolean;
5403
5387
  }; /** Resolved configuration for generated infinite query options helpers. */
5404
5388
  infiniteQueryOptions: NamingOptions & FeatureToggle & {
5405
5389
  /** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5390
+ }; /** Resolved configuration for generated mutation keys. */
5391
+ mutationKeys: NamingOptions & FeatureToggle & {
5392
+ /** Whether to include operation tags in mutation keys. */tags: boolean;
5406
5393
  }; /** Resolved configuration for generated mutation options helpers. */
5407
5394
  mutationOptions: NamingOptions & FeatureToggle & {
5408
5395
  /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
@@ -5427,6 +5414,40 @@ type UserConfig$12 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks &
5427
5414
  * @default 'camelCase'
5428
5415
  */
5429
5416
  case?: Casing;
5417
+ /**
5418
+ * Configuration for generated `getQueryData` helpers.
5419
+ *
5420
+ * When enabled, generates a helper per query operation that wraps
5421
+ * `queryClient.getQueryData()` with the correct query key and response
5422
+ * type already wired up.
5423
+ *
5424
+ * Can be:
5425
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
5426
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
5427
+ * - `object`: Full configuration object
5428
+ *
5429
+ * @default false
5430
+ */
5431
+ getQueryData?: boolean | NameTransformer | {
5432
+ /**
5433
+ * Casing convention for generated names.
5434
+ *
5435
+ * @default 'camelCase'
5436
+ */
5437
+ case?: Casing;
5438
+ /**
5439
+ * Whether this feature is enabled.
5440
+ *
5441
+ * @default true
5442
+ */
5443
+ enabled?: boolean;
5444
+ /**
5445
+ * Naming pattern for generated names.
5446
+ *
5447
+ * @default '{{name}}GetQueryData'
5448
+ */
5449
+ name?: NameTransformer;
5450
+ };
5430
5451
  /**
5431
5452
  * Configuration for generated infinite query key helpers.
5432
5453
  *
@@ -5526,18 +5547,18 @@ type UserConfig$12 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks &
5526
5547
  name?: NameTransformer;
5527
5548
  };
5528
5549
  /**
5529
- * Configuration for generated mutation options helpers.
5550
+ * Configuration for generated mutation keys.
5530
5551
  *
5531
- * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/useMutation useMutation}
5552
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/functions/useMutation useMutation}
5532
5553
  *
5533
5554
  * Can be:
5534
5555
  * - `boolean`: Shorthand for `{ enabled: boolean }`
5535
5556
  * - `string` or `function`: Shorthand for `{ name: string | function }`
5536
5557
  * - `object`: Full configuration object
5537
5558
  *
5538
- * @default true
5559
+ * @default false
5539
5560
  */
5540
- mutationOptions?: boolean | NameTransformer | {
5561
+ mutationKeys?: boolean | NameTransformer | {
5541
5562
  /**
5542
5563
  * Casing convention for generated names.
5543
5564
  *
@@ -5551,20 +5572,59 @@ type UserConfig$12 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks &
5551
5572
  */
5552
5573
  enabled?: boolean;
5553
5574
  /**
5554
- * Whether to export generated symbols.
5575
+ * Naming pattern for generated names.
5555
5576
  *
5556
- * @default true
5577
+ * @default '{{name}}MutationKey'
5557
5578
  */
5558
- exported?: boolean;
5579
+ name?: NameTransformer;
5559
5580
  /**
5560
- * Custom function to generate metadata for the operation.
5561
- * Can return any valid meta object that will be included in the generated mutation options.
5562
- *
5563
- * @param operation - The operation object containing all available metadata
5564
- * @returns A meta object with any properties you want to include
5581
+ * Whether to include operation tags in mutation keys.
5582
+ * This will make mutation keys larger but provides better cache invalidation capabilities.
5565
5583
  *
5566
- * @example
5567
- * ```ts
5584
+ * @default false
5585
+ */
5586
+ tags?: boolean;
5587
+ };
5588
+ /**
5589
+ * Configuration for generated mutation options helpers.
5590
+ *
5591
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/useMutation useMutation}
5592
+ *
5593
+ * Can be:
5594
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
5595
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
5596
+ * - `object`: Full configuration object
5597
+ *
5598
+ * @default true
5599
+ */
5600
+ mutationOptions?: boolean | NameTransformer | {
5601
+ /**
5602
+ * Casing convention for generated names.
5603
+ *
5604
+ * @default 'camelCase'
5605
+ */
5606
+ case?: Casing;
5607
+ /**
5608
+ * Whether this feature is enabled.
5609
+ *
5610
+ * @default true
5611
+ */
5612
+ enabled?: boolean;
5613
+ /**
5614
+ * Whether to export generated symbols.
5615
+ *
5616
+ * @default true
5617
+ */
5618
+ exported?: boolean;
5619
+ /**
5620
+ * Custom function to generate metadata for the operation.
5621
+ * Can return any valid meta object that will be included in the generated mutation options.
5622
+ *
5623
+ * @param operation - The operation object containing all available metadata
5624
+ * @returns A meta object with any properties you want to include
5625
+ *
5626
+ * @example
5627
+ * ```ts
5568
5628
  * meta: (operation) => ({
5569
5629
  * customField: operation.id,
5570
5630
  * isDeprecated: operation.deprecated,
@@ -5726,6 +5786,39 @@ type UserConfig$12 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks &
5726
5786
  */
5727
5787
  name?: NameTransformer;
5728
5788
  };
5789
+ /**
5790
+ * Configuration for generated Preact Query hook variant of `getQueryData`.
5791
+ *
5792
+ * When enabled, generates a hook per query operation that calls
5793
+ * `useQueryClient()` internally and returns a typed getter function.
5794
+ *
5795
+ * Can be:
5796
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
5797
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
5798
+ * - `object`: Full configuration object
5799
+ *
5800
+ * @default false
5801
+ */
5802
+ useGetQueryData?: boolean | NameTransformer | {
5803
+ /**
5804
+ * Casing convention for generated names.
5805
+ *
5806
+ * @default 'camelCase'
5807
+ */
5808
+ case?: Casing;
5809
+ /**
5810
+ * Whether this feature is enabled.
5811
+ *
5812
+ * @default true
5813
+ */
5814
+ enabled?: boolean;
5815
+ /**
5816
+ * Naming pattern for generated names.
5817
+ *
5818
+ * @default 'use{{name}}GetQueryData'
5819
+ */
5820
+ name?: NameTransformer;
5821
+ };
5729
5822
  /**
5730
5823
  * Configuration for generated `useMutation()` function helpers.
5731
5824
  *
@@ -5829,12 +5922,16 @@ type UserConfig$12 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks &
5829
5922
  };
5830
5923
  };
5831
5924
  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. */
5925
+ /** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated `getQueryData` helpers. */
5926
+ getQueryData: NamingOptions & FeatureToggle; /** Resolved configuration for generated infinite query key helpers. */
5833
5927
  infiniteQueryKeys: NamingOptions & FeatureToggle & {
5834
5928
  /** Whether to include operation tags in infinite query keys. */tags: boolean;
5835
5929
  }; /** Resolved configuration for generated infinite query options helpers. */
5836
5930
  infiniteQueryOptions: NamingOptions & FeatureToggle & {
5837
5931
  /** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5932
+ }; /** Resolved configuration for generated mutation keys. */
5933
+ mutationKeys: NamingOptions & FeatureToggle & {
5934
+ /** Whether to include operation tags in mutation keys. */tags: boolean;
5838
5935
  }; /** Resolved configuration for generated mutation options helpers. */
5839
5936
  mutationOptions: NamingOptions & FeatureToggle & {
5840
5937
  /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
@@ -5847,7 +5944,8 @@ type Config$9 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugi
5847
5944
  /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
5848
5945
  meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5849
5946
  }; /** Resolved configuration for generated `setQueryData` helpers. */
5850
- setQueryData: NamingOptions & FeatureToggle; /** Configuration for generated `useMutation()` function helpers. */
5947
+ setQueryData: NamingOptions & FeatureToggle; /** Configuration for generated Preact Query hook variant of `getQueryData`. */
5948
+ useGetQueryData: NamingOptions & FeatureToggle; /** Configuration for generated `useMutation()` function helpers. */
5851
5949
  useMutation: NamingOptions & FeatureToggle; /** Configuration for generated `useQuery()` function helpers. */
5852
5950
  useQuery: NamingOptions & FeatureToggle; /** Configuration for generated Preact Query hook variant of `setQueryData`. */
5853
5951
  useSetQueryData: NamingOptions & FeatureToggle;
@@ -5862,6 +5960,40 @@ type UserConfig$11 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & P
5862
5960
  * @default 'camelCase'
5863
5961
  */
5864
5962
  case?: Casing;
5963
+ /**
5964
+ * Configuration for generated `getQueryData` helpers.
5965
+ *
5966
+ * When enabled, generates a helper per query operation that wraps
5967
+ * `queryClient.getQueryData()` with the correct query key and response
5968
+ * type already wired up.
5969
+ *
5970
+ * Can be:
5971
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
5972
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
5973
+ * - `object`: Full configuration object
5974
+ *
5975
+ * @default false
5976
+ */
5977
+ getQueryData?: boolean | NameTransformer | {
5978
+ /**
5979
+ * Casing convention for generated names.
5980
+ *
5981
+ * @default 'camelCase'
5982
+ */
5983
+ case?: Casing;
5984
+ /**
5985
+ * Whether this feature is enabled.
5986
+ *
5987
+ * @default true
5988
+ */
5989
+ enabled?: boolean;
5990
+ /**
5991
+ * Naming pattern for generated names.
5992
+ *
5993
+ * @default '{{name}}GetQueryData'
5994
+ */
5995
+ name?: NameTransformer;
5996
+ };
5865
5997
  /**
5866
5998
  * Configuration for generated infinite query key helpers.
5867
5999
  *
@@ -5960,6 +6092,45 @@ type UserConfig$11 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & P
5960
6092
  */
5961
6093
  name?: NameTransformer;
5962
6094
  };
6095
+ /**
6096
+ * Configuration for generated mutation keys.
6097
+ *
6098
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
6099
+ *
6100
+ * Can be:
6101
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6102
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6103
+ * - `object`: Full configuration object
6104
+ *
6105
+ * @default false
6106
+ */
6107
+ mutationKeys?: boolean | NameTransformer | {
6108
+ /**
6109
+ * Casing convention for generated names.
6110
+ *
6111
+ * @default 'camelCase'
6112
+ */
6113
+ case?: Casing;
6114
+ /**
6115
+ * Whether this feature is enabled.
6116
+ *
6117
+ * @default true
6118
+ */
6119
+ enabled?: boolean;
6120
+ /**
6121
+ * Naming pattern for generated names.
6122
+ *
6123
+ * @default '{{name}}MutationKey'
6124
+ */
6125
+ name?: NameTransformer;
6126
+ /**
6127
+ * Whether to include operation tags in mutation keys.
6128
+ * This will make mutation keys larger but provides better cache invalidation capabilities.
6129
+ *
6130
+ * @default false
6131
+ */
6132
+ tags?: boolean;
6133
+ };
5963
6134
  /**
5964
6135
  * Configuration for generated mutation options helpers.
5965
6136
  *
@@ -6161,6 +6332,39 @@ type UserConfig$11 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & P
6161
6332
  */
6162
6333
  name?: NameTransformer;
6163
6334
  };
6335
+ /**
6336
+ * Configuration for generated React Query hook variant of `getQueryData`.
6337
+ *
6338
+ * When enabled, generates a hook per query operation that calls
6339
+ * `useQueryClient()` internally and returns a typed getter function.
6340
+ *
6341
+ * Can be:
6342
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6343
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6344
+ * - `object`: Full configuration object
6345
+ *
6346
+ * @default false
6347
+ */
6348
+ useGetQueryData?: boolean | NameTransformer | {
6349
+ /**
6350
+ * Casing convention for generated names.
6351
+ *
6352
+ * @default 'camelCase'
6353
+ */
6354
+ case?: Casing;
6355
+ /**
6356
+ * Whether this feature is enabled.
6357
+ *
6358
+ * @default true
6359
+ */
6360
+ enabled?: boolean;
6361
+ /**
6362
+ * Naming pattern for generated names.
6363
+ *
6364
+ * @default 'use{{name}}GetQueryData'
6365
+ */
6366
+ name?: NameTransformer;
6367
+ };
6164
6368
  /**
6165
6369
  * Configuration for generated `useMutation()` function helpers.
6166
6370
  *
@@ -6264,12 +6468,16 @@ type UserConfig$11 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & P
6264
6468
  };
6265
6469
  };
6266
6470
  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. */
6471
+ /** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated `getQueryData` helpers. */
6472
+ getQueryData: NamingOptions & FeatureToggle; /** Resolved configuration for generated infinite query key helpers. */
6268
6473
  infiniteQueryKeys: NamingOptions & FeatureToggle & {
6269
6474
  /** Whether to include operation tags in infinite query keys. */tags: boolean;
6270
6475
  }; /** Resolved configuration for generated infinite query options helpers. */
6271
6476
  infiniteQueryOptions: NamingOptions & FeatureToggle & {
6272
6477
  /** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6478
+ }; /** Resolved configuration for generated mutation keys. */
6479
+ mutationKeys: NamingOptions & FeatureToggle & {
6480
+ /** Whether to include operation tags in mutation keys. */tags: boolean;
6273
6481
  }; /** Resolved configuration for generated mutation options helpers. */
6274
6482
  mutationOptions: NamingOptions & FeatureToggle & {
6275
6483
  /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
@@ -6282,7 +6490,8 @@ type Config$8 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin
6282
6490
  /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
6283
6491
  meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6284
6492
  }; /** Resolved configuration for generated `setQueryData` helpers. */
6285
- setQueryData: NamingOptions & FeatureToggle; /** Configuration for generated `useMutation()` function helpers. */
6493
+ setQueryData: NamingOptions & FeatureToggle; /** Configuration for generated React Query hook variant of `getQueryData`. */
6494
+ useGetQueryData: NamingOptions & FeatureToggle; /** Configuration for generated `useMutation()` function helpers. */
6286
6495
  useMutation: NamingOptions & FeatureToggle; /** Configuration for generated `useQuery()` function helpers. */
6287
6496
  useQuery: NamingOptions & FeatureToggle; /** Configuration for generated React Query hook variant of `setQueryData`. */
6288
6497
  useSetQueryData: NamingOptions & FeatureToggle;
@@ -6297,6 +6506,40 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6297
6506
  * @default 'camelCase'
6298
6507
  */
6299
6508
  case?: Casing;
6509
+ /**
6510
+ * Configuration for generated `getQueryData` helpers.
6511
+ *
6512
+ * When enabled, generates a helper per query operation that wraps
6513
+ * `queryClient.getQueryData()` with the correct query key and response
6514
+ * type already wired up.
6515
+ *
6516
+ * Can be:
6517
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6518
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6519
+ * - `object`: Full configuration object
6520
+ *
6521
+ * @default false
6522
+ */
6523
+ getQueryData?: boolean | NameTransformer | {
6524
+ /**
6525
+ * Casing convention for generated names.
6526
+ *
6527
+ * @default 'camelCase'
6528
+ */
6529
+ case?: Casing;
6530
+ /**
6531
+ * Whether this feature is enabled.
6532
+ *
6533
+ * @default true
6534
+ */
6535
+ enabled?: boolean;
6536
+ /**
6537
+ * Naming pattern for generated names.
6538
+ *
6539
+ * @default '{{name}}GetQueryData'
6540
+ */
6541
+ name?: NameTransformer;
6542
+ };
6300
6543
  /**
6301
6544
  * Configuration for generated infinite query key helpers.
6302
6545
  *
@@ -6393,6 +6636,45 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6393
6636
  */
6394
6637
  name?: NameTransformer;
6395
6638
  };
6639
+ /**
6640
+ * Configuration for generated mutation keys.
6641
+ *
6642
+ * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/createMutation}
6643
+ *
6644
+ * Can be:
6645
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6646
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6647
+ * - `object`: Full configuration object
6648
+ *
6649
+ * @default false
6650
+ */
6651
+ mutationKeys?: boolean | NameTransformer | {
6652
+ /**
6653
+ * Casing convention for generated names.
6654
+ *
6655
+ * @default 'camelCase'
6656
+ */
6657
+ case?: Casing;
6658
+ /**
6659
+ * Whether this feature is enabled.
6660
+ *
6661
+ * @default true
6662
+ */
6663
+ enabled?: boolean;
6664
+ /**
6665
+ * Naming pattern for generated names.
6666
+ *
6667
+ * @default '{{name}}MutationKey'
6668
+ */
6669
+ name?: NameTransformer;
6670
+ /**
6671
+ * Whether to include operation tags in mutation keys.
6672
+ * This will make mutation keys larger but provides better cache invalidation capabilities.
6673
+ *
6674
+ * @default false
6675
+ */
6676
+ tags?: boolean;
6677
+ };
6396
6678
  /**
6397
6679
  * Configuration for generated mutation options helpers.
6398
6680
  *
@@ -6591,12 +6873,16 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6591
6873
  };
6592
6874
  };
6593
6875
  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. */
6876
+ /** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated `getQueryData` helpers. */
6877
+ getQueryData: NamingOptions & FeatureToggle; /** Resolved configuration for generated infinite query key helpers. */
6595
6878
  infiniteQueryKeys: NamingOptions & FeatureToggle & {
6596
6879
  /** Whether to include operation tags in infinite query keys. */tags: boolean;
6597
6880
  }; /** Resolved configuration for generated infinite query options helpers. */
6598
6881
  infiniteQueryOptions: NamingOptions & FeatureToggle & {
6599
6882
  /** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6883
+ }; /** Resolved configuration for generated mutation keys. */
6884
+ mutationKeys: NamingOptions & FeatureToggle & {
6885
+ /** Whether to include operation tags in mutation keys. */tags: boolean;
6600
6886
  }; /** Resolved configuration for generated mutation options helpers. */
6601
6887
  mutationOptions: NamingOptions & FeatureToggle & {
6602
6888
  /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
@@ -6621,6 +6907,40 @@ type UserConfig$9 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & P
6621
6907
  * @default 'camelCase'
6622
6908
  */
6623
6909
  case?: Casing;
6910
+ /**
6911
+ * Configuration for generated `getQueryData` helpers.
6912
+ *
6913
+ * When enabled, generates a helper per query operation that wraps
6914
+ * `queryClient.getQueryData()` with the correct query key and response
6915
+ * type already wired up.
6916
+ *
6917
+ * Can be:
6918
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6919
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6920
+ * - `object`: Full configuration object
6921
+ *
6922
+ * @default false
6923
+ */
6924
+ getQueryData?: boolean | NameTransformer | {
6925
+ /**
6926
+ * Casing convention for generated names.
6927
+ *
6928
+ * @default 'camelCase'
6929
+ */
6930
+ case?: Casing;
6931
+ /**
6932
+ * Whether this feature is enabled.
6933
+ *
6934
+ * @default true
6935
+ */
6936
+ enabled?: boolean;
6937
+ /**
6938
+ * Naming pattern for generated names.
6939
+ *
6940
+ * @default '{{name}}GetQueryData'
6941
+ */
6942
+ name?: NameTransformer;
6943
+ };
6624
6944
  /**
6625
6945
  * Configuration for generated infinite query key helpers.
6626
6946
  *
@@ -6716,6 +7036,45 @@ type UserConfig$9 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & P
6716
7036
  */
6717
7037
  name?: NameTransformer;
6718
7038
  };
7039
+ /**
7040
+ * Configuration for generated mutation keys.
7041
+ *
7042
+ * See {@link https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createMutation createMutation}
7043
+ *
7044
+ * Can be:
7045
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
7046
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
7047
+ * - `object`: Full configuration object
7048
+ *
7049
+ * @default false
7050
+ */
7051
+ mutationKeys?: boolean | NameTransformer | {
7052
+ /**
7053
+ * Casing convention for generated names.
7054
+ *
7055
+ * @default 'camelCase'
7056
+ */
7057
+ case?: Casing;
7058
+ /**
7059
+ * Whether this feature is enabled.
7060
+ *
7061
+ * @default true
7062
+ */
7063
+ enabled?: boolean;
7064
+ /**
7065
+ * Naming pattern for generated names.
7066
+ *
7067
+ * @default '{{name}}MutationKey'
7068
+ */
7069
+ name?: NameTransformer;
7070
+ /**
7071
+ * Whether to include operation tags in mutation keys.
7072
+ * This will make mutation keys larger but provides better cache invalidation capabilities.
7073
+ *
7074
+ * @default false
7075
+ */
7076
+ tags?: boolean;
7077
+ };
6719
7078
  /**
6720
7079
  * Configuration for generated mutation options helpers.
6721
7080
  *
@@ -6914,12 +7273,16 @@ type UserConfig$9 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & P
6914
7273
  };
6915
7274
  };
6916
7275
  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. */
7276
+ /** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated `getQueryData` helpers. */
7277
+ getQueryData: NamingOptions & FeatureToggle; /** Resolved configuration for generated infinite query key helpers. */
6918
7278
  infiniteQueryKeys: NamingOptions & FeatureToggle & {
6919
7279
  /** Whether to include operation tags in infinite query keys. */tags: boolean;
6920
7280
  }; /** Resolved configuration for generated infinite query options helpers. */
6921
7281
  infiniteQueryOptions: NamingOptions & FeatureToggle & {
6922
7282
  /** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
7283
+ }; /** Resolved configuration for generated mutation keys. */
7284
+ mutationKeys: NamingOptions & FeatureToggle & {
7285
+ /** Whether to include operation tags in mutation keys. */tags: boolean;
6923
7286
  }; /** Resolved configuration for generated mutation options helpers. */
6924
7287
  mutationOptions: NamingOptions & FeatureToggle & {
6925
7288
  /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
@@ -6944,6 +7307,40 @@ type UserConfig$8 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plug
6944
7307
  * @default 'camelCase'
6945
7308
  */
6946
7309
  case?: Casing;
7310
+ /**
7311
+ * Configuration for generated `getQueryData` helpers.
7312
+ *
7313
+ * When enabled, generates a helper per query operation that wraps
7314
+ * `queryClient.getQueryData()` with the correct query key and response
7315
+ * type already wired up.
7316
+ *
7317
+ * Can be:
7318
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
7319
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
7320
+ * - `object`: Full configuration object
7321
+ *
7322
+ * @default false
7323
+ */
7324
+ getQueryData?: boolean | NameTransformer | {
7325
+ /**
7326
+ * Casing convention for generated names.
7327
+ *
7328
+ * @default 'camelCase'
7329
+ */
7330
+ case?: Casing;
7331
+ /**
7332
+ * Whether this feature is enabled.
7333
+ *
7334
+ * @default true
7335
+ */
7336
+ enabled?: boolean;
7337
+ /**
7338
+ * Naming pattern for generated names.
7339
+ *
7340
+ * @default '{{name}}GetQueryData'
7341
+ */
7342
+ name?: NameTransformer;
7343
+ };
6947
7344
  /**
6948
7345
  * Configuration for generated infinite query key helpers.
6949
7346
  *
@@ -7040,6 +7437,45 @@ type UserConfig$8 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plug
7040
7437
  */
7041
7438
  name?: NameTransformer;
7042
7439
  };
7440
+ /**
7441
+ * Configuration for generated mutation keys.
7442
+ *
7443
+ * See {@link https://tanstack.com/query/v5/docs/framework/vue/reference/useMutation}
7444
+ *
7445
+ * Can be:
7446
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
7447
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
7448
+ * - `object`: Full configuration object
7449
+ *
7450
+ * @default false
7451
+ */
7452
+ mutationKeys?: boolean | NameTransformer | {
7453
+ /**
7454
+ * Casing convention for generated names.
7455
+ *
7456
+ * @default 'camelCase'
7457
+ */
7458
+ case?: Casing;
7459
+ /**
7460
+ * Whether this feature is enabled.
7461
+ *
7462
+ * @default true
7463
+ */
7464
+ enabled?: boolean;
7465
+ /**
7466
+ * Naming pattern for generated names.
7467
+ *
7468
+ * @default '{{name}}MutationKey'
7469
+ */
7470
+ name?: NameTransformer;
7471
+ /**
7472
+ * Whether to include operation tags in mutation keys.
7473
+ * This will make mutation keys larger but provides better cache invalidation capabilities.
7474
+ *
7475
+ * @default false
7476
+ */
7477
+ tags?: boolean;
7478
+ };
7043
7479
  /**
7044
7480
  * Configuration for generated mutation options helpers.
7045
7481
  *
@@ -7240,12 +7676,16 @@ type UserConfig$8 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plug
7240
7676
  };
7241
7677
  };
7242
7678
  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. */
7679
+ /** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated `getQueryData` helpers. */
7680
+ getQueryData: NamingOptions & FeatureToggle; /** Resolved configuration for generated infinite query key helpers. */
7244
7681
  infiniteQueryKeys: NamingOptions & FeatureToggle & {
7245
7682
  /** Whether to include operation tags in infinite query keys. */tags: boolean;
7246
7683
  }; /** Resolved configuration for generated infinite query options helpers. */
7247
7684
  infiniteQueryOptions: NamingOptions & FeatureToggle & {
7248
7685
  /** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
7686
+ }; /** Resolved configuration for generated mutation keys. */
7687
+ mutationKeys: NamingOptions & FeatureToggle & {
7688
+ /** Whether to include operation tags in mutation keys. */tags: boolean;
7249
7689
  }; /** Resolved configuration for generated mutation options helpers. */
7250
7690
  mutationOptions: NamingOptions & FeatureToggle & {
7251
7691
  /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
@@ -7269,9 +7709,12 @@ type ValidatorArgs$2 = {
7269
7709
  };
7270
7710
  //#endregion
7271
7711
  //#region src/plugins/arktype/api.d.ts
7712
+ type ArrowFunc$2 = Extract<ReturnType<typeof $.func>, {
7713
+ '~mode': 'arrow';
7714
+ }>;
7272
7715
  type IApi$2 = {
7273
- createRequestValidator: (args: RequestSchemaContext<ArktypePlugin['Instance']>) => ReturnType<typeof $.func> | undefined;
7274
- createResponseValidator: (args: ValidatorArgs$2) => ReturnType<typeof $.func> | undefined;
7716
+ createRequestValidator: (args: RequestSchemaContext<ArktypePlugin['Instance']>) => ArrowFunc$2 | undefined;
7717
+ createResponseValidator: (args: ValidatorArgs$2) => ArrowFunc$2 | undefined;
7275
7718
  };
7276
7719
  //#endregion
7277
7720
  //#region src/plugins/arktype/types.d.ts
@@ -8360,10 +8803,18 @@ interface ValibotFinal extends Pick<ValibotResult, 'pipes'> {
8360
8803
  }
8361
8804
  //#endregion
8362
8805
  //#region src/plugins/valibot/api.d.ts
8806
+ type ArrowFunc$1 = Extract<ReturnType<typeof $.func>, {
8807
+ '~mode': 'arrow';
8808
+ }>;
8363
8809
  type IApi$1 = {
8364
8810
  createRequestSchema: (ctx: RequestSchemaContext<ValibotPlugin['Instance']>) => Symbol | Pipe | undefined;
8365
- createRequestValidator: (args: RequestSchemaContext<ValibotPlugin['Instance']>) => ReturnType<typeof $.func> | undefined;
8366
- createResponseValidator: (args: ValidatorArgs$1) => ReturnType<typeof $.func> | undefined;
8811
+ createRequestValidator: (ctx: RequestSchemaContext<ValibotPlugin['Instance']>) => ArrowFunc$1 | undefined;
8812
+ createResponseHandlers: (ctx: ValidatorArgs$1) => {
8813
+ transformer: ArrowFunc$1 | undefined;
8814
+ validator: ArrowFunc$1 | undefined;
8815
+ };
8816
+ createResponseTransformer: (ctx: ValidatorArgs$1) => ArrowFunc$1 | undefined;
8817
+ createResponseValidator: (ctx: ValidatorArgs$1) => ArrowFunc$1 | undefined;
8367
8818
  };
8368
8819
  //#endregion
8369
8820
  //#region src/plugins/shared/utils/coerce.d.ts
@@ -8516,7 +8967,7 @@ type ValibotResolvers = Plugin$1.Resolvers<{
8516
8967
  */
8517
8968
  void?: (ctx: VoidResolverContext$1) => PipeResult;
8518
8969
  }>;
8519
- interface BaseContext$1 extends DollarTsDsl {
8970
+ interface BaseContext$1 extends DollarTsDsl, SchemaVisitorContext<ValibotPlugin['Instance']> {
8520
8971
  /**
8521
8972
  * Functions for working with pipes.
8522
8973
  */
@@ -8532,8 +8983,6 @@ interface BaseContext$1 extends DollarTsDsl {
8532
8983
  */
8533
8984
  current: Pipes;
8534
8985
  };
8535
- /** The plugin instance. */
8536
- plugin: ValibotPlugin['Instance'];
8537
8986
  /**
8538
8987
  * Provides access to commonly used symbols within the plugin.
8539
8988
  */
@@ -8541,100 +8990,67 @@ interface BaseContext$1 extends DollarTsDsl {
8541
8990
  v: Symbol;
8542
8991
  };
8543
8992
  }
8544
- interface ArrayResolverContext$1 extends BaseContext$1 {
8993
+ interface ArrayResolverContext$1 extends BaseContext$1, Plugin$1.ResolverNodes<{
8994
+ base: (ctx: ArrayResolverContext$1) => PipeResult;
8995
+ length: (ctx: ArrayResolverContext$1) => PipeResult;
8996
+ maxLength: (ctx: ArrayResolverContext$1) => PipeResult;
8997
+ minLength: (ctx: ArrayResolverContext$1) => PipeResult;
8998
+ }> {
8545
8999
  applyModifiers: (result: ValibotResult, opts?: {
8546
9000
  optional?: boolean;
8547
9001
  }) => ValibotFinal;
8548
- /**
8549
- * Nodes used to build different parts of the result.
8550
- */
8551
- nodes: {
8552
- base: (ctx: ArrayResolverContext$1) => PipeResult;
8553
- length: (ctx: ArrayResolverContext$1) => PipeResult;
8554
- maxLength: (ctx: ArrayResolverContext$1) => PipeResult;
8555
- minLength: (ctx: ArrayResolverContext$1) => PipeResult;
8556
- };
8557
9002
  schema: SchemaWithType<'array'>;
8558
9003
  walk: Walker<ValibotResult, ValibotPlugin['Instance']>;
8559
- walkerCtx: SchemaVisitorContext<ValibotPlugin['Instance']>;
8560
9004
  }
8561
- interface BooleanResolverContext$1 extends BaseContext$1 {
8562
- /**
8563
- * Nodes used to build different parts of the result.
8564
- */
8565
- nodes: {
8566
- base: (ctx: BooleanResolverContext$1) => PipeResult;
8567
- const: (ctx: BooleanResolverContext$1) => PipeResult;
8568
- };
9005
+ interface BooleanResolverContext$1 extends BaseContext$1, Plugin$1.ResolverNodes<{
9006
+ base: (ctx: BooleanResolverContext$1) => PipeResult;
9007
+ const: (ctx: BooleanResolverContext$1) => PipeResult;
9008
+ }> {
8569
9009
  schema: SchemaWithType<'boolean'>;
8570
9010
  }
8571
- interface EnumResolverContext$1 extends BaseContext$1 {
9011
+ interface EnumResolverContext$1 extends BaseContext$1, Plugin$1.ResolverNodes<{
8572
9012
  /**
8573
- * Nodes used to build different parts of the result.
9013
+ * Returns the base enum expression (v.picklist([...])).
8574
9014
  */
8575
- nodes: {
8576
- /**
8577
- * Returns the base enum expression (v.picklist([...])).
8578
- */
8579
- base: (ctx: EnumResolverContext$1) => PipeResult;
9015
+ base: (ctx: EnumResolverContext$1) => PipeResult;
9016
+ /**
9017
+ * Returns parsed enum items with metadata about the enum members.
9018
+ */
9019
+ items: (ctx: EnumResolverContext$1) => {
8580
9020
  /**
8581
- * Returns parsed enum items with metadata about the enum members.
9021
+ * Literal nodes for each enum member.
8582
9022
  */
8583
- items: (ctx: EnumResolverContext$1) => {
8584
- /**
8585
- * String literal values for use with v.picklist([...]).
8586
- */
8587
- enumMembers: Array<ReturnType<typeof $.literal>>;
8588
- /**
8589
- * Whether the enum includes a null value.
8590
- */
8591
- isNullable: boolean;
8592
- };
9023
+ enumMembers: Array<ReturnType<typeof $.literal>>;
8593
9024
  };
9025
+ }> {
8594
9026
  schema: SchemaWithType<'enum'>;
8595
9027
  }
8596
- interface IntersectionResolverContext$1 extends BaseContext$1 {
9028
+ interface IntersectionResolverContext$1 extends BaseContext$1, Plugin$1.ResolverNodes<{
9029
+ base: (ctx: IntersectionResolverContext$1) => PipeResult;
9030
+ }> {
8597
9031
  applyModifiers: (result: ValibotResult, opts?: {
8598
9032
  optional?: boolean;
8599
9033
  }) => ValibotFinal;
8600
9034
  childResults: Array<ValibotResult>;
8601
- /**
8602
- * Nodes used to build different parts of the result.
8603
- */
8604
- nodes: {
8605
- base: (ctx: IntersectionResolverContext$1) => PipeResult;
8606
- };
8607
9035
  parentSchema: IR$1.SchemaObject;
8608
9036
  schema: IR$1.SchemaObject;
8609
9037
  }
8610
- interface NeverResolverContext$1 extends BaseContext$1 {
8611
- /**
8612
- * Nodes used to build different parts of the result.
8613
- */
8614
- nodes: {
8615
- base: (ctx: NeverResolverContext$1) => PipeResult;
8616
- };
9038
+ interface NeverResolverContext$1 extends BaseContext$1, Plugin$1.ResolverNodes<{
9039
+ base: (ctx: NeverResolverContext$1) => PipeResult;
9040
+ }> {
8617
9041
  schema: SchemaWithType<'never'>;
8618
9042
  }
8619
- interface NullResolverContext$1 extends BaseContext$1 {
8620
- /**
8621
- * Nodes used to build different parts of the result.
8622
- */
8623
- nodes: {
8624
- base: (ctx: NullResolverContext$1) => PipeResult;
8625
- };
9043
+ interface NullResolverContext$1 extends BaseContext$1, Plugin$1.ResolverNodes<{
9044
+ base: (ctx: NullResolverContext$1) => PipeResult;
9045
+ }> {
8626
9046
  schema: SchemaWithType<'null'>;
8627
9047
  }
8628
- interface NumberResolverContext$1 extends BaseContext$1 {
8629
- /**
8630
- * Nodes used to build different parts of the result.
8631
- */
8632
- nodes: {
8633
- base: (ctx: NumberResolverContext$1) => PipeResult;
8634
- const: (ctx: NumberResolverContext$1) => PipeResult;
8635
- max: (ctx: NumberResolverContext$1) => PipeResult;
8636
- min: (ctx: NumberResolverContext$1) => PipeResult;
8637
- };
9048
+ interface NumberResolverContext$1 extends BaseContext$1, Plugin$1.ResolverNodes<{
9049
+ base: (ctx: NumberResolverContext$1) => PipeResult;
9050
+ const: (ctx: NumberResolverContext$1) => PipeResult;
9051
+ max: (ctx: NumberResolverContext$1) => PipeResult;
9052
+ min: (ctx: NumberResolverContext$1) => PipeResult;
9053
+ }> {
8638
9054
  schema: SchemaWithType<'integer' | 'number'>;
8639
9055
  /**
8640
9056
  * Utility functions for number schema processing.
@@ -8645,113 +9061,83 @@ interface NumberResolverContext$1 extends BaseContext$1 {
8645
9061
  shouldCoerceToBigInt: ShouldCoerceToBigInt;
8646
9062
  };
8647
9063
  }
8648
- interface ObjectResolverContext$1 extends BaseContext$1 {
9064
+ interface ObjectResolverContext$1 extends BaseContext$1, Plugin$1.ResolverNodes<{
9065
+ additionalProperties: (ctx: ObjectResolverContext$1) => Pipe | null | undefined;
9066
+ base: (ctx: ObjectResolverContext$1) => Pipes | Pipe;
9067
+ shape: (ctx: ObjectResolverContext$1) => ReturnType<typeof $.object>;
9068
+ }> {
8649
9069
  _childResults: Array<ValibotResult>;
8650
- applyModifiers: (result: ValibotResult, opts: {
9070
+ applyModifiers: (result: ValibotResult, opts?: {
8651
9071
  optional?: boolean;
8652
9072
  }) => ValibotFinal;
8653
- /**
8654
- * Nodes used to build different parts of the result.
8655
- */
8656
- nodes: {
8657
- additionalProperties: (ctx: ObjectResolverContext$1) => Pipe | null | undefined;
8658
- base: (ctx: ObjectResolverContext$1) => Pipes | Pipe;
8659
- shape: (ctx: ObjectResolverContext$1) => ReturnType<typeof $.object>;
8660
- };
8661
9073
  schema: SchemaWithType<'object'>;
8662
9074
  walk: Walker<ValibotResult, ValibotPlugin['Instance']>;
8663
- walkerCtx: SchemaVisitorContext<ValibotPlugin['Instance']>;
8664
9075
  }
8665
- interface StringResolverContext$1 extends BaseContext$1 {
8666
- /**
8667
- * Nodes used to build different parts of the result.
8668
- */
8669
- nodes: {
8670
- base: (ctx: StringResolverContext$1) => PipeResult;
8671
- const: (ctx: StringResolverContext$1) => PipeResult;
8672
- format: (ctx: StringResolverContext$1) => PipeResult;
8673
- length: (ctx: StringResolverContext$1) => PipeResult;
8674
- maxLength: (ctx: StringResolverContext$1) => PipeResult;
8675
- minLength: (ctx: StringResolverContext$1) => PipeResult;
8676
- pattern: (ctx: StringResolverContext$1) => PipeResult;
8677
- };
9076
+ interface StringResolverContext$1 extends BaseContext$1, Plugin$1.ResolverNodes<{
9077
+ base: (ctx: StringResolverContext$1) => PipeResult;
9078
+ const: (ctx: StringResolverContext$1) => PipeResult;
9079
+ format: (ctx: StringResolverContext$1) => PipeResult;
9080
+ length: (ctx: StringResolverContext$1) => PipeResult;
9081
+ maxLength: (ctx: StringResolverContext$1) => PipeResult;
9082
+ minLength: (ctx: StringResolverContext$1) => PipeResult;
9083
+ pattern: (ctx: StringResolverContext$1) => PipeResult;
9084
+ }> {
8678
9085
  schema: SchemaWithType<'string'>;
8679
9086
  }
8680
- interface TupleResolverContext$1 extends BaseContext$1 {
9087
+ interface TupleResolverContext$1 extends BaseContext$1, Plugin$1.ResolverNodes<{
9088
+ base: (ctx: TupleResolverContext$1) => PipeResult;
9089
+ const: (ctx: TupleResolverContext$1) => PipeResult;
9090
+ }> {
8681
9091
  applyModifiers: (result: ValibotResult, opts?: {
8682
9092
  optional?: boolean;
8683
9093
  }) => ValibotFinal;
8684
- /**
8685
- * Nodes used to build different parts of the result.
8686
- */
8687
- nodes: {
8688
- base: (ctx: TupleResolverContext$1) => PipeResult;
8689
- const: (ctx: TupleResolverContext$1) => PipeResult;
8690
- };
8691
9094
  schema: SchemaWithType<'tuple'>;
8692
9095
  walk: Walker<ValibotResult, ValibotPlugin['Instance']>;
8693
- walkerCtx: SchemaVisitorContext<ValibotPlugin['Instance']>;
8694
9096
  }
8695
- interface UndefinedResolverContext$1 extends BaseContext$1 {
8696
- /**
8697
- * Nodes used to build different parts of the result.
8698
- */
8699
- nodes: {
8700
- base: (ctx: UndefinedResolverContext$1) => PipeResult;
8701
- };
9097
+ interface UndefinedResolverContext$1 extends BaseContext$1, Plugin$1.ResolverNodes<{
9098
+ base: (ctx: UndefinedResolverContext$1) => PipeResult;
9099
+ }> {
8702
9100
  schema: SchemaWithType<'undefined'>;
8703
9101
  }
8704
- interface UnionResolverContext$1 extends BaseContext$1 {
9102
+ interface UnionResolverContext$1 extends BaseContext$1, Plugin$1.ResolverNodes<{
9103
+ base: (ctx: UnionResolverContext$1) => PipeResult;
9104
+ }> {
8705
9105
  applyModifiers: (result: ValibotResult, opts?: {
8706
9106
  optional?: boolean;
8707
9107
  }) => ValibotFinal;
8708
9108
  childResults: Array<ValibotResult>;
8709
- /**
8710
- * Nodes used to build different parts of the result.
8711
- */
8712
- nodes: {
8713
- base: (ctx: UnionResolverContext$1) => PipeResult;
8714
- };
8715
9109
  parentSchema: IR$1.SchemaObject;
8716
9110
  schema: IR$1.SchemaObject;
8717
9111
  schemas: ReadonlyArray<IR$1.SchemaObject>;
8718
9112
  }
8719
- interface UnknownResolverContext$1 extends BaseContext$1 {
8720
- /**
8721
- * Nodes used to build different parts of the result.
8722
- */
8723
- nodes: {
8724
- base: (ctx: UnknownResolverContext$1) => PipeResult;
8725
- };
9113
+ interface UnknownResolverContext$1 extends BaseContext$1, Plugin$1.ResolverNodes<{
9114
+ base: (ctx: UnknownResolverContext$1) => PipeResult;
9115
+ }> {
8726
9116
  schema: SchemaWithType<'unknown'>;
8727
9117
  }
8728
- interface RequestValidatorResolverContext$1 extends BaseContext$1, RequestSchemaContext<ValibotPlugin['Instance']> {
9118
+ interface RequestValidatorResolverContext$1 extends BaseContext$1, RequestSchemaContext<ValibotPlugin['Instance']>, Plugin$1.ResolverNodes<{
8729
9119
  /**
8730
- * Nodes used to build different parts of the result.
9120
+ * Returns the composite schema combining all layers.
9121
+ *
9122
+ * Returns `undefined` if all layers are omitted.
8731
9123
  */
8732
- nodes: {
8733
- /**
8734
- * Returns the composite schema combining all layers.
8735
- *
8736
- * Returns `undefined` if all layers are omitted.
8737
- */
8738
- composite: (ctx: RequestValidatorResolverContext$1) => Pipe | undefined;
8739
- /**
8740
- * Returns an empty/fallback schema for a layer based on its `whenEmpty` config.
8741
- *
8742
- * @throws if `whenEmpty` is `'omit'` (no schema should be generated)
8743
- */
8744
- empty: (ctx: RequestValidatorResolverContext$1 & {
8745
- /** Resolved configuration for the request layer. */layer: ResolvedRequestValidatorLayer;
8746
- }) => Pipe;
8747
- /**
8748
- * Returns an optional schema based on the layer's config.
8749
- */
8750
- optional: (ctx: RequestValidatorResolverContext$1 & {
8751
- /** Resolved configuration for the request layer. */layer: ResolvedRequestValidatorLayer; /** The schema to conditionally wrap. */
8752
- schema: Pipe;
8753
- }) => Pipe;
8754
- };
9124
+ composite: (ctx: RequestValidatorResolverContext$1) => Pipe | undefined;
9125
+ /**
9126
+ * Returns an empty/fallback schema for a layer based on its `whenEmpty` config.
9127
+ *
9128
+ * @throws if `whenEmpty` is `'omit'` (no schema should be generated)
9129
+ */
9130
+ empty: (ctx: RequestValidatorResolverContext$1 & {
9131
+ /** Resolved configuration for the request layer. */layer: ResolvedRequestValidatorLayer;
9132
+ }) => Pipe;
9133
+ /**
9134
+ * Returns an optional schema based on the layer's config.
9135
+ */
9136
+ optional: (ctx: RequestValidatorResolverContext$1 & {
9137
+ /** Resolved configuration for the request layer. */layer: ResolvedRequestValidatorLayer; /** The schema to conditionally wrap. */
9138
+ schema: Pipe;
9139
+ }) => Pipe;
9140
+ }> {
8755
9141
  /**
8756
9142
  * Provides access to commonly used symbols within the plugin.
8757
9143
  */
@@ -8780,13 +9166,9 @@ interface ResponseValidatorResolverContext$1 extends BaseContext$1 {
8780
9166
  };
8781
9167
  }
8782
9168
  type ValidatorResolverContext$1 = RequestValidatorResolverContext$1 | ResponseValidatorResolverContext$1;
8783
- interface VoidResolverContext$1 extends BaseContext$1 {
8784
- /**
8785
- * Nodes used to build different parts of the result.
8786
- */
8787
- nodes: {
8788
- base: (ctx: VoidResolverContext$1) => PipeResult;
8789
- };
9169
+ interface VoidResolverContext$1 extends BaseContext$1, Plugin$1.ResolverNodes<{
9170
+ base: (ctx: VoidResolverContext$1) => PipeResult;
9171
+ }> {
8790
9172
  schema: SchemaWithType<'void'>;
8791
9173
  }
8792
9174
  //#endregion
@@ -9158,22 +9540,30 @@ interface ZodMeta {
9158
9540
  * Result from walking a schema node.
9159
9541
  */
9160
9542
  interface ZodResult {
9161
- expression: Chain;
9543
+ chain: Chain;
9162
9544
  meta: ZodMeta;
9163
9545
  }
9164
9546
  /**
9165
9547
  * Finalized result after applyModifiers.
9166
9548
  */
9167
- interface ZodFinal extends Pick<ZodResult, 'expression'> {
9549
+ interface ZodFinal extends Pick<ZodResult, 'chain'> {
9168
9550
  /** Type annotation for schemas requiring explicit typing (e.g., lazy). */
9169
9551
  typeName?: string | ts.Identifier;
9170
9552
  }
9171
9553
  //#endregion
9172
9554
  //#region src/plugins/zod/api.d.ts
9555
+ type ArrowFunc = Extract<ReturnType<typeof $.func>, {
9556
+ '~mode': 'arrow';
9557
+ }>;
9173
9558
  type IApi = {
9174
9559
  createRequestSchema: (ctx: RequestSchemaContext<ZodPlugin['Instance']>) => Symbol | Chain | undefined;
9175
- createRequestValidator: (ctx: RequestSchemaContext<ZodPlugin['Instance']>) => ReturnType<typeof $.func> | undefined;
9176
- createResponseValidator: (ctx: ValidatorArgs) => ReturnType<typeof $.func> | undefined;
9560
+ createRequestValidator: (ctx: RequestSchemaContext<ZodPlugin['Instance']>) => ArrowFunc | undefined;
9561
+ createResponseHandlers: (ctx: ValidatorArgs) => {
9562
+ transformer: ArrowFunc | undefined;
9563
+ validator: ArrowFunc | undefined;
9564
+ };
9565
+ createResponseTransformer: (ctx: ValidatorArgs) => ArrowFunc | undefined;
9566
+ createResponseValidator: (ctx: ValidatorArgs) => ArrowFunc | undefined;
9177
9567
  };
9178
9568
  //#endregion
9179
9569
  //#region src/plugins/zod/resolvers.d.ts
@@ -9312,7 +9702,7 @@ type ZodResolvers = Plugin$1.Resolvers<{
9312
9702
  */
9313
9703
  void?: (ctx: VoidResolverContext) => ChainResult;
9314
9704
  }>;
9315
- interface BaseContext extends DollarTsDsl {
9705
+ interface BaseContext extends DollarTsDsl, SchemaVisitorContext<ZodPlugin['Instance']> {
9316
9706
  /**
9317
9707
  * Functions for working with chains.
9318
9708
  */
@@ -9328,8 +9718,6 @@ interface BaseContext extends DollarTsDsl {
9328
9718
  */
9329
9719
  current: Chain;
9330
9720
  };
9331
- /** The plugin instance. */
9332
- plugin: ZodPlugin['Instance'];
9333
9721
  /**
9334
9722
  * Provides access to commonly used symbols within the plugin.
9335
9723
  */
@@ -9337,7 +9725,24 @@ interface BaseContext extends DollarTsDsl {
9337
9725
  z: Symbol;
9338
9726
  };
9339
9727
  }
9340
- interface ArrayResolverContext extends BaseContext {
9728
+ interface ArrayResolverContext extends BaseContext, Plugin$1.ResolverNodes<{
9729
+ /**
9730
+ * Returns the base array expression (z.array(...)).
9731
+ */
9732
+ base: (ctx: ArrayResolverContext) => Chain;
9733
+ /**
9734
+ * Returns a length constraint (when minItems === maxItems), if applicable.
9735
+ */
9736
+ length: (ctx: ArrayResolverContext) => ChainResult;
9737
+ /**
9738
+ * Returns a maxItems constraint, if applicable.
9739
+ */
9740
+ maxLength: (ctx: ArrayResolverContext) => ChainResult;
9741
+ /**
9742
+ * Returns a minItems constraint, if applicable.
9743
+ */
9744
+ minLength: (ctx: ArrayResolverContext) => ChainResult;
9745
+ }> {
9341
9746
  applyModifiers: (result: ZodResult, opts?: {
9342
9747
  optional?: boolean;
9343
9748
  }) => ZodFinal;
@@ -9345,141 +9750,87 @@ interface ArrayResolverContext extends BaseContext {
9345
9750
  * Child results from processing array items.
9346
9751
  */
9347
9752
  childResults: Array<ZodResult>;
9348
- /**
9349
- * Nodes used to build different parts of the result.
9350
- */
9351
- nodes: {
9352
- /**
9353
- * Returns the base array expression (z.array(...)).
9354
- */
9355
- base: (ctx: ArrayResolverContext) => Chain;
9356
- /**
9357
- * Returns a length constraint (when minItems === maxItems), if applicable.
9358
- */
9359
- length: (ctx: ArrayResolverContext) => ChainResult;
9360
- /**
9361
- * Returns a maxItems constraint, if applicable.
9362
- */
9363
- maxLength: (ctx: ArrayResolverContext) => ChainResult;
9364
- /**
9365
- * Returns a minItems constraint, if applicable.
9366
- */
9367
- minLength: (ctx: ArrayResolverContext) => ChainResult;
9368
- };
9369
9753
  schema: SchemaWithType<'array'>;
9370
9754
  walk: Walker<ZodResult, ZodPlugin['Instance']>;
9371
- walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
9372
9755
  }
9373
- interface BooleanResolverContext extends BaseContext {
9756
+ interface BooleanResolverContext extends BaseContext, Plugin$1.ResolverNodes<{
9374
9757
  /**
9375
- * Nodes used to build different parts of the result.
9758
+ * Returns the base boolean expression (z.boolean()).
9376
9759
  */
9377
- nodes: {
9378
- /**
9379
- * Returns the base boolean expression (z.boolean()).
9380
- */
9381
- base: (ctx: BooleanResolverContext) => Chain;
9382
- /**
9383
- * Returns a literal expression for the const value, if present.
9384
- */
9385
- const: (ctx: BooleanResolverContext) => ChainResult;
9386
- };
9760
+ base: (ctx: BooleanResolverContext) => Chain;
9761
+ /**
9762
+ * Returns a literal expression for the const value, if present.
9763
+ */
9764
+ const: (ctx: BooleanResolverContext) => ChainResult;
9765
+ }> {
9387
9766
  schema: SchemaWithType<'boolean'>;
9388
9767
  }
9389
- interface EnumResolverContext extends BaseContext {
9768
+ interface EnumResolverContext extends BaseContext, Plugin$1.ResolverNodes<{
9769
+ /**
9770
+ * Returns the base enum expression (z.enum([...]) or z.union([...])).
9771
+ */
9772
+ base: (ctx: EnumResolverContext) => Chain;
9390
9773
  /**
9391
- * Nodes used to build different parts of the result.
9774
+ * Returns parsed enum items with metadata about the enum members.
9392
9775
  */
9393
- nodes: {
9776
+ items: (ctx: EnumResolverContext) => {
9394
9777
  /**
9395
- * Returns the base enum expression (z.enum([...]) or z.union([...])).
9778
+ * String literal nodes for each string-typed enum member.
9396
9779
  */
9397
- base: (ctx: EnumResolverContext) => Chain;
9780
+ enumMembers: Array<ReturnType<typeof $.literal>>;
9398
9781
  /**
9399
- * Returns parsed enum items with metadata about the enum members.
9782
+ * Schema expressions for each non-null enum member (e.g. z.literal(...)).
9400
9783
  */
9401
- items: (ctx: EnumResolverContext) => {
9402
- /**
9403
- * Whether all enum members are strings.
9404
- */
9405
- allStrings: boolean;
9406
- /**
9407
- * String literal values for use with z.enum([...]).
9408
- */
9409
- enumMembers: Array<ReturnType<typeof $.literal>>;
9410
- /**
9411
- * Whether the enum includes a null value.
9412
- */
9413
- isNullable: boolean;
9414
- /**
9415
- * Zod literal expressions for each enum member.
9416
- */
9417
- literalMembers: Array<Chain>;
9418
- };
9784
+ literalSchemas: Array<Chain>;
9419
9785
  };
9786
+ }> {
9420
9787
  schema: SchemaWithType<'enum'>;
9421
9788
  }
9422
- interface IntersectionResolverContext extends BaseContext {
9423
- childResults: Array<ZodResult>;
9789
+ interface IntersectionResolverContext extends BaseContext, Plugin$1.ResolverNodes<{
9424
9790
  /**
9425
- * Nodes used to build different parts of the result.
9791
+ * Returns the base intersection expression.
9426
9792
  */
9427
- nodes: {
9428
- /**
9429
- * Returns the base intersection expression.
9430
- */
9431
- base: (ctx: IntersectionResolverContext) => Chain;
9432
- };
9793
+ base: (ctx: IntersectionResolverContext) => Chain;
9794
+ }> {
9795
+ childResults: Array<ZodResult>;
9433
9796
  parentSchema: IR$1.SchemaObject;
9434
9797
  schema: IR$1.SchemaObject;
9435
9798
  schemas: ReadonlyArray<IR$1.SchemaObject>;
9436
9799
  }
9437
- interface NeverResolverContext extends BaseContext {
9800
+ interface NeverResolverContext extends BaseContext, Plugin$1.ResolverNodes<{
9438
9801
  /**
9439
- * Nodes used to build different parts of the result.
9802
+ * Returns the base never expression (z.never()).
9440
9803
  */
9441
- nodes: {
9442
- /**
9443
- * Returns the base never expression (z.never()).
9444
- */
9445
- base: (ctx: NeverResolverContext) => Chain;
9446
- };
9804
+ base: (ctx: NeverResolverContext) => Chain;
9805
+ }> {
9447
9806
  schema: SchemaWithType<'never'>;
9448
9807
  }
9449
- interface NullResolverContext extends BaseContext {
9808
+ interface NullResolverContext extends BaseContext, Plugin$1.ResolverNodes<{
9450
9809
  /**
9451
- * Nodes used to build different parts of the result.
9810
+ * Returns the base null expression (z.null()).
9452
9811
  */
9453
- nodes: {
9454
- /**
9455
- * Returns the base null expression (z.null()).
9456
- */
9457
- base: (ctx: NullResolverContext) => Chain;
9458
- };
9812
+ base: (ctx: NullResolverContext) => Chain;
9813
+ }> {
9459
9814
  schema: SchemaWithType<'null'>;
9460
9815
  }
9461
- interface NumberResolverContext extends BaseContext {
9816
+ interface NumberResolverContext extends BaseContext, Plugin$1.ResolverNodes<{
9462
9817
  /**
9463
- * Nodes used to build different parts of the result.
9818
+ * Returns the base number expression (z.number() or z.coerce.number()).
9464
9819
  */
9465
- nodes: {
9466
- /**
9467
- * Returns the base number expression (z.number() or z.coerce.number()).
9468
- */
9469
- base: (ctx: NumberResolverContext) => Chain;
9470
- /**
9471
- * Returns a literal expression for the const value, if present.
9472
- */
9473
- const: (ctx: NumberResolverContext) => ChainResult;
9474
- /**
9475
- * Returns the maximum value constraint.
9476
- */
9477
- max: (ctx: NumberResolverContext) => ChainResult;
9478
- /**
9479
- * Returns the minimum value constraint.
9480
- */
9481
- min: (ctx: NumberResolverContext) => ChainResult;
9482
- };
9820
+ base: (ctx: NumberResolverContext) => Chain;
9821
+ /**
9822
+ * Returns a literal expression for the const value, if present.
9823
+ */
9824
+ const: (ctx: NumberResolverContext) => ChainResult;
9825
+ /**
9826
+ * Returns the maximum value constraint.
9827
+ */
9828
+ max: (ctx: NumberResolverContext) => ChainResult;
9829
+ /**
9830
+ * Returns the minimum value constraint.
9831
+ */
9832
+ min: (ctx: NumberResolverContext) => ChainResult;
9833
+ }> {
9483
9834
  schema: SchemaWithType<'integer' | 'number'>;
9484
9835
  /**
9485
9836
  * Utility functions for number schema processing.
@@ -9490,7 +9841,20 @@ interface NumberResolverContext extends BaseContext {
9490
9841
  shouldCoerceToBigInt: ShouldCoerceToBigInt;
9491
9842
  };
9492
9843
  }
9493
- interface ObjectResolverContext extends BaseContext {
9844
+ interface ObjectResolverContext extends BaseContext, Plugin$1.ResolverNodes<{
9845
+ /**
9846
+ * Returns the additional properties expression, if any.
9847
+ */
9848
+ additionalProperties: (ctx: ObjectResolverContext) => Chain | null | undefined;
9849
+ /**
9850
+ * Returns the base object expression (z.object({...}) or z.record(...)).
9851
+ */
9852
+ base: (ctx: ObjectResolverContext) => Chain;
9853
+ /**
9854
+ * Returns the object shape (property definitions).
9855
+ */
9856
+ shape: (ctx: ObjectResolverContext) => ReturnType<typeof $.object>;
9857
+ }> {
9494
9858
  /**
9495
9859
  * Child results from processing object properties.
9496
9860
  * Used for metadata composition.
@@ -9499,151 +9863,108 @@ interface ObjectResolverContext extends BaseContext {
9499
9863
  applyModifiers: (result: ZodResult, opts: {
9500
9864
  optional?: boolean;
9501
9865
  }) => ZodFinal;
9502
- /**
9503
- * Nodes used to build different parts of the result.
9504
- */
9505
- nodes: {
9506
- /**
9507
- * Returns the additional properties expression, if any.
9508
- */
9509
- additionalProperties: (ctx: ObjectResolverContext) => Chain | null | undefined;
9510
- /**
9511
- * Returns the base object expression (z.object({...}) or z.record(...)).
9512
- */
9513
- base: (ctx: ObjectResolverContext) => Chain;
9514
- /**
9515
- * Returns the object shape (property definitions).
9516
- */
9517
- shape: (ctx: ObjectResolverContext) => ReturnType<typeof $.object>;
9518
- };
9519
9866
  schema: SchemaWithType<'object'>;
9520
9867
  walk: Walker<ZodResult, ZodPlugin['Instance']>;
9521
- walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
9522
9868
  }
9523
- interface StringResolverContext extends BaseContext {
9869
+ interface StringResolverContext extends BaseContext, Plugin$1.ResolverNodes<{
9524
9870
  /**
9525
- * Nodes used to build different parts of the result.
9871
+ * Returns the base string expression (z.string()).
9526
9872
  */
9527
- nodes: {
9528
- /**
9529
- * Returns the base string expression (z.string()).
9530
- */
9531
- base: (ctx: StringResolverContext) => Chain;
9532
- /**
9533
- * Returns a literal expression for the const value, if present.
9534
- */
9535
- const: (ctx: StringResolverContext) => ChainResult;
9536
- /**
9537
- * Returns a format validation expression, if applicable.
9538
- */
9539
- format: (ctx: StringResolverContext) => ChainResult;
9540
- /**
9541
- * Returns a length constraint (when min === max), if applicable.
9542
- */
9543
- length: (ctx: StringResolverContext) => ChainResult;
9544
- /**
9545
- * Returns a maxLength constraint, if applicable.
9546
- */
9547
- maxLength: (ctx: StringResolverContext) => ChainResult;
9548
- /**
9549
- * Returns a minLength constraint, if applicable.
9550
- */
9551
- minLength: (ctx: StringResolverContext) => ChainResult;
9552
- /**
9553
- * Returns a pattern (regex) constraint, if applicable.
9554
- */
9555
- pattern: (ctx: StringResolverContext) => ChainResult;
9556
- };
9873
+ base: (ctx: StringResolverContext) => Chain;
9874
+ /**
9875
+ * Returns a literal expression for the const value, if present.
9876
+ */
9877
+ const: (ctx: StringResolverContext) => ChainResult;
9878
+ /**
9879
+ * Returns a format validation expression, if applicable.
9880
+ */
9881
+ format: (ctx: StringResolverContext) => ChainResult;
9882
+ /**
9883
+ * Returns a length constraint (when min === max), if applicable.
9884
+ */
9885
+ length: (ctx: StringResolverContext) => ChainResult;
9886
+ /**
9887
+ * Returns a maxLength constraint, if applicable.
9888
+ */
9889
+ maxLength: (ctx: StringResolverContext) => ChainResult;
9890
+ /**
9891
+ * Returns a minLength constraint, if applicable.
9892
+ */
9893
+ minLength: (ctx: StringResolverContext) => ChainResult;
9894
+ /**
9895
+ * Returns a pattern (regex) constraint, if applicable.
9896
+ */
9897
+ pattern: (ctx: StringResolverContext) => ChainResult;
9898
+ }> {
9557
9899
  schema: SchemaWithType<'string'>;
9558
9900
  }
9559
- interface TupleResolverContext extends BaseContext {
9901
+ interface TupleResolverContext extends BaseContext, Plugin$1.ResolverNodes<{
9902
+ /**
9903
+ * Returns the base tuple expression (z.tuple([...])).
9904
+ */
9905
+ base: (ctx: TupleResolverContext) => Chain;
9906
+ /**
9907
+ * Returns a literal expression for the const value, if present.
9908
+ */
9909
+ const: (ctx: TupleResolverContext) => ChainResult;
9910
+ }> {
9560
9911
  applyModifiers: (result: ZodResult, opts?: {
9561
9912
  optional?: boolean;
9562
9913
  }) => ZodFinal;
9563
9914
  childResults: Array<ZodResult>;
9564
- /**
9565
- * Nodes used to build different parts of the result.
9566
- */
9567
- nodes: {
9568
- /**
9569
- * Returns the base tuple expression (z.tuple([...])).
9570
- */
9571
- base: (ctx: TupleResolverContext) => Chain;
9572
- /**
9573
- * Returns a literal expression for the const value, if present.
9574
- */
9575
- const: (ctx: TupleResolverContext) => ChainResult;
9576
- };
9577
9915
  schema: SchemaWithType<'tuple'>;
9578
9916
  walk: Walker<ZodResult, ZodPlugin['Instance']>;
9579
- walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
9580
9917
  }
9581
- interface UndefinedResolverContext extends BaseContext {
9918
+ interface UndefinedResolverContext extends BaseContext, Plugin$1.ResolverNodes<{
9582
9919
  /**
9583
- * Nodes used to build different parts of the result.
9920
+ * Returns the base undefined expression (z.undefined()).
9584
9921
  */
9585
- nodes: {
9586
- /**
9587
- * Returns the base undefined expression (z.undefined()).
9588
- */
9589
- base: (ctx: UndefinedResolverContext) => Chain;
9590
- };
9922
+ base: (ctx: UndefinedResolverContext) => Chain;
9923
+ }> {
9591
9924
  schema: SchemaWithType<'undefined'>;
9592
9925
  }
9593
- interface UnionResolverContext extends BaseContext {
9594
- childResults: Array<ZodResult>;
9926
+ interface UnionResolverContext extends BaseContext, Plugin$1.ResolverNodes<{
9595
9927
  /**
9596
- * Nodes used to build different parts of the result.
9928
+ * Returns the base union expression.
9597
9929
  */
9598
- nodes: {
9599
- /**
9600
- * Returns the base union expression.
9601
- */
9602
- base: (ctx: UnionResolverContext) => Chain;
9603
- };
9930
+ base: (ctx: UnionResolverContext) => Chain;
9931
+ }> {
9932
+ childResults: Array<ZodResult>;
9604
9933
  parentSchema: IR$1.SchemaObject;
9605
9934
  schema: IR$1.SchemaObject;
9606
9935
  schemas: ReadonlyArray<IR$1.SchemaObject>;
9607
9936
  }
9608
- interface UnknownResolverContext extends BaseContext {
9937
+ interface UnknownResolverContext extends BaseContext, Plugin$1.ResolverNodes<{
9609
9938
  /**
9610
- * Nodes used to build different parts of the result.
9939
+ * Returns the base unknown expression (z.unknown()).
9611
9940
  */
9612
- nodes: {
9613
- /**
9614
- * Returns the base unknown expression (z.unknown()).
9615
- */
9616
- base: (ctx: UnknownResolverContext) => Chain;
9617
- };
9941
+ base: (ctx: UnknownResolverContext) => Chain;
9942
+ }> {
9618
9943
  schema: SchemaWithType<'unknown'>;
9619
9944
  }
9620
- interface RequestValidatorResolverContext extends BaseContext, RequestSchemaContext<ZodPlugin['Instance']> {
9945
+ interface RequestValidatorResolverContext extends BaseContext, RequestSchemaContext<ZodPlugin['Instance']>, Plugin$1.ResolverNodes<{
9621
9946
  /**
9622
- * Nodes used to build different parts of the result.
9947
+ * Returns the composite schema combining all layers.
9948
+ *
9949
+ * Returns `undefined` if all layers are omitted.
9623
9950
  */
9624
- nodes: {
9625
- /**
9626
- * Returns the composite schema combining all layers.
9627
- *
9628
- * Returns `undefined` if all layers are omitted.
9629
- */
9630
- composite: (ctx: RequestValidatorResolverContext) => Chain | undefined;
9631
- /**
9632
- * Returns an empty/fallback schema for a layer based on its `whenEmpty` config.
9633
- *
9634
- * @throws if `whenEmpty` is `'omit'` (no schema should be generated)
9635
- */
9636
- empty: (ctx: RequestValidatorResolverContext & {
9637
- /** Resolved configuration for the request layer. */layer: ResolvedRequestValidatorLayer;
9638
- }) => Chain;
9639
- /**
9640
- * Returns an optional schema based on the layer's config.
9641
- */
9642
- optional: (ctx: RequestValidatorResolverContext & {
9643
- /** Resolved configuration for the request layer. */layer: ResolvedRequestValidatorLayer; /** The schema to conditionally wrap. */
9644
- schema: Chain;
9645
- }) => Chain;
9646
- };
9951
+ composite: (ctx: RequestValidatorResolverContext) => Chain | undefined;
9952
+ /**
9953
+ * Returns an empty/fallback schema for a layer based on its `whenEmpty` config.
9954
+ *
9955
+ * @throws if `whenEmpty` is `'omit'` (no schema should be generated)
9956
+ */
9957
+ empty: (ctx: RequestValidatorResolverContext & {
9958
+ /** Resolved configuration for the request layer. */layer: ResolvedRequestValidatorLayer;
9959
+ }) => Chain;
9960
+ /**
9961
+ * Returns an optional schema based on the layer's config.
9962
+ */
9963
+ optional: (ctx: RequestValidatorResolverContext & {
9964
+ /** Resolved configuration for the request layer. */layer: ResolvedRequestValidatorLayer; /** The schema to conditionally wrap. */
9965
+ schema: Chain;
9966
+ }) => Chain;
9967
+ }> {
9647
9968
  /**
9648
9969
  * Provides access to commonly used symbols within the plugin.
9649
9970
  */
@@ -9672,16 +9993,12 @@ interface ResponseValidatorResolverContext extends BaseContext {
9672
9993
  };
9673
9994
  }
9674
9995
  type ValidatorResolverContext = RequestValidatorResolverContext | ResponseValidatorResolverContext;
9675
- interface VoidResolverContext extends BaseContext {
9996
+ interface VoidResolverContext extends BaseContext, Plugin$1.ResolverNodes<{
9676
9997
  /**
9677
- * Nodes used to build different parts of the result.
9998
+ * Returns the base void expression (z.void()).
9678
9999
  */
9679
- nodes: {
9680
- /**
9681
- * Returns the base void expression (z.void()).
9682
- */
9683
- base: (ctx: VoidResolverContext) => Chain;
9684
- };
10000
+ base: (ctx: VoidResolverContext) => Chain;
10001
+ }> {
9685
10002
  schema: SchemaWithType<'void'>;
9686
10003
  }
9687
10004
  //#endregion