@oak-digital/types-4-strapi-2 1.0.6 → 1.0.7

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.
@@ -1,2624 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const baseAttribute: z.ZodObject<{
3
- pluginOptions: z.ZodOptional<z.ZodAny>;
4
- required: z.ZodOptional<z.ZodBoolean>;
5
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
6
- }, "strip", z.ZodTypeAny, {
7
- pluginOptions?: any;
8
- required?: boolean;
9
- __t4s_required?: boolean;
10
- }, {
11
- pluginOptions?: any;
12
- required?: boolean;
13
- __t4s_required?: boolean;
14
- }>;
15
- export declare const textAttribute: z.ZodObject<{
16
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
17
- pluginOptions: z.ZodOptional<z.ZodAny>;
18
- required: z.ZodOptional<z.ZodBoolean>;
19
- type: z.ZodEnum<["text", "string"]>;
20
- }, "strip", z.ZodTypeAny, {
21
- __t4s_required?: boolean;
22
- pluginOptions?: any;
23
- required?: boolean;
24
- type?: "string" | "text";
25
- }, {
26
- __t4s_required?: boolean;
27
- pluginOptions?: any;
28
- required?: boolean;
29
- type?: "string" | "text";
30
- }>;
31
- export type TextAttribute = z.infer<typeof textAttribute>;
32
- export declare const emailAttribute: z.ZodObject<{
33
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
34
- pluginOptions: z.ZodOptional<z.ZodAny>;
35
- required: z.ZodOptional<z.ZodBoolean>;
36
- type: z.ZodLiteral<"email">;
37
- }, "strip", z.ZodTypeAny, {
38
- __t4s_required?: boolean;
39
- pluginOptions?: any;
40
- required?: boolean;
41
- type?: "email";
42
- }, {
43
- __t4s_required?: boolean;
44
- pluginOptions?: any;
45
- required?: boolean;
46
- type?: "email";
47
- }>;
48
- export type EmailAttribute = z.infer<typeof emailAttribute>;
49
- export declare const uidAttribute: z.ZodObject<{
50
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
51
- pluginOptions: z.ZodOptional<z.ZodAny>;
52
- required: z.ZodOptional<z.ZodBoolean>;
53
- type: z.ZodLiteral<"uid">;
54
- targetField: z.ZodOptional<z.ZodString>;
55
- }, "strip", z.ZodTypeAny, {
56
- __t4s_required?: boolean;
57
- pluginOptions?: any;
58
- required?: boolean;
59
- type?: "uid";
60
- targetField?: string;
61
- }, {
62
- __t4s_required?: boolean;
63
- pluginOptions?: any;
64
- required?: boolean;
65
- type?: "uid";
66
- targetField?: string;
67
- }>;
68
- export type UidAttribute = z.infer<typeof uidAttribute>;
69
- export declare const richTextAttribute: z.ZodObject<{
70
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
71
- pluginOptions: z.ZodOptional<z.ZodAny>;
72
- required: z.ZodOptional<z.ZodBoolean>;
73
- type: z.ZodLiteral<"richtext">;
74
- }, "strip", z.ZodTypeAny, {
75
- __t4s_required?: boolean;
76
- pluginOptions?: any;
77
- required?: boolean;
78
- type?: "richtext";
79
- }, {
80
- __t4s_required?: boolean;
81
- pluginOptions?: any;
82
- required?: boolean;
83
- type?: "richtext";
84
- }>;
85
- export type RichTextAttribute = z.infer<typeof richTextAttribute>;
86
- export declare const blocksAttribute: z.ZodObject<{
87
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
88
- pluginOptions: z.ZodOptional<z.ZodAny>;
89
- required: z.ZodOptional<z.ZodBoolean>;
90
- type: z.ZodLiteral<"blocks">;
91
- }, "strip", z.ZodTypeAny, {
92
- __t4s_required?: boolean;
93
- pluginOptions?: any;
94
- required?: boolean;
95
- type?: "blocks";
96
- }, {
97
- __t4s_required?: boolean;
98
- pluginOptions?: any;
99
- required?: boolean;
100
- type?: "blocks";
101
- }>;
102
- export declare const jsonAttribute: z.ZodObject<{
103
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
104
- pluginOptions: z.ZodOptional<z.ZodAny>;
105
- required: z.ZodOptional<z.ZodBoolean>;
106
- type: z.ZodLiteral<"json">;
107
- }, "strip", z.ZodTypeAny, {
108
- __t4s_required?: boolean;
109
- pluginOptions?: any;
110
- required?: boolean;
111
- type?: "json";
112
- }, {
113
- __t4s_required?: boolean;
114
- pluginOptions?: any;
115
- required?: boolean;
116
- type?: "json";
117
- }>;
118
- export type JsonAttribute = z.infer<typeof jsonAttribute>;
119
- export declare const passwordAttribute: z.ZodObject<{
120
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
121
- pluginOptions: z.ZodOptional<z.ZodAny>;
122
- required: z.ZodOptional<z.ZodBoolean>;
123
- type: z.ZodLiteral<"password">;
124
- }, "strip", z.ZodTypeAny, {
125
- __t4s_required?: boolean;
126
- pluginOptions?: any;
127
- required?: boolean;
128
- type?: "password";
129
- }, {
130
- __t4s_required?: boolean;
131
- pluginOptions?: any;
132
- required?: boolean;
133
- type?: "password";
134
- }>;
135
- export type PasswordAttribute = z.infer<typeof passwordAttribute>;
136
- export declare const integerAttribute: z.ZodObject<{
137
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
138
- pluginOptions: z.ZodOptional<z.ZodAny>;
139
- required: z.ZodOptional<z.ZodBoolean>;
140
- type: z.ZodLiteral<"integer">;
141
- }, "strip", z.ZodTypeAny, {
142
- __t4s_required?: boolean;
143
- pluginOptions?: any;
144
- required?: boolean;
145
- type?: "integer";
146
- }, {
147
- __t4s_required?: boolean;
148
- pluginOptions?: any;
149
- required?: boolean;
150
- type?: "integer";
151
- }>;
152
- export declare const floatAttribute: z.ZodObject<{
153
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
154
- pluginOptions: z.ZodOptional<z.ZodAny>;
155
- required: z.ZodOptional<z.ZodBoolean>;
156
- type: z.ZodLiteral<"float">;
157
- }, "strip", z.ZodTypeAny, {
158
- __t4s_required?: boolean;
159
- pluginOptions?: any;
160
- required?: boolean;
161
- type?: "float";
162
- }, {
163
- __t4s_required?: boolean;
164
- pluginOptions?: any;
165
- required?: boolean;
166
- type?: "float";
167
- }>;
168
- export declare const bigIntAttribute: z.ZodObject<{
169
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
170
- pluginOptions: z.ZodOptional<z.ZodAny>;
171
- required: z.ZodOptional<z.ZodBoolean>;
172
- type: z.ZodLiteral<"biginteger">;
173
- }, "strip", z.ZodTypeAny, {
174
- __t4s_required?: boolean;
175
- pluginOptions?: any;
176
- required?: boolean;
177
- type?: "biginteger";
178
- }, {
179
- __t4s_required?: boolean;
180
- pluginOptions?: any;
181
- required?: boolean;
182
- type?: "biginteger";
183
- }>;
184
- export declare const decimalAttribute: z.ZodObject<{
185
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
186
- pluginOptions: z.ZodOptional<z.ZodAny>;
187
- required: z.ZodOptional<z.ZodBoolean>;
188
- type: z.ZodLiteral<"decimal">;
189
- }, "strip", z.ZodTypeAny, {
190
- __t4s_required?: boolean;
191
- pluginOptions?: any;
192
- required?: boolean;
193
- type?: "decimal";
194
- }, {
195
- __t4s_required?: boolean;
196
- pluginOptions?: any;
197
- required?: boolean;
198
- type?: "decimal";
199
- }>;
200
- export declare const numberAttribute: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
201
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
202
- pluginOptions: z.ZodOptional<z.ZodAny>;
203
- required: z.ZodOptional<z.ZodBoolean>;
204
- type: z.ZodLiteral<"integer">;
205
- }, "strip", z.ZodTypeAny, {
206
- __t4s_required?: boolean;
207
- pluginOptions?: any;
208
- required?: boolean;
209
- type?: "integer";
210
- }, {
211
- __t4s_required?: boolean;
212
- pluginOptions?: any;
213
- required?: boolean;
214
- type?: "integer";
215
- }>, z.ZodObject<{
216
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
217
- pluginOptions: z.ZodOptional<z.ZodAny>;
218
- required: z.ZodOptional<z.ZodBoolean>;
219
- type: z.ZodLiteral<"float">;
220
- }, "strip", z.ZodTypeAny, {
221
- __t4s_required?: boolean;
222
- pluginOptions?: any;
223
- required?: boolean;
224
- type?: "float";
225
- }, {
226
- __t4s_required?: boolean;
227
- pluginOptions?: any;
228
- required?: boolean;
229
- type?: "float";
230
- }>, z.ZodObject<{
231
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
232
- pluginOptions: z.ZodOptional<z.ZodAny>;
233
- required: z.ZodOptional<z.ZodBoolean>;
234
- type: z.ZodLiteral<"biginteger">;
235
- }, "strip", z.ZodTypeAny, {
236
- __t4s_required?: boolean;
237
- pluginOptions?: any;
238
- required?: boolean;
239
- type?: "biginteger";
240
- }, {
241
- __t4s_required?: boolean;
242
- pluginOptions?: any;
243
- required?: boolean;
244
- type?: "biginteger";
245
- }>, z.ZodObject<{
246
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
247
- pluginOptions: z.ZodOptional<z.ZodAny>;
248
- required: z.ZodOptional<z.ZodBoolean>;
249
- type: z.ZodLiteral<"decimal">;
250
- }, "strip", z.ZodTypeAny, {
251
- __t4s_required?: boolean;
252
- pluginOptions?: any;
253
- required?: boolean;
254
- type?: "decimal";
255
- }, {
256
- __t4s_required?: boolean;
257
- pluginOptions?: any;
258
- required?: boolean;
259
- type?: "decimal";
260
- }>]>;
261
- export type NumberAttribute = z.infer<typeof numberAttribute>;
262
- export declare const enumAttribute: z.ZodObject<{
263
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
264
- pluginOptions: z.ZodOptional<z.ZodAny>;
265
- required: z.ZodOptional<z.ZodBoolean>;
266
- type: z.ZodLiteral<"enumeration">;
267
- enum: z.ZodArray<z.ZodString, "many">;
268
- }, "strip", z.ZodTypeAny, {
269
- __t4s_required?: boolean;
270
- pluginOptions?: any;
271
- required?: boolean;
272
- type?: "enumeration";
273
- enum?: string[];
274
- }, {
275
- __t4s_required?: boolean;
276
- pluginOptions?: any;
277
- required?: boolean;
278
- type?: "enumeration";
279
- enum?: string[];
280
- }>;
281
- export type EnumAttribute = z.infer<typeof enumAttribute>;
282
- export declare const dateOnlyAttribute: z.ZodObject<{
283
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
284
- pluginOptions: z.ZodOptional<z.ZodAny>;
285
- required: z.ZodOptional<z.ZodBoolean>;
286
- type: z.ZodLiteral<"date">;
287
- }, "strip", z.ZodTypeAny, {
288
- __t4s_required?: boolean;
289
- pluginOptions?: any;
290
- required?: boolean;
291
- type?: "date";
292
- }, {
293
- __t4s_required?: boolean;
294
- pluginOptions?: any;
295
- required?: boolean;
296
- type?: "date";
297
- }>;
298
- export declare const dateTimeAttribute: z.ZodObject<{
299
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
300
- pluginOptions: z.ZodOptional<z.ZodAny>;
301
- required: z.ZodOptional<z.ZodBoolean>;
302
- type: z.ZodLiteral<"datetime">;
303
- }, "strip", z.ZodTypeAny, {
304
- __t4s_required?: boolean;
305
- pluginOptions?: any;
306
- required?: boolean;
307
- type?: "datetime";
308
- }, {
309
- __t4s_required?: boolean;
310
- pluginOptions?: any;
311
- required?: boolean;
312
- type?: "datetime";
313
- }>;
314
- export declare const timeAttribute: z.ZodObject<{
315
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
316
- pluginOptions: z.ZodOptional<z.ZodAny>;
317
- required: z.ZodOptional<z.ZodBoolean>;
318
- type: z.ZodLiteral<"time">;
319
- }, "strip", z.ZodTypeAny, {
320
- __t4s_required?: boolean;
321
- pluginOptions?: any;
322
- required?: boolean;
323
- type?: "time";
324
- }, {
325
- __t4s_required?: boolean;
326
- pluginOptions?: any;
327
- required?: boolean;
328
- type?: "time";
329
- }>;
330
- export declare const dateAttribute: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
331
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
332
- pluginOptions: z.ZodOptional<z.ZodAny>;
333
- required: z.ZodOptional<z.ZodBoolean>;
334
- type: z.ZodLiteral<"date">;
335
- }, "strip", z.ZodTypeAny, {
336
- __t4s_required?: boolean;
337
- pluginOptions?: any;
338
- required?: boolean;
339
- type?: "date";
340
- }, {
341
- __t4s_required?: boolean;
342
- pluginOptions?: any;
343
- required?: boolean;
344
- type?: "date";
345
- }>, z.ZodObject<{
346
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
347
- pluginOptions: z.ZodOptional<z.ZodAny>;
348
- required: z.ZodOptional<z.ZodBoolean>;
349
- type: z.ZodLiteral<"datetime">;
350
- }, "strip", z.ZodTypeAny, {
351
- __t4s_required?: boolean;
352
- pluginOptions?: any;
353
- required?: boolean;
354
- type?: "datetime";
355
- }, {
356
- __t4s_required?: boolean;
357
- pluginOptions?: any;
358
- required?: boolean;
359
- type?: "datetime";
360
- }>, z.ZodObject<{
361
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
362
- pluginOptions: z.ZodOptional<z.ZodAny>;
363
- required: z.ZodOptional<z.ZodBoolean>;
364
- type: z.ZodLiteral<"time">;
365
- }, "strip", z.ZodTypeAny, {
366
- __t4s_required?: boolean;
367
- pluginOptions?: any;
368
- required?: boolean;
369
- type?: "time";
370
- }, {
371
- __t4s_required?: boolean;
372
- pluginOptions?: any;
373
- required?: boolean;
374
- type?: "time";
375
- }>]>;
376
- export type DateAttribute = z.infer<typeof dateAttribute>;
377
- export declare const mediaAttribute: z.ZodObject<{
378
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
379
- pluginOptions: z.ZodOptional<z.ZodAny>;
380
- required: z.ZodOptional<z.ZodBoolean>;
381
- type: z.ZodLiteral<"media">;
382
- multiple: z.ZodOptional<z.ZodBoolean>;
383
- allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
384
- }, "strip", z.ZodTypeAny, {
385
- __t4s_required?: boolean;
386
- pluginOptions?: any;
387
- required?: boolean;
388
- type?: "media";
389
- multiple?: boolean;
390
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
391
- }, {
392
- __t4s_required?: boolean;
393
- pluginOptions?: any;
394
- required?: boolean;
395
- type?: "media";
396
- multiple?: boolean;
397
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
398
- }>;
399
- export type MediaAttribute = z.infer<typeof mediaAttribute>;
400
- export declare const booleanAttribute: z.ZodObject<{
401
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
402
- pluginOptions: z.ZodOptional<z.ZodAny>;
403
- required: z.ZodOptional<z.ZodBoolean>;
404
- type: z.ZodLiteral<"boolean">;
405
- }, "strip", z.ZodTypeAny, {
406
- __t4s_required?: boolean;
407
- pluginOptions?: any;
408
- required?: boolean;
409
- type?: "boolean";
410
- }, {
411
- __t4s_required?: boolean;
412
- pluginOptions?: any;
413
- required?: boolean;
414
- type?: "boolean";
415
- }>;
416
- export type BooleanAttribute = z.infer<typeof booleanAttribute>;
417
- export declare const baseRelationAttribute: z.ZodObject<{
418
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
419
- pluginOptions: z.ZodOptional<z.ZodAny>;
420
- required: z.ZodOptional<z.ZodBoolean>;
421
- type: z.ZodLiteral<"relation">;
422
- target: z.ZodString;
423
- }, "strip", z.ZodTypeAny, {
424
- __t4s_required?: boolean;
425
- pluginOptions?: any;
426
- required?: boolean;
427
- type?: "relation";
428
- target?: string;
429
- }, {
430
- __t4s_required?: boolean;
431
- pluginOptions?: any;
432
- required?: boolean;
433
- type?: "relation";
434
- target?: string;
435
- }>;
436
- export declare const hasOneAttribute: z.ZodObject<{
437
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
438
- pluginOptions: z.ZodOptional<z.ZodAny>;
439
- required: z.ZodOptional<z.ZodBoolean>;
440
- type: z.ZodLiteral<"relation">;
441
- target: z.ZodString;
442
- relation: z.ZodLiteral<"oneToOne">;
443
- }, "strip", z.ZodTypeAny, {
444
- __t4s_required?: boolean;
445
- pluginOptions?: any;
446
- required?: boolean;
447
- type?: "relation";
448
- target?: string;
449
- relation?: "oneToOne";
450
- }, {
451
- __t4s_required?: boolean;
452
- pluginOptions?: any;
453
- required?: boolean;
454
- type?: "relation";
455
- target?: string;
456
- relation?: "oneToOne";
457
- }>;
458
- export declare const oneToOneAttribute: z.ZodObject<{
459
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
460
- pluginOptions: z.ZodOptional<z.ZodAny>;
461
- required: z.ZodOptional<z.ZodBoolean>;
462
- type: z.ZodLiteral<"relation">;
463
- target: z.ZodString;
464
- relation: z.ZodLiteral<"oneToOne">;
465
- inversedBy: z.ZodString;
466
- }, "strip", z.ZodTypeAny, {
467
- __t4s_required?: boolean;
468
- pluginOptions?: any;
469
- required?: boolean;
470
- type?: "relation";
471
- target?: string;
472
- relation?: "oneToOne";
473
- inversedBy?: string;
474
- }, {
475
- __t4s_required?: boolean;
476
- pluginOptions?: any;
477
- required?: boolean;
478
- type?: "relation";
479
- target?: string;
480
- relation?: "oneToOne";
481
- inversedBy?: string;
482
- }>;
483
- export declare const belongsToManyAttribute: z.ZodObject<{
484
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
485
- pluginOptions: z.ZodOptional<z.ZodAny>;
486
- required: z.ZodOptional<z.ZodBoolean>;
487
- type: z.ZodLiteral<"relation">;
488
- target: z.ZodString;
489
- mappedBy: z.ZodString;
490
- relation: z.ZodLiteral<"oneToMany">;
491
- }, "strip", z.ZodTypeAny, {
492
- __t4s_required?: boolean;
493
- pluginOptions?: any;
494
- required?: boolean;
495
- type?: "relation";
496
- target?: string;
497
- mappedBy?: string;
498
- relation?: "oneToMany";
499
- }, {
500
- __t4s_required?: boolean;
501
- pluginOptions?: any;
502
- required?: boolean;
503
- type?: "relation";
504
- target?: string;
505
- mappedBy?: string;
506
- relation?: "oneToMany";
507
- }>;
508
- export declare const manyToOneAttribute: z.ZodObject<{
509
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
510
- pluginOptions: z.ZodOptional<z.ZodAny>;
511
- required: z.ZodOptional<z.ZodBoolean>;
512
- type: z.ZodLiteral<"relation">;
513
- target: z.ZodString;
514
- relation: z.ZodLiteral<"manyToOne">;
515
- inversedBy: z.ZodString;
516
- }, "strip", z.ZodTypeAny, {
517
- __t4s_required?: boolean;
518
- pluginOptions?: any;
519
- required?: boolean;
520
- type?: "relation";
521
- target?: string;
522
- relation?: "manyToOne";
523
- inversedBy?: string;
524
- }, {
525
- __t4s_required?: boolean;
526
- pluginOptions?: any;
527
- required?: boolean;
528
- type?: "relation";
529
- target?: string;
530
- relation?: "manyToOne";
531
- inversedBy?: string;
532
- }>;
533
- export declare const manyToManyAttribute: z.ZodObject<{
534
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
535
- pluginOptions: z.ZodOptional<z.ZodAny>;
536
- required: z.ZodOptional<z.ZodBoolean>;
537
- type: z.ZodLiteral<"relation">;
538
- target: z.ZodString;
539
- relation: z.ZodLiteral<"manyToMany">;
540
- inversedBy: z.ZodOptional<z.ZodString>;
541
- mappedBy: z.ZodOptional<z.ZodString>;
542
- }, "strip", z.ZodTypeAny, {
543
- __t4s_required?: boolean;
544
- pluginOptions?: any;
545
- required?: boolean;
546
- type?: "relation";
547
- target?: string;
548
- relation?: "manyToMany";
549
- inversedBy?: string;
550
- mappedBy?: string;
551
- }, {
552
- __t4s_required?: boolean;
553
- pluginOptions?: any;
554
- required?: boolean;
555
- type?: "relation";
556
- target?: string;
557
- relation?: "manyToMany";
558
- inversedBy?: string;
559
- mappedBy?: string;
560
- }>;
561
- export declare const hasManyAttribute: z.ZodObject<{
562
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
563
- pluginOptions: z.ZodOptional<z.ZodAny>;
564
- required: z.ZodOptional<z.ZodBoolean>;
565
- type: z.ZodLiteral<"relation">;
566
- target: z.ZodString;
567
- relation: z.ZodLiteral<"oneToMany">;
568
- }, "strip", z.ZodTypeAny, {
569
- __t4s_required?: boolean;
570
- pluginOptions?: any;
571
- required?: boolean;
572
- type?: "relation";
573
- target?: string;
574
- relation?: "oneToMany";
575
- }, {
576
- __t4s_required?: boolean;
577
- pluginOptions?: any;
578
- required?: boolean;
579
- type?: "relation";
580
- target?: string;
581
- relation?: "oneToMany";
582
- }>;
583
- export declare const morphToManyAttribute: z.ZodObject<{
584
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
585
- pluginOptions: z.ZodOptional<z.ZodAny>;
586
- required: z.ZodOptional<z.ZodBoolean>;
587
- type: z.ZodLiteral<"relation">;
588
- relation: z.ZodLiteral<"morphToMany">;
589
- }, "strip", z.ZodTypeAny, {
590
- __t4s_required?: boolean;
591
- pluginOptions?: any;
592
- required?: boolean;
593
- type?: "relation";
594
- relation?: "morphToMany";
595
- }, {
596
- __t4s_required?: boolean;
597
- pluginOptions?: any;
598
- required?: boolean;
599
- type?: "relation";
600
- relation?: "morphToMany";
601
- }>;
602
- export declare const morphOneAttribute: z.ZodObject<{
603
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
604
- pluginOptions: z.ZodOptional<z.ZodAny>;
605
- required: z.ZodOptional<z.ZodBoolean>;
606
- type: z.ZodLiteral<"relation">;
607
- relation: z.ZodLiteral<"morphToOne">;
608
- }, "strip", z.ZodTypeAny, {
609
- __t4s_required?: boolean;
610
- pluginOptions?: any;
611
- required?: boolean;
612
- type?: "relation";
613
- relation?: "morphToOne";
614
- }, {
615
- __t4s_required?: boolean;
616
- pluginOptions?: any;
617
- required?: boolean;
618
- type?: "relation";
619
- relation?: "morphToOne";
620
- }>;
621
- export declare const relationAttribute: z.ZodUnion<[z.ZodObject<{
622
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
623
- pluginOptions: z.ZodOptional<z.ZodAny>;
624
- required: z.ZodOptional<z.ZodBoolean>;
625
- type: z.ZodLiteral<"relation">;
626
- target: z.ZodString;
627
- relation: z.ZodLiteral<"oneToOne">;
628
- }, "strip", z.ZodTypeAny, {
629
- __t4s_required?: boolean;
630
- pluginOptions?: any;
631
- required?: boolean;
632
- type?: "relation";
633
- target?: string;
634
- relation?: "oneToOne";
635
- }, {
636
- __t4s_required?: boolean;
637
- pluginOptions?: any;
638
- required?: boolean;
639
- type?: "relation";
640
- target?: string;
641
- relation?: "oneToOne";
642
- }>, z.ZodObject<{
643
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
644
- pluginOptions: z.ZodOptional<z.ZodAny>;
645
- required: z.ZodOptional<z.ZodBoolean>;
646
- type: z.ZodLiteral<"relation">;
647
- target: z.ZodString;
648
- relation: z.ZodLiteral<"oneToOne">;
649
- inversedBy: z.ZodString;
650
- }, "strip", z.ZodTypeAny, {
651
- __t4s_required?: boolean;
652
- pluginOptions?: any;
653
- required?: boolean;
654
- type?: "relation";
655
- target?: string;
656
- relation?: "oneToOne";
657
- inversedBy?: string;
658
- }, {
659
- __t4s_required?: boolean;
660
- pluginOptions?: any;
661
- required?: boolean;
662
- type?: "relation";
663
- target?: string;
664
- relation?: "oneToOne";
665
- inversedBy?: string;
666
- }>, z.ZodObject<{
667
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
668
- pluginOptions: z.ZodOptional<z.ZodAny>;
669
- required: z.ZodOptional<z.ZodBoolean>;
670
- type: z.ZodLiteral<"relation">;
671
- target: z.ZodString;
672
- mappedBy: z.ZodString;
673
- relation: z.ZodLiteral<"oneToMany">;
674
- }, "strip", z.ZodTypeAny, {
675
- __t4s_required?: boolean;
676
- pluginOptions?: any;
677
- required?: boolean;
678
- type?: "relation";
679
- target?: string;
680
- mappedBy?: string;
681
- relation?: "oneToMany";
682
- }, {
683
- __t4s_required?: boolean;
684
- pluginOptions?: any;
685
- required?: boolean;
686
- type?: "relation";
687
- target?: string;
688
- mappedBy?: string;
689
- relation?: "oneToMany";
690
- }>, z.ZodObject<{
691
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
692
- pluginOptions: z.ZodOptional<z.ZodAny>;
693
- required: z.ZodOptional<z.ZodBoolean>;
694
- type: z.ZodLiteral<"relation">;
695
- target: z.ZodString;
696
- relation: z.ZodLiteral<"manyToOne">;
697
- inversedBy: z.ZodString;
698
- }, "strip", z.ZodTypeAny, {
699
- __t4s_required?: boolean;
700
- pluginOptions?: any;
701
- required?: boolean;
702
- type?: "relation";
703
- target?: string;
704
- relation?: "manyToOne";
705
- inversedBy?: string;
706
- }, {
707
- __t4s_required?: boolean;
708
- pluginOptions?: any;
709
- required?: boolean;
710
- type?: "relation";
711
- target?: string;
712
- relation?: "manyToOne";
713
- inversedBy?: string;
714
- }>, z.ZodObject<{
715
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
716
- pluginOptions: z.ZodOptional<z.ZodAny>;
717
- required: z.ZodOptional<z.ZodBoolean>;
718
- type: z.ZodLiteral<"relation">;
719
- target: z.ZodString;
720
- relation: z.ZodLiteral<"manyToMany">;
721
- inversedBy: z.ZodOptional<z.ZodString>;
722
- mappedBy: z.ZodOptional<z.ZodString>;
723
- }, "strip", z.ZodTypeAny, {
724
- __t4s_required?: boolean;
725
- pluginOptions?: any;
726
- required?: boolean;
727
- type?: "relation";
728
- target?: string;
729
- relation?: "manyToMany";
730
- inversedBy?: string;
731
- mappedBy?: string;
732
- }, {
733
- __t4s_required?: boolean;
734
- pluginOptions?: any;
735
- required?: boolean;
736
- type?: "relation";
737
- target?: string;
738
- relation?: "manyToMany";
739
- inversedBy?: string;
740
- mappedBy?: string;
741
- }>, z.ZodObject<{
742
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
743
- pluginOptions: z.ZodOptional<z.ZodAny>;
744
- required: z.ZodOptional<z.ZodBoolean>;
745
- type: z.ZodLiteral<"relation">;
746
- target: z.ZodString;
747
- relation: z.ZodLiteral<"oneToMany">;
748
- }, "strip", z.ZodTypeAny, {
749
- __t4s_required?: boolean;
750
- pluginOptions?: any;
751
- required?: boolean;
752
- type?: "relation";
753
- target?: string;
754
- relation?: "oneToMany";
755
- }, {
756
- __t4s_required?: boolean;
757
- pluginOptions?: any;
758
- required?: boolean;
759
- type?: "relation";
760
- target?: string;
761
- relation?: "oneToMany";
762
- }>, z.ZodObject<{
763
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
764
- pluginOptions: z.ZodOptional<z.ZodAny>;
765
- required: z.ZodOptional<z.ZodBoolean>;
766
- type: z.ZodLiteral<"relation">;
767
- relation: z.ZodLiteral<"morphToMany">;
768
- }, "strip", z.ZodTypeAny, {
769
- __t4s_required?: boolean;
770
- pluginOptions?: any;
771
- required?: boolean;
772
- type?: "relation";
773
- relation?: "morphToMany";
774
- }, {
775
- __t4s_required?: boolean;
776
- pluginOptions?: any;
777
- required?: boolean;
778
- type?: "relation";
779
- relation?: "morphToMany";
780
- }>, z.ZodObject<{
781
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
782
- pluginOptions: z.ZodOptional<z.ZodAny>;
783
- required: z.ZodOptional<z.ZodBoolean>;
784
- type: z.ZodLiteral<"relation">;
785
- relation: z.ZodLiteral<"morphToOne">;
786
- }, "strip", z.ZodTypeAny, {
787
- __t4s_required?: boolean;
788
- pluginOptions?: any;
789
- required?: boolean;
790
- type?: "relation";
791
- relation?: "morphToOne";
792
- }, {
793
- __t4s_required?: boolean;
794
- pluginOptions?: any;
795
- required?: boolean;
796
- type?: "relation";
797
- relation?: "morphToOne";
798
- }>]>;
799
- export type RelationAttribute = z.infer<typeof relationAttribute>;
800
- export declare const componentAttribute: z.ZodObject<{
801
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
802
- pluginOptions: z.ZodOptional<z.ZodAny>;
803
- required: z.ZodOptional<z.ZodBoolean>;
804
- type: z.ZodLiteral<"component">;
805
- repeatable: z.ZodOptional<z.ZodBoolean>;
806
- component: z.ZodString;
807
- }, "strip", z.ZodTypeAny, {
808
- __t4s_required?: boolean;
809
- pluginOptions?: any;
810
- required?: boolean;
811
- type?: "component";
812
- repeatable?: boolean;
813
- component?: string;
814
- }, {
815
- __t4s_required?: boolean;
816
- pluginOptions?: any;
817
- required?: boolean;
818
- type?: "component";
819
- repeatable?: boolean;
820
- component?: string;
821
- }>;
822
- export type ComponentAttribute = z.infer<typeof componentAttribute>;
823
- export declare const dynamiczoneAttribute: z.ZodObject<{
824
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
825
- pluginOptions: z.ZodOptional<z.ZodAny>;
826
- required: z.ZodOptional<z.ZodBoolean>;
827
- type: z.ZodLiteral<"dynamiczone">;
828
- components: z.ZodArray<z.ZodString, "many">;
829
- }, "strip", z.ZodTypeAny, {
830
- __t4s_required?: boolean;
831
- pluginOptions?: any;
832
- required?: boolean;
833
- type?: "dynamiczone";
834
- components?: string[];
835
- }, {
836
- __t4s_required?: boolean;
837
- pluginOptions?: any;
838
- required?: boolean;
839
- type?: "dynamiczone";
840
- components?: string[];
841
- }>;
842
- export type DynamiczoneAttribute = z.infer<typeof dynamiczoneAttribute>;
843
- export declare const knownAttribute: z.ZodUnion<[z.ZodObject<{
844
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
845
- pluginOptions: z.ZodOptional<z.ZodAny>;
846
- required: z.ZodOptional<z.ZodBoolean>;
847
- type: z.ZodEnum<["text", "string"]>;
848
- }, "strip", z.ZodTypeAny, {
849
- __t4s_required?: boolean;
850
- pluginOptions?: any;
851
- required?: boolean;
852
- type?: "string" | "text";
853
- }, {
854
- __t4s_required?: boolean;
855
- pluginOptions?: any;
856
- required?: boolean;
857
- type?: "string" | "text";
858
- }>, z.ZodObject<{
859
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
860
- pluginOptions: z.ZodOptional<z.ZodAny>;
861
- required: z.ZodOptional<z.ZodBoolean>;
862
- type: z.ZodLiteral<"email">;
863
- }, "strip", z.ZodTypeAny, {
864
- __t4s_required?: boolean;
865
- pluginOptions?: any;
866
- required?: boolean;
867
- type?: "email";
868
- }, {
869
- __t4s_required?: boolean;
870
- pluginOptions?: any;
871
- required?: boolean;
872
- type?: "email";
873
- }>, z.ZodObject<{
874
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
875
- pluginOptions: z.ZodOptional<z.ZodAny>;
876
- required: z.ZodOptional<z.ZodBoolean>;
877
- type: z.ZodLiteral<"uid">;
878
- targetField: z.ZodOptional<z.ZodString>;
879
- }, "strip", z.ZodTypeAny, {
880
- __t4s_required?: boolean;
881
- pluginOptions?: any;
882
- required?: boolean;
883
- type?: "uid";
884
- targetField?: string;
885
- }, {
886
- __t4s_required?: boolean;
887
- pluginOptions?: any;
888
- required?: boolean;
889
- type?: "uid";
890
- targetField?: string;
891
- }>, z.ZodObject<{
892
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
893
- pluginOptions: z.ZodOptional<z.ZodAny>;
894
- required: z.ZodOptional<z.ZodBoolean>;
895
- type: z.ZodLiteral<"richtext">;
896
- }, "strip", z.ZodTypeAny, {
897
- __t4s_required?: boolean;
898
- pluginOptions?: any;
899
- required?: boolean;
900
- type?: "richtext";
901
- }, {
902
- __t4s_required?: boolean;
903
- pluginOptions?: any;
904
- required?: boolean;
905
- type?: "richtext";
906
- }>, z.ZodObject<{
907
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
908
- pluginOptions: z.ZodOptional<z.ZodAny>;
909
- required: z.ZodOptional<z.ZodBoolean>;
910
- type: z.ZodLiteral<"blocks">;
911
- }, "strip", z.ZodTypeAny, {
912
- __t4s_required?: boolean;
913
- pluginOptions?: any;
914
- required?: boolean;
915
- type?: "blocks";
916
- }, {
917
- __t4s_required?: boolean;
918
- pluginOptions?: any;
919
- required?: boolean;
920
- type?: "blocks";
921
- }>, z.ZodObject<{
922
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
923
- pluginOptions: z.ZodOptional<z.ZodAny>;
924
- required: z.ZodOptional<z.ZodBoolean>;
925
- type: z.ZodLiteral<"json">;
926
- }, "strip", z.ZodTypeAny, {
927
- __t4s_required?: boolean;
928
- pluginOptions?: any;
929
- required?: boolean;
930
- type?: "json";
931
- }, {
932
- __t4s_required?: boolean;
933
- pluginOptions?: any;
934
- required?: boolean;
935
- type?: "json";
936
- }>, z.ZodObject<{
937
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
938
- pluginOptions: z.ZodOptional<z.ZodAny>;
939
- required: z.ZodOptional<z.ZodBoolean>;
940
- type: z.ZodLiteral<"password">;
941
- }, "strip", z.ZodTypeAny, {
942
- __t4s_required?: boolean;
943
- pluginOptions?: any;
944
- required?: boolean;
945
- type?: "password";
946
- }, {
947
- __t4s_required?: boolean;
948
- pluginOptions?: any;
949
- required?: boolean;
950
- type?: "password";
951
- }>, z.ZodObject<{
952
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
953
- pluginOptions: z.ZodOptional<z.ZodAny>;
954
- required: z.ZodOptional<z.ZodBoolean>;
955
- type: z.ZodLiteral<"integer">;
956
- }, "strip", z.ZodTypeAny, {
957
- __t4s_required?: boolean;
958
- pluginOptions?: any;
959
- required?: boolean;
960
- type?: "integer";
961
- }, {
962
- __t4s_required?: boolean;
963
- pluginOptions?: any;
964
- required?: boolean;
965
- type?: "integer";
966
- }>, z.ZodObject<{
967
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
968
- pluginOptions: z.ZodOptional<z.ZodAny>;
969
- required: z.ZodOptional<z.ZodBoolean>;
970
- type: z.ZodLiteral<"float">;
971
- }, "strip", z.ZodTypeAny, {
972
- __t4s_required?: boolean;
973
- pluginOptions?: any;
974
- required?: boolean;
975
- type?: "float";
976
- }, {
977
- __t4s_required?: boolean;
978
- pluginOptions?: any;
979
- required?: boolean;
980
- type?: "float";
981
- }>, z.ZodObject<{
982
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
983
- pluginOptions: z.ZodOptional<z.ZodAny>;
984
- required: z.ZodOptional<z.ZodBoolean>;
985
- type: z.ZodLiteral<"biginteger">;
986
- }, "strip", z.ZodTypeAny, {
987
- __t4s_required?: boolean;
988
- pluginOptions?: any;
989
- required?: boolean;
990
- type?: "biginteger";
991
- }, {
992
- __t4s_required?: boolean;
993
- pluginOptions?: any;
994
- required?: boolean;
995
- type?: "biginteger";
996
- }>, z.ZodObject<{
997
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
998
- pluginOptions: z.ZodOptional<z.ZodAny>;
999
- required: z.ZodOptional<z.ZodBoolean>;
1000
- type: z.ZodLiteral<"decimal">;
1001
- }, "strip", z.ZodTypeAny, {
1002
- __t4s_required?: boolean;
1003
- pluginOptions?: any;
1004
- required?: boolean;
1005
- type?: "decimal";
1006
- }, {
1007
- __t4s_required?: boolean;
1008
- pluginOptions?: any;
1009
- required?: boolean;
1010
- type?: "decimal";
1011
- }>, z.ZodObject<{
1012
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1013
- pluginOptions: z.ZodOptional<z.ZodAny>;
1014
- required: z.ZodOptional<z.ZodBoolean>;
1015
- type: z.ZodLiteral<"enumeration">;
1016
- enum: z.ZodArray<z.ZodString, "many">;
1017
- }, "strip", z.ZodTypeAny, {
1018
- __t4s_required?: boolean;
1019
- pluginOptions?: any;
1020
- required?: boolean;
1021
- type?: "enumeration";
1022
- enum?: string[];
1023
- }, {
1024
- __t4s_required?: boolean;
1025
- pluginOptions?: any;
1026
- required?: boolean;
1027
- type?: "enumeration";
1028
- enum?: string[];
1029
- }>, z.ZodObject<{
1030
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1031
- pluginOptions: z.ZodOptional<z.ZodAny>;
1032
- required: z.ZodOptional<z.ZodBoolean>;
1033
- type: z.ZodLiteral<"date">;
1034
- }, "strip", z.ZodTypeAny, {
1035
- __t4s_required?: boolean;
1036
- pluginOptions?: any;
1037
- required?: boolean;
1038
- type?: "date";
1039
- }, {
1040
- __t4s_required?: boolean;
1041
- pluginOptions?: any;
1042
- required?: boolean;
1043
- type?: "date";
1044
- }>, z.ZodObject<{
1045
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1046
- pluginOptions: z.ZodOptional<z.ZodAny>;
1047
- required: z.ZodOptional<z.ZodBoolean>;
1048
- type: z.ZodLiteral<"datetime">;
1049
- }, "strip", z.ZodTypeAny, {
1050
- __t4s_required?: boolean;
1051
- pluginOptions?: any;
1052
- required?: boolean;
1053
- type?: "datetime";
1054
- }, {
1055
- __t4s_required?: boolean;
1056
- pluginOptions?: any;
1057
- required?: boolean;
1058
- type?: "datetime";
1059
- }>, z.ZodObject<{
1060
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1061
- pluginOptions: z.ZodOptional<z.ZodAny>;
1062
- required: z.ZodOptional<z.ZodBoolean>;
1063
- type: z.ZodLiteral<"time">;
1064
- }, "strip", z.ZodTypeAny, {
1065
- __t4s_required?: boolean;
1066
- pluginOptions?: any;
1067
- required?: boolean;
1068
- type?: "time";
1069
- }, {
1070
- __t4s_required?: boolean;
1071
- pluginOptions?: any;
1072
- required?: boolean;
1073
- type?: "time";
1074
- }>, z.ZodObject<{
1075
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1076
- pluginOptions: z.ZodOptional<z.ZodAny>;
1077
- required: z.ZodOptional<z.ZodBoolean>;
1078
- type: z.ZodLiteral<"media">;
1079
- multiple: z.ZodOptional<z.ZodBoolean>;
1080
- allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
1081
- }, "strip", z.ZodTypeAny, {
1082
- __t4s_required?: boolean;
1083
- pluginOptions?: any;
1084
- required?: boolean;
1085
- type?: "media";
1086
- multiple?: boolean;
1087
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
1088
- }, {
1089
- __t4s_required?: boolean;
1090
- pluginOptions?: any;
1091
- required?: boolean;
1092
- type?: "media";
1093
- multiple?: boolean;
1094
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
1095
- }>, z.ZodObject<{
1096
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1097
- pluginOptions: z.ZodOptional<z.ZodAny>;
1098
- required: z.ZodOptional<z.ZodBoolean>;
1099
- type: z.ZodLiteral<"boolean">;
1100
- }, "strip", z.ZodTypeAny, {
1101
- __t4s_required?: boolean;
1102
- pluginOptions?: any;
1103
- required?: boolean;
1104
- type?: "boolean";
1105
- }, {
1106
- __t4s_required?: boolean;
1107
- pluginOptions?: any;
1108
- required?: boolean;
1109
- type?: "boolean";
1110
- }>, z.ZodObject<{
1111
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1112
- pluginOptions: z.ZodOptional<z.ZodAny>;
1113
- required: z.ZodOptional<z.ZodBoolean>;
1114
- type: z.ZodLiteral<"relation">;
1115
- target: z.ZodString;
1116
- relation: z.ZodLiteral<"oneToOne">;
1117
- }, "strip", z.ZodTypeAny, {
1118
- __t4s_required?: boolean;
1119
- pluginOptions?: any;
1120
- required?: boolean;
1121
- type?: "relation";
1122
- target?: string;
1123
- relation?: "oneToOne";
1124
- }, {
1125
- __t4s_required?: boolean;
1126
- pluginOptions?: any;
1127
- required?: boolean;
1128
- type?: "relation";
1129
- target?: string;
1130
- relation?: "oneToOne";
1131
- }>, z.ZodObject<{
1132
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1133
- pluginOptions: z.ZodOptional<z.ZodAny>;
1134
- required: z.ZodOptional<z.ZodBoolean>;
1135
- type: z.ZodLiteral<"relation">;
1136
- target: z.ZodString;
1137
- relation: z.ZodLiteral<"oneToOne">;
1138
- inversedBy: z.ZodString;
1139
- }, "strip", z.ZodTypeAny, {
1140
- __t4s_required?: boolean;
1141
- pluginOptions?: any;
1142
- required?: boolean;
1143
- type?: "relation";
1144
- target?: string;
1145
- relation?: "oneToOne";
1146
- inversedBy?: string;
1147
- }, {
1148
- __t4s_required?: boolean;
1149
- pluginOptions?: any;
1150
- required?: boolean;
1151
- type?: "relation";
1152
- target?: string;
1153
- relation?: "oneToOne";
1154
- inversedBy?: string;
1155
- }>, z.ZodObject<{
1156
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1157
- pluginOptions: z.ZodOptional<z.ZodAny>;
1158
- required: z.ZodOptional<z.ZodBoolean>;
1159
- type: z.ZodLiteral<"relation">;
1160
- target: z.ZodString;
1161
- mappedBy: z.ZodString;
1162
- relation: z.ZodLiteral<"oneToMany">;
1163
- }, "strip", z.ZodTypeAny, {
1164
- __t4s_required?: boolean;
1165
- pluginOptions?: any;
1166
- required?: boolean;
1167
- type?: "relation";
1168
- target?: string;
1169
- mappedBy?: string;
1170
- relation?: "oneToMany";
1171
- }, {
1172
- __t4s_required?: boolean;
1173
- pluginOptions?: any;
1174
- required?: boolean;
1175
- type?: "relation";
1176
- target?: string;
1177
- mappedBy?: string;
1178
- relation?: "oneToMany";
1179
- }>, z.ZodObject<{
1180
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1181
- pluginOptions: z.ZodOptional<z.ZodAny>;
1182
- required: z.ZodOptional<z.ZodBoolean>;
1183
- type: z.ZodLiteral<"relation">;
1184
- target: z.ZodString;
1185
- relation: z.ZodLiteral<"manyToOne">;
1186
- inversedBy: z.ZodString;
1187
- }, "strip", z.ZodTypeAny, {
1188
- __t4s_required?: boolean;
1189
- pluginOptions?: any;
1190
- required?: boolean;
1191
- type?: "relation";
1192
- target?: string;
1193
- relation?: "manyToOne";
1194
- inversedBy?: string;
1195
- }, {
1196
- __t4s_required?: boolean;
1197
- pluginOptions?: any;
1198
- required?: boolean;
1199
- type?: "relation";
1200
- target?: string;
1201
- relation?: "manyToOne";
1202
- inversedBy?: string;
1203
- }>, z.ZodObject<{
1204
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1205
- pluginOptions: z.ZodOptional<z.ZodAny>;
1206
- required: z.ZodOptional<z.ZodBoolean>;
1207
- type: z.ZodLiteral<"relation">;
1208
- target: z.ZodString;
1209
- relation: z.ZodLiteral<"manyToMany">;
1210
- inversedBy: z.ZodOptional<z.ZodString>;
1211
- mappedBy: z.ZodOptional<z.ZodString>;
1212
- }, "strip", z.ZodTypeAny, {
1213
- __t4s_required?: boolean;
1214
- pluginOptions?: any;
1215
- required?: boolean;
1216
- type?: "relation";
1217
- target?: string;
1218
- relation?: "manyToMany";
1219
- inversedBy?: string;
1220
- mappedBy?: string;
1221
- }, {
1222
- __t4s_required?: boolean;
1223
- pluginOptions?: any;
1224
- required?: boolean;
1225
- type?: "relation";
1226
- target?: string;
1227
- relation?: "manyToMany";
1228
- inversedBy?: string;
1229
- mappedBy?: string;
1230
- }>, z.ZodObject<{
1231
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1232
- pluginOptions: z.ZodOptional<z.ZodAny>;
1233
- required: z.ZodOptional<z.ZodBoolean>;
1234
- type: z.ZodLiteral<"relation">;
1235
- target: z.ZodString;
1236
- relation: z.ZodLiteral<"oneToMany">;
1237
- }, "strip", z.ZodTypeAny, {
1238
- __t4s_required?: boolean;
1239
- pluginOptions?: any;
1240
- required?: boolean;
1241
- type?: "relation";
1242
- target?: string;
1243
- relation?: "oneToMany";
1244
- }, {
1245
- __t4s_required?: boolean;
1246
- pluginOptions?: any;
1247
- required?: boolean;
1248
- type?: "relation";
1249
- target?: string;
1250
- relation?: "oneToMany";
1251
- }>, z.ZodObject<{
1252
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1253
- pluginOptions: z.ZodOptional<z.ZodAny>;
1254
- required: z.ZodOptional<z.ZodBoolean>;
1255
- type: z.ZodLiteral<"relation">;
1256
- relation: z.ZodLiteral<"morphToMany">;
1257
- }, "strip", z.ZodTypeAny, {
1258
- __t4s_required?: boolean;
1259
- pluginOptions?: any;
1260
- required?: boolean;
1261
- type?: "relation";
1262
- relation?: "morphToMany";
1263
- }, {
1264
- __t4s_required?: boolean;
1265
- pluginOptions?: any;
1266
- required?: boolean;
1267
- type?: "relation";
1268
- relation?: "morphToMany";
1269
- }>, z.ZodObject<{
1270
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1271
- pluginOptions: z.ZodOptional<z.ZodAny>;
1272
- required: z.ZodOptional<z.ZodBoolean>;
1273
- type: z.ZodLiteral<"relation">;
1274
- relation: z.ZodLiteral<"morphToOne">;
1275
- }, "strip", z.ZodTypeAny, {
1276
- __t4s_required?: boolean;
1277
- pluginOptions?: any;
1278
- required?: boolean;
1279
- type?: "relation";
1280
- relation?: "morphToOne";
1281
- }, {
1282
- __t4s_required?: boolean;
1283
- pluginOptions?: any;
1284
- required?: boolean;
1285
- type?: "relation";
1286
- relation?: "morphToOne";
1287
- }>, z.ZodObject<{
1288
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1289
- pluginOptions: z.ZodOptional<z.ZodAny>;
1290
- required: z.ZodOptional<z.ZodBoolean>;
1291
- type: z.ZodLiteral<"component">;
1292
- repeatable: z.ZodOptional<z.ZodBoolean>;
1293
- component: z.ZodString;
1294
- }, "strip", z.ZodTypeAny, {
1295
- __t4s_required?: boolean;
1296
- pluginOptions?: any;
1297
- required?: boolean;
1298
- type?: "component";
1299
- repeatable?: boolean;
1300
- component?: string;
1301
- }, {
1302
- __t4s_required?: boolean;
1303
- pluginOptions?: any;
1304
- required?: boolean;
1305
- type?: "component";
1306
- repeatable?: boolean;
1307
- component?: string;
1308
- }>]>;
1309
- export type KnownAttribute = z.infer<typeof knownAttribute>;
1310
- export declare const anyAttribute: z.ZodObject<{
1311
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1312
- pluginOptions: z.ZodOptional<z.ZodAny>;
1313
- required: z.ZodOptional<z.ZodBoolean>;
1314
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
1315
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1316
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1317
- pluginOptions: z.ZodOptional<z.ZodAny>;
1318
- required: z.ZodOptional<z.ZodBoolean>;
1319
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
1320
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1321
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1322
- pluginOptions: z.ZodOptional<z.ZodAny>;
1323
- required: z.ZodOptional<z.ZodBoolean>;
1324
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
1325
- }, z.ZodTypeAny, "passthrough">>;
1326
- export type AnyAttribute = z.infer<typeof anyAttribute>;
1327
- export declare const attribute: z.ZodUnion<[z.ZodObject<{
1328
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1329
- pluginOptions: z.ZodOptional<z.ZodAny>;
1330
- required: z.ZodOptional<z.ZodBoolean>;
1331
- type: z.ZodEnum<["text", "string"]>;
1332
- }, "strip", z.ZodTypeAny, {
1333
- __t4s_required?: boolean;
1334
- pluginOptions?: any;
1335
- required?: boolean;
1336
- type?: "string" | "text";
1337
- }, {
1338
- __t4s_required?: boolean;
1339
- pluginOptions?: any;
1340
- required?: boolean;
1341
- type?: "string" | "text";
1342
- }>, z.ZodObject<{
1343
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1344
- pluginOptions: z.ZodOptional<z.ZodAny>;
1345
- required: z.ZodOptional<z.ZodBoolean>;
1346
- type: z.ZodLiteral<"email">;
1347
- }, "strip", z.ZodTypeAny, {
1348
- __t4s_required?: boolean;
1349
- pluginOptions?: any;
1350
- required?: boolean;
1351
- type?: "email";
1352
- }, {
1353
- __t4s_required?: boolean;
1354
- pluginOptions?: any;
1355
- required?: boolean;
1356
- type?: "email";
1357
- }>, z.ZodObject<{
1358
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1359
- pluginOptions: z.ZodOptional<z.ZodAny>;
1360
- required: z.ZodOptional<z.ZodBoolean>;
1361
- type: z.ZodLiteral<"uid">;
1362
- targetField: z.ZodOptional<z.ZodString>;
1363
- }, "strip", z.ZodTypeAny, {
1364
- __t4s_required?: boolean;
1365
- pluginOptions?: any;
1366
- required?: boolean;
1367
- type?: "uid";
1368
- targetField?: string;
1369
- }, {
1370
- __t4s_required?: boolean;
1371
- pluginOptions?: any;
1372
- required?: boolean;
1373
- type?: "uid";
1374
- targetField?: string;
1375
- }>, z.ZodObject<{
1376
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1377
- pluginOptions: z.ZodOptional<z.ZodAny>;
1378
- required: z.ZodOptional<z.ZodBoolean>;
1379
- type: z.ZodLiteral<"richtext">;
1380
- }, "strip", z.ZodTypeAny, {
1381
- __t4s_required?: boolean;
1382
- pluginOptions?: any;
1383
- required?: boolean;
1384
- type?: "richtext";
1385
- }, {
1386
- __t4s_required?: boolean;
1387
- pluginOptions?: any;
1388
- required?: boolean;
1389
- type?: "richtext";
1390
- }>, z.ZodObject<{
1391
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1392
- pluginOptions: z.ZodOptional<z.ZodAny>;
1393
- required: z.ZodOptional<z.ZodBoolean>;
1394
- type: z.ZodLiteral<"blocks">;
1395
- }, "strip", z.ZodTypeAny, {
1396
- __t4s_required?: boolean;
1397
- pluginOptions?: any;
1398
- required?: boolean;
1399
- type?: "blocks";
1400
- }, {
1401
- __t4s_required?: boolean;
1402
- pluginOptions?: any;
1403
- required?: boolean;
1404
- type?: "blocks";
1405
- }>, z.ZodObject<{
1406
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1407
- pluginOptions: z.ZodOptional<z.ZodAny>;
1408
- required: z.ZodOptional<z.ZodBoolean>;
1409
- type: z.ZodLiteral<"json">;
1410
- }, "strip", z.ZodTypeAny, {
1411
- __t4s_required?: boolean;
1412
- pluginOptions?: any;
1413
- required?: boolean;
1414
- type?: "json";
1415
- }, {
1416
- __t4s_required?: boolean;
1417
- pluginOptions?: any;
1418
- required?: boolean;
1419
- type?: "json";
1420
- }>, z.ZodObject<{
1421
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1422
- pluginOptions: z.ZodOptional<z.ZodAny>;
1423
- required: z.ZodOptional<z.ZodBoolean>;
1424
- type: z.ZodLiteral<"password">;
1425
- }, "strip", z.ZodTypeAny, {
1426
- __t4s_required?: boolean;
1427
- pluginOptions?: any;
1428
- required?: boolean;
1429
- type?: "password";
1430
- }, {
1431
- __t4s_required?: boolean;
1432
- pluginOptions?: any;
1433
- required?: boolean;
1434
- type?: "password";
1435
- }>, z.ZodObject<{
1436
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1437
- pluginOptions: z.ZodOptional<z.ZodAny>;
1438
- required: z.ZodOptional<z.ZodBoolean>;
1439
- type: z.ZodLiteral<"integer">;
1440
- }, "strip", z.ZodTypeAny, {
1441
- __t4s_required?: boolean;
1442
- pluginOptions?: any;
1443
- required?: boolean;
1444
- type?: "integer";
1445
- }, {
1446
- __t4s_required?: boolean;
1447
- pluginOptions?: any;
1448
- required?: boolean;
1449
- type?: "integer";
1450
- }>, z.ZodObject<{
1451
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1452
- pluginOptions: z.ZodOptional<z.ZodAny>;
1453
- required: z.ZodOptional<z.ZodBoolean>;
1454
- type: z.ZodLiteral<"float">;
1455
- }, "strip", z.ZodTypeAny, {
1456
- __t4s_required?: boolean;
1457
- pluginOptions?: any;
1458
- required?: boolean;
1459
- type?: "float";
1460
- }, {
1461
- __t4s_required?: boolean;
1462
- pluginOptions?: any;
1463
- required?: boolean;
1464
- type?: "float";
1465
- }>, z.ZodObject<{
1466
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1467
- pluginOptions: z.ZodOptional<z.ZodAny>;
1468
- required: z.ZodOptional<z.ZodBoolean>;
1469
- type: z.ZodLiteral<"biginteger">;
1470
- }, "strip", z.ZodTypeAny, {
1471
- __t4s_required?: boolean;
1472
- pluginOptions?: any;
1473
- required?: boolean;
1474
- type?: "biginteger";
1475
- }, {
1476
- __t4s_required?: boolean;
1477
- pluginOptions?: any;
1478
- required?: boolean;
1479
- type?: "biginteger";
1480
- }>, z.ZodObject<{
1481
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1482
- pluginOptions: z.ZodOptional<z.ZodAny>;
1483
- required: z.ZodOptional<z.ZodBoolean>;
1484
- type: z.ZodLiteral<"decimal">;
1485
- }, "strip", z.ZodTypeAny, {
1486
- __t4s_required?: boolean;
1487
- pluginOptions?: any;
1488
- required?: boolean;
1489
- type?: "decimal";
1490
- }, {
1491
- __t4s_required?: boolean;
1492
- pluginOptions?: any;
1493
- required?: boolean;
1494
- type?: "decimal";
1495
- }>, z.ZodObject<{
1496
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1497
- pluginOptions: z.ZodOptional<z.ZodAny>;
1498
- required: z.ZodOptional<z.ZodBoolean>;
1499
- type: z.ZodLiteral<"enumeration">;
1500
- enum: z.ZodArray<z.ZodString, "many">;
1501
- }, "strip", z.ZodTypeAny, {
1502
- __t4s_required?: boolean;
1503
- pluginOptions?: any;
1504
- required?: boolean;
1505
- type?: "enumeration";
1506
- enum?: string[];
1507
- }, {
1508
- __t4s_required?: boolean;
1509
- pluginOptions?: any;
1510
- required?: boolean;
1511
- type?: "enumeration";
1512
- enum?: string[];
1513
- }>, z.ZodObject<{
1514
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1515
- pluginOptions: z.ZodOptional<z.ZodAny>;
1516
- required: z.ZodOptional<z.ZodBoolean>;
1517
- type: z.ZodLiteral<"date">;
1518
- }, "strip", z.ZodTypeAny, {
1519
- __t4s_required?: boolean;
1520
- pluginOptions?: any;
1521
- required?: boolean;
1522
- type?: "date";
1523
- }, {
1524
- __t4s_required?: boolean;
1525
- pluginOptions?: any;
1526
- required?: boolean;
1527
- type?: "date";
1528
- }>, z.ZodObject<{
1529
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1530
- pluginOptions: z.ZodOptional<z.ZodAny>;
1531
- required: z.ZodOptional<z.ZodBoolean>;
1532
- type: z.ZodLiteral<"datetime">;
1533
- }, "strip", z.ZodTypeAny, {
1534
- __t4s_required?: boolean;
1535
- pluginOptions?: any;
1536
- required?: boolean;
1537
- type?: "datetime";
1538
- }, {
1539
- __t4s_required?: boolean;
1540
- pluginOptions?: any;
1541
- required?: boolean;
1542
- type?: "datetime";
1543
- }>, z.ZodObject<{
1544
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1545
- pluginOptions: z.ZodOptional<z.ZodAny>;
1546
- required: z.ZodOptional<z.ZodBoolean>;
1547
- type: z.ZodLiteral<"time">;
1548
- }, "strip", z.ZodTypeAny, {
1549
- __t4s_required?: boolean;
1550
- pluginOptions?: any;
1551
- required?: boolean;
1552
- type?: "time";
1553
- }, {
1554
- __t4s_required?: boolean;
1555
- pluginOptions?: any;
1556
- required?: boolean;
1557
- type?: "time";
1558
- }>, z.ZodObject<{
1559
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1560
- pluginOptions: z.ZodOptional<z.ZodAny>;
1561
- required: z.ZodOptional<z.ZodBoolean>;
1562
- type: z.ZodLiteral<"media">;
1563
- multiple: z.ZodOptional<z.ZodBoolean>;
1564
- allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
1565
- }, "strip", z.ZodTypeAny, {
1566
- __t4s_required?: boolean;
1567
- pluginOptions?: any;
1568
- required?: boolean;
1569
- type?: "media";
1570
- multiple?: boolean;
1571
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
1572
- }, {
1573
- __t4s_required?: boolean;
1574
- pluginOptions?: any;
1575
- required?: boolean;
1576
- type?: "media";
1577
- multiple?: boolean;
1578
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
1579
- }>, z.ZodObject<{
1580
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1581
- pluginOptions: z.ZodOptional<z.ZodAny>;
1582
- required: z.ZodOptional<z.ZodBoolean>;
1583
- type: z.ZodLiteral<"boolean">;
1584
- }, "strip", z.ZodTypeAny, {
1585
- __t4s_required?: boolean;
1586
- pluginOptions?: any;
1587
- required?: boolean;
1588
- type?: "boolean";
1589
- }, {
1590
- __t4s_required?: boolean;
1591
- pluginOptions?: any;
1592
- required?: boolean;
1593
- type?: "boolean";
1594
- }>, z.ZodObject<{
1595
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1596
- pluginOptions: z.ZodOptional<z.ZodAny>;
1597
- required: z.ZodOptional<z.ZodBoolean>;
1598
- type: z.ZodLiteral<"relation">;
1599
- target: z.ZodString;
1600
- relation: z.ZodLiteral<"oneToOne">;
1601
- }, "strip", z.ZodTypeAny, {
1602
- __t4s_required?: boolean;
1603
- pluginOptions?: any;
1604
- required?: boolean;
1605
- type?: "relation";
1606
- target?: string;
1607
- relation?: "oneToOne";
1608
- }, {
1609
- __t4s_required?: boolean;
1610
- pluginOptions?: any;
1611
- required?: boolean;
1612
- type?: "relation";
1613
- target?: string;
1614
- relation?: "oneToOne";
1615
- }>, z.ZodObject<{
1616
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1617
- pluginOptions: z.ZodOptional<z.ZodAny>;
1618
- required: z.ZodOptional<z.ZodBoolean>;
1619
- type: z.ZodLiteral<"relation">;
1620
- target: z.ZodString;
1621
- relation: z.ZodLiteral<"oneToOne">;
1622
- inversedBy: z.ZodString;
1623
- }, "strip", z.ZodTypeAny, {
1624
- __t4s_required?: boolean;
1625
- pluginOptions?: any;
1626
- required?: boolean;
1627
- type?: "relation";
1628
- target?: string;
1629
- relation?: "oneToOne";
1630
- inversedBy?: string;
1631
- }, {
1632
- __t4s_required?: boolean;
1633
- pluginOptions?: any;
1634
- required?: boolean;
1635
- type?: "relation";
1636
- target?: string;
1637
- relation?: "oneToOne";
1638
- inversedBy?: string;
1639
- }>, z.ZodObject<{
1640
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1641
- pluginOptions: z.ZodOptional<z.ZodAny>;
1642
- required: z.ZodOptional<z.ZodBoolean>;
1643
- type: z.ZodLiteral<"relation">;
1644
- target: z.ZodString;
1645
- mappedBy: z.ZodString;
1646
- relation: z.ZodLiteral<"oneToMany">;
1647
- }, "strip", z.ZodTypeAny, {
1648
- __t4s_required?: boolean;
1649
- pluginOptions?: any;
1650
- required?: boolean;
1651
- type?: "relation";
1652
- target?: string;
1653
- mappedBy?: string;
1654
- relation?: "oneToMany";
1655
- }, {
1656
- __t4s_required?: boolean;
1657
- pluginOptions?: any;
1658
- required?: boolean;
1659
- type?: "relation";
1660
- target?: string;
1661
- mappedBy?: string;
1662
- relation?: "oneToMany";
1663
- }>, z.ZodObject<{
1664
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1665
- pluginOptions: z.ZodOptional<z.ZodAny>;
1666
- required: z.ZodOptional<z.ZodBoolean>;
1667
- type: z.ZodLiteral<"relation">;
1668
- target: z.ZodString;
1669
- relation: z.ZodLiteral<"manyToOne">;
1670
- inversedBy: z.ZodString;
1671
- }, "strip", z.ZodTypeAny, {
1672
- __t4s_required?: boolean;
1673
- pluginOptions?: any;
1674
- required?: boolean;
1675
- type?: "relation";
1676
- target?: string;
1677
- relation?: "manyToOne";
1678
- inversedBy?: string;
1679
- }, {
1680
- __t4s_required?: boolean;
1681
- pluginOptions?: any;
1682
- required?: boolean;
1683
- type?: "relation";
1684
- target?: string;
1685
- relation?: "manyToOne";
1686
- inversedBy?: string;
1687
- }>, z.ZodObject<{
1688
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1689
- pluginOptions: z.ZodOptional<z.ZodAny>;
1690
- required: z.ZodOptional<z.ZodBoolean>;
1691
- type: z.ZodLiteral<"relation">;
1692
- target: z.ZodString;
1693
- relation: z.ZodLiteral<"manyToMany">;
1694
- inversedBy: z.ZodOptional<z.ZodString>;
1695
- mappedBy: z.ZodOptional<z.ZodString>;
1696
- }, "strip", z.ZodTypeAny, {
1697
- __t4s_required?: boolean;
1698
- pluginOptions?: any;
1699
- required?: boolean;
1700
- type?: "relation";
1701
- target?: string;
1702
- relation?: "manyToMany";
1703
- inversedBy?: string;
1704
- mappedBy?: string;
1705
- }, {
1706
- __t4s_required?: boolean;
1707
- pluginOptions?: any;
1708
- required?: boolean;
1709
- type?: "relation";
1710
- target?: string;
1711
- relation?: "manyToMany";
1712
- inversedBy?: string;
1713
- mappedBy?: string;
1714
- }>, z.ZodObject<{
1715
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1716
- pluginOptions: z.ZodOptional<z.ZodAny>;
1717
- required: z.ZodOptional<z.ZodBoolean>;
1718
- type: z.ZodLiteral<"relation">;
1719
- target: z.ZodString;
1720
- relation: z.ZodLiteral<"oneToMany">;
1721
- }, "strip", z.ZodTypeAny, {
1722
- __t4s_required?: boolean;
1723
- pluginOptions?: any;
1724
- required?: boolean;
1725
- type?: "relation";
1726
- target?: string;
1727
- relation?: "oneToMany";
1728
- }, {
1729
- __t4s_required?: boolean;
1730
- pluginOptions?: any;
1731
- required?: boolean;
1732
- type?: "relation";
1733
- target?: string;
1734
- relation?: "oneToMany";
1735
- }>, z.ZodObject<{
1736
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1737
- pluginOptions: z.ZodOptional<z.ZodAny>;
1738
- required: z.ZodOptional<z.ZodBoolean>;
1739
- type: z.ZodLiteral<"relation">;
1740
- relation: z.ZodLiteral<"morphToMany">;
1741
- }, "strip", z.ZodTypeAny, {
1742
- __t4s_required?: boolean;
1743
- pluginOptions?: any;
1744
- required?: boolean;
1745
- type?: "relation";
1746
- relation?: "morphToMany";
1747
- }, {
1748
- __t4s_required?: boolean;
1749
- pluginOptions?: any;
1750
- required?: boolean;
1751
- type?: "relation";
1752
- relation?: "morphToMany";
1753
- }>, z.ZodObject<{
1754
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1755
- pluginOptions: z.ZodOptional<z.ZodAny>;
1756
- required: z.ZodOptional<z.ZodBoolean>;
1757
- type: z.ZodLiteral<"relation">;
1758
- relation: z.ZodLiteral<"morphToOne">;
1759
- }, "strip", z.ZodTypeAny, {
1760
- __t4s_required?: boolean;
1761
- pluginOptions?: any;
1762
- required?: boolean;
1763
- type?: "relation";
1764
- relation?: "morphToOne";
1765
- }, {
1766
- __t4s_required?: boolean;
1767
- pluginOptions?: any;
1768
- required?: boolean;
1769
- type?: "relation";
1770
- relation?: "morphToOne";
1771
- }>, z.ZodObject<{
1772
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1773
- pluginOptions: z.ZodOptional<z.ZodAny>;
1774
- required: z.ZodOptional<z.ZodBoolean>;
1775
- type: z.ZodLiteral<"component">;
1776
- repeatable: z.ZodOptional<z.ZodBoolean>;
1777
- component: z.ZodString;
1778
- }, "strip", z.ZodTypeAny, {
1779
- __t4s_required?: boolean;
1780
- pluginOptions?: any;
1781
- required?: boolean;
1782
- type?: "component";
1783
- repeatable?: boolean;
1784
- component?: string;
1785
- }, {
1786
- __t4s_required?: boolean;
1787
- pluginOptions?: any;
1788
- required?: boolean;
1789
- type?: "component";
1790
- repeatable?: boolean;
1791
- component?: string;
1792
- }>, z.ZodObject<{
1793
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1794
- pluginOptions: z.ZodOptional<z.ZodAny>;
1795
- required: z.ZodOptional<z.ZodBoolean>;
1796
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
1797
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1798
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1799
- pluginOptions: z.ZodOptional<z.ZodAny>;
1800
- required: z.ZodOptional<z.ZodBoolean>;
1801
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
1802
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1803
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1804
- pluginOptions: z.ZodOptional<z.ZodAny>;
1805
- required: z.ZodOptional<z.ZodBoolean>;
1806
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
1807
- }, z.ZodTypeAny, "passthrough">>]>;
1808
- export type Attribute = z.infer<typeof attribute>;
1809
- export declare const isKnownAttribute: <T extends {
1810
- __t4s_required?: boolean;
1811
- pluginOptions?: any;
1812
- required?: boolean;
1813
- type?: "string" | "text";
1814
- } | {
1815
- __t4s_required?: boolean;
1816
- pluginOptions?: any;
1817
- required?: boolean;
1818
- type?: "email";
1819
- } | {
1820
- __t4s_required?: boolean;
1821
- pluginOptions?: any;
1822
- required?: boolean;
1823
- type?: "uid";
1824
- targetField?: string;
1825
- } | {
1826
- __t4s_required?: boolean;
1827
- pluginOptions?: any;
1828
- required?: boolean;
1829
- type?: "richtext";
1830
- } | {
1831
- __t4s_required?: boolean;
1832
- pluginOptions?: any;
1833
- required?: boolean;
1834
- type?: "blocks";
1835
- } | {
1836
- __t4s_required?: boolean;
1837
- pluginOptions?: any;
1838
- required?: boolean;
1839
- type?: "json";
1840
- } | {
1841
- __t4s_required?: boolean;
1842
- pluginOptions?: any;
1843
- required?: boolean;
1844
- type?: "password";
1845
- } | {
1846
- __t4s_required?: boolean;
1847
- pluginOptions?: any;
1848
- required?: boolean;
1849
- type?: "integer";
1850
- } | {
1851
- __t4s_required?: boolean;
1852
- pluginOptions?: any;
1853
- required?: boolean;
1854
- type?: "float";
1855
- } | {
1856
- __t4s_required?: boolean;
1857
- pluginOptions?: any;
1858
- required?: boolean;
1859
- type?: "biginteger";
1860
- } | {
1861
- __t4s_required?: boolean;
1862
- pluginOptions?: any;
1863
- required?: boolean;
1864
- type?: "decimal";
1865
- } | {
1866
- __t4s_required?: boolean;
1867
- pluginOptions?: any;
1868
- required?: boolean;
1869
- type?: "enumeration";
1870
- enum?: string[];
1871
- } | {
1872
- __t4s_required?: boolean;
1873
- pluginOptions?: any;
1874
- required?: boolean;
1875
- type?: "date";
1876
- } | {
1877
- __t4s_required?: boolean;
1878
- pluginOptions?: any;
1879
- required?: boolean;
1880
- type?: "datetime";
1881
- } | {
1882
- __t4s_required?: boolean;
1883
- pluginOptions?: any;
1884
- required?: boolean;
1885
- type?: "time";
1886
- } | {
1887
- __t4s_required?: boolean;
1888
- pluginOptions?: any;
1889
- required?: boolean;
1890
- type?: "media";
1891
- multiple?: boolean;
1892
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
1893
- } | {
1894
- __t4s_required?: boolean;
1895
- pluginOptions?: any;
1896
- required?: boolean;
1897
- type?: "boolean";
1898
- } | {
1899
- __t4s_required?: boolean;
1900
- pluginOptions?: any;
1901
- required?: boolean;
1902
- type?: "relation";
1903
- target?: string;
1904
- relation?: "oneToOne";
1905
- } | {
1906
- __t4s_required?: boolean;
1907
- pluginOptions?: any;
1908
- required?: boolean;
1909
- type?: "relation";
1910
- target?: string;
1911
- relation?: "oneToOne";
1912
- inversedBy?: string;
1913
- } | {
1914
- __t4s_required?: boolean;
1915
- pluginOptions?: any;
1916
- required?: boolean;
1917
- type?: "relation";
1918
- target?: string;
1919
- mappedBy?: string;
1920
- relation?: "oneToMany";
1921
- } | {
1922
- __t4s_required?: boolean;
1923
- pluginOptions?: any;
1924
- required?: boolean;
1925
- type?: "relation";
1926
- target?: string;
1927
- relation?: "manyToOne";
1928
- inversedBy?: string;
1929
- } | {
1930
- __t4s_required?: boolean;
1931
- pluginOptions?: any;
1932
- required?: boolean;
1933
- type?: "relation";
1934
- target?: string;
1935
- relation?: "manyToMany";
1936
- inversedBy?: string;
1937
- mappedBy?: string;
1938
- } | {
1939
- __t4s_required?: boolean;
1940
- pluginOptions?: any;
1941
- required?: boolean;
1942
- type?: "relation";
1943
- target?: string;
1944
- relation?: "oneToMany";
1945
- } | {
1946
- __t4s_required?: boolean;
1947
- pluginOptions?: any;
1948
- required?: boolean;
1949
- type?: "relation";
1950
- relation?: "morphToMany";
1951
- } | {
1952
- __t4s_required?: boolean;
1953
- pluginOptions?: any;
1954
- required?: boolean;
1955
- type?: "relation";
1956
- relation?: "morphToOne";
1957
- } | {
1958
- __t4s_required?: boolean;
1959
- pluginOptions?: any;
1960
- required?: boolean;
1961
- type?: "component";
1962
- repeatable?: boolean;
1963
- component?: string;
1964
- } | z.objectOutputType<{
1965
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1966
- pluginOptions: z.ZodOptional<z.ZodAny>;
1967
- required: z.ZodOptional<z.ZodBoolean>;
1968
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
1969
- }, z.ZodTypeAny, "passthrough">>(attributeObject: T) => attributeObject is T & ({
1970
- __t4s_required?: boolean;
1971
- pluginOptions?: any;
1972
- required?: boolean;
1973
- type?: "string" | "text";
1974
- } | {
1975
- __t4s_required?: boolean;
1976
- pluginOptions?: any;
1977
- required?: boolean;
1978
- type?: "email";
1979
- } | {
1980
- __t4s_required?: boolean;
1981
- pluginOptions?: any;
1982
- required?: boolean;
1983
- type?: "uid";
1984
- targetField?: string;
1985
- } | {
1986
- __t4s_required?: boolean;
1987
- pluginOptions?: any;
1988
- required?: boolean;
1989
- type?: "richtext";
1990
- } | {
1991
- __t4s_required?: boolean;
1992
- pluginOptions?: any;
1993
- required?: boolean;
1994
- type?: "blocks";
1995
- } | {
1996
- __t4s_required?: boolean;
1997
- pluginOptions?: any;
1998
- required?: boolean;
1999
- type?: "json";
2000
- } | {
2001
- __t4s_required?: boolean;
2002
- pluginOptions?: any;
2003
- required?: boolean;
2004
- type?: "password";
2005
- } | {
2006
- __t4s_required?: boolean;
2007
- pluginOptions?: any;
2008
- required?: boolean;
2009
- type?: "integer";
2010
- } | {
2011
- __t4s_required?: boolean;
2012
- pluginOptions?: any;
2013
- required?: boolean;
2014
- type?: "float";
2015
- } | {
2016
- __t4s_required?: boolean;
2017
- pluginOptions?: any;
2018
- required?: boolean;
2019
- type?: "biginteger";
2020
- } | {
2021
- __t4s_required?: boolean;
2022
- pluginOptions?: any;
2023
- required?: boolean;
2024
- type?: "decimal";
2025
- } | {
2026
- __t4s_required?: boolean;
2027
- pluginOptions?: any;
2028
- required?: boolean;
2029
- type?: "enumeration";
2030
- enum?: string[];
2031
- } | {
2032
- __t4s_required?: boolean;
2033
- pluginOptions?: any;
2034
- required?: boolean;
2035
- type?: "date";
2036
- } | {
2037
- __t4s_required?: boolean;
2038
- pluginOptions?: any;
2039
- required?: boolean;
2040
- type?: "datetime";
2041
- } | {
2042
- __t4s_required?: boolean;
2043
- pluginOptions?: any;
2044
- required?: boolean;
2045
- type?: "time";
2046
- } | {
2047
- __t4s_required?: boolean;
2048
- pluginOptions?: any;
2049
- required?: boolean;
2050
- type?: "media";
2051
- multiple?: boolean;
2052
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
2053
- } | {
2054
- __t4s_required?: boolean;
2055
- pluginOptions?: any;
2056
- required?: boolean;
2057
- type?: "boolean";
2058
- } | {
2059
- __t4s_required?: boolean;
2060
- pluginOptions?: any;
2061
- required?: boolean;
2062
- type?: "relation";
2063
- target?: string;
2064
- relation?: "oneToOne";
2065
- } | {
2066
- __t4s_required?: boolean;
2067
- pluginOptions?: any;
2068
- required?: boolean;
2069
- type?: "relation";
2070
- target?: string;
2071
- relation?: "oneToOne";
2072
- inversedBy?: string;
2073
- } | {
2074
- __t4s_required?: boolean;
2075
- pluginOptions?: any;
2076
- required?: boolean;
2077
- type?: "relation";
2078
- target?: string;
2079
- mappedBy?: string;
2080
- relation?: "oneToMany";
2081
- } | {
2082
- __t4s_required?: boolean;
2083
- pluginOptions?: any;
2084
- required?: boolean;
2085
- type?: "relation";
2086
- target?: string;
2087
- relation?: "manyToOne";
2088
- inversedBy?: string;
2089
- } | {
2090
- __t4s_required?: boolean;
2091
- pluginOptions?: any;
2092
- required?: boolean;
2093
- type?: "relation";
2094
- target?: string;
2095
- relation?: "manyToMany";
2096
- inversedBy?: string;
2097
- mappedBy?: string;
2098
- } | {
2099
- __t4s_required?: boolean;
2100
- pluginOptions?: any;
2101
- required?: boolean;
2102
- type?: "relation";
2103
- target?: string;
2104
- relation?: "oneToMany";
2105
- } | {
2106
- __t4s_required?: boolean;
2107
- pluginOptions?: any;
2108
- required?: boolean;
2109
- type?: "relation";
2110
- relation?: "morphToMany";
2111
- } | {
2112
- __t4s_required?: boolean;
2113
- pluginOptions?: any;
2114
- required?: boolean;
2115
- type?: "relation";
2116
- relation?: "morphToOne";
2117
- } | {
2118
- __t4s_required?: boolean;
2119
- pluginOptions?: any;
2120
- required?: boolean;
2121
- type?: "component";
2122
- repeatable?: boolean;
2123
- component?: string;
2124
- });
2125
- export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2126
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2127
- pluginOptions: z.ZodOptional<z.ZodAny>;
2128
- required: z.ZodOptional<z.ZodBoolean>;
2129
- type: z.ZodEnum<["text", "string"]>;
2130
- }, "strip", z.ZodTypeAny, {
2131
- __t4s_required?: boolean;
2132
- pluginOptions?: any;
2133
- required?: boolean;
2134
- type?: "string" | "text";
2135
- }, {
2136
- __t4s_required?: boolean;
2137
- pluginOptions?: any;
2138
- required?: boolean;
2139
- type?: "string" | "text";
2140
- }>, z.ZodObject<{
2141
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2142
- pluginOptions: z.ZodOptional<z.ZodAny>;
2143
- required: z.ZodOptional<z.ZodBoolean>;
2144
- type: z.ZodLiteral<"email">;
2145
- }, "strip", z.ZodTypeAny, {
2146
- __t4s_required?: boolean;
2147
- pluginOptions?: any;
2148
- required?: boolean;
2149
- type?: "email";
2150
- }, {
2151
- __t4s_required?: boolean;
2152
- pluginOptions?: any;
2153
- required?: boolean;
2154
- type?: "email";
2155
- }>, z.ZodObject<{
2156
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2157
- pluginOptions: z.ZodOptional<z.ZodAny>;
2158
- required: z.ZodOptional<z.ZodBoolean>;
2159
- type: z.ZodLiteral<"uid">;
2160
- targetField: z.ZodOptional<z.ZodString>;
2161
- }, "strip", z.ZodTypeAny, {
2162
- __t4s_required?: boolean;
2163
- pluginOptions?: any;
2164
- required?: boolean;
2165
- type?: "uid";
2166
- targetField?: string;
2167
- }, {
2168
- __t4s_required?: boolean;
2169
- pluginOptions?: any;
2170
- required?: boolean;
2171
- type?: "uid";
2172
- targetField?: string;
2173
- }>, z.ZodObject<{
2174
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2175
- pluginOptions: z.ZodOptional<z.ZodAny>;
2176
- required: z.ZodOptional<z.ZodBoolean>;
2177
- type: z.ZodLiteral<"richtext">;
2178
- }, "strip", z.ZodTypeAny, {
2179
- __t4s_required?: boolean;
2180
- pluginOptions?: any;
2181
- required?: boolean;
2182
- type?: "richtext";
2183
- }, {
2184
- __t4s_required?: boolean;
2185
- pluginOptions?: any;
2186
- required?: boolean;
2187
- type?: "richtext";
2188
- }>, z.ZodObject<{
2189
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2190
- pluginOptions: z.ZodOptional<z.ZodAny>;
2191
- required: z.ZodOptional<z.ZodBoolean>;
2192
- type: z.ZodLiteral<"blocks">;
2193
- }, "strip", z.ZodTypeAny, {
2194
- __t4s_required?: boolean;
2195
- pluginOptions?: any;
2196
- required?: boolean;
2197
- type?: "blocks";
2198
- }, {
2199
- __t4s_required?: boolean;
2200
- pluginOptions?: any;
2201
- required?: boolean;
2202
- type?: "blocks";
2203
- }>, z.ZodObject<{
2204
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2205
- pluginOptions: z.ZodOptional<z.ZodAny>;
2206
- required: z.ZodOptional<z.ZodBoolean>;
2207
- type: z.ZodLiteral<"json">;
2208
- }, "strip", z.ZodTypeAny, {
2209
- __t4s_required?: boolean;
2210
- pluginOptions?: any;
2211
- required?: boolean;
2212
- type?: "json";
2213
- }, {
2214
- __t4s_required?: boolean;
2215
- pluginOptions?: any;
2216
- required?: boolean;
2217
- type?: "json";
2218
- }>, z.ZodObject<{
2219
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2220
- pluginOptions: z.ZodOptional<z.ZodAny>;
2221
- required: z.ZodOptional<z.ZodBoolean>;
2222
- type: z.ZodLiteral<"password">;
2223
- }, "strip", z.ZodTypeAny, {
2224
- __t4s_required?: boolean;
2225
- pluginOptions?: any;
2226
- required?: boolean;
2227
- type?: "password";
2228
- }, {
2229
- __t4s_required?: boolean;
2230
- pluginOptions?: any;
2231
- required?: boolean;
2232
- type?: "password";
2233
- }>, z.ZodObject<{
2234
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2235
- pluginOptions: z.ZodOptional<z.ZodAny>;
2236
- required: z.ZodOptional<z.ZodBoolean>;
2237
- type: z.ZodLiteral<"integer">;
2238
- }, "strip", z.ZodTypeAny, {
2239
- __t4s_required?: boolean;
2240
- pluginOptions?: any;
2241
- required?: boolean;
2242
- type?: "integer";
2243
- }, {
2244
- __t4s_required?: boolean;
2245
- pluginOptions?: any;
2246
- required?: boolean;
2247
- type?: "integer";
2248
- }>, z.ZodObject<{
2249
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2250
- pluginOptions: z.ZodOptional<z.ZodAny>;
2251
- required: z.ZodOptional<z.ZodBoolean>;
2252
- type: z.ZodLiteral<"float">;
2253
- }, "strip", z.ZodTypeAny, {
2254
- __t4s_required?: boolean;
2255
- pluginOptions?: any;
2256
- required?: boolean;
2257
- type?: "float";
2258
- }, {
2259
- __t4s_required?: boolean;
2260
- pluginOptions?: any;
2261
- required?: boolean;
2262
- type?: "float";
2263
- }>, z.ZodObject<{
2264
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2265
- pluginOptions: z.ZodOptional<z.ZodAny>;
2266
- required: z.ZodOptional<z.ZodBoolean>;
2267
- type: z.ZodLiteral<"biginteger">;
2268
- }, "strip", z.ZodTypeAny, {
2269
- __t4s_required?: boolean;
2270
- pluginOptions?: any;
2271
- required?: boolean;
2272
- type?: "biginteger";
2273
- }, {
2274
- __t4s_required?: boolean;
2275
- pluginOptions?: any;
2276
- required?: boolean;
2277
- type?: "biginteger";
2278
- }>, z.ZodObject<{
2279
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2280
- pluginOptions: z.ZodOptional<z.ZodAny>;
2281
- required: z.ZodOptional<z.ZodBoolean>;
2282
- type: z.ZodLiteral<"decimal">;
2283
- }, "strip", z.ZodTypeAny, {
2284
- __t4s_required?: boolean;
2285
- pluginOptions?: any;
2286
- required?: boolean;
2287
- type?: "decimal";
2288
- }, {
2289
- __t4s_required?: boolean;
2290
- pluginOptions?: any;
2291
- required?: boolean;
2292
- type?: "decimal";
2293
- }>, z.ZodObject<{
2294
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2295
- pluginOptions: z.ZodOptional<z.ZodAny>;
2296
- required: z.ZodOptional<z.ZodBoolean>;
2297
- type: z.ZodLiteral<"enumeration">;
2298
- enum: z.ZodArray<z.ZodString, "many">;
2299
- }, "strip", z.ZodTypeAny, {
2300
- __t4s_required?: boolean;
2301
- pluginOptions?: any;
2302
- required?: boolean;
2303
- type?: "enumeration";
2304
- enum?: string[];
2305
- }, {
2306
- __t4s_required?: boolean;
2307
- pluginOptions?: any;
2308
- required?: boolean;
2309
- type?: "enumeration";
2310
- enum?: string[];
2311
- }>, z.ZodObject<{
2312
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2313
- pluginOptions: z.ZodOptional<z.ZodAny>;
2314
- required: z.ZodOptional<z.ZodBoolean>;
2315
- type: z.ZodLiteral<"date">;
2316
- }, "strip", z.ZodTypeAny, {
2317
- __t4s_required?: boolean;
2318
- pluginOptions?: any;
2319
- required?: boolean;
2320
- type?: "date";
2321
- }, {
2322
- __t4s_required?: boolean;
2323
- pluginOptions?: any;
2324
- required?: boolean;
2325
- type?: "date";
2326
- }>, z.ZodObject<{
2327
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2328
- pluginOptions: z.ZodOptional<z.ZodAny>;
2329
- required: z.ZodOptional<z.ZodBoolean>;
2330
- type: z.ZodLiteral<"datetime">;
2331
- }, "strip", z.ZodTypeAny, {
2332
- __t4s_required?: boolean;
2333
- pluginOptions?: any;
2334
- required?: boolean;
2335
- type?: "datetime";
2336
- }, {
2337
- __t4s_required?: boolean;
2338
- pluginOptions?: any;
2339
- required?: boolean;
2340
- type?: "datetime";
2341
- }>, z.ZodObject<{
2342
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2343
- pluginOptions: z.ZodOptional<z.ZodAny>;
2344
- required: z.ZodOptional<z.ZodBoolean>;
2345
- type: z.ZodLiteral<"time">;
2346
- }, "strip", z.ZodTypeAny, {
2347
- __t4s_required?: boolean;
2348
- pluginOptions?: any;
2349
- required?: boolean;
2350
- type?: "time";
2351
- }, {
2352
- __t4s_required?: boolean;
2353
- pluginOptions?: any;
2354
- required?: boolean;
2355
- type?: "time";
2356
- }>, z.ZodObject<{
2357
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2358
- pluginOptions: z.ZodOptional<z.ZodAny>;
2359
- required: z.ZodOptional<z.ZodBoolean>;
2360
- type: z.ZodLiteral<"media">;
2361
- multiple: z.ZodOptional<z.ZodBoolean>;
2362
- allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
2363
- }, "strip", z.ZodTypeAny, {
2364
- __t4s_required?: boolean;
2365
- pluginOptions?: any;
2366
- required?: boolean;
2367
- type?: "media";
2368
- multiple?: boolean;
2369
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
2370
- }, {
2371
- __t4s_required?: boolean;
2372
- pluginOptions?: any;
2373
- required?: boolean;
2374
- type?: "media";
2375
- multiple?: boolean;
2376
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
2377
- }>, z.ZodObject<{
2378
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2379
- pluginOptions: z.ZodOptional<z.ZodAny>;
2380
- required: z.ZodOptional<z.ZodBoolean>;
2381
- type: z.ZodLiteral<"boolean">;
2382
- }, "strip", z.ZodTypeAny, {
2383
- __t4s_required?: boolean;
2384
- pluginOptions?: any;
2385
- required?: boolean;
2386
- type?: "boolean";
2387
- }, {
2388
- __t4s_required?: boolean;
2389
- pluginOptions?: any;
2390
- required?: boolean;
2391
- type?: "boolean";
2392
- }>, z.ZodObject<{
2393
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2394
- pluginOptions: z.ZodOptional<z.ZodAny>;
2395
- required: z.ZodOptional<z.ZodBoolean>;
2396
- type: z.ZodLiteral<"relation">;
2397
- target: z.ZodString;
2398
- relation: z.ZodLiteral<"oneToOne">;
2399
- }, "strip", z.ZodTypeAny, {
2400
- __t4s_required?: boolean;
2401
- pluginOptions?: any;
2402
- required?: boolean;
2403
- type?: "relation";
2404
- target?: string;
2405
- relation?: "oneToOne";
2406
- }, {
2407
- __t4s_required?: boolean;
2408
- pluginOptions?: any;
2409
- required?: boolean;
2410
- type?: "relation";
2411
- target?: string;
2412
- relation?: "oneToOne";
2413
- }>, z.ZodObject<{
2414
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2415
- pluginOptions: z.ZodOptional<z.ZodAny>;
2416
- required: z.ZodOptional<z.ZodBoolean>;
2417
- type: z.ZodLiteral<"relation">;
2418
- target: z.ZodString;
2419
- relation: z.ZodLiteral<"oneToOne">;
2420
- inversedBy: z.ZodString;
2421
- }, "strip", z.ZodTypeAny, {
2422
- __t4s_required?: boolean;
2423
- pluginOptions?: any;
2424
- required?: boolean;
2425
- type?: "relation";
2426
- target?: string;
2427
- relation?: "oneToOne";
2428
- inversedBy?: string;
2429
- }, {
2430
- __t4s_required?: boolean;
2431
- pluginOptions?: any;
2432
- required?: boolean;
2433
- type?: "relation";
2434
- target?: string;
2435
- relation?: "oneToOne";
2436
- inversedBy?: string;
2437
- }>, z.ZodObject<{
2438
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2439
- pluginOptions: z.ZodOptional<z.ZodAny>;
2440
- required: z.ZodOptional<z.ZodBoolean>;
2441
- type: z.ZodLiteral<"relation">;
2442
- target: z.ZodString;
2443
- mappedBy: z.ZodString;
2444
- relation: z.ZodLiteral<"oneToMany">;
2445
- }, "strip", z.ZodTypeAny, {
2446
- __t4s_required?: boolean;
2447
- pluginOptions?: any;
2448
- required?: boolean;
2449
- type?: "relation";
2450
- target?: string;
2451
- mappedBy?: string;
2452
- relation?: "oneToMany";
2453
- }, {
2454
- __t4s_required?: boolean;
2455
- pluginOptions?: any;
2456
- required?: boolean;
2457
- type?: "relation";
2458
- target?: string;
2459
- mappedBy?: string;
2460
- relation?: "oneToMany";
2461
- }>, z.ZodObject<{
2462
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2463
- pluginOptions: z.ZodOptional<z.ZodAny>;
2464
- required: z.ZodOptional<z.ZodBoolean>;
2465
- type: z.ZodLiteral<"relation">;
2466
- target: z.ZodString;
2467
- relation: z.ZodLiteral<"manyToOne">;
2468
- inversedBy: z.ZodString;
2469
- }, "strip", z.ZodTypeAny, {
2470
- __t4s_required?: boolean;
2471
- pluginOptions?: any;
2472
- required?: boolean;
2473
- type?: "relation";
2474
- target?: string;
2475
- relation?: "manyToOne";
2476
- inversedBy?: string;
2477
- }, {
2478
- __t4s_required?: boolean;
2479
- pluginOptions?: any;
2480
- required?: boolean;
2481
- type?: "relation";
2482
- target?: string;
2483
- relation?: "manyToOne";
2484
- inversedBy?: string;
2485
- }>, z.ZodObject<{
2486
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2487
- pluginOptions: z.ZodOptional<z.ZodAny>;
2488
- required: z.ZodOptional<z.ZodBoolean>;
2489
- type: z.ZodLiteral<"relation">;
2490
- target: z.ZodString;
2491
- relation: z.ZodLiteral<"manyToMany">;
2492
- inversedBy: z.ZodOptional<z.ZodString>;
2493
- mappedBy: z.ZodOptional<z.ZodString>;
2494
- }, "strip", z.ZodTypeAny, {
2495
- __t4s_required?: boolean;
2496
- pluginOptions?: any;
2497
- required?: boolean;
2498
- type?: "relation";
2499
- target?: string;
2500
- relation?: "manyToMany";
2501
- inversedBy?: string;
2502
- mappedBy?: string;
2503
- }, {
2504
- __t4s_required?: boolean;
2505
- pluginOptions?: any;
2506
- required?: boolean;
2507
- type?: "relation";
2508
- target?: string;
2509
- relation?: "manyToMany";
2510
- inversedBy?: string;
2511
- mappedBy?: string;
2512
- }>, z.ZodObject<{
2513
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2514
- pluginOptions: z.ZodOptional<z.ZodAny>;
2515
- required: z.ZodOptional<z.ZodBoolean>;
2516
- type: z.ZodLiteral<"relation">;
2517
- target: z.ZodString;
2518
- relation: z.ZodLiteral<"oneToMany">;
2519
- }, "strip", z.ZodTypeAny, {
2520
- __t4s_required?: boolean;
2521
- pluginOptions?: any;
2522
- required?: boolean;
2523
- type?: "relation";
2524
- target?: string;
2525
- relation?: "oneToMany";
2526
- }, {
2527
- __t4s_required?: boolean;
2528
- pluginOptions?: any;
2529
- required?: boolean;
2530
- type?: "relation";
2531
- target?: string;
2532
- relation?: "oneToMany";
2533
- }>, z.ZodObject<{
2534
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2535
- pluginOptions: z.ZodOptional<z.ZodAny>;
2536
- required: z.ZodOptional<z.ZodBoolean>;
2537
- type: z.ZodLiteral<"relation">;
2538
- relation: z.ZodLiteral<"morphToMany">;
2539
- }, "strip", z.ZodTypeAny, {
2540
- __t4s_required?: boolean;
2541
- pluginOptions?: any;
2542
- required?: boolean;
2543
- type?: "relation";
2544
- relation?: "morphToMany";
2545
- }, {
2546
- __t4s_required?: boolean;
2547
- pluginOptions?: any;
2548
- required?: boolean;
2549
- type?: "relation";
2550
- relation?: "morphToMany";
2551
- }>, z.ZodObject<{
2552
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2553
- pluginOptions: z.ZodOptional<z.ZodAny>;
2554
- required: z.ZodOptional<z.ZodBoolean>;
2555
- type: z.ZodLiteral<"relation">;
2556
- relation: z.ZodLiteral<"morphToOne">;
2557
- }, "strip", z.ZodTypeAny, {
2558
- __t4s_required?: boolean;
2559
- pluginOptions?: any;
2560
- required?: boolean;
2561
- type?: "relation";
2562
- relation?: "morphToOne";
2563
- }, {
2564
- __t4s_required?: boolean;
2565
- pluginOptions?: any;
2566
- required?: boolean;
2567
- type?: "relation";
2568
- relation?: "morphToOne";
2569
- }>, z.ZodObject<{
2570
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2571
- pluginOptions: z.ZodOptional<z.ZodAny>;
2572
- required: z.ZodOptional<z.ZodBoolean>;
2573
- type: z.ZodLiteral<"component">;
2574
- repeatable: z.ZodOptional<z.ZodBoolean>;
2575
- component: z.ZodString;
2576
- }, "strip", z.ZodTypeAny, {
2577
- __t4s_required?: boolean;
2578
- pluginOptions?: any;
2579
- required?: boolean;
2580
- type?: "component";
2581
- repeatable?: boolean;
2582
- component?: string;
2583
- }, {
2584
- __t4s_required?: boolean;
2585
- pluginOptions?: any;
2586
- required?: boolean;
2587
- type?: "component";
2588
- repeatable?: boolean;
2589
- component?: string;
2590
- }>, z.ZodObject<{
2591
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2592
- pluginOptions: z.ZodOptional<z.ZodAny>;
2593
- required: z.ZodOptional<z.ZodBoolean>;
2594
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
2595
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2596
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2597
- pluginOptions: z.ZodOptional<z.ZodAny>;
2598
- required: z.ZodOptional<z.ZodBoolean>;
2599
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
2600
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2601
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2602
- pluginOptions: z.ZodOptional<z.ZodAny>;
2603
- required: z.ZodOptional<z.ZodBoolean>;
2604
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
2605
- }, z.ZodTypeAny, "passthrough">>]>, z.ZodObject<{
2606
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2607
- pluginOptions: z.ZodOptional<z.ZodAny>;
2608
- required: z.ZodOptional<z.ZodBoolean>;
2609
- type: z.ZodLiteral<"dynamiczone">;
2610
- components: z.ZodArray<z.ZodString, "many">;
2611
- }, "strip", z.ZodTypeAny, {
2612
- __t4s_required?: boolean;
2613
- pluginOptions?: any;
2614
- required?: boolean;
2615
- type?: "dynamiczone";
2616
- components?: string[];
2617
- }, {
2618
- __t4s_required?: boolean;
2619
- pluginOptions?: any;
2620
- required?: boolean;
2621
- type?: "dynamiczone";
2622
- components?: string[];
2623
- }>]>;
2624
- export type ContentTypeAttribute = z.infer<typeof contentTypeAttribute>;