@shopify/cli-kit 1.0.1 → 1.0.4
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/CHANGELOG.md +6 -0
- package/dist/{index-c8c5d53a.js → index-75d3c335.js} +7002 -836
- package/dist/index-75d3c335.js.map +1 -0
- package/dist/index.d.ts +554 -399
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/{multipart-parser-f50635ec.js → multipart-parser-440fedf2.js} +4 -3
- package/dist/multipart-parser-440fedf2.js.map +1 -0
- package/package.json +10 -9
- package/dist/index-c8c5d53a.js.map +0 -1
- package/dist/multipart-parser-f50635ec.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -31,12 +31,12 @@ declare class Subscription implements SubscriptionLike {
|
|
|
31
31
|
closed: boolean;
|
|
32
32
|
private _parentage;
|
|
33
33
|
/**
|
|
34
|
-
* The list of registered
|
|
34
|
+
* The list of registered finalizers to execute upon unsubscription. Adding and removing from this
|
|
35
35
|
* list occurs in the {@link #add} and {@link #remove} methods.
|
|
36
36
|
*/
|
|
37
|
-
private
|
|
37
|
+
private _finalizers;
|
|
38
38
|
/**
|
|
39
|
-
* @param initialTeardown A function executed first as part of the
|
|
39
|
+
* @param initialTeardown A function executed first as part of the finalization
|
|
40
40
|
* process that is kicked off when {@link #unsubscribe} is called.
|
|
41
41
|
*/
|
|
42
42
|
constructor(initialTeardown?: (() => void) | undefined);
|
|
@@ -48,12 +48,12 @@ declare class Subscription implements SubscriptionLike {
|
|
|
48
48
|
*/
|
|
49
49
|
unsubscribe(): void;
|
|
50
50
|
/**
|
|
51
|
-
* Adds a
|
|
51
|
+
* Adds a finalizer to this subscription, so that finalization will be unsubscribed/called
|
|
52
52
|
* when this subscription is unsubscribed. If this subscription is already {@link #closed},
|
|
53
|
-
* because it has already been unsubscribed, then whatever
|
|
54
|
-
* will automatically be executed (unless the
|
|
53
|
+
* because it has already been unsubscribed, then whatever finalizer is passed to it
|
|
54
|
+
* will automatically be executed (unless the finalizer itself is also a closed subscription).
|
|
55
55
|
*
|
|
56
|
-
* Closed Subscriptions cannot be added as
|
|
56
|
+
* Closed Subscriptions cannot be added as finalizers to any subscription. Adding a closed
|
|
57
57
|
* subscription to a any subscription will result in no operation. (A noop).
|
|
58
58
|
*
|
|
59
59
|
* Adding a subscription to itself, or adding `null` or `undefined` will not perform any
|
|
@@ -63,7 +63,7 @@ declare class Subscription implements SubscriptionLike {
|
|
|
63
63
|
* if they are unsubscribed. Functions and {@link Unsubscribable} objects that you wish to remove
|
|
64
64
|
* will need to be removed manually with {@link #remove}
|
|
65
65
|
*
|
|
66
|
-
* @param teardown The
|
|
66
|
+
* @param teardown The finalization logic to add to this subscription.
|
|
67
67
|
*/
|
|
68
68
|
add(teardown: TeardownLogic): void;
|
|
69
69
|
/**
|
|
@@ -86,18 +86,18 @@ declare class Subscription implements SubscriptionLike {
|
|
|
86
86
|
*/
|
|
87
87
|
private _removeParent;
|
|
88
88
|
/**
|
|
89
|
-
* Removes a
|
|
89
|
+
* Removes a finalizer from this subscription that was previously added with the {@link #add} method.
|
|
90
90
|
*
|
|
91
91
|
* Note that `Subscription` instances, when unsubscribed, will automatically remove themselves
|
|
92
92
|
* from every other `Subscription` they have been added to. This means that using the `remove` method
|
|
93
93
|
* is not a common thing and should be used thoughtfully.
|
|
94
94
|
*
|
|
95
|
-
* If you add the same
|
|
95
|
+
* If you add the same finalizer instance of a function or an unsubscribable object to a `Subcription` instance
|
|
96
96
|
* more than once, you will need to call `remove` the same number of times to remove all instances.
|
|
97
97
|
*
|
|
98
|
-
* All
|
|
98
|
+
* All finalizer instances are removed to free up memory upon unsubscription.
|
|
99
99
|
*
|
|
100
|
-
* @param teardown The
|
|
100
|
+
* @param teardown The finalizer to remove from this subscription
|
|
101
101
|
*/
|
|
102
102
|
remove(teardown: Exclude<TeardownLogic, void>): void;
|
|
103
103
|
}
|
|
@@ -344,6 +344,7 @@ declare class Observable<T> implements Subscribable<T> {
|
|
|
344
344
|
*/
|
|
345
345
|
declare class Subject<T> extends Observable<T> implements SubscriptionLike {
|
|
346
346
|
closed: boolean;
|
|
347
|
+
private currentObservers;
|
|
347
348
|
/** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */
|
|
348
349
|
observers: Observer<T>[];
|
|
349
350
|
/** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */
|
|
@@ -1435,6 +1436,9 @@ declare class Fatal extends Error {
|
|
|
1435
1436
|
*/
|
|
1436
1437
|
declare class Abort extends Fatal {
|
|
1437
1438
|
}
|
|
1439
|
+
declare class AbortSilent extends Fatal {
|
|
1440
|
+
constructor();
|
|
1441
|
+
}
|
|
1438
1442
|
/**
|
|
1439
1443
|
* A bug error is an error that represents a bug and therefore should be reported.
|
|
1440
1444
|
*/
|
|
@@ -1451,6 +1455,8 @@ type error$1_Fatal = Fatal;
|
|
|
1451
1455
|
declare const error$1_Fatal: typeof Fatal;
|
|
1452
1456
|
type error$1_Abort = Abort;
|
|
1453
1457
|
declare const error$1_Abort: typeof Abort;
|
|
1458
|
+
type error$1_AbortSilent = AbortSilent;
|
|
1459
|
+
declare const error$1_AbortSilent: typeof AbortSilent;
|
|
1454
1460
|
type error$1_Bug = Bug;
|
|
1455
1461
|
declare const error$1_Bug: typeof Bug;
|
|
1456
1462
|
declare const error$1_handler: typeof handler;
|
|
@@ -1458,6 +1464,7 @@ declare namespace error$1 {
|
|
|
1458
1464
|
export {
|
|
1459
1465
|
error$1_Fatal as Fatal,
|
|
1460
1466
|
error$1_Abort as Abort,
|
|
1467
|
+
error$1_AbortSilent as AbortSilent,
|
|
1461
1468
|
error$1_Bug as Bug,
|
|
1462
1469
|
error$1_handler as handler,
|
|
1463
1470
|
};
|
|
@@ -1639,6 +1646,7 @@ Promise<ExecaReturnValue<StdoutErrorType>>;
|
|
|
1639
1646
|
|
|
1640
1647
|
interface ExecOptions {
|
|
1641
1648
|
cwd?: string;
|
|
1649
|
+
env?: any;
|
|
1642
1650
|
stdout?: Writable;
|
|
1643
1651
|
stderr?: Writable;
|
|
1644
1652
|
}
|
|
@@ -1665,7 +1673,7 @@ declare namespace system {
|
|
|
1665
1673
|
};
|
|
1666
1674
|
}
|
|
1667
1675
|
|
|
1668
|
-
declare function create(templateContent: string): (data: object) => Promise<string>;
|
|
1676
|
+
declare function create$1(templateContent: string): (data: object) => Promise<string>;
|
|
1669
1677
|
/**
|
|
1670
1678
|
* Given a directory, it traverses the files and directories recursively
|
|
1671
1679
|
* and replaces variables in directory and file names, and files' content
|
|
@@ -1677,11 +1685,10 @@ declare function create(templateContent: string): (data: object) => Promise<stri
|
|
|
1677
1685
|
*/
|
|
1678
1686
|
declare function recursiveDirectoryCopy(from: string, to: string, data: any): Promise<void>;
|
|
1679
1687
|
|
|
1680
|
-
declare const template_create: typeof create;
|
|
1681
1688
|
declare const template_recursiveDirectoryCopy: typeof recursiveDirectoryCopy;
|
|
1682
1689
|
declare namespace template {
|
|
1683
1690
|
export {
|
|
1684
|
-
|
|
1691
|
+
create$1 as create,
|
|
1685
1692
|
template_recursiveDirectoryCopy as recursiveDirectoryCopy,
|
|
1686
1693
|
};
|
|
1687
1694
|
}
|
|
@@ -3648,6 +3655,15 @@ declare const newline: () => void;
|
|
|
3648
3655
|
*/
|
|
3649
3656
|
declare const error: (content: Fatal) => void;
|
|
3650
3657
|
declare function stringifyMessage(message: Message): string;
|
|
3658
|
+
/**
|
|
3659
|
+
* Use this function when you have multiple concurrent processes that send data events
|
|
3660
|
+
* and we need to output them ensuring that they can visually differenciated by the user.
|
|
3661
|
+
*
|
|
3662
|
+
* @param index {number} The index of the process being run. This is used to determine the color.
|
|
3663
|
+
* @param prefix {string} The prefix to include in the standard output data to differenciate logs.
|
|
3664
|
+
* @param process The callback that's called with a Writable instance to send events through.
|
|
3665
|
+
*/
|
|
3666
|
+
declare function concurrent(index: number, prefix: string, callback: (stdout: Writable, stderr: Writable) => Promise<void>): Promise<void>;
|
|
3651
3667
|
|
|
3652
3668
|
declare const output$1_token: typeof token;
|
|
3653
3669
|
type output$1_Message = Message;
|
|
@@ -3662,6 +3678,7 @@ declare const output$1_warn: typeof warn;
|
|
|
3662
3678
|
declare const output$1_newline: typeof newline;
|
|
3663
3679
|
declare const output$1_error: typeof error;
|
|
3664
3680
|
declare const output$1_stringifyMessage: typeof stringifyMessage;
|
|
3681
|
+
declare const output$1_concurrent: typeof concurrent;
|
|
3665
3682
|
declare namespace output$1 {
|
|
3666
3683
|
export {
|
|
3667
3684
|
output$1_token as token,
|
|
@@ -3677,6 +3694,7 @@ declare namespace output$1 {
|
|
|
3677
3694
|
output$1_newline as newline,
|
|
3678
3695
|
output$1_error as error,
|
|
3679
3696
|
output$1_stringifyMessage as stringifyMessage,
|
|
3697
|
+
output$1_concurrent as concurrent,
|
|
3680
3698
|
};
|
|
3681
3699
|
}
|
|
3682
3700
|
|
|
@@ -3696,9 +3714,10 @@ declare function dependencyManagerUsedForCreating(env?: NodeJS.ProcessEnv): Depe
|
|
|
3696
3714
|
* Installs the dependencies in the given directory.
|
|
3697
3715
|
* @param directory {string} The directory that contains the package.json
|
|
3698
3716
|
* @param dependencyManager {DependencyManager} The dependency manager to use to install the dependencies.
|
|
3699
|
-
* @
|
|
3717
|
+
* @param stdout {Writable} Standard output stream.
|
|
3718
|
+
* @returns stderr {Writable} Standard error stream.
|
|
3700
3719
|
*/
|
|
3701
|
-
declare function install(directory: string, dependencyManager: DependencyManager, stdout?: Writable): Promise<void>;
|
|
3720
|
+
declare function install(directory: string, dependencyManager: DependencyManager, stdout?: Writable, stderr?: Writable): Promise<void>;
|
|
3702
3721
|
|
|
3703
3722
|
type dependency_DependencyManager = DependencyManager;
|
|
3704
3723
|
declare const dependency_DependencyManager: typeof DependencyManager;
|
|
@@ -3945,6 +3964,9 @@ declare namespace session {
|
|
|
3945
3964
|
};
|
|
3946
3965
|
}
|
|
3947
3966
|
|
|
3967
|
+
declare type Primitive = string | number | bigint | boolean | null | undefined;
|
|
3968
|
+
declare type Scalars = Primitive | Primitive[];
|
|
3969
|
+
|
|
3948
3970
|
declare namespace util {
|
|
3949
3971
|
type AssertEqual<T, Expected> = [T] extends [Expected] ? [Expected] extends [T] ? true : false : false;
|
|
3950
3972
|
function assertNever(_x: never): never;
|
|
@@ -3968,6 +3990,7 @@ declare const ZodIssueCode: {
|
|
|
3968
3990
|
invalid_type: "invalid_type";
|
|
3969
3991
|
custom: "custom";
|
|
3970
3992
|
invalid_union: "invalid_union";
|
|
3993
|
+
invalid_union_discriminator: "invalid_union_discriminator";
|
|
3971
3994
|
invalid_enum_value: "invalid_enum_value";
|
|
3972
3995
|
unrecognized_keys: "unrecognized_keys";
|
|
3973
3996
|
invalid_arguments: "invalid_arguments";
|
|
@@ -3997,6 +4020,10 @@ interface ZodInvalidUnionIssue extends ZodIssueBase {
|
|
|
3997
4020
|
code: typeof ZodIssueCode.invalid_union;
|
|
3998
4021
|
unionErrors: ZodError[];
|
|
3999
4022
|
}
|
|
4023
|
+
interface ZodInvalidUnionDiscriminatorIssue extends ZodIssueBase {
|
|
4024
|
+
code: typeof ZodIssueCode.invalid_union_discriminator;
|
|
4025
|
+
options: Primitive[];
|
|
4026
|
+
}
|
|
4000
4027
|
interface ZodInvalidEnumValueIssue extends ZodIssueBase {
|
|
4001
4028
|
code: typeof ZodIssueCode.invalid_enum_value;
|
|
4002
4029
|
options: (string | number)[];
|
|
@@ -4021,13 +4048,13 @@ interface ZodTooSmallIssue extends ZodIssueBase {
|
|
|
4021
4048
|
code: typeof ZodIssueCode.too_small;
|
|
4022
4049
|
minimum: number;
|
|
4023
4050
|
inclusive: boolean;
|
|
4024
|
-
type: "array" | "string" | "number";
|
|
4051
|
+
type: "array" | "string" | "number" | "set";
|
|
4025
4052
|
}
|
|
4026
4053
|
interface ZodTooBigIssue extends ZodIssueBase {
|
|
4027
4054
|
code: typeof ZodIssueCode.too_big;
|
|
4028
4055
|
maximum: number;
|
|
4029
4056
|
inclusive: boolean;
|
|
4030
|
-
type: "array" | "string" | "number";
|
|
4057
|
+
type: "array" | "string" | "number" | "set";
|
|
4031
4058
|
}
|
|
4032
4059
|
interface ZodInvalidIntersectionTypesIssue extends ZodIssueBase {
|
|
4033
4060
|
code: typeof ZodIssueCode.invalid_intersection_types;
|
|
@@ -4045,7 +4072,7 @@ interface ZodCustomIssue extends ZodIssueBase {
|
|
|
4045
4072
|
declare type DenormalizedError = {
|
|
4046
4073
|
[k: string]: DenormalizedError | string[];
|
|
4047
4074
|
};
|
|
4048
|
-
declare type ZodIssueOptionalMessage = ZodInvalidTypeIssue | ZodUnrecognizedKeysIssue | ZodInvalidUnionIssue | ZodInvalidEnumValueIssue | ZodInvalidArgumentsIssue | ZodInvalidReturnTypeIssue | ZodInvalidDateIssue | ZodInvalidStringIssue | ZodTooSmallIssue | ZodTooBigIssue | ZodInvalidIntersectionTypesIssue | ZodNotMultipleOfIssue | ZodCustomIssue;
|
|
4075
|
+
declare type ZodIssueOptionalMessage = ZodInvalidTypeIssue | ZodUnrecognizedKeysIssue | ZodInvalidUnionIssue | ZodInvalidUnionDiscriminatorIssue | ZodInvalidEnumValueIssue | ZodInvalidArgumentsIssue | ZodInvalidReturnTypeIssue | ZodInvalidDateIssue | ZodInvalidStringIssue | ZodTooSmallIssue | ZodTooBigIssue | ZodInvalidIntersectionTypesIssue | ZodNotMultipleOfIssue | ZodCustomIssue;
|
|
4049
4076
|
declare type ZodIssue = ZodIssueOptionalMessage & {
|
|
4050
4077
|
message: string;
|
|
4051
4078
|
};
|
|
@@ -4068,7 +4095,13 @@ declare class ZodError<T = any> extends Error {
|
|
|
4068
4095
|
get isEmpty(): boolean;
|
|
4069
4096
|
addIssue: (sub: ZodIssue) => void;
|
|
4070
4097
|
addIssues: (subs?: ZodIssue[]) => void;
|
|
4071
|
-
flatten
|
|
4098
|
+
flatten(mapper?: (issue: ZodIssue) => string): {
|
|
4099
|
+
formErrors: string[];
|
|
4100
|
+
fieldErrors: {
|
|
4101
|
+
[k: string]: string[];
|
|
4102
|
+
};
|
|
4103
|
+
};
|
|
4104
|
+
flatten<U>(mapper?: (issue: ZodIssue) => U): {
|
|
4072
4105
|
formErrors: U[];
|
|
4073
4106
|
fieldErrors: {
|
|
4074
4107
|
[k: string]: U[];
|
|
@@ -4123,7 +4156,7 @@ declare const ZodParsedType: {
|
|
|
4123
4156
|
set: "set";
|
|
4124
4157
|
};
|
|
4125
4158
|
declare type ZodParsedType = keyof typeof ZodParsedType;
|
|
4126
|
-
declare const getParsedType: (data: any
|
|
4159
|
+
declare const getParsedType: (data: any) => ZodParsedType;
|
|
4127
4160
|
declare const makeIssue: (params: {
|
|
4128
4161
|
data: any;
|
|
4129
4162
|
path: (string | number)[];
|
|
@@ -4139,13 +4172,15 @@ declare type ParsePathComponent = string | number;
|
|
|
4139
4172
|
declare type ParsePath = ParsePathComponent[];
|
|
4140
4173
|
declare const EMPTY_PATH: ParsePath;
|
|
4141
4174
|
interface ParseContext {
|
|
4175
|
+
readonly common: {
|
|
4176
|
+
readonly issues: ZodIssue[];
|
|
4177
|
+
readonly contextualErrorMap?: ZodErrorMap;
|
|
4178
|
+
readonly async: boolean;
|
|
4179
|
+
readonly typeCache: Map<any, ZodParsedType> | undefined;
|
|
4180
|
+
};
|
|
4142
4181
|
readonly path: ParsePath;
|
|
4143
|
-
readonly issues: ZodIssue[];
|
|
4144
4182
|
readonly schemaErrorMap?: ZodErrorMap;
|
|
4145
|
-
readonly contextualErrorMap?: ZodErrorMap;
|
|
4146
|
-
readonly async: boolean;
|
|
4147
4183
|
readonly parent: ParseContext | null;
|
|
4148
|
-
readonly typeCache: Map<any, ZodParsedType>;
|
|
4149
4184
|
readonly data: any;
|
|
4150
4185
|
readonly parsedType: ZodParsedType;
|
|
4151
4186
|
}
|
|
@@ -4229,6 +4264,14 @@ declare type ZodTypeAny = ZodType<any, any, any>;
|
|
|
4229
4264
|
declare type TypeOf<T extends ZodType<any, any, any>> = T["_output"];
|
|
4230
4265
|
declare type input<T extends ZodType<any, any, any>> = T["_input"];
|
|
4231
4266
|
declare type output<T extends ZodType<any, any, any>> = T["_output"];
|
|
4267
|
+
declare type allKeys<T> = T extends any ? keyof T : never;
|
|
4268
|
+
declare type TypeOfFlattenedError<T extends ZodType<any, any, any>, U = string> = {
|
|
4269
|
+
formErrors: U[];
|
|
4270
|
+
fieldErrors: {
|
|
4271
|
+
[P in allKeys<TypeOf<T>>]?: U[];
|
|
4272
|
+
};
|
|
4273
|
+
};
|
|
4274
|
+
declare type TypeOfFormErrors<T extends ZodType<any, any, any>> = TypeOfFlattenedError<T>;
|
|
4232
4275
|
|
|
4233
4276
|
declare type CustomErrorParams = Partial<util.Omit<ZodCustomIssue, "code">>;
|
|
4234
4277
|
interface ZodTypeDef {
|
|
@@ -4250,13 +4293,15 @@ declare type SafeParseError<Input> = {
|
|
|
4250
4293
|
error: ZodError<Input>;
|
|
4251
4294
|
};
|
|
4252
4295
|
declare type SafeParseReturnType<Input, Output> = SafeParseSuccess<Output> | SafeParseError<Input>;
|
|
4253
|
-
declare abstract class ZodType<Output, Def extends ZodTypeDef = ZodTypeDef, Input = Output> {
|
|
4296
|
+
declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> {
|
|
4254
4297
|
readonly _type: Output;
|
|
4255
4298
|
readonly _output: Output;
|
|
4256
4299
|
readonly _input: Input;
|
|
4257
4300
|
readonly _def: Def;
|
|
4258
4301
|
get description(): string | undefined;
|
|
4259
4302
|
abstract _parse(input: ParseInput): ParseReturnType<Output>;
|
|
4303
|
+
_getType(input: ParseInput): string;
|
|
4304
|
+
_getOrReturnCtx(input: ParseInput, ctx?: ParseContext | undefined): ParseContext;
|
|
4260
4305
|
_processInputParams(input: ParseInput): {
|
|
4261
4306
|
status: ParseStatus;
|
|
4262
4307
|
ctx: ParseContext;
|
|
@@ -4269,10 +4314,6 @@ declare abstract class ZodType<Output, Def extends ZodTypeDef = ZodTypeDef, Inpu
|
|
|
4269
4314
|
safeParseAsync(data: unknown, params?: Partial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;
|
|
4270
4315
|
/** Alias of safeParseAsync */
|
|
4271
4316
|
spa: (data: unknown, params?: Partial<ParseParams> | undefined) => Promise<SafeParseReturnType<Input, Output>>;
|
|
4272
|
-
/** The .is method has been removed in Zod 3. For details see https://github.com/colinhacks/zod/tree/v3. */
|
|
4273
|
-
is: never;
|
|
4274
|
-
/** The .check method has been removed in Zod 3. For details see https://github.com/colinhacks/zod/tree/v3. */
|
|
4275
|
-
check: never;
|
|
4276
4317
|
refine<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, RefinedOutput, RefinedOutput>;
|
|
4277
4318
|
refine(check: (arg: Output) => unknown | Promise<unknown>, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, Output, Input>;
|
|
4278
4319
|
refinement<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, RefinedOutput, RefinedOutput>;
|
|
@@ -4489,7 +4530,9 @@ declare namespace objectUtil {
|
|
|
4489
4530
|
type optionalKeys<T extends object> = {
|
|
4490
4531
|
[k in keyof T]: undefined extends T[k] ? k : never;
|
|
4491
4532
|
}[keyof T];
|
|
4492
|
-
type requiredKeys<T extends object> =
|
|
4533
|
+
type requiredKeys<T extends object> = {
|
|
4534
|
+
[k in keyof T]: undefined extends T[k] ? never : k;
|
|
4535
|
+
}[keyof T];
|
|
4493
4536
|
export type addQuestionMarks<T extends object> = {
|
|
4494
4537
|
[k in optionalKeys<T>]?: T[k];
|
|
4495
4538
|
} & {
|
|
@@ -4514,8 +4557,6 @@ declare type extendShape<A, B> = {
|
|
|
4514
4557
|
[k in keyof B]: B[k];
|
|
4515
4558
|
};
|
|
4516
4559
|
declare type UnknownKeysParam = "passthrough" | "strict" | "strip";
|
|
4517
|
-
declare type Primitive = string | number | bigint | boolean | null | undefined;
|
|
4518
|
-
declare type Scalars = Primitive | Primitive[];
|
|
4519
4560
|
interface ZodObjectDef<T extends ZodRawShape = ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
4520
4561
|
typeName: ZodFirstPartyTypeKind.ZodObject;
|
|
4521
4562
|
shape: () => T;
|
|
@@ -4594,15 +4635,46 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
|
|
|
4594
4635
|
static lazycreate: <T_1 extends ZodRawShape>(shape: () => T_1, params?: RawCreateParams) => ZodObject<T_1, "strip", ZodTypeAny, { [k_1 in keyof objectUtil.addQuestionMarks<{ [k in keyof T_1]: T_1[k]["_output"]; }>]: objectUtil.addQuestionMarks<{ [k in keyof T_1]: T_1[k]["_output"]; }>[k_1]; }, { [k_3 in keyof objectUtil.addQuestionMarks<{ [k_2 in keyof T_1]: T_1[k_2]["_input"]; }>]: objectUtil.addQuestionMarks<{ [k_2 in keyof T_1]: T_1[k_2]["_input"]; }>[k_3]; }>;
|
|
4595
4636
|
}
|
|
4596
4637
|
declare type AnyZodObject = ZodObject<any, any, any>;
|
|
4597
|
-
declare type ZodUnionOptions = [ZodTypeAny, ...ZodTypeAny[]]
|
|
4598
|
-
interface ZodUnionDef<T extends ZodUnionOptions = [
|
|
4638
|
+
declare type ZodUnionOptions = Readonly<[ZodTypeAny, ...ZodTypeAny[]]>;
|
|
4639
|
+
interface ZodUnionDef<T extends ZodUnionOptions = Readonly<[
|
|
4640
|
+
ZodTypeAny,
|
|
4641
|
+
ZodTypeAny,
|
|
4642
|
+
...ZodTypeAny[]
|
|
4643
|
+
]>> extends ZodTypeDef {
|
|
4599
4644
|
options: T;
|
|
4600
4645
|
typeName: ZodFirstPartyTypeKind.ZodUnion;
|
|
4601
4646
|
}
|
|
4602
4647
|
declare class ZodUnion<T extends ZodUnionOptions> extends ZodType<T[number]["_output"], ZodUnionDef<T>, T[number]["_input"]> {
|
|
4603
4648
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
4604
4649
|
get options(): T;
|
|
4605
|
-
static create: <T_1 extends [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(types: T_1, params?: RawCreateParams) => ZodUnion<T_1>;
|
|
4650
|
+
static create: <T_1 extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(types: T_1, params?: RawCreateParams) => ZodUnion<T_1>;
|
|
4651
|
+
}
|
|
4652
|
+
declare type ZodDiscriminatedUnionOption<Discriminator extends string, DiscriminatorValue extends Primitive> = ZodObject<{
|
|
4653
|
+
[key in Discriminator]: ZodLiteral<DiscriminatorValue>;
|
|
4654
|
+
} & ZodRawShape, any, any>;
|
|
4655
|
+
interface ZodDiscriminatedUnionDef<Discriminator extends string, DiscriminatorValue extends Primitive, Option extends ZodDiscriminatedUnionOption<Discriminator, DiscriminatorValue>> extends ZodTypeDef {
|
|
4656
|
+
discriminator: Discriminator;
|
|
4657
|
+
options: Map<DiscriminatorValue, Option>;
|
|
4658
|
+
typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion;
|
|
4659
|
+
}
|
|
4660
|
+
declare class ZodDiscriminatedUnion<Discriminator extends string, DiscriminatorValue extends Primitive, Option extends ZodDiscriminatedUnionOption<Discriminator, DiscriminatorValue>> extends ZodType<Option["_output"], ZodDiscriminatedUnionDef<Discriminator, DiscriminatorValue, Option>, Option["_input"]> {
|
|
4661
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
4662
|
+
get discriminator(): Discriminator;
|
|
4663
|
+
get validDiscriminatorValues(): DiscriminatorValue[];
|
|
4664
|
+
get options(): Map<DiscriminatorValue, Option>;
|
|
4665
|
+
/**
|
|
4666
|
+
* The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
|
|
4667
|
+
* However, it only allows a union of objects, all of which need to share a discriminator property. This property must
|
|
4668
|
+
* have a different value for each object in the union.
|
|
4669
|
+
* @param discriminator the name of the discriminator property
|
|
4670
|
+
* @param types an array of object schemas
|
|
4671
|
+
* @param params
|
|
4672
|
+
*/
|
|
4673
|
+
static create<Discriminator extends string, DiscriminatorValue extends Primitive, Types extends [
|
|
4674
|
+
ZodDiscriminatedUnionOption<Discriminator, DiscriminatorValue>,
|
|
4675
|
+
ZodDiscriminatedUnionOption<Discriminator, DiscriminatorValue>,
|
|
4676
|
+
...ZodDiscriminatedUnionOption<Discriminator, DiscriminatorValue>[]
|
|
4677
|
+
]>(discriminator: Discriminator, types: Types, params?: RawCreateParams): ZodDiscriminatedUnion<Discriminator, DiscriminatorValue, Types[number]>;
|
|
4606
4678
|
}
|
|
4607
4679
|
interface ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
4608
4680
|
left: T;
|
|
@@ -4614,7 +4686,7 @@ declare class ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> extend
|
|
|
4614
4686
|
static create: <T_1 extends ZodTypeAny, U_1 extends ZodTypeAny>(left: T_1, right: U_1, params?: RawCreateParams) => ZodIntersection<T_1, U_1>;
|
|
4615
4687
|
}
|
|
4616
4688
|
declare type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];
|
|
4617
|
-
declare type AssertArray<T
|
|
4689
|
+
declare type AssertArray<T> = T extends any[] ? T : never;
|
|
4618
4690
|
declare type OutputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{
|
|
4619
4691
|
[k in keyof T]: T[k] extends ZodType<any, any> ? T[k]["_output"] : never;
|
|
4620
4692
|
}>;
|
|
@@ -4640,7 +4712,8 @@ interface ZodRecordDef<Key extends KeySchema = ZodString, Value extends ZodTypeA
|
|
|
4640
4712
|
typeName: ZodFirstPartyTypeKind.ZodRecord;
|
|
4641
4713
|
}
|
|
4642
4714
|
declare type KeySchema = ZodType<string | number | symbol, any, any>;
|
|
4643
|
-
declare
|
|
4715
|
+
declare type RecordType<K extends string | number | symbol, V> = [string] extends [K] ? Record<K, V> : [number] extends [K] ? Record<K, V> : [symbol] extends [K] ? Record<K, V> : Partial<Record<K, V>>;
|
|
4716
|
+
declare class ZodRecord<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<RecordType<Key["_output"], Value["_output"]>, ZodRecordDef<Key, Value>, RecordType<Key["_input"], Value["_input"]>> {
|
|
4644
4717
|
get keySchema(): Key;
|
|
4645
4718
|
get valueSchema(): Value;
|
|
4646
4719
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
@@ -4660,9 +4733,21 @@ declare class ZodMap<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeA
|
|
|
4660
4733
|
interface ZodSetDef<Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
4661
4734
|
valueType: Value;
|
|
4662
4735
|
typeName: ZodFirstPartyTypeKind.ZodSet;
|
|
4736
|
+
minSize: {
|
|
4737
|
+
value: number;
|
|
4738
|
+
message?: string;
|
|
4739
|
+
} | null;
|
|
4740
|
+
maxSize: {
|
|
4741
|
+
value: number;
|
|
4742
|
+
message?: string;
|
|
4743
|
+
} | null;
|
|
4663
4744
|
}
|
|
4664
4745
|
declare class ZodSet<Value extends ZodTypeAny = ZodTypeAny> extends ZodType<Set<Value["_output"]>, ZodSetDef<Value>, Set<Value["_input"]>> {
|
|
4665
4746
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
4747
|
+
min(minSize: number, message?: errorUtil.ErrMessage): this;
|
|
4748
|
+
max(maxSize: number, message?: errorUtil.ErrMessage): this;
|
|
4749
|
+
size(size: number, message?: errorUtil.ErrMessage): this;
|
|
4750
|
+
nonempty(message?: errorUtil.ErrMessage): ZodSet<Value>;
|
|
4666
4751
|
static create: <Value_1 extends ZodTypeAny = ZodTypeAny>(valueType: Value_1, params?: RawCreateParams) => ZodSet<Value_1>;
|
|
4667
4752
|
}
|
|
4668
4753
|
interface ZodFunctionDef<Args extends ZodTuple<any, any> = ZodTuple<any, any>, Returns extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
@@ -4692,11 +4777,11 @@ declare class ZodLazy<T extends ZodTypeAny> extends ZodType<output<T>, ZodLazyDe
|
|
|
4692
4777
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
4693
4778
|
static create: <T_1 extends ZodTypeAny>(getter: () => T_1, params?: RawCreateParams) => ZodLazy<T_1>;
|
|
4694
4779
|
}
|
|
4695
|
-
interface ZodLiteralDef<T
|
|
4780
|
+
interface ZodLiteralDef<T = any> extends ZodTypeDef {
|
|
4696
4781
|
value: T;
|
|
4697
4782
|
typeName: ZodFirstPartyTypeKind.ZodLiteral;
|
|
4698
4783
|
}
|
|
4699
|
-
declare class ZodLiteral<T
|
|
4784
|
+
declare class ZodLiteral<T> extends ZodType<T, ZodLiteralDef<T>> {
|
|
4700
4785
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
4701
4786
|
get value(): T;
|
|
4702
4787
|
static create: <T_1 extends Primitive>(value: T_1, params?: RawCreateParams) => ZodLiteral<T_1>;
|
|
@@ -4734,6 +4819,7 @@ declare type EnumLike = {
|
|
|
4734
4819
|
};
|
|
4735
4820
|
declare class ZodNativeEnum<T extends EnumLike> extends ZodType<T[keyof T], ZodNativeEnumDef<T>> {
|
|
4736
4821
|
_parse(input: ParseInput): ParseReturnType<T[keyof T]>;
|
|
4822
|
+
get enum(): T;
|
|
4737
4823
|
static create: <T_1 extends EnumLike>(values: T_1, params?: RawCreateParams) => ZodNativeEnum<T_1>;
|
|
4738
4824
|
}
|
|
4739
4825
|
interface ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
@@ -4801,6 +4887,13 @@ declare class ZodDefault<T extends ZodTypeAny> extends ZodType<util.noUndefined<
|
|
|
4801
4887
|
removeDefault(): T;
|
|
4802
4888
|
static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodOptional<T_1>;
|
|
4803
4889
|
}
|
|
4890
|
+
interface ZodNaNDef extends ZodTypeDef {
|
|
4891
|
+
typeName: ZodFirstPartyTypeKind.ZodNaN;
|
|
4892
|
+
}
|
|
4893
|
+
declare class ZodNaN extends ZodType<number, ZodNaNDef> {
|
|
4894
|
+
_parse(input: ParseInput): ParseReturnType<any>;
|
|
4895
|
+
static create: (params?: RawCreateParams) => ZodNaN;
|
|
4896
|
+
}
|
|
4804
4897
|
declare const custom: <T>(check?: ((data: unknown) => any) | undefined, params?: Parameters<ZodTypeAny["refine"]>[1]) => ZodType<T, ZodTypeDef, T>;
|
|
4805
4898
|
|
|
4806
4899
|
declare const late: {
|
|
@@ -4809,6 +4902,7 @@ declare const late: {
|
|
|
4809
4902
|
declare enum ZodFirstPartyTypeKind {
|
|
4810
4903
|
ZodString = "ZodString",
|
|
4811
4904
|
ZodNumber = "ZodNumber",
|
|
4905
|
+
ZodNaN = "ZodNaN",
|
|
4812
4906
|
ZodBigInt = "ZodBigInt",
|
|
4813
4907
|
ZodBoolean = "ZodBoolean",
|
|
4814
4908
|
ZodDate = "ZodDate",
|
|
@@ -4821,6 +4915,7 @@ declare enum ZodFirstPartyTypeKind {
|
|
|
4821
4915
|
ZodArray = "ZodArray",
|
|
4822
4916
|
ZodObject = "ZodObject",
|
|
4823
4917
|
ZodUnion = "ZodUnion",
|
|
4918
|
+
ZodDiscriminatedUnion = "ZodDiscriminatedUnion",
|
|
4824
4919
|
ZodIntersection = "ZodIntersection",
|
|
4825
4920
|
ZodTuple = "ZodTuple",
|
|
4826
4921
|
ZodRecord = "ZodRecord",
|
|
@@ -4837,10 +4932,11 @@ declare enum ZodFirstPartyTypeKind {
|
|
|
4837
4932
|
ZodDefault = "ZodDefault",
|
|
4838
4933
|
ZodPromise = "ZodPromise"
|
|
4839
4934
|
}
|
|
4840
|
-
declare type ZodFirstPartySchemaTypes = ZodString | ZodNumber | ZodBigInt | ZodBoolean | ZodDate | ZodUndefined | ZodNull | ZodAny | ZodUnknown | ZodNever | ZodVoid | ZodArray<any, any> | ZodObject<any, any, any, any, any> | ZodUnion<any> | ZodIntersection<any, any> | ZodTuple<any, any> | ZodRecord<any, any> | ZodMap<any> | ZodSet<any> | ZodFunction<any, any> | ZodLazy<any> | ZodLiteral<any> | ZodEnum<any> | ZodEffects<any, any, any> | ZodNativeEnum<any> | ZodOptional<any> | ZodNullable<any> | ZodDefault<any> | ZodPromise<any>;
|
|
4935
|
+
declare type ZodFirstPartySchemaTypes = ZodString | ZodNumber | ZodNaN | ZodBigInt | ZodBoolean | ZodDate | ZodUndefined | ZodNull | ZodAny | ZodUnknown | ZodNever | ZodVoid | ZodArray<any, any> | ZodObject<any, any, any, any, any> | ZodUnion<any> | ZodDiscriminatedUnion<any, any, any> | ZodIntersection<any, any> | ZodTuple<any, any> | ZodRecord<any, any> | ZodMap<any> | ZodSet<any> | ZodFunction<any, any> | ZodLazy<any> | ZodLiteral<any> | ZodEnum<any> | ZodEffects<any, any, any> | ZodNativeEnum<any> | ZodOptional<any> | ZodNullable<any> | ZodDefault<any> | ZodPromise<any>;
|
|
4841
4936
|
declare const instanceOfType: <T extends new (...args: any[]) => any>(cls: T, params?: Parameters<ZodTypeAny["refine"]>[1]) => ZodType<InstanceType<T>, ZodTypeDef, InstanceType<T>>;
|
|
4842
4937
|
declare const stringType: (params?: RawCreateParams) => ZodString;
|
|
4843
4938
|
declare const numberType: (params?: RawCreateParams) => ZodNumber;
|
|
4939
|
+
declare const nanType: (params?: RawCreateParams) => ZodNaN;
|
|
4844
4940
|
declare const bigIntType: (params?: RawCreateParams) => ZodBigInt;
|
|
4845
4941
|
declare const booleanType: (params?: RawCreateParams) => ZodBoolean;
|
|
4846
4942
|
declare const dateType: (params?: RawCreateParams) => ZodDate;
|
|
@@ -4853,7 +4949,8 @@ declare const voidType: (params?: RawCreateParams) => ZodVoid;
|
|
|
4853
4949
|
declare const arrayType: <T extends ZodTypeAny>(schema: T, params?: RawCreateParams) => ZodArray<T, "many">;
|
|
4854
4950
|
declare const objectType: <T extends ZodRawShape>(shape: T, params?: RawCreateParams) => ZodObject<T, "strip", ZodTypeAny, { [k_1 in keyof objectUtil.addQuestionMarks<{ [k in keyof T]: T[k]["_output"]; }>]: objectUtil.addQuestionMarks<{ [k in keyof T]: T[k]["_output"]; }>[k_1]; }, { [k_3 in keyof objectUtil.addQuestionMarks<{ [k_2 in keyof T]: T[k_2]["_input"]; }>]: objectUtil.addQuestionMarks<{ [k_2 in keyof T]: T[k_2]["_input"]; }>[k_3]; }>;
|
|
4855
4951
|
declare const strictObjectType: <T extends ZodRawShape>(shape: T, params?: RawCreateParams) => ZodObject<T, "strict", ZodTypeAny, { [k_1 in keyof objectUtil.addQuestionMarks<{ [k in keyof T]: T[k]["_output"]; }>]: objectUtil.addQuestionMarks<{ [k in keyof T]: T[k]["_output"]; }>[k_1]; }, { [k_3 in keyof objectUtil.addQuestionMarks<{ [k_2 in keyof T]: T[k_2]["_input"]; }>]: objectUtil.addQuestionMarks<{ [k_2 in keyof T]: T[k_2]["_input"]; }>[k_3]; }>;
|
|
4856
|
-
declare const unionType: <T extends [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(types: T, params?: RawCreateParams) => ZodUnion<T>;
|
|
4952
|
+
declare const unionType: <T extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(types: T, params?: RawCreateParams) => ZodUnion<T>;
|
|
4953
|
+
declare const discriminatedUnionType: typeof ZodDiscriminatedUnion.create;
|
|
4857
4954
|
declare const intersectionType: <T extends ZodTypeAny, U extends ZodTypeAny>(left: T, right: U, params?: RawCreateParams) => ZodIntersection<T, U>;
|
|
4858
4955
|
declare const tupleType: <T extends [ZodTypeAny, ...ZodTypeAny[]] | []>(schemas: T, params?: RawCreateParams) => ZodTuple<T, null>;
|
|
4859
4956
|
declare const recordType: typeof ZodRecord.create;
|
|
@@ -4873,225 +4970,241 @@ declare const ostring: () => ZodOptional<ZodString>;
|
|
|
4873
4970
|
declare const onumber: () => ZodOptional<ZodNumber>;
|
|
4874
4971
|
declare const oboolean: () => ZodOptional<ZodBoolean>;
|
|
4875
4972
|
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
type
|
|
4882
|
-
|
|
4883
|
-
type
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
type
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
type
|
|
4890
|
-
declare const
|
|
4891
|
-
|
|
4892
|
-
declare const
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
type
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
declare const
|
|
4899
|
-
declare const
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
declare const
|
|
4903
|
-
declare const
|
|
4904
|
-
declare const
|
|
4905
|
-
type
|
|
4906
|
-
type
|
|
4907
|
-
type
|
|
4908
|
-
type
|
|
4909
|
-
type
|
|
4910
|
-
type
|
|
4911
|
-
type
|
|
4912
|
-
type
|
|
4913
|
-
type
|
|
4914
|
-
type
|
|
4915
|
-
type
|
|
4916
|
-
type
|
|
4917
|
-
|
|
4918
|
-
type
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
type
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
type
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
type
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
type
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
type
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
type
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
type
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
type
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
type
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
type
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
type
|
|
4952
|
-
|
|
4953
|
-
type
|
|
4954
|
-
|
|
4955
|
-
type
|
|
4956
|
-
declare const
|
|
4957
|
-
type
|
|
4958
|
-
|
|
4959
|
-
type
|
|
4960
|
-
type
|
|
4961
|
-
type
|
|
4962
|
-
type
|
|
4963
|
-
type
|
|
4964
|
-
type
|
|
4965
|
-
type
|
|
4966
|
-
type
|
|
4967
|
-
declare const
|
|
4968
|
-
type
|
|
4969
|
-
type
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
type
|
|
4977
|
-
type
|
|
4978
|
-
type
|
|
4979
|
-
|
|
4980
|
-
type
|
|
4981
|
-
type
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
type
|
|
4985
|
-
type
|
|
4986
|
-
|
|
4987
|
-
type
|
|
4988
|
-
type
|
|
4989
|
-
|
|
4990
|
-
type
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
type
|
|
4994
|
-
|
|
4995
|
-
type
|
|
4996
|
-
type
|
|
4997
|
-
declare const
|
|
4998
|
-
type
|
|
4999
|
-
type
|
|
5000
|
-
declare const
|
|
5001
|
-
type
|
|
5002
|
-
type
|
|
5003
|
-
|
|
5004
|
-
type
|
|
5005
|
-
|
|
5006
|
-
type
|
|
5007
|
-
type
|
|
5008
|
-
declare const
|
|
5009
|
-
type
|
|
5010
|
-
type
|
|
5011
|
-
declare const
|
|
5012
|
-
type
|
|
5013
|
-
type
|
|
5014
|
-
|
|
5015
|
-
type
|
|
5016
|
-
|
|
5017
|
-
type
|
|
5018
|
-
type
|
|
5019
|
-
|
|
5020
|
-
type
|
|
5021
|
-
type
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
type
|
|
5025
|
-
type
|
|
5026
|
-
type
|
|
5027
|
-
|
|
5028
|
-
type
|
|
5029
|
-
type
|
|
5030
|
-
type
|
|
5031
|
-
declare const
|
|
5032
|
-
type
|
|
5033
|
-
type
|
|
5034
|
-
|
|
5035
|
-
declare const
|
|
5036
|
-
|
|
5037
|
-
type
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
type
|
|
5041
|
-
type
|
|
5042
|
-
|
|
5043
|
-
type
|
|
5044
|
-
type
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
type
|
|
5049
|
-
|
|
5050
|
-
type
|
|
5051
|
-
type
|
|
5052
|
-
type
|
|
5053
|
-
type
|
|
5054
|
-
type
|
|
5055
|
-
type
|
|
5056
|
-
type
|
|
5057
|
-
type
|
|
5058
|
-
type
|
|
5059
|
-
|
|
5060
|
-
type
|
|
5061
|
-
type
|
|
5062
|
-
|
|
5063
|
-
type
|
|
5064
|
-
type
|
|
5065
|
-
type
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
4973
|
+
type mod_ZodParsedType = ZodParsedType;
|
|
4974
|
+
declare const mod_getParsedType: typeof getParsedType;
|
|
4975
|
+
declare const mod_makeIssue: typeof makeIssue;
|
|
4976
|
+
type mod_ParseParams = ParseParams;
|
|
4977
|
+
type mod_ParsePathComponent = ParsePathComponent;
|
|
4978
|
+
type mod_ParsePath = ParsePath;
|
|
4979
|
+
declare const mod_EMPTY_PATH: typeof EMPTY_PATH;
|
|
4980
|
+
type mod_ParseContext = ParseContext;
|
|
4981
|
+
type mod_ParseInput = ParseInput;
|
|
4982
|
+
declare const mod_addIssueToContext: typeof addIssueToContext;
|
|
4983
|
+
type mod_ObjectPair = ObjectPair;
|
|
4984
|
+
type mod_ParseStatus = ParseStatus;
|
|
4985
|
+
declare const mod_ParseStatus: typeof ParseStatus;
|
|
4986
|
+
type mod_ParseResult = ParseResult;
|
|
4987
|
+
declare const mod_INVALID: typeof INVALID;
|
|
4988
|
+
declare const mod_DIRTY: typeof DIRTY;
|
|
4989
|
+
declare const mod_OK: typeof OK;
|
|
4990
|
+
type mod_SyncParseReturnType<T = any> = SyncParseReturnType<T>;
|
|
4991
|
+
type mod_AsyncParseReturnType<T> = AsyncParseReturnType<T>;
|
|
4992
|
+
type mod_ParseReturnType<T> = ParseReturnType<T>;
|
|
4993
|
+
declare const mod_isAborted: typeof isAborted;
|
|
4994
|
+
declare const mod_isDirty: typeof isDirty;
|
|
4995
|
+
declare const mod_isValid: typeof isValid;
|
|
4996
|
+
declare const mod_isAsync: typeof isAsync;
|
|
4997
|
+
type mod_Primitive = Primitive;
|
|
4998
|
+
type mod_Scalars = Scalars;
|
|
4999
|
+
declare const mod_oboolean: typeof oboolean;
|
|
5000
|
+
declare const mod_onumber: typeof onumber;
|
|
5001
|
+
declare const mod_ostring: typeof ostring;
|
|
5002
|
+
type mod_RefinementCtx = RefinementCtx;
|
|
5003
|
+
type mod_ZodRawShape = ZodRawShape;
|
|
5004
|
+
type mod_ZodTypeAny = ZodTypeAny;
|
|
5005
|
+
type mod_TypeOf<T extends ZodType<any, any, any>> = TypeOf<T>;
|
|
5006
|
+
type mod_input<T extends ZodType<any, any, any>> = input<T>;
|
|
5007
|
+
type mod_output<T extends ZodType<any, any, any>> = output<T>;
|
|
5008
|
+
type mod_TypeOfFlattenedError<T extends ZodType<any, any, any>, U = string> = TypeOfFlattenedError<T, U>;
|
|
5009
|
+
type mod_TypeOfFormErrors<T extends ZodType<any, any, any>> = TypeOfFormErrors<T>;
|
|
5010
|
+
type mod_CustomErrorParams = CustomErrorParams;
|
|
5011
|
+
type mod_ZodTypeDef = ZodTypeDef;
|
|
5012
|
+
type mod_SafeParseSuccess<Output> = SafeParseSuccess<Output>;
|
|
5013
|
+
type mod_SafeParseError<Input> = SafeParseError<Input>;
|
|
5014
|
+
type mod_SafeParseReturnType<Input, Output> = SafeParseReturnType<Input, Output>;
|
|
5015
|
+
type mod_ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> = ZodType<Output, Def, Input>;
|
|
5016
|
+
declare const mod_ZodType: typeof ZodType;
|
|
5017
|
+
type mod_ZodStringDef = ZodStringDef;
|
|
5018
|
+
type mod_ZodString = ZodString;
|
|
5019
|
+
declare const mod_ZodString: typeof ZodString;
|
|
5020
|
+
type mod_ZodNumberDef = ZodNumberDef;
|
|
5021
|
+
type mod_ZodNumber = ZodNumber;
|
|
5022
|
+
declare const mod_ZodNumber: typeof ZodNumber;
|
|
5023
|
+
type mod_ZodBigIntDef = ZodBigIntDef;
|
|
5024
|
+
type mod_ZodBigInt = ZodBigInt;
|
|
5025
|
+
declare const mod_ZodBigInt: typeof ZodBigInt;
|
|
5026
|
+
type mod_ZodBooleanDef = ZodBooleanDef;
|
|
5027
|
+
type mod_ZodBoolean = ZodBoolean;
|
|
5028
|
+
declare const mod_ZodBoolean: typeof ZodBoolean;
|
|
5029
|
+
type mod_ZodDateDef = ZodDateDef;
|
|
5030
|
+
type mod_ZodDate = ZodDate;
|
|
5031
|
+
declare const mod_ZodDate: typeof ZodDate;
|
|
5032
|
+
type mod_ZodUndefinedDef = ZodUndefinedDef;
|
|
5033
|
+
type mod_ZodUndefined = ZodUndefined;
|
|
5034
|
+
declare const mod_ZodUndefined: typeof ZodUndefined;
|
|
5035
|
+
type mod_ZodNullDef = ZodNullDef;
|
|
5036
|
+
type mod_ZodNull = ZodNull;
|
|
5037
|
+
declare const mod_ZodNull: typeof ZodNull;
|
|
5038
|
+
type mod_ZodAnyDef = ZodAnyDef;
|
|
5039
|
+
type mod_ZodAny = ZodAny;
|
|
5040
|
+
declare const mod_ZodAny: typeof ZodAny;
|
|
5041
|
+
type mod_ZodUnknownDef = ZodUnknownDef;
|
|
5042
|
+
type mod_ZodUnknown = ZodUnknown;
|
|
5043
|
+
declare const mod_ZodUnknown: typeof ZodUnknown;
|
|
5044
|
+
type mod_ZodNeverDef = ZodNeverDef;
|
|
5045
|
+
type mod_ZodNever = ZodNever;
|
|
5046
|
+
declare const mod_ZodNever: typeof ZodNever;
|
|
5047
|
+
type mod_ZodVoidDef = ZodVoidDef;
|
|
5048
|
+
type mod_ZodVoid = ZodVoid;
|
|
5049
|
+
declare const mod_ZodVoid: typeof ZodVoid;
|
|
5050
|
+
type mod_ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> = ZodArrayDef<T>;
|
|
5051
|
+
type mod_ArrayCardinality = ArrayCardinality;
|
|
5052
|
+
type mod_ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinality = "many"> = ZodArray<T, Cardinality>;
|
|
5053
|
+
declare const mod_ZodArray: typeof ZodArray;
|
|
5054
|
+
type mod_ZodNonEmptyArray<T extends ZodTypeAny> = ZodNonEmptyArray<T>;
|
|
5055
|
+
declare const mod_objectUtil: typeof objectUtil;
|
|
5056
|
+
type mod_extendShape<A, B> = extendShape<A, B>;
|
|
5057
|
+
type mod_ZodObjectDef<T extends ZodRawShape = ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny> = ZodObjectDef<T, UnknownKeys, Catchall>;
|
|
5058
|
+
type mod_baseObjectOutputType<Shape extends ZodRawShape> = baseObjectOutputType<Shape>;
|
|
5059
|
+
type mod_objectOutputType<Shape extends ZodRawShape, Catchall extends ZodTypeAny> = objectOutputType<Shape, Catchall>;
|
|
5060
|
+
type mod_baseObjectInputType<Shape extends ZodRawShape> = baseObjectInputType<Shape>;
|
|
5061
|
+
type mod_objectInputType<Shape extends ZodRawShape, Catchall extends ZodTypeAny> = objectInputType<Shape, Catchall>;
|
|
5062
|
+
type mod_SomeZodObject = SomeZodObject;
|
|
5063
|
+
type mod_ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysParam = "strip", Catchall extends ZodTypeAny = ZodTypeAny, Output = objectOutputType<T, Catchall>, Input = objectInputType<T, Catchall>> = ZodObject<T, UnknownKeys, Catchall, Output, Input>;
|
|
5064
|
+
declare const mod_ZodObject: typeof ZodObject;
|
|
5065
|
+
type mod_AnyZodObject = AnyZodObject;
|
|
5066
|
+
type mod_ZodUnionDef<T extends ZodUnionOptions = Readonly<[
|
|
5067
|
+
ZodTypeAny,
|
|
5068
|
+
ZodTypeAny,
|
|
5069
|
+
...ZodTypeAny[]
|
|
5070
|
+
]>> = ZodUnionDef<T>;
|
|
5071
|
+
type mod_ZodUnion<T extends ZodUnionOptions> = ZodUnion<T>;
|
|
5072
|
+
declare const mod_ZodUnion: typeof ZodUnion;
|
|
5073
|
+
type mod_ZodDiscriminatedUnionOption<Discriminator extends string, DiscriminatorValue extends Primitive> = ZodDiscriminatedUnionOption<Discriminator, DiscriminatorValue>;
|
|
5074
|
+
type mod_ZodDiscriminatedUnionDef<Discriminator extends string, DiscriminatorValue extends Primitive, Option extends ZodDiscriminatedUnionOption<Discriminator, DiscriminatorValue>> = ZodDiscriminatedUnionDef<Discriminator, DiscriminatorValue, Option>;
|
|
5075
|
+
type mod_ZodDiscriminatedUnion<Discriminator extends string, DiscriminatorValue extends Primitive, Option extends ZodDiscriminatedUnionOption<Discriminator, DiscriminatorValue>> = ZodDiscriminatedUnion<Discriminator, DiscriminatorValue, Option>;
|
|
5076
|
+
declare const mod_ZodDiscriminatedUnion: typeof ZodDiscriminatedUnion;
|
|
5077
|
+
type mod_ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTypeAny = ZodTypeAny> = ZodIntersectionDef<T, U>;
|
|
5078
|
+
type mod_ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> = ZodIntersection<T, U>;
|
|
5079
|
+
declare const mod_ZodIntersection: typeof ZodIntersection;
|
|
5080
|
+
type mod_ZodTupleItems = ZodTupleItems;
|
|
5081
|
+
type mod_AssertArray<T> = AssertArray<T>;
|
|
5082
|
+
type mod_OutputTypeOfTuple<T extends ZodTupleItems | []> = OutputTypeOfTuple<T>;
|
|
5083
|
+
type mod_OutputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = OutputTypeOfTupleWithRest<T, Rest>;
|
|
5084
|
+
type mod_InputTypeOfTuple<T extends ZodTupleItems | []> = InputTypeOfTuple<T>;
|
|
5085
|
+
type mod_InputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = InputTypeOfTupleWithRest<T, Rest>;
|
|
5086
|
+
type mod_ZodTupleDef<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> = ZodTupleDef<T, Rest>;
|
|
5087
|
+
type mod_ZodTuple<T extends [ZodTypeAny, ...ZodTypeAny[]] | [] = [ZodTypeAny, ...ZodTypeAny[]], Rest extends ZodTypeAny | null = null> = ZodTuple<T, Rest>;
|
|
5088
|
+
declare const mod_ZodTuple: typeof ZodTuple;
|
|
5089
|
+
type mod_ZodRecordDef<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> = ZodRecordDef<Key, Value>;
|
|
5090
|
+
type mod_ZodRecord<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> = ZodRecord<Key, Value>;
|
|
5091
|
+
declare const mod_ZodRecord: typeof ZodRecord;
|
|
5092
|
+
type mod_ZodMapDef<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> = ZodMapDef<Key, Value>;
|
|
5093
|
+
type mod_ZodMap<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> = ZodMap<Key, Value>;
|
|
5094
|
+
declare const mod_ZodMap: typeof ZodMap;
|
|
5095
|
+
type mod_ZodSetDef<Value extends ZodTypeAny = ZodTypeAny> = ZodSetDef<Value>;
|
|
5096
|
+
type mod_ZodSet<Value extends ZodTypeAny = ZodTypeAny> = ZodSet<Value>;
|
|
5097
|
+
declare const mod_ZodSet: typeof ZodSet;
|
|
5098
|
+
type mod_ZodFunctionDef<Args extends ZodTuple<any, any> = ZodTuple<any, any>, Returns extends ZodTypeAny = ZodTypeAny> = ZodFunctionDef<Args, Returns>;
|
|
5099
|
+
type mod_OuterTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = OuterTypeOfFunction<Args, Returns>;
|
|
5100
|
+
type mod_InnerTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = InnerTypeOfFunction<Args, Returns>;
|
|
5101
|
+
type mod_ZodFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = ZodFunction<Args, Returns>;
|
|
5102
|
+
declare const mod_ZodFunction: typeof ZodFunction;
|
|
5103
|
+
type mod_ZodLazyDef<T extends ZodTypeAny = ZodTypeAny> = ZodLazyDef<T>;
|
|
5104
|
+
type mod_ZodLazy<T extends ZodTypeAny> = ZodLazy<T>;
|
|
5105
|
+
declare const mod_ZodLazy: typeof ZodLazy;
|
|
5106
|
+
type mod_ZodLiteralDef<T = any> = ZodLiteralDef<T>;
|
|
5107
|
+
type mod_ZodLiteral<T> = ZodLiteral<T>;
|
|
5108
|
+
declare const mod_ZodLiteral: typeof ZodLiteral;
|
|
5109
|
+
type mod_ArrayKeys = ArrayKeys;
|
|
5110
|
+
type mod_Indices<T> = Indices<T>;
|
|
5111
|
+
type mod_ZodEnumDef<T extends EnumValues = EnumValues> = ZodEnumDef<T>;
|
|
5112
|
+
type mod_ZodEnum<T extends [string, ...string[]]> = ZodEnum<T>;
|
|
5113
|
+
declare const mod_ZodEnum: typeof ZodEnum;
|
|
5114
|
+
type mod_ZodNativeEnumDef<T extends EnumLike = EnumLike> = ZodNativeEnumDef<T>;
|
|
5115
|
+
type mod_ZodNativeEnum<T extends EnumLike> = ZodNativeEnum<T>;
|
|
5116
|
+
declare const mod_ZodNativeEnum: typeof ZodNativeEnum;
|
|
5117
|
+
type mod_ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> = ZodPromiseDef<T>;
|
|
5118
|
+
type mod_ZodPromise<T extends ZodTypeAny> = ZodPromise<T>;
|
|
5119
|
+
declare const mod_ZodPromise: typeof ZodPromise;
|
|
5120
|
+
type mod_Refinement<T> = Refinement<T>;
|
|
5121
|
+
type mod_SuperRefinement<T> = SuperRefinement<T>;
|
|
5122
|
+
type mod_RefinementEffect<T> = RefinementEffect<T>;
|
|
5123
|
+
type mod_TransformEffect<T> = TransformEffect<T>;
|
|
5124
|
+
type mod_PreprocessEffect<T> = PreprocessEffect<T>;
|
|
5125
|
+
type mod_Effect<T> = Effect<T>;
|
|
5126
|
+
type mod_ZodEffectsDef<T extends ZodTypeAny = ZodTypeAny> = ZodEffectsDef<T>;
|
|
5127
|
+
type mod_ZodEffects<T extends ZodTypeAny, Output = T["_output"], Input = T["_input"]> = ZodEffects<T, Output, Input>;
|
|
5128
|
+
declare const mod_ZodEffects: typeof ZodEffects;
|
|
5129
|
+
type mod_ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> = ZodOptionalDef<T>;
|
|
5130
|
+
type mod_ZodOptionalType<T extends ZodTypeAny> = ZodOptionalType<T>;
|
|
5131
|
+
type mod_ZodOptional<T extends ZodTypeAny> = ZodOptional<T>;
|
|
5132
|
+
declare const mod_ZodOptional: typeof ZodOptional;
|
|
5133
|
+
type mod_ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> = ZodNullableDef<T>;
|
|
5134
|
+
type mod_ZodNullableType<T extends ZodTypeAny> = ZodNullableType<T>;
|
|
5135
|
+
type mod_ZodNullable<T extends ZodTypeAny> = ZodNullable<T>;
|
|
5136
|
+
declare const mod_ZodNullable: typeof ZodNullable;
|
|
5137
|
+
type mod_ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> = ZodDefaultDef<T>;
|
|
5138
|
+
type mod_ZodDefault<T extends ZodTypeAny> = ZodDefault<T>;
|
|
5139
|
+
declare const mod_ZodDefault: typeof ZodDefault;
|
|
5140
|
+
type mod_ZodNaNDef = ZodNaNDef;
|
|
5141
|
+
type mod_ZodNaN = ZodNaN;
|
|
5142
|
+
declare const mod_ZodNaN: typeof ZodNaN;
|
|
5143
|
+
declare const mod_custom: typeof custom;
|
|
5144
|
+
declare const mod_late: typeof late;
|
|
5145
|
+
type mod_ZodFirstPartyTypeKind = ZodFirstPartyTypeKind;
|
|
5146
|
+
declare const mod_ZodFirstPartyTypeKind: typeof ZodFirstPartyTypeKind;
|
|
5147
|
+
type mod_ZodFirstPartySchemaTypes = ZodFirstPartySchemaTypes;
|
|
5148
|
+
type mod_ZodIssueCode = ZodIssueCode;
|
|
5149
|
+
type mod_ZodIssueBase = ZodIssueBase;
|
|
5150
|
+
type mod_ZodInvalidTypeIssue = ZodInvalidTypeIssue;
|
|
5151
|
+
type mod_ZodUnrecognizedKeysIssue = ZodUnrecognizedKeysIssue;
|
|
5152
|
+
type mod_ZodInvalidUnionIssue = ZodInvalidUnionIssue;
|
|
5153
|
+
type mod_ZodInvalidUnionDiscriminatorIssue = ZodInvalidUnionDiscriminatorIssue;
|
|
5154
|
+
type mod_ZodInvalidEnumValueIssue = ZodInvalidEnumValueIssue;
|
|
5155
|
+
type mod_ZodInvalidArgumentsIssue = ZodInvalidArgumentsIssue;
|
|
5156
|
+
type mod_ZodInvalidReturnTypeIssue = ZodInvalidReturnTypeIssue;
|
|
5157
|
+
type mod_ZodInvalidDateIssue = ZodInvalidDateIssue;
|
|
5158
|
+
type mod_StringValidation = StringValidation;
|
|
5159
|
+
type mod_ZodInvalidStringIssue = ZodInvalidStringIssue;
|
|
5160
|
+
type mod_ZodTooSmallIssue = ZodTooSmallIssue;
|
|
5161
|
+
type mod_ZodTooBigIssue = ZodTooBigIssue;
|
|
5162
|
+
type mod_ZodInvalidIntersectionTypesIssue = ZodInvalidIntersectionTypesIssue;
|
|
5163
|
+
type mod_ZodNotMultipleOfIssue = ZodNotMultipleOfIssue;
|
|
5164
|
+
type mod_ZodCustomIssue = ZodCustomIssue;
|
|
5165
|
+
type mod_DenormalizedError = DenormalizedError;
|
|
5166
|
+
type mod_ZodIssueOptionalMessage = ZodIssueOptionalMessage;
|
|
5167
|
+
type mod_ZodIssue = ZodIssue;
|
|
5168
|
+
declare const mod_quotelessJson: typeof quotelessJson;
|
|
5169
|
+
type mod_ZodFormattedError<T> = ZodFormattedError<T>;
|
|
5170
|
+
type mod_ZodError<T = any> = ZodError<T>;
|
|
5171
|
+
declare const mod_ZodError: typeof ZodError;
|
|
5172
|
+
type mod_IssueData = IssueData;
|
|
5173
|
+
type mod_MakeErrorData = MakeErrorData;
|
|
5174
|
+
type mod_ZodErrorMap = ZodErrorMap;
|
|
5175
|
+
declare const mod_defaultErrorMap: typeof defaultErrorMap;
|
|
5176
|
+
declare const mod_overrideErrorMap: typeof overrideErrorMap;
|
|
5177
|
+
declare const mod_setErrorMap: typeof setErrorMap;
|
|
5178
|
+
declare namespace mod {
|
|
5070
5179
|
export {
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5180
|
+
mod_ZodParsedType as ZodParsedType,
|
|
5181
|
+
mod_getParsedType as getParsedType,
|
|
5182
|
+
mod_makeIssue as makeIssue,
|
|
5183
|
+
mod_ParseParams as ParseParams,
|
|
5184
|
+
mod_ParsePathComponent as ParsePathComponent,
|
|
5185
|
+
mod_ParsePath as ParsePath,
|
|
5186
|
+
mod_EMPTY_PATH as EMPTY_PATH,
|
|
5187
|
+
mod_ParseContext as ParseContext,
|
|
5188
|
+
mod_ParseInput as ParseInput,
|
|
5189
|
+
mod_addIssueToContext as addIssueToContext,
|
|
5190
|
+
mod_ObjectPair as ObjectPair,
|
|
5191
|
+
mod_ParseStatus as ParseStatus,
|
|
5192
|
+
mod_ParseResult as ParseResult,
|
|
5193
|
+
mod_INVALID as INVALID,
|
|
5194
|
+
mod_DIRTY as DIRTY,
|
|
5195
|
+
mod_OK as OK,
|
|
5196
|
+
mod_SyncParseReturnType as SyncParseReturnType,
|
|
5197
|
+
mod_AsyncParseReturnType as AsyncParseReturnType,
|
|
5198
|
+
mod_ParseReturnType as ParseReturnType,
|
|
5199
|
+
mod_isAborted as isAborted,
|
|
5200
|
+
mod_isDirty as isDirty,
|
|
5201
|
+
mod_isValid as isValid,
|
|
5202
|
+
mod_isAsync as isAsync,
|
|
5203
|
+
mod_Primitive as Primitive,
|
|
5204
|
+
mod_Scalars as Scalars,
|
|
5094
5205
|
TypeOf as infer,
|
|
5206
|
+
TypeOfFlattenedError as inferFlattenedErrors,
|
|
5207
|
+
TypeOfFormErrors as inferFormErrors,
|
|
5095
5208
|
ZodEffects as ZodTransformer,
|
|
5096
5209
|
ZodType as Schema,
|
|
5097
5210
|
ZodType as ZodSchema,
|
|
@@ -5100,6 +5213,7 @@ declare namespace external_d {
|
|
|
5100
5213
|
bigIntType as bigint,
|
|
5101
5214
|
booleanType as boolean,
|
|
5102
5215
|
dateType as date,
|
|
5216
|
+
discriminatedUnionType as discriminatedUnion,
|
|
5103
5217
|
effectsType as effect,
|
|
5104
5218
|
enumType as enum,
|
|
5105
5219
|
functionType as function,
|
|
@@ -5108,16 +5222,17 @@ declare namespace external_d {
|
|
|
5108
5222
|
lazyType as lazy,
|
|
5109
5223
|
literalType as literal,
|
|
5110
5224
|
mapType as map,
|
|
5225
|
+
nanType as nan,
|
|
5111
5226
|
nativeEnumType as nativeEnum,
|
|
5112
5227
|
neverType as never,
|
|
5113
5228
|
nullType as null,
|
|
5114
5229
|
nullableType as nullable,
|
|
5115
5230
|
numberType as number,
|
|
5116
5231
|
objectType as object,
|
|
5117
|
-
|
|
5118
|
-
|
|
5232
|
+
mod_oboolean as oboolean,
|
|
5233
|
+
mod_onumber as onumber,
|
|
5119
5234
|
optionalType as optional,
|
|
5120
|
-
|
|
5235
|
+
mod_ostring as ostring,
|
|
5121
5236
|
preprocessType as preprocess,
|
|
5122
5237
|
promiseType as promise,
|
|
5123
5238
|
recordType as record,
|
|
@@ -5130,144 +5245,150 @@ declare namespace external_d {
|
|
|
5130
5245
|
unionType as union,
|
|
5131
5246
|
unknownType as unknown,
|
|
5132
5247
|
voidType as void,
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5248
|
+
mod_RefinementCtx as RefinementCtx,
|
|
5249
|
+
mod_ZodRawShape as ZodRawShape,
|
|
5250
|
+
mod_ZodTypeAny as ZodTypeAny,
|
|
5251
|
+
mod_TypeOf as TypeOf,
|
|
5252
|
+
mod_input as input,
|
|
5253
|
+
mod_output as output,
|
|
5254
|
+
mod_TypeOfFlattenedError as TypeOfFlattenedError,
|
|
5255
|
+
mod_TypeOfFormErrors as TypeOfFormErrors,
|
|
5256
|
+
mod_CustomErrorParams as CustomErrorParams,
|
|
5257
|
+
mod_ZodTypeDef as ZodTypeDef,
|
|
5258
|
+
mod_SafeParseSuccess as SafeParseSuccess,
|
|
5259
|
+
mod_SafeParseError as SafeParseError,
|
|
5260
|
+
mod_SafeParseReturnType as SafeParseReturnType,
|
|
5261
|
+
mod_ZodType as ZodType,
|
|
5262
|
+
mod_ZodStringDef as ZodStringDef,
|
|
5263
|
+
mod_ZodString as ZodString,
|
|
5264
|
+
mod_ZodNumberDef as ZodNumberDef,
|
|
5265
|
+
mod_ZodNumber as ZodNumber,
|
|
5266
|
+
mod_ZodBigIntDef as ZodBigIntDef,
|
|
5267
|
+
mod_ZodBigInt as ZodBigInt,
|
|
5268
|
+
mod_ZodBooleanDef as ZodBooleanDef,
|
|
5269
|
+
mod_ZodBoolean as ZodBoolean,
|
|
5270
|
+
mod_ZodDateDef as ZodDateDef,
|
|
5271
|
+
mod_ZodDate as ZodDate,
|
|
5272
|
+
mod_ZodUndefinedDef as ZodUndefinedDef,
|
|
5273
|
+
mod_ZodUndefined as ZodUndefined,
|
|
5274
|
+
mod_ZodNullDef as ZodNullDef,
|
|
5275
|
+
mod_ZodNull as ZodNull,
|
|
5276
|
+
mod_ZodAnyDef as ZodAnyDef,
|
|
5277
|
+
mod_ZodAny as ZodAny,
|
|
5278
|
+
mod_ZodUnknownDef as ZodUnknownDef,
|
|
5279
|
+
mod_ZodUnknown as ZodUnknown,
|
|
5280
|
+
mod_ZodNeverDef as ZodNeverDef,
|
|
5281
|
+
mod_ZodNever as ZodNever,
|
|
5282
|
+
mod_ZodVoidDef as ZodVoidDef,
|
|
5283
|
+
mod_ZodVoid as ZodVoid,
|
|
5284
|
+
mod_ZodArrayDef as ZodArrayDef,
|
|
5285
|
+
mod_ArrayCardinality as ArrayCardinality,
|
|
5286
|
+
mod_ZodArray as ZodArray,
|
|
5287
|
+
mod_ZodNonEmptyArray as ZodNonEmptyArray,
|
|
5288
|
+
mod_objectUtil as objectUtil,
|
|
5289
|
+
mod_extendShape as extendShape,
|
|
5290
|
+
mod_ZodObjectDef as ZodObjectDef,
|
|
5291
|
+
mod_baseObjectOutputType as baseObjectOutputType,
|
|
5292
|
+
mod_objectOutputType as objectOutputType,
|
|
5293
|
+
mod_baseObjectInputType as baseObjectInputType,
|
|
5294
|
+
mod_objectInputType as objectInputType,
|
|
5295
|
+
mod_SomeZodObject as SomeZodObject,
|
|
5296
|
+
mod_ZodObject as ZodObject,
|
|
5297
|
+
mod_AnyZodObject as AnyZodObject,
|
|
5298
|
+
mod_ZodUnionDef as ZodUnionDef,
|
|
5299
|
+
mod_ZodUnion as ZodUnion,
|
|
5300
|
+
mod_ZodDiscriminatedUnionOption as ZodDiscriminatedUnionOption,
|
|
5301
|
+
mod_ZodDiscriminatedUnionDef as ZodDiscriminatedUnionDef,
|
|
5302
|
+
mod_ZodDiscriminatedUnion as ZodDiscriminatedUnion,
|
|
5303
|
+
mod_ZodIntersectionDef as ZodIntersectionDef,
|
|
5304
|
+
mod_ZodIntersection as ZodIntersection,
|
|
5305
|
+
mod_ZodTupleItems as ZodTupleItems,
|
|
5306
|
+
mod_AssertArray as AssertArray,
|
|
5307
|
+
mod_OutputTypeOfTuple as OutputTypeOfTuple,
|
|
5308
|
+
mod_OutputTypeOfTupleWithRest as OutputTypeOfTupleWithRest,
|
|
5309
|
+
mod_InputTypeOfTuple as InputTypeOfTuple,
|
|
5310
|
+
mod_InputTypeOfTupleWithRest as InputTypeOfTupleWithRest,
|
|
5311
|
+
mod_ZodTupleDef as ZodTupleDef,
|
|
5312
|
+
mod_ZodTuple as ZodTuple,
|
|
5313
|
+
mod_ZodRecordDef as ZodRecordDef,
|
|
5314
|
+
mod_ZodRecord as ZodRecord,
|
|
5315
|
+
mod_ZodMapDef as ZodMapDef,
|
|
5316
|
+
mod_ZodMap as ZodMap,
|
|
5317
|
+
mod_ZodSetDef as ZodSetDef,
|
|
5318
|
+
mod_ZodSet as ZodSet,
|
|
5319
|
+
mod_ZodFunctionDef as ZodFunctionDef,
|
|
5320
|
+
mod_OuterTypeOfFunction as OuterTypeOfFunction,
|
|
5321
|
+
mod_InnerTypeOfFunction as InnerTypeOfFunction,
|
|
5322
|
+
mod_ZodFunction as ZodFunction,
|
|
5323
|
+
mod_ZodLazyDef as ZodLazyDef,
|
|
5324
|
+
mod_ZodLazy as ZodLazy,
|
|
5325
|
+
mod_ZodLiteralDef as ZodLiteralDef,
|
|
5326
|
+
mod_ZodLiteral as ZodLiteral,
|
|
5327
|
+
mod_ArrayKeys as ArrayKeys,
|
|
5328
|
+
mod_Indices as Indices,
|
|
5329
|
+
mod_ZodEnumDef as ZodEnumDef,
|
|
5330
|
+
mod_ZodEnum as ZodEnum,
|
|
5331
|
+
mod_ZodNativeEnumDef as ZodNativeEnumDef,
|
|
5332
|
+
mod_ZodNativeEnum as ZodNativeEnum,
|
|
5333
|
+
mod_ZodPromiseDef as ZodPromiseDef,
|
|
5334
|
+
mod_ZodPromise as ZodPromise,
|
|
5335
|
+
mod_Refinement as Refinement,
|
|
5336
|
+
mod_SuperRefinement as SuperRefinement,
|
|
5337
|
+
mod_RefinementEffect as RefinementEffect,
|
|
5338
|
+
mod_TransformEffect as TransformEffect,
|
|
5339
|
+
mod_PreprocessEffect as PreprocessEffect,
|
|
5340
|
+
mod_Effect as Effect,
|
|
5341
|
+
mod_ZodEffectsDef as ZodEffectsDef,
|
|
5342
|
+
mod_ZodEffects as ZodEffects,
|
|
5343
|
+
mod_ZodOptionalDef as ZodOptionalDef,
|
|
5344
|
+
mod_ZodOptionalType as ZodOptionalType,
|
|
5345
|
+
mod_ZodOptional as ZodOptional,
|
|
5346
|
+
mod_ZodNullableDef as ZodNullableDef,
|
|
5347
|
+
mod_ZodNullableType as ZodNullableType,
|
|
5348
|
+
mod_ZodNullable as ZodNullable,
|
|
5349
|
+
mod_ZodDefaultDef as ZodDefaultDef,
|
|
5350
|
+
mod_ZodDefault as ZodDefault,
|
|
5351
|
+
mod_ZodNaNDef as ZodNaNDef,
|
|
5352
|
+
mod_ZodNaN as ZodNaN,
|
|
5353
|
+
mod_custom as custom,
|
|
5354
|
+
mod_late as late,
|
|
5355
|
+
mod_ZodFirstPartyTypeKind as ZodFirstPartyTypeKind,
|
|
5356
|
+
mod_ZodFirstPartySchemaTypes as ZodFirstPartySchemaTypes,
|
|
5357
|
+
mod_ZodIssueCode as ZodIssueCode,
|
|
5358
|
+
mod_ZodIssueBase as ZodIssueBase,
|
|
5359
|
+
mod_ZodInvalidTypeIssue as ZodInvalidTypeIssue,
|
|
5360
|
+
mod_ZodUnrecognizedKeysIssue as ZodUnrecognizedKeysIssue,
|
|
5361
|
+
mod_ZodInvalidUnionIssue as ZodInvalidUnionIssue,
|
|
5362
|
+
mod_ZodInvalidUnionDiscriminatorIssue as ZodInvalidUnionDiscriminatorIssue,
|
|
5363
|
+
mod_ZodInvalidEnumValueIssue as ZodInvalidEnumValueIssue,
|
|
5364
|
+
mod_ZodInvalidArgumentsIssue as ZodInvalidArgumentsIssue,
|
|
5365
|
+
mod_ZodInvalidReturnTypeIssue as ZodInvalidReturnTypeIssue,
|
|
5366
|
+
mod_ZodInvalidDateIssue as ZodInvalidDateIssue,
|
|
5367
|
+
mod_StringValidation as StringValidation,
|
|
5368
|
+
mod_ZodInvalidStringIssue as ZodInvalidStringIssue,
|
|
5369
|
+
mod_ZodTooSmallIssue as ZodTooSmallIssue,
|
|
5370
|
+
mod_ZodTooBigIssue as ZodTooBigIssue,
|
|
5371
|
+
mod_ZodInvalidIntersectionTypesIssue as ZodInvalidIntersectionTypesIssue,
|
|
5372
|
+
mod_ZodNotMultipleOfIssue as ZodNotMultipleOfIssue,
|
|
5373
|
+
mod_ZodCustomIssue as ZodCustomIssue,
|
|
5374
|
+
mod_DenormalizedError as DenormalizedError,
|
|
5375
|
+
mod_ZodIssueOptionalMessage as ZodIssueOptionalMessage,
|
|
5376
|
+
mod_ZodIssue as ZodIssue,
|
|
5377
|
+
mod_quotelessJson as quotelessJson,
|
|
5378
|
+
mod_ZodFormattedError as ZodFormattedError,
|
|
5379
|
+
mod_ZodError as ZodError,
|
|
5380
|
+
mod_IssueData as IssueData,
|
|
5381
|
+
mod_MakeErrorData as MakeErrorData,
|
|
5382
|
+
mod_ZodErrorMap as ZodErrorMap,
|
|
5383
|
+
mod_defaultErrorMap as defaultErrorMap,
|
|
5384
|
+
mod_overrideErrorMap as overrideErrorMap,
|
|
5385
|
+
mod_setErrorMap as setErrorMap,
|
|
5265
5386
|
};
|
|
5266
5387
|
}
|
|
5267
5388
|
|
|
5268
5389
|
declare namespace schema {
|
|
5269
5390
|
export {
|
|
5270
|
-
|
|
5391
|
+
mod as define,
|
|
5271
5392
|
};
|
|
5272
5393
|
}
|
|
5273
5394
|
|
|
@@ -5283,6 +5404,19 @@ declare namespace toml {
|
|
|
5283
5404
|
};
|
|
5284
5405
|
}
|
|
5285
5406
|
|
|
5407
|
+
interface CreateOptions {
|
|
5408
|
+
port: number;
|
|
5409
|
+
authToken: string;
|
|
5410
|
+
}
|
|
5411
|
+
declare function create(options: CreateOptions): Promise<string>;
|
|
5412
|
+
|
|
5413
|
+
declare const tunnel_create: typeof create;
|
|
5414
|
+
declare namespace tunnel {
|
|
5415
|
+
export {
|
|
5416
|
+
tunnel_create as create,
|
|
5417
|
+
};
|
|
5418
|
+
}
|
|
5419
|
+
|
|
5286
5420
|
/**
|
|
5287
5421
|
* JSON Schema
|
|
5288
5422
|
*
|
|
@@ -6178,7 +6312,7 @@ declare enum JSONSchemaContentEncoding {
|
|
|
6178
6312
|
XToken = 'x-token'
|
|
6179
6313
|
}
|
|
6180
6314
|
|
|
6181
|
-
interface Options<T
|
|
6315
|
+
interface Options<T extends Record<string, any>> {
|
|
6182
6316
|
/**
|
|
6183
6317
|
Config used if there are no existing config.
|
|
6184
6318
|
|
|
@@ -6384,7 +6518,7 @@ interface Options<T> {
|
|
|
6384
6518
|
*/
|
|
6385
6519
|
readonly configFileMode?: number;
|
|
6386
6520
|
}
|
|
6387
|
-
declare type Migrations<T
|
|
6521
|
+
declare type Migrations<T extends Record<string, any>> = Record<string, (store: Conf<T>) => void>;
|
|
6388
6522
|
declare type Schema<T> = {
|
|
6389
6523
|
[Property in keyof T]: ValueSchema;
|
|
6390
6524
|
};
|
|
@@ -6595,6 +6729,21 @@ interface CreateAppQuerySchema {
|
|
|
6595
6729
|
};
|
|
6596
6730
|
}
|
|
6597
6731
|
|
|
6732
|
+
declare const UpdateURLsQuery: string;
|
|
6733
|
+
interface UpdateURLsQueryVariables {
|
|
6734
|
+
apiKey: string;
|
|
6735
|
+
appUrl: string;
|
|
6736
|
+
redir: string[];
|
|
6737
|
+
}
|
|
6738
|
+
interface UpdateURLsQuerySchema {
|
|
6739
|
+
appUpdate: {
|
|
6740
|
+
userErrors: {
|
|
6741
|
+
field: string[];
|
|
6742
|
+
message: string;
|
|
6743
|
+
}[];
|
|
6744
|
+
};
|
|
6745
|
+
}
|
|
6746
|
+
|
|
6598
6747
|
declare const index_FindOrganizationQuery: typeof FindOrganizationQuery;
|
|
6599
6748
|
type index_FindOrganizationQuerySchema = FindOrganizationQuerySchema;
|
|
6600
6749
|
type index_AllOrganizationsQuerySchema = AllOrganizationsQuerySchema;
|
|
@@ -6602,6 +6751,9 @@ declare const index_AllOrganizationsQuery: typeof AllOrganizationsQuery;
|
|
|
6602
6751
|
declare const index_CreateAppQuery: typeof CreateAppQuery;
|
|
6603
6752
|
type index_CreateAppQueryVariables = CreateAppQueryVariables;
|
|
6604
6753
|
type index_CreateAppQuerySchema = CreateAppQuerySchema;
|
|
6754
|
+
declare const index_UpdateURLsQuery: typeof UpdateURLsQuery;
|
|
6755
|
+
type index_UpdateURLsQueryVariables = UpdateURLsQueryVariables;
|
|
6756
|
+
type index_UpdateURLsQuerySchema = UpdateURLsQuerySchema;
|
|
6605
6757
|
declare namespace index {
|
|
6606
6758
|
export {
|
|
6607
6759
|
index_FindOrganizationQuery as FindOrganizationQuery,
|
|
@@ -6611,6 +6763,9 @@ declare namespace index {
|
|
|
6611
6763
|
index_CreateAppQuery as CreateAppQuery,
|
|
6612
6764
|
index_CreateAppQueryVariables as CreateAppQueryVariables,
|
|
6613
6765
|
index_CreateAppQuerySchema as CreateAppQuerySchema,
|
|
6766
|
+
index_UpdateURLsQuery as UpdateURLsQuery,
|
|
6767
|
+
index_UpdateURLsQueryVariables as UpdateURLsQueryVariables,
|
|
6768
|
+
index_UpdateURLsQuerySchema as UpdateURLsQuerySchema,
|
|
6614
6769
|
};
|
|
6615
6770
|
}
|
|
6616
6771
|
|
|
@@ -6897,5 +7052,5 @@ declare const constants: {
|
|
|
6897
7052
|
};
|
|
6898
7053
|
};
|
|
6899
7054
|
|
|
6900
|
-
export { api, checksum, constants, dependency, environment, error$1 as error, file, git, http, os, output$1 as output, path, schema, session, store, string, system, template, toml, ui, version };
|
|
7055
|
+
export { api, checksum, constants, dependency, environment, error$1 as error, file, git, http, os, output$1 as output, path, schema, session, store, string, system, template, toml, tunnel, ui, version };
|
|
6901
7056
|
//# sourceMappingURL=index.d.ts.map
|