@ray-js/robot-data-stream 0.0.16-beta.2 → 0.0.16-beta.3

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 (123) hide show
  1. package/lib/mqtt/hooks/useStructuredMessage.d.ts +2 -7
  2. package/lib/mqtt/hooks/useStructuredMessage.js +1 -1
  3. package/lib/mqtt/type/index.d.ts +0 -12
  4. package/lib/mqtt/type/index.js +0 -14
  5. package/lib/mqtt/type/protocols/base.d.ts +23 -24
  6. package/lib/mqtt/type/protocols/base.js +1 -38
  7. package/lib/mqtt/type/protocols/carpetCleanProtocol.d.ts +6 -13
  8. package/lib/mqtt/type/protocols/carpetCleanProtocol.js +1 -14
  9. package/lib/mqtt/type/protocols/carpetProtocol.d.ts +52 -96
  10. package/lib/mqtt/type/protocols/carpetProtocol.js +1 -202
  11. package/lib/mqtt/type/protocols/devInfoProtocol.d.ts +5 -11
  12. package/lib/mqtt/type/protocols/devInfoProtocol.js +1 -10
  13. package/lib/mqtt/type/protocols/deviceModelProtocol.d.ts +14 -29
  14. package/lib/mqtt/type/protocols/deviceModelProtocol.js +1 -32
  15. package/lib/mqtt/type/protocols/furnitureModelProtocol.d.ts +15 -25
  16. package/lib/mqtt/type/protocols/furnitureModelProtocol.js +1 -27
  17. package/lib/mqtt/type/protocols/historyMapProtocol.d.ts +19 -36
  18. package/lib/mqtt/type/protocols/historyMapProtocol.js +1 -37
  19. package/lib/mqtt/type/protocols/partDivisionProtocol.d.ts +6 -20
  20. package/lib/mqtt/type/protocols/partDivisionProtocol.js +1 -12
  21. package/lib/mqtt/type/protocols/partMergeProtocol.d.ts +3 -12
  22. package/lib/mqtt/type/protocols/partMergeProtocol.js +1 -12
  23. package/lib/mqtt/type/protocols/passwordProtocol.d.ts +11 -21
  24. package/lib/mqtt/type/protocols/passwordProtocol.js +1 -25
  25. package/lib/mqtt/type/protocols/quietHoursProtocol.d.ts +17 -27
  26. package/lib/mqtt/type/protocols/quietHoursProtocol.js +1 -35
  27. package/lib/mqtt/type/protocols/resetMapProtocol.d.ts +2 -3
  28. package/lib/mqtt/type/protocols/roomPropertyProtocol.d.ts +32 -46
  29. package/lib/mqtt/type/protocols/roomPropertyProtocol.js +1 -134
  30. package/lib/mqtt/type/protocols/scheduleProtocol.d.ts +18 -69
  31. package/lib/mqtt/type/protocols/scheduleProtocol.js +1 -117
  32. package/lib/mqtt/type/protocols/selectRoomCleanProtocol.d.ts +22 -29
  33. package/lib/mqtt/type/protocols/selectRoomCleanProtocol.js +1 -48
  34. package/lib/mqtt/type/protocols/spotCleanProtocol.d.ts +18 -42
  35. package/lib/mqtt/type/protocols/spotCleanProtocol.js +1 -94
  36. package/lib/mqtt/type/protocols/virtualAreaProtocol.d.ts +17 -30
  37. package/lib/mqtt/type/protocols/virtualAreaProtocol.js +1 -36
  38. package/lib/mqtt/type/protocols/virtualWallProtocol.d.ts +11 -25
  39. package/lib/mqtt/type/protocols/virtualWallProtocol.js +1 -25
  40. package/lib/mqtt/type/protocols/voiceProtocol.d.ts +11 -19
  41. package/lib/mqtt/type/protocols/voiceProtocol.js +1 -23
  42. package/lib/mqtt/type/protocols/wifiMapProtocol.d.ts +6 -15
  43. package/lib/mqtt/type/protocols/wifiMapProtocol.js +1 -15
  44. package/lib/mqtt/type/protocols/zoneCleanProtocol.d.ts +37 -50
  45. package/lib/mqtt/type/protocols/zoneCleanProtocol.js +1 -76
  46. package/lib/mqtt/useCarpet.js +21 -35
  47. package/lib/mqtt/useCarpetClean.js +1 -4
  48. package/lib/mqtt/useDeviceModel.js +1 -4
  49. package/lib/mqtt/useFurnitureModel.js +1 -4
  50. package/lib/mqtt/useHistoryMap.js +8 -21
  51. package/lib/mqtt/usePartDivision.js +6 -20
  52. package/lib/mqtt/usePartMerge.js +1 -3
  53. package/lib/mqtt/usePassword.js +2 -9
  54. package/lib/mqtt/useQuiteHours.js +1 -4
  55. package/lib/mqtt/useRoomProperty.js +1 -5
  56. package/lib/mqtt/useSchedule.js +5 -10
  57. package/lib/mqtt/useSelectRoomClean.js +1 -3
  58. package/lib/mqtt/useSpotClean.js +3 -8
  59. package/lib/mqtt/useVirtualArea.js +1 -4
  60. package/lib/mqtt/useVirtualWall.js +1 -4
  61. package/lib/mqtt/useVoice.js +4 -7
  62. package/lib/mqtt/useWifiMap.js +1 -5
  63. package/lib/mqtt/useZoneClean.js +8 -12
  64. package/package.json +1 -1
  65. package/lib/mqtt/type/fun.d.ts +0 -248
  66. package/lib/mqtt/type/fun.js +0 -146
  67. package/lib/myLib/zod/mini/index.d.cts +0 -1
  68. package/lib/myLib/zod/mini/index.d.ts +0 -1
  69. package/lib/myLib/zod/mini/index.js +0 -1
  70. package/lib/myLib/zod/mini/package.json +0 -6
  71. package/lib/myLib/zod/src/mini/index.d.ts +0 -1
  72. package/lib/myLib/zod/src/mini/index.js +0 -1
  73. package/lib/myLib/zod/src/v4/core/api.d.ts +0 -306
  74. package/lib/myLib/zod/src/v4/core/api.js +0 -1256
  75. package/lib/myLib/zod/src/v4/core/checks.d.ts +0 -278
  76. package/lib/myLib/zod/src/v4/core/checks.js +0 -816
  77. package/lib/myLib/zod/src/v4/core/config.d.ts +0 -9
  78. package/lib/myLib/zod/src/v4/core/config.js +0 -5
  79. package/lib/myLib/zod/src/v4/core/core.d.ts +0 -70
  80. package/lib/myLib/zod/src/v4/core/core.js +0 -95
  81. package/lib/myLib/zod/src/v4/core/doc.d.ts +0 -14
  82. package/lib/myLib/zod/src/v4/core/doc.js +0 -42
  83. package/lib/myLib/zod/src/v4/core/errors.d.ts +0 -220
  84. package/lib/myLib/zod/src/v4/core/errors.js +0 -232
  85. package/lib/myLib/zod/src/v4/core/index.d.ts +0 -15
  86. package/lib/myLib/zod/src/v4/core/index.js +0 -15
  87. package/lib/myLib/zod/src/v4/core/json-schema-generator.d.ts +0 -65
  88. package/lib/myLib/zod/src/v4/core/json-schema-generator.js +0 -120
  89. package/lib/myLib/zod/src/v4/core/json-schema-processors.d.ts +0 -49
  90. package/lib/myLib/zod/src/v4/core/json-schema-processors.js +0 -593
  91. package/lib/myLib/zod/src/v4/core/json-schema.d.ts +0 -88
  92. package/lib/myLib/zod/src/v4/core/json-schema.js +0 -1
  93. package/lib/myLib/zod/src/v4/core/parse.d.ts +0 -49
  94. package/lib/myLib/zod/src/v4/core/parse.js +0 -147
  95. package/lib/myLib/zod/src/v4/core/regexes.d.ts +0 -78
  96. package/lib/myLib/zod/src/v4/core/regexes.js +0 -146
  97. package/lib/myLib/zod/src/v4/core/registries.d.ts +0 -35
  98. package/lib/myLib/zod/src/v4/core/registries.js +0 -51
  99. package/lib/myLib/zod/src/v4/core/schemas.d.ts +0 -1136
  100. package/lib/myLib/zod/src/v4/core/schemas.js +0 -2745
  101. package/lib/myLib/zod/src/v4/core/standard-schema.d.ts +0 -126
  102. package/lib/myLib/zod/src/v4/core/standard-schema.js +0 -1
  103. package/lib/myLib/zod/src/v4/core/to-json-schema.d.ts +0 -114
  104. package/lib/myLib/zod/src/v4/core/to-json-schema.js +0 -488
  105. package/lib/myLib/zod/src/v4/core/util.d.ts +0 -199
  106. package/lib/myLib/zod/src/v4/core/util.js +0 -656
  107. package/lib/myLib/zod/src/v4/core/versions.d.ts +0 -5
  108. package/lib/myLib/zod/src/v4/core/versions.js +0 -5
  109. package/lib/myLib/zod/src/v4/core/zsf.d.ts +0 -91
  110. package/lib/myLib/zod/src/v4/core/zsf.js +0 -1
  111. package/lib/myLib/zod/src/v4/mini/checks.d.ts +0 -1
  112. package/lib/myLib/zod/src/v4/mini/checks.js +0 -1
  113. package/lib/myLib/zod/src/v4/mini/coerce.d.ts +0 -7
  114. package/lib/myLib/zod/src/v4/mini/coerce.js +0 -27
  115. package/lib/myLib/zod/src/v4/mini/external.d.ts +0 -11
  116. package/lib/myLib/zod/src/v4/mini/external.js +0 -16
  117. package/lib/myLib/zod/src/v4/mini/index.d.ts +0 -530
  118. package/lib/myLib/zod/src/v4/mini/index.js +0 -30
  119. package/lib/myLib/zod/src/v4/mini/iso.d.ts +0 -22
  120. package/lib/myLib/zod/src/v4/mini/iso.js +0 -46
  121. package/lib/myLib/zod/src/v4/mini/parse.d.ts +0 -1
  122. package/lib/myLib/zod/src/v4/mini/parse.js +0 -1
  123. package/lib/myLib/zod/src/v4/mini/schemas.js +0 -1244
