@hey-api/openapi-ts 0.94.0 → 0.94.2
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/README.md +1 -1
- package/dist/index.d.mts +1688 -672
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{init-PHWYaLgi.mjs → init-C6327prb.mjs} +4400 -2867
- package/dist/init-C6327prb.mjs.map +1 -0
- package/dist/internal.d.mts +1 -1
- package/dist/internal.d.mts.map +1 -1
- package/dist/internal.mjs +1 -1
- package/dist/run.mjs +5 -4
- package/dist/run.mjs.map +1 -1
- package/dist/{src-1D7PrOtb.mjs → src-CdNoenvJ.mjs} +13 -5
- package/dist/src-CdNoenvJ.mjs.map +1 -0
- package/dist/{types-Ba27ofyy.d.mts → types-CR-cSsLu.d.mts} +3 -3
- package/dist/types-CR-cSsLu.d.mts.map +1 -0
- package/package.json +8 -7
- package/dist/init-PHWYaLgi.mjs.map +0 -1
- package/dist/src-1D7PrOtb.mjs.map +0 -1
- package/dist/types-Ba27ofyy.d.mts.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as UserConfig } from "./types-
|
|
2
|
-
import { AnalysisContext, BindingKind, ExportModule, File, FromRef, ImportModule, Language, Logger, Node, NodeName as NodeName$1, NodeNameSanitizer, NodeRelationship, NodeScope, Ref,
|
|
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,
|
|
1
|
+
import { n as UserConfig } from "./types-CR-cSsLu.mjs";
|
|
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";
|
|
4
4
|
import ts from "typescript";
|
|
5
5
|
import { AnyString, LazyOrAsync, MaybeArray, MaybeFunc } from "@hey-api/types";
|
|
6
6
|
import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
|
|
@@ -9,6 +9,7 @@ import { AxiosError, AxiosInstance, AxiosRequestHeaders, AxiosResponse, AxiosSta
|
|
|
9
9
|
import { AsyncDataOptions, UseFetchOptions, useAsyncData, useFetch, useLazyAsyncData, useLazyFetch } from "nuxt/app";
|
|
10
10
|
import { Ref as Ref$1 } from "vue";
|
|
11
11
|
import { FetchOptions, ResponseType, ofetch } from "ofetch";
|
|
12
|
+
import ky, { Options } from "ky";
|
|
12
13
|
|
|
13
14
|
//#region src/plugins/@angular/common/httpRequests/types.d.ts
|
|
14
15
|
interface UserHttpRequestsConfig {
|
|
@@ -371,7 +372,7 @@ type HttpResourcesConfig = FeatureToggle & {
|
|
|
371
372
|
};
|
|
372
373
|
//#endregion
|
|
373
374
|
//#region src/plugins/@angular/common/types.d.ts
|
|
374
|
-
type UserConfig$
|
|
375
|
+
type UserConfig$26 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
375
376
|
/**
|
|
376
377
|
* Options for generating HTTP Request instances.
|
|
377
378
|
*
|
|
@@ -385,7 +386,7 @@ type UserConfig$25 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$
|
|
|
385
386
|
*/
|
|
386
387
|
httpResources?: boolean | OperationsStrategy | UserHttpResourcesConfig;
|
|
387
388
|
};
|
|
388
|
-
type Config$
|
|
389
|
+
type Config$23 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
389
390
|
/**
|
|
390
391
|
* Options for generating HTTP Request instances.
|
|
391
392
|
*/
|
|
@@ -395,12 +396,12 @@ type Config$22 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.Co
|
|
|
395
396
|
*/
|
|
396
397
|
httpResources: HttpResourcesConfig;
|
|
397
398
|
};
|
|
398
|
-
type AngularCommonPlugin = DefinePlugin$1<UserConfig$
|
|
399
|
+
type AngularCommonPlugin = DefinePlugin$1<UserConfig$26, Config$23>;
|
|
399
400
|
//#endregion
|
|
400
401
|
//#region src/ts-dsl/mixins/types.d.ts
|
|
401
402
|
type BaseCtor<T extends ts.Node> = abstract new (...args: Array<any>) => TsDsl<T>;
|
|
402
403
|
type DropFirst<T extends Array<any>> = T extends [any, ...infer Rest] ? Rest : never;
|
|
403
|
-
type MixinCtor<T extends BaseCtor<any>, K
|
|
404
|
+
type MixinCtor<T extends BaseCtor<any>, K> = abstract new (...args: Array<any>) => InstanceType<T> & K;
|
|
404
405
|
//#endregion
|
|
405
406
|
//#region src/ts-dsl/mixins/type-args.d.ts
|
|
406
407
|
type Arg$1 = NodeName$1 | MaybeTsDsl<TypeTsDsl>;
|
|
@@ -705,7 +706,7 @@ declare class TypeIdxTsDsl extends Mixed$43 {
|
|
|
705
706
|
//#endregion
|
|
706
707
|
//#region src/ts-dsl/type/operator.d.ts
|
|
707
708
|
type Op = ts.SyntaxKind.KeyOfKeyword | ts.SyntaxKind.ReadonlyKeyword | ts.SyntaxKind.UniqueKeyword;
|
|
708
|
-
type Type$
|
|
709
|
+
type Type$3 = string | MaybeTsDsl<ts.TypeNode>;
|
|
709
710
|
type TypeOperatorCtor = () => TypeOperatorTsDsl;
|
|
710
711
|
declare const Mixed$42: abstract new () => TsDsl<ts.TypeOperatorNode>;
|
|
711
712
|
/**
|
|
@@ -724,23 +725,23 @@ declare class TypeOperatorTsDsl extends Mixed$42 {
|
|
|
724
725
|
readonly '~dsl' = "TypeOperatorTsDsl";
|
|
725
726
|
scope: NodeScope;
|
|
726
727
|
protected _op?: Op;
|
|
727
|
-
protected _type?: Type$
|
|
728
|
+
protected _type?: Type$3;
|
|
728
729
|
analyze(ctx: AnalysisContext): void;
|
|
729
730
|
/** Shorthand: builds `keyof T`. */
|
|
730
|
-
keyof(type: Type$
|
|
731
|
+
keyof(type: Type$3): this;
|
|
731
732
|
/** Sets the operator explicitly. */
|
|
732
733
|
operator(op: Op): this;
|
|
733
734
|
/** Shorthand: builds `readonly T`. */
|
|
734
|
-
readonly(type: Type$
|
|
735
|
+
readonly(type: Type$3): this;
|
|
735
736
|
/** Sets the target type of the operator. */
|
|
736
|
-
type(type: Type$
|
|
737
|
+
type(type: Type$3): this;
|
|
737
738
|
/** Shorthand: builds `unique T`. */
|
|
738
|
-
unique(type: Type$
|
|
739
|
+
unique(type: Type$3): this;
|
|
739
740
|
toAst(): ts.TypeOperatorNode;
|
|
740
741
|
/** Throws if required fields are not set. */
|
|
741
742
|
$validate(): asserts this is this & {
|
|
742
743
|
_op: Op;
|
|
743
|
-
_type: Type$
|
|
744
|
+
_type: Type$3;
|
|
744
745
|
};
|
|
745
746
|
private missingRequiredCalls;
|
|
746
747
|
}
|
|
@@ -761,35 +762,22 @@ declare class TypeQueryTsDsl extends Mixed$41 {
|
|
|
761
762
|
//#region src/ts-dsl/utils/factories.d.ts
|
|
762
763
|
type Ctor = (...args: Array<any>) => any;
|
|
763
764
|
type Factory<T extends Ctor> = {
|
|
764
|
-
(...args: Parameters<T>): ReturnType<T>;
|
|
765
|
-
/** Sets the implementation of this factory. */
|
|
765
|
+
(...args: Parameters<T>): ReturnType<T>; /** Sets the implementation of this factory. */
|
|
766
766
|
set(fn: T): void;
|
|
767
767
|
};
|
|
768
768
|
declare const f: {
|
|
769
|
-
/** Factory for creating `as` type assertion expressions (e.g. `value as Type`). */
|
|
770
|
-
|
|
771
|
-
/** Factory for creating
|
|
772
|
-
|
|
773
|
-
/** Factory for creating
|
|
774
|
-
|
|
775
|
-
/** Factory for creating function or method call expressions (e.g. `fn(arg)`). */
|
|
776
|
-
call: Factory<CallCtor>;
|
|
777
|
-
/** Factory for creating new expressions (e.g. `new ClassName()`). */
|
|
778
|
-
new: Factory<NewCtor>;
|
|
779
|
-
/** Factory for creating return statements. */
|
|
780
|
-
return: Factory<ReturnCtor>;
|
|
781
|
-
/** Factories for creating type nodes. */
|
|
769
|
+
/** Factory for creating `as` type assertion expressions (e.g. `value as Type`). */as: Factory<AsCtor>; /** Factory for creating property access expressions (e.g. `obj.foo`). */
|
|
770
|
+
attr: Factory<AttrCtor>; /** Factory for creating await expressions (e.g. `await promise`). */
|
|
771
|
+
await: Factory<AwaitCtor>; /** Factory for creating function or method call expressions (e.g. `fn(arg)`). */
|
|
772
|
+
call: Factory<CallCtor>; /** Factory for creating new expressions (e.g. `new ClassName()`). */
|
|
773
|
+
new: Factory<NewCtor>; /** Factory for creating return statements. */
|
|
774
|
+
return: Factory<ReturnCtor>; /** Factories for creating type nodes. */
|
|
782
775
|
type: {
|
|
783
|
-
/** Factory for creating basic type references or type expressions (e.g. Foo or Foo<T>). */
|
|
784
|
-
|
|
785
|
-
/** Factory for creating
|
|
786
|
-
idx: Factory<TypeIdxCtor>;
|
|
787
|
-
/** Factory for creating type operator nodes (e.g. `readonly T`, `keyof T`, `unique T`). */
|
|
788
|
-
operator: Factory<TypeOperatorCtor>;
|
|
789
|
-
/** Factory for creating type query nodes (e.g. `typeof Foo`). */
|
|
776
|
+
/** Factory for creating basic type references or type expressions (e.g. Foo or Foo<T>). */expr: Factory<TypeExprCtor>; /** Factory for creating indexed-access types (e.g. `Foo<T>[K]`). */
|
|
777
|
+
idx: Factory<TypeIdxCtor>; /** Factory for creating type operator nodes (e.g. `readonly T`, `keyof T`, `unique T`). */
|
|
778
|
+
operator: Factory<TypeOperatorCtor>; /** Factory for creating type query nodes (e.g. `typeof Foo`). */
|
|
790
779
|
query: Factory<TypeQueryCtor>;
|
|
791
|
-
};
|
|
792
|
-
/** Factory for creating `typeof` expressions (e.g. `typeof value`). */
|
|
780
|
+
}; /** Factory for creating `typeof` expressions (e.g. `typeof value`). */
|
|
793
781
|
typeofExpr: Factory<TypeOfExprCtor>;
|
|
794
782
|
};
|
|
795
783
|
//#endregion
|
|
@@ -836,8 +824,7 @@ interface ExampleOptions {
|
|
|
836
824
|
importName?: string;
|
|
837
825
|
/** Setup to run before calling the example. */
|
|
838
826
|
importSetup?: MaybeFunc<(ctx: DollarTsDsl & {
|
|
839
|
-
/** The imported expression. */
|
|
840
|
-
node: TsDsl<ts.Expression>;
|
|
827
|
+
/** The imported expression. */node: TsDsl<ts.Expression>;
|
|
841
828
|
}) => TsDsl<ts.Expression>>;
|
|
842
829
|
/** Module to import from. */
|
|
843
830
|
moduleName?: string;
|
|
@@ -901,15 +888,10 @@ declare abstract class TsDsl<T extends ts.Node = ts.Node> implements Node<T> {
|
|
|
901
888
|
$if<T extends TsDsl, V, R extends TsDsl = T>(this: T, value: V, ifTrue: () => R | void, ifFalse?: () => R | void): R | T;
|
|
902
889
|
/** Access patterns for this node. */
|
|
903
890
|
toAccessNode?(node: this, options: AccessOptions, ctx: {
|
|
904
|
-
/** The full chain. */
|
|
905
|
-
|
|
906
|
-
/**
|
|
907
|
-
|
|
908
|
-
/** Is this the leaf node? */
|
|
909
|
-
isLeaf: boolean;
|
|
910
|
-
/** Is this the root node? */
|
|
911
|
-
isRoot: boolean;
|
|
912
|
-
/** Total length of the chain. */
|
|
891
|
+
/** The full chain. */chain: ReadonlyArray<TsDsl>; /** Position in the chain (0 = root). */
|
|
892
|
+
index: number; /** Is this the leaf node? */
|
|
893
|
+
isLeaf: boolean; /** Is this the root node? */
|
|
894
|
+
isRoot: boolean; /** Total length of the chain. */
|
|
913
895
|
length: number;
|
|
914
896
|
}): TsDsl | undefined;
|
|
915
897
|
protected $maybeId<T extends string | ts.Expression>(expr: T): T extends string ? ts.Identifier : T;
|
|
@@ -1021,16 +1003,64 @@ declare class NoteTsDsl extends TsDsl<ts.Node> {
|
|
|
1021
1003
|
toAst(): any;
|
|
1022
1004
|
}
|
|
1023
1005
|
//#endregion
|
|
1006
|
+
//#region src/ts-dsl/mixins/value.d.ts
|
|
1007
|
+
type ValueExpr = string | MaybeTsDsl<ts.Expression>;
|
|
1008
|
+
interface ValueMethods extends Node {
|
|
1009
|
+
$value(): ts.Expression | undefined;
|
|
1010
|
+
/** Sets the initializer expression (e.g. `= expr`). */
|
|
1011
|
+
assign(expr: ValueExpr): this;
|
|
1012
|
+
}
|
|
1013
|
+
//#endregion
|
|
1014
|
+
//#region src/ts-dsl/mixins/pattern.d.ts
|
|
1015
|
+
interface PatternMethods extends Node {
|
|
1016
|
+
/** Renders the pattern into a `BindingName`. */
|
|
1017
|
+
$pattern(): ts.BindingName | undefined;
|
|
1018
|
+
/** Defines an array binding pattern. */
|
|
1019
|
+
array(...props: ReadonlyArray<string> | [ReadonlyArray<string>]): this;
|
|
1020
|
+
/** Defines an object binding pattern. */
|
|
1021
|
+
object(...props: ReadonlyArray<MaybeArray<string> | Record<string, string>>): this;
|
|
1022
|
+
/** Adds a spread element (e.g. `...args`, `...options`) to the pattern. */
|
|
1023
|
+
spread(name: string): this;
|
|
1024
|
+
}
|
|
1025
|
+
//#endregion
|
|
1026
|
+
//#region src/ts-dsl/mixins/decorator.d.ts
|
|
1027
|
+
interface DecoratorMethods extends Node {
|
|
1028
|
+
/** Renders the decorators into an array of `ts.Decorator`s. */
|
|
1029
|
+
$decorators(): ReadonlyArray<ts.Decorator>;
|
|
1030
|
+
/** Adds a decorator (e.g. `@sealed({ in: 'root' })`). */
|
|
1031
|
+
decorator(name: NodeName$1 | MaybeTsDsl<ts.Expression>, ...args: ReadonlyArray<string | MaybeTsDsl<ts.Expression>>): this;
|
|
1032
|
+
}
|
|
1033
|
+
//#endregion
|
|
1034
|
+
//#region src/ts-dsl/decl/param.d.ts
|
|
1035
|
+
type ParamName = NodeName$1 | ParamFn;
|
|
1036
|
+
type ParamFn = (p: ParamTsDsl) => void;
|
|
1037
|
+
type ParamCtor = (name: ParamName, fn?: ParamFn) => ParamTsDsl;
|
|
1038
|
+
declare const Mixed$37: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ParameterDeclaration>, ValueMethods>, PatternMethods>, OptionalMethods>, DecoratorMethods>;
|
|
1039
|
+
declare class ParamTsDsl extends Mixed$37 {
|
|
1040
|
+
readonly '~dsl' = "ParamTsDsl";
|
|
1041
|
+
protected _type?: TypeTsDsl;
|
|
1042
|
+
constructor(name: ParamName, fn?: ParamFn);
|
|
1043
|
+
analyze(ctx: AnalysisContext): void;
|
|
1044
|
+
/** Returns true when all required builder calls are present. */
|
|
1045
|
+
get isValid(): boolean;
|
|
1046
|
+
/** Sets the parameter type. */
|
|
1047
|
+
type(type: string | TypeTsDsl): this;
|
|
1048
|
+
toAst(): ts.ParameterDeclaration;
|
|
1049
|
+
$validate(): asserts this;
|
|
1050
|
+
private missingRequiredCalls;
|
|
1051
|
+
}
|
|
1052
|
+
//#endregion
|
|
1024
1053
|
//#region src/ts-dsl/type/param.d.ts
|
|
1025
1054
|
type TypeParamExpr = NodeName$1 | boolean | MaybeTsDsl<TypeTsDsl>;
|
|
1026
|
-
declare const Mixed$
|
|
1027
|
-
declare class TypeParamTsDsl extends Mixed$
|
|
1055
|
+
declare const Mixed$36: abstract new () => TsDsl<ts.TypeParameterDeclaration>;
|
|
1056
|
+
declare class TypeParamTsDsl extends Mixed$36 {
|
|
1028
1057
|
readonly '~dsl' = "TypeParamTsDsl";
|
|
1029
1058
|
scope: NodeScope;
|
|
1030
1059
|
protected constraint?: Ref<TypeParamExpr>;
|
|
1031
1060
|
protected defaultValue?: Ref<TypeParamExpr>;
|
|
1032
1061
|
constructor(name?: NodeName$1, fn?: (name: TypeParamTsDsl) => void);
|
|
1033
1062
|
analyze(ctx: AnalysisContext): void;
|
|
1063
|
+
/** Sets the parameter default value. */
|
|
1034
1064
|
default(value: TypeParamExpr): this;
|
|
1035
1065
|
extends(constraint: TypeParamExpr): this;
|
|
1036
1066
|
toAst(): ts.TypeParameterDeclaration;
|
|
@@ -1155,26 +1185,10 @@ interface DocMethods extends Node {
|
|
|
1155
1185
|
doc(lines?: DocLines, fn?: DocFn): this;
|
|
1156
1186
|
}
|
|
1157
1187
|
//#endregion
|
|
1158
|
-
//#region src/ts-dsl/mixins/decorator.d.ts
|
|
1159
|
-
interface DecoratorMethods extends Node {
|
|
1160
|
-
/** Renders the decorators into an array of `ts.Decorator`s. */
|
|
1161
|
-
$decorators(): ReadonlyArray<ts.Decorator>;
|
|
1162
|
-
/** Adds a decorator (e.g. `@sealed({ in: 'root' })`). */
|
|
1163
|
-
decorator(name: NodeName$1 | MaybeTsDsl<ts.Expression>, ...args: ReadonlyArray<string | MaybeTsDsl<ts.Expression>>): this;
|
|
1164
|
-
}
|
|
1165
|
-
//#endregion
|
|
1166
|
-
//#region src/ts-dsl/mixins/value.d.ts
|
|
1167
|
-
type ValueExpr = string | MaybeTsDsl<ts.Expression>;
|
|
1168
|
-
interface ValueMethods extends Node {
|
|
1169
|
-
$value(): ts.Expression | undefined;
|
|
1170
|
-
/** Sets the initializer expression (e.g. `= expr`). */
|
|
1171
|
-
assign(expr: ValueExpr): this;
|
|
1172
|
-
}
|
|
1173
|
-
//#endregion
|
|
1174
1188
|
//#region src/ts-dsl/decl/field.d.ts
|
|
1175
1189
|
type FieldType = NodeName$1 | TypeTsDsl;
|
|
1176
|
-
declare const Mixed$
|
|
1177
|
-
declare class FieldTsDsl extends Mixed$
|
|
1190
|
+
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>;
|
|
1191
|
+
declare class FieldTsDsl extends Mixed$35 {
|
|
1178
1192
|
readonly '~dsl' = "FieldTsDsl";
|
|
1179
1193
|
readonly nameSanitizer: (name: string) => string;
|
|
1180
1194
|
protected _type?: TypeTsDsl;
|
|
@@ -1185,35 +1199,6 @@ declare class FieldTsDsl extends Mixed$36 {
|
|
|
1185
1199
|
toAst(): ts.PropertyDeclaration;
|
|
1186
1200
|
}
|
|
1187
1201
|
//#endregion
|
|
1188
|
-
//#region src/ts-dsl/mixins/pattern.d.ts
|
|
1189
|
-
interface PatternMethods extends Node {
|
|
1190
|
-
/** Renders the pattern into a `BindingName`. */
|
|
1191
|
-
$pattern(): ts.BindingName | undefined;
|
|
1192
|
-
/** Defines an array binding pattern. */
|
|
1193
|
-
array(...props: ReadonlyArray<string> | [ReadonlyArray<string>]): this;
|
|
1194
|
-
/** Defines an object binding pattern. */
|
|
1195
|
-
object(...props: ReadonlyArray<MaybeArray<string> | Record<string, string>>): this;
|
|
1196
|
-
/** Adds a spread element (e.g. `...args`, `...options`) to the pattern. */
|
|
1197
|
-
spread(name: string): this;
|
|
1198
|
-
}
|
|
1199
|
-
//#endregion
|
|
1200
|
-
//#region src/ts-dsl/decl/param.d.ts
|
|
1201
|
-
type ParamCtor = (name: NodeName$1 | ((p: ParamTsDsl) => void), fn?: (p: ParamTsDsl) => void) => ParamTsDsl;
|
|
1202
|
-
declare const Mixed$35: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ParameterDeclaration>, ValueMethods>, PatternMethods>, OptionalMethods>, DecoratorMethods>;
|
|
1203
|
-
declare class ParamTsDsl extends Mixed$35 {
|
|
1204
|
-
readonly '~dsl' = "ParamTsDsl";
|
|
1205
|
-
protected _type?: TypeTsDsl;
|
|
1206
|
-
constructor(name: NodeName$1 | ((p: ParamTsDsl) => void), fn?: (p: ParamTsDsl) => void);
|
|
1207
|
-
analyze(ctx: AnalysisContext): void;
|
|
1208
|
-
/** Returns true when all required builder calls are present. */
|
|
1209
|
-
get isValid(): boolean;
|
|
1210
|
-
/** Sets the parameter type. */
|
|
1211
|
-
type(type: string | TypeTsDsl): this;
|
|
1212
|
-
toAst(): ts.ParameterDeclaration;
|
|
1213
|
-
$validate(): asserts this;
|
|
1214
|
-
private missingRequiredCalls;
|
|
1215
|
-
}
|
|
1216
|
-
//#endregion
|
|
1217
1202
|
//#region src/ts-dsl/mixins/param.d.ts
|
|
1218
1203
|
interface ParamMethods extends Node {
|
|
1219
1204
|
/** Renders the parameters into an array of `ParameterDeclaration`s. */
|
|
@@ -1701,11 +1686,11 @@ declare class VarTsDsl extends Mixed$11 {
|
|
|
1701
1686
|
}
|
|
1702
1687
|
//#endregion
|
|
1703
1688
|
//#region src/ts-dsl/token.d.ts
|
|
1704
|
-
declare class TokenTsDsl<K
|
|
1689
|
+
declare class TokenTsDsl<K extends ts.SyntaxKind = never> extends TsDsl<ts.Token<K>> {
|
|
1705
1690
|
readonly '~dsl' = "TokenTsDsl";
|
|
1706
|
-
protected _kind?: K
|
|
1691
|
+
protected _kind?: K;
|
|
1707
1692
|
/** Sets the token kind */
|
|
1708
|
-
kind(kind: K
|
|
1693
|
+
kind(kind: K): this;
|
|
1709
1694
|
/** Creates `-` */
|
|
1710
1695
|
minus(): TokenTsDsl<ts.SyntaxKind.MinusToken>;
|
|
1711
1696
|
/** Creates `?` (optional) */
|
|
@@ -1718,9 +1703,9 @@ declare class TokenTsDsl<K$1 extends ts.SyntaxKind = never> extends TsDsl<ts.Tok
|
|
|
1718
1703
|
readonly(): TokenTsDsl<ts.SyntaxKind.ReadonlyKeyword>;
|
|
1719
1704
|
/** Creates `...` (spread / rest) */
|
|
1720
1705
|
spread(): TokenTsDsl<ts.SyntaxKind.DotDotDotToken>;
|
|
1721
|
-
toAst(): ts.Token<K
|
|
1706
|
+
toAst(): ts.Token<K>;
|
|
1722
1707
|
$validate(): asserts this is this & {
|
|
1723
|
-
_kind: K
|
|
1708
|
+
_kind: K;
|
|
1724
1709
|
};
|
|
1725
1710
|
private missingRequiredCalls;
|
|
1726
1711
|
/** Returns true when all required builder calls are present. */
|
|
@@ -1749,15 +1734,15 @@ declare class TypeAliasTsDsl extends Mixed$10 {
|
|
|
1749
1734
|
}
|
|
1750
1735
|
//#endregion
|
|
1751
1736
|
//#region src/ts-dsl/type/and.d.ts
|
|
1752
|
-
type Type$
|
|
1737
|
+
type Type$2 = NodeName$1 | ts.TypeNode | TypeTsDsl;
|
|
1753
1738
|
declare const Mixed$9: abstract new () => TsDsl<ts.IntersectionTypeNode>;
|
|
1754
1739
|
declare class TypeAndTsDsl extends Mixed$9 {
|
|
1755
1740
|
readonly '~dsl' = "TypeAndTsDsl";
|
|
1756
1741
|
scope: NodeScope;
|
|
1757
|
-
protected _types: Array<Ref<Type$
|
|
1758
|
-
constructor(...nodes: Array<Type$
|
|
1742
|
+
protected _types: Array<Ref<Type$2>>;
|
|
1743
|
+
constructor(...nodes: Array<Type$2>);
|
|
1759
1744
|
analyze(ctx: AnalysisContext): void;
|
|
1760
|
-
types(...nodes: Array<Type$
|
|
1745
|
+
types(...nodes: Array<Type$2>): this;
|
|
1761
1746
|
toAst(): ts.IntersectionTypeNode;
|
|
1762
1747
|
}
|
|
1763
1748
|
//#endregion
|
|
@@ -1779,8 +1764,8 @@ declare const Mixed$7: abstract new () => TsDsl<ts.LiteralTypeNode>;
|
|
|
1779
1764
|
declare class TypeLiteralTsDsl extends Mixed$7 {
|
|
1780
1765
|
readonly '~dsl' = "TypeLiteralTsDsl";
|
|
1781
1766
|
scope: NodeScope;
|
|
1782
|
-
protected value:
|
|
1783
|
-
constructor(value:
|
|
1767
|
+
protected value: LiteralValue;
|
|
1768
|
+
constructor(value: LiteralValue);
|
|
1784
1769
|
analyze(ctx: AnalysisContext): void;
|
|
1785
1770
|
toAst(): ts.LiteralTypeNode;
|
|
1786
1771
|
}
|
|
@@ -1893,15 +1878,15 @@ declare class TypeObjectTsDsl extends Mixed$3 {
|
|
|
1893
1878
|
}
|
|
1894
1879
|
//#endregion
|
|
1895
1880
|
//#region src/ts-dsl/type/or.d.ts
|
|
1896
|
-
type Type = NodeName$1 | ts.TypeNode | TypeTsDsl;
|
|
1881
|
+
type Type$1 = NodeName$1 | ts.TypeNode | TypeTsDsl;
|
|
1897
1882
|
declare const Mixed$2: abstract new () => TsDsl<ts.UnionTypeNode>;
|
|
1898
1883
|
declare class TypeOrTsDsl extends Mixed$2 {
|
|
1899
1884
|
readonly '~dsl' = "TypeOrTsDsl";
|
|
1900
1885
|
scope: NodeScope;
|
|
1901
|
-
protected _types: Array<Ref<Type>>;
|
|
1902
|
-
constructor(...nodes: Array<Type>);
|
|
1886
|
+
protected _types: Array<Ref<Type$1>>;
|
|
1887
|
+
constructor(...nodes: Array<Type$1>);
|
|
1903
1888
|
analyze(ctx: AnalysisContext): void;
|
|
1904
|
-
types(...nodes: Array<Type>): this;
|
|
1889
|
+
types(...nodes: Array<Type$1>): this;
|
|
1905
1890
|
toAst(): ts.UnionTypeNode;
|
|
1906
1891
|
}
|
|
1907
1892
|
//#endregion
|
|
@@ -1959,12 +1944,10 @@ declare const regexp: {
|
|
|
1959
1944
|
//#endregion
|
|
1960
1945
|
//#region src/ts-dsl/utils/render-utils.d.ts
|
|
1961
1946
|
type ModuleExport = Omit<ExportModule, 'from'> & {
|
|
1962
|
-
/** Module specifier for re-exports, e.g. `./foo`. */
|
|
1963
|
-
modulePath: string;
|
|
1947
|
+
/** Module specifier for re-exports, e.g. `./foo`. */modulePath: string;
|
|
1964
1948
|
};
|
|
1965
1949
|
type ModuleImport = Omit<ImportModule, 'from'> & {
|
|
1966
|
-
/** Module specifier for imports, e.g. `./foo`. */
|
|
1967
|
-
modulePath: string;
|
|
1950
|
+
/** Module specifier for imports, e.g. `./foo`. */modulePath: string;
|
|
1968
1951
|
};
|
|
1969
1952
|
//#endregion
|
|
1970
1953
|
//#region src/ts-dsl/utils/render.d.ts
|
|
@@ -1973,6 +1956,7 @@ type ExportsOptions = {
|
|
|
1973
1956
|
preferExportAll?: boolean;
|
|
1974
1957
|
};
|
|
1975
1958
|
type Header = MaybeArray<string> | null | undefined;
|
|
1959
|
+
type HeaderArg = MaybeFunc<(ctx: RenderContext<TsDsl>) => Header>;
|
|
1976
1960
|
type Imports = ReadonlyArray<ReadonlyArray<ModuleImport>>;
|
|
1977
1961
|
declare class TypeScriptRenderer implements Renderer {
|
|
1978
1962
|
/**
|
|
@@ -2000,7 +1984,7 @@ declare class TypeScriptRenderer implements Renderer {
|
|
|
2000
1984
|
*/
|
|
2001
1985
|
private _resolveModuleName?;
|
|
2002
1986
|
constructor(args?: {
|
|
2003
|
-
header?:
|
|
1987
|
+
header?: HeaderArg;
|
|
2004
1988
|
preferExportAll?: boolean;
|
|
2005
1989
|
preferFileExtension?: string;
|
|
2006
1990
|
resolveModuleName?: (moduleName: string) => string | undefined;
|
|
@@ -2061,85 +2045,49 @@ declare const reserved: {
|
|
|
2061
2045
|
//#endregion
|
|
2062
2046
|
//#region src/ts-dsl/index.d.ts
|
|
2063
2047
|
declare const $: ((id: any) => ExprTsDsl) & {
|
|
2064
|
-
/** Creates an array literal expression (e.g. `[1, 2, 3]`). */
|
|
2065
|
-
|
|
2066
|
-
/** Creates an
|
|
2067
|
-
|
|
2068
|
-
/** Creates a
|
|
2069
|
-
|
|
2070
|
-
/** Creates
|
|
2071
|
-
|
|
2072
|
-
/** Creates a
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
/** Creates a
|
|
2077
|
-
|
|
2078
|
-
/** Creates a class declaration or expression. */
|
|
2079
|
-
class: (name: NodeName) => ClassTsDsl;
|
|
2080
|
-
/** Creates a constant variable declaration (`const`). */
|
|
2081
|
-
const: (name?: any) => VarTsDsl;
|
|
2082
|
-
/** Creates a decorator expression (e.g. `@decorator`). */
|
|
2083
|
-
decorator: (name: NodeName, ...args: (string | ts.Expression | TsDsl<ts.Expression>)[]) => DecoratorTsDsl;
|
|
2084
|
-
/** Creates a JSDoc documentation block. */
|
|
2085
|
-
doc: (lines?: DocLines | undefined, fn?: DocFn | undefined) => DocTsDsl;
|
|
2086
|
-
/** Creates an enum declaration. */
|
|
2087
|
-
enum: (name: NodeName, fn?: ((e: EnumTsDsl) => void) | undefined) => EnumTsDsl;
|
|
2088
|
-
/** Creates a general expression node. */
|
|
2089
|
-
expr: (id: any) => ExprTsDsl;
|
|
2090
|
-
/** Creates a field declaration in a class or object. */
|
|
2091
|
-
field: (name: NodeName, fn?: ((f: FieldTsDsl) => void) | undefined) => FieldTsDsl;
|
|
2092
|
-
/** Converts a runtime value into a corresponding expression node. */
|
|
2048
|
+
/** Creates an array literal expression (e.g. `[1, 2, 3]`). */array: (...args: ConstructorParameters<typeof ArrayTsDsl>) => ArrayTsDsl; /** Creates an `as` type assertion expression (e.g. `value as Type`). */
|
|
2049
|
+
as: (expr: any, type: any) => AsTsDsl; /** Creates a property access expression (e.g. `obj.foo`). */
|
|
2050
|
+
attr: (left: any, right: NodeName) => AttrTsDsl; /** Creates an await expression (e.g. `await promise`). */
|
|
2051
|
+
await: (expr: any) => AwaitTsDsl; /** Creates a binary expression (e.g. `a + b`). */
|
|
2052
|
+
binary: (base: any, op?: (("!=" | "!==" | "&&" | "*" | "+" | "-" | "/" | "<" | "<=" | "=" | "==" | "===" | ">" | ">=" | "??" | "??=" | "||") | ts.BinaryOperator) | undefined, expr?: any) => BinaryTsDsl; /** Creates a statement block (`{ ... }`). */
|
|
2053
|
+
block: (...args: ConstructorParameters<typeof BlockTsDsl>) => BlockTsDsl; /** Creates a function or method call expression (e.g. `fn(arg)`). */
|
|
2054
|
+
call: (callee: any, ...args: any[]) => CallTsDsl; /** Creates a class declaration or expression. */
|
|
2055
|
+
class: (name: NodeName) => ClassTsDsl; /** Creates a constant variable declaration (`const`). */
|
|
2056
|
+
const: (name?: any) => VarTsDsl; /** Creates a decorator expression (e.g. `@decorator`). */
|
|
2057
|
+
decorator: (name: NodeName, ...args: (string | ts.Expression | TsDsl<ts.Expression>)[]) => DecoratorTsDsl; /** Creates a JSDoc documentation block. */
|
|
2058
|
+
doc: (lines?: DocLines | undefined, fn?: DocFn | undefined) => DocTsDsl; /** Creates an enum declaration. */
|
|
2059
|
+
enum: (name: NodeName, fn?: ((e: EnumTsDsl) => void) | undefined) => EnumTsDsl; /** Creates a general expression node. */
|
|
2060
|
+
expr: (id: any) => ExprTsDsl; /** Creates a field declaration in a class or object. */
|
|
2061
|
+
field: (name: NodeName, fn?: ((f: FieldTsDsl) => void) | undefined) => FieldTsDsl; /** Converts a runtime value into a corresponding expression node. */
|
|
2093
2062
|
fromValue: (input: unknown, options?: {
|
|
2094
2063
|
layout?: "pretty";
|
|
2095
|
-
} | undefined) => TsDsl<ts.Expression>;
|
|
2096
|
-
/** Creates a function expression or declaration. */
|
|
2064
|
+
} | undefined) => TsDsl<ts.Expression>; /** Creates a function expression or declaration. */
|
|
2097
2065
|
func: {
|
|
2098
2066
|
(): FuncTsDsl<"arrow">;
|
|
2099
2067
|
(fn: (f: FuncTsDsl<"arrow">) => void): FuncTsDsl<"arrow">;
|
|
2100
2068
|
(name: string): FuncTsDsl<"decl">;
|
|
2101
2069
|
(name: string, fn: (f: FuncTsDsl<"decl">) => void): FuncTsDsl<"decl">;
|
|
2102
2070
|
(name?: string, fn?: (f: FuncTsDsl<"decl">) => void): FuncTsDsl<"arrow"> | FuncTsDsl<"decl">;
|
|
2103
|
-
};
|
|
2104
|
-
/** Creates a
|
|
2105
|
-
|
|
2106
|
-
/** Creates
|
|
2107
|
-
|
|
2108
|
-
/** Creates
|
|
2109
|
-
|
|
2110
|
-
/** Creates
|
|
2111
|
-
|
|
2112
|
-
/** Creates
|
|
2113
|
-
|
|
2114
|
-
/** Creates a
|
|
2115
|
-
|
|
2116
|
-
/** Creates a
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
/** Creates
|
|
2121
|
-
|
|
2122
|
-
/** Creates
|
|
2123
|
-
method: (name: NodeName, fn?: ((m: MethodTsDsl) => void) | undefined) => MethodTsDsl;
|
|
2124
|
-
/** Creates a negation expression (`-x`). */
|
|
2125
|
-
neg: (expr?: string | ts.Expression | TsDsl<ts.Expression> | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl;
|
|
2126
|
-
/** Creates a new expression (e.g. `new ClassName()`). */
|
|
2127
|
-
new: (expr: any, ...args: any[]) => NewTsDsl;
|
|
2128
|
-
/** Creates a newline (for formatting purposes). */
|
|
2129
|
-
newline: () => NewlineTsDsl;
|
|
2130
|
-
/** Creates a logical NOT expression (`!x`). */
|
|
2131
|
-
not: (expr?: string | ts.Expression | TsDsl<ts.Expression> | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl;
|
|
2132
|
-
/** Creates a block comment (/* ... *\/). */
|
|
2133
|
-
note: (lines?: NoteLines | undefined, fn?: NoteFn | undefined) => NoteTsDsl;
|
|
2134
|
-
/** Creates an object literal expression. */
|
|
2135
|
-
object: (...args: ConstructorParameters<typeof ObjectTsDsl>) => ObjectTsDsl;
|
|
2136
|
-
/** Creates a parameter declaration for functions or methods. */
|
|
2137
|
-
param: (name: any, fn?: ((p: ParamTsDsl) => void) | undefined) => ParamTsDsl;
|
|
2138
|
-
/** Creates a pattern for destructuring or matching. */
|
|
2139
|
-
pattern: () => PatternTsDsl;
|
|
2140
|
-
/** Creates a prefix unary expression (e.g. `-x`, `!x`, `~x`). */
|
|
2141
|
-
prefix: (expr?: string | ts.Expression | TsDsl<ts.Expression> | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl;
|
|
2142
|
-
/** Creates an object literal property (e.g. `{ foo: bar }`). */
|
|
2071
|
+
}; /** Creates a getter method declaration. */
|
|
2072
|
+
getter: (name: NodeName, fn?: ((g: GetterTsDsl) => void) | undefined) => GetterTsDsl; /** Creates a single-line comment (//). */
|
|
2073
|
+
hint: (lines?: HintLines | undefined, fn?: HintFn | undefined) => HintTsDsl; /** Creates an identifier (e.g. `foo`). */
|
|
2074
|
+
id: (name: string) => IdTsDsl; /** Creates an if statement. */
|
|
2075
|
+
if: (condition?: IfCondition | undefined) => IfTsDsl; /** Creates an initialization block or statement. */
|
|
2076
|
+
init: (fn?: ((i: InitTsDsl) => void) | undefined) => InitTsDsl; /** Creates a lazy, context-aware node with deferred evaluation. */
|
|
2077
|
+
lazy: <T extends ts.Node>(thunk: LazyThunk<T>) => LazyTsDsl<T>; /** Creates a let variable declaration (`let`). */
|
|
2078
|
+
let: (name?: any) => VarTsDsl; /** Creates a literal value (e.g. string, number, boolean). */
|
|
2079
|
+
literal: (value: LiteralValue) => LiteralTsDsl; /** Creates an enum member declaration. */
|
|
2080
|
+
member: (name: NodeName, value?: ((string | number | ts.Expression | TsDsl<ts.Expression>) | ((m: EnumMemberTsDsl) => void)) | undefined) => EnumMemberTsDsl; /** Creates a method declaration inside a class or object. */
|
|
2081
|
+
method: (name: NodeName, fn?: ((m: MethodTsDsl) => void) | undefined) => MethodTsDsl; /** Creates a negation expression (`-x`). */
|
|
2082
|
+
neg: (expr?: string | ts.Expression | TsDsl<ts.Expression> | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates a new expression (e.g. `new ClassName()`). */
|
|
2083
|
+
new: (expr: any, ...args: any[]) => NewTsDsl; /** Creates a newline (for formatting purposes). */
|
|
2084
|
+
newline: () => NewlineTsDsl; /** Creates a logical NOT expression (`!x`). */
|
|
2085
|
+
not: (expr?: string | ts.Expression | TsDsl<ts.Expression> | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates a block comment (/* ... *\/). */
|
|
2086
|
+
note: (lines?: NoteLines | undefined, fn?: NoteFn | undefined) => NoteTsDsl; /** Creates an object literal expression. */
|
|
2087
|
+
object: (...args: ConstructorParameters<typeof ObjectTsDsl>) => ObjectTsDsl; /** Creates a parameter declaration for functions or methods. */
|
|
2088
|
+
param: (name: any, fn?: ParamFn | undefined) => ParamTsDsl; /** Creates a pattern for destructuring or matching. */
|
|
2089
|
+
pattern: () => PatternTsDsl; /** Creates a prefix unary expression (e.g. `-x`, `!x`, `~x`). */
|
|
2090
|
+
prefix: (expr?: string | ts.Expression | TsDsl<ts.Expression> | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates an object literal property (e.g. `{ foo: bar }`). */
|
|
2143
2091
|
prop: (meta: {
|
|
2144
2092
|
kind: "computed";
|
|
2145
2093
|
name: string;
|
|
@@ -2155,63 +2103,35 @@ declare const $: ((id: any) => ExprTsDsl) & {
|
|
|
2155
2103
|
} | {
|
|
2156
2104
|
kind: "spread";
|
|
2157
2105
|
name?: undefined;
|
|
2158
|
-
}) => ObjectPropTsDsl;
|
|
2159
|
-
/** Creates a regular expression literal (e.g. `/foo/gi`). */
|
|
2160
|
-
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;
|
|
2161
|
-
/**
|
|
2162
|
-
|
|
2163
|
-
/** Creates a
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
/** Creates a
|
|
2168
|
-
template: (value?: any) => TemplateTsDsl;
|
|
2169
|
-
/** Creates a ternary conditional expression (if ? then : else). */
|
|
2170
|
-
ternary: (condition?: string | ts.Expression | TsDsl<ts.Expression> | undefined) => TernaryTsDsl;
|
|
2171
|
-
/** Creates a throw statement. */
|
|
2172
|
-
throw: (error: string | ts.Expression | TsDsl<ts.Expression>, useNew?: boolean | undefined) => ThrowTsDsl;
|
|
2173
|
-
/** Creates a syntax token (e.g. `?`, `readonly`, `+`, `-`). */
|
|
2174
|
-
token: () => TokenTsDsl<never>;
|
|
2175
|
-
/** Creates a try/catch/finally statement. */
|
|
2176
|
-
try: (...args: ConstructorParameters<typeof TryTsDsl>) => TryTsDsl;
|
|
2177
|
-
/** Creates a basic type reference or type expression (e.g. Foo or Foo<T>). */
|
|
2106
|
+
}) => ObjectPropTsDsl; /** Creates a regular expression literal (e.g. `/foo/gi`). */
|
|
2107
|
+
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; /** Creates a return statement. */
|
|
2108
|
+
return: (expr?: any) => ReturnTsDsl; /** Creates a setter method declaration. */
|
|
2109
|
+
setter: (name: NodeName, fn?: ((s: SetterTsDsl) => void) | undefined) => SetterTsDsl; /** Wraps an expression or statement-like value into a `StmtTsDsl`. */
|
|
2110
|
+
stmt: (inner: ts.Expression | ts.Statement | TsDsl<any>) => StmtTsDsl; /** Creates a template literal expression. */
|
|
2111
|
+
template: (value?: any) => TemplateTsDsl; /** Creates a ternary conditional expression (if ? then : else). */
|
|
2112
|
+
ternary: (condition?: string | ts.Expression | TsDsl<ts.Expression> | undefined) => TernaryTsDsl; /** Creates a throw statement. */
|
|
2113
|
+
throw: (error: string | ts.Expression | TsDsl<ts.Expression>, useNew?: boolean | undefined) => ThrowTsDsl; /** Creates a syntax token (e.g. `?`, `readonly`, `+`, `-`). */
|
|
2114
|
+
token: () => TokenTsDsl<never>; /** Creates a try/catch/finally statement. */
|
|
2115
|
+
try: (...args: ConstructorParameters<typeof TryTsDsl>) => TryTsDsl; /** Creates a basic type reference or type expression (e.g. Foo or Foo<T>). */
|
|
2178
2116
|
type: ((name: NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl) & {
|
|
2179
|
-
/** Creates a type alias declaration (e.g. `type Foo = Bar`). */
|
|
2180
|
-
|
|
2181
|
-
/** Creates
|
|
2182
|
-
|
|
2183
|
-
/** Creates a
|
|
2184
|
-
|
|
2185
|
-
/** Creates a
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
/**
|
|
2190
|
-
|
|
2191
|
-
/** Creates
|
|
2192
|
-
|
|
2193
|
-
/** Creates a
|
|
2194
|
-
literal: (value: string | number | boolean | null) => TypeLiteralTsDsl;
|
|
2195
|
-
/** Creates a mapped type (e.g. `{ [K in keyof T]: U }`). */
|
|
2196
|
-
mapped: (name?: any) => TypeMappedTsDsl;
|
|
2197
|
-
/** Creates a type literal node (e.g. { foo: string }). */
|
|
2198
|
-
object: () => TypeObjectTsDsl;
|
|
2199
|
-
/** Creates a type operator node (e.g. `readonly T`, `keyof T`, `unique T`). */
|
|
2200
|
-
operator: () => TypeOperatorTsDsl;
|
|
2201
|
-
/** Represents a union type (e.g. `A | B | C`). */
|
|
2202
|
-
or: (...args: ConstructorParameters<typeof TypeOrTsDsl>) => TypeOrTsDsl;
|
|
2203
|
-
/** Creates a type parameter (e.g. `<T>`). */
|
|
2204
|
-
param: (name?: any, fn?: ((name: TypeParamTsDsl) => void) | undefined) => TypeParamTsDsl;
|
|
2205
|
-
/** Creates a type query node (e.g. `typeof Foo`). */
|
|
2206
|
-
query: (expr: TypeQueryExpr) => TypeQueryTsDsl;
|
|
2207
|
-
/** Builds a TypeScript template literal *type* (e.g. `${Foo}-${Bar}` as a type). */
|
|
2208
|
-
template: (value?: string | ts.TypeNode | TsDsl<ts.TypeNode> | undefined) => TypeTemplateTsDsl;
|
|
2209
|
-
/** Creates a tuple type (e.g. [A, B, C]). */
|
|
2117
|
+
/** Creates a type alias declaration (e.g. `type Foo = Bar`). */alias: (name: NodeName, fn?: ((t: TypeAliasTsDsl) => void) | undefined) => TypeAliasTsDsl; /** Creates an intersection type (e.g. `A & B`). */
|
|
2118
|
+
and: (...args: ConstructorParameters<typeof TypeAndTsDsl>) => TypeAndTsDsl; /** Creates a qualified type reference (e.g. Foo.Bar). */
|
|
2119
|
+
attr: (right: any) => TypeAttrTsDsl; /** Creates a basic type reference or type expression (e.g. Foo or Foo<T>). */
|
|
2120
|
+
expr: (name: NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl; /** Converts a runtime value into a corresponding type expression node. */
|
|
2121
|
+
fromValue: (input: unknown) => TsDsl<ts.TypeNode>; /** Creates a function type node (e.g. `(a: string) => number`). */
|
|
2122
|
+
func: (...args: ConstructorParameters<typeof TypeFuncTsDsl>) => TypeFuncTsDsl; /** Creates an indexed-access type (e.g. `Foo<T>[K]`). */
|
|
2123
|
+
idx: (base: string | ts.TypeNode | TsDsl<ts.TypeNode>, index: string | number | ts.TypeNode | TsDsl<ts.TypeNode>) => TypeIdxTsDsl; /** Creates a literal type node (e.g. 'foo', 42, or true). */
|
|
2124
|
+
literal: (value: LiteralValue) => TypeLiteralTsDsl; /** Creates a mapped type (e.g. `{ [K in keyof T]: U }`). */
|
|
2125
|
+
mapped: (name?: any) => TypeMappedTsDsl; /** Creates a type literal node (e.g. { foo: string }). */
|
|
2126
|
+
object: () => TypeObjectTsDsl; /** Creates a type operator node (e.g. `readonly T`, `keyof T`, `unique T`). */
|
|
2127
|
+
operator: () => TypeOperatorTsDsl; /** Represents a union type (e.g. `A | B | C`). */
|
|
2128
|
+
or: (...args: ConstructorParameters<typeof TypeOrTsDsl>) => TypeOrTsDsl; /** Creates a type parameter (e.g. `<T>`). */
|
|
2129
|
+
param: (name?: any, fn?: ((name: TypeParamTsDsl) => void) | undefined) => TypeParamTsDsl; /** Creates a type query node (e.g. `typeof Foo`). */
|
|
2130
|
+
query: (expr: TypeQueryExpr) => TypeQueryTsDsl; /** Builds a TypeScript template literal *type* (e.g. `${Foo}-${Bar}` as a type). */
|
|
2131
|
+
template: (value?: string | ts.TypeNode | TsDsl<ts.TypeNode> | undefined) => TypeTemplateTsDsl; /** Creates a tuple type (e.g. [A, B, C]). */
|
|
2210
2132
|
tuple: (...args: ConstructorParameters<typeof TypeTupleTsDsl>) => TypeTupleTsDsl;
|
|
2211
|
-
};
|
|
2212
|
-
/** Creates a
|
|
2213
|
-
typeofExpr: (expr: TypeOfExpr) => TypeOfExprTsDsl;
|
|
2214
|
-
/** Creates a variable declaration (`var`). */
|
|
2133
|
+
}; /** Creates a `typeof` expression (e.g. `typeof value`). */
|
|
2134
|
+
typeofExpr: (expr: TypeOfExpr) => TypeOfExprTsDsl; /** Creates a variable declaration (`var`). */
|
|
2215
2135
|
var: (name?: any) => VarTsDsl;
|
|
2216
2136
|
};
|
|
2217
2137
|
type DollarTsDsl = {
|
|
@@ -2235,7 +2155,7 @@ type DollarTsDsl = {
|
|
|
2235
2155
|
};
|
|
2236
2156
|
//#endregion
|
|
2237
2157
|
//#region src/plugins/@faker-js/faker/api.d.ts
|
|
2238
|
-
type Expression = ReturnType<typeof $.expr>;
|
|
2158
|
+
type Expression$1 = ReturnType<typeof $.expr>;
|
|
2239
2159
|
type IApi$4 = {
|
|
2240
2160
|
/**
|
|
2241
2161
|
* Generate a Faker expression for a schema.
|
|
@@ -2251,7 +2171,7 @@ type IApi$4 = {
|
|
|
2251
2171
|
* }
|
|
2252
2172
|
* ```
|
|
2253
2173
|
*/
|
|
2254
|
-
toNode(schema: IR$1.SchemaObject): Expression;
|
|
2174
|
+
toNode(schema: IR$1.SchemaObject): Expression$1;
|
|
2255
2175
|
/**
|
|
2256
2176
|
* Get a reference to a generated Faker expression for a schema.
|
|
2257
2177
|
*
|
|
@@ -2261,11 +2181,11 @@ type IApi$4 = {
|
|
|
2261
2181
|
* @example
|
|
2262
2182
|
* // Returns: fakeUser()
|
|
2263
2183
|
*/
|
|
2264
|
-
toNodeRef(schema: IR$1.SchemaObject): Expression;
|
|
2184
|
+
toNodeRef(schema: IR$1.SchemaObject): Expression$1;
|
|
2265
2185
|
};
|
|
2266
2186
|
//#endregion
|
|
2267
2187
|
//#region src/plugins/@faker-js/faker/types.d.ts
|
|
2268
|
-
type UserConfig$
|
|
2188
|
+
type UserConfig$25 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
2269
2189
|
/**
|
|
2270
2190
|
* Casing convention for generated names.
|
|
2271
2191
|
*
|
|
@@ -2312,7 +2232,7 @@ type UserConfig$24 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$
|
|
|
2312
2232
|
*/
|
|
2313
2233
|
seed?: number;
|
|
2314
2234
|
};
|
|
2315
|
-
type Config$
|
|
2235
|
+
type Config$22 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.Exports & {
|
|
2316
2236
|
/**
|
|
2317
2237
|
* Casing convention for generated names.
|
|
2318
2238
|
*/
|
|
@@ -2331,7 +2251,51 @@ type Config$21 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.Ex
|
|
|
2331
2251
|
*/
|
|
2332
2252
|
seed?: number;
|
|
2333
2253
|
};
|
|
2334
|
-
type FakerJsFakerPlugin = DefinePlugin$1<UserConfig$
|
|
2254
|
+
type FakerJsFakerPlugin = DefinePlugin$1<UserConfig$25, Config$22, IApi$4>;
|
|
2255
|
+
//#endregion
|
|
2256
|
+
//#region src/plugins/@faker-js/faker/resolvers/types.d.ts
|
|
2257
|
+
type Expression = ReturnType<typeof $.expr>;
|
|
2258
|
+
type FakerJsFakerResolvers = Plugin$1.Resolvers<{
|
|
2259
|
+
array?: (ctx: ArrayResolverContext$3) => Expression | undefined;
|
|
2260
|
+
number?: (ctx: NumberResolverContext$3) => Expression | undefined;
|
|
2261
|
+
object?: (ctx: ObjectResolverContext$3) => Expression | undefined;
|
|
2262
|
+
string?: (ctx: StringResolverContext$3) => Expression | undefined;
|
|
2263
|
+
}>;
|
|
2264
|
+
interface BaseContext$3 extends DollarTsDsl {
|
|
2265
|
+
plugin: FakerJsFakerPlugin['Instance'];
|
|
2266
|
+
symbols: {
|
|
2267
|
+
faker: Symbol;
|
|
2268
|
+
};
|
|
2269
|
+
}
|
|
2270
|
+
interface ArrayResolverContext$3 extends BaseContext$3 {
|
|
2271
|
+
nodes: {
|
|
2272
|
+
items: (ctx: ArrayResolverContext$3) => Expression;
|
|
2273
|
+
length: (ctx: ArrayResolverContext$3) => Expression | undefined;
|
|
2274
|
+
};
|
|
2275
|
+
schema: SchemaWithType<'array'>;
|
|
2276
|
+
}
|
|
2277
|
+
interface NumberResolverContext$3 extends BaseContext$3 {
|
|
2278
|
+
nodes: {
|
|
2279
|
+
base: (ctx: NumberResolverContext$3) => Expression;
|
|
2280
|
+
max: (ctx: NumberResolverContext$3) => Expression | undefined;
|
|
2281
|
+
min: (ctx: NumberResolverContext$3) => Expression | undefined;
|
|
2282
|
+
};
|
|
2283
|
+
schema: SchemaWithType<'integer' | 'number'>;
|
|
2284
|
+
}
|
|
2285
|
+
interface ObjectResolverContext$3 extends BaseContext$3 {
|
|
2286
|
+
nodes: {
|
|
2287
|
+
properties: (ctx: ObjectResolverContext$3) => Expression;
|
|
2288
|
+
};
|
|
2289
|
+
schema: SchemaWithType<'object'>;
|
|
2290
|
+
}
|
|
2291
|
+
interface StringResolverContext$3 extends BaseContext$3 {
|
|
2292
|
+
nodes: {
|
|
2293
|
+
base: (ctx: StringResolverContext$3) => Expression;
|
|
2294
|
+
format: (ctx: StringResolverContext$3) => Expression | undefined;
|
|
2295
|
+
pattern: (ctx: StringResolverContext$3) => Expression | undefined;
|
|
2296
|
+
};
|
|
2297
|
+
schema: SchemaWithType<'string'>;
|
|
2298
|
+
}
|
|
2335
2299
|
//#endregion
|
|
2336
2300
|
//#region src/plugins/@hey-api/client-core/bundle/auth.d.ts
|
|
2337
2301
|
type AuthToken = string | undefined;
|
|
@@ -2381,20 +2345,20 @@ type QuerySerializerOptions = QuerySerializerOptionsObject & {
|
|
|
2381
2345
|
//#endregion
|
|
2382
2346
|
//#region src/plugins/@hey-api/client-core/bundle/types.d.ts
|
|
2383
2347
|
type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
2384
|
-
type Client$
|
|
2348
|
+
type Client$8<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
2385
2349
|
/**
|
|
2386
2350
|
* Returns the final request URL.
|
|
2387
2351
|
*/
|
|
2388
|
-
buildUrl: BuildUrlFn
|
|
2389
|
-
getConfig: () => Config
|
|
2390
|
-
request: RequestFn
|
|
2391
|
-
setConfig: (config: Config
|
|
2392
|
-
} & { [K in HttpMethod]: MethodFn
|
|
2352
|
+
buildUrl: BuildUrlFn;
|
|
2353
|
+
getConfig: () => Config;
|
|
2354
|
+
request: RequestFn;
|
|
2355
|
+
setConfig: (config: Config) => Config;
|
|
2356
|
+
} & { [K in HttpMethod]: MethodFn } & ([SseFn] extends [never] ? {
|
|
2393
2357
|
sse?: never;
|
|
2394
2358
|
} : {
|
|
2395
|
-
sse: { [K in HttpMethod]: SseFn
|
|
2359
|
+
sse: { [K in HttpMethod]: SseFn };
|
|
2396
2360
|
});
|
|
2397
|
-
interface Config$
|
|
2361
|
+
interface Config$21 {
|
|
2398
2362
|
/**
|
|
2399
2363
|
* Auth token or a function returning auth token. The resolved value will be
|
|
2400
2364
|
* added to the request payload as defined by its `security` array.
|
|
@@ -2449,7 +2413,7 @@ interface Config$20 {
|
|
|
2449
2413
|
}
|
|
2450
2414
|
//#endregion
|
|
2451
2415
|
//#region src/plugins/@hey-api/client-core/bundle/serverSentEvents.d.ts
|
|
2452
|
-
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$
|
|
2416
|
+
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$21, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
2453
2417
|
/**
|
|
2454
2418
|
* Fetch API implementation. You can use this option to provide a custom
|
|
2455
2419
|
* fetch instance.
|
|
@@ -2520,10 +2484,10 @@ type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> =
|
|
|
2520
2484
|
};
|
|
2521
2485
|
//#endregion
|
|
2522
2486
|
//#region src/plugins/@hey-api/client-angular/bundle/utils.d.ts
|
|
2523
|
-
type ErrInterceptor$
|
|
2524
|
-
type ReqInterceptor$
|
|
2525
|
-
type ResInterceptor$
|
|
2526
|
-
declare class Interceptors$
|
|
2487
|
+
type ErrInterceptor$4<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
|
|
2488
|
+
type ReqInterceptor$4<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
2489
|
+
type ResInterceptor$4<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
2490
|
+
declare class Interceptors$4<Interceptor> {
|
|
2527
2491
|
fns: Array<Interceptor | null>;
|
|
2528
2492
|
clear(): void;
|
|
2529
2493
|
eject(id: number | Interceptor): void;
|
|
@@ -2532,15 +2496,15 @@ declare class Interceptors$3<Interceptor> {
|
|
|
2532
2496
|
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
2533
2497
|
use(fn: Interceptor): number;
|
|
2534
2498
|
}
|
|
2535
|
-
interface Middleware$
|
|
2536
|
-
error: Interceptors$
|
|
2537
|
-
request: Interceptors$
|
|
2538
|
-
response: Interceptors$
|
|
2499
|
+
interface Middleware$4<Req, Res, Err, Options> {
|
|
2500
|
+
error: Interceptors$4<ErrInterceptor$4<Err, Res, Req, Options>>;
|
|
2501
|
+
request: Interceptors$4<ReqInterceptor$4<Req, Options>>;
|
|
2502
|
+
response: Interceptors$4<ResInterceptor$4<Res, Req, Options>>;
|
|
2539
2503
|
}
|
|
2540
2504
|
//#endregion
|
|
2541
2505
|
//#region src/plugins/@hey-api/client-angular/bundle/types.d.ts
|
|
2542
|
-
type ResponseStyle$
|
|
2543
|
-
interface Config$
|
|
2506
|
+
type ResponseStyle$3 = 'data' | 'fields';
|
|
2507
|
+
interface Config$20<T extends ClientOptions$6 = ClientOptions$6> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Omit<Config$21, 'headers'> {
|
|
2544
2508
|
/**
|
|
2545
2509
|
* Base URL for all requests made by this client.
|
|
2546
2510
|
*/
|
|
@@ -2561,7 +2525,7 @@ interface Config$19<T extends ClientOptions$5 = ClientOptions$5> extends Omit<Re
|
|
|
2561
2525
|
*
|
|
2562
2526
|
* @default 'fields'
|
|
2563
2527
|
*/
|
|
2564
|
-
responseStyle?: ResponseStyle$
|
|
2528
|
+
responseStyle?: ResponseStyle$3;
|
|
2565
2529
|
/**
|
|
2566
2530
|
* Throw an error instead of returning it in the response?
|
|
2567
2531
|
*
|
|
@@ -2569,7 +2533,7 @@ interface Config$19<T extends ClientOptions$5 = ClientOptions$5> extends Omit<Re
|
|
|
2569
2533
|
*/
|
|
2570
2534
|
throwOnError?: T['throwOnError'];
|
|
2571
2535
|
}
|
|
2572
|
-
interface RequestOptions$
|
|
2536
|
+
interface RequestOptions$6<TData = unknown, TResponseStyle extends ResponseStyle$3 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$20<{
|
|
2573
2537
|
responseStyle: TResponseStyle;
|
|
2574
2538
|
throwOnError: ThrowOnError;
|
|
2575
2539
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -2591,10 +2555,10 @@ interface RequestOptions$5<TData = unknown, TResponseStyle extends ResponseStyle
|
|
|
2591
2555
|
security?: ReadonlyArray<Auth>;
|
|
2592
2556
|
url: Url;
|
|
2593
2557
|
}
|
|
2594
|
-
interface ResolvedRequestOptions$
|
|
2558
|
+
interface ResolvedRequestOptions$4<TResponseStyle extends ResponseStyle$3 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions$6<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
2595
2559
|
serializedBody?: string;
|
|
2596
2560
|
}
|
|
2597
|
-
type RequestResult$
|
|
2561
|
+
type RequestResult$6<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle$3 = 'fields'> = Promise<ThrowOnError extends true ? TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
2598
2562
|
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
2599
2563
|
request: HttpRequest<unknown>;
|
|
2600
2564
|
response: HttpResponse<TData>;
|
|
@@ -2611,37 +2575,37 @@ type RequestResult$5<TData = unknown, TError = unknown, ThrowOnError extends boo
|
|
|
2611
2575
|
error: TError[keyof TError] | null;
|
|
2612
2576
|
};
|
|
2613
2577
|
}>;
|
|
2614
|
-
interface ClientOptions$
|
|
2578
|
+
interface ClientOptions$6 {
|
|
2615
2579
|
baseUrl?: string;
|
|
2616
|
-
responseStyle?: ResponseStyle$
|
|
2580
|
+
responseStyle?: ResponseStyle$3;
|
|
2617
2581
|
throwOnError?: boolean;
|
|
2618
2582
|
}
|
|
2619
|
-
type MethodFn$
|
|
2620
|
-
type SseFn$
|
|
2621
|
-
type RequestFn$
|
|
2622
|
-
type RequestOptionsFn = <T, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$
|
|
2623
|
-
type BuildUrlFn$
|
|
2583
|
+
type MethodFn$6 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$3 = 'fields'>(options: Omit<RequestOptions$6<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult$6<TData, TError, ThrowOnError, TResponseStyle>;
|
|
2584
|
+
type SseFn$6 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$3 = 'fields'>(options: Omit<RequestOptions$6<TData, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
2585
|
+
type RequestFn$6 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$3 = 'fields'>(options: Omit<RequestOptions$6<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$6<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult$6<TData, TError, ThrowOnError, TResponseStyle>;
|
|
2586
|
+
type RequestOptionsFn = <T, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$3 = 'fields'>(options: RequestOptions$6<T, TResponseStyle, ThrowOnError>) => HttpRequest<T>;
|
|
2587
|
+
type BuildUrlFn$6 = <TData extends {
|
|
2624
2588
|
body?: unknown;
|
|
2625
2589
|
path?: Record<string, unknown>;
|
|
2626
2590
|
query?: Record<string, unknown>;
|
|
2627
2591
|
url: string;
|
|
2628
|
-
}>(options: TData & Options$
|
|
2629
|
-
type Client = Client$
|
|
2630
|
-
interceptors: Middleware$
|
|
2592
|
+
}>(options: TData & Options$7<TData>) => string;
|
|
2593
|
+
type Client$7 = Client$8<RequestFn$6, Config$20, MethodFn$6, BuildUrlFn$6, SseFn$6> & {
|
|
2594
|
+
interceptors: Middleware$4<HttpRequest<unknown>, HttpResponse<unknown>, unknown, ResolvedRequestOptions$4>;
|
|
2631
2595
|
requestOptions: RequestOptionsFn;
|
|
2632
2596
|
};
|
|
2633
|
-
interface TDataShape$
|
|
2597
|
+
interface TDataShape$6 {
|
|
2634
2598
|
body?: unknown;
|
|
2635
2599
|
headers?: unknown;
|
|
2636
2600
|
path?: unknown;
|
|
2637
2601
|
query?: unknown;
|
|
2638
2602
|
url: string;
|
|
2639
2603
|
}
|
|
2640
|
-
type OmitKeys$
|
|
2641
|
-
type Options$
|
|
2604
|
+
type OmitKeys$6<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
2605
|
+
type Options$7<TData extends TDataShape$6 = TDataShape$6, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$3 = 'fields'> = OmitKeys$6<RequestOptions$6<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
2642
2606
|
//#endregion
|
|
2643
2607
|
//#region src/plugins/@hey-api/client-axios/bundle/types.d.ts
|
|
2644
|
-
interface Config$
|
|
2608
|
+
interface Config$19<T extends ClientOptions$5 = ClientOptions$5> extends Omit<CreateAxiosDefaults, 'auth' | 'baseURL' | 'headers' | 'method'>, Config$21 {
|
|
2645
2609
|
/**
|
|
2646
2610
|
* Axios implementation. You can use this option to provide either an
|
|
2647
2611
|
* `AxiosStatic` or an `AxiosInstance`.
|
|
@@ -2667,7 +2631,7 @@ interface Config$18<T extends ClientOptions$4 = ClientOptions$4> extends Omit<Cr
|
|
|
2667
2631
|
*/
|
|
2668
2632
|
throwOnError?: T['throwOnError'];
|
|
2669
2633
|
}
|
|
2670
|
-
interface RequestOptions$
|
|
2634
|
+
interface RequestOptions$5<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$19<{
|
|
2671
2635
|
throwOnError: ThrowOnError;
|
|
2672
2636
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
2673
2637
|
/**
|
|
@@ -2684,40 +2648,40 @@ interface RequestOptions$4<TData = unknown, ThrowOnError extends boolean = boole
|
|
|
2684
2648
|
security?: ReadonlyArray<Auth>;
|
|
2685
2649
|
url: Url;
|
|
2686
2650
|
}
|
|
2687
|
-
interface ClientOptions$
|
|
2651
|
+
interface ClientOptions$5 {
|
|
2688
2652
|
baseURL?: string;
|
|
2689
2653
|
throwOnError?: boolean;
|
|
2690
2654
|
}
|
|
2691
|
-
type RequestResult$
|
|
2655
|
+
type RequestResult$5<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean> = ThrowOnError extends true ? Promise<AxiosResponse<TData extends Record<string, unknown> ? TData[keyof TData] : TData>> : Promise<(AxiosResponse<TData extends Record<string, unknown> ? TData[keyof TData] : TData> & {
|
|
2692
2656
|
error: undefined;
|
|
2693
2657
|
}) | (AxiosError<TError extends Record<string, unknown> ? TError[keyof TError] : TError> & {
|
|
2694
2658
|
data: undefined;
|
|
2695
2659
|
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
2696
2660
|
})>;
|
|
2697
|
-
type MethodFn$
|
|
2698
|
-
type SseFn$
|
|
2699
|
-
type RequestFn$
|
|
2700
|
-
type BuildUrlFn$
|
|
2661
|
+
type MethodFn$5 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$5<TData, ThrowOnError>, 'method'>) => RequestResult$5<TData, TError, ThrowOnError>;
|
|
2662
|
+
type SseFn$5 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$5<TData, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
2663
|
+
type RequestFn$5 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$5<TData, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$5<TData, ThrowOnError>>, 'method'>) => RequestResult$5<TData, TError, ThrowOnError>;
|
|
2664
|
+
type BuildUrlFn$5 = <TData extends {
|
|
2701
2665
|
body?: unknown;
|
|
2702
2666
|
path?: Record<string, unknown>;
|
|
2703
2667
|
query?: Record<string, unknown>;
|
|
2704
2668
|
url: string;
|
|
2705
|
-
}>(options: TData & Options$
|
|
2706
|
-
type Client$
|
|
2669
|
+
}>(options: TData & Options$6<TData>) => string;
|
|
2670
|
+
type Client$6 = Client$8<RequestFn$5, Config$19, MethodFn$5, BuildUrlFn$5, SseFn$5> & {
|
|
2707
2671
|
instance: AxiosInstance;
|
|
2708
2672
|
};
|
|
2709
|
-
interface TDataShape$
|
|
2673
|
+
interface TDataShape$5 {
|
|
2710
2674
|
body?: unknown;
|
|
2711
2675
|
headers?: unknown;
|
|
2712
2676
|
path?: unknown;
|
|
2713
2677
|
query?: unknown;
|
|
2714
2678
|
url: string;
|
|
2715
2679
|
}
|
|
2716
|
-
type OmitKeys$
|
|
2717
|
-
type Options$
|
|
2680
|
+
type OmitKeys$5<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
2681
|
+
type Options$6<TData extends TDataShape$5 = TDataShape$5, ThrowOnError extends boolean = boolean, TResponse = unknown> = OmitKeys$5<RequestOptions$5<TResponse, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
2718
2682
|
//#endregion
|
|
2719
2683
|
//#region src/plugins/@hey-api/client-axios/types.d.ts
|
|
2720
|
-
type UserConfig$
|
|
2684
|
+
type UserConfig$24 = Plugin$1.Name<'@hey-api/client-axios'> & Client.Config & {
|
|
2721
2685
|
/**
|
|
2722
2686
|
* Throw an error instead of returning it in the response?
|
|
2723
2687
|
*
|
|
@@ -2725,13 +2689,13 @@ type UserConfig$23 = Plugin$1.Name<'@hey-api/client-axios'> & Client$2.Config &
|
|
|
2725
2689
|
*/
|
|
2726
2690
|
throwOnError?: boolean;
|
|
2727
2691
|
};
|
|
2728
|
-
type HeyApiClientAxiosPlugin = DefinePlugin$1<UserConfig$
|
|
2692
|
+
type HeyApiClientAxiosPlugin = DefinePlugin$1<UserConfig$24, UserConfig$24>;
|
|
2729
2693
|
//#endregion
|
|
2730
2694
|
//#region src/plugins/@hey-api/client-fetch/bundle/utils.d.ts
|
|
2731
|
-
type ErrInterceptor$
|
|
2732
|
-
type ReqInterceptor$
|
|
2733
|
-
type ResInterceptor$
|
|
2734
|
-
declare class Interceptors$
|
|
2695
|
+
type ErrInterceptor$3<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
|
|
2696
|
+
type ReqInterceptor$3<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
2697
|
+
type ResInterceptor$3<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
2698
|
+
declare class Interceptors$3<Interceptor> {
|
|
2735
2699
|
fns: Array<Interceptor | null>;
|
|
2736
2700
|
clear(): void;
|
|
2737
2701
|
eject(id: number | Interceptor): void;
|
|
@@ -2740,15 +2704,15 @@ declare class Interceptors$2<Interceptor> {
|
|
|
2740
2704
|
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
2741
2705
|
use(fn: Interceptor): number;
|
|
2742
2706
|
}
|
|
2743
|
-
interface Middleware$
|
|
2744
|
-
error: Interceptors$
|
|
2745
|
-
request: Interceptors$
|
|
2746
|
-
response: Interceptors$
|
|
2707
|
+
interface Middleware$3<Req, Res, Err, Options> {
|
|
2708
|
+
error: Interceptors$3<ErrInterceptor$3<Err, Res, Req, Options>>;
|
|
2709
|
+
request: Interceptors$3<ReqInterceptor$3<Req, Options>>;
|
|
2710
|
+
response: Interceptors$3<ResInterceptor$3<Res, Req, Options>>;
|
|
2747
2711
|
}
|
|
2748
2712
|
//#endregion
|
|
2749
2713
|
//#region src/plugins/@hey-api/client-fetch/bundle/types.d.ts
|
|
2750
|
-
type ResponseStyle$
|
|
2751
|
-
interface Config$
|
|
2714
|
+
type ResponseStyle$2 = 'data' | 'fields';
|
|
2715
|
+
interface Config$18<T extends ClientOptions$4 = ClientOptions$4> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$21 {
|
|
2752
2716
|
/**
|
|
2753
2717
|
* Base URL for all requests made by this client.
|
|
2754
2718
|
*/
|
|
@@ -2781,7 +2745,7 @@ interface Config$17<T extends ClientOptions$3 = ClientOptions$3> extends Omit<Re
|
|
|
2781
2745
|
*
|
|
2782
2746
|
* @default 'fields'
|
|
2783
2747
|
*/
|
|
2784
|
-
responseStyle?: ResponseStyle$
|
|
2748
|
+
responseStyle?: ResponseStyle$2;
|
|
2785
2749
|
/**
|
|
2786
2750
|
* Throw an error instead of returning it in the response?
|
|
2787
2751
|
*
|
|
@@ -2789,7 +2753,7 @@ interface Config$17<T extends ClientOptions$3 = ClientOptions$3> extends Omit<Re
|
|
|
2789
2753
|
*/
|
|
2790
2754
|
throwOnError?: T['throwOnError'];
|
|
2791
2755
|
}
|
|
2792
|
-
interface RequestOptions$
|
|
2756
|
+
interface RequestOptions$4<TData = unknown, TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$18<{
|
|
2793
2757
|
responseStyle: TResponseStyle;
|
|
2794
2758
|
throwOnError: ThrowOnError;
|
|
2795
2759
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -2807,10 +2771,10 @@ interface RequestOptions$3<TData = unknown, TResponseStyle extends ResponseStyle
|
|
|
2807
2771
|
security?: ReadonlyArray<Auth>;
|
|
2808
2772
|
url: Url;
|
|
2809
2773
|
}
|
|
2810
|
-
interface ResolvedRequestOptions$
|
|
2774
|
+
interface ResolvedRequestOptions$3<TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions$4<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
2811
2775
|
serializedBody?: string;
|
|
2812
2776
|
}
|
|
2813
|
-
type RequestResult$
|
|
2777
|
+
type RequestResult$4<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle$2 = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
2814
2778
|
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
2815
2779
|
request: Request;
|
|
2816
2780
|
response: Response;
|
|
@@ -2824,35 +2788,35 @@ type RequestResult$3<TData = unknown, TError = unknown, ThrowOnError extends boo
|
|
|
2824
2788
|
request: Request;
|
|
2825
2789
|
response: Response;
|
|
2826
2790
|
}>;
|
|
2827
|
-
interface ClientOptions$
|
|
2791
|
+
interface ClientOptions$4 {
|
|
2828
2792
|
baseUrl?: string;
|
|
2829
|
-
responseStyle?: ResponseStyle$
|
|
2793
|
+
responseStyle?: ResponseStyle$2;
|
|
2830
2794
|
throwOnError?: boolean;
|
|
2831
2795
|
}
|
|
2832
|
-
type MethodFn$
|
|
2833
|
-
type SseFn$
|
|
2834
|
-
type RequestFn$
|
|
2835
|
-
type BuildUrlFn$
|
|
2796
|
+
type MethodFn$4 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$2 = 'fields'>(options: Omit<RequestOptions$4<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult$4<TData, TError, ThrowOnError, TResponseStyle>;
|
|
2797
|
+
type SseFn$4 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$2 = 'fields'>(options: Omit<RequestOptions$4<TData, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
2798
|
+
type RequestFn$4 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$2 = 'fields'>(options: Omit<RequestOptions$4<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$4<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult$4<TData, TError, ThrowOnError, TResponseStyle>;
|
|
2799
|
+
type BuildUrlFn$4 = <TData extends {
|
|
2836
2800
|
body?: unknown;
|
|
2837
2801
|
path?: Record<string, unknown>;
|
|
2838
2802
|
query?: Record<string, unknown>;
|
|
2839
2803
|
url: string;
|
|
2840
|
-
}>(options: TData & Options$
|
|
2841
|
-
type Client$
|
|
2842
|
-
interceptors: Middleware$
|
|
2804
|
+
}>(options: TData & Options$5<TData>) => string;
|
|
2805
|
+
type Client$5 = Client$8<RequestFn$4, Config$18, MethodFn$4, BuildUrlFn$4, SseFn$4> & {
|
|
2806
|
+
interceptors: Middleware$3<Request, Response, unknown, ResolvedRequestOptions$3>;
|
|
2843
2807
|
};
|
|
2844
|
-
interface TDataShape$
|
|
2808
|
+
interface TDataShape$4 {
|
|
2845
2809
|
body?: unknown;
|
|
2846
2810
|
headers?: unknown;
|
|
2847
2811
|
path?: unknown;
|
|
2848
2812
|
query?: unknown;
|
|
2849
2813
|
url: string;
|
|
2850
2814
|
}
|
|
2851
|
-
type OmitKeys$
|
|
2852
|
-
type Options$
|
|
2815
|
+
type OmitKeys$4<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
2816
|
+
type Options$5<TData extends TDataShape$4 = TDataShape$4, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$2 = 'fields'> = OmitKeys$4<RequestOptions$4<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
2853
2817
|
//#endregion
|
|
2854
2818
|
//#region src/plugins/@hey-api/client-fetch/types.d.ts
|
|
2855
|
-
type UserConfig$
|
|
2819
|
+
type UserConfig$23 = Plugin$1.Name<'@hey-api/client-fetch'> & Client.Config & {
|
|
2856
2820
|
/**
|
|
2857
2821
|
* Throw an error instead of returning it in the response?
|
|
2858
2822
|
*
|
|
@@ -2860,13 +2824,13 @@ type UserConfig$22 = Plugin$1.Name<'@hey-api/client-fetch'> & Client$2.Config &
|
|
|
2860
2824
|
*/
|
|
2861
2825
|
throwOnError?: boolean;
|
|
2862
2826
|
};
|
|
2863
|
-
type HeyApiClientFetchPlugin = DefinePlugin$1<UserConfig$
|
|
2827
|
+
type HeyApiClientFetchPlugin = DefinePlugin$1<UserConfig$23, UserConfig$23>;
|
|
2864
2828
|
//#endregion
|
|
2865
2829
|
//#region src/plugins/@hey-api/client-next/bundle/utils.d.ts
|
|
2866
|
-
type ErrInterceptor$
|
|
2867
|
-
type ReqInterceptor$
|
|
2868
|
-
type ResInterceptor$
|
|
2869
|
-
declare class Interceptors$
|
|
2830
|
+
type ErrInterceptor$2<Err, Res, Options> = (error: Err, response: Res, options: Options) => Err | Promise<Err>;
|
|
2831
|
+
type ReqInterceptor$2<Options> = (options: Options) => void | Promise<void>;
|
|
2832
|
+
type ResInterceptor$2<Res, Options> = (response: Res, options: Options) => Res | Promise<Res>;
|
|
2833
|
+
declare class Interceptors$2<Interceptor> {
|
|
2870
2834
|
fns: Array<Interceptor | null>;
|
|
2871
2835
|
clear(): void;
|
|
2872
2836
|
eject(id: number | Interceptor): void;
|
|
@@ -2875,14 +2839,14 @@ declare class Interceptors$1<Interceptor> {
|
|
|
2875
2839
|
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
2876
2840
|
use(fn: Interceptor): number;
|
|
2877
2841
|
}
|
|
2878
|
-
interface Middleware$
|
|
2879
|
-
error: Interceptors$
|
|
2880
|
-
request: Interceptors$
|
|
2881
|
-
response: Interceptors$
|
|
2842
|
+
interface Middleware$2<Res, Err, Options> {
|
|
2843
|
+
error: Interceptors$2<ErrInterceptor$2<Err, Res, Options>>;
|
|
2844
|
+
request: Interceptors$2<ReqInterceptor$2<Options>>;
|
|
2845
|
+
response: Interceptors$2<ResInterceptor$2<Res, Options>>;
|
|
2882
2846
|
}
|
|
2883
2847
|
//#endregion
|
|
2884
2848
|
//#region src/plugins/@hey-api/client-next/bundle/types.d.ts
|
|
2885
|
-
interface Config$
|
|
2849
|
+
interface Config$17<T extends ClientOptions$3 = ClientOptions$3> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$21 {
|
|
2886
2850
|
/**
|
|
2887
2851
|
* Base URL for all requests made by this client.
|
|
2888
2852
|
*/
|
|
@@ -2910,7 +2874,7 @@ interface Config$16<T extends ClientOptions$2 = ClientOptions$2> extends Omit<Re
|
|
|
2910
2874
|
*/
|
|
2911
2875
|
throwOnError?: T['throwOnError'];
|
|
2912
2876
|
}
|
|
2913
|
-
interface RequestOptions$
|
|
2877
|
+
interface RequestOptions$3<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$17<{
|
|
2914
2878
|
throwOnError: ThrowOnError;
|
|
2915
2879
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
2916
2880
|
/**
|
|
@@ -2927,10 +2891,10 @@ interface RequestOptions$2<TData = unknown, ThrowOnError extends boolean = boole
|
|
|
2927
2891
|
security?: ReadonlyArray<Auth>;
|
|
2928
2892
|
url: Url;
|
|
2929
2893
|
}
|
|
2930
|
-
interface ResolvedRequestOptions$
|
|
2894
|
+
interface ResolvedRequestOptions$2<ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions$3<unknown, ThrowOnError, Url> {
|
|
2931
2895
|
serializedBody?: string;
|
|
2932
2896
|
}
|
|
2933
|
-
type RequestResult$
|
|
2897
|
+
type RequestResult$3<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean> = ThrowOnError extends true ? Promise<{
|
|
2934
2898
|
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
2935
2899
|
response: Response;
|
|
2936
2900
|
}> : Promise<({
|
|
@@ -2942,34 +2906,34 @@ type RequestResult$2<TData = unknown, TError = unknown, ThrowOnError extends boo
|
|
|
2942
2906
|
}) & {
|
|
2943
2907
|
response: Response;
|
|
2944
2908
|
}>;
|
|
2945
|
-
interface ClientOptions$
|
|
2909
|
+
interface ClientOptions$3 {
|
|
2946
2910
|
baseUrl?: string;
|
|
2947
2911
|
throwOnError?: boolean;
|
|
2948
2912
|
}
|
|
2949
|
-
type MethodFn$
|
|
2950
|
-
type SseFn$
|
|
2951
|
-
type RequestFn$
|
|
2952
|
-
type BuildUrlFn$
|
|
2913
|
+
type MethodFn$3 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$3<TData, ThrowOnError>, 'method'>) => RequestResult$3<TData, TError, ThrowOnError>;
|
|
2914
|
+
type SseFn$3 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$3<TData, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
2915
|
+
type RequestFn$3 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$3<TData, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$3<TData, ThrowOnError>>, 'method'>) => RequestResult$3<TData, TError, ThrowOnError>;
|
|
2916
|
+
type BuildUrlFn$3 = <TData extends {
|
|
2953
2917
|
body?: unknown;
|
|
2954
2918
|
path?: Record<string, unknown>;
|
|
2955
2919
|
query?: Record<string, unknown>;
|
|
2956
2920
|
url: string;
|
|
2957
|
-
}>(options: TData & Options$
|
|
2958
|
-
type Client$4 = Client$
|
|
2959
|
-
interceptors: Middleware$
|
|
2921
|
+
}>(options: TData & Options$4<TData>) => string;
|
|
2922
|
+
type Client$4 = Client$8<RequestFn$3, Config$17, MethodFn$3, BuildUrlFn$3, SseFn$3> & {
|
|
2923
|
+
interceptors: Middleware$2<Response, unknown, ResolvedRequestOptions$2>;
|
|
2960
2924
|
};
|
|
2961
|
-
interface TDataShape$
|
|
2925
|
+
interface TDataShape$3 {
|
|
2962
2926
|
body?: unknown;
|
|
2963
2927
|
headers?: unknown;
|
|
2964
2928
|
path?: unknown;
|
|
2965
2929
|
query?: unknown;
|
|
2966
2930
|
url: string;
|
|
2967
2931
|
}
|
|
2968
|
-
type OmitKeys$
|
|
2969
|
-
type Options$
|
|
2932
|
+
type OmitKeys$3<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
2933
|
+
type Options$4<TData extends TDataShape$3 = TDataShape$3, ThrowOnError extends boolean = boolean, TResponse = unknown> = OmitKeys$3<RequestOptions$3<TResponse, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
2970
2934
|
//#endregion
|
|
2971
2935
|
//#region src/plugins/@hey-api/client-next/types.d.ts
|
|
2972
|
-
type UserConfig$
|
|
2936
|
+
type UserConfig$22 = Plugin$1.Name<'@hey-api/client-next'> & Client.Config & {
|
|
2973
2937
|
/**
|
|
2974
2938
|
* Throw an error instead of returning it in the response?
|
|
2975
2939
|
*
|
|
@@ -2977,13 +2941,13 @@ type UserConfig$21 = Plugin$1.Name<'@hey-api/client-next'> & Client$2.Config & {
|
|
|
2977
2941
|
*/
|
|
2978
2942
|
throwOnError?: boolean;
|
|
2979
2943
|
};
|
|
2980
|
-
type HeyApiClientNextPlugin = DefinePlugin$1<UserConfig$
|
|
2944
|
+
type HeyApiClientNextPlugin = DefinePlugin$1<UserConfig$22, UserConfig$22>;
|
|
2981
2945
|
//#endregion
|
|
2982
2946
|
//#region src/plugins/@hey-api/client-nuxt/bundle/types.d.ts
|
|
2983
|
-
type QuerySerializer = (query: Parameters<Client$
|
|
2947
|
+
type QuerySerializer = (query: Parameters<Client$3['buildUrl']>[0]['query']) => string;
|
|
2984
2948
|
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> };
|
|
2985
2949
|
type KeysOf<T> = Array<T extends T ? (keyof T extends string ? keyof T : never) : never>;
|
|
2986
|
-
interface Config$
|
|
2950
|
+
interface Config$16<T extends ClientOptions$2 = ClientOptions$2> extends Omit<FetchOptions$1<unknown>, 'baseURL' | 'body' | 'headers' | 'method' | 'query'>, WithRefs<Pick<FetchOptions$1<unknown>, 'query'>>, Omit<Config$21, 'querySerializer'> {
|
|
2987
2951
|
/**
|
|
2988
2952
|
* Base URL for all requests made by this client.
|
|
2989
2953
|
*/
|
|
@@ -2997,7 +2961,7 @@ interface Config$15<T extends ClientOptions$1 = ClientOptions$1> extends Omit<Fe
|
|
|
2997
2961
|
*/
|
|
2998
2962
|
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
2999
2963
|
}
|
|
3000
|
-
interface RequestOptions$
|
|
2964
|
+
interface RequestOptions$2<TComposable extends Composable = '$fetch', ResT = unknown, DefaultT = undefined, Url extends string = string> extends Config$16, WithRefs<{
|
|
3001
2965
|
path?: FetchOptions$1<unknown>['query'];
|
|
3002
2966
|
query?: FetchOptions$1<unknown>['query'];
|
|
3003
2967
|
}>, Pick<ServerSentEventsOptions<ResT>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -3017,13 +2981,13 @@ interface RequestOptions$1<TComposable extends Composable = '$fetch', ResT = unk
|
|
|
3017
2981
|
security?: ReadonlyArray<Auth>;
|
|
3018
2982
|
url: Url;
|
|
3019
2983
|
}
|
|
3020
|
-
type RequestResult$
|
|
3021
|
-
interface ClientOptions$
|
|
2984
|
+
type RequestResult$2<TComposable extends Composable, ResT, TError> = TComposable extends '$fetch' ? ReturnType<typeof $fetch<ResT>> : TComposable extends 'useAsyncData' ? ReturnType<typeof useAsyncData<ResT | null, TError>> : TComposable extends 'useFetch' ? ReturnType<typeof useFetch<ResT | null, TError>> : TComposable extends 'useLazyAsyncData' ? ReturnType<typeof useLazyAsyncData<ResT | null, TError>> : TComposable extends 'useLazyFetch' ? ReturnType<typeof useLazyFetch<ResT | null, TError>> : never;
|
|
2985
|
+
interface ClientOptions$2 {
|
|
3022
2986
|
baseURL?: string;
|
|
3023
2987
|
}
|
|
3024
|
-
type MethodFn$
|
|
3025
|
-
type SseFn$
|
|
3026
|
-
type RequestFn$
|
|
2988
|
+
type MethodFn$2 = <TComposable extends Composable = '$fetch', ResT = unknown, TError = unknown, DefaultT = undefined>(options: Omit<RequestOptions$2<TComposable, ResT, DefaultT>, 'method'>) => RequestResult$2<TComposable, ResT, TError>;
|
|
2989
|
+
type SseFn$2 = <TComposable extends Composable = '$fetch', ResT = unknown, TError = unknown, DefaultT = undefined>(options: Omit<RequestOptions$2<TComposable, ResT, DefaultT>, 'method'>) => Promise<ServerSentEventsResult<RequestResult$2<TComposable, ResT, TError>>>;
|
|
2990
|
+
type RequestFn$2 = <TComposable extends Composable = '$fetch', ResT = unknown, TError = unknown, DefaultT = undefined>(options: Omit<RequestOptions$2<TComposable, ResT, DefaultT>, 'method'> & Pick<Required<RequestOptions$2<TComposable, ResT, DefaultT>>, 'method'>) => RequestResult$2<TComposable, ResT, TError>;
|
|
3027
2991
|
/**
|
|
3028
2992
|
* The `createClientConfig()` function will be called on client initialization
|
|
3029
2993
|
* and the returned object will become the client's initial configuration.
|
|
@@ -3032,31 +2996,30 @@ type RequestFn$1 = <TComposable extends Composable = '$fetch', ResT = unknown, T
|
|
|
3032
2996
|
* `setConfig()`. This is useful for example if you're using Next.js
|
|
3033
2997
|
* to ensure your client always has the correct values.
|
|
3034
2998
|
*/
|
|
3035
|
-
|
|
3036
|
-
interface TDataShape$1 {
|
|
2999
|
+
interface TDataShape$2 {
|
|
3037
3000
|
body?: unknown;
|
|
3038
3001
|
headers?: unknown;
|
|
3039
3002
|
path?: FetchOptions$1<unknown>['query'];
|
|
3040
3003
|
query?: FetchOptions$1<unknown>['query'];
|
|
3041
3004
|
url: string;
|
|
3042
3005
|
}
|
|
3043
|
-
type BuildUrlOptions<TData extends Omit<TDataShape$
|
|
3044
|
-
type BuildUrlFn$
|
|
3045
|
-
type Client$
|
|
3046
|
-
type OmitKeys$
|
|
3047
|
-
type Options$
|
|
3006
|
+
type BuildUrlOptions<TData extends Omit<TDataShape$2, 'headers'> = Omit<TDataShape$2, 'headers'>> = Pick<WithRefs<TData>, 'path' | 'query'> & Pick<TData, 'url'> & Pick<Options$3<'$fetch', TData>, 'baseURL' | 'querySerializer'>;
|
|
3007
|
+
type BuildUrlFn$2 = <TData extends Omit<TDataShape$2, 'headers'>>(options: BuildUrlOptions<TData>) => string;
|
|
3008
|
+
type Client$3 = Client$8<RequestFn$2, Config$16, MethodFn$2, BuildUrlFn$2, SseFn$2>;
|
|
3009
|
+
type OmitKeys$2<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
3010
|
+
type Options$3<TComposable extends Composable = '$fetch', TData extends TDataShape$2 = TDataShape$2, ResT = unknown, DefaultT = undefined> = OmitKeys$2<RequestOptions$2<TComposable, ResT, DefaultT>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : WithRefs<Omit<TData, 'url'>>);
|
|
3048
3011
|
type FetchOptions$1<TData> = Omit<UseFetchOptions<TData, TData>, keyof AsyncDataOptions<TData>>;
|
|
3049
3012
|
type Composable = '$fetch' | 'useAsyncData' | 'useFetch' | 'useLazyAsyncData' | 'useLazyFetch';
|
|
3050
3013
|
//#endregion
|
|
3051
3014
|
//#region src/plugins/@hey-api/client-nuxt/types.d.ts
|
|
3052
|
-
type UserConfig$
|
|
3053
|
-
type HeyApiClientNuxtPlugin = DefinePlugin$1<UserConfig$
|
|
3015
|
+
type UserConfig$21 = Plugin$1.Name<'@hey-api/client-nuxt'> & Client.Config;
|
|
3016
|
+
type HeyApiClientNuxtPlugin = DefinePlugin$1<UserConfig$21, UserConfig$21>;
|
|
3054
3017
|
//#endregion
|
|
3055
3018
|
//#region src/plugins/@hey-api/client-ofetch/bundle/utils.d.ts
|
|
3056
|
-
type ErrInterceptor<Err, Res, Req, Options
|
|
3057
|
-
type ReqInterceptor<Req, Options
|
|
3058
|
-
type ResInterceptor<Res, Req, Options
|
|
3059
|
-
declare class Interceptors<Interceptor> {
|
|
3019
|
+
type ErrInterceptor$1<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
|
|
3020
|
+
type ReqInterceptor$1<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
3021
|
+
type ResInterceptor$1<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
3022
|
+
declare class Interceptors$1<Interceptor> {
|
|
3060
3023
|
fns: Array<Interceptor | null>;
|
|
3061
3024
|
clear(): void;
|
|
3062
3025
|
eject(id: number | Interceptor): void;
|
|
@@ -3065,15 +3028,15 @@ declare class Interceptors<Interceptor> {
|
|
|
3065
3028
|
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
3066
3029
|
use(fn: Interceptor): number;
|
|
3067
3030
|
}
|
|
3068
|
-
interface Middleware<Req, Res, Err, Options
|
|
3069
|
-
error: Interceptors<ErrInterceptor<Err, Res, Req, Options
|
|
3070
|
-
request: Interceptors<ReqInterceptor<Req, Options
|
|
3071
|
-
response: Interceptors<ResInterceptor<Res, Req, Options
|
|
3031
|
+
interface Middleware$1<Req, Res, Err, Options> {
|
|
3032
|
+
error: Interceptors$1<ErrInterceptor$1<Err, Res, Req, Options>>;
|
|
3033
|
+
request: Interceptors$1<ReqInterceptor$1<Req, Options>>;
|
|
3034
|
+
response: Interceptors$1<ResInterceptor$1<Res, Req, Options>>;
|
|
3072
3035
|
}
|
|
3073
3036
|
//#endregion
|
|
3074
3037
|
//#region src/plugins/@hey-api/client-ofetch/bundle/types.d.ts
|
|
3075
|
-
type ResponseStyle = 'data' | 'fields';
|
|
3076
|
-
interface Config$
|
|
3038
|
+
type ResponseStyle$1 = 'data' | 'fields';
|
|
3039
|
+
interface Config$15<T extends ClientOptions$1 = ClientOptions$1> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$21 {
|
|
3077
3040
|
/**
|
|
3078
3041
|
* HTTP(S) agent configuration (Node.js only). Passed through to ofetch.
|
|
3079
3042
|
*/
|
|
@@ -3145,7 +3108,7 @@ interface Config$14<T extends ClientOptions = ClientOptions> extends Omit<Reques
|
|
|
3145
3108
|
*
|
|
3146
3109
|
* @default 'fields'
|
|
3147
3110
|
*/
|
|
3148
|
-
responseStyle?: ResponseStyle;
|
|
3111
|
+
responseStyle?: ResponseStyle$1;
|
|
3149
3112
|
/**
|
|
3150
3113
|
* ofetch responseType override. If provided, it will be passed directly to
|
|
3151
3114
|
* ofetch and take precedence over `parseAs`.
|
|
@@ -3174,7 +3137,7 @@ interface Config$14<T extends ClientOptions = ClientOptions> extends Omit<Reques
|
|
|
3174
3137
|
*/
|
|
3175
3138
|
timeout?: number;
|
|
3176
3139
|
}
|
|
3177
|
-
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
3140
|
+
interface RequestOptions$1<TData = unknown, TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$15<{
|
|
3178
3141
|
responseStyle: TResponseStyle;
|
|
3179
3142
|
throwOnError: ThrowOnError;
|
|
3180
3143
|
}>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -3192,10 +3155,10 @@ interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle =
|
|
|
3192
3155
|
security?: ReadonlyArray<Auth>;
|
|
3193
3156
|
url: Url;
|
|
3194
3157
|
}
|
|
3195
|
-
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
3158
|
+
interface ResolvedRequestOptions$1<TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions$1<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
3196
3159
|
serializedBody?: string;
|
|
3197
3160
|
}
|
|
3198
|
-
type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
3161
|
+
type RequestResult$1<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle$1 = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
3199
3162
|
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
3200
3163
|
request: Request;
|
|
3201
3164
|
response: Response;
|
|
@@ -3209,35 +3172,35 @@ type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boole
|
|
|
3209
3172
|
request: Request;
|
|
3210
3173
|
response: Response;
|
|
3211
3174
|
}>;
|
|
3212
|
-
interface ClientOptions {
|
|
3175
|
+
interface ClientOptions$1 {
|
|
3213
3176
|
baseUrl?: string;
|
|
3214
|
-
responseStyle?: ResponseStyle;
|
|
3177
|
+
responseStyle?: ResponseStyle$1;
|
|
3215
3178
|
throwOnError?: boolean;
|
|
3216
3179
|
}
|
|
3217
|
-
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
3218
|
-
type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
3219
|
-
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
3220
|
-
type BuildUrlFn = <TData extends {
|
|
3180
|
+
type MethodFn$1 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$1 = 'fields'>(options: Omit<RequestOptions$1<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult$1<TData, TError, ThrowOnError, TResponseStyle>;
|
|
3181
|
+
type SseFn$1 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$1 = 'fields'>(options: Omit<RequestOptions$1<TData, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
3182
|
+
type RequestFn$1 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$1 = 'fields'>(options: Omit<RequestOptions$1<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$1<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult$1<TData, TError, ThrowOnError, TResponseStyle>;
|
|
3183
|
+
type BuildUrlFn$1 = <TData extends {
|
|
3221
3184
|
body?: unknown;
|
|
3222
3185
|
path?: Record<string, unknown>;
|
|
3223
3186
|
query?: Record<string, unknown>;
|
|
3224
3187
|
url: string;
|
|
3225
|
-
}>(options: TData & Options<TData>) => string;
|
|
3226
|
-
type Client$
|
|
3227
|
-
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
3188
|
+
}>(options: TData & Options$2<TData>) => string;
|
|
3189
|
+
type Client$2 = Client$8<RequestFn$1, Config$15, MethodFn$1, BuildUrlFn$1, SseFn$1> & {
|
|
3190
|
+
interceptors: Middleware$1<Request, Response, unknown, ResolvedRequestOptions$1>;
|
|
3228
3191
|
};
|
|
3229
|
-
interface TDataShape {
|
|
3192
|
+
interface TDataShape$1 {
|
|
3230
3193
|
body?: unknown;
|
|
3231
3194
|
headers?: unknown;
|
|
3232
3195
|
path?: unknown;
|
|
3233
3196
|
query?: unknown;
|
|
3234
3197
|
url: string;
|
|
3235
3198
|
}
|
|
3236
|
-
type OmitKeys<T, K
|
|
3237
|
-
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'>);
|
|
3199
|
+
type OmitKeys$1<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
3200
|
+
type Options$2<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$1 = 'fields'> = OmitKeys$1<RequestOptions$1<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
3238
3201
|
//#endregion
|
|
3239
3202
|
//#region src/plugins/@hey-api/client-ofetch/types.d.ts
|
|
3240
|
-
type UserConfig$
|
|
3203
|
+
type UserConfig$20 = Plugin$1.Name<'@hey-api/client-ofetch'> & Client.Config & {
|
|
3241
3204
|
/**
|
|
3242
3205
|
* Throw an error instead of returning it in the response?
|
|
3243
3206
|
*
|
|
@@ -3245,7 +3208,7 @@ type UserConfig$19 = Plugin$1.Name<'@hey-api/client-ofetch'> & Client$2.Config &
|
|
|
3245
3208
|
*/
|
|
3246
3209
|
throwOnError?: boolean;
|
|
3247
3210
|
};
|
|
3248
|
-
type HeyApiClientOfetchPlugin = DefinePlugin$1<UserConfig$
|
|
3211
|
+
type HeyApiClientOfetchPlugin = DefinePlugin$1<UserConfig$20, UserConfig$20>;
|
|
3249
3212
|
//#endregion
|
|
3250
3213
|
//#region src/plugins/@hey-api/client-core/types.d.ts
|
|
3251
3214
|
interface PluginHandler {
|
|
@@ -3259,7 +3222,7 @@ interface PluginHandler {
|
|
|
3259
3222
|
/**
|
|
3260
3223
|
* Public Client API.
|
|
3261
3224
|
*/
|
|
3262
|
-
declare namespace Client
|
|
3225
|
+
declare namespace Client {
|
|
3263
3226
|
type Config = Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
3264
3227
|
/**
|
|
3265
3228
|
* Set a default base URL when creating the client? You can set `baseUrl`
|
|
@@ -3308,7 +3271,7 @@ declare namespace Client$2 {
|
|
|
3308
3271
|
}
|
|
3309
3272
|
//#endregion
|
|
3310
3273
|
//#region src/plugins/@hey-api/client-angular/types.d.ts
|
|
3311
|
-
type UserConfig$
|
|
3274
|
+
type UserConfig$19 = Plugin$1.Name<'@hey-api/client-angular'> & Client.Config & {
|
|
3312
3275
|
/**
|
|
3313
3276
|
* Throw an error instead of returning it in the response?
|
|
3314
3277
|
*
|
|
@@ -3316,83 +3279,233 @@ type UserConfig$18 = Plugin$1.Name<'@hey-api/client-angular'> & Client$2.Config
|
|
|
3316
3279
|
*/
|
|
3317
3280
|
throwOnError?: boolean;
|
|
3318
3281
|
};
|
|
3319
|
-
type HeyApiClientAngularPlugin = DefinePlugin$1<UserConfig$
|
|
3282
|
+
type HeyApiClientAngularPlugin = DefinePlugin$1<UserConfig$19, UserConfig$19>;
|
|
3320
3283
|
//#endregion
|
|
3321
|
-
//#region src/plugins/@hey-api/client-ky/
|
|
3322
|
-
type
|
|
3284
|
+
//#region src/plugins/@hey-api/client-ky/bundle/utils.d.ts
|
|
3285
|
+
type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
|
|
3286
|
+
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
3287
|
+
type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
3288
|
+
declare class Interceptors<Interceptor> {
|
|
3289
|
+
fns: Array<Interceptor | null>;
|
|
3290
|
+
clear(): void;
|
|
3291
|
+
eject(id: number | Interceptor): void;
|
|
3292
|
+
exists(id: number | Interceptor): boolean;
|
|
3293
|
+
getInterceptorIndex(id: number | Interceptor): number;
|
|
3294
|
+
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
3295
|
+
use(fn: Interceptor): number;
|
|
3296
|
+
}
|
|
3297
|
+
interface Middleware<Req, Res, Err, Options> {
|
|
3298
|
+
error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
|
|
3299
|
+
request: Interceptors<ReqInterceptor<Req, Options>>;
|
|
3300
|
+
response: Interceptors<ResInterceptor<Res, Req, Options>>;
|
|
3301
|
+
}
|
|
3302
|
+
//#endregion
|
|
3303
|
+
//#region src/plugins/@hey-api/client-ky/bundle/types.d.ts
|
|
3304
|
+
type ResponseStyle = 'data' | 'fields';
|
|
3305
|
+
interface RetryOptions {
|
|
3323
3306
|
/**
|
|
3324
|
-
*
|
|
3307
|
+
* Maximum number of retry attempts
|
|
3325
3308
|
*
|
|
3326
|
-
* @default
|
|
3309
|
+
* @default 2
|
|
3327
3310
|
*/
|
|
3328
|
-
|
|
3329
|
-
};
|
|
3330
|
-
type HeyApiClientKyPlugin = DefinePlugin$1<UserConfig$17, UserConfig$17>;
|
|
3331
|
-
//#endregion
|
|
3332
|
-
//#region src/plugins/@hey-api/schemas/types.d.ts
|
|
3333
|
-
type UserConfig$16 = Plugin$1.Name<'@hey-api/schemas'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
3311
|
+
limit?: number;
|
|
3334
3312
|
/**
|
|
3335
|
-
*
|
|
3336
|
-
* valid JavaScript/TypeScript identifier, e.g. if your schema name is
|
|
3337
|
-
* "Foo-Bar", `name` value would be "FooBar".
|
|
3313
|
+
* HTTP methods to retry
|
|
3338
3314
|
*
|
|
3339
|
-
* @default '
|
|
3315
|
+
* @default ['get', 'put', 'head', 'delete', 'options', 'trace']
|
|
3340
3316
|
*/
|
|
3341
|
-
|
|
3317
|
+
methods?: Array<'get' | 'post' | 'put' | 'delete' | 'patch' | 'head' | 'options' | 'trace'>;
|
|
3342
3318
|
/**
|
|
3343
|
-
*
|
|
3344
|
-
* descriptions to reduce bundle size and you plan to use schemas
|
|
3345
|
-
* for form validation
|
|
3319
|
+
* HTTP status codes to retry
|
|
3346
3320
|
*
|
|
3347
|
-
* @default
|
|
3321
|
+
* @default [408, 413, 429, 500, 502, 503, 504]
|
|
3348
3322
|
*/
|
|
3349
|
-
|
|
3350
|
-
}
|
|
3351
|
-
|
|
3352
|
-
//#endregion
|
|
3353
|
-
//#region src/plugins/types.d.ts
|
|
3354
|
-
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';
|
|
3355
|
-
type PluginTransformerNames = '@hey-api/transformers';
|
|
3356
|
-
type PluginValidatorNames = 'arktype' | 'valibot' | 'zod';
|
|
3357
|
-
//#endregion
|
|
3358
|
-
//#region src/plugins/@hey-api/sdk/examples/types.d.ts
|
|
3359
|
-
type UserExamplesConfig = Omit<ExampleOptions, 'payload'> & {
|
|
3323
|
+
statusCodes?: number[];
|
|
3324
|
+
}
|
|
3325
|
+
interface Config$14<T extends ClientOptions = ClientOptions> extends Omit<Options, 'body' | 'headers' | 'method' | 'prefixUrl' | 'retry' | 'throwHttpErrors'>, Config$21 {
|
|
3360
3326
|
/**
|
|
3361
|
-
*
|
|
3362
|
-
*
|
|
3363
|
-
* @default true
|
|
3327
|
+
* Base URL for all requests made by this client.
|
|
3364
3328
|
*/
|
|
3365
|
-
|
|
3329
|
+
baseUrl?: T['baseUrl'];
|
|
3366
3330
|
/**
|
|
3367
|
-
*
|
|
3368
|
-
*
|
|
3369
|
-
* This is used to display the language label in code blocks in
|
|
3370
|
-
* documentation UIs.
|
|
3371
|
-
*
|
|
3372
|
-
* @default 'JavaScript'
|
|
3331
|
+
* Ky instance to use. You can use this option to provide a custom
|
|
3332
|
+
* ky instance.
|
|
3373
3333
|
*/
|
|
3374
|
-
|
|
3334
|
+
ky?: typeof ky;
|
|
3375
3335
|
/**
|
|
3376
|
-
*
|
|
3336
|
+
* Additional ky-specific options that will be passed directly to ky.
|
|
3337
|
+
* This allows you to use any ky option not explicitly exposed in the config.
|
|
3377
3338
|
*/
|
|
3378
|
-
|
|
3339
|
+
kyOptions?: Omit<Options, 'method' | 'prefixUrl'>;
|
|
3379
3340
|
/**
|
|
3380
|
-
*
|
|
3341
|
+
* Return the response data parsed in a specified format. By default, `auto`
|
|
3342
|
+
* will infer the appropriate method from the `Content-Type` response header.
|
|
3343
|
+
* You can override this behavior with any of the {@link Body} methods.
|
|
3344
|
+
* Select `stream` if you don't want to parse response data at all.
|
|
3381
3345
|
*
|
|
3382
|
-
* @
|
|
3383
|
-
* @param operation The operation the example was generated for.
|
|
3384
|
-
* @returns The final example string.
|
|
3346
|
+
* @default 'auto'
|
|
3385
3347
|
*/
|
|
3386
|
-
|
|
3387
|
-
};
|
|
3388
|
-
type ExamplesConfig = Omit<ExampleOptions, 'payload'> & FeatureToggle & {
|
|
3348
|
+
parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
|
|
3389
3349
|
/**
|
|
3390
|
-
*
|
|
3350
|
+
* Should we return only data or multiple fields (data, error, response, etc.)?
|
|
3391
3351
|
*
|
|
3392
|
-
*
|
|
3393
|
-
* documentation UIs.
|
|
3352
|
+
* @default 'fields'
|
|
3394
3353
|
*/
|
|
3395
|
-
|
|
3354
|
+
responseStyle?: ResponseStyle;
|
|
3355
|
+
/**
|
|
3356
|
+
* Retry configuration
|
|
3357
|
+
*/
|
|
3358
|
+
retry?: RetryOptions;
|
|
3359
|
+
/**
|
|
3360
|
+
* Throw an error instead of returning it in the response?
|
|
3361
|
+
*
|
|
3362
|
+
* @default false
|
|
3363
|
+
*/
|
|
3364
|
+
throwOnError?: T['throwOnError'];
|
|
3365
|
+
/**
|
|
3366
|
+
* Request timeout in milliseconds
|
|
3367
|
+
*
|
|
3368
|
+
* @default 10000
|
|
3369
|
+
*/
|
|
3370
|
+
timeout?: number;
|
|
3371
|
+
}
|
|
3372
|
+
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$14<{
|
|
3373
|
+
responseStyle: TResponseStyle;
|
|
3374
|
+
throwOnError: ThrowOnError;
|
|
3375
|
+
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
3376
|
+
/**
|
|
3377
|
+
* Any body that you want to add to your request.
|
|
3378
|
+
*
|
|
3379
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
3380
|
+
*/
|
|
3381
|
+
body?: unknown;
|
|
3382
|
+
path?: Record<string, unknown>;
|
|
3383
|
+
query?: Record<string, unknown>;
|
|
3384
|
+
/**
|
|
3385
|
+
* Security mechanism(s) to use for the request.
|
|
3386
|
+
*/
|
|
3387
|
+
security?: ReadonlyArray<Auth>;
|
|
3388
|
+
url: Url;
|
|
3389
|
+
}
|
|
3390
|
+
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
3391
|
+
serializedBody?: string;
|
|
3392
|
+
}
|
|
3393
|
+
type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
3394
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
3395
|
+
request: Request;
|
|
3396
|
+
response: Response;
|
|
3397
|
+
}> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
3398
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
3399
|
+
error: undefined;
|
|
3400
|
+
} | {
|
|
3401
|
+
data: undefined;
|
|
3402
|
+
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
3403
|
+
}) & {
|
|
3404
|
+
request: Request;
|
|
3405
|
+
response: Response;
|
|
3406
|
+
}>;
|
|
3407
|
+
interface ClientOptions {
|
|
3408
|
+
baseUrl?: string;
|
|
3409
|
+
responseStyle?: ResponseStyle;
|
|
3410
|
+
throwOnError?: boolean;
|
|
3411
|
+
}
|
|
3412
|
+
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
3413
|
+
type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
3414
|
+
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
3415
|
+
type BuildUrlFn = <TData extends {
|
|
3416
|
+
body?: unknown;
|
|
3417
|
+
path?: Record<string, unknown>;
|
|
3418
|
+
query?: Record<string, unknown>;
|
|
3419
|
+
url: string;
|
|
3420
|
+
}>(options: TData & Options$1<TData>) => string;
|
|
3421
|
+
type Client$1 = Client$8<RequestFn, Config$14, MethodFn, BuildUrlFn, SseFn> & {
|
|
3422
|
+
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
3423
|
+
};
|
|
3424
|
+
interface TDataShape {
|
|
3425
|
+
body?: unknown;
|
|
3426
|
+
headers?: unknown;
|
|
3427
|
+
path?: unknown;
|
|
3428
|
+
query?: unknown;
|
|
3429
|
+
url: string;
|
|
3430
|
+
}
|
|
3431
|
+
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
3432
|
+
type Options$1<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'>);
|
|
3433
|
+
//#endregion
|
|
3434
|
+
//#region src/plugins/@hey-api/client-ky/types.d.ts
|
|
3435
|
+
type UserConfig$18 = Plugin$1.Name<'@hey-api/client-ky'> & Client.Config & {
|
|
3436
|
+
/**
|
|
3437
|
+
* Throw an error instead of returning it in the response?
|
|
3438
|
+
*
|
|
3439
|
+
* @default false
|
|
3440
|
+
*/
|
|
3441
|
+
throwOnError?: boolean;
|
|
3442
|
+
};
|
|
3443
|
+
type HeyApiClientKyPlugin = DefinePlugin$1<UserConfig$18, UserConfig$18>;
|
|
3444
|
+
//#endregion
|
|
3445
|
+
//#region src/plugins/@hey-api/schemas/types.d.ts
|
|
3446
|
+
type UserConfig$17 = Plugin$1.Name<'@hey-api/schemas'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
3447
|
+
/**
|
|
3448
|
+
* Customise the schema name. By default, `{{name}}Schema` is used. `name` is a
|
|
3449
|
+
* valid JavaScript/TypeScript identifier, e.g. if your schema name is
|
|
3450
|
+
* "Foo-Bar", `name` value would be "FooBar".
|
|
3451
|
+
*
|
|
3452
|
+
* @default '{{name}}Schema'
|
|
3453
|
+
*/
|
|
3454
|
+
nameBuilder?: string | ((name: string, schema: OpenApiV2_0_XTypes['SchemaObject'] | OpenApiV3_0_XTypes['ReferenceObject'] | OpenApiV3_0_XTypes['SchemaObject'] | OpenApiV3_1_XTypes['SchemaObject']) => string);
|
|
3455
|
+
/**
|
|
3456
|
+
* Choose schema type to generate. Select 'form' if you don't want
|
|
3457
|
+
* descriptions to reduce bundle size and you plan to use schemas
|
|
3458
|
+
* for form validation
|
|
3459
|
+
*
|
|
3460
|
+
* @default 'json'
|
|
3461
|
+
*/
|
|
3462
|
+
type?: 'form' | 'json';
|
|
3463
|
+
};
|
|
3464
|
+
type HeyApiSchemasPlugin = DefinePlugin$1<UserConfig$17, UserConfig$17>;
|
|
3465
|
+
//#endregion
|
|
3466
|
+
//#region src/plugins/types.d.ts
|
|
3467
|
+
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';
|
|
3468
|
+
type PluginTransformerNames = '@hey-api/transformers';
|
|
3469
|
+
type PluginValidatorNames = 'arktype' | 'valibot' | 'zod';
|
|
3470
|
+
//#endregion
|
|
3471
|
+
//#region src/plugins/@hey-api/sdk/examples/types.d.ts
|
|
3472
|
+
type UserExamplesConfig = Omit<ExampleOptions, 'payload'> & {
|
|
3473
|
+
/**
|
|
3474
|
+
* Whether this feature is enabled.
|
|
3475
|
+
*
|
|
3476
|
+
* @default true
|
|
3477
|
+
*/
|
|
3478
|
+
enabled?: boolean;
|
|
3479
|
+
/**
|
|
3480
|
+
* The programming language for the generated examples.
|
|
3481
|
+
*
|
|
3482
|
+
* This is used to display the language label in code blocks in
|
|
3483
|
+
* documentation UIs.
|
|
3484
|
+
*
|
|
3485
|
+
* @default 'JavaScript'
|
|
3486
|
+
*/
|
|
3487
|
+
language?: LinguistLanguages;
|
|
3488
|
+
/**
|
|
3489
|
+
* Example request payload.
|
|
3490
|
+
*/
|
|
3491
|
+
payload?: MaybeFunc<(operation: IR$1.OperationObject, ctx: DollarTsDsl) => CallArgs | CallArgs[number]>;
|
|
3492
|
+
/**
|
|
3493
|
+
* Transform the generated example string.
|
|
3494
|
+
*
|
|
3495
|
+
* @param example The generated example string.
|
|
3496
|
+
* @param operation The operation the example was generated for.
|
|
3497
|
+
* @returns The final example string.
|
|
3498
|
+
*/
|
|
3499
|
+
transform?: (example: string, operation: IR$1.OperationObject) => string;
|
|
3500
|
+
};
|
|
3501
|
+
type ExamplesConfig = Omit<ExampleOptions, 'payload'> & FeatureToggle & {
|
|
3502
|
+
/**
|
|
3503
|
+
* The programming language for the generated examples.
|
|
3504
|
+
*
|
|
3505
|
+
* This is used to display the language label in code blocks in
|
|
3506
|
+
* documentation UIs.
|
|
3507
|
+
*/
|
|
3508
|
+
language: LinguistLanguages;
|
|
3396
3509
|
/**
|
|
3397
3510
|
* Example request payload.
|
|
3398
3511
|
*/
|
|
@@ -3584,7 +3697,7 @@ interface OperationsConfig {
|
|
|
3584
3697
|
}
|
|
3585
3698
|
//#endregion
|
|
3586
3699
|
//#region src/plugins/@hey-api/sdk/types.d.ts
|
|
3587
|
-
type UserConfig$
|
|
3700
|
+
type UserConfig$16 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
3588
3701
|
/**
|
|
3589
3702
|
* Should the generated functions contain auth mechanisms? You may want to
|
|
3590
3703
|
* disable this option if you're handling auth yourself or defining it
|
|
@@ -3848,7 +3961,7 @@ type Config$13 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.Comme
|
|
|
3848
3961
|
*/
|
|
3849
3962
|
response: 'body' | 'response';
|
|
3850
3963
|
};
|
|
3851
|
-
type HeyApiSdkPlugin = DefinePlugin$1<UserConfig$
|
|
3964
|
+
type HeyApiSdkPlugin = DefinePlugin$1<UserConfig$16, Config$13>;
|
|
3852
3965
|
//#endregion
|
|
3853
3966
|
//#region src/plugins/@hey-api/transformers/expressions.d.ts
|
|
3854
3967
|
type ExpressionTransformer = ({
|
|
@@ -3856,7 +3969,7 @@ type ExpressionTransformer = ({
|
|
|
3856
3969
|
dataExpression,
|
|
3857
3970
|
schema
|
|
3858
3971
|
}: {
|
|
3859
|
-
config: Omit<UserConfig$
|
|
3972
|
+
config: Omit<UserConfig$15, 'name'>;
|
|
3860
3973
|
dataExpression?: ts.Expression | ReturnType<typeof $.expr | typeof $.attr> | string;
|
|
3861
3974
|
schema: IR$1.SchemaObject;
|
|
3862
3975
|
}) => Array<ReturnType<typeof $.fromValue>> | undefined;
|
|
@@ -3871,7 +3984,7 @@ type TypeTransformer = ({
|
|
|
3871
3984
|
}: {
|
|
3872
3985
|
schema: IR$1.SchemaObject;
|
|
3873
3986
|
}) => ts.TypeNode | undefined;
|
|
3874
|
-
type UserConfig$
|
|
3987
|
+
type UserConfig$15 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
3875
3988
|
/**
|
|
3876
3989
|
* Convert long integers into BigInt values?
|
|
3877
3990
|
*
|
|
@@ -3915,37 +4028,396 @@ type Config$12 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugi
|
|
|
3915
4028
|
*/
|
|
3916
4029
|
typeTransformers: ReadonlyArray<TypeTransformer>;
|
|
3917
4030
|
};
|
|
3918
|
-
type HeyApiTransformersPlugin = DefinePlugin$1<UserConfig$
|
|
4031
|
+
type HeyApiTransformersPlugin = DefinePlugin$1<UserConfig$15, Config$12>;
|
|
3919
4032
|
//#endregion
|
|
3920
4033
|
//#region src/plugins/@hey-api/typescript/shared/types.d.ts
|
|
3921
|
-
type
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
/**
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
}
|
|
3938
|
-
|
|
3939
|
-
|
|
4034
|
+
type Type = MaybeTsDsl<TypeTsDsl>;
|
|
4035
|
+
/**
|
|
4036
|
+
* Metadata that flows through schema walking.
|
|
4037
|
+
*/
|
|
4038
|
+
interface TypeScriptMeta {
|
|
4039
|
+
/** Default value from schema. */
|
|
4040
|
+
default?: unknown;
|
|
4041
|
+
/** Is this schema read-only? */
|
|
4042
|
+
readonly: boolean;
|
|
4043
|
+
}
|
|
4044
|
+
interface TypeScriptEnumData {
|
|
4045
|
+
items: Array<{
|
|
4046
|
+
key: string;
|
|
4047
|
+
schema: IR$1.SchemaObject;
|
|
4048
|
+
}>;
|
|
4049
|
+
mode: 'javascript' | 'typescript' | 'typescript-const' | 'type';
|
|
4050
|
+
}
|
|
4051
|
+
/**
|
|
4052
|
+
* Result from walking a schema node.
|
|
4053
|
+
*/
|
|
4054
|
+
interface TypeScriptResult {
|
|
4055
|
+
enumData?: TypeScriptEnumData;
|
|
4056
|
+
meta: TypeScriptMeta;
|
|
4057
|
+
type: Type;
|
|
4058
|
+
}
|
|
3940
4059
|
//#endregion
|
|
3941
4060
|
//#region src/plugins/@hey-api/typescript/api.d.ts
|
|
3942
4061
|
type IApi$3 = {
|
|
3943
|
-
schemaToType: (
|
|
4062
|
+
schemaToType: (plugin: HeyApiTypeScriptPlugin['Instance'], schema: IR$1.SchemaObject) => Type;
|
|
3944
4063
|
};
|
|
3945
4064
|
//#endregion
|
|
4065
|
+
//#region src/plugins/@hey-api/typescript/resolvers.d.ts
|
|
4066
|
+
type HeyApiTypeScriptResolvers = Plugin$1.Resolvers<{
|
|
4067
|
+
/**
|
|
4068
|
+
* Resolver for array schemas.
|
|
4069
|
+
*
|
|
4070
|
+
* Allows customization of how array types are rendered.
|
|
4071
|
+
*
|
|
4072
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
4073
|
+
*/
|
|
4074
|
+
array?: (ctx: ArrayResolverContext$2) => Type | undefined;
|
|
4075
|
+
/**
|
|
4076
|
+
* Resolver for boolean schemas.
|
|
4077
|
+
*
|
|
4078
|
+
* Allows customization of how boolean types are rendered.
|
|
4079
|
+
*
|
|
4080
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
4081
|
+
*/
|
|
4082
|
+
boolean?: (ctx: BooleanResolverContext$2) => Type | undefined;
|
|
4083
|
+
/**
|
|
4084
|
+
* Resolver for enum schemas.
|
|
4085
|
+
*
|
|
4086
|
+
* Allows customization of how enum types are rendered.
|
|
4087
|
+
*
|
|
4088
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
4089
|
+
*/
|
|
4090
|
+
enum?: (ctx: EnumResolverContext$2) => Type | undefined;
|
|
4091
|
+
/**
|
|
4092
|
+
* Resolver for intersection schemas.
|
|
4093
|
+
*
|
|
4094
|
+
* Allows customization of how intersection types are rendered.
|
|
4095
|
+
*
|
|
4096
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
4097
|
+
*/
|
|
4098
|
+
intersection?: (ctx: IntersectionResolverContext$2) => Type | undefined;
|
|
4099
|
+
/**
|
|
4100
|
+
* Resolver for never schemas.
|
|
4101
|
+
*
|
|
4102
|
+
* Allows customization of how never types are rendered.
|
|
4103
|
+
*
|
|
4104
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
4105
|
+
*/
|
|
4106
|
+
never?: (ctx: NeverResolverContext$2) => Type | undefined;
|
|
4107
|
+
/**
|
|
4108
|
+
* Resolver for null schemas.
|
|
4109
|
+
*
|
|
4110
|
+
* Allows customization of how null types are rendered.
|
|
4111
|
+
*
|
|
4112
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
4113
|
+
*/
|
|
4114
|
+
null?: (ctx: NullResolverContext$2) => Type | undefined;
|
|
4115
|
+
/**
|
|
4116
|
+
* Resolver for number schemas.
|
|
4117
|
+
*
|
|
4118
|
+
* Allows customization of how number types are rendered.
|
|
4119
|
+
*
|
|
4120
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
4121
|
+
*/
|
|
4122
|
+
number?: (ctx: NumberResolverContext$2) => Type | undefined;
|
|
4123
|
+
/**
|
|
4124
|
+
* Resolver for object schemas.
|
|
4125
|
+
*
|
|
4126
|
+
* Allows customization of how object types are rendered.
|
|
4127
|
+
*
|
|
4128
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
4129
|
+
*/
|
|
4130
|
+
object?: (ctx: ObjectResolverContext$2) => Type | undefined;
|
|
4131
|
+
/**
|
|
4132
|
+
* Resolver for string schemas.
|
|
4133
|
+
*
|
|
4134
|
+
* Allows customization of how string types are rendered.
|
|
4135
|
+
*
|
|
4136
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
4137
|
+
*/
|
|
4138
|
+
string?: (ctx: StringResolverContext$2) => Type | undefined;
|
|
4139
|
+
/**
|
|
4140
|
+
* Resolver for tuple schemas.
|
|
4141
|
+
*
|
|
4142
|
+
* Allows customization of how tuple types are rendered.
|
|
4143
|
+
*
|
|
4144
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
4145
|
+
*/
|
|
4146
|
+
tuple?: (ctx: TupleResolverContext$2) => Type | undefined;
|
|
4147
|
+
/**
|
|
4148
|
+
* Resolver for undefined schemas.
|
|
4149
|
+
*
|
|
4150
|
+
* Allows customization of how undefined types are rendered.
|
|
4151
|
+
*
|
|
4152
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
4153
|
+
*/
|
|
4154
|
+
undefined?: (ctx: UndefinedResolverContext$2) => Type | undefined;
|
|
4155
|
+
/**
|
|
4156
|
+
* Resolver for union schemas.
|
|
4157
|
+
*
|
|
4158
|
+
* Allows customization of how union types are rendered.
|
|
4159
|
+
*
|
|
4160
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
4161
|
+
*/
|
|
4162
|
+
union?: (ctx: UnionResolverContext$2) => Type | undefined;
|
|
4163
|
+
/**
|
|
4164
|
+
* Resolver for unknown schemas.
|
|
4165
|
+
*
|
|
4166
|
+
* Allows customization of how unknown types are rendered.
|
|
4167
|
+
*
|
|
4168
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
4169
|
+
*/
|
|
4170
|
+
unknown?: (ctx: UnknownResolverContext$2) => Type | undefined;
|
|
4171
|
+
/**
|
|
4172
|
+
* Resolver for void schemas.
|
|
4173
|
+
*
|
|
4174
|
+
* Allows customization of how void types are rendered.
|
|
4175
|
+
*
|
|
4176
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
4177
|
+
*/
|
|
4178
|
+
void?: (ctx: VoidResolverContext$2) => Type | undefined;
|
|
4179
|
+
}>;
|
|
4180
|
+
interface BaseContext$2 extends DollarTsDsl {
|
|
4181
|
+
/** The plugin instance. */
|
|
4182
|
+
plugin: HeyApiTypeScriptPlugin['Instance'];
|
|
4183
|
+
}
|
|
4184
|
+
interface ArrayResolverContext$2 extends BaseContext$2 {
|
|
4185
|
+
/**
|
|
4186
|
+
* Nodes used to build different parts of the result.
|
|
4187
|
+
*/
|
|
4188
|
+
nodes: {
|
|
4189
|
+
/**
|
|
4190
|
+
* Returns the base array type expression.
|
|
4191
|
+
*/
|
|
4192
|
+
base: (ctx: ArrayResolverContext$2) => Type;
|
|
4193
|
+
};
|
|
4194
|
+
schema: SchemaWithType<'array'>;
|
|
4195
|
+
walk: Walker<TypeScriptResult, HeyApiTypeScriptPlugin['Instance']>;
|
|
4196
|
+
walkerCtx: SchemaVisitorContext<HeyApiTypeScriptPlugin['Instance']>;
|
|
4197
|
+
}
|
|
4198
|
+
interface BooleanResolverContext$2 extends BaseContext$2 {
|
|
4199
|
+
/**
|
|
4200
|
+
* Nodes used to build different parts of the result.
|
|
4201
|
+
*/
|
|
4202
|
+
nodes: {
|
|
4203
|
+
/**
|
|
4204
|
+
* Returns the base boolean type expression.
|
|
4205
|
+
*/
|
|
4206
|
+
base: (ctx: BooleanResolverContext$2) => Type;
|
|
4207
|
+
/**
|
|
4208
|
+
* Returns the literal type for const values.
|
|
4209
|
+
*/
|
|
4210
|
+
const: (ctx: BooleanResolverContext$2) => Type | undefined;
|
|
4211
|
+
};
|
|
4212
|
+
schema: SchemaWithType<'boolean'>;
|
|
4213
|
+
}
|
|
4214
|
+
interface EnumResolverContext$2 extends BaseContext$2 {
|
|
4215
|
+
/**
|
|
4216
|
+
* Nodes used to build different parts of the result.
|
|
4217
|
+
*/
|
|
4218
|
+
nodes: {
|
|
4219
|
+
/**
|
|
4220
|
+
* Returns the base enum type expression.
|
|
4221
|
+
*/
|
|
4222
|
+
base: (ctx: EnumResolverContext$2) => Type;
|
|
4223
|
+
/**
|
|
4224
|
+
* Returns parsed enum items with metadata about the enum members.
|
|
4225
|
+
*/
|
|
4226
|
+
items: (ctx: EnumResolverContext$2) => {
|
|
4227
|
+
/**
|
|
4228
|
+
* String literal values for use with union types.
|
|
4229
|
+
*/
|
|
4230
|
+
enumMembers: Array<ReturnType<typeof $.type.literal>>;
|
|
4231
|
+
/**
|
|
4232
|
+
* Whether the enum includes a null value.
|
|
4233
|
+
*/
|
|
4234
|
+
isNullable: boolean;
|
|
4235
|
+
};
|
|
4236
|
+
};
|
|
4237
|
+
schema: SchemaWithType<'enum'>;
|
|
4238
|
+
}
|
|
4239
|
+
interface IntersectionResolverContext$2 extends BaseContext$2 {
|
|
4240
|
+
/**
|
|
4241
|
+
* The child results from walking intersection members.
|
|
4242
|
+
*/
|
|
4243
|
+
childResults: ReadonlyArray<TypeScriptResult>;
|
|
4244
|
+
/**
|
|
4245
|
+
* Nodes used to build different parts of the result.
|
|
4246
|
+
*/
|
|
4247
|
+
nodes: {
|
|
4248
|
+
/**
|
|
4249
|
+
* Returns the base intersection type expression.
|
|
4250
|
+
*/
|
|
4251
|
+
base: (ctx: IntersectionResolverContext$2) => Type;
|
|
4252
|
+
};
|
|
4253
|
+
/**
|
|
4254
|
+
* The parent schema containing the intersection.
|
|
4255
|
+
*/
|
|
4256
|
+
parentSchema: IR$1.SchemaObject;
|
|
4257
|
+
/**
|
|
4258
|
+
* The individual schemas being intersected.
|
|
4259
|
+
*/
|
|
4260
|
+
schemas: ReadonlyArray<IR$1.SchemaObject>;
|
|
4261
|
+
}
|
|
4262
|
+
interface NeverResolverContext$2 extends BaseContext$2 {
|
|
4263
|
+
/**
|
|
4264
|
+
* Nodes used to build different parts of the result.
|
|
4265
|
+
*/
|
|
4266
|
+
nodes: {
|
|
4267
|
+
/**
|
|
4268
|
+
* Returns the base never type expression.
|
|
4269
|
+
*/
|
|
4270
|
+
base: (ctx: NeverResolverContext$2) => Type;
|
|
4271
|
+
};
|
|
4272
|
+
schema: SchemaWithType<'never'>;
|
|
4273
|
+
}
|
|
4274
|
+
interface NullResolverContext$2 extends BaseContext$2 {
|
|
4275
|
+
/**
|
|
4276
|
+
* Nodes used to build different parts of the result.
|
|
4277
|
+
*/
|
|
4278
|
+
nodes: {
|
|
4279
|
+
/**
|
|
4280
|
+
* Returns the base null type expression.
|
|
4281
|
+
*/
|
|
4282
|
+
base: (ctx: NullResolverContext$2) => Type;
|
|
4283
|
+
};
|
|
4284
|
+
schema: SchemaWithType<'null'>;
|
|
4285
|
+
}
|
|
4286
|
+
interface NumberResolverContext$2 extends BaseContext$2 {
|
|
4287
|
+
/**
|
|
4288
|
+
* Nodes used to build different parts of the result.
|
|
4289
|
+
*/
|
|
4290
|
+
nodes: {
|
|
4291
|
+
/**
|
|
4292
|
+
* Returns the base number type expression.
|
|
4293
|
+
*/
|
|
4294
|
+
base: (ctx: NumberResolverContext$2) => Type;
|
|
4295
|
+
/**
|
|
4296
|
+
* Returns the literal type for const values.
|
|
4297
|
+
*/
|
|
4298
|
+
const: (ctx: NumberResolverContext$2) => Type | undefined;
|
|
4299
|
+
};
|
|
4300
|
+
schema: SchemaWithType<'integer' | 'number'>;
|
|
4301
|
+
}
|
|
4302
|
+
interface ObjectResolverContext$2 extends BaseContext$2 {
|
|
4303
|
+
/**
|
|
4304
|
+
* Nodes used to build different parts of the result.
|
|
4305
|
+
*/
|
|
4306
|
+
nodes: {
|
|
4307
|
+
/**
|
|
4308
|
+
* Returns the base object type expression.
|
|
4309
|
+
*/
|
|
4310
|
+
base: (ctx: ObjectResolverContext$2) => Type;
|
|
4311
|
+
/**
|
|
4312
|
+
* Returns the shape (properties) of the object type.
|
|
4313
|
+
*/
|
|
4314
|
+
shape: (ctx: ObjectResolverContext$2) => ReturnType<typeof $.type.object>;
|
|
4315
|
+
};
|
|
4316
|
+
schema: SchemaWithType<'object'>;
|
|
4317
|
+
walk: Walker<TypeScriptResult, HeyApiTypeScriptPlugin['Instance']>;
|
|
4318
|
+
walkerCtx: SchemaVisitorContext<HeyApiTypeScriptPlugin['Instance']>;
|
|
4319
|
+
}
|
|
4320
|
+
interface StringResolverContext$2 extends BaseContext$2 {
|
|
4321
|
+
/**
|
|
4322
|
+
* Nodes used to build different parts of the result.
|
|
4323
|
+
*/
|
|
4324
|
+
nodes: {
|
|
4325
|
+
/**
|
|
4326
|
+
* Returns the base string type expression.
|
|
4327
|
+
*/
|
|
4328
|
+
base: (ctx: StringResolverContext$2) => Type;
|
|
4329
|
+
/**
|
|
4330
|
+
* Returns the literal type for const values.
|
|
4331
|
+
*/
|
|
4332
|
+
const: (ctx: StringResolverContext$2) => Type | undefined;
|
|
4333
|
+
/**
|
|
4334
|
+
* Returns the format-specific type expression.
|
|
4335
|
+
*/
|
|
4336
|
+
format: (ctx: StringResolverContext$2) => Type | undefined;
|
|
4337
|
+
};
|
|
4338
|
+
schema: SchemaWithType<'string'>;
|
|
4339
|
+
}
|
|
4340
|
+
interface TupleResolverContext$2 extends BaseContext$2 {
|
|
4341
|
+
/**
|
|
4342
|
+
* Nodes used to build different parts of the result.
|
|
4343
|
+
*/
|
|
4344
|
+
nodes: {
|
|
4345
|
+
/**
|
|
4346
|
+
* Returns the base tuple type expression.
|
|
4347
|
+
*/
|
|
4348
|
+
base: (ctx: TupleResolverContext$2) => Type;
|
|
4349
|
+
/**
|
|
4350
|
+
* Returns the literal type for const tuple values.
|
|
4351
|
+
*/
|
|
4352
|
+
const: (ctx: TupleResolverContext$2) => Type | undefined;
|
|
4353
|
+
};
|
|
4354
|
+
schema: SchemaWithType<'tuple'>;
|
|
4355
|
+
walk: Walker<TypeScriptResult, HeyApiTypeScriptPlugin['Instance']>;
|
|
4356
|
+
walkerCtx: SchemaVisitorContext<HeyApiTypeScriptPlugin['Instance']>;
|
|
4357
|
+
}
|
|
4358
|
+
interface UnionResolverContext$2 extends BaseContext$2 {
|
|
4359
|
+
/**
|
|
4360
|
+
* The child results from walking union members.
|
|
4361
|
+
*/
|
|
4362
|
+
childResults: ReadonlyArray<TypeScriptResult>;
|
|
4363
|
+
/**
|
|
4364
|
+
* Nodes used to build different parts of the result.
|
|
4365
|
+
*/
|
|
4366
|
+
nodes: {
|
|
4367
|
+
/**
|
|
4368
|
+
* Returns the base union type expression.
|
|
4369
|
+
*/
|
|
4370
|
+
base: (ctx: UnionResolverContext$2) => Type;
|
|
4371
|
+
};
|
|
4372
|
+
/**
|
|
4373
|
+
* The parent schema containing the union.
|
|
4374
|
+
*/
|
|
4375
|
+
parentSchema: IR$1.SchemaObject;
|
|
4376
|
+
/**
|
|
4377
|
+
* The individual schemas being unioned.
|
|
4378
|
+
*/
|
|
4379
|
+
schemas: ReadonlyArray<IR$1.SchemaObject>;
|
|
4380
|
+
}
|
|
4381
|
+
interface UndefinedResolverContext$2 extends BaseContext$2 {
|
|
4382
|
+
/**
|
|
4383
|
+
* Nodes used to build different parts of the result.
|
|
4384
|
+
*/
|
|
4385
|
+
nodes: {
|
|
4386
|
+
/**
|
|
4387
|
+
* Returns the base undefined type expression.
|
|
4388
|
+
*/
|
|
4389
|
+
base: (ctx: UndefinedResolverContext$2) => Type;
|
|
4390
|
+
};
|
|
4391
|
+
schema: SchemaWithType<'undefined'>;
|
|
4392
|
+
}
|
|
4393
|
+
interface UnknownResolverContext$2 extends BaseContext$2 {
|
|
4394
|
+
/**
|
|
4395
|
+
* Nodes used to build different parts of the result.
|
|
4396
|
+
*/
|
|
4397
|
+
nodes: {
|
|
4398
|
+
/**
|
|
4399
|
+
* Returns the base unknown type expression.
|
|
4400
|
+
*/
|
|
4401
|
+
base: (ctx: UnknownResolverContext$2) => Type;
|
|
4402
|
+
};
|
|
4403
|
+
schema: SchemaWithType<'unknown'>;
|
|
4404
|
+
}
|
|
4405
|
+
interface VoidResolverContext$2 extends BaseContext$2 {
|
|
4406
|
+
/**
|
|
4407
|
+
* Nodes used to build different parts of the result.
|
|
4408
|
+
*/
|
|
4409
|
+
nodes: {
|
|
4410
|
+
/**
|
|
4411
|
+
* Returns the base void type expression.
|
|
4412
|
+
*/
|
|
4413
|
+
base: (ctx: VoidResolverContext$2) => Type;
|
|
4414
|
+
};
|
|
4415
|
+
schema: SchemaWithType<'void'>;
|
|
4416
|
+
}
|
|
4417
|
+
//#endregion
|
|
3946
4418
|
//#region src/plugins/@hey-api/typescript/types.d.ts
|
|
3947
4419
|
type EnumsType = 'javascript' | 'typescript' | 'typescript-const';
|
|
3948
|
-
type UserConfig$
|
|
4420
|
+
type UserConfig$14 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & HeyApiTypeScriptResolvers & {
|
|
3949
4421
|
/**
|
|
3950
4422
|
* Casing convention for generated names.
|
|
3951
4423
|
*
|
|
@@ -4152,7 +4624,7 @@ type UserConfig$13 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plu
|
|
|
4152
4624
|
payload?: NameTransformer;
|
|
4153
4625
|
};
|
|
4154
4626
|
};
|
|
4155
|
-
type Config$11 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
4627
|
+
type Config$11 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & HeyApiTypeScriptResolvers & {
|
|
4156
4628
|
/**
|
|
4157
4629
|
* Casing convention for generated names.
|
|
4158
4630
|
*/
|
|
@@ -4249,10 +4721,10 @@ type Config$11 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$
|
|
|
4249
4721
|
payload: NameTransformer;
|
|
4250
4722
|
};
|
|
4251
4723
|
};
|
|
4252
|
-
type HeyApiTypeScriptPlugin = DefinePlugin$1<UserConfig$
|
|
4724
|
+
type HeyApiTypeScriptPlugin = DefinePlugin$1<UserConfig$14, Config$11, IApi$3>;
|
|
4253
4725
|
//#endregion
|
|
4254
4726
|
//#region src/plugins/@pinia/colada/types.d.ts
|
|
4255
|
-
type UserConfig$
|
|
4727
|
+
type UserConfig$13 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
4256
4728
|
/**
|
|
4257
4729
|
* Casing convention for generated names.
|
|
4258
4730
|
*
|
|
@@ -4487,10 +4959,10 @@ type Config$10 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.Comm
|
|
|
4487
4959
|
meta: ((operation: IR$1.OperationObject) => Record<string, unknown>) | undefined;
|
|
4488
4960
|
};
|
|
4489
4961
|
};
|
|
4490
|
-
type PiniaColadaPlugin = DefinePlugin$1<UserConfig$
|
|
4962
|
+
type PiniaColadaPlugin = DefinePlugin$1<UserConfig$13, Config$10>;
|
|
4491
4963
|
//#endregion
|
|
4492
4964
|
//#region src/plugins/@tanstack/angular-query-experimental/types.d.ts
|
|
4493
|
-
type UserConfig$
|
|
4965
|
+
type UserConfig$12 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
4494
4966
|
/**
|
|
4495
4967
|
* Casing convention for generated names.
|
|
4496
4968
|
*
|
|
@@ -4888,10 +5360,10 @@ type Config$9 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1
|
|
|
4888
5360
|
meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
4889
5361
|
};
|
|
4890
5362
|
};
|
|
4891
|
-
type TanStackAngularQueryPlugin = DefinePlugin$1<UserConfig$
|
|
5363
|
+
type TanStackAngularQueryPlugin = DefinePlugin$1<UserConfig$12, Config$9>;
|
|
4892
5364
|
//#endregion
|
|
4893
5365
|
//#region src/plugins/@tanstack/preact-query/types.d.ts
|
|
4894
|
-
type UserConfig$
|
|
5366
|
+
type UserConfig$11 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
4895
5367
|
/**
|
|
4896
5368
|
* Casing convention for generated names.
|
|
4897
5369
|
*
|
|
@@ -5380,10 +5852,10 @@ type Config$8 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugi
|
|
|
5380
5852
|
*/
|
|
5381
5853
|
useQuery: NamingOptions & FeatureToggle;
|
|
5382
5854
|
};
|
|
5383
|
-
type TanStackPreactQueryPlugin = DefinePlugin$1<UserConfig$
|
|
5855
|
+
type TanStackPreactQueryPlugin = DefinePlugin$1<UserConfig$11, Config$8>;
|
|
5384
5856
|
//#endregion
|
|
5385
5857
|
//#region src/plugins/@tanstack/react-query/types.d.ts
|
|
5386
|
-
type UserConfig$
|
|
5858
|
+
type UserConfig$10 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
5387
5859
|
/**
|
|
5388
5860
|
* Casing convention for generated names.
|
|
5389
5861
|
*
|
|
@@ -5872,10 +6344,10 @@ type Config$7 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin
|
|
|
5872
6344
|
*/
|
|
5873
6345
|
useQuery: NamingOptions & FeatureToggle;
|
|
5874
6346
|
};
|
|
5875
|
-
type TanStackReactQueryPlugin = DefinePlugin$1<UserConfig$
|
|
6347
|
+
type TanStackReactQueryPlugin = DefinePlugin$1<UserConfig$10, Config$7>;
|
|
5876
6348
|
//#endregion
|
|
5877
6349
|
//#region src/plugins/@tanstack/solid-query/types.d.ts
|
|
5878
|
-
type UserConfig$
|
|
6350
|
+
type UserConfig$9 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
5879
6351
|
/**
|
|
5880
6352
|
* Casing convention for generated names.
|
|
5881
6353
|
*
|
|
@@ -6274,10 +6746,10 @@ type Config$6 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin
|
|
|
6274
6746
|
meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
6275
6747
|
};
|
|
6276
6748
|
};
|
|
6277
|
-
type TanStackSolidQueryPlugin = DefinePlugin$1<UserConfig$
|
|
6749
|
+
type TanStackSolidQueryPlugin = DefinePlugin$1<UserConfig$9, Config$6>;
|
|
6278
6750
|
//#endregion
|
|
6279
6751
|
//#region src/plugins/@tanstack/svelte-query/types.d.ts
|
|
6280
|
-
type UserConfig$
|
|
6752
|
+
type UserConfig$8 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
6281
6753
|
/**
|
|
6282
6754
|
* Casing convention for generated names.
|
|
6283
6755
|
*
|
|
@@ -6675,10 +7147,10 @@ type Config$5 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugi
|
|
|
6675
7147
|
meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
6676
7148
|
};
|
|
6677
7149
|
};
|
|
6678
|
-
type TanStackSvelteQueryPlugin = DefinePlugin$1<UserConfig$
|
|
7150
|
+
type TanStackSvelteQueryPlugin = DefinePlugin$1<UserConfig$8, Config$5>;
|
|
6679
7151
|
//#endregion
|
|
6680
7152
|
//#region src/plugins/@tanstack/vue-query/types.d.ts
|
|
6681
|
-
type UserConfig$
|
|
7153
|
+
type UserConfig$7 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
6682
7154
|
/**
|
|
6683
7155
|
* Casing convention for generated names.
|
|
6684
7156
|
*
|
|
@@ -7082,7 +7554,7 @@ type Config$4 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1
|
|
|
7082
7554
|
meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
7083
7555
|
};
|
|
7084
7556
|
};
|
|
7085
|
-
type TanStackVueQueryPlugin = DefinePlugin$1<UserConfig$
|
|
7557
|
+
type TanStackVueQueryPlugin = DefinePlugin$1<UserConfig$7, Config$4>;
|
|
7086
7558
|
//#endregion
|
|
7087
7559
|
//#region src/plugins/arktype/shared/types.d.ts
|
|
7088
7560
|
type ValidatorArgs$2 = {
|
|
@@ -7097,7 +7569,7 @@ type IApi$2 = {
|
|
|
7097
7569
|
};
|
|
7098
7570
|
//#endregion
|
|
7099
7571
|
//#region src/plugins/arktype/types.d.ts
|
|
7100
|
-
type UserConfig$
|
|
7572
|
+
type UserConfig$6 = Plugin$1.Name<'arktype'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
7101
7573
|
/**
|
|
7102
7574
|
* Casing convention for generated names.
|
|
7103
7575
|
*
|
|
@@ -7526,11 +7998,15 @@ type Config$3 = Plugin$1.Name<'arktype'> & Plugin$1.Hooks & Plugin$1.Comments &
|
|
|
7526
7998
|
};
|
|
7527
7999
|
};
|
|
7528
8000
|
};
|
|
7529
|
-
type ArktypePlugin = DefinePlugin$1<UserConfig$
|
|
8001
|
+
type ArktypePlugin = DefinePlugin$1<UserConfig$6, Config$3, IApi$2>;
|
|
7530
8002
|
//#endregion
|
|
7531
8003
|
//#region src/plugins/fastify/types.d.ts
|
|
7532
|
-
type UserConfig$
|
|
7533
|
-
type FastifyPlugin = DefinePlugin$1<UserConfig$
|
|
8004
|
+
type UserConfig$5 = Plugin$1.Name<'fastify'> & Plugin$1.Hooks & Plugin$1.UserExports;
|
|
8005
|
+
type FastifyPlugin = DefinePlugin$1<UserConfig$5, UserConfig$5>;
|
|
8006
|
+
//#endregion
|
|
8007
|
+
//#region src/plugins/nestjs/types.d.ts
|
|
8008
|
+
type UserConfig$4 = Plugin$1.Name<'nestjs'> & Plugin$1.Hooks & Plugin$1.UserExports;
|
|
8009
|
+
type NestJsPlugin = DefinePlugin$1<UserConfig$4, UserConfig$4>;
|
|
7534
8010
|
//#endregion
|
|
7535
8011
|
//#region src/plugins/swr/types.d.ts
|
|
7536
8012
|
type UserConfig$3 = Plugin$1.Name<'swr'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
@@ -7991,8 +8467,7 @@ interface PipesUtils {
|
|
|
7991
8467
|
//#endregion
|
|
7992
8468
|
//#region src/plugins/valibot/shared/types.d.ts
|
|
7993
8469
|
type ValidatorArgs$1 = {
|
|
7994
|
-
operation: IR$1.OperationObject;
|
|
7995
|
-
/** The plugin instance. */
|
|
8470
|
+
operation: IR$1.OperationObject; /** The plugin instance. */
|
|
7996
8471
|
plugin: ValibotPlugin['Instance'];
|
|
7997
8472
|
};
|
|
7998
8473
|
/**
|
|
@@ -8020,8 +8495,7 @@ interface ValibotResult {
|
|
|
8020
8495
|
/**
|
|
8021
8496
|
* Finalized result after applyModifiers.
|
|
8022
8497
|
*/
|
|
8023
|
-
interface ValibotFinal {
|
|
8024
|
-
pipes: Pipes;
|
|
8498
|
+
interface ValibotFinal extends Pick<ValibotResult, 'pipes'> {
|
|
8025
8499
|
/** Type annotation for schemas requiring explicit typing (e.g., lazy). */
|
|
8026
8500
|
typeName?: string | ts.Identifier;
|
|
8027
8501
|
}
|
|
@@ -8047,7 +8521,23 @@ interface IntegerLimit {
|
|
|
8047
8521
|
type GetIntegerLimit = (format: string | undefined) => IntegerLimit | undefined;
|
|
8048
8522
|
//#endregion
|
|
8049
8523
|
//#region src/plugins/valibot/resolvers.d.ts
|
|
8050
|
-
type
|
|
8524
|
+
type ValibotResolvers = Plugin$1.Resolvers<{
|
|
8525
|
+
/**
|
|
8526
|
+
* Resolver for array schemas.
|
|
8527
|
+
*
|
|
8528
|
+
* Allows customization of how array types are rendered.
|
|
8529
|
+
*
|
|
8530
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
8531
|
+
*/
|
|
8532
|
+
array?: (ctx: ArrayResolverContext$1) => PipeResult;
|
|
8533
|
+
/**
|
|
8534
|
+
* Resolver for boolean schemas.
|
|
8535
|
+
*
|
|
8536
|
+
* Allows customization of how boolean types are rendered.
|
|
8537
|
+
*
|
|
8538
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
8539
|
+
*/
|
|
8540
|
+
boolean?: (ctx: BooleanResolverContext$1) => PipeResult;
|
|
8051
8541
|
/**
|
|
8052
8542
|
* Resolver for enum schemas.
|
|
8053
8543
|
*
|
|
@@ -8056,6 +8546,30 @@ type Resolvers$1 = Plugin$1.Resolvers<{
|
|
|
8056
8546
|
* Returning `undefined` will execute the default resolver logic.
|
|
8057
8547
|
*/
|
|
8058
8548
|
enum?: (ctx: EnumResolverContext$1) => PipeResult;
|
|
8549
|
+
/**
|
|
8550
|
+
* Resolver for intersection schemas.
|
|
8551
|
+
*
|
|
8552
|
+
* Allows customization of how intersection types are rendered.
|
|
8553
|
+
*
|
|
8554
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
8555
|
+
*/
|
|
8556
|
+
intersection?: (ctx: IntersectionResolverContext$1) => PipeResult;
|
|
8557
|
+
/**
|
|
8558
|
+
* Resolver for never schemas.
|
|
8559
|
+
*
|
|
8560
|
+
* Allows customization of how never types are rendered.
|
|
8561
|
+
*
|
|
8562
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
8563
|
+
*/
|
|
8564
|
+
never?: (ctx: NeverResolverContext$1) => PipeResult;
|
|
8565
|
+
/**
|
|
8566
|
+
* Resolver for null schemas.
|
|
8567
|
+
*
|
|
8568
|
+
* Allows customization of how null types are rendered.
|
|
8569
|
+
*
|
|
8570
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
8571
|
+
*/
|
|
8572
|
+
null?: (ctx: NullResolverContext$1) => PipeResult;
|
|
8059
8573
|
/**
|
|
8060
8574
|
* Resolver for number schemas.
|
|
8061
8575
|
*
|
|
@@ -8080,6 +8594,38 @@ type Resolvers$1 = Plugin$1.Resolvers<{
|
|
|
8080
8594
|
* Returning `undefined` will execute the default resolver logic.
|
|
8081
8595
|
*/
|
|
8082
8596
|
string?: (ctx: StringResolverContext$1) => PipeResult;
|
|
8597
|
+
/**
|
|
8598
|
+
* Resolver for tuple schemas.
|
|
8599
|
+
*
|
|
8600
|
+
* Allows customization of how tuple types are rendered.
|
|
8601
|
+
*
|
|
8602
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
8603
|
+
*/
|
|
8604
|
+
tuple?: (ctx: TupleResolverContext$1) => PipeResult;
|
|
8605
|
+
/**
|
|
8606
|
+
* Resolver for undefined schemas.
|
|
8607
|
+
*
|
|
8608
|
+
* Allows customization of how undefined types are rendered.
|
|
8609
|
+
*
|
|
8610
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
8611
|
+
*/
|
|
8612
|
+
undefined?: (ctx: UndefinedResolverContext$1) => PipeResult;
|
|
8613
|
+
/**
|
|
8614
|
+
* Resolver for union schemas.
|
|
8615
|
+
*
|
|
8616
|
+
* Allows customization of how union types are rendered.
|
|
8617
|
+
*
|
|
8618
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
8619
|
+
*/
|
|
8620
|
+
union?: (ctx: UnionResolverContext$1) => PipeResult;
|
|
8621
|
+
/**
|
|
8622
|
+
* Resolver for unknown schemas.
|
|
8623
|
+
*
|
|
8624
|
+
* Allows customization of how unknown types are rendered.
|
|
8625
|
+
*
|
|
8626
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
8627
|
+
*/
|
|
8628
|
+
unknown?: (ctx: UnknownResolverContext$1) => PipeResult;
|
|
8083
8629
|
/**
|
|
8084
8630
|
* Resolvers for request and response validators.
|
|
8085
8631
|
*
|
|
@@ -8103,6 +8649,14 @@ type Resolvers$1 = Plugin$1.Resolvers<{
|
|
|
8103
8649
|
*/
|
|
8104
8650
|
response?: ValidatorResolver$1;
|
|
8105
8651
|
};
|
|
8652
|
+
/**
|
|
8653
|
+
* Resolver for void schemas.
|
|
8654
|
+
*
|
|
8655
|
+
* Allows customization of how void types are rendered.
|
|
8656
|
+
*
|
|
8657
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
8658
|
+
*/
|
|
8659
|
+
void?: (ctx: VoidResolverContext$1) => PipeResult;
|
|
8106
8660
|
}>;
|
|
8107
8661
|
type ValidatorResolver$1 = (ctx: ValidatorResolverContext$1) => PipeResult | null | undefined;
|
|
8108
8662
|
interface BaseContext$1 extends DollarTsDsl {
|
|
@@ -8130,9 +8684,36 @@ interface BaseContext$1 extends DollarTsDsl {
|
|
|
8130
8684
|
v: Symbol;
|
|
8131
8685
|
};
|
|
8132
8686
|
}
|
|
8687
|
+
interface ArrayResolverContext$1 extends BaseContext$1 {
|
|
8688
|
+
applyModifiers: (result: ValibotResult, opts?: {
|
|
8689
|
+
optional?: boolean;
|
|
8690
|
+
}) => ValibotFinal;
|
|
8691
|
+
/**
|
|
8692
|
+
* Nodes used to build different parts of the result.
|
|
8693
|
+
*/
|
|
8694
|
+
nodes: {
|
|
8695
|
+
base: (ctx: ArrayResolverContext$1) => PipeResult;
|
|
8696
|
+
length: (ctx: ArrayResolverContext$1) => PipeResult;
|
|
8697
|
+
maxLength: (ctx: ArrayResolverContext$1) => PipeResult;
|
|
8698
|
+
minLength: (ctx: ArrayResolverContext$1) => PipeResult;
|
|
8699
|
+
};
|
|
8700
|
+
schema: SchemaWithType<'array'>;
|
|
8701
|
+
walk: Walker<ValibotResult, ValibotPlugin['Instance']>;
|
|
8702
|
+
walkerCtx: SchemaVisitorContext<ValibotPlugin['Instance']>;
|
|
8703
|
+
}
|
|
8704
|
+
interface BooleanResolverContext$1 extends BaseContext$1 {
|
|
8705
|
+
/**
|
|
8706
|
+
* Nodes used to build different parts of the result.
|
|
8707
|
+
*/
|
|
8708
|
+
nodes: {
|
|
8709
|
+
base: (ctx: BooleanResolverContext$1) => PipeResult;
|
|
8710
|
+
const: (ctx: BooleanResolverContext$1) => PipeResult;
|
|
8711
|
+
};
|
|
8712
|
+
schema: SchemaWithType<'boolean'>;
|
|
8713
|
+
}
|
|
8133
8714
|
interface EnumResolverContext$1 extends BaseContext$1 {
|
|
8134
8715
|
/**
|
|
8135
|
-
* Nodes used to build different parts of the
|
|
8716
|
+
* Nodes used to build different parts of the result.
|
|
8136
8717
|
*/
|
|
8137
8718
|
nodes: {
|
|
8138
8719
|
/**
|
|
@@ -8155,9 +8736,41 @@ interface EnumResolverContext$1 extends BaseContext$1 {
|
|
|
8155
8736
|
};
|
|
8156
8737
|
schema: SchemaWithType<'enum'>;
|
|
8157
8738
|
}
|
|
8739
|
+
interface IntersectionResolverContext$1 extends BaseContext$1 {
|
|
8740
|
+
applyModifiers: (result: ValibotResult, opts?: {
|
|
8741
|
+
optional?: boolean;
|
|
8742
|
+
}) => ValibotFinal;
|
|
8743
|
+
childResults: Array<ValibotResult>;
|
|
8744
|
+
/**
|
|
8745
|
+
* Nodes used to build different parts of the result.
|
|
8746
|
+
*/
|
|
8747
|
+
nodes: {
|
|
8748
|
+
base: (ctx: IntersectionResolverContext$1) => PipeResult;
|
|
8749
|
+
};
|
|
8750
|
+
parentSchema: IR$1.SchemaObject;
|
|
8751
|
+
schema: IR$1.SchemaObject;
|
|
8752
|
+
}
|
|
8753
|
+
interface NeverResolverContext$1 extends BaseContext$1 {
|
|
8754
|
+
/**
|
|
8755
|
+
* Nodes used to build different parts of the result.
|
|
8756
|
+
*/
|
|
8757
|
+
nodes: {
|
|
8758
|
+
base: (ctx: NeverResolverContext$1) => PipeResult;
|
|
8759
|
+
};
|
|
8760
|
+
schema: SchemaWithType<'never'>;
|
|
8761
|
+
}
|
|
8762
|
+
interface NullResolverContext$1 extends BaseContext$1 {
|
|
8763
|
+
/**
|
|
8764
|
+
* Nodes used to build different parts of the result.
|
|
8765
|
+
*/
|
|
8766
|
+
nodes: {
|
|
8767
|
+
base: (ctx: NullResolverContext$1) => PipeResult;
|
|
8768
|
+
};
|
|
8769
|
+
schema: SchemaWithType<'null'>;
|
|
8770
|
+
}
|
|
8158
8771
|
interface NumberResolverContext$1 extends BaseContext$1 {
|
|
8159
8772
|
/**
|
|
8160
|
-
* Nodes used to build different parts of the
|
|
8773
|
+
* Nodes used to build different parts of the result.
|
|
8161
8774
|
*/
|
|
8162
8775
|
nodes: {
|
|
8163
8776
|
base: (ctx: NumberResolverContext$1) => PipeResult;
|
|
@@ -8181,7 +8794,7 @@ interface ObjectResolverContext$1 extends BaseContext$1 {
|
|
|
8181
8794
|
optional?: boolean;
|
|
8182
8795
|
}) => ValibotFinal;
|
|
8183
8796
|
/**
|
|
8184
|
-
* Nodes used to build different parts of the
|
|
8797
|
+
* Nodes used to build different parts of the result.
|
|
8185
8798
|
*/
|
|
8186
8799
|
nodes: {
|
|
8187
8800
|
additionalProperties: (ctx: ObjectResolverContext$1) => Pipe | null | undefined;
|
|
@@ -8189,31 +8802,71 @@ interface ObjectResolverContext$1 extends BaseContext$1 {
|
|
|
8189
8802
|
shape: (ctx: ObjectResolverContext$1) => ReturnType<typeof $.object>;
|
|
8190
8803
|
};
|
|
8191
8804
|
schema: SchemaWithType<'object'>;
|
|
8805
|
+
walk: Walker<ValibotResult, ValibotPlugin['Instance']>;
|
|
8806
|
+
walkerCtx: SchemaVisitorContext<ValibotPlugin['Instance']>;
|
|
8807
|
+
}
|
|
8808
|
+
interface StringResolverContext$1 extends BaseContext$1 {
|
|
8192
8809
|
/**
|
|
8193
|
-
*
|
|
8810
|
+
* Nodes used to build different parts of the result.
|
|
8194
8811
|
*/
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8812
|
+
nodes: {
|
|
8813
|
+
base: (ctx: StringResolverContext$1) => PipeResult;
|
|
8814
|
+
const: (ctx: StringResolverContext$1) => PipeResult;
|
|
8815
|
+
format: (ctx: StringResolverContext$1) => PipeResult;
|
|
8816
|
+
length: (ctx: StringResolverContext$1) => PipeResult;
|
|
8817
|
+
maxLength: (ctx: StringResolverContext$1) => PipeResult;
|
|
8818
|
+
minLength: (ctx: StringResolverContext$1) => PipeResult;
|
|
8819
|
+
pattern: (ctx: StringResolverContext$1) => PipeResult;
|
|
8199
8820
|
};
|
|
8821
|
+
schema: SchemaWithType<'string'>;
|
|
8822
|
+
}
|
|
8823
|
+
interface TupleResolverContext$1 extends BaseContext$1 {
|
|
8824
|
+
applyModifiers: (result: ValibotResult, opts?: {
|
|
8825
|
+
optional?: boolean;
|
|
8826
|
+
}) => ValibotFinal;
|
|
8827
|
+
/**
|
|
8828
|
+
* Nodes used to build different parts of the result.
|
|
8829
|
+
*/
|
|
8830
|
+
nodes: {
|
|
8831
|
+
base: (ctx: TupleResolverContext$1) => PipeResult;
|
|
8832
|
+
const: (ctx: TupleResolverContext$1) => PipeResult;
|
|
8833
|
+
};
|
|
8834
|
+
schema: SchemaWithType<'tuple'>;
|
|
8200
8835
|
walk: Walker<ValibotResult, ValibotPlugin['Instance']>;
|
|
8201
8836
|
walkerCtx: SchemaVisitorContext<ValibotPlugin['Instance']>;
|
|
8202
8837
|
}
|
|
8203
|
-
interface
|
|
8838
|
+
interface UndefinedResolverContext$1 extends BaseContext$1 {
|
|
8839
|
+
/**
|
|
8840
|
+
* Nodes used to build different parts of the result.
|
|
8841
|
+
*/
|
|
8842
|
+
nodes: {
|
|
8843
|
+
base: (ctx: UndefinedResolverContext$1) => PipeResult;
|
|
8844
|
+
};
|
|
8845
|
+
schema: SchemaWithType<'undefined'>;
|
|
8846
|
+
}
|
|
8847
|
+
interface UnionResolverContext$1 extends BaseContext$1 {
|
|
8848
|
+
applyModifiers: (result: ValibotResult, opts?: {
|
|
8849
|
+
optional?: boolean;
|
|
8850
|
+
}) => ValibotFinal;
|
|
8851
|
+
childResults: Array<ValibotResult>;
|
|
8852
|
+
/**
|
|
8853
|
+
* Nodes used to build different parts of the result.
|
|
8854
|
+
*/
|
|
8855
|
+
nodes: {
|
|
8856
|
+
base: (ctx: UnionResolverContext$1) => PipeResult;
|
|
8857
|
+
};
|
|
8858
|
+
parentSchema: IR$1.SchemaObject;
|
|
8859
|
+
schema: IR$1.SchemaObject;
|
|
8860
|
+
schemas: ReadonlyArray<IR$1.SchemaObject>;
|
|
8861
|
+
}
|
|
8862
|
+
interface UnknownResolverContext$1 extends BaseContext$1 {
|
|
8204
8863
|
/**
|
|
8205
|
-
* Nodes used to build different parts of the
|
|
8864
|
+
* Nodes used to build different parts of the result.
|
|
8206
8865
|
*/
|
|
8207
8866
|
nodes: {
|
|
8208
|
-
base: (ctx:
|
|
8209
|
-
const: (ctx: StringResolverContext$1) => PipeResult;
|
|
8210
|
-
format: (ctx: StringResolverContext$1) => PipeResult;
|
|
8211
|
-
length: (ctx: StringResolverContext$1) => PipeResult;
|
|
8212
|
-
maxLength: (ctx: StringResolverContext$1) => PipeResult;
|
|
8213
|
-
minLength: (ctx: StringResolverContext$1) => PipeResult;
|
|
8214
|
-
pattern: (ctx: StringResolverContext$1) => PipeResult;
|
|
8867
|
+
base: (ctx: UnknownResolverContext$1) => PipeResult;
|
|
8215
8868
|
};
|
|
8216
|
-
schema: SchemaWithType<'
|
|
8869
|
+
schema: SchemaWithType<'unknown'>;
|
|
8217
8870
|
}
|
|
8218
8871
|
interface ValidatorResolverContext$1 extends BaseContext$1 {
|
|
8219
8872
|
operation: IR$1.OperationObject;
|
|
@@ -8224,9 +8877,18 @@ interface ValidatorResolverContext$1 extends BaseContext$1 {
|
|
|
8224
8877
|
schema: Symbol;
|
|
8225
8878
|
};
|
|
8226
8879
|
}
|
|
8880
|
+
interface VoidResolverContext$1 extends BaseContext$1 {
|
|
8881
|
+
/**
|
|
8882
|
+
* Nodes used to build different parts of the result.
|
|
8883
|
+
*/
|
|
8884
|
+
nodes: {
|
|
8885
|
+
base: (ctx: VoidResolverContext$1) => PipeResult;
|
|
8886
|
+
};
|
|
8887
|
+
schema: SchemaWithType<'void'>;
|
|
8888
|
+
}
|
|
8227
8889
|
//#endregion
|
|
8228
8890
|
//#region src/plugins/valibot/types.d.ts
|
|
8229
|
-
type UserConfig$2 = Plugin$1.Name<'valibot'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports &
|
|
8891
|
+
type UserConfig$2 = Plugin$1.Name<'valibot'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & ValibotResolvers & {
|
|
8230
8892
|
/**
|
|
8231
8893
|
* Casing convention for generated names.
|
|
8232
8894
|
*
|
|
@@ -8385,75 +9047,66 @@ type UserConfig$2 = Plugin$1.Name<'valibot'> & Plugin$1.Hooks & Plugin$1.UserCom
|
|
|
8385
9047
|
name?: NameTransformer;
|
|
8386
9048
|
};
|
|
8387
9049
|
};
|
|
8388
|
-
type Config$1 = Plugin$1.Name<'valibot'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports &
|
|
8389
|
-
/** Casing convention for generated names. */
|
|
8390
|
-
|
|
8391
|
-
/** Configuration for reusable schema definitions. */
|
|
8392
|
-
definitions: NamingOptions & FeatureToggle;
|
|
8393
|
-
/** Enable Valibot metadata support? */
|
|
9050
|
+
type Config$1 = Plugin$1.Name<'valibot'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & ValibotResolvers & {
|
|
9051
|
+
/** Casing convention for generated names. */case: Casing; /** Configuration for reusable schema definitions. */
|
|
9052
|
+
definitions: NamingOptions & FeatureToggle; /** Enable Valibot metadata support? */
|
|
8394
9053
|
metadata: boolean | ((ctx: DollarTsDsl & {
|
|
8395
9054
|
node: ReturnType<typeof $.object>;
|
|
8396
9055
|
schema: IR$1.SchemaObject;
|
|
8397
|
-
}) => void);
|
|
8398
|
-
/** Configuration for
|
|
8399
|
-
|
|
8400
|
-
/** Configuration for response-specific Valibot schemas. */
|
|
8401
|
-
responses: NamingOptions & FeatureToggle;
|
|
8402
|
-
/** Configuration for webhook-specific Valibot schemas. */
|
|
9056
|
+
}) => void); /** Configuration for request-specific Valibot schemas. */
|
|
9057
|
+
requests: NamingOptions & FeatureToggle; /** Configuration for response-specific Valibot schemas. */
|
|
9058
|
+
responses: NamingOptions & FeatureToggle; /** Configuration for webhook-specific Valibot schemas. */
|
|
8403
9059
|
webhooks: NamingOptions & FeatureToggle;
|
|
8404
9060
|
};
|
|
8405
9061
|
type ValibotPlugin = DefinePlugin$1<UserConfig$2, Config$1, IApi$1>;
|
|
8406
9062
|
//#endregion
|
|
9063
|
+
//#region src/plugins/zod/shared/chain.d.ts
|
|
9064
|
+
type Chain = ReturnType<typeof $.call | typeof $.expr>;
|
|
9065
|
+
type ChainResult = Chain | undefined;
|
|
9066
|
+
//#endregion
|
|
8407
9067
|
//#region src/plugins/zod/shared/types.d.ts
|
|
8408
|
-
type
|
|
8409
|
-
|
|
8410
|
-
expression: ReturnType<typeof $.expr | typeof $.call>;
|
|
8411
|
-
hasLazyExpression?: boolean;
|
|
8412
|
-
typeName?: string | ts.Identifier;
|
|
8413
|
-
};
|
|
8414
|
-
type IrSchemaToAstOptions = {
|
|
8415
|
-
/** The plugin instance. */
|
|
9068
|
+
type ValidatorArgs = {
|
|
9069
|
+
operation: IR$1.OperationObject; /** The plugin instance. */
|
|
8416
9070
|
plugin: ZodPlugin['Instance'];
|
|
8417
|
-
/** The plugin state references. */
|
|
8418
|
-
state: Refs<PluginState>;
|
|
8419
|
-
walk: Walker<ZodSchemaResult, ZodPlugin['Instance']>;
|
|
8420
|
-
};
|
|
8421
|
-
type PluginState = Pick<Required<SymbolMeta>, 'path'> & Pick<Partial<SymbolMeta>, 'tags'> & {
|
|
8422
|
-
anyType?: string;
|
|
8423
|
-
hasLazyExpression: boolean;
|
|
8424
9071
|
};
|
|
8425
9072
|
type TypeOptions = {
|
|
8426
|
-
/** Configuration for TypeScript type generation from Zod schemas. */
|
|
8427
9073
|
types: {
|
|
8428
|
-
/** Configuration for `infer` types. */
|
|
8429
9074
|
infer: NamingOptions & FeatureToggle;
|
|
8430
9075
|
};
|
|
8431
9076
|
};
|
|
8432
|
-
type ValidatorArgs = {
|
|
8433
|
-
operation: IR$1.OperationObject;
|
|
8434
|
-
plugin: ZodPlugin['Instance'];
|
|
8435
|
-
};
|
|
8436
9077
|
/**
|
|
8437
|
-
*
|
|
9078
|
+
* Metadata that flows through schema walking.
|
|
8438
9079
|
*/
|
|
8439
|
-
interface
|
|
8440
|
-
/** Default value from schema
|
|
9080
|
+
interface ZodMeta {
|
|
9081
|
+
/** Default value from schema. */
|
|
8441
9082
|
default?: unknown;
|
|
8442
|
-
/**
|
|
8443
|
-
expression: {
|
|
8444
|
-
expression: ReturnType<typeof $.expr | typeof $.call>;
|
|
8445
|
-
};
|
|
8446
|
-
/** The original schema format (for BigInt coercion). */
|
|
9083
|
+
/** Original format (for BigInt coercion). */
|
|
8447
9084
|
format?: string;
|
|
8448
|
-
/** Whether any child contains a lazy
|
|
8449
|
-
|
|
8450
|
-
/** Whether
|
|
8451
|
-
isLazy
|
|
9085
|
+
/** Whether this or any child contains a lazy reference. */
|
|
9086
|
+
hasLazy: boolean;
|
|
9087
|
+
/** Whether this schema itself is emitted as lazy. */
|
|
9088
|
+
isLazy: boolean;
|
|
9089
|
+
/** Whether this schema resolves to an object shape. */
|
|
9090
|
+
isObject?: boolean;
|
|
8452
9091
|
/** Does this schema explicitly allow null? */
|
|
8453
9092
|
nullable: boolean;
|
|
8454
9093
|
/** Is this schema read-only? */
|
|
8455
9094
|
readonly: boolean;
|
|
8456
9095
|
}
|
|
9096
|
+
/**
|
|
9097
|
+
* Result from walking a schema node.
|
|
9098
|
+
*/
|
|
9099
|
+
interface ZodResult {
|
|
9100
|
+
expression: Chain;
|
|
9101
|
+
meta: ZodMeta;
|
|
9102
|
+
}
|
|
9103
|
+
/**
|
|
9104
|
+
* Finalized result after applyModifiers.
|
|
9105
|
+
*/
|
|
9106
|
+
interface ZodFinal extends Pick<ZodResult, 'expression'> {
|
|
9107
|
+
/** Type annotation for schemas requiring explicit typing (e.g., lazy). */
|
|
9108
|
+
typeName?: string | ts.Identifier;
|
|
9109
|
+
}
|
|
8457
9110
|
//#endregion
|
|
8458
9111
|
//#region src/plugins/zod/api.d.ts
|
|
8459
9112
|
type IApi = {
|
|
@@ -8461,11 +9114,24 @@ type IApi = {
|
|
|
8461
9114
|
createResponseValidator: (args: ValidatorArgs) => ReturnType<typeof $.func> | undefined;
|
|
8462
9115
|
};
|
|
8463
9116
|
//#endregion
|
|
8464
|
-
//#region src/plugins/zod/
|
|
8465
|
-
type
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
9117
|
+
//#region src/plugins/zod/resolvers.d.ts
|
|
9118
|
+
type ZodResolvers = Plugin$1.Resolvers<{
|
|
9119
|
+
/**
|
|
9120
|
+
* Resolver for array schemas.
|
|
9121
|
+
*
|
|
9122
|
+
* Allows customization of how array types are rendered.
|
|
9123
|
+
*
|
|
9124
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
9125
|
+
*/
|
|
9126
|
+
array?: (ctx: ArrayResolverContext) => ChainResult;
|
|
9127
|
+
/**
|
|
9128
|
+
* Resolver for boolean schemas.
|
|
9129
|
+
*
|
|
9130
|
+
* Allows customization of how boolean types are rendered.
|
|
9131
|
+
*
|
|
9132
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
9133
|
+
*/
|
|
9134
|
+
boolean?: (ctx: BooleanResolverContext) => ChainResult;
|
|
8469
9135
|
/**
|
|
8470
9136
|
* Resolver for enum schemas.
|
|
8471
9137
|
*
|
|
@@ -8473,7 +9139,31 @@ type Resolvers = Plugin$1.Resolvers<{
|
|
|
8473
9139
|
*
|
|
8474
9140
|
* Returning `undefined` will execute the default resolver logic.
|
|
8475
9141
|
*/
|
|
8476
|
-
enum?: (ctx: EnumResolverContext) =>
|
|
9142
|
+
enum?: (ctx: EnumResolverContext) => ChainResult;
|
|
9143
|
+
/**
|
|
9144
|
+
* Resolver for intersection schemas.
|
|
9145
|
+
*
|
|
9146
|
+
* Allows customization of how intersection types are rendered.
|
|
9147
|
+
*
|
|
9148
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
9149
|
+
*/
|
|
9150
|
+
intersection?: (ctx: IntersectionResolverContext) => ChainResult;
|
|
9151
|
+
/**
|
|
9152
|
+
* Resolver for never schemas.
|
|
9153
|
+
*
|
|
9154
|
+
* Allows customization of how never types are rendered.
|
|
9155
|
+
*
|
|
9156
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
9157
|
+
*/
|
|
9158
|
+
never?: (ctx: NeverResolverContext) => ChainResult;
|
|
9159
|
+
/**
|
|
9160
|
+
* Resolver for null schemas.
|
|
9161
|
+
*
|
|
9162
|
+
* Allows customization of how null types are rendered.
|
|
9163
|
+
*
|
|
9164
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
9165
|
+
*/
|
|
9166
|
+
null?: (ctx: NullResolverContext) => ChainResult;
|
|
8477
9167
|
/**
|
|
8478
9168
|
* Resolver for number schemas.
|
|
8479
9169
|
*
|
|
@@ -8481,7 +9171,7 @@ type Resolvers = Plugin$1.Resolvers<{
|
|
|
8481
9171
|
*
|
|
8482
9172
|
* Returning `undefined` will execute the default resolver logic.
|
|
8483
9173
|
*/
|
|
8484
|
-
number?: (ctx: NumberResolverContext) =>
|
|
9174
|
+
number?: (ctx: NumberResolverContext) => ChainResult;
|
|
8485
9175
|
/**
|
|
8486
9176
|
* Resolver for object schemas.
|
|
8487
9177
|
*
|
|
@@ -8489,7 +9179,7 @@ type Resolvers = Plugin$1.Resolvers<{
|
|
|
8489
9179
|
*
|
|
8490
9180
|
* Returning `undefined` will execute the default resolver logic.
|
|
8491
9181
|
*/
|
|
8492
|
-
object?: (ctx: ObjectResolverContext) =>
|
|
9182
|
+
object?: (ctx: ObjectResolverContext) => ChainResult;
|
|
8493
9183
|
/**
|
|
8494
9184
|
* Resolver for string schemas.
|
|
8495
9185
|
*
|
|
@@ -8497,7 +9187,39 @@ type Resolvers = Plugin$1.Resolvers<{
|
|
|
8497
9187
|
*
|
|
8498
9188
|
* Returning `undefined` will execute the default resolver logic.
|
|
8499
9189
|
*/
|
|
8500
|
-
string?: (ctx: StringResolverContext) =>
|
|
9190
|
+
string?: (ctx: StringResolverContext) => ChainResult;
|
|
9191
|
+
/**
|
|
9192
|
+
* Resolver for tuple schemas.
|
|
9193
|
+
*
|
|
9194
|
+
* Allows customization of how tuple types are rendered.
|
|
9195
|
+
*
|
|
9196
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
9197
|
+
*/
|
|
9198
|
+
tuple?: (ctx: TupleResolverContext) => ChainResult;
|
|
9199
|
+
/**
|
|
9200
|
+
* Resolver for undefined schemas.
|
|
9201
|
+
*
|
|
9202
|
+
* Allows customization of how undefined types are rendered.
|
|
9203
|
+
*
|
|
9204
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
9205
|
+
*/
|
|
9206
|
+
undefined?: (ctx: UndefinedResolverContext) => ChainResult;
|
|
9207
|
+
/**
|
|
9208
|
+
* Resolver for union schemas.
|
|
9209
|
+
*
|
|
9210
|
+
* Allows customization of how union types are rendered.
|
|
9211
|
+
*
|
|
9212
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
9213
|
+
*/
|
|
9214
|
+
union?: (ctx: UnionResolverContext) => ChainResult;
|
|
9215
|
+
/**
|
|
9216
|
+
* Resolver for unknown schemas.
|
|
9217
|
+
*
|
|
9218
|
+
* Allows customization of how unknown types are rendered.
|
|
9219
|
+
*
|
|
9220
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
9221
|
+
*/
|
|
9222
|
+
unknown?: (ctx: UnknownResolverContext) => ChainResult;
|
|
8501
9223
|
/**
|
|
8502
9224
|
* Resolvers for request and response validators.
|
|
8503
9225
|
*
|
|
@@ -8521,9 +9243,17 @@ type Resolvers = Plugin$1.Resolvers<{
|
|
|
8521
9243
|
*/
|
|
8522
9244
|
response?: ValidatorResolver;
|
|
8523
9245
|
};
|
|
9246
|
+
/**
|
|
9247
|
+
* Resolver for void schemas.
|
|
9248
|
+
*
|
|
9249
|
+
* Allows customization of how void types are rendered.
|
|
9250
|
+
*
|
|
9251
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
9252
|
+
*/
|
|
9253
|
+
void?: (ctx: VoidResolverContext) => ChainResult;
|
|
8524
9254
|
}>;
|
|
8525
9255
|
type ValidatorResolver = (ctx: ValidatorResolverContext) => MaybeArray<TsDsl<ts.Statement>> | null | undefined;
|
|
8526
|
-
|
|
9256
|
+
interface BaseContext extends DollarTsDsl {
|
|
8527
9257
|
/**
|
|
8528
9258
|
* Functions for working with chains.
|
|
8529
9259
|
*/
|
|
@@ -8531,28 +9261,79 @@ type BaseContext = DollarTsDsl & Pick<IrSchemaToAstOptions, 'plugin'> & {
|
|
|
8531
9261
|
/**
|
|
8532
9262
|
* The current chain.
|
|
8533
9263
|
*
|
|
8534
|
-
* In Zod, this represents a chain of
|
|
8535
|
-
*
|
|
9264
|
+
* In Zod, this represents a chain of method calls being assembled
|
|
9265
|
+
* to form a schema definition (e.g., `z.string().min(1).max(10)`).
|
|
8536
9266
|
*
|
|
8537
|
-
* Each
|
|
9267
|
+
* Each method can be extended, modified, or replaced to customize
|
|
8538
9268
|
* the resulting schema.
|
|
8539
9269
|
*/
|
|
8540
9270
|
current: Chain;
|
|
8541
9271
|
};
|
|
9272
|
+
/** The plugin instance. */
|
|
9273
|
+
plugin: ZodPlugin['Instance'];
|
|
8542
9274
|
/**
|
|
8543
9275
|
* Provides access to commonly used symbols within the plugin.
|
|
8544
9276
|
*/
|
|
8545
9277
|
symbols: {
|
|
8546
9278
|
z: Symbol;
|
|
8547
9279
|
};
|
|
8548
|
-
}
|
|
9280
|
+
}
|
|
9281
|
+
interface ArrayResolverContext extends BaseContext {
|
|
9282
|
+
applyModifiers: (result: ZodResult, opts?: {
|
|
9283
|
+
optional?: boolean;
|
|
9284
|
+
}) => ZodFinal;
|
|
9285
|
+
/**
|
|
9286
|
+
* Child results from processing array items.
|
|
9287
|
+
*/
|
|
9288
|
+
childResults: Array<ZodResult>;
|
|
9289
|
+
/**
|
|
9290
|
+
* Nodes used to build different parts of the result.
|
|
9291
|
+
*/
|
|
9292
|
+
nodes: {
|
|
9293
|
+
/**
|
|
9294
|
+
* Returns the base array expression (z.array(...)).
|
|
9295
|
+
*/
|
|
9296
|
+
base: (ctx: ArrayResolverContext) => Chain;
|
|
9297
|
+
/**
|
|
9298
|
+
* Returns a length constraint (when minItems === maxItems), if applicable.
|
|
9299
|
+
*/
|
|
9300
|
+
length: (ctx: ArrayResolverContext) => ChainResult;
|
|
9301
|
+
/**
|
|
9302
|
+
* Returns a maxItems constraint, if applicable.
|
|
9303
|
+
*/
|
|
9304
|
+
maxLength: (ctx: ArrayResolverContext) => ChainResult;
|
|
9305
|
+
/**
|
|
9306
|
+
* Returns a minItems constraint, if applicable.
|
|
9307
|
+
*/
|
|
9308
|
+
minLength: (ctx: ArrayResolverContext) => ChainResult;
|
|
9309
|
+
};
|
|
9310
|
+
schema: SchemaWithType<'array'>;
|
|
9311
|
+
walk: Walker<ZodResult, ZodPlugin['Instance']>;
|
|
9312
|
+
walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
|
|
9313
|
+
}
|
|
9314
|
+
interface BooleanResolverContext extends BaseContext {
|
|
9315
|
+
/**
|
|
9316
|
+
* Nodes used to build different parts of the result.
|
|
9317
|
+
*/
|
|
9318
|
+
nodes: {
|
|
9319
|
+
/**
|
|
9320
|
+
* Returns the base boolean expression (z.boolean()).
|
|
9321
|
+
*/
|
|
9322
|
+
base: (ctx: BooleanResolverContext) => Chain;
|
|
9323
|
+
/**
|
|
9324
|
+
* Returns a literal expression for the const value, if present.
|
|
9325
|
+
*/
|
|
9326
|
+
const: (ctx: BooleanResolverContext) => ChainResult;
|
|
9327
|
+
};
|
|
9328
|
+
schema: SchemaWithType<'boolean'>;
|
|
9329
|
+
}
|
|
8549
9330
|
interface EnumResolverContext extends BaseContext {
|
|
8550
9331
|
/**
|
|
8551
|
-
* Nodes used to build different parts of the
|
|
9332
|
+
* Nodes used to build different parts of the result.
|
|
8552
9333
|
*/
|
|
8553
9334
|
nodes: {
|
|
8554
9335
|
/**
|
|
8555
|
-
* Returns the base enum expression (z.enum([...]) or z.union([...])
|
|
9336
|
+
* Returns the base enum expression (z.enum([...]) or z.union([...])).
|
|
8556
9337
|
*/
|
|
8557
9338
|
base: (ctx: EnumResolverContext) => Chain;
|
|
8558
9339
|
/**
|
|
@@ -8560,7 +9341,7 @@ interface EnumResolverContext extends BaseContext {
|
|
|
8560
9341
|
*/
|
|
8561
9342
|
items: (ctx: EnumResolverContext) => {
|
|
8562
9343
|
/**
|
|
8563
|
-
* Whether all enum
|
|
9344
|
+
* Whether all enum members are strings.
|
|
8564
9345
|
*/
|
|
8565
9346
|
allStrings: boolean;
|
|
8566
9347
|
/**
|
|
@@ -8572,84 +9353,214 @@ interface EnumResolverContext extends BaseContext {
|
|
|
8572
9353
|
*/
|
|
8573
9354
|
isNullable: boolean;
|
|
8574
9355
|
/**
|
|
8575
|
-
*
|
|
9356
|
+
* Zod literal expressions for each enum member.
|
|
8576
9357
|
*/
|
|
8577
9358
|
literalMembers: Array<Chain>;
|
|
8578
9359
|
};
|
|
8579
9360
|
};
|
|
8580
9361
|
schema: SchemaWithType<'enum'>;
|
|
9362
|
+
}
|
|
9363
|
+
interface IntersectionResolverContext extends BaseContext {
|
|
9364
|
+
childResults: Array<ZodResult>;
|
|
8581
9365
|
/**
|
|
8582
|
-
*
|
|
9366
|
+
* Nodes used to build different parts of the result.
|
|
8583
9367
|
*/
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
9368
|
+
nodes: {
|
|
9369
|
+
/**
|
|
9370
|
+
* Returns the base intersection expression.
|
|
9371
|
+
*/
|
|
9372
|
+
base: (ctx: IntersectionResolverContext) => Chain;
|
|
9373
|
+
};
|
|
9374
|
+
parentSchema: IR$1.SchemaObject;
|
|
9375
|
+
schema: IR$1.SchemaObject;
|
|
9376
|
+
walk: Walker<ZodResult, ZodPlugin['Instance']>;
|
|
9377
|
+
walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
|
|
9378
|
+
}
|
|
9379
|
+
interface NeverResolverContext extends BaseContext {
|
|
9380
|
+
/**
|
|
9381
|
+
* Nodes used to build different parts of the result.
|
|
9382
|
+
*/
|
|
9383
|
+
nodes: {
|
|
9384
|
+
/**
|
|
9385
|
+
* Returns the base never expression (z.never()).
|
|
9386
|
+
*/
|
|
9387
|
+
base: (ctx: NeverResolverContext) => Chain;
|
|
9388
|
+
};
|
|
9389
|
+
schema: SchemaWithType<'never'>;
|
|
9390
|
+
}
|
|
9391
|
+
interface NullResolverContext extends BaseContext {
|
|
9392
|
+
/**
|
|
9393
|
+
* Nodes used to build different parts of the result.
|
|
9394
|
+
*/
|
|
9395
|
+
nodes: {
|
|
9396
|
+
/**
|
|
9397
|
+
* Returns the base null expression (z.null()).
|
|
9398
|
+
*/
|
|
9399
|
+
base: (ctx: NullResolverContext) => Chain;
|
|
8587
9400
|
};
|
|
9401
|
+
schema: SchemaWithType<'null'>;
|
|
8588
9402
|
}
|
|
8589
9403
|
interface NumberResolverContext extends BaseContext {
|
|
8590
9404
|
/**
|
|
8591
|
-
* Nodes used to build different parts of the
|
|
9405
|
+
* Nodes used to build different parts of the result.
|
|
8592
9406
|
*/
|
|
8593
9407
|
nodes: {
|
|
9408
|
+
/**
|
|
9409
|
+
* Returns the base number expression (z.number() or z.coerce.number()).
|
|
9410
|
+
*/
|
|
8594
9411
|
base: (ctx: NumberResolverContext) => Chain;
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
9412
|
+
/**
|
|
9413
|
+
* Returns a literal expression for the const value, if present.
|
|
9414
|
+
*/
|
|
9415
|
+
const: (ctx: NumberResolverContext) => ChainResult;
|
|
9416
|
+
/**
|
|
9417
|
+
* Returns the maximum value constraint.
|
|
9418
|
+
*/
|
|
9419
|
+
max: (ctx: NumberResolverContext) => ChainResult;
|
|
9420
|
+
/**
|
|
9421
|
+
* Returns the minimum value constraint.
|
|
9422
|
+
*/
|
|
9423
|
+
min: (ctx: NumberResolverContext) => ChainResult;
|
|
8598
9424
|
};
|
|
8599
9425
|
schema: SchemaWithType<'integer' | 'number'>;
|
|
8600
9426
|
/**
|
|
8601
9427
|
* Utility functions for number schema processing.
|
|
8602
9428
|
*/
|
|
8603
9429
|
utils: {
|
|
8604
|
-
ast: Partial<Omit<Ast, 'typeName'>>;
|
|
8605
9430
|
getIntegerLimit: GetIntegerLimit;
|
|
8606
9431
|
maybeBigInt: MaybeBigInt;
|
|
8607
9432
|
shouldCoerceToBigInt: ShouldCoerceToBigInt;
|
|
8608
|
-
state: Refs<PluginState>;
|
|
8609
9433
|
};
|
|
8610
9434
|
}
|
|
8611
9435
|
interface ObjectResolverContext extends BaseContext {
|
|
8612
|
-
|
|
9436
|
+
/**
|
|
9437
|
+
* Child results from processing object properties.
|
|
9438
|
+
* Used for metadata composition.
|
|
9439
|
+
*/
|
|
9440
|
+
_childResults: Array<ZodResult>;
|
|
9441
|
+
applyModifiers: (result: ZodResult, opts: {
|
|
8613
9442
|
optional?: boolean;
|
|
8614
|
-
}) =>
|
|
9443
|
+
}) => ZodFinal;
|
|
8615
9444
|
/**
|
|
8616
|
-
* Nodes used to build different parts of the
|
|
9445
|
+
* Nodes used to build different parts of the result.
|
|
8617
9446
|
*/
|
|
8618
9447
|
nodes: {
|
|
8619
9448
|
/**
|
|
8620
|
-
*
|
|
8621
|
-
* to indicate no additional properties are allowed.
|
|
9449
|
+
* Returns the additional properties expression, if any.
|
|
8622
9450
|
*/
|
|
8623
9451
|
additionalProperties: (ctx: ObjectResolverContext) => Chain | null | undefined;
|
|
9452
|
+
/**
|
|
9453
|
+
* Returns the base object expression (z.object({...}) or z.record(...)).
|
|
9454
|
+
*/
|
|
8624
9455
|
base: (ctx: ObjectResolverContext) => Chain;
|
|
9456
|
+
/**
|
|
9457
|
+
* Returns the object shape (property definitions).
|
|
9458
|
+
*/
|
|
8625
9459
|
shape: (ctx: ObjectResolverContext) => ReturnType<typeof $.object>;
|
|
8626
9460
|
};
|
|
8627
9461
|
schema: SchemaWithType<'object'>;
|
|
8628
|
-
|
|
8629
|
-
* Utility functions for object schema processing.
|
|
8630
|
-
*/
|
|
8631
|
-
utils: {
|
|
8632
|
-
ast: Partial<Omit<Ast, 'typeName'>>;
|
|
8633
|
-
state: Refs<PluginState>;
|
|
8634
|
-
};
|
|
8635
|
-
walk: Walker<ZodSchemaResult, ZodPlugin['Instance']>;
|
|
9462
|
+
walk: Walker<ZodResult, ZodPlugin['Instance']>;
|
|
8636
9463
|
walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
|
|
8637
9464
|
}
|
|
8638
9465
|
interface StringResolverContext extends BaseContext {
|
|
8639
9466
|
/**
|
|
8640
|
-
* Nodes used to build different parts of the
|
|
9467
|
+
* Nodes used to build different parts of the result.
|
|
8641
9468
|
*/
|
|
8642
9469
|
nodes: {
|
|
9470
|
+
/**
|
|
9471
|
+
* Returns the base string expression (z.string()).
|
|
9472
|
+
*/
|
|
8643
9473
|
base: (ctx: StringResolverContext) => Chain;
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
9474
|
+
/**
|
|
9475
|
+
* Returns a literal expression for the const value, if present.
|
|
9476
|
+
*/
|
|
9477
|
+
const: (ctx: StringResolverContext) => ChainResult;
|
|
9478
|
+
/**
|
|
9479
|
+
* Returns a format validation expression, if applicable.
|
|
9480
|
+
*/
|
|
9481
|
+
format: (ctx: StringResolverContext) => ChainResult;
|
|
9482
|
+
/**
|
|
9483
|
+
* Returns a length constraint (when min === max), if applicable.
|
|
9484
|
+
*/
|
|
9485
|
+
length: (ctx: StringResolverContext) => ChainResult;
|
|
9486
|
+
/**
|
|
9487
|
+
* Returns a maxLength constraint, if applicable.
|
|
9488
|
+
*/
|
|
9489
|
+
maxLength: (ctx: StringResolverContext) => ChainResult;
|
|
9490
|
+
/**
|
|
9491
|
+
* Returns a minLength constraint, if applicable.
|
|
9492
|
+
*/
|
|
9493
|
+
minLength: (ctx: StringResolverContext) => ChainResult;
|
|
9494
|
+
/**
|
|
9495
|
+
* Returns a pattern (regex) constraint, if applicable.
|
|
9496
|
+
*/
|
|
9497
|
+
pattern: (ctx: StringResolverContext) => ChainResult;
|
|
8650
9498
|
};
|
|
8651
9499
|
schema: SchemaWithType<'string'>;
|
|
8652
9500
|
}
|
|
9501
|
+
interface TupleResolverContext extends BaseContext {
|
|
9502
|
+
applyModifiers: (result: ZodResult, opts?: {
|
|
9503
|
+
optional?: boolean;
|
|
9504
|
+
}) => ZodFinal;
|
|
9505
|
+
childResults: Array<ZodResult>;
|
|
9506
|
+
/**
|
|
9507
|
+
* Nodes used to build different parts of the result.
|
|
9508
|
+
*/
|
|
9509
|
+
nodes: {
|
|
9510
|
+
/**
|
|
9511
|
+
* Returns the base tuple expression (z.tuple([...])).
|
|
9512
|
+
*/
|
|
9513
|
+
base: (ctx: TupleResolverContext) => Chain;
|
|
9514
|
+
/**
|
|
9515
|
+
* Returns a literal expression for the const value, if present.
|
|
9516
|
+
*/
|
|
9517
|
+
const: (ctx: TupleResolverContext) => ChainResult;
|
|
9518
|
+
};
|
|
9519
|
+
schema: SchemaWithType<'tuple'>;
|
|
9520
|
+
walk: Walker<ZodResult, ZodPlugin['Instance']>;
|
|
9521
|
+
walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
|
|
9522
|
+
}
|
|
9523
|
+
interface UndefinedResolverContext extends BaseContext {
|
|
9524
|
+
/**
|
|
9525
|
+
* Nodes used to build different parts of the result.
|
|
9526
|
+
*/
|
|
9527
|
+
nodes: {
|
|
9528
|
+
/**
|
|
9529
|
+
* Returns the base undefined expression (z.undefined()).
|
|
9530
|
+
*/
|
|
9531
|
+
base: (ctx: UndefinedResolverContext) => Chain;
|
|
9532
|
+
};
|
|
9533
|
+
schema: SchemaWithType<'undefined'>;
|
|
9534
|
+
}
|
|
9535
|
+
interface UnionResolverContext extends BaseContext {
|
|
9536
|
+
childResults: Array<ZodResult>;
|
|
9537
|
+
/**
|
|
9538
|
+
* Nodes used to build different parts of the result.
|
|
9539
|
+
*/
|
|
9540
|
+
nodes: {
|
|
9541
|
+
/**
|
|
9542
|
+
* Returns the base union expression.
|
|
9543
|
+
*/
|
|
9544
|
+
base: (ctx: UnionResolverContext) => Chain;
|
|
9545
|
+
};
|
|
9546
|
+
parentSchema: IR$1.SchemaObject;
|
|
9547
|
+
schema: IR$1.SchemaObject;
|
|
9548
|
+
schemas: ReadonlyArray<IR$1.SchemaObject>;
|
|
9549
|
+
walk: Walker<ZodResult, ZodPlugin['Instance']>;
|
|
9550
|
+
walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
|
|
9551
|
+
}
|
|
9552
|
+
interface UnknownResolverContext extends BaseContext {
|
|
9553
|
+
/**
|
|
9554
|
+
* Nodes used to build different parts of the result.
|
|
9555
|
+
*/
|
|
9556
|
+
nodes: {
|
|
9557
|
+
/**
|
|
9558
|
+
* Returns the base unknown expression (z.unknown()).
|
|
9559
|
+
*/
|
|
9560
|
+
base: (ctx: UnknownResolverContext) => Chain;
|
|
9561
|
+
};
|
|
9562
|
+
schema: SchemaWithType<'unknown'>;
|
|
9563
|
+
}
|
|
8653
9564
|
interface ValidatorResolverContext extends BaseContext {
|
|
8654
9565
|
operation: IR$1.OperationObject;
|
|
8655
9566
|
/**
|
|
@@ -8659,9 +9570,21 @@ interface ValidatorResolverContext extends BaseContext {
|
|
|
8659
9570
|
schema: Symbol;
|
|
8660
9571
|
};
|
|
8661
9572
|
}
|
|
9573
|
+
interface VoidResolverContext extends BaseContext {
|
|
9574
|
+
/**
|
|
9575
|
+
* Nodes used to build different parts of the result.
|
|
9576
|
+
*/
|
|
9577
|
+
nodes: {
|
|
9578
|
+
/**
|
|
9579
|
+
* Returns the base void expression (z.void()).
|
|
9580
|
+
*/
|
|
9581
|
+
base: (ctx: VoidResolverContext) => Chain;
|
|
9582
|
+
};
|
|
9583
|
+
schema: SchemaWithType<'void'>;
|
|
9584
|
+
}
|
|
8662
9585
|
//#endregion
|
|
8663
9586
|
//#region src/plugins/zod/types.d.ts
|
|
8664
|
-
type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports &
|
|
9587
|
+
type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & ZodResolvers & {
|
|
8665
9588
|
/**
|
|
8666
9589
|
* Casing convention for generated names.
|
|
8667
9590
|
*
|
|
@@ -9037,38 +9960,25 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
|
|
|
9037
9960
|
};
|
|
9038
9961
|
};
|
|
9039
9962
|
};
|
|
9040
|
-
type Config = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports &
|
|
9041
|
-
/** Casing convention for generated names. */
|
|
9042
|
-
|
|
9043
|
-
/** The compatibility version to target for generated output. */
|
|
9044
|
-
compatibilityVersion: 3 | 4 | 'mini';
|
|
9045
|
-
/** Configuration for date handling in generated Zod schemas. */
|
|
9963
|
+
type Config = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & ZodResolvers & {
|
|
9964
|
+
/** Casing convention for generated names. */case: Casing; /** The compatibility version to target for generated output. */
|
|
9965
|
+
compatibilityVersion: 3 | 4 | 'mini'; /** Configuration for date handling in generated Zod schemas. */
|
|
9046
9966
|
dates: {
|
|
9047
|
-
/** Whether to allow unqualified (timezone-less) datetimes. */
|
|
9048
|
-
local: boolean;
|
|
9049
|
-
/** Whether to include timezone offset information when handling dates. */
|
|
9967
|
+
/** Whether to allow unqualified (timezone-less) datetimes. */local: boolean; /** Whether to include timezone offset information when handling dates. */
|
|
9050
9968
|
offset: boolean;
|
|
9051
|
-
};
|
|
9052
|
-
/**
|
|
9053
|
-
definitions: NamingOptions & FeatureToggle & TypeOptions;
|
|
9054
|
-
/** Enable Zod metadata support? */
|
|
9969
|
+
}; /** Configuration for reusable schema definitions. */
|
|
9970
|
+
definitions: NamingOptions & FeatureToggle & TypeOptions; /** Enable Zod metadata support? */
|
|
9055
9971
|
metadata: boolean | ((ctx: DollarTsDsl & {
|
|
9056
9972
|
node: ReturnType<typeof $.object>;
|
|
9057
9973
|
schema: IR$1.SchemaObject;
|
|
9058
|
-
}) => void);
|
|
9059
|
-
/** Configuration for
|
|
9060
|
-
|
|
9061
|
-
/** Configuration for response-specific Zod schemas. */
|
|
9062
|
-
responses: NamingOptions & FeatureToggle & TypeOptions;
|
|
9063
|
-
/** Configuration for TypeScript type generation from Zod schemas. */
|
|
9974
|
+
}) => void); /** Configuration for request-specific Zod schemas. */
|
|
9975
|
+
requests: NamingOptions & FeatureToggle & TypeOptions; /** Configuration for response-specific Zod schemas. */
|
|
9976
|
+
responses: NamingOptions & FeatureToggle & TypeOptions; /** Configuration for TypeScript type generation from Zod schemas. */
|
|
9064
9977
|
types: {
|
|
9065
|
-
/** Configuration for `infer` types. */
|
|
9066
|
-
|
|
9067
|
-
/** Casing convention for generated names. */
|
|
9068
|
-
case: Casing;
|
|
9978
|
+
/** Configuration for `infer` types. */infer: FeatureToggle & {
|
|
9979
|
+
/** Casing convention for generated names. */case: Casing;
|
|
9069
9980
|
};
|
|
9070
|
-
};
|
|
9071
|
-
/** Configuration for webhook-specific Zod schemas. */
|
|
9981
|
+
}; /** Configuration for webhook-specific Zod schemas. */
|
|
9072
9982
|
webhooks: NamingOptions & FeatureToggle & TypeOptions;
|
|
9073
9983
|
};
|
|
9074
9984
|
type ZodPlugin = DefinePlugin$1<UserConfig$1, Config, IApi>;
|
|
@@ -9138,31 +10048,32 @@ declare module '@hey-api/codegen-core' {
|
|
|
9138
10048
|
}
|
|
9139
10049
|
declare module '@hey-api/shared' {
|
|
9140
10050
|
interface PluginConfigMap {
|
|
9141
|
-
'@angular/common':
|
|
9142
|
-
'@faker-js/faker':
|
|
9143
|
-
'@hey-api/client-angular':
|
|
9144
|
-
'@hey-api/client-axios':
|
|
9145
|
-
'@hey-api/client-fetch':
|
|
9146
|
-
'@hey-api/client-ky':
|
|
9147
|
-
'@hey-api/client-next':
|
|
9148
|
-
'@hey-api/client-nuxt':
|
|
9149
|
-
'@hey-api/client-ofetch':
|
|
9150
|
-
'@hey-api/schemas':
|
|
9151
|
-
'@hey-api/sdk':
|
|
9152
|
-
'@hey-api/transformers':
|
|
9153
|
-
'@hey-api/typescript':
|
|
9154
|
-
'@pinia/colada':
|
|
9155
|
-
'@tanstack/angular-query-experimental':
|
|
9156
|
-
'@tanstack/preact-query':
|
|
9157
|
-
'@tanstack/react-query':
|
|
9158
|
-
'@tanstack/solid-query':
|
|
9159
|
-
'@tanstack/svelte-query':
|
|
9160
|
-
'@tanstack/vue-query':
|
|
9161
|
-
arktype:
|
|
9162
|
-
fastify:
|
|
9163
|
-
|
|
9164
|
-
|
|
9165
|
-
|
|
10051
|
+
'@angular/common': Plugins.AngularCommon.Types['Types'];
|
|
10052
|
+
'@faker-js/faker': Plugins.FakerJsFaker.Types['Types'];
|
|
10053
|
+
'@hey-api/client-angular': Plugins.HeyApiClientAngular.Types['Types'];
|
|
10054
|
+
'@hey-api/client-axios': Plugins.HeyApiClientAxios.Types['Types'];
|
|
10055
|
+
'@hey-api/client-fetch': Plugins.HeyApiClientFetch.Types['Types'];
|
|
10056
|
+
'@hey-api/client-ky': Plugins.HeyApiClientKy.Types['Types'];
|
|
10057
|
+
'@hey-api/client-next': Plugins.HeyApiClientNext.Types['Types'];
|
|
10058
|
+
'@hey-api/client-nuxt': Plugins.HeyApiClientNuxt.Types['Types'];
|
|
10059
|
+
'@hey-api/client-ofetch': Plugins.HeyApiClientOfetch.Types['Types'];
|
|
10060
|
+
'@hey-api/schemas': Plugins.HeyApiSchemas.Types['Types'];
|
|
10061
|
+
'@hey-api/sdk': Plugins.HeyApiSdk.Types['Types'];
|
|
10062
|
+
'@hey-api/transformers': Plugins.HeyApiTransformers.Types['Types'];
|
|
10063
|
+
'@hey-api/typescript': Plugins.HeyApiTypeScript.Types['Types'];
|
|
10064
|
+
'@pinia/colada': Plugins.PiniaColada.Types['Types'];
|
|
10065
|
+
'@tanstack/angular-query-experimental': Plugins.TanStackAngularQuery.Types['Types'];
|
|
10066
|
+
'@tanstack/preact-query': Plugins.TanStackPreactQuery.Types['Types'];
|
|
10067
|
+
'@tanstack/react-query': Plugins.TanStackReactQuery.Types['Types'];
|
|
10068
|
+
'@tanstack/solid-query': Plugins.TanStackSolidQuery.Types['Types'];
|
|
10069
|
+
'@tanstack/svelte-query': Plugins.TanStackSvelteQuery.Types['Types'];
|
|
10070
|
+
'@tanstack/vue-query': Plugins.TanStackVueQuery.Types['Types'];
|
|
10071
|
+
arktype: Plugins.Arktype.Types['Types'];
|
|
10072
|
+
fastify: Plugins.Fastify.Types['Types'];
|
|
10073
|
+
nestjs: Plugins.NestJs.Types['Types'];
|
|
10074
|
+
swr: Plugins.Swr.Types['Types'];
|
|
10075
|
+
valibot: Plugins.Valibot.Types['Types'];
|
|
10076
|
+
zod: Plugins.Zod.Types['Types'];
|
|
9166
10077
|
}
|
|
9167
10078
|
interface PluginInstanceTypes {
|
|
9168
10079
|
Node: TsDsl;
|
|
@@ -9173,6 +10084,111 @@ declare module '@hey-api/shared' {
|
|
|
9173
10084
|
*/
|
|
9174
10085
|
declare function defineConfig(config: LazyOrAsync<ReadonlyArray<UserConfig>>): Promise<ReadonlyArray<UserConfig>>;
|
|
9175
10086
|
declare function defineConfig(config: LazyOrAsync<UserConfig>): Promise<UserConfig>;
|
|
9176
|
-
|
|
9177
|
-
|
|
10087
|
+
declare namespace Plugins {
|
|
10088
|
+
namespace AngularCommon {
|
|
10089
|
+
type Types = AngularCommonPlugin;
|
|
10090
|
+
}
|
|
10091
|
+
namespace Arktype {
|
|
10092
|
+
type Types = ArktypePlugin;
|
|
10093
|
+
}
|
|
10094
|
+
namespace FakerJsFaker {
|
|
10095
|
+
type Types = FakerJsFakerPlugin;
|
|
10096
|
+
type Resolvers = Required<FakerJsFakerResolvers>['~resolvers'];
|
|
10097
|
+
}
|
|
10098
|
+
namespace Fastify {
|
|
10099
|
+
type Types = FastifyPlugin;
|
|
10100
|
+
}
|
|
10101
|
+
namespace HeyApiClientAngular {
|
|
10102
|
+
type Client = Client$7;
|
|
10103
|
+
type Types = HeyApiClientAngularPlugin;
|
|
10104
|
+
}
|
|
10105
|
+
namespace HeyApiClientAxios {
|
|
10106
|
+
type Client = Client$6;
|
|
10107
|
+
type Types = HeyApiClientAxiosPlugin;
|
|
10108
|
+
}
|
|
10109
|
+
namespace HeyApiClientFetch {
|
|
10110
|
+
type Client = Client$5;
|
|
10111
|
+
type Types = HeyApiClientFetchPlugin;
|
|
10112
|
+
}
|
|
10113
|
+
namespace HeyApiClientKy {
|
|
10114
|
+
type Client = Client$1;
|
|
10115
|
+
type Types = HeyApiClientKyPlugin;
|
|
10116
|
+
}
|
|
10117
|
+
namespace HeyApiClientNext {
|
|
10118
|
+
type Client = Client$4;
|
|
10119
|
+
type Types = HeyApiClientNextPlugin;
|
|
10120
|
+
}
|
|
10121
|
+
namespace HeyApiClientNuxt {
|
|
10122
|
+
type Client = Client$3;
|
|
10123
|
+
type Types = HeyApiClientNuxtPlugin;
|
|
10124
|
+
}
|
|
10125
|
+
namespace HeyApiClientOfetch {
|
|
10126
|
+
type Client = Client$2;
|
|
10127
|
+
type Types = HeyApiClientOfetchPlugin;
|
|
10128
|
+
}
|
|
10129
|
+
namespace HeyApiSchemas {
|
|
10130
|
+
type Types = HeyApiSchemasPlugin;
|
|
10131
|
+
}
|
|
10132
|
+
namespace HeyApiSdk {
|
|
10133
|
+
type Types = HeyApiSdkPlugin;
|
|
10134
|
+
}
|
|
10135
|
+
namespace HeyApiTransformers {
|
|
10136
|
+
type Types = HeyApiTransformersPlugin;
|
|
10137
|
+
}
|
|
10138
|
+
namespace HeyApiTypeScript {
|
|
10139
|
+
type Resolvers = Required<HeyApiTypeScriptResolvers>['~resolvers'];
|
|
10140
|
+
type Types = HeyApiTypeScriptPlugin;
|
|
10141
|
+
}
|
|
10142
|
+
namespace NestJs {
|
|
10143
|
+
type Types = NestJsPlugin;
|
|
10144
|
+
}
|
|
10145
|
+
namespace PiniaColada {
|
|
10146
|
+
type Types = PiniaColadaPlugin;
|
|
10147
|
+
}
|
|
10148
|
+
namespace Swr {
|
|
10149
|
+
type Types = SwrPlugin;
|
|
10150
|
+
}
|
|
10151
|
+
namespace TanStackAngularQuery {
|
|
10152
|
+
type Types = TanStackAngularQueryPlugin;
|
|
10153
|
+
}
|
|
10154
|
+
namespace TanStackPreactQuery {
|
|
10155
|
+
type Types = TanStackPreactQueryPlugin;
|
|
10156
|
+
}
|
|
10157
|
+
namespace TanStackReactQuery {
|
|
10158
|
+
type Types = TanStackReactQueryPlugin;
|
|
10159
|
+
}
|
|
10160
|
+
namespace TanStackSolidQuery {
|
|
10161
|
+
type Types = TanStackSolidQueryPlugin;
|
|
10162
|
+
}
|
|
10163
|
+
namespace TanStackSvelteQuery {
|
|
10164
|
+
type Types = TanStackSvelteQueryPlugin;
|
|
10165
|
+
}
|
|
10166
|
+
namespace TanStackVueQuery {
|
|
10167
|
+
type Types = TanStackVueQueryPlugin;
|
|
10168
|
+
}
|
|
10169
|
+
namespace Valibot {
|
|
10170
|
+
type Resolvers = Required<ValibotResolvers>['~resolvers'];
|
|
10171
|
+
type Types = ValibotPlugin;
|
|
10172
|
+
}
|
|
10173
|
+
namespace Zod {
|
|
10174
|
+
type Resolvers = Required<ZodResolvers>['~resolvers'];
|
|
10175
|
+
type Types = ZodPlugin;
|
|
10176
|
+
}
|
|
10177
|
+
}
|
|
10178
|
+
/** @deprecated Use `Plugins.HeyApiClientAngular.Client` instead. */
|
|
10179
|
+
type AngularClient = Client$7;
|
|
10180
|
+
/** @deprecated Use `Plugins.HeyApiClientAxios.Client` instead. */
|
|
10181
|
+
type AxiosClient = Client$6;
|
|
10182
|
+
/** @deprecated Use `Plugins.HeyApiClientFetch.Client` instead. */
|
|
10183
|
+
type FetchClient = Client$5;
|
|
10184
|
+
/** @deprecated Use `Plugins.HeyApiClientKy.Client` instead. */
|
|
10185
|
+
type KyClient = Client$1;
|
|
10186
|
+
/** @deprecated Use `Plugins.HeyApiClientNext.Client` instead. */
|
|
10187
|
+
type NextClient = Client$4;
|
|
10188
|
+
/** @deprecated Use `Plugins.HeyApiClientNuxt.Client` instead. */
|
|
10189
|
+
type NuxtClient = Client$3;
|
|
10190
|
+
/** @deprecated Use `Plugins.HeyApiClientOfetch.Client` instead. */
|
|
10191
|
+
type OfetchClient = Client$2;
|
|
10192
|
+
//#endregion
|
|
10193
|
+
export { $, type AngularClient, type AxiosClient, type CallArgs, type Client, type DefinePlugin, DollarTsDsl, type ExampleOptions, type ExpressionTransformer, type FetchClient, type IR, type KyClient, Logger, type MaybeTsDsl, type NextClient, type NuxtClient, type OfetchClient, type OpenApi, type OpenApiMetaObject, type OpenApiOperationObject, type OpenApiParameterObject, type OpenApiRequestBodyObject, type OpenApiResponseObject, type OpenApiSchemaObject, OperationPath, OperationStrategy, type Plugin, Plugins, TsDsl, TsDslContext, TypeScriptRenderer, type TypeTransformer, type TypeTsDsl, type UserConfig, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, createClient, ctx, defaultPaginationKeywords, defaultPlugins, defineConfig, definePluginConfig, keywords, regexp, reserved, utils };
|
|
9178
10194
|
//# sourceMappingURL=index.d.mts.map
|