@hey-api/openapi-ts 0.93.1 → 0.94.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { n as UserConfig } from "./types-Ba27ofyy.mjs";
2
- import * as _hey_api_codegen_core0 from "@hey-api/codegen-core";
3
- import { AnalysisContext, BindingKind, ExportModule, File, FromRef, ImportModule, Language, Logger, Logger as Logger$1, Node, NodeName, NodeNameSanitizer, NodeRelationship, NodeScope, Ref, Refs, RenderContext, Renderer, Symbol, SymbolMeta } from "@hey-api/codegen-core";
4
- import { Casing, Context, DefinePlugin, DefinePlugin as DefinePlugin$1, FeatureToggle, IR, IR as IR$1, LinguistLanguages, NameTransformer, NamingConfig, NamingOptions, NamingRule, OpenApi, OpenApiMetaObject, OpenApiOperationObject, OpenApiParameterObject, OpenApiRequestBodyObject, OpenApiResponseObject, OpenApiSchemaObject, OpenApiV2_0_XTypes, OpenApiV3_0_XTypes, OpenApiV3_1_XTypes, OperationPath, OperationPathStrategy, OperationStrategy, OperationsStrategy, Plugin, Plugin as Plugin$1, SchemaExtractor, SchemaVisitorContext, SchemaWithType, Walker, defaultPaginationKeywords, definePluginConfig, utils } from "@hey-api/shared";
2
+ import { AnalysisContext, BindingKind, ExportModule, File, FromRef, ImportModule, Language, Logger, Node, NodeName as NodeName$1, NodeNameSanitizer, NodeRelationship, NodeScope, Ref, RenderContext, Renderer, Symbol } from "@hey-api/codegen-core";
3
+ import { Casing, Context, DefinePlugin, DefinePlugin as DefinePlugin$1, FeatureToggle, IR, IR as IR$1, LinguistLanguages, NameTransformer, NamingConfig, NamingOptions, NamingRule, OpenApi, OpenApiMetaObject, OpenApiOperationObject, OpenApiParameterObject, OpenApiRequestBodyObject, OpenApiResponseObject, OpenApiSchemaObject, OpenApiV2_0_XTypes, OpenApiV3_0_XTypes, OpenApiV3_1_XTypes, OperationPath, OperationPathStrategy, OperationStrategy, OperationsStrategy, Plugin, Plugin as Plugin$1, SchemaVisitorContext, SchemaWithType, Walker, defaultPaginationKeywords, definePluginConfig, utils } from "@hey-api/shared";
5
4
  import ts from "typescript";
6
5
  import { AnyString, LazyOrAsync, MaybeArray, MaybeFunc } from "@hey-api/types";
7
6
  import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
@@ -372,7 +371,7 @@ type HttpResourcesConfig = FeatureToggle & {
372
371
  };
373
372
  //#endregion
374
373
  //#region src/plugins/@angular/common/types.d.ts
375
- type UserConfig$24 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
374
+ type UserConfig$25 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
376
375
  /**
377
376
  * Options for generating HTTP Request instances.
378
377
  *
@@ -386,7 +385,7 @@ type UserConfig$24 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$
386
385
  */
387
386
  httpResources?: boolean | OperationsStrategy | UserHttpResourcesConfig;
388
387
  };
389
- type Config$21 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
388
+ type Config$22 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
390
389
  /**
391
390
  * Options for generating HTTP Request instances.
392
391
  */
@@ -396,7 +395,7 @@ type Config$21 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.Co
396
395
  */
397
396
  httpResources: HttpResourcesConfig;
398
397
  };
399
- type AngularCommonPlugin = DefinePlugin$1<UserConfig$24, Config$21>;
398
+ type AngularCommonPlugin = DefinePlugin$1<UserConfig$25, Config$22>;
400
399
  //#endregion
401
400
  //#region src/ts-dsl/mixins/types.d.ts
402
401
  type BaseCtor<T extends ts.Node> = abstract new (...args: Array<any>) => TsDsl<T>;
@@ -404,7 +403,7 @@ type DropFirst<T extends Array<any>> = T extends [any, ...infer Rest] ? Rest : n
404
403
  type MixinCtor<T extends BaseCtor<any>, K$1> = abstract new (...args: Array<any>) => InstanceType<T> & K$1;
405
404
  //#endregion
406
405
  //#region src/ts-dsl/mixins/type-args.d.ts
