@cossistant/react 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.d.ts +71 -0
- package/api.d.ts.map +1 -0
- package/checks.d.ts +189 -0
- package/checks.d.ts.map +1 -0
- package/clsx.d.ts +7 -0
- package/clsx.d.ts.map +1 -0
- package/coerce.d.ts +9 -0
- package/coerce.d.ts.map +1 -0
- package/conversation.d.ts +224 -220
- package/conversation.d.ts.map +1 -1
- package/core.d.ts +35 -0
- package/core.d.ts.map +1 -0
- package/errors.d.ts +121 -0
- package/errors.d.ts.map +1 -0
- package/errors2.d.ts +24 -0
- package/errors2.d.ts.map +1 -0
- package/hooks/private/use-grouped-messages.d.ts +1 -1
- package/hooks/use-conversation-seen.d.ts +1 -1
- package/hooks/use-create-conversation.d.ts +1 -1
- package/hooks/use-realtime-support.d.ts.map +1 -1
- package/index2.d.ts +4 -0
- package/index3.d.ts +1 -0
- package/index4.d.ts +18 -0
- package/index4.d.ts.map +1 -0
- package/index5.d.ts +999 -0
- package/index5.d.ts.map +1 -0
- package/index6.d.ts +6 -0
- package/metadata.d.ts +1 -0
- package/openapi-generator.d.ts +1 -0
- package/openapi-generator2.d.ts +1 -0
- package/openapi-generator3.d.ts +1 -0
- package/openapi30.d.ts +125 -0
- package/openapi30.d.ts.map +1 -0
- package/openapi31.d.ts +131 -0
- package/openapi31.d.ts.map +1 -0
- package/package.json +15 -3
- package/parse.d.ts +17 -0
- package/parse.d.ts.map +1 -0
- package/primitives/avatar/image.d.ts +1 -1
- package/primitives/multimodal-input.d.ts +2 -2
- package/primitives/multimodal-input.d.ts.map +1 -1
- package/react.d.ts +4 -0
- package/realtime/seen-store.d.ts +1 -1
- package/realtime-events.d.ts +274 -272
- package/realtime-events.d.ts.map +1 -1
- package/registries.d.ts +32 -0
- package/registries.d.ts.map +1 -0
- package/schemas.d.ts +670 -93
- package/schemas.d.ts.map +1 -1
- package/schemas2.d.ts +320 -0
- package/schemas2.d.ts.map +1 -0
- package/schemas3.d.ts +98 -0
- package/schemas3.d.ts.map +1 -0
- package/specification-extension.d.ts +9 -0
- package/specification-extension.d.ts.map +1 -0
- package/standard-schema.d.ts +59 -0
- package/standard-schema.d.ts.map +1 -0
- package/support/components/button.d.ts +1 -1
- package/support/components/text-effect.d.ts +2 -1
- package/support/components/text-effect.d.ts.map +1 -1
- package/support/components/typing-indicator.d.ts.map +1 -1
- package/support/text/index.js +2 -0
- package/support/text/index.js.map +1 -1
- package/support/text/runtime.js +1 -0
- package/support/text/runtime.js.map +1 -1
- package/support/utils/index.d.ts +1 -1
- package/support.css +1 -1
- package/timeline-item.d.ts +97 -93
- package/timeline-item.d.ts.map +1 -1
- package/types.d-BJcRxCew.d.ts +39 -0
- package/types.d-BJcRxCew.d.ts.map +1 -0
- package/util.d.ts +41 -0
- package/util.d.ts.map +1 -0
- package/utils/use-render-element.d.ts.map +1 -1
- package/versions.d.ts +9 -0
- package/versions.d.ts.map +1 -0
- package/zod-extensions.d.ts +39 -0
- package/zod-extensions.d.ts.map +1 -0
package/schemas.d.ts
CHANGED
|
@@ -1,96 +1,673 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StandardSchemaV1 } from "./standard-schema.js";
|
|
2
|
+
import { AnyFunc, Class, EnumLike, IsAny, JWTAlgorithm, Literal, LoosePartial, MakeReadonly, MaybeAsync, NoUndefined, Prettify, PrimitiveSet, PropValues } from "./util.js";
|
|
3
|
+
import { version } from "./versions.js";
|
|
4
|
+
import { $ZodCheck, $ZodCheckDef, $ZodCheckInternals, $ZodCheckStringFormatDef, $ZodCheckStringFormatInternals } from "./checks.js";
|
|
5
|
+
import { $ZodErrorMap, $ZodIssue, $ZodIssueBase, $ZodIssueInvalidKey, $ZodIssueInvalidType, $ZodIssueInvalidUnion, $ZodIssueInvalidValue, $ZodIssueUnrecognizedKeys, $ZodRawIssue } from "./errors.js";
|
|
6
|
+
import { $constructor, input, output } from "./core.js";
|
|
2
7
|
|
|
3
|
-
//#region
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
type
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
8
|
+
//#region ../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/schemas.d.cts
|
|
9
|
+
interface ParseContext<T$1 extends $ZodIssueBase = never> {
|
|
10
|
+
/** Customize error messages. */
|
|
11
|
+
readonly error?: $ZodErrorMap<T$1>;
|
|
12
|
+
/** Include the `input` field in issue objects. Default `false`. */
|
|
13
|
+
readonly reportInput?: boolean;
|
|
14
|
+
/** Skip eval-based fast path. Default `false`. */
|
|
15
|
+
readonly jitless?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** @internal */
|
|
18
|
+
interface ParseContextInternal<T$1 extends $ZodIssueBase = never> extends ParseContext<T$1> {
|
|
19
|
+
readonly async?: boolean | undefined;
|
|
20
|
+
readonly direction?: "forward" | "backward";
|
|
21
|
+
readonly skipChecks?: boolean;
|
|
22
|
+
}
|
|
23
|
+
interface ParsePayload<T$1 = unknown> {
|
|
24
|
+
value: T$1;
|
|
25
|
+
issues: $ZodRawIssue[];
|
|
26
|
+
/** A may to mark a whole payload as aborted. Used in codecs/pipes. */
|
|
27
|
+
aborted?: boolean;
|
|
28
|
+
}
|
|
29
|
+
type CheckFn<T$1> = (input: ParsePayload<T$1>) => MaybeAsync<void>;
|
|
30
|
+
interface $ZodTypeDef {
|
|
31
|
+
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";
|
|
32
|
+
error?: $ZodErrorMap<never> | undefined;
|
|
33
|
+
checks?: $ZodCheck<never>[];
|
|
34
|
+
}
|
|
35
|
+
interface _$ZodTypeInternals {
|
|
36
|
+
/** The `@zod/core` version of this schema */
|
|
37
|
+
version: typeof version;
|
|
38
|
+
/** Schema definition. */
|
|
39
|
+
def: $ZodTypeDef;
|
|
40
|
+
/** @internal Randomly generated ID for this schema. */
|
|
41
|
+
/** @internal List of deferred initializers. */
|
|
42
|
+
deferred: AnyFunc[] | undefined;
|
|
43
|
+
/** @internal Parses input and runs all checks (refinements). */
|
|
44
|
+
run(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
|
|
45
|
+
/** @internal Parses input, doesn't run checks. */
|
|
46
|
+
parse(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
|
|
47
|
+
/** @internal Stores identifiers for the set of traits implemented by this schema. */
|
|
48
|
+
traits: Set<string>;
|
|
49
|
+
/** @internal Indicates that a schema output type should be considered optional inside objects.
|
|
50
|
+
* @default Required
|
|
51
|
+
*/
|
|
52
|
+
/** @internal */
|
|
53
|
+
optin?: "optional" | undefined;
|
|
54
|
+
/** @internal */
|
|
55
|
+
optout?: "optional" | undefined;
|
|
56
|
+
/** @internal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record().
|
|
57
|
+
*
|
|
58
|
+
* Defined on: enum, const, literal, null, undefined
|
|
59
|
+
* Passthrough: optional, nullable, branded, default, catch, pipe
|
|
60
|
+
* Todo: unions?
|
|
61
|
+
*/
|
|
62
|
+
values?: PrimitiveSet | undefined;
|
|
63
|
+
/** Default value bubbled up from */
|
|
64
|
+
/** @internal A set of literal discriminators used for the fast path in discriminated unions. */
|
|
65
|
+
propValues?: PropValues | undefined;
|
|
66
|
+
/** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */
|
|
67
|
+
pattern: RegExp | undefined;
|
|
68
|
+
/** @internal The constructor function of this schema. */
|
|
69
|
+
constr: new (def: any) => $ZodType;
|
|
70
|
+
/** @internal A catchall object for bag metadata related to this schema. Commonly modified by checks using `onattach`. */
|
|
71
|
+
bag: Record<string, unknown>;
|
|
72
|
+
/** @internal The set of issues this schema might throw during type checking. */
|
|
73
|
+
isst: $ZodIssueBase;
|
|
74
|
+
/** An optional method used to override `toJSONSchema` logic. */
|
|
75
|
+
toJSONSchema?: () => unknown;
|
|
76
|
+
/** @internal The parent of this schema. Only set during certain clone operations. */
|
|
77
|
+
parent?: $ZodType | undefined;
|
|
78
|
+
}
|
|
79
|
+
/** @internal */
|
|
80
|
+
interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$ZodTypeInternals {
|
|
81
|
+
/** @internal The inferred output type */
|
|
82
|
+
output: O;
|
|
83
|
+
/** @internal The inferred input type */
|
|
84
|
+
input: I;
|
|
85
|
+
}
|
|
86
|
+
type $ZodStandardSchema<T$1> = StandardSchemaV1.Props<input<T$1>, output<T$1>>;
|
|
87
|
+
type SomeType = {
|
|
88
|
+
_zod: _$ZodTypeInternals;
|
|
89
|
+
};
|
|
90
|
+
interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> {
|
|
91
|
+
_zod: Internals;
|
|
92
|
+
"~standard": $ZodStandardSchema<this>;
|
|
93
|
+
}
|
|
94
|
+
declare const $ZodType: $constructor<$ZodType>;
|
|
95
|
+
interface $ZodStringDef extends $ZodTypeDef {
|
|
96
|
+
type: "string";
|
|
97
|
+
coerce?: boolean;
|
|
98
|
+
checks?: $ZodCheck<string>[];
|
|
99
|
+
}
|
|
100
|
+
interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, Input> {
|
|
101
|
+
def: $ZodStringDef;
|
|
102
|
+
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
103
|
+
pattern: RegExp;
|
|
104
|
+
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
105
|
+
isst: $ZodIssueInvalidType;
|
|
106
|
+
bag: LoosePartial<{
|
|
107
|
+
minimum: number;
|
|
108
|
+
maximum: number;
|
|
109
|
+
patterns: Set<RegExp>;
|
|
110
|
+
format: string;
|
|
111
|
+
contentEncoding: string;
|
|
112
|
+
}>;
|
|
113
|
+
}
|
|
114
|
+
interface $ZodStringFormatDef<Format extends string = string> extends $ZodStringDef, $ZodCheckStringFormatDef<Format> {}
|
|
115
|
+
interface $ZodStringFormatInternals<Format extends string = string> extends $ZodStringInternals<string>, $ZodCheckStringFormatInternals {
|
|
116
|
+
def: $ZodStringFormatDef<Format>;
|
|
117
|
+
}
|
|
118
|
+
interface $ZodStringFormat<Format extends string = string> extends $ZodType {
|
|
119
|
+
_zod: $ZodStringFormatInternals<Format>;
|
|
120
|
+
}
|
|
121
|
+
declare const $ZodStringFormat: $constructor<$ZodStringFormat>;
|
|
122
|
+
interface $ZodGUIDInternals extends $ZodStringFormatInternals<"guid"> {}
|
|
123
|
+
interface $ZodGUID extends $ZodType {
|
|
124
|
+
_zod: $ZodGUIDInternals;
|
|
125
|
+
}
|
|
126
|
+
declare const $ZodGUID: $constructor<$ZodGUID>;
|
|
127
|
+
interface $ZodUUIDDef extends $ZodStringFormatDef<"uuid"> {
|
|
128
|
+
version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8";
|
|
129
|
+
}
|
|
130
|
+
interface $ZodUUIDInternals extends $ZodStringFormatInternals<"uuid"> {
|
|
131
|
+
def: $ZodUUIDDef;
|
|
132
|
+
}
|
|
133
|
+
interface $ZodUUID extends $ZodType {
|
|
134
|
+
_zod: $ZodUUIDInternals;
|
|
135
|
+
}
|
|
136
|
+
declare const $ZodUUID: $constructor<$ZodUUID>;
|
|
137
|
+
interface $ZodEmailInternals extends $ZodStringFormatInternals<"email"> {}
|
|
138
|
+
interface $ZodEmail extends $ZodType {
|
|
139
|
+
_zod: $ZodEmailInternals;
|
|
140
|
+
}
|
|
141
|
+
declare const $ZodEmail: $constructor<$ZodEmail>;
|
|
142
|
+
interface $ZodURLDef extends $ZodStringFormatDef<"url"> {
|
|
143
|
+
hostname?: RegExp | undefined;
|
|
144
|
+
protocol?: RegExp | undefined;
|
|
145
|
+
normalize?: boolean | undefined;
|
|
146
|
+
}
|
|
147
|
+
interface $ZodURLInternals extends $ZodStringFormatInternals<"url"> {
|
|
148
|
+
def: $ZodURLDef;
|
|
149
|
+
}
|
|
150
|
+
interface $ZodURL extends $ZodType {
|
|
151
|
+
_zod: $ZodURLInternals;
|
|
152
|
+
}
|
|
153
|
+
declare const $ZodURL: $constructor<$ZodURL>;
|
|
154
|
+
interface $ZodEmojiInternals extends $ZodStringFormatInternals<"emoji"> {}
|
|
155
|
+
interface $ZodEmoji extends $ZodType {
|
|
156
|
+
_zod: $ZodEmojiInternals;
|
|
157
|
+
}
|
|
158
|
+
declare const $ZodEmoji: $constructor<$ZodEmoji>;
|
|
159
|
+
interface $ZodNanoIDInternals extends $ZodStringFormatInternals<"nanoid"> {}
|
|
160
|
+
interface $ZodNanoID extends $ZodType {
|
|
161
|
+
_zod: $ZodNanoIDInternals;
|
|
162
|
+
}
|
|
163
|
+
declare const $ZodNanoID: $constructor<$ZodNanoID>;
|
|
164
|
+
interface $ZodCUIDInternals extends $ZodStringFormatInternals<"cuid"> {}
|
|
165
|
+
interface $ZodCUID extends $ZodType {
|
|
166
|
+
_zod: $ZodCUIDInternals;
|
|
167
|
+
}
|
|
168
|
+
declare const $ZodCUID: $constructor<$ZodCUID>;
|
|
169
|
+
interface $ZodCUID2Internals extends $ZodStringFormatInternals<"cuid2"> {}
|
|
170
|
+
interface $ZodCUID2 extends $ZodType {
|
|
171
|
+
_zod: $ZodCUID2Internals;
|
|
172
|
+
}
|
|
173
|
+
declare const $ZodCUID2: $constructor<$ZodCUID2>;
|
|
174
|
+
interface $ZodULIDInternals extends $ZodStringFormatInternals<"ulid"> {}
|
|
175
|
+
interface $ZodULID extends $ZodType {
|
|
176
|
+
_zod: $ZodULIDInternals;
|
|
177
|
+
}
|
|
178
|
+
declare const $ZodULID: $constructor<$ZodULID>;
|
|
179
|
+
interface $ZodXIDInternals extends $ZodStringFormatInternals<"xid"> {}
|
|
180
|
+
interface $ZodXID extends $ZodType {
|
|
181
|
+
_zod: $ZodXIDInternals;
|
|
182
|
+
}
|
|
183
|
+
declare const $ZodXID: $constructor<$ZodXID>;
|
|
184
|
+
interface $ZodKSUIDInternals extends $ZodStringFormatInternals<"ksuid"> {}
|
|
185
|
+
interface $ZodKSUID extends $ZodType {
|
|
186
|
+
_zod: $ZodKSUIDInternals;
|
|
187
|
+
}
|
|
188
|
+
declare const $ZodKSUID: $constructor<$ZodKSUID>;
|
|
189
|
+
interface $ZodISODateTimeDef extends $ZodStringFormatDef<"datetime"> {
|
|
190
|
+
precision: number | null;
|
|
191
|
+
offset: boolean;
|
|
192
|
+
local: boolean;
|
|
193
|
+
}
|
|
194
|
+
interface $ZodISODateTimeInternals extends $ZodStringFormatInternals {
|
|
195
|
+
def: $ZodISODateTimeDef;
|
|
196
|
+
}
|
|
197
|
+
interface $ZodISODateTime extends $ZodType {
|
|
198
|
+
_zod: $ZodISODateTimeInternals;
|
|
199
|
+
}
|
|
200
|
+
declare const $ZodISODateTime: $constructor<$ZodISODateTime>;
|
|
201
|
+
interface $ZodISODateInternals extends $ZodStringFormatInternals<"date"> {}
|
|
202
|
+
interface $ZodISODate extends $ZodType {
|
|
203
|
+
_zod: $ZodISODateInternals;
|
|
204
|
+
}
|
|
205
|
+
declare const $ZodISODate: $constructor<$ZodISODate>;
|
|
206
|
+
interface $ZodISOTimeDef extends $ZodStringFormatDef<"time"> {
|
|
207
|
+
precision?: number | null;
|
|
208
|
+
}
|
|
209
|
+
interface $ZodISOTimeInternals extends $ZodStringFormatInternals<"time"> {
|
|
210
|
+
def: $ZodISOTimeDef;
|
|
211
|
+
}
|
|
212
|
+
interface $ZodISOTime extends $ZodType {
|
|
213
|
+
_zod: $ZodISOTimeInternals;
|
|
214
|
+
}
|
|
215
|
+
declare const $ZodISOTime: $constructor<$ZodISOTime>;
|
|
216
|
+
interface $ZodISODurationInternals extends $ZodStringFormatInternals<"duration"> {}
|
|
217
|
+
interface $ZodISODuration extends $ZodType {
|
|
218
|
+
_zod: $ZodISODurationInternals;
|
|
219
|
+
}
|
|
220
|
+
declare const $ZodISODuration: $constructor<$ZodISODuration>;
|
|
221
|
+
interface $ZodIPv4Def extends $ZodStringFormatDef<"ipv4"> {
|
|
222
|
+
version?: "v4";
|
|
223
|
+
}
|
|
224
|
+
interface $ZodIPv4Internals extends $ZodStringFormatInternals<"ipv4"> {
|
|
225
|
+
def: $ZodIPv4Def;
|
|
226
|
+
}
|
|
227
|
+
interface $ZodIPv4 extends $ZodType {
|
|
228
|
+
_zod: $ZodIPv4Internals;
|
|
229
|
+
}
|
|
230
|
+
declare const $ZodIPv4: $constructor<$ZodIPv4>;
|
|
231
|
+
interface $ZodIPv6Def extends $ZodStringFormatDef<"ipv6"> {
|
|
232
|
+
version?: "v6";
|
|
233
|
+
}
|
|
234
|
+
interface $ZodIPv6Internals extends $ZodStringFormatInternals<"ipv6"> {
|
|
235
|
+
def: $ZodIPv6Def;
|
|
236
|
+
}
|
|
237
|
+
interface $ZodIPv6 extends $ZodType {
|
|
238
|
+
_zod: $ZodIPv6Internals;
|
|
239
|
+
}
|
|
240
|
+
declare const $ZodIPv6: $constructor<$ZodIPv6>;
|
|
241
|
+
interface $ZodCIDRv4Def extends $ZodStringFormatDef<"cidrv4"> {
|
|
242
|
+
version?: "v4";
|
|
243
|
+
}
|
|
244
|
+
interface $ZodCIDRv4Internals extends $ZodStringFormatInternals<"cidrv4"> {
|
|
245
|
+
def: $ZodCIDRv4Def;
|
|
246
|
+
}
|
|
247
|
+
interface $ZodCIDRv4 extends $ZodType {
|
|
248
|
+
_zod: $ZodCIDRv4Internals;
|
|
249
|
+
}
|
|
250
|
+
declare const $ZodCIDRv4: $constructor<$ZodCIDRv4>;
|
|
251
|
+
interface $ZodCIDRv6Def extends $ZodStringFormatDef<"cidrv6"> {
|
|
252
|
+
version?: "v6";
|
|
253
|
+
}
|
|
254
|
+
interface $ZodCIDRv6Internals extends $ZodStringFormatInternals<"cidrv6"> {
|
|
255
|
+
def: $ZodCIDRv6Def;
|
|
256
|
+
}
|
|
257
|
+
interface $ZodCIDRv6 extends $ZodType {
|
|
258
|
+
_zod: $ZodCIDRv6Internals;
|
|
259
|
+
}
|
|
260
|
+
declare const $ZodCIDRv6: $constructor<$ZodCIDRv6>;
|
|
261
|
+
interface $ZodBase64Internals extends $ZodStringFormatInternals<"base64"> {}
|
|
262
|
+
interface $ZodBase64 extends $ZodType {
|
|
263
|
+
_zod: $ZodBase64Internals;
|
|
264
|
+
}
|
|
265
|
+
declare const $ZodBase64: $constructor<$ZodBase64>;
|
|
266
|
+
interface $ZodBase64URLInternals extends $ZodStringFormatInternals<"base64url"> {}
|
|
267
|
+
interface $ZodBase64URL extends $ZodType {
|
|
268
|
+
_zod: $ZodBase64URLInternals;
|
|
269
|
+
}
|
|
270
|
+
declare const $ZodBase64URL: $constructor<$ZodBase64URL>;
|
|
271
|
+
interface $ZodE164Internals extends $ZodStringFormatInternals<"e164"> {}
|
|
272
|
+
interface $ZodE164 extends $ZodType {
|
|
273
|
+
_zod: $ZodE164Internals;
|
|
274
|
+
}
|
|
275
|
+
declare const $ZodE164: $constructor<$ZodE164>;
|
|
276
|
+
interface $ZodJWTDef extends $ZodStringFormatDef<"jwt"> {
|
|
277
|
+
alg?: JWTAlgorithm | undefined;
|
|
278
|
+
}
|
|
279
|
+
interface $ZodJWTInternals extends $ZodStringFormatInternals<"jwt"> {
|
|
280
|
+
def: $ZodJWTDef;
|
|
281
|
+
}
|
|
282
|
+
interface $ZodJWT extends $ZodType {
|
|
283
|
+
_zod: $ZodJWTInternals;
|
|
284
|
+
}
|
|
285
|
+
declare const $ZodJWT: $constructor<$ZodJWT>;
|
|
286
|
+
interface $ZodNumberDef extends $ZodTypeDef {
|
|
287
|
+
type: "number";
|
|
288
|
+
coerce?: boolean;
|
|
289
|
+
}
|
|
290
|
+
interface $ZodNumberInternals<Input = unknown> extends $ZodTypeInternals<number, Input> {
|
|
291
|
+
def: $ZodNumberDef;
|
|
292
|
+
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
293
|
+
pattern: RegExp;
|
|
294
|
+
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
295
|
+
isst: $ZodIssueInvalidType;
|
|
296
|
+
bag: LoosePartial<{
|
|
297
|
+
minimum: number;
|
|
298
|
+
maximum: number;
|
|
299
|
+
exclusiveMinimum: number;
|
|
300
|
+
exclusiveMaximum: number;
|
|
301
|
+
format: string;
|
|
302
|
+
pattern: RegExp;
|
|
303
|
+
}>;
|
|
304
|
+
}
|
|
305
|
+
interface $ZodBooleanDef extends $ZodTypeDef {
|
|
306
|
+
type: "boolean";
|
|
307
|
+
coerce?: boolean;
|
|
308
|
+
checks?: $ZodCheck<boolean>[];
|
|
309
|
+
}
|
|
310
|
+
interface $ZodBooleanInternals<T$1 = unknown> extends $ZodTypeInternals<boolean, T$1> {
|
|
311
|
+
pattern: RegExp;
|
|
312
|
+
def: $ZodBooleanDef;
|
|
313
|
+
isst: $ZodIssueInvalidType;
|
|
314
|
+
}
|
|
315
|
+
interface $ZodNullDef extends $ZodTypeDef {
|
|
316
|
+
type: "null";
|
|
317
|
+
}
|
|
318
|
+
interface $ZodNullInternals extends $ZodTypeInternals<null, null> {
|
|
319
|
+
pattern: RegExp;
|
|
320
|
+
def: $ZodNullDef;
|
|
321
|
+
values: PrimitiveSet;
|
|
322
|
+
isst: $ZodIssueInvalidType;
|
|
323
|
+
}
|
|
324
|
+
interface $ZodUnknownDef extends $ZodTypeDef {
|
|
325
|
+
type: "unknown";
|
|
326
|
+
}
|
|
327
|
+
interface $ZodUnknownInternals extends $ZodTypeInternals<unknown, unknown> {
|
|
328
|
+
def: $ZodUnknownDef;
|
|
329
|
+
isst: never;
|
|
330
|
+
}
|
|
331
|
+
interface $ZodArrayDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
332
|
+
type: "array";
|
|
333
|
+
element: T$1;
|
|
334
|
+
}
|
|
335
|
+
interface $ZodArrayInternals<T$1 extends SomeType = $ZodType> extends _$ZodTypeInternals {
|
|
336
|
+
def: $ZodArrayDef<T$1>;
|
|
337
|
+
isst: $ZodIssueInvalidType;
|
|
338
|
+
output: output<T$1>[];
|
|
339
|
+
input: input<T$1>[];
|
|
340
|
+
}
|
|
341
|
+
interface $ZodArray<T$1 extends SomeType = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T$1>> {}
|
|
342
|
+
declare const $ZodArray: $constructor<$ZodArray>;
|
|
343
|
+
type OptionalOutSchema = {
|
|
344
|
+
_zod: {
|
|
345
|
+
optout: "optional";
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
type OptionalInSchema = {
|
|
349
|
+
_zod: {
|
|
350
|
+
optin: "optional";
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
type $InferObjectOutput<T$1 extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T$1 ? IsAny<T$1[keyof T$1]> extends true ? Record<string, unknown> : Record<string, output<T$1[keyof T$1]>> : keyof (T$1 & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T$1 as T$1[k] extends OptionalOutSchema ? never : k]: T$1[k]["_zod"]["output"] } & { -readonly [k in keyof T$1 as T$1[k] extends OptionalOutSchema ? k : never]?: T$1[k]["_zod"]["output"] } & Extra>;
|
|
354
|
+
type $InferObjectInput<T$1 extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T$1 ? IsAny<T$1[keyof T$1]> extends true ? Record<string, unknown> : Record<string, input<T$1[keyof T$1]>> : keyof (T$1 & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T$1 as T$1[k] extends OptionalInSchema ? never : k]: T$1[k]["_zod"]["input"] } & { -readonly [k in keyof T$1 as T$1[k] extends OptionalInSchema ? k : never]?: T$1[k]["_zod"]["input"] } & Extra>;
|
|
355
|
+
type $ZodObjectConfig = {
|
|
356
|
+
out: Record<string, unknown>;
|
|
357
|
+
in: Record<string, unknown>;
|
|
358
|
+
};
|
|
359
|
+
type $loose = {
|
|
360
|
+
out: Record<string, unknown>;
|
|
361
|
+
in: Record<string, unknown>;
|
|
362
|
+
};
|
|
363
|
+
type $strict = {
|
|
364
|
+
out: {};
|
|
365
|
+
in: {};
|
|
366
|
+
};
|
|
367
|
+
type $strip = {
|
|
368
|
+
out: {};
|
|
369
|
+
in: {};
|
|
370
|
+
};
|
|
371
|
+
type $catchall<T$1 extends SomeType> = {
|
|
372
|
+
out: {
|
|
373
|
+
[k: string]: output<T$1>;
|
|
374
|
+
};
|
|
375
|
+
in: {
|
|
376
|
+
[k: string]: input<T$1>;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
type $ZodShape = Readonly<{
|
|
380
|
+
[k: string]: $ZodType;
|
|
381
|
+
}>;
|
|
382
|
+
interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
|
|
383
|
+
type: "object";
|
|
384
|
+
shape: Shape;
|
|
385
|
+
catchall?: $ZodType | undefined;
|
|
386
|
+
}
|
|
387
|
+
interface $ZodObjectInternals< /** @ts-ignore Cast variance */
|
|
388
|
+
out Shape extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
|
|
389
|
+
def: $ZodObjectDef<Shape>;
|
|
390
|
+
config: Config;
|
|
391
|
+
isst: $ZodIssueInvalidType | $ZodIssueUnrecognizedKeys;
|
|
392
|
+
propValues: PropValues;
|
|
393
|
+
output: $InferObjectOutput<Shape, Config["out"]>;
|
|
394
|
+
input: $InferObjectInput<Shape, Config["in"]>;
|
|
395
|
+
optin?: "optional" | undefined;
|
|
396
|
+
optout?: "optional" | undefined;
|
|
397
|
+
}
|
|
398
|
+
type $ZodLooseShape = Record<string, any>;
|
|
399
|
+
interface $ZodObject< /** @ts-ignore Cast variance */
|
|
400
|
+
out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params>> {
|
|
401
|
+
"~standard": $ZodStandardSchema<this>;
|
|
402
|
+
}
|
|
403
|
+
declare const $ZodObject: $constructor<$ZodObject>;
|
|
404
|
+
type $InferUnionOutput<T$1 extends SomeType> = T$1 extends any ? output<T$1> : never;
|
|
405
|
+
type $InferUnionInput<T$1 extends SomeType> = T$1 extends any ? input<T$1> : never;
|
|
406
|
+
interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef {
|
|
407
|
+
type: "union";
|
|
408
|
+
options: Options;
|
|
409
|
+
}
|
|
410
|
+
type IsOptionalIn<T$1 extends SomeType> = T$1 extends OptionalInSchema ? true : false;
|
|
411
|
+
type IsOptionalOut<T$1 extends SomeType> = T$1 extends OptionalOutSchema ? true : false;
|
|
412
|
+
interface $ZodUnionInternals<T$1 extends readonly SomeType[] = readonly $ZodType[]> extends _$ZodTypeInternals {
|
|
413
|
+
def: $ZodUnionDef<T$1>;
|
|
414
|
+
isst: $ZodIssueInvalidUnion;
|
|
415
|
+
pattern: T$1[number]["_zod"]["pattern"];
|
|
416
|
+
values: T$1[number]["_zod"]["values"];
|
|
417
|
+
output: $InferUnionOutput<T$1[number]>;
|
|
418
|
+
input: $InferUnionInput<T$1[number]>;
|
|
419
|
+
optin: IsOptionalIn<T$1[number]> extends false ? "optional" | undefined : "optional";
|
|
420
|
+
optout: IsOptionalOut<T$1[number]> extends false ? "optional" | undefined : "optional";
|
|
421
|
+
}
|
|
422
|
+
interface $ZodUnion<T$1 extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodUnionInternals<T$1>> {
|
|
423
|
+
_zod: $ZodUnionInternals<T$1>;
|
|
424
|
+
}
|
|
425
|
+
declare const $ZodUnion: $constructor<$ZodUnion>;
|
|
426
|
+
interface $ZodIntersectionDef<Left extends SomeType = $ZodType, Right extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
427
|
+
type: "intersection";
|
|
428
|
+
left: Left;
|
|
429
|
+
right: Right;
|
|
430
|
+
}
|
|
431
|
+
interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _$ZodTypeInternals {
|
|
432
|
+
def: $ZodIntersectionDef<A, B>;
|
|
433
|
+
isst: never;
|
|
434
|
+
optin: A["_zod"]["optin"] | B["_zod"]["optin"];
|
|
435
|
+
optout: A["_zod"]["optout"] | B["_zod"]["optout"];
|
|
436
|
+
output: output<A> & output<B>;
|
|
437
|
+
input: input<A> & input<B>;
|
|
438
|
+
}
|
|
439
|
+
interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
440
|
+
_zod: $ZodIntersectionInternals<A, B>;
|
|
441
|
+
}
|
|
442
|
+
declare const $ZodIntersection: $constructor<$ZodIntersection>;
|
|
443
|
+
type $ZodRecordKey = $ZodType<string | number | symbol, string | number | symbol>;
|
|
444
|
+
interface $ZodRecordDef<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
445
|
+
type: "record";
|
|
446
|
+
keyType: Key;
|
|
447
|
+
valueType: Value;
|
|
448
|
+
}
|
|
449
|
+
type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<output<Key>, output<Value>>> : Record<output<Key>, output<Value>>;
|
|
450
|
+
type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<input<Key>, input<Value>>> : Record<input<Key>, input<Value>>;
|
|
451
|
+
interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key, Value>, $InferZodRecordInput<Key, Value>> {
|
|
452
|
+
def: $ZodRecordDef<Key, Value>;
|
|
453
|
+
isst: $ZodIssueInvalidType | $ZodIssueInvalidKey<Record<PropertyKey, unknown>>;
|
|
454
|
+
optin?: "optional" | undefined;
|
|
455
|
+
optout?: "optional" | undefined;
|
|
456
|
+
}
|
|
457
|
+
type $partial = {
|
|
458
|
+
"~~partial": true;
|
|
459
|
+
};
|
|
460
|
+
interface $ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodType {
|
|
461
|
+
_zod: $ZodRecordInternals<Key, Value>;
|
|
462
|
+
}
|
|
463
|
+
declare const $ZodRecord: $constructor<$ZodRecord>;
|
|
464
|
+
type $InferEnumOutput<T$1 extends EnumLike> = T$1[keyof T$1] & {};
|
|
465
|
+
type $InferEnumInput<T$1 extends EnumLike> = T$1[keyof T$1] & {};
|
|
466
|
+
interface $ZodEnumDef<T$1 extends EnumLike = EnumLike> extends $ZodTypeDef {
|
|
467
|
+
type: "enum";
|
|
468
|
+
entries: T$1;
|
|
469
|
+
}
|
|
470
|
+
interface $ZodEnumInternals< /** @ts-ignore Cast variance */
|
|
471
|
+
out T$1 extends EnumLike = EnumLike> extends $ZodTypeInternals<$InferEnumOutput<T$1>, $InferEnumInput<T$1>> {
|
|
472
|
+
def: $ZodEnumDef<T$1>;
|
|
473
|
+
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
474
|
+
values: PrimitiveSet;
|
|
475
|
+
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
476
|
+
pattern: RegExp;
|
|
477
|
+
isst: $ZodIssueInvalidValue;
|
|
478
|
+
}
|
|
479
|
+
interface $ZodEnum<T$1 extends EnumLike = EnumLike> extends $ZodType {
|
|
480
|
+
_zod: $ZodEnumInternals<T$1>;
|
|
481
|
+
}
|
|
482
|
+
declare const $ZodEnum: $constructor<$ZodEnum>;
|
|
483
|
+
interface $ZodLiteralDef<T$1 extends Literal> extends $ZodTypeDef {
|
|
484
|
+
type: "literal";
|
|
485
|
+
values: T$1[];
|
|
486
|
+
}
|
|
487
|
+
interface $ZodLiteralInternals<T$1 extends Literal = Literal> extends $ZodTypeInternals<T$1, T$1> {
|
|
488
|
+
def: $ZodLiteralDef<T$1>;
|
|
489
|
+
values: Set<T$1>;
|
|
490
|
+
pattern: RegExp;
|
|
491
|
+
isst: $ZodIssueInvalidValue;
|
|
492
|
+
}
|
|
493
|
+
interface $ZodLiteral<T$1 extends Literal = Literal> extends $ZodType {
|
|
494
|
+
_zod: $ZodLiteralInternals<T$1>;
|
|
495
|
+
}
|
|
496
|
+
declare const $ZodLiteral: $constructor<$ZodLiteral>;
|
|
497
|
+
interface $ZodTransformDef extends $ZodTypeDef {
|
|
498
|
+
type: "transform";
|
|
499
|
+
transform: (input: unknown, payload: ParsePayload<unknown>) => MaybeAsync<unknown>;
|
|
500
|
+
}
|
|
501
|
+
interface $ZodTransformInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I> {
|
|
502
|
+
def: $ZodTransformDef;
|
|
503
|
+
isst: never;
|
|
504
|
+
}
|
|
505
|
+
interface $ZodTransform<O = unknown, I = unknown> extends $ZodType {
|
|
506
|
+
_zod: $ZodTransformInternals<O, I>;
|
|
507
|
+
}
|
|
508
|
+
declare const $ZodTransform: $constructor<$ZodTransform>;
|
|
509
|
+
interface $ZodOptionalDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
510
|
+
type: "optional";
|
|
511
|
+
innerType: T$1;
|
|
512
|
+
}
|
|
513
|
+
interface $ZodOptionalInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1> | undefined, input<T$1> | undefined> {
|
|
514
|
+
def: $ZodOptionalDef<T$1>;
|
|
515
|
+
optin: "optional";
|
|
516
|
+
optout: "optional";
|
|
517
|
+
isst: never;
|
|
518
|
+
values: T$1["_zod"]["values"];
|
|
519
|
+
pattern: T$1["_zod"]["pattern"];
|
|
520
|
+
}
|
|
521
|
+
interface $ZodOptional<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
522
|
+
_zod: $ZodOptionalInternals<T$1>;
|
|
523
|
+
}
|
|
524
|
+
declare const $ZodOptional: $constructor<$ZodOptional>;
|
|
525
|
+
interface $ZodNullableDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
526
|
+
type: "nullable";
|
|
527
|
+
innerType: T$1;
|
|
528
|
+
}
|
|
529
|
+
interface $ZodNullableInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1> | null, input<T$1> | null> {
|
|
530
|
+
def: $ZodNullableDef<T$1>;
|
|
531
|
+
optin: T$1["_zod"]["optin"];
|
|
532
|
+
optout: T$1["_zod"]["optout"];
|
|
533
|
+
isst: never;
|
|
534
|
+
values: T$1["_zod"]["values"];
|
|
535
|
+
pattern: T$1["_zod"]["pattern"];
|
|
536
|
+
}
|
|
537
|
+
interface $ZodNullable<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
538
|
+
_zod: $ZodNullableInternals<T$1>;
|
|
539
|
+
}
|
|
540
|
+
declare const $ZodNullable: $constructor<$ZodNullable>;
|
|
541
|
+
interface $ZodDefaultDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
542
|
+
type: "default";
|
|
543
|
+
innerType: T$1;
|
|
544
|
+
/** The default value. May be a getter. */
|
|
545
|
+
defaultValue: NoUndefined<output<T$1>>;
|
|
546
|
+
}
|
|
547
|
+
interface $ZodDefaultInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, input<T$1> | undefined> {
|
|
548
|
+
def: $ZodDefaultDef<T$1>;
|
|
549
|
+
optin: "optional";
|
|
550
|
+
optout?: "optional" | undefined;
|
|
551
|
+
isst: never;
|
|
552
|
+
values: T$1["_zod"]["values"];
|
|
553
|
+
}
|
|
554
|
+
interface $ZodDefault<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
555
|
+
_zod: $ZodDefaultInternals<T$1>;
|
|
556
|
+
}
|
|
557
|
+
declare const $ZodDefault: $constructor<$ZodDefault>;
|
|
558
|
+
interface $ZodPrefaultDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
559
|
+
type: "prefault";
|
|
560
|
+
innerType: T$1;
|
|
561
|
+
/** The default value. May be a getter. */
|
|
562
|
+
defaultValue: input<T$1>;
|
|
563
|
+
}
|
|
564
|
+
interface $ZodPrefaultInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, input<T$1> | undefined> {
|
|
565
|
+
def: $ZodPrefaultDef<T$1>;
|
|
566
|
+
optin: "optional";
|
|
567
|
+
optout?: "optional" | undefined;
|
|
568
|
+
isst: never;
|
|
569
|
+
values: T$1["_zod"]["values"];
|
|
570
|
+
}
|
|
571
|
+
interface $ZodPrefault<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
572
|
+
_zod: $ZodPrefaultInternals<T$1>;
|
|
573
|
+
}
|
|
574
|
+
declare const $ZodPrefault: $constructor<$ZodPrefault>;
|
|
575
|
+
interface $ZodNonOptionalDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
576
|
+
type: "nonoptional";
|
|
577
|
+
innerType: T$1;
|
|
578
|
+
}
|
|
579
|
+
interface $ZodNonOptionalInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, NoUndefined<input<T$1>>> {
|
|
580
|
+
def: $ZodNonOptionalDef<T$1>;
|
|
581
|
+
isst: $ZodIssueInvalidType;
|
|
582
|
+
values: T$1["_zod"]["values"];
|
|
583
|
+
optin: "optional" | undefined;
|
|
584
|
+
optout: "optional" | undefined;
|
|
585
|
+
}
|
|
586
|
+
interface $ZodNonOptional<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
587
|
+
_zod: $ZodNonOptionalInternals<T$1>;
|
|
588
|
+
}
|
|
589
|
+
declare const $ZodNonOptional: $constructor<$ZodNonOptional>;
|
|
590
|
+
interface $ZodCatchCtx extends ParsePayload {
|
|
591
|
+
/** @deprecated Use `ctx.issues` */
|
|
592
|
+
error: {
|
|
593
|
+
issues: $ZodIssue[];
|
|
594
|
+
};
|
|
595
|
+
/** @deprecated Use `ctx.value` */
|
|
596
|
+
input: unknown;
|
|
597
|
+
}
|
|
598
|
+
interface $ZodCatchDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
599
|
+
type: "catch";
|
|
600
|
+
innerType: T$1;
|
|
601
|
+
catchValue: (ctx: $ZodCatchCtx) => unknown;
|
|
602
|
+
}
|
|
603
|
+
interface $ZodCatchInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1>, input<T$1>> {
|
|
604
|
+
def: $ZodCatchDef<T$1>;
|
|
605
|
+
optin: T$1["_zod"]["optin"];
|
|
606
|
+
optout: T$1["_zod"]["optout"];
|
|
607
|
+
isst: never;
|
|
608
|
+
values: T$1["_zod"]["values"];
|
|
609
|
+
}
|
|
610
|
+
interface $ZodCatch<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
611
|
+
_zod: $ZodCatchInternals<T$1>;
|
|
612
|
+
}
|
|
613
|
+
declare const $ZodCatch: $constructor<$ZodCatch>;
|
|
614
|
+
interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
615
|
+
type: "pipe";
|
|
616
|
+
in: A;
|
|
617
|
+
out: B;
|
|
618
|
+
/** Only defined inside $ZodCodec instances. */
|
|
619
|
+
transform?: (value: output<A>, payload: ParsePayload<output<A>>) => MaybeAsync<input<B>>;
|
|
620
|
+
/** Only defined inside $ZodCodec instances. */
|
|
621
|
+
reverseTransform?: (value: input<B>, payload: ParsePayload<input<B>>) => MaybeAsync<output<A>>;
|
|
622
|
+
}
|
|
623
|
+
interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<B>, input<A>> {
|
|
624
|
+
def: $ZodPipeDef<A, B>;
|
|
625
|
+
isst: never;
|
|
626
|
+
values: A["_zod"]["values"];
|
|
627
|
+
optin: A["_zod"]["optin"];
|
|
628
|
+
optout: B["_zod"]["optout"];
|
|
629
|
+
propValues: A["_zod"]["propValues"];
|
|
630
|
+
}
|
|
631
|
+
interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
632
|
+
_zod: $ZodPipeInternals<A, B>;
|
|
633
|
+
}
|
|
634
|
+
declare const $ZodPipe: $constructor<$ZodPipe>;
|
|
635
|
+
interface $ZodReadonlyDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
636
|
+
type: "readonly";
|
|
637
|
+
innerType: T$1;
|
|
638
|
+
}
|
|
639
|
+
interface $ZodReadonlyInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output<T$1>>, MakeReadonly<input<T$1>>> {
|
|
640
|
+
def: $ZodReadonlyDef<T$1>;
|
|
641
|
+
optin: T$1["_zod"]["optin"];
|
|
642
|
+
optout: T$1["_zod"]["optout"];
|
|
643
|
+
isst: never;
|
|
644
|
+
propValues: T$1["_zod"]["propValues"];
|
|
645
|
+
values: T$1["_zod"]["values"];
|
|
646
|
+
}
|
|
647
|
+
interface $ZodReadonly<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
648
|
+
_zod: $ZodReadonlyInternals<T$1>;
|
|
649
|
+
}
|
|
650
|
+
declare const $ZodReadonly: $constructor<$ZodReadonly>;
|
|
651
|
+
interface $ZodCustomDef<O = unknown> extends $ZodTypeDef, $ZodCheckDef {
|
|
652
|
+
type: "custom";
|
|
653
|
+
check: "custom";
|
|
654
|
+
path?: PropertyKey[] | undefined;
|
|
655
|
+
error?: $ZodErrorMap | undefined;
|
|
656
|
+
params?: Record<string, any> | undefined;
|
|
657
|
+
fn: (arg: O) => unknown;
|
|
658
|
+
}
|
|
659
|
+
interface $ZodCustomInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I>, $ZodCheckInternals<O> {
|
|
660
|
+
def: $ZodCustomDef;
|
|
661
|
+
issc: $ZodIssue;
|
|
662
|
+
isst: never;
|
|
663
|
+
bag: LoosePartial<{
|
|
664
|
+
Class: typeof Class;
|
|
665
|
+
}>;
|
|
666
|
+
}
|
|
667
|
+
interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
|
|
668
|
+
_zod: $ZodCustomInternals<O, I>;
|
|
669
|
+
}
|
|
670
|
+
declare const $ZodCustom: $constructor<$ZodCustom>;
|
|
94
671
|
//#endregion
|
|
95
|
-
export {
|
|
672
|
+
export { $ZodArray, $ZodArrayInternals, $ZodBase64, $ZodBase64URL, $ZodBooleanInternals, $ZodCIDRv4, $ZodCIDRv6, $ZodCUID, $ZodCUID2, $ZodCatch, $ZodCatchCtx, $ZodCatchInternals, $ZodCustom, $ZodDefault, $ZodDefaultInternals, $ZodE164, $ZodEmail, $ZodEmailInternals, $ZodEmoji, $ZodEnum, $ZodEnumInternals, $ZodGUID, $ZodIPv4, $ZodIPv6, $ZodISODate, $ZodISODateTime, $ZodISODuration, $ZodISOTime, $ZodIntersection, $ZodIntersectionInternals, $ZodJWT, $ZodKSUID, $ZodLiteral, $ZodLiteralInternals, $ZodLooseShape, $ZodNanoID, $ZodNonOptional, $ZodNonOptionalInternals, $ZodNullInternals, $ZodNullable, $ZodNullableInternals, $ZodNumberInternals, $ZodObject, $ZodObjectConfig, $ZodObjectInternals, $ZodOptional, $ZodOptionalInternals, $ZodPipe, $ZodPipeInternals, $ZodPrefault, $ZodPrefaultInternals, $ZodReadonly, $ZodReadonlyInternals, $ZodRecord, $ZodRecordInternals, $ZodRecordKey, $ZodShape, $ZodStringFormat, $ZodStringFormatInternals, $ZodStringInternals, $ZodTransform, $ZodTransformInternals, $ZodType, $ZodTypeInternals, $ZodULID, $ZodULIDInternals, $ZodURL, $ZodURLInternals, $ZodUUID, $ZodUnion, $ZodUnionInternals, $ZodUnknownInternals, $ZodXID, $catchall, $loose, $strict, $strip, CheckFn, ParseContext, ParsePayload, SomeType };
|
|
96
673
|
//# sourceMappingURL=schemas.d.ts.map
|