surreal-zod 0.0.0-alpha.15 → 0.0.0-alpha.17
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/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/lib/surql.d.ts +2 -2
- package/lib/surql.js +2 -2
- package/lib/zod/core.d.ts +1 -1
- package/lib/zod/external.d.ts +1 -1
- package/lib/zod/external.js +1 -1
- package/lib/zod/index.d.ts +3 -3
- package/lib/zod/index.js +3 -3
- package/lib/zod/parse.d.ts +2 -2
- package/lib/zod/schema.d.ts +5 -5
- package/lib/zod/schema.js +4 -4
- package/lib/zod/utils.js +1 -0
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/surql.ts +2 -2
- package/src/zod/core.ts +1 -1
- package/src/zod/external.ts +1 -1
- package/src/zod/index.ts +3 -3
- package/src/zod/json-schema.ts +0 -1
- package/src/zod/parse.ts +2 -2
- package/src/zod/schema.ts +9 -8
- package/src/zod/original.ts +0 -369
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
package/lib/surql.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BoundQuery, Table } from "surrealdb";
|
|
2
2
|
import * as core from "zod/v4/core";
|
|
3
|
-
import * as _schema_ from "./zod/schema";
|
|
4
|
-
import * as _core_ from "./zod/core";
|
|
3
|
+
import * as _schema_ from "./zod/schema.js";
|
|
4
|
+
import * as _core_ from "./zod/core.js";
|
|
5
5
|
export declare function tableToSurql(table: _schema_.ZodSurrealTable, statement: "define", defineOptions?: DefineTableOptions): BoundQuery<[undefined]>;
|
|
6
6
|
export declare function tableToSurql(table: _schema_.ZodSurrealTable, statement: "remove", removeOptions?: RemoveTableOptions): BoundQuery<[undefined]>;
|
|
7
7
|
export declare function tableToSurql(table: _schema_.ZodSurrealTable, statement: "info"): BoundQuery<[TableInfo]>;
|
package/lib/surql.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BoundQuery, escapeIdent, escapeIdPart, surql, Table, toSurqlString as baseToSurqlString, } from "surrealdb";
|
|
2
2
|
import * as core from "zod/v4/core";
|
|
3
|
-
import * as _schema_ from "./zod/schema";
|
|
4
|
-
import * as _core_ from "./zod/core";
|
|
3
|
+
import * as _schema_ from "./zod/schema.js";
|
|
4
|
+
import * as _core_ from "./zod/core.js";
|
|
5
5
|
import dedent from "dedent";
|
|
6
6
|
const OPEN_ISSUE_FOR_SUPPORT = " If you need this, please open an issue on the repository so we can look into your use case and possible implementation. https://github.com/msanchezdev/surreal-zod/issues";
|
|
7
7
|
export function tableToSurql(table, statement, options) {
|
package/lib/zod/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as core from "zod/v4/core";
|
|
2
|
-
import type { ZodSurrealType } from "./schema";
|
|
2
|
+
import type { ZodSurrealType } from "./schema.js";
|
|
3
3
|
export type Params<T extends $ZodSurrealType | core.$ZodCheck, IssueTypes extends core.$ZodIssueBase, OmitKeys extends keyof T["_zod"]["def"] = never> = core.util.Flatten<Partial<core.util.EmptyToNever<Omit<T["_zod"]["def"], OmitKeys> & ([IssueTypes] extends [never] ? {} : {
|
|
4
4
|
error?: string | core.$ZodErrorMap<IssueTypes> | undefined;
|
|
5
5
|
/** @deprecated This parameter is deprecated. Use `error` instead. */
|
package/lib/zod/external.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { $input, $output, type infer, type input, type output, } from "zod/v4/core";
|
|
2
|
-
export * from "./core";
|
|
2
|
+
export * from "./core.js";
|
package/lib/zod/external.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { $input, $output, } from "zod/v4/core";
|
|
2
|
-
export * from "./core";
|
|
2
|
+
export * from "./core.js";
|
package/lib/zod/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./external";
|
|
2
|
-
export * from "./parse";
|
|
3
|
-
export * from "./schema";
|
|
1
|
+
export * from "./external.js";
|
|
2
|
+
export * from "./parse.js";
|
|
3
|
+
export * from "./schema.js";
|
package/lib/zod/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./external";
|
|
2
|
-
export * from "./parse";
|
|
3
|
-
export * from "./schema";
|
|
1
|
+
export * from "./external.js";
|
|
2
|
+
export * from "./parse.js";
|
|
3
|
+
export * from "./schema.js";
|
package/lib/zod/parse.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Surreal, SurrealTransaction } from "surrealdb";
|
|
2
2
|
import * as classic from "zod/v4";
|
|
3
3
|
import * as core from "zod/v4/core";
|
|
4
|
-
import type * as _core_ from "./core";
|
|
5
|
-
import type { ZodSurrealType } from "./schema";
|
|
4
|
+
import type * as _core_ from "./core.js";
|
|
5
|
+
import type { ZodSurrealType } from "./schema.js";
|
|
6
6
|
export interface ParseDbContext<T extends core.$ZodIssueBase = core.$ZodIssue> extends core.ParseContext<T> {
|
|
7
7
|
db?: Surreal | SurrealTransaction;
|
|
8
8
|
}
|
package/lib/zod/schema.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BoundQuery, DateTime, Duration, RecordId, StringRecordId, Uuid, Table, type RecordIdValue } from "surrealdb";
|
|
2
2
|
import * as core from "zod/v4/core";
|
|
3
3
|
import * as classic from "zod/v4";
|
|
4
|
-
import { type DefineTableOptions, type RemoveTableOptions, type TableInfo, type TableStructure } from "../surql";
|
|
5
|
-
import * as _core_ from "./core";
|
|
6
|
-
import { type ParseDbContext, type ParsingEncodingDecodingMethodNames, type ParsingEncodingDecodingMethods } from "./parse";
|
|
7
|
-
import type { UnionToTuple } from "./utils";
|
|
4
|
+
import { type DefineTableOptions, type RemoveTableOptions, type TableInfo, type TableStructure } from "../surql.js";
|
|
5
|
+
import * as _core_ from "./core.js";
|
|
6
|
+
import { type ParseDbContext, type ParsingEncodingDecodingMethodNames, type ParsingEncodingDecodingMethods } from "./parse.js";
|
|
7
|
+
import type { UnionToTuple } from "./utils.js";
|
|
8
8
|
export interface ZodSurrealTypeDef extends _core_.$ZodSurrealTypeDef {
|
|
9
9
|
surreal: _core_.$ZodSurrealTypeDefInternals;
|
|
10
10
|
}
|
|
@@ -120,7 +120,7 @@ export interface ZodSurrealFieldInternals<out O = unknown, out I = unknown, out
|
|
|
120
120
|
def: ZodSurrealFieldDef<O, I>;
|
|
121
121
|
}
|
|
122
122
|
type UnwrapField<T> = T extends ZodSurrealField<infer I, any, any, any, any, any> ? UnwrapField<I> : T;
|
|
123
|
-
export interface ZodSurrealField<T extends _core_.$ZodSurrealType = _core_.$ZodSurrealType, O = core.output<T>, I = core.input<T>, DBO = _core_.dboutput<T>, DBI = _core_.dbinput<T>, Options extends string = ""> extends _core_.$ZodSurrealType<O, I, DBO, DBI, "
|
|
123
|
+
export interface ZodSurrealField<T extends _core_.$ZodSurrealType = _core_.$ZodSurrealType, O = core.output<T>, I = core.input<T>, DBO = _core_.dboutput<T>, DBI = _core_.dbinput<T>, Options extends string = ""> extends _core_.$ZodSurrealType<O, I, DBO, DBI, "$default" | "$prefault" | "$defaultAlways" | "$prefaultAlways" extends Options ? Omit<ZodSurrealFieldInternals<O, I, DBO, DBI>, "optin" | "optout"> & {
|
|
124
124
|
optin: "optional";
|
|
125
125
|
optout: "optional";
|
|
126
126
|
dboptin: "optional";
|
package/lib/zod/schema.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BoundQuery, DateTime, Duration, escapeIdent, RecordId, StringRecordId, surql, Uuid, Table, } from "surrealdb";
|
|
2
2
|
import * as core from "zod/v4/core";
|
|
3
3
|
import * as classic from "zod/v4";
|
|
4
|
-
import { inferSurrealType, inlineQueryParameters, tableToSurql, } from "../surql";
|
|
5
|
-
import * as _core_ from "./core";
|
|
6
|
-
import { assignParsingMethods, } from "./parse";
|
|
7
|
-
import { allProcessors } from "./json-schema";
|
|
4
|
+
import { inferSurrealType, inlineQueryParameters, tableToSurql, } from "../surql.js";
|
|
5
|
+
import * as _core_ from "./core.js";
|
|
6
|
+
import { assignParsingMethods, } from "./parse.js";
|
|
7
|
+
import { allProcessors } from "./json-schema.js";
|
|
8
8
|
export const ZodSurrealType = core.$constructor("ZodSurrealType", (inst, def) => {
|
|
9
9
|
// @ts-expect-error
|
|
10
10
|
core.$ZodType.init(inst, def);
|
package/lib/zod/utils.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/surql.ts
CHANGED
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
toSurqlString as baseToSurqlString,
|
|
8
8
|
} from "surrealdb";
|
|
9
9
|
import * as core from "zod/v4/core";
|
|
10
|
-
import * as _schema_ from "./zod/schema";
|
|
11
|
-
import * as _core_ from "./zod/core";
|
|
10
|
+
import * as _schema_ from "./zod/schema.js";
|
|
11
|
+
import * as _core_ from "./zod/core.js";
|
|
12
12
|
import dedent from "dedent";
|
|
13
13
|
|
|
14
14
|
const OPEN_ISSUE_FOR_SUPPORT =
|
package/src/zod/core.ts
CHANGED
package/src/zod/external.ts
CHANGED
package/src/zod/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./external";
|
|
2
|
-
export * from "./parse";
|
|
3
|
-
export * from "./schema";
|
|
1
|
+
export * from "./external.js";
|
|
2
|
+
export * from "./parse.js";
|
|
3
|
+
export * from "./schema.js";
|
package/src/zod/json-schema.ts
CHANGED
package/src/zod/parse.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Surreal, SurrealTransaction } from "surrealdb";
|
|
2
2
|
import * as classic from "zod/v4";
|
|
3
3
|
import * as core from "zod/v4/core";
|
|
4
|
-
import type * as _core_ from "./core";
|
|
5
|
-
import type { ZodSurrealType } from "./schema";
|
|
4
|
+
import type * as _core_ from "./core.js";
|
|
5
|
+
import type { ZodSurrealType } from "./schema.js";
|
|
6
6
|
|
|
7
7
|
export interface ParseDbContext<T extends core.$ZodIssueBase = core.$ZodIssue>
|
|
8
8
|
extends core.ParseContext<T> {
|
package/src/zod/schema.ts
CHANGED
|
@@ -20,17 +20,17 @@ import {
|
|
|
20
20
|
type RemoveTableOptions,
|
|
21
21
|
type TableInfo,
|
|
22
22
|
type TableStructure,
|
|
23
|
-
} from "../surql";
|
|
24
|
-
import * as _core_ from "./core";
|
|
23
|
+
} from "../surql.js";
|
|
24
|
+
import * as _core_ from "./core.js";
|
|
25
25
|
import {
|
|
26
26
|
assignParsingMethods,
|
|
27
27
|
type ParseDbContext,
|
|
28
28
|
type ParseDbContextInternal,
|
|
29
29
|
type ParsingEncodingDecodingMethodNames,
|
|
30
30
|
type ParsingEncodingDecodingMethods,
|
|
31
|
-
} from "./parse";
|
|
32
|
-
import { allProcessors } from "./json-schema";
|
|
33
|
-
import type { UnionToTuple } from "./utils";
|
|
31
|
+
} from "./parse.js";
|
|
32
|
+
import { allProcessors } from "./json-schema.js";
|
|
33
|
+
import type { UnionToTuple } from "./utils.js";
|
|
34
34
|
|
|
35
35
|
//////////////////////////////////////////////
|
|
36
36
|
//////////////////////////////////////////////
|
|
@@ -355,12 +355,11 @@ export interface ZodSurrealField<
|
|
|
355
355
|
I,
|
|
356
356
|
DBO,
|
|
357
357
|
DBI,
|
|
358
|
-
| ""
|
|
359
358
|
| "$default"
|
|
360
359
|
| "$prefault"
|
|
361
360
|
| "$defaultAlways"
|
|
362
361
|
| "$prefaultAlways" extends Options
|
|
363
|
-
? Omit<ZodSurrealFieldInternals<O, I, DBO, DBI>, "optin" | "
|
|
362
|
+
? Omit<ZodSurrealFieldInternals<O, I, DBO, DBI>, "optin" | "optout"> & {
|
|
364
363
|
optin: "optional";
|
|
365
364
|
optout: "optional";
|
|
366
365
|
dboptin: "optional";
|
|
@@ -372,7 +371,9 @@ export interface ZodSurrealField<
|
|
|
372
371
|
dboptout?: "optional" | undefined;
|
|
373
372
|
})
|
|
374
373
|
: ZodSurrealFieldInternals<O, I, DBO, DBI> &
|
|
375
|
-
(T["_zod"] extends {
|
|
374
|
+
(T["_zod"] extends {
|
|
375
|
+
optin?: any;
|
|
376
|
+
}
|
|
376
377
|
? {
|
|
377
378
|
dboptin?: T["_zod"]["optin"];
|
|
378
379
|
}
|
package/src/zod/original.ts
DELETED
|
@@ -1,369 +0,0 @@
|
|
|
1
|
-
/** biome-ignore-all assist/source/organizeImports: re-exporting */
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
// string
|
|
5
|
-
// string,
|
|
6
|
-
// _ZodString,
|
|
7
|
-
// ZodString,
|
|
8
|
-
type ZodCoercedString,
|
|
9
|
-
// iso
|
|
10
|
-
iso,
|
|
11
|
-
ZodISODate,
|
|
12
|
-
ZodISODateTime,
|
|
13
|
-
ZodISODuration,
|
|
14
|
-
ZodISOTime,
|
|
15
|
-
// email
|
|
16
|
-
email,
|
|
17
|
-
ZodEmail,
|
|
18
|
-
// // guid (patched)
|
|
19
|
-
guid as originalGuid,
|
|
20
|
-
ZodGUID as OriginalZodGUID,
|
|
21
|
-
// // uuid (patched)
|
|
22
|
-
uuid as originalUuid,
|
|
23
|
-
ZodUUID as OriginalZodUUID,
|
|
24
|
-
// uuidv4 (patched)
|
|
25
|
-
uuidv4 as originalUuidv4,
|
|
26
|
-
// // uuidv6 (patched)
|
|
27
|
-
uuidv6 as originalUuidv6,
|
|
28
|
-
// // uuidv7 (patched)
|
|
29
|
-
uuidv7 as originalUuidv7,
|
|
30
|
-
// url
|
|
31
|
-
url,
|
|
32
|
-
ZodURL,
|
|
33
|
-
// httpUrl
|
|
34
|
-
httpUrl,
|
|
35
|
-
// emoji
|
|
36
|
-
emoji,
|
|
37
|
-
ZodEmoji,
|
|
38
|
-
// nanoid
|
|
39
|
-
nanoid,
|
|
40
|
-
ZodNanoID,
|
|
41
|
-
// cuid
|
|
42
|
-
cuid,
|
|
43
|
-
ZodCUID,
|
|
44
|
-
// cuid2
|
|
45
|
-
cuid2,
|
|
46
|
-
ZodCUID2,
|
|
47
|
-
// ulid
|
|
48
|
-
ulid,
|
|
49
|
-
ZodULID,
|
|
50
|
-
// xid
|
|
51
|
-
xid,
|
|
52
|
-
ZodXID,
|
|
53
|
-
// ksuid
|
|
54
|
-
ksuid,
|
|
55
|
-
ZodKSUID,
|
|
56
|
-
// ipv4
|
|
57
|
-
ipv4,
|
|
58
|
-
ZodIPv4,
|
|
59
|
-
// mac
|
|
60
|
-
mac,
|
|
61
|
-
ZodMAC,
|
|
62
|
-
// ipv6
|
|
63
|
-
ipv6,
|
|
64
|
-
ZodIPv6,
|
|
65
|
-
// cidrv4
|
|
66
|
-
cidrv4,
|
|
67
|
-
ZodCIDRv4,
|
|
68
|
-
// cidrv6
|
|
69
|
-
cidrv6,
|
|
70
|
-
ZodCIDRv6,
|
|
71
|
-
// base64
|
|
72
|
-
base64,
|
|
73
|
-
ZodBase64,
|
|
74
|
-
// base64url
|
|
75
|
-
base64url,
|
|
76
|
-
ZodBase64URL,
|
|
77
|
-
// e164
|
|
78
|
-
e164,
|
|
79
|
-
ZodE164,
|
|
80
|
-
// jwt
|
|
81
|
-
jwt,
|
|
82
|
-
ZodJWT,
|
|
83
|
-
// stringFormat
|
|
84
|
-
stringFormat,
|
|
85
|
-
ZodStringFormat,
|
|
86
|
-
ZodCustomStringFormat,
|
|
87
|
-
// hostname
|
|
88
|
-
hostname,
|
|
89
|
-
// hex
|
|
90
|
-
hex,
|
|
91
|
-
// hash
|
|
92
|
-
hash,
|
|
93
|
-
// number
|
|
94
|
-
number,
|
|
95
|
-
ZodNumber,
|
|
96
|
-
ZodNumberFormat,
|
|
97
|
-
type _ZodNumber,
|
|
98
|
-
type ZodCoercedNumber,
|
|
99
|
-
// int
|
|
100
|
-
int,
|
|
101
|
-
type ZodInt,
|
|
102
|
-
// float32
|
|
103
|
-
float32,
|
|
104
|
-
type ZodFloat32,
|
|
105
|
-
// float64
|
|
106
|
-
float64,
|
|
107
|
-
type ZodFloat64,
|
|
108
|
-
// int32
|
|
109
|
-
int32,
|
|
110
|
-
type ZodInt32,
|
|
111
|
-
// uint32
|
|
112
|
-
uint32,
|
|
113
|
-
type ZodUInt32,
|
|
114
|
-
// boolean
|
|
115
|
-
boolean,
|
|
116
|
-
type _ZodBoolean,
|
|
117
|
-
ZodBoolean,
|
|
118
|
-
type ZodCoercedBoolean,
|
|
119
|
-
// bigint
|
|
120
|
-
bigint,
|
|
121
|
-
type _ZodBigInt,
|
|
122
|
-
ZodBigInt,
|
|
123
|
-
ZodBigIntFormat,
|
|
124
|
-
type ZodCoercedBigInt,
|
|
125
|
-
// int64
|
|
126
|
-
int64,
|
|
127
|
-
// uint64
|
|
128
|
-
uint64,
|
|
129
|
-
// symbol
|
|
130
|
-
symbol,
|
|
131
|
-
ZodSymbol,
|
|
132
|
-
// undefined
|
|
133
|
-
undefined,
|
|
134
|
-
ZodUndefined,
|
|
135
|
-
// any
|
|
136
|
-
any,
|
|
137
|
-
ZodAny,
|
|
138
|
-
type ZodTypeAny,
|
|
139
|
-
// unknown
|
|
140
|
-
unknown,
|
|
141
|
-
ZodUnknown,
|
|
142
|
-
// never
|
|
143
|
-
never,
|
|
144
|
-
ZodNever,
|
|
145
|
-
// void
|
|
146
|
-
void,
|
|
147
|
-
ZodVoid,
|
|
148
|
-
// null
|
|
149
|
-
null,
|
|
150
|
-
ZodNull,
|
|
151
|
-
// date (patched)
|
|
152
|
-
date as originalDate,
|
|
153
|
-
type _ZodDate as _OriginalZodDate,
|
|
154
|
-
ZodDate as OriginalZodDate,
|
|
155
|
-
type ZodCoercedDate,
|
|
156
|
-
// array
|
|
157
|
-
array,
|
|
158
|
-
ZodArray,
|
|
159
|
-
// keyof
|
|
160
|
-
keyof,
|
|
161
|
-
// object
|
|
162
|
-
object,
|
|
163
|
-
ZodObject,
|
|
164
|
-
type ZodRawShape,
|
|
165
|
-
// strictObject
|
|
166
|
-
strictObject,
|
|
167
|
-
// looseObject
|
|
168
|
-
looseObject,
|
|
169
|
-
// union
|
|
170
|
-
union,
|
|
171
|
-
ZodUnion,
|
|
172
|
-
// discriminatedUnion
|
|
173
|
-
discriminatedUnion,
|
|
174
|
-
ZodDiscriminatedUnion,
|
|
175
|
-
// intersection
|
|
176
|
-
intersection,
|
|
177
|
-
ZodIntersection,
|
|
178
|
-
// tuple
|
|
179
|
-
// tuple,
|
|
180
|
-
// ZodTuple,
|
|
181
|
-
// record
|
|
182
|
-
record,
|
|
183
|
-
ZodRecord,
|
|
184
|
-
// partialRecord
|
|
185
|
-
partialRecord,
|
|
186
|
-
// map
|
|
187
|
-
map,
|
|
188
|
-
ZodMap,
|
|
189
|
-
// set
|
|
190
|
-
set,
|
|
191
|
-
ZodSet,
|
|
192
|
-
// enum
|
|
193
|
-
enum,
|
|
194
|
-
ZodEnum,
|
|
195
|
-
// nativeEnum
|
|
196
|
-
nativeEnum,
|
|
197
|
-
// literal
|
|
198
|
-
literal,
|
|
199
|
-
ZodLiteral,
|
|
200
|
-
// file
|
|
201
|
-
file,
|
|
202
|
-
ZodFile,
|
|
203
|
-
// transform
|
|
204
|
-
transform,
|
|
205
|
-
ZodTransform,
|
|
206
|
-
// optional
|
|
207
|
-
optional,
|
|
208
|
-
ZodOptional,
|
|
209
|
-
// nullable
|
|
210
|
-
nullable,
|
|
211
|
-
ZodNullable,
|
|
212
|
-
// nullish
|
|
213
|
-
nullish,
|
|
214
|
-
// default
|
|
215
|
-
_default,
|
|
216
|
-
ZodDefault,
|
|
217
|
-
// prefault
|
|
218
|
-
prefault,
|
|
219
|
-
ZodPrefault,
|
|
220
|
-
// nonoptional
|
|
221
|
-
nonoptional,
|
|
222
|
-
ZodNonOptional,
|
|
223
|
-
// success
|
|
224
|
-
success,
|
|
225
|
-
ZodSuccess,
|
|
226
|
-
// catch
|
|
227
|
-
catch,
|
|
228
|
-
ZodCatch,
|
|
229
|
-
// nan
|
|
230
|
-
nan,
|
|
231
|
-
ZodNaN,
|
|
232
|
-
// pipe
|
|
233
|
-
pipe,
|
|
234
|
-
ZodPipe,
|
|
235
|
-
// codec
|
|
236
|
-
codec,
|
|
237
|
-
ZodCodec,
|
|
238
|
-
// readonly
|
|
239
|
-
readonly,
|
|
240
|
-
ZodReadonly,
|
|
241
|
-
// templateLiteral
|
|
242
|
-
templateLiteral,
|
|
243
|
-
ZodTemplateLiteral,
|
|
244
|
-
// lazy
|
|
245
|
-
lazy,
|
|
246
|
-
ZodLazy,
|
|
247
|
-
// promise
|
|
248
|
-
promise,
|
|
249
|
-
ZodPromise,
|
|
250
|
-
// function
|
|
251
|
-
function,
|
|
252
|
-
_function,
|
|
253
|
-
ZodFunction,
|
|
254
|
-
// custom
|
|
255
|
-
custom,
|
|
256
|
-
ZodCustom,
|
|
257
|
-
//
|
|
258
|
-
// Others
|
|
259
|
-
//
|
|
260
|
-
clone,
|
|
261
|
-
coerce,
|
|
262
|
-
check,
|
|
263
|
-
// Error
|
|
264
|
-
ZodError,
|
|
265
|
-
ZodRealError,
|
|
266
|
-
type ZodErrorMap,
|
|
267
|
-
type ZodFlattenedError,
|
|
268
|
-
type ZodFormattedError,
|
|
269
|
-
formatError,
|
|
270
|
-
getErrorMap,
|
|
271
|
-
setErrorMap,
|
|
272
|
-
// Safe
|
|
273
|
-
decode,
|
|
274
|
-
decodeAsync,
|
|
275
|
-
safeDecode,
|
|
276
|
-
safeDecodeAsync,
|
|
277
|
-
encode,
|
|
278
|
-
encodeAsync,
|
|
279
|
-
safeEncode,
|
|
280
|
-
safeEncodeAsync,
|
|
281
|
-
parse,
|
|
282
|
-
parseAsync,
|
|
283
|
-
safeParse,
|
|
284
|
-
safeParseAsync,
|
|
285
|
-
type ZodSafeParseError,
|
|
286
|
-
type ZodSafeParseResult,
|
|
287
|
-
type ZodSafeParseSuccess,
|
|
288
|
-
type SafeExtendShape,
|
|
289
|
-
// output
|
|
290
|
-
type output,
|
|
291
|
-
$output,
|
|
292
|
-
// input
|
|
293
|
-
type input,
|
|
294
|
-
$input,
|
|
295
|
-
// brand
|
|
296
|
-
type BRAND,
|
|
297
|
-
$brand,
|
|
298
|
-
// meta
|
|
299
|
-
type GlobalMeta,
|
|
300
|
-
meta,
|
|
301
|
-
//
|
|
302
|
-
ZodFirstPartyTypeKind,
|
|
303
|
-
type ZodFirstPartySchemaTypes,
|
|
304
|
-
type inferFlattenedErrors,
|
|
305
|
-
type inferFormattedError,
|
|
306
|
-
type Infer,
|
|
307
|
-
type infer,
|
|
308
|
-
NEVER,
|
|
309
|
-
type RefinementCtx,
|
|
310
|
-
ZodType,
|
|
311
|
-
type _ZodType,
|
|
312
|
-
type Schema,
|
|
313
|
-
type ZodSchema,
|
|
314
|
-
TimePrecision,
|
|
315
|
-
type TypeOf,
|
|
316
|
-
type ZodJSONSchema,
|
|
317
|
-
type ZodJSONSchemaInternals,
|
|
318
|
-
config,
|
|
319
|
-
core,
|
|
320
|
-
endsWith,
|
|
321
|
-
startsWith,
|
|
322
|
-
describe,
|
|
323
|
-
flattenError,
|
|
324
|
-
globalRegistry,
|
|
325
|
-
gt,
|
|
326
|
-
gte,
|
|
327
|
-
lt,
|
|
328
|
-
lte,
|
|
329
|
-
includes,
|
|
330
|
-
instanceof,
|
|
331
|
-
json,
|
|
332
|
-
length,
|
|
333
|
-
locales,
|
|
334
|
-
lowercase,
|
|
335
|
-
toLowerCase,
|
|
336
|
-
uppercase,
|
|
337
|
-
toUpperCase,
|
|
338
|
-
minLength,
|
|
339
|
-
maxLength,
|
|
340
|
-
minSize,
|
|
341
|
-
maxSize,
|
|
342
|
-
size,
|
|
343
|
-
multipleOf,
|
|
344
|
-
negative,
|
|
345
|
-
nonnegative,
|
|
346
|
-
positive,
|
|
347
|
-
nonpositive,
|
|
348
|
-
property,
|
|
349
|
-
normalize,
|
|
350
|
-
overwrite,
|
|
351
|
-
preprocess,
|
|
352
|
-
prettifyError,
|
|
353
|
-
refine,
|
|
354
|
-
superRefine,
|
|
355
|
-
regexes,
|
|
356
|
-
mime,
|
|
357
|
-
regex,
|
|
358
|
-
slugify,
|
|
359
|
-
stringbool,
|
|
360
|
-
trim,
|
|
361
|
-
registry,
|
|
362
|
-
toJSONSchema,
|
|
363
|
-
treeifyError,
|
|
364
|
-
util,
|
|
365
|
-
z,
|
|
366
|
-
type IssueData,
|
|
367
|
-
ZodIssueCode,
|
|
368
|
-
type ZodIssue,
|
|
369
|
-
} from "zod/v4";
|