407
- type Arg$1 = NodeName | MaybeTsDsl<TypeTsDsl>;
406
+ type Arg$1 = NodeName$1 | MaybeTsDsl<TypeTsDsl>;
408
407
  interface TypeArgsMethods extends Node {
409
408
  /** Returns the type arguments as an array of ts.TypeNode nodes. */
410
409
  $generics(): ReadonlyArray<ts.TypeNode> | undefined;
@@ -421,8 +420,8 @@ interface AsMethods extends Node {
421
420
  }
422
421
  //#endregion
423
422
  //#region src/ts-dsl/expr/as.d.ts
424
- type AsExpr = NodeName | MaybeTsDsl<ts.Expression>;
425
- type AsType = NodeName | TypeTsDsl;
423
+ type AsExpr = NodeName$1 | MaybeTsDsl<ts.Expression>;
424
+ type AsType = NodeName$1 | TypeTsDsl;
426
425
  type AsCtor = (expr: AsExpr, type: AsType) => AsTsDsl;
427
426
  declare const Mixed$52: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.AsExpression>, ExprMethods>, AsMethods>;
428
427
  declare class AsTsDsl extends Mixed$52 {
@@ -444,7 +443,7 @@ interface OptionalMethods extends Node {
444
443
  }
445
444
  //#endregion
446
445
  //#region src/ts-dsl/expr/binary.d.ts
447
- type Expr$3 = NodeName | MaybeTsDsl<ts.Expression>;
446
+ type Expr$3 = NodeName$1 | MaybeTsDsl<ts.Expression>;
448
447
  type Op$1 = Operator | ts.BinaryOperator;
449
448
  type Operator = '!=' | '!==' | '&&' | '*' | '+' | '-' | '/' | '<' | '<=' | '=' | '==' | '===' | '>' | '>=' | '??' | '??=' | '||';
450
449
  declare const Mixed$51: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.BinaryExpression>, ExprMethods>, AsMethods>;
@@ -503,7 +502,7 @@ declare class BinaryTsDsl extends Mixed$51 {
503
502
  }
504
503
  //#endregion
505
504
  //#region src/ts-dsl/mixins/operator.d.ts
506
- type Expr$2 = NodeName | MaybeTsDsl<ts.Expression>;
505
+ type Expr$2 = NodeName$1 | MaybeTsDsl<ts.Expression>;
507
506
  interface OperatorMethods extends Node {
508
507
  /** Logical AND — `this && expr` */
509
508
  and(expr: Expr$2): BinaryTsDsl;
@@ -542,19 +541,19 @@ interface OperatorMethods extends Node {
542
541
  }
543
542
  //#endregion
544
543
  //#region src/ts-dsl/expr/attr.d.ts
545
- type AttrLeft = NodeName | MaybeTsDsl<ts.Expression>;
546
- type AttrCtor = (left: AttrLeft, right: NodeName) => AttrTsDsl;
544
+ type AttrLeft = NodeName$1 | MaybeTsDsl<ts.Expression>;
545
+ type AttrCtor = (left: AttrLeft, right: NodeName$1) => AttrTsDsl;
547
546
  declare const Mixed$50: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.PropertyAccessExpression | ts.ElementAccessExpression>, OptionalMethods>, OperatorMethods>, ExprMethods>, AsMethods>;
548
547
  declare class AttrTsDsl extends Mixed$50 {
549
548
  readonly '~dsl' = "AttrTsDsl";
550
549
  protected left: Ref<AttrLeft>;
551
- constructor(left: AttrLeft, right: NodeName);
550
+ constructor(left: AttrLeft, right: NodeName$1);
552
551
  analyze(ctx: AnalysisContext): void;
553
552
  toAst(): ts.PropertyAccessExpression | ts.ElementAccessExpression;
554
553
  }
555
554
  //#endregion
556
555
  //#region src/ts-dsl/expr/await.d.ts
557
- type AwaitExpr = NodeName | MaybeTsDsl<ts.Expression>;
556
+ type AwaitExpr = NodeName$1 | MaybeTsDsl<ts.Expression>;
558
557
  type AwaitCtor = (expr: AwaitExpr) => AwaitTsDsl;
559
558
  declare const Mixed$49: MixinCtor<abstract new () => TsDsl<ts.AwaitExpression>, ExprMethods>;
560
559
  declare class AwaitTsDsl extends Mixed$49 {
@@ -566,7 +565,7 @@ declare class AwaitTsDsl extends Mixed$49 {
566
565
  }
567
566
  //#endregion
568
567
  //#region src/ts-dsl/mixins/args.d.ts
569
- type Arg = NodeName | MaybeTsDsl<ts.Expression>;
568
+ type Arg = NodeName$1 | MaybeTsDsl<ts.Expression>;
570
569
  interface ArgsMethods extends Node {
571
570
  /** Renders the arguments into an array of `Expression`s. */
572
571
  $args(): ReadonlyArray<ts.Expression>;
@@ -578,7 +577,7 @@ interface ArgsMethods extends Node {
578
577
  //#endregion
579
578
  //#region src/ts-dsl/expr/new.d.ts
580
579
  type NewArgs = ReadonlyArray<NewExpr | undefined>;
581
- type NewExpr = NodeName | MaybeTsDsl<ts.Expression>;
580
+ type NewExpr = NodeName$1 | MaybeTsDsl<ts.Expression>;
582
581
  type NewCtor = (expr: NewExpr, ...args: NewArgs) => NewTsDsl;
583
582
  declare const Mixed$48: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.NewExpression>, TypeArgsMethods>, ExprMethods>, AsMethods>, ArgsMethods>;
584
583
  declare class NewTsDsl extends Mixed$48 {
@@ -602,7 +601,7 @@ declare class TypeOfExprTsDsl extends Mixed$47 {
602
601
  }
603
602
  //#endregion
604
603
  //#region src/ts-dsl/stmt/return.d.ts
605
- type ReturnExpr = NodeName | MaybeTsDsl<ts.Expression>;
604
+ type ReturnExpr = NodeName$1 | MaybeTsDsl<ts.Expression>;
606
605
  type ReturnCtor = (expr?: ReturnExpr) => ReturnTsDsl;
607
606
  declare const Mixed$46: abstract new () => TsDsl<ts.ReturnStatement>;
608
607
  declare class ReturnTsDsl extends Mixed$46 {
@@ -632,8 +631,8 @@ interface TypeExprMethods extends Node {
632
631
  }
633
632
  //#endregion
634
633
  //#region src/ts-dsl/type/attr.d.ts
635
- type Base$1 = NodeName | MaybeTsDsl<ts.EntityName>;
636
- type Right = NodeName | ts.Identifier;
634
+ type Base$1 = NodeName$1 | MaybeTsDsl<ts.EntityName>;
635
+ type Right = NodeName$1 | ts.Identifier;
637
636
  declare const Mixed$45: MixinCtor<abstract new () => TsDsl<ts.QualifiedName>, TypeExprMethods>;
638
637
  declare class TypeAttrTsDsl extends Mixed$45 {
639
638
  readonly '~dsl' = "TypeAttrTsDsl";
@@ -656,9 +655,9 @@ declare class TypeAttrTsDsl extends Mixed$45 {
656
655
  }
657
656
  //#endregion
658
657
  //#region src/ts-dsl/type/expr.d.ts
659
- type TypeExprExpr = NodeName | TypeAttrTsDsl;
658
+ type TypeExprExpr = NodeName$1 | TypeAttrTsDsl;
660
659
  type TypeExprFn = (t: TypeExprTsDsl) => void;
661
- type TypeExprCtor = (nameOrFn?: NodeName | TypeExprFn, fn?: TypeExprFn) => TypeExprTsDsl;
660
+ type TypeExprCtor = (nameOrFn?: NodeName$1 | TypeExprFn, fn?: TypeExprFn) => TypeExprTsDsl;
662
661
  declare const Mixed$44: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.TypeReferenceNode>, TypeExprMethods>, TypeArgsMethods>;
663
662
  declare class TypeExprTsDsl extends Mixed$44 {
664
663
  readonly '~dsl' = "TypeExprTsDsl";
@@ -666,8 +665,8 @@ declare class TypeExprTsDsl extends Mixed$44 {
666
665
  protected _exprInput?: Ref<TypeExprExpr>;
667
666
  constructor();
668
667
  constructor(fn: TypeExprFn);
669
- constructor(name: NodeName);
670
- constructor(name: NodeName, fn?: TypeExprFn);
668
+ constructor(name: NodeName$1);
669
+ constructor(name: NodeName$1, fn?: TypeExprFn);
671
670
  analyze(ctx: AnalysisContext): void;
672
671
  /** Returns true when all required builder calls are present. */
673
672
  get isValid(): boolean;
@@ -706,7 +705,7 @@ declare class TypeIdxTsDsl extends Mixed$43 {
706
705
  //#endregion
707
706
  //#region src/ts-dsl/type/operator.d.ts
708
707
  type Op = ts.SyntaxKind.KeyOfKeyword | ts.SyntaxKind.ReadonlyKeyword | ts.SyntaxKind.UniqueKeyword;
709
- type Type$2 = string | MaybeTsDsl<ts.TypeNode>;
708
+ type Type$3 = string | MaybeTsDsl<ts.TypeNode>;
710
709
  type TypeOperatorCtor = () => TypeOperatorTsDsl;
711
710
  declare const Mixed$42: abstract new () => TsDsl<ts.TypeOperatorNode>;
712
711
  /**
@@ -725,23 +724,23 @@ declare class TypeOperatorTsDsl extends Mixed$42 {
725
724
  readonly '~dsl' = "TypeOperatorTsDsl";
726
725
  scope: NodeScope;
727
726
  protected _op?: Op;
728
- protected _type?: Type$2;
727
+ protected _type?: Type$3;
729
728
  analyze(ctx: AnalysisContext): void;
730
729
  /** Shorthand: builds `keyof T`. */
731
- keyof(type: Type$2): this;
730
+ keyof(type: Type$3): this;
732
731
  /** Sets the operator explicitly. */
733
732
  operator(op: Op): this;
734
733
  /** Shorthand: builds `readonly T`. */
735
- readonly(type: Type$2): this;
734
+ readonly(type: Type$3): this;
736
735
  /** Sets the target type of the operator. */
737
- type(type: Type$2): this;
736
+ type(type: Type$3): this;
738
737
  /** Shorthand: builds `unique T`. */
739
- unique(type: Type$2): this;
738
+ unique(type: Type$3): this;
740
739
  toAst(): ts.TypeOperatorNode;
741
740
  /** Throws if required fields are not set. */
742
741
  $validate(): asserts this is this & {
743
742
  _op: Op;
744
- _type: Type$2;
743
+ _type: Type$3;
745
744
  };
746
745
  private missingRequiredCalls;
747
746
  }
@@ -808,7 +807,7 @@ interface ExprMethods extends Node {
808
807
  //#endregion
809
808
  //#region src/ts-dsl/expr/call.d.ts
810
809
  type CallArgs = ReadonlyArray<CallCallee | undefined>;
811
- type CallCallee = NodeName | MaybeTsDsl<ts.Expression>;
810
+ type CallCallee = NodeName$1 | MaybeTsDsl<ts.Expression>;
812
811
  type CallCtor = (callee: CallCallee, ...args: CallArgs) => CallTsDsl;
813
812
  declare const Mixed$40: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.CallExpression>, TypeArgsMethods>, ExprMethods>, AsMethods>, ArgsMethods>;
814
813
  declare class CallTsDsl extends Mixed$40 {
@@ -893,7 +892,7 @@ declare abstract class TsDsl<T extends ts.Node = ts.Node> implements Node<T> {
893
892
  structuralParents?: Map<TsDsl, NodeRelationship>;
894
893
  symbol?: Symbol;
895
894
  toAst(): T;
896
- readonly '~brand' = "heyapi.node";
895
+ readonly '~brand': any;
897
896
  /** Branding property to identify the DSL class at runtime. */
898
897
  abstract readonly '~dsl': AnyString;
899
898
  /** Conditionally applies a callback to this builder. */
@@ -914,7 +913,7 @@ declare abstract class TsDsl<T extends ts.Node = ts.Node> implements Node<T> {
914
913
  length: number;
915
914
  }): TsDsl | undefined;
916
915
  protected $maybeId<T extends string | ts.Expression>(expr: T): T extends string ? ts.Identifier : T;
917
- protected $name(name: Ref<NodeName>): string;
916
+ protected $name(name: Ref<NodeName$1>): string;
918
917
  protected $node<I>(value: I): NodeOfMaybe<I>;
919
918
  protected $type<I>(value: I, args?: ReadonlyArray<ts.TypeNode>): TypeOfMaybe<I>;
920
919
  private _name?;
@@ -939,7 +938,7 @@ declare class DocTsDsl extends TsDsl<ts.Node> {
939
938
  analyze(ctx: AnalysisContext): void;
940
939
  add(lines: DocLines): this;
941
940
  apply<T extends ts.Node>(node: T): T;
942
- toAst(): ts.Node;
941
+ toAst(): any;
943
942
  }
944
943
  //#endregion
945
944
  //#region src/ts-dsl/layout/hint.d.ts
@@ -953,7 +952,7 @@ declare class HintTsDsl extends TsDsl<ts.Node> {
953
952
  analyze(ctx: AnalysisContext): void;
954
953
  add(lines: HintLines): this;
955
954
  apply<T extends ts.Node>(node: T): T;
956
- toAst(): ts.Node;
955
+ toAst(): any;
957
956
  }
958
957
  //#endregion
959
958
  //#region src/ts-dsl/mixins/do.d.ts
@@ -1005,7 +1004,7 @@ declare class LiteralTsDsl extends Mixed$38 {
1005
1004
  protected value: LiteralValue;
1006
1005
  constructor(value: LiteralValue);
1007
1006
  analyze(ctx: AnalysisContext): void;
1008
- toAst(): ts.BigIntLiteral | ts.TrueLiteral | ts.FalseLiteral | ts.NullLiteral | ts.NumericLiteral | ts.PrefixUnaryExpression | ts.StringLiteral;
1007
+ toAst(): any;
1009
1008
  }
1010
1009
  //#endregion
1011
1010
  //#region src/ts-dsl/layout/note.d.ts
@@ -1019,31 +1018,67 @@ declare class NoteTsDsl extends TsDsl<ts.Node> {
1019
1018
  analyze(ctx: AnalysisContext): void;
1020
1019
  add(lines: NoteLines): this;
1021
1020
  apply<T extends ts.Node>(node: T): T;
1022
- toAst(): ts.Node;
1021
+ toAst(): any;
1023
1022
  }
1024
1023
  //#endregion
1025
- //#region src/ts-dsl/expr/template.d.ts
1026
- type TemplatePart = NodeName | MaybeTsDsl<ts.Expression>;
1027
- declare const Mixed$37: abstract new () => TsDsl<ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral>;
1028
- declare class TemplateTsDsl extends Mixed$37 {
1029
- readonly '~dsl' = "TemplateTsDsl";
1030
- protected parts: Array<Ref<TemplatePart>>;
1031
- constructor(value?: TemplatePart);
1024
+ //#region src/ts-dsl/mixins/value.d.ts
1025
+ type ValueExpr = string | MaybeTsDsl<ts.Expression>;
1026
+ interface ValueMethods extends Node {
1027
+ $value(): ts.Expression | undefined;
1028
+ /** Sets the initializer expression (e.g. `= expr`). */
1029
+ assign(expr: ValueExpr): this;
1030
+ }
1031
+ //#endregion
1032
+ //#region src/ts-dsl/mixins/pattern.d.ts
1033
+ interface PatternMethods extends Node {
1034
+ /** Renders the pattern into a `BindingName`. */
1035
+ $pattern(): ts.BindingName | undefined;
1036
+ /** Defines an array binding pattern. */
1037
+ array(...props: ReadonlyArray<string> | [ReadonlyArray<string>]): this;
1038
+ /** Defines an object binding pattern. */
1039
+ object(...props: ReadonlyArray<MaybeArray<string> | Record<string, string>>): this;
1040
+ /** Adds a spread element (e.g. `...args`, `...options`) to the pattern. */
1041
+ spread(name: string): this;
1042
+ }
1043
+ //#endregion
1044
+ //#region src/ts-dsl/mixins/decorator.d.ts
1045
+ interface DecoratorMethods extends Node {
1046
+ /** Renders the decorators into an array of `ts.Decorator`s. */
1047
+ $decorators(): ReadonlyArray<ts.Decorator>;
1048
+ /** Adds a decorator (e.g. `@sealed({ in: 'root' })`). */
1049
+ decorator(name: NodeName$1 | MaybeTsDsl<ts.Expression>, ...args: ReadonlyArray<string | MaybeTsDsl<ts.Expression>>): this;
1050
+ }
1051
+ //#endregion
1052
+ //#region src/ts-dsl/decl/param.d.ts
1053
+ type ParamName = NodeName$1 | ParamFn;
1054
+ type ParamFn = (p: ParamTsDsl) => void;
1055
+ type ParamCtor = (name: ParamName, fn?: ParamFn) => ParamTsDsl;
1056
+ declare const Mixed$37: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ParameterDeclaration>, ValueMethods>, PatternMethods>, OptionalMethods>, DecoratorMethods>;
1057
+ declare class ParamTsDsl extends Mixed$37 {
1058
+ readonly '~dsl' = "ParamTsDsl";
1059
+ protected _type?: TypeTsDsl;
1060
+ constructor(name: ParamName, fn?: ParamFn);
1032
1061
  analyze(ctx: AnalysisContext): void;
1033
- add(value: TemplatePart): this;
1034
- toAst(): ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral;
1062
+ /** Returns true when all required builder calls are present. */
1063
+ get isValid(): boolean;
1064
+ /** Sets the parameter type. */
1065
+ type(type: string | TypeTsDsl): this;
1066
+ toAst(): ts.ParameterDeclaration;
1067
+ $validate(): asserts this;
1068
+ private missingRequiredCalls;
1035
1069
  }
1036
1070
  //#endregion
1037
1071
  //#region src/ts-dsl/type/param.d.ts
1038
- type TypeParamExpr = NodeName | boolean | MaybeTsDsl<TypeTsDsl>;
1072
+ type TypeParamExpr = NodeName$1 | boolean | MaybeTsDsl<TypeTsDsl>;
1039
1073
  declare const Mixed$36: abstract new () => TsDsl<ts.TypeParameterDeclaration>;
1040
1074
  declare class TypeParamTsDsl extends Mixed$36 {
1041
1075
  readonly '~dsl' = "TypeParamTsDsl";
1042
1076
  scope: NodeScope;
1043
1077
  protected constraint?: Ref<TypeParamExpr>;
1044
1078
  protected defaultValue?: Ref<TypeParamExpr>;
1045
- constructor(name?: NodeName, fn?: (name: TypeParamTsDsl) => void);
1079
+ constructor(name?: NodeName$1, fn?: (name: TypeParamTsDsl) => void);
1046
1080
  analyze(ctx: AnalysisContext): void;
1081
+ /** Sets the parameter default value. */
1047
1082
  default(value: TypeParamExpr): this;
1048
1083
  extends(constraint: TypeParamExpr): this;
1049
1084
  toAst(): ts.TypeParameterDeclaration;
@@ -1056,7 +1091,7 @@ interface TypeParamsMethods extends Node {
1056
1091
  /** Adds a single type parameter (e.g. `T` in `Array<T>`). */
1057
1092
  generic(...args: ConstructorParameters<typeof TypeParamTsDsl>): this;
1058
1093
  /** Adds type parameters (e.g. `Map<string, T>`). */
1059
- generics(...args: ReadonlyArray<NodeName | MaybeTsDsl<TypeParamTsDsl>>): this;
1094
+ generics(...args: ReadonlyArray<NodeName$1 | MaybeTsDsl<TypeParamTsDsl>>): this;
1060
1095
  }
1061
1096
  //#endregion
1062
1097
  //#region src/ts-dsl/mixins/modifiers.d.ts
@@ -1168,65 +1203,20 @@ interface DocMethods extends Node {
1168
1203
  doc(lines?: DocLines, fn?: DocFn): this;
1169
1204
  }
1170
1205
  //#endregion
1171
- //#region src/ts-dsl/mixins/decorator.d.ts
1172
- interface DecoratorMethods extends Node {
1173
- /** Renders the decorators into an array of `ts.Decorator`s. */
1174
- $decorators(): ReadonlyArray<ts.Decorator>;
1175
- /** Adds a decorator (e.g. `@sealed({ in: 'root' })`). */
1176
- decorator(name: NodeName | MaybeTsDsl<ts.Expression>, ...args: ReadonlyArray<string | MaybeTsDsl<ts.Expression>>): this;
1177
- }
1178
- //#endregion
1179
- //#region src/ts-dsl/mixins/value.d.ts
1180
- type ValueExpr = string | MaybeTsDsl<ts.Expression>;
1181
- interface ValueMethods extends Node {
1182
- $value(): ts.Expression | undefined;
1183
- /** Sets the initializer expression (e.g. `= expr`). */
1184
- assign(expr: ValueExpr): this;
1185
- }
1186
- //#endregion
1187
1206
  //#region src/ts-dsl/decl/field.d.ts
1188
- type FieldType = NodeName | TypeTsDsl;
1207
+ type FieldType = NodeName$1 | TypeTsDsl;
1189
1208
  declare const Mixed$35: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.PropertyDeclaration>, ValueMethods>, StaticMethods>, ReadonlyMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, OptionalMethods>, DocMethods>, DecoratorMethods>;
1190
1209
  declare class FieldTsDsl extends Mixed$35 {
1191
1210
  readonly '~dsl' = "FieldTsDsl";
1192
1211
  readonly nameSanitizer: (name: string) => string;
1193
1212
  protected _type?: TypeTsDsl;
1194
- constructor(name: NodeName, fn?: (f: FieldTsDsl) => void);
1213
+ constructor(name: NodeName$1, fn?: (f: FieldTsDsl) => void);
1195
1214
  analyze(ctx: AnalysisContext): void;
1196
1215
  /** Sets the field type. */
1197
1216
  type(type: FieldType): this;
1198
1217
  toAst(): ts.PropertyDeclaration;
1199
1218
  }
1200
1219
  //#endregion
1201
- //#region src/ts-dsl/mixins/pattern.d.ts
1202
- interface PatternMethods extends Node {
1203
- /** Renders the pattern into a `BindingName`. */
1204
- $pattern(): ts.BindingName | undefined;
1205
- /** Defines an array binding pattern. */
1206
- array(...props: ReadonlyArray<string> | [ReadonlyArray<string>]): this;
1207
- /** Defines an object binding pattern. */
1208
- object(...props: ReadonlyArray<MaybeArray<string> | Record<string, string>>): this;
1209
- /** Adds a spread element (e.g. `...args`, `...options`) to the pattern. */
1210
- spread(name: string): this;
1211
- }
1212
- //#endregion
1213
- //#region src/ts-dsl/decl/param.d.ts
1214
- type ParamCtor = (name: NodeName | ((p: ParamTsDsl) => void), fn?: (p: ParamTsDsl) => void) => ParamTsDsl;
1215
- declare const Mixed$34: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ParameterDeclaration>, ValueMethods>, PatternMethods>, OptionalMethods>, DecoratorMethods>;
1216
- declare class ParamTsDsl extends Mixed$34 {
1217
- readonly '~dsl' = "ParamTsDsl";
1218
- protected _type?: TypeTsDsl;
1219
- constructor(name: NodeName | ((p: ParamTsDsl) => void), fn?: (p: ParamTsDsl) => void);
1220
- analyze(ctx: AnalysisContext): void;
1221
- /** Returns true when all required builder calls are present. */
1222
- get isValid(): boolean;
1223
- /** Sets the parameter type. */
1224
- type(type: string | TypeTsDsl): this;
1225
- toAst(): ts.ParameterDeclaration;
1226
- $validate(): asserts this;
1227
- private missingRequiredCalls;
1228
- }
1229
- //#endregion
1230
1220
  //#region src/ts-dsl/mixins/param.d.ts
1231
1221
  interface ParamMethods extends Node {
1232
1222
  /** Renders the parameters into an array of `ParameterDeclaration`s. */
@@ -1238,8 +1228,8 @@ interface ParamMethods extends Node {
1238
1228
  }
1239
1229
  //#endregion
1240
1230
  //#region src/ts-dsl/decl/init.d.ts
1241
- declare const Mixed$33: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ConstructorDeclaration>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, DocMethods>, DoMethods>, DecoratorMethods>;
1242
- declare class InitTsDsl extends Mixed$33 {
1231
+ declare const Mixed$34: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ConstructorDeclaration>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, DocMethods>, DoMethods>, DecoratorMethods>;
1232
+ declare class InitTsDsl extends Mixed$34 {
1243
1233
  readonly '~dsl' = "InitTsDsl";
1244
1234
  constructor(fn?: (i: InitTsDsl) => void);
1245
1235
  analyze(ctx: AnalysisContext): void;
@@ -1251,41 +1241,41 @@ interface TypeReturnsMethods extends Node {
1251
1241
  /** Returns the return type node. */
1252
1242
  $returns(): ts.TypeNode | undefined;
1253
1243
  /** Sets the return type. */
1254
- returns(type: NodeName | TypeTsDsl): this;
1244
+ returns(type: NodeName$1 | TypeTsDsl): this;
1255
1245
  }
1256
1246
  //#endregion
1257
1247
  //#region src/ts-dsl/decl/method.d.ts
1258
- declare const Mixed$32: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.MethodDeclaration>, TypeReturnsMethods>, TypeParamsMethods>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, OptionalMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AbstractMethods>;
1259
- declare class MethodTsDsl extends Mixed$32 {
1248
+ declare const Mixed$33: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.MethodDeclaration>, TypeReturnsMethods>, TypeParamsMethods>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, OptionalMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AbstractMethods>;
1249
+ declare class MethodTsDsl extends Mixed$33 {
1260
1250
  readonly '~dsl' = "MethodTsDsl";
1261
1251
  readonly nameSanitizer: (name: string) => string;
1262
- constructor(name: NodeName, fn?: (m: MethodTsDsl) => void);
1252
+ constructor(name: NodeName$1, fn?: (m: MethodTsDsl) => void);
1263
1253
  analyze(ctx: AnalysisContext): void;
1264
1254
  toAst(): ts.MethodDeclaration;
1265
1255
  }
1266
1256
  //#endregion
1267
1257
  //#region src/ts-dsl/decl/class.d.ts
1268
1258
  type Body = Array<MaybeTsDsl<ts.ClassElement | ts.Node>>;
1269
- declare const Mixed$31: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ClassDeclaration>, TypeParamsMethods>, ExportMethods>, DocMethods>, DefaultMethods>, DecoratorMethods>, AbstractMethods>;
1270
- declare class ClassTsDsl extends Mixed$31 {
1259
+ declare const Mixed$32: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ClassDeclaration>, TypeParamsMethods>, ExportMethods>, DocMethods>, DefaultMethods>, DecoratorMethods>, AbstractMethods>;
1260
+ declare class ClassTsDsl extends Mixed$32 {
1271
1261
  readonly '~dsl' = "ClassTsDsl";
1272
1262
  readonly nameSanitizer: (name: string) => string;
1273
- protected baseClass?: Ref<NodeName>;
1263
+ protected baseClass?: Ref<NodeName$1>;
1274
1264
  protected body: Body;
1275
- constructor(name: NodeName);
1265
+ constructor(name: NodeName$1);
1276
1266
  analyze(ctx: AnalysisContext): void;
1277
1267
  /** Returns true if the class has any members. */
1278
1268
  get hasBody(): boolean;
1279
1269
  /** Adds one or more class members (fields, methods, etc.). */
1280
1270
  do(...items: Body): this;
1281
1271
  /** Records a base class to extend from. */
1282
- extends(base?: NodeName): this;
1272
+ extends(base?: NodeName$1): this;
1283
1273
  /** Adds a class field. */
1284
- field(name: NodeName, fn?: (f: FieldTsDsl) => void): this;
1274
+ field(name: NodeName$1, fn?: (f: FieldTsDsl) => void): this;
1285
1275
  /** Adds a class constructor. */
1286
1276
  init(fn?: InitTsDsl | ((i: InitTsDsl) => void)): this;
1287
1277
  /** Adds a class method. */
1288
- method(name: NodeName, fn?: (m: MethodTsDsl) => void): this;
1278
+ method(name: NodeName$1, fn?: (m: MethodTsDsl) => void): this;
1289
1279
  /** Inserts an empty line between members for formatting. */
1290
1280
  newline(): this;
1291
1281
  toAst(): ts.ClassDeclaration;
@@ -1294,11 +1284,11 @@ declare class ClassTsDsl extends Mixed$31 {
1294
1284
  }
1295
1285
  //#endregion
1296
1286
  //#region src/ts-dsl/decl/decorator.d.ts
1297
- declare const Mixed$30: MixinCtor<abstract new () => TsDsl<ts.Decorator>, ArgsMethods>;
1298
- declare class DecoratorTsDsl extends Mixed$30 {
1287
+ declare const Mixed$31: MixinCtor<abstract new () => TsDsl<ts.Decorator>, ArgsMethods>;
1288
+ declare class DecoratorTsDsl extends Mixed$31 {
1299
1289
  readonly '~dsl' = "DecoratorTsDsl";
1300
1290
  readonly nameSanitizer: (name: string) => string;
1301
- constructor(name: NodeName, ...args: ReadonlyArray<string | MaybeTsDsl<ts.Expression>>);
1291
+ constructor(name: NodeName$1, ...args: ReadonlyArray<string | MaybeTsDsl<ts.Expression>>);
1302
1292
  analyze(ctx: AnalysisContext): void;
1303
1293
  toAst(): ts.Decorator;
1304
1294
  }
@@ -1306,11 +1296,11 @@ declare class DecoratorTsDsl extends Mixed$30 {
1306
1296
  //#region src/ts-dsl/decl/member.d.ts
1307
1297
  type Value$2 = string | number | MaybeTsDsl<ts.Expression>;
1308
1298
  type ValueFn$1 = Value$2 | ((m: EnumMemberTsDsl) => void);
1309
- declare const Mixed$29: MixinCtor<abstract new () => TsDsl<ts.EnumMember>, DocMethods>;
1310
- declare class EnumMemberTsDsl extends Mixed$29 {
1299
+ declare const Mixed$30: MixinCtor<abstract new () => TsDsl<ts.EnumMember>, DocMethods>;
1300
+ declare class EnumMemberTsDsl extends Mixed$30 {
1311
1301
  readonly '~dsl' = "EnumMemberTsDsl";
1312
1302
  private _value?;
1313
- constructor(name: NodeName, value?: ValueFn$1);
1303
+ constructor(name: NodeName$1, value?: ValueFn$1);
1314
1304
  analyze(ctx: AnalysisContext): void;
1315
1305
  /** Sets the enum member value. */
1316
1306
  value(value?: Value$2): this;
@@ -1320,12 +1310,12 @@ declare class EnumMemberTsDsl extends Mixed$29 {
1320
1310
  //#region src/ts-dsl/decl/enum.d.ts
1321
1311
  type Value$1 = string | number | MaybeTsDsl<ts.Expression>;
1322
1312
  type ValueFn = Value$1 | ((m: EnumMemberTsDsl) => void);
1323
- declare const Mixed$28: MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.EnumDeclaration>, ExportMethods>, DocMethods>, ConstMethods>;
1324
- declare class EnumTsDsl extends Mixed$28 {
1313
+ declare const Mixed$29: MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.EnumDeclaration>, ExportMethods>, DocMethods>, ConstMethods>;
1314
+ declare class EnumTsDsl extends Mixed$29 {
1325
1315
  readonly '~dsl' = "EnumTsDsl";
1326
1316
  readonly nameSanitizer: (name: string) => string;
1327
1317
  private _members;
1328
- constructor(name: NodeName, fn?: (e: EnumTsDsl) => void);
1318
+ constructor(name: NodeName$1, fn?: (e: EnumTsDsl) => void);
1329
1319
  analyze(ctx: AnalysisContext): void;
1330
1320
  /** Adds an enum member. */
1331
1321
  member(name: string, value?: ValueFn): this;
@@ -1336,15 +1326,15 @@ declare class EnumTsDsl extends Mixed$28 {
1336
1326
  //#endregion
1337
1327
  //#region src/ts-dsl/decl/func.d.ts
1338
1328
  type FuncMode = 'arrow' | 'decl' | 'expr';
1339
- declare const Mixed$27: 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>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AsMethods>, AbstractMethods>;
1340
- declare class ImplFuncTsDsl<M extends FuncMode = 'arrow'> extends Mixed$27 {
1329
+ declare const Mixed$28: 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>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AsMethods>, AbstractMethods>;
1330
+ declare class ImplFuncTsDsl<M extends FuncMode = 'arrow'> extends Mixed$28 {
1341
1331
  readonly '~dsl' = "FuncTsDsl";
1342
1332
  readonly nameSanitizer: (name: string) => string;
1343
1333
  protected mode?: FuncMode;
1344
1334
  constructor();
1345
1335
  constructor(fn: (f: ImplFuncTsDsl<'arrow'>) => void);
1346
- constructor(name: NodeName);
1347
- constructor(name: NodeName, fn: (f: ImplFuncTsDsl<'decl'>) => void);
1336
+ constructor(name: NodeName$1);
1337
+ constructor(name: NodeName$1, fn: (f: ImplFuncTsDsl<'decl'>) => void);
1348
1338
  analyze(ctx: AnalysisContext): void;
1349
1339
  /** Returns true when all required builder calls are present. */
1350
1340
  get isValid(): boolean;
@@ -1361,27 +1351,27 @@ declare class ImplFuncTsDsl<M extends FuncMode = 'arrow'> extends Mixed$27 {
1361
1351
  declare const FuncTsDsl: {
1362
1352
  new (): FuncTsDsl<"arrow">;
1363
1353
  new (fn: (f: FuncTsDsl<"arrow">) => void): FuncTsDsl<"arrow">;
1364
- new (name: NodeName): FuncTsDsl<"decl">;
1365
- new (name: NodeName, fn: (f: FuncTsDsl<"decl">) => void): FuncTsDsl<"decl">;
1354
+ new (name: NodeName$1): FuncTsDsl<"decl">;
1355
+ new (name: NodeName$1, fn: (f: FuncTsDsl<"decl">) => void): FuncTsDsl<"decl">;
1366
1356
  } & typeof ImplFuncTsDsl;
1367
1357
  type FuncTsDsl<M extends FuncMode = 'arrow'> = ImplFuncTsDsl<M>;
1368
1358
  //#endregion
1369
1359
  //#region src/ts-dsl/decl/getter.d.ts
1370
- declare const Mixed$26: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.GetAccessorDeclaration>, TypeReturnsMethods>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AbstractMethods>;
1371
- declare class GetterTsDsl extends Mixed$26 {
1360
+ declare const Mixed$27: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.GetAccessorDeclaration>, TypeReturnsMethods>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AbstractMethods>;
1361
+ declare class GetterTsDsl extends Mixed$27 {
1372
1362
  readonly '~dsl' = "GetterTsDsl";
1373
1363
  readonly nameSanitizer: (name: string) => string;
1374
- constructor(name: NodeName, fn?: (g: GetterTsDsl) => void);
1364
+ constructor(name: NodeName$1, fn?: (g: GetterTsDsl) => void);
1375
1365
  analyze(ctx: AnalysisContext): void;
1376
1366
  toAst(): ts.GetAccessorDeclaration;
1377
1367
  }
1378
1368
  //#endregion
1379
1369
  //#region src/ts-dsl/decl/pattern.d.ts
1380
- declare const Mixed$25: abstract new () => TsDsl<ts.BindingName>;
1370
+ declare const Mixed$26: abstract new () => TsDsl<ts.BindingName>;
1381
1371
  /**
1382
1372
  * Builds binding patterns (e.g. `{ foo, bar }`, `[a, b, ...rest]`).
1383
1373
  */
1384
- declare class PatternTsDsl extends Mixed$25 {
1374
+ declare class PatternTsDsl extends Mixed$26 {
1385
1375
  readonly '~dsl' = "PatternTsDsl";
1386
1376
  protected pattern?: {
1387
1377
  kind: 'array';
@@ -1415,11 +1405,11 @@ declare class PatternTsDsl extends Mixed$25 {
1415
1405
  }
1416
1406
  //#endregion
1417
1407
  //#region src/ts-dsl/decl/setter.d.ts
1418
- declare const Mixed$24: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.SetAccessorDeclaration>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AbstractMethods>;
1419
- declare class SetterTsDsl extends Mixed$24 {
1408
+ declare const Mixed$25: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.SetAccessorDeclaration>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AbstractMethods>;
1409
+ declare class SetterTsDsl extends Mixed$25 {
1420
1410
  readonly '~dsl' = "SetterTsDsl";
1421
1411
  readonly nameSanitizer: (name: string) => string;
1422
- constructor(name: NodeName, fn?: (s: SetterTsDsl) => void);
1412
+ constructor(name: NodeName$1, fn?: (s: SetterTsDsl) => void);
1423
1413
  analyze(ctx: AnalysisContext): void;
1424
1414
  toAst(): ts.SetAccessorDeclaration;
1425
1415
  }
@@ -1437,8 +1427,8 @@ interface LayoutMethods extends Node {
1437
1427
  }
1438
1428
  //#endregion
1439
1429
  //#region src/ts-dsl/expr/array.d.ts
1440
- declare const Mixed$23: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ArrayLiteralExpression>, LayoutMethods>, AsMethods>;
1441
- declare class ArrayTsDsl extends Mixed$23 {
1430
+ declare const Mixed$24: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ArrayLiteralExpression>, LayoutMethods>, AsMethods>;
1431
+ declare class ArrayTsDsl extends Mixed$24 {
1442
1432
  readonly '~dsl' = "ArrayTsDsl";
1443
1433
  protected _elements: Array<{
1444
1434
  expr: MaybeTsDsl<ts.Expression>;
@@ -1459,19 +1449,19 @@ declare class ArrayTsDsl extends Mixed$23 {
1459
1449
  }
1460
1450
  //#endregion
1461
1451
  //#region src/ts-dsl/expr/expr.d.ts
1462
- type Id = NodeName | MaybeTsDsl<ts.Expression>;
1463
- declare const Mixed$22: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.Expression>, TypeExprMethods>, OperatorMethods>, ExprMethods>, AsMethods>;
1464
- declare class ExprTsDsl extends Mixed$22 {
1452
+ type Id = NodeName$1 | MaybeTsDsl<ts.Expression>;
1453
+ declare const Mixed$23: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.Expression>, TypeExprMethods>, OperatorMethods>, ExprMethods>, AsMethods>;
1454
+ declare class ExprTsDsl extends Mixed$23 {
1465
1455
  readonly '~dsl' = "ExprTsDsl";
1466
1456
  protected _exprInput: Ref<Id>;
1467
1457
  constructor(id: Id);
1468
1458
  analyze(ctx: AnalysisContext): void;
1469
- toAst(): ts.Expression;
1459
+ toAst(): any;
1470
1460
  }
1471
1461
  //#endregion
1472
1462
  //#region src/ts-dsl/expr/id.d.ts
1473
- declare const Mixed$21: abstract new () => TsDsl<ts.Identifier>;
1474
- declare class IdTsDsl extends Mixed$21 {
1463
+ declare const Mixed$22: abstract new () => TsDsl<ts.Identifier>;
1464
+ declare class IdTsDsl extends Mixed$22 {
1475
1465
  readonly '~dsl' = "IdTsDsl";
1476
1466
  constructor(name: string);
1477
1467
  analyze(ctx: AnalysisContext): void;
@@ -1485,8 +1475,8 @@ interface HintMethods extends Node {
1485
1475
  }
1486
1476
  //#endregion
1487
1477
  //#region src/ts-dsl/expr/prop.d.ts
1488
- type Expr$1 = NodeName | MaybeTsDsl<ts.Expression>;
1489
- type Stmt$1 = NodeName | MaybeTsDsl<ts.Statement>;
1478
+ type Expr$1 = NodeName$1 | MaybeTsDsl<ts.Expression>;
1479
+ type Stmt$1 = NodeName$1 | MaybeTsDsl<ts.Statement>;
1490
1480
  type ObjectPropKind = 'computed' | 'getter' | 'prop' | 'setter' | 'spread';
1491
1481
  type Meta = {
1492
1482
  kind: 'computed';
@@ -1504,8 +1494,8 @@ type Meta = {
1504
1494
  kind: 'spread';
1505
1495
  name?: undefined;
1506
1496
  };
1507
- declare const Mixed$20: MixinCtor<abstract new () => TsDsl<ts.ObjectLiteralElementLike>, DocMethods>;
1508
- declare class ObjectPropTsDsl extends Mixed$20 {
1497
+ declare const Mixed$21: MixinCtor<abstract new () => TsDsl<ts.ObjectLiteralElementLike>, DocMethods>;
1498
+ declare class ObjectPropTsDsl extends Mixed$21 {
1509
1499
  readonly '~dsl' = "ObjectPropTsDsl";
1510
1500
  protected _value?: Ref<Expr$1 | Stmt$1>;
1511
1501
  protected _meta: Meta;
@@ -1515,7 +1505,7 @@ declare class ObjectPropTsDsl extends Mixed$20 {
1515
1505
  analyze(ctx: AnalysisContext): void;
1516
1506
  get isValid(): boolean;
1517
1507
  value(value: Expr$1 | Stmt$1 | ((p: ObjectPropTsDsl) => void)): this;
1518
- toAst(): ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.PropertyAssignment | ts.ShorthandPropertyAssignment | ts.SpreadAssignment;
1508
+ toAst(): any;
1519
1509
  $validate(): asserts this is this & {
1520
1510
  _value: Expr$1 | Stmt$1;
1521
1511
  kind: ObjectPropKind;
@@ -1524,12 +1514,12 @@ declare class ObjectPropTsDsl extends Mixed$20 {
1524
1514
  }
1525
1515
  //#endregion
1526
1516
  //#region src/ts-dsl/expr/object.d.ts
1527
- type Expr = NodeName | MaybeTsDsl<ts.Expression>;
1528
- type Stmt = NodeName | MaybeTsDsl<ts.Statement>;
1517
+ type Expr = NodeName$1 | MaybeTsDsl<ts.Expression>;
1518
+ type Stmt = NodeName$1 | MaybeTsDsl<ts.Statement>;
1529
1519
  type ExprFn = Expr | ((p: ObjectPropTsDsl) => void);
1530
1520
  type StmtFn = Stmt | ((p: ObjectPropTsDsl) => void);
1531
- declare const Mixed$19: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ObjectLiteralExpression>, LayoutMethods>, HintMethods>, ExprMethods>, AsMethods>;
1532
- declare class ObjectTsDsl extends Mixed$19 {
1521
+ declare const Mixed$20: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ObjectLiteralExpression>, LayoutMethods>, HintMethods>, ExprMethods>, AsMethods>;
1522
+ declare class ObjectTsDsl extends Mixed$20 {
1533
1523
  readonly '~dsl' = "ObjectTsDsl";
1534
1524
  protected _props: Map<string, ObjectPropTsDsl>;
1535
1525
  protected _spreadCounter: number;
@@ -1557,8 +1547,8 @@ declare class ObjectTsDsl extends Mixed$19 {
1557
1547
  }
1558
1548
  //#endregion
1559
1549
  //#region src/ts-dsl/expr/prefix.d.ts
1560
- declare const Mixed$18: abstract new () => TsDsl<ts.PrefixUnaryExpression>;
1561
- declare class PrefixTsDsl extends Mixed$18 {
1550
+ declare const Mixed$19: abstract new () => TsDsl<ts.PrefixUnaryExpression>;
1551
+ declare class PrefixTsDsl extends Mixed$19 {
1562
1552
  readonly '~dsl' = "PrefixTsDsl";
1563
1553
  protected _expr?: string | MaybeTsDsl<ts.Expression>;
1564
1554
  protected _op?: ts.PrefixUnaryOperator;
@@ -1585,8 +1575,8 @@ declare class PrefixTsDsl extends Mixed$18 {
1585
1575
  //#region src/ts-dsl/expr/regexp.d.ts
1586
1576
  type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u' | 'y';
1587
1577
  type RegexFlags<Avail extends string = RegexFlag> = '' | { [K in Avail]: `${K}${RegexFlags<Exclude<Avail, K>>}` }[Avail];
1588
- declare const Mixed$17: abstract new () => TsDsl<ts.RegularExpressionLiteral>;
1589
- declare class RegExpTsDsl extends Mixed$17 {
1578
+ declare const Mixed$18: abstract new () => TsDsl<ts.RegularExpressionLiteral>;
1579
+ declare class RegExpTsDsl extends Mixed$18 {
1590
1580
  readonly '~dsl' = "RegExpTsDsl";
1591
1581
  protected pattern: string;
1592
1582
  protected flags?: RegexFlags;
@@ -1595,6 +1585,18 @@ declare class RegExpTsDsl extends Mixed$17 {
1595
1585
  toAst(): ts.RegularExpressionLiteral;
1596
1586
  }
1597
1587
  //#endregion
1588
+ //#region src/ts-dsl/expr/template.d.ts
1589
+ type TemplatePart = NodeName$1 | MaybeTsDsl<ts.Expression>;
1590
+ declare const Mixed$17: abstract new () => TsDsl<ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral>;
1591
+ declare class TemplateTsDsl extends Mixed$17 {
1592
+ readonly '~dsl' = "TemplateTsDsl";
1593
+ protected parts: Array<Ref<TemplatePart>>;
1594
+ constructor(value?: TemplatePart);
1595
+ analyze(ctx: AnalysisContext): void;
1596
+ add(value: TemplatePart): this;
1597
+ toAst(): ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral;
1598
+ }
1599
+ //#endregion
1598
1600
  //#region src/ts-dsl/expr/ternary.d.ts
1599
1601
  declare const Mixed$16: abstract new () => TsDsl<ts.ConditionalExpression>;
1600
1602
  declare class TernaryTsDsl extends Mixed$16 {
@@ -1622,7 +1624,7 @@ declare class TernaryTsDsl extends Mixed$16 {
1622
1624
  declare class NewlineTsDsl extends TsDsl<ts.Identifier> {
1623
1625
  readonly '~dsl' = "NewlineTsDsl";
1624
1626
  analyze(ctx: AnalysisContext): void;
1625
- toAst(): ts.Identifier;
1627
+ toAst(): any;
1626
1628
  }
1627
1629
  //#endregion
1628
1630
  //#region src/ts-dsl/stmt/block.d.ts
@@ -1662,7 +1664,7 @@ declare const Mixed$12: abstract new () => TsDsl<ts.TryStatement>;
1662
1664
  declare class TryTsDsl extends Mixed$12 {
1663
1665
  readonly '~dsl' = "TryTsDsl";
1664
1666
  protected _catch?: Array<DoExpr>;
1665
- protected _catchArg?: NodeName;
1667
+ protected _catchArg?: NodeName$1;
1666
1668
  protected _finally?: Array<DoExpr>;
1667
1669
  protected _try?: Array<DoExpr>;
1668
1670
  constructor(...tryBlock: Array<DoExpr>);
@@ -1670,7 +1672,7 @@ declare class TryTsDsl extends Mixed$12 {
1670
1672
  /** Returns true when all required builder calls are present. */
1671
1673
  get isValid(): boolean;
1672
1674
  catch(...items: Array<DoExpr>): this;
1673
- catchArg(arg: NodeName): this;
1675
+ catchArg(arg: NodeName$1): this;
1674
1676
  finally(...items: Array<DoExpr>): this;
1675
1677
  try(...items: Array<DoExpr>): this;
1676
1678
  toAst(): ts.TryStatement;
@@ -1687,7 +1689,7 @@ declare class VarTsDsl extends Mixed$11 {
1687
1689
  readonly nameSanitizer: (name: string) => string;
1688
1690
  protected kind: ts.NodeFlags;
1689
1691
  protected _type?: TypeTsDsl;
1690
- constructor(name?: NodeName);
1692
+ constructor(name?: NodeName$1);
1691
1693
  analyze(ctx: AnalysisContext): void;
1692
1694
  /** Returns true when all required builder calls are present. */
1693
1695
  get isValid(): boolean;
@@ -1736,7 +1738,7 @@ declare class TypeAliasTsDsl extends Mixed$10 {
1736
1738
  readonly nameSanitizer: (name: string) => string;
1737
1739
  scope: NodeScope;
1738
1740
  protected value?: Value;
1739
- constructor(name: NodeName, fn?: (t: TypeAliasTsDsl) => void);
1741
+ constructor(name: NodeName$1, fn?: (t: TypeAliasTsDsl) => void);
1740
1742
  analyze(ctx: AnalysisContext): void;
1741
1743
  /** Returns true when all required builder calls are present. */
1742
1744
  get isValid(): boolean;
@@ -1750,15 +1752,15 @@ declare class TypeAliasTsDsl extends Mixed$10 {
1750
1752
  }
1751
1753
  //#endregion
1752
1754
  //#region src/ts-dsl/type/and.d.ts
1753
- type Type$1 = NodeName | ts.TypeNode | TypeTsDsl;
1755
+ type Type$2 = NodeName$1 | ts.TypeNode | TypeTsDsl;
1754
1756
  declare const Mixed$9: abstract new () => TsDsl<ts.IntersectionTypeNode>;
1755
1757
  declare class TypeAndTsDsl extends Mixed$9 {
1756
1758
  readonly '~dsl' = "TypeAndTsDsl";
1757
1759
  scope: NodeScope;
1758
- protected _types: Array<Ref<Type$1>>;
1759
- constructor(...nodes: Array<Type$1>);
1760
+ protected _types: Array<Ref<Type$2>>;
1761
+ constructor(...nodes: Array<Type$2>);
1760
1762
  analyze(ctx: AnalysisContext): void;
1761
- types(...nodes: Array<Type$1>): this;
1763
+ types(...nodes: Array<Type$2>): this;
1762
1764
  toAst(): ts.IntersectionTypeNode;
1763
1765
  }
1764
1766
  //#endregion
@@ -1780,8 +1782,8 @@ declare const Mixed$7: abstract new () => TsDsl<ts.LiteralTypeNode>;
1780
1782
  declare class TypeLiteralTsDsl extends Mixed$7 {
1781
1783
  readonly '~dsl' = "TypeLiteralTsDsl";
1782
1784
  scope: NodeScope;
1783
- protected value: string | number | boolean | null;
1784
- constructor(value: string | number | boolean | null);
1785
+ protected value: LiteralValue;
1786
+ constructor(value: LiteralValue);
1785
1787
  analyze(ctx: AnalysisContext): void;
1786
1788
  toAst(): ts.LiteralTypeNode;
1787
1789
  }
@@ -1795,7 +1797,7 @@ declare class TypeMappedTsDsl extends Mixed$6 {
1795
1797
  protected readonlyToken?: TokenTsDsl<ts.SyntaxKind.ReadonlyKeyword | ts.SyntaxKind.MinusToken | ts.SyntaxKind.PlusToken>;
1796
1798
  protected _key?: string | MaybeTsDsl<ts.TypeNode>;
1797
1799
  protected _type?: string | MaybeTsDsl<ts.TypeNode>;
1798
- constructor(name?: NodeName);
1800
+ constructor(name?: NodeName$1);
1799
1801
  analyze(ctx: AnalysisContext): void;
1800
1802
  /** Returns true when all required builder calls are present. */
1801
1803
  get isValid(): boolean;
@@ -1828,7 +1830,7 @@ declare class TypeIdxSigTsDsl extends Mixed$5 {
1828
1830
  scope: NodeScope;
1829
1831
  protected _key?: TypeIdxSigType;
1830
1832
  protected _type?: TypeIdxSigType;
1831
- constructor(name: NodeName, fn?: (i: TypeIdxSigTsDsl) => void);
1833
+ constructor(name: NodeName$1, fn?: (i: TypeIdxSigTsDsl) => void);
1832
1834
  /** Element kind. */
1833
1835
  get kind(): TypeIdxSigKind;
1834
1836
  /** Index signature parameter name. */
@@ -1849,14 +1851,14 @@ declare class TypeIdxSigTsDsl extends Mixed$5 {
1849
1851
  }
1850
1852
  //#endregion
1851
1853
  //#region src/ts-dsl/type/prop.d.ts
1852
- type TypePropType = NodeName | MaybeTsDsl<ts.TypeNode>;
1854
+ type TypePropType = NodeName$1 | MaybeTsDsl<ts.TypeNode>;
1853
1855
  type TypePropKind = 'prop';
1854
1856
  declare const Mixed$4: MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.TypeElement>, ReadonlyMethods>, OptionalMethods>, DocMethods>;
1855
1857
  declare class TypePropTsDsl extends Mixed$4 {
1856
1858
  readonly '~dsl' = "TypePropTsDsl";
1857
1859
  scope: NodeScope;
1858
1860
  protected _type?: Ref<TypePropType>;
1859
- constructor(name: NodeName, fn: (p: TypePropTsDsl) => void);
1861
+ constructor(name: NodeName$1, fn: (p: TypePropTsDsl) => void);
1860
1862
  /** Element kind. */
1861
1863
  get kind(): TypePropKind;
1862
1864
  /** Property name. */
@@ -1894,15 +1896,15 @@ declare class TypeObjectTsDsl extends Mixed$3 {
1894
1896
  }
1895
1897
  //#endregion
1896
1898
  //#region src/ts-dsl/type/or.d.ts
1897
- type Type = NodeName | ts.TypeNode | TypeTsDsl;
1899
+ type Type$1 = NodeName$1 | ts.TypeNode | TypeTsDsl;
1898
1900
  declare const Mixed$2: abstract new () => TsDsl<ts.UnionTypeNode>;
1899
1901
  declare class TypeOrTsDsl extends Mixed$2 {
1900
1902
  readonly '~dsl' = "TypeOrTsDsl";
1901
1903
  scope: NodeScope;
1902
- protected _types: Array<Ref<Type>>;
1903
- constructor(...nodes: Array<Type>);
1904
+ protected _types: Array<Ref<Type$1>>;
1905
+ constructor(...nodes: Array<Type$1>);
1904
1906
  analyze(ctx: AnalysisContext): void;
1905
- types(...nodes: Array<Type>): this;
1907
+ types(...nodes: Array<Type$1>): this;
1906
1908
  toAst(): ts.UnionTypeNode;
1907
1909
  }
1908
1910
  //#endregion
@@ -2061,35 +2063,35 @@ declare const reserved: {
2061
2063
  };
2062
2064
  //#endregion
2063
2065
  //#region src/ts-dsl/index.d.ts
2064
- declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_core0.NodeName) => ExprTsDsl) & {
2066
+ declare const $: ((id: any) => ExprTsDsl) & {
2065
2067
  /** Creates an array literal expression (e.g. `[1, 2, 3]`). */
2066
2068
  array: (...args: ConstructorParameters<typeof ArrayTsDsl>) => ArrayTsDsl;
2067
2069
  /** Creates an `as` type assertion expression (e.g. `value as Type`). */
2068
- as: (expr: AsExpr, type: AsType) => AsTsDsl;
2070
+ as: (expr: any, type: any) => AsTsDsl;
2069
2071
  /** Creates a property access expression (e.g. `obj.foo`). */
2070
- attr: (left: AttrLeft, right: _hey_api_codegen_core0.NodeName) => AttrTsDsl;
2072
+ attr: (left: any, right: NodeName) => AttrTsDsl;
2071
2073
  /** Creates an await expression (e.g. `await promise`). */
2072
- await: (expr: AwaitExpr) => AwaitTsDsl;
2074
+ await: (expr: any) => AwaitTsDsl;
2073
2075
  /** Creates a binary expression (e.g. `a + b`). */
2074
- binary: (base: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_core0.NodeName, op?: (("!=" | "!==" | "&&" | "*" | "+" | "-" | "/" | "<" | "<=" | "=" | "==" | "===" | ">" | ">=" | "??" | "??=" | "||") | ts.BinaryOperator) | undefined, expr?: (ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_core0.NodeName) | undefined) => BinaryTsDsl;
2076
+ binary: (base: any, op?: (("!=" | "!==" | "&&" | "*" | "+" | "-" | "/" | "<" | "<=" | "=" | "==" | "===" | ">" | ">=" | "??" | "??=" | "||") | ts.BinaryOperator) | undefined, expr?: any) => BinaryTsDsl;
2075
2077
  /** Creates a statement block (`{ ... }`). */
2076
2078
  block: (...args: ConstructorParameters<typeof BlockTsDsl>) => BlockTsDsl;
2077
2079
  /** Creates a function or method call expression (e.g. `fn(arg)`). */
2078
- call: (callee: CallCallee, ...args: (CallCallee | undefined)[]) => CallTsDsl;
2080
+ call: (callee: any, ...args: any[]) => CallTsDsl;
2079
2081
  /** Creates a class declaration or expression. */
2080
- class: (name: _hey_api_codegen_core0.NodeName) => ClassTsDsl;
2082
+ class: (name: NodeName) => ClassTsDsl;
2081
2083
  /** Creates a constant variable declaration (`const`). */
2082
- const: (name?: _hey_api_codegen_core0.NodeName | undefined) => VarTsDsl;
2084
+ const: (name?: any) => VarTsDsl;
2083
2085
  /** Creates a decorator expression (e.g. `@decorator`). */
2084
- decorator: (name: _hey_api_codegen_core0.NodeName, ...args: (string | ts.Expression | TsDsl<ts.Expression>)[]) => DecoratorTsDsl;
2086
+ decorator: (name: NodeName, ...args: (string | ts.Expression | TsDsl<ts.Expression>)[]) => DecoratorTsDsl;
2085
2087
  /** Creates a JSDoc documentation block. */
2086
2088
  doc: (lines?: DocLines | undefined, fn?: DocFn | undefined) => DocTsDsl;
2087
2089
  /** Creates an enum declaration. */
2088
- enum: (name: _hey_api_codegen_core0.NodeName, fn?: ((e: EnumTsDsl) => void) | undefined) => EnumTsDsl;
2090
+ enum: (name: NodeName, fn?: ((e: EnumTsDsl) => void) | undefined) => EnumTsDsl;
2089
2091
  /** Creates a general expression node. */
2090
- expr: (id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_core0.NodeName) => ExprTsDsl;
2092
+ expr: (id: any) => ExprTsDsl;
2091
2093
  /** Creates a field declaration in a class or object. */
2092
- field: (name: _hey_api_codegen_core0.NodeName, fn?: ((f: FieldTsDsl) => void) | undefined) => FieldTsDsl;
2094
+ field: (name: NodeName, fn?: ((f: FieldTsDsl) => void) | undefined) => FieldTsDsl;
2093
2095
  /** Converts a runtime value into a corresponding expression node. */
2094
2096
  fromValue: (input: unknown, options?: {
2095
2097
  layout?: "pretty";
@@ -2103,7 +2105,7 @@ declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_c
2103
2105
  (name?: string, fn?: (f: FuncTsDsl<"decl">) => void): FuncTsDsl<"arrow"> | FuncTsDsl<"decl">;
2104
2106
  };
2105
2107
  /** Creates a getter method declaration. */
2106
- getter: (name: _hey_api_codegen_core0.NodeName, fn?: ((g: GetterTsDsl) => void) | undefined) => GetterTsDsl;
2108
+ getter: (name: NodeName, fn?: ((g: GetterTsDsl) => void) | undefined) => GetterTsDsl;
2107
2109
  /** Creates a single-line comment (//). */
2108
2110
  hint: (lines?: HintLines | undefined, fn?: HintFn | undefined) => HintTsDsl;
2109
2111
  /** Creates an identifier (e.g. `foo`). */
@@ -2115,17 +2117,17 @@ declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_c
2115
2117
  /** Creates a lazy, context-aware node with deferred evaluation. */
2116
2118
  lazy: <T extends ts.Node>(thunk: LazyThunk<T>) => LazyTsDsl<T>;
2117
2119
  /** Creates a let variable declaration (`let`). */
2118
- let: (name?: _hey_api_codegen_core0.NodeName | undefined) => VarTsDsl;
2120
+ let: (name?: any) => VarTsDsl;
2119
2121
  /** Creates a literal value (e.g. string, number, boolean). */
2120
2122
  literal: (value: LiteralValue) => LiteralTsDsl;
2121
2123
  /** Creates an enum member declaration. */
2122
- member: (name: _hey_api_codegen_core0.NodeName, value?: ((string | number | ts.Expression | TsDsl<ts.Expression>) | ((m: EnumMemberTsDsl) => void)) | undefined) => EnumMemberTsDsl;
2124
+ member: (name: NodeName, value?: ((string | number | ts.Expression | TsDsl<ts.Expression>) | ((m: EnumMemberTsDsl) => void)) | undefined) => EnumMemberTsDsl;
2123
2125
  /** Creates a method declaration inside a class or object. */
2124
- method: (name: _hey_api_codegen_core0.NodeName, fn?: ((m: MethodTsDsl) => void) | undefined) => MethodTsDsl;
2126
+ method: (name: NodeName, fn?: ((m: MethodTsDsl) => void) | undefined) => MethodTsDsl;
2125
2127
  /** Creates a negation expression (`-x`). */
2126
2128
  neg: (expr?: string | ts.Expression | TsDsl<ts.Expression> | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl;
2127
2129
  /** Creates a new expression (e.g. `new ClassName()`). */
2128
- new: (expr: NewExpr, ...args: (NewExpr | undefined)[]) => NewTsDsl;
2130
+ new: (expr: any, ...args: any[]) => NewTsDsl;
2129
2131
  /** Creates a newline (for formatting purposes). */
2130
2132
  newline: () => NewlineTsDsl;
2131
2133
  /** Creates a logical NOT expression (`!x`). */
@@ -2135,7 +2137,7 @@ declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_c
2135
2137
  /** Creates an object literal expression. */
2136
2138
  object: (...args: ConstructorParameters<typeof ObjectTsDsl>) => ObjectTsDsl;
2137
2139
  /** Creates a parameter declaration for functions or methods. */
2138
- param: (name: _hey_api_codegen_core0.NodeName | ((p: ParamTsDsl) => void), fn?: ((p: ParamTsDsl) => void) | undefined) => ParamTsDsl;
2140
+ param: (name: any, fn?: ParamFn | undefined) => ParamTsDsl;
2139
2141
  /** Creates a pattern for destructuring or matching. */
2140
2142
  pattern: () => PatternTsDsl;
2141
2143
  /** Creates a prefix unary expression (e.g. `-x`, `!x`, `~x`). */
@@ -2160,13 +2162,13 @@ declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_c
2160
2162
  /** Creates a regular expression literal (e.g. `/foo/gi`). */
2161
2163
  regexp: (pattern: string, flags?: ("" | "g" | "i" | "m" | "s" | "u" | "y" | "uy" | "yu" | "su" | "sy" | "suy" | "syu" | "ys" | "us" | "usy" | "uys" | "ysu" | "yus" | "ms" | "mu" | "my" | "muy" | "myu" | "msu" | "msy" | "msuy" | "msyu" | "mys" | "mus" | "musy" | "muys" | "mysu" | "myus" | "ym" | "um" | "umy" | "uym" | "ymu" | "yum" | "sm" | "smu" | "smy" | "smuy" | "smyu" | "sym" | "sum" | "sumy" | "suym" | "symu" | "syum" | "yms" | "ysm" | "ums" | "umsy" | "umys" | "usm" | "usmy" | "usym" | "uyms" | "uysm" | "ymsu" | "ymus" | "ysmu" | "ysum" | "yums" | "yusm" | "im" | "is" | "iu" | "iy" | "iuy" | "iyu" | "isu" | "isy" | "isuy" | "isyu" | "iys" | "ius" | "iusy" | "iuys" | "iysu" | "iyus" | "ims" | "imu" | "imy" | "imuy" | "imyu" | "imsu" | "imsy" | "imsuy" | "imsyu" | "imys" | "imus" | "imusy" | "imuys" | "imysu" | "imyus" | "iym" | "ium" | "iumy" | "iuym" | "iymu" | "iyum" | "ism" | "ismu" | "ismy" | "ismuy" | "ismyu" | "isym" | "isum" | "isumy" | "isuym" | "isymu" | "isyum" | "iyms" | "iysm" | "iums" | "iumsy" | "iumys" | "iusm" | "iusmy" | "iusym" | "iuyms" | "iuysm" | "iymsu" | "iymus" | "iysmu" | "iysum" | "iyums" | "iyusm" | "yi" | "ui" | "uiy" | "uyi" | "yiu" | "yui" | "si" | "siu" | "siy" | "siuy" | "siyu" | "syi" | "sui" | "suiy" | "suyi" | "syiu" | "syui" | "yis" | "ysi" | "uis" | "uisy" | "uiys" | "usi" | "usiy" | "usyi" | "uyis" | "uysi" | "yisu" | "yius" | "ysiu" | "ysui" | "yuis" | "yusi" | "mi" | "mis" | "miu" | "miy" | "miuy" | "miyu" | "misu" | "misy" | "misuy" | "misyu" | "miys" | "mius" | "miusy" | "miuys" | "miysu" | "miyus" | "myi" | "mui" | "muiy" | "muyi" | "myiu" | "myui" | "msi" | "msiu" | "msiy" | "msiuy" | "msiyu" | "msyi" | "msui" | "msuiy" | "msuyi" | "msyiu" | "msyui" | "myis" | "mysi" | "muis" | "muisy" | "muiys" | "musi" | "musiy" | "musyi" | "muyis" | "muysi" | "myisu" | "myius" | "mysiu" | "mysui" | "myuis" | "myusi" | "yim" | "ymi" | "uim" | "uimy" | "uiym" | "umi" | "umiy" | "umyi" | "uyim" | "uymi" | "yimu" | "yium" | "ymiu" | "ymui" | "yuim" | "yumi" | "sim" | "simu" | "simy" | "simuy" | "simyu" | "siym" | "sium" | "siumy" | "siuym" | "siymu" | "siyum" | "smi" | "smiu" | "smiy" | "smiuy" | "smiyu" | "smyi" | "smui" | "smuiy" | "smuyi" | "smyiu" | "smyui" | "syim" | "symi" | "suim" | "suimy" | "suiym" | "sumi" | "sumiy" | "sumyi" | "suyim" | "suymi" | "syimu" | "syium" | "symiu" | "symui" | "syuim" | "syumi" | "yims" | "yism" | "ymis" | "ymsi" | "ysim" | "ysmi" | "uims" | "uimsy" | "uimys" | "uism" | "uismy" | "uisym" | "uiyms" | "uiysm" | "umis" | "umisy" | "umiys" | "umsi" | "umsiy" | "umsyi" | "umyis" | "umysi" | "usim" | "usimy" | "usiym" | "usmi" | "usmiy" | "usmyi" | "usyim" | "usymi" | "uyims" | "uyism" | "uymis" | "uymsi" | "uysim" | "uysmi" | "yimsu" | "yimus" | "yismu" | "yisum" | "yiums" | "yiusm" | "ymisu" | "ymius" | "ymsiu" | "ymsui" | "ymuis" | "ymusi" | "ysimu" | "ysium" | "ysmiu" | "ysmui" | "ysuim" | "ysumi" | "yuims" | "yuism" | "yumis" | "yumsi" | "yusim" | "yusmi" | "gi" | "gm" | "gs" | "gu" | "gy" | "guy" | "gyu" | "gsu" | "gsy" | "gsuy" | "gsyu" | "gys" | "gus" | "gusy" | "guys" | "gysu" | "gyus" | "gms" | "gmu" | "gmy" | "gmuy" | "gmyu" | "gmsu" | "gmsy" | "gmsuy" | "gmsyu" | "gmys" | "gmus" | "gmusy" | "gmuys" | "gmysu" | "gmyus" | "gym" | "gum" | "gumy" | "guym" | "gymu" | "gyum" | "gsm" | "gsmu" | "gsmy" | "gsmuy" | "gsmyu" | "gsym" | "gsum" | "gsumy" | "gsuym" | "gsymu" | "gsyum" | "gyms" | "gysm" | "gums" | "gumsy" | "gumys" | "gusm" | "gusmy" | "gusym" | "guyms" | "guysm" | "gymsu" | "gymus" | "gysmu" | "gysum" | "gyums" | "gyusm" | "gim" | "gis" | "giu" | "giy" | "giuy" | "giyu" | "gisu" | "gisy" | "gisuy" | "gisyu" | "giys" | "gius" | "giusy" | "giuys" | "giysu" | "giyus" | "gims" | "gimu" | "gimy" | "gimuy" | "gimyu" | "gimsu" | "gimsy" | "gimsuy" | "gimsyu" | "gimys" | "gimus" | "gimusy" | "gimuys" | "gimysu" | "gimyus" | "giym" | "gium" | "giumy" | "giuym" | "giymu" | "giyum" | "gism" | "gismu" | "gismy" | "gismuy" | "gismyu" | "gisym" | "gisum" | "gisumy" | "gisuym" | "gisymu" | "gisyum" | "giyms" | "giysm" | "giums" | "giumsy" | "giumys" | "giusm" | "giusmy" | "giusym" | "giuyms" | "giuysm" | "giymsu" | "giymus" | "giysmu" | "giysum" | "giyums" | "giyusm" | "gyi" | "gui" | "guiy" | "guyi" | "gyiu" | "gyui" | "gsi" | "gsiu" | "gsiy" | "gsiuy" | "gsiyu" | "gsyi" | "gsui" | "gsuiy" | "gsuyi" | "gsyiu" | "gsyui" | "gyis" | "gysi" | "guis" | "guisy" | "guiys" | "gusi" | "gusiy" | "gusyi" | "guyis" | "guysi" | "gyisu" | "gyius" | "gysiu" | "gysui" | "gyuis" | "gyusi" | "gmi" | "gmis" | "gmiu" | "gmiy" | "gmiuy" | "gmiyu" | "gmisu" | "gmisy" | "gmisuy" | "gmisyu" | "gmiys" | "gmius" | "gmiusy" | "gmiuys" | "gmiysu" | "gmiyus" | "gmyi" | "gmui" | "gmuiy" | "gmuyi" | "gmyiu" | "gmyui" | "gmsi" | "gmsiu" | "gmsiy" | "gmsiuy" | "gmsiyu" | "gmsyi" | "gmsui" | "gmsuiy" | "gmsuyi" | "gmsyiu" | "gmsyui" | "gmyis" | "gmysi" | "gmuis" | "gmuisy" | "gmuiys" | "gmusi" | "gmusiy" | "gmusyi" | "gmuyis" | "gmuysi" | "gmyisu" | "gmyius" | "gmysiu" | "gmysui" | "gmyuis" | "gmyusi" | "gyim" | "gymi" | "guim" | "guimy" | "guiym" | "gumi" | "gumiy" | "gumyi" | "guyim" | "guymi" | "gyimu" | "gyium" | "gymiu" | "gymui" | "gyuim" | "gyumi" | "gsim" | "gsimu" | "gsimy" | "gsimuy" | "gsimyu" | "gsiym" | "gsium" | "gsiumy" | "gsiuym" | "gsiymu" | "gsiyum" | "gsmi" | "gsmiu" | "gsmiy" | "gsmiuy" | "gsmiyu" | "gsmyi" | "gsmui" | "gsmuiy" | "gsmuyi" | "gsmyiu" | "gsmyui" | "gsyim" | "gsymi" | "gsuim" | "gsuimy" | "gsuiym" | "gsumi" | "gsumiy" | "gsumyi" | "gsuyim" | "gsuymi" | "gsyimu" | "gsyium" | "gsymiu" | "gsymui" | "gsyuim" | "gsyumi" | "gyims" | "gyism" | "gymis" | "gymsi" | "gysim" | "gysmi" | "guims" | "guimsy" | "guimys" | "guism" | "guismy" | "guisym" | "guiyms" | "guiysm" | "gumis" | "gumisy" | "gumiys" | "gumsi" | "gumsiy" | "gumsyi" | "gumyis" | "gumysi" | "gusim" | "gusimy" | "gusiym" | "gusmi" | "gusmiy" | "gusmyi" | "gusyim" | "gusymi" | "guyims" | "guyism" | "guymis" | "guymsi" | "guysim" | "guysmi" | "gyimsu" | "gyimus" | "gyismu" | "gyisum" | "gyiums" | "gyiusm" | "gymisu" | "gymius" | "gymsiu" | "gymsui" | "gymuis" | "gymusi" | "gysimu" | "gysium" | "gysmiu" | "gysmui" | "gysuim" | "gysumi" | "gyuims" | "gyuism" | "gyumis" | "gyumsi" | "gyusim" | "gyusmi" | "yg" | "ug" | "ugy" | "uyg" | "ygu" | "yug" | "sg" | "sgu" | "sgy" | "sguy" | "sgyu" | "syg" | "sug" | "sugy" | "suyg" | "sygu" | "syug" | "ygs" | "ysg" | "ugs" | "ugsy" | "ugys" | "usg" | "usgy" | "usyg" | "uygs" | "uysg" | "ygsu" | "ygus" | "ysgu" | "ysug" | "yugs" | "yusg" | "mg" | "mgs" | "mgu" | "mgy" | "mguy" | "mgyu" | "mgsu" | "mgsy" | "mgsuy" | "mgsyu" | "mgys" | "mgus" | "mgusy" | "mguys" | "mgysu" | "mgyus" | "myg" | "mug" | "mugy" | "muyg" | "mygu" | "myug" | "msg" | "msgu" | "msgy" | "msguy" | "msgyu" | "msyg" | "msug" | "msugy" | "msuyg" | "msygu" | "msyug" | "mygs" | "mysg" | "mugs" | "mugsy" | "mugys" | "musg" | "musgy" | "musyg" | "muygs" | "muysg" | "mygsu" | "mygus" | "mysgu" | "mysug" | "myugs" | "myusg" | "ygm" | "ymg" | "ugm" | "ugmy" | "ugym" | "umg" | "umgy" | "umyg" | "uygm" | "uymg" | "ygmu" | "ygum" | "ymgu" | "ymug" | "yugm" | "yumg" | "sgm" | "sgmu" | "sgmy" | "sgmuy" | "sgmyu" | "sgym" | "sgum" | "sgumy" | "sguym" | "sgymu" | "sgyum" | "smg" | "smgu" | "smgy" | "smguy" | "smgyu" | "smyg" | "smug" | "smugy" | "smuyg" | "smygu" | "smyug" | "sygm" | "symg" | "sugm" | "sugmy" | "sugym" | "sumg" | "sumgy" | "sumyg" | "suygm" | "suymg" | "sygmu" | "sygum" | "symgu" | "symug" | "syugm" | "syumg" | "ygms" | "ygsm" | "ymgs" | "ymsg" | "ysgm" | "ysmg" | "ugms" | "ugmsy" | "ugmys" | "ugsm" | "ugsmy" | "ugsym" | "ugyms" | "ugysm" | "umgs" | "umgsy" | "umgys" | "umsg" | "umsgy" | "umsyg" | "umygs" | "umysg" | "usgm" | "usgmy" | "usgym" | "usmg" | "usmgy" | "usmyg" | "usygm" | "usymg" | "uygms" | "uygsm" | "uymgs" | "uymsg" | "uysgm" | "uysmg" | "ygmsu" | "ygmus" | "ygsmu" | "ygsum" | "ygums" | "ygusm" | "ymgsu" | "ymgus" | "ymsgu" | "ymsug" | "ymugs" | "ymusg" | "ysgmu" | "ysgum" | "ysmgu" | "ysmug" | "ysugm" | "ysumg" | "yugms" | "yugsm" | "yumgs" | "yumsg" | "yusgm" | "yusmg" | "ig" | "igm" | "igs" | "igu" | "igy" | "iguy" | "igyu" | "igsu" | "igsy" | "igsuy" | "igsyu" | "igys" | "igus" | "igusy" | "iguys" | "igysu" | "igyus" | "igms" | "igmu" | "igmy" | "igmuy" | "igmyu" | "igmsu" | "igmsy" | "igmsuy" | "igmsyu" | "igmys" | "igmus" | "igmusy" | "igmuys" | "igmysu" | "igmyus" | "igym" | "igum" | "igumy" | "iguym" | "igymu" | "igyum" | "igsm" | "igsmu" | "igsmy" | "igsmuy" | "igsmyu" | "igsym" | "igsum" | "igsumy" | "igsuym" | "igsymu" | "igsyum" | "igyms" | "igysm" | "igums" | "igumsy" | "igumys" | "igusm" | "igusmy" | "igusym" | "iguyms" | "iguysm" | "igymsu" | "igymus" | "igysmu" | "igysum" | "igyums" | "igyusm" | "iyg" | "iug" | "iugy" | "iuyg" | "iygu" | "iyug" | "isg" | "isgu" | "isgy" | "isguy" | "isgyu" | "isyg" | "isug" | "isugy" | "isuyg" | "isygu" | "isyug" | "iygs" | "iysg" | "iugs" | "iugsy" | "iugys" | "iusg" | "iusgy" | "iusyg" | "iuygs" | "iuysg" | "iygsu" | "iygus" | "iysgu" | "iysug" | "iyugs" | "iyusg" | "img" | "imgs" | "imgu" | "imgy" | "imguy" | "imgyu" | "imgsu" | "imgsy" | "imgsuy" | "imgsyu" | "imgys" | "imgus" | "imgusy" | "imguys" | "imgysu" | "imgyus" | "imyg" | "imug" | "imugy" | "imuyg" | "imygu" | "imyug" | "imsg" | "imsgu" | "imsgy" | "imsguy" | "imsgyu" | "imsyg" | "imsug" | "imsugy" | "imsuyg" | "imsygu" | "imsyug" | "imygs" | "imysg" | "imugs" | "imugsy" | "imugys" | "imusg" | "imusgy" | "imusyg" | "imuygs" | "imuysg" | "imygsu" | "imygus" | "imysgu" | "imysug" | "imyugs" | "imyusg" | "iygm" | "iymg" | "iugm" | "iugmy" | "iugym" | "iumg" | "iumgy" | "iumyg" | "iuygm" | "iuymg" | "iygmu" | "iygum" | "iymgu" | "iymug" | "iyugm" | "iyumg" | "isgm" | "isgmu" | "isgmy" | "isgmuy" | "isgmyu" | "isgym" | "isgum" | "isgumy" | "isguym" | "isgymu" | "isgyum" | "ismg" | "ismgu" | "ismgy" | "ismguy" | "ismgyu" | "ismyg" | "ismug" | "ismugy" | "ismuyg" | "ismygu" | "ismyug" | "isygm" | "isymg" | "isugm" | "isugmy" | "isugym" | "isumg" | "isumgy" | "isumyg" | "isuygm" | "isuymg" | "isygmu" | "isygum" | "isymgu" | "isymug" | "isyugm" | "isyumg" | "iygms" | "iygsm" | "iymgs" | "iymsg" | "iysgm" | "iysmg" | "iugms" | "iugmsy" | "iugmys" | "iugsm" | "iugsmy" | "iugsym" | "iugyms" | "iugysm" | "iumgs" | "iumgsy" | "iumgys" | "iumsg" | "iumsgy" | "iumsyg" | "iumygs" | "iumysg" | "iusgm" | "iusgmy" | "iusgym" | "iusmg" | "iusmgy" | "iusmyg" | "iusygm" | "iusymg" | "iuygms" | "iuygsm" | "iuymgs" | "iuymsg" | "iuysgm" | "iuysmg" | "iygmsu" | "iygmus" | "iygsmu" | "iygsum" | "iygums" | "iygusm" | "iymgsu" | "iymgus" | "iymsgu" | "iymsug" | "iymugs" | "iymusg" | "iysgmu" | "iysgum" | "iysmgu" | "iysmug" | "iysugm" | "iysumg" | "iyugms" | "iyugsm" | "iyumgs" | "iyumsg" | "iyusgm" | "iyusmg" | "ygi" | "yig" | "ugi" | "ugiy" | "ugyi" | "uig" | "uigy" | "uiyg" | "uygi" | "uyig" | "ygiu" | "ygui" | "yigu" | "yiug" | "yugi" | "yuig" | "sgi" | "sgiu" | "sgiy" | "sgiuy" | "sgiyu" | "sgyi" | "sgui" | "sguiy" | "sguyi" | "sgyiu" | "sgyui" | "sig" | "sigu" | "sigy" | "siguy" | "sigyu" | "siyg" | "siug" | "siugy" | "siuyg" | "siygu" | "siyug" | "sygi" | "syig" | "sugi" | "sugiy" | "sugyi" | "suig" | "suigy" | "suiyg" | "suygi" | "suyig" | "sygiu" | "sygui" | "syigu" | "syiug" | "syugi" | "syuig" | "ygis" | "ygsi" | "yigs" | "yisg" | "ysgi" | "ysig" | "ugis" | "ugisy" | "ugiys" | "ugsi" | "ugsiy" | "ugsyi" | "ugyis" | "ugysi" | "uigs" | "uigsy" | "uigys" | "uisg" | "uisgy" | "uisyg" | "uiygs" | "uiysg" | "usgi" | "usgiy" | "usgyi" | "usig" | "usigy" | "usiyg" | "usygi" | "usyig" | "uygis" | "uygsi" | "uyigs" | "uyisg" | "uysgi" | "uysig" | "ygisu" | "ygius" | "ygsiu" | "ygsui" | "yguis" | "ygusi" | "yigsu" | "yigus" | "yisgu" | "yisug" | "yiugs" | "yiusg" | "ysgiu" | "ysgui" | "ysigu" | "ysiug" | "ysugi" | "ysuig" | "yugis" | "yugsi" | "yuigs" | "yuisg" | "yusgi" | "yusig" | "mgi" | "mgis" | "mgiu" | "mgiy" | "mgiuy" | "mgiyu" | "mgisu" | "mgisy" | "mgisuy" | "mgisyu" | "mgiys" | "mgius" | "mgiusy" | "mgiuys" | "mgiysu" | "mgiyus" | "mgyi" | "mgui" | "mguiy" | "mguyi" | "mgyiu" | "mgyui" | "mgsi" | "mgsiu" | "mgsiy" | "mgsiuy" | "mgsiyu" | "mgsyi" | "mgsui" | "mgsuiy" | "mgsuyi" | "mgsyiu" | "mgsyui" | "mgyis" | "mgysi" | "mguis" | "mguisy" | "mguiys" | "mgusi" | "mgusiy" | "mgusyi" | "mguyis" | "mguysi" | "mgyisu" | "mgyius" | "mgysiu" | "mgysui" | "mgyuis" | "mgyusi" | "mig" | "migs" | "migu" | "migy" | "miguy" | "migyu" | "migsu" | "migsy" | "migsuy" | "migsyu" | "migys" | "migus" | "migusy" | "miguys" | "migysu" | "migyus" | "miyg" | "miug" | "miugy" | "miuyg" | "miygu" | "miyug" | "misg" | "misgu" | "misgy" | "misguy" | "misgyu" | "misyg" | "misug" | "misugy" | "misuyg" | "misygu" | "misyug" | "miygs" | "miysg" | "miugs" | "miugsy" | "miugys" | "miusg" | "miusgy" | "miusyg" | "miuygs" | "miuysg" | "miygsu" | "miygus" | "miysgu" | "miysug" | "miyugs" | "miyusg" | "mygi" | "myig" | "mugi" | "mugiy" | "mugyi" | "muig" | "muigy" | "muiyg" | "muygi" | "muyig" | "mygiu" | "mygui" | "myigu" | "myiug" | "myugi" | "myuig" | "msgi" | "msgiu" | "msgiy" | "msgiuy" | "msgiyu" | "msgyi" | "msgui" | "msguiy" | "msguyi" | "msgyiu" | "msgyui" | "msig" | "msigu" | "msigy" | "msiguy" | "msigyu" | "msiyg" | "msiug" | "msiugy" | "msiuyg" | "msiygu" | "msiyug" | "msygi" | "msyig" | "msugi" | "msugiy" | "msugyi" | "msuig" | "msuigy" | "msuiyg" | "msuygi" | "msuyig" | "msygiu" | "msygui" | "msyigu" | "msyiug" | "msyugi" | "msyuig" | "mygis" | "mygsi" | "myigs" | "myisg" | "mysgi" | "mysig" | "mugis" | "mugisy" | "mugiys" | "mugsi" | "mugsiy" | "mugsyi" | "mugyis" | "mugysi" | "muigs" | "muigsy" | "muigys" | "muisg" | "muisgy" | "muisyg" | "muiygs" | "muiysg" | "musgi" | "musgiy" | "musgyi" | "musig" | "musigy" | "musiyg" | "musygi" | "musyig" | "muygis" | "muygsi" | "muyigs" | "muyisg" | "muysgi" | "muysig" | "mygisu" | "mygius" | "mygsiu" | "mygsui" | "myguis" | "mygusi" | "myigsu" | "myigus" | "myisgu" | "myisug" | "myiugs" | "myiusg" | "mysgiu" | "mysgui" | "mysigu" | "mysiug" | "mysugi" | "mysuig" | "myugis" | "myugsi" | "myuigs" | "myuisg" | "myusgi" | "myusig" | "ygim" | "ygmi" | "yigm" | "yimg" | "ymgi" | "ymig" | "ugim" | "ugimy" | "ugiym" | "ugmi" | "ugmiy" | "ugmyi" | "ugyim" | "ugymi" | "uigm" | "uigmy" | "uigym" | "uimg" | "uimgy" | "uimyg" | "uiygm" | "uiymg" | "umgi" | "umgiy" | "umgyi" | "umig" | "umigy" | "umiyg" | "umygi" | "umyig" | "uygim" | "uygmi" | "uyigm" | "uyimg" | "uymgi" | "uymig" | "ygimu" | "ygium" | "ygmiu" | "ygmui" | "yguim" | "ygumi" | "yigmu" | "yigum" | "yimgu" | "yimug" | "yiugm" | "yiumg" | "ymgiu" | "ymgui" | "ymigu" | "ymiug" | "ymugi" | "ymuig" | "yugim" | "yugmi" | "yuigm" | "yuimg" | "yumgi" | "yumig" | "sgim" | "sgimu" | "sgimy" | "sgimuy" | "sgimyu" | "sgiym" | "sgium" | "sgiumy" | "sgiuym" | "sgiymu" | "sgiyum" | "sgmi" | "sgmiu" | "sgmiy" | "sgmiuy" | "sgmiyu" | "sgmyi" | "sgmui" | "sgmuiy" | "sgmuyi" | "sgmyiu" | "sgmyui" | "sgyim" | "sgymi" | "sguim" | "sguimy" | "sguiym" | "sgumi" | "sgumiy" | "sgumyi" | "sguyim" | "sguymi" | "sgyimu" | "sgyium" | "sgymiu" | "sgymui" | "sgyuim" | "sgyumi" | "sigm" | "sigmu" | "sigmy" | "sigmuy" | "sigmyu" | "sigym" | "sigum" | "sigumy" | "siguym" | "sigymu" | "sigyum" | "simg" | "simgu" | "simgy" | "simguy" | "simgyu" | "simyg" | "simug" | "simugy" | "simuyg" | "simygu" | "simyug" | "siygm" | "siymg" | "siugm" | "siugmy" | "siugym" | "siumg" | "siumgy" | "siumyg" | "siuygm" | "siuymg" | "siygmu" | "siygum" | "siymgu" | "siymug" | "siyugm" | "siyumg" | "smgi" | "smgiu" | "smgiy" | "smgiuy" | "smgiyu" | "smgyi" | "smgui" | "smguiy" | "smguyi" | "smgyiu" | "smgyui" | "smig" | "smigu" | "smigy" | "smiguy" | "smigyu" | "smiyg" | "smiug" | "smiugy" | "smiuyg" | "smiygu" | "smiyug" | "smygi" | "smyig" | "smugi" | "smugiy" | "smugyi" | "smuig" | "smuigy" | "smuiyg" | "smuygi" | "smuyig" | "smygiu" | "smygui" | "smyigu" | "smyiug" | "smyugi" | "smyuig" | "sygim" | "sygmi" | "syigm" | "syimg" | "symgi" | "symig" | "sugim" | "sugimy" | "sugiym" | "sugmi" | "sugmiy" | "sugmyi" | "sugyim" | "sugymi" | "suigm" | "suigmy" | "suigym" | "suimg" | "suimgy" | "suimyg" | "suiygm" | "suiymg" | "sumgi" | "sumgiy" | "sumgyi" | "sumig" | "sumigy" | "sumiyg" | "sumygi" | "sumyig" | "suygim" | "suygmi" | "suyigm" | "suyimg" | "suymgi" | "suymig" | "sygimu" | "sygium" | "sygmiu" | "sygmui" | "syguim" | "sygumi" | "syigmu" | "syigum" | "syimgu" | "syimug" | "syiugm" | "syiumg" | "symgiu" | "symgui" | "symigu" | "symiug" | "symugi" | "symuig" | "syugim" | "syugmi" | "syuigm" | "syuimg" | "syumgi" | "syumig" | "ygims" | "ygism" | "ygmis" | "ygmsi" | "ygsim" | "ygsmi" | "yigms" | "yigsm" | "yimgs" | "yimsg" | "yisgm" | "yismg" | "ymgis" | "ymgsi" | "ymigs" | "ymisg" | "ymsgi" | "ymsig" | "ysgim" | "ysgmi" | "ysigm" | "ysimg" | "ysmgi" | "ysmig" | "ugims" | "ugimsy" | "ugimys" | "ugism" | "ugismy" | "ugisym" | "ugiyms" | "ugiysm" | "ugmis" | "ugmisy" | "ugmiys" | "ugmsi" | "ugmsiy" | "ugmsyi" | "ugmyis" | "ugmysi" | "ugsim" | "ugsimy" | "ugsiym" | "ugsmi" | "ugsmiy" | "ugsmyi" | "ugsyim" | "ugsymi" | "ugyims" | "ugyism" | "ugymis" | "ugymsi" | "ugysim" | "ugysmi" | "uigms" | "uigmsy" | "uigmys" | "uigsm" | "uigsmy" | "uigsym" | "uigyms" | "uigysm" | "uimgs" | "uimgsy" | "uimgys" | "uimsg" | "uimsgy" | "uimsyg" | "uimygs" | "uimysg" | "uisgm" | "uisgmy" | "uisgym" | "uismg" | "uismgy" | "uismyg" | "uisygm" | "uisymg" | "uiygms" | "uiygsm" | "uiymgs" | "uiymsg" | "uiysgm" | "uiysmg" | "umgis" | "umgisy" | "umgiys" | "umgsi" | "umgsiy" | "umgsyi" | "umgyis" | "umgysi" | "umigs" | "umigsy" | "umigys" | "umisg" | "umisgy" | "umisyg" | "umiygs" | "umiysg" | "umsgi" | "umsgiy" | "umsgyi" | "umsig" | "umsigy" | "umsiyg" | "umsygi" | "umsyig" | "umygis" | "umygsi" | "umyigs" | "umyisg" | "umysgi" | "umysig" | "usgim" | "usgimy" | "usgiym" | "usgmi" | "usgmiy" | "usgmyi" | "usgyim" | "usgymi" | "usigm" | "usigmy" | "usigym" | "usimg" | "usimgy" | "usimyg" | "usiygm" | "usiymg" | "usmgi" | "usmgiy" | "usmgyi" | "usmig" | "usmigy" | "usmiyg" | "usmygi" | "usmyig" | "usygim" | "usygmi" | "usyigm" | "usyimg" | "usymgi" | "usymig" | "uygims" | "uygism" | "uygmis" | "uygmsi" | "uygsim" | "uygsmi" | "uyigms" | "uyigsm" | "uyimgs" | "uyimsg" | "uyisgm" | "uyismg" | "uymgis" | "uymgsi" | "uymigs" | "uymisg" | "uymsgi" | "uymsig" | "uysgim" | "uysgmi" | "uysigm" | "uysimg" | "uysmgi" | "uysmig" | "ygimsu" | "ygimus" | "ygismu" | "ygisum" | "ygiums" | "ygiusm" | "ygmisu" | "ygmius" | "ygmsiu" | "ygmsui" | "ygmuis" | "ygmusi" | "ygsimu" | "ygsium" | "ygsmiu" | "ygsmui" | "ygsuim" | "ygsumi" | "yguims" | "yguism" | "ygumis" | "ygumsi" | "ygusim" | "ygusmi" | "yigmsu" | "yigmus" | "yigsmu" | "yigsum" | "yigums" | "yigusm" | "yimgsu" | "yimgus" | "yimsgu" | "yimsug" | "yimugs" | "yimusg" | "yisgmu" | "yisgum" | "yismgu" | "yismug" | "yisugm" | "yisumg" | "yiugms" | "yiugsm" | "yiumgs" | "yiumsg" | "yiusgm" | "yiusmg" | "ymgisu" | "ymgius" | "ymgsiu" | "ymgsui" | "ymguis" | "ymgusi" | "ymigsu" | "ymigus" | "ymisgu" | "ymisug" | "ymiugs" | "ymiusg" | "ymsgiu" | "ymsgui" | "ymsigu" | "ymsiug" | "ymsugi" | "ymsuig" | "ymugis" | "ymugsi" | "ymuigs" | "ymuisg" | "ymusgi" | "ymusig" | "ysgimu" | "ysgium" | "ysgmiu" | "ysgmui" | "ysguim" | "ysgumi" | "ysigmu" | "ysigum" | "ysimgu" | "ysimug" | "ysiugm" | "ysiumg" | "ysmgiu" | "ysmgui" | "ysmigu" | "ysmiug" | "ysmugi" | "ysmuig" | "ysugim" | "ysugmi" | "ysuigm" | "ysuimg" | "ysumgi" | "ysumig" | "yugims" | "yugism" | "yugmis" | "yugmsi" | "yugsim" | "yugsmi" | "yuigms" | "yuigsm" | "yuimgs" | "yuimsg" | "yuisgm" | "yuismg" | "yumgis" | "yumgsi" | "yumigs" | "yumisg" | "yumsgi" | "yumsig" | "yusgim" | "yusgmi" | "yusigm" | "yusimg" | "yusmgi" | "yusmig") | undefined) => RegExpTsDsl;
2162
2164
  /** Creates a return statement. */
2163
- return: (expr?: ReturnExpr | undefined) => ReturnTsDsl;
2165
+ return: (expr?: any) => ReturnTsDsl;
2164
2166
  /** Creates a setter method declaration. */
2165
- setter: (name: _hey_api_codegen_core0.NodeName, fn?: ((s: SetterTsDsl) => void) | undefined) => SetterTsDsl;
2167
+ setter: (name: NodeName, fn?: ((s: SetterTsDsl) => void) | undefined) => SetterTsDsl;
2166
2168
  /** Wraps an expression or statement-like value into a `StmtTsDsl`. */
2167
2169
  stmt: (inner: ts.Expression | ts.Statement | TsDsl<any>) => StmtTsDsl;
2168
2170
  /** Creates a template literal expression. */
2169
- template: (value?: TemplatePart | undefined) => TemplateTsDsl;
2171
+ template: (value?: any) => TemplateTsDsl;
2170
2172
  /** Creates a ternary conditional expression (if ? then : else). */
2171
2173
  ternary: (condition?: string | ts.Expression | TsDsl<ts.Expression> | undefined) => TernaryTsDsl;
2172
2174
  /** Creates a throw statement. */
@@ -2176,15 +2178,15 @@ declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_c
2176
2178
  /** Creates a try/catch/finally statement. */
2177
2179
  try: (...args: ConstructorParameters<typeof TryTsDsl>) => TryTsDsl;
2178
2180
  /** Creates a basic type reference or type expression (e.g. Foo or Foo<T>). */
2179
- type: ((name: _hey_api_codegen_core0.NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl) & {
2181
+ type: ((name: NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl) & {
2180
2182
  /** Creates a type alias declaration (e.g. `type Foo = Bar`). */
2181
- alias: (name: _hey_api_codegen_core0.NodeName, fn?: ((t: TypeAliasTsDsl) => void) | undefined) => TypeAliasTsDsl;
2183
+ alias: (name: NodeName, fn?: ((t: TypeAliasTsDsl) => void) | undefined) => TypeAliasTsDsl;
2182
2184
  /** Creates an intersection type (e.g. `A & B`). */
2183
2185
  and: (...args: ConstructorParameters<typeof TypeAndTsDsl>) => TypeAndTsDsl;
2184
2186
  /** Creates a qualified type reference (e.g. Foo.Bar). */
2185
- attr: (right: _hey_api_codegen_core0.NodeName | ts.Identifier) => TypeAttrTsDsl;
2187
+ attr: (right: any) => TypeAttrTsDsl;
2186
2188
  /** Creates a basic type reference or type expression (e.g. Foo or Foo<T>). */
2187
- expr: (name: _hey_api_codegen_core0.NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl;
2189
+ expr: (name: NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl;
2188
2190
  /** Converts a runtime value into a corresponding type expression node. */
2189
2191
  fromValue: (input: unknown) => TsDsl<ts.TypeNode>;
2190
2192
  /** Creates a function type node (e.g. `(a: string) => number`). */
@@ -2192,9 +2194,9 @@ declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_c
2192
2194
  /** Creates an indexed-access type (e.g. `Foo<T>[K]`). */
2193
2195
  idx: (base: string | ts.TypeNode | TsDsl<ts.TypeNode>, index: string | number | ts.TypeNode | TsDsl<ts.TypeNode>) => TypeIdxTsDsl;
2194
2196
  /** Creates a literal type node (e.g. 'foo', 42, or true). */
2195
- literal: (value: string | number | boolean | null) => TypeLiteralTsDsl;
2197
+ literal: (value: LiteralValue) => TypeLiteralTsDsl;
2196
2198
  /** Creates a mapped type (e.g. `{ [K in keyof T]: U }`). */
2197
- mapped: (name?: _hey_api_codegen_core0.NodeName | undefined) => TypeMappedTsDsl;
2199
+ mapped: (name?: any) => TypeMappedTsDsl;
2198
2200
  /** Creates a type literal node (e.g. { foo: string }). */
2199
2201
  object: () => TypeObjectTsDsl;
2200
2202
  /** Creates a type operator node (e.g. `readonly T`, `keyof T`, `unique T`). */
@@ -2202,7 +2204,7 @@ declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_c
2202
2204
  /** Represents a union type (e.g. `A | B | C`). */
2203
2205
  or: (...args: ConstructorParameters<typeof TypeOrTsDsl>) => TypeOrTsDsl;
2204
2206
  /** Creates a type parameter (e.g. `<T>`). */
2205
- param: (name?: _hey_api_codegen_core0.NodeName | undefined, fn?: ((name: TypeParamTsDsl) => void) | undefined) => TypeParamTsDsl;
2207
+ param: (name?: any, fn?: ((name: TypeParamTsDsl) => void) | undefined) => TypeParamTsDsl;
2206
2208
  /** Creates a type query node (e.g. `typeof Foo`). */
2207
2209
  query: (expr: TypeQueryExpr) => TypeQueryTsDsl;
2208
2210
  /** Builds a TypeScript template literal *type* (e.g. `${Foo}-${Bar}` as a type). */
@@ -2213,7 +2215,7 @@ declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_c
2213
2215
  /** Creates a `typeof` expression (e.g. `typeof value`). */
2214
2216
  typeofExpr: (expr: TypeOfExpr) => TypeOfExprTsDsl;
2215
2217
  /** Creates a variable declaration (`var`). */
2216
- var: (name?: _hey_api_codegen_core0.NodeName | undefined) => VarTsDsl;
2218
+ var: (name?: any) => VarTsDsl;
2217
2219
  };
2218
2220
  type DollarTsDsl = {
2219
2221
  /**
@@ -2266,7 +2268,7 @@ type IApi$4 = {
2266
2268
  };
2267
2269
  //#endregion
2268
2270
  //#region src/plugins/@faker-js/faker/types.d.ts
2269
- type UserConfig$23 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.UserExports & {
2271
+ type UserConfig$24 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.UserExports & {
2270
2272
  /**
2271
2273
  * Casing convention for generated names.
2272
2274
  *
@@ -2313,7 +2315,7 @@ type UserConfig$23 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$
2313
2315
  */
2314
2316
  seed?: number;
2315
2317
  };
2316
- type Config$20 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.Exports & {
2318
+ type Config$21 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.Exports & {
2317
2319
  /**
2318
2320
  * Casing convention for generated names.
2319
2321
  */
@@ -2332,7 +2334,7 @@ type Config$20 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.Ex
2332
2334
  */
2333
2335
  seed?: number;
2334
2336
  };
2335
- type FakerJsFakerPlugin = DefinePlugin$1<UserConfig$23, Config$20, IApi$4>;
2337
+ type FakerJsFakerPlugin = DefinePlugin$1<UserConfig$24, Config$21, IApi$4>;
2336
2338
  //#endregion
2337
2339
  //#region src/plugins/@hey-api/client-core/bundle/auth.d.ts
2338
2340
  type AuthToken = string | undefined;
@@ -2366,7 +2368,7 @@ type ObjectStyle = 'form' | 'deepObject';
2366
2368
  //#endregion
2367
2369
  //#region src/plugins/@hey-api/client-core/bundle/bodySerializer.d.ts
2368
2370
  type QuerySerializer$1 = (query: Record<string, unknown>) => string;
2369
- type BodySerializer = (body: any) => any;
2371
+ type BodySerializer = (body: unknown) => unknown;
2370
2372
  type QuerySerializerOptionsObject = {
2371
2373
  allowReserved?: boolean;
2372
2374
  array?: Partial<SerializerOptions<ArrayStyle>>;
@@ -2382,20 +2384,20 @@ type QuerySerializerOptions = QuerySerializerOptionsObject & {
2382
2384
  //#endregion
2383
2385
  //#region src/plugins/@hey-api/client-core/bundle/types.d.ts
2384
2386
  type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
2385
- type Client$7<RequestFn$6 = never, Config$22 = unknown, MethodFn$6 = never, BuildUrlFn$6 = never, SseFn$6 = never> = {
2387
+ type Client$7<RequestFn$6 = never, Config$23 = unknown, MethodFn$6 = never, BuildUrlFn$6 = never, SseFn$6 = never> = {
2386
2388
  /**
2387
2389
  * Returns the final request URL.
2388
2390
  */
2389
2391
  buildUrl: BuildUrlFn$6;
2390
- getConfig: () => Config$22;
2392
+ getConfig: () => Config$23;
2391
2393
  request: RequestFn$6;
2392
- setConfig: (config: Config$22) => Config$22;
2394
+ setConfig: (config: Config$23) => Config$23;
2393
2395
  } & { [K in HttpMethod]: MethodFn$6 } & ([SseFn$6] extends [never] ? {
2394
2396
  sse?: never;
2395
2397
  } : {
2396
2398
  sse: { [K in HttpMethod]: SseFn$6 };
2397
2399
  });
2398
- interface Config$19 {
2400
+ interface Config$20 {
2399
2401
  /**
2400
2402
  * Auth token or a function returning auth token. The resolved value will be
2401
2403
  * added to the request payload as defined by its `security` array.
@@ -2450,7 +2452,7 @@ interface Config$19 {
2450
2452
  }
2451
2453
  //#endregion
2452
2454
  //#region src/plugins/@hey-api/client-core/bundle/serverSentEvents.d.ts
2453
- type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$19, 'method' | 'responseTransformer' | 'responseValidator'> & {
2455
+ type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$20, 'method' | 'responseTransformer' | 'responseValidator'> & {
2454
2456
  /**
2455
2457
  * Fetch API implementation. You can use this option to provide a custom
2456
2458
  * fetch instance.
@@ -2541,7 +2543,7 @@ interface Middleware$3<Req, Res, Err, Options$6> {
2541
2543
  //#endregion
2542
2544
  //#region src/plugins/@hey-api/client-angular/bundle/types.d.ts
2543
2545
  type ResponseStyle$2 = 'data' | 'fields';
2544
- interface Config$18<T extends ClientOptions$5 = ClientOptions$5> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Omit<Config$19, 'headers'> {
2546
+ interface Config$19<T extends ClientOptions$5 = ClientOptions$5> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Omit<Config$20, 'headers'> {
2545
2547
  /**
2546
2548
  * Base URL for all requests made by this client.
2547
2549
  */
@@ -2570,7 +2572,7 @@ interface Config$18<T extends ClientOptions$5 = ClientOptions$5> extends Omit<Re
2570
2572
  */
2571
2573
  throwOnError?: T['throwOnError'];
2572
2574
  }
2573
- interface RequestOptions$5<TData = unknown, TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$18<{
2575
+ interface RequestOptions$5<TData = unknown, TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$19<{
2574
2576
  responseStyle: TResponseStyle;
2575
2577
  throwOnError: ThrowOnError;
2576
2578
  }>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
@@ -2627,7 +2629,7 @@ type BuildUrlFn$5 = <TData extends {
2627
2629
  query?: Record<string, unknown>;
2628
2630
  url: string;
2629
2631
  }>(options: TData & Options$5<TData>) => string;
2630
- type Client = Client$7<RequestFn$5, Config$18, MethodFn$5, BuildUrlFn$5, SseFn$5> & {
2632
+ type Client = Client$7<RequestFn$5, Config$19, MethodFn$5, BuildUrlFn$5, SseFn$5> & {
2631
2633
  interceptors: Middleware$3<HttpRequest<unknown>, HttpResponse<unknown>, unknown, ResolvedRequestOptions$3>;
2632
2634
  requestOptions: RequestOptionsFn;
2633
2635
  };
@@ -2642,7 +2644,7 @@ type OmitKeys$5<T, K$1> = Pick<T, Exclude<keyof T, K$1>>;
2642
2644
  type Options$5<TData extends TDataShape$5 = TDataShape$5, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$2 = 'fields'> = OmitKeys$5<RequestOptions$5<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
2643
2645
  //#endregion
2644
2646
  //#region src/plugins/@hey-api/client-axios/bundle/types.d.ts
2645
- interface Config$17<T extends ClientOptions$4 = ClientOptions$4> extends Omit<CreateAxiosDefaults, 'auth' | 'baseURL' | 'headers' | 'method'>, Config$19 {
2647
+ interface Config$18<T extends ClientOptions$4 = ClientOptions$4> extends Omit<CreateAxiosDefaults, 'auth' | 'baseURL' | 'headers' | 'method'>, Config$20 {
2646
2648
  /**
2647
2649
  * Axios implementation. You can use this option to provide either an
2648
2650
  * `AxiosStatic` or an `AxiosInstance`.
@@ -2668,7 +2670,7 @@ interface Config$17<T extends ClientOptions$4 = ClientOptions$4> extends Omit<Cr
2668
2670
  */
2669
2671
  throwOnError?: T['throwOnError'];
2670
2672
  }
2671
- interface RequestOptions$4<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$17<{
2673
+ interface RequestOptions$4<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$18<{
2672
2674
  throwOnError: ThrowOnError;
2673
2675
  }>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
2674
2676
  /**
@@ -2704,7 +2706,7 @@ type BuildUrlFn$4 = <TData extends {
2704
2706
  query?: Record<string, unknown>;
2705
2707
  url: string;
2706
2708
  }>(options: TData & Options$4<TData>) => string;
2707
- type Client$1 = Client$7<RequestFn$4, Config$17, MethodFn$4, BuildUrlFn$4, SseFn$4> & {
2709
+ type Client$1 = Client$7<RequestFn$4, Config$18, MethodFn$4, BuildUrlFn$4, SseFn$4> & {
2708
2710
  instance: AxiosInstance;
2709
2711
  };
2710
2712
  interface TDataShape$4 {
@@ -2718,7 +2720,7 @@ type OmitKeys$4<T, K$1> = Pick<T, Exclude<keyof T, K$1>>;
2718
2720
  type Options$4<TData extends TDataShape$4 = TDataShape$4, ThrowOnError extends boolean = boolean, TResponse = unknown> = OmitKeys$4<RequestOptions$4<TResponse, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
2719
2721
  //#endregion
2720
2722
  //#region src/plugins/@hey-api/client-axios/types.d.ts
2721
- type UserConfig$22 = Plugin$1.Name<'@hey-api/client-axios'> & Client$2.Config & {
2723
+ type UserConfig$23 = Plugin$1.Name<'@hey-api/client-axios'> & Client$2.Config & {
2722
2724
  /**
2723
2725
  * Throw an error instead of returning it in the response?
2724
2726
  *
@@ -2726,7 +2728,7 @@ type UserConfig$22 = Plugin$1.Name<'@hey-api/client-axios'> & Client$2.Config &
2726
2728
  */
2727
2729
  throwOnError?: boolean;
2728
2730
  };
2729
- type HeyApiClientAxiosPlugin = DefinePlugin$1<UserConfig$22, UserConfig$22>;
2731
+ type HeyApiClientAxiosPlugin = DefinePlugin$1<UserConfig$23, UserConfig$23>;
2730
2732
  //#endregion
2731
2733
  //#region src/plugins/@hey-api/client-fetch/bundle/utils.d.ts
2732
2734
  type ErrInterceptor$2<Err, Res, Req, Options$6> = (error: Err, response: Res, request: Req, options: Options$6) => Err | Promise<Err>;
@@ -2749,7 +2751,7 @@ interface Middleware$2<Req, Res, Err, Options$6> {
2749
2751
  //#endregion
2750
2752
  //#region src/plugins/@hey-api/client-fetch/bundle/types.d.ts
2751
2753
  type ResponseStyle$1 = 'data' | 'fields';
2752
- interface Config$16<T extends ClientOptions$3 = ClientOptions$3> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$19 {
2754
+ interface Config$17<T extends ClientOptions$3 = ClientOptions$3> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$20 {
2753
2755
  /**
2754
2756
  * Base URL for all requests made by this client.
2755
2757
  */
@@ -2790,7 +2792,7 @@ interface Config$16<T extends ClientOptions$3 = ClientOptions$3> extends Omit<Re
2790
2792
  */
2791
2793
  throwOnError?: T['throwOnError'];
2792
2794
  }
2793
- interface RequestOptions$3<TData = unknown, TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$16<{
2795
+ interface RequestOptions$3<TData = unknown, TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$17<{
2794
2796
  responseStyle: TResponseStyle;
2795
2797
  throwOnError: ThrowOnError;
2796
2798
  }>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
@@ -2839,7 +2841,7 @@ type BuildUrlFn$3 = <TData extends {
2839
2841
  query?: Record<string, unknown>;
2840
2842
  url: string;
2841
2843
  }>(options: TData & Options$3<TData>) => string;
2842
- type Client$3 = Client$7<RequestFn$3, Config$16, MethodFn$3, BuildUrlFn$3, SseFn$3> & {
2844
+ type Client$3 = Client$7<RequestFn$3, Config$17, MethodFn$3, BuildUrlFn$3, SseFn$3> & {
2843
2845
  interceptors: Middleware$2<Request, Response, unknown, ResolvedRequestOptions$2>;
2844
2846
  };
2845
2847
  interface TDataShape$3 {
@@ -2853,7 +2855,7 @@ type OmitKeys$3<T, K$1> = Pick<T, Exclude<keyof T, K$1>>;
2853
2855
  type Options$3<TData extends TDataShape$3 = TDataShape$3, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$1 = 'fields'> = OmitKeys$3<RequestOptions$3<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
2854
2856
  //#endregion
2855
2857
  //#region src/plugins/@hey-api/client-fetch/types.d.ts
2856
- type UserConfig$21 = Plugin$1.Name<'@hey-api/client-fetch'> & Client$2.Config & {
2858
+ type UserConfig$22 = Plugin$1.Name<'@hey-api/client-fetch'> & Client$2.Config & {
2857
2859
  /**
2858
2860
  * Throw an error instead of returning it in the response?
2859
2861
  *
@@ -2861,7 +2863,7 @@ type UserConfig$21 = Plugin$1.Name<'@hey-api/client-fetch'> & Client$2.Config &
2861
2863
  */
2862
2864
  throwOnError?: boolean;
2863
2865
  };
2864
- type HeyApiClientFetchPlugin = DefinePlugin$1<UserConfig$21, UserConfig$21>;
2866
+ type HeyApiClientFetchPlugin = DefinePlugin$1<UserConfig$22, UserConfig$22>;
2865
2867
  //#endregion
2866
2868
  //#region src/plugins/@hey-api/client-next/bundle/utils.d.ts
2867
2869
  type ErrInterceptor$1<Err, Res, Options$6> = (error: Err, response: Res, options: Options$6) => Err | Promise<Err>;
@@ -2883,7 +2885,7 @@ interface Middleware$1<Res, Err, Options$6> {
2883
2885
  }
2884
2886
  //#endregion
2885
2887
  //#region src/plugins/@hey-api/client-next/bundle/types.d.ts
2886
- interface Config$15<T extends ClientOptions$2 = ClientOptions$2> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$19 {
2888
+ interface Config$16<T extends ClientOptions$2 = ClientOptions$2> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$20 {
2887
2889
  /**
2888
2890
  * Base URL for all requests made by this client.
2889
2891
  */
@@ -2911,7 +2913,7 @@ interface Config$15<T extends ClientOptions$2 = ClientOptions$2> extends Omit<Re
2911
2913
  */
2912
2914
  throwOnError?: T['throwOnError'];
2913
2915
  }
2914
- interface RequestOptions$2<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$15<{
2916
+ interface RequestOptions$2<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$16<{
2915
2917
  throwOnError: ThrowOnError;
2916
2918
  }>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
2917
2919
  /**
@@ -2956,7 +2958,7 @@ type BuildUrlFn$2 = <TData extends {
2956
2958
  query?: Record<string, unknown>;
2957
2959
  url: string;
2958
2960
  }>(options: TData & Options$2<TData>) => string;
2959
- type Client$4 = Client$7<RequestFn$2, Config$15, MethodFn$2, BuildUrlFn$2, SseFn$2> & {
2961
+ type Client$4 = Client$7<RequestFn$2, Config$16, MethodFn$2, BuildUrlFn$2, SseFn$2> & {
2960
2962
  interceptors: Middleware$1<Response, unknown, ResolvedRequestOptions$1>;
2961
2963
  };
2962
2964
  interface TDataShape$2 {
@@ -2970,7 +2972,7 @@ type OmitKeys$2<T, K$1> = Pick<T, Exclude<keyof T, K$1>>;
2970
2972
  type Options$2<TData extends TDataShape$2 = TDataShape$2, ThrowOnError extends boolean = boolean, TResponse = unknown> = OmitKeys$2<RequestOptions$2<TResponse, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
2971
2973
  //#endregion
2972
2974
  //#region src/plugins/@hey-api/client-next/types.d.ts
2973
- type UserConfig$20 = Plugin$1.Name<'@hey-api/client-next'> & Client$2.Config & {
2975
+ type UserConfig$21 = Plugin$1.Name<'@hey-api/client-next'> & Client$2.Config & {
2974
2976
  /**
2975
2977
  * Throw an error instead of returning it in the response?
2976
2978
  *
@@ -2978,13 +2980,13 @@ type UserConfig$20 = Plugin$1.Name<'@hey-api/client-next'> & Client$2.Config & {
2978
2980
  */
2979
2981
  throwOnError?: boolean;
2980
2982
  };
2981
- type HeyApiClientNextPlugin = DefinePlugin$1<UserConfig$20, UserConfig$20>;
2983
+ type HeyApiClientNextPlugin = DefinePlugin$1<UserConfig$21, UserConfig$21>;
2982
2984
  //#endregion
2983
2985
  //#region src/plugins/@hey-api/client-nuxt/bundle/types.d.ts
2984
2986
  type QuerySerializer = (query: Parameters<Client$5['buildUrl']>[0]['query']) => string;
2985
2987
  type WithRefs<TData> = { [K in keyof TData]: NonNullable<TData[K]> extends object ? WithRefs<NonNullable<TData[K]>> | Ref$1<NonNullable<TData[K]>> | Extract<TData[K], null> : NonNullable<TData[K]> | Ref$1<NonNullable<TData[K]>> | Extract<TData[K], null> };
2986
2988
  type KeysOf<T> = Array<T extends T ? (keyof T extends string ? keyof T : never) : never>;
2987
- interface Config$14<T extends ClientOptions$1 = ClientOptions$1> extends Omit<FetchOptions$1<unknown>, 'baseURL' | 'body' | 'headers' | 'method' | 'query'>, WithRefs<Pick<FetchOptions$1<unknown>, 'query'>>, Omit<Config$19, 'querySerializer'> {
2989
+ interface Config$15<T extends ClientOptions$1 = ClientOptions$1> extends Omit<FetchOptions$1<unknown>, 'baseURL' | 'body' | 'headers' | 'method' | 'query'>, WithRefs<Pick<FetchOptions$1<unknown>, 'query'>>, Omit<Config$20, 'querySerializer'> {
2988
2990
  /**
2989
2991
  * Base URL for all requests made by this client.
2990
2992
  */
@@ -2998,7 +3000,7 @@ interface Config$14<T extends ClientOptions$1 = ClientOptions$1> extends Omit<Fe
2998
3000
  */
2999
3001
  querySerializer?: QuerySerializer | QuerySerializerOptions;
3000
3002
  }
3001
- interface RequestOptions$1<TComposable extends Composable = '$fetch', ResT = unknown, DefaultT = undefined, Url extends string = string> extends Config$14, WithRefs<{
3003
+ interface RequestOptions$1<TComposable extends Composable = '$fetch', ResT = unknown, DefaultT = undefined, Url extends string = string> extends Config$15, WithRefs<{
3002
3004
  path?: FetchOptions$1<unknown>['query'];
3003
3005
  query?: FetchOptions$1<unknown>['query'];
3004
3006
  }>, Pick<ServerSentEventsOptions<ResT>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
@@ -3043,15 +3045,15 @@ interface TDataShape$1 {
3043
3045
  }
3044
3046
  type BuildUrlOptions<TData extends Omit<TDataShape$1, 'headers'> = Omit<TDataShape$1, 'headers'>> = Pick<WithRefs<TData>, 'path' | 'query'> & Pick<TData, 'url'> & Pick<Options$1<'$fetch', TData>, 'baseURL' | 'querySerializer'>;
3045
3047
  type BuildUrlFn$1 = <TData extends Omit<TDataShape$1, 'headers'>>(options: BuildUrlOptions<TData>) => string;
3046
- type Client$5 = Client$7<RequestFn$1, Config$14, MethodFn$1, BuildUrlFn$1, SseFn$1>;
3048
+ type Client$5 = Client$7<RequestFn$1, Config$15, MethodFn$1, BuildUrlFn$1, SseFn$1>;
3047
3049
  type OmitKeys$1<T, K$1> = Pick<T, Exclude<keyof T, K$1>>;
3048
3050
  type Options$1<TComposable extends Composable = '$fetch', TData extends TDataShape$1 = TDataShape$1, ResT = unknown, DefaultT = undefined> = OmitKeys$1<RequestOptions$1<TComposable, ResT, DefaultT>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : WithRefs<Omit<TData, 'url'>>);
3049
3051
  type FetchOptions$1<TData> = Omit<UseFetchOptions<TData, TData>, keyof AsyncDataOptions<TData>>;
3050
3052
  type Composable = '$fetch' | 'useAsyncData' | 'useFetch' | 'useLazyAsyncData' | 'useLazyFetch';
3051
3053
  //#endregion
3052
3054
  //#region src/plugins/@hey-api/client-nuxt/types.d.ts
3053
- type UserConfig$19 = Plugin$1.Name<'@hey-api/client-nuxt'> & Client$2.Config;
3054
- type HeyApiClientNuxtPlugin = DefinePlugin$1<UserConfig$19, UserConfig$19>;
3055
+ type UserConfig$20 = Plugin$1.Name<'@hey-api/client-nuxt'> & Client$2.Config;
3056
+ type HeyApiClientNuxtPlugin = DefinePlugin$1<UserConfig$20, UserConfig$20>;
3055
3057
  //#endregion
3056
3058
  //#region src/plugins/@hey-api/client-ofetch/bundle/utils.d.ts
3057
3059
  type ErrInterceptor<Err, Res, Req, Options$6> = (error: Err, response: Res, request: Req, options: Options$6) => Err | Promise<Err>;
@@ -3074,7 +3076,7 @@ interface Middleware<Req, Res, Err, Options$6> {
3074
3076
  //#endregion
3075
3077
  //#region src/plugins/@hey-api/client-ofetch/bundle/types.d.ts
3076
3078
  type ResponseStyle = 'data' | 'fields';
3077
- interface Config$13<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$19 {
3079
+ interface Config$14<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$20 {
3078
3080
  /**
3079
3081
  * HTTP(S) agent configuration (Node.js only). Passed through to ofetch.
3080
3082
  */
@@ -3175,7 +3177,7 @@ interface Config$13<T extends ClientOptions = ClientOptions> extends Omit<Reques
3175
3177
  */
3176
3178
  timeout?: number;
3177
3179
  }
3178
- interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$13<{
3180
+ interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$14<{
3179
3181
  responseStyle: TResponseStyle;
3180
3182
  throwOnError: ThrowOnError;
3181
3183
  }>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
@@ -3224,7 +3226,7 @@ type BuildUrlFn = <TData extends {
3224
3226
  query?: Record<string, unknown>;
3225
3227
  url: string;
3226
3228
  }>(options: TData & Options<TData>) => string;
3227
- type Client$6 = Client$7<RequestFn, Config$13, MethodFn, BuildUrlFn, SseFn> & {
3229
+ type Client$6 = Client$7<RequestFn, Config$14, MethodFn, BuildUrlFn, SseFn> & {
3228
3230
  interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
3229
3231
  };
3230
3232
  interface TDataShape {
@@ -3238,7 +3240,7 @@ type OmitKeys<T, K$1> = Pick<T, Exclude<keyof T, K$1>>;
3238
3240
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
3239
3241
  //#endregion
3240
3242
  //#region src/plugins/@hey-api/client-ofetch/types.d.ts
3241
- type UserConfig$18 = Plugin$1.Name<'@hey-api/client-ofetch'> & Client$2.Config & {
3243
+ type UserConfig$19 = Plugin$1.Name<'@hey-api/client-ofetch'> & Client$2.Config & {
3242
3244
  /**
3243
3245
  * Throw an error instead of returning it in the response?
3244
3246
  *
@@ -3246,7 +3248,7 @@ type UserConfig$18 = Plugin$1.Name<'@hey-api/client-ofetch'> & Client$2.Config &
3246
3248
  */
3247
3249
  throwOnError?: boolean;
3248
3250
  };
3249
- type HeyApiClientOfetchPlugin = DefinePlugin$1<UserConfig$18, UserConfig$18>;
3251
+ type HeyApiClientOfetchPlugin = DefinePlugin$1<UserConfig$19, UserConfig$19>;
3250
3252
  //#endregion
3251
3253
  //#region src/plugins/@hey-api/client-core/types.d.ts
3252
3254
  interface PluginHandler {
@@ -3309,7 +3311,7 @@ declare namespace Client$2 {
3309
3311
  }
3310
3312
  //#endregion
3311
3313
  //#region src/plugins/@hey-api/client-angular/types.d.ts
3312
- type UserConfig$17 = Plugin$1.Name<'@hey-api/client-angular'> & Client$2.Config & {
3314
+ type UserConfig$18 = Plugin$1.Name<'@hey-api/client-angular'> & Client$2.Config & {
3313
3315
  /**
3314
3316
  * Throw an error instead of returning it in the response?
3315
3317
  *
@@ -3317,10 +3319,10 @@ type UserConfig$17 = Plugin$1.Name<'@hey-api/client-angular'> & Client$2.Config
3317
3319
  */
3318
3320
  throwOnError?: boolean;
3319
3321
  };
3320
- type HeyApiClientAngularPlugin = DefinePlugin$1<UserConfig$17, UserConfig$17>;
3322
+ type HeyApiClientAngularPlugin = DefinePlugin$1<UserConfig$18, UserConfig$18>;
3321
3323
  //#endregion
3322
3324
  //#region src/plugins/@hey-api/client-ky/types.d.ts
3323
- type UserConfig$16 = Plugin$1.Name<'@hey-api/client-ky'> & Client$2.Config & {
3325
+ type UserConfig$17 = Plugin$1.Name<'@hey-api/client-ky'> & Client$2.Config & {
3324
3326
  /**
3325
3327
  * Throw an error instead of returning it in the response?
3326
3328
  *
@@ -3328,10 +3330,10 @@ type UserConfig$16 = Plugin$1.Name<'@hey-api/client-ky'> & Client$2.Config & {
3328
3330
  */
3329
3331
  throwOnError?: boolean;
3330
3332
  };
3331
- type HeyApiClientKyPlugin = DefinePlugin$1<UserConfig$16, UserConfig$16>;
3333
+ type HeyApiClientKyPlugin = DefinePlugin$1<UserConfig$17, UserConfig$17>;
3332
3334
  //#endregion
3333
3335
  //#region src/plugins/@hey-api/schemas/types.d.ts
3334
- type UserConfig$15 = Plugin$1.Name<'@hey-api/schemas'> & Plugin$1.Hooks & Plugin$1.UserExports & {
3336
+ type UserConfig$16 = Plugin$1.Name<'@hey-api/schemas'> & Plugin$1.Hooks & Plugin$1.UserExports & {
3335
3337
  /**
3336
3338
  * Customise the schema name. By default, `{{name}}Schema` is used. `name` is a
3337
3339
  * valid JavaScript/TypeScript identifier, e.g. if your schema name is
@@ -3349,7 +3351,7 @@ type UserConfig$15 = Plugin$1.Name<'@hey-api/schemas'> & Plugin$1.Hooks & Plugin
3349
3351
  */
3350
3352
  type?: 'form' | 'json';
3351
3353
  };
3352
- type HeyApiSchemasPlugin = DefinePlugin$1<UserConfig$15, UserConfig$15>;
3354
+ type HeyApiSchemasPlugin = DefinePlugin$1<UserConfig$16, UserConfig$16>;
3353
3355
  //#endregion
3354
3356
  //#region src/plugins/types.d.ts
3355
3357
  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';
@@ -3585,7 +3587,7 @@ interface OperationsConfig {
3585
3587
  }
3586
3588
  //#endregion
3587
3589
  //#region src/plugins/@hey-api/sdk/types.d.ts
3588
- type UserConfig$14 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
3590
+ type UserConfig$15 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
3589
3591
  /**
3590
3592
  * Should the generated functions contain auth mechanisms? You may want to
3591
3593
  * disable this option if you're handling auth yourself or defining it
@@ -3761,7 +3763,7 @@ type UserConfig$14 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.U
3761
3763
  */
3762
3764
  response?: 'body' | 'response';
3763
3765
  };
3764
- type Config$12 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
3766
+ type Config$13 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
3765
3767
  /**
3766
3768
  * Should the generated functions contain auth mechanisms? You may want to
3767
3769
  * disable this option if you're handling auth yourself or defining it
@@ -3849,7 +3851,7 @@ type Config$12 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.Comme
3849
3851
  */
3850
3852
  response: 'body' | 'response';
3851
3853
  };
3852
- type HeyApiSdkPlugin = DefinePlugin$1<UserConfig$14, Config$12>;
3854
+ type HeyApiSdkPlugin = DefinePlugin$1<UserConfig$15, Config$13>;
3853
3855
  //#endregion
3854
3856
  //#region src/plugins/@hey-api/transformers/expressions.d.ts
3855
3857
  type ExpressionTransformer = ({
@@ -3857,7 +3859,7 @@ type ExpressionTransformer = ({
3857
3859
  dataExpression,
3858
3860
  schema
3859
3861
  }: {
3860
- config: Omit<UserConfig$13, 'name'>;
3862
+ config: Omit<UserConfig$14, 'name'>;
3861
3863
  dataExpression?: ts.Expression | ReturnType<typeof $.expr | typeof $.attr> | string;
3862
3864
  schema: IR$1.SchemaObject;
3863
3865
  }) => Array<ReturnType<typeof $.fromValue>> | undefined;
@@ -3872,7 +3874,7 @@ type TypeTransformer = ({
3872
3874
  }: {
3873
3875
  schema: IR$1.SchemaObject;
3874
3876
  }) => ts.TypeNode | undefined;
3875
- type UserConfig$13 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugin$1.UserExports & {
3877
+ type UserConfig$14 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugin$1.UserExports & {
3876
3878
  /**
3877
3879
  * Convert long integers into BigInt values?
3878
3880
  *
@@ -3894,7 +3896,7 @@ type UserConfig$13 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & P
3894
3896
  */
3895
3897
  typeTransformers?: ReadonlyArray<TypeTransformer>;
3896
3898
  };
3897
- type Config$11 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugin$1.Exports & {
3899
+ type Config$12 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugin$1.Exports & {
3898
3900
  /**
3899
3901
  * Convert long integers into BigInt values?
3900
3902
  *
@@ -3916,354 +3918,1046 @@ type Config$11 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugi
3916
3918
  */
3917
3919
  typeTransformers: ReadonlyArray<TypeTransformer>;
3918
3920
  };
3919
- type HeyApiTransformersPlugin = DefinePlugin$1<UserConfig$13, Config$11>;
3921
+ type HeyApiTransformersPlugin = DefinePlugin$1<UserConfig$14, Config$12>;
3920
3922
  //#endregion
3921
3923
  //#region src/plugins/@hey-api/typescript/shared/types.d.ts
3922
- type IrSchemaToAstOptions$1 = {
3923
- /** The plugin instance. */
3924
- plugin: HeyApiTypeScriptPlugin['Instance'];
3925
- /** Optional schema extractor function. */
3926
- schemaExtractor?: SchemaExtractor;
3927
- /** The plugin state references. */
3928
- state: Refs<PluginState$1>;
3929
- };
3930
- type PluginState$1 = Pick<Required<SymbolMeta>, 'path'> & Pick<Partial<SymbolMeta>, 'tags'>;
3931
- //#endregion
3932
- //#region src/plugins/@hey-api/typescript/v1/plugin.d.ts
3933
- declare function irSchemaToAst({
3934
- plugin,
3935
- schema,
3936
- schemaExtractor,
3937
- state
3938
- }: IrSchemaToAstOptions$1 & {
3939
- schema: IR$1.SchemaObject;
3940
- }): MaybeTsDsl<TypeTsDsl>;
3924
+ type Type = MaybeTsDsl<TypeTsDsl>;
3925
+ /**
3926
+ * Metadata that flows through schema walking.
3927
+ */
3928
+ interface TypeScriptMeta {
3929
+ /** Default value from schema. */
3930
+ default?: unknown;
3931
+ /** Is this schema read-only? */
3932
+ readonly: boolean;
3933
+ }
3934
+ interface TypeScriptEnumData {
3935
+ items: Array<{
3936
+ key: string;
3937
+ schema: IR$1.SchemaObject;
3938
+ }>;
3939
+ mode: 'javascript' | 'typescript' | 'typescript-const' | 'type';
3940
+ }
3941
+ /**
3942
+ * Result from walking a schema node.
3943
+ */
3944
+ interface TypeScriptResult {
3945
+ enumData?: TypeScriptEnumData;
3946
+ meta: TypeScriptMeta;
3947
+ type: Type;
3948
+ }
3941
3949
  //#endregion
3942
3950
  //#region src/plugins/@hey-api/typescript/api.d.ts
3943
3951
  type IApi$3 = {
3944
- schemaToType: (args: Parameters<typeof irSchemaToAst>[0]) => MaybeTsDsl<TypeTsDsl>;
3952
+ schemaToType: (plugin: HeyApiTypeScriptPlugin['Instance'], schema: IR$1.SchemaObject) => Type;
3945
3953
  };
3946
3954
  //#endregion
3947
- //#region src/plugins/@hey-api/typescript/types.d.ts
3948
- type EnumsType = 'javascript' | 'typescript' | 'typescript-const';
3949
- type UserConfig$12 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
3955
+ //#region src/plugins/@hey-api/typescript/resolvers.d.ts
3956
+ type Resolvers$2 = Plugin$1.Resolvers<{
3950
3957
  /**
3951
- * Casing convention for generated names.
3958
+ * Resolver for array schemas.
3952
3959
  *
3953
- * @default 'PascalCase'
3960
+ * Allows customization of how array types are rendered.
3961
+ *
3962
+ * Returning `undefined` will execute the default resolver logic.
3954
3963
  */
3955
- case?: Exclude<Casing, 'SCREAMING_SNAKE_CASE'>;
3964
+ array?: (ctx: ArrayResolverContext$2) => Type | undefined;
3956
3965
  /**
3957
- * Configuration for reusable schema definitions.
3958
- *
3959
- * Controls generation of shared types that can be referenced across
3960
- * requests and responses.
3966
+ * Resolver for boolean schemas.
3961
3967
  *
3962
- * Can be:
3963
- * - `string` or `function`: Shorthand for `{ name: string | function }`
3964
- * - `object`: Full configuration object
3968
+ * Allows customization of how boolean types are rendered.
3965
3969
  *
3966
- * @default '{{name}}'
3970
+ * Returning `undefined` will execute the default resolver logic.
3967
3971
  */
3968
- definitions?: NameTransformer | {
3969
- /**
3970
- * Casing convention for generated names.
3971
- *
3972
- * @default 'PascalCase'
3973
- */
3974
- case?: Casing;
3975
- /**
3976
- * Naming pattern for generated names.
3977
- *
3978
- * @default '{{name}}'
3979
- */
3980
- name?: NameTransformer;
3981
- };
3972
+ boolean?: (ctx: BooleanResolverContext$2) => Type | undefined;
3982
3973
  /**
3983
- * By default, enums are emitted as types to preserve runtime-free output.
3974
+ * Resolver for enum schemas.
3984
3975
  *
3985
- * However, you may want to generate enums as JavaScript objects or
3986
- * TypeScript enums for runtime usage, interoperability, or integration with
3987
- * other tools.
3976
+ * Allows customization of how enum types are rendered.
3988
3977
  *
3989
- * @default false
3978
+ * Returning `undefined` will execute the default resolver logic.
3990
3979
  */
3991
- enums?: boolean | EnumsType | {
3992
- /**
3993
- * Casing convention for generated names.
3994
- *
3995
- * @default 'SCREAMING_SNAKE_CASE'
3996
- */
3997
- case?: Casing;
3998
- /**
3999
- * When generating enums as JavaScript objects, they'll contain a null
4000
- * value if they're nullable. This might be undesirable if you want to do
4001
- * `Object.values(Foo)` and have all values be of the same type.
4002
- *
4003
- * This setting is disabled by default to preserve the source schemas.
4004
- *
4005
- * @default false
4006
- */
4007
- constantsIgnoreNull?: boolean;
4008
- /**
4009
- * Whether this feature is enabled.
4010
- *
4011
- * @default true
4012
- */
4013
- enabled?: boolean;
4014
- /**
4015
- * Specifies the output mode for generated enums.
4016
- *
4017
- * Can be:
4018
- * - `javascript`: Generates JavaScript objects
4019
- * - `typescript`: Generates TypeScript enums
4020
- * - `typescript-const`: Generates TypeScript const enums
4021
- *
4022
- * @default 'javascript'
4023
- */
4024
- mode?: EnumsType;
4025
- };
3980
+ enum?: (ctx: EnumResolverContext$2) => Type | undefined;
4026
3981
  /**
4027
- * Configuration for error-specific types.
4028
- *
4029
- * Controls generation of types for error response bodies and status codes.
3982
+ * Resolver for intersection schemas.
4030
3983
  *
4031
- * Can be:
4032
- * - `string` or `function`: Shorthand for `{ name: string | function }`
4033
- * - `object`: Full configuration object
3984
+ * Allows customization of how intersection types are rendered.
4034
3985
  *
4035
- * @default '{{name}}Errors'
3986
+ * Returning `undefined` will execute the default resolver logic.
4036
3987
  */
4037
- errors?: NameTransformer | {
4038
- /**
4039
- * Casing convention for generated names.
4040
- *
4041
- * @default 'PascalCase'
4042
- */
4043
- case?: Casing;
4044
- /**
4045
- * Naming pattern for generated names.
4046
- *
4047
- * @default '{{name}}Error'
4048
- */
4049
- error?: NameTransformer;
4050
- /**
4051
- * Naming pattern for generated names.
4052
- *
4053
- * @default '{{name}}Errors'
4054
- */
4055
- name?: NameTransformer;
4056
- };
3988
+ intersection?: (ctx: IntersectionResolverContext$2) => Type | undefined;
4057
3989
  /**
4058
- * Configuration for request-specific types.
4059
- *
4060
- * Controls generation of types for request bodies, query parameters, path
4061
- * parameters, and headers.
3990
+ * Resolver for never schemas.
4062
3991
  *
4063
- * Can be:
4064
- * - `string` or `function`: Shorthand for `{ name: string | function }`
4065
- * - `object`: Full configuration object
3992
+ * Allows customization of how never types are rendered.
4066
3993
  *
4067
- * @default '{{name}}Data'
3994
+ * Returning `undefined` will execute the default resolver logic.
4068
3995
  */
4069
- requests?: NameTransformer | {
4070
- /**
4071
- * Casing convention for generated names.
4072
- *
4073
- * @default 'PascalCase'
4074
- */
4075
- case?: Casing;
4076
- /**
4077
- * Naming pattern for generated names.
4078
- *
4079
- * @default '{{name}}Data'
4080
- */
4081
- name?: NameTransformer;
4082
- };
3996
+ never?: (ctx: NeverResolverContext$2) => Type | undefined;
4083
3997
  /**
4084
- * Configuration for response-specific types.
3998
+ * Resolver for null schemas.
4085
3999
  *
4086
- * Controls generation of types for response bodies and status codes.
4000
+ * Allows customization of how null types are rendered.
4087
4001
  *
4088
- * Can be:
4089
- * - `string` or `function`: Shorthand for `{ name: string | function }`
4090
- * - `object`: Full configuration object
4002
+ * Returning `undefined` will execute the default resolver logic.
4003
+ */
4004
+ null?: (ctx: NullResolverContext$2) => Type | undefined;
4005
+ /**
4006
+ * Resolver for number schemas.
4091
4007
  *
4092
- * @default '{{name}}Responses'
4008
+ * Allows customization of how number types are rendered.
4009
+ *
4010
+ * Returning `undefined` will execute the default resolver logic.
4011
+ */
4012
+ number?: (ctx: NumberResolverContext$2) => Type | undefined;
4013
+ /**
4014
+ * Resolver for object schemas.
4015
+ *
4016
+ * Allows customization of how object types are rendered.
4017
+ *
4018
+ * Returning `undefined` will execute the default resolver logic.
4019
+ */
4020
+ object?: (ctx: ObjectResolverContext$2) => Type | undefined;
4021
+ /**
4022
+ * Resolver for string schemas.
4023
+ *
4024
+ * Allows customization of how string types are rendered.
4025
+ *
4026
+ * Returning `undefined` will execute the default resolver logic.
4027
+ */
4028
+ string?: (ctx: StringResolverContext$2) => Type | undefined;
4029
+ /**
4030
+ * Resolver for tuple schemas.
4031
+ *
4032
+ * Allows customization of how tuple types are rendered.
4033
+ *
4034
+ * Returning `undefined` will execute the default resolver logic.
4035
+ */
4036
+ tuple?: (ctx: TupleResolverContext$2) => Type | undefined;
4037
+ /**
4038
+ * Resolver for undefined schemas.
4039
+ *
4040
+ * Allows customization of how undefined types are rendered.
4041
+ *
4042
+ * Returning `undefined` will execute the default resolver logic.
4043
+ */
4044
+ undefined?: (ctx: UndefinedResolverContext$2) => Type | undefined;
4045
+ /**
4046
+ * Resolver for union schemas.
4047
+ *
4048
+ * Allows customization of how union types are rendered.
4049
+ *
4050
+ * Returning `undefined` will execute the default resolver logic.
4051
+ */
4052
+ union?: (ctx: UnionResolverContext$2) => Type | undefined;
4053
+ /**
4054
+ * Resolver for unknown schemas.
4055
+ *
4056
+ * Allows customization of how unknown types are rendered.
4057
+ *
4058
+ * Returning `undefined` will execute the default resolver logic.
4059
+ */
4060
+ unknown?: (ctx: UnknownResolverContext$2) => Type | undefined;
4061
+ /**
4062
+ * Resolver for void schemas.
4063
+ *
4064
+ * Allows customization of how void types are rendered.
4065
+ *
4066
+ * Returning `undefined` will execute the default resolver logic.
4067
+ */
4068
+ void?: (ctx: VoidResolverContext$2) => Type | undefined;
4069
+ }>;
4070
+ interface BaseContext$2 extends DollarTsDsl {
4071
+ /** The plugin instance. */
4072
+ plugin: HeyApiTypeScriptPlugin['Instance'];
4073
+ }
4074
+ interface ArrayResolverContext$2 extends BaseContext$2 {
4075
+ /**
4076
+ * Nodes used to build different parts of the result.
4077
+ */
4078
+ nodes: {
4079
+ /**
4080
+ * Returns the base array type expression.
4081
+ */
4082
+ base: (ctx: ArrayResolverContext$2) => Type;
4083
+ };
4084
+ schema: SchemaWithType<'array'>;
4085
+ walk: Walker<TypeScriptResult, HeyApiTypeScriptPlugin['Instance']>;
4086
+ walkerCtx: SchemaVisitorContext<HeyApiTypeScriptPlugin['Instance']>;
4087
+ }
4088
+ interface BooleanResolverContext$2 extends BaseContext$2 {
4089
+ /**
4090
+ * Nodes used to build different parts of the result.
4091
+ */
4092
+ nodes: {
4093
+ /**
4094
+ * Returns the base boolean type expression.
4095
+ */
4096
+ base: (ctx: BooleanResolverContext$2) => Type;
4097
+ /**
4098
+ * Returns the literal type for const values.
4099
+ */
4100
+ const: (ctx: BooleanResolverContext$2) => Type | undefined;
4101
+ };
4102
+ schema: SchemaWithType<'boolean'>;
4103
+ }
4104
+ interface EnumResolverContext$2 extends BaseContext$2 {
4105
+ /**
4106
+ * Nodes used to build different parts of the result.
4107
+ */
4108
+ nodes: {
4109
+ /**
4110
+ * Returns the base enum type expression.
4111
+ */
4112
+ base: (ctx: EnumResolverContext$2) => Type;
4113
+ /**
4114
+ * Returns parsed enum items with metadata about the enum members.
4115
+ */
4116
+ items: (ctx: EnumResolverContext$2) => {
4117
+ /**
4118
+ * String literal values for use with union types.
4119
+ */
4120
+ enumMembers: Array<ReturnType<typeof $.type.literal>>;
4121
+ /**
4122
+ * Whether the enum includes a null value.
4123
+ */
4124
+ isNullable: boolean;
4125
+ };
4126
+ };
4127
+ schema: SchemaWithType<'enum'>;
4128
+ }
4129
+ interface IntersectionResolverContext$2 extends BaseContext$2 {
4130
+ /**
4131
+ * The child results from walking intersection members.
4132
+ */
4133
+ childResults: ReadonlyArray<TypeScriptResult>;
4134
+ /**
4135
+ * Nodes used to build different parts of the result.
4136
+ */
4137
+ nodes: {
4138
+ /**
4139
+ * Returns the base intersection type expression.
4140
+ */
4141
+ base: (ctx: IntersectionResolverContext$2) => Type;
4142
+ };
4143
+ /**
4144
+ * The parent schema containing the intersection.
4145
+ */
4146
+ parentSchema: IR$1.SchemaObject;
4147
+ /**
4148
+ * The individual schemas being intersected.
4149
+ */
4150
+ schemas: ReadonlyArray<IR$1.SchemaObject>;
4151
+ }
4152
+ interface NeverResolverContext$2 extends BaseContext$2 {
4153
+ /**
4154
+ * Nodes used to build different parts of the result.
4155
+ */
4156
+ nodes: {
4157
+ /**
4158
+ * Returns the base never type expression.
4159
+ */
4160
+ base: (ctx: NeverResolverContext$2) => Type;
4161
+ };
4162
+ schema: SchemaWithType<'never'>;
4163
+ }
4164
+ interface NullResolverContext$2 extends BaseContext$2 {
4165
+ /**
4166
+ * Nodes used to build different parts of the result.
4167
+ */
4168
+ nodes: {
4169
+ /**
4170
+ * Returns the base null type expression.
4171
+ */
4172
+ base: (ctx: NullResolverContext$2) => Type;
4173
+ };
4174
+ schema: SchemaWithType<'null'>;
4175
+ }
4176
+ interface NumberResolverContext$2 extends BaseContext$2 {
4177
+ /**
4178
+ * Nodes used to build different parts of the result.
4179
+ */
4180
+ nodes: {
4181
+ /**
4182
+ * Returns the base number type expression.
4183
+ */
4184
+ base: (ctx: NumberResolverContext$2) => Type;
4185
+ /**
4186
+ * Returns the literal type for const values.
4187
+ */
4188
+ const: (ctx: NumberResolverContext$2) => Type | undefined;
4189
+ };
4190
+ schema: SchemaWithType<'integer' | 'number'>;
4191
+ }
4192
+ interface ObjectResolverContext$2 extends BaseContext$2 {
4193
+ /**
4194
+ * Nodes used to build different parts of the result.
4195
+ */
4196
+ nodes: {
4197
+ /**
4198
+ * Returns the base object type expression.
4199
+ */
4200
+ base: (ctx: ObjectResolverContext$2) => Type;
4201
+ /**
4202
+ * Returns the shape (properties) of the object type.
4203
+ */
4204
+ shape: (ctx: ObjectResolverContext$2) => ReturnType<typeof $.type.object>;
4205
+ };
4206
+ schema: SchemaWithType<'object'>;
4207
+ walk: Walker<TypeScriptResult, HeyApiTypeScriptPlugin['Instance']>;
4208
+ walkerCtx: SchemaVisitorContext<HeyApiTypeScriptPlugin['Instance']>;
4209
+ }
4210
+ interface StringResolverContext$2 extends BaseContext$2 {
4211
+ /**
4212
+ * Nodes used to build different parts of the result.
4213
+ */
4214
+ nodes: {
4215
+ /**
4216
+ * Returns the base string type expression.
4217
+ */
4218
+ base: (ctx: StringResolverContext$2) => Type;
4219
+ /**
4220
+ * Returns the literal type for const values.
4221
+ */
4222
+ const: (ctx: StringResolverContext$2) => Type | undefined;
4223
+ /**
4224
+ * Returns the format-specific type expression.
4225
+ */
4226
+ format: (ctx: StringResolverContext$2) => Type | undefined;
4227
+ };
4228
+ schema: SchemaWithType<'string'>;
4229
+ }
4230
+ interface TupleResolverContext$2 extends BaseContext$2 {
4231
+ /**
4232
+ * Nodes used to build different parts of the result.
4233
+ */
4234
+ nodes: {
4235
+ /**
4236
+ * Returns the base tuple type expression.
4237
+ */
4238
+ base: (ctx: TupleResolverContext$2) => Type;
4239
+ /**
4240
+ * Returns the literal type for const tuple values.
4241
+ */
4242
+ const: (ctx: TupleResolverContext$2) => Type | undefined;
4243
+ };
4244
+ schema: SchemaWithType<'tuple'>;
4245
+ walk: Walker<TypeScriptResult, HeyApiTypeScriptPlugin['Instance']>;
4246
+ walkerCtx: SchemaVisitorContext<HeyApiTypeScriptPlugin['Instance']>;
4247
+ }
4248
+ interface UnionResolverContext$2 extends BaseContext$2 {
4249
+ /**
4250
+ * The child results from walking union members.
4251
+ */
4252
+ childResults: ReadonlyArray<TypeScriptResult>;
4253
+ /**
4254
+ * Nodes used to build different parts of the result.
4255
+ */
4256
+ nodes: {
4257
+ /**
4258
+ * Returns the base union type expression.
4259
+ */
4260
+ base: (ctx: UnionResolverContext$2) => Type;
4261
+ };
4262
+ /**
4263
+ * The parent schema containing the union.
4264
+ */
4265
+ parentSchema: IR$1.SchemaObject;
4266
+ /**
4267
+ * The individual schemas being unioned.
4268
+ */
4269
+ schemas: ReadonlyArray<IR$1.SchemaObject>;
4270
+ }
4271
+ interface UndefinedResolverContext$2 extends BaseContext$2 {
4272
+ /**
4273
+ * Nodes used to build different parts of the result.
4274
+ */
4275
+ nodes: {
4276
+ /**
4277
+ * Returns the base undefined type expression.
4278
+ */
4279
+ base: (ctx: UndefinedResolverContext$2) => Type;
4280
+ };
4281
+ schema: SchemaWithType<'undefined'>;
4282
+ }
4283
+ interface UnknownResolverContext$2 extends BaseContext$2 {
4284
+ /**
4285
+ * Nodes used to build different parts of the result.
4286
+ */
4287
+ nodes: {
4288
+ /**
4289
+ * Returns the base unknown type expression.
4290
+ */
4291
+ base: (ctx: UnknownResolverContext$2) => Type;
4292
+ };
4293
+ schema: SchemaWithType<'unknown'>;
4294
+ }
4295
+ interface VoidResolverContext$2 extends BaseContext$2 {
4296
+ /**
4297
+ * Nodes used to build different parts of the result.
4298
+ */
4299
+ nodes: {
4300
+ /**
4301
+ * Returns the base void type expression.
4302
+ */
4303
+ base: (ctx: VoidResolverContext$2) => Type;
4304
+ };
4305
+ schema: SchemaWithType<'void'>;
4306
+ }
4307
+ //#endregion
4308
+ //#region src/plugins/@hey-api/typescript/types.d.ts
4309
+ type EnumsType = 'javascript' | 'typescript' | 'typescript-const';
4310
+ type UserConfig$13 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & Resolvers$2 & {
4311
+ /**
4312
+ * Casing convention for generated names.
4313
+ *
4314
+ * @default 'PascalCase'
4315
+ */
4316
+ case?: Exclude<Casing, 'SCREAMING_SNAKE_CASE'>;
4317
+ /**
4318
+ * Configuration for reusable schema definitions.
4319
+ *
4320
+ * Controls generation of shared types that can be referenced across
4321
+ * requests and responses.
4322
+ *
4323
+ * Can be:
4324
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
4325
+ * - `object`: Full configuration object
4326
+ *
4327
+ * @default '{{name}}'
4328
+ */
4329
+ definitions?: NameTransformer | {
4330
+ /**
4331
+ * Casing convention for generated names.
4332
+ *
4333
+ * @default 'PascalCase'
4334
+ */
4335
+ case?: Casing;
4336
+ /**
4337
+ * Naming pattern for generated names.
4338
+ *
4339
+ * @default '{{name}}'
4340
+ */
4341
+ name?: NameTransformer;
4342
+ };
4343
+ /**
4344
+ * By default, enums are emitted as types to preserve runtime-free output.
4345
+ *
4346
+ * However, you may want to generate enums as JavaScript objects or
4347
+ * TypeScript enums for runtime usage, interoperability, or integration with
4348
+ * other tools.
4349
+ *
4350
+ * @default false
4351
+ */
4352
+ enums?: boolean | EnumsType | {
4353
+ /**
4354
+ * Casing convention for generated names.
4355
+ *
4356
+ * @default 'SCREAMING_SNAKE_CASE'
4357
+ */
4358
+ case?: Casing;
4359
+ /**
4360
+ * When generating enums as JavaScript objects, they'll contain a null
4361
+ * value if they're nullable. This might be undesirable if you want to do
4362
+ * `Object.values(Foo)` and have all values be of the same type.
4363
+ *
4364
+ * This setting is disabled by default to preserve the source schemas.
4365
+ *
4366
+ * @default false
4367
+ */
4368
+ constantsIgnoreNull?: boolean;
4369
+ /**
4370
+ * Whether this feature is enabled.
4371
+ *
4372
+ * @default true
4373
+ */
4374
+ enabled?: boolean;
4375
+ /**
4376
+ * Specifies the output mode for generated enums.
4377
+ *
4378
+ * Can be:
4379
+ * - `javascript`: Generates JavaScript objects
4380
+ * - `typescript`: Generates TypeScript enums
4381
+ * - `typescript-const`: Generates TypeScript const enums
4382
+ *
4383
+ * @default 'javascript'
4384
+ */
4385
+ mode?: EnumsType;
4386
+ };
4387
+ /**
4388
+ * Configuration for error-specific types.
4389
+ *
4390
+ * Controls generation of types for error response bodies and status codes.
4391
+ *
4392
+ * Can be:
4393
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
4394
+ * - `object`: Full configuration object
4395
+ *
4396
+ * @default '{{name}}Errors'
4397
+ */
4398
+ errors?: NameTransformer | {
4399
+ /**
4400
+ * Casing convention for generated names.
4401
+ *
4402
+ * @default 'PascalCase'
4403
+ */
4404
+ case?: Casing;
4405
+ /**
4406
+ * Naming pattern for generated names.
4407
+ *
4408
+ * @default '{{name}}Error'
4409
+ */
4410
+ error?: NameTransformer;
4411
+ /**
4412
+ * Naming pattern for generated names.
4413
+ *
4414
+ * @default '{{name}}Errors'
4415
+ */
4416
+ name?: NameTransformer;
4417
+ };
4418
+ /**
4419
+ * Configuration for request-specific types.
4420
+ *
4421
+ * Controls generation of types for request bodies, query parameters, path
4422
+ * parameters, and headers.
4423
+ *
4424
+ * Can be:
4425
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
4426
+ * - `object`: Full configuration object
4427
+ *
4428
+ * @default '{{name}}Data'
4429
+ */
4430
+ requests?: NameTransformer | {
4431
+ /**
4432
+ * Casing convention for generated names.
4433
+ *
4434
+ * @default 'PascalCase'
4435
+ */
4436
+ case?: Casing;
4437
+ /**
4438
+ * Naming pattern for generated names.
4439
+ *
4440
+ * @default '{{name}}Data'
4441
+ */
4442
+ name?: NameTransformer;
4443
+ };
4444
+ /**
4445
+ * Configuration for response-specific types.
4446
+ *
4447
+ * Controls generation of types for response bodies and status codes.
4448
+ *
4449
+ * Can be:
4450
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
4451
+ * - `object`: Full configuration object
4452
+ *
4453
+ * @default '{{name}}Responses'
4093
4454
  */
4094
4455
  responses?: NameTransformer | {
4095
4456
  /**
4096
4457
  * Casing convention for generated names.
4097
4458
  *
4098
- * @default 'PascalCase'
4459
+ * @default 'PascalCase'
4460
+ */
4461
+ case?: Casing;
4462
+ /**
4463
+ * Naming pattern for generated names.
4464
+ *
4465
+ * @default '{{name}}Responses'
4466
+ */
4467
+ name?: NameTransformer;
4468
+ /**
4469
+ * Naming pattern for generated names.
4470
+ *
4471
+ * @default '{{name}}Response'
4472
+ */
4473
+ response?: NameTransformer;
4474
+ };
4475
+ /**
4476
+ * The top type to use for untyped or unspecified schema values.
4477
+ *
4478
+ * Can be:
4479
+ * - `unknown` (default): safe top type, you must narrow before use
4480
+ * - `any`: disables type checking, can be used anywhere
4481
+ *
4482
+ * @default 'unknown'
4483
+ */
4484
+ topType?: 'any' | 'unknown';
4485
+ /**
4486
+ * Configuration for webhook-specific types.
4487
+ *
4488
+ * Controls generation of types for webhook payloads and webhook requests.
4489
+ *
4490
+ * Can be:
4491
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
4492
+ * - `object`: Full configuration object
4493
+ *
4494
+ * @default '{{name}}WebhookRequest'
4495
+ */
4496
+ webhooks?: NameTransformer | {
4497
+ /**
4498
+ * Casing convention for generated names.
4499
+ *
4500
+ * @default 'PascalCase'
4501
+ */
4502
+ case?: Casing;
4503
+ /**
4504
+ * Naming pattern for generated names.
4505
+ *
4506
+ * @default '{{name}}WebhookRequest'
4507
+ */
4508
+ name?: NameTransformer;
4509
+ /**
4510
+ * Naming pattern for generated names.
4511
+ *
4512
+ * @default '{{name}}WebhookPayload'
4513
+ */
4514
+ payload?: NameTransformer;
4515
+ };
4516
+ };
4517
+ type Config$11 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & Resolvers$2 & {
4518
+ /**
4519
+ * Casing convention for generated names.
4520
+ */
4521
+ case: Exclude<Casing, 'SCREAMING_SNAKE_CASE'>;
4522
+ /**
4523
+ * Configuration for reusable schema definitions.
4524
+ *
4525
+ * Controls generation of shared types that can be referenced across
4526
+ * requests and responses.
4527
+ */
4528
+ definitions: NamingOptions;
4529
+ /**
4530
+ * By default, enums are emitted as types to preserve runtime-free output.
4531
+ *
4532
+ * However, you may want to generate enums as JavaScript objects or
4533
+ * TypeScript enums for runtime usage, interoperability, or integration with
4534
+ * other tools.
4535
+ */
4536
+ enums: FeatureToggle & {
4537
+ /**
4538
+ * Casing convention for generated names.
4539
+ */
4540
+ case: Casing;
4541
+ /**
4542
+ * When generating enums as JavaScript objects, they'll contain a null
4543
+ * value if they're nullable. This might be undesirable if you want to do
4544
+ * `Object.values(Foo)` and have all values be of the same type.
4545
+ *
4546
+ * This setting is disabled by default to preserve the source schemas.
4547
+ *
4548
+ * @default false
4549
+ */
4550
+ constantsIgnoreNull: boolean;
4551
+ /**
4552
+ * Specifies the output mode for generated enums.
4553
+ *
4554
+ * Can be:
4555
+ * - `javascript`: Generates JavaScript objects
4556
+ * - `typescript`: Generates TypeScript enums
4557
+ * - `typescript-const`: Generates TypeScript const enums
4558
+ *
4559
+ * @default 'javascript'
4560
+ */
4561
+ mode: EnumsType;
4562
+ };
4563
+ /**
4564
+ * Configuration for error-specific types.
4565
+ *
4566
+ * Controls generation of types for error response bodies and status codes.
4567
+ *
4568
+ * Can be:
4569
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
4570
+ * - `object`: Full configuration object
4571
+ */
4572
+ errors: NamingOptions & {
4573
+ /**
4574
+ * Naming pattern for generated names.
4575
+ */
4576
+ error: NameTransformer;
4577
+ };
4578
+ /**
4579
+ * Configuration for request-specific types.
4580
+ *
4581
+ * Controls generation of types for request bodies, query parameters, path
4582
+ * parameters, and headers.
4583
+ */
4584
+ requests: NamingOptions;
4585
+ /**
4586
+ * Configuration for response-specific types.
4587
+ *
4588
+ * Controls generation of types for response bodies and status codes.
4589
+ */
4590
+ responses: NamingOptions & {
4591
+ /**
4592
+ * Naming pattern for generated names.
4593
+ */
4594
+ response: NameTransformer;
4595
+ };
4596
+ /**
4597
+ * The top type to use for untyped or unspecified schema values.
4598
+ *
4599
+ * @default 'unknown'
4600
+ */
4601
+ topType: 'any' | 'unknown';
4602
+ /**
4603
+ * Configuration for webhook-specific types.
4604
+ *
4605
+ * Controls generation of types for webhook payloads and webhook requests.
4606
+ */
4607
+ webhooks: NamingOptions & {
4608
+ /**
4609
+ * Naming pattern for generated names.
4610
+ */
4611
+ payload: NameTransformer;
4612
+ };
4613
+ };
4614
+ type HeyApiTypeScriptPlugin = DefinePlugin$1<UserConfig$13, Config$11, IApi$3>;
4615
+ //#endregion
4616
+ //#region src/plugins/@pinia/colada/types.d.ts
4617
+ type UserConfig$12 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
4618
+ /**
4619
+ * Casing convention for generated names.
4620
+ *
4621
+ * @default 'camelCase'
4622
+ */
4623
+ case?: Casing;
4624
+ /**
4625
+ * Configuration for generated mutation options helpers.
4626
+ *
4627
+ * See {@link https://pinia-colada.esm.dev/guide/mutations.html Mutations}
4628
+ *
4629
+ * Can be:
4630
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
4631
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
4632
+ * - `object`: Full configuration object
4633
+ *
4634
+ * @default true
4635
+ */
4636
+ mutationOptions?: boolean | NameTransformer | {
4637
+ /**
4638
+ * Casing convention for generated names.
4639
+ *
4640
+ * @default 'camelCase'
4099
4641
  */
4100
4642
  case?: Casing;
4643
+ /**
4644
+ * Whether this feature is enabled.
4645
+ *
4646
+ * @default true
4647
+ */
4648
+ enabled?: boolean;
4649
+ /**
4650
+ * Custom function to generate metadata for the operation.
4651
+ * Can return any valid meta object that will be included in the generated mutation options.
4652
+ *
4653
+ * @param operation - The operation object containing all available metadata
4654
+ * @returns A meta object with any properties you want to include
4655
+ *
4656
+ * @example
4657
+ * ```ts
4658
+ * meta: (operation) => ({
4659
+ * customField: operation.id,
4660
+ * isDeprecated: operation.deprecated,
4661
+ * tags: operation.tags,
4662
+ * customObject: {
4663
+ * method: operation.method,
4664
+ * path: operation.path
4665
+ * }
4666
+ * })
4667
+ * ```
4668
+ *
4669
+ * @default undefined
4670
+ */
4671
+ meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
4101
4672
  /**
4102
4673
  * Naming pattern for generated names.
4103
4674
  *
4104
- * @default '{{name}}Responses'
4675
+ * @default '{{name}}Mutation'
4105
4676
  */
4106
4677
  name?: NameTransformer;
4678
+ };
4679
+ /**
4680
+ * Configuration for generated query keys.
4681
+ *
4682
+ * See {@link https://pinia-colada.esm.dev/guide/query-keys.html Query Keys}
4683
+ *
4684
+ * Can be:
4685
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
4686
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
4687
+ * - `object`: Full configuration object
4688
+ *
4689
+ * @default true
4690
+ */
4691
+ queryKeys?: boolean | NameTransformer | {
4692
+ /**
4693
+ * Casing convention for generated names.
4694
+ *
4695
+ * @default 'camelCase'
4696
+ */
4697
+ case?: Casing;
4698
+ /**
4699
+ * Whether this feature is enabled.
4700
+ *
4701
+ * @default true
4702
+ */
4703
+ enabled?: boolean;
4107
4704
  /**
4108
4705
  * Naming pattern for generated names.
4109
4706
  *
4110
- * @default '{{name}}Response'
4707
+ * @default '{{name}}QueryKey'
4111
4708
  */
4112
- response?: NameTransformer;
4709
+ name?: NameTransformer;
4710
+ /**
4711
+ * Whether to include operation tags in query keys.
4712
+ * This will make query keys larger but provides better cache invalidation capabilities.
4713
+ *
4714
+ * @default false
4715
+ */
4716
+ tags?: boolean;
4113
4717
  };
4114
4718
  /**
4115
- * The top type to use for untyped or unspecified schema values.
4719
+ * Configuration for generated query options helpers.
4720
+ *
4721
+ * See {@link https://pinia-colada.esm.dev/guide/queries.html Queries}
4116
4722
  *
4117
4723
  * Can be:
4118
- * - `unknown` (default): safe top type, you must narrow before use
4119
- * - `any`: disables type checking, can be used anywhere
4724
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
4725
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
4726
+ * - `object`: Full configuration object
4120
4727
  *
4121
- * @default 'unknown'
4728
+ * @default true
4122
4729
  */
4123
- topType?: 'any' | 'unknown';
4730
+ queryOptions?: boolean | NameTransformer | {
4731
+ /**
4732
+ * Casing convention for generated names.
4733
+ *
4734
+ * @default 'camelCase'
4735
+ */
4736
+ case?: Casing;
4737
+ /**
4738
+ * Whether this feature is enabled.
4739
+ *
4740
+ * @default true
4741
+ */
4742
+ enabled?: boolean;
4743
+ /**
4744
+ * Custom function to generate metadata for the operation.
4745
+ * Can return any valid meta object that will be included in the generated query options.
4746
+ *
4747
+ * @param operation - The operation object containing all available metadata
4748
+ * @returns A meta object with any properties you want to include
4749
+ *
4750
+ * @example
4751
+ * ```ts
4752
+ * meta: (operation) => ({
4753
+ * customField: operation.id,
4754
+ * isDeprecated: operation.deprecated,
4755
+ * tags: operation.tags,
4756
+ * customObject: {
4757
+ * method: operation.method,
4758
+ * path: operation.path
4759
+ * }
4760
+ * })
4761
+ * ```
4762
+ *
4763
+ * @default undefined
4764
+ */
4765
+ meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
4766
+ /**
4767
+ * Naming pattern for generated names.
4768
+ *
4769
+ * @default '{{name}}Query'
4770
+ */
4771
+ name?: NameTransformer;
4772
+ };
4773
+ };
4774
+ type Config$10 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
4124
4775
  /**
4125
- * Configuration for webhook-specific types.
4776
+ * Casing convention for generated names.
4777
+ */
4778
+ case: Casing;
4779
+ /**
4780
+ * Resolved configuration for generated mutation options helpers.
4781
+ */
4782
+ mutationOptions: NamingOptions & FeatureToggle & {
4783
+ /**
4784
+ * Custom function to generate metadata for the operation.
4785
+ * Can return any valid meta object that will be included in the generated mutation options.
4786
+ *
4787
+ * @param operation - The operation object containing all available metadata
4788
+ * @returns A meta object with any properties you want to include
4789
+ *
4790
+ * @example
4791
+ * ```ts
4792
+ * meta: (operation) => ({
4793
+ * customField: operation.id,
4794
+ * isDeprecated: operation.deprecated,
4795
+ * tags: operation.tags,
4796
+ * customObject: {
4797
+ * method: operation.method,
4798
+ * path: operation.path
4799
+ * }
4800
+ * })
4801
+ * ```
4802
+ *
4803
+ * @default undefined
4804
+ */
4805
+ meta: ((operation: IR$1.OperationObject) => Record<string, unknown>) | undefined;
4806
+ };
4807
+ /**
4808
+ * Resolved configuration for generated query keys.
4126
4809
  *
4127
- * Controls generation of types for webhook payloads and webhook requests.
4810
+ * See {@link https://pinia-colada.esm.dev/guide/query-keys.html Query Keys}
4811
+ */
4812
+ queryKeys: NamingOptions & FeatureToggle & {
4813
+ /**
4814
+ * Whether to include operation tags in query keys.
4815
+ * This will make query keys larger but provides better cache invalidation capabilities.
4816
+ *
4817
+ * @default false
4818
+ */
4819
+ tags: boolean;
4820
+ };
4821
+ /**
4822
+ * Resolved configuration for generated query options helpers.
4823
+ *
4824
+ * See {@link https://pinia-colada.esm.dev/guide/queries.html Queries}
4825
+ */
4826
+ queryOptions: NamingOptions & FeatureToggle & {
4827
+ /**
4828
+ * Custom function to generate metadata for the operation.
4829
+ * Can return any valid meta object that will be included in the generated query options.
4830
+ *
4831
+ * @param operation - The operation object containing all available metadata
4832
+ * @returns A meta object with any properties you want to include
4833
+ *
4834
+ * @example
4835
+ * ```ts
4836
+ * meta: (operation) => ({
4837
+ * customField: operation.id,
4838
+ * isDeprecated: operation.deprecated,
4839
+ * tags: operation.tags,
4840
+ * customObject: {
4841
+ * method: operation.method,
4842
+ * path: operation.path
4843
+ * }
4844
+ * })
4845
+ * ```
4846
+ *
4847
+ * @default undefined
4848
+ */
4849
+ meta: ((operation: IR$1.OperationObject) => Record<string, unknown>) | undefined;
4850
+ };
4851
+ };
4852
+ type PiniaColadaPlugin = DefinePlugin$1<UserConfig$12, Config$10>;
4853
+ //#endregion
4854
+ //#region src/plugins/@tanstack/angular-query-experimental/types.d.ts
4855
+ type UserConfig$11 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
4856
+ /**
4857
+ * Casing convention for generated names.
4858
+ *
4859
+ * @default 'camelCase'
4860
+ */
4861
+ case?: Casing;
4862
+ /**
4863
+ * Configuration for generated infinite query key helpers.
4864
+ *
4865
+ * See {@link https://tanstack.com/query/v5/docs/framework/angular/reference/infiniteQueryOptions}
4128
4866
  *
4129
4867
  * Can be:
4868
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
4130
4869
  * - `string` or `function`: Shorthand for `{ name: string | function }`
4131
4870
  * - `object`: Full configuration object
4132
4871
  *
4133
- * @default '{{name}}WebhookRequest'
4872
+ * @default true
4134
4873
  */
4135
- webhooks?: NameTransformer | {
4874
+ infiniteQueryKeys?: boolean | NameTransformer | {
4136
4875
  /**
4137
4876
  * Casing convention for generated names.
4138
4877
  *
4139
- * @default 'PascalCase'
4878
+ * @default 'camelCase'
4140
4879
  */
4141
4880
  case?: Casing;
4142
4881
  /**
4143
- * Naming pattern for generated names.
4882
+ * Whether this feature is enabled.
4144
4883
  *
4145
- * @default '{{name}}WebhookRequest'
4884
+ * @default true
4146
4885
  */
4147
- name?: NameTransformer;
4886
+ enabled?: boolean;
4148
4887
  /**
4149
4888
  * Naming pattern for generated names.
4150
4889
  *
4151
- * @default '{{name}}WebhookPayload'
4152
- */
4153
- payload?: NameTransformer;
4154
- };
4155
- };
4156
- type Config$10 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
4157
- /**
4158
- * Casing convention for generated names.
4159
- */
4160
- case: Exclude<Casing, 'SCREAMING_SNAKE_CASE'>;
4161
- /**
4162
- * Configuration for reusable schema definitions.
4163
- *
4164
- * Controls generation of shared types that can be referenced across
4165
- * requests and responses.
4166
- */
4167
- definitions: NamingOptions;
4168
- /**
4169
- * By default, enums are emitted as types to preserve runtime-free output.
4170
- *
4171
- * However, you may want to generate enums as JavaScript objects or
4172
- * TypeScript enums for runtime usage, interoperability, or integration with
4173
- * other tools.
4174
- */
4175
- enums: FeatureToggle & {
4176
- /**
4177
- * Casing convention for generated names.
4890
+ * @default '{{name}}InfiniteQueryKey'
4891
+ * @see https://tanstack.com/query/v5/docs/framework/angular/reference/infiniteQueryOptions
4178
4892
  */
4179
- case: Casing;
4893
+ name?: NameTransformer;
4180
4894
  /**
4181
- * When generating enums as JavaScript objects, they'll contain a null
4182
- * value if they're nullable. This might be undesirable if you want to do
4183
- * `Object.values(Foo)` and have all values be of the same type.
4184
- *
4185
- * This setting is disabled by default to preserve the source schemas.
4895
+ * Whether to include operation tags in infinite query keys.
4896
+ * This will make query keys larger but provides better cache invalidation capabilities.
4186
4897
  *
4187
4898
  * @default false
4188
4899
  */
4189
- constantsIgnoreNull: boolean;
4190
- /**
4191
- * Specifies the output mode for generated enums.
4192
- *
4193
- * Can be:
4194
- * - `javascript`: Generates JavaScript objects
4195
- * - `typescript`: Generates TypeScript enums
4196
- * - `typescript-const`: Generates TypeScript const enums
4197
- *
4198
- * @default 'javascript'
4199
- */
4200
- mode: EnumsType;
4900
+ tags?: boolean;
4201
4901
  };
4202
4902
  /**
4203
- * Configuration for error-specific types.
4903
+ * Configuration for generated infinite query options helpers.
4204
4904
  *
4205
- * Controls generation of types for error response bodies and status codes.
4905
+ * See {@link https://tanstack.com/query/v5/docs/framework/angular/reference/infiniteQueryOptions}
4206
4906
  *
4207
4907
  * Can be:
4908
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
4208
4909
  * - `string` or `function`: Shorthand for `{ name: string | function }`
4209
4910
  * - `object`: Full configuration object
4911
+ *
4912
+ * @default true
4210
4913
  */
4211
- errors: NamingOptions & {
4914
+ infiniteQueryOptions?: boolean | NameTransformer | {
4212
4915
  /**
4213
- * Naming pattern for generated names.
4916
+ * Casing convention for generated names.
4917
+ *
4918
+ * @default 'camelCase'
4214
4919
  */
4215
- error: NameTransformer;
4216
- };
4217
- /**
4218
- * Configuration for request-specific types.
4219
- *
4220
- * Controls generation of types for request bodies, query parameters, path
4221
- * parameters, and headers.
4222
- */
4223
- requests: NamingOptions;
4224
- /**
4225
- * Configuration for response-specific types.
4226
- *
4227
- * Controls generation of types for response bodies and status codes.
4228
- */
4229
- responses: NamingOptions & {
4920
+ case?: Casing;
4230
4921
  /**
4231
- * Naming pattern for generated names.
4922
+ * Whether this feature is enabled.
4923
+ *
4924
+ * @default true
4232
4925
  */
4233
- response: NameTransformer;
4234
- };
4235
- /**
4236
- * The top type to use for untyped or unspecified schema values.
4237
- *
4238
- * @default 'unknown'
4239
- */
4240
- topType: 'any' | 'unknown';
4241
- /**
4242
- * Configuration for webhook-specific types.
4243
- *
4244
- * Controls generation of types for webhook payloads and webhook requests.
4245
- */
4246
- webhooks: NamingOptions & {
4926
+ enabled?: boolean;
4927
+ /**
4928
+ * Custom function to generate metadata for the operation.
4929
+ * Can return any valid meta object that will be included in the generated infinite query options.
4930
+ * @param operation - The operation object containing all available metadata
4931
+ * @returns A meta object with any properties you want to include
4932
+ *
4933
+ * @example
4934
+ * ```ts
4935
+ * meta: (operation) => ({
4936
+ * customField: operation.id,
4937
+ * isDeprecated: operation.deprecated,
4938
+ * tags: operation.tags,
4939
+ * customObject: {
4940
+ * method: operation.method,
4941
+ * path: operation.path
4942
+ * }
4943
+ * })
4944
+ * ```
4945
+ *
4946
+ * @default undefined
4947
+ */
4948
+ meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
4247
4949
  /**
4248
4950
  * Naming pattern for generated names.
4951
+ *
4952
+ * @default '{{name}}InfiniteOptions'
4953
+ * @see https://tanstack.com/query/v5/docs/framework/angular/reference/infiniteQueryOptions
4249
4954
  */
4250
- payload: NameTransformer;
4955
+ name?: NameTransformer;
4251
4956
  };
4252
- };
4253
- type HeyApiTypeScriptPlugin = DefinePlugin$1<UserConfig$12, Config$10, IApi$3>;
4254
- //#endregion
4255
- //#region src/plugins/@pinia/colada/types.d.ts
4256
- type UserConfig$11 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
4257
- /**
4258
- * Casing convention for generated names.
4259
- *
4260
- * @default 'camelCase'
4261
- */
4262
- case?: Casing;
4263
4957
  /**
4264
4958
  * Configuration for generated mutation options helpers.
4265
4959
  *
4266
- * See {@link https://pinia-colada.esm.dev/guide/mutations.html Mutations}
4960
+ * See {@link https://tanstack.com/query/v5/docs/framework/angular/reference/useMutation}
4267
4961
  *
4268
4962
  * Can be:
4269
4963
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -4285,10 +4979,15 @@ type UserConfig$11 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.
4285
4979
  * @default true
4286
4980
  */
4287
4981
  enabled?: boolean;
4982
+ /**
4983
+ * Whether to export generated symbols.
4984
+ *
4985
+ * @default true
4986
+ */
4987
+ exported?: boolean;
4288
4988
  /**
4289
4989
  * Custom function to generate metadata for the operation.
4290
4990
  * Can return any valid meta object that will be included in the generated mutation options.
4291
- *
4292
4991
  * @param operation - The operation object containing all available metadata
4293
4992
  * @returns A meta object with any properties you want to include
4294
4993
  *
@@ -4312,13 +5011,14 @@ type UserConfig$11 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.
4312
5011
  * Naming pattern for generated names.
4313
5012
  *
4314
5013
  * @default '{{name}}Mutation'
5014
+ * @see https://tanstack.com/query/v5/docs/framework/angular/reference/useMutation
4315
5015
  */
4316
5016
  name?: NameTransformer;
4317
5017
  };
4318
5018
  /**
4319
5019
  * Configuration for generated query keys.
4320
5020
  *
4321
- * See {@link https://pinia-colada.esm.dev/guide/query-keys.html Query Keys}
5021
+ * See {@link https://tanstack.com/query/v5/docs/framework/angular/reference/queryKey}
4322
5022
  *
4323
5023
  * Can be:
4324
5024
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -4344,6 +5044,7 @@ type UserConfig$11 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.
4344
5044
  * Naming pattern for generated names.
4345
5045
  *
4346
5046
  * @default '{{name}}QueryKey'
5047
+ * @see https://tanstack.com/query/v5/docs/framework/angular/reference/queryKey
4347
5048
  */
4348
5049
  name?: NameTransformer;
4349
5050
  /**
@@ -4357,7 +5058,7 @@ type UserConfig$11 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.
4357
5058
  /**
4358
5059
  * Configuration for generated query options helpers.
4359
5060
  *
4360
- * See {@link https://pinia-colada.esm.dev/guide/queries.html Queries}
5061
+ * See {@link https://tanstack.com/query/v5/docs/framework/angular/reference/queryOptions}
4361
5062
  *
4362
5063
  * Can be:
4363
5064
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -4379,10 +5080,15 @@ type UserConfig$11 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.
4379
5080
  * @default true
4380
5081
  */
4381
5082
  enabled?: boolean;
5083
+ /**
5084
+ * Whether to export generated symbols.
5085
+ *
5086
+ * @default true
5087
+ */
5088
+ exported?: boolean;
4382
5089
  /**
4383
5090
  * Custom function to generate metadata for the operation.
4384
5091
  * Can return any valid meta object that will be included in the generated query options.
4385
- *
4386
5092
  * @param operation - The operation object containing all available metadata
4387
5093
  * @returns A meta object with any properties you want to include
4388
5094
  *
@@ -4405,24 +5111,75 @@ type UserConfig$11 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.
4405
5111
  /**
4406
5112
  * Naming pattern for generated names.
4407
5113
  *
4408
- * @default '{{name}}Query'
5114
+ * @default '{{name}}Options'
5115
+ * @see https://tanstack.com/query/v5/docs/framework/angular/reference/queryOptions
4409
5116
  */
4410
5117
  name?: NameTransformer;
4411
5118
  };
4412
5119
  };
4413
- type Config$9 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
5120
+ type Config$9 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
4414
5121
  /**
4415
5122
  * Casing convention for generated names.
4416
5123
  */
4417
5124
  case: Casing;
5125
+ /**
5126
+ * Resolved configuration for generated infinite query key helpers.
5127
+ *
5128
+ * @see https://tanstack.com/query/v5/docs/framework/angular/reference/infiniteQueryOptions
5129
+ */
5130
+ infiniteQueryKeys: NamingOptions & FeatureToggle & {
5131
+ /**
5132
+ * Whether to include operation tags in infinite query keys.
5133
+ * This will make query keys larger but provides better cache invalidation capabilities.
5134
+ *
5135
+ * @default false
5136
+ */
5137
+ tags: boolean;
5138
+ };
5139
+ /**
5140
+ * Resolved configuration for generated infinite query options helpers.
5141
+ *
5142
+ * @see https://tanstack.com/query/v5/docs/framework/angular/reference/infiniteQueryOptions
5143
+ */
5144
+ infiniteQueryOptions: NamingOptions & FeatureToggle & {
5145
+ /**
5146
+ * Custom function to generate metadata for the operation.
5147
+ * Can return any valid meta object that will be included in the generated infinite query options.
5148
+ * @param operation - The operation object containing all available metadata
5149
+ * @returns A meta object with any properties you want to include
5150
+ *
5151
+ * @example
5152
+ * ```ts
5153
+ * meta: (operation) => ({
5154
+ * customField: operation.id,
5155
+ * isDeprecated: operation.deprecated,
5156
+ * tags: operation.tags,
5157
+ * customObject: {
5158
+ * method: operation.method,
5159
+ * path: operation.path
5160
+ * }
5161
+ * })
5162
+ * ```
5163
+ *
5164
+ * @default undefined
5165
+ */
5166
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5167
+ };
4418
5168
  /**
4419
5169
  * Resolved configuration for generated mutation options helpers.
5170
+ *
5171
+ * @see https://tanstack.com/query/v5/docs/framework/angular/reference/useMutation
4420
5172
  */
4421
5173
  mutationOptions: NamingOptions & FeatureToggle & {
5174
+ /**
5175
+ * Whether to export generated symbols.
5176
+ *
5177
+ * @default true
5178
+ */
5179
+ exported: boolean;
4422
5180
  /**
4423
5181
  * Custom function to generate metadata for the operation.
4424
5182
  * Can return any valid meta object that will be included in the generated mutation options.
4425
- *
4426
5183
  * @param operation - The operation object containing all available metadata
4427
5184
  * @returns A meta object with any properties you want to include
4428
5185
  *
@@ -4441,12 +5198,12 @@ type Config$9 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.Comme
4441
5198
  *
4442
5199
  * @default undefined
4443
5200
  */
4444
- meta: ((operation: IR$1.OperationObject) => Record<string, unknown>) | undefined;
5201
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
4445
5202
  };
4446
5203
  /**
4447
5204
  * Resolved configuration for generated query keys.
4448
5205
  *
4449
- * See {@link https://pinia-colada.esm.dev/guide/query-keys.html Query Keys}
5206
+ * @see https://tanstack.com/query/v5/docs/framework/angular/reference/queryKey
4450
5207
  */
4451
5208
  queryKeys: NamingOptions & FeatureToggle & {
4452
5209
  /**
@@ -4460,13 +5217,18 @@ type Config$9 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.Comme
4460
5217
  /**
4461
5218
  * Resolved configuration for generated query options helpers.
4462
5219
  *
4463
- * See {@link https://pinia-colada.esm.dev/guide/queries.html Queries}
5220
+ * @see https://tanstack.com/query/v5/docs/framework/angular/reference/queryOptions
4464
5221
  */
4465
5222
  queryOptions: NamingOptions & FeatureToggle & {
5223
+ /**
5224
+ * Whether to export generated symbols.
5225
+ *
5226
+ * @default true
5227
+ */
5228
+ exported: boolean;
4466
5229
  /**
4467
5230
  * Custom function to generate metadata for the operation.
4468
5231
  * Can return any valid meta object that will be included in the generated query options.
4469
- *
4470
5232
  * @param operation - The operation object containing all available metadata
4471
5233
  * @returns A meta object with any properties you want to include
4472
5234
  *
@@ -4485,13 +5247,13 @@ type Config$9 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.Comme
4485
5247
  *
4486
5248
  * @default undefined
4487
5249
  */
4488
- meta: ((operation: IR$1.OperationObject) => Record<string, unknown>) | undefined;
5250
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
4489
5251
  };
4490
5252
  };
4491
- type PiniaColadaPlugin = DefinePlugin$1<UserConfig$11, Config$9>;
5253
+ type TanStackAngularQueryPlugin = DefinePlugin$1<UserConfig$11, Config$9>;
4492
5254
  //#endregion
4493
- //#region src/plugins/@tanstack/angular-query-experimental/types.d.ts
4494
- type UserConfig$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
5255
+ //#region src/plugins/@tanstack/preact-query/types.d.ts
5256
+ type UserConfig$10 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
4495
5257
  /**
4496
5258
  * Casing convention for generated names.
4497
5259
  *
@@ -4501,7 +5263,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
4501
5263
  /**
4502
5264
  * Configuration for generated infinite query key helpers.
4503
5265
  *
4504
- * See {@link https://tanstack.com/query/v5/docs/framework/angular/reference/infiniteQueryOptions}
5266
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/infiniteQueryOptions infiniteQueryOptions}
4505
5267
  *
4506
5268
  * Can be:
4507
5269
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -4526,8 +5288,9 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
4526
5288
  /**
4527
5289
  * Naming pattern for generated names.
4528
5290
  *
5291
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/infiniteQueryOptions infiniteQueryOptions}
5292
+ *
4529
5293
  * @default '{{name}}InfiniteQueryKey'
4530
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/infiniteQueryOptions
4531
5294
  */
4532
5295
  name?: NameTransformer;
4533
5296
  /**
@@ -4541,7 +5304,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
4541
5304
  /**
4542
5305
  * Configuration for generated infinite query options helpers.
4543
5306
  *
4544
- * See {@link https://tanstack.com/query/v5/docs/framework/angular/reference/infiniteQueryOptions}
5307
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/infiniteQueryOptions infiniteQueryOptions}
4545
5308
  *
4546
5309
  * Can be:
4547
5310
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -4566,6 +5329,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
4566
5329
  /**
4567
5330
  * Custom function to generate metadata for the operation.
4568
5331
  * Can return any valid meta object that will be included in the generated infinite query options.
5332
+ *
4569
5333
  * @param operation - The operation object containing all available metadata
4570
5334
  * @returns A meta object with any properties you want to include
4571
5335
  *
@@ -4588,15 +5352,16 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
4588
5352
  /**
4589
5353
  * Naming pattern for generated names.
4590
5354
  *
5355
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/infiniteQueryOptions infiniteQueryOptions}
5356
+ *
4591
5357
  * @default '{{name}}InfiniteOptions'
4592
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/infiniteQueryOptions
4593
5358
  */
4594
5359
  name?: NameTransformer;
4595
5360
  };
4596
5361
  /**
4597
5362
  * Configuration for generated mutation options helpers.
4598
5363
  *
4599
- * See {@link https://tanstack.com/query/v5/docs/framework/angular/reference/useMutation}
5364
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/useMutation useMutation}
4600
5365
  *
4601
5366
  * Can be:
4602
5367
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -4618,9 +5383,16 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
4618
5383
  * @default true
4619
5384
  */
4620
5385
  enabled?: boolean;
5386
+ /**
5387
+ * Whether to export generated symbols.
5388
+ *
5389
+ * @default true
5390
+ */
5391
+ exported?: boolean;
4621
5392
  /**
4622
5393
  * Custom function to generate metadata for the operation.
4623
5394
  * Can return any valid meta object that will be included in the generated mutation options.
5395
+ *
4624
5396
  * @param operation - The operation object containing all available metadata
4625
5397
  * @returns A meta object with any properties you want to include
4626
5398
  *
@@ -4643,15 +5415,16 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
4643
5415
  /**
4644
5416
  * Naming pattern for generated names.
4645
5417
  *
5418
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/useMutation useMutation}
5419
+ *
4646
5420
  * @default '{{name}}Mutation'
4647
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/useMutation
4648
5421
  */
4649
5422
  name?: NameTransformer;
4650
5423
  };
4651
5424
  /**
4652
5425
  * Configuration for generated query keys.
4653
5426
  *
4654
- * See {@link https://tanstack.com/query/v5/docs/framework/angular/reference/queryKey}
5427
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/queryKey queryKey}
4655
5428
  *
4656
5429
  * Can be:
4657
5430
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -4676,8 +5449,9 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
4676
5449
  /**
4677
5450
  * Naming pattern for generated names.
4678
5451
  *
5452
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/guides/query-keys Query Keys}
5453
+ *
4679
5454
  * @default '{{name}}QueryKey'
4680
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/queryKey
4681
5455
  */
4682
5456
  name?: NameTransformer;
4683
5457
  /**
@@ -4691,7 +5465,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
4691
5465
  /**
4692
5466
  * Configuration for generated query options helpers.
4693
5467
  *
4694
- * See {@link https://tanstack.com/query/v5/docs/framework/angular/reference/queryOptions}
5468
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/queryOptions queryOptions}
4695
5469
  *
4696
5470
  * Can be:
4697
5471
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -4722,6 +5496,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
4722
5496
  /**
4723
5497
  * Custom function to generate metadata for the operation.
4724
5498
  * Can return any valid meta object that will be included in the generated query options.
5499
+ *
4725
5500
  * @param operation - The operation object containing all available metadata
4726
5501
  * @returns A meta object with any properties you want to include
4727
5502
  *
@@ -4744,13 +5519,82 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
4744
5519
  /**
4745
5520
  * Naming pattern for generated names.
4746
5521
  *
5522
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/queryOptions queryOptions}
5523
+ *
4747
5524
  * @default '{{name}}Options'
4748
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/queryOptions
5525
+ */
5526
+ name?: NameTransformer;
5527
+ };
5528
+ /**
5529
+ * Configuration for generated `useMutation()` function helpers.
5530
+ *
5531
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/useMutation useMutation}
5532
+ *
5533
+ * Can be:
5534
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
5535
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
5536
+ * - `object`: Full configuration object
5537
+ *
5538
+ * @default false
5539
+ */
5540
+ useMutation?: boolean | NameTransformer | {
5541
+ /**
5542
+ * Casing convention for generated names.
5543
+ *
5544
+ * @default 'camelCase'
5545
+ */
5546
+ case?: Casing;
5547
+ /**
5548
+ * Whether this feature is enabled.
5549
+ *
5550
+ * @default false
5551
+ */
5552
+ enabled?: boolean;
5553
+ /**
5554
+ * Naming pattern for generated names.
5555
+ *
5556
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/useMutation useMutation}
5557
+ *
5558
+ * @default 'use{{name}}Mutation'
5559
+ */
5560
+ name?: NameTransformer;
5561
+ };
5562
+ /**
5563
+ * Configuration for generated `useQuery()` function helpers.
5564
+ *
5565
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/useQuery useQuery}
5566
+ *
5567
+ * Can be:
5568
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
5569
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
5570
+ * - `object`: Full configuration object
5571
+ *
5572
+ * @default false
5573
+ */
5574
+ useQuery?: boolean | NameTransformer | {
5575
+ /**
5576
+ * Casing convention for generated names.
5577
+ *
5578
+ * @default 'camelCase'
5579
+ */
5580
+ case?: Casing;
5581
+ /**
5582
+ * Whether this feature is enabled.
5583
+ *
5584
+ * @default true
5585
+ */
5586
+ enabled?: boolean;
5587
+ /**
5588
+ * Naming pattern for generated names.
5589
+ *
5590
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/useQuery useQuery}
5591
+ *
5592
+ * @default 'use{{name}}Query'
4749
5593
  */
4750
5594
  name?: NameTransformer;
4751
5595
  };
4752
5596
  };
4753
- type Config$8 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
5597
+ type Config$8 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
4754
5598
  /**
4755
5599
  * Casing convention for generated names.
4756
5600
  */
@@ -4758,7 +5602,7 @@ type Config$8 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1
4758
5602
  /**
4759
5603
  * Resolved configuration for generated infinite query key helpers.
4760
5604
  *
4761
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/infiniteQueryOptions
5605
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/infiniteQueryOptions infiniteQueryOptions}
4762
5606
  */
4763
5607
  infiniteQueryKeys: NamingOptions & FeatureToggle & {
4764
5608
  /**
@@ -4772,12 +5616,13 @@ type Config$8 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1
4772
5616
  /**
4773
5617
  * Resolved configuration for generated infinite query options helpers.
4774
5618
  *
4775
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/infiniteQueryOptions
5619
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/infiniteQueryOptions infiniteQueryOptions}
4776
5620
  */
4777
5621
  infiniteQueryOptions: NamingOptions & FeatureToggle & {
4778
5622
  /**
4779
5623
  * Custom function to generate metadata for the operation.
4780
5624
  * Can return any valid meta object that will be included in the generated infinite query options.
5625
+ *
4781
5626
  * @param operation - The operation object containing all available metadata
4782
5627
  * @returns A meta object with any properties you want to include
4783
5628
  *
@@ -4801,12 +5646,19 @@ type Config$8 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1
4801
5646
  /**
4802
5647
  * Resolved configuration for generated mutation options helpers.
4803
5648
  *
4804
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/useMutation
5649
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/useMutation useMutation}
4805
5650
  */
4806
5651
  mutationOptions: NamingOptions & FeatureToggle & {
5652
+ /**
5653
+ * Whether to export generated symbols.
5654
+ *
5655
+ * @default true
5656
+ */
5657
+ exported: boolean;
4807
5658
  /**
4808
5659
  * Custom function to generate metadata for the operation.
4809
5660
  * Can return any valid meta object that will be included in the generated mutation options.
5661
+ *
4810
5662
  * @param operation - The operation object containing all available metadata
4811
5663
  * @returns A meta object with any properties you want to include
4812
5664
  *
@@ -4830,7 +5682,7 @@ type Config$8 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1
4830
5682
  /**
4831
5683
  * Resolved configuration for generated query keys.
4832
5684
  *
4833
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/queryKey
5685
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/guides/query-keys Query Keys}
4834
5686
  */
4835
5687
  queryKeys: NamingOptions & FeatureToggle & {
4836
5688
  /**
@@ -4844,7 +5696,7 @@ type Config$8 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1
4844
5696
  /**
4845
5697
  * Resolved configuration for generated query options helpers.
4846
5698
  *
4847
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/queryOptions
5699
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/queryOptions queryOptions}
4848
5700
  */
4849
5701
  queryOptions: NamingOptions & FeatureToggle & {
4850
5702
  /**
@@ -4856,6 +5708,7 @@ type Config$8 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1
4856
5708
  /**
4857
5709
  * Custom function to generate metadata for the operation.
4858
5710
  * Can return any valid meta object that will be included in the generated query options.
5711
+ *
4859
5712
  * @param operation - The operation object containing all available metadata
4860
5713
  * @returns A meta object with any properties you want to include
4861
5714
  *
@@ -4876,8 +5729,20 @@ type Config$8 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1
4876
5729
  */
4877
5730
  meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
4878
5731
  };
5732
+ /**
5733
+ * Configuration for generated `useMutation()` function helpers.
5734
+ *
5735
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/useMutation useMutation}
5736
+ */
5737
+ useMutation: NamingOptions & FeatureToggle;
5738
+ /**
5739
+ * Configuration for generated `useQuery()` function helpers.
5740
+ *
5741
+ * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/useQuery useQuery}
5742
+ */
5743
+ useQuery: NamingOptions & FeatureToggle;
4879
5744
  };
4880
- type TanStackAngularQueryPlugin = DefinePlugin$1<UserConfig$10, Config$8>;
5745
+ type TanStackPreactQueryPlugin = DefinePlugin$1<UserConfig$10, Config$8>;
4881
5746
  //#endregion
4882
5747
  //#region src/plugins/@tanstack/react-query/types.d.ts
4883
5748
  type UserConfig$9 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
@@ -5010,6 +5875,12 @@ type UserConfig$9 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Pl
5010
5875
  * @default true
5011
5876
  */
5012
5877
  enabled?: boolean;
5878
+ /**
5879
+ * Whether to export generated symbols.
5880
+ *
5881
+ * @default true
5882
+ */
5883
+ exported?: boolean;
5013
5884
  /**
5014
5885
  * Custom function to generate metadata for the operation.
5015
5886
  * Can return any valid meta object that will be included in the generated mutation options.
@@ -5146,6 +6017,40 @@ type UserConfig$9 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Pl
5146
6017
  */
5147
6018
  name?: NameTransformer;
5148
6019
  };
6020
+ /**
6021
+ * Configuration for generated `useMutation()` function helpers.
6022
+ *
6023
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
6024
+ *
6025
+ * Can be:
6026
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6027
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6028
+ * - `object`: Full configuration object
6029
+ *
6030
+ * @default false
6031
+ */
6032
+ useMutation?: boolean | NameTransformer | {
6033
+ /**
6034
+ * Casing convention for generated names.
6035
+ *
6036
+ * @default 'camelCase'
6037
+ */
6038
+ case?: Casing;
6039
+ /**
6040
+ * Whether this feature is enabled.
6041
+ *
6042
+ * @default false
6043
+ */
6044
+ enabled?: boolean;
6045
+ /**
6046
+ * Naming pattern for generated names.
6047
+ *
6048
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
6049
+ *
6050
+ * @default 'use{{name}}Mutation'
6051
+ */
6052
+ name?: NameTransformer;
6053
+ };
5149
6054
  /**
5150
6055
  * Configuration for generated `useQuery()` function helpers.
5151
6056
  *
@@ -5236,6 +6141,12 @@ type Config$7 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin
5236
6141
  * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
5237
6142
  */
5238
6143
  mutationOptions: NamingOptions & FeatureToggle & {
6144
+ /**
6145
+ * Whether to export generated symbols.
6146
+ *
6147
+ * @default true
6148
+ */
6149
+ exported: boolean;
5239
6150
  /**
5240
6151
  * Custom function to generate metadata for the operation.
5241
6152
  * Can return any valid meta object that will be included in the generated mutation options.
@@ -5310,6 +6221,12 @@ type Config$7 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin
5310
6221
  */
5311
6222
  meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5312
6223
  };
6224
+ /**
6225
+ * Configuration for generated `useMutation()` function helpers.
6226
+ *
6227
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
6228
+ */
6229
+ useMutation: NamingOptions & FeatureToggle;
5313
6230
  /**
5314
6231
  * Configuration for generated `useQuery()` function helpers.
5315
6232
  *
@@ -5448,6 +6365,12 @@ type UserConfig$8 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Pl
5448
6365
  * @default true
5449
6366
  */
5450
6367
  enabled?: boolean;
6368
+ /**
6369
+ * Whether to export generated symbols.
6370
+ *
6371
+ * @default true
6372
+ */
6373
+ exported?: boolean;
5451
6374
  /**
5452
6375
  * Custom function to generate metadata for the operation.
5453
6376
  * Can return any valid meta object that will be included in the generated mutation options.
@@ -5634,6 +6557,12 @@ type Config$6 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin
5634
6557
  * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createMutation
5635
6558
  */
5636
6559
  mutationOptions: NamingOptions & FeatureToggle & {
6560
+ /**
6561
+ * Whether to export generated symbols.
6562
+ *
6563
+ * @default true
6564
+ */
6565
+ exported: boolean;
5637
6566
  /**
5638
6567
  * Custom function to generate metadata for the operation.
5639
6568
  * Can return any valid meta object that will be included in the generated mutation options.
@@ -5837,6 +6766,12 @@ type UserConfig$7 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & P
5837
6766
  * @default true
5838
6767
  */
5839
6768
  enabled?: boolean;
6769
+ /**
6770
+ * Whether to export generated symbols.
6771
+ *
6772
+ * @default true
6773
+ */
6774
+ exported?: boolean;
5840
6775
  /**
5841
6776
  * Custom function to generate metadata for the operation.
5842
6777
  * Can return any valid meta object that will be included in the generated mutation options.
@@ -6023,6 +6958,12 @@ type Config$5 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugi
6023
6958
  * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createmutation
6024
6959
  */
6025
6960
  mutationOptions: NamingOptions & FeatureToggle & {
6961
+ /**
6962
+ * Whether to export generated symbols.
6963
+ *
6964
+ * @default true
6965
+ */
6966
+ exported: boolean;
6026
6967
  /**
6027
6968
  * Custom function to generate metadata for the operation.
6028
6969
  * Can return any valid meta object that will be included in the generated mutation options.
@@ -6227,6 +7168,12 @@ type UserConfig$6 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plug
6227
7168
  * @default true
6228
7169
  */
6229
7170
  enabled?: boolean;
7171
+ /**
7172
+ * Whether to export generated symbols.
7173
+ *
7174
+ * @default true
7175
+ */
7176
+ exported?: boolean;
6230
7177
  /**
6231
7178
  * Custom function to generate metadata for the operation.
6232
7179
  * Can return any valid meta object that will be included in the generated mutation options.
@@ -6416,6 +7363,12 @@ type Config$4 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1
6416
7363
  * @see https://tanstack.com/query/v5/docs/framework/vue/reference/useMutation
6417
7364
  */
6418
7365
  mutationOptions: NamingOptions & FeatureToggle & {
7366
+ /**
7367
+ * Whether to export generated symbols.
7368
+ *
7369
+ * @default true
7370
+ */
7371
+ exported: boolean;
6419
7372
  /**
6420
7373
  * Custom function to generate metadata for the operation.
6421
7374
  * Can return any valid meta object that will be included in the generated mutation options.
@@ -7429,8 +8382,7 @@ interface ValibotResult {
7429
8382
  /**
7430
8383
  * Finalized result after applyModifiers.
7431
8384
  */
7432
- interface ValibotFinal {
7433
- pipes: Pipes;
8385
+ interface ValibotFinal extends Pick<ValibotResult, 'pipes'> {
7434
8386
  /** Type annotation for schemas requiring explicit typing (e.g., lazy). */
7435
8387
  typeName?: string | ts.Identifier;
7436
8388
  }
@@ -7457,6 +8409,22 @@ type GetIntegerLimit = (format: string | undefined) => IntegerLimit | undefined;
7457
8409
  //#endregion
7458
8410
  //#region src/plugins/valibot/resolvers.d.ts
7459
8411
  type Resolvers$1 = Plugin$1.Resolvers<{
8412
+ /**
8413
+ * Resolver for array schemas.
8414
+ *
8415
+ * Allows customization of how array types are rendered.
8416
+ *
8417
+ * Returning `undefined` will execute the default resolver logic.
8418
+ */
8419
+ array?: (ctx: ArrayResolverContext$1) => PipeResult;
8420
+ /**
8421
+ * Resolver for boolean schemas.
8422
+ *
8423
+ * Allows customization of how boolean types are rendered.
8424
+ *
8425
+ * Returning `undefined` will execute the default resolver logic.
8426
+ */
8427
+ boolean?: (ctx: BooleanResolverContext$1) => PipeResult;
7460
8428
  /**
7461
8429
  * Resolver for enum schemas.
7462
8430
  *
@@ -7465,6 +8433,30 @@ type Resolvers$1 = Plugin$1.Resolvers<{
7465
8433
  * Returning `undefined` will execute the default resolver logic.
7466
8434
  */
7467
8435
  enum?: (ctx: EnumResolverContext$1) => PipeResult;
8436
+ /**
8437
+ * Resolver for intersection schemas.
8438
+ *
8439
+ * Allows customization of how intersection types are rendered.
8440
+ *
8441
+ * Returning `undefined` will execute the default resolver logic.
8442
+ */
8443
+ intersection?: (ctx: IntersectionResolverContext$1) => PipeResult;
8444
+ /**
8445
+ * Resolver for never schemas.
8446
+ *
8447
+ * Allows customization of how never types are rendered.
8448
+ *
8449
+ * Returning `undefined` will execute the default resolver logic.
8450
+ */
8451
+ never?: (ctx: NeverResolverContext$1) => PipeResult;
8452
+ /**
8453
+ * Resolver for null schemas.
8454
+ *
8455
+ * Allows customization of how null types are rendered.
8456
+ *
8457
+ * Returning `undefined` will execute the default resolver logic.
8458
+ */
8459
+ null?: (ctx: NullResolverContext$1) => PipeResult;
7468
8460
  /**
7469
8461
  * Resolver for number schemas.
7470
8462
  *
@@ -7489,6 +8481,38 @@ type Resolvers$1 = Plugin$1.Resolvers<{
7489
8481
  * Returning `undefined` will execute the default resolver logic.
7490
8482
  */
7491
8483
  string?: (ctx: StringResolverContext$1) => PipeResult;
8484
+ /**
8485
+ * Resolver for tuple schemas.
8486
+ *
8487
+ * Allows customization of how tuple types are rendered.
8488
+ *
8489
+ * Returning `undefined` will execute the default resolver logic.
8490
+ */
8491
+ tuple?: (ctx: TupleResolverContext$1) => PipeResult;
8492
+ /**
8493
+ * Resolver for undefined schemas.
8494
+ *
8495
+ * Allows customization of how undefined types are rendered.
8496
+ *
8497
+ * Returning `undefined` will execute the default resolver logic.
8498
+ */
8499
+ undefined?: (ctx: UndefinedResolverContext$1) => PipeResult;
8500
+ /**
8501
+ * Resolver for union schemas.
8502
+ *
8503
+ * Allows customization of how union types are rendered.
8504
+ *
8505
+ * Returning `undefined` will execute the default resolver logic.
8506
+ */
8507
+ union?: (ctx: UnionResolverContext$1) => PipeResult;
8508
+ /**
8509
+ * Resolver for unknown schemas.
8510
+ *
8511
+ * Allows customization of how unknown types are rendered.
8512
+ *
8513
+ * Returning `undefined` will execute the default resolver logic.
8514
+ */
8515
+ unknown?: (ctx: UnknownResolverContext$1) => PipeResult;
7492
8516
  /**
7493
8517
  * Resolvers for request and response validators.
7494
8518
  *
@@ -7512,6 +8536,14 @@ type Resolvers$1 = Plugin$1.Resolvers<{
7512
8536
  */
7513
8537
  response?: ValidatorResolver$1;
7514
8538
  };
8539
+ /**
8540
+ * Resolver for void schemas.
8541
+ *
8542
+ * Allows customization of how void types are rendered.
8543
+ *
8544
+ * Returning `undefined` will execute the default resolver logic.
8545
+ */
8546
+ void?: (ctx: VoidResolverContext$1) => PipeResult;
7515
8547
  }>;
7516
8548
  type ValidatorResolver$1 = (ctx: ValidatorResolverContext$1) => PipeResult | null | undefined;
7517
8549
  interface BaseContext$1 extends DollarTsDsl {
@@ -7539,9 +8571,36 @@ interface BaseContext$1 extends DollarTsDsl {
7539
8571
  v: Symbol;
7540
8572
  };
7541
8573
  }
8574
+ interface ArrayResolverContext$1 extends BaseContext$1 {
8575
+ applyModifiers: (result: ValibotResult, opts?: {
8576
+ optional?: boolean;
8577
+ }) => ValibotFinal;
8578
+ /**
8579
+ * Nodes used to build different parts of the result.
8580
+ */
8581
+ nodes: {
8582
+ base: (ctx: ArrayResolverContext$1) => PipeResult;
8583
+ length: (ctx: ArrayResolverContext$1) => PipeResult;
8584
+ maxLength: (ctx: ArrayResolverContext$1) => PipeResult;
8585
+ minLength: (ctx: ArrayResolverContext$1) => PipeResult;
8586
+ };
8587
+ schema: SchemaWithType<'array'>;
8588
+ walk: Walker<ValibotResult, ValibotPlugin['Instance']>;
8589
+ walkerCtx: SchemaVisitorContext<ValibotPlugin['Instance']>;
8590
+ }
8591
+ interface BooleanResolverContext$1 extends BaseContext$1 {
8592
+ /**
8593
+ * Nodes used to build different parts of the result.
8594
+ */
8595
+ nodes: {
8596
+ base: (ctx: BooleanResolverContext$1) => PipeResult;
8597
+ const: (ctx: BooleanResolverContext$1) => PipeResult;
8598
+ };
8599
+ schema: SchemaWithType<'boolean'>;
8600
+ }
7542
8601
  interface EnumResolverContext$1 extends BaseContext$1 {
7543
8602
  /**
7544
- * Nodes used to build different parts of the schema.
8603
+ * Nodes used to build different parts of the result.
7545
8604
  */
7546
8605
  nodes: {
7547
8606
  /**
@@ -7562,11 +8621,43 @@ interface EnumResolverContext$1 extends BaseContext$1 {
7562
8621
  isNullable: boolean;
7563
8622
  };
7564
8623
  };
7565
- schema: SchemaWithType<'enum'>;
8624
+ schema: SchemaWithType<'enum'>;
8625
+ }
8626
+ interface IntersectionResolverContext$1 extends BaseContext$1 {
8627
+ applyModifiers: (result: ValibotResult, opts?: {
8628
+ optional?: boolean;
8629
+ }) => ValibotFinal;
8630
+ childResults: Array<ValibotResult>;
8631
+ /**
8632
+ * Nodes used to build different parts of the result.
8633
+ */
8634
+ nodes: {
8635
+ base: (ctx: IntersectionResolverContext$1) => PipeResult;
8636
+ };
8637
+ parentSchema: IR$1.SchemaObject;
8638
+ schema: IR$1.SchemaObject;
8639
+ }
8640
+ interface NeverResolverContext$1 extends BaseContext$1 {
8641
+ /**
8642
+ * Nodes used to build different parts of the result.
8643
+ */
8644
+ nodes: {
8645
+ base: (ctx: NeverResolverContext$1) => PipeResult;
8646
+ };
8647
+ schema: SchemaWithType<'never'>;
8648
+ }
8649
+ interface NullResolverContext$1 extends BaseContext$1 {
8650
+ /**
8651
+ * Nodes used to build different parts of the result.
8652
+ */
8653
+ nodes: {
8654
+ base: (ctx: NullResolverContext$1) => PipeResult;
8655
+ };
8656
+ schema: SchemaWithType<'null'>;
7566
8657
  }
7567
8658
  interface NumberResolverContext$1 extends BaseContext$1 {
7568
8659
  /**
7569
- * Nodes used to build different parts of the schema.
8660
+ * Nodes used to build different parts of the result.
7570
8661
  */
7571
8662
  nodes: {
7572
8663
  base: (ctx: NumberResolverContext$1) => PipeResult;
@@ -7590,7 +8681,7 @@ interface ObjectResolverContext$1 extends BaseContext$1 {
7590
8681
  optional?: boolean;
7591
8682
  }) => ValibotFinal;
7592
8683
  /**
7593
- * Nodes used to build different parts of the schema.
8684
+ * Nodes used to build different parts of the result.
7594
8685
  */
7595
8686
  nodes: {
7596
8687
  additionalProperties: (ctx: ObjectResolverContext$1) => Pipe | null | undefined;
@@ -7598,20 +8689,12 @@ interface ObjectResolverContext$1 extends BaseContext$1 {
7598
8689
  shape: (ctx: ObjectResolverContext$1) => ReturnType<typeof $.object>;
7599
8690
  };
7600
8691
  schema: SchemaWithType<'object'>;
7601
- /**
7602
- * Utility functions for object schema processing.
7603
- */
7604
- utils: {
7605
- ast: Partial<{
7606
- hasLazy: boolean;
7607
- }>;
7608
- };
7609
8692
  walk: Walker<ValibotResult, ValibotPlugin['Instance']>;
7610
8693
  walkerCtx: SchemaVisitorContext<ValibotPlugin['Instance']>;
7611
8694
  }
7612
8695
  interface StringResolverContext$1 extends BaseContext$1 {
7613
8696
  /**
7614
- * Nodes used to build different parts of the schema.
8697
+ * Nodes used to build different parts of the result.
7615
8698
  */
7616
8699
  nodes: {
7617
8700
  base: (ctx: StringResolverContext$1) => PipeResult;
@@ -7624,6 +8707,54 @@ interface StringResolverContext$1 extends BaseContext$1 {
7624
8707
  };
7625
8708
  schema: SchemaWithType<'string'>;
7626
8709
  }
8710
+ interface TupleResolverContext$1 extends BaseContext$1 {
8711
+ applyModifiers: (result: ValibotResult, opts?: {
8712
+ optional?: boolean;
8713
+ }) => ValibotFinal;
8714
+ /**
8715
+ * Nodes used to build different parts of the result.
8716
+ */
8717
+ nodes: {
8718
+ base: (ctx: TupleResolverContext$1) => PipeResult;
8719
+ const: (ctx: TupleResolverContext$1) => PipeResult;
8720
+ };
8721
+ schema: SchemaWithType<'tuple'>;
8722
+ walk: Walker<ValibotResult, ValibotPlugin['Instance']>;
8723
+ walkerCtx: SchemaVisitorContext<ValibotPlugin['Instance']>;
8724
+ }
8725
+ interface UndefinedResolverContext$1 extends BaseContext$1 {
8726
+ /**
8727
+ * Nodes used to build different parts of the result.
8728
+ */
8729
+ nodes: {
8730
+ base: (ctx: UndefinedResolverContext$1) => PipeResult;
8731
+ };
8732
+ schema: SchemaWithType<'undefined'>;
8733
+ }
8734
+ interface UnionResolverContext$1 extends BaseContext$1 {
8735
+ applyModifiers: (result: ValibotResult, opts?: {
8736
+ optional?: boolean;
8737
+ }) => ValibotFinal;
8738
+ childResults: Array<ValibotResult>;
8739
+ /**
8740
+ * Nodes used to build different parts of the result.
8741
+ */
8742
+ nodes: {
8743
+ base: (ctx: UnionResolverContext$1) => PipeResult;
8744
+ };
8745
+ parentSchema: IR$1.SchemaObject;
8746
+ schema: IR$1.SchemaObject;
8747
+ schemas: ReadonlyArray<IR$1.SchemaObject>;
8748
+ }
8749
+ interface UnknownResolverContext$1 extends BaseContext$1 {
8750
+ /**
8751
+ * Nodes used to build different parts of the result.
8752
+ */
8753
+ nodes: {
8754
+ base: (ctx: UnknownResolverContext$1) => PipeResult;
8755
+ };
8756
+ schema: SchemaWithType<'unknown'>;
8757
+ }
7627
8758
  interface ValidatorResolverContext$1 extends BaseContext$1 {
7628
8759
  operation: IR$1.OperationObject;
7629
8760
  /**
@@ -7633,6 +8764,15 @@ interface ValidatorResolverContext$1 extends BaseContext$1 {
7633
8764
  schema: Symbol;
7634
8765
  };
7635
8766
  }
8767
+ interface VoidResolverContext$1 extends BaseContext$1 {
8768
+ /**
8769
+ * Nodes used to build different parts of the result.
8770
+ */
8771
+ nodes: {
8772
+ base: (ctx: VoidResolverContext$1) => PipeResult;
8773
+ };
8774
+ schema: SchemaWithType<'void'>;
8775
+ }
7636
8776
  //#endregion
7637
8777
  //#region src/plugins/valibot/types.d.ts
7638
8778
  type UserConfig$2 = Plugin$1.Name<'valibot'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & Resolvers$1 & {
@@ -7680,9 +8820,21 @@ type UserConfig$2 = Plugin$1.Name<'valibot'> & Plugin$1.Hooks & Plugin$1.UserCom
7680
8820
  * with some additional metadata for documentation, code generation, AI
7681
8821
  * structured outputs, form validation, and other purposes.
7682
8822
  *
8823
+ * Can be:
8824
+ * - `boolean`: Shorthand for the default metadata builder. When `true`,
8825
+ * attaches `{ description }` from the schema (if present) to the
8826
+ * generated Valibot schema via the metadata action.
8827
+ * - `function`: Custom metadata builder. Receives `{ $, node, schema }`,
8828
+ * where `node` is a pre-initialized `$.object()` node. Add properties to
8829
+ * `node` to populate the metadata object. Return value is ignored; an
8830
+ * empty `node` skips metadata for that schema.
8831
+ *
7683
8832
  * @default false
7684
8833
  */
7685
- metadata?: boolean;
8834
+ metadata?: boolean | ((ctx: DollarTsDsl & {
8835
+ node: ReturnType<typeof $.object>;
8836
+ schema: IR$1.SchemaObject;
8837
+ }) => void);
7686
8838
  /**
7687
8839
  * Configuration for request-specific Valibot schemas.
7688
8840
  *
@@ -7788,7 +8940,10 @@ type Config$1 = Plugin$1.Name<'valibot'> & Plugin$1.Hooks & Plugin$1.Comments &
7788
8940
  /** Configuration for reusable schema definitions. */
7789
8941
  definitions: NamingOptions & FeatureToggle;
7790
8942
  /** Enable Valibot metadata support? */
7791
- metadata: boolean;
8943
+ metadata: boolean | ((ctx: DollarTsDsl & {
8944
+ node: ReturnType<typeof $.object>;
8945
+ schema: IR$1.SchemaObject;
8946
+ }) => void);
7792
8947
  /** Configuration for request-specific Valibot schemas. */
7793
8948
  requests: NamingOptions & FeatureToggle;
7794
8949
  /** Configuration for response-specific Valibot schemas. */
@@ -7798,56 +8953,54 @@ type Config$1 = Plugin$1.Name<'valibot'> & Plugin$1.Hooks & Plugin$1.Comments &
7798
8953
  };
7799
8954
  type ValibotPlugin = DefinePlugin$1<UserConfig$2, Config$1, IApi$1>;
7800
8955
  //#endregion
8956
+ //#region src/plugins/zod/shared/chain.d.ts
8957
+ type Chain = ReturnType<typeof $.call | typeof $.expr>;
8958
+ type ChainResult = Chain | undefined;
8959
+ //#endregion
7801
8960
  //#region src/plugins/zod/shared/types.d.ts
7802
- type Ast = {
7803
- anyType?: string;
7804
- expression: ReturnType<typeof $.expr | typeof $.call>;
7805
- hasLazyExpression?: boolean;
7806
- typeName?: string | ts.Identifier;
7807
- };
7808
- type IrSchemaToAstOptions = {
8961
+ type ValidatorArgs = {
8962
+ operation: IR$1.OperationObject;
7809
8963
  /** The plugin instance. */
7810
8964
  plugin: ZodPlugin['Instance'];
7811
- /** The plugin state references. */
7812
- state: Refs<PluginState>;
7813
- walk: Walker<ZodSchemaResult, ZodPlugin['Instance']>;
7814
- };
7815
- type PluginState = Pick<Required<SymbolMeta>, 'path'> & Pick<Partial<SymbolMeta>, 'tags'> & {
7816
- anyType?: string;
7817
- hasLazyExpression: boolean;
7818
8965
  };
7819
8966
  type TypeOptions = {
7820
- /** Configuration for TypeScript type generation from Zod schemas. */
7821
8967
  types: {
7822
- /** Configuration for `infer` types. */
7823
8968
  infer: NamingOptions & FeatureToggle;
7824
8969
  };
7825
8970
  };
7826
- type ValidatorArgs = {
7827
- operation: IR$1.OperationObject;
7828
- plugin: ZodPlugin['Instance'];
7829
- };
7830
8971
  /**
7831
- * The result from schema walking.
8972
+ * Metadata that flows through schema walking.
7832
8973
  */
7833
- interface ZodSchemaResult {
7834
- /** Default value from schema, if any. */
8974
+ interface ZodMeta {
8975
+ /** Default value from schema. */
7835
8976
  default?: unknown;
7836
- /** The Zod expression AST. */
7837
- expression: {
7838
- expression: ReturnType<typeof $.expr | typeof $.call>;
7839
- };
7840
- /** The original schema format (for BigInt coercion). */
8977
+ /** Original format (for BigInt coercion). */
7841
8978
  format?: string;
7842
- /** Whether any child contains a lazy expression. */
7843
- hasLazyExpression?: boolean;
7844
- /** Whether THIS result is itself lazy (not just inherited). */
7845
- isLazy?: boolean;
8979
+ /** Whether this or any child contains a lazy reference. */
8980
+ hasLazy: boolean;
8981
+ /** Whether this schema itself is emitted as lazy. */
8982
+ isLazy: boolean;
8983
+ /** Whether this schema resolves to an object shape. */
8984
+ isObject?: boolean;
7846
8985
  /** Does this schema explicitly allow null? */
7847
8986
  nullable: boolean;
7848
8987
  /** Is this schema read-only? */
7849
8988
  readonly: boolean;
7850
8989
  }
8990
+ /**
8991
+ * Result from walking a schema node.
8992
+ */
8993
+ interface ZodResult {
8994
+ expression: Chain;
8995
+ meta: ZodMeta;
8996
+ }
8997
+ /**
8998
+ * Finalized result after applyModifiers.
8999
+ */
9000
+ interface ZodFinal extends Pick<ZodResult, 'expression'> {
9001
+ /** Type annotation for schemas requiring explicit typing (e.g., lazy). */
9002
+ typeName?: string | ts.Identifier;
9003
+ }
7851
9004
  //#endregion
7852
9005
  //#region src/plugins/zod/api.d.ts
7853
9006
  type IApi = {
@@ -7855,11 +9008,24 @@ type IApi = {
7855
9008
  createResponseValidator: (args: ValidatorArgs) => ReturnType<typeof $.func> | undefined;
7856
9009
  };
7857
9010
  //#endregion
7858
- //#region src/plugins/zod/shared/chain.d.ts
7859
- type Chain = ReturnType<typeof $.call | typeof $.expr>;
7860
- //#endregion
7861
- //#region src/plugins/zod/resolvers/types.d.ts
9011
+ //#region src/plugins/zod/resolvers.d.ts
7862
9012
  type Resolvers = Plugin$1.Resolvers<{
9013
+ /**
9014
+ * Resolver for array schemas.
9015
+ *
9016
+ * Allows customization of how array types are rendered.
9017
+ *
9018
+ * Returning `undefined` will execute the default resolver logic.
9019
+ */
9020
+ array?: (ctx: ArrayResolverContext) => ChainResult;
9021
+ /**
9022
+ * Resolver for boolean schemas.
9023
+ *
9024
+ * Allows customization of how boolean types are rendered.
9025
+ *
9026
+ * Returning `undefined` will execute the default resolver logic.
9027
+ */
9028
+ boolean?: (ctx: BooleanResolverContext) => ChainResult;
7863
9029
  /**
7864
9030
  * Resolver for enum schemas.
7865
9031
  *
@@ -7867,7 +9033,31 @@ type Resolvers = Plugin$1.Resolvers<{
7867
9033
  *
7868
9034
  * Returning `undefined` will execute the default resolver logic.
7869
9035
  */
7870
- enum?: (ctx: EnumResolverContext) => Chain | undefined;
9036
+ enum?: (ctx: EnumResolverContext) => ChainResult;
9037
+ /**
9038
+ * Resolver for intersection schemas.
9039
+ *
9040
+ * Allows customization of how intersection types are rendered.
9041
+ *
9042
+ * Returning `undefined` will execute the default resolver logic.
9043
+ */
9044
+ intersection?: (ctx: IntersectionResolverContext) => ChainResult;
9045
+ /**
9046
+ * Resolver for never schemas.
9047
+ *
9048
+ * Allows customization of how never types are rendered.
9049
+ *
9050
+ * Returning `undefined` will execute the default resolver logic.
9051
+ */
9052
+ never?: (ctx: NeverResolverContext) => ChainResult;
9053
+ /**
9054
+ * Resolver for null schemas.
9055
+ *
9056
+ * Allows customization of how null types are rendered.
9057
+ *
9058
+ * Returning `undefined` will execute the default resolver logic.
9059
+ */
9060
+ null?: (ctx: NullResolverContext) => ChainResult;
7871
9061
  /**
7872
9062
  * Resolver for number schemas.
7873
9063
  *
@@ -7875,7 +9065,7 @@ type Resolvers = Plugin$1.Resolvers<{
7875
9065
  *
7876
9066
  * Returning `undefined` will execute the default resolver logic.
7877
9067
  */
7878
- number?: (ctx: NumberResolverContext) => Chain | undefined;
9068
+ number?: (ctx: NumberResolverContext) => ChainResult;
7879
9069
  /**
7880
9070
  * Resolver for object schemas.
7881
9071
  *
@@ -7883,7 +9073,7 @@ type Resolvers = Plugin$1.Resolvers<{
7883
9073
  *
7884
9074
  * Returning `undefined` will execute the default resolver logic.
7885
9075
  */
7886
- object?: (ctx: ObjectResolverContext) => Chain | undefined;
9076
+ object?: (ctx: ObjectResolverContext) => ChainResult;
7887
9077
  /**
7888
9078
  * Resolver for string schemas.
7889
9079
  *
@@ -7891,7 +9081,39 @@ type Resolvers = Plugin$1.Resolvers<{
7891
9081
  *
7892
9082
  * Returning `undefined` will execute the default resolver logic.
7893
9083
  */
7894
- string?: (ctx: StringResolverContext) => Chain | undefined;
9084
+ string?: (ctx: StringResolverContext) => ChainResult;
9085
+ /**
9086
+ * Resolver for tuple schemas.
9087
+ *
9088
+ * Allows customization of how tuple types are rendered.
9089
+ *
9090
+ * Returning `undefined` will execute the default resolver logic.
9091
+ */
9092
+ tuple?: (ctx: TupleResolverContext) => ChainResult;
9093
+ /**
9094
+ * Resolver for undefined schemas.
9095
+ *
9096
+ * Allows customization of how undefined types are rendered.
9097
+ *
9098
+ * Returning `undefined` will execute the default resolver logic.
9099
+ */
9100
+ undefined?: (ctx: UndefinedResolverContext) => ChainResult;
9101
+ /**
9102
+ * Resolver for union schemas.
9103
+ *
9104
+ * Allows customization of how union types are rendered.
9105
+ *
9106
+ * Returning `undefined` will execute the default resolver logic.
9107
+ */
9108
+ union?: (ctx: UnionResolverContext) => ChainResult;
9109
+ /**
9110
+ * Resolver for unknown schemas.
9111
+ *
9112
+ * Allows customization of how unknown types are rendered.
9113
+ *
9114
+ * Returning `undefined` will execute the default resolver logic.
9115
+ */
9116
+ unknown?: (ctx: UnknownResolverContext) => ChainResult;
7895
9117
  /**
7896
9118
  * Resolvers for request and response validators.
7897
9119
  *
@@ -7915,9 +9137,17 @@ type Resolvers = Plugin$1.Resolvers<{
7915
9137
  */
7916
9138
  response?: ValidatorResolver;
7917
9139
  };
9140
+ /**
9141
+ * Resolver for void schemas.
9142
+ *
9143
+ * Allows customization of how void types are rendered.
9144
+ *
9145
+ * Returning `undefined` will execute the default resolver logic.
9146
+ */
9147
+ void?: (ctx: VoidResolverContext) => ChainResult;
7918
9148
  }>;
7919
9149
  type ValidatorResolver = (ctx: ValidatorResolverContext) => MaybeArray<TsDsl<ts.Statement>> | null | undefined;
7920
- type BaseContext = DollarTsDsl & Pick<IrSchemaToAstOptions, 'plugin'> & {
9150
+ interface BaseContext extends DollarTsDsl {
7921
9151
  /**
7922
9152
  * Functions for working with chains.
7923
9153
  */
@@ -7925,28 +9155,79 @@ type BaseContext = DollarTsDsl & Pick<IrSchemaToAstOptions, 'plugin'> & {
7925
9155
  /**
7926
9156
  * The current chain.
7927
9157
  *
7928
- * In Zod, this represents a chain of call expressions ("chains")
7929
- * being assembled to form a schema definition.
9158
+ * In Zod, this represents a chain of method calls being assembled
9159
+ * to form a schema definition (e.g., `z.string().min(1).max(10)`).
7930
9160
  *
7931
- * Each chain can be extended, modified, or replaced to customize
9161
+ * Each method can be extended, modified, or replaced to customize
7932
9162
  * the resulting schema.
7933
9163
  */
7934
9164
  current: Chain;
7935
9165
  };
9166
+ /** The plugin instance. */
9167
+ plugin: ZodPlugin['Instance'];
7936
9168
  /**
7937
9169
  * Provides access to commonly used symbols within the plugin.
7938
9170
  */
7939
9171
  symbols: {
7940
9172
  z: Symbol;
7941
9173
  };
7942
- };
9174
+ }
9175
+ interface ArrayResolverContext extends BaseContext {
9176
+ applyModifiers: (result: ZodResult, opts?: {
9177
+ optional?: boolean;
9178
+ }) => ZodFinal;
9179
+ /**
9180
+ * Child results from processing array items.
9181
+ */
9182
+ childResults: Array<ZodResult>;
9183
+ /**
9184
+ * Nodes used to build different parts of the result.
9185
+ */
9186
+ nodes: {
9187
+ /**
9188
+ * Returns the base array expression (z.array(...)).
9189
+ */
9190
+ base: (ctx: ArrayResolverContext) => Chain;
9191
+ /**
9192
+ * Returns a length constraint (when minItems === maxItems), if applicable.
9193
+ */
9194
+ length: (ctx: ArrayResolverContext) => ChainResult;
9195
+ /**
9196
+ * Returns a maxItems constraint, if applicable.
9197
+ */
9198
+ maxLength: (ctx: ArrayResolverContext) => ChainResult;
9199
+ /**
9200
+ * Returns a minItems constraint, if applicable.
9201
+ */
9202
+ minLength: (ctx: ArrayResolverContext) => ChainResult;
9203
+ };
9204
+ schema: SchemaWithType<'array'>;
9205
+ walk: Walker<ZodResult, ZodPlugin['Instance']>;
9206
+ walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
9207
+ }
9208
+ interface BooleanResolverContext extends BaseContext {
9209
+ /**
9210
+ * Nodes used to build different parts of the result.
9211
+ */
9212
+ nodes: {
9213
+ /**
9214
+ * Returns the base boolean expression (z.boolean()).
9215
+ */
9216
+ base: (ctx: BooleanResolverContext) => Chain;
9217
+ /**
9218
+ * Returns a literal expression for the const value, if present.
9219
+ */
9220
+ const: (ctx: BooleanResolverContext) => ChainResult;
9221
+ };
9222
+ schema: SchemaWithType<'boolean'>;
9223
+ }
7943
9224
  interface EnumResolverContext extends BaseContext {
7944
9225
  /**
7945
- * Nodes used to build different parts of the enum schema.
9226
+ * Nodes used to build different parts of the result.
7946
9227
  */
7947
9228
  nodes: {
7948
9229
  /**
7949
- * Returns the base enum expression (z.enum([...]) or z.union([...]) for mixed types).
9230
+ * Returns the base enum expression (z.enum([...]) or z.union([...])).
7950
9231
  */
7951
9232
  base: (ctx: EnumResolverContext) => Chain;
7952
9233
  /**
@@ -7954,7 +9235,7 @@ interface EnumResolverContext extends BaseContext {
7954
9235
  */
7955
9236
  items: (ctx: EnumResolverContext) => {
7956
9237
  /**
7957
- * Whether all enum items are strings (determines if z.enum can be used).
9238
+ * Whether all enum members are strings.
7958
9239
  */
7959
9240
  allStrings: boolean;
7960
9241
  /**
@@ -7966,84 +9247,214 @@ interface EnumResolverContext extends BaseContext {
7966
9247
  */
7967
9248
  isNullable: boolean;
7968
9249
  /**
7969
- * z.literal(...) expressions for each non-null enum value.
9250
+ * Zod literal expressions for each enum member.
7970
9251
  */
7971
9252
  literalMembers: Array<Chain>;
7972
9253
  };
7973
9254
  };
7974
9255
  schema: SchemaWithType<'enum'>;
9256
+ }
9257
+ interface IntersectionResolverContext extends BaseContext {
9258
+ childResults: Array<ZodResult>;
7975
9259
  /**
7976
- * Utility functions for enum schema processing.
9260
+ * Nodes used to build different parts of the result.
7977
9261
  */
7978
- utils: {
7979
- ast: Partial<Omit<Ast, 'typeName'>>;
7980
- state: Refs<PluginState>;
9262
+ nodes: {
9263
+ /**
9264
+ * Returns the base intersection expression.
9265
+ */
9266
+ base: (ctx: IntersectionResolverContext) => Chain;
9267
+ };
9268
+ parentSchema: IR$1.SchemaObject;
9269
+ schema: IR$1.SchemaObject;
9270
+ walk: Walker<ZodResult, ZodPlugin['Instance']>;
9271
+ walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
9272
+ }
9273
+ interface NeverResolverContext extends BaseContext {
9274
+ /**
9275
+ * Nodes used to build different parts of the result.
9276
+ */
9277
+ nodes: {
9278
+ /**
9279
+ * Returns the base never expression (z.never()).
9280
+ */
9281
+ base: (ctx: NeverResolverContext) => Chain;
9282
+ };
9283
+ schema: SchemaWithType<'never'>;
9284
+ }
9285
+ interface NullResolverContext extends BaseContext {
9286
+ /**
9287
+ * Nodes used to build different parts of the result.
9288
+ */
9289
+ nodes: {
9290
+ /**
9291
+ * Returns the base null expression (z.null()).
9292
+ */
9293
+ base: (ctx: NullResolverContext) => Chain;
7981
9294
  };
9295
+ schema: SchemaWithType<'null'>;
7982
9296
  }
7983
9297
  interface NumberResolverContext extends BaseContext {
7984
9298
  /**
7985
- * Nodes used to build different parts of the number schema.
9299
+ * Nodes used to build different parts of the result.
7986
9300
  */
7987
9301
  nodes: {
9302
+ /**
9303
+ * Returns the base number expression (z.number() or z.coerce.number()).
9304
+ */
7988
9305
  base: (ctx: NumberResolverContext) => Chain;
7989
- const: (ctx: NumberResolverContext) => Chain | undefined;
7990
- max: (ctx: NumberResolverContext) => Chain | undefined;
7991
- min: (ctx: NumberResolverContext) => Chain | undefined;
9306
+ /**
9307
+ * Returns a literal expression for the const value, if present.
9308
+ */
9309
+ const: (ctx: NumberResolverContext) => ChainResult;
9310
+ /**
9311
+ * Returns the maximum value constraint.
9312
+ */
9313
+ max: (ctx: NumberResolverContext) => ChainResult;
9314
+ /**
9315
+ * Returns the minimum value constraint.
9316
+ */
9317
+ min: (ctx: NumberResolverContext) => ChainResult;
7992
9318
  };
7993
9319
  schema: SchemaWithType<'integer' | 'number'>;
7994
9320
  /**
7995
9321
  * Utility functions for number schema processing.
7996
9322
  */
7997
9323
  utils: {
7998
- ast: Partial<Omit<Ast, 'typeName'>>;
7999
9324
  getIntegerLimit: GetIntegerLimit;
8000
9325
  maybeBigInt: MaybeBigInt;
8001
9326
  shouldCoerceToBigInt: ShouldCoerceToBigInt;
8002
- state: Refs<PluginState>;
8003
9327
  };
8004
9328
  }
8005
9329
  interface ObjectResolverContext extends BaseContext {
8006
- applyModifiers: (result: ZodSchemaResult, opts: {
9330
+ /**
9331
+ * Child results from processing object properties.
9332
+ * Used for metadata composition.
9333
+ */
9334
+ _childResults: Array<ZodResult>;
9335
+ applyModifiers: (result: ZodResult, opts: {
8007
9336
  optional?: boolean;
8008
- }) => Ast;
9337
+ }) => ZodFinal;
8009
9338
  /**
8010
- * Nodes used to build different parts of the object schema.
9339
+ * Nodes used to build different parts of the result.
8011
9340
  */
8012
9341
  nodes: {
8013
9342
  /**
8014
- * If `additionalProperties` is `false` or `{ type: 'never' }`, returns `null`
8015
- * to indicate no additional properties are allowed.
9343
+ * Returns the additional properties expression, if any.
8016
9344
  */
8017
9345
  additionalProperties: (ctx: ObjectResolverContext) => Chain | null | undefined;
9346
+ /**
9347
+ * Returns the base object expression (z.object({...}) or z.record(...)).
9348
+ */
8018
9349
  base: (ctx: ObjectResolverContext) => Chain;
9350
+ /**
9351
+ * Returns the object shape (property definitions).
9352
+ */
8019
9353
  shape: (ctx: ObjectResolverContext) => ReturnType<typeof $.object>;
8020
9354
  };
8021
9355
  schema: SchemaWithType<'object'>;
8022
- /**
8023
- * Utility functions for object schema processing.
8024
- */
8025
- utils: {
8026
- ast: Partial<Omit<Ast, 'typeName'>>;
8027
- state: Refs<PluginState>;
8028
- };
8029
- walk: Walker<ZodSchemaResult, ZodPlugin['Instance']>;
9356
+ walk: Walker<ZodResult, ZodPlugin['Instance']>;
8030
9357
  walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
8031
9358
  }
8032
9359
  interface StringResolverContext extends BaseContext {
8033
9360
  /**
8034
- * Nodes used to build different parts of the string schema.
9361
+ * Nodes used to build different parts of the result.
8035
9362
  */
8036
9363
  nodes: {
9364
+ /**
9365
+ * Returns the base string expression (z.string()).
9366
+ */
8037
9367
  base: (ctx: StringResolverContext) => Chain;
8038
- const: (ctx: StringResolverContext) => Chain | undefined;
8039
- format: (ctx: StringResolverContext) => Chain | undefined;
8040
- length: (ctx: StringResolverContext) => Chain | undefined;
8041
- maxLength: (ctx: StringResolverContext) => Chain | undefined;
8042
- minLength: (ctx: StringResolverContext) => Chain | undefined;
8043
- pattern: (ctx: StringResolverContext) => Chain | undefined;
9368
+ /**
9369
+ * Returns a literal expression for the const value, if present.
9370
+ */
9371
+ const: (ctx: StringResolverContext) => ChainResult;
9372
+ /**
9373
+ * Returns a format validation expression, if applicable.
9374
+ */
9375
+ format: (ctx: StringResolverContext) => ChainResult;
9376
+ /**
9377
+ * Returns a length constraint (when min === max), if applicable.
9378
+ */
9379
+ length: (ctx: StringResolverContext) => ChainResult;
9380
+ /**
9381
+ * Returns a maxLength constraint, if applicable.
9382
+ */
9383
+ maxLength: (ctx: StringResolverContext) => ChainResult;
9384
+ /**
9385
+ * Returns a minLength constraint, if applicable.
9386
+ */
9387
+ minLength: (ctx: StringResolverContext) => ChainResult;
9388
+ /**
9389
+ * Returns a pattern (regex) constraint, if applicable.
9390
+ */
9391
+ pattern: (ctx: StringResolverContext) => ChainResult;
8044
9392
  };
8045
9393
  schema: SchemaWithType<'string'>;
8046
9394
  }
9395
+ interface TupleResolverContext extends BaseContext {
9396
+ applyModifiers: (result: ZodResult, opts?: {
9397
+ optional?: boolean;
9398
+ }) => ZodFinal;
9399
+ childResults: Array<ZodResult>;
9400
+ /**
9401
+ * Nodes used to build different parts of the result.
9402
+ */
9403
+ nodes: {
9404
+ /**
9405
+ * Returns the base tuple expression (z.tuple([...])).
9406
+ */
9407
+ base: (ctx: TupleResolverContext) => Chain;
9408
+ /**
9409
+ * Returns a literal expression for the const value, if present.
9410
+ */
9411
+ const: (ctx: TupleResolverContext) => ChainResult;
9412
+ };
9413
+ schema: SchemaWithType<'tuple'>;
9414
+ walk: Walker<ZodResult, ZodPlugin['Instance']>;
9415
+ walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
9416
+ }
9417
+ interface UndefinedResolverContext extends BaseContext {
9418
+ /**
9419
+ * Nodes used to build different parts of the result.
9420
+ */
9421
+ nodes: {
9422
+ /**
9423
+ * Returns the base undefined expression (z.undefined()).
9424
+ */
9425
+ base: (ctx: UndefinedResolverContext) => Chain;
9426
+ };
9427
+ schema: SchemaWithType<'undefined'>;
9428
+ }
9429
+ interface UnionResolverContext extends BaseContext {
9430
+ childResults: Array<ZodResult>;
9431
+ /**
9432
+ * Nodes used to build different parts of the result.
9433
+ */
9434
+ nodes: {
9435
+ /**
9436
+ * Returns the base union expression.
9437
+ */
9438
+ base: (ctx: UnionResolverContext) => Chain;
9439
+ };
9440
+ parentSchema: IR$1.SchemaObject;
9441
+ schema: IR$1.SchemaObject;
9442
+ schemas: ReadonlyArray<IR$1.SchemaObject>;
9443
+ walk: Walker<ZodResult, ZodPlugin['Instance']>;
9444
+ walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
9445
+ }
9446
+ interface UnknownResolverContext extends BaseContext {
9447
+ /**
9448
+ * Nodes used to build different parts of the result.
9449
+ */
9450
+ nodes: {
9451
+ /**
9452
+ * Returns the base unknown expression (z.unknown()).
9453
+ */
9454
+ base: (ctx: UnknownResolverContext) => Chain;
9455
+ };
9456
+ schema: SchemaWithType<'unknown'>;
9457
+ }
8047
9458
  interface ValidatorResolverContext extends BaseContext {
8048
9459
  operation: IR$1.OperationObject;
8049
9460
  /**
@@ -8053,6 +9464,18 @@ interface ValidatorResolverContext extends BaseContext {
8053
9464
  schema: Symbol;
8054
9465
  };
8055
9466
  }
9467
+ interface VoidResolverContext extends BaseContext {
9468
+ /**
9469
+ * Nodes used to build different parts of the result.
9470
+ */
9471
+ nodes: {
9472
+ /**
9473
+ * Returns the base void expression (z.void()).
9474
+ */
9475
+ base: (ctx: VoidResolverContext) => Chain;
9476
+ };
9477
+ schema: SchemaWithType<'void'>;
9478
+ }
8056
9479
  //#endregion
8057
9480
  //#region src/plugins/zod/types.d.ts
8058
9481
  type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & Resolvers & {
@@ -8174,9 +9597,22 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
8174
9597
  * some additional metadata for documentation, code generation, AI
8175
9598
  * structured outputs, form validation, and other purposes.
8176
9599
  *
9600
+ * Can be:
9601
+ * - `boolean`: Shorthand for the default metadata builder. When `true`,
9602
+ * attaches `{ description }` from the schema (if present) to the
9603
+ * generated Zod schema via the metadata API.
9604
+ * - `function`: Custom metadata builder. Receives `{ $, node, schema }`,
9605
+ * where `node` is a pre-initialized `$.object().pretty()` node. Add
9606
+ * properties to `node` to populate the metadata object. Return value is
9607
+ * ignored; an empty `node` skips metadata for that schema.
9608
+ * Note: **not supported for Zod 3** (use `boolean` only).
9609
+ *
8177
9610
  * @default false
8178
9611
  */
8179
- metadata?: boolean;
9612
+ metadata?: boolean | ((ctx: DollarTsDsl & {
9613
+ node: ReturnType<typeof $.object>;
9614
+ schema: IR$1.SchemaObject;
9615
+ }) => void);
8180
9616
  /**
8181
9617
  * Configuration for request-specific Zod schemas.
8182
9618
  *
@@ -8433,7 +9869,10 @@ type Config = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin
8433
9869
  /** Configuration for reusable schema definitions. */
8434
9870
  definitions: NamingOptions & FeatureToggle & TypeOptions;
8435
9871
  /** Enable Zod metadata support? */
8436
- metadata: boolean;
9872
+ metadata: boolean | ((ctx: DollarTsDsl & {
9873
+ node: ReturnType<typeof $.object>;
9874
+ schema: IR$1.SchemaObject;
9875
+ }) => void);
8437
9876
  /** Configuration for request-specific Zod schemas. */
8438
9877
  requests: NamingOptions & FeatureToggle & TypeOptions;
8439
9878
  /** Configuration for response-specific Zod schemas. */
@@ -8457,7 +9896,7 @@ type ZodPlugin = DefinePlugin$1<UserConfig$1, Config, IApi>;
8457
9896
  *
8458
9897
  * @param userConfig User provided {@link UserConfig} configuration(s).
8459
9898
  */
8460
- declare function createClient(userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: Logger$1): Promise<ReadonlyArray<Context>>;
9899
+ declare function createClient(userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: any): Promise<ReadonlyArray<Context>>;
8461
9900
  //#endregion
8462
9901
  //#region src/config/plugins.d.ts
8463
9902
  /**
@@ -8531,6 +9970,7 @@ declare module '@hey-api/shared' {
8531
9970
  '@hey-api/typescript': HeyApiTypeScriptPlugin['Types'];
8532
9971
  '@pinia/colada': PiniaColadaPlugin['Types'];
8533
9972
  '@tanstack/angular-query-experimental': TanStackAngularQueryPlugin['Types'];
9973
+ '@tanstack/preact-query': TanStackPreactQueryPlugin['Types'];
8534
9974
  '@tanstack/react-query': TanStackReactQueryPlugin['Types'];
8535
9975
  '@tanstack/solid-query': TanStackSolidQueryPlugin['Types'];
8536
9976
  '@tanstack/svelte-query': TanStackSvelteQueryPlugin['Types'];