@openframe-org/criteria-set-protocol 2.6.0-beta.2 → 2.6.0-beta.4

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.
@@ -6,1258 +6,27 @@ export declare const colorSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<
6
6
  }, z.core.$strip>]>;
7
7
  export declare const taskItemScalarValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
8
8
  export declare const taskItemValueSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
9
- export declare const elementDataValueSchema: z.ZodDiscriminatedUnion<[{
10
- shape: {
11
- type: z.ZodOptional<z.ZodLiteral<"number">>;
12
- total: z.ZodNumber;
13
- };
14
- keyof: () => z.ZodEnum<{
15
- type: "type";
16
- total: "total";
17
- }>;
18
- catchall: <T extends z.core.SomeType>(schema: T) => z.ZodObject<{
19
- type: z.ZodOptional<z.ZodLiteral<"number">>;
20
- total: z.ZodNumber;
21
- }, z.core.$catchall<T>>;
22
- passthrough: () => z.ZodObject<{
23
- type: z.ZodOptional<z.ZodLiteral<"number">>;
24
- total: z.ZodNumber;
25
- }, z.core.$loose>;
26
- loose: () => z.ZodObject<{
27
- type: z.ZodOptional<z.ZodLiteral<"number">>;
28
- total: z.ZodNumber;
29
- }, z.core.$loose>;
30
- strict: () => z.ZodObject<{
31
- type: z.ZodOptional<z.ZodLiteral<"number">>;
32
- total: z.ZodNumber;
33
- }, z.core.$strict>;
34
- strip: () => z.ZodObject<{
35
- type: z.ZodOptional<z.ZodLiteral<"number">>;
36
- total: z.ZodNumber;
37
- }, z.core.$strip>;
38
- extend: <U extends z.core.$ZodLooseShape>(shape: U) => z.ZodObject<(("type" | "total") & keyof U extends never ? {
39
- type: z.ZodOptional<z.ZodLiteral<"number">>;
40
- total: z.ZodNumber;
41
- } & U : ({
42
- type: z.ZodOptional<z.ZodLiteral<"number">>;
43
- total: z.ZodNumber;
44
- } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof U ? never : K]: T_1[K]; } : never) & { [K_1 in keyof U]: U[K_1]; }) extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
45
- safeExtend: <U extends z.core.$ZodLooseShape>(shape: z.SafeExtendShape<{
46
- type: z.ZodOptional<z.ZodLiteral<"number">>;
47
- total: z.ZodNumber;
48
- }, U> & Partial<Record<"type" | "total", z.core.SomeType>>) => z.ZodObject<(("type" | "total") & keyof U extends never ? {
49
- type: z.ZodOptional<z.ZodLiteral<"number">>;
50
- total: z.ZodNumber;
51
- } & U : ({
52
- type: z.ZodOptional<z.ZodLiteral<"number">>;
53
- total: z.ZodNumber;
54
- } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof U ? never : K]: T_1[K]; } : never) & { [K_1 in keyof U]: U[K_1]; }) extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
55
- merge: <U extends z.ZodObject>(other: U) => z.ZodObject<(("type" | "total") & keyof U["shape"] extends never ? {
56
- type: z.ZodOptional<z.ZodLiteral<"number">>;
57
- total: z.ZodNumber;
58
- } & U["shape"] : ({
59
- type: z.ZodOptional<z.ZodLiteral<"number">>;
60
- total: z.ZodNumber;
61
- } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof U["shape"] ? never : K]: T_1[K]; } : never) & (U["shape"] extends infer T_2 extends z.core.util.SomeObject ? { [K_1 in keyof T_2]: T_2[K_1]; } : never)) extends infer T ? { [k in keyof T]: T[k]; } : never, U["_zod"]["config"]>;
62
- pick: <M extends z.core.util.Mask<"type" | "total">>(mask: M) => z.ZodObject<Pick<{
63
- type: z.ZodOptional<z.ZodLiteral<"number">>;
64
- total: z.ZodNumber;
65
- }, Extract<"type", keyof M> | Extract<"total", keyof M>> extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
66
- omit: <M extends z.core.util.Mask<"type" | "total">>(mask: M) => z.ZodObject<Omit<{
67
- type: z.ZodOptional<z.ZodLiteral<"number">>;
68
- total: z.ZodNumber;
69
- }, Extract<"type", keyof M> | Extract<"total", keyof M>> extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
70
- partial: {
71
- (): z.ZodObject<{
72
- type: z.ZodOptional<z.ZodOptional<z.ZodLiteral<"number">>>;
73
- total: z.ZodOptional<z.ZodNumber>;
74
- }, z.core.$strip>;
75
- <M extends z.core.util.Mask<"type" | "total">>(mask: M): z.ZodObject<{
76
- type: "type" extends infer T ? T extends "type" ? T extends keyof M ? z.ZodOptional<{
77
- type: z.ZodOptional<z.ZodLiteral<"number">>;
78
- total: z.ZodNumber;
79
- }[T]> : {
80
- type: z.ZodOptional<z.ZodLiteral<"number">>;
81
- total: z.ZodNumber;
82
- }[T] : never : never;
83
- total: "total" extends infer T_1 ? T_1 extends "total" ? T_1 extends keyof M ? z.ZodOptional<{
84
- type: z.ZodOptional<z.ZodLiteral<"number">>;
85
- total: z.ZodNumber;
86
- }[T_1]> : {
87
- type: z.ZodOptional<z.ZodLiteral<"number">>;
88
- total: z.ZodNumber;
89
- }[T_1] : never : never;
90
- }, z.core.$strip>;
91
- };
92
- required: {
93
- (): z.ZodObject<{
94
- type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"number">>>;
95
- total: z.ZodNonOptional<z.ZodNumber>;
96
- }, z.core.$strip>;
97
- <M extends z.core.util.Mask<"type" | "total">>(mask: M): z.ZodObject<{
98
- type: "type" extends infer T ? T extends "type" ? T extends keyof M ? z.ZodNonOptional<{
99
- type: z.ZodOptional<z.ZodLiteral<"number">>;
100
- total: z.ZodNumber;
101
- }[T]> : {
102
- type: z.ZodOptional<z.ZodLiteral<"number">>;
103
- total: z.ZodNumber;
104
- }[T] : never : never;
105
- total: "total" extends infer T_1 ? T_1 extends "total" ? T_1 extends keyof M ? z.ZodNonOptional<{
106
- type: z.ZodOptional<z.ZodLiteral<"number">>;
107
- total: z.ZodNumber;
108
- }[T_1]> : {
109
- type: z.ZodOptional<z.ZodLiteral<"number">>;
110
- total: z.ZodNumber;
111
- }[T_1] : never : never;
112
- }, z.core.$strip>;
113
- };
114
- def: z.core.$ZodObjectDef<{
115
- type: z.ZodOptional<z.ZodLiteral<"number">>;
116
- total: z.ZodNumber;
117
- }>;
118
- type: "object";
119
- _def: z.core.$ZodObjectDef<{
120
- type: z.ZodOptional<z.ZodLiteral<"number">>;
121
- total: z.ZodNumber;
122
- }>;
123
- _output: {
124
- total: number;
125
- type?: "number" | undefined;
126
- };
127
- _input: {
128
- total: number;
129
- type?: "number" | undefined;
130
- };
131
- check: (...checks: (z.core.CheckFn<{
132
- total: number;
133
- type?: "number" | undefined;
134
- }> | z.core.$ZodCheck<{
135
- total: number;
136
- type?: "number" | undefined;
137
- }>)[]) => z.ZodObject<{
138
- type: z.ZodOptional<z.ZodLiteral<"number">>;
139
- total: z.ZodNumber;
140
- }, z.core.$strip>;
141
- clone: (def?: z.core.$ZodObjectDef<{
142
- type: z.ZodOptional<z.ZodLiteral<"number">>;
143
- total: z.ZodNumber;
144
- }> | undefined, params?: {
145
- parent: boolean;
146
- } | undefined) => z.ZodObject<{
147
- type: z.ZodOptional<z.ZodLiteral<"number">>;
148
- total: z.ZodNumber;
149
- }, z.core.$strip>;
150
- register: <R extends z.core.$ZodRegistry>(registry: R, ...meta: z.ZodObject<{
151
- type: z.ZodOptional<z.ZodLiteral<"number">>;
152
- total: z.ZodNumber;
153
- }, z.core.$strip> extends infer T ? T extends z.ZodObject<{
154
- type: z.ZodOptional<z.ZodLiteral<"number">>;
155
- total: z.ZodNumber;
156
- }, z.core.$strip> ? T extends R["_schema"] ? undefined extends R["_meta"] ? [(z.core.$replace<R["_meta"], R["_schema"] & z.ZodObject<{
157
- type: z.ZodOptional<z.ZodLiteral<"number">>;
158
- total: z.ZodNumber;
159
- }, z.core.$strip>> | undefined)?] : [z.core.$replace<R["_meta"], R["_schema"] & z.ZodObject<{
160
- type: z.ZodOptional<z.ZodLiteral<"number">>;
161
- total: z.ZodNumber;
162
- }, z.core.$strip>>] : ["Incompatible schema"] : never : never) => z.ZodObject<{
163
- type: z.ZodOptional<z.ZodLiteral<"number">>;
164
- total: z.ZodNumber;
165
- }, z.core.$strip>;
166
- brand: <T extends PropertyKey = PropertyKey>(value?: T | undefined) => PropertyKey extends T ? z.ZodObject<{
167
- type: z.ZodOptional<z.ZodLiteral<"number">>;
168
- total: z.ZodNumber;
169
- }, z.core.$strip> : z.core.$ZodBranded<z.ZodObject<{
170
- type: z.ZodOptional<z.ZodLiteral<"number">>;
171
- total: z.ZodNumber;
172
- }, z.core.$strip>, T>;
173
- parse: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
174
- total: number;
175
- type?: "number" | undefined;
176
- };
177
- safeParse: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
178
- total: number;
179
- type?: "number" | undefined;
180
- }>;
181
- parseAsync: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
182
- total: number;
183
- type?: "number" | undefined;
184
- }>;
185
- safeParseAsync: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
186
- total: number;
187
- type?: "number" | undefined;
188
- }>>;
189
- spa: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
190
- total: number;
191
- type?: "number" | undefined;
192
- }>>;
193
- encode: (data: {
194
- total: number;
195
- type?: "number" | undefined;
196
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
197
- total: number;
198
- type?: "number" | undefined;
199
- };
200
- decode: (data: {
201
- total: number;
202
- type?: "number" | undefined;
203
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
204
- total: number;
205
- type?: "number" | undefined;
206
- };
207
- encodeAsync: (data: {
208
- total: number;
209
- type?: "number" | undefined;
210
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
211
- total: number;
212
- type?: "number" | undefined;
213
- }>;
214
- decodeAsync: (data: {
215
- total: number;
216
- type?: "number" | undefined;
217
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
218
- total: number;
219
- type?: "number" | undefined;
220
- }>;
221
- safeEncode: (data: {
222
- total: number;
223
- type?: "number" | undefined;
224
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
225
- total: number;
226
- type?: "number" | undefined;
227
- }>;
228
- safeDecode: (data: {
229
- total: number;
230
- type?: "number" | undefined;
231
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
232
- total: number;
233
- type?: "number" | undefined;
234
- }>;
235
- safeEncodeAsync: (data: {
236
- total: number;
237
- type?: "number" | undefined;
238
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
239
- total: number;
240
- type?: "number" | undefined;
241
- }>>;
242
- safeDecodeAsync: (data: {
243
- total: number;
244
- type?: "number" | undefined;
245
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
246
- total: number;
247
- type?: "number" | undefined;
248
- }>>;
249
- refine: (check: (arg: {
250
- total: number;
251
- type?: "number" | undefined;
252
- }) => unknown | Promise<unknown>, params?: string | {
253
- abort?: boolean | undefined | undefined;
254
- path?: PropertyKey[] | undefined | undefined;
255
- params?: Record<string, any> | undefined;
256
- when?: ((payload: z.core.ParsePayload) => boolean) | undefined | undefined;
257
- error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssue>> | undefined;
258
- message?: string | undefined | undefined;
259
- } | undefined) => z.ZodObject<{
260
- type: z.ZodOptional<z.ZodLiteral<"number">>;
261
- total: z.ZodNumber;
262
- }, z.core.$strip>;
263
- superRefine: (refinement: (arg: {
264
- total: number;
265
- type?: "number" | undefined;
266
- }, ctx: z.core.$RefinementCtx<{
267
- total: number;
268
- type?: "number" | undefined;
269
- }>) => void | Promise<void>) => z.ZodObject<{
270
- type: z.ZodOptional<z.ZodLiteral<"number">>;
271
- total: z.ZodNumber;
272
- }, z.core.$strip>;
273
- overwrite: (fn: (x: {
274
- total: number;
275
- type?: "number" | undefined;
276
- }) => {
277
- total: number;
278
- type?: "number" | undefined;
279
- }) => z.ZodObject<{
280
- type: z.ZodOptional<z.ZodLiteral<"number">>;
281
- total: z.ZodNumber;
282
- }, z.core.$strip>;
283
- optional: () => z.ZodOptional<z.ZodObject<{
284
- type: z.ZodOptional<z.ZodLiteral<"number">>;
285
- total: z.ZodNumber;
286
- }, z.core.$strip>>;
287
- nonoptional: (params?: string | z.core.$ZodNonOptionalParams) => z.ZodNonOptional<z.ZodObject<{
288
- type: z.ZodOptional<z.ZodLiteral<"number">>;
289
- total: z.ZodNumber;
290
- }, z.core.$strip>>;
291
- nullable: () => z.ZodNullable<z.ZodObject<{
292
- type: z.ZodOptional<z.ZodLiteral<"number">>;
293
- total: z.ZodNumber;
294
- }, z.core.$strip>>;
295
- nullish: () => z.ZodOptional<z.ZodNullable<z.ZodObject<{
296
- type: z.ZodOptional<z.ZodLiteral<"number">>;
297
- total: z.ZodNumber;
298
- }, z.core.$strip>>>;
299
- default: {
300
- (def: {
301
- total: number;
302
- type?: "number" | undefined;
303
- }): z.ZodDefault<z.ZodObject<{
304
- type: z.ZodOptional<z.ZodLiteral<"number">>;
305
- total: z.ZodNumber;
306
- }, z.core.$strip>>;
307
- (def: () => {
308
- total: number;
309
- type?: "number" | undefined;
310
- }): z.ZodDefault<z.ZodObject<{
311
- type: z.ZodOptional<z.ZodLiteral<"number">>;
312
- total: z.ZodNumber;
313
- }, z.core.$strip>>;
314
- };
315
- prefault: {
316
- (def: () => {
317
- total: number;
318
- type?: "number" | undefined;
319
- }): z.ZodPrefault<z.ZodObject<{
320
- type: z.ZodOptional<z.ZodLiteral<"number">>;
321
- total: z.ZodNumber;
322
- }, z.core.$strip>>;
323
- (def: {
324
- total: number;
325
- type?: "number" | undefined;
326
- }): z.ZodPrefault<z.ZodObject<{
327
- type: z.ZodOptional<z.ZodLiteral<"number">>;
328
- total: z.ZodNumber;
329
- }, z.core.$strip>>;
330
- };
331
- array: () => z.ZodArray<z.ZodObject<{
332
- type: z.ZodOptional<z.ZodLiteral<"number">>;
333
- total: z.ZodNumber;
334
- }, z.core.$strip>>;
335
- or: <T extends z.core.SomeType>(option: T) => z.ZodUnion<[z.ZodObject<{
336
- type: z.ZodOptional<z.ZodLiteral<"number">>;
337
- total: z.ZodNumber;
338
- }, z.core.$strip>, T]>;
339
- and: <T extends z.core.SomeType>(incoming: T) => z.ZodIntersection<z.ZodObject<{
340
- type: z.ZodOptional<z.ZodLiteral<"number">>;
341
- total: z.ZodNumber;
342
- }, z.core.$strip>, T>;
343
- transform: <NewOut>(transform: (arg: {
344
- total: number;
345
- type?: "number" | undefined;
346
- }, ctx: z.core.$RefinementCtx<{
347
- total: number;
348
- type?: "number" | undefined;
349
- }>) => NewOut | Promise<NewOut>) => z.ZodPipe<z.ZodObject<{
350
- type: z.ZodOptional<z.ZodLiteral<"number">>;
351
- total: z.ZodNumber;
352
- }, z.core.$strip>, z.ZodTransform<Awaited<NewOut>, {
353
- total: number;
354
- type?: "number" | undefined;
355
- }>>;
356
- catch: {
357
- (def: {
358
- total: number;
359
- type?: "number" | undefined;
360
- }): z.ZodCatch<z.ZodObject<{
361
- type: z.ZodOptional<z.ZodLiteral<"number">>;
362
- total: z.ZodNumber;
363
- }, z.core.$strip>>;
364
- (def: (ctx: z.core.$ZodCatchCtx) => {
365
- total: number;
366
- type?: "number" | undefined;
367
- }): z.ZodCatch<z.ZodObject<{
368
- type: z.ZodOptional<z.ZodLiteral<"number">>;
369
- total: z.ZodNumber;
370
- }, z.core.$strip>>;
371
- };
372
- pipe: <T extends z.core.$ZodType<any, {
373
- total: number;
374
- type?: "number" | undefined;
375
- }, z.core.$ZodTypeInternals<any, {
376
- total: number;
377
- type?: "number" | undefined;
378
- }>>>(target: T | z.core.$ZodType<any, {
379
- total: number;
380
- type?: "number" | undefined;
381
- }, z.core.$ZodTypeInternals<any, {
382
- total: number;
383
- type?: "number" | undefined;
384
- }>>) => z.ZodPipe<z.ZodObject<{
385
- type: z.ZodOptional<z.ZodLiteral<"number">>;
386
- total: z.ZodNumber;
387
- }, z.core.$strip>, T>;
388
- readonly: () => z.ZodReadonly<z.ZodObject<{
389
- type: z.ZodOptional<z.ZodLiteral<"number">>;
390
- total: z.ZodNumber;
391
- }, z.core.$strip>>;
392
- describe: (description: string) => z.ZodObject<{
393
- type: z.ZodOptional<z.ZodLiteral<"number">>;
394
- total: z.ZodNumber;
395
- }, z.core.$strip>;
396
- description?: string | undefined;
397
- meta: {
398
- (): {
399
- [x: string]: unknown;
400
- id?: string | undefined | undefined;
401
- title?: string | undefined | undefined;
402
- description?: string | undefined | undefined;
403
- deprecated?: boolean | undefined | undefined;
404
- } | undefined;
405
- (data: {
406
- [x: string]: unknown;
407
- id?: string | undefined | undefined;
408
- title?: string | undefined | undefined;
409
- description?: string | undefined | undefined;
410
- deprecated?: boolean | undefined | undefined;
411
- }): z.ZodObject<{
412
- type: z.ZodOptional<z.ZodLiteral<"number">>;
413
- total: z.ZodNumber;
414
- }, z.core.$strip>;
415
- };
416
- isOptional: () => boolean;
417
- isNullable: () => boolean;
418
- _zod: z.core.$ZodObjectInternals<{
419
- type: z.ZodOptional<z.ZodLiteral<"number">>;
420
- total: z.ZodNumber;
421
- }, z.core.$strip>;
422
- "~standard": z.core.$ZodStandardSchema<z.ZodObject<{
423
- type: z.ZodOptional<z.ZodLiteral<"number">>;
424
- total: z.ZodNumber;
425
- }, z.core.$strip>>;
426
- }, {
427
- shape: {
428
- type: z.ZodLiteral<"percentage">;
429
- value: z.ZodNumber;
430
- };
431
- keyof: () => z.ZodEnum<{
432
- type: "type";
433
- value: "value";
434
- }>;
435
- catchall: <T extends z.core.SomeType>(schema: T) => z.ZodObject<{
436
- type: z.ZodLiteral<"percentage">;
437
- value: z.ZodNumber;
438
- }, z.core.$catchall<T>>;
439
- passthrough: () => z.ZodObject<{
440
- type: z.ZodLiteral<"percentage">;
441
- value: z.ZodNumber;
442
- }, z.core.$loose>;
443
- loose: () => z.ZodObject<{
444
- type: z.ZodLiteral<"percentage">;
445
- value: z.ZodNumber;
446
- }, z.core.$loose>;
447
- strict: () => z.ZodObject<{
448
- type: z.ZodLiteral<"percentage">;
449
- value: z.ZodNumber;
450
- }, z.core.$strict>;
451
- strip: () => z.ZodObject<{
452
- type: z.ZodLiteral<"percentage">;
453
- value: z.ZodNumber;
454
- }, z.core.$strip>;
455
- extend: <U extends z.core.$ZodLooseShape>(shape: U) => z.ZodObject<(("type" | "value") & keyof U extends never ? {
456
- type: z.ZodLiteral<"percentage">;
457
- value: z.ZodNumber;
458
- } & U : ({
459
- type: z.ZodLiteral<"percentage">;
460
- value: z.ZodNumber;
461
- } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof U ? never : K]: T_1[K]; } : never) & { [K_1 in keyof U]: U[K_1]; }) extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
462
- safeExtend: <U extends z.core.$ZodLooseShape>(shape: z.SafeExtendShape<{
463
- type: z.ZodLiteral<"percentage">;
464
- value: z.ZodNumber;
465
- }, U> & Partial<Record<"type" | "value", z.core.SomeType>>) => z.ZodObject<(("type" | "value") & keyof U extends never ? {
466
- type: z.ZodLiteral<"percentage">;
467
- value: z.ZodNumber;
468
- } & U : ({
469
- type: z.ZodLiteral<"percentage">;
470
- value: z.ZodNumber;
471
- } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof U ? never : K]: T_1[K]; } : never) & { [K_1 in keyof U]: U[K_1]; }) extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
472
- merge: <U extends z.ZodObject>(other: U) => z.ZodObject<(("type" | "value") & keyof U["shape"] extends never ? {
473
- type: z.ZodLiteral<"percentage">;
474
- value: z.ZodNumber;
475
- } & U["shape"] : ({
476
- type: z.ZodLiteral<"percentage">;
477
- value: z.ZodNumber;
478
- } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof U["shape"] ? never : K]: T_1[K]; } : never) & (U["shape"] extends infer T_2 extends z.core.util.SomeObject ? { [K_1 in keyof T_2]: T_2[K_1]; } : never)) extends infer T ? { [k in keyof T]: T[k]; } : never, U["_zod"]["config"]>;
479
- pick: <M extends z.core.util.Mask<"type" | "value">>(mask: M) => z.ZodObject<Pick<{
480
- type: z.ZodLiteral<"percentage">;
481
- value: z.ZodNumber;
482
- }, Extract<"type", keyof M> | Extract<"value", keyof M>> extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
483
- omit: <M extends z.core.util.Mask<"type" | "value">>(mask: M) => z.ZodObject<Omit<{
484
- type: z.ZodLiteral<"percentage">;
485
- value: z.ZodNumber;
486
- }, Extract<"type", keyof M> | Extract<"value", keyof M>> extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
487
- partial: {
488
- (): z.ZodObject<{
489
- type: z.ZodOptional<z.ZodLiteral<"percentage">>;
490
- value: z.ZodOptional<z.ZodNumber>;
491
- }, z.core.$strip>;
492
- <M extends z.core.util.Mask<"type" | "value">>(mask: M): z.ZodObject<{
493
- type: "type" extends infer T ? T extends "type" ? T extends keyof M ? z.ZodOptional<{
494
- type: z.ZodLiteral<"percentage">;
495
- value: z.ZodNumber;
496
- }[T]> : {
497
- type: z.ZodLiteral<"percentage">;
498
- value: z.ZodNumber;
499
- }[T] : never : never;
500
- value: "value" extends infer T_1 ? T_1 extends "value" ? T_1 extends keyof M ? z.ZodOptional<{
501
- type: z.ZodLiteral<"percentage">;
502
- value: z.ZodNumber;
503
- }[T_1]> : {
504
- type: z.ZodLiteral<"percentage">;
505
- value: z.ZodNumber;
506
- }[T_1] : never : never;
507
- }, z.core.$strip>;
508
- };
509
- required: {
510
- (): z.ZodObject<{
511
- type: z.ZodNonOptional<z.ZodLiteral<"percentage">>;
512
- value: z.ZodNonOptional<z.ZodNumber>;
513
- }, z.core.$strip>;
514
- <M extends z.core.util.Mask<"type" | "value">>(mask: M): z.ZodObject<{
515
- type: "type" extends infer T ? T extends "type" ? T extends keyof M ? z.ZodNonOptional<{
516
- type: z.ZodLiteral<"percentage">;
517
- value: z.ZodNumber;
518
- }[T]> : {
519
- type: z.ZodLiteral<"percentage">;
520
- value: z.ZodNumber;
521
- }[T] : never : never;
522
- value: "value" extends infer T_1 ? T_1 extends "value" ? T_1 extends keyof M ? z.ZodNonOptional<{
523
- type: z.ZodLiteral<"percentage">;
524
- value: z.ZodNumber;
525
- }[T_1]> : {
526
- type: z.ZodLiteral<"percentage">;
527
- value: z.ZodNumber;
528
- }[T_1] : never : never;
529
- }, z.core.$strip>;
530
- };
531
- def: z.core.$ZodObjectDef<{
532
- type: z.ZodLiteral<"percentage">;
533
- value: z.ZodNumber;
534
- }>;
535
- type: "object";
536
- _def: z.core.$ZodObjectDef<{
537
- type: z.ZodLiteral<"percentage">;
538
- value: z.ZodNumber;
539
- }>;
540
- _output: {
541
- type: "percentage";
542
- value: number;
543
- };
544
- _input: {
545
- type: "percentage";
546
- value: number;
547
- };
548
- check: (...checks: (z.core.CheckFn<{
549
- type: "percentage";
550
- value: number;
551
- }> | z.core.$ZodCheck<{
552
- type: "percentage";
553
- value: number;
554
- }>)[]) => z.ZodObject<{
555
- type: z.ZodLiteral<"percentage">;
556
- value: z.ZodNumber;
557
- }, z.core.$strip>;
558
- clone: (def?: z.core.$ZodObjectDef<{
559
- type: z.ZodLiteral<"percentage">;
560
- value: z.ZodNumber;
561
- }> | undefined, params?: {
562
- parent: boolean;
563
- } | undefined) => z.ZodObject<{
564
- type: z.ZodLiteral<"percentage">;
565
- value: z.ZodNumber;
566
- }, z.core.$strip>;
567
- register: <R extends z.core.$ZodRegistry>(registry: R, ...meta: z.ZodObject<{
568
- type: z.ZodLiteral<"percentage">;
569
- value: z.ZodNumber;
570
- }, z.core.$strip> extends infer T ? T extends z.ZodObject<{
571
- type: z.ZodLiteral<"percentage">;
572
- value: z.ZodNumber;
573
- }, z.core.$strip> ? T extends R["_schema"] ? undefined extends R["_meta"] ? [(z.core.$replace<R["_meta"], R["_schema"] & z.ZodObject<{
574
- type: z.ZodLiteral<"percentage">;
575
- value: z.ZodNumber;
576
- }, z.core.$strip>> | undefined)?] : [z.core.$replace<R["_meta"], R["_schema"] & z.ZodObject<{
577
- type: z.ZodLiteral<"percentage">;
578
- value: z.ZodNumber;
579
- }, z.core.$strip>>] : ["Incompatible schema"] : never : never) => z.ZodObject<{
580
- type: z.ZodLiteral<"percentage">;
581
- value: z.ZodNumber;
582
- }, z.core.$strip>;
583
- brand: <T extends PropertyKey = PropertyKey>(value?: T | undefined) => PropertyKey extends T ? z.ZodObject<{
584
- type: z.ZodLiteral<"percentage">;
585
- value: z.ZodNumber;
586
- }, z.core.$strip> : z.core.$ZodBranded<z.ZodObject<{
587
- type: z.ZodLiteral<"percentage">;
588
- value: z.ZodNumber;
589
- }, z.core.$strip>, T>;
590
- parse: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
591
- type: "percentage";
592
- value: number;
593
- };
594
- safeParse: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
595
- type: "percentage";
596
- value: number;
597
- }>;
598
- parseAsync: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
599
- type: "percentage";
600
- value: number;
601
- }>;
602
- safeParseAsync: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
603
- type: "percentage";
604
- value: number;
605
- }>>;
606
- spa: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
607
- type: "percentage";
608
- value: number;
609
- }>>;
610
- encode: (data: {
611
- type: "percentage";
612
- value: number;
613
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
614
- type: "percentage";
615
- value: number;
616
- };
617
- decode: (data: {
618
- type: "percentage";
619
- value: number;
620
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
621
- type: "percentage";
622
- value: number;
623
- };
624
- encodeAsync: (data: {
625
- type: "percentage";
626
- value: number;
627
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
628
- type: "percentage";
629
- value: number;
630
- }>;
631
- decodeAsync: (data: {
632
- type: "percentage";
633
- value: number;
634
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
635
- type: "percentage";
636
- value: number;
637
- }>;
638
- safeEncode: (data: {
639
- type: "percentage";
640
- value: number;
641
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
642
- type: "percentage";
643
- value: number;
644
- }>;
645
- safeDecode: (data: {
646
- type: "percentage";
647
- value: number;
648
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
649
- type: "percentage";
650
- value: number;
651
- }>;
652
- safeEncodeAsync: (data: {
653
- type: "percentage";
654
- value: number;
655
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
656
- type: "percentage";
657
- value: number;
658
- }>>;
659
- safeDecodeAsync: (data: {
660
- type: "percentage";
661
- value: number;
662
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
663
- type: "percentage";
664
- value: number;
665
- }>>;
666
- refine: (check: (arg: {
667
- type: "percentage";
668
- value: number;
669
- }) => unknown | Promise<unknown>, params?: string | {
670
- abort?: boolean | undefined | undefined;
671
- path?: PropertyKey[] | undefined | undefined;
672
- params?: Record<string, any> | undefined;
673
- when?: ((payload: z.core.ParsePayload) => boolean) | undefined | undefined;
674
- error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssue>> | undefined;
675
- message?: string | undefined | undefined;
676
- } | undefined) => z.ZodObject<{
677
- type: z.ZodLiteral<"percentage">;
678
- value: z.ZodNumber;
679
- }, z.core.$strip>;
680
- superRefine: (refinement: (arg: {
681
- type: "percentage";
682
- value: number;
683
- }, ctx: z.core.$RefinementCtx<{
684
- type: "percentage";
685
- value: number;
686
- }>) => void | Promise<void>) => z.ZodObject<{
687
- type: z.ZodLiteral<"percentage">;
688
- value: z.ZodNumber;
689
- }, z.core.$strip>;
690
- overwrite: (fn: (x: {
691
- type: "percentage";
692
- value: number;
693
- }) => {
694
- type: "percentage";
695
- value: number;
696
- }) => z.ZodObject<{
697
- type: z.ZodLiteral<"percentage">;
698
- value: z.ZodNumber;
699
- }, z.core.$strip>;
700
- optional: () => z.ZodOptional<z.ZodObject<{
701
- type: z.ZodLiteral<"percentage">;
702
- value: z.ZodNumber;
703
- }, z.core.$strip>>;
704
- nonoptional: (params?: string | z.core.$ZodNonOptionalParams) => z.ZodNonOptional<z.ZodObject<{
705
- type: z.ZodLiteral<"percentage">;
706
- value: z.ZodNumber;
707
- }, z.core.$strip>>;
708
- nullable: () => z.ZodNullable<z.ZodObject<{
709
- type: z.ZodLiteral<"percentage">;
710
- value: z.ZodNumber;
711
- }, z.core.$strip>>;
712
- nullish: () => z.ZodOptional<z.ZodNullable<z.ZodObject<{
713
- type: z.ZodLiteral<"percentage">;
714
- value: z.ZodNumber;
715
- }, z.core.$strip>>>;
716
- default: {
717
- (def: {
718
- type: "percentage";
719
- value: number;
720
- }): z.ZodDefault<z.ZodObject<{
721
- type: z.ZodLiteral<"percentage">;
722
- value: z.ZodNumber;
723
- }, z.core.$strip>>;
724
- (def: () => {
725
- type: "percentage";
726
- value: number;
727
- }): z.ZodDefault<z.ZodObject<{
728
- type: z.ZodLiteral<"percentage">;
729
- value: z.ZodNumber;
730
- }, z.core.$strip>>;
731
- };
732
- prefault: {
733
- (def: () => {
734
- type: "percentage";
735
- value: number;
736
- }): z.ZodPrefault<z.ZodObject<{
737
- type: z.ZodLiteral<"percentage">;
738
- value: z.ZodNumber;
739
- }, z.core.$strip>>;
740
- (def: {
741
- type: "percentage";
742
- value: number;
743
- }): z.ZodPrefault<z.ZodObject<{
744
- type: z.ZodLiteral<"percentage">;
745
- value: z.ZodNumber;
746
- }, z.core.$strip>>;
747
- };
748
- array: () => z.ZodArray<z.ZodObject<{
749
- type: z.ZodLiteral<"percentage">;
750
- value: z.ZodNumber;
751
- }, z.core.$strip>>;
752
- or: <T extends z.core.SomeType>(option: T) => z.ZodUnion<[z.ZodObject<{
753
- type: z.ZodLiteral<"percentage">;
754
- value: z.ZodNumber;
755
- }, z.core.$strip>, T]>;
756
- and: <T extends z.core.SomeType>(incoming: T) => z.ZodIntersection<z.ZodObject<{
757
- type: z.ZodLiteral<"percentage">;
758
- value: z.ZodNumber;
759
- }, z.core.$strip>, T>;
760
- transform: <NewOut>(transform: (arg: {
761
- type: "percentage";
762
- value: number;
763
- }, ctx: z.core.$RefinementCtx<{
764
- type: "percentage";
765
- value: number;
766
- }>) => NewOut | Promise<NewOut>) => z.ZodPipe<z.ZodObject<{
767
- type: z.ZodLiteral<"percentage">;
768
- value: z.ZodNumber;
769
- }, z.core.$strip>, z.ZodTransform<Awaited<NewOut>, {
770
- type: "percentage";
771
- value: number;
772
- }>>;
773
- catch: {
774
- (def: {
775
- type: "percentage";
776
- value: number;
777
- }): z.ZodCatch<z.ZodObject<{
778
- type: z.ZodLiteral<"percentage">;
779
- value: z.ZodNumber;
780
- }, z.core.$strip>>;
781
- (def: (ctx: z.core.$ZodCatchCtx) => {
782
- type: "percentage";
783
- value: number;
784
- }): z.ZodCatch<z.ZodObject<{
785
- type: z.ZodLiteral<"percentage">;
786
- value: z.ZodNumber;
787
- }, z.core.$strip>>;
788
- };
789
- pipe: <T extends z.core.$ZodType<any, {
790
- type: "percentage";
791
- value: number;
792
- }, z.core.$ZodTypeInternals<any, {
793
- type: "percentage";
794
- value: number;
795
- }>>>(target: T | z.core.$ZodType<any, {
796
- type: "percentage";
797
- value: number;
798
- }, z.core.$ZodTypeInternals<any, {
799
- type: "percentage";
800
- value: number;
801
- }>>) => z.ZodPipe<z.ZodObject<{
802
- type: z.ZodLiteral<"percentage">;
803
- value: z.ZodNumber;
804
- }, z.core.$strip>, T>;
805
- readonly: () => z.ZodReadonly<z.ZodObject<{
806
- type: z.ZodLiteral<"percentage">;
807
- value: z.ZodNumber;
808
- }, z.core.$strip>>;
809
- describe: (description: string) => z.ZodObject<{
810
- type: z.ZodLiteral<"percentage">;
811
- value: z.ZodNumber;
812
- }, z.core.$strip>;
813
- description?: string | undefined;
814
- meta: {
815
- (): {
816
- [x: string]: unknown;
817
- id?: string | undefined | undefined;
818
- title?: string | undefined | undefined;
819
- description?: string | undefined | undefined;
820
- deprecated?: boolean | undefined | undefined;
821
- } | undefined;
822
- (data: {
823
- [x: string]: unknown;
824
- id?: string | undefined | undefined;
825
- title?: string | undefined | undefined;
826
- description?: string | undefined | undefined;
827
- deprecated?: boolean | undefined | undefined;
828
- }): z.ZodObject<{
829
- type: z.ZodLiteral<"percentage">;
830
- value: z.ZodNumber;
831
- }, z.core.$strip>;
832
- };
833
- isOptional: () => boolean;
834
- isNullable: () => boolean;
835
- _zod: z.core.$ZodObjectInternals<{
836
- type: z.ZodLiteral<"percentage">;
837
- value: z.ZodNumber;
838
- }, z.core.$strip>;
839
- "~standard": z.core.$ZodStandardSchema<z.ZodObject<{
840
- type: z.ZodLiteral<"percentage">;
841
- value: z.ZodNumber;
842
- }, z.core.$strip>>;
843
- }, {
844
- shape: {
845
- type: z.ZodLiteral<"boolean">;
846
- value: z.ZodBoolean;
847
- };
848
- keyof: () => z.ZodEnum<{
849
- type: "type";
850
- value: "value";
851
- }>;
852
- catchall: <T extends z.core.SomeType>(schema: T) => z.ZodObject<{
853
- type: z.ZodLiteral<"boolean">;
854
- value: z.ZodBoolean;
855
- }, z.core.$catchall<T>>;
856
- passthrough: () => z.ZodObject<{
857
- type: z.ZodLiteral<"boolean">;
858
- value: z.ZodBoolean;
859
- }, z.core.$loose>;
860
- loose: () => z.ZodObject<{
861
- type: z.ZodLiteral<"boolean">;
862
- value: z.ZodBoolean;
863
- }, z.core.$loose>;
864
- strict: () => z.ZodObject<{
865
- type: z.ZodLiteral<"boolean">;
866
- value: z.ZodBoolean;
867
- }, z.core.$strict>;
868
- strip: () => z.ZodObject<{
869
- type: z.ZodLiteral<"boolean">;
870
- value: z.ZodBoolean;
871
- }, z.core.$strip>;
872
- extend: <U extends z.core.$ZodLooseShape>(shape: U) => z.ZodObject<(("type" | "value") & keyof U extends never ? {
873
- type: z.ZodLiteral<"boolean">;
874
- value: z.ZodBoolean;
875
- } & U : ({
876
- type: z.ZodLiteral<"boolean">;
877
- value: z.ZodBoolean;
878
- } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof U ? never : K]: T_1[K]; } : never) & { [K_1 in keyof U]: U[K_1]; }) extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
879
- safeExtend: <U extends z.core.$ZodLooseShape>(shape: z.SafeExtendShape<{
880
- type: z.ZodLiteral<"boolean">;
881
- value: z.ZodBoolean;
882
- }, U> & Partial<Record<"type" | "value", z.core.SomeType>>) => z.ZodObject<(("type" | "value") & keyof U extends never ? {
883
- type: z.ZodLiteral<"boolean">;
884
- value: z.ZodBoolean;
885
- } & U : ({
886
- type: z.ZodLiteral<"boolean">;
887
- value: z.ZodBoolean;
888
- } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof U ? never : K]: T_1[K]; } : never) & { [K_1 in keyof U]: U[K_1]; }) extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
889
- merge: <U extends z.ZodObject>(other: U) => z.ZodObject<(("type" | "value") & keyof U["shape"] extends never ? {
890
- type: z.ZodLiteral<"boolean">;
891
- value: z.ZodBoolean;
892
- } & U["shape"] : ({
893
- type: z.ZodLiteral<"boolean">;
894
- value: z.ZodBoolean;
895
- } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof U["shape"] ? never : K]: T_1[K]; } : never) & (U["shape"] extends infer T_2 extends z.core.util.SomeObject ? { [K_1 in keyof T_2]: T_2[K_1]; } : never)) extends infer T ? { [k in keyof T]: T[k]; } : never, U["_zod"]["config"]>;
896
- pick: <M extends z.core.util.Mask<"type" | "value">>(mask: M) => z.ZodObject<Pick<{
897
- type: z.ZodLiteral<"boolean">;
898
- value: z.ZodBoolean;
899
- }, Extract<"type", keyof M> | Extract<"value", keyof M>> extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
900
- omit: <M extends z.core.util.Mask<"type" | "value">>(mask: M) => z.ZodObject<Omit<{
901
- type: z.ZodLiteral<"boolean">;
902
- value: z.ZodBoolean;
903
- }, Extract<"type", keyof M> | Extract<"value", keyof M>> extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
904
- partial: {
905
- (): z.ZodObject<{
906
- type: z.ZodOptional<z.ZodLiteral<"boolean">>;
907
- value: z.ZodOptional<z.ZodBoolean>;
908
- }, z.core.$strip>;
909
- <M extends z.core.util.Mask<"type" | "value">>(mask: M): z.ZodObject<{
910
- type: "type" extends infer T ? T extends "type" ? T extends keyof M ? z.ZodOptional<{
911
- type: z.ZodLiteral<"boolean">;
912
- value: z.ZodBoolean;
913
- }[T]> : {
914
- type: z.ZodLiteral<"boolean">;
915
- value: z.ZodBoolean;
916
- }[T] : never : never;
917
- value: "value" extends infer T_1 ? T_1 extends "value" ? T_1 extends keyof M ? z.ZodOptional<{
918
- type: z.ZodLiteral<"boolean">;
919
- value: z.ZodBoolean;
920
- }[T_1]> : {
921
- type: z.ZodLiteral<"boolean">;
922
- value: z.ZodBoolean;
923
- }[T_1] : never : never;
924
- }, z.core.$strip>;
925
- };
926
- required: {
927
- (): z.ZodObject<{
928
- type: z.ZodNonOptional<z.ZodLiteral<"boolean">>;
929
- value: z.ZodNonOptional<z.ZodBoolean>;
930
- }, z.core.$strip>;
931
- <M extends z.core.util.Mask<"type" | "value">>(mask: M): z.ZodObject<{
932
- type: "type" extends infer T ? T extends "type" ? T extends keyof M ? z.ZodNonOptional<{
933
- type: z.ZodLiteral<"boolean">;
934
- value: z.ZodBoolean;
935
- }[T]> : {
936
- type: z.ZodLiteral<"boolean">;
937
- value: z.ZodBoolean;
938
- }[T] : never : never;
939
- value: "value" extends infer T_1 ? T_1 extends "value" ? T_1 extends keyof M ? z.ZodNonOptional<{
940
- type: z.ZodLiteral<"boolean">;
941
- value: z.ZodBoolean;
942
- }[T_1]> : {
943
- type: z.ZodLiteral<"boolean">;
944
- value: z.ZodBoolean;
945
- }[T_1] : never : never;
946
- }, z.core.$strip>;
947
- };
948
- def: z.core.$ZodObjectDef<{
949
- type: z.ZodLiteral<"boolean">;
950
- value: z.ZodBoolean;
951
- }>;
952
- type: "object";
953
- _def: z.core.$ZodObjectDef<{
954
- type: z.ZodLiteral<"boolean">;
955
- value: z.ZodBoolean;
956
- }>;
957
- _output: {
958
- type: "boolean";
959
- value: boolean;
960
- };
961
- _input: {
962
- type: "boolean";
963
- value: boolean;
964
- };
965
- check: (...checks: (z.core.CheckFn<{
966
- type: "boolean";
967
- value: boolean;
968
- }> | z.core.$ZodCheck<{
969
- type: "boolean";
970
- value: boolean;
971
- }>)[]) => {} & z.ZodObject<{
972
- type: z.ZodLiteral<"boolean">;
973
- value: z.ZodBoolean;
974
- }, z.core.$strip>;
975
- clone: (def?: z.core.$ZodObjectDef<{
976
- type: z.ZodLiteral<"boolean">;
977
- value: z.ZodBoolean;
978
- }> | undefined, params?: {
979
- parent: boolean;
980
- } | undefined) => {} & z.ZodObject<{
981
- type: z.ZodLiteral<"boolean">;
982
- value: z.ZodBoolean;
983
- }, z.core.$strip>;
984
- register: <R extends z.core.$ZodRegistry>(registry: R, ...meta: {} & z.ZodObject<{
985
- type: z.ZodLiteral<"boolean">;
986
- value: z.ZodBoolean;
987
- }, z.core.$strip> extends infer T ? T extends {} & z.ZodObject<{
988
- type: z.ZodLiteral<"boolean">;
989
- value: z.ZodBoolean;
990
- }, z.core.$strip> ? T extends R["_schema"] ? undefined extends R["_meta"] ? [(z.core.$replace<R["_meta"], R["_schema"] & {} & z.ZodObject<{
991
- type: z.ZodLiteral<"boolean">;
992
- value: z.ZodBoolean;
993
- }, z.core.$strip>> | undefined)?] : [z.core.$replace<R["_meta"], R["_schema"] & {} & z.ZodObject<{
994
- type: z.ZodLiteral<"boolean">;
995
- value: z.ZodBoolean;
996
- }, z.core.$strip>>] : ["Incompatible schema"] : never : never) => {} & z.ZodObject<{
997
- type: z.ZodLiteral<"boolean">;
998
- value: z.ZodBoolean;
999
- }, z.core.$strip>;
1000
- brand: <T extends PropertyKey = PropertyKey>(value?: T | undefined) => PropertyKey extends T ? {} & z.ZodObject<{
1001
- type: z.ZodLiteral<"boolean">;
1002
- value: z.ZodBoolean;
1003
- }, z.core.$strip> : z.core.$ZodBranded<{} & z.ZodObject<{
1004
- type: z.ZodLiteral<"boolean">;
1005
- value: z.ZodBoolean;
1006
- }, z.core.$strip>, T>;
1007
- parse: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
1008
- type: "boolean";
1009
- value: boolean;
1010
- };
1011
- safeParse: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
1012
- type: "boolean";
1013
- value: boolean;
1014
- }>;
1015
- parseAsync: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
1016
- type: "boolean";
1017
- value: boolean;
1018
- }>;
1019
- safeParseAsync: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
1020
- type: "boolean";
1021
- value: boolean;
1022
- }>>;
1023
- spa: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
1024
- type: "boolean";
1025
- value: boolean;
1026
- }>>;
1027
- encode: (data: {
1028
- type: "boolean";
1029
- value: boolean;
1030
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
1031
- type: "boolean";
1032
- value: boolean;
1033
- };
1034
- decode: (data: {
1035
- type: "boolean";
1036
- value: boolean;
1037
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
1038
- type: "boolean";
1039
- value: boolean;
1040
- };
1041
- encodeAsync: (data: {
1042
- type: "boolean";
1043
- value: boolean;
1044
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
1045
- type: "boolean";
1046
- value: boolean;
1047
- }>;
1048
- decodeAsync: (data: {
1049
- type: "boolean";
1050
- value: boolean;
1051
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
1052
- type: "boolean";
1053
- value: boolean;
1054
- }>;
1055
- safeEncode: (data: {
1056
- type: "boolean";
1057
- value: boolean;
1058
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
1059
- type: "boolean";
1060
- value: boolean;
1061
- }>;
1062
- safeDecode: (data: {
1063
- type: "boolean";
1064
- value: boolean;
1065
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
1066
- type: "boolean";
1067
- value: boolean;
1068
- }>;
1069
- safeEncodeAsync: (data: {
1070
- type: "boolean";
1071
- value: boolean;
1072
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
1073
- type: "boolean";
1074
- value: boolean;
1075
- }>>;
1076
- safeDecodeAsync: (data: {
1077
- type: "boolean";
1078
- value: boolean;
1079
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
1080
- type: "boolean";
1081
- value: boolean;
1082
- }>>;
1083
- refine: (check: (arg: {
1084
- type: "boolean";
1085
- value: boolean;
1086
- }) => unknown | Promise<unknown>, params?: string | {
1087
- abort?: boolean | undefined | undefined;
1088
- path?: PropertyKey[] | undefined | undefined;
1089
- params?: Record<string, any> | undefined;
1090
- when?: ((payload: z.core.ParsePayload) => boolean) | undefined | undefined;
1091
- error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssue>> | undefined;
1092
- message?: string | undefined | undefined;
1093
- } | undefined) => {} & z.ZodObject<{
1094
- type: z.ZodLiteral<"boolean">;
1095
- value: z.ZodBoolean;
1096
- }, z.core.$strip>;
1097
- superRefine: (refinement: (arg: {
1098
- type: "boolean";
1099
- value: boolean;
1100
- }, ctx: z.core.$RefinementCtx<{
1101
- type: "boolean";
1102
- value: boolean;
1103
- }>) => void | Promise<void>) => {} & z.ZodObject<{
1104
- type: z.ZodLiteral<"boolean">;
1105
- value: z.ZodBoolean;
1106
- }, z.core.$strip>;
1107
- overwrite: (fn: (x: {
1108
- type: "boolean";
1109
- value: boolean;
1110
- }) => {
1111
- type: "boolean";
1112
- value: boolean;
1113
- }) => {} & z.ZodObject<{
1114
- type: z.ZodLiteral<"boolean">;
1115
- value: z.ZodBoolean;
1116
- }, z.core.$strip>;
1117
- optional: () => z.ZodOptional<{} & z.ZodObject<{
1118
- type: z.ZodLiteral<"boolean">;
1119
- value: z.ZodBoolean;
1120
- }, z.core.$strip>>;
1121
- nonoptional: (params?: string | z.core.$ZodNonOptionalParams) => z.ZodNonOptional<{} & z.ZodObject<{
1122
- type: z.ZodLiteral<"boolean">;
1123
- value: z.ZodBoolean;
1124
- }, z.core.$strip>>;
1125
- nullable: () => z.ZodNullable<{} & z.ZodObject<{
1126
- type: z.ZodLiteral<"boolean">;
1127
- value: z.ZodBoolean;
1128
- }, z.core.$strip>>;
1129
- nullish: () => z.ZodOptional<z.ZodNullable<{} & z.ZodObject<{
1130
- type: z.ZodLiteral<"boolean">;
1131
- value: z.ZodBoolean;
1132
- }, z.core.$strip>>>;
1133
- default: {
1134
- (def: {
1135
- type: "boolean";
1136
- value: boolean;
1137
- }): z.ZodDefault<{} & z.ZodObject<{
1138
- type: z.ZodLiteral<"boolean">;
1139
- value: z.ZodBoolean;
1140
- }, z.core.$strip>>;
1141
- (def: () => {
1142
- type: "boolean";
1143
- value: boolean;
1144
- }): z.ZodDefault<{} & z.ZodObject<{
1145
- type: z.ZodLiteral<"boolean">;
1146
- value: z.ZodBoolean;
1147
- }, z.core.$strip>>;
1148
- };
1149
- prefault: {
1150
- (def: () => {
1151
- type: "boolean";
1152
- value: boolean;
1153
- }): z.ZodPrefault<{} & z.ZodObject<{
1154
- type: z.ZodLiteral<"boolean">;
1155
- value: z.ZodBoolean;
1156
- }, z.core.$strip>>;
1157
- (def: {
1158
- type: "boolean";
1159
- value: boolean;
1160
- }): z.ZodPrefault<{} & z.ZodObject<{
1161
- type: z.ZodLiteral<"boolean">;
1162
- value: z.ZodBoolean;
1163
- }, z.core.$strip>>;
1164
- };
1165
- array: () => z.ZodArray<{} & z.ZodObject<{
1166
- type: z.ZodLiteral<"boolean">;
1167
- value: z.ZodBoolean;
1168
- }, z.core.$strip>>;
1169
- or: <T extends z.core.SomeType>(option: T) => z.ZodUnion<[{} & z.ZodObject<{
1170
- type: z.ZodLiteral<"boolean">;
1171
- value: z.ZodBoolean;
1172
- }, z.core.$strip>, T]>;
1173
- and: <T extends z.core.SomeType>(incoming: T) => z.ZodIntersection<{} & z.ZodObject<{
1174
- type: z.ZodLiteral<"boolean">;
1175
- value: z.ZodBoolean;
1176
- }, z.core.$strip>, T>;
1177
- transform: <NewOut>(transform: (arg: {
1178
- type: "boolean";
1179
- value: boolean;
1180
- }, ctx: z.core.$RefinementCtx<{
1181
- type: "boolean";
1182
- value: boolean;
1183
- }>) => NewOut | Promise<NewOut>) => z.ZodPipe<{} & z.ZodObject<{
1184
- type: z.ZodLiteral<"boolean">;
1185
- value: z.ZodBoolean;
1186
- }, z.core.$strip>, z.ZodTransform<Awaited<NewOut>, {
1187
- type: "boolean";
1188
- value: boolean;
1189
- }>>;
1190
- catch: {
1191
- (def: {
1192
- type: "boolean";
1193
- value: boolean;
1194
- }): z.ZodCatch<{} & z.ZodObject<{
1195
- type: z.ZodLiteral<"boolean">;
1196
- value: z.ZodBoolean;
1197
- }, z.core.$strip>>;
1198
- (def: (ctx: z.core.$ZodCatchCtx) => {
1199
- type: "boolean";
1200
- value: boolean;
1201
- }): z.ZodCatch<{} & z.ZodObject<{
1202
- type: z.ZodLiteral<"boolean">;
1203
- value: z.ZodBoolean;
1204
- }, z.core.$strip>>;
1205
- };
1206
- pipe: <T extends z.core.$ZodType<any, {
1207
- type: "boolean";
1208
- value: boolean;
1209
- }, z.core.$ZodTypeInternals<any, {
1210
- type: "boolean";
1211
- value: boolean;
1212
- }>>>(target: T | z.core.$ZodType<any, {
1213
- type: "boolean";
1214
- value: boolean;
1215
- }, z.core.$ZodTypeInternals<any, {
1216
- type: "boolean";
1217
- value: boolean;
1218
- }>>) => z.ZodPipe<{} & z.ZodObject<{
1219
- type: z.ZodLiteral<"boolean">;
1220
- value: z.ZodBoolean;
1221
- }, z.core.$strip>, T>;
1222
- readonly: () => z.ZodReadonly<{} & z.ZodObject<{
1223
- type: z.ZodLiteral<"boolean">;
1224
- value: z.ZodBoolean;
1225
- }, z.core.$strip>>;
1226
- describe: (description: string) => {} & z.ZodObject<{
1227
- type: z.ZodLiteral<"boolean">;
1228
- value: z.ZodBoolean;
1229
- }, z.core.$strip>;
1230
- description?: string | undefined;
1231
- meta: {
1232
- (): {
1233
- [x: string]: unknown;
1234
- id?: string | undefined | undefined;
1235
- title?: string | undefined | undefined;
1236
- description?: string | undefined | undefined;
1237
- deprecated?: boolean | undefined | undefined;
1238
- } | undefined;
1239
- (data: {
1240
- [x: string]: unknown;
1241
- id?: string | undefined | undefined;
1242
- title?: string | undefined | undefined;
1243
- description?: string | undefined | undefined;
1244
- deprecated?: boolean | undefined | undefined;
1245
- }): {} & z.ZodObject<{
1246
- type: z.ZodLiteral<"boolean">;
1247
- value: z.ZodBoolean;
1248
- }, z.core.$strip>;
1249
- };
1250
- isOptional: () => boolean;
1251
- isNullable: () => boolean;
1252
- _zod: z.core.$ZodObjectInternals<{
1253
- type: z.ZodLiteral<"boolean">;
1254
- value: z.ZodBoolean;
1255
- }, z.core.$strip>;
1256
- "~standard": z.core.$ZodStandardSchema<{} & z.ZodObject<{
1257
- type: z.ZodLiteral<"boolean">;
1258
- value: z.ZodBoolean;
1259
- }, z.core.$strip>>;
1260
- }], "type">;
9
+ export declare const elementDataValueSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
10
+ value: z.ZodNumber;
11
+ maximumValue: z.ZodOptional<z.ZodNumber>;
12
+ minimumValue: z.ZodOptional<z.ZodNumber>;
13
+ exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
14
+ exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
15
+ weight: z.ZodOptional<z.ZodNumber>;
16
+ type: z.ZodOptional<z.ZodLiteral<"number">>;
17
+ total: z.ZodNumber;
18
+ }, z.core.$catchall<z.ZodAny>>, z.ZodObject<{
19
+ maximumValue: z.ZodOptional<z.ZodNumber>;
20
+ minimumValue: z.ZodOptional<z.ZodNumber>;
21
+ exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
22
+ exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
23
+ weight: z.ZodOptional<z.ZodNumber>;
24
+ type: z.ZodLiteral<"percentage">;
25
+ value: z.ZodNumber;
26
+ }, z.core.$catchall<z.ZodAny>>, z.ZodObject<{
27
+ type: z.ZodLiteral<"boolean">;
28
+ value: z.ZodBoolean;
29
+ }, z.core.$catchall<z.ZodAny>>], "type">;
1261
30
  type ElementDataValue = z.infer<typeof elementDataValueSchema>;
1262
31
  export declare const elementDataTextSchema: z.ZodObject<{
1263
32
  text: z.ZodString;