@@ -1,530 +0,0 @@
1
- export { object, string, number, int, int32, int64, array, union, literal, optional, extend, intersection, boolean, strictObject, } from './schemas.js';
2
- export * from './parse.js';
3
- export * from './checks.js';
4
- export * as iso from './iso.js';
5
- export { ZodMiniISODateTime, ZodMiniISODate, ZodMiniISOTime, ZodMiniISODuration } from './iso.js';
6
- export * as coerce from './coerce.js';
7
- export * as core from '../core/index.js';
8
- export type { infer, output, input } from '../core/index.js';
9
- export { globalRegistry, registry, config, $output, $input, $brand, clone, regexes, treeifyError, prettifyError, formatError, flattenError, TimePrecision, util, NEVER, } from '../core/index.js';
10
- export { toJSONSchema } from '../core/json-schema-processors.js';
11
- import * as schemas from './schemas.js';
12
- import * as checks from './checks.js';
13
- import * as coreModule from '../core/index.js';
14
- import * as isoModule from './iso.js';
15
- import * as coerceModule from './coerce.js';
16
- declare const z: {
17
- core: typeof coreModule;
18
- iso: typeof isoModule;
19
- coerce: typeof coerceModule;
20
- lt: typeof checks.lt;
21
- lte: typeof checks.lte;
22
- maximum: typeof checks.lte;
23
- gt: typeof checks.gt;
24
- gte: typeof checks.gte;
25
- minimum: typeof checks.gte;
26
- positive: typeof checks.positive;
27
- negative: typeof checks.negative;
28
- nonpositive: typeof checks.nonpositive;
29
- nonnegative: typeof checks.nonnegative;
30
- multipleOf: typeof checks.multipleOf;
31
- maxSize: typeof checks.maxSize;
32
- minSize: typeof checks.minSize;
33
- size: typeof checks.size;
34
- maxLength: typeof checks.maxLength;
35
- minLength: typeof checks.minLength;
36
- length: typeof checks.length;
37
- regex: typeof checks.regex;
38
- lowercase: typeof checks.lowercase;
39
- uppercase: typeof checks.uppercase;
40
- includes: typeof checks.includes;
41
- startsWith: typeof checks.startsWith;
42
- endsWith: typeof checks.endsWith;
43
- property: typeof checks.property;
44
- mime: typeof checks.mime;
45
- overwrite: typeof checks.overwrite;
46
- normalize: typeof checks.normalize;
47
- trim: typeof checks.trim;
48
- toLowerCase: typeof checks.toLowerCase;
49
- toUpperCase: typeof checks.toUpperCase;
50
- parse: coreModule.$Parse;
51
- safeParse: coreModule.$SafeParse;
52
- parseAsync: coreModule.$ParseAsync;
53
- safeParseAsync: coreModule.$SafeParseAsync;
54
- encode: coreModule.$Encode;
55
- decode: coreModule.$Decode;
56
- encodeAsync: coreModule.$EncodeAsync;
57
- decodeAsync: coreModule.$DecodeAsync;
58
- safeEncode: coreModule.$SafeEncode;
59
- safeDecode: coreModule.$SafeDecode;
60
- safeEncodeAsync: coreModule.$SafeEncodeAsync;
61
- safeDecodeAsync: coreModule.$SafeDecodeAsync;
62
- string(params?: string | {
63
- error?: string | coreModule.$ZodErrorMap<coreModule.$ZodIssueInvalidType<unknown>> | undefined;
64
- message?: string | undefined;
65
- } | undefined): schemas.ZodMiniString<string>;
66
- email(params?: string | {
67
- abort?: boolean | undefined;
68
- pattern?: RegExp | undefined;
69
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
70
- message?: string | undefined;
71
- } | undefined): schemas.ZodMiniEmail;
72
- guid(params?: string | {
73
- abort?: boolean | undefined;
74
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
75
- message?: string | undefined;
76
- } | undefined): schemas.ZodMiniGUID;
77
- uuid(params?: string | {
78
- abort?: boolean | undefined;
79
- version?: "v8" | "v4" | "v1" | "v2" | "v3" | "v5" | "v6" | "v7" | undefined;
80
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
81
- message?: string | undefined;
82
- } | undefined): schemas.ZodMiniUUID;
83
- uuidv4(params?: string | {
84
- abort?: boolean | undefined;
85
- version?: "v8" | "v4" | "v1" | "v2" | "v3" | "v5" | "v6" | "v7" | undefined;
86
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
87
- message?: string | undefined;
88
- } | undefined): schemas.ZodMiniUUID;
89
- uuidv6(params?: string | {
90
- abort?: boolean | undefined;
91
- version?: "v8" | "v4" | "v1" | "v2" | "v3" | "v5" | "v6" | "v7" | undefined;
92
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
93
- message?: string | undefined;
94
- } | undefined): schemas.ZodMiniUUID;
95
- uuidv7(params?: string | {
96
- abort?: boolean | undefined;
97
- version?: "v8" | "v4" | "v1" | "v2" | "v3" | "v5" | "v6" | "v7" | undefined;
98
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
99
- message?: string | undefined;
100
- } | undefined): schemas.ZodMiniUUID;
101
- url(params?: string | {
102
- normalize?: boolean | undefined;
103
- abort?: boolean | undefined;
104
- pattern?: RegExp | undefined;
105
- protocol?: RegExp | undefined;
106
- hostname?: RegExp | undefined;
107
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
108
- message?: string | undefined;
109
- } | undefined): schemas.ZodMiniURL;
110
- httpUrl(params?: string | Omit<{
111
- normalize?: boolean | undefined;
112
- abort?: boolean | undefined;
113
- pattern?: RegExp | undefined;
114
- protocol?: RegExp | undefined;
115
- hostname?: RegExp | undefined;
116
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
117
- message?: string | undefined;
118
- }, "protocol" | "hostname"> | undefined): schemas.ZodMiniURL;
119
- nanoid(params?: string | {
120
- abort?: boolean | undefined;
121
- pattern?: RegExp | undefined;
122
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
123
- message?: string | undefined;
124
- } | undefined): schemas.ZodMiniNanoID;
125
- cuid(params?: string | {
126
- abort?: boolean | undefined;
127
- pattern?: RegExp | undefined;
128
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
129
- message?: string | undefined;
130
- } | undefined): schemas.ZodMiniCUID;
131
- cuid2(params?: string | {
132
- abort?: boolean | undefined;
133
- pattern?: RegExp | undefined;
134
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
135
- message?: string | undefined;
136
- } | undefined): schemas.ZodMiniCUID2;
137
- ulid(params?: string | {
138
- abort?: boolean | undefined;
139
- pattern?: RegExp | undefined;
140
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
141
- message?: string | undefined;
142
- } | undefined): schemas.ZodMiniULID;
143
- xid(params?: string | {
144
- abort?: boolean | undefined;
145
- pattern?: RegExp | undefined;
146
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
147
- message?: string | undefined;
148
- } | undefined): schemas.ZodMiniXID;
149
- ksuid(params?: string | {
150
- abort?: boolean | undefined;
151
- pattern?: RegExp | undefined;
152
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
153
- message?: string | undefined;
154
- } | undefined): schemas.ZodMiniKSUID;
155
- ipv4(params?: string | {
156
- abort?: boolean | undefined;
157
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
158
- message?: string | undefined;
159
- } | undefined): schemas.ZodMiniIPv4;
160
- ipv6(params?: string | {
161
- abort?: boolean | undefined;
162
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
163
- message?: string | undefined;
164
- } | undefined): schemas.ZodMiniIPv6;
165
- cidrv4(params?: string | {
166
- abort?: boolean | undefined;
167
- version?: "v4" | undefined;
168
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
169
- message?: string | undefined;
170
- } | undefined): schemas.ZodMiniCIDRv4;
171
- cidrv6(params?: string | {
172
- abort?: boolean | undefined;
173
- version?: "v6" | undefined;
174
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
175
- message?: string | undefined;
176
- } | undefined): schemas.ZodMiniCIDRv6;
177
- mac(params?: string | {
178
- abort?: boolean | undefined;
179
- delimiter?: string | undefined;
180
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
181
- message?: string | undefined;
182
- } | undefined): schemas.ZodMiniMAC;
183
- base64(params?: string | {
184
- abort?: boolean | undefined;
185
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
186
- message?: string | undefined;
187
- } | undefined): schemas.ZodMiniBase64;
188
- base64url(params?: string | {
189
- abort?: boolean | undefined;
190
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
191
- message?: string | undefined;
192
- } | undefined): schemas.ZodMiniBase64URL;
193
- e164(params?: string | {
194
- abort?: boolean | undefined;
195
- pattern?: RegExp | undefined;
196
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
197
- message?: string | undefined;
198
- } | undefined): schemas.ZodMiniE164;
199
- jwt(params?: string | {
200
- abort?: boolean | undefined;
201
- alg?: coreModule.util.JWTAlgorithm | undefined;
202
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
203
- message?: string | undefined;
204
- } | undefined): schemas.ZodMiniJWT;
205
- stringFormat<Format extends string>(format: Format, fnOrRegex: RegExp | ((arg: string) => unknown), _params?: string | {
206
- abort?: boolean | undefined;
207
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
208
- message?: string | undefined;
209
- }): schemas.ZodMiniCustomStringFormat<Format>;
210
- hostname(_params?: string | {
211
- abort?: boolean | undefined;
212
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
213
- message?: string | undefined;
214
- } | undefined): schemas.ZodMiniCustomStringFormat<"hostname">;
215
- hex(_params?: string | {
216
- abort?: boolean | undefined;
217
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
218
- message?: string | undefined;
219
- } | undefined): schemas.ZodMiniCustomStringFormat<"hex">;
220
- hash<Alg extends coreModule.util.HashAlgorithm, Enc extends coreModule.util.HashEncoding = "hex">(alg: Alg, params?: ({
221
- enc?: Enc | undefined;
222
- } & {
223
- abort?: boolean | undefined;
224
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidStringFormat>> | undefined;
225
- message?: string | undefined;
226
- }) | undefined): schemas.ZodMiniCustomStringFormat<`${Alg}_${Enc}`>;
227
- number(params?: string | {
228
- error?: string | coreModule.$ZodErrorMap<coreModule.$ZodIssueInvalidType<unknown>> | undefined;
229
- message?: string | undefined;
230
- } | undefined): schemas.ZodMiniNumber<number>;
231
- int(params?: string | {
232
- abort?: boolean | undefined;
233
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueTooBig<"number"> | coreModule.$ZodIssueTooSmall<"number">>> | undefined;
234
- message?: string | undefined;
235
- } | undefined): schemas.ZodMiniNumberFormat;
236
- float32(params?: string | {
237
- abort?: boolean | undefined;
238
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueTooBig<"number"> | coreModule.$ZodIssueTooSmall<"number">>> | undefined;
239
- message?: string | undefined;
240
- } | undefined): schemas.ZodMiniNumberFormat;
241
- float64(params?: string | {
242
- abort?: boolean | undefined;
243
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueTooBig<"number"> | coreModule.$ZodIssueTooSmall<"number">>> | undefined;
244
- message?: string | undefined;
245
- } | undefined): schemas.ZodMiniNumberFormat;
246
- int32(params?: string | {
247
- abort?: boolean | undefined;
248
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueTooBig<"number"> | coreModule.$ZodIssueTooSmall<"number">>> | undefined;
249
- message?: string | undefined;
250
- } | undefined): schemas.ZodMiniNumberFormat;
251
- uint32(params?: string | {
252
- abort?: boolean | undefined;
253
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueTooBig<"number"> | coreModule.$ZodIssueTooSmall<"number">>> | undefined;
254
- message?: string | undefined;
255
- } | undefined): schemas.ZodMiniNumberFormat;
256
- boolean(params?: string | {
257
- error?: string | coreModule.$ZodErrorMap<coreModule.$ZodIssueInvalidType<unknown>> | undefined;
258
- message?: string | undefined;
259
- } | undefined): schemas.ZodMiniBoolean<boolean>;
260
- bigint(params?: string | {
261
- coerce?: boolean | undefined;
262
- error?: string | coreModule.$ZodErrorMap<coreModule.$ZodIssueInvalidType<unknown>> | undefined;
263
- message?: string | undefined;
264
- } | undefined): schemas.ZodMiniBigInt<bigint>;
265
- int64(params?: string | {
266
- abort?: boolean | undefined;
267
- when?: ((payload: coreModule.ParsePayload<unknown>) => boolean) | undefined;
268
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueTooBig<"bigint"> | coreModule.$ZodIssueTooSmall<"bigint">>> | undefined;
269
- message?: string | undefined;
270
- } | undefined): schemas.ZodMiniBigIntFormat;
271
- uint64(params?: string | {
272
- abort?: boolean | undefined;
273
- when?: ((payload: coreModule.ParsePayload<unknown>) => boolean) | undefined;
274
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueTooBig<"bigint"> | coreModule.$ZodIssueTooSmall<"bigint">>> | undefined;
275
- message?: string | undefined;
276
- } | undefined): schemas.ZodMiniBigIntFormat;
277
- symbol(params?: string | {
278
- error?: string | coreModule.$ZodErrorMap<coreModule.$ZodIssueInvalidType<unknown>> | undefined;
279
- message?: string | undefined;
280
- } | undefined): schemas.ZodMiniSymbol;
281
- any(): schemas.ZodMiniAny;
282
- unknown(): schemas.ZodMiniUnknown;
283
- never(params?: string | {
284
- error?: string | coreModule.$ZodErrorMap<coreModule.$ZodIssueInvalidType<unknown>> | undefined;
285
- message?: string | undefined;
286
- } | undefined): schemas.ZodMiniNever;
287
- date(params?: string | {
288
- error?: string | coreModule.$ZodErrorMap<coreModule.$ZodIssueInvalidType<unknown>> | undefined;
289
- message?: string | undefined;
290
- } | undefined): schemas.ZodMiniDate<Date>;
291
- array<T extends coreModule.SomeType>(element: T, params?: string | {
292
- error?: string | coreModule.$ZodErrorMap<coreModule.$ZodIssueInvalidType<unknown>> | undefined;
293
- message?: string | undefined;
294
- } | undefined): schemas.ZodMiniArray<T>;
295
- keyof<T_1 extends schemas.ZodMiniObject<Readonly<{
296
- [k: string]: coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>;
297
- }>, coreModule.$strip>>(schema: T_1): schemas.ZodMiniEnum<{ [k_1 in Exclude<keyof T_1["shape"], symbol>]: k_1; } extends infer T_2 ? { [k in keyof T_2]: { [k_1 in Exclude<keyof T_1["shape"], symbol>]: k_1; }[k]; } : never>;
298
- object<T_3 extends coreModule.$ZodLooseShape = Record<never, coreModule.SomeType>>(shape?: T_3 | undefined, params?: string | {
299
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueUnrecognizedKeys>> | undefined;
300
- message?: string | undefined;
301
- } | undefined): schemas.ZodMiniObject<T_3, coreModule.$strip>;
302
- strictObject<T_4 extends coreModule.$ZodLooseShape>(shape: T_4, params?: string | {
303
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueUnrecognizedKeys>> | undefined;
304
- message?: string | undefined;
305
- } | undefined): schemas.ZodMiniObject<T_4, coreModule.$strict>;
306
- looseObject<T_5 extends coreModule.$ZodLooseShape>(shape: T_5, params?: string | {
307
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueUnrecognizedKeys>> | undefined;
308
- message?: string | undefined;
309
- } | undefined): schemas.ZodMiniObject<T_5, coreModule.$loose>;
310
- extend<T_6 extends schemas.ZodMiniObject<Readonly<{
311
- [k: string]: coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>;
312
- }>, coreModule.$strip>, U extends coreModule.$ZodLooseShape>(schema: T_6, shape: U): schemas.ZodMiniObject<(keyof T_6["shape"] & keyof U extends never ? T_6["shape"] & U : (T_6["shape"] extends infer T_8 extends coreModule.util.SomeObject ? { [K in keyof T_8 as K extends keyof U ? never : K]: T_6["shape"][K]; } : never) & { [K_1 in keyof U]: U[K_1]; }) extends infer T_7 ? { [k_2 in keyof T_7]: (keyof T_6["shape"] & keyof U extends never ? T_6["shape"] & U : (T_6["shape"] extends infer T_8 extends coreModule.util.SomeObject ? { [K in keyof T_8 as K extends keyof U ? never : K]: T_6["shape"][K]; } : never) & { [K_1 in keyof U]: U[K_1]; })[k_2]; } : never, T_6["_zod"]["config"]>;
313
- safeExtend<T_9 extends schemas.ZodMiniObject<Readonly<{
314
- [k: string]: coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>;
315
- }>, coreModule.$strip>, U_1 extends coreModule.$ZodLooseShape>(schema: T_9, shape: schemas.SafeExtendShape<T_9["shape"], U_1>): schemas.ZodMiniObject<(keyof T_9["shape"] & keyof U_1 extends never ? T_9["shape"] & U_1 : (T_9["shape"] extends infer T_11 extends coreModule.util.SomeObject ? { [K_2 in keyof T_11 as K_2 extends keyof U_1 ? never : K_2]: T_9["shape"][K_2]; } : never) & { [K_3 in keyof U_1]: U_1[K_3]; }) extends infer T_10 ? { [k_3 in keyof T_10]: (keyof T_9["shape"] & keyof U_1 extends never ? T_9["shape"] & U_1 : (T_9["shape"] extends infer T_11 extends coreModule.util.SomeObject ? { [K_2 in keyof T_11 as K_2 extends keyof U_1 ? never : K_2]: T_9["shape"][K_2]; } : never) & { [K_3 in keyof U_1]: U_1[K_3]; })[k_3]; } : never, T_9["_zod"]["config"]>;
316
- merge<T_12 extends schemas.ZodMiniObject<Readonly<{
317
- [k: string]: coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>;
318
- }>, coreModule.$strip>, U_2 extends schemas.ZodMiniObject<Readonly<{
319
- [k: string]: coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>;
320
- }>, coreModule.$strip>>(a: T_12, b: U_2): schemas.ZodMiniObject<(keyof T_12["shape"] & keyof U_2["shape"] extends never ? T_12["shape"] & U_2["shape"] : (T_12["shape"] extends infer T_14 extends coreModule.util.SomeObject ? { [K_4 in keyof T_14 as K_4 extends keyof U_2["shape"] ? never : K_4]: T_12["shape"][K_4]; } : never) & (U_2["shape"] extends infer T_15 extends coreModule.util.SomeObject ? { [K_5 in keyof T_15]: U_2["shape"][K_5]; } : never)) extends infer T_13 ? { [k_4 in keyof T_13]: (keyof T_12["shape"] & keyof U_2["shape"] extends never ? T_12["shape"] & U_2["shape"] : (T_12["shape"] extends infer T_14 extends coreModule.util.SomeObject ? { [K_4 in keyof T_14 as K_4 extends keyof U_2["shape"] ? never : K_4]: T_12["shape"][K_4]; } : never) & (U_2["shape"] extends infer T_15 extends coreModule.util.SomeObject ? { [K_5 in keyof T_15]: U_2["shape"][K_5]; } : never))[k_4]; } : never, T_12["_zod"]["config"]>;
321
- pick<T_16 extends schemas.ZodMiniObject<Readonly<{
322
- [k: string]: coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>;
323
- }>, coreModule.$strip>, M extends coreModule.util.Mask<keyof T_16["shape"]>>(schema: T_16, mask: M & Record<Exclude<keyof M, keyof T_16["shape"]>, never>): schemas.ZodMiniObject<Pick<T_16["shape"], keyof T_16["shape"] & keyof M> extends infer T_17 ? { [k_5 in keyof T_17]: Pick<T_16["shape"], keyof T_16["shape"] & keyof M>[k_5]; } : never, T_16["_zod"]["config"]>;
324
- omit<T_18 extends schemas.ZodMiniObject<Readonly<{
325
- [k: string]: coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>;
326
- }>, coreModule.$strip>, M_1 extends coreModule.util.Mask<keyof T_18["shape"]>>(schema: T_18, mask: M_1 & Record<Exclude<keyof M_1, keyof T_18["shape"]>, never>): schemas.ZodMiniObject<Omit<T_18["shape"], keyof M_1> extends infer T_19 ? { [k_6 in keyof T_19]: Omit<T_18["shape"], keyof M_1>[k_6]; } : never, T_18["_zod"]["config"]>;
327
- partial<T_20 extends schemas.ZodMiniObject<Readonly<{
328
- [k: string]: coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>;
329
- }>, coreModule.$strip>>(schema: T_20): schemas.ZodMiniObject<T_20["shape"] extends infer T_21 ? { [k_7 in keyof T_21]: schemas.ZodMiniOptional<T_20["shape"][k_7]>; } : never, T_20["_zod"]["config"]>;
330
- partial<T_22 extends schemas.ZodMiniObject<Readonly<{
331
- [k: string]: coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>;
332
- }>, coreModule.$strip>, M_2 extends coreModule.util.Mask<keyof T_22["shape"]>>(schema: T_22, mask: M_2 & Record<Exclude<keyof M_2, keyof T_22["shape"]>, never>): schemas.ZodMiniObject<T_22["shape"] extends infer T_23 ? { [k_8 in keyof T_23]: k_8 extends keyof M_2 ? schemas.ZodMiniOptional<T_22["shape"][k_8]> : T_22["shape"][k_8]; } : never, T_22["_zod"]["config"]>;
333
- required<T_24 extends schemas.ZodMiniObject<Readonly<{
334
- [k: string]: coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>;
335
- }>, coreModule.$strip>>(schema: T_24): schemas.ZodMiniObject<T_24["shape"] extends infer T_25 ? { [k_9 in keyof T_25]: schemas.ZodMiniNonOptional<T_24["shape"][k_9]>; } : never, T_24["_zod"]["config"]>;
336
- required<T_26 extends schemas.ZodMiniObject<Readonly<{
337
- [k: string]: coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>;
338
- }>, coreModule.$strip>, M_3 extends coreModule.util.Mask<keyof T_26["shape"]>>(schema: T_26, mask: M_3 & Record<Exclude<keyof M_3, keyof T_26["shape"]>, never>): schemas.ZodMiniObject<(keyof T_26["shape"] & keyof M_3 extends never ? T_26["shape"] & { [k_11 in keyof M_3 & keyof T_26["shape"]]: schemas.ZodMiniNonOptional<T_26["shape"][k_11]>; } : (T_26["shape"] extends infer T_28 extends coreModule.util.SomeObject ? { [K_6 in keyof T_28 as K_6 extends keyof M_3 & keyof T_26["shape"] ? never : K_6]: T_26["shape"][K_6]; } : never) & ({ [k_11 in keyof M_3 & keyof T_26["shape"]]: schemas.ZodMiniNonOptional<T_26["shape"][k_11]>; } extends infer T_29 extends coreModule.util.SomeObject ? { [K_7 in keyof T_29]: { [k_11 in keyof M_3 & keyof T_26["shape"]]: schemas.ZodMiniNonOptional<T_26["shape"][k_11]>; }[K_7]; } : never)) extends infer T_27 ? { [k_10 in keyof T_27]: (keyof T_26["shape"] & keyof M_3 extends never ? T_26["shape"] & { [k_11 in keyof M_3 & keyof T_26["shape"]]: schemas.ZodMiniNonOptional<T_26["shape"][k_11]>; } : (T_26["shape"] extends infer T_28 extends coreModule.util.SomeObject ? { [K_6 in keyof T_28 as K_6 extends keyof M_3 & keyof T_26["shape"] ? never : K_6]: T_26["shape"][K_6]; } : never) & ({ [k_11 in keyof M_3 & keyof T_26["shape"]]: schemas.ZodMiniNonOptional<T_26["shape"][k_11]>; } extends infer T_29 extends coreModule.util.SomeObject ? { [K_7 in keyof T_29]: { [k_11 in keyof M_3 & keyof T_26["shape"]]: schemas.ZodMiniNonOptional<T_26["shape"][k_11]>; }[K_7]; } : never))[k_10]; } : never, T_26["_zod"]["config"]>;
339
- catchall<T_30 extends schemas.ZodMiniObject<Readonly<{
340
- [k: string]: coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>;
341
- }>, coreModule.$strip>, U_3 extends coreModule.SomeType>(inst: T_30, catchall: U_3): schemas.ZodMiniObject<T_30["shape"], coreModule.$catchall<U_3>>;
342
- union(): any;
343
- xor(): any;
344
- discriminatedUnion<Types extends readonly [coreModule.$ZodTypeDiscriminable, ...coreModule.$ZodTypeDiscriminable[]], Disc extends string>(discriminator: Disc, options: Types, params?: string | {
345
- inclusive?: boolean | undefined;
346
- unionFallback?: boolean | undefined;
347
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidUnion>> | undefined;
348
- message?: string | undefined;
349
- } | undefined): schemas.ZodMiniDiscriminatedUnion<Types, Disc>;
350
- intersection<T_31 extends coreModule.SomeType, U_4 extends coreModule.SomeType>(left: T_31, right: U_4): schemas.ZodMiniIntersection<T_31, U_4>;
351
- tuple(): any;
352
- tuple(): any;
353
- tuple(items: [], params?: string | {
354
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueTooBig<unknown[]> | coreModule.$ZodIssueTooSmall<unknown[]>>> | undefined;
355
- message?: string | undefined;
356
- } | undefined): schemas.ZodMiniTuple<[], null>;
357
- record<Key extends coreModule.$ZodRecordKey, Value extends coreModule.SomeType>(keyType: Key, valueType: Value, params?: string | {
358
- mode?: "strict" | "loose" | undefined;
359
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidKey<Record<PropertyKey, unknown>>>> | undefined;
360
- message?: string | undefined;
361
- } | undefined): schemas.ZodMiniRecord<Key, Value>;
362
- partialRecord<Key_1 extends coreModule.$ZodRecordKey, Value_1 extends coreModule.SomeType>(keyType: Key_1, valueType: Value_1, params?: string | {
363
- mode?: "strict" | "loose" | undefined;
364
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidKey<Record<PropertyKey, unknown>>>> | undefined;
365
- message?: string | undefined;
366
- } | undefined): schemas.ZodMiniRecord<Key_1 & coreModule.$partial, Value_1>;
367
- looseRecord<Key_2 extends coreModule.$ZodRecordKey, Value_2 extends coreModule.SomeType>(keyType: Key_2, valueType: Value_2, params?: string | {
368
- mode?: "strict" | "loose" | undefined;
369
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidKey<Record<PropertyKey, unknown>>>> | undefined;
370
- message?: string | undefined;
371
- } | undefined): schemas.ZodMiniRecord<Key_2, Value_2>;
372
- map<Key_3 extends coreModule.SomeType, Value_3 extends coreModule.SomeType>(keyType: Key_3, valueType: Value_3, params?: string | {
373
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssueInvalidType<unknown> | coreModule.$ZodIssueInvalidKey<unknown> | coreModule.$ZodIssueInvalidElement<unknown>>> | undefined;
374
- message?: string | undefined;
375
- } | undefined): schemas.ZodMiniMap<Key_3, Value_3>;
376
- set<Value_4 extends coreModule.SomeType>(valueType: Value_4, params?: string | {
377
- error?: string | coreModule.$ZodErrorMap<coreModule.$ZodIssueInvalidType<unknown>> | undefined;
378
- message?: string | undefined;
379
- } | undefined): schemas.ZodMiniSet<Value_4>;
380
- nativeEnum<T_32 extends Readonly<Record<string, coreModule.util.EnumValue>>>(entries: T_32, params?: string | {
381
- error?: string | coreModule.$ZodErrorMap<coreModule.$ZodIssueInvalidValue<unknown>> | undefined;
382
- message?: string | undefined;
383
- } | undefined): schemas.ZodMiniEnum<T_32>;
384
- literal(): any;
385
- literal(): any;
386
- literal(value: any, params: any): schemas.ZodMiniLiteral<coreModule.util.Literal>;
387
- file(params?: string | {
388
- error?: string | coreModule.$ZodErrorMap<coreModule.$ZodIssueInvalidType<unknown>> | undefined;
389
- message?: string | undefined;
390
- } | undefined): schemas.ZodMiniFile;
391
- transform<I = unknown, O = I>(fn: (input: I, ctx: coreModule.ParsePayload<unknown>) => O): schemas.ZodMiniTransform<Awaited<O>, I>;
392
- optional<T_33 extends coreModule.SomeType>(innerType: T_33): schemas.ZodMiniOptional<T_33>;
393
- exactOptional<T_34 extends coreModule.SomeType>(innerType: T_34): schemas.ZodMiniExactOptional<T_34>;
394
- nullable<T_35 extends coreModule.SomeType>(innerType: T_35): schemas.ZodMiniNullable<T_35>;
395
- nullish<T_36 extends coreModule.SomeType>(innerType: T_36): schemas.ZodMiniOptional<schemas.ZodMiniNullable<T_36>>;
396
- _default<T_37 extends coreModule.SomeType>(innerType: T_37, defaultValue: coreModule.util.NoUndefined<coreModule.output<T_37>> | (() => coreModule.util.NoUndefined<coreModule.output<T_37>>)): schemas.ZodMiniDefault<T_37>;
397
- prefault<T_38 extends coreModule.SomeType>(innerType: T_38, defaultValue: coreModule.util.NoUndefined<coreModule.input<T_38>> | (() => coreModule.util.NoUndefined<coreModule.input<T_38>>)): schemas.ZodMiniPrefault<T_38>;
398
- nonoptional<T_39 extends coreModule.SomeType>(innerType: T_39, params?: string | {
399
- error?: string | coreModule.$ZodErrorMap<coreModule.$ZodIssueInvalidType<unknown>> | undefined;
400
- message?: string | undefined;
401
- } | undefined): schemas.ZodMiniNonOptional<T_39>;
402
- success<T_40 extends coreModule.SomeType>(innerType: T_40): schemas.ZodMiniSuccess<T_40>;
403
- nan(params?: string | {
404
- error?: string | coreModule.$ZodErrorMap<coreModule.$ZodIssueInvalidType<unknown>> | undefined;
405
- message?: string | undefined;
406
- } | undefined): schemas.ZodMiniNaN;
407
- pipe(): any;
408
- codec(): any;
409
- readonly<T_41 extends coreModule.SomeType>(innerType: T_41): schemas.ZodMiniReadonly<T_41>;
410
- templateLiteral(): any;
411
- promise<T_42 extends coreModule.SomeType>(innerType: T_42): schemas.ZodMiniPromise<T_42>;
412
- check<O_1 = unknown>(fn: coreModule.CheckFn<O_1>, params?: string | {
413
- abort?: boolean | undefined;
414
- path?: PropertyKey[] | undefined;
415
- params?: Record<string, any> | undefined;
416
- when?: ((payload: coreModule.ParsePayload<unknown>) => boolean) | undefined;
417
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssue>> | undefined;
418
- message?: string | undefined;
419
- } | undefined): coreModule.$ZodCheck<O_1>;
420
- custom<O_2 = unknown, I_1 = O_2>(fn?: ((data: O_2) => unknown) | undefined, _params?: string | {
421
- abort?: boolean | undefined;
422
- path?: PropertyKey[] | undefined;
423
- params?: Record<string, any> | undefined;
424
- when?: ((payload: coreModule.ParsePayload<unknown>) => boolean) | undefined;
425
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssue>> | undefined;
426
- message?: string | undefined;
427
- } | undefined): schemas.ZodMiniCustom<O_2, I_1>;
428
- refine<T_43>(fn: (arg: NoInfer<T_43>) => unknown, _params?: string | {
429
- abort?: boolean | undefined;
430
- path?: PropertyKey[] | undefined;
431
- params?: Record<string, any> | undefined;
432
- when?: ((payload: coreModule.ParsePayload<unknown>) => boolean) | undefined;
433
- error?: string | coreModule.$ZodErrorMap<NonNullable<coreModule.$ZodIssue>> | undefined;
434
- message?: string | undefined;
435
- }): coreModule.$ZodCheck<T_43>;
436
- superRefine<T_44>(fn: (arg: T_44, payload: coreModule.$RefinementCtx<T_44>) => void | Promise<void>): coreModule.$ZodCheck<T_44>;
437
- json(): schemas.ZodMiniJSONSchema;
438
- _function(): schemas.ZodMiniFunction<coreModule.$ZodFunctionArgs, coreModule.$ZodFunctionOut>;
439
- _function(): any;
440
- _function(): any;
441
- _function(): any;
442
- _function<In extends coreModule.$ZodFunctionArgs = coreModule.$ZodFunctionArgs, Out extends coreModule.$ZodFunctionOut = coreModule.$ZodFunctionOut>(params?: {
443
- input: In;
444
- output: Out;
445
- } | undefined): schemas.ZodMiniFunction<In, Out>;
446
- ZodMiniType: coreModule.$constructor<schemas.ZodMiniType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>, coreModule.$ZodTypeDef>;
447
- ZodMiniString: coreModule.$constructor<schemas.ZodMiniString<unknown>, coreModule.$ZodStringDef>;
448
- ZodMiniStringFormat: coreModule.$constructor<schemas.ZodMiniStringFormat<string>, coreModule.$ZodStringFormatDef<string>>;
449
- ZodMiniEmail: coreModule.$constructor<schemas.ZodMiniEmail, coreModule.$ZodStringFormatDef<"email">>;
450
- ZodMiniGUID: coreModule.$constructor<schemas.ZodMiniGUID, coreModule.$ZodStringFormatDef<"guid">>;
451
- ZodMiniUUID: coreModule.$constructor<schemas.ZodMiniUUID, coreModule.$ZodUUIDDef>;
452
- ZodMiniURL: coreModule.$constructor<schemas.ZodMiniURL, coreModule.$ZodURLDef>;
453
- ZodMiniNanoID: coreModule.$constructor<schemas.ZodMiniNanoID, coreModule.$ZodStringFormatDef<"nanoid">>;
454
- ZodMiniCUID: coreModule.$constructor<schemas.ZodMiniCUID, coreModule.$ZodStringFormatDef<"cuid">>;
455
- ZodMiniCUID2: coreModule.$constructor<schemas.ZodMiniCUID2, coreModule.$ZodStringFormatDef<"cuid2">>;
456
- ZodMiniULID: coreModule.$constructor<schemas.ZodMiniULID, coreModule.$ZodStringFormatDef<"ulid">>;
457
- ZodMiniXID: coreModule.$constructor<schemas.ZodMiniXID, coreModule.$ZodStringFormatDef<"xid">>;
458
- ZodMiniKSUID: coreModule.$constructor<schemas.ZodMiniKSUID, coreModule.$ZodStringFormatDef<"ksuid">>;
459
- ZodMiniIPv4: coreModule.$constructor<schemas.ZodMiniIPv4, coreModule.$ZodIPv4Def>;
460
- ZodMiniIPv6: coreModule.$constructor<schemas.ZodMiniIPv6, coreModule.$ZodIPv6Def>;
461
- ZodMiniCIDRv4: coreModule.$constructor<schemas.ZodMiniCIDRv4, coreModule.$ZodCIDRv4Def>;
462
- ZodMiniCIDRv6: coreModule.$constructor<schemas.ZodMiniCIDRv6, coreModule.$ZodCIDRv6Def>;
463
- ZodMiniMAC: coreModule.$constructor<schemas.ZodMiniMAC, coreModule.$ZodMACDef>;
464
- ZodMiniBase64: coreModule.$constructor<schemas.ZodMiniBase64, coreModule.$ZodStringFormatDef<"base64">>;
465
- ZodMiniBase64URL: coreModule.$constructor<schemas.ZodMiniBase64URL, coreModule.$ZodStringFormatDef<"base64url">>;
466
- ZodMiniE164: coreModule.$constructor<schemas.ZodMiniE164, coreModule.$ZodStringFormatDef<"e164">>;
467
- ZodMiniJWT: coreModule.$constructor<schemas.ZodMiniJWT, coreModule.$ZodJWTDef>;
468
- ZodMiniCustomStringFormat: coreModule.$constructor<schemas.ZodMiniCustomStringFormat<string>, coreModule.$ZodCustomStringFormatDef<string>>;
469
- ZodMiniNumber: coreModule.$constructor<schemas.ZodMiniNumber<unknown>, coreModule.$ZodNumberDef>;
470
- ZodMiniNumberFormat: coreModule.$constructor<schemas.ZodMiniNumberFormat, coreModule.$ZodNumberFormatDef>;
471
- ZodMiniBoolean: coreModule.$constructor<schemas.ZodMiniBoolean<unknown>, coreModule.$ZodBooleanDef>;
472
- ZodMiniBigInt: coreModule.$constructor<schemas.ZodMiniBigInt<unknown>, coreModule.$ZodBigIntDef>;
473
- ZodMiniBigIntFormat: coreModule.$constructor<schemas.ZodMiniBigIntFormat, coreModule.$ZodBigIntFormatDef>;
474
- ZodMiniSymbol: coreModule.$constructor<schemas.ZodMiniSymbol, coreModule.$ZodSymbolDef>;
475
- ZodMiniUndefined: coreModule.$constructor<schemas.ZodMiniUndefined, coreModule.$ZodUndefinedDef>;
476
- undefined: typeof schemas.undefined;
477
- ZodMiniNull: coreModule.$constructor<schemas.ZodMiniNull, coreModule.$ZodNullDef>;
478
- null: typeof schemas.null;
479
- ZodMiniAny: coreModule.$constructor<schemas.ZodMiniAny, coreModule.$ZodAnyDef>;
480
- ZodMiniUnknown: coreModule.$constructor<schemas.ZodMiniUnknown, coreModule.$ZodUnknownDef>;
481
- ZodMiniNever: coreModule.$constructor<schemas.ZodMiniNever, coreModule.$ZodNeverDef>;
482
- ZodMiniVoid: coreModule.$constructor<schemas.ZodMiniVoid, coreModule.$ZodVoidDef>;
483
- void: typeof schemas.void;
484
- ZodMiniDate: coreModule.$constructor<schemas.ZodMiniDate<unknown>, coreModule.$ZodDateDef>;
485
- ZodMiniArray: coreModule.$constructor<schemas.ZodMiniArray<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>, coreModule.$ZodArrayDef<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>>;
486
- ZodMiniObject: coreModule.$constructor<schemas.ZodMiniObject<Readonly<{
487
- [k: string]: coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>;
488
- }>, coreModule.$strip>, coreModule.$ZodObjectDef<Readonly<{
489
- [k: string]: coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>;
490
- }>>>;
491
- ZodMiniUnion: coreModule.$constructor<schemas.ZodMiniUnion<readonly coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>[]>, coreModule.$ZodUnionDef<readonly coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>[]>>;
492
- ZodMiniXor: coreModule.$constructor<schemas.ZodMiniXor<readonly coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>[]>, coreModule.$ZodUnionDef<readonly coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>[]>>;
493
- ZodMiniDiscriminatedUnion: coreModule.$constructor<schemas.ZodMiniDiscriminatedUnion<readonly coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>[], string>, coreModule.$ZodDiscriminatedUnionDef<readonly coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>[], string>>;
494
- ZodMiniIntersection: coreModule.$constructor<schemas.ZodMiniIntersection<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>, coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>, coreModule.$ZodIntersectionDef<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>, coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>>;
495
- ZodMiniTuple: coreModule.$constructor<schemas.ZodMiniTuple<readonly coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>[], coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>> | null>, coreModule.$ZodTupleDef<readonly coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>[], coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>> | null>>;
496
- ZodMiniRecord: coreModule.$constructor<schemas.ZodMiniRecord<coreModule.$ZodRecordKey, coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>, coreModule.$ZodRecordDef<coreModule.$ZodRecordKey, coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>>;
497
- ZodMiniMap: coreModule.$constructor<schemas.ZodMiniMap<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>, coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>, coreModule.$ZodMapDef<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>, coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>>;
498
- ZodMiniSet: coreModule.$constructor<schemas.ZodMiniSet<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>, coreModule.$ZodSetDef<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>>;
499
- ZodMiniEnum: coreModule.$constructor<schemas.ZodMiniEnum<Readonly<Record<string, coreModule.util.EnumValue>>>, coreModule.$ZodEnumDef<Readonly<Record<string, coreModule.util.EnumValue>>>>;
500
- enum: typeof schemas.enum;
501
- ZodMiniLiteral: coreModule.$constructor<schemas.ZodMiniLiteral<coreModule.util.Literal>, coreModule.$ZodLiteralDef<coreModule.util.Literal>>;
502
- ZodMiniFile: coreModule.$constructor<schemas.ZodMiniFile, coreModule.$ZodFileDef>;
503
- ZodMiniTransform: coreModule.$constructor<schemas.ZodMiniTransform<unknown, unknown>, coreModule.$ZodTransformDef>;
504
- ZodMiniOptional: coreModule.$constructor<schemas.ZodMiniOptional<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>, coreModule.$ZodOptionalDef<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>>;
505
- ZodMiniExactOptional: coreModule.$constructor<schemas.ZodMiniExactOptional<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>, coreModule.$ZodExactOptionalDef<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>>;
506
- ZodMiniNullable: coreModule.$constructor<schemas.ZodMiniNullable<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>, coreModule.$ZodNullableDef<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>>;
507
- ZodMiniDefault: coreModule.$constructor<schemas.ZodMiniDefault<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>, coreModule.$ZodDefaultDef<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>>;
508
- ZodMiniPrefault: coreModule.$constructor<schemas.ZodMiniPrefault<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>, coreModule.$ZodPrefaultDef<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>>;
509
- ZodMiniNonOptional: coreModule.$constructor<schemas.ZodMiniNonOptional<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>, coreModule.$ZodNonOptionalDef<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>>;
510
- ZodMiniSuccess: coreModule.$constructor<schemas.ZodMiniSuccess<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>, coreModule.$ZodSuccessDef<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>>;
511
- ZodMiniCatch: coreModule.$constructor<schemas.ZodMiniCatch<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>, coreModule.$ZodCatchDef<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>>;
512
- catch: typeof schemas.catch;
513
- ZodMiniNaN: coreModule.$constructor<schemas.ZodMiniNaN, coreModule.$ZodNaNDef>;
514
- ZodMiniPipe: coreModule.$constructor<schemas.ZodMiniPipe<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>, coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>, coreModule.$ZodPipeDef<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>, coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>>;
515
- ZodMiniCodec: coreModule.$constructor<schemas.ZodMiniCodec<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>, coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>, coreModule.$ZodCodecDef<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>, coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>>;
516
- ZodMiniReadonly: coreModule.$constructor<schemas.ZodMiniReadonly<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>, coreModule.$ZodReadonlyDef<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>>;
517
- ZodMiniTemplateLiteral: coreModule.$constructor<schemas.ZodMiniTemplateLiteral<string>, coreModule.$ZodTemplateLiteralDef>;
518
- ZodMiniLazy: coreModule.$constructor<schemas.ZodMiniLazy<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>, coreModule.$ZodLazyDef<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>>;
519
- lazy: typeof schemas.lazy;
520
- ZodMiniPromise: coreModule.$constructor<schemas.ZodMiniPromise<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>, coreModule.$ZodPromiseDef<coreModule.$ZodType<unknown, unknown, coreModule.$ZodTypeInternals<unknown, unknown>>>>;
521
- ZodMiniCustom: coreModule.$constructor<schemas.ZodMiniCustom<unknown, unknown>, coreModule.$ZodCustomDef<unknown>>;
522
- describe: any;
523
- meta: any;
524
- instanceof: typeof schemas.instanceof;
525
- stringbool: (_params?: string | coreModule.$ZodStringBoolParams | undefined) => schemas.ZodMiniCodec<schemas.ZodMiniString<unknown>, schemas.ZodMiniBoolean<unknown>>;
526
- ZodMiniFunction: coreModule.$constructor<schemas.ZodMiniFunction<coreModule.$ZodFunctionArgs, coreModule.$ZodFunctionOut>, coreModule.$ZodFunctionDef<coreModule.$ZodFunctionArgs, coreModule.$ZodFunctionOut>>;
527
- function: typeof schemas._function;
528
- };
529
- export { z };
530
- export default z;
@@ -1,30 +0,0 @@
1
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
- // 直接导入并重新导出所有 schemas 中的方法
3
- export { object, string, number, int, int32, int64, array, union, literal, optional, extend, intersection, boolean, strictObject } from './schemas.js';
4
-
5
- // 导出其他模块
6
- export * from './parse.js';
7
- export * from './checks.js';
8
- export * as iso from './iso.js';
9
- export { ZodMiniISODateTime, ZodMiniISODate, ZodMiniISOTime, ZodMiniISODuration } from './iso.js';
10
- export * as coerce from './coerce.js';
11
-
12
- // 导出 core 模块
13
- export * as core from '../core/index.js';
14
- export { globalRegistry, registry, config, $output, $input, $brand, clone, regexes, treeifyError, prettifyError, formatError, flattenError, TimePrecision, util, NEVER } from '../core/index.js';
15
- export { toJSONSchema } from '../core/json-schema-processors.js';
16
-
17
- // 创建一个默认导出对象,包含所有方法(用于 import * as z)
18
- import * as schemas from './schemas.js';
19
- import * as parse from './parse.js';
20
- import * as checks from './checks.js';
21
- import * as coreModule from '../core/index.js';
22
- import * as isoModule from './iso.js';
23
- import * as coerceModule from './coerce.js';
24
- const z = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, schemas), parse), checks), {}, {
25
- core: coreModule,
26
- iso: isoModule,
27
- coerce: coerceModule
28
- });
29
- export { z };
30
- export default z;
@@ -1,22 +0,0 @@
1
- import * as core from "../core/index.js";
2
- import * as schemas from "./schemas.js";
3
- export interface ZodMiniISODateTime extends schemas.ZodMiniStringFormat<"datetime"> {
4
- _zod: core.$ZodISODateTimeInternals;
5
- }
6
- export declare const ZodMiniISODateTime: core.$constructor<ZodMiniISODateTime>;
7
- export declare function datetime(params?: string | core.$ZodISODateTimeParams): ZodMiniISODateTime;
8
- export interface ZodMiniISODate extends schemas.ZodMiniStringFormat<"date"> {
9
- _zod: core.$ZodISODateInternals;
10
- }
11
- export declare const ZodMiniISODate: core.$constructor<ZodMiniISODate>;
12
- export declare function date(params?: string | core.$ZodISODateParams): ZodMiniISODate;
13
- export interface ZodMiniISOTime extends schemas.ZodMiniStringFormat<"time"> {
14
- _zod: core.$ZodISOTimeInternals;
15
- }
16
- export declare const ZodMiniISOTime: core.$constructor<ZodMiniISOTime>;
17
- export declare function time(params?: string | core.$ZodISOTimeParams): ZodMiniISOTime;
18
- export interface ZodMiniISODuration extends schemas.ZodMiniStringFormat<"duration"> {
19
- _zod: core.$ZodISODurationInternals;
20
- }
21
- export declare const ZodMiniISODuration: core.$constructor<ZodMiniISODuration>;
22
- export declare function duration(params?: string | core.$ZodISODurationParams): ZodMiniISODuration;