likec4 1.59.4 → 1.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/__app__/codegen/react.mjs +4 -10
- package/__app__/codegen/webcomponent.mjs +6 -131
- package/__app__/index.html +15 -15
- package/__app__/src/aichat/index.mjs +11 -7
- package/__app__/src/chunks/AIChat.mjs +1355 -739
- package/__app__/src/chunks/ErrorComponent.mjs +444 -0
- package/__app__/src/chunks/Header.mjs +269 -0
- package/__app__/src/chunks/ViewReact.mjs +438 -0
- package/__app__/src/chunks/find.mjs +38 -0
- package/__app__/src/chunks/hooks.mjs +158 -472
- package/__app__/src/chunks/libs/@tabler/icons-react.mjs +340 -0
- package/__app__/src/chunks/libs/@tanstack-ai.mjs +11841 -1417
- package/__app__/src/chunks/libs/@tanstack.mjs +5110 -2404
- package/__app__/src/chunks/libs/fast-equals.mjs +507 -214
- package/__app__/src/chunks/libs/html-to-image.mjs +613 -0
- package/__app__/src/chunks/libs/nanostores.mjs +170 -0
- package/__app__/src/chunks/libs/react-resizable-panels.mjs +2792 -0
- package/__app__/src/chunks/react.mjs +22 -0
- package/__app__/src/chunks/rolldown-runtime.mjs +16 -29
- package/__app__/src/chunks/router.mjs +106 -0
- package/__app__/src/chunks/scope.mjs +106 -0
- package/__app__/src/chunks/searchParams.mjs +29 -0
- package/__app__/src/chunks/single-index.mjs +465 -0
- package/__app__/src/chunks/styled-system.mjs +1826 -2528
- package/__app__/src/chunks/useAsync.mjs +69 -0
- package/__app__/src/chunks/useSyncedRef.mjs +16 -0
- package/__app__/src/components/ColorSchemeToggle.mjs +124 -0
- package/__app__/src/components/CopyToClipboard.mjs +53 -0
- package/__app__/src/components/ErrorComponent.mjs +1 -0
- package/__app__/src/components/NavigationPanel.mjs +63 -0
- package/__app__/src/components/NotFound.mjs +155 -0
- package/__app__/src/components/ViewOutlet.mjs +9 -0
- package/__app__/src/components/model-diff/CompareModelProvider.mjs +44 -0
- package/__app__/src/components/model-diff/ModelDiffPanel.mjs +179 -0
- package/__app__/src/components/model-diff/compare-model.mjs +76 -0
- package/__app__/src/components/model-diff/state.mjs +45 -0
- package/__app__/src/components/search/OverviewSearch.mjs +92 -0
- package/__app__/src/components/search/OverviewSearchAdapter.mjs +94 -0
- package/__app__/src/components/sidebar/DiagramTree.css.mjs +48 -0
- package/__app__/src/components/sidebar/DiagramsTree.mjs +304 -0
- package/__app__/src/components/sidebar/Drawer.mjs +178 -0
- package/__app__/src/components/sidebar/SidebarBurger.mjs +28 -0
- package/__app__/src/components/sidebar/data.mjs +94 -0
- package/__app__/src/components/sidebar/state.mjs +16 -0
- package/__app__/src/components/view-page/Header.mjs +1 -0
- package/__app__/src/components/view-page/SelectProject.mjs +258 -0
- package/__app__/src/components/view-page/ShareModal.mjs +111 -0
- package/__app__/src/components/view-page/share-modal/AlertLocalhost.mjs +31 -0
- package/__app__/src/components/view-page/share-modal/CopyButtonChild.mjs +36 -0
- package/__app__/src/components/view-page/share-modal/EmbedPanel.mjs +100 -0
- package/__app__/src/components/view-page/share-modal/WebcomponentsPanel.mjs +264 -0
- package/__app__/src/components/view-page/state.mjs +17 -0
- package/__app__/src/context/LikeC4CustomizationContext.mjs +26 -0
- package/__app__/src/context/LikeC4IconRendererContext.mjs +29 -0
- package/__app__/src/context/LikeC4ModelContext.mjs +34 -0
- package/__app__/src/context/LikeC4ProjectsContext.mjs +40 -0
- package/__app__/src/context/ModelDiffsContext.mjs +33 -0
- package/__app__/src/context/safeCtx.mjs +14 -0
- package/__app__/src/fonts.css +112 -1
- package/__app__/src/hooks.mjs +1 -0
- package/__app__/src/main.mjs +6 -29151
- package/__app__/src/pages/EmbedPage.mjs +93 -0
- package/__app__/src/pages/ExportPage.mjs +691 -0
- package/__app__/src/pages/ProjectsOverview.mjs +23 -0
- package/__app__/src/pages/ViewAsD2.mjs +105 -0
- package/__app__/src/pages/ViewAsDot.mjs +65 -0
- package/__app__/src/pages/ViewAsMmd.mjs +109 -0
- package/__app__/src/pages/ViewAsPuml.mjs +105 -0
- package/__app__/src/pages/ViewEditor.mjs +220 -0
- package/__app__/src/pages/ViewReact.mjs +1 -0
- package/__app__/src/pages/export-layout.mjs +95 -0
- package/__app__/src/pages/export-page-params.mjs +9 -0
- package/__app__/src/pages/styles.css.mjs +23 -0
- package/__app__/src/routeTree.gen.mjs +105 -0
- package/__app__/src/router.mjs +1 -0
- package/__app__/src/routes/__root.mjs +65 -0
- package/__app__/src/routes/index.css.mjs +29 -0
- package/__app__/src/routes/index.mjs +32 -0
- package/__app__/src/routes/project._projectId/-components.mjs +100 -0
- package/__app__/src/routes/project._projectId/embed._viewId.mjs +5 -0
- package/__app__/src/routes/project._projectId/export._viewId.mjs +24 -0
- package/__app__/src/routes/project._projectId/index.mjs +14 -0
- package/__app__/src/routes/project._projectId/route.mjs +93 -0
- package/__app__/src/routes/project._projectId/view._viewId.d2.mjs +34 -0
- package/__app__/src/routes/project._projectId/view._viewId.dot.mjs +41 -0
- package/__app__/src/routes/project._projectId/view._viewId.index.mjs +7 -0
- package/__app__/src/routes/project._projectId/view._viewId.mjs +23 -0
- package/__app__/src/routes/project._projectId/view._viewId.mmd.mjs +39 -0
- package/__app__/src/routes/project._projectId/view._viewId.puml.mjs +34 -0
- package/__app__/src/routes/projects.mjs +36 -0
- package/__app__/src/routes/single-index.mjs +1 -0
- package/__app__/src/routes/webcomponent._.mjs +94 -0
- package/__app__/src/style.css +18497 -1
- package/config/schema.json +146 -97
- package/dist/app/render-view-client.css +1 -1
- package/dist/app/render-view-client.js +394 -238
- package/dist/chunks/enableServer.mjs +1 -1
- package/dist/chunks/filenames.mjs +25 -17
- package/dist/chunks/generate-likec4.mjs +5 -0
- package/dist/chunks/index.d.mts +255 -194
- package/dist/chunks/index2.d.mts +8246 -3610
- package/dist/chunks/libs/@chenglou/pretext.mjs +9 -0
- package/dist/chunks/libs/@chevrotain/gast.mjs +27 -1
- package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +81 -9
- package/dist/chunks/libs/@logtape/logtape.mjs +5 -4
- package/dist/chunks/libs/@lume/kiwi.mjs +1 -1
- package/dist/chunks/libs/@ts-graphviz/common.d.mts +2 -4
- package/dist/chunks/libs/@ts-graphviz/core.mjs +1 -1
- package/dist/chunks/libs/birpc.mjs +1 -1
- package/dist/chunks/libs/chevrotain-allstar.mjs +2 -2
- package/dist/chunks/libs/chevrotain.mjs +88 -36
- package/dist/chunks/libs/clone.mjs +1 -0
- package/dist/chunks/libs/eventemitter3.mjs +1 -1
- package/dist/chunks/libs/fast-equals.mjs +1 -0
- package/dist/chunks/libs/fontkit.mjs +1 -0
- package/dist/chunks/libs/json5.mjs +4 -4
- package/dist/chunks/libs/langium.d.mts +6707 -6715
- package/dist/chunks/libs/langium.mjs +16 -24
- package/dist/chunks/libs/merge-error-cause.mjs +1 -1
- package/dist/chunks/libs/p-limit.mjs +1 -0
- package/dist/chunks/libs/p-queue.mjs +1 -1
- package/dist/chunks/libs/package-manager-detector.mjs +1 -1
- package/dist/chunks/libs/pako.mjs +1 -1
- package/dist/chunks/libs/pathe.mjs +1 -1
- package/dist/chunks/libs/pretty-ms.mjs +1 -1
- package/dist/chunks/libs/remeda.mjs +1 -1
- package/dist/chunks/libs/ufo.mjs +1 -1
- package/dist/chunks/libs/unstorage.mjs +1 -1
- package/dist/chunks/libs/which.mjs +1 -1
- package/dist/chunks/node.mjs +111 -77
- package/dist/chunks/rolldown-runtime.mjs +1 -1
- package/dist/chunks/sequence-view.mjs +1 -1
- package/dist/chunks/vite-plugin.mjs +185 -166
- package/dist/cli/index.mjs +254 -1306
- package/dist/config/index.d.mts +66 -5
- package/dist/config/index.mjs +1 -1
- package/dist/generators/likec4.d.mts +6530 -0
- package/dist/generators/likec4.mjs +1 -0
- package/dist/index.d.mts +2 -4
- package/dist/model/index.d.mts +0 -7
- package/dist/vite-plugin/index.d.mts +83 -58
- package/dist/vite-plugin/index.mjs +1 -1
- package/dist/vite-plugin/internal/chunks/rolldown-runtime.mjs +8 -0
- package/dist/vite-plugin/internal/index.d.mts +92 -17
- package/dist/vite-plugin/internal/index.mjs +225 -126
- package/generators/likec4/package.json +4 -0
- package/package.json +134 -122
- package/react/index.d.mts +7496 -26659
- package/react/index.mjs +533 -63936
- package/react/rolldown-runtime-CfRud99p.js +1 -0
- package/skills/likec4-dsl/SKILL.md +474 -0
- package/skills/likec4-dsl/evals/evals-public.json +207 -0
- package/skills/likec4-dsl/evals/grading-spec.json +603 -0
- package/skills/likec4-dsl/references/bridge-leanix-drawio.md +42 -0
- package/skills/likec4-dsl/references/cli.md +168 -0
- package/skills/likec4-dsl/references/configuration.md +266 -0
- package/skills/likec4-dsl/references/deployment.md +160 -0
- package/skills/likec4-dsl/references/diffs.md +52 -0
- package/skills/likec4-dsl/references/dynamic-views.md +455 -0
- package/skills/likec4-dsl/references/examples.md +370 -0
- package/skills/likec4-dsl/references/identifier-validity.md +90 -0
- package/skills/likec4-dsl/references/include-predicates-wildcards.md +180 -0
- package/skills/likec4-dsl/references/model.md +182 -0
- package/skills/likec4-dsl/references/predicates.md +123 -0
- package/skills/likec4-dsl/references/relationships-bidirectional.md +176 -0
- package/skills/likec4-dsl/references/specification.md +79 -0
- package/skills/likec4-dsl/references/style-tokens-colors.md +150 -0
- package/skills/likec4-dsl/references/troubleshooting.md +101 -0
- package/skills/likec4-dsl/references/views.md +329 -0
- package/vite-plugin-modules.d.ts +126 -51
- package/__app__/src/chunks/LikeC4Styles.mjs +0 -2306
- package/__app__/src/chunks/ProjectsOverview.mjs +0 -537
- package/__app__/src/chunks/es.mjs +0 -439
- package/__app__/src/chunks/libs/@floating-ui.mjs +0 -2532
- package/__app__/src/chunks/libs/@mantine.mjs +0 -13868
- package/__app__/src/chunks/libs/@xstate/react.mjs +0 -2015
- package/__app__/src/chunks/libs/@xyflow/react.mjs +0 -5367
- package/__app__/src/chunks/libs/bezier-js.mjs +0 -1007
- package/__app__/src/chunks/libs/d3.mjs +0 -2817
- package/__app__/src/chunks/libs/framer.mjs +0 -5926
- package/__app__/src/chunks/libs/zod.mjs +0 -3176
- package/dist/chunks/libs/@chevrotain/types.d.mts +0 -108
- package/dist/chunks/libs/picomatch.mjs +0 -1
- package/dist/chunks/libs/zod.d.mts +0 -3840
- package/dist/chunks/libs/zod.mjs +0 -65
|
@@ -1,3840 +0,0 @@
|
|
|
1
|
-
import { i as __name, r as __exportAll } from "../rolldown-runtime.mjs";
|
|
2
|
-
declare namespace json_schema_d_exports {
|
|
3
|
-
export { ArraySchema, BaseSchema, BooleanSchema, IntegerSchema, JSONSchema, NullSchema, NumberSchema, ObjectSchema, Schema, StringSchema, _JSONSchema };
|
|
4
|
-
}
|
|
5
|
-
type Schema = ObjectSchema | ArraySchema | StringSchema | NumberSchema | IntegerSchema | BooleanSchema | NullSchema;
|
|
6
|
-
type _JSONSchema = boolean | JSONSchema;
|
|
7
|
-
type JSONSchema = {
|
|
8
|
-
[k: string]: unknown;
|
|
9
|
-
$schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
|
|
10
|
-
$id?: string;
|
|
11
|
-
$anchor?: string;
|
|
12
|
-
$ref?: string;
|
|
13
|
-
$dynamicRef?: string;
|
|
14
|
-
$dynamicAnchor?: string;
|
|
15
|
-
$vocabulary?: Record<string, boolean>;
|
|
16
|
-
$comment?: string;
|
|
17
|
-
$defs?: Record<string, JSONSchema>;
|
|
18
|
-
type?: "object" | "array" | "string" | "number" | "boolean" | "null" | "integer";
|
|
19
|
-
additionalItems?: _JSONSchema;
|
|
20
|
-
unevaluatedItems?: _JSONSchema;
|
|
21
|
-
prefixItems?: _JSONSchema[];
|
|
22
|
-
items?: _JSONSchema | _JSONSchema[];
|
|
23
|
-
contains?: _JSONSchema;
|
|
24
|
-
additionalProperties?: _JSONSchema;
|
|
25
|
-
unevaluatedProperties?: _JSONSchema;
|
|
26
|
-
properties?: Record<string, _JSONSchema>;
|
|
27
|
-
patternProperties?: Record<string, _JSONSchema>;
|
|
28
|
-
dependentSchemas?: Record<string, _JSONSchema>;
|
|
29
|
-
propertyNames?: _JSONSchema;
|
|
30
|
-
if?: _JSONSchema;
|
|
31
|
-
then?: _JSONSchema;
|
|
32
|
-
else?: _JSONSchema;
|
|
33
|
-
allOf?: JSONSchema[];
|
|
34
|
-
anyOf?: JSONSchema[];
|
|
35
|
-
oneOf?: JSONSchema[];
|
|
36
|
-
not?: _JSONSchema;
|
|
37
|
-
multipleOf?: number;
|
|
38
|
-
maximum?: number;
|
|
39
|
-
exclusiveMaximum?: number | boolean;
|
|
40
|
-
minimum?: number;
|
|
41
|
-
exclusiveMinimum?: number | boolean;
|
|
42
|
-
maxLength?: number;
|
|
43
|
-
minLength?: number;
|
|
44
|
-
pattern?: string;
|
|
45
|
-
maxItems?: number;
|
|
46
|
-
minItems?: number;
|
|
47
|
-
uniqueItems?: boolean;
|
|
48
|
-
maxContains?: number;
|
|
49
|
-
minContains?: number;
|
|
50
|
-
maxProperties?: number;
|
|
51
|
-
minProperties?: number;
|
|
52
|
-
required?: string[];
|
|
53
|
-
dependentRequired?: Record<string, string[]>;
|
|
54
|
-
enum?: Array<string | number | boolean | null>;
|
|
55
|
-
const?: string | number | boolean | null;
|
|
56
|
-
id?: string;
|
|
57
|
-
title?: string;
|
|
58
|
-
description?: string;
|
|
59
|
-
default?: unknown;
|
|
60
|
-
deprecated?: boolean;
|
|
61
|
-
readOnly?: boolean;
|
|
62
|
-
writeOnly?: boolean;
|
|
63
|
-
nullable?: boolean;
|
|
64
|
-
examples?: unknown[];
|
|
65
|
-
format?: string;
|
|
66
|
-
contentMediaType?: string;
|
|
67
|
-
contentEncoding?: string;
|
|
68
|
-
contentSchema?: JSONSchema;
|
|
69
|
-
_prefault?: unknown;
|
|
70
|
-
};
|
|
71
|
-
type BaseSchema = JSONSchema;
|
|
72
|
-
interface ObjectSchema extends JSONSchema {
|
|
73
|
-
type: "object";
|
|
74
|
-
}
|
|
75
|
-
interface ArraySchema extends JSONSchema {
|
|
76
|
-
type: "array";
|
|
77
|
-
}
|
|
78
|
-
interface StringSchema extends JSONSchema {
|
|
79
|
-
type: "string";
|
|
80
|
-
}
|
|
81
|
-
interface NumberSchema extends JSONSchema {
|
|
82
|
-
type: "number";
|
|
83
|
-
}
|
|
84
|
-
interface IntegerSchema extends JSONSchema {
|
|
85
|
-
type: "integer";
|
|
86
|
-
}
|
|
87
|
-
interface BooleanSchema extends JSONSchema {
|
|
88
|
-
type: "boolean";
|
|
89
|
-
}
|
|
90
|
-
interface NullSchema extends JSONSchema {
|
|
91
|
-
type: "null";
|
|
92
|
-
}
|
|
93
|
-
//#endregion
|
|
94
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/standard-schema.d.cts
|
|
95
|
-
/** The Standard interface. */
|
|
96
|
-
interface StandardTypedV1<Input = unknown, Output = Input> {
|
|
97
|
-
/** The Standard properties. */
|
|
98
|
-
readonly "~standard": StandardTypedV1.Props<Input, Output>;
|
|
99
|
-
}
|
|
100
|
-
declare namespace StandardTypedV1 {
|
|
101
|
-
/** The Standard properties interface. */
|
|
102
|
-
interface Props<Input = unknown, Output = Input> {
|
|
103
|
-
/** The version number of the standard. */
|
|
104
|
-
readonly version: 1;
|
|
105
|
-
/** The vendor name of the schema library. */
|
|
106
|
-
readonly vendor: string;
|
|
107
|
-
/** Inferred types associated with the schema. */
|
|
108
|
-
readonly types?: Types<Input, Output> | undefined;
|
|
109
|
-
}
|
|
110
|
-
/** The Standard types interface. */
|
|
111
|
-
interface Types<Input = unknown, Output = Input> {
|
|
112
|
-
/** The input type of the schema. */
|
|
113
|
-
readonly input: Input;
|
|
114
|
-
/** The output type of the schema. */
|
|
115
|
-
readonly output: Output;
|
|
116
|
-
}
|
|
117
|
-
/** Infers the input type of a Standard. */
|
|
118
|
-
type InferInput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["input"];
|
|
119
|
-
/** Infers the output type of a Standard. */
|
|
120
|
-
type InferOutput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
|
121
|
-
}
|
|
122
|
-
/** The Standard Schema interface. */
|
|
123
|
-
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
124
|
-
/** The Standard Schema properties. */
|
|
125
|
-
readonly "~standard": StandardSchemaV1.Props<Input, Output>;
|
|
126
|
-
}
|
|
127
|
-
declare namespace StandardSchemaV1 {
|
|
128
|
-
/** The Standard Schema properties interface. */
|
|
129
|
-
interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
|
|
130
|
-
/** Validates unknown input values. */
|
|
131
|
-
readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result<Output> | Promise<Result<Output>>;
|
|
132
|
-
}
|
|
133
|
-
/** The result interface of the validate function. */
|
|
134
|
-
type Result<Output> = SuccessResult<Output> | FailureResult;
|
|
135
|
-
/** The result interface if validation succeeds. */
|
|
136
|
-
interface SuccessResult<Output> {
|
|
137
|
-
/** The typed output value. */
|
|
138
|
-
readonly value: Output;
|
|
139
|
-
/** The absence of issues indicates success. */
|
|
140
|
-
readonly issues?: undefined;
|
|
141
|
-
}
|
|
142
|
-
interface Options {
|
|
143
|
-
/** Implicit support for additional vendor-specific parameters, if needed. */
|
|
144
|
-
readonly libraryOptions?: Record<string, unknown> | undefined;
|
|
145
|
-
}
|
|
146
|
-
/** The result interface if validation fails. */
|
|
147
|
-
interface FailureResult {
|
|
148
|
-
/** The issues of failed validation. */
|
|
149
|
-
readonly issues: ReadonlyArray<Issue>;
|
|
150
|
-
}
|
|
151
|
-
/** The issue interface of the failure output. */
|
|
152
|
-
interface Issue {
|
|
153
|
-
/** The error message of the issue. */
|
|
154
|
-
readonly message: string;
|
|
155
|
-
/** The path of the issue, if any. */
|
|
156
|
-
readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
|
|
157
|
-
}
|
|
158
|
-
/** The path segment interface of the issue. */
|
|
159
|
-
interface PathSegment {
|
|
160
|
-
/** The key representing a path segment. */
|
|
161
|
-
readonly key: PropertyKey;
|
|
162
|
-
}
|
|
163
|
-
/** The Standard types interface. */
|
|
164
|
-
interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {}
|
|
165
|
-
/** Infers the input type of a Standard. */
|
|
166
|
-
type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
|
|
167
|
-
/** Infers the output type of a Standard. */
|
|
168
|
-
type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
|
|
169
|
-
}
|
|
170
|
-
/** The Standard JSON Schema interface. */
|
|
171
|
-
interface StandardJSONSchemaV1<Input = unknown, Output = Input> {
|
|
172
|
-
/** The Standard JSON Schema properties. */
|
|
173
|
-
readonly "~standard": StandardJSONSchemaV1.Props<Input, Output>;
|
|
174
|
-
}
|
|
175
|
-
declare namespace StandardJSONSchemaV1 {
|
|
176
|
-
/** The Standard JSON Schema properties interface. */
|
|
177
|
-
interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
|
|
178
|
-
/** Methods for generating the input/output JSON Schema. */
|
|
179
|
-
readonly jsonSchema: Converter;
|
|
180
|
-
}
|
|
181
|
-
/** The Standard JSON Schema converter interface. */
|
|
182
|
-
interface Converter {
|
|
183
|
-
/** Converts the input type to JSON Schema. May throw if conversion is not supported. */
|
|
184
|
-
readonly input: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
|
|
185
|
-
/** Converts the output type to JSON Schema. May throw if conversion is not supported. */
|
|
186
|
-
readonly output: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
|
|
187
|
-
}
|
|
188
|
-
/** The target version of the generated JSON Schema.
|
|
189
|
-
*
|
|
190
|
-
* It is *strongly recommended* that implementers support `"draft-2020-12"` and `"draft-07"`, as they are both in wide use.
|
|
191
|
-
*
|
|
192
|
-
* The `"openapi-3.0"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `"draft-04"`.
|
|
193
|
-
*
|
|
194
|
-
* All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target.
|
|
195
|
-
*/
|
|
196
|
-
type Target = "draft-2020-12" | "draft-07" | "openapi-3.0" | ({} & string);
|
|
197
|
-
/** The options for the input/output methods. */
|
|
198
|
-
interface Options {
|
|
199
|
-
/** Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw. */
|
|
200
|
-
readonly target: Target;
|
|
201
|
-
/** Implicit support for additional vendor-specific parameters, if needed. */
|
|
202
|
-
readonly libraryOptions?: Record<string, unknown> | undefined;
|
|
203
|
-
}
|
|
204
|
-
/** The Standard types interface. */
|
|
205
|
-
interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {}
|
|
206
|
-
/** Infers the input type of a Standard. */
|
|
207
|
-
type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
|
|
208
|
-
/** Infers the output type of a Standard. */
|
|
209
|
-
type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
|
|
210
|
-
}
|
|
211
|
-
interface StandardSchemaWithJSONProps<Input = unknown, Output = Input> extends StandardSchemaV1.Props<Input, Output>, StandardJSONSchemaV1.Props<Input, Output> {}
|
|
212
|
-
declare namespace registries_d_exports {
|
|
213
|
-
export { $ZodRegistry, $input, $output, $replace, GlobalMeta, JSONSchemaMeta, globalRegistry, registry };
|
|
214
|
-
}
|
|
215
|
-
declare const $output: unique symbol;
|
|
216
|
-
type $output = typeof $output;
|
|
217
|
-
declare const $input: unique symbol;
|
|
218
|
-
type $input = typeof $input;
|
|
219
|
-
type $replace<Meta, S extends $ZodType> = Meta extends $output ? output<S> : Meta extends $input ? input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends ((...args: infer P) => infer R) ? (...args: { [K in keyof P]: $replace<P[K], S>; }) => $replace<R, S> : Meta extends object ? { [K in keyof Meta]: $replace<Meta[K], S>; } : Meta;
|
|
220
|
-
type MetadataType = object | undefined;
|
|
221
|
-
declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
|
|
222
|
-
_meta: Meta;
|
|
223
|
-
_schema: Schema;
|
|
224
|
-
_map: WeakMap<Schema, $replace<Meta, Schema>>;
|
|
225
|
-
_idmap: Map<string, Schema>;
|
|
226
|
-
add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this;
|
|
227
|
-
clear(): this;
|
|
228
|
-
remove(schema: Schema): this;
|
|
229
|
-
get<S extends Schema>(schema: S): $replace<Meta, S> | undefined;
|
|
230
|
-
has(schema: Schema): boolean;
|
|
231
|
-
}
|
|
232
|
-
interface JSONSchemaMeta {
|
|
233
|
-
id?: string | undefined;
|
|
234
|
-
title?: string | undefined;
|
|
235
|
-
description?: string | undefined;
|
|
236
|
-
deprecated?: boolean | undefined;
|
|
237
|
-
[k: string]: unknown;
|
|
238
|
-
}
|
|
239
|
-
interface GlobalMeta extends JSONSchemaMeta {}
|
|
240
|
-
declare function registry<T extends MetadataType = MetadataType, S extends $ZodType = $ZodType>(): $ZodRegistry<T, S>;
|
|
241
|
-
declare const globalRegistry: $ZodRegistry<GlobalMeta>;
|
|
242
|
-
//#endregion
|
|
243
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.d.cts
|
|
244
|
-
type Processor<T extends $ZodType = $ZodType> = (schema: T, ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void;
|
|
245
|
-
interface JSONSchemaGeneratorParams {
|
|
246
|
-
processors: Record<string, Processor>;
|
|
247
|
-
/** A registry used to look up metadata for each schema. Any schema with an `id` property will be extracted as a $def.
|
|
248
|
-
* @default globalRegistry */
|
|
249
|
-
metadata?: $ZodRegistry<Record<string, any>>;
|
|
250
|
-
/** The JSON Schema version to target.
|
|
251
|
-
* - `"draft-2020-12"` — Default. JSON Schema Draft 2020-12
|
|
252
|
-
* - `"draft-07"` — JSON Schema Draft 7
|
|
253
|
-
* - `"draft-04"` — JSON Schema Draft 4
|
|
254
|
-
* - `"openapi-3.0"` — OpenAPI 3.0 Schema Object */
|
|
255
|
-
target?: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string) | undefined;
|
|
256
|
-
/** How to handle unrepresentable types.
|
|
257
|
-
* - `"throw"` — Default. Unrepresentable types throw an error
|
|
258
|
-
* - `"any"` — Unrepresentable types become `{}` */
|
|
259
|
-
unrepresentable?: "throw" | "any";
|
|
260
|
-
/** Arbitrary custom logic that can be used to modify the generated JSON Schema. */
|
|
261
|
-
override?: (ctx: {
|
|
262
|
-
zodSchema: $ZodTypes;
|
|
263
|
-
jsonSchema: BaseSchema;
|
|
264
|
-
path: (string | number)[];
|
|
265
|
-
}) => void;
|
|
266
|
-
/** Whether to extract the `"input"` or `"output"` type. Relevant to transforms, defaults, coerced primitives, etc.
|
|
267
|
-
* - `"output"` — Default. Convert the output schema.
|
|
268
|
-
* - `"input"` — Convert the input schema. */
|
|
269
|
-
io?: "input" | "output";
|
|
270
|
-
cycles?: "ref" | "throw";
|
|
271
|
-
reused?: "ref" | "inline";
|
|
272
|
-
external?: {
|
|
273
|
-
registry: $ZodRegistry<{
|
|
274
|
-
id?: string | undefined;
|
|
275
|
-
}>;
|
|
276
|
-
uri?: ((id: string) => string) | undefined;
|
|
277
|
-
defs: Record<string, BaseSchema>;
|
|
278
|
-
} | undefined;
|
|
279
|
-
}
|
|
280
|
-
/**
|
|
281
|
-
* Parameters for the toJSONSchema function.
|
|
282
|
-
*/
|
|
283
|
-
type ToJSONSchemaParams = Omit<JSONSchemaGeneratorParams, "processors" | "external">;
|
|
284
|
-
/**
|
|
285
|
-
* Parameters for the toJSONSchema function when passing a registry.
|
|
286
|
-
*/
|
|
287
|
-
interface RegistryToJSONSchemaParams extends ToJSONSchemaParams {
|
|
288
|
-
uri?: (id: string) => string;
|
|
289
|
-
}
|
|
290
|
-
interface ProcessParams {
|
|
291
|
-
schemaPath: $ZodType[];
|
|
292
|
-
path: (string | number)[];
|
|
293
|
-
}
|
|
294
|
-
interface Seen {
|
|
295
|
-
/** JSON Schema result for this Zod schema */
|
|
296
|
-
schema: BaseSchema;
|
|
297
|
-
/** A cached version of the schema that doesn't get overwritten during ref resolution */
|
|
298
|
-
def?: BaseSchema;
|
|
299
|
-
defId?: string | undefined;
|
|
300
|
-
/** Number of times this schema was encountered during traversal */
|
|
301
|
-
count: number;
|
|
302
|
-
/** Cycle path */
|
|
303
|
-
cycle?: (string | number)[] | undefined;
|
|
304
|
-
isParent?: boolean | undefined;
|
|
305
|
-
/** Schema to inherit JSON Schema properties from (set by processor for wrappers) */
|
|
306
|
-
ref?: $ZodType | null;
|
|
307
|
-
/** JSON Schema property path for this schema */
|
|
308
|
-
path?: (string | number)[] | undefined;
|
|
309
|
-
}
|
|
310
|
-
interface ToJSONSchemaContext {
|
|
311
|
-
processors: Record<string, Processor>;
|
|
312
|
-
metadataRegistry: $ZodRegistry<Record<string, any>>;
|
|
313
|
-
target: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string);
|
|
314
|
-
unrepresentable: "throw" | "any";
|
|
315
|
-
override: (ctx: {
|
|
316
|
-
zodSchema: $ZodType;
|
|
317
|
-
jsonSchema: BaseSchema;
|
|
318
|
-
path: (string | number)[];
|
|
319
|
-
}) => void;
|
|
320
|
-
io: "input" | "output";
|
|
321
|
-
counter: number;
|
|
322
|
-
seen: Map<$ZodType, Seen>;
|
|
323
|
-
cycles: "ref" | "throw";
|
|
324
|
-
reused: "ref" | "inline";
|
|
325
|
-
external?: {
|
|
326
|
-
registry: $ZodRegistry<{
|
|
327
|
-
id?: string | undefined;
|
|
328
|
-
}>;
|
|
329
|
-
uri?: ((id: string) => string) | undefined;
|
|
330
|
-
defs: Record<string, BaseSchema>;
|
|
331
|
-
} | undefined;
|
|
332
|
-
}
|
|
333
|
-
declare function initializeContext(params: JSONSchemaGeneratorParams): ToJSONSchemaContext;
|
|
334
|
-
declare function process<T extends $ZodType>(schema: T, ctx: ToJSONSchemaContext, _params?: ProcessParams): BaseSchema;
|
|
335
|
-
declare function extractDefs<T extends $ZodType>(ctx: ToJSONSchemaContext, schema: T): void;
|
|
336
|
-
declare function finalize<T extends $ZodType>(ctx: ToJSONSchemaContext, schema: T): ZodStandardJSONSchemaPayload<T>;
|
|
337
|
-
type ZodStandardSchemaWithJSON$1<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
|
|
338
|
-
interface ZodStandardJSONSchemaPayload<T> extends BaseSchema {
|
|
339
|
-
"~standard": ZodStandardSchemaWithJSON$1<T>;
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
* Creates a toJSONSchema method for a schema instance.
|
|
343
|
-
* This encapsulates the logic of initializing context, processing, extracting defs, and finalizing.
|
|
344
|
-
*/
|
|
345
|
-
declare const createToJSONSchemaMethod: <T extends $ZodType>(schema: T, processors?: Record<string, Processor>) => (params?: ToJSONSchemaParams) => ZodStandardJSONSchemaPayload<T>;
|
|
346
|
-
/**
|
|
347
|
-
* Creates a toJSONSchema method for a schema instance.
|
|
348
|
-
* This encapsulates the logic of initializing context, processing, extracting defs, and finalizing.
|
|
349
|
-
*/
|
|
350
|
-
type StandardJSONSchemaMethodParams = Parameters<StandardJSONSchemaV1["~standard"]["jsonSchema"]["input"]>[0];
|
|
351
|
-
declare const createStandardJSONSchemaMethod: <T extends $ZodType>(schema: T, io: "input" | "output", processors?: Record<string, Processor>) => (params?: StandardJSONSchemaMethodParams) => BaseSchema;
|
|
352
|
-
declare namespace util_d_exports {
|
|
353
|
-
export { AnyFunc, AssertEqual, AssertExtends, AssertNotEqual, BIGINT_FORMAT_RANGES, BuiltIn, Class, CleanKey, Constructor, EmptyObject, EmptyToNever, EnumLike, EnumValue, Exactly, Extend, ExtractIndexSignature, Flatten, FromCleanMap, HasLength, HasSize, HashAlgorithm, HashEncoding, HashFormat, IPVersion, Identity, InexactPartial, IsAny, IsProp, JSONType, JWTAlgorithm, KeyOf, Keys, KeysArray, KeysEnum, Literal, LiteralArray, LoosePartial, MakePartial, MakeReadonly, MakeRequired, Mapped, Mask, MaybeAsync, MimeTypes, NUMBER_FORMAT_RANGES, NoNever, NoNeverKeys, NoUndefined, Normalize, Numeric, Omit$1 as Omit, OmitIndexSignature, OmitKeys, ParsedTypes, Prettify, Primitive, PrimitiveArray, PrimitiveSet, PropValues, SafeParseError, SafeParseResult, SafeParseSuccess, SchemaClass, SomeObject, ToCleanMap, ToEnum, TupleItems, Whatever, Writeable, aborted, allowsEval, assert, assertEqual, assertIs, assertNever, assertNotEqual, assignProp, base64ToUint8Array, base64urlToUint8Array, cached, captureStackTrace, cleanEnum, cleanRegex, clone, cloneDef, createTransparentProxy, defineLazy, esc, escapeRegex, explicitlyAborted, extend, finalizeIssue, floatSafeRemainder, getElementAtPath, getEnumValues, getLengthableOrigin, getParsedType, getSizableOrigin, hexToUint8Array, isObject, isPlainObject, issue, joinValues, jsonStringifyReplacer, merge, mergeDefs, normalizeParams, nullish$1 as nullish, numKeys, objectClone, omit, optionalKeys, parsedType, partial, pick, prefixIssues, primitiveTypes, promiseAllObject, propertyKeyTypes, randomString, required, safeExtend, shallowClone, slugify, stringifyPrimitive, uint8ArrayToBase64, uint8ArrayToBase64url, uint8ArrayToHex, unwrapMessage };
|
|
354
|
-
}
|
|
355
|
-
type JSONType = string | number | boolean | null | JSONType[] | {
|
|
356
|
-
[key: string]: JSONType;
|
|
357
|
-
};
|
|
358
|
-
type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {});
|
|
359
|
-
type HashAlgorithm = "md5" | "sha1" | "sha256" | "sha384" | "sha512";
|
|
360
|
-
type HashEncoding = "hex" | "base64" | "base64url";
|
|
361
|
-
type HashFormat = `${HashAlgorithm}_${HashEncoding}`;
|
|
362
|
-
type IPVersion = "v4" | "v6";
|
|
363
|
-
type MimeTypes = "application/json" | "application/xml" | "application/x-www-form-urlencoded" | "application/javascript" | "application/pdf" | "application/zip" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/octet-stream" | "application/graphql" | "text/html" | "text/plain" | "text/css" | "text/javascript" | "text/csv" | "image/png" | "image/jpeg" | "image/gif" | "image/svg+xml" | "image/webp" | "audio/mpeg" | "audio/ogg" | "audio/wav" | "audio/webm" | "video/mp4" | "video/webm" | "video/ogg" | "font/woff" | "font/woff2" | "font/ttf" | "font/otf" | "multipart/form-data" | (string & {});
|
|
364
|
-
type ParsedTypes = "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "file" | "date" | "array" | "map" | "set" | "nan" | "null" | "promise";
|
|
365
|
-
type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends (<V>() => V extends U ? 1 : 2) ? true : false;
|
|
366
|
-
type AssertNotEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends (<V>() => V extends U ? 1 : 2) ? false : true;
|
|
367
|
-
type AssertExtends<T, U> = T extends U ? T : never;
|
|
368
|
-
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
369
|
-
type Omit$1<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
370
|
-
type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;
|
|
371
|
-
type MakePartial<T, K extends keyof T> = Omit$1<T, K> & InexactPartial<Pick<T, K>>;
|
|
372
|
-
type MakeRequired<T, K extends keyof T> = Omit$1<T, K> & Required<Pick<T, K>>;
|
|
373
|
-
type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;
|
|
374
|
-
type NoUndefined<T> = T extends undefined ? never : T;
|
|
375
|
-
type Whatever = {} | undefined | null;
|
|
376
|
-
type LoosePartial<T extends object> = InexactPartial<T> & {
|
|
377
|
-
[k: string]: unknown;
|
|
378
|
-
};
|
|
379
|
-
type Mask<Keys extends PropertyKey> = { [K in Keys]?: true; };
|
|
380
|
-
type Writeable<T> = { -readonly [P in keyof T]: T[P]; } & {};
|
|
381
|
-
type InexactPartial<T> = { [P in keyof T]?: T[P] | undefined; };
|
|
382
|
-
type EmptyObject = Record<string, never>;
|
|
383
|
-
type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
|
|
384
|
-
readonly [Symbol.toStringTag]: string;
|
|
385
|
-
} | Date | Error | Generator | Promise<unknown> | RegExp;
|
|
386
|
-
type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;
|
|
387
|
-
type SomeObject = Record<PropertyKey, any>;
|
|
388
|
-
type Identity<T> = T;
|
|
389
|
-
type Flatten<T> = Identity<{ [k in keyof T]: T[k]; }>;
|
|
390
|
-
type Mapped<T> = { [k in keyof T]: T[k]; };
|
|
391
|
-
type Prettify<T> = { [K in keyof T]: T[K]; } & {};
|
|
392
|
-
type NoNeverKeys<T> = { [k in keyof T]: [T[k]] extends [never] ? never : k; }[keyof T];
|
|
393
|
-
type NoNever<T> = Identity<{ [k in NoNeverKeys<T>]: k extends keyof T ? T[k] : never; }>;
|
|
394
|
-
type Extend<A extends SomeObject, B extends SomeObject> = Flatten<keyof A & keyof B extends never ? A & B : { [K in keyof A as K extends keyof B ? never : K]: A[K]; } & { [K in keyof B]: B[K]; }>;
|
|
395
|
-
type TupleItems = ReadonlyArray<SomeType>;
|
|
396
|
-
type AnyFunc = (...args: any[]) => any;
|
|
397
|
-
type IsProp<T, K extends keyof T> = T[K] extends AnyFunc ? never : K;
|
|
398
|
-
type MaybeAsync<T> = T | Promise<T>;
|
|
399
|
-
type KeyOf<T> = keyof OmitIndexSignature<T>;
|
|
400
|
-
type OmitIndexSignature<T> = { [K in keyof T as string extends K ? never : K extends string ? K : never]: T[K]; };
|
|
401
|
-
type ExtractIndexSignature<T> = { [K in keyof T as string extends K ? K : K extends string ? never : K]: T[K]; };
|
|
402
|
-
type Keys<T extends object> = keyof OmitIndexSignature<T>;
|
|
403
|
-
type SchemaClass<T extends SomeType> = {
|
|
404
|
-
new (def: T["_zod"]["def"]): T;
|
|
405
|
-
};
|
|
406
|
-
type EnumValue = string | number;
|
|
407
|
-
type EnumLike = Readonly<Record<string, EnumValue>>;
|
|
408
|
-
type ToEnum<T extends EnumValue> = Flatten<{ [k in T]: k; }>;
|
|
409
|
-
type KeysEnum<T extends object> = ToEnum<Exclude<keyof T, symbol>>;
|
|
410
|
-
type KeysArray<T extends object> = Flatten<(keyof T & string)[]>;
|
|
411
|
-
type Literal = string | number | bigint | boolean | null | undefined;
|
|
412
|
-
type LiteralArray = Array<Literal>;
|
|
413
|
-
type Primitive = string | number | symbol | bigint | boolean | null | undefined;
|
|
414
|
-
type PrimitiveArray = Array<Primitive>;
|
|
415
|
-
type HasSize = {
|
|
416
|
-
size: number;
|
|
417
|
-
};
|
|
418
|
-
type HasLength = {
|
|
419
|
-
length: number;
|
|
420
|
-
};
|
|
421
|
-
type Numeric = number | bigint | Date;
|
|
422
|
-
type SafeParseResult<T> = SafeParseSuccess<T> | SafeParseError<T>;
|
|
423
|
-
type SafeParseSuccess<T> = {
|
|
424
|
-
success: true;
|
|
425
|
-
data: T;
|
|
426
|
-
error?: never;
|
|
427
|
-
};
|
|
428
|
-
type SafeParseError<T> = {
|
|
429
|
-
success: false;
|
|
430
|
-
data?: never;
|
|
431
|
-
error: $ZodError<T>;
|
|
432
|
-
};
|
|
433
|
-
type PropValues = Record<string, Set<Primitive>>;
|
|
434
|
-
type PrimitiveSet = Set<Primitive>;
|
|
435
|
-
declare function assertEqual<A, B>(val: AssertEqual<A, B>): AssertEqual<A, B>;
|
|
436
|
-
declare function assertNotEqual<A, B>(val: AssertNotEqual<A, B>): AssertNotEqual<A, B>;
|
|
437
|
-
declare function assertIs<T>(_arg: T): void;
|
|
438
|
-
declare function assertNever(_x: never): never;
|
|
439
|
-
declare function assert<T>(_: any): asserts _ is T;
|
|
440
|
-
declare function getEnumValues(entries: EnumLike): EnumValue[];
|
|
441
|
-
declare function joinValues<T extends Primitive[]>(array: T, separator?: string): string;
|
|
442
|
-
declare function jsonStringifyReplacer(_: string, value: any): any;
|
|
443
|
-
declare function cached<T>(getter: () => T): {
|
|
444
|
-
value: T;
|
|
445
|
-
};
|
|
446
|
-
declare function nullish$1(input: any): boolean;
|
|
447
|
-
declare function cleanRegex(source: string): string;
|
|
448
|
-
declare function floatSafeRemainder(val: number, step: number): number;
|
|
449
|
-
declare function defineLazy<T, K extends keyof T>(object: T, key: K, getter: () => T[K]): void;
|
|
450
|
-
declare function objectClone(obj: object): any;
|
|
451
|
-
declare function assignProp<T extends object, K extends PropertyKey>(target: T, prop: K, value: K extends keyof T ? T[K] : any): void;
|
|
452
|
-
declare function mergeDefs(...defs: Record<string, any>[]): any;
|
|
453
|
-
declare function cloneDef(schema: $ZodType): any;
|
|
454
|
-
declare function getElementAtPath(obj: any, path: (string | number)[] | null | undefined): any;
|
|
455
|
-
declare function promiseAllObject<T extends object>(promisesObj: T): Promise<{ [k in keyof T]: Awaited<T[k]>; }>;
|
|
456
|
-
declare function randomString(length?: number): string;
|
|
457
|
-
declare function esc(str: string): string;
|
|
458
|
-
declare function slugify(input: string): string;
|
|
459
|
-
declare const captureStackTrace: (targetObject: object, constructorOpt?: Function) => void;
|
|
460
|
-
declare function isObject(data: any): data is Record<PropertyKey, unknown>;
|
|
461
|
-
declare const allowsEval: {
|
|
462
|
-
value: boolean;
|
|
463
|
-
};
|
|
464
|
-
declare function isPlainObject(o: any): o is Record<PropertyKey, unknown>;
|
|
465
|
-
declare function shallowClone(o: any): any;
|
|
466
|
-
declare function numKeys(data: any): number;
|
|
467
|
-
declare const getParsedType: (data: any) => ParsedTypes;
|
|
468
|
-
declare const propertyKeyTypes: Set<string>;
|
|
469
|
-
declare const primitiveTypes: Set<string>;
|
|
470
|
-
declare function escapeRegex(str: string): string;
|
|
471
|
-
declare function clone<T extends $ZodType>(inst: T, def?: T["_zod"]["def"], params?: {
|
|
472
|
-
parent: boolean;
|
|
473
|
-
}): T;
|
|
474
|
-
type EmptyToNever<T> = keyof T extends never ? never : T;
|
|
475
|
-
type Normalize<T> = T extends undefined ? never : T extends Record<any, any> ? Flatten<{ [k in keyof Omit$1<T, "error" | "message">]: T[k]; } & ("error" extends keyof T ? {
|
|
476
|
-
error?: Exclude<T["error"], string>;
|
|
477
|
-
} : unknown)> : never;
|
|
478
|
-
declare function normalizeParams<T>(_params: T): Normalize<T>;
|
|
479
|
-
declare function createTransparentProxy<T extends object>(getter: () => T): T;
|
|
480
|
-
declare function stringifyPrimitive(value: any): string;
|
|
481
|
-
declare function optionalKeys(shape: $ZodShape): string[];
|
|
482
|
-
type CleanKey<T extends PropertyKey> = T extends `?${infer K}` ? K : T extends `${infer K}?` ? K : T;
|
|
483
|
-
type ToCleanMap<T extends $ZodLooseShape> = { [k in keyof T]: k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k; };
|
|
484
|
-
type FromCleanMap<T extends $ZodLooseShape> = { [k in keyof T as k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k]: k; };
|
|
485
|
-
declare const NUMBER_FORMAT_RANGES: Record<$ZodNumberFormats, [number, number]>;
|
|
486
|
-
declare const BIGINT_FORMAT_RANGES: Record<$ZodBigIntFormats, [bigint, bigint]>;
|
|
487
|
-
declare function pick(schema: $ZodObject, mask: Record<string, unknown>): any;
|
|
488
|
-
declare function omit(schema: $ZodObject, mask: object): any;
|
|
489
|
-
declare function extend(schema: $ZodObject, shape: $ZodShape): any;
|
|
490
|
-
declare function safeExtend(schema: $ZodObject, shape: $ZodShape): any;
|
|
491
|
-
declare function merge(a: $ZodObject, b: $ZodObject): any;
|
|
492
|
-
declare function partial(Class: SchemaClass<$ZodOptional> | null, schema: $ZodObject, mask: object | undefined): any;
|
|
493
|
-
declare function required(Class: SchemaClass<$ZodNonOptional>, schema: $ZodObject, mask: object | undefined): any;
|
|
494
|
-
type Constructor<T, Def extends any[] = any[]> = new (...args: Def) => T;
|
|
495
|
-
declare function aborted(x: ParsePayload, startIndex?: number): boolean;
|
|
496
|
-
declare function explicitlyAborted(x: ParsePayload, startIndex?: number): boolean;
|
|
497
|
-
declare function prefixIssues(path: PropertyKey, issues: $ZodRawIssue[]): $ZodRawIssue[];
|
|
498
|
-
declare function unwrapMessage(message: string | {
|
|
499
|
-
message: string;
|
|
500
|
-
} | undefined | null): string | undefined;
|
|
501
|
-
declare function finalizeIssue(iss: $ZodRawIssue, ctx: ParseContextInternal | undefined, config: $ZodConfig): $ZodIssue;
|
|
502
|
-
declare function getSizableOrigin(input: any): "set" | "map" | "file" | "unknown";
|
|
503
|
-
declare function getLengthableOrigin(input: any): "array" | "string" | "unknown";
|
|
504
|
-
declare function parsedType(data: unknown): $ZodInvalidTypeExpected;
|
|
505
|
-
declare function issue(_iss: string, input: any, inst: any): $ZodRawIssue;
|
|
506
|
-
declare function issue(_iss: $ZodRawIssue): $ZodRawIssue;
|
|
507
|
-
declare function cleanEnum(obj: Record<string, EnumValue>): EnumValue[];
|
|
508
|
-
declare function base64ToUint8Array(base64: string): InstanceType<typeof Uint8Array>;
|
|
509
|
-
declare function uint8ArrayToBase64(bytes: Uint8Array): string;
|
|
510
|
-
declare function base64urlToUint8Array(base64url: string): InstanceType<typeof Uint8Array>;
|
|
511
|
-
declare function uint8ArrayToBase64url(bytes: Uint8Array): string;
|
|
512
|
-
declare function hexToUint8Array(hex: string): InstanceType<typeof Uint8Array>;
|
|
513
|
-
declare function uint8ArrayToHex(bytes: Uint8Array): string;
|
|
514
|
-
declare abstract class Class {
|
|
515
|
-
constructor(..._args: any[]);
|
|
516
|
-
}
|
|
517
|
-
//#endregion
|
|
518
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.d.cts
|
|
519
|
-
declare const version: {
|
|
520
|
-
readonly major: 4;
|
|
521
|
-
readonly minor: 4;
|
|
522
|
-
readonly patch: number;
|
|
523
|
-
};
|
|
524
|
-
declare namespace schemas_d_exports {
|
|
525
|
-
export { $InferEnumInput, $InferEnumOutput, $InferInnerFunctionType, $InferInnerFunctionTypeAsync, $InferObjectInput, $InferObjectOutput, $InferOuterFunctionType, $InferOuterFunctionTypeAsync, $InferTupleInputType, $InferTupleOutputType, $InferUnionInput, $InferUnionOutput, $InferZodRecordInput, $InferZodRecordOutput, $PartsToTemplateLiteral, $ZodAny, $ZodAnyDef, $ZodAnyInternals, $ZodArray, $ZodArrayDef, $ZodArrayInternals, $ZodBase64, $ZodBase64Def, $ZodBase64Internals, $ZodBase64URL, $ZodBase64URLDef, $ZodBase64URLInternals, $ZodBigInt, $ZodBigIntDef, $ZodBigIntFormat, $ZodBigIntFormatDef, $ZodBigIntFormatInternals, $ZodBigIntInternals, $ZodBoolean, $ZodBooleanDef, $ZodBooleanInternals, $ZodCIDRv4, $ZodCIDRv4Def, $ZodCIDRv4Internals, $ZodCIDRv6, $ZodCIDRv6Def, $ZodCIDRv6Internals, $ZodCUID, $ZodCUID2, $ZodCUID2Def, $ZodCUID2Internals, $ZodCUIDDef, $ZodCUIDInternals, $ZodCatch, $ZodCatchCtx, $ZodCatchDef, $ZodCatchInternals, $ZodCodec, $ZodCodecDef, $ZodCodecInternals, $ZodCustom, $ZodCustomDef, $ZodCustomInternals, $ZodCustomStringFormat, $ZodCustomStringFormatDef, $ZodCustomStringFormatInternals, $ZodDate, $ZodDateDef, $ZodDateInternals, $ZodDefault, $ZodDefaultDef, $ZodDefaultInternals, $ZodDiscriminatedUnion, $ZodDiscriminatedUnionDef, $ZodDiscriminatedUnionInternals, $ZodE164, $ZodE164Def, $ZodE164Internals, $ZodEmail, $ZodEmailDef, $ZodEmailInternals, $ZodEmoji, $ZodEmojiDef, $ZodEmojiInternals, $ZodEnum, $ZodEnumDef, $ZodEnumInternals, $ZodExactOptional, $ZodExactOptionalDef, $ZodExactOptionalInternals, $ZodFile, $ZodFileDef, $ZodFileInternals, $ZodFunction, $ZodFunctionArgs, $ZodFunctionDef, $ZodFunctionIn, $ZodFunctionInternals, $ZodFunctionOut, $ZodFunctionParams, $ZodGUID, $ZodGUIDDef, $ZodGUIDInternals, $ZodIPv4, $ZodIPv4Def, $ZodIPv4Internals, $ZodIPv6, $ZodIPv6Def, $ZodIPv6Internals, $ZodISODate, $ZodISODateDef, $ZodISODateInternals, $ZodISODateTime, $ZodISODateTimeDef, $ZodISODateTimeInternals, $ZodISODuration, $ZodISODurationDef, $ZodISODurationInternals, $ZodISOTime, $ZodISOTimeDef, $ZodISOTimeInternals, $ZodIntersection, $ZodIntersectionDef, $ZodIntersectionInternals, $ZodJWT, $ZodJWTDef, $ZodJWTInternals, $ZodKSUID, $ZodKSUIDDef, $ZodKSUIDInternals, $ZodLazy, $ZodLazyDef, $ZodLazyInternals, $ZodLiteral, $ZodLiteralDef, $ZodLiteralInternals, $ZodLooseShape, $ZodMAC, $ZodMACDef, $ZodMACInternals, $ZodMap, $ZodMapDef, $ZodMapInternals, $ZodNaN, $ZodNaNDef, $ZodNaNInternals, $ZodNanoID, $ZodNanoIDDef, $ZodNanoIDInternals, $ZodNever, $ZodNeverDef, $ZodNeverInternals, $ZodNonOptional, $ZodNonOptionalDef, $ZodNonOptionalInternals, $ZodNull, $ZodNullDef, $ZodNullInternals, $ZodNullable, $ZodNullableDef, $ZodNullableInternals, $ZodNumber, $ZodNumberDef, $ZodNumberFormat, $ZodNumberFormatDef, $ZodNumberFormatInternals, $ZodNumberInternals, $ZodObject, $ZodObjectConfig, $ZodObjectDef, $ZodObjectInternals, $ZodObjectJIT, $ZodOptional, $ZodOptionalDef, $ZodOptionalInternals, $ZodPipe, $ZodPipeDef, $ZodPipeInternals, $ZodPrefault, $ZodPrefaultDef, $ZodPrefaultInternals, $ZodPreprocess, $ZodPreprocessDef, $ZodPreprocessInternals, $ZodPromise, $ZodPromiseDef, $ZodPromiseInternals, $ZodReadonly, $ZodReadonlyDef, $ZodReadonlyInternals, $ZodRecord, $ZodRecordDef, $ZodRecordInternals, $ZodRecordKey, $ZodSet, $ZodSetDef, $ZodSetInternals, $ZodShape, $ZodStandardSchema, $ZodString, $ZodStringDef, $ZodStringFormat, $ZodStringFormatDef, $ZodStringFormatInternals, $ZodStringFormatTypes, $ZodStringInternals, $ZodSuccess, $ZodSuccessDef, $ZodSuccessInternals, $ZodSymbol, $ZodSymbolDef, $ZodSymbolInternals, $ZodTemplateLiteral, $ZodTemplateLiteralDef, $ZodTemplateLiteralInternals, $ZodTemplateLiteralPart, $ZodTransform, $ZodTransformDef, $ZodTransformInternals, $ZodTuple, $ZodTupleDef, $ZodTupleInternals, $ZodType, $ZodTypeDef, $ZodTypeInternals, $ZodTypes, $ZodULID, $ZodULIDDef, $ZodULIDInternals, $ZodURL, $ZodURLDef, $ZodURLInternals, $ZodUUID, $ZodUUIDDef, $ZodUUIDInternals, $ZodUndefined, $ZodUndefinedDef, $ZodUndefinedInternals, $ZodUnion, $ZodUnionDef, $ZodUnionInternals, $ZodUnknown, $ZodUnknownDef, $ZodUnknownInternals, $ZodVoid, $ZodVoidDef, $ZodVoidInternals, $ZodXID, $ZodXIDDef, $ZodXIDInternals, $ZodXor, $ZodXorInternals, $catchall, $loose, $partial, $strict, $strip, CheckFn, ConcatenateTupleOfStrings, ConvertPartsToStringTuple, File, ParseContext, ParseContextInternal, ParsePayload, SomeType, ToTemplateLiteral, _$ZodType, _$ZodTypeInternals, clone, isValidBase64, isValidBase64URL, isValidJWT };
|
|
526
|
-
}
|
|
527
|
-
interface ParseContext<T extends $ZodIssueBase = never> {
|
|
528
|
-
/** Customize error messages. */
|
|
529
|
-
readonly error?: $ZodErrorMap<T>;
|
|
530
|
-
/** Include the `input` field in issue objects. Default `false`. */
|
|
531
|
-
readonly reportInput?: boolean;
|
|
532
|
-
/** Skip eval-based fast path. Default `false`. */
|
|
533
|
-
readonly jitless?: boolean;
|
|
534
|
-
}
|
|
535
|
-
/** @internal */
|
|
536
|
-
interface ParseContextInternal<T extends $ZodIssueBase = never> extends ParseContext<T> {
|
|
537
|
-
readonly async?: boolean | undefined;
|
|
538
|
-
readonly direction?: "forward" | "backward";
|
|
539
|
-
readonly skipChecks?: boolean;
|
|
540
|
-
}
|
|
541
|
-
interface ParsePayload<T = unknown> {
|
|
542
|
-
value: T;
|
|
543
|
-
issues: $ZodRawIssue[];
|
|
544
|
-
/** A way to mark a whole payload as aborted. Used in codecs/pipes. */
|
|
545
|
-
aborted?: boolean;
|
|
546
|
-
/** @internal Marks a value as a fallback that an outer wrapper (e.g.
|
|
547
|
-
* $ZodOptional) may override with its own interpretation when input was
|
|
548
|
-
* undefined. Set by $ZodCatch when catchValue substitutes and by every
|
|
549
|
-
* $ZodTransform invocation. */
|
|
550
|
-
fallback?: boolean | undefined;
|
|
551
|
-
}
|
|
552
|
-
type CheckFn<T> = (input: ParsePayload<T>) => MaybeAsync<void>;
|
|
553
|
-
interface $ZodTypeDef {
|
|
554
|
-
type: "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "null" | "undefined" | "void" | "never" | "any" | "unknown" | "date" | "object" | "record" | "file" | "array" | "tuple" | "union" | "intersection" | "map" | "set" | "enum" | "literal" | "nullable" | "optional" | "nonoptional" | "success" | "transform" | "default" | "prefault" | "catch" | "nan" | "pipe" | "readonly" | "template_literal" | "promise" | "lazy" | "function" | "custom";
|
|
555
|
-
error?: $ZodErrorMap<never> | undefined;
|
|
556
|
-
checks?: $ZodCheck<never>[];
|
|
557
|
-
}
|
|
558
|
-
interface _$ZodTypeInternals {
|
|
559
|
-
/** The `@zod/core` version of this schema */
|
|
560
|
-
version: typeof version;
|
|
561
|
-
/** Schema definition. */
|
|
562
|
-
def: $ZodTypeDef;
|
|
563
|
-
/** @internal Randomly generated ID for this schema. */
|
|
564
|
-
/** @internal List of deferred initializers. */
|
|
565
|
-
deferred: AnyFunc[] | undefined;
|
|
566
|
-
/** @internal Parses input and runs all checks (refinements). */
|
|
567
|
-
run(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
|
|
568
|
-
/** @internal Parses input, doesn't run checks. */
|
|
569
|
-
parse(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
|
|
570
|
-
/** @internal Stores identifiers for the set of traits implemented by this schema. */
|
|
571
|
-
traits: Set<string>;
|
|
572
|
-
/** @internal Indicates that a schema output type should be considered optional inside objects.
|
|
573
|
-
* @default Required
|
|
574
|
-
*/
|
|
575
|
-
/** @internal */
|
|
576
|
-
optin?: "optional" | undefined;
|
|
577
|
-
/** @internal */
|
|
578
|
-
optout?: "optional" | undefined;
|
|
579
|
-
/** @internal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record().
|
|
580
|
-
*
|
|
581
|
-
* Defined on: enum, const, literal, null, undefined
|
|
582
|
-
* Passthrough: optional, nullable, branded, default, catch, pipe
|
|
583
|
-
* Todo: unions?
|
|
584
|
-
*/
|
|
585
|
-
values?: PrimitiveSet | undefined;
|
|
586
|
-
/** Default value bubbled up from */
|
|
587
|
-
/** @internal A set of literal discriminators used for the fast path in discriminated unions. */
|
|
588
|
-
propValues?: PropValues | undefined;
|
|
589
|
-
/** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */
|
|
590
|
-
pattern: RegExp | undefined;
|
|
591
|
-
/** @internal The constructor function of this schema. */
|
|
592
|
-
constr: new (def: any) => $ZodType;
|
|
593
|
-
/** @internal A catchall object for bag metadata related to this schema. Commonly modified by checks using `onattach`. */
|
|
594
|
-
bag: Record<string, unknown>;
|
|
595
|
-
/** @internal The set of issues this schema might throw during type checking. */
|
|
596
|
-
isst: $ZodIssueBase;
|
|
597
|
-
/** @internal Subject to change, not a public API. */
|
|
598
|
-
processJSONSchema?: ((ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void) | undefined;
|
|
599
|
-
/** An optional method used to override `toJSONSchema` logic. */
|
|
600
|
-
toJSONSchema?: () => unknown;
|
|
601
|
-
/** @internal The parent of this schema. Only set during certain clone operations. */
|
|
602
|
-
parent?: $ZodType | undefined;
|
|
603
|
-
}
|
|
604
|
-
/** @internal */
|
|
605
|
-
interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$ZodTypeInternals {
|
|
606
|
-
/** @internal The inferred output type */
|
|
607
|
-
output: O;
|
|
608
|
-
/** @internal The inferred input type */
|
|
609
|
-
input: I;
|
|
610
|
-
}
|
|
611
|
-
type $ZodStandardSchema<T> = StandardSchemaV1.Props<input<T>, output<T>>;
|
|
612
|
-
type SomeType = {
|
|
613
|
-
_zod: _$ZodTypeInternals;
|
|
614
|
-
};
|
|
615
|
-
interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> {
|
|
616
|
-
_zod: Internals;
|
|
617
|
-
"~standard": $ZodStandardSchema<this>;
|
|
618
|
-
}
|
|
619
|
-
interface _$ZodType<T extends $ZodTypeInternals = $ZodTypeInternals> extends $ZodType<T["output"], T["input"], T> {}
|
|
620
|
-
declare const $ZodType: $constructor<$ZodType>;
|
|
621
|
-
interface $ZodStringDef extends $ZodTypeDef {
|
|
622
|
-
type: "string";
|
|
623
|
-
coerce?: boolean;
|
|
624
|
-
checks?: $ZodCheck<string>[];
|
|
625
|
-
}
|
|
626
|
-
interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, Input> {
|
|
627
|
-
def: $ZodStringDef;
|
|
628
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
629
|
-
pattern: RegExp;
|
|
630
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
631
|
-
isst: $ZodIssueInvalidType;
|
|
632
|
-
bag: LoosePartial<{
|
|
633
|
-
minimum: number;
|
|
634
|
-
maximum: number;
|
|
635
|
-
patterns: Set<RegExp>;
|
|
636
|
-
format: string;
|
|
637
|
-
contentEncoding: string;
|
|
638
|
-
}>;
|
|
639
|
-
}
|
|
640
|
-
interface $ZodString<Input = unknown> extends _$ZodType<$ZodStringInternals<Input>> {}
|
|
641
|
-
declare const $ZodString: $constructor<$ZodString>;
|
|
642
|
-
interface $ZodStringFormatDef<Format extends string = string> extends $ZodStringDef, $ZodCheckStringFormatDef<Format> {}
|
|
643
|
-
interface $ZodStringFormatInternals<Format extends string = string> extends $ZodStringInternals<string>, $ZodCheckStringFormatInternals {
|
|
644
|
-
def: $ZodStringFormatDef<Format>;
|
|
645
|
-
}
|
|
646
|
-
interface $ZodStringFormat<Format extends string = string> extends $ZodType {
|
|
647
|
-
_zod: $ZodStringFormatInternals<Format>;
|
|
648
|
-
}
|
|
649
|
-
declare const $ZodStringFormat: $constructor<$ZodStringFormat>;
|
|
650
|
-
interface $ZodGUIDDef extends $ZodStringFormatDef<"guid"> {}
|
|
651
|
-
interface $ZodGUIDInternals extends $ZodStringFormatInternals<"guid"> {}
|
|
652
|
-
interface $ZodGUID extends $ZodType {
|
|
653
|
-
_zod: $ZodGUIDInternals;
|
|
654
|
-
}
|
|
655
|
-
declare const $ZodGUID: $constructor<$ZodGUID>;
|
|
656
|
-
interface $ZodUUIDDef extends $ZodStringFormatDef<"uuid"> {
|
|
657
|
-
version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8";
|
|
658
|
-
}
|
|
659
|
-
interface $ZodUUIDInternals extends $ZodStringFormatInternals<"uuid"> {
|
|
660
|
-
def: $ZodUUIDDef;
|
|
661
|
-
}
|
|
662
|
-
interface $ZodUUID extends $ZodType {
|
|
663
|
-
_zod: $ZodUUIDInternals;
|
|
664
|
-
}
|
|
665
|
-
declare const $ZodUUID: $constructor<$ZodUUID>;
|
|
666
|
-
interface $ZodEmailDef extends $ZodStringFormatDef<"email"> {}
|
|
667
|
-
interface $ZodEmailInternals extends $ZodStringFormatInternals<"email"> {}
|
|
668
|
-
interface $ZodEmail extends $ZodType {
|
|
669
|
-
_zod: $ZodEmailInternals;
|
|
670
|
-
}
|
|
671
|
-
declare const $ZodEmail: $constructor<$ZodEmail>;
|
|
672
|
-
interface $ZodURLDef extends $ZodStringFormatDef<"url"> {
|
|
673
|
-
hostname?: RegExp | undefined;
|
|
674
|
-
protocol?: RegExp | undefined;
|
|
675
|
-
normalize?: boolean | undefined;
|
|
676
|
-
}
|
|
677
|
-
interface $ZodURLInternals extends $ZodStringFormatInternals<"url"> {
|
|
678
|
-
def: $ZodURLDef;
|
|
679
|
-
}
|
|
680
|
-
interface $ZodURL extends $ZodType {
|
|
681
|
-
_zod: $ZodURLInternals;
|
|
682
|
-
}
|
|
683
|
-
declare const $ZodURL: $constructor<$ZodURL>;
|
|
684
|
-
interface $ZodEmojiDef extends $ZodStringFormatDef<"emoji"> {}
|
|
685
|
-
interface $ZodEmojiInternals extends $ZodStringFormatInternals<"emoji"> {}
|
|
686
|
-
interface $ZodEmoji extends $ZodType {
|
|
687
|
-
_zod: $ZodEmojiInternals;
|
|
688
|
-
}
|
|
689
|
-
declare const $ZodEmoji: $constructor<$ZodEmoji>;
|
|
690
|
-
interface $ZodNanoIDDef extends $ZodStringFormatDef<"nanoid"> {}
|
|
691
|
-
interface $ZodNanoIDInternals extends $ZodStringFormatInternals<"nanoid"> {}
|
|
692
|
-
interface $ZodNanoID extends $ZodType {
|
|
693
|
-
_zod: $ZodNanoIDInternals;
|
|
694
|
-
}
|
|
695
|
-
declare const $ZodNanoID: $constructor<$ZodNanoID>;
|
|
696
|
-
/**
|
|
697
|
-
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
698
|
-
* (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
|
|
699
|
-
* See https://github.com/paralleldrive/cuid.
|
|
700
|
-
*/
|
|
701
|
-
interface $ZodCUIDDef extends $ZodStringFormatDef<"cuid"> {}
|
|
702
|
-
/**
|
|
703
|
-
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
704
|
-
* (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
|
|
705
|
-
* See https://github.com/paralleldrive/cuid.
|
|
706
|
-
*/
|
|
707
|
-
interface $ZodCUIDInternals extends $ZodStringFormatInternals<"cuid"> {}
|
|
708
|
-
/**
|
|
709
|
-
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
710
|
-
* (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
|
|
711
|
-
* See https://github.com/paralleldrive/cuid.
|
|
712
|
-
*/
|
|
713
|
-
interface $ZodCUID extends $ZodType {
|
|
714
|
-
_zod: $ZodCUIDInternals;
|
|
715
|
-
}
|
|
716
|
-
/**
|
|
717
|
-
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
718
|
-
* (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
|
|
719
|
-
* See https://github.com/paralleldrive/cuid.
|
|
720
|
-
*/
|
|
721
|
-
declare const $ZodCUID: $constructor<$ZodCUID>;
|
|
722
|
-
interface $ZodCUID2Def extends $ZodStringFormatDef<"cuid2"> {}
|
|
723
|
-
interface $ZodCUID2Internals extends $ZodStringFormatInternals<"cuid2"> {}
|
|
724
|
-
interface $ZodCUID2 extends $ZodType {
|
|
725
|
-
_zod: $ZodCUID2Internals;
|
|
726
|
-
}
|
|
727
|
-
declare const $ZodCUID2: $constructor<$ZodCUID2>;
|
|
728
|
-
interface $ZodULIDDef extends $ZodStringFormatDef<"ulid"> {}
|
|
729
|
-
interface $ZodULIDInternals extends $ZodStringFormatInternals<"ulid"> {}
|
|
730
|
-
interface $ZodULID extends $ZodType {
|
|
731
|
-
_zod: $ZodULIDInternals;
|
|
732
|
-
}
|
|
733
|
-
declare const $ZodULID: $constructor<$ZodULID>;
|
|
734
|
-
interface $ZodXIDDef extends $ZodStringFormatDef<"xid"> {}
|
|
735
|
-
interface $ZodXIDInternals extends $ZodStringFormatInternals<"xid"> {}
|
|
736
|
-
interface $ZodXID extends $ZodType {
|
|
737
|
-
_zod: $ZodXIDInternals;
|
|
738
|
-
}
|
|
739
|
-
declare const $ZodXID: $constructor<$ZodXID>;
|
|
740
|
-
interface $ZodKSUIDDef extends $ZodStringFormatDef<"ksuid"> {}
|
|
741
|
-
interface $ZodKSUIDInternals extends $ZodStringFormatInternals<"ksuid"> {}
|
|
742
|
-
interface $ZodKSUID extends $ZodType {
|
|
743
|
-
_zod: $ZodKSUIDInternals;
|
|
744
|
-
}
|
|
745
|
-
declare const $ZodKSUID: $constructor<$ZodKSUID>;
|
|
746
|
-
interface $ZodISODateTimeDef extends $ZodStringFormatDef<"datetime"> {
|
|
747
|
-
precision: number | null;
|
|
748
|
-
offset: boolean;
|
|
749
|
-
local: boolean;
|
|
750
|
-
}
|
|
751
|
-
interface $ZodISODateTimeInternals extends $ZodStringFormatInternals {
|
|
752
|
-
def: $ZodISODateTimeDef;
|
|
753
|
-
}
|
|
754
|
-
interface $ZodISODateTime extends $ZodType {
|
|
755
|
-
_zod: $ZodISODateTimeInternals;
|
|
756
|
-
}
|
|
757
|
-
declare const $ZodISODateTime: $constructor<$ZodISODateTime>;
|
|
758
|
-
interface $ZodISODateDef extends $ZodStringFormatDef<"date"> {}
|
|
759
|
-
interface $ZodISODateInternals extends $ZodStringFormatInternals<"date"> {}
|
|
760
|
-
interface $ZodISODate extends $ZodType {
|
|
761
|
-
_zod: $ZodISODateInternals;
|
|
762
|
-
}
|
|
763
|
-
declare const $ZodISODate: $constructor<$ZodISODate>;
|
|
764
|
-
interface $ZodISOTimeDef extends $ZodStringFormatDef<"time"> {
|
|
765
|
-
precision?: number | null;
|
|
766
|
-
}
|
|
767
|
-
interface $ZodISOTimeInternals extends $ZodStringFormatInternals<"time"> {
|
|
768
|
-
def: $ZodISOTimeDef;
|
|
769
|
-
}
|
|
770
|
-
interface $ZodISOTime extends $ZodType {
|
|
771
|
-
_zod: $ZodISOTimeInternals;
|
|
772
|
-
}
|
|
773
|
-
declare const $ZodISOTime: $constructor<$ZodISOTime>;
|
|
774
|
-
interface $ZodISODurationDef extends $ZodStringFormatDef<"duration"> {}
|
|
775
|
-
interface $ZodISODurationInternals extends $ZodStringFormatInternals<"duration"> {}
|
|
776
|
-
interface $ZodISODuration extends $ZodType {
|
|
777
|
-
_zod: $ZodISODurationInternals;
|
|
778
|
-
}
|
|
779
|
-
declare const $ZodISODuration: $constructor<$ZodISODuration>;
|
|
780
|
-
interface $ZodIPv4Def extends $ZodStringFormatDef<"ipv4"> {
|
|
781
|
-
version?: "v4";
|
|
782
|
-
}
|
|
783
|
-
interface $ZodIPv4Internals extends $ZodStringFormatInternals<"ipv4"> {
|
|
784
|
-
def: $ZodIPv4Def;
|
|
785
|
-
}
|
|
786
|
-
interface $ZodIPv4 extends $ZodType {
|
|
787
|
-
_zod: $ZodIPv4Internals;
|
|
788
|
-
}
|
|
789
|
-
declare const $ZodIPv4: $constructor<$ZodIPv4>;
|
|
790
|
-
interface $ZodIPv6Def extends $ZodStringFormatDef<"ipv6"> {
|
|
791
|
-
version?: "v6";
|
|
792
|
-
}
|
|
793
|
-
interface $ZodIPv6Internals extends $ZodStringFormatInternals<"ipv6"> {
|
|
794
|
-
def: $ZodIPv6Def;
|
|
795
|
-
}
|
|
796
|
-
interface $ZodIPv6 extends $ZodType {
|
|
797
|
-
_zod: $ZodIPv6Internals;
|
|
798
|
-
}
|
|
799
|
-
declare const $ZodIPv6: $constructor<$ZodIPv6>;
|
|
800
|
-
interface $ZodMACDef extends $ZodStringFormatDef<"mac"> {
|
|
801
|
-
delimiter?: string;
|
|
802
|
-
}
|
|
803
|
-
interface $ZodMACInternals extends $ZodStringFormatInternals<"mac"> {
|
|
804
|
-
def: $ZodMACDef;
|
|
805
|
-
}
|
|
806
|
-
interface $ZodMAC extends $ZodType {
|
|
807
|
-
_zod: $ZodMACInternals;
|
|
808
|
-
}
|
|
809
|
-
declare const $ZodMAC: $constructor<$ZodMAC>;
|
|
810
|
-
interface $ZodCIDRv4Def extends $ZodStringFormatDef<"cidrv4"> {
|
|
811
|
-
version?: "v4";
|
|
812
|
-
}
|
|
813
|
-
interface $ZodCIDRv4Internals extends $ZodStringFormatInternals<"cidrv4"> {
|
|
814
|
-
def: $ZodCIDRv4Def;
|
|
815
|
-
}
|
|
816
|
-
interface $ZodCIDRv4 extends $ZodType {
|
|
817
|
-
_zod: $ZodCIDRv4Internals;
|
|
818
|
-
}
|
|
819
|
-
declare const $ZodCIDRv4: $constructor<$ZodCIDRv4>;
|
|
820
|
-
interface $ZodCIDRv6Def extends $ZodStringFormatDef<"cidrv6"> {
|
|
821
|
-
version?: "v6";
|
|
822
|
-
}
|
|
823
|
-
interface $ZodCIDRv6Internals extends $ZodStringFormatInternals<"cidrv6"> {
|
|
824
|
-
def: $ZodCIDRv6Def;
|
|
825
|
-
}
|
|
826
|
-
interface $ZodCIDRv6 extends $ZodType {
|
|
827
|
-
_zod: $ZodCIDRv6Internals;
|
|
828
|
-
}
|
|
829
|
-
declare const $ZodCIDRv6: $constructor<$ZodCIDRv6>;
|
|
830
|
-
declare function isValidBase64(data: string): boolean;
|
|
831
|
-
interface $ZodBase64Def extends $ZodStringFormatDef<"base64"> {}
|
|
832
|
-
interface $ZodBase64Internals extends $ZodStringFormatInternals<"base64"> {}
|
|
833
|
-
interface $ZodBase64 extends $ZodType {
|
|
834
|
-
_zod: $ZodBase64Internals;
|
|
835
|
-
}
|
|
836
|
-
declare const $ZodBase64: $constructor<$ZodBase64>;
|
|
837
|
-
declare function isValidBase64URL(data: string): boolean;
|
|
838
|
-
interface $ZodBase64URLDef extends $ZodStringFormatDef<"base64url"> {}
|
|
839
|
-
interface $ZodBase64URLInternals extends $ZodStringFormatInternals<"base64url"> {}
|
|
840
|
-
interface $ZodBase64URL extends $ZodType {
|
|
841
|
-
_zod: $ZodBase64URLInternals;
|
|
842
|
-
}
|
|
843
|
-
declare const $ZodBase64URL: $constructor<$ZodBase64URL>;
|
|
844
|
-
interface $ZodE164Def extends $ZodStringFormatDef<"e164"> {}
|
|
845
|
-
interface $ZodE164Internals extends $ZodStringFormatInternals<"e164"> {}
|
|
846
|
-
interface $ZodE164 extends $ZodType {
|
|
847
|
-
_zod: $ZodE164Internals;
|
|
848
|
-
}
|
|
849
|
-
declare const $ZodE164: $constructor<$ZodE164>;
|
|
850
|
-
declare function isValidJWT(token: string, algorithm?: JWTAlgorithm | null): boolean;
|
|
851
|
-
interface $ZodJWTDef extends $ZodStringFormatDef<"jwt"> {
|
|
852
|
-
alg?: JWTAlgorithm | undefined;
|
|
853
|
-
}
|
|
854
|
-
interface $ZodJWTInternals extends $ZodStringFormatInternals<"jwt"> {
|
|
855
|
-
def: $ZodJWTDef;
|
|
856
|
-
}
|
|
857
|
-
interface $ZodJWT extends $ZodType {
|
|
858
|
-
_zod: $ZodJWTInternals;
|
|
859
|
-
}
|
|
860
|
-
declare const $ZodJWT: $constructor<$ZodJWT>;
|
|
861
|
-
interface $ZodCustomStringFormatDef<Format extends string = string> extends $ZodStringFormatDef<Format> {
|
|
862
|
-
fn: (val: string) => unknown;
|
|
863
|
-
}
|
|
864
|
-
interface $ZodCustomStringFormatInternals<Format extends string = string> extends $ZodStringFormatInternals<Format> {
|
|
865
|
-
def: $ZodCustomStringFormatDef<Format>;
|
|
866
|
-
}
|
|
867
|
-
interface $ZodCustomStringFormat<Format extends string = string> extends $ZodStringFormat<Format> {
|
|
868
|
-
_zod: $ZodCustomStringFormatInternals<Format>;
|
|
869
|
-
}
|
|
870
|
-
declare const $ZodCustomStringFormat: $constructor<$ZodCustomStringFormat>;
|
|
871
|
-
interface $ZodNumberDef extends $ZodTypeDef {
|
|
872
|
-
type: "number";
|
|
873
|
-
coerce?: boolean;
|
|
874
|
-
}
|
|
875
|
-
interface $ZodNumberInternals<Input = unknown> extends $ZodTypeInternals<number, Input> {
|
|
876
|
-
def: $ZodNumberDef;
|
|
877
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
878
|
-
pattern: RegExp;
|
|
879
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
880
|
-
isst: $ZodIssueInvalidType;
|
|
881
|
-
bag: LoosePartial<{
|
|
882
|
-
minimum: number;
|
|
883
|
-
maximum: number;
|
|
884
|
-
exclusiveMinimum: number;
|
|
885
|
-
exclusiveMaximum: number;
|
|
886
|
-
format: string;
|
|
887
|
-
pattern: RegExp;
|
|
888
|
-
}>;
|
|
889
|
-
}
|
|
890
|
-
interface $ZodNumber<Input = unknown> extends $ZodType {
|
|
891
|
-
_zod: $ZodNumberInternals<Input>;
|
|
892
|
-
}
|
|
893
|
-
declare const $ZodNumber: $constructor<$ZodNumber>;
|
|
894
|
-
interface $ZodNumberFormatDef extends $ZodNumberDef, $ZodCheckNumberFormatDef {}
|
|
895
|
-
interface $ZodNumberFormatInternals extends $ZodNumberInternals<number>, $ZodCheckNumberFormatInternals {
|
|
896
|
-
def: $ZodNumberFormatDef;
|
|
897
|
-
isst: $ZodIssueInvalidType;
|
|
898
|
-
}
|
|
899
|
-
interface $ZodNumberFormat extends $ZodType {
|
|
900
|
-
_zod: $ZodNumberFormatInternals;
|
|
901
|
-
}
|
|
902
|
-
declare const $ZodNumberFormat: $constructor<$ZodNumberFormat>;
|
|
903
|
-
interface $ZodBooleanDef extends $ZodTypeDef {
|
|
904
|
-
type: "boolean";
|
|
905
|
-
coerce?: boolean;
|
|
906
|
-
checks?: $ZodCheck<boolean>[];
|
|
907
|
-
}
|
|
908
|
-
interface $ZodBooleanInternals<T = unknown> extends $ZodTypeInternals<boolean, T> {
|
|
909
|
-
pattern: RegExp;
|
|
910
|
-
def: $ZodBooleanDef;
|
|
911
|
-
isst: $ZodIssueInvalidType;
|
|
912
|
-
}
|
|
913
|
-
interface $ZodBoolean<T = unknown> extends $ZodType {
|
|
914
|
-
_zod: $ZodBooleanInternals<T>;
|
|
915
|
-
}
|
|
916
|
-
declare const $ZodBoolean: $constructor<$ZodBoolean>;
|
|
917
|
-
interface $ZodBigIntDef extends $ZodTypeDef {
|
|
918
|
-
type: "bigint";
|
|
919
|
-
coerce?: boolean;
|
|
920
|
-
}
|
|
921
|
-
interface $ZodBigIntInternals<T = unknown> extends $ZodTypeInternals<bigint, T> {
|
|
922
|
-
pattern: RegExp;
|
|
923
|
-
/** @internal Internal API, use with caution */
|
|
924
|
-
def: $ZodBigIntDef;
|
|
925
|
-
isst: $ZodIssueInvalidType;
|
|
926
|
-
bag: LoosePartial<{
|
|
927
|
-
minimum: bigint;
|
|
928
|
-
maximum: bigint;
|
|
929
|
-
format: string;
|
|
930
|
-
}>;
|
|
931
|
-
}
|
|
932
|
-
interface $ZodBigInt<T = unknown> extends $ZodType {
|
|
933
|
-
_zod: $ZodBigIntInternals<T>;
|
|
934
|
-
}
|
|
935
|
-
declare const $ZodBigInt: $constructor<$ZodBigInt>;
|
|
936
|
-
interface $ZodBigIntFormatDef extends $ZodBigIntDef, $ZodCheckBigIntFormatDef {
|
|
937
|
-
check: "bigint_format";
|
|
938
|
-
}
|
|
939
|
-
interface $ZodBigIntFormatInternals extends $ZodBigIntInternals<bigint>, $ZodCheckBigIntFormatInternals {
|
|
940
|
-
def: $ZodBigIntFormatDef;
|
|
941
|
-
}
|
|
942
|
-
interface $ZodBigIntFormat extends $ZodType {
|
|
943
|
-
_zod: $ZodBigIntFormatInternals;
|
|
944
|
-
}
|
|
945
|
-
declare const $ZodBigIntFormat: $constructor<$ZodBigIntFormat>;
|
|
946
|
-
interface $ZodSymbolDef extends $ZodTypeDef {
|
|
947
|
-
type: "symbol";
|
|
948
|
-
}
|
|
949
|
-
interface $ZodSymbolInternals extends $ZodTypeInternals<symbol, symbol> {
|
|
950
|
-
def: $ZodSymbolDef;
|
|
951
|
-
isst: $ZodIssueInvalidType;
|
|
952
|
-
}
|
|
953
|
-
interface $ZodSymbol extends $ZodType {
|
|
954
|
-
_zod: $ZodSymbolInternals;
|
|
955
|
-
}
|
|
956
|
-
declare const $ZodSymbol: $constructor<$ZodSymbol>;
|
|
957
|
-
interface $ZodUndefinedDef extends $ZodTypeDef {
|
|
958
|
-
type: "undefined";
|
|
959
|
-
}
|
|
960
|
-
interface $ZodUndefinedInternals extends $ZodTypeInternals<undefined, undefined> {
|
|
961
|
-
pattern: RegExp;
|
|
962
|
-
def: $ZodUndefinedDef;
|
|
963
|
-
values: PrimitiveSet;
|
|
964
|
-
isst: $ZodIssueInvalidType;
|
|
965
|
-
}
|
|
966
|
-
interface $ZodUndefined extends $ZodType {
|
|
967
|
-
_zod: $ZodUndefinedInternals;
|
|
968
|
-
}
|
|
969
|
-
declare const $ZodUndefined: $constructor<$ZodUndefined>;
|
|
970
|
-
interface $ZodNullDef extends $ZodTypeDef {
|
|
971
|
-
type: "null";
|
|
972
|
-
}
|
|
973
|
-
interface $ZodNullInternals extends $ZodTypeInternals<null, null> {
|
|
974
|
-
pattern: RegExp;
|
|
975
|
-
def: $ZodNullDef;
|
|
976
|
-
values: PrimitiveSet;
|
|
977
|
-
isst: $ZodIssueInvalidType;
|
|
978
|
-
}
|
|
979
|
-
interface $ZodNull extends $ZodType {
|
|
980
|
-
_zod: $ZodNullInternals;
|
|
981
|
-
}
|
|
982
|
-
declare const $ZodNull: $constructor<$ZodNull>;
|
|
983
|
-
interface $ZodAnyDef extends $ZodTypeDef {
|
|
984
|
-
type: "any";
|
|
985
|
-
}
|
|
986
|
-
interface $ZodAnyInternals extends $ZodTypeInternals<any, any> {
|
|
987
|
-
def: $ZodAnyDef;
|
|
988
|
-
isst: never;
|
|
989
|
-
}
|
|
990
|
-
interface $ZodAny extends $ZodType {
|
|
991
|
-
_zod: $ZodAnyInternals;
|
|
992
|
-
}
|
|
993
|
-
declare const $ZodAny: $constructor<$ZodAny>;
|
|
994
|
-
interface $ZodUnknownDef extends $ZodTypeDef {
|
|
995
|
-
type: "unknown";
|
|
996
|
-
}
|
|
997
|
-
interface $ZodUnknownInternals extends $ZodTypeInternals<unknown, unknown> {
|
|
998
|
-
def: $ZodUnknownDef;
|
|
999
|
-
isst: never;
|
|
1000
|
-
}
|
|
1001
|
-
interface $ZodUnknown extends $ZodType {
|
|
1002
|
-
_zod: $ZodUnknownInternals;
|
|
1003
|
-
}
|
|
1004
|
-
declare const $ZodUnknown: $constructor<$ZodUnknown>;
|
|
1005
|
-
interface $ZodNeverDef extends $ZodTypeDef {
|
|
1006
|
-
type: "never";
|
|
1007
|
-
}
|
|
1008
|
-
interface $ZodNeverInternals extends $ZodTypeInternals<never, never> {
|
|
1009
|
-
def: $ZodNeverDef;
|
|
1010
|
-
isst: $ZodIssueInvalidType;
|
|
1011
|
-
}
|
|
1012
|
-
interface $ZodNever extends $ZodType {
|
|
1013
|
-
_zod: $ZodNeverInternals;
|
|
1014
|
-
}
|
|
1015
|
-
declare const $ZodNever: $constructor<$ZodNever>;
|
|
1016
|
-
interface $ZodVoidDef extends $ZodTypeDef {
|
|
1017
|
-
type: "void";
|
|
1018
|
-
}
|
|
1019
|
-
interface $ZodVoidInternals extends $ZodTypeInternals<void, void> {
|
|
1020
|
-
def: $ZodVoidDef;
|
|
1021
|
-
isst: $ZodIssueInvalidType;
|
|
1022
|
-
}
|
|
1023
|
-
interface $ZodVoid extends $ZodType {
|
|
1024
|
-
_zod: $ZodVoidInternals;
|
|
1025
|
-
}
|
|
1026
|
-
declare const $ZodVoid: $constructor<$ZodVoid>;
|
|
1027
|
-
interface $ZodDateDef extends $ZodTypeDef {
|
|
1028
|
-
type: "date";
|
|
1029
|
-
coerce?: boolean;
|
|
1030
|
-
}
|
|
1031
|
-
interface $ZodDateInternals<T = unknown> extends $ZodTypeInternals<Date, T> {
|
|
1032
|
-
def: $ZodDateDef;
|
|
1033
|
-
isst: $ZodIssueInvalidType;
|
|
1034
|
-
bag: LoosePartial<{
|
|
1035
|
-
minimum: Date;
|
|
1036
|
-
maximum: Date;
|
|
1037
|
-
format: string;
|
|
1038
|
-
}>;
|
|
1039
|
-
}
|
|
1040
|
-
interface $ZodDate<T = unknown> extends $ZodType {
|
|
1041
|
-
_zod: $ZodDateInternals<T>;
|
|
1042
|
-
}
|
|
1043
|
-
declare const $ZodDate: $constructor<$ZodDate>;
|
|
1044
|
-
interface $ZodArrayDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1045
|
-
type: "array";
|
|
1046
|
-
element: T;
|
|
1047
|
-
}
|
|
1048
|
-
interface $ZodArrayInternals<T extends SomeType = $ZodType> extends _$ZodTypeInternals {
|
|
1049
|
-
def: $ZodArrayDef<T>;
|
|
1050
|
-
isst: $ZodIssueInvalidType;
|
|
1051
|
-
output: output<T>[];
|
|
1052
|
-
input: input<T>[];
|
|
1053
|
-
}
|
|
1054
|
-
interface $ZodArray<T extends SomeType = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T>> {}
|
|
1055
|
-
declare const $ZodArray: $constructor<$ZodArray>;
|
|
1056
|
-
type OptionalOutSchema = {
|
|
1057
|
-
_zod: {
|
|
1058
|
-
optout: "optional";
|
|
1059
|
-
};
|
|
1060
|
-
};
|
|
1061
|
-
type OptionalInSchema = {
|
|
1062
|
-
_zod: {
|
|
1063
|
-
optin: "optional";
|
|
1064
|
-
};
|
|
1065
|
-
};
|
|
1066
|
-
type $InferObjectOutput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<string, output<T[keyof T]>> : keyof (T & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T as T[k] extends OptionalOutSchema ? never : k]: T[k]["_zod"]["output"]; } & { -readonly [k in keyof T as T[k] extends OptionalOutSchema ? k : never]?: T[k]["_zod"]["output"]; } & Extra>;
|
|
1067
|
-
type $InferObjectInput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<string, input<T[keyof T]>> : keyof (T & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T as T[k] extends OptionalInSchema ? never : k]: T[k]["_zod"]["input"]; } & { -readonly [k in keyof T as T[k] extends OptionalInSchema ? k : never]?: T[k]["_zod"]["input"]; } & Extra>;
|
|
1068
|
-
type $ZodObjectConfig = {
|
|
1069
|
-
out: Record<string, unknown>;
|
|
1070
|
-
in: Record<string, unknown>;
|
|
1071
|
-
};
|
|
1072
|
-
type $loose = {
|
|
1073
|
-
out: Record<string, unknown>;
|
|
1074
|
-
in: Record<string, unknown>;
|
|
1075
|
-
};
|
|
1076
|
-
type $strict = {
|
|
1077
|
-
out: {};
|
|
1078
|
-
in: {};
|
|
1079
|
-
};
|
|
1080
|
-
type $strip = {
|
|
1081
|
-
out: {};
|
|
1082
|
-
in: {};
|
|
1083
|
-
};
|
|
1084
|
-
type $catchall<T extends SomeType> = {
|
|
1085
|
-
out: {
|
|
1086
|
-
[k: string]: output<T>;
|
|
1087
|
-
};
|
|
1088
|
-
in: {
|
|
1089
|
-
[k: string]: input<T>;
|
|
1090
|
-
};
|
|
1091
|
-
};
|
|
1092
|
-
type $ZodShape = Readonly<{
|
|
1093
|
-
[k: string]: $ZodType;
|
|
1094
|
-
}>;
|
|
1095
|
-
interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
|
|
1096
|
-
type: "object";
|
|
1097
|
-
shape: Shape;
|
|
1098
|
-
catchall?: $ZodType | undefined;
|
|
1099
|
-
}
|
|
1100
|
-
interface $ZodObjectInternals<
|
|
1101
|
-
/** @ts-ignore Cast variance */
|
|
1102
|
-
out Shape extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
|
|
1103
|
-
def: $ZodObjectDef<Shape>;
|
|
1104
|
-
config: Config;
|
|
1105
|
-
isst: $ZodIssueInvalidType | $ZodIssueUnrecognizedKeys;
|
|
1106
|
-
propValues: PropValues;
|
|
1107
|
-
output: $InferObjectOutput<Shape, Config["out"]>;
|
|
1108
|
-
input: $InferObjectInput<Shape, Config["in"]>;
|
|
1109
|
-
optin?: "optional" | undefined;
|
|
1110
|
-
optout?: "optional" | undefined;
|
|
1111
|
-
}
|
|
1112
|
-
type $ZodLooseShape = Record<string, any>;
|
|
1113
|
-
interface $ZodObject<
|
|
1114
|
-
/** @ts-ignore Cast variance */
|
|
1115
|
-
out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params>> {}
|
|
1116
|
-
declare const $ZodObject: $constructor<$ZodObject>;
|
|
1117
|
-
declare const $ZodObjectJIT: $constructor<$ZodObject>;
|
|
1118
|
-
type $InferUnionOutput<T extends SomeType> = T extends any ? output<T> : never;
|
|
1119
|
-
type $InferUnionInput<T extends SomeType> = T extends any ? input<T> : never;
|
|
1120
|
-
interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef {
|
|
1121
|
-
type: "union";
|
|
1122
|
-
options: Options;
|
|
1123
|
-
inclusive?: boolean;
|
|
1124
|
-
}
|
|
1125
|
-
type IsOptionalIn<T extends SomeType> = T extends OptionalInSchema ? true : false;
|
|
1126
|
-
type IsOptionalOut<T extends SomeType> = T extends OptionalOutSchema ? true : false;
|
|
1127
|
-
interface $ZodUnionInternals<T extends readonly SomeType[] = readonly $ZodType[]> extends _$ZodTypeInternals {
|
|
1128
|
-
def: $ZodUnionDef<T>;
|
|
1129
|
-
isst: $ZodIssueInvalidUnion;
|
|
1130
|
-
pattern: T[number]["_zod"]["pattern"];
|
|
1131
|
-
values: T[number]["_zod"]["values"];
|
|
1132
|
-
output: $InferUnionOutput<T[number]>;
|
|
1133
|
-
input: $InferUnionInput<T[number]>;
|
|
1134
|
-
optin: IsOptionalIn<T[number]> extends false ? "optional" | undefined : "optional";
|
|
1135
|
-
optout: IsOptionalOut<T[number]> extends false ? "optional" | undefined : "optional";
|
|
1136
|
-
}
|
|
1137
|
-
interface $ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodUnionInternals<T>> {
|
|
1138
|
-
_zod: $ZodUnionInternals<T>;
|
|
1139
|
-
}
|
|
1140
|
-
declare const $ZodUnion: $constructor<$ZodUnion>;
|
|
1141
|
-
interface $ZodXorInternals<T extends readonly SomeType[] = readonly $ZodType[]> extends $ZodUnionInternals<T> {}
|
|
1142
|
-
interface $ZodXor<T extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodXorInternals<T>> {
|
|
1143
|
-
_zod: $ZodXorInternals<T>;
|
|
1144
|
-
}
|
|
1145
|
-
declare const $ZodXor: $constructor<$ZodXor>;
|
|
1146
|
-
interface $ZodDiscriminatedUnionDef<Options extends readonly SomeType[] = readonly $ZodType[], Disc extends string = string> extends $ZodUnionDef<Options> {
|
|
1147
|
-
discriminator: Disc;
|
|
1148
|
-
unionFallback?: boolean;
|
|
1149
|
-
}
|
|
1150
|
-
interface $ZodDiscriminatedUnionInternals<Options extends readonly SomeType[] = readonly $ZodType[], Disc extends string = string> extends $ZodUnionInternals<Options> {
|
|
1151
|
-
def: $ZodDiscriminatedUnionDef<Options, Disc>;
|
|
1152
|
-
propValues: PropValues;
|
|
1153
|
-
}
|
|
1154
|
-
interface $ZodDiscriminatedUnion<Options extends readonly SomeType[] = readonly $ZodType[], Disc extends string = string> extends $ZodType {
|
|
1155
|
-
_zod: $ZodDiscriminatedUnionInternals<Options, Disc>;
|
|
1156
|
-
}
|
|
1157
|
-
declare const $ZodDiscriminatedUnion: $constructor<$ZodDiscriminatedUnion>;
|
|
1158
|
-
interface $ZodIntersectionDef<Left extends SomeType = $ZodType, Right extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1159
|
-
type: "intersection";
|
|
1160
|
-
left: Left;
|
|
1161
|
-
right: Right;
|
|
1162
|
-
}
|
|
1163
|
-
interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _$ZodTypeInternals {
|
|
1164
|
-
def: $ZodIntersectionDef<A, B>;
|
|
1165
|
-
isst: never;
|
|
1166
|
-
optin: A["_zod"]["optin"] | B["_zod"]["optin"];
|
|
1167
|
-
optout: A["_zod"]["optout"] | B["_zod"]["optout"];
|
|
1168
|
-
output: output<A> & output<B>;
|
|
1169
|
-
input: input<A> & input<B>;
|
|
1170
|
-
}
|
|
1171
|
-
interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
1172
|
-
_zod: $ZodIntersectionInternals<A, B>;
|
|
1173
|
-
}
|
|
1174
|
-
declare const $ZodIntersection: $constructor<$ZodIntersection>;
|
|
1175
|
-
interface $ZodTupleDef<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodTypeDef {
|
|
1176
|
-
type: "tuple";
|
|
1177
|
-
items: T;
|
|
1178
|
-
rest: Rest;
|
|
1179
|
-
}
|
|
1180
|
-
type $InferTupleInputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleInputTypeWithOptionals<T>, ...(Rest extends SomeType ? input<Rest>[] : [])];
|
|
1181
|
-
type TupleInputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: input<T[k]>; };
|
|
1182
|
-
type TupleInputTypeWithOptionals<T extends TupleItems> = T extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optin"] extends "optional" ? [...TupleInputTypeWithOptionals<Prefix>, input<Tail>?] : TupleInputTypeNoOptionals<T> : [];
|
|
1183
|
-
type $InferTupleOutputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleOutputTypeWithOptionals<T>, ...(Rest extends SomeType ? output<Rest>[] : [])];
|
|
1184
|
-
type TupleOutputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: output<T[k]>; };
|
|
1185
|
-
type TupleOutputTypeWithOptionals<T extends TupleItems> = T extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optout"] extends "optional" ? [...TupleOutputTypeWithOptionals<Prefix>, output<Tail>?] : TupleOutputTypeNoOptionals<T> : [];
|
|
1186
|
-
interface $ZodTupleInternals<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends _$ZodTypeInternals {
|
|
1187
|
-
def: $ZodTupleDef<T, Rest>;
|
|
1188
|
-
isst: $ZodIssueInvalidType | $ZodIssueTooBig<unknown[]> | $ZodIssueTooSmall<unknown[]>;
|
|
1189
|
-
output: $InferTupleOutputType<T, Rest>;
|
|
1190
|
-
input: $InferTupleInputType<T, Rest>;
|
|
1191
|
-
}
|
|
1192
|
-
interface $ZodTuple<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodType {
|
|
1193
|
-
_zod: $ZodTupleInternals<T, Rest>;
|
|
1194
|
-
}
|
|
1195
|
-
declare const $ZodTuple: $constructor<$ZodTuple>;
|
|
1196
|
-
type $ZodRecordKey = $ZodType<string | number | symbol, unknown>;
|
|
1197
|
-
interface $ZodRecordDef<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1198
|
-
type: "record";
|
|
1199
|
-
keyType: Key;
|
|
1200
|
-
valueType: Value;
|
|
1201
|
-
/** @default "strict" - errors on keys not matching keyType. "loose" passes through non-matching keys unchanged. */
|
|
1202
|
-
mode?: "strict" | "loose";
|
|
1203
|
-
}
|
|
1204
|
-
type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<output<Key>, output<Value>>> : Record<output<Key>, output<Value>>;
|
|
1205
|
-
type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<input<Key> & PropertyKey, input<Value>>> : Record<input<Key> & PropertyKey, input<Value>>;
|
|
1206
|
-
interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key, Value>, $InferZodRecordInput<Key, Value>> {
|
|
1207
|
-
def: $ZodRecordDef<Key, Value>;
|
|
1208
|
-
isst: $ZodIssueInvalidType | $ZodIssueInvalidKey<Record<PropertyKey, unknown>>;
|
|
1209
|
-
optin?: "optional" | undefined;
|
|
1210
|
-
optout?: "optional" | undefined;
|
|
1211
|
-
}
|
|
1212
|
-
type $partial = {
|
|
1213
|
-
"~~partial": true;
|
|
1214
|
-
};
|
|
1215
|
-
interface $ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodType {
|
|
1216
|
-
_zod: $ZodRecordInternals<Key, Value>;
|
|
1217
|
-
}
|
|
1218
|
-
declare const $ZodRecord: $constructor<$ZodRecord>;
|
|
1219
|
-
interface $ZodMapDef<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1220
|
-
type: "map";
|
|
1221
|
-
keyType: Key;
|
|
1222
|
-
valueType: Value;
|
|
1223
|
-
}
|
|
1224
|
-
interface $ZodMapInternals<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeInternals<Map<output<Key>, output<Value>>, Map<input<Key>, input<Value>>> {
|
|
1225
|
-
def: $ZodMapDef<Key, Value>;
|
|
1226
|
-
isst: $ZodIssueInvalidType | $ZodIssueInvalidKey | $ZodIssueInvalidElement<unknown>;
|
|
1227
|
-
optin?: "optional" | undefined;
|
|
1228
|
-
optout?: "optional" | undefined;
|
|
1229
|
-
}
|
|
1230
|
-
interface $ZodMap<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodType {
|
|
1231
|
-
_zod: $ZodMapInternals<Key, Value>;
|
|
1232
|
-
}
|
|
1233
|
-
declare const $ZodMap: $constructor<$ZodMap>;
|
|
1234
|
-
interface $ZodSetDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1235
|
-
type: "set";
|
|
1236
|
-
valueType: T;
|
|
1237
|
-
}
|
|
1238
|
-
interface $ZodSetInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Set<output<T>>, Set<input<T>>> {
|
|
1239
|
-
def: $ZodSetDef<T>;
|
|
1240
|
-
isst: $ZodIssueInvalidType;
|
|
1241
|
-
optin?: "optional" | undefined;
|
|
1242
|
-
optout?: "optional" | undefined;
|
|
1243
|
-
}
|
|
1244
|
-
interface $ZodSet<T extends SomeType = $ZodType> extends $ZodType {
|
|
1245
|
-
_zod: $ZodSetInternals<T>;
|
|
1246
|
-
}
|
|
1247
|
-
declare const $ZodSet: $constructor<$ZodSet>;
|
|
1248
|
-
type $InferEnumOutput<T extends EnumLike> = T[keyof T] & {};
|
|
1249
|
-
type $InferEnumInput<T extends EnumLike> = T[keyof T] & {};
|
|
1250
|
-
interface $ZodEnumDef<T extends EnumLike = EnumLike> extends $ZodTypeDef {
|
|
1251
|
-
type: "enum";
|
|
1252
|
-
entries: T;
|
|
1253
|
-
}
|
|
1254
|
-
interface $ZodEnumInternals<
|
|
1255
|
-
/** @ts-ignore Cast variance */
|
|
1256
|
-
out T extends EnumLike = EnumLike> extends $ZodTypeInternals<$InferEnumOutput<T>, $InferEnumInput<T>> {
|
|
1257
|
-
def: $ZodEnumDef<T>;
|
|
1258
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
1259
|
-
values: PrimitiveSet;
|
|
1260
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
1261
|
-
pattern: RegExp;
|
|
1262
|
-
isst: $ZodIssueInvalidValue;
|
|
1263
|
-
}
|
|
1264
|
-
interface $ZodEnum<T extends EnumLike = EnumLike> extends $ZodType {
|
|
1265
|
-
_zod: $ZodEnumInternals<T>;
|
|
1266
|
-
}
|
|
1267
|
-
declare const $ZodEnum: $constructor<$ZodEnum>;
|
|
1268
|
-
interface $ZodLiteralDef<T extends Literal> extends $ZodTypeDef {
|
|
1269
|
-
type: "literal";
|
|
1270
|
-
values: T[];
|
|
1271
|
-
}
|
|
1272
|
-
interface $ZodLiteralInternals<T extends Literal = Literal> extends $ZodTypeInternals<T, T> {
|
|
1273
|
-
def: $ZodLiteralDef<T>;
|
|
1274
|
-
values: Set<T>;
|
|
1275
|
-
pattern: RegExp;
|
|
1276
|
-
isst: $ZodIssueInvalidValue;
|
|
1277
|
-
}
|
|
1278
|
-
interface $ZodLiteral<T extends Literal = Literal> extends $ZodType {
|
|
1279
|
-
_zod: $ZodLiteralInternals<T>;
|
|
1280
|
-
}
|
|
1281
|
-
declare const $ZodLiteral: $constructor<$ZodLiteral>;
|
|
1282
|
-
type _File = typeof globalThis extends {
|
|
1283
|
-
File: infer F extends new (...args: any[]) => any;
|
|
1284
|
-
} ? InstanceType<F> : {};
|
|
1285
|
-
/** Do not reference this directly. */
|
|
1286
|
-
interface File extends _File {
|
|
1287
|
-
readonly type: string;
|
|
1288
|
-
readonly size: number;
|
|
1289
|
-
}
|
|
1290
|
-
interface $ZodFileDef extends $ZodTypeDef {
|
|
1291
|
-
type: "file";
|
|
1292
|
-
}
|
|
1293
|
-
interface $ZodFileInternals extends $ZodTypeInternals<File, File> {
|
|
1294
|
-
def: $ZodFileDef;
|
|
1295
|
-
isst: $ZodIssueInvalidType;
|
|
1296
|
-
bag: LoosePartial<{
|
|
1297
|
-
minimum: number;
|
|
1298
|
-
maximum: number;
|
|
1299
|
-
mime: MimeTypes[];
|
|
1300
|
-
}>;
|
|
1301
|
-
}
|
|
1302
|
-
interface $ZodFile extends $ZodType {
|
|
1303
|
-
_zod: $ZodFileInternals;
|
|
1304
|
-
}
|
|
1305
|
-
declare const $ZodFile: $constructor<$ZodFile>;
|
|
1306
|
-
interface $ZodTransformDef extends $ZodTypeDef {
|
|
1307
|
-
type: "transform";
|
|
1308
|
-
transform: (input: unknown, payload: ParsePayload<unknown>) => MaybeAsync<unknown>;
|
|
1309
|
-
}
|
|
1310
|
-
interface $ZodTransformInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I> {
|
|
1311
|
-
def: $ZodTransformDef;
|
|
1312
|
-
isst: never;
|
|
1313
|
-
}
|
|
1314
|
-
interface $ZodTransform<O = unknown, I = unknown> extends $ZodType {
|
|
1315
|
-
_zod: $ZodTransformInternals<O, I>;
|
|
1316
|
-
}
|
|
1317
|
-
declare const $ZodTransform: $constructor<$ZodTransform>;
|
|
1318
|
-
interface $ZodOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1319
|
-
type: "optional";
|
|
1320
|
-
innerType: T;
|
|
1321
|
-
}
|
|
1322
|
-
interface $ZodOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | undefined, input<T> | undefined> {
|
|
1323
|
-
def: $ZodOptionalDef<T>;
|
|
1324
|
-
optin: "optional";
|
|
1325
|
-
optout: "optional";
|
|
1326
|
-
isst: never;
|
|
1327
|
-
values: T["_zod"]["values"];
|
|
1328
|
-
pattern: T["_zod"]["pattern"];
|
|
1329
|
-
}
|
|
1330
|
-
interface $ZodOptional<T extends SomeType = $ZodType> extends $ZodType {
|
|
1331
|
-
_zod: $ZodOptionalInternals<T>;
|
|
1332
|
-
}
|
|
1333
|
-
declare const $ZodOptional: $constructor<$ZodOptional>;
|
|
1334
|
-
interface $ZodExactOptionalDef<T extends SomeType = $ZodType> extends $ZodOptionalDef<T> {}
|
|
1335
|
-
interface $ZodExactOptionalInternals<T extends SomeType = $ZodType> extends $ZodOptionalInternals<T> {
|
|
1336
|
-
def: $ZodExactOptionalDef<T>;
|
|
1337
|
-
output: output<T>;
|
|
1338
|
-
input: input<T>;
|
|
1339
|
-
}
|
|
1340
|
-
interface $ZodExactOptional<T extends SomeType = $ZodType> extends $ZodType {
|
|
1341
|
-
_zod: $ZodExactOptionalInternals<T>;
|
|
1342
|
-
}
|
|
1343
|
-
declare const $ZodExactOptional: $constructor<$ZodExactOptional>;
|
|
1344
|
-
interface $ZodNullableDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1345
|
-
type: "nullable";
|
|
1346
|
-
innerType: T;
|
|
1347
|
-
}
|
|
1348
|
-
interface $ZodNullableInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | null, input<T> | null> {
|
|
1349
|
-
def: $ZodNullableDef<T>;
|
|
1350
|
-
optin: T["_zod"]["optin"];
|
|
1351
|
-
optout: T["_zod"]["optout"];
|
|
1352
|
-
isst: never;
|
|
1353
|
-
values: T["_zod"]["values"];
|
|
1354
|
-
pattern: T["_zod"]["pattern"];
|
|
1355
|
-
}
|
|
1356
|
-
interface $ZodNullable<T extends SomeType = $ZodType> extends $ZodType {
|
|
1357
|
-
_zod: $ZodNullableInternals<T>;
|
|
1358
|
-
}
|
|
1359
|
-
declare const $ZodNullable: $constructor<$ZodNullable>;
|
|
1360
|
-
interface $ZodDefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1361
|
-
type: "default";
|
|
1362
|
-
innerType: T;
|
|
1363
|
-
/** The default value. May be a getter. */
|
|
1364
|
-
defaultValue: NoUndefined<output<T>>;
|
|
1365
|
-
}
|
|
1366
|
-
interface $ZodDefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input<T> | undefined> {
|
|
1367
|
-
def: $ZodDefaultDef<T>;
|
|
1368
|
-
optin: "optional";
|
|
1369
|
-
optout?: "optional" | undefined;
|
|
1370
|
-
isst: never;
|
|
1371
|
-
values: T["_zod"]["values"];
|
|
1372
|
-
}
|
|
1373
|
-
interface $ZodDefault<T extends SomeType = $ZodType> extends $ZodType {
|
|
1374
|
-
_zod: $ZodDefaultInternals<T>;
|
|
1375
|
-
}
|
|
1376
|
-
declare const $ZodDefault: $constructor<$ZodDefault>;
|
|
1377
|
-
interface $ZodPrefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1378
|
-
type: "prefault";
|
|
1379
|
-
innerType: T;
|
|
1380
|
-
/** The default value. May be a getter. */
|
|
1381
|
-
defaultValue: input<T>;
|
|
1382
|
-
}
|
|
1383
|
-
interface $ZodPrefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input<T> | undefined> {
|
|
1384
|
-
def: $ZodPrefaultDef<T>;
|
|
1385
|
-
optin: "optional";
|
|
1386
|
-
optout?: "optional" | undefined;
|
|
1387
|
-
isst: never;
|
|
1388
|
-
values: T["_zod"]["values"];
|
|
1389
|
-
}
|
|
1390
|
-
interface $ZodPrefault<T extends SomeType = $ZodType> extends $ZodType {
|
|
1391
|
-
_zod: $ZodPrefaultInternals<T>;
|
|
1392
|
-
}
|
|
1393
|
-
declare const $ZodPrefault: $constructor<$ZodPrefault>;
|
|
1394
|
-
interface $ZodNonOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1395
|
-
type: "nonoptional";
|
|
1396
|
-
innerType: T;
|
|
1397
|
-
}
|
|
1398
|
-
interface $ZodNonOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, NoUndefined<input<T>>> {
|
|
1399
|
-
def: $ZodNonOptionalDef<T>;
|
|
1400
|
-
isst: $ZodIssueInvalidType;
|
|
1401
|
-
values: T["_zod"]["values"];
|
|
1402
|
-
optin: "optional" | undefined;
|
|
1403
|
-
optout: "optional" | undefined;
|
|
1404
|
-
}
|
|
1405
|
-
interface $ZodNonOptional<T extends SomeType = $ZodType> extends $ZodType {
|
|
1406
|
-
_zod: $ZodNonOptionalInternals<T>;
|
|
1407
|
-
}
|
|
1408
|
-
declare const $ZodNonOptional: $constructor<$ZodNonOptional>;
|
|
1409
|
-
interface $ZodSuccessDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1410
|
-
type: "success";
|
|
1411
|
-
innerType: T;
|
|
1412
|
-
}
|
|
1413
|
-
interface $ZodSuccessInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<boolean, input<T>> {
|
|
1414
|
-
def: $ZodSuccessDef<T>;
|
|
1415
|
-
isst: never;
|
|
1416
|
-
optin: T["_zod"]["optin"];
|
|
1417
|
-
optout: "optional" | undefined;
|
|
1418
|
-
}
|
|
1419
|
-
interface $ZodSuccess<T extends SomeType = $ZodType> extends $ZodType {
|
|
1420
|
-
_zod: $ZodSuccessInternals<T>;
|
|
1421
|
-
}
|
|
1422
|
-
declare const $ZodSuccess: $constructor<$ZodSuccess>;
|
|
1423
|
-
interface $ZodCatchCtx extends ParsePayload {
|
|
1424
|
-
/** @deprecated Use `ctx.issues` */
|
|
1425
|
-
error: {
|
|
1426
|
-
issues: $ZodIssue[];
|
|
1427
|
-
};
|
|
1428
|
-
/** @deprecated Use `ctx.value` */
|
|
1429
|
-
input: unknown;
|
|
1430
|
-
}
|
|
1431
|
-
interface $ZodCatchDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1432
|
-
type: "catch";
|
|
1433
|
-
innerType: T;
|
|
1434
|
-
catchValue: (ctx: $ZodCatchCtx) => unknown;
|
|
1435
|
-
}
|
|
1436
|
-
interface $ZodCatchInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T>> {
|
|
1437
|
-
def: $ZodCatchDef<T>;
|
|
1438
|
-
optin: T["_zod"]["optin"];
|
|
1439
|
-
optout: T["_zod"]["optout"];
|
|
1440
|
-
isst: never;
|
|
1441
|
-
values: T["_zod"]["values"];
|
|
1442
|
-
}
|
|
1443
|
-
interface $ZodCatch<T extends SomeType = $ZodType> extends $ZodType {
|
|
1444
|
-
_zod: $ZodCatchInternals<T>;
|
|
1445
|
-
}
|
|
1446
|
-
declare const $ZodCatch: $constructor<$ZodCatch>;
|
|
1447
|
-
interface $ZodNaNDef extends $ZodTypeDef {
|
|
1448
|
-
type: "nan";
|
|
1449
|
-
}
|
|
1450
|
-
interface $ZodNaNInternals extends $ZodTypeInternals<number, number> {
|
|
1451
|
-
def: $ZodNaNDef;
|
|
1452
|
-
isst: $ZodIssueInvalidType;
|
|
1453
|
-
}
|
|
1454
|
-
interface $ZodNaN extends $ZodType {
|
|
1455
|
-
_zod: $ZodNaNInternals;
|
|
1456
|
-
}
|
|
1457
|
-
declare const $ZodNaN: $constructor<$ZodNaN>;
|
|
1458
|
-
interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1459
|
-
type: "pipe";
|
|
1460
|
-
in: A;
|
|
1461
|
-
out: B;
|
|
1462
|
-
/** Only defined inside $ZodCodec instances. */
|
|
1463
|
-
transform?: (value: output<A>, payload: ParsePayload<output<A>>) => MaybeAsync<input<B>>;
|
|
1464
|
-
/** Only defined inside $ZodCodec instances. */
|
|
1465
|
-
reverseTransform?: (value: input<B>, payload: ParsePayload<input<B>>) => MaybeAsync<output<A>>;
|
|
1466
|
-
}
|
|
1467
|
-
interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<B>, input<A>> {
|
|
1468
|
-
def: $ZodPipeDef<A, B>;
|
|
1469
|
-
isst: never;
|
|
1470
|
-
values: A["_zod"]["values"];
|
|
1471
|
-
optin: A["_zod"]["optin"];
|
|
1472
|
-
optout: B["_zod"]["optout"];
|
|
1473
|
-
propValues: A["_zod"]["propValues"];
|
|
1474
|
-
}
|
|
1475
|
-
interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
1476
|
-
_zod: $ZodPipeInternals<A, B>;
|
|
1477
|
-
}
|
|
1478
|
-
declare const $ZodPipe: $constructor<$ZodPipe>;
|
|
1479
|
-
interface $ZodCodecDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodPipeDef<A, B> {
|
|
1480
|
-
transform: (value: output<A>, payload: ParsePayload<output<A>>) => MaybeAsync<input<B>>;
|
|
1481
|
-
reverseTransform: (value: input<B>, payload: ParsePayload<input<B>>) => MaybeAsync<output<A>>;
|
|
1482
|
-
}
|
|
1483
|
-
interface $ZodCodecInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<B>, input<A>> {
|
|
1484
|
-
def: $ZodCodecDef<A, B>;
|
|
1485
|
-
isst: never;
|
|
1486
|
-
values: A["_zod"]["values"];
|
|
1487
|
-
optin: A["_zod"]["optin"];
|
|
1488
|
-
optout: B["_zod"]["optout"];
|
|
1489
|
-
propValues: A["_zod"]["propValues"];
|
|
1490
|
-
}
|
|
1491
|
-
interface $ZodCodec<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
1492
|
-
_zod: $ZodCodecInternals<A, B>;
|
|
1493
|
-
}
|
|
1494
|
-
declare const $ZodCodec: $constructor<$ZodCodec>;
|
|
1495
|
-
interface $ZodPreprocessDef<B extends SomeType = $ZodType> extends $ZodPipeDef<$ZodTransform, B> {
|
|
1496
|
-
in: $ZodTransform;
|
|
1497
|
-
out: B;
|
|
1498
|
-
}
|
|
1499
|
-
interface $ZodPreprocessInternals<B extends SomeType = $ZodType> extends $ZodPipeInternals<$ZodTransform, B> {
|
|
1500
|
-
def: $ZodPreprocessDef<B>;
|
|
1501
|
-
optin: B["_zod"]["optin"];
|
|
1502
|
-
optout: B["_zod"]["optout"];
|
|
1503
|
-
}
|
|
1504
|
-
interface $ZodPreprocess<B extends SomeType = $ZodType> extends $ZodPipe<$ZodTransform, B> {
|
|
1505
|
-
_zod: $ZodPreprocessInternals<B>;
|
|
1506
|
-
}
|
|
1507
|
-
declare const $ZodPreprocess: $constructor<$ZodPreprocess>;
|
|
1508
|
-
interface $ZodReadonlyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1509
|
-
type: "readonly";
|
|
1510
|
-
innerType: T;
|
|
1511
|
-
}
|
|
1512
|
-
interface $ZodReadonlyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output<T>>, MakeReadonly<input<T>>> {
|
|
1513
|
-
def: $ZodReadonlyDef<T>;
|
|
1514
|
-
optin: T["_zod"]["optin"];
|
|
1515
|
-
optout: T["_zod"]["optout"];
|
|
1516
|
-
isst: never;
|
|
1517
|
-
propValues: T["_zod"]["propValues"];
|
|
1518
|
-
values: T["_zod"]["values"];
|
|
1519
|
-
}
|
|
1520
|
-
interface $ZodReadonly<T extends SomeType = $ZodType> extends $ZodType {
|
|
1521
|
-
_zod: $ZodReadonlyInternals<T>;
|
|
1522
|
-
}
|
|
1523
|
-
declare const $ZodReadonly: $constructor<$ZodReadonly>;
|
|
1524
|
-
interface $ZodTemplateLiteralDef extends $ZodTypeDef {
|
|
1525
|
-
type: "template_literal";
|
|
1526
|
-
parts: $ZodTemplateLiteralPart[];
|
|
1527
|
-
format?: string | undefined;
|
|
1528
|
-
}
|
|
1529
|
-
interface $ZodTemplateLiteralInternals<Template extends string = string> extends $ZodTypeInternals<Template, Template> {
|
|
1530
|
-
pattern: RegExp;
|
|
1531
|
-
def: $ZodTemplateLiteralDef;
|
|
1532
|
-
isst: $ZodIssueInvalidType;
|
|
1533
|
-
}
|
|
1534
|
-
interface $ZodTemplateLiteral<Template extends string = string> extends $ZodType {
|
|
1535
|
-
_zod: $ZodTemplateLiteralInternals<Template>;
|
|
1536
|
-
}
|
|
1537
|
-
type LiteralPart = Exclude<Literal, symbol>;
|
|
1538
|
-
interface SchemaPartInternals extends $ZodTypeInternals<LiteralPart, LiteralPart> {
|
|
1539
|
-
pattern: RegExp;
|
|
1540
|
-
}
|
|
1541
|
-
interface SchemaPart extends $ZodType {
|
|
1542
|
-
_zod: SchemaPartInternals;
|
|
1543
|
-
}
|
|
1544
|
-
type $ZodTemplateLiteralPart = LiteralPart | SchemaPart;
|
|
1545
|
-
type UndefinedToEmptyString<T> = T extends undefined ? "" : T;
|
|
1546
|
-
type AppendToTemplateLiteral<Template extends string, Suffix extends LiteralPart | $ZodType> = Suffix extends LiteralPart ? `${Template}${UndefinedToEmptyString<Suffix>}` : Suffix extends $ZodType ? `${Template}${output<Suffix> extends (infer T extends LiteralPart) ? UndefinedToEmptyString<T> : never}` : never;
|
|
1547
|
-
type ConcatenateTupleOfStrings<T extends string[]> = T extends [infer First extends string, ...infer Rest extends string[]] ? Rest extends string[] ? First extends "" ? ConcatenateTupleOfStrings<Rest> : `${First}${ConcatenateTupleOfStrings<Rest>}` : never : "";
|
|
1548
|
-
type ConvertPartsToStringTuple<Parts extends $ZodTemplateLiteralPart[]> = { [K in keyof Parts]: Parts[K] extends LiteralPart ? `${UndefinedToEmptyString<Parts[K]>}` : Parts[K] extends $ZodType ? `${output<Parts[K]> extends (infer T extends LiteralPart) ? UndefinedToEmptyString<T> : never}` : never; };
|
|
1549
|
-
type ToTemplateLiteral<Parts extends $ZodTemplateLiteralPart[]> = ConcatenateTupleOfStrings<ConvertPartsToStringTuple<Parts>>;
|
|
1550
|
-
type $PartsToTemplateLiteral<Parts extends $ZodTemplateLiteralPart[]> = [] extends Parts ? `` : Parts extends [...infer Rest, infer Last extends $ZodTemplateLiteralPart] ? Rest extends $ZodTemplateLiteralPart[] ? AppendToTemplateLiteral<$PartsToTemplateLiteral<Rest>, Last> : never : never;
|
|
1551
|
-
declare const $ZodTemplateLiteral: $constructor<$ZodTemplateLiteral>;
|
|
1552
|
-
type $ZodFunctionArgs = $ZodType<unknown[], unknown[]>;
|
|
1553
|
-
type $ZodFunctionIn = $ZodFunctionArgs;
|
|
1554
|
-
type $ZodFunctionOut = $ZodType;
|
|
1555
|
-
type $InferInnerFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => input<Returns>;
|
|
1556
|
-
type $InferInnerFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => MaybeAsync<input<Returns>>;
|
|
1557
|
-
type $InferOuterFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => output<Returns>;
|
|
1558
|
-
type $InferOuterFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => Promise<output<Returns>>;
|
|
1559
|
-
interface $ZodFunctionDef<In extends $ZodFunctionIn = $ZodFunctionIn, Out extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodTypeDef {
|
|
1560
|
-
type: "function";
|
|
1561
|
-
input: In;
|
|
1562
|
-
output: Out;
|
|
1563
|
-
}
|
|
1564
|
-
interface $ZodFunctionInternals<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> extends $ZodTypeInternals<$InferOuterFunctionType<Args, Returns>, $InferInnerFunctionType<Args, Returns>> {
|
|
1565
|
-
def: $ZodFunctionDef<Args, Returns>;
|
|
1566
|
-
isst: $ZodIssueInvalidType;
|
|
1567
|
-
}
|
|
1568
|
-
interface $ZodFunction<Args extends $ZodFunctionIn = $ZodFunctionIn, Returns extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodType<any, any, $ZodFunctionInternals<Args, Returns>> {
|
|
1569
|
-
/** @deprecated */
|
|
1570
|
-
_def: $ZodFunctionDef<Args, Returns>;
|
|
1571
|
-
_input: $InferInnerFunctionType<Args, Returns>;
|
|
1572
|
-
_output: $InferOuterFunctionType<Args, Returns>;
|
|
1573
|
-
implement<F extends $InferInnerFunctionType<Args, Returns>>(func: F): (...args: Parameters<this["_output"]>) => ReturnType<F> extends ReturnType<this["_output"]> ? ReturnType<F> : ReturnType<this["_output"]>;
|
|
1574
|
-
implementAsync<F extends $InferInnerFunctionTypeAsync<Args, Returns>>(func: F): F extends $InferOuterFunctionTypeAsync<Args, Returns> ? F : $InferOuterFunctionTypeAsync<Args, Returns>;
|
|
1575
|
-
input<const Items extends TupleItems, const Rest extends $ZodFunctionOut = $ZodFunctionOut>(args: Items, rest?: Rest): $ZodFunction<$ZodTuple<Items, Rest>, Returns>;
|
|
1576
|
-
input<NewArgs extends $ZodFunctionIn>(args: NewArgs): $ZodFunction<NewArgs, Returns>;
|
|
1577
|
-
input(...args: any[]): $ZodFunction<any, Returns>;
|
|
1578
|
-
output<NewReturns extends $ZodType>(output: NewReturns): $ZodFunction<Args, NewReturns>;
|
|
1579
|
-
}
|
|
1580
|
-
interface $ZodFunctionParams<I extends $ZodFunctionIn, O extends $ZodType> {
|
|
1581
|
-
input?: I;
|
|
1582
|
-
output?: O;
|
|
1583
|
-
}
|
|
1584
|
-
declare const $ZodFunction: $constructor<$ZodFunction>;
|
|
1585
|
-
interface $ZodPromiseDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1586
|
-
type: "promise";
|
|
1587
|
-
innerType: T;
|
|
1588
|
-
}
|
|
1589
|
-
interface $ZodPromiseInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Promise<output<T>>, MaybeAsync<input<T>>> {
|
|
1590
|
-
def: $ZodPromiseDef<T>;
|
|
1591
|
-
isst: never;
|
|
1592
|
-
}
|
|
1593
|
-
interface $ZodPromise<T extends SomeType = $ZodType> extends $ZodType {
|
|
1594
|
-
_zod: $ZodPromiseInternals<T>;
|
|
1595
|
-
}
|
|
1596
|
-
declare const $ZodPromise: $constructor<$ZodPromise>;
|
|
1597
|
-
interface $ZodLazyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1598
|
-
type: "lazy";
|
|
1599
|
-
getter: () => T;
|
|
1600
|
-
}
|
|
1601
|
-
interface $ZodLazyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T>> {
|
|
1602
|
-
def: $ZodLazyDef<T>;
|
|
1603
|
-
isst: never;
|
|
1604
|
-
/** Auto-cached way to retrieve the inner schema */
|
|
1605
|
-
innerType: T;
|
|
1606
|
-
pattern: T["_zod"]["pattern"];
|
|
1607
|
-
propValues: T["_zod"]["propValues"];
|
|
1608
|
-
optin: T["_zod"]["optin"];
|
|
1609
|
-
optout: T["_zod"]["optout"];
|
|
1610
|
-
}
|
|
1611
|
-
interface $ZodLazy<T extends SomeType = $ZodType> extends $ZodType {
|
|
1612
|
-
_zod: $ZodLazyInternals<T>;
|
|
1613
|
-
}
|
|
1614
|
-
declare const $ZodLazy: $constructor<$ZodLazy>;
|
|
1615
|
-
interface $ZodCustomDef<O = unknown> extends $ZodTypeDef, $ZodCheckDef {
|
|
1616
|
-
type: "custom";
|
|
1617
|
-
check: "custom";
|
|
1618
|
-
path?: PropertyKey[] | undefined;
|
|
1619
|
-
error?: $ZodErrorMap | undefined;
|
|
1620
|
-
params?: Record<string, any> | undefined;
|
|
1621
|
-
fn: (arg: O) => unknown;
|
|
1622
|
-
}
|
|
1623
|
-
interface $ZodCustomInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I>, $ZodCheckInternals<O> {
|
|
1624
|
-
def: $ZodCustomDef;
|
|
1625
|
-
issc: $ZodIssue;
|
|
1626
|
-
isst: never;
|
|
1627
|
-
bag: LoosePartial<{
|
|
1628
|
-
Class: typeof Class;
|
|
1629
|
-
}>;
|
|
1630
|
-
}
|
|
1631
|
-
interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
|
|
1632
|
-
_zod: $ZodCustomInternals<O, I>;
|
|
1633
|
-
}
|
|
1634
|
-
declare const $ZodCustom: $constructor<$ZodCustom>;
|
|
1635
|
-
type $ZodTypes = $ZodString | $ZodNumber | $ZodBigInt | $ZodBoolean | $ZodDate | $ZodSymbol | $ZodUndefined | $ZodNullable | $ZodNull | $ZodAny | $ZodUnknown | $ZodNever | $ZodVoid | $ZodArray | $ZodObject | $ZodUnion | $ZodIntersection | $ZodTuple | $ZodRecord | $ZodMap | $ZodSet | $ZodLiteral | $ZodEnum | $ZodFunction | $ZodPromise | $ZodLazy | $ZodOptional | $ZodDefault | $ZodPrefault | $ZodTemplateLiteral | $ZodCustom | $ZodTransform | $ZodNonOptional | $ZodReadonly | $ZodNaN | $ZodPipe | $ZodSuccess | $ZodCatch | $ZodFile;
|
|
1636
|
-
type $ZodStringFormatTypes = $ZodGUID | $ZodUUID | $ZodEmail | $ZodURL | $ZodEmoji | $ZodNanoID | $ZodCUID | $ZodCUID2 | $ZodULID | $ZodXID | $ZodKSUID | $ZodISODateTime | $ZodISODate | $ZodISOTime | $ZodISODuration | $ZodIPv4 | $ZodIPv6 | $ZodMAC | $ZodCIDRv4 | $ZodCIDRv6 | $ZodBase64 | $ZodBase64URL | $ZodE164 | $ZodJWT | $ZodCustomStringFormat<"hex"> | $ZodCustomStringFormat<HashFormat> | $ZodCustomStringFormat<"hostname">;
|
|
1637
|
-
declare namespace checks_d_exports {
|
|
1638
|
-
export { $ZodBigIntFormats, $ZodCheck, $ZodCheckBigIntFormat, $ZodCheckBigIntFormatDef, $ZodCheckBigIntFormatInternals, $ZodCheckDef, $ZodCheckEndsWith, $ZodCheckEndsWithDef, $ZodCheckEndsWithInternals, $ZodCheckGreaterThan, $ZodCheckGreaterThanDef, $ZodCheckGreaterThanInternals, $ZodCheckIncludes, $ZodCheckIncludesDef, $ZodCheckIncludesInternals, $ZodCheckInternals, $ZodCheckLengthEquals, $ZodCheckLengthEqualsDef, $ZodCheckLengthEqualsInternals, $ZodCheckLessThan, $ZodCheckLessThanDef, $ZodCheckLessThanInternals, $ZodCheckLowerCase, $ZodCheckLowerCaseDef, $ZodCheckLowerCaseInternals, $ZodCheckMaxLength, $ZodCheckMaxLengthDef, $ZodCheckMaxLengthInternals, $ZodCheckMaxSize, $ZodCheckMaxSizeDef, $ZodCheckMaxSizeInternals, $ZodCheckMimeType, $ZodCheckMimeTypeDef, $ZodCheckMimeTypeInternals, $ZodCheckMinLength, $ZodCheckMinLengthDef, $ZodCheckMinLengthInternals, $ZodCheckMinSize, $ZodCheckMinSizeDef, $ZodCheckMinSizeInternals, $ZodCheckMultipleOf, $ZodCheckMultipleOfDef, $ZodCheckMultipleOfInternals, $ZodCheckNumberFormat, $ZodCheckNumberFormatDef, $ZodCheckNumberFormatInternals, $ZodCheckOverwrite, $ZodCheckOverwriteDef, $ZodCheckOverwriteInternals, $ZodCheckProperty, $ZodCheckPropertyDef, $ZodCheckPropertyInternals, $ZodCheckRegex, $ZodCheckRegexDef, $ZodCheckRegexInternals, $ZodCheckSizeEquals, $ZodCheckSizeEqualsDef, $ZodCheckSizeEqualsInternals, $ZodCheckStartsWith, $ZodCheckStartsWithDef, $ZodCheckStartsWithInternals, $ZodCheckStringFormat, $ZodCheckStringFormatDef, $ZodCheckStringFormatInternals, $ZodCheckUpperCase, $ZodCheckUpperCaseDef, $ZodCheckUpperCaseInternals, $ZodChecks, $ZodNumberFormats, $ZodStringFormatChecks, $ZodStringFormats };
|
|
1639
|
-
}
|
|
1640
|
-
interface $ZodCheckDef {
|
|
1641
|
-
check: string;
|
|
1642
|
-
error?: $ZodErrorMap<never> | undefined;
|
|
1643
|
-
/** If true, no later checks will be executed if this check fails. Default `false`. */
|
|
1644
|
-
abort?: boolean | undefined;
|
|
1645
|
-
/** If provided, the check runs only when this returns `true`. By default, it is skipped if prior parsing produced aborting issues. */
|
|
1646
|
-
when?: ((payload: ParsePayload) => boolean) | undefined;
|
|
1647
|
-
}
|
|
1648
|
-
interface $ZodCheckInternals<T> {
|
|
1649
|
-
def: $ZodCheckDef;
|
|
1650
|
-
/** The set of issues this check might throw. */
|
|
1651
|
-
issc?: $ZodIssueBase;
|
|
1652
|
-
check(payload: ParsePayload<T>): MaybeAsync<void>;
|
|
1653
|
-
onattach: ((schema: $ZodType) => void)[];
|
|
1654
|
-
}
|
|
1655
|
-
interface $ZodCheck<in T = never> {
|
|
1656
|
-
_zod: $ZodCheckInternals<T>;
|
|
1657
|
-
}
|
|
1658
|
-
declare const $ZodCheck: $constructor<$ZodCheck<any>>;
|
|
1659
|
-
interface $ZodCheckLessThanDef extends $ZodCheckDef {
|
|
1660
|
-
check: "less_than";
|
|
1661
|
-
value: Numeric;
|
|
1662
|
-
inclusive: boolean;
|
|
1663
|
-
}
|
|
1664
|
-
interface $ZodCheckLessThanInternals<T extends Numeric = Numeric> extends $ZodCheckInternals<T> {
|
|
1665
|
-
def: $ZodCheckLessThanDef;
|
|
1666
|
-
issc: $ZodIssueTooBig<T>;
|
|
1667
|
-
}
|
|
1668
|
-
interface $ZodCheckLessThan<T extends Numeric = Numeric> extends $ZodCheck<T> {
|
|
1669
|
-
_zod: $ZodCheckLessThanInternals<T>;
|
|
1670
|
-
}
|
|
1671
|
-
declare const $ZodCheckLessThan: $constructor<$ZodCheckLessThan>;
|
|
1672
|
-
interface $ZodCheckGreaterThanDef extends $ZodCheckDef {
|
|
1673
|
-
check: "greater_than";
|
|
1674
|
-
value: Numeric;
|
|
1675
|
-
inclusive: boolean;
|
|
1676
|
-
}
|
|
1677
|
-
interface $ZodCheckGreaterThanInternals<T extends Numeric = Numeric> extends $ZodCheckInternals<T> {
|
|
1678
|
-
def: $ZodCheckGreaterThanDef;
|
|
1679
|
-
issc: $ZodIssueTooSmall<T>;
|
|
1680
|
-
}
|
|
1681
|
-
interface $ZodCheckGreaterThan<T extends Numeric = Numeric> extends $ZodCheck<T> {
|
|
1682
|
-
_zod: $ZodCheckGreaterThanInternals<T>;
|
|
1683
|
-
}
|
|
1684
|
-
declare const $ZodCheckGreaterThan: $constructor<$ZodCheckGreaterThan>;
|
|
1685
|
-
interface $ZodCheckMultipleOfDef<T extends number | bigint = number | bigint> extends $ZodCheckDef {
|
|
1686
|
-
check: "multiple_of";
|
|
1687
|
-
value: T;
|
|
1688
|
-
}
|
|
1689
|
-
interface $ZodCheckMultipleOfInternals<T extends number | bigint = number | bigint> extends $ZodCheckInternals<T> {
|
|
1690
|
-
def: $ZodCheckMultipleOfDef<T>;
|
|
1691
|
-
issc: $ZodIssueNotMultipleOf;
|
|
1692
|
-
}
|
|
1693
|
-
interface $ZodCheckMultipleOf<T extends number | bigint = number | bigint> extends $ZodCheck<T> {
|
|
1694
|
-
_zod: $ZodCheckMultipleOfInternals<T>;
|
|
1695
|
-
}
|
|
1696
|
-
declare const $ZodCheckMultipleOf: $constructor<$ZodCheckMultipleOf<number | bigint>>;
|
|
1697
|
-
type $ZodNumberFormats = "int32" | "uint32" | "float32" | "float64" | "safeint";
|
|
1698
|
-
interface $ZodCheckNumberFormatDef extends $ZodCheckDef {
|
|
1699
|
-
check: "number_format";
|
|
1700
|
-
format: $ZodNumberFormats;
|
|
1701
|
-
}
|
|
1702
|
-
interface $ZodCheckNumberFormatInternals extends $ZodCheckInternals<number> {
|
|
1703
|
-
def: $ZodCheckNumberFormatDef;
|
|
1704
|
-
issc: $ZodIssueInvalidType | $ZodIssueTooBig<"number"> | $ZodIssueTooSmall<"number">;
|
|
1705
|
-
}
|
|
1706
|
-
interface $ZodCheckNumberFormat extends $ZodCheck<number> {
|
|
1707
|
-
_zod: $ZodCheckNumberFormatInternals;
|
|
1708
|
-
}
|
|
1709
|
-
declare const $ZodCheckNumberFormat: $constructor<$ZodCheckNumberFormat>;
|
|
1710
|
-
type $ZodBigIntFormats = "int64" | "uint64";
|
|
1711
|
-
interface $ZodCheckBigIntFormatDef extends $ZodCheckDef {
|
|
1712
|
-
check: "bigint_format";
|
|
1713
|
-
format: $ZodBigIntFormats | undefined;
|
|
1714
|
-
}
|
|
1715
|
-
interface $ZodCheckBigIntFormatInternals extends $ZodCheckInternals<bigint> {
|
|
1716
|
-
def: $ZodCheckBigIntFormatDef;
|
|
1717
|
-
issc: $ZodIssueTooBig<"bigint"> | $ZodIssueTooSmall<"bigint">;
|
|
1718
|
-
}
|
|
1719
|
-
interface $ZodCheckBigIntFormat extends $ZodCheck<bigint> {
|
|
1720
|
-
_zod: $ZodCheckBigIntFormatInternals;
|
|
1721
|
-
}
|
|
1722
|
-
declare const $ZodCheckBigIntFormat: $constructor<$ZodCheckBigIntFormat>;
|
|
1723
|
-
interface $ZodCheckMaxSizeDef extends $ZodCheckDef {
|
|
1724
|
-
check: "max_size";
|
|
1725
|
-
maximum: number;
|
|
1726
|
-
}
|
|
1727
|
-
interface $ZodCheckMaxSizeInternals<T extends HasSize = HasSize> extends $ZodCheckInternals<T> {
|
|
1728
|
-
def: $ZodCheckMaxSizeDef;
|
|
1729
|
-
issc: $ZodIssueTooBig<T>;
|
|
1730
|
-
}
|
|
1731
|
-
interface $ZodCheckMaxSize<T extends HasSize = HasSize> extends $ZodCheck<T> {
|
|
1732
|
-
_zod: $ZodCheckMaxSizeInternals<T>;
|
|
1733
|
-
}
|
|
1734
|
-
declare const $ZodCheckMaxSize: $constructor<$ZodCheckMaxSize>;
|
|
1735
|
-
interface $ZodCheckMinSizeDef extends $ZodCheckDef {
|
|
1736
|
-
check: "min_size";
|
|
1737
|
-
minimum: number;
|
|
1738
|
-
}
|
|
1739
|
-
interface $ZodCheckMinSizeInternals<T extends HasSize = HasSize> extends $ZodCheckInternals<T> {
|
|
1740
|
-
def: $ZodCheckMinSizeDef;
|
|
1741
|
-
issc: $ZodIssueTooSmall<T>;
|
|
1742
|
-
}
|
|
1743
|
-
interface $ZodCheckMinSize<T extends HasSize = HasSize> extends $ZodCheck<T> {
|
|
1744
|
-
_zod: $ZodCheckMinSizeInternals<T>;
|
|
1745
|
-
}
|
|
1746
|
-
declare const $ZodCheckMinSize: $constructor<$ZodCheckMinSize>;
|
|
1747
|
-
interface $ZodCheckSizeEqualsDef extends $ZodCheckDef {
|
|
1748
|
-
check: "size_equals";
|
|
1749
|
-
size: number;
|
|
1750
|
-
}
|
|
1751
|
-
interface $ZodCheckSizeEqualsInternals<T extends HasSize = HasSize> extends $ZodCheckInternals<T> {
|
|
1752
|
-
def: $ZodCheckSizeEqualsDef;
|
|
1753
|
-
issc: $ZodIssueTooBig<T> | $ZodIssueTooSmall<T>;
|
|
1754
|
-
}
|
|
1755
|
-
interface $ZodCheckSizeEquals<T extends HasSize = HasSize> extends $ZodCheck<T> {
|
|
1756
|
-
_zod: $ZodCheckSizeEqualsInternals<T>;
|
|
1757
|
-
}
|
|
1758
|
-
declare const $ZodCheckSizeEquals: $constructor<$ZodCheckSizeEquals>;
|
|
1759
|
-
interface $ZodCheckMaxLengthDef extends $ZodCheckDef {
|
|
1760
|
-
check: "max_length";
|
|
1761
|
-
maximum: number;
|
|
1762
|
-
}
|
|
1763
|
-
interface $ZodCheckMaxLengthInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
|
|
1764
|
-
def: $ZodCheckMaxLengthDef;
|
|
1765
|
-
issc: $ZodIssueTooBig<T>;
|
|
1766
|
-
}
|
|
1767
|
-
interface $ZodCheckMaxLength<T extends HasLength = HasLength> extends $ZodCheck<T> {
|
|
1768
|
-
_zod: $ZodCheckMaxLengthInternals<T>;
|
|
1769
|
-
}
|
|
1770
|
-
declare const $ZodCheckMaxLength: $constructor<$ZodCheckMaxLength>;
|
|
1771
|
-
interface $ZodCheckMinLengthDef extends $ZodCheckDef {
|
|
1772
|
-
check: "min_length";
|
|
1773
|
-
minimum: number;
|
|
1774
|
-
}
|
|
1775
|
-
interface $ZodCheckMinLengthInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
|
|
1776
|
-
def: $ZodCheckMinLengthDef;
|
|
1777
|
-
issc: $ZodIssueTooSmall<T>;
|
|
1778
|
-
}
|
|
1779
|
-
interface $ZodCheckMinLength<T extends HasLength = HasLength> extends $ZodCheck<T> {
|
|
1780
|
-
_zod: $ZodCheckMinLengthInternals<T>;
|
|
1781
|
-
}
|
|
1782
|
-
declare const $ZodCheckMinLength: $constructor<$ZodCheckMinLength>;
|
|
1783
|
-
interface $ZodCheckLengthEqualsDef extends $ZodCheckDef {
|
|
1784
|
-
check: "length_equals";
|
|
1785
|
-
length: number;
|
|
1786
|
-
}
|
|
1787
|
-
interface $ZodCheckLengthEqualsInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
|
|
1788
|
-
def: $ZodCheckLengthEqualsDef;
|
|
1789
|
-
issc: $ZodIssueTooBig<T> | $ZodIssueTooSmall<T>;
|
|
1790
|
-
}
|
|
1791
|
-
interface $ZodCheckLengthEquals<T extends HasLength = HasLength> extends $ZodCheck<T> {
|
|
1792
|
-
_zod: $ZodCheckLengthEqualsInternals<T>;
|
|
1793
|
-
}
|
|
1794
|
-
declare const $ZodCheckLengthEquals: $constructor<$ZodCheckLengthEquals>;
|
|
1795
|
-
type $ZodStringFormats = "email" | "url" | "emoji" | "uuid" | "guid" | "nanoid" | "cuid" | "cuid2" | "ulid" | "xid" | "ksuid" | "datetime" | "date" | "time" | "duration" | "ipv4" | "ipv6" | "cidrv4" | "cidrv6" | "base64" | "base64url" | "json_string" | "e164" | "lowercase" | "uppercase" | "regex" | "jwt" | "starts_with" | "ends_with" | "includes";
|
|
1796
|
-
interface $ZodCheckStringFormatDef<Format extends string = string> extends $ZodCheckDef {
|
|
1797
|
-
check: "string_format";
|
|
1798
|
-
format: Format;
|
|
1799
|
-
pattern?: RegExp | undefined;
|
|
1800
|
-
}
|
|
1801
|
-
interface $ZodCheckStringFormatInternals extends $ZodCheckInternals<string> {
|
|
1802
|
-
def: $ZodCheckStringFormatDef;
|
|
1803
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
1804
|
-
}
|
|
1805
|
-
interface $ZodCheckStringFormat extends $ZodCheck<string> {
|
|
1806
|
-
_zod: $ZodCheckStringFormatInternals;
|
|
1807
|
-
}
|
|
1808
|
-
declare const $ZodCheckStringFormat: $constructor<$ZodCheckStringFormat>;
|
|
1809
|
-
interface $ZodCheckRegexDef extends $ZodCheckStringFormatDef {
|
|
1810
|
-
format: "regex";
|
|
1811
|
-
pattern: RegExp;
|
|
1812
|
-
}
|
|
1813
|
-
interface $ZodCheckRegexInternals extends $ZodCheckInternals<string> {
|
|
1814
|
-
def: $ZodCheckRegexDef;
|
|
1815
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
1816
|
-
}
|
|
1817
|
-
interface $ZodCheckRegex extends $ZodCheck<string> {
|
|
1818
|
-
_zod: $ZodCheckRegexInternals;
|
|
1819
|
-
}
|
|
1820
|
-
declare const $ZodCheckRegex: $constructor<$ZodCheckRegex>;
|
|
1821
|
-
interface $ZodCheckLowerCaseDef extends $ZodCheckStringFormatDef<"lowercase"> {}
|
|
1822
|
-
interface $ZodCheckLowerCaseInternals extends $ZodCheckInternals<string> {
|
|
1823
|
-
def: $ZodCheckLowerCaseDef;
|
|
1824
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
1825
|
-
}
|
|
1826
|
-
interface $ZodCheckLowerCase extends $ZodCheck<string> {
|
|
1827
|
-
_zod: $ZodCheckLowerCaseInternals;
|
|
1828
|
-
}
|
|
1829
|
-
declare const $ZodCheckLowerCase: $constructor<$ZodCheckLowerCase>;
|
|
1830
|
-
interface $ZodCheckUpperCaseDef extends $ZodCheckStringFormatDef<"uppercase"> {}
|
|
1831
|
-
interface $ZodCheckUpperCaseInternals extends $ZodCheckInternals<string> {
|
|
1832
|
-
def: $ZodCheckUpperCaseDef;
|
|
1833
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
1834
|
-
}
|
|
1835
|
-
interface $ZodCheckUpperCase extends $ZodCheck<string> {
|
|
1836
|
-
_zod: $ZodCheckUpperCaseInternals;
|
|
1837
|
-
}
|
|
1838
|
-
declare const $ZodCheckUpperCase: $constructor<$ZodCheckUpperCase>;
|
|
1839
|
-
interface $ZodCheckIncludesDef extends $ZodCheckStringFormatDef<"includes"> {
|
|
1840
|
-
includes: string;
|
|
1841
|
-
position?: number | undefined;
|
|
1842
|
-
}
|
|
1843
|
-
interface $ZodCheckIncludesInternals extends $ZodCheckInternals<string> {
|
|
1844
|
-
def: $ZodCheckIncludesDef;
|
|
1845
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
1846
|
-
}
|
|
1847
|
-
interface $ZodCheckIncludes extends $ZodCheck<string> {
|
|
1848
|
-
_zod: $ZodCheckIncludesInternals;
|
|
1849
|
-
}
|
|
1850
|
-
declare const $ZodCheckIncludes: $constructor<$ZodCheckIncludes>;
|
|
1851
|
-
interface $ZodCheckStartsWithDef extends $ZodCheckStringFormatDef<"starts_with"> {
|
|
1852
|
-
prefix: string;
|
|
1853
|
-
}
|
|
1854
|
-
interface $ZodCheckStartsWithInternals extends $ZodCheckInternals<string> {
|
|
1855
|
-
def: $ZodCheckStartsWithDef;
|
|
1856
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
1857
|
-
}
|
|
1858
|
-
interface $ZodCheckStartsWith extends $ZodCheck<string> {
|
|
1859
|
-
_zod: $ZodCheckStartsWithInternals;
|
|
1860
|
-
}
|
|
1861
|
-
declare const $ZodCheckStartsWith: $constructor<$ZodCheckStartsWith>;
|
|
1862
|
-
interface $ZodCheckEndsWithDef extends $ZodCheckStringFormatDef<"ends_with"> {
|
|
1863
|
-
suffix: string;
|
|
1864
|
-
}
|
|
1865
|
-
interface $ZodCheckEndsWithInternals extends $ZodCheckInternals<string> {
|
|
1866
|
-
def: $ZodCheckEndsWithDef;
|
|
1867
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
1868
|
-
}
|
|
1869
|
-
interface $ZodCheckEndsWith extends $ZodCheckInternals<string> {
|
|
1870
|
-
_zod: $ZodCheckEndsWithInternals;
|
|
1871
|
-
}
|
|
1872
|
-
declare const $ZodCheckEndsWith: $constructor<$ZodCheckEndsWith>;
|
|
1873
|
-
interface $ZodCheckPropertyDef extends $ZodCheckDef {
|
|
1874
|
-
check: "property";
|
|
1875
|
-
property: string;
|
|
1876
|
-
schema: $ZodType;
|
|
1877
|
-
}
|
|
1878
|
-
interface $ZodCheckPropertyInternals<T extends object = object> extends $ZodCheckInternals<T> {
|
|
1879
|
-
def: $ZodCheckPropertyDef;
|
|
1880
|
-
issc: $ZodIssue;
|
|
1881
|
-
}
|
|
1882
|
-
interface $ZodCheckProperty<T extends object = object> extends $ZodCheck<T> {
|
|
1883
|
-
_zod: $ZodCheckPropertyInternals<T>;
|
|
1884
|
-
}
|
|
1885
|
-
declare const $ZodCheckProperty: $constructor<$ZodCheckProperty>;
|
|
1886
|
-
interface $ZodCheckMimeTypeDef extends $ZodCheckDef {
|
|
1887
|
-
check: "mime_type";
|
|
1888
|
-
mime: MimeTypes[];
|
|
1889
|
-
}
|
|
1890
|
-
interface $ZodCheckMimeTypeInternals<T extends File = File> extends $ZodCheckInternals<T> {
|
|
1891
|
-
def: $ZodCheckMimeTypeDef;
|
|
1892
|
-
issc: $ZodIssueInvalidValue;
|
|
1893
|
-
}
|
|
1894
|
-
interface $ZodCheckMimeType<T extends File = File> extends $ZodCheck<T> {
|
|
1895
|
-
_zod: $ZodCheckMimeTypeInternals<T>;
|
|
1896
|
-
}
|
|
1897
|
-
declare const $ZodCheckMimeType: $constructor<$ZodCheckMimeType>;
|
|
1898
|
-
interface $ZodCheckOverwriteDef<T = unknown> extends $ZodCheckDef {
|
|
1899
|
-
check: "overwrite";
|
|
1900
|
-
tx(value: T): T;
|
|
1901
|
-
}
|
|
1902
|
-
interface $ZodCheckOverwriteInternals<T = unknown> extends $ZodCheckInternals<T> {
|
|
1903
|
-
def: $ZodCheckOverwriteDef<T>;
|
|
1904
|
-
issc: never;
|
|
1905
|
-
}
|
|
1906
|
-
interface $ZodCheckOverwrite<T = unknown> extends $ZodCheck<T> {
|
|
1907
|
-
_zod: $ZodCheckOverwriteInternals<T>;
|
|
1908
|
-
}
|
|
1909
|
-
declare const $ZodCheckOverwrite: $constructor<$ZodCheckOverwrite>;
|
|
1910
|
-
type $ZodChecks = $ZodCheckLessThan | $ZodCheckGreaterThan | $ZodCheckMultipleOf | $ZodCheckNumberFormat | $ZodCheckBigIntFormat | $ZodCheckMaxSize | $ZodCheckMinSize | $ZodCheckSizeEquals | $ZodCheckMaxLength | $ZodCheckMinLength | $ZodCheckLengthEquals | $ZodCheckStringFormat | $ZodCheckProperty | $ZodCheckMimeType | $ZodCheckOverwrite;
|
|
1911
|
-
type $ZodStringFormatChecks = $ZodCheckRegex | $ZodCheckLowerCase | $ZodCheckUpperCase | $ZodCheckIncludes | $ZodCheckStartsWith | $ZodCheckEndsWith | $ZodStringFormatTypes;
|
|
1912
|
-
declare namespace errors_d_exports {
|
|
1913
|
-
export { $ZodError, $ZodErrorMap, $ZodErrorTree, $ZodFlattenedError, $ZodFormattedError, $ZodInternalIssue, $ZodInvalidTypeExpected, $ZodIssue, $ZodIssueBase, $ZodIssueCode, $ZodIssueCustom, $ZodIssueInvalidElement, $ZodIssueInvalidKey, $ZodIssueInvalidStringFormat, $ZodIssueInvalidType, $ZodIssueInvalidUnion, $ZodIssueInvalidValue, $ZodIssueNotMultipleOf, $ZodIssueStringCommonFormats, $ZodIssueStringEndsWith, $ZodIssueStringIncludes, $ZodIssueStringInvalidJWT, $ZodIssueStringInvalidRegex, $ZodIssueStringStartsWith, $ZodIssueTooBig, $ZodIssueTooSmall, $ZodIssueUnrecognizedKeys, $ZodRawIssue, $ZodRealError, $ZodStringFormatIssues, flattenError, formatError, prettifyError, toDotPath, treeifyError };
|
|
1914
|
-
}
|
|
1915
|
-
interface $ZodIssueBase {
|
|
1916
|
-
readonly code?: string;
|
|
1917
|
-
readonly input?: unknown;
|
|
1918
|
-
readonly path: PropertyKey[];
|
|
1919
|
-
readonly message: string;
|
|
1920
|
-
}
|
|
1921
|
-
type $ZodInvalidTypeExpected = "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "undefined" | "null" | "never" | "void" | "date" | "array" | "object" | "tuple" | "record" | "map" | "set" | "file" | "nonoptional" | "nan" | "function" | (string & {});
|
|
1922
|
-
interface $ZodIssueInvalidType<Input = unknown> extends $ZodIssueBase {
|
|
1923
|
-
readonly code: "invalid_type";
|
|
1924
|
-
readonly expected: $ZodInvalidTypeExpected;
|
|
1925
|
-
readonly input?: Input;
|
|
1926
|
-
}
|
|
1927
|
-
interface $ZodIssueTooBig<Input = unknown> extends $ZodIssueBase {
|
|
1928
|
-
readonly code: "too_big";
|
|
1929
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
1930
|
-
readonly maximum: number | bigint;
|
|
1931
|
-
readonly inclusive?: boolean;
|
|
1932
|
-
readonly exact?: boolean;
|
|
1933
|
-
readonly input?: Input;
|
|
1934
|
-
}
|
|
1935
|
-
interface $ZodIssueTooSmall<Input = unknown> extends $ZodIssueBase {
|
|
1936
|
-
readonly code: "too_small";
|
|
1937
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
1938
|
-
readonly minimum: number | bigint;
|
|
1939
|
-
/** True if the allowable range includes the minimum */
|
|
1940
|
-
readonly inclusive?: boolean;
|
|
1941
|
-
/** True if the allowed value is fixed (e.g.` z.length(5)`), not a range (`z.minLength(5)`) */
|
|
1942
|
-
readonly exact?: boolean;
|
|
1943
|
-
readonly input?: Input;
|
|
1944
|
-
}
|
|
1945
|
-
interface $ZodIssueInvalidStringFormat extends $ZodIssueBase {
|
|
1946
|
-
readonly code: "invalid_format";
|
|
1947
|
-
readonly format: $ZodStringFormats | (string & {});
|
|
1948
|
-
readonly pattern?: string;
|
|
1949
|
-
readonly input?: string;
|
|
1950
|
-
}
|
|
1951
|
-
interface $ZodIssueNotMultipleOf<Input extends number | bigint = number | bigint> extends $ZodIssueBase {
|
|
1952
|
-
readonly code: "not_multiple_of";
|
|
1953
|
-
readonly divisor: number;
|
|
1954
|
-
readonly input?: Input;
|
|
1955
|
-
}
|
|
1956
|
-
interface $ZodIssueUnrecognizedKeys extends $ZodIssueBase {
|
|
1957
|
-
readonly code: "unrecognized_keys";
|
|
1958
|
-
readonly keys: string[];
|
|
1959
|
-
readonly input?: Record<string, unknown>;
|
|
1960
|
-
}
|
|
1961
|
-
interface $ZodIssueInvalidUnionNoMatch extends $ZodIssueBase {
|
|
1962
|
-
readonly code: "invalid_union";
|
|
1963
|
-
readonly errors: $ZodIssue[][];
|
|
1964
|
-
readonly input?: unknown;
|
|
1965
|
-
readonly discriminator?: string | undefined;
|
|
1966
|
-
readonly options?: Primitive[];
|
|
1967
|
-
readonly inclusive?: true;
|
|
1968
|
-
}
|
|
1969
|
-
interface $ZodIssueInvalidUnionMultipleMatch extends $ZodIssueBase {
|
|
1970
|
-
readonly code: "invalid_union";
|
|
1971
|
-
readonly errors: [];
|
|
1972
|
-
readonly input?: unknown;
|
|
1973
|
-
readonly discriminator?: string | undefined;
|
|
1974
|
-
readonly inclusive: false;
|
|
1975
|
-
}
|
|
1976
|
-
type $ZodIssueInvalidUnion = $ZodIssueInvalidUnionNoMatch | $ZodIssueInvalidUnionMultipleMatch;
|
|
1977
|
-
interface $ZodIssueInvalidKey<Input = unknown> extends $ZodIssueBase {
|
|
1978
|
-
readonly code: "invalid_key";
|
|
1979
|
-
readonly origin: "map" | "record";
|
|
1980
|
-
readonly issues: $ZodIssue[];
|
|
1981
|
-
readonly input?: Input;
|
|
1982
|
-
}
|
|
1983
|
-
interface $ZodIssueInvalidElement<Input = unknown> extends $ZodIssueBase {
|
|
1984
|
-
readonly code: "invalid_element";
|
|
1985
|
-
readonly origin: "map" | "set";
|
|
1986
|
-
readonly key: unknown;
|
|
1987
|
-
readonly issues: $ZodIssue[];
|
|
1988
|
-
readonly input?: Input;
|
|
1989
|
-
}
|
|
1990
|
-
interface $ZodIssueInvalidValue<Input = unknown> extends $ZodIssueBase {
|
|
1991
|
-
readonly code: "invalid_value";
|
|
1992
|
-
readonly values: Primitive[];
|
|
1993
|
-
readonly input?: Input;
|
|
1994
|
-
}
|
|
1995
|
-
interface $ZodIssueCustom extends $ZodIssueBase {
|
|
1996
|
-
readonly code: "custom";
|
|
1997
|
-
readonly params?: Record<string, any> | undefined;
|
|
1998
|
-
readonly input?: unknown;
|
|
1999
|
-
}
|
|
2000
|
-
interface $ZodIssueStringCommonFormats extends $ZodIssueInvalidStringFormat {
|
|
2001
|
-
format: Exclude<$ZodStringFormats, "regex" | "jwt" | "starts_with" | "ends_with" | "includes">;
|
|
2002
|
-
}
|
|
2003
|
-
interface $ZodIssueStringInvalidRegex extends $ZodIssueInvalidStringFormat {
|
|
2004
|
-
format: "regex";
|
|
2005
|
-
pattern: string;
|
|
2006
|
-
}
|
|
2007
|
-
interface $ZodIssueStringInvalidJWT extends $ZodIssueInvalidStringFormat {
|
|
2008
|
-
format: "jwt";
|
|
2009
|
-
algorithm?: string;
|
|
2010
|
-
}
|
|
2011
|
-
interface $ZodIssueStringStartsWith extends $ZodIssueInvalidStringFormat {
|
|
2012
|
-
format: "starts_with";
|
|
2013
|
-
prefix: string;
|
|
2014
|
-
}
|
|
2015
|
-
interface $ZodIssueStringEndsWith extends $ZodIssueInvalidStringFormat {
|
|
2016
|
-
format: "ends_with";
|
|
2017
|
-
suffix: string;
|
|
2018
|
-
}
|
|
2019
|
-
interface $ZodIssueStringIncludes extends $ZodIssueInvalidStringFormat {
|
|
2020
|
-
format: "includes";
|
|
2021
|
-
includes: string;
|
|
2022
|
-
}
|
|
2023
|
-
type $ZodStringFormatIssues = $ZodIssueStringCommonFormats | $ZodIssueStringInvalidRegex | $ZodIssueStringInvalidJWT | $ZodIssueStringStartsWith | $ZodIssueStringEndsWith | $ZodIssueStringIncludes;
|
|
2024
|
-
type $ZodIssue = $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall | $ZodIssueInvalidStringFormat | $ZodIssueNotMultipleOf | $ZodIssueUnrecognizedKeys | $ZodIssueInvalidUnion | $ZodIssueInvalidKey | $ZodIssueInvalidElement | $ZodIssueInvalidValue | $ZodIssueCustom;
|
|
2025
|
-
type $ZodIssueCode = $ZodIssue["code"];
|
|
2026
|
-
type $ZodInternalIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue$1<T> : never;
|
|
2027
|
-
type RawIssue$1<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
|
|
2028
|
-
/** The input data */
|
|
2029
|
-
readonly input: unknown;
|
|
2030
|
-
/** The schema or check that originated this issue. */
|
|
2031
|
-
readonly inst?: $ZodType | $ZodCheck;
|
|
2032
|
-
/** If `true`, Zod will continue executing checks/refinements after this issue. */
|
|
2033
|
-
readonly continue?: boolean | undefined;
|
|
2034
|
-
} & Record<string, unknown>> : never;
|
|
2035
|
-
type $ZodRawIssue<T extends $ZodIssueBase = $ZodIssue> = $ZodInternalIssue<T>;
|
|
2036
|
-
interface $ZodErrorMap<T extends $ZodIssueBase = $ZodIssue> {
|
|
2037
|
-
(issue: $ZodRawIssue<T>): {
|
|
2038
|
-
message: string;
|
|
2039
|
-
} | string | undefined | null;
|
|
2040
|
-
}
|
|
2041
|
-
interface $ZodError<T = unknown> extends Error {
|
|
2042
|
-
type: T;
|
|
2043
|
-
issues: $ZodIssue[];
|
|
2044
|
-
_zod: {
|
|
2045
|
-
output: T;
|
|
2046
|
-
def: $ZodIssue[];
|
|
2047
|
-
};
|
|
2048
|
-
stack?: string;
|
|
2049
|
-
name: string;
|
|
2050
|
-
}
|
|
2051
|
-
declare const $ZodError: $constructor<$ZodError>;
|
|
2052
|
-
interface $ZodRealError<T = any> extends $ZodError<T> {}
|
|
2053
|
-
declare const $ZodRealError: $constructor<$ZodRealError>;
|
|
2054
|
-
type $ZodFlattenedError<T, U = string> = _FlattenedError<T, U>;
|
|
2055
|
-
type _FlattenedError<T, U = string> = {
|
|
2056
|
-
formErrors: U[];
|
|
2057
|
-
fieldErrors: { [P in keyof T]?: U[]; };
|
|
2058
|
-
};
|
|
2059
|
-
declare function flattenError<T>(error: $ZodError<T>): _FlattenedError<T>;
|
|
2060
|
-
declare function flattenError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): _FlattenedError<T, U>;
|
|
2061
|
-
type _ZodFormattedError<T, U = string> = T extends [any, ...any[]] ? { [K in keyof T]?: $ZodFormattedError<T[K], U>; } : T extends any[] ? {
|
|
2062
|
-
[k: number]: $ZodFormattedError<T[number], U>;
|
|
2063
|
-
} : T extends object ? Flatten<{ [K in keyof T]?: $ZodFormattedError<T[K], U>; }> : any;
|
|
2064
|
-
type $ZodFormattedError<T, U = string> = {
|
|
2065
|
-
_errors: U[];
|
|
2066
|
-
} & Flatten<_ZodFormattedError<T, U>>;
|
|
2067
|
-
declare function formatError<T>(error: $ZodError<T>): $ZodFormattedError<T>;
|
|
2068
|
-
declare function formatError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): $ZodFormattedError<T, U>;
|
|
2069
|
-
type $ZodErrorTree<T, U = string> = T extends Primitive ? {
|
|
2070
|
-
errors: U[];
|
|
2071
|
-
} : T extends [any, ...any[]] ? {
|
|
2072
|
-
errors: U[];
|
|
2073
|
-
items?: { [K in keyof T]?: $ZodErrorTree<T[K], U>; };
|
|
2074
|
-
} : T extends any[] ? {
|
|
2075
|
-
errors: U[];
|
|
2076
|
-
items?: Array<$ZodErrorTree<T[number], U>>;
|
|
2077
|
-
} : T extends object ? {
|
|
2078
|
-
errors: U[];
|
|
2079
|
-
properties?: { [K in keyof T]?: $ZodErrorTree<T[K], U>; };
|
|
2080
|
-
} : {
|
|
2081
|
-
errors: U[];
|
|
2082
|
-
};
|
|
2083
|
-
declare function treeifyError<T>(error: $ZodError<T>): $ZodErrorTree<T>;
|
|
2084
|
-
declare function treeifyError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): $ZodErrorTree<T, U>;
|
|
2085
|
-
/** Format a ZodError as a human-readable string in the following form.
|
|
2086
|
-
*
|
|
2087
|
-
* From
|
|
2088
|
-
*
|
|
2089
|
-
* ```ts
|
|
2090
|
-
* ZodError {
|
|
2091
|
-
* issues: [
|
|
2092
|
-
* {
|
|
2093
|
-
* expected: 'string',
|
|
2094
|
-
* code: 'invalid_type',
|
|
2095
|
-
* path: [ 'username' ],
|
|
2096
|
-
* message: 'Invalid input: expected string'
|
|
2097
|
-
* },
|
|
2098
|
-
* {
|
|
2099
|
-
* expected: 'number',
|
|
2100
|
-
* code: 'invalid_type',
|
|
2101
|
-
* path: [ 'favoriteNumbers', 1 ],
|
|
2102
|
-
* message: 'Invalid input: expected number'
|
|
2103
|
-
* }
|
|
2104
|
-
* ];
|
|
2105
|
-
* }
|
|
2106
|
-
* ```
|
|
2107
|
-
*
|
|
2108
|
-
* to
|
|
2109
|
-
*
|
|
2110
|
-
* ```
|
|
2111
|
-
* username
|
|
2112
|
-
* ✖ Expected number, received string at "username
|
|
2113
|
-
* favoriteNumbers[0]
|
|
2114
|
-
* ✖ Invalid input: expected number
|
|
2115
|
-
* ```
|
|
2116
|
-
*/
|
|
2117
|
-
declare function toDotPath(_path: readonly (string | number | symbol | StandardSchemaV1.PathSegment)[]): string;
|
|
2118
|
-
declare function prettifyError(error: StandardSchemaV1.FailureResult): string;
|
|
2119
|
-
declare namespace core_d_exports {
|
|
2120
|
-
export { $ZodAsyncError, $ZodBranded, $ZodConfig, $ZodEncodeError, $ZodNarrow, $brand, $constructor, NEVER, config, globalConfig, output as infer, input, output };
|
|
2121
|
-
}
|
|
2122
|
-
type ZodTrait = {
|
|
2123
|
-
_zod: {
|
|
2124
|
-
def: any;
|
|
2125
|
-
[k: string]: any;
|
|
2126
|
-
};
|
|
2127
|
-
};
|
|
2128
|
-
interface $constructor<T extends ZodTrait, D = T["_zod"]["def"]> {
|
|
2129
|
-
new (def: D): T;
|
|
2130
|
-
init(inst: T, def: D): asserts inst is T;
|
|
2131
|
-
}
|
|
2132
|
-
/** A special constant with type `never` */
|
|
2133
|
-
declare const NEVER: never;
|
|
2134
|
-
declare function $constructor<T extends ZodTrait, D = T["_zod"]["def"]>(name: string, initializer: (inst: T, def: D) => void, params?: {
|
|
2135
|
-
Parent?: typeof Class;
|
|
2136
|
-
}): $constructor<T, D>;
|
|
2137
|
-
declare const $brand: unique symbol;
|
|
2138
|
-
type $brand<T extends string | number | symbol = string | number | symbol> = {
|
|
2139
|
-
[$brand]: { [k in T]: true; };
|
|
2140
|
-
};
|
|
2141
|
-
type $ZodBranded<T extends SomeType, Brand extends string | number | symbol, Dir extends "in" | "out" | "inout" = "out"> = T & (Dir extends "inout" ? {
|
|
2142
|
-
_zod: {
|
|
2143
|
-
input: input<T> & $brand<Brand>;
|
|
2144
|
-
output: output<T> & $brand<Brand>;
|
|
2145
|
-
};
|
|
2146
|
-
} : Dir extends "in" ? {
|
|
2147
|
-
_zod: {
|
|
2148
|
-
input: input<T> & $brand<Brand>;
|
|
2149
|
-
};
|
|
2150
|
-
} : {
|
|
2151
|
-
_zod: {
|
|
2152
|
-
output: output<T> & $brand<Brand>;
|
|
2153
|
-
};
|
|
2154
|
-
});
|
|
2155
|
-
type $ZodNarrow<T extends SomeType, Out> = T & {
|
|
2156
|
-
_zod: {
|
|
2157
|
-
output: Out;
|
|
2158
|
-
};
|
|
2159
|
-
};
|
|
2160
|
-
declare class $ZodAsyncError extends Error {
|
|
2161
|
-
constructor();
|
|
2162
|
-
}
|
|
2163
|
-
declare class $ZodEncodeError extends Error {
|
|
2164
|
-
constructor(name: string);
|
|
2165
|
-
}
|
|
2166
|
-
type input<T> = T extends {
|
|
2167
|
-
_zod: {
|
|
2168
|
-
input: any;
|
|
2169
|
-
};
|
|
2170
|
-
} ? T["_zod"]["input"] : unknown;
|
|
2171
|
-
type output<T> = T extends {
|
|
2172
|
-
_zod: {
|
|
2173
|
-
output: any;
|
|
2174
|
-
};
|
|
2175
|
-
} ? T["_zod"]["output"] : unknown;
|
|
2176
|
-
interface $ZodConfig {
|
|
2177
|
-
/** Custom error map. Overrides `config().localeError`. */
|
|
2178
|
-
customError?: $ZodErrorMap | undefined;
|
|
2179
|
-
/** Localized error map. Lowest priority. */
|
|
2180
|
-
localeError?: $ZodErrorMap | undefined;
|
|
2181
|
-
/** Disable JIT schema compilation. Useful in environments that disallow `eval`. */
|
|
2182
|
-
jitless?: boolean | undefined;
|
|
2183
|
-
}
|
|
2184
|
-
declare const globalConfig: $ZodConfig;
|
|
2185
|
-
declare function config(newConfig?: Partial<$ZodConfig>): $ZodConfig;
|
|
2186
|
-
//#endregion
|
|
2187
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.d.cts
|
|
2188
|
-
type $ZodErrorClass = {
|
|
2189
|
-
new (issues: $ZodIssue[]): $ZodError;
|
|
2190
|
-
};
|
|
2191
|
-
type $Parse = <T extends $ZodType>(schema: T, value: unknown, _ctx?: ParseContext<$ZodIssue>, _params?: {
|
|
2192
|
-
callee?: AnyFunc;
|
|
2193
|
-
Err?: $ZodErrorClass;
|
|
2194
|
-
}) => output<T>;
|
|
2195
|
-
declare const _parse: (_Err: $ZodErrorClass) => $Parse;
|
|
2196
|
-
declare const parse$1: $Parse;
|
|
2197
|
-
type $ParseAsync = <T extends $ZodType>(schema: T, value: unknown, _ctx?: ParseContext<$ZodIssue>, _params?: {
|
|
2198
|
-
callee?: AnyFunc;
|
|
2199
|
-
Err?: $ZodErrorClass;
|
|
2200
|
-
}) => Promise<output<T>>;
|
|
2201
|
-
declare const _parseAsync: (_Err: $ZodErrorClass) => $ParseAsync;
|
|
2202
|
-
declare const parseAsync$1: $ParseAsync;
|
|
2203
|
-
type $SafeParse = <T extends $ZodType>(schema: T, value: unknown, _ctx?: ParseContext<$ZodIssue>) => SafeParseResult<output<T>>;
|
|
2204
|
-
declare const _safeParse: (_Err: $ZodErrorClass) => $SafeParse;
|
|
2205
|
-
declare const safeParse$1: $SafeParse;
|
|
2206
|
-
type $SafeParseAsync = <T extends $ZodType>(schema: T, value: unknown, _ctx?: ParseContext<$ZodIssue>) => Promise<SafeParseResult<output<T>>>;
|
|
2207
|
-
declare const _safeParseAsync: (_Err: $ZodErrorClass) => $SafeParseAsync;
|
|
2208
|
-
declare const safeParseAsync$1: $SafeParseAsync;
|
|
2209
|
-
type $Encode = <T extends $ZodType>(schema: T, value: output<T>, _ctx?: ParseContext<$ZodIssue>) => input<T>;
|
|
2210
|
-
declare const _encode: (_Err: $ZodErrorClass) => $Encode;
|
|
2211
|
-
declare const encode$1: $Encode;
|
|
2212
|
-
type $Decode = <T extends $ZodType>(schema: T, value: input<T>, _ctx?: ParseContext<$ZodIssue>) => output<T>;
|
|
2213
|
-
declare const _decode: (_Err: $ZodErrorClass) => $Decode;
|
|
2214
|
-
declare const decode$1: $Decode;
|
|
2215
|
-
type $EncodeAsync = <T extends $ZodType>(schema: T, value: output<T>, _ctx?: ParseContext<$ZodIssue>) => Promise<input<T>>;
|
|
2216
|
-
declare const _encodeAsync: (_Err: $ZodErrorClass) => $EncodeAsync;
|
|
2217
|
-
declare const encodeAsync$1: $EncodeAsync;
|
|
2218
|
-
type $DecodeAsync = <T extends $ZodType>(schema: T, value: input<T>, _ctx?: ParseContext<$ZodIssue>) => Promise<output<T>>;
|
|
2219
|
-
declare const _decodeAsync: (_Err: $ZodErrorClass) => $DecodeAsync;
|
|
2220
|
-
declare const decodeAsync$1: $DecodeAsync;
|
|
2221
|
-
type $SafeEncode = <T extends $ZodType>(schema: T, value: output<T>, _ctx?: ParseContext<$ZodIssue>) => SafeParseResult<input<T>>;
|
|
2222
|
-
declare const _safeEncode: (_Err: $ZodErrorClass) => $SafeEncode;
|
|
2223
|
-
declare const safeEncode$1: $SafeEncode;
|
|
2224
|
-
type $SafeDecode = <T extends $ZodType>(schema: T, value: input<T>, _ctx?: ParseContext<$ZodIssue>) => SafeParseResult<output<T>>;
|
|
2225
|
-
declare const _safeDecode: (_Err: $ZodErrorClass) => $SafeDecode;
|
|
2226
|
-
declare const safeDecode$1: $SafeDecode;
|
|
2227
|
-
type $SafeEncodeAsync = <T extends $ZodType>(schema: T, value: output<T>, _ctx?: ParseContext<$ZodIssue>) => Promise<SafeParseResult<input<T>>>;
|
|
2228
|
-
declare const _safeEncodeAsync: (_Err: $ZodErrorClass) => $SafeEncodeAsync;
|
|
2229
|
-
declare const safeEncodeAsync$1: $SafeEncodeAsync;
|
|
2230
|
-
type $SafeDecodeAsync = <T extends $ZodType>(schema: T, value: input<T>, _ctx?: ParseContext<$ZodIssue>) => Promise<SafeParseResult<output<T>>>;
|
|
2231
|
-
declare const _safeDecodeAsync: (_Err: $ZodErrorClass) => $SafeDecodeAsync;
|
|
2232
|
-
declare const safeDecodeAsync$1: $SafeDecodeAsync;
|
|
2233
|
-
declare namespace regexes_d_exports {
|
|
2234
|
-
export { base64$1 as base64, base64url$1 as base64url, bigint$2 as bigint, boolean$2 as boolean, browserEmail, cidrv4$1 as cidrv4, cidrv6$1 as cidrv6, cuid$1 as cuid, cuid2$1 as cuid2, date$3 as date, datetime$1 as datetime, domain, duration$1 as duration, e164$1 as e164, email$1 as email, emoji$1 as emoji, extendedDuration, guid$1 as guid, hex$1 as hex, hostname$1 as hostname, html5Email, httpProtocol, idnEmail, integer, ipv4$1 as ipv4, ipv6$1 as ipv6, ksuid$1 as ksuid, lowercase, mac$1 as mac, md5_base64, md5_base64url, md5_hex, nanoid$1 as nanoid, _null$2 as null, number$2 as number, rfc5322Email, sha1_base64, sha1_base64url, sha1_hex, sha256_base64, sha256_base64url, sha256_hex, sha384_base64, sha384_base64url, sha384_hex, sha512_base64, sha512_base64url, sha512_hex, string$2 as string, time$1 as time, ulid$1 as ulid, _undefined$2 as undefined, unicodeEmail, uppercase, uuid$1 as uuid, uuid4, uuid6, uuid7, xid$1 as xid };
|
|
2235
|
-
}
|
|
2236
|
-
/**
|
|
2237
|
-
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
2238
|
-
* (timestamps embedded in the id). Use {@link cuid2} instead.
|
|
2239
|
-
* See https://github.com/paralleldrive/cuid.
|
|
2240
|
-
*/
|
|
2241
|
-
declare const cuid$1: RegExp;
|
|
2242
|
-
declare const cuid2$1: RegExp;
|
|
2243
|
-
declare const ulid$1: RegExp;
|
|
2244
|
-
declare const xid$1: RegExp;
|
|
2245
|
-
declare const ksuid$1: RegExp;
|
|
2246
|
-
declare const nanoid$1: RegExp;
|
|
2247
|
-
/** ISO 8601-1 duration regex. Does not support the 8601-2 extensions like negative durations or fractional/negative components. */
|
|
2248
|
-
declare const duration$1: RegExp;
|
|
2249
|
-
/** Implements ISO 8601-2 extensions like explicit +- prefixes, mixing weeks with other units, and fractional/negative components. */
|
|
2250
|
-
declare const extendedDuration: RegExp;
|
|
2251
|
-
/** A regex for any UUID-like identifier: 8-4-4-4-12 hex pattern */
|
|
2252
|
-
declare const guid$1: RegExp;
|
|
2253
|
-
/** Returns a regex for validating an RFC 9562/4122 UUID.
|
|
2254
|
-
*
|
|
2255
|
-
* @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */
|
|
2256
|
-
declare const uuid$1: (version?: number | undefined) => RegExp;
|
|
2257
|
-
declare const uuid4: RegExp;
|
|
2258
|
-
declare const uuid6: RegExp;
|
|
2259
|
-
declare const uuid7: RegExp;
|
|
2260
|
-
/** Practical email validation */
|
|
2261
|
-
declare const email$1: RegExp;
|
|
2262
|
-
/** Equivalent to the HTML5 input[type=email] validation implemented by browsers. Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email */
|
|
2263
|
-
declare const html5Email: RegExp;
|
|
2264
|
-
/** The classic emailregex.com regex for RFC 5322-compliant emails */
|
|
2265
|
-
declare const rfc5322Email: RegExp;
|
|
2266
|
-
/** A loose regex that allows Unicode characters, enforces length limits, and that's about it. */
|
|
2267
|
-
declare const unicodeEmail: RegExp;
|
|
2268
|
-
declare const idnEmail: RegExp;
|
|
2269
|
-
declare const browserEmail: RegExp;
|
|
2270
|
-
declare function emoji$1(): RegExp;
|
|
2271
|
-
declare const ipv4$1: RegExp;
|
|
2272
|
-
declare const ipv6$1: RegExp;
|
|
2273
|
-
declare const mac$1: (delimiter?: string) => RegExp;
|
|
2274
|
-
declare const cidrv4$1: RegExp;
|
|
2275
|
-
declare const cidrv6$1: RegExp;
|
|
2276
|
-
declare const base64$1: RegExp;
|
|
2277
|
-
declare const base64url$1: RegExp;
|
|
2278
|
-
declare const hostname$1: RegExp;
|
|
2279
|
-
declare const domain: RegExp;
|
|
2280
|
-
declare const httpProtocol: RegExp;
|
|
2281
|
-
declare const e164$1: RegExp;
|
|
2282
|
-
declare const date$3: RegExp;
|
|
2283
|
-
declare function time$1(args: {
|
|
2284
|
-
precision?: number | null;
|
|
2285
|
-
}): RegExp;
|
|
2286
|
-
declare function datetime$1(args: {
|
|
2287
|
-
precision?: number | null;
|
|
2288
|
-
offset?: boolean;
|
|
2289
|
-
local?: boolean;
|
|
2290
|
-
}): RegExp;
|
|
2291
|
-
declare const string$2: (params?: {
|
|
2292
|
-
minimum?: number | undefined;
|
|
2293
|
-
maximum?: number | undefined;
|
|
2294
|
-
}) => RegExp;
|
|
2295
|
-
declare const bigint$2: RegExp;
|
|
2296
|
-
declare const integer: RegExp;
|
|
2297
|
-
declare const number$2: RegExp;
|
|
2298
|
-
declare const boolean$2: RegExp;
|
|
2299
|
-
declare const _null$2: RegExp;
|
|
2300
|
-
declare const _undefined$2: RegExp;
|
|
2301
|
-
declare const lowercase: RegExp;
|
|
2302
|
-
declare const uppercase: RegExp;
|
|
2303
|
-
declare const hex$1: RegExp;
|
|
2304
|
-
declare const md5_hex: RegExp;
|
|
2305
|
-
declare const md5_base64: RegExp;
|
|
2306
|
-
declare const md5_base64url: RegExp;
|
|
2307
|
-
declare const sha1_hex: RegExp;
|
|
2308
|
-
declare const sha1_base64: RegExp;
|
|
2309
|
-
declare const sha1_base64url: RegExp;
|
|
2310
|
-
declare const sha256_hex: RegExp;
|
|
2311
|
-
declare const sha256_base64: RegExp;
|
|
2312
|
-
declare const sha256_base64url: RegExp;
|
|
2313
|
-
declare const sha384_hex: RegExp;
|
|
2314
|
-
declare const sha384_base64: RegExp;
|
|
2315
|
-
declare const sha384_base64url: RegExp;
|
|
2316
|
-
declare const sha512_hex: RegExp;
|
|
2317
|
-
declare const sha512_base64: RegExp;
|
|
2318
|
-
declare const sha512_base64url: RegExp;
|
|
2319
|
-
//#endregion
|
|
2320
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ar.d.cts
|
|
2321
|
-
declare function _default$53(): {
|
|
2322
|
-
localeError: $ZodErrorMap;
|
|
2323
|
-
};
|
|
2324
|
-
//#endregion
|
|
2325
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/az.d.cts
|
|
2326
|
-
declare function _default$52(): {
|
|
2327
|
-
localeError: $ZodErrorMap;
|
|
2328
|
-
};
|
|
2329
|
-
//#endregion
|
|
2330
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/be.d.cts
|
|
2331
|
-
declare function _default$51(): {
|
|
2332
|
-
localeError: $ZodErrorMap;
|
|
2333
|
-
};
|
|
2334
|
-
//#endregion
|
|
2335
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/bg.d.cts
|
|
2336
|
-
declare function _default$50(): {
|
|
2337
|
-
localeError: $ZodErrorMap;
|
|
2338
|
-
};
|
|
2339
|
-
//#endregion
|
|
2340
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ca.d.cts
|
|
2341
|
-
declare function _default$49(): {
|
|
2342
|
-
localeError: $ZodErrorMap;
|
|
2343
|
-
};
|
|
2344
|
-
//#endregion
|
|
2345
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/cs.d.cts
|
|
2346
|
-
declare function _default$48(): {
|
|
2347
|
-
localeError: $ZodErrorMap;
|
|
2348
|
-
};
|
|
2349
|
-
//#endregion
|
|
2350
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/da.d.cts
|
|
2351
|
-
declare function _default$47(): {
|
|
2352
|
-
localeError: $ZodErrorMap;
|
|
2353
|
-
};
|
|
2354
|
-
//#endregion
|
|
2355
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/de.d.cts
|
|
2356
|
-
declare function _default$46(): {
|
|
2357
|
-
localeError: $ZodErrorMap;
|
|
2358
|
-
};
|
|
2359
|
-
//#endregion
|
|
2360
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/el.d.cts
|
|
2361
|
-
declare function _default$45(): {
|
|
2362
|
-
localeError: $ZodErrorMap;
|
|
2363
|
-
};
|
|
2364
|
-
//#endregion
|
|
2365
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/en.d.cts
|
|
2366
|
-
declare function _default$44(): {
|
|
2367
|
-
localeError: $ZodErrorMap;
|
|
2368
|
-
};
|
|
2369
|
-
//#endregion
|
|
2370
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/eo.d.cts
|
|
2371
|
-
declare function _default$43(): {
|
|
2372
|
-
localeError: $ZodErrorMap;
|
|
2373
|
-
};
|
|
2374
|
-
//#endregion
|
|
2375
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/es.d.cts
|
|
2376
|
-
declare function _default$42(): {
|
|
2377
|
-
localeError: $ZodErrorMap;
|
|
2378
|
-
};
|
|
2379
|
-
//#endregion
|
|
2380
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fa.d.cts
|
|
2381
|
-
declare function _default$41(): {
|
|
2382
|
-
localeError: $ZodErrorMap;
|
|
2383
|
-
};
|
|
2384
|
-
//#endregion
|
|
2385
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fi.d.cts
|
|
2386
|
-
declare function _default$40(): {
|
|
2387
|
-
localeError: $ZodErrorMap;
|
|
2388
|
-
};
|
|
2389
|
-
//#endregion
|
|
2390
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr.d.cts
|
|
2391
|
-
declare function _default$39(): {
|
|
2392
|
-
localeError: $ZodErrorMap;
|
|
2393
|
-
};
|
|
2394
|
-
//#endregion
|
|
2395
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.d.cts
|
|
2396
|
-
declare function _default$38(): {
|
|
2397
|
-
localeError: $ZodErrorMap;
|
|
2398
|
-
};
|
|
2399
|
-
//#endregion
|
|
2400
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/he.d.cts
|
|
2401
|
-
declare function _default$37(): {
|
|
2402
|
-
localeError: $ZodErrorMap;
|
|
2403
|
-
};
|
|
2404
|
-
//#endregion
|
|
2405
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hr.d.cts
|
|
2406
|
-
declare function _default$36(): {
|
|
2407
|
-
localeError: $ZodErrorMap;
|
|
2408
|
-
};
|
|
2409
|
-
//#endregion
|
|
2410
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hu.d.cts
|
|
2411
|
-
declare function _default$35(): {
|
|
2412
|
-
localeError: $ZodErrorMap;
|
|
2413
|
-
};
|
|
2414
|
-
//#endregion
|
|
2415
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hy.d.cts
|
|
2416
|
-
declare function _default$34(): {
|
|
2417
|
-
localeError: $ZodErrorMap;
|
|
2418
|
-
};
|
|
2419
|
-
//#endregion
|
|
2420
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/id.d.cts
|
|
2421
|
-
declare function _default$33(): {
|
|
2422
|
-
localeError: $ZodErrorMap;
|
|
2423
|
-
};
|
|
2424
|
-
//#endregion
|
|
2425
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/is.d.cts
|
|
2426
|
-
declare function _default$32(): {
|
|
2427
|
-
localeError: $ZodErrorMap;
|
|
2428
|
-
};
|
|
2429
|
-
//#endregion
|
|
2430
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/it.d.cts
|
|
2431
|
-
declare function _default$31(): {
|
|
2432
|
-
localeError: $ZodErrorMap;
|
|
2433
|
-
};
|
|
2434
|
-
//#endregion
|
|
2435
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ja.d.cts
|
|
2436
|
-
declare function _default$30(): {
|
|
2437
|
-
localeError: $ZodErrorMap;
|
|
2438
|
-
};
|
|
2439
|
-
//#endregion
|
|
2440
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ka.d.cts
|
|
2441
|
-
declare function _default$29(): {
|
|
2442
|
-
localeError: $ZodErrorMap;
|
|
2443
|
-
};
|
|
2444
|
-
//#endregion
|
|
2445
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/kh.d.cts
|
|
2446
|
-
declare function _default$28(): {
|
|
2447
|
-
localeError: $ZodErrorMap;
|
|
2448
|
-
};
|
|
2449
|
-
//#endregion
|
|
2450
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/km.d.cts
|
|
2451
|
-
declare function _default$27(): {
|
|
2452
|
-
localeError: $ZodErrorMap;
|
|
2453
|
-
};
|
|
2454
|
-
//#endregion
|
|
2455
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ko.d.cts
|
|
2456
|
-
declare function _default$26(): {
|
|
2457
|
-
localeError: $ZodErrorMap;
|
|
2458
|
-
};
|
|
2459
|
-
//#endregion
|
|
2460
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/lt.d.cts
|
|
2461
|
-
declare function _default$25(): {
|
|
2462
|
-
localeError: $ZodErrorMap;
|
|
2463
|
-
};
|
|
2464
|
-
//#endregion
|
|
2465
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/mk.d.cts
|
|
2466
|
-
declare function _default$24(): {
|
|
2467
|
-
localeError: $ZodErrorMap;
|
|
2468
|
-
};
|
|
2469
|
-
//#endregion
|
|
2470
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ms.d.cts
|
|
2471
|
-
declare function _default$23(): {
|
|
2472
|
-
localeError: $ZodErrorMap;
|
|
2473
|
-
};
|
|
2474
|
-
//#endregion
|
|
2475
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/nl.d.cts
|
|
2476
|
-
declare function _default$22(): {
|
|
2477
|
-
localeError: $ZodErrorMap;
|
|
2478
|
-
};
|
|
2479
|
-
//#endregion
|
|
2480
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/no.d.cts
|
|
2481
|
-
declare function _default$21(): {
|
|
2482
|
-
localeError: $ZodErrorMap;
|
|
2483
|
-
};
|
|
2484
|
-
//#endregion
|
|
2485
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ota.d.cts
|
|
2486
|
-
declare function _default$20(): {
|
|
2487
|
-
localeError: $ZodErrorMap;
|
|
2488
|
-
};
|
|
2489
|
-
//#endregion
|
|
2490
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ps.d.cts
|
|
2491
|
-
declare function _default$19(): {
|
|
2492
|
-
localeError: $ZodErrorMap;
|
|
2493
|
-
};
|
|
2494
|
-
//#endregion
|
|
2495
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pl.d.cts
|
|
2496
|
-
declare function _default$18(): {
|
|
2497
|
-
localeError: $ZodErrorMap;
|
|
2498
|
-
};
|
|
2499
|
-
//#endregion
|
|
2500
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pt.d.cts
|
|
2501
|
-
declare function _default$17(): {
|
|
2502
|
-
localeError: $ZodErrorMap;
|
|
2503
|
-
};
|
|
2504
|
-
//#endregion
|
|
2505
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ro.d.cts
|
|
2506
|
-
declare function _default$16(): {
|
|
2507
|
-
localeError: $ZodErrorMap;
|
|
2508
|
-
};
|
|
2509
|
-
//#endregion
|
|
2510
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ru.d.cts
|
|
2511
|
-
declare function _default$15(): {
|
|
2512
|
-
localeError: $ZodErrorMap;
|
|
2513
|
-
};
|
|
2514
|
-
//#endregion
|
|
2515
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sl.d.cts
|
|
2516
|
-
declare function _default$14(): {
|
|
2517
|
-
localeError: $ZodErrorMap;
|
|
2518
|
-
};
|
|
2519
|
-
//#endregion
|
|
2520
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sv.d.cts
|
|
2521
|
-
declare function _default$13(): {
|
|
2522
|
-
localeError: $ZodErrorMap;
|
|
2523
|
-
};
|
|
2524
|
-
//#endregion
|
|
2525
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ta.d.cts
|
|
2526
|
-
declare function _default$12(): {
|
|
2527
|
-
localeError: $ZodErrorMap;
|
|
2528
|
-
};
|
|
2529
|
-
//#endregion
|
|
2530
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/th.d.cts
|
|
2531
|
-
declare function _default$11(): {
|
|
2532
|
-
localeError: $ZodErrorMap;
|
|
2533
|
-
};
|
|
2534
|
-
//#endregion
|
|
2535
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/tr.d.cts
|
|
2536
|
-
declare function _default$10(): {
|
|
2537
|
-
localeError: $ZodErrorMap;
|
|
2538
|
-
};
|
|
2539
|
-
//#endregion
|
|
2540
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ua.d.cts
|
|
2541
|
-
declare function _default$9(): {
|
|
2542
|
-
localeError: $ZodErrorMap;
|
|
2543
|
-
};
|
|
2544
|
-
//#endregion
|
|
2545
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uk.d.cts
|
|
2546
|
-
declare function _default$8(): {
|
|
2547
|
-
localeError: $ZodErrorMap;
|
|
2548
|
-
};
|
|
2549
|
-
//#endregion
|
|
2550
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ur.d.cts
|
|
2551
|
-
declare function _default$7(): {
|
|
2552
|
-
localeError: $ZodErrorMap;
|
|
2553
|
-
};
|
|
2554
|
-
//#endregion
|
|
2555
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uz.d.cts
|
|
2556
|
-
declare function _default$6(): {
|
|
2557
|
-
localeError: $ZodErrorMap;
|
|
2558
|
-
};
|
|
2559
|
-
//#endregion
|
|
2560
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/vi.d.cts
|
|
2561
|
-
declare function _default$5(): {
|
|
2562
|
-
localeError: $ZodErrorMap;
|
|
2563
|
-
};
|
|
2564
|
-
//#endregion
|
|
2565
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.d.cts
|
|
2566
|
-
declare function _default$4(): {
|
|
2567
|
-
localeError: $ZodErrorMap;
|
|
2568
|
-
};
|
|
2569
|
-
//#endregion
|
|
2570
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.d.cts
|
|
2571
|
-
declare function _default$3(): {
|
|
2572
|
-
localeError: $ZodErrorMap;
|
|
2573
|
-
};
|
|
2574
|
-
//#endregion
|
|
2575
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/yo.d.cts
|
|
2576
|
-
declare function _default$2(): {
|
|
2577
|
-
localeError: $ZodErrorMap;
|
|
2578
|
-
};
|
|
2579
|
-
declare namespace index_d_exports$1 {
|
|
2580
|
-
export { _default$53 as ar, _default$52 as az, _default$51 as be, _default$50 as bg, _default$49 as ca, _default$48 as cs, _default$47 as da, _default$46 as de, _default$45 as el, _default$44 as en, _default$43 as eo, _default$42 as es, _default$41 as fa, _default$40 as fi, _default$39 as fr, _default$38 as frCA, _default$37 as he, _default$36 as hr, _default$35 as hu, _default$34 as hy, _default$33 as id, _default$32 as is, _default$31 as it, _default$30 as ja, _default$29 as ka, _default$28 as kh, _default$27 as km, _default$26 as ko, _default$25 as lt, _default$24 as mk, _default$23 as ms, _default$22 as nl, _default$21 as no, _default$20 as ota, _default$18 as pl, _default$19 as ps, _default$17 as pt, _default$16 as ro, _default$15 as ru, _default$14 as sl, _default$13 as sv, _default$12 as ta, _default$11 as th, _default$10 as tr, _default$9 as ua, _default$8 as uk, _default$7 as ur, _default$6 as uz, _default$5 as vi, _default$2 as yo, _default$4 as zhCN, _default$3 as zhTW };
|
|
2581
|
-
}
|
|
2582
|
-
//#endregion
|
|
2583
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.d.cts
|
|
2584
|
-
type ModeWriter = (doc: Doc, modes: {
|
|
2585
|
-
execution: "sync" | "async";
|
|
2586
|
-
}) => void;
|
|
2587
|
-
declare class Doc {
|
|
2588
|
-
args: string[];
|
|
2589
|
-
content: string[];
|
|
2590
|
-
indent: number;
|
|
2591
|
-
constructor(args?: string[]);
|
|
2592
|
-
indented(fn: (doc: Doc) => void): void;
|
|
2593
|
-
write(fn: ModeWriter): void;
|
|
2594
|
-
write(line: string): void;
|
|
2595
|
-
compile(): any;
|
|
2596
|
-
}
|
|
2597
|
-
//#endregion
|
|
2598
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.d.cts
|
|
2599
|
-
type Params<T extends $ZodType | $ZodCheck, IssueTypes extends $ZodIssueBase, OmitKeys extends keyof T["_zod"]["def"] = never> = Flatten<Partial<EmptyToNever<Omit<T["_zod"]["def"], OmitKeys> & ([IssueTypes] extends [never] ? {} : {
|
|
2600
|
-
error?: string | $ZodErrorMap<IssueTypes> | undefined;
|
|
2601
|
-
/** @deprecated This parameter is deprecated. Use `error` instead. */
|
|
2602
|
-
message?: string | undefined;
|
|
2603
|
-
})>>>;
|
|
2604
|
-
type TypeParams<T extends $ZodType = $ZodType & {
|
|
2605
|
-
_isst: never;
|
|
2606
|
-
}, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error"> = never> = Params<T, NonNullable<T["_zod"]["isst"]>, "type" | "checks" | "error" | AlsoOmit>;
|
|
2607
|
-
type CheckParams<T extends $ZodCheck = $ZodCheck // & { _issc: never },
|
|
2608
|
-
, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "check" | "error"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "check" | "error" | AlsoOmit>;
|
|
2609
|
-
type StringFormatParams<T extends $ZodStringFormat = $ZodStringFormat, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "coerce" | "checks" | "error" | "check" | "format"> = never> = Params<T, NonNullable<T["_zod"]["isst"] | T["_zod"]["issc"]>, "type" | "coerce" | "checks" | "error" | "check" | "format" | AlsoOmit>;
|
|
2610
|
-
type CheckStringFormatParams<T extends $ZodStringFormat = $ZodStringFormat, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "coerce" | "checks" | "error" | "check" | "format"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "type" | "coerce" | "checks" | "error" | "check" | "format" | AlsoOmit>;
|
|
2611
|
-
type CheckTypeParams<T extends $ZodType & $ZodCheck = $ZodType & $ZodCheck, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error" | "check"> = never> = Params<T, NonNullable<T["_zod"]["isst"] | T["_zod"]["issc"]>, "type" | "checks" | "error" | "check" | AlsoOmit>;
|
|
2612
|
-
type $ZodStringParams = TypeParams<$ZodString<string>, "coerce">;
|
|
2613
|
-
declare function _string<T extends $ZodString>(Class: SchemaClass<T>, params?: string | $ZodStringParams): T;
|
|
2614
|
-
declare function _coercedString<T extends $ZodString>(Class: SchemaClass<T>, params?: string | $ZodStringParams): T;
|
|
2615
|
-
type $ZodStringFormatParams = CheckTypeParams<$ZodStringFormat, "format" | "coerce" | "when" | "pattern">;
|
|
2616
|
-
type $ZodCheckStringFormatParams = CheckParams<$ZodCheckStringFormat, "format">;
|
|
2617
|
-
type $ZodEmailParams = StringFormatParams<$ZodEmail, "when">;
|
|
2618
|
-
type $ZodCheckEmailParams = CheckStringFormatParams<$ZodEmail, "when">;
|
|
2619
|
-
declare function _email<T extends $ZodEmail>(Class: SchemaClass<T>, params?: string | $ZodEmailParams | $ZodCheckEmailParams): T;
|
|
2620
|
-
type $ZodGUIDParams = StringFormatParams<$ZodGUID, "pattern" | "when">;
|
|
2621
|
-
type $ZodCheckGUIDParams = CheckStringFormatParams<$ZodGUID, "pattern" | "when">;
|
|
2622
|
-
declare function _guid<T extends $ZodGUID>(Class: SchemaClass<T>, params?: string | $ZodGUIDParams | $ZodCheckGUIDParams): T;
|
|
2623
|
-
type $ZodUUIDParams = StringFormatParams<$ZodUUID, "pattern" | "when">;
|
|
2624
|
-
type $ZodCheckUUIDParams = CheckStringFormatParams<$ZodUUID, "pattern" | "when">;
|
|
2625
|
-
declare function _uuid<T extends $ZodUUID>(Class: SchemaClass<T>, params?: string | $ZodUUIDParams | $ZodCheckUUIDParams): T;
|
|
2626
|
-
type $ZodUUIDv4Params = StringFormatParams<$ZodUUID, "pattern" | "when">;
|
|
2627
|
-
type $ZodCheckUUIDv4Params = CheckStringFormatParams<$ZodUUID, "pattern" | "when">;
|
|
2628
|
-
declare function _uuidv4<T extends $ZodUUID>(Class: SchemaClass<T>, params?: string | $ZodUUIDv4Params | $ZodCheckUUIDv4Params): T;
|
|
2629
|
-
type $ZodUUIDv6Params = StringFormatParams<$ZodUUID, "pattern" | "when">;
|
|
2630
|
-
type $ZodCheckUUIDv6Params = CheckStringFormatParams<$ZodUUID, "pattern" | "when">;
|
|
2631
|
-
declare function _uuidv6<T extends $ZodUUID>(Class: SchemaClass<T>, params?: string | $ZodUUIDv6Params | $ZodCheckUUIDv6Params): T;
|
|
2632
|
-
type $ZodUUIDv7Params = StringFormatParams<$ZodUUID, "pattern" | "when">;
|
|
2633
|
-
type $ZodCheckUUIDv7Params = CheckStringFormatParams<$ZodUUID, "pattern" | "when">;
|
|
2634
|
-
declare function _uuidv7<T extends $ZodUUID>(Class: SchemaClass<T>, params?: string | $ZodUUIDv7Params | $ZodCheckUUIDv7Params): T;
|
|
2635
|
-
type $ZodURLParams = StringFormatParams<$ZodURL, "when">;
|
|
2636
|
-
type $ZodCheckURLParams = CheckStringFormatParams<$ZodURL, "when">;
|
|
2637
|
-
declare function _url<T extends $ZodURL>(Class: SchemaClass<T>, params?: string | $ZodURLParams | $ZodCheckURLParams): T;
|
|
2638
|
-
type $ZodEmojiParams = StringFormatParams<$ZodEmoji, "when">;
|
|
2639
|
-
type $ZodCheckEmojiParams = CheckStringFormatParams<$ZodEmoji, "when">;
|
|
2640
|
-
declare function _emoji<T extends $ZodEmoji>(Class: SchemaClass<T>, params?: string | $ZodEmojiParams | $ZodCheckEmojiParams): T;
|
|
2641
|
-
type $ZodNanoIDParams = StringFormatParams<$ZodNanoID, "when">;
|
|
2642
|
-
type $ZodCheckNanoIDParams = CheckStringFormatParams<$ZodNanoID, "when">;
|
|
2643
|
-
declare function _nanoid<T extends $ZodNanoID>(Class: SchemaClass<T>, params?: string | $ZodNanoIDParams | $ZodCheckNanoIDParams): T;
|
|
2644
|
-
/**
|
|
2645
|
-
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
2646
|
-
* (timestamps embedded in the id). Use {@link _cuid2} instead.
|
|
2647
|
-
* See https://github.com/paralleldrive/cuid.
|
|
2648
|
-
*/
|
|
2649
|
-
type $ZodCUIDParams = StringFormatParams<$ZodCUID, "when">;
|
|
2650
|
-
/**
|
|
2651
|
-
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
2652
|
-
* (timestamps embedded in the id). Use {@link _cuid2} instead.
|
|
2653
|
-
* See https://github.com/paralleldrive/cuid.
|
|
2654
|
-
*/
|
|
2655
|
-
type $ZodCheckCUIDParams = CheckStringFormatParams<$ZodCUID, "when">;
|
|
2656
|
-
/**
|
|
2657
|
-
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
2658
|
-
* (timestamps embedded in the id). Use {@link _cuid2} instead.
|
|
2659
|
-
* See https://github.com/paralleldrive/cuid.
|
|
2660
|
-
*/
|
|
2661
|
-
declare function _cuid<T extends $ZodCUID>(Class: SchemaClass<T>, params?: string | $ZodCUIDParams | $ZodCheckCUIDParams): T;
|
|
2662
|
-
type $ZodCUID2Params = StringFormatParams<$ZodCUID2, "when">;
|
|
2663
|
-
type $ZodCheckCUID2Params = CheckStringFormatParams<$ZodCUID2, "when">;
|
|
2664
|
-
declare function _cuid2<T extends $ZodCUID2>(Class: SchemaClass<T>, params?: string | $ZodCUID2Params | $ZodCheckCUID2Params): T;
|
|
2665
|
-
type $ZodULIDParams = StringFormatParams<$ZodULID, "when">;
|
|
2666
|
-
type $ZodCheckULIDParams = CheckStringFormatParams<$ZodULID, "when">;
|
|
2667
|
-
declare function _ulid<T extends $ZodULID>(Class: SchemaClass<T>, params?: string | $ZodULIDParams | $ZodCheckULIDParams): T;
|
|
2668
|
-
type $ZodXIDParams = StringFormatParams<$ZodXID, "when">;
|
|
2669
|
-
type $ZodCheckXIDParams = CheckStringFormatParams<$ZodXID, "when">;
|
|
2670
|
-
declare function _xid<T extends $ZodXID>(Class: SchemaClass<T>, params?: string | $ZodXIDParams | $ZodCheckXIDParams): T;
|
|
2671
|
-
type $ZodKSUIDParams = StringFormatParams<$ZodKSUID, "when">;
|
|
2672
|
-
type $ZodCheckKSUIDParams = CheckStringFormatParams<$ZodKSUID, "when">;
|
|
2673
|
-
declare function _ksuid<T extends $ZodKSUID>(Class: SchemaClass<T>, params?: string | $ZodKSUIDParams | $ZodCheckKSUIDParams): T;
|
|
2674
|
-
type $ZodIPv4Params = StringFormatParams<$ZodIPv4, "pattern" | "when" | "version">;
|
|
2675
|
-
type $ZodCheckIPv4Params = CheckStringFormatParams<$ZodIPv4, "pattern" | "when" | "version">;
|
|
2676
|
-
declare function _ipv4<T extends $ZodIPv4>(Class: SchemaClass<T>, params?: string | $ZodIPv4Params | $ZodCheckIPv4Params): T;
|
|
2677
|
-
type $ZodIPv6Params = StringFormatParams<$ZodIPv6, "pattern" | "when" | "version">;
|
|
2678
|
-
type $ZodCheckIPv6Params = CheckStringFormatParams<$ZodIPv6, "pattern" | "when" | "version">;
|
|
2679
|
-
declare function _ipv6<T extends $ZodIPv6>(Class: SchemaClass<T>, params?: string | $ZodIPv6Params | $ZodCheckIPv6Params): T;
|
|
2680
|
-
type $ZodMACParams = StringFormatParams<$ZodMAC, "pattern" | "when">;
|
|
2681
|
-
type $ZodCheckMACParams = CheckStringFormatParams<$ZodMAC, "pattern" | "when">;
|
|
2682
|
-
declare function _mac<T extends $ZodMAC>(Class: SchemaClass<T>, params?: string | $ZodMACParams | $ZodCheckMACParams): T;
|
|
2683
|
-
type $ZodCIDRv4Params = StringFormatParams<$ZodCIDRv4, "pattern" | "when">;
|
|
2684
|
-
type $ZodCheckCIDRv4Params = CheckStringFormatParams<$ZodCIDRv4, "pattern" | "when">;
|
|
2685
|
-
declare function _cidrv4<T extends $ZodCIDRv4>(Class: SchemaClass<T>, params?: string | $ZodCIDRv4Params | $ZodCheckCIDRv4Params): T;
|
|
2686
|
-
type $ZodCIDRv6Params = StringFormatParams<$ZodCIDRv6, "pattern" | "when">;
|
|
2687
|
-
type $ZodCheckCIDRv6Params = CheckStringFormatParams<$ZodCIDRv6, "pattern" | "when">;
|
|
2688
|
-
declare function _cidrv6<T extends $ZodCIDRv6>(Class: SchemaClass<T>, params?: string | $ZodCIDRv6Params | $ZodCheckCIDRv6Params): T;
|
|
2689
|
-
type $ZodBase64Params = StringFormatParams<$ZodBase64, "pattern" | "when">;
|
|
2690
|
-
type $ZodCheckBase64Params = CheckStringFormatParams<$ZodBase64, "pattern" | "when">;
|
|
2691
|
-
declare function _base64<T extends $ZodBase64>(Class: SchemaClass<T>, params?: string | $ZodBase64Params | $ZodCheckBase64Params): T;
|
|
2692
|
-
type $ZodBase64URLParams = StringFormatParams<$ZodBase64URL, "pattern" | "when">;
|
|
2693
|
-
type $ZodCheckBase64URLParams = CheckStringFormatParams<$ZodBase64URL, "pattern" | "when">;
|
|
2694
|
-
declare function _base64url<T extends $ZodBase64URL>(Class: SchemaClass<T>, params?: string | $ZodBase64URLParams | $ZodCheckBase64URLParams): T;
|
|
2695
|
-
type $ZodE164Params = StringFormatParams<$ZodE164, "when">;
|
|
2696
|
-
type $ZodCheckE164Params = CheckStringFormatParams<$ZodE164, "when">;
|
|
2697
|
-
declare function _e164<T extends $ZodE164>(Class: SchemaClass<T>, params?: string | $ZodE164Params | $ZodCheckE164Params): T;
|
|
2698
|
-
type $ZodJWTParams = StringFormatParams<$ZodJWT, "pattern" | "when">;
|
|
2699
|
-
type $ZodCheckJWTParams = CheckStringFormatParams<$ZodJWT, "pattern" | "when">;
|
|
2700
|
-
declare function _jwt<T extends $ZodJWT>(Class: SchemaClass<T>, params?: string | $ZodJWTParams | $ZodCheckJWTParams): T;
|
|
2701
|
-
declare const TimePrecision: {
|
|
2702
|
-
readonly Any: null;
|
|
2703
|
-
readonly Minute: -1;
|
|
2704
|
-
readonly Second: 0;
|
|
2705
|
-
readonly Millisecond: 3;
|
|
2706
|
-
readonly Microsecond: 6;
|
|
2707
|
-
};
|
|
2708
|
-
type $ZodISODateTimeParams = StringFormatParams<$ZodISODateTime, "pattern" | "when">;
|
|
2709
|
-
type $ZodCheckISODateTimeParams = CheckStringFormatParams<$ZodISODateTime, "pattern" | "when">;
|
|
2710
|
-
declare function _isoDateTime<T extends $ZodISODateTime>(Class: SchemaClass<T>, params?: string | $ZodISODateTimeParams | $ZodCheckISODateTimeParams): T;
|
|
2711
|
-
type $ZodISODateParams = StringFormatParams<$ZodISODate, "pattern" | "when">;
|
|
2712
|
-
type $ZodCheckISODateParams = CheckStringFormatParams<$ZodISODate, "pattern" | "when">;
|
|
2713
|
-
declare function _isoDate<T extends $ZodISODate>(Class: SchemaClass<T>, params?: string | $ZodISODateParams | $ZodCheckISODateParams): T;
|
|
2714
|
-
type $ZodISOTimeParams = StringFormatParams<$ZodISOTime, "pattern" | "when">;
|
|
2715
|
-
type $ZodCheckISOTimeParams = CheckStringFormatParams<$ZodISOTime, "pattern" | "when">;
|
|
2716
|
-
declare function _isoTime<T extends $ZodISOTime>(Class: SchemaClass<T>, params?: string | $ZodISOTimeParams | $ZodCheckISOTimeParams): T;
|
|
2717
|
-
type $ZodISODurationParams = StringFormatParams<$ZodISODuration, "when">;
|
|
2718
|
-
type $ZodCheckISODurationParams = CheckStringFormatParams<$ZodISODuration, "when">;
|
|
2719
|
-
declare function _isoDuration<T extends $ZodISODuration>(Class: SchemaClass<T>, params?: string | $ZodISODurationParams | $ZodCheckISODurationParams): T;
|
|
2720
|
-
type $ZodNumberParams = TypeParams<$ZodNumber<number>, "coerce">;
|
|
2721
|
-
type $ZodNumberFormatParams = CheckTypeParams<$ZodNumberFormat, "format" | "coerce">;
|
|
2722
|
-
type $ZodCheckNumberFormatParams = CheckParams<$ZodCheckNumberFormat, "format" | "when">;
|
|
2723
|
-
declare function _number<T extends $ZodNumber>(Class: SchemaClass<T>, params?: string | $ZodNumberParams): T;
|
|
2724
|
-
declare function _coercedNumber<T extends $ZodNumber>(Class: SchemaClass<T>, params?: string | $ZodNumberParams): T;
|
|
2725
|
-
declare function _int<T extends $ZodNumberFormat>(Class: SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T;
|
|
2726
|
-
declare function _float32<T extends $ZodNumberFormat>(Class: SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T;
|
|
2727
|
-
declare function _float64<T extends $ZodNumberFormat>(Class: SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T;
|
|
2728
|
-
declare function _int32<T extends $ZodNumberFormat>(Class: SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T;
|
|
2729
|
-
declare function _uint32<T extends $ZodNumberFormat>(Class: SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T;
|
|
2730
|
-
type $ZodBooleanParams = TypeParams<$ZodBoolean<boolean>, "coerce">;
|
|
2731
|
-
declare function _boolean<T extends $ZodBoolean>(Class: SchemaClass<T>, params?: string | $ZodBooleanParams): T;
|
|
2732
|
-
declare function _coercedBoolean<T extends $ZodBoolean>(Class: SchemaClass<T>, params?: string | $ZodBooleanParams): T;
|
|
2733
|
-
type $ZodBigIntParams = TypeParams<$ZodBigInt<bigint>>;
|
|
2734
|
-
type $ZodBigIntFormatParams = CheckTypeParams<$ZodBigIntFormat, "format" | "coerce">;
|
|
2735
|
-
type $ZodCheckBigIntFormatParams = CheckParams<$ZodCheckBigIntFormat, "format" | "when">;
|
|
2736
|
-
declare function _bigint<T extends $ZodBigInt>(Class: SchemaClass<T>, params?: string | $ZodBigIntParams): T;
|
|
2737
|
-
declare function _coercedBigint<T extends $ZodBigInt>(Class: SchemaClass<T>, params?: string | $ZodBigIntParams): T;
|
|
2738
|
-
declare function _int64<T extends $ZodBigIntFormat>(Class: SchemaClass<T>, params?: string | $ZodBigIntFormatParams): T;
|
|
2739
|
-
declare function _uint64<T extends $ZodBigIntFormat>(Class: SchemaClass<T>, params?: string | $ZodBigIntFormatParams): T;
|
|
2740
|
-
type $ZodSymbolParams = TypeParams<$ZodSymbol>;
|
|
2741
|
-
declare function _symbol<T extends $ZodSymbol>(Class: SchemaClass<T>, params?: string | $ZodSymbolParams): T;
|
|
2742
|
-
type $ZodUndefinedParams = TypeParams<$ZodUndefined>;
|
|
2743
|
-
declare function _undefined$1<T extends $ZodUndefined>(Class: SchemaClass<T>, params?: string | $ZodUndefinedParams): T;
|
|
2744
|
-
type $ZodNullParams = TypeParams<$ZodNull>;
|
|
2745
|
-
declare function _null$1<T extends $ZodNull>(Class: SchemaClass<T>, params?: string | $ZodNullParams): T;
|
|
2746
|
-
type $ZodAnyParams = TypeParams<$ZodAny>;
|
|
2747
|
-
declare function _any<T extends $ZodAny>(Class: SchemaClass<T>): T;
|
|
2748
|
-
type $ZodUnknownParams = TypeParams<$ZodUnknown>;
|
|
2749
|
-
declare function _unknown<T extends $ZodUnknown>(Class: SchemaClass<T>): T;
|
|
2750
|
-
type $ZodNeverParams = TypeParams<$ZodNever>;
|
|
2751
|
-
declare function _never<T extends $ZodNever>(Class: SchemaClass<T>, params?: string | $ZodNeverParams): T;
|
|
2752
|
-
type $ZodVoidParams = TypeParams<$ZodVoid>;
|
|
2753
|
-
declare function _void$1<T extends $ZodVoid>(Class: SchemaClass<T>, params?: string | $ZodVoidParams): T;
|
|
2754
|
-
type $ZodDateParams = TypeParams<$ZodDate, "coerce">;
|
|
2755
|
-
declare function _date<T extends $ZodDate>(Class: SchemaClass<T>, params?: string | $ZodDateParams): T;
|
|
2756
|
-
declare function _coercedDate<T extends $ZodDate>(Class: SchemaClass<T>, params?: string | $ZodDateParams): T;
|
|
2757
|
-
type $ZodNaNParams = TypeParams<$ZodNaN>;
|
|
2758
|
-
declare function _nan<T extends $ZodNaN>(Class: SchemaClass<T>, params?: string | $ZodNaNParams): T;
|
|
2759
|
-
type $ZodCheckLessThanParams = CheckParams<$ZodCheckLessThan, "inclusive" | "value" | "when">;
|
|
2760
|
-
declare function _lt(value: Numeric, params?: string | $ZodCheckLessThanParams): $ZodCheckLessThan<Numeric>;
|
|
2761
|
-
declare function _lte(value: Numeric, params?: string | $ZodCheckLessThanParams): $ZodCheckLessThan<Numeric>;
|
|
2762
|
-
type $ZodCheckGreaterThanParams = CheckParams<$ZodCheckGreaterThan, "inclusive" | "value" | "when">;
|
|
2763
|
-
declare function _gt(value: Numeric, params?: string | $ZodCheckGreaterThanParams): $ZodCheckGreaterThan;
|
|
2764
|
-
declare function _gte(value: Numeric, params?: string | $ZodCheckGreaterThanParams): $ZodCheckGreaterThan;
|
|
2765
|
-
declare function _positive(params?: string | $ZodCheckGreaterThanParams): $ZodCheckGreaterThan;
|
|
2766
|
-
declare function _negative(params?: string | $ZodCheckLessThanParams): $ZodCheckLessThan;
|
|
2767
|
-
declare function _nonpositive(params?: string | $ZodCheckLessThanParams): $ZodCheckLessThan;
|
|
2768
|
-
declare function _nonnegative(params?: string | $ZodCheckGreaterThanParams): $ZodCheckGreaterThan;
|
|
2769
|
-
type $ZodCheckMultipleOfParams = CheckParams<$ZodCheckMultipleOf, "value" | "when">;
|
|
2770
|
-
declare function _multipleOf(value: number | bigint, params?: string | $ZodCheckMultipleOfParams): $ZodCheckMultipleOf;
|
|
2771
|
-
type $ZodCheckMaxSizeParams = CheckParams<$ZodCheckMaxSize, "maximum" | "when">;
|
|
2772
|
-
declare function _maxSize(maximum: number, params?: string | $ZodCheckMaxSizeParams): $ZodCheckMaxSize<HasSize>;
|
|
2773
|
-
type $ZodCheckMinSizeParams = CheckParams<$ZodCheckMinSize, "minimum" | "when">;
|
|
2774
|
-
declare function _minSize(minimum: number, params?: string | $ZodCheckMinSizeParams): $ZodCheckMinSize<HasSize>;
|
|
2775
|
-
type $ZodCheckSizeEqualsParams = CheckParams<$ZodCheckSizeEquals, "size" | "when">;
|
|
2776
|
-
declare function _size(size: number, params?: string | $ZodCheckSizeEqualsParams): $ZodCheckSizeEquals<HasSize>;
|
|
2777
|
-
type $ZodCheckMaxLengthParams = CheckParams<$ZodCheckMaxLength, "maximum" | "when">;
|
|
2778
|
-
declare function _maxLength(maximum: number, params?: string | $ZodCheckMaxLengthParams): $ZodCheckMaxLength<HasLength>;
|
|
2779
|
-
type $ZodCheckMinLengthParams = CheckParams<$ZodCheckMinLength, "minimum" | "when">;
|
|
2780
|
-
declare function _minLength(minimum: number, params?: string | $ZodCheckMinLengthParams): $ZodCheckMinLength<HasLength>;
|
|
2781
|
-
type $ZodCheckLengthEqualsParams = CheckParams<$ZodCheckLengthEquals, "length" | "when">;
|
|
2782
|
-
declare function _length(length: number, params?: string | $ZodCheckLengthEqualsParams): $ZodCheckLengthEquals<HasLength>;
|
|
2783
|
-
type $ZodCheckRegexParams = CheckParams<$ZodCheckRegex, "format" | "pattern" | "when">;
|
|
2784
|
-
declare function _regex(pattern: RegExp, params?: string | $ZodCheckRegexParams): $ZodCheckRegex;
|
|
2785
|
-
type $ZodCheckLowerCaseParams = CheckParams<$ZodCheckLowerCase, "format" | "when">;
|
|
2786
|
-
declare function _lowercase(params?: string | $ZodCheckLowerCaseParams): $ZodCheckLowerCase;
|
|
2787
|
-
type $ZodCheckUpperCaseParams = CheckParams<$ZodCheckUpperCase, "format" | "when">;
|
|
2788
|
-
declare function _uppercase(params?: string | $ZodCheckUpperCaseParams): $ZodCheckUpperCase;
|
|
2789
|
-
type $ZodCheckIncludesParams = CheckParams<$ZodCheckIncludes, "includes" | "format" | "when" | "pattern">;
|
|
2790
|
-
declare function _includes(includes: string, params?: string | $ZodCheckIncludesParams): $ZodCheckIncludes;
|
|
2791
|
-
type $ZodCheckStartsWithParams = CheckParams<$ZodCheckStartsWith, "prefix" | "format" | "when" | "pattern">;
|
|
2792
|
-
declare function _startsWith(prefix: string, params?: string | $ZodCheckStartsWithParams): $ZodCheckStartsWith;
|
|
2793
|
-
type $ZodCheckEndsWithParams = CheckParams<$ZodCheckEndsWith, "suffix" | "format" | "pattern" | "when">;
|
|
2794
|
-
declare function _endsWith(suffix: string, params?: string | $ZodCheckEndsWithParams): $ZodCheckEndsWith;
|
|
2795
|
-
type $ZodCheckPropertyParams = CheckParams<$ZodCheckProperty, "property" | "schema" | "when">;
|
|
2796
|
-
declare function _property<K extends string, T extends $ZodType>(property: K, schema: T, params?: string | $ZodCheckPropertyParams): $ZodCheckProperty<{ [k in K]: output<T>; }>;
|
|
2797
|
-
type $ZodCheckMimeTypeParams = CheckParams<$ZodCheckMimeType, "mime" | "when">;
|
|
2798
|
-
declare function _mime(types: MimeTypes[], params?: string | $ZodCheckMimeTypeParams): $ZodCheckMimeType;
|
|
2799
|
-
declare function _overwrite<T>(tx: (input: T) => T): $ZodCheckOverwrite<T>;
|
|
2800
|
-
declare function _normalize(form?: "NFC" | "NFD" | "NFKC" | "NFKD" | (string & {})): $ZodCheckOverwrite<string>;
|
|
2801
|
-
declare function _trim(): $ZodCheckOverwrite<string>;
|
|
2802
|
-
declare function _toLowerCase(): $ZodCheckOverwrite<string>;
|
|
2803
|
-
declare function _toUpperCase(): $ZodCheckOverwrite<string>;
|
|
2804
|
-
declare function _slugify(): $ZodCheckOverwrite<string>;
|
|
2805
|
-
type $ZodArrayParams = TypeParams<$ZodArray, "element">;
|
|
2806
|
-
declare function _array<T extends $ZodType>(Class: SchemaClass<$ZodArray>, element: T, params?: string | $ZodArrayParams): $ZodArray<T>;
|
|
2807
|
-
type $ZodObjectParams = TypeParams<$ZodObject, "shape" | "catchall">;
|
|
2808
|
-
type $ZodUnionParams = TypeParams<$ZodUnion, "options">;
|
|
2809
|
-
declare function _union<const T extends readonly $ZodObject[]>(Class: SchemaClass<$ZodUnion>, options: T, params?: string | $ZodUnionParams): $ZodUnion<T>;
|
|
2810
|
-
type $ZodXorParams = TypeParams<$ZodXor, "options">;
|
|
2811
|
-
declare function _xor<const T extends readonly $ZodObject[]>(Class: SchemaClass<$ZodXor>, options: T, params?: string | $ZodXorParams): $ZodXor<T>;
|
|
2812
|
-
interface $ZodTypeDiscriminableInternals<Disc extends string = string> extends $ZodTypeInternals<unknown, { [K in Disc]?: unknown; }> {
|
|
2813
|
-
propValues: PropValues;
|
|
2814
|
-
}
|
|
2815
|
-
interface $ZodTypeDiscriminable<Disc extends string = string> extends $ZodType {
|
|
2816
|
-
_zod: $ZodTypeDiscriminableInternals<Disc>;
|
|
2817
|
-
}
|
|
2818
|
-
type $ZodDiscriminatedUnionParams = TypeParams<$ZodDiscriminatedUnion, "options" | "discriminator">;
|
|
2819
|
-
declare function _discriminatedUnion<Types extends [$ZodTypeDiscriminable<Disc>, ...$ZodTypeDiscriminable<Disc>[]], Disc extends string>(Class: SchemaClass<$ZodDiscriminatedUnion>, discriminator: Disc, options: Types, params?: string | $ZodDiscriminatedUnionParams): $ZodDiscriminatedUnion<Types, Disc>;
|
|
2820
|
-
type $ZodIntersectionParams = TypeParams<$ZodIntersection, "left" | "right">;
|
|
2821
|
-
declare function _intersection<T extends $ZodObject, U extends $ZodObject>(Class: SchemaClass<$ZodIntersection>, left: T, right: U): $ZodIntersection<T, U>;
|
|
2822
|
-
type $ZodTupleParams = TypeParams<$ZodTuple, "items" | "rest">;
|
|
2823
|
-
declare function _tuple<T extends readonly [$ZodType, ...$ZodType[]]>(Class: SchemaClass<$ZodTuple>, items: T, params?: string | $ZodTupleParams): $ZodTuple<T, null>;
|
|
2824
|
-
declare function _tuple<T extends readonly [$ZodType, ...$ZodType[]], Rest extends $ZodType>(Class: SchemaClass<$ZodTuple>, items: T, rest: Rest, params?: string | $ZodTupleParams): $ZodTuple<T, Rest>;
|
|
2825
|
-
type $ZodRecordParams = TypeParams<$ZodRecord, "keyType" | "valueType">;
|
|
2826
|
-
declare function _record<Key extends $ZodRecordKey, Value extends $ZodObject>(Class: SchemaClass<$ZodRecord>, keyType: Key, valueType: Value, params?: string | $ZodRecordParams): $ZodRecord<Key, Value>;
|
|
2827
|
-
type $ZodMapParams = TypeParams<$ZodMap, "keyType" | "valueType">;
|
|
2828
|
-
declare function _map<Key extends $ZodObject, Value extends $ZodObject>(Class: SchemaClass<$ZodMap>, keyType: Key, valueType: Value, params?: string | $ZodMapParams): $ZodMap<Key, Value>;
|
|
2829
|
-
type $ZodSetParams = TypeParams<$ZodSet, "valueType">;
|
|
2830
|
-
declare function _set<Value extends $ZodObject>(Class: SchemaClass<$ZodSet>, valueType: Value, params?: string | $ZodSetParams): $ZodSet<Value>;
|
|
2831
|
-
type $ZodEnumParams = TypeParams<$ZodEnum, "entries">;
|
|
2832
|
-
declare function _enum$1<const T extends string[]>(Class: SchemaClass<$ZodEnum>, values: T, params?: string | $ZodEnumParams): $ZodEnum<ToEnum<T[number]>>;
|
|
2833
|
-
declare function _enum$1<T extends EnumLike>(Class: SchemaClass<$ZodEnum>, entries: T, params?: string | $ZodEnumParams): $ZodEnum<T>;
|
|
2834
|
-
/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
|
|
2835
|
-
*
|
|
2836
|
-
* ```ts
|
|
2837
|
-
* enum Colors { red, green, blue }
|
|
2838
|
-
* z.enum(Colors);
|
|
2839
|
-
* ```
|
|
2840
|
-
*/
|
|
2841
|
-
declare function _nativeEnum<T extends EnumLike>(Class: SchemaClass<$ZodEnum>, entries: T, params?: string | $ZodEnumParams): $ZodEnum<T>;
|
|
2842
|
-
type $ZodLiteralParams = TypeParams<$ZodLiteral, "values">;
|
|
2843
|
-
declare function _literal<const T extends Array<Literal>>(Class: SchemaClass<$ZodLiteral>, value: T, params?: string | $ZodLiteralParams): $ZodLiteral<T[number]>;
|
|
2844
|
-
declare function _literal<const T extends Literal>(Class: SchemaClass<$ZodLiteral>, value: T, params?: string | $ZodLiteralParams): $ZodLiteral<T>;
|
|
2845
|
-
type $ZodFileParams = TypeParams<$ZodFile>;
|
|
2846
|
-
declare function _file(Class: SchemaClass<$ZodFile>, params?: string | $ZodFileParams): $ZodFile;
|
|
2847
|
-
type $ZodTransformParams = TypeParams<$ZodTransform, "transform">;
|
|
2848
|
-
declare function _transform<I = unknown, O = I>(Class: SchemaClass<$ZodTransform>, fn: (input: I, ctx?: ParsePayload) => O): $ZodTransform<Awaited<O>, I>;
|
|
2849
|
-
type $ZodOptionalParams = TypeParams<$ZodOptional, "innerType">;
|
|
2850
|
-
declare function _optional<T extends $ZodObject>(Class: SchemaClass<$ZodOptional>, innerType: T): $ZodOptional<T>;
|
|
2851
|
-
type $ZodNullableParams = TypeParams<$ZodNullable, "innerType">;
|
|
2852
|
-
declare function _nullable<T extends $ZodObject>(Class: SchemaClass<$ZodNullable>, innerType: T): $ZodNullable<T>;
|
|
2853
|
-
type $ZodDefaultParams = TypeParams<$ZodDefault, "innerType" | "defaultValue">;
|
|
2854
|
-
declare function _default$1<T extends $ZodObject>(Class: SchemaClass<$ZodDefault>, innerType: T, defaultValue: NoUndefined<output<T>> | (() => NoUndefined<output<T>>)): $ZodDefault<T>;
|
|
2855
|
-
type $ZodNonOptionalParams = TypeParams<$ZodNonOptional, "innerType">;
|
|
2856
|
-
declare function _nonoptional<T extends $ZodObject>(Class: SchemaClass<$ZodNonOptional>, innerType: T, params?: string | $ZodNonOptionalParams): $ZodNonOptional<T>;
|
|
2857
|
-
type $ZodSuccessParams = TypeParams<$ZodSuccess, "innerType">;
|
|
2858
|
-
declare function _success<T extends $ZodObject>(Class: SchemaClass<$ZodSuccess>, innerType: T): $ZodSuccess<T>;
|
|
2859
|
-
type $ZodCatchParams = TypeParams<$ZodCatch, "innerType" | "catchValue">;
|
|
2860
|
-
declare function _catch$1<T extends $ZodObject>(Class: SchemaClass<$ZodCatch>, innerType: T, catchValue: output<T> | ((ctx: $ZodCatchCtx) => output<T>)): $ZodCatch<T>;
|
|
2861
|
-
type $ZodPipeParams = TypeParams<$ZodPipe, "in" | "out">;
|
|
2862
|
-
declare function _pipe<const A extends $ZodType, B extends $ZodType<unknown, output<A>> = $ZodType<unknown, output<A>>>(Class: SchemaClass<$ZodPipe>, in_: A, out: B | $ZodType<unknown, output<A>>): $ZodPipe<A, B>;
|
|
2863
|
-
type $ZodReadonlyParams = TypeParams<$ZodReadonly, "innerType">;
|
|
2864
|
-
declare function _readonly<T extends $ZodObject>(Class: SchemaClass<$ZodReadonly>, innerType: T): $ZodReadonly<T>;
|
|
2865
|
-
type $ZodTemplateLiteralParams = TypeParams<$ZodTemplateLiteral, "parts">;
|
|
2866
|
-
declare function _templateLiteral<const Parts extends $ZodTemplateLiteralPart[]>(Class: SchemaClass<$ZodTemplateLiteral>, parts: Parts, params?: string | $ZodTemplateLiteralParams): $ZodTemplateLiteral<$PartsToTemplateLiteral<Parts>>;
|
|
2867
|
-
type $ZodLazyParams = TypeParams<$ZodLazy, "getter">;
|
|
2868
|
-
declare function _lazy<T extends $ZodType>(Class: SchemaClass<$ZodLazy>, getter: () => T): $ZodLazy<T>;
|
|
2869
|
-
type $ZodPromiseParams = TypeParams<$ZodPromise, "innerType">;
|
|
2870
|
-
declare function _promise<T extends $ZodObject>(Class: SchemaClass<$ZodPromise>, innerType: T): $ZodPromise<T>;
|
|
2871
|
-
type $ZodCustomParams = CheckTypeParams<$ZodCustom, "fn">;
|
|
2872
|
-
declare function _custom<O = unknown, I = O>(Class: SchemaClass<$ZodCustom>, fn: (data: O) => unknown, _params: string | $ZodCustomParams | undefined): $ZodCustom<O, I>;
|
|
2873
|
-
declare function _refine<O = unknown, I = O>(Class: SchemaClass<$ZodCustom>, fn: (data: O) => unknown, _params: string | $ZodCustomParams | undefined): $ZodCustom<O, I>;
|
|
2874
|
-
type $ZodSuperRefineIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue<T> : never;
|
|
2875
|
-
type RawIssue<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
|
|
2876
|
-
/** The schema or check that originated this issue. */
|
|
2877
|
-
readonly inst?: $ZodType | $ZodCheck;
|
|
2878
|
-
/** If `true`, Zod will execute subsequent checks/refinements instead of immediately aborting */
|
|
2879
|
-
readonly continue?: boolean | undefined;
|
|
2880
|
-
} & Record<string, unknown>> : never;
|
|
2881
|
-
interface $RefinementCtx<T = unknown> extends ParsePayload<T> {
|
|
2882
|
-
addIssue(arg: string | $ZodSuperRefineIssue): void;
|
|
2883
|
-
}
|
|
2884
|
-
interface $ZodSuperRefineParams {
|
|
2885
|
-
/** If provided, the refinement runs only when this returns `true`. By default, it is skipped if prior parsing produced aborting issues. */
|
|
2886
|
-
when?: ((payload: ParsePayload) => boolean) | undefined;
|
|
2887
|
-
}
|
|
2888
|
-
declare function _superRefine<T>(fn: (arg: T, payload: $RefinementCtx<T>) => void | Promise<void>, params?: $ZodSuperRefineParams): $ZodCheck<T>;
|
|
2889
|
-
declare function _check<O = unknown>(fn: CheckFn<O>, params?: string | $ZodCustomParams): $ZodCheck<O>;
|
|
2890
|
-
declare function describe$1<T>(description: string): $ZodCheck<T>;
|
|
2891
|
-
declare function meta$1<T>(metadata: GlobalMeta): $ZodCheck<T>;
|
|
2892
|
-
interface $ZodStringBoolParams extends TypeParams {
|
|
2893
|
-
truthy?: string[];
|
|
2894
|
-
falsy?: string[];
|
|
2895
|
-
/**
|
|
2896
|
-
* Options: `"sensitive"`, `"insensitive"`
|
|
2897
|
-
*
|
|
2898
|
-
* @default `"insensitive"`
|
|
2899
|
-
*/
|
|
2900
|
-
case?: "sensitive" | "insensitive" | undefined;
|
|
2901
|
-
}
|
|
2902
|
-
declare function _stringbool(Classes: {
|
|
2903
|
-
Codec?: typeof $ZodCodec;
|
|
2904
|
-
Boolean?: typeof $ZodBoolean;
|
|
2905
|
-
String?: typeof $ZodString;
|
|
2906
|
-
}, _params?: string | $ZodStringBoolParams): $ZodCodec<$ZodString, $ZodBoolean>;
|
|
2907
|
-
declare function _stringFormat<Format extends string>(Class: typeof $ZodCustomStringFormat, format: Format, fnOrRegex: ((arg: string) => MaybeAsync<unknown>) | RegExp, _params?: string | $ZodStringFormatParams): $ZodCustomStringFormat<Format>;
|
|
2908
|
-
//#endregion
|
|
2909
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.d.cts
|
|
2910
|
-
declare function toJSONSchema<T extends $ZodType>(schema: T, params?: ToJSONSchemaParams): ZodStandardJSONSchemaPayload<T>;
|
|
2911
|
-
declare function toJSONSchema(registry: $ZodRegistry<{
|
|
2912
|
-
id?: string | undefined;
|
|
2913
|
-
}>, params?: RegistryToJSONSchemaParams): {
|
|
2914
|
-
schemas: Record<string, ZodStandardJSONSchemaPayload<$ZodType>>;
|
|
2915
|
-
};
|
|
2916
|
-
//#endregion
|
|
2917
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.d.cts
|
|
2918
|
-
/**
|
|
2919
|
-
* Parameters for the emit method of JSONSchemaGenerator.
|
|
2920
|
-
* @deprecated Use toJSONSchema function instead
|
|
2921
|
-
*/
|
|
2922
|
-
type EmitParams = Pick<JSONSchemaGeneratorParams, "cycles" | "reused" | "external">;
|
|
2923
|
-
/**
|
|
2924
|
-
* Parameters for JSONSchemaGenerator constructor.
|
|
2925
|
-
* @deprecated Use toJSONSchema function instead
|
|
2926
|
-
*/
|
|
2927
|
-
type JSONSchemaGeneratorConstructorParams = Pick<JSONSchemaGeneratorParams, "metadata" | "target" | "unrepresentable" | "override" | "io">;
|
|
2928
|
-
/**
|
|
2929
|
-
* Legacy class-based interface for JSON Schema generation.
|
|
2930
|
-
* This class wraps the new functional implementation to provide backward compatibility.
|
|
2931
|
-
*
|
|
2932
|
-
* @deprecated Use the `toJSONSchema` function instead for new code.
|
|
2933
|
-
*
|
|
2934
|
-
* @example
|
|
2935
|
-
* ```typescript
|
|
2936
|
-
* // Legacy usage (still supported)
|
|
2937
|
-
* const gen = new JSONSchemaGenerator({ target: "draft-07" });
|
|
2938
|
-
* gen.process(schema);
|
|
2939
|
-
* const result = gen.emit(schema);
|
|
2940
|
-
*
|
|
2941
|
-
* // Preferred modern usage
|
|
2942
|
-
* const result = toJSONSchema(schema, { target: "draft-07" });
|
|
2943
|
-
* ```
|
|
2944
|
-
*/
|
|
2945
|
-
declare class JSONSchemaGenerator {
|
|
2946
|
-
private ctx;
|
|
2947
|
-
/** @deprecated Access via ctx instead */
|
|
2948
|
-
get metadataRegistry(): $ZodRegistry<Record<string, any>>;
|
|
2949
|
-
/** @deprecated Access via ctx instead */
|
|
2950
|
-
get target(): ({} & string) | "draft-2020-12" | "draft-07" | "openapi-3.0" | "draft-04";
|
|
2951
|
-
/** @deprecated Access via ctx instead */
|
|
2952
|
-
get unrepresentable(): "any" | "throw";
|
|
2953
|
-
/** @deprecated Access via ctx instead */
|
|
2954
|
-
get override(): (ctx: {
|
|
2955
|
-
zodSchema: $ZodType;
|
|
2956
|
-
jsonSchema: BaseSchema;
|
|
2957
|
-
path: (string | number)[];
|
|
2958
|
-
}) => void;
|
|
2959
|
-
/** @deprecated Access via ctx instead */
|
|
2960
|
-
get io(): "input" | "output";
|
|
2961
|
-
/** @deprecated Access via ctx instead */
|
|
2962
|
-
get counter(): number;
|
|
2963
|
-
set counter(value: number);
|
|
2964
|
-
/** @deprecated Access via ctx instead */
|
|
2965
|
-
get seen(): Map<$ZodType, Seen>;
|
|
2966
|
-
constructor(params?: JSONSchemaGeneratorConstructorParams);
|
|
2967
|
-
/**
|
|
2968
|
-
* Process a schema to prepare it for JSON Schema generation.
|
|
2969
|
-
* This must be called before emit().
|
|
2970
|
-
*/
|
|
2971
|
-
process(schema: $ZodType, _params?: ProcessParams): BaseSchema;
|
|
2972
|
-
/**
|
|
2973
|
-
* Emit the final JSON Schema after processing.
|
|
2974
|
-
* Must call process() first.
|
|
2975
|
-
*/
|
|
2976
|
-
emit(schema: $ZodType, _params?: EmitParams): BaseSchema;
|
|
2977
|
-
}
|
|
2978
|
-
declare namespace index_d_exports {
|
|
2979
|
-
export { $Decode, $DecodeAsync, $Encode, $EncodeAsync, $InferEnumInput, $InferEnumOutput, $InferInnerFunctionType, $InferInnerFunctionTypeAsync, $InferObjectInput, $InferObjectOutput, $InferOuterFunctionType, $InferOuterFunctionTypeAsync, $InferTupleInputType, $InferTupleOutputType, $InferUnionInput, $InferUnionOutput, $InferZodRecordInput, $InferZodRecordOutput, $Parse, $ParseAsync, $PartsToTemplateLiteral, $RefinementCtx, $SafeDecode, $SafeDecodeAsync, $SafeEncode, $SafeEncodeAsync, $SafeParse, $SafeParseAsync, $ZodAny, $ZodAnyDef, $ZodAnyInternals, $ZodAnyParams, $ZodArray, $ZodArrayDef, $ZodArrayInternals, $ZodArrayParams, $ZodAsyncError, $ZodBase64, $ZodBase64Def, $ZodBase64Internals, $ZodBase64Params, $ZodBase64URL, $ZodBase64URLDef, $ZodBase64URLInternals, $ZodBase64URLParams, $ZodBigInt, $ZodBigIntDef, $ZodBigIntFormat, $ZodBigIntFormatDef, $ZodBigIntFormatInternals, $ZodBigIntFormatParams, $ZodBigIntFormats, $ZodBigIntInternals, $ZodBigIntParams, $ZodBoolean, $ZodBooleanDef, $ZodBooleanInternals, $ZodBooleanParams, $ZodBranded, $ZodCIDRv4, $ZodCIDRv4Def, $ZodCIDRv4Internals, $ZodCIDRv4Params, $ZodCIDRv6, $ZodCIDRv6Def, $ZodCIDRv6Internals, $ZodCIDRv6Params, $ZodCUID, $ZodCUID2, $ZodCUID2Def, $ZodCUID2Internals, $ZodCUID2Params, $ZodCUIDDef, $ZodCUIDInternals, $ZodCUIDParams, $ZodCatch, $ZodCatchCtx, $ZodCatchDef, $ZodCatchInternals, $ZodCatchParams, $ZodCheck, $ZodCheckBase64Params, $ZodCheckBase64URLParams, $ZodCheckBigIntFormat, $ZodCheckBigIntFormatDef, $ZodCheckBigIntFormatInternals, $ZodCheckBigIntFormatParams, $ZodCheckCIDRv4Params, $ZodCheckCIDRv6Params, $ZodCheckCUID2Params, $ZodCheckCUIDParams, $ZodCheckDef, $ZodCheckE164Params, $ZodCheckEmailParams, $ZodCheckEmojiParams, $ZodCheckEndsWith, $ZodCheckEndsWithDef, $ZodCheckEndsWithInternals, $ZodCheckEndsWithParams, $ZodCheckGUIDParams, $ZodCheckGreaterThan, $ZodCheckGreaterThanDef, $ZodCheckGreaterThanInternals, $ZodCheckGreaterThanParams, $ZodCheckIPv4Params, $ZodCheckIPv6Params, $ZodCheckISODateParams, $ZodCheckISODateTimeParams, $ZodCheckISODurationParams, $ZodCheckISOTimeParams, $ZodCheckIncludes, $ZodCheckIncludesDef, $ZodCheckIncludesInternals, $ZodCheckIncludesParams, $ZodCheckInternals, $ZodCheckJWTParams, $ZodCheckKSUIDParams, $ZodCheckLengthEquals, $ZodCheckLengthEqualsDef, $ZodCheckLengthEqualsInternals, $ZodCheckLengthEqualsParams, $ZodCheckLessThan, $ZodCheckLessThanDef, $ZodCheckLessThanInternals, $ZodCheckLessThanParams, $ZodCheckLowerCase, $ZodCheckLowerCaseDef, $ZodCheckLowerCaseInternals, $ZodCheckLowerCaseParams, $ZodCheckMACParams, $ZodCheckMaxLength, $ZodCheckMaxLengthDef, $ZodCheckMaxLengthInternals, $ZodCheckMaxLengthParams, $ZodCheckMaxSize, $ZodCheckMaxSizeDef, $ZodCheckMaxSizeInternals, $ZodCheckMaxSizeParams, $ZodCheckMimeType, $ZodCheckMimeTypeDef, $ZodCheckMimeTypeInternals, $ZodCheckMimeTypeParams, $ZodCheckMinLength, $ZodCheckMinLengthDef, $ZodCheckMinLengthInternals, $ZodCheckMinLengthParams, $ZodCheckMinSize, $ZodCheckMinSizeDef, $ZodCheckMinSizeInternals, $ZodCheckMinSizeParams, $ZodCheckMultipleOf, $ZodCheckMultipleOfDef, $ZodCheckMultipleOfInternals, $ZodCheckMultipleOfParams, $ZodCheckNanoIDParams, $ZodCheckNumberFormat, $ZodCheckNumberFormatDef, $ZodCheckNumberFormatInternals, $ZodCheckNumberFormatParams, $ZodCheckOverwrite, $ZodCheckOverwriteDef, $ZodCheckOverwriteInternals, $ZodCheckProperty, $ZodCheckPropertyDef, $ZodCheckPropertyInternals, $ZodCheckPropertyParams, $ZodCheckRegex, $ZodCheckRegexDef, $ZodCheckRegexInternals, $ZodCheckRegexParams, $ZodCheckSizeEquals, $ZodCheckSizeEqualsDef, $ZodCheckSizeEqualsInternals, $ZodCheckSizeEqualsParams, $ZodCheckStartsWith, $ZodCheckStartsWithDef, $ZodCheckStartsWithInternals, $ZodCheckStartsWithParams, $ZodCheckStringFormat, $ZodCheckStringFormatDef, $ZodCheckStringFormatInternals, $ZodCheckStringFormatParams, $ZodCheckULIDParams, $ZodCheckURLParams, $ZodCheckUUIDParams, $ZodCheckUUIDv4Params, $ZodCheckUUIDv6Params, $ZodCheckUUIDv7Params, $ZodCheckUpperCase, $ZodCheckUpperCaseDef, $ZodCheckUpperCaseInternals, $ZodCheckUpperCaseParams, $ZodCheckXIDParams, $ZodChecks, $ZodCodec, $ZodCodecDef, $ZodCodecInternals, $ZodConfig, $ZodCustom, $ZodCustomDef, $ZodCustomInternals, $ZodCustomParams, $ZodCustomStringFormat, $ZodCustomStringFormatDef, $ZodCustomStringFormatInternals, $ZodDate, $ZodDateDef, $ZodDateInternals, $ZodDateParams, $ZodDefault, $ZodDefaultDef, $ZodDefaultInternals, $ZodDefaultParams, $ZodDiscriminatedUnion, $ZodDiscriminatedUnionDef, $ZodDiscriminatedUnionInternals, $ZodDiscriminatedUnionParams, $ZodE164, $ZodE164Def, $ZodE164Internals, $ZodE164Params, $ZodEmail, $ZodEmailDef, $ZodEmailInternals, $ZodEmailParams, $ZodEmoji, $ZodEmojiDef, $ZodEmojiInternals, $ZodEmojiParams, $ZodEncodeError, $ZodEnum, $ZodEnumDef, $ZodEnumInternals, $ZodEnumParams, $ZodError, $ZodErrorClass, $ZodErrorMap, $ZodErrorTree, $ZodExactOptional, $ZodExactOptionalDef, $ZodExactOptionalInternals, $ZodFile, $ZodFileDef, $ZodFileInternals, $ZodFileParams, $ZodFlattenedError, $ZodFormattedError, $ZodFunction, $ZodFunctionArgs, $ZodFunctionDef, $ZodFunctionIn, $ZodFunctionInternals, $ZodFunctionOut, $ZodFunctionParams, $ZodGUID, $ZodGUIDDef, $ZodGUIDInternals, $ZodGUIDParams, $ZodIPv4, $ZodIPv4Def, $ZodIPv4Internals, $ZodIPv4Params, $ZodIPv6, $ZodIPv6Def, $ZodIPv6Internals, $ZodIPv6Params, $ZodISODate, $ZodISODateDef, $ZodISODateInternals, $ZodISODateParams, $ZodISODateTime, $ZodISODateTimeDef, $ZodISODateTimeInternals, $ZodISODateTimeParams, $ZodISODuration, $ZodISODurationDef, $ZodISODurationInternals, $ZodISODurationParams, $ZodISOTime, $ZodISOTimeDef, $ZodISOTimeInternals, $ZodISOTimeParams, $ZodInternalIssue, $ZodIntersection, $ZodIntersectionDef, $ZodIntersectionInternals, $ZodIntersectionParams, $ZodInvalidTypeExpected, $ZodIssue, $ZodIssueBase, $ZodIssueCode, $ZodIssueCustom, $ZodIssueInvalidElement, $ZodIssueInvalidKey, $ZodIssueInvalidStringFormat, $ZodIssueInvalidType, $ZodIssueInvalidUnion, $ZodIssueInvalidValue, $ZodIssueNotMultipleOf, $ZodIssueStringCommonFormats, $ZodIssueStringEndsWith, $ZodIssueStringIncludes, $ZodIssueStringInvalidJWT, $ZodIssueStringInvalidRegex, $ZodIssueStringStartsWith, $ZodIssueTooBig, $ZodIssueTooSmall, $ZodIssueUnrecognizedKeys, $ZodJWT, $ZodJWTDef, $ZodJWTInternals, $ZodJWTParams, $ZodKSUID, $ZodKSUIDDef, $ZodKSUIDInternals, $ZodKSUIDParams, $ZodLazy, $ZodLazyDef, $ZodLazyInternals, $ZodLazyParams, $ZodLiteral, $ZodLiteralDef, $ZodLiteralInternals, $ZodLiteralParams, $ZodLooseShape, $ZodMAC, $ZodMACDef, $ZodMACInternals, $ZodMACParams, $ZodMap, $ZodMapDef, $ZodMapInternals, $ZodMapParams, $ZodNaN, $ZodNaNDef, $ZodNaNInternals, $ZodNaNParams, $ZodNanoID, $ZodNanoIDDef, $ZodNanoIDInternals, $ZodNanoIDParams, $ZodNarrow, $ZodNever, $ZodNeverDef, $ZodNeverInternals, $ZodNeverParams, $ZodNonOptional, $ZodNonOptionalDef, $ZodNonOptionalInternals, $ZodNonOptionalParams, $ZodNull, $ZodNullDef, $ZodNullInternals, $ZodNullParams, $ZodNullable, $ZodNullableDef, $ZodNullableInternals, $ZodNullableParams, $ZodNumber, $ZodNumberDef, $ZodNumberFormat, $ZodNumberFormatDef, $ZodNumberFormatInternals, $ZodNumberFormatParams, $ZodNumberFormats, $ZodNumberInternals, $ZodNumberParams, $ZodObject, $ZodObjectConfig, $ZodObjectDef, $ZodObjectInternals, $ZodObjectJIT, $ZodObjectParams, $ZodOptional, $ZodOptionalDef, $ZodOptionalInternals, $ZodOptionalParams, $ZodPipe, $ZodPipeDef, $ZodPipeInternals, $ZodPipeParams, $ZodPrefault, $ZodPrefaultDef, $ZodPrefaultInternals, $ZodPreprocess, $ZodPreprocessDef, $ZodPreprocessInternals, $ZodPromise, $ZodPromiseDef, $ZodPromiseInternals, $ZodPromiseParams, $ZodRawIssue, $ZodReadonly, $ZodReadonlyDef, $ZodReadonlyInternals, $ZodReadonlyParams, $ZodRealError, $ZodRecord, $ZodRecordDef, $ZodRecordInternals, $ZodRecordKey, $ZodRecordParams, $ZodRegistry, $ZodSet, $ZodSetDef, $ZodSetInternals, $ZodSetParams, $ZodShape, $ZodStandardSchema, $ZodString, $ZodStringBoolParams, $ZodStringDef, $ZodStringFormat, $ZodStringFormatChecks, $ZodStringFormatDef, $ZodStringFormatInternals, $ZodStringFormatIssues, $ZodStringFormatParams, $ZodStringFormatTypes, $ZodStringFormats, $ZodStringInternals, $ZodStringParams, $ZodSuccess, $ZodSuccessDef, $ZodSuccessInternals, $ZodSuccessParams, $ZodSuperRefineIssue, $ZodSuperRefineParams, $ZodSymbol, $ZodSymbolDef, $ZodSymbolInternals, $ZodSymbolParams, $ZodTemplateLiteral, $ZodTemplateLiteralDef, $ZodTemplateLiteralInternals, $ZodTemplateLiteralParams, $ZodTemplateLiteralPart, $ZodTransform, $ZodTransformDef, $ZodTransformInternals, $ZodTransformParams, $ZodTuple, $ZodTupleDef, $ZodTupleInternals, $ZodTupleParams, $ZodType, $ZodTypeDef, $ZodTypeDiscriminable, $ZodTypeDiscriminableInternals, $ZodTypeInternals, $ZodTypes, $ZodULID, $ZodULIDDef, $ZodULIDInternals, $ZodULIDParams, $ZodURL, $ZodURLDef, $ZodURLInternals, $ZodURLParams, $ZodUUID, $ZodUUIDDef, $ZodUUIDInternals, $ZodUUIDParams, $ZodUUIDv4Params, $ZodUUIDv6Params, $ZodUUIDv7Params, $ZodUndefined, $ZodUndefinedDef, $ZodUndefinedInternals, $ZodUndefinedParams, $ZodUnion, $ZodUnionDef, $ZodUnionInternals, $ZodUnionParams, $ZodUnknown, $ZodUnknownDef, $ZodUnknownInternals, $ZodUnknownParams, $ZodVoid, $ZodVoidDef, $ZodVoidInternals, $ZodVoidParams, $ZodXID, $ZodXIDDef, $ZodXIDInternals, $ZodXIDParams, $ZodXor, $ZodXorInternals, $ZodXorParams, $brand, $catchall, $constructor, $input, $loose, $output, $partial, $replace, $strict, $strip, CheckFn, CheckParams, CheckStringFormatParams, CheckTypeParams, ConcatenateTupleOfStrings, ConvertPartsToStringTuple, Doc, File, GlobalMeta, json_schema_d_exports as JSONSchema, JSONSchemaGenerator, JSONSchemaGeneratorParams, JSONSchemaMeta, NEVER, Params, ParseContext, ParseContextInternal, ParsePayload, ProcessParams, Processor, RegistryToJSONSchemaParams, Seen, SomeType, StringFormatParams, TimePrecision, ToJSONSchemaContext, ToJSONSchemaParams, ToTemplateLiteral, TypeParams, ZodStandardJSONSchemaPayload, ZodStandardSchemaWithJSON$1 as ZodStandardSchemaWithJSON, _$ZodType, _$ZodTypeInternals, _any, _array, _base64, _base64url, _bigint, _boolean, _catch$1 as _catch, _check, _cidrv4, _cidrv6, _coercedBigint, _coercedBoolean, _coercedDate, _coercedNumber, _coercedString, _cuid, _cuid2, _custom, _date, _decode, _decodeAsync, _default$1 as _default, _discriminatedUnion, _e164, _email, _emoji, _encode, _encodeAsync, _endsWith, _enum$1 as _enum, _file, _float32, _float64, _gt, _gte, _guid, _includes, _int, _int32, _int64, _intersection, _ipv4, _ipv6, _isoDate, _isoDateTime, _isoDuration, _isoTime, _jwt, _ksuid, _lazy, _length, _literal, _lowercase, _lt, _lte, _mac, _map, _lte as _max, _maxLength, _maxSize, _mime, _gte as _min, _minLength, _minSize, _multipleOf, _nan, _nanoid, _nativeEnum, _negative, _never, _nonnegative, _nonoptional, _nonpositive, _normalize, _null$1 as _null, _nullable, _number, _optional, _overwrite, _parse, _parseAsync, _pipe, _positive, _promise, _property, _readonly, _record, _refine, _regex, _safeDecode, _safeDecodeAsync, _safeEncode, _safeEncodeAsync, _safeParse, _safeParseAsync, _set, _size, _slugify, _startsWith, _string, _stringFormat, _stringbool, _success, _superRefine, _symbol, _templateLiteral, _toLowerCase, _toUpperCase, _transform, _trim, _tuple, _uint32, _uint64, _ulid, _undefined$1 as _undefined, _union, _unknown, _uppercase, _url, _uuid, _uuidv4, _uuidv6, _uuidv7, _void$1 as _void, _xid, _xor, clone, config, createStandardJSONSchemaMethod, createToJSONSchemaMethod, decode$1 as decode, decodeAsync$1 as decodeAsync, describe$1 as describe, encode$1 as encode, encodeAsync$1 as encodeAsync, extractDefs, finalize, flattenError, formatError, globalConfig, globalRegistry, output as infer, initializeContext, input, isValidBase64, isValidBase64URL, isValidJWT, index_d_exports$1 as locales, meta$1 as meta, output, parse$1 as parse, parseAsync$1 as parseAsync, prettifyError, process, regexes_d_exports as regexes, registry, safeDecode$1 as safeDecode, safeDecodeAsync$1 as safeDecodeAsync, safeEncode$1 as safeEncode, safeEncodeAsync$1 as safeEncodeAsync, safeParse$1 as safeParse, safeParseAsync$1 as safeParseAsync, toDotPath, toJSONSchema, treeifyError, util_d_exports as util, version };
|
|
2980
|
-
}
|
|
2981
|
-
//#endregion
|
|
2982
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.d.cts
|
|
2983
|
-
/** @deprecated Use `z.core.$ZodIssue` from `@zod/core` instead, especially if you are building a library on top of Zod. */
|
|
2984
|
-
type ZodIssue = $ZodIssue;
|
|
2985
|
-
/** An Error-like class used to store Zod validation issues. */
|
|
2986
|
-
interface ZodError<T = unknown> extends $ZodError<T> {
|
|
2987
|
-
/** @deprecated Use the `z.treeifyError(err)` function instead. */
|
|
2988
|
-
format(): $ZodFormattedError<T>;
|
|
2989
|
-
format<U>(mapper: (issue: $ZodIssue) => U): $ZodFormattedError<T, U>;
|
|
2990
|
-
/** @deprecated Use the `z.treeifyError(err)` function instead. */
|
|
2991
|
-
flatten(): $ZodFlattenedError<T>;
|
|
2992
|
-
flatten<U>(mapper: (issue: $ZodIssue) => U): $ZodFlattenedError<T, U>;
|
|
2993
|
-
/** @deprecated Push directly to `.issues` instead. */
|
|
2994
|
-
addIssue(issue: $ZodIssue): void;
|
|
2995
|
-
/** @deprecated Push directly to `.issues` instead. */
|
|
2996
|
-
addIssues(issues: $ZodIssue[]): void;
|
|
2997
|
-
/** @deprecated Check `err.issues.length === 0` instead. */
|
|
2998
|
-
isEmpty: boolean;
|
|
2999
|
-
}
|
|
3000
|
-
declare const ZodError: $constructor<ZodError>;
|
|
3001
|
-
declare const ZodRealError: $constructor<ZodError>;
|
|
3002
|
-
/** @deprecated Use `z.core.$ZodRawIssue` instead. */
|
|
3003
|
-
type IssueData = $ZodRawIssue;
|
|
3004
|
-
declare namespace parse_d_exports {
|
|
3005
|
-
export { ZodSafeParseError, ZodSafeParseResult, ZodSafeParseSuccess, decode, decodeAsync, encode, encodeAsync, parse, parseAsync, safeDecode, safeDecodeAsync, safeEncode, safeEncodeAsync, safeParse, safeParseAsync };
|
|
3006
|
-
}
|
|
3007
|
-
type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
|
|
3008
|
-
type ZodSafeParseSuccess<T> = {
|
|
3009
|
-
success: true;
|
|
3010
|
-
data: T;
|
|
3011
|
-
error?: never;
|
|
3012
|
-
};
|
|
3013
|
-
type ZodSafeParseError<T> = {
|
|
3014
|
-
success: false;
|
|
3015
|
-
data?: never;
|
|
3016
|
-
error: ZodError<T>;
|
|
3017
|
-
};
|
|
3018
|
-
declare const parse: <T extends $ZodType>(schema: T, value: unknown, _ctx?: ParseContext<$ZodIssue>, _params?: {
|
|
3019
|
-
callee?: AnyFunc;
|
|
3020
|
-
Err?: $ZodErrorClass;
|
|
3021
|
-
}) => output<T>;
|
|
3022
|
-
declare const parseAsync: <T extends $ZodType>(schema: T, value: unknown, _ctx?: ParseContext<$ZodIssue>, _params?: {
|
|
3023
|
-
callee?: AnyFunc;
|
|
3024
|
-
Err?: $ZodErrorClass;
|
|
3025
|
-
}) => Promise<output<T>>;
|
|
3026
|
-
declare const safeParse: <T extends $ZodType>(schema: T, value: unknown, _ctx?: ParseContext<$ZodIssue>) => ZodSafeParseResult<output<T>>;
|
|
3027
|
-
declare const safeParseAsync: <T extends $ZodType>(schema: T, value: unknown, _ctx?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<output<T>>>;
|
|
3028
|
-
declare const encode: <T extends $ZodType>(schema: T, value: output<T>, _ctx?: ParseContext<$ZodIssue>) => input<T>;
|
|
3029
|
-
declare const decode: <T extends $ZodType>(schema: T, value: input<T>, _ctx?: ParseContext<$ZodIssue>) => output<T>;
|
|
3030
|
-
declare const encodeAsync: <T extends $ZodType>(schema: T, value: output<T>, _ctx?: ParseContext<$ZodIssue>) => Promise<input<T>>;
|
|
3031
|
-
declare const decodeAsync: <T extends $ZodType>(schema: T, value: input<T>, _ctx?: ParseContext<$ZodIssue>) => Promise<output<T>>;
|
|
3032
|
-
declare const safeEncode: <T extends $ZodType>(schema: T, value: output<T>, _ctx?: ParseContext<$ZodIssue>) => ZodSafeParseResult<input<T>>;
|
|
3033
|
-
declare const safeDecode: <T extends $ZodType>(schema: T, value: input<T>, _ctx?: ParseContext<$ZodIssue>) => ZodSafeParseResult<output<T>>;
|
|
3034
|
-
declare const safeEncodeAsync: <T extends $ZodType>(schema: T, value: output<T>, _ctx?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<input<T>>>;
|
|
3035
|
-
declare const safeDecodeAsync: <T extends $ZodType>(schema: T, value: input<T>, _ctx?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<output<T>>>;
|
|
3036
|
-
//#endregion
|
|
3037
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.d.cts
|
|
3038
|
-
type ZodStandardSchemaWithJSON<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
|
|
3039
|
-
interface ZodType<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
|
|
3040
|
-
def: Internals["def"];
|
|
3041
|
-
type: Internals["def"]["type"];
|
|
3042
|
-
/** @deprecated Use `.def` instead. */
|
|
3043
|
-
_def: Internals["def"];
|
|
3044
|
-
/** @deprecated Use `z.output<typeof schema>` instead. */
|
|
3045
|
-
_output: Internals["output"];
|
|
3046
|
-
/** @deprecated Use `z.input<typeof schema>` instead. */
|
|
3047
|
-
_input: Internals["input"];
|
|
3048
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3049
|
-
/** Converts this schema to a JSON Schema representation. */
|
|
3050
|
-
toJSONSchema(params?: ToJSONSchemaParams): ZodStandardJSONSchemaPayload<this>;
|
|
3051
|
-
check(...checks: (CheckFn<output<this>> | $ZodCheck<output<this>>)[]): this;
|
|
3052
|
-
with(...checks: (CheckFn<output<this>> | $ZodCheck<output<this>>)[]): this;
|
|
3053
|
-
clone(def?: Internals["def"], params?: {
|
|
3054
|
-
parent: boolean;
|
|
3055
|
-
}): this;
|
|
3056
|
-
register<R extends $ZodRegistry>(registry: R, ...meta: this extends R["_schema"] ? undefined extends R["_meta"] ? [$replace<R["_meta"], this>?] : [$replace<R["_meta"], this>] : ["Incompatible schema"]): this;
|
|
3057
|
-
brand<T extends PropertyKey = PropertyKey, Dir extends "in" | "out" | "inout" = "out">(value?: T): PropertyKey extends T ? this : $ZodBranded<this, T, Dir>;
|
|
3058
|
-
parse(data: unknown, params?: ParseContext<$ZodIssue>): output<this>;
|
|
3059
|
-
safeParse(data: unknown, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
|
|
3060
|
-
parseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
|
|
3061
|
-
safeParseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
|
|
3062
|
-
spa: (data: unknown, params?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<output<this>>>;
|
|
3063
|
-
encode(data: output<this>, params?: ParseContext<$ZodIssue>): input<this>;
|
|
3064
|
-
decode(data: input<this>, params?: ParseContext<$ZodIssue>): output<this>;
|
|
3065
|
-
encodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<input<this>>;
|
|
3066
|
-
decodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
|
|
3067
|
-
safeEncode(data: output<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<input<this>>;
|
|
3068
|
-
safeDecode(data: input<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
|
|
3069
|
-
safeEncodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<input<this>>>;
|
|
3070
|
-
safeDecodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
|
|
3071
|
-
refine<Ch extends (arg: output<this>) => unknown | Promise<unknown>>(check: Ch, params?: string | $ZodCustomParams): Ch extends ((arg: any) => arg is infer R) ? this & ZodType<R, input<this>> : this;
|
|
3072
|
-
superRefine(refinement: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => void | Promise<void>, params?: $ZodSuperRefineParams): this;
|
|
3073
|
-
overwrite(fn: (x: output<this>) => output<this>): this;
|
|
3074
|
-
optional(): ZodOptional<this>;
|
|
3075
|
-
exactOptional(): ZodExactOptional<this>;
|
|
3076
|
-
nonoptional(params?: string | $ZodNonOptionalParams): ZodNonOptional<this>;
|
|
3077
|
-
nullable(): ZodNullable<this>;
|
|
3078
|
-
nullish(): ZodOptional<ZodNullable<this>>;
|
|
3079
|
-
default(def: NoUndefined<output<this>>): ZodDefault<this>;
|
|
3080
|
-
default(def: () => NoUndefined<output<this>>): ZodDefault<this>;
|
|
3081
|
-
prefault(def: () => input<this>): ZodPrefault<this>;
|
|
3082
|
-
prefault(def: input<this>): ZodPrefault<this>;
|
|
3083
|
-
array(): ZodArray<this>;
|
|
3084
|
-
or<T extends SomeType>(option: T): ZodUnion<[this, T]>;
|
|
3085
|
-
and<T extends SomeType>(incoming: T): ZodIntersection<this, T>;
|
|
3086
|
-
transform<NewOut>(transform: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => NewOut | Promise<NewOut>): ZodPipe<this, ZodTransform<Awaited<NewOut>, output<this>>>;
|
|
3087
|
-
catch(def: output<this>): ZodCatch<this>;
|
|
3088
|
-
catch(def: (ctx: $ZodCatchCtx) => output<this>): ZodCatch<this>;
|
|
3089
|
-
pipe<T extends $ZodType<any, output<this>>>(target: T | $ZodType<any, output<this>>): ZodPipe<this, T>;
|
|
3090
|
-
readonly(): ZodReadonly<this>;
|
|
3091
|
-
/** Returns a new instance that has been registered in `z.globalRegistry` with the specified description */
|
|
3092
|
-
describe(description: string): this;
|
|
3093
|
-
description?: string;
|
|
3094
|
-
/** Returns the metadata associated with this instance in `z.globalRegistry` */
|
|
3095
|
-
meta(): $replace<GlobalMeta, this> | undefined;
|
|
3096
|
-
/** Returns a new instance that has been registered in `z.globalRegistry` with the specified metadata */
|
|
3097
|
-
meta(data: $replace<GlobalMeta, this>): this;
|
|
3098
|
-
/** @deprecated Try safe-parsing `undefined` (this is what `isOptional` does internally):
|
|
3099
|
-
*
|
|
3100
|
-
* ```ts
|
|
3101
|
-
* const schema = z.string().optional();
|
|
3102
|
-
* const isOptional = schema.safeParse(undefined).success; // true
|
|
3103
|
-
* ```
|
|
3104
|
-
*/
|
|
3105
|
-
isOptional(): boolean;
|
|
3106
|
-
/**
|
|
3107
|
-
* @deprecated Try safe-parsing `null` (this is what `isNullable` does internally):
|
|
3108
|
-
*
|
|
3109
|
-
* ```ts
|
|
3110
|
-
* const schema = z.string().nullable();
|
|
3111
|
-
* const isNullable = schema.safeParse(null).success; // true
|
|
3112
|
-
* ```
|
|
3113
|
-
*/
|
|
3114
|
-
isNullable(): boolean;
|
|
3115
|
-
apply<T>(fn: (schema: this) => T): T;
|
|
3116
|
-
}
|
|
3117
|
-
interface _ZodType<out Internals extends $ZodTypeInternals = $ZodTypeInternals> extends ZodType<any, any, Internals> {}
|
|
3118
|
-
declare const ZodType: $constructor<ZodType>;
|
|
3119
|
-
interface _ZodString<T extends $ZodStringInternals<unknown> = $ZodStringInternals<unknown>> extends _ZodType<T> {
|
|
3120
|
-
format: string | null;
|
|
3121
|
-
minLength: number | null;
|
|
3122
|
-
maxLength: number | null;
|
|
3123
|
-
regex(regex: RegExp, params?: string | $ZodCheckRegexParams): this;
|
|
3124
|
-
includes(value: string, params?: string | $ZodCheckIncludesParams): this;
|
|
3125
|
-
startsWith(value: string, params?: string | $ZodCheckStartsWithParams): this;
|
|
3126
|
-
endsWith(value: string, params?: string | $ZodCheckEndsWithParams): this;
|
|
3127
|
-
min(minLength: number, params?: string | $ZodCheckMinLengthParams): this;
|
|
3128
|
-
max(maxLength: number, params?: string | $ZodCheckMaxLengthParams): this;
|
|
3129
|
-
length(len: number, params?: string | $ZodCheckLengthEqualsParams): this;
|
|
3130
|
-
nonempty(params?: string | $ZodCheckMinLengthParams): this;
|
|
3131
|
-
lowercase(params?: string | $ZodCheckLowerCaseParams): this;
|
|
3132
|
-
uppercase(params?: string | $ZodCheckUpperCaseParams): this;
|
|
3133
|
-
trim(): this;
|
|
3134
|
-
normalize(form?: "NFC" | "NFD" | "NFKC" | "NFKD" | (string & {})): this;
|
|
3135
|
-
toLowerCase(): this;
|
|
3136
|
-
toUpperCase(): this;
|
|
3137
|
-
slugify(): this;
|
|
3138
|
-
}
|
|
3139
|
-
/** @internal */
|
|
3140
|
-
declare const _ZodString: $constructor<_ZodString>;
|
|
3141
|
-
interface ZodString extends _ZodString<$ZodStringInternals<string>> {
|
|
3142
|
-
/** @deprecated Use `z.email()` instead. */
|
|
3143
|
-
email(params?: string | $ZodCheckEmailParams): this;
|
|
3144
|
-
/** @deprecated Use `z.url()` instead. */
|
|
3145
|
-
url(params?: string | $ZodCheckURLParams): this;
|
|
3146
|
-
/** @deprecated Use `z.jwt()` instead. */
|
|
3147
|
-
jwt(params?: string | $ZodCheckJWTParams): this;
|
|
3148
|
-
/** @deprecated Use `z.emoji()` instead. */
|
|
3149
|
-
emoji(params?: string | $ZodCheckEmojiParams): this;
|
|
3150
|
-
/** @deprecated Use `z.guid()` instead. */
|
|
3151
|
-
guid(params?: string | $ZodCheckGUIDParams): this;
|
|
3152
|
-
/** @deprecated Use `z.uuid()` instead. */
|
|
3153
|
-
uuid(params?: string | $ZodCheckUUIDParams): this;
|
|
3154
|
-
/** @deprecated Use `z.uuid()` instead. */
|
|
3155
|
-
uuidv4(params?: string | $ZodCheckUUIDParams): this;
|
|
3156
|
-
/** @deprecated Use `z.uuid()` instead. */
|
|
3157
|
-
uuidv6(params?: string | $ZodCheckUUIDParams): this;
|
|
3158
|
-
/** @deprecated Use `z.uuid()` instead. */
|
|
3159
|
-
uuidv7(params?: string | $ZodCheckUUIDParams): this;
|
|
3160
|
-
/** @deprecated Use `z.nanoid()` instead. */
|
|
3161
|
-
nanoid(params?: string | $ZodCheckNanoIDParams): this;
|
|
3162
|
-
/** @deprecated Use `z.guid()` instead. */
|
|
3163
|
-
guid(params?: string | $ZodCheckGUIDParams): this;
|
|
3164
|
-
/**
|
|
3165
|
-
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
3166
|
-
* (timestamps embedded in the id). Use `z.cuid2()` instead.
|
|
3167
|
-
* See https://github.com/paralleldrive/cuid.
|
|
3168
|
-
*/
|
|
3169
|
-
cuid(params?: string | $ZodCheckCUIDParams): this;
|
|
3170
|
-
/** @deprecated Use `z.cuid2()` instead. */
|
|
3171
|
-
cuid2(params?: string | $ZodCheckCUID2Params): this;
|
|
3172
|
-
/** @deprecated Use `z.ulid()` instead. */
|
|
3173
|
-
ulid(params?: string | $ZodCheckULIDParams): this;
|
|
3174
|
-
/** @deprecated Use `z.base64()` instead. */
|
|
3175
|
-
base64(params?: string | $ZodCheckBase64Params): this;
|
|
3176
|
-
/** @deprecated Use `z.base64url()` instead. */
|
|
3177
|
-
base64url(params?: string | $ZodCheckBase64URLParams): this;
|
|
3178
|
-
/** @deprecated Use `z.xid()` instead. */
|
|
3179
|
-
xid(params?: string | $ZodCheckXIDParams): this;
|
|
3180
|
-
/** @deprecated Use `z.ksuid()` instead. */
|
|
3181
|
-
ksuid(params?: string | $ZodCheckKSUIDParams): this;
|
|
3182
|
-
/** @deprecated Use `z.ipv4()` instead. */
|
|
3183
|
-
ipv4(params?: string | $ZodCheckIPv4Params): this;
|
|
3184
|
-
/** @deprecated Use `z.ipv6()` instead. */
|
|
3185
|
-
ipv6(params?: string | $ZodCheckIPv6Params): this;
|
|
3186
|
-
/** @deprecated Use `z.cidrv4()` instead. */
|
|
3187
|
-
cidrv4(params?: string | $ZodCheckCIDRv4Params): this;
|
|
3188
|
-
/** @deprecated Use `z.cidrv6()` instead. */
|
|
3189
|
-
cidrv6(params?: string | $ZodCheckCIDRv6Params): this;
|
|
3190
|
-
/** @deprecated Use `z.e164()` instead. */
|
|
3191
|
-
e164(params?: string | $ZodCheckE164Params): this;
|
|
3192
|
-
/** @deprecated Use `z.iso.datetime()` instead. */
|
|
3193
|
-
datetime(params?: string | $ZodCheckISODateTimeParams): this;
|
|
3194
|
-
/** @deprecated Use `z.iso.date()` instead. */
|
|
3195
|
-
date(params?: string | $ZodCheckISODateParams): this;
|
|
3196
|
-
/** @deprecated Use `z.iso.time()` instead. */
|
|
3197
|
-
time(params?: string | $ZodCheckISOTimeParams): this;
|
|
3198
|
-
/** @deprecated Use `z.iso.duration()` instead. */
|
|
3199
|
-
duration(params?: string | $ZodCheckISODurationParams): this;
|
|
3200
|
-
}
|
|
3201
|
-
declare const ZodString: $constructor<ZodString>;
|
|
3202
|
-
declare function string$1(params?: string | $ZodStringParams): ZodString;
|
|
3203
|
-
declare function string$1<T extends string>(params?: string | $ZodStringParams): $ZodType<T, T>;
|
|
3204
|
-
interface ZodStringFormat<Format extends string = string> extends _ZodString<$ZodStringFormatInternals<Format>> {}
|
|
3205
|
-
declare const ZodStringFormat: $constructor<ZodStringFormat>;
|
|
3206
|
-
interface ZodEmail extends ZodStringFormat<"email"> {
|
|
3207
|
-
_zod: $ZodEmailInternals;
|
|
3208
|
-
}
|
|
3209
|
-
declare const ZodEmail: $constructor<ZodEmail>;
|
|
3210
|
-
declare function email(params?: string | $ZodEmailParams): ZodEmail;
|
|
3211
|
-
interface ZodGUID extends ZodStringFormat<"guid"> {
|
|
3212
|
-
_zod: $ZodGUIDInternals;
|
|
3213
|
-
}
|
|
3214
|
-
declare const ZodGUID: $constructor<ZodGUID>;
|
|
3215
|
-
declare function guid(params?: string | $ZodGUIDParams): ZodGUID;
|
|
3216
|
-
interface ZodUUID extends ZodStringFormat<"uuid"> {
|
|
3217
|
-
_zod: $ZodUUIDInternals;
|
|
3218
|
-
}
|
|
3219
|
-
declare const ZodUUID: $constructor<ZodUUID>;
|
|
3220
|
-
declare function uuid(params?: string | $ZodUUIDParams): ZodUUID;
|
|
3221
|
-
declare function uuidv4(params?: string | $ZodUUIDv4Params): ZodUUID;
|
|
3222
|
-
declare function uuidv6(params?: string | $ZodUUIDv6Params): ZodUUID;
|
|
3223
|
-
declare function uuidv7(params?: string | $ZodUUIDv7Params): ZodUUID;
|
|
3224
|
-
interface ZodURL extends ZodStringFormat<"url"> {
|
|
3225
|
-
_zod: $ZodURLInternals;
|
|
3226
|
-
}
|
|
3227
|
-
declare const ZodURL: $constructor<ZodURL>;
|
|
3228
|
-
declare function url(params?: string | $ZodURLParams): ZodURL;
|
|
3229
|
-
declare function httpUrl(params?: string | Omit<$ZodURLParams, "protocol" | "hostname">): ZodURL;
|
|
3230
|
-
interface ZodEmoji extends ZodStringFormat<"emoji"> {
|
|
3231
|
-
_zod: $ZodEmojiInternals;
|
|
3232
|
-
}
|
|
3233
|
-
declare const ZodEmoji: $constructor<ZodEmoji>;
|
|
3234
|
-
declare function emoji(params?: string | $ZodEmojiParams): ZodEmoji;
|
|
3235
|
-
interface ZodNanoID extends ZodStringFormat<"nanoid"> {
|
|
3236
|
-
_zod: $ZodNanoIDInternals;
|
|
3237
|
-
}
|
|
3238
|
-
declare const ZodNanoID: $constructor<ZodNanoID>;
|
|
3239
|
-
declare function nanoid(params?: string | $ZodNanoIDParams): ZodNanoID;
|
|
3240
|
-
/**
|
|
3241
|
-
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
3242
|
-
* (timestamps embedded in the id). Use {@link ZodCUID2} instead.
|
|
3243
|
-
* See https://github.com/paralleldrive/cuid.
|
|
3244
|
-
*/
|
|
3245
|
-
interface ZodCUID extends ZodStringFormat<"cuid"> {
|
|
3246
|
-
_zod: $ZodCUIDInternals;
|
|
3247
|
-
}
|
|
3248
|
-
/**
|
|
3249
|
-
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
3250
|
-
* (timestamps embedded in the id). Use {@link ZodCUID2} instead.
|
|
3251
|
-
* See https://github.com/paralleldrive/cuid.
|
|
3252
|
-
*/
|
|
3253
|
-
declare const ZodCUID: $constructor<ZodCUID>;
|
|
3254
|
-
/**
|
|
3255
|
-
* Validates a CUID v1 string.
|
|
3256
|
-
*
|
|
3257
|
-
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
3258
|
-
* (timestamps embedded in the id). Use {@link cuid2 | `z.cuid2()`} instead.
|
|
3259
|
-
* See https://github.com/paralleldrive/cuid.
|
|
3260
|
-
*/
|
|
3261
|
-
declare function cuid(params?: string | $ZodCUIDParams): ZodCUID;
|
|
3262
|
-
interface ZodCUID2 extends ZodStringFormat<"cuid2"> {
|
|
3263
|
-
_zod: $ZodCUID2Internals;
|
|
3264
|
-
}
|
|
3265
|
-
declare const ZodCUID2: $constructor<ZodCUID2>;
|
|
3266
|
-
declare function cuid2(params?: string | $ZodCUID2Params): ZodCUID2;
|
|
3267
|
-
interface ZodULID extends ZodStringFormat<"ulid"> {
|
|
3268
|
-
_zod: $ZodULIDInternals;
|
|
3269
|
-
}
|
|
3270
|
-
declare const ZodULID: $constructor<ZodULID>;
|
|
3271
|
-
declare function ulid(params?: string | $ZodULIDParams): ZodULID;
|
|
3272
|
-
interface ZodXID extends ZodStringFormat<"xid"> {
|
|
3273
|
-
_zod: $ZodXIDInternals;
|
|
3274
|
-
}
|
|
3275
|
-
declare const ZodXID: $constructor<ZodXID>;
|
|
3276
|
-
declare function xid(params?: string | $ZodXIDParams): ZodXID;
|
|
3277
|
-
interface ZodKSUID extends ZodStringFormat<"ksuid"> {
|
|
3278
|
-
_zod: $ZodKSUIDInternals;
|
|
3279
|
-
}
|
|
3280
|
-
declare const ZodKSUID: $constructor<ZodKSUID>;
|
|
3281
|
-
declare function ksuid(params?: string | $ZodKSUIDParams): ZodKSUID;
|
|
3282
|
-
interface ZodIPv4 extends ZodStringFormat<"ipv4"> {
|
|
3283
|
-
_zod: $ZodIPv4Internals;
|
|
3284
|
-
}
|
|
3285
|
-
declare const ZodIPv4: $constructor<ZodIPv4>;
|
|
3286
|
-
declare function ipv4(params?: string | $ZodIPv4Params): ZodIPv4;
|
|
3287
|
-
interface ZodMAC extends ZodStringFormat<"mac"> {
|
|
3288
|
-
_zod: $ZodMACInternals;
|
|
3289
|
-
}
|
|
3290
|
-
declare const ZodMAC: $constructor<ZodMAC>;
|
|
3291
|
-
declare function mac(params?: string | $ZodMACParams): ZodMAC;
|
|
3292
|
-
interface ZodIPv6 extends ZodStringFormat<"ipv6"> {
|
|
3293
|
-
_zod: $ZodIPv6Internals;
|
|
3294
|
-
}
|
|
3295
|
-
declare const ZodIPv6: $constructor<ZodIPv6>;
|
|
3296
|
-
declare function ipv6(params?: string | $ZodIPv6Params): ZodIPv6;
|
|
3297
|
-
interface ZodCIDRv4 extends ZodStringFormat<"cidrv4"> {
|
|
3298
|
-
_zod: $ZodCIDRv4Internals;
|
|
3299
|
-
}
|
|
3300
|
-
declare const ZodCIDRv4: $constructor<ZodCIDRv4>;
|
|
3301
|
-
declare function cidrv4(params?: string | $ZodCIDRv4Params): ZodCIDRv4;
|
|
3302
|
-
interface ZodCIDRv6 extends ZodStringFormat<"cidrv6"> {
|
|
3303
|
-
_zod: $ZodCIDRv6Internals;
|
|
3304
|
-
}
|
|
3305
|
-
declare const ZodCIDRv6: $constructor<ZodCIDRv6>;
|
|
3306
|
-
declare function cidrv6(params?: string | $ZodCIDRv6Params): ZodCIDRv6;
|
|
3307
|
-
interface ZodBase64 extends ZodStringFormat<"base64"> {
|
|
3308
|
-
_zod: $ZodBase64Internals;
|
|
3309
|
-
}
|
|
3310
|
-
declare const ZodBase64: $constructor<ZodBase64>;
|
|
3311
|
-
declare function base64(params?: string | $ZodBase64Params): ZodBase64;
|
|
3312
|
-
interface ZodBase64URL extends ZodStringFormat<"base64url"> {
|
|
3313
|
-
_zod: $ZodBase64URLInternals;
|
|
3314
|
-
}
|
|
3315
|
-
declare const ZodBase64URL: $constructor<ZodBase64URL>;
|
|
3316
|
-
declare function base64url(params?: string | $ZodBase64URLParams): ZodBase64URL;
|
|
3317
|
-
interface ZodE164 extends ZodStringFormat<"e164"> {
|
|
3318
|
-
_zod: $ZodE164Internals;
|
|
3319
|
-
}
|
|
3320
|
-
declare const ZodE164: $constructor<ZodE164>;
|
|
3321
|
-
declare function e164(params?: string | $ZodE164Params): ZodE164;
|
|
3322
|
-
interface ZodJWT extends ZodStringFormat<"jwt"> {
|
|
3323
|
-
_zod: $ZodJWTInternals;
|
|
3324
|
-
}
|
|
3325
|
-
declare const ZodJWT: $constructor<ZodJWT>;
|
|
3326
|
-
declare function jwt(params?: string | $ZodJWTParams): ZodJWT;
|
|
3327
|
-
interface ZodCustomStringFormat<Format extends string = string> extends ZodStringFormat<Format>, $ZodCustomStringFormat<Format> {
|
|
3328
|
-
_zod: $ZodCustomStringFormatInternals<Format>;
|
|
3329
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3330
|
-
}
|
|
3331
|
-
declare const ZodCustomStringFormat: $constructor<ZodCustomStringFormat>;
|
|
3332
|
-
declare function stringFormat<Format extends string>(format: Format, fnOrRegex: ((arg: string) => MaybeAsync<unknown>) | RegExp, _params?: string | $ZodStringFormatParams): ZodCustomStringFormat<Format>;
|
|
3333
|
-
declare function hostname(_params?: string | $ZodStringFormatParams): ZodCustomStringFormat<"hostname">;
|
|
3334
|
-
declare function hex(_params?: string | $ZodStringFormatParams): ZodCustomStringFormat<"hex">;
|
|
3335
|
-
declare function hash<Alg extends HashAlgorithm, Enc extends HashEncoding = "hex">(alg: Alg, params?: {
|
|
3336
|
-
enc?: Enc;
|
|
3337
|
-
} & $ZodStringFormatParams): ZodCustomStringFormat<`${Alg}_${Enc}`>;
|
|
3338
|
-
interface _ZodNumber<Internals extends $ZodNumberInternals = $ZodNumberInternals> extends _ZodType<Internals> {
|
|
3339
|
-
gt(value: number, params?: string | $ZodCheckGreaterThanParams): this;
|
|
3340
|
-
/** Identical to .min() */
|
|
3341
|
-
gte(value: number, params?: string | $ZodCheckGreaterThanParams): this;
|
|
3342
|
-
min(value: number, params?: string | $ZodCheckGreaterThanParams): this;
|
|
3343
|
-
lt(value: number, params?: string | $ZodCheckLessThanParams): this;
|
|
3344
|
-
/** Identical to .max() */
|
|
3345
|
-
lte(value: number, params?: string | $ZodCheckLessThanParams): this;
|
|
3346
|
-
max(value: number, params?: string | $ZodCheckLessThanParams): this;
|
|
3347
|
-
/** Consider `z.int()` instead. This API is considered *legacy*; it will never be removed but a better alternative exists. */
|
|
3348
|
-
int(params?: string | $ZodCheckNumberFormatParams): this;
|
|
3349
|
-
/** @deprecated This is now identical to `.int()`. Only numbers in the safe integer range are accepted. */
|
|
3350
|
-
safe(params?: string | $ZodCheckNumberFormatParams): this;
|
|
3351
|
-
positive(params?: string | $ZodCheckGreaterThanParams): this;
|
|
3352
|
-
nonnegative(params?: string | $ZodCheckGreaterThanParams): this;
|
|
3353
|
-
negative(params?: string | $ZodCheckLessThanParams): this;
|
|
3354
|
-
nonpositive(params?: string | $ZodCheckLessThanParams): this;
|
|
3355
|
-
multipleOf(value: number, params?: string | $ZodCheckMultipleOfParams): this;
|
|
3356
|
-
/** @deprecated Use `.multipleOf()` instead. */
|
|
3357
|
-
step(value: number, params?: string | $ZodCheckMultipleOfParams): this;
|
|
3358
|
-
/** @deprecated In v4 and later, z.number() does not allow infinite values by default. This is a no-op. */
|
|
3359
|
-
finite(params?: unknown): this;
|
|
3360
|
-
minValue: number | null;
|
|
3361
|
-
maxValue: number | null;
|
|
3362
|
-
/** @deprecated Check the `format` property instead. */
|
|
3363
|
-
isInt: boolean;
|
|
3364
|
-
/** @deprecated Number schemas no longer accept infinite values, so this always returns `true`. */
|
|
3365
|
-
isFinite: boolean;
|
|
3366
|
-
format: string | null;
|
|
3367
|
-
}
|
|
3368
|
-
interface ZodNumber extends _ZodNumber<$ZodNumberInternals<number>> {}
|
|
3369
|
-
declare const ZodNumber: $constructor<ZodNumber>;
|
|
3370
|
-
declare function number$1(params?: string | $ZodNumberParams): ZodNumber;
|
|
3371
|
-
interface ZodNumberFormat extends ZodNumber {
|
|
3372
|
-
_zod: $ZodNumberFormatInternals;
|
|
3373
|
-
}
|
|
3374
|
-
declare const ZodNumberFormat: $constructor<ZodNumberFormat>;
|
|
3375
|
-
interface ZodInt extends ZodNumberFormat {}
|
|
3376
|
-
declare function int(params?: string | $ZodCheckNumberFormatParams): ZodInt;
|
|
3377
|
-
interface ZodFloat32 extends ZodNumberFormat {}
|
|
3378
|
-
declare function float32(params?: string | $ZodCheckNumberFormatParams): ZodFloat32;
|
|
3379
|
-
interface ZodFloat64 extends ZodNumberFormat {}
|
|
3380
|
-
declare function float64(params?: string | $ZodCheckNumberFormatParams): ZodFloat64;
|
|
3381
|
-
interface ZodInt32 extends ZodNumberFormat {}
|
|
3382
|
-
declare function int32(params?: string | $ZodCheckNumberFormatParams): ZodInt32;
|
|
3383
|
-
interface ZodUInt32 extends ZodNumberFormat {}
|
|
3384
|
-
declare function uint32(params?: string | $ZodCheckNumberFormatParams): ZodUInt32;
|
|
3385
|
-
interface _ZodBoolean<T extends $ZodBooleanInternals = $ZodBooleanInternals> extends _ZodType<T> {}
|
|
3386
|
-
interface ZodBoolean extends _ZodBoolean<$ZodBooleanInternals<boolean>> {}
|
|
3387
|
-
declare const ZodBoolean: $constructor<ZodBoolean>;
|
|
3388
|
-
declare function boolean$1(params?: string | $ZodBooleanParams): ZodBoolean;
|
|
3389
|
-
interface _ZodBigInt<T extends $ZodBigIntInternals = $ZodBigIntInternals> extends _ZodType<T> {
|
|
3390
|
-
gte(value: bigint, params?: string | $ZodCheckGreaterThanParams): this;
|
|
3391
|
-
/** Alias of `.gte()` */
|
|
3392
|
-
min(value: bigint, params?: string | $ZodCheckGreaterThanParams): this;
|
|
3393
|
-
gt(value: bigint, params?: string | $ZodCheckGreaterThanParams): this;
|
|
3394
|
-
/** Alias of `.lte()` */
|
|
3395
|
-
lte(value: bigint, params?: string | $ZodCheckLessThanParams): this;
|
|
3396
|
-
max(value: bigint, params?: string | $ZodCheckLessThanParams): this;
|
|
3397
|
-
lt(value: bigint, params?: string | $ZodCheckLessThanParams): this;
|
|
3398
|
-
positive(params?: string | $ZodCheckGreaterThanParams): this;
|
|
3399
|
-
negative(params?: string | $ZodCheckLessThanParams): this;
|
|
3400
|
-
nonpositive(params?: string | $ZodCheckLessThanParams): this;
|
|
3401
|
-
nonnegative(params?: string | $ZodCheckGreaterThanParams): this;
|
|
3402
|
-
multipleOf(value: bigint, params?: string | $ZodCheckMultipleOfParams): this;
|
|
3403
|
-
minValue: bigint | null;
|
|
3404
|
-
maxValue: bigint | null;
|
|
3405
|
-
format: string | null;
|
|
3406
|
-
}
|
|
3407
|
-
interface ZodBigInt extends _ZodBigInt<$ZodBigIntInternals<bigint>> {}
|
|
3408
|
-
declare const ZodBigInt: $constructor<ZodBigInt>;
|
|
3409
|
-
declare function bigint$1(params?: string | $ZodBigIntParams): ZodBigInt;
|
|
3410
|
-
interface ZodBigIntFormat extends ZodBigInt {
|
|
3411
|
-
_zod: $ZodBigIntFormatInternals;
|
|
3412
|
-
}
|
|
3413
|
-
declare const ZodBigIntFormat: $constructor<ZodBigIntFormat>;
|
|
3414
|
-
declare function int64(params?: string | $ZodBigIntFormatParams): ZodBigIntFormat;
|
|
3415
|
-
declare function uint64(params?: string | $ZodBigIntFormatParams): ZodBigIntFormat;
|
|
3416
|
-
interface ZodSymbol extends _ZodType<$ZodSymbolInternals> {}
|
|
3417
|
-
declare const ZodSymbol: $constructor<ZodSymbol>;
|
|
3418
|
-
declare function symbol(params?: string | $ZodSymbolParams): ZodSymbol;
|
|
3419
|
-
interface ZodUndefined extends _ZodType<$ZodUndefinedInternals> {}
|
|
3420
|
-
declare const ZodUndefined: $constructor<ZodUndefined>;
|
|
3421
|
-
declare function _undefined(params?: string | $ZodUndefinedParams): ZodUndefined;
|
|
3422
|
-
interface ZodNull extends _ZodType<$ZodNullInternals> {}
|
|
3423
|
-
declare const ZodNull: $constructor<ZodNull>;
|
|
3424
|
-
declare function _null(params?: string | $ZodNullParams): ZodNull;
|
|
3425
|
-
interface ZodAny extends _ZodType<$ZodAnyInternals> {}
|
|
3426
|
-
declare const ZodAny: $constructor<ZodAny>;
|
|
3427
|
-
declare function any(): ZodAny;
|
|
3428
|
-
interface ZodUnknown extends _ZodType<$ZodUnknownInternals> {}
|
|
3429
|
-
declare const ZodUnknown: $constructor<ZodUnknown>;
|
|
3430
|
-
declare function unknown(): ZodUnknown;
|
|
3431
|
-
interface ZodNever extends _ZodType<$ZodNeverInternals> {}
|
|
3432
|
-
declare const ZodNever: $constructor<ZodNever>;
|
|
3433
|
-
declare function never(params?: string | $ZodNeverParams): ZodNever;
|
|
3434
|
-
interface ZodVoid extends _ZodType<$ZodVoidInternals> {}
|
|
3435
|
-
declare const ZodVoid: $constructor<ZodVoid>;
|
|
3436
|
-
declare function _void(params?: string | $ZodVoidParams): ZodVoid;
|
|
3437
|
-
interface _ZodDate<T extends $ZodDateInternals = $ZodDateInternals> extends _ZodType<T> {
|
|
3438
|
-
min(value: number | Date, params?: string | $ZodCheckGreaterThanParams): this;
|
|
3439
|
-
max(value: number | Date, params?: string | $ZodCheckLessThanParams): this;
|
|
3440
|
-
/** @deprecated Not recommended. */
|
|
3441
|
-
minDate: Date | null;
|
|
3442
|
-
/** @deprecated Not recommended. */
|
|
3443
|
-
maxDate: Date | null;
|
|
3444
|
-
}
|
|
3445
|
-
interface ZodDate extends _ZodDate<$ZodDateInternals<Date>> {}
|
|
3446
|
-
declare const ZodDate: $constructor<ZodDate>;
|
|
3447
|
-
declare function date$2(params?: string | $ZodDateParams): ZodDate;
|
|
3448
|
-
interface ZodArray<T extends SomeType = $ZodType> extends _ZodType<$ZodArrayInternals<T>>, $ZodArray<T> {
|
|
3449
|
-
element: T;
|
|
3450
|
-
min(minLength: number, params?: string | $ZodCheckMinLengthParams): this;
|
|
3451
|
-
nonempty(params?: string | $ZodCheckMinLengthParams): this;
|
|
3452
|
-
max(maxLength: number, params?: string | $ZodCheckMaxLengthParams): this;
|
|
3453
|
-
length(len: number, params?: string | $ZodCheckLengthEqualsParams): this;
|
|
3454
|
-
unwrap(): T;
|
|
3455
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3456
|
-
}
|
|
3457
|
-
declare const ZodArray: $constructor<ZodArray>;
|
|
3458
|
-
declare function array<T extends SomeType>(element: T, params?: string | $ZodArrayParams): ZodArray<T>;
|
|
3459
|
-
declare function keyof<T extends ZodObject>(schema: T): ZodEnum<KeysEnum<T["_zod"]["output"]>>;
|
|
3460
|
-
type SafeExtendShape<Base extends $ZodShape, Ext extends $ZodLooseShape> = { [K in keyof Ext]: K extends keyof Base ? output<Ext[K]> extends output<Base[K]> ? input<Ext[K]> extends input<Base[K]> ? Ext[K] : never : never : Ext[K]; };
|
|
3461
|
-
interface ZodObject<
|
|
3462
|
-
/** @ts-ignore Cast variance */
|
|
3463
|
-
out Shape extends $ZodShape = $ZodLooseShape, out Config extends $ZodObjectConfig = $strip> extends _ZodType<$ZodObjectInternals<Shape, Config>>, $ZodObject<Shape, Config> {
|
|
3464
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3465
|
-
shape: Shape;
|
|
3466
|
-
keyof(): ZodEnum<ToEnum<keyof Shape & string>>;
|
|
3467
|
-
/** Define a schema to validate all unrecognized keys. This overrides the existing strict/loose behavior. */
|
|
3468
|
-
catchall<T extends SomeType>(schema: T): ZodObject<Shape, $catchall<T>>;
|
|
3469
|
-
/** @deprecated Use `z.looseObject()` or `.loose()` instead. */
|
|
3470
|
-
passthrough(): ZodObject<Shape, $loose>;
|
|
3471
|
-
/** Consider `z.looseObject(A.shape)` instead */
|
|
3472
|
-
loose(): ZodObject<Shape, $loose>;
|
|
3473
|
-
/** Consider `z.strictObject(A.shape)` instead */
|
|
3474
|
-
strict(): ZodObject<Shape, $strict>;
|
|
3475
|
-
/** This is the default behavior. This method call is likely unnecessary. */
|
|
3476
|
-
strip(): ZodObject<Shape, $strip>;
|
|
3477
|
-
extend<U extends $ZodLooseShape>(shape: U): ZodObject<Extend<Shape, Writeable<U>>, Config>;
|
|
3478
|
-
safeExtend<U extends $ZodLooseShape>(shape: SafeExtendShape<Shape, U> & Partial<Record<keyof Shape, SomeType>>): ZodObject<Extend<Shape, Writeable<U>>, Config>;
|
|
3479
|
-
/**
|
|
3480
|
-
* @deprecated Use [`A.extend(B.shape)`](https://zod.dev/api?id=extend) instead.
|
|
3481
|
-
*/
|
|
3482
|
-
merge<U extends ZodObject>(other: U): ZodObject<Extend<Shape, U["shape"]>, U["_zod"]["config"]>;
|
|
3483
|
-
pick<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<Flatten<Pick<Shape, Extract<keyof Shape, keyof M>>>, Config>;
|
|
3484
|
-
omit<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<Flatten<Omit<Shape, Extract<keyof Shape, keyof M>>>, Config>;
|
|
3485
|
-
partial(): ZodObject<{ -readonly [k in keyof Shape]: ZodOptional<Shape[k]>; }, Config>;
|
|
3486
|
-
partial<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<{ -readonly [k in keyof Shape]: k extends keyof M ? ZodOptional<Shape[k]> : Shape[k]; }, Config>;
|
|
3487
|
-
required(): ZodObject<{ -readonly [k in keyof Shape]: ZodNonOptional<Shape[k]>; }, Config>;
|
|
3488
|
-
required<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<{ -readonly [k in keyof Shape]: k extends keyof M ? ZodNonOptional<Shape[k]> : Shape[k]; }, Config>;
|
|
3489
|
-
}
|
|
3490
|
-
declare const ZodObject: $constructor<ZodObject>;
|
|
3491
|
-
declare function object<T extends $ZodLooseShape = Partial<Record<never, SomeType>>>(shape?: T, params?: string | $ZodObjectParams): ZodObject<Writeable<T>, $strip>;
|
|
3492
|
-
declare function strictObject<T extends $ZodLooseShape>(shape: T, params?: string | $ZodObjectParams): ZodObject<Writeable<T>, $strict>;
|
|
3493
|
-
declare function looseObject<T extends $ZodLooseShape>(shape: T, params?: string | $ZodObjectParams): ZodObject<Writeable<T>, $loose>;
|
|
3494
|
-
interface ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends _ZodType<$ZodUnionInternals<T>>, $ZodUnion<T> {
|
|
3495
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3496
|
-
options: T;
|
|
3497
|
-
}
|
|
3498
|
-
declare const ZodUnion: $constructor<ZodUnion>;
|
|
3499
|
-
declare function union<const T extends readonly SomeType[]>(options: T, params?: string | $ZodUnionParams): ZodUnion<T>;
|
|
3500
|
-
interface ZodXor<T extends readonly SomeType[] = readonly $ZodType[]> extends _ZodType<$ZodXorInternals<T>>, $ZodXor<T> {
|
|
3501
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3502
|
-
options: T;
|
|
3503
|
-
}
|
|
3504
|
-
declare const ZodXor: $constructor<ZodXor>;
|
|
3505
|
-
/** Creates an exclusive union (XOR) where exactly one option must match.
|
|
3506
|
-
* Unlike regular unions that succeed when any option matches, xor fails if
|
|
3507
|
-
* zero or more than one option matches the input. */
|
|
3508
|
-
declare function xor<const T extends readonly SomeType[]>(options: T, params?: string | $ZodXorParams): ZodXor<T>;
|
|
3509
|
-
interface ZodDiscriminatedUnion<Options extends readonly SomeType[] = readonly $ZodType[], Disc extends string = string> extends ZodUnion<Options>, $ZodDiscriminatedUnion<Options, Disc> {
|
|
3510
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3511
|
-
_zod: $ZodDiscriminatedUnionInternals<Options, Disc>;
|
|
3512
|
-
def: $ZodDiscriminatedUnionDef<Options, Disc>;
|
|
3513
|
-
}
|
|
3514
|
-
declare const ZodDiscriminatedUnion: $constructor<ZodDiscriminatedUnion>;
|
|
3515
|
-
declare function discriminatedUnion<Types extends readonly [$ZodTypeDiscriminable<Disc>, ...$ZodTypeDiscriminable<Disc>[]], Disc extends string>(discriminator: Disc, options: Types, params?: string | $ZodDiscriminatedUnionParams): ZodDiscriminatedUnion<Types, Disc>;
|
|
3516
|
-
interface ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodIntersectionInternals<A, B>>, $ZodIntersection<A, B> {
|
|
3517
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3518
|
-
}
|
|
3519
|
-
declare const ZodIntersection: $constructor<ZodIntersection>;
|
|
3520
|
-
declare function intersection<T extends SomeType, U extends SomeType>(left: T, right: U): ZodIntersection<T, U>;
|
|
3521
|
-
interface ZodTuple<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends _ZodType<$ZodTupleInternals<T, Rest>>, $ZodTuple<T, Rest> {
|
|
3522
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3523
|
-
rest<Rest extends SomeType = $ZodType>(rest: Rest): ZodTuple<T, Rest>;
|
|
3524
|
-
}
|
|
3525
|
-
declare const ZodTuple: $constructor<ZodTuple>;
|
|
3526
|
-
declare function tuple<T extends readonly [SomeType, ...SomeType[]]>(items: T, params?: string | $ZodTupleParams): ZodTuple<T, null>;
|
|
3527
|
-
declare function tuple<T extends readonly [SomeType, ...SomeType[]], Rest extends SomeType>(items: T, rest: Rest, params?: string | $ZodTupleParams): ZodTuple<T, Rest>;
|
|
3528
|
-
declare function tuple(items: [], params?: string | $ZodTupleParams): ZodTuple<[], null>;
|
|
3529
|
-
interface ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends _ZodType<$ZodRecordInternals<Key, Value>>, $ZodRecord<Key, Value> {
|
|
3530
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3531
|
-
keyType: Key;
|
|
3532
|
-
valueType: Value;
|
|
3533
|
-
}
|
|
3534
|
-
declare const ZodRecord: $constructor<ZodRecord>;
|
|
3535
|
-
declare function record<Key extends $ZodRecordKey, Value extends SomeType>(keyType: Key, valueType: Value, params?: string | $ZodRecordParams): ZodRecord<Key, Value>;
|
|
3536
|
-
declare function partialRecord<Key extends $ZodRecordKey, Value extends SomeType>(keyType: Key, valueType: Value, params?: string | $ZodRecordParams): ZodRecord<Key & $partial, Value>;
|
|
3537
|
-
declare function looseRecord<Key extends $ZodRecordKey, Value extends SomeType>(keyType: Key, valueType: Value, params?: string | $ZodRecordParams): ZodRecord<Key, Value>;
|
|
3538
|
-
interface ZodMap<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends _ZodType<$ZodMapInternals<Key, Value>>, $ZodMap<Key, Value> {
|
|
3539
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3540
|
-
keyType: Key;
|
|
3541
|
-
valueType: Value;
|
|
3542
|
-
min(minSize: number, params?: string | $ZodCheckMinSizeParams): this;
|
|
3543
|
-
nonempty(params?: string | $ZodCheckMinSizeParams): this;
|
|
3544
|
-
max(maxSize: number, params?: string | $ZodCheckMaxSizeParams): this;
|
|
3545
|
-
size(size: number, params?: string | $ZodCheckSizeEqualsParams): this;
|
|
3546
|
-
}
|
|
3547
|
-
declare const ZodMap: $constructor<ZodMap>;
|
|
3548
|
-
declare function map<Key extends SomeType, Value extends SomeType>(keyType: Key, valueType: Value, params?: string | $ZodMapParams): ZodMap<Key, Value>;
|
|
3549
|
-
interface ZodSet<T extends SomeType = $ZodType> extends _ZodType<$ZodSetInternals<T>>, $ZodSet<T> {
|
|
3550
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3551
|
-
min(minSize: number, params?: string | $ZodCheckMinSizeParams): this;
|
|
3552
|
-
nonempty(params?: string | $ZodCheckMinSizeParams): this;
|
|
3553
|
-
max(maxSize: number, params?: string | $ZodCheckMaxSizeParams): this;
|
|
3554
|
-
size(size: number, params?: string | $ZodCheckSizeEqualsParams): this;
|
|
3555
|
-
}
|
|
3556
|
-
declare const ZodSet: $constructor<ZodSet>;
|
|
3557
|
-
declare function set<Value extends SomeType>(valueType: Value, params?: string | $ZodSetParams): ZodSet<Value>;
|
|
3558
|
-
interface ZodEnum<
|
|
3559
|
-
/** @ts-ignore Cast variance */
|
|
3560
|
-
out T extends EnumLike = EnumLike> extends _ZodType<$ZodEnumInternals<T>>, $ZodEnum<T> {
|
|
3561
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3562
|
-
enum: T;
|
|
3563
|
-
options: Array<T[keyof T]>;
|
|
3564
|
-
extract<const U extends readonly (keyof T)[]>(values: U, params?: string | $ZodEnumParams): ZodEnum<Flatten<Pick<T, U[number]>>>;
|
|
3565
|
-
exclude<const U extends readonly (keyof T)[]>(values: U, params?: string | $ZodEnumParams): ZodEnum<Flatten<Omit<T, U[number]>>>;
|
|
3566
|
-
}
|
|
3567
|
-
declare const ZodEnum: $constructor<ZodEnum>;
|
|
3568
|
-
declare function _enum<const T extends readonly string[]>(values: T, params?: string | $ZodEnumParams): ZodEnum<ToEnum<T[number]>>;
|
|
3569
|
-
declare function _enum<const T extends EnumLike>(entries: T, params?: string | $ZodEnumParams): ZodEnum<T>;
|
|
3570
|
-
/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
|
|
3571
|
-
*
|
|
3572
|
-
* ```ts
|
|
3573
|
-
* enum Colors { red, green, blue }
|
|
3574
|
-
* z.enum(Colors);
|
|
3575
|
-
* ```
|
|
3576
|
-
*/
|
|
3577
|
-
declare function nativeEnum<T extends EnumLike>(entries: T, params?: string | $ZodEnumParams): ZodEnum<T>;
|
|
3578
|
-
interface ZodLiteral<T extends Literal = Literal> extends _ZodType<$ZodLiteralInternals<T>>, $ZodLiteral<T> {
|
|
3579
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3580
|
-
values: Set<T>;
|
|
3581
|
-
/** @legacy Use `.values` instead. Accessing this property will throw an error if the literal accepts multiple values. */
|
|
3582
|
-
value: T;
|
|
3583
|
-
}
|
|
3584
|
-
declare const ZodLiteral: $constructor<ZodLiteral>;
|
|
3585
|
-
declare function literal<const T extends ReadonlyArray<Literal>>(value: T, params?: string | $ZodLiteralParams): ZodLiteral<T[number]>;
|
|
3586
|
-
declare function literal<const T extends Literal>(value: T, params?: string | $ZodLiteralParams): ZodLiteral<T>;
|
|
3587
|
-
interface ZodFile extends _ZodType<$ZodFileInternals>, $ZodFile {
|
|
3588
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3589
|
-
min(size: number, params?: string | $ZodCheckMinSizeParams): this;
|
|
3590
|
-
max(size: number, params?: string | $ZodCheckMaxSizeParams): this;
|
|
3591
|
-
mime(types: MimeTypes | Array<MimeTypes>, params?: string | $ZodCheckMimeTypeParams): this;
|
|
3592
|
-
}
|
|
3593
|
-
declare const ZodFile: $constructor<ZodFile>;
|
|
3594
|
-
declare function file(params?: string | $ZodFileParams): ZodFile;
|
|
3595
|
-
interface ZodTransform<O = unknown, I = unknown> extends _ZodType<$ZodTransformInternals<O, I>>, $ZodTransform<O, I> {
|
|
3596
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3597
|
-
}
|
|
3598
|
-
declare const ZodTransform: $constructor<ZodTransform>;
|
|
3599
|
-
declare function transform<I = unknown, O = I>(fn: (input: I, ctx: $RefinementCtx) => O): ZodTransform<Awaited<O>, I>;
|
|
3600
|
-
interface ZodOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodOptionalInternals<T>>, $ZodOptional<T> {
|
|
3601
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3602
|
-
unwrap(): T;
|
|
3603
|
-
}
|
|
3604
|
-
declare const ZodOptional: $constructor<ZodOptional>;
|
|
3605
|
-
declare function optional<T extends SomeType>(innerType: T): ZodOptional<T>;
|
|
3606
|
-
interface ZodExactOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodExactOptionalInternals<T>>, $ZodExactOptional<T> {
|
|
3607
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3608
|
-
unwrap(): T;
|
|
3609
|
-
}
|
|
3610
|
-
declare const ZodExactOptional: $constructor<ZodExactOptional>;
|
|
3611
|
-
declare function exactOptional<T extends SomeType>(innerType: T): ZodExactOptional<T>;
|
|
3612
|
-
interface ZodNullable<T extends SomeType = $ZodType> extends _ZodType<$ZodNullableInternals<T>>, $ZodNullable<T> {
|
|
3613
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3614
|
-
unwrap(): T;
|
|
3615
|
-
}
|
|
3616
|
-
declare const ZodNullable: $constructor<ZodNullable>;
|
|
3617
|
-
declare function nullable<T extends SomeType>(innerType: T): ZodNullable<T>;
|
|
3618
|
-
declare function nullish<T extends SomeType>(innerType: T): ZodOptional<ZodNullable<T>>;
|
|
3619
|
-
interface ZodDefault<T extends SomeType = $ZodType> extends _ZodType<$ZodDefaultInternals<T>>, $ZodDefault<T> {
|
|
3620
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3621
|
-
unwrap(): T;
|
|
3622
|
-
/** @deprecated Use `.unwrap()` instead. */
|
|
3623
|
-
removeDefault(): T;
|
|
3624
|
-
}
|
|
3625
|
-
declare const ZodDefault: $constructor<ZodDefault>;
|
|
3626
|
-
declare function _default<T extends SomeType>(innerType: T, defaultValue: NoUndefined<output<T>> | (() => NoUndefined<output<T>>)): ZodDefault<T>;
|
|
3627
|
-
interface ZodPrefault<T extends SomeType = $ZodType> extends _ZodType<$ZodPrefaultInternals<T>>, $ZodPrefault<T> {
|
|
3628
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3629
|
-
unwrap(): T;
|
|
3630
|
-
}
|
|
3631
|
-
declare const ZodPrefault: $constructor<ZodPrefault>;
|
|
3632
|
-
declare function prefault<T extends SomeType>(innerType: T, defaultValue: input<T> | (() => input<T>)): ZodPrefault<T>;
|
|
3633
|
-
interface ZodNonOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodNonOptionalInternals<T>>, $ZodNonOptional<T> {
|
|
3634
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3635
|
-
unwrap(): T;
|
|
3636
|
-
}
|
|
3637
|
-
declare const ZodNonOptional: $constructor<ZodNonOptional>;
|
|
3638
|
-
declare function nonoptional<T extends SomeType>(innerType: T, params?: string | $ZodNonOptionalParams): ZodNonOptional<T>;
|
|
3639
|
-
interface ZodSuccess<T extends SomeType = $ZodType> extends _ZodType<$ZodSuccessInternals<T>>, $ZodSuccess<T> {
|
|
3640
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3641
|
-
unwrap(): T;
|
|
3642
|
-
}
|
|
3643
|
-
declare const ZodSuccess: $constructor<ZodSuccess>;
|
|
3644
|
-
declare function success<T extends SomeType>(innerType: T): ZodSuccess<T>;
|
|
3645
|
-
interface ZodCatch<T extends SomeType = $ZodType> extends _ZodType<$ZodCatchInternals<T>>, $ZodCatch<T> {
|
|
3646
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3647
|
-
unwrap(): T;
|
|
3648
|
-
/** @deprecated Use `.unwrap()` instead. */
|
|
3649
|
-
removeCatch(): T;
|
|
3650
|
-
}
|
|
3651
|
-
declare const ZodCatch: $constructor<ZodCatch>;
|
|
3652
|
-
declare function _catch<T extends SomeType>(innerType: T, catchValue: output<T> | ((ctx: $ZodCatchCtx) => output<T>)): ZodCatch<T>;
|
|
3653
|
-
interface ZodNaN extends _ZodType<$ZodNaNInternals>, $ZodNaN {
|
|
3654
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3655
|
-
}
|
|
3656
|
-
declare const ZodNaN: $constructor<ZodNaN>;
|
|
3657
|
-
declare function nan(params?: string | $ZodNaNParams): ZodNaN;
|
|
3658
|
-
interface ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodPipeInternals<A, B>>, $ZodPipe<A, B> {
|
|
3659
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3660
|
-
in: A;
|
|
3661
|
-
out: B;
|
|
3662
|
-
}
|
|
3663
|
-
declare const ZodPipe: $constructor<ZodPipe>;
|
|
3664
|
-
declare function pipe<const A extends SomeType, B extends $ZodType<unknown, output<A>> = $ZodType<unknown, output<A>>>(in_: A, out: B | $ZodType<unknown, output<A>>): ZodPipe<A, B>;
|
|
3665
|
-
interface ZodCodec<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends ZodPipe<A, B>, $ZodCodec<A, B> {
|
|
3666
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3667
|
-
_zod: $ZodCodecInternals<A, B>;
|
|
3668
|
-
def: $ZodCodecDef<A, B>;
|
|
3669
|
-
}
|
|
3670
|
-
declare const ZodCodec: $constructor<ZodCodec>;
|
|
3671
|
-
declare function codec<const A extends SomeType, B extends SomeType = $ZodType>(in_: A, out: B, params: {
|
|
3672
|
-
decode: (value: output<A>, payload: ParsePayload<output<A>>) => MaybeAsync<input<B>>;
|
|
3673
|
-
encode: (value: input<B>, payload: ParsePayload<input<B>>) => MaybeAsync<output<A>>;
|
|
3674
|
-
}): ZodCodec<A, B>;
|
|
3675
|
-
declare function invertCodec<A extends SomeType, B extends SomeType>(codec: ZodCodec<A, B>): ZodCodec<B, A>;
|
|
3676
|
-
interface ZodPreprocess<B extends SomeType = $ZodType> extends ZodPipe<$ZodTransform, B>, $ZodPreprocess<B> {
|
|
3677
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3678
|
-
_zod: $ZodPreprocessInternals<B>;
|
|
3679
|
-
def: $ZodPreprocessDef<B>;
|
|
3680
|
-
}
|
|
3681
|
-
declare const ZodPreprocess: $constructor<ZodPreprocess>;
|
|
3682
|
-
interface ZodReadonly<T extends SomeType = $ZodType> extends _ZodType<$ZodReadonlyInternals<T>>, $ZodReadonly<T> {
|
|
3683
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3684
|
-
unwrap(): T;
|
|
3685
|
-
}
|
|
3686
|
-
declare const ZodReadonly: $constructor<ZodReadonly>;
|
|
3687
|
-
declare function readonly<T extends SomeType>(innerType: T): ZodReadonly<T>;
|
|
3688
|
-
interface ZodTemplateLiteral<Template extends string = string> extends _ZodType<$ZodTemplateLiteralInternals<Template>>, $ZodTemplateLiteral<Template> {
|
|
3689
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3690
|
-
}
|
|
3691
|
-
declare const ZodTemplateLiteral: $constructor<ZodTemplateLiteral>;
|
|
3692
|
-
declare function templateLiteral<const Parts extends $ZodTemplateLiteralPart[]>(parts: Parts, params?: string | $ZodTemplateLiteralParams): ZodTemplateLiteral<$PartsToTemplateLiteral<Parts>>;
|
|
3693
|
-
interface ZodLazy<T extends SomeType = $ZodType> extends _ZodType<$ZodLazyInternals<T>>, $ZodLazy<T> {
|
|
3694
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3695
|
-
unwrap(): T;
|
|
3696
|
-
}
|
|
3697
|
-
declare const ZodLazy: $constructor<ZodLazy>;
|
|
3698
|
-
declare function lazy<T extends SomeType>(getter: () => T): ZodLazy<T>;
|
|
3699
|
-
interface ZodPromise<T extends SomeType = $ZodType> extends _ZodType<$ZodPromiseInternals<T>>, $ZodPromise<T> {
|
|
3700
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3701
|
-
unwrap(): T;
|
|
3702
|
-
}
|
|
3703
|
-
declare const ZodPromise: $constructor<ZodPromise>;
|
|
3704
|
-
declare function promise<T extends SomeType>(innerType: T): ZodPromise<T>;
|
|
3705
|
-
interface ZodFunction<Args extends $ZodFunctionIn = $ZodFunctionIn, Returns extends $ZodFunctionOut = $ZodFunctionOut> extends _ZodType<$ZodFunctionInternals<Args, Returns>>, $ZodFunction<Args, Returns> {
|
|
3706
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3707
|
-
_def: $ZodFunctionDef<Args, Returns>;
|
|
3708
|
-
_input: $InferInnerFunctionType<Args, Returns>;
|
|
3709
|
-
_output: $InferOuterFunctionType<Args, Returns>;
|
|
3710
|
-
input<const Items extends TupleItems, const Rest extends $ZodFunctionOut = $ZodFunctionOut>(args: Items, rest?: Rest): ZodFunction<$ZodTuple<Items, Rest>, Returns>;
|
|
3711
|
-
input<NewArgs extends $ZodFunctionIn>(args: NewArgs): ZodFunction<NewArgs, Returns>;
|
|
3712
|
-
input(...args: any[]): ZodFunction<any, Returns>;
|
|
3713
|
-
output<NewReturns extends $ZodType>(output: NewReturns): ZodFunction<Args, NewReturns>;
|
|
3714
|
-
}
|
|
3715
|
-
declare const ZodFunction: $constructor<ZodFunction>;
|
|
3716
|
-
declare function _function(): ZodFunction;
|
|
3717
|
-
declare function _function<const In extends ReadonlyArray<$ZodType>>(params: {
|
|
3718
|
-
input: In;
|
|
3719
|
-
}): ZodFunction<ZodTuple<In, null>, $ZodFunctionOut>;
|
|
3720
|
-
declare function _function<const In extends ReadonlyArray<$ZodType>, const Out extends $ZodFunctionOut = $ZodFunctionOut>(params: {
|
|
3721
|
-
input: In;
|
|
3722
|
-
output: Out;
|
|
3723
|
-
}): ZodFunction<ZodTuple<In, null>, Out>;
|
|
3724
|
-
declare function _function<const In extends $ZodFunctionIn = $ZodFunctionIn>(params: {
|
|
3725
|
-
input: In;
|
|
3726
|
-
}): ZodFunction<In, $ZodFunctionOut>;
|
|
3727
|
-
declare function _function<const Out extends $ZodFunctionOut = $ZodFunctionOut>(params: {
|
|
3728
|
-
output: Out;
|
|
3729
|
-
}): ZodFunction<$ZodFunctionIn, Out>;
|
|
3730
|
-
declare function _function<In extends $ZodFunctionIn = $ZodFunctionIn, Out extends $ZodType = $ZodType>(params?: {
|
|
3731
|
-
input: In;
|
|
3732
|
-
output: Out;
|
|
3733
|
-
}): ZodFunction<In, Out>;
|
|
3734
|
-
interface ZodCustom<O = unknown, I = unknown> extends _ZodType<$ZodCustomInternals<O, I>>, $ZodCustom<O, I> {
|
|
3735
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
3736
|
-
}
|
|
3737
|
-
declare const ZodCustom: $constructor<ZodCustom>;
|
|
3738
|
-
declare function check<O = unknown>(fn: CheckFn<O>): $ZodCheck<O>;
|
|
3739
|
-
declare function custom<O>(fn?: (data: unknown) => unknown, _params?: string | $ZodCustomParams | undefined): ZodCustom<O, O>;
|
|
3740
|
-
declare function refine<T>(fn: (arg: NoInfer<T>) => MaybeAsync<unknown>, _params?: string | $ZodCustomParams): $ZodCheck<T>;
|
|
3741
|
-
declare function superRefine<T>(fn: (arg: T, payload: $RefinementCtx<T>) => void | Promise<void>, params?: $ZodSuperRefineParams): $ZodCheck<T>;
|
|
3742
|
-
declare const describe: typeof describe$1;
|
|
3743
|
-
declare const meta: typeof meta$1;
|
|
3744
|
-
type ZodInstanceOfParams = Params<ZodCustom, $ZodIssueCustom, "type" | "check" | "checks" | "fn" | "abort" | "error" | "params" | "path">;
|
|
3745
|
-
declare function _instanceof<T extends typeof Class>(cls: T, params?: ZodInstanceOfParams): ZodCustom<InstanceType<T>, InstanceType<T>>;
|
|
3746
|
-
declare const stringbool: (_params?: string | $ZodStringBoolParams) => ZodCodec<ZodString, ZodBoolean>;
|
|
3747
|
-
type _ZodJSONSchema = ZodUnion<[ZodString, ZodNumber, ZodBoolean, ZodNull, ZodArray<ZodJSONSchema>, ZodRecord<ZodString, ZodJSONSchema>]>;
|
|
3748
|
-
type _ZodJSONSchemaInternals = _ZodJSONSchema["_zod"];
|
|
3749
|
-
interface ZodJSONSchemaInternals extends _ZodJSONSchemaInternals {
|
|
3750
|
-
output: JSONType;
|
|
3751
|
-
input: JSONType;
|
|
3752
|
-
}
|
|
3753
|
-
interface ZodJSONSchema extends _ZodJSONSchema {
|
|
3754
|
-
_zod: ZodJSONSchemaInternals;
|
|
3755
|
-
}
|
|
3756
|
-
declare function json(params?: string | $ZodCustomParams): ZodJSONSchema;
|
|
3757
|
-
declare function preprocess<A, U extends SomeType, B = unknown>(fn: (arg: B, ctx: $RefinementCtx) => A, schema: U): ZodPreprocess<U>;
|
|
3758
|
-
//#endregion
|
|
3759
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/compat.d.cts
|
|
3760
|
-
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
3761
|
-
declare const ZodIssueCode: {
|
|
3762
|
-
readonly invalid_type: "invalid_type";
|
|
3763
|
-
readonly too_big: "too_big";
|
|
3764
|
-
readonly too_small: "too_small";
|
|
3765
|
-
readonly invalid_format: "invalid_format";
|
|
3766
|
-
readonly not_multiple_of: "not_multiple_of";
|
|
3767
|
-
readonly unrecognized_keys: "unrecognized_keys";
|
|
3768
|
-
readonly invalid_union: "invalid_union";
|
|
3769
|
-
readonly invalid_key: "invalid_key";
|
|
3770
|
-
readonly invalid_element: "invalid_element";
|
|
3771
|
-
readonly invalid_value: "invalid_value";
|
|
3772
|
-
readonly custom: "custom";
|
|
3773
|
-
};
|
|
3774
|
-
/** @deprecated Use `z.$ZodFlattenedError` */
|
|
3775
|
-
type inferFlattenedErrors<T extends $ZodType, U = string> = $ZodFlattenedError<output<T>, U>;
|
|
3776
|
-
/** @deprecated Use `z.$ZodFormattedError` */
|
|
3777
|
-
type inferFormattedError<T extends $ZodType<any, any>, U = string> = $ZodFormattedError<output<T>, U>;
|
|
3778
|
-
/** Use `z.$brand` instead */
|
|
3779
|
-
type BRAND<T extends string | number | symbol = string | number | symbol> = {
|
|
3780
|
-
[$brand]: { [k in T]: true; };
|
|
3781
|
-
};
|
|
3782
|
-
/** @deprecated Use `z.config(params)` instead. */
|
|
3783
|
-
declare function setErrorMap(map: $ZodErrorMap): void;
|
|
3784
|
-
/** @deprecated Use `z.config()` instead. */
|
|
3785
|
-
declare function getErrorMap(): $ZodErrorMap<$ZodIssue> | undefined;
|
|
3786
|
-
/** Included for Zod 3 compatibility */
|
|
3787
|
-
type ZodRawShape = $ZodShape;
|
|
3788
|
-
/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
|
|
3789
|
-
declare enum ZodFirstPartyTypeKind {}
|
|
3790
|
-
//#endregion
|
|
3791
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.d.cts
|
|
3792
|
-
type JSONSchemaVersion = "draft-2020-12" | "draft-7" | "draft-4" | "openapi-3.0";
|
|
3793
|
-
interface FromJSONSchemaParams {
|
|
3794
|
-
defaultTarget?: JSONSchemaVersion;
|
|
3795
|
-
registry?: $ZodRegistry<any>;
|
|
3796
|
-
}
|
|
3797
|
-
/**
|
|
3798
|
-
* Converts a JSON Schema to a Zod schema. This function should be considered semi-experimental. It's behavior is liable to change. */
|
|
3799
|
-
declare function fromJSONSchema(schema: JSONSchema | boolean, params?: FromJSONSchemaParams): ZodType;
|
|
3800
|
-
declare namespace iso_d_exports {
|
|
3801
|
-
export { ZodISODate, ZodISODateTime, ZodISODuration, ZodISOTime, date$1 as date, datetime, duration, time };
|
|
3802
|
-
}
|
|
3803
|
-
interface ZodISODateTime extends ZodStringFormat {
|
|
3804
|
-
_zod: $ZodISODateTimeInternals;
|
|
3805
|
-
}
|
|
3806
|
-
declare const ZodISODateTime: $constructor<ZodISODateTime>;
|
|
3807
|
-
declare function datetime(params?: string | $ZodISODateTimeParams): ZodISODateTime;
|
|
3808
|
-
interface ZodISODate extends ZodStringFormat {
|
|
3809
|
-
_zod: $ZodISODateInternals;
|
|
3810
|
-
}
|
|
3811
|
-
declare const ZodISODate: $constructor<ZodISODate>;
|
|
3812
|
-
declare function date$1(params?: string | $ZodISODateParams): ZodISODate;
|
|
3813
|
-
interface ZodISOTime extends ZodStringFormat {
|
|
3814
|
-
_zod: $ZodISOTimeInternals;
|
|
3815
|
-
}
|
|
3816
|
-
declare const ZodISOTime: $constructor<ZodISOTime>;
|
|
3817
|
-
declare function time(params?: string | $ZodISOTimeParams): ZodISOTime;
|
|
3818
|
-
interface ZodISODuration extends ZodStringFormat {
|
|
3819
|
-
_zod: $ZodISODurationInternals;
|
|
3820
|
-
}
|
|
3821
|
-
declare const ZodISODuration: $constructor<ZodISODuration>;
|
|
3822
|
-
declare function duration(params?: string | $ZodISODurationParams): ZodISODuration;
|
|
3823
|
-
declare namespace coerce_d_exports {
|
|
3824
|
-
export { ZodCoercedBigInt, ZodCoercedBoolean, ZodCoercedDate, ZodCoercedNumber, ZodCoercedString, bigint, boolean, date, number, string };
|
|
3825
|
-
}
|
|
3826
|
-
interface ZodCoercedString<T = unknown> extends _ZodString<$ZodStringInternals<T>> {}
|
|
3827
|
-
declare function string<T = unknown>(params?: string | $ZodStringParams): ZodCoercedString<T>;
|
|
3828
|
-
interface ZodCoercedNumber<T = unknown> extends _ZodNumber<$ZodNumberInternals<T>> {}
|
|
3829
|
-
declare function number<T = unknown>(params?: string | $ZodNumberParams): ZodCoercedNumber<T>;
|
|
3830
|
-
interface ZodCoercedBoolean<T = unknown> extends _ZodBoolean<$ZodBooleanInternals<T>> {}
|
|
3831
|
-
declare function boolean<T = unknown>(params?: string | $ZodBooleanParams): ZodCoercedBoolean<T>;
|
|
3832
|
-
interface ZodCoercedBigInt<T = unknown> extends _ZodBigInt<$ZodBigIntInternals<T>> {}
|
|
3833
|
-
declare function bigint<T = unknown>(params?: string | $ZodBigIntParams): ZodCoercedBigInt<T>;
|
|
3834
|
-
interface ZodCoercedDate<T = unknown> extends _ZodDate<$ZodDateInternals<T>> {}
|
|
3835
|
-
declare function date<T = unknown>(params?: string | $ZodDateParams): ZodCoercedDate<T>;
|
|
3836
|
-
declare namespace external_d_exports {
|
|
3837
|
-
export { $brand, $input, $output, BRAND, GlobalMeta, output as Infer, IssueData, JSONType, NEVER, $RefinementCtx as RefinementCtx, SafeExtendShape, ZodType as Schema, TimePrecision, output as TypeOf, ZodAny, ZodArray, ZodBase64, ZodBase64URL, ZodBigInt, ZodBigIntFormat, ZodBoolean, ZodCIDRv4, ZodCIDRv6, ZodCUID, ZodCUID2, ZodCatch, ZodCodec, ZodCoercedBigInt, ZodCoercedBoolean, ZodCoercedDate, ZodCoercedNumber, ZodCoercedString, ZodCustom, ZodCustomStringFormat, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodE164, ZodEmail, ZodEmoji, ZodEnum, ZodError, $ZodErrorMap as ZodErrorMap, ZodExactOptional, ZodFile, $ZodTypes as ZodFirstPartySchemaTypes, ZodFirstPartyTypeKind, $ZodFlattenedError as ZodFlattenedError, ZodFloat32, ZodFloat64, $ZodFormattedError as ZodFormattedError, ZodFunction, ZodGUID, ZodIPv4, ZodIPv6, ZodISODate, ZodISODateTime, ZodISODuration, ZodISOTime, ZodInt, ZodInt32, ZodIntersection, ZodIssue, ZodIssueCode, ZodJSONSchema, ZodJSONSchemaInternals, ZodJWT, ZodKSUID, ZodLazy, ZodLiteral, ZodMAC, ZodMap, ZodNaN, ZodNanoID, ZodNever, ZodNonOptional, ZodNull, ZodNullable, ZodNumber, ZodNumberFormat, ZodObject, ZodOptional, ZodPipe, ZodPrefault, ZodPreprocess, ZodPromise, ZodRawShape, ZodReadonly, ZodRealError, ZodRecord, ZodSafeParseError, ZodSafeParseResult, ZodSafeParseSuccess, ZodType as ZodSchema, ZodSet, ZodStandardSchemaWithJSON, ZodString, ZodStringFormat, ZodSuccess, ZodSymbol, ZodTemplateLiteral, ZodTransform, ZodTuple, ZodType, ZodType as ZodTypeAny, ZodUInt32, ZodULID, ZodURL, ZodUUID, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, ZodXID, ZodXor, _ZodBigInt, _ZodBoolean, _ZodDate, _ZodNumber, _ZodString, _ZodType, _default, _function, any, array, base64, base64url, bigint$1 as bigint, boolean$1 as boolean, _catch as catch, check, cidrv4, cidrv6, clone, codec, coerce_d_exports as coerce, config, index_d_exports as core, cuid, cuid2, custom, date$2 as date, decode, decodeAsync, describe, discriminatedUnion, e164, email, emoji, encode, encodeAsync, _endsWith as endsWith, _enum as enum, exactOptional, file, flattenError, float32, float64, formatError, fromJSONSchema, _function as function, getErrorMap, globalRegistry, _gt as gt, _gte as gte, guid, hash, hex, hostname, httpUrl, _includes as includes, output as infer, inferFlattenedErrors, inferFormattedError, input, _instanceof as instanceof, int, int32, int64, intersection, invertCodec, ipv4, ipv6, iso_d_exports as iso, json, jwt, keyof, ksuid, lazy, _length as length, literal, index_d_exports$1 as locales, looseObject, looseRecord, _lowercase as lowercase, _lt as lt, _lte as lte, mac, map, _maxLength as maxLength, _maxSize as maxSize, meta, _mime as mime, _minLength as minLength, _minSize as minSize, _multipleOf as multipleOf, nan, nanoid, nativeEnum, _negative as negative, never, _nonnegative as nonnegative, nonoptional, _nonpositive as nonpositive, _normalize as normalize, _null as null, nullable, nullish, number$1 as number, object, optional, output, _overwrite as overwrite, parse, parseAsync, partialRecord, pipe, _positive as positive, prefault, preprocess, prettifyError, promise, _property as property, readonly, record, refine, _regex as regex, regexes_d_exports as regexes, registry, safeDecode, safeDecodeAsync, safeEncode, safeEncodeAsync, safeParse, safeParseAsync, set, setErrorMap, _size as size, _slugify as slugify, _startsWith as startsWith, strictObject, string$1 as string, stringFormat, stringbool, success, superRefine, symbol, templateLiteral, toJSONSchema, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, transform, treeifyError, _trim as trim, tuple, uint32, uint64, ulid, _undefined as undefined, union, unknown, _uppercase as uppercase, url, util_d_exports as util, uuid, uuidv4, uuidv6, uuidv7, _void as void, xid, xor };
|
|
3838
|
-
}
|
|
3839
|
-
//#endregion
|
|
3840
|
-
export { $strip as S, ZodUnion as _, ZodCustom as a, $partial as b, ZodInt as c, ZodObject as d, ZodOptional as f, ZodTransform as g, ZodString as h, ZodBoolean as i, ZodLiteral as l, ZodRecord as m, ZodAny as n, ZodDefault as o, ZodPipe as p, ZodArray as r, ZodEnum as s, external_d_exports as t, ZodNumber as u, input as v, $strict as x, output as y };
|