ooxml-core 1.19.0 → 1.19.2

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