@oak-digital/types-4-strapi-2 1.0.5 → 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,2569 +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<"json">;
911
- }, "strip", z.ZodTypeAny, {
912
- __t4s_required?: boolean;
913
- pluginOptions?: any;
914
- required?: boolean;
915
- type?: "json";
916
- }, {
917
- __t4s_required?: boolean;
918
- pluginOptions?: any;
919
- required?: boolean;
920
- type?: "json";
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<"password">;
926
- }, "strip", z.ZodTypeAny, {
927
- __t4s_required?: boolean;
928
- pluginOptions?: any;
929
- required?: boolean;
930
- type?: "password";
931
- }, {
932
- __t4s_required?: boolean;
933
- pluginOptions?: any;
934
- required?: boolean;
935
- type?: "password";
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<"integer">;
941
- }, "strip", z.ZodTypeAny, {
942
- __t4s_required?: boolean;
943
- pluginOptions?: any;
944
- required?: boolean;
945
- type?: "integer";
946
- }, {
947
- __t4s_required?: boolean;
948
- pluginOptions?: any;
949
- required?: boolean;
950
- type?: "integer";
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<"float">;
956
- }, "strip", z.ZodTypeAny, {
957
- __t4s_required?: boolean;
958
- pluginOptions?: any;
959
- required?: boolean;
960
- type?: "float";
961
- }, {
962
- __t4s_required?: boolean;
963
- pluginOptions?: any;
964
- required?: boolean;
965
- type?: "float";
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<"biginteger">;
971
- }, "strip", z.ZodTypeAny, {
972
- __t4s_required?: boolean;
973
- pluginOptions?: any;
974
- required?: boolean;
975
- type?: "biginteger";
976
- }, {
977
- __t4s_required?: boolean;
978
- pluginOptions?: any;
979
- required?: boolean;
980
- type?: "biginteger";
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<"decimal">;
986
- }, "strip", z.ZodTypeAny, {
987
- __t4s_required?: boolean;
988
- pluginOptions?: any;
989
- required?: boolean;
990
- type?: "decimal";
991
- }, {
992
- __t4s_required?: boolean;
993
- pluginOptions?: any;
994
- required?: boolean;
995
- type?: "decimal";
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<"enumeration">;
1001
- enum: z.ZodArray<z.ZodString, "many">;
1002
- }, "strip", z.ZodTypeAny, {
1003
- __t4s_required?: boolean;
1004
- pluginOptions?: any;
1005
- required?: boolean;
1006
- type?: "enumeration";
1007
- enum?: string[];
1008
- }, {
1009
- __t4s_required?: boolean;
1010
- pluginOptions?: any;
1011
- required?: boolean;
1012
- type?: "enumeration";
1013
- enum?: string[];
1014
- }>, z.ZodObject<{
1015
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1016
- pluginOptions: z.ZodOptional<z.ZodAny>;
1017
- required: z.ZodOptional<z.ZodBoolean>;
1018
- type: z.ZodLiteral<"date">;
1019
- }, "strip", z.ZodTypeAny, {
1020
- __t4s_required?: boolean;
1021
- pluginOptions?: any;
1022
- required?: boolean;
1023
- type?: "date";
1024
- }, {
1025
- __t4s_required?: boolean;
1026
- pluginOptions?: any;
1027
- required?: boolean;
1028
- type?: "date";
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<"datetime">;
1034
- }, "strip", z.ZodTypeAny, {
1035
- __t4s_required?: boolean;
1036
- pluginOptions?: any;
1037
- required?: boolean;
1038
- type?: "datetime";
1039
- }, {
1040
- __t4s_required?: boolean;
1041
- pluginOptions?: any;
1042
- required?: boolean;
1043
- type?: "datetime";
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<"time">;
1049
- }, "strip", z.ZodTypeAny, {
1050
- __t4s_required?: boolean;
1051
- pluginOptions?: any;
1052
- required?: boolean;
1053
- type?: "time";
1054
- }, {
1055
- __t4s_required?: boolean;
1056
- pluginOptions?: any;
1057
- required?: boolean;
1058
- type?: "time";
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<"media">;
1064
- multiple: z.ZodOptional<z.ZodBoolean>;
1065
- allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
1066
- }, "strip", z.ZodTypeAny, {
1067
- __t4s_required?: boolean;
1068
- pluginOptions?: any;
1069
- required?: boolean;
1070
- type?: "media";
1071
- multiple?: boolean;
1072
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
1073
- }, {
1074
- __t4s_required?: boolean;
1075
- pluginOptions?: any;
1076
- required?: boolean;
1077
- type?: "media";
1078
- multiple?: boolean;
1079
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
1080
- }>, z.ZodObject<{
1081
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1082
- pluginOptions: z.ZodOptional<z.ZodAny>;
1083
- required: z.ZodOptional<z.ZodBoolean>;
1084
- type: z.ZodLiteral<"boolean">;
1085
- }, "strip", z.ZodTypeAny, {
1086
- __t4s_required?: boolean;
1087
- pluginOptions?: any;
1088
- required?: boolean;
1089
- type?: "boolean";
1090
- }, {
1091
- __t4s_required?: boolean;
1092
- pluginOptions?: any;
1093
- required?: boolean;
1094
- type?: "boolean";
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<"relation">;
1100
- target: z.ZodString;
1101
- relation: z.ZodLiteral<"oneToOne">;
1102
- }, "strip", z.ZodTypeAny, {
1103
- __t4s_required?: boolean;
1104
- pluginOptions?: any;
1105
- required?: boolean;
1106
- type?: "relation";
1107
- target?: string;
1108
- relation?: "oneToOne";
1109
- }, {
1110
- __t4s_required?: boolean;
1111
- pluginOptions?: any;
1112
- required?: boolean;
1113
- type?: "relation";
1114
- target?: string;
1115
- relation?: "oneToOne";
1116
- }>, z.ZodObject<{
1117
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1118
- pluginOptions: z.ZodOptional<z.ZodAny>;
1119
- required: z.ZodOptional<z.ZodBoolean>;
1120
- type: z.ZodLiteral<"relation">;
1121
- target: z.ZodString;
1122
- relation: z.ZodLiteral<"oneToOne">;
1123
- inversedBy: z.ZodString;
1124
- }, "strip", z.ZodTypeAny, {
1125
- __t4s_required?: boolean;
1126
- pluginOptions?: any;
1127
- required?: boolean;
1128
- type?: "relation";
1129
- target?: string;
1130
- relation?: "oneToOne";
1131
- inversedBy?: string;
1132
- }, {
1133
- __t4s_required?: boolean;
1134
- pluginOptions?: any;
1135
- required?: boolean;
1136
- type?: "relation";
1137
- target?: string;
1138
- relation?: "oneToOne";
1139
- inversedBy?: string;
1140
- }>, z.ZodObject<{
1141
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1142
- pluginOptions: z.ZodOptional<z.ZodAny>;
1143
- required: z.ZodOptional<z.ZodBoolean>;
1144
- type: z.ZodLiteral<"relation">;
1145
- target: z.ZodString;
1146
- mappedBy: z.ZodString;
1147
- relation: z.ZodLiteral<"oneToMany">;
1148
- }, "strip", z.ZodTypeAny, {
1149
- __t4s_required?: boolean;
1150
- pluginOptions?: any;
1151
- required?: boolean;
1152
- type?: "relation";
1153
- target?: string;
1154
- mappedBy?: string;
1155
- relation?: "oneToMany";
1156
- }, {
1157
- __t4s_required?: boolean;
1158
- pluginOptions?: any;
1159
- required?: boolean;
1160
- type?: "relation";
1161
- target?: string;
1162
- mappedBy?: string;
1163
- relation?: "oneToMany";
1164
- }>, z.ZodObject<{
1165
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1166
- pluginOptions: z.ZodOptional<z.ZodAny>;
1167
- required: z.ZodOptional<z.ZodBoolean>;
1168
- type: z.ZodLiteral<"relation">;
1169
- target: z.ZodString;
1170
- relation: z.ZodLiteral<"manyToOne">;
1171
- inversedBy: z.ZodString;
1172
- }, "strip", z.ZodTypeAny, {
1173
- __t4s_required?: boolean;
1174
- pluginOptions?: any;
1175
- required?: boolean;
1176
- type?: "relation";
1177
- target?: string;
1178
- relation?: "manyToOne";
1179
- inversedBy?: string;
1180
- }, {
1181
- __t4s_required?: boolean;
1182
- pluginOptions?: any;
1183
- required?: boolean;
1184
- type?: "relation";
1185
- target?: string;
1186
- relation?: "manyToOne";
1187
- inversedBy?: string;
1188
- }>, z.ZodObject<{
1189
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1190
- pluginOptions: z.ZodOptional<z.ZodAny>;
1191
- required: z.ZodOptional<z.ZodBoolean>;
1192
- type: z.ZodLiteral<"relation">;
1193
- target: z.ZodString;
1194
- relation: z.ZodLiteral<"manyToMany">;
1195
- inversedBy: z.ZodOptional<z.ZodString>;
1196
- mappedBy: z.ZodOptional<z.ZodString>;
1197
- }, "strip", z.ZodTypeAny, {
1198
- __t4s_required?: boolean;
1199
- pluginOptions?: any;
1200
- required?: boolean;
1201
- type?: "relation";
1202
- target?: string;
1203
- relation?: "manyToMany";
1204
- inversedBy?: string;
1205
- mappedBy?: string;
1206
- }, {
1207
- __t4s_required?: boolean;
1208
- pluginOptions?: any;
1209
- required?: boolean;
1210
- type?: "relation";
1211
- target?: string;
1212
- relation?: "manyToMany";
1213
- inversedBy?: string;
1214
- mappedBy?: string;
1215
- }>, z.ZodObject<{
1216
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1217
- pluginOptions: z.ZodOptional<z.ZodAny>;
1218
- required: z.ZodOptional<z.ZodBoolean>;
1219
- type: z.ZodLiteral<"relation">;
1220
- target: z.ZodString;
1221
- relation: z.ZodLiteral<"oneToMany">;
1222
- }, "strip", z.ZodTypeAny, {
1223
- __t4s_required?: boolean;
1224
- pluginOptions?: any;
1225
- required?: boolean;
1226
- type?: "relation";
1227
- target?: string;
1228
- relation?: "oneToMany";
1229
- }, {
1230
- __t4s_required?: boolean;
1231
- pluginOptions?: any;
1232
- required?: boolean;
1233
- type?: "relation";
1234
- target?: string;
1235
- relation?: "oneToMany";
1236
- }>, z.ZodObject<{
1237
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1238
- pluginOptions: z.ZodOptional<z.ZodAny>;
1239
- required: z.ZodOptional<z.ZodBoolean>;
1240
- type: z.ZodLiteral<"relation">;
1241
- relation: z.ZodLiteral<"morphToMany">;
1242
- }, "strip", z.ZodTypeAny, {
1243
- __t4s_required?: boolean;
1244
- pluginOptions?: any;
1245
- required?: boolean;
1246
- type?: "relation";
1247
- relation?: "morphToMany";
1248
- }, {
1249
- __t4s_required?: boolean;
1250
- pluginOptions?: any;
1251
- required?: boolean;
1252
- type?: "relation";
1253
- relation?: "morphToMany";
1254
- }>, z.ZodObject<{
1255
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1256
- pluginOptions: z.ZodOptional<z.ZodAny>;
1257
- required: z.ZodOptional<z.ZodBoolean>;
1258
- type: z.ZodLiteral<"relation">;
1259
- relation: z.ZodLiteral<"morphToOne">;
1260
- }, "strip", z.ZodTypeAny, {
1261
- __t4s_required?: boolean;
1262
- pluginOptions?: any;
1263
- required?: boolean;
1264
- type?: "relation";
1265
- relation?: "morphToOne";
1266
- }, {
1267
- __t4s_required?: boolean;
1268
- pluginOptions?: any;
1269
- required?: boolean;
1270
- type?: "relation";
1271
- relation?: "morphToOne";
1272
- }>, z.ZodObject<{
1273
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1274
- pluginOptions: z.ZodOptional<z.ZodAny>;
1275
- required: z.ZodOptional<z.ZodBoolean>;
1276
- type: z.ZodLiteral<"component">;
1277
- repeatable: z.ZodOptional<z.ZodBoolean>;
1278
- component: z.ZodString;
1279
- }, "strip", z.ZodTypeAny, {
1280
- __t4s_required?: boolean;
1281
- pluginOptions?: any;
1282
- required?: boolean;
1283
- type?: "component";
1284
- repeatable?: boolean;
1285
- component?: string;
1286
- }, {
1287
- __t4s_required?: boolean;
1288
- pluginOptions?: any;
1289
- required?: boolean;
1290
- type?: "component";
1291
- repeatable?: boolean;
1292
- component?: string;
1293
- }>]>;
1294
- export type KnownAttribute = z.infer<typeof knownAttribute>;
1295
- export declare const anyAttribute: z.ZodObject<{
1296
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1297
- pluginOptions: z.ZodOptional<z.ZodAny>;
1298
- required: z.ZodOptional<z.ZodBoolean>;
1299
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
1300
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1301
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1302
- pluginOptions: z.ZodOptional<z.ZodAny>;
1303
- required: z.ZodOptional<z.ZodBoolean>;
1304
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
1305
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1306
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1307
- pluginOptions: z.ZodOptional<z.ZodAny>;
1308
- required: z.ZodOptional<z.ZodBoolean>;
1309
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
1310
- }, z.ZodTypeAny, "passthrough">>;
1311
- export type AnyAttribute = z.infer<typeof anyAttribute>;
1312
- export declare const attribute: z.ZodUnion<[z.ZodObject<{
1313
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1314
- pluginOptions: z.ZodOptional<z.ZodAny>;
1315
- required: z.ZodOptional<z.ZodBoolean>;
1316
- type: z.ZodEnum<["text", "string"]>;
1317
- }, "strip", z.ZodTypeAny, {
1318
- __t4s_required?: boolean;
1319
- pluginOptions?: any;
1320
- required?: boolean;
1321
- type?: "string" | "text";
1322
- }, {
1323
- __t4s_required?: boolean;
1324
- pluginOptions?: any;
1325
- required?: boolean;
1326
- type?: "string" | "text";
1327
- }>, z.ZodObject<{
1328
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1329
- pluginOptions: z.ZodOptional<z.ZodAny>;
1330
- required: z.ZodOptional<z.ZodBoolean>;
1331
- type: z.ZodLiteral<"email">;
1332
- }, "strip", z.ZodTypeAny, {
1333
- __t4s_required?: boolean;
1334
- pluginOptions?: any;
1335
- required?: boolean;
1336
- type?: "email";
1337
- }, {
1338
- __t4s_required?: boolean;
1339
- pluginOptions?: any;
1340
- required?: boolean;
1341
- type?: "email";
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<"uid">;
1347
- targetField: z.ZodOptional<z.ZodString>;
1348
- }, "strip", z.ZodTypeAny, {
1349
- __t4s_required?: boolean;
1350
- pluginOptions?: any;
1351
- required?: boolean;
1352
- type?: "uid";
1353
- targetField?: string;
1354
- }, {
1355
- __t4s_required?: boolean;
1356
- pluginOptions?: any;
1357
- required?: boolean;
1358
- type?: "uid";
1359
- targetField?: string;
1360
- }>, z.ZodObject<{
1361
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1362
- pluginOptions: z.ZodOptional<z.ZodAny>;
1363
- required: z.ZodOptional<z.ZodBoolean>;
1364
- type: z.ZodLiteral<"richtext">;
1365
- }, "strip", z.ZodTypeAny, {
1366
- __t4s_required?: boolean;
1367
- pluginOptions?: any;
1368
- required?: boolean;
1369
- type?: "richtext";
1370
- }, {
1371
- __t4s_required?: boolean;
1372
- pluginOptions?: any;
1373
- required?: boolean;
1374
- type?: "richtext";
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<"json">;
1380
- }, "strip", z.ZodTypeAny, {
1381
- __t4s_required?: boolean;
1382
- pluginOptions?: any;
1383
- required?: boolean;
1384
- type?: "json";
1385
- }, {
1386
- __t4s_required?: boolean;
1387
- pluginOptions?: any;
1388
- required?: boolean;
1389
- type?: "json";
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<"password">;
1395
- }, "strip", z.ZodTypeAny, {
1396
- __t4s_required?: boolean;
1397
- pluginOptions?: any;
1398
- required?: boolean;
1399
- type?: "password";
1400
- }, {
1401
- __t4s_required?: boolean;
1402
- pluginOptions?: any;
1403
- required?: boolean;
1404
- type?: "password";
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<"integer">;
1410
- }, "strip", z.ZodTypeAny, {
1411
- __t4s_required?: boolean;
1412
- pluginOptions?: any;
1413
- required?: boolean;
1414
- type?: "integer";
1415
- }, {
1416
- __t4s_required?: boolean;
1417
- pluginOptions?: any;
1418
- required?: boolean;
1419
- type?: "integer";
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<"float">;
1425
- }, "strip", z.ZodTypeAny, {
1426
- __t4s_required?: boolean;
1427
- pluginOptions?: any;
1428
- required?: boolean;
1429
- type?: "float";
1430
- }, {
1431
- __t4s_required?: boolean;
1432
- pluginOptions?: any;
1433
- required?: boolean;
1434
- type?: "float";
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<"biginteger">;
1440
- }, "strip", z.ZodTypeAny, {
1441
- __t4s_required?: boolean;
1442
- pluginOptions?: any;
1443
- required?: boolean;
1444
- type?: "biginteger";
1445
- }, {
1446
- __t4s_required?: boolean;
1447
- pluginOptions?: any;
1448
- required?: boolean;
1449
- type?: "biginteger";
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<"decimal">;
1455
- }, "strip", z.ZodTypeAny, {
1456
- __t4s_required?: boolean;
1457
- pluginOptions?: any;
1458
- required?: boolean;
1459
- type?: "decimal";
1460
- }, {
1461
- __t4s_required?: boolean;
1462
- pluginOptions?: any;
1463
- required?: boolean;
1464
- type?: "decimal";
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<"enumeration">;
1470
- enum: z.ZodArray<z.ZodString, "many">;
1471
- }, "strip", z.ZodTypeAny, {
1472
- __t4s_required?: boolean;
1473
- pluginOptions?: any;
1474
- required?: boolean;
1475
- type?: "enumeration";
1476
- enum?: string[];
1477
- }, {
1478
- __t4s_required?: boolean;
1479
- pluginOptions?: any;
1480
- required?: boolean;
1481
- type?: "enumeration";
1482
- enum?: string[];
1483
- }>, z.ZodObject<{
1484
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1485
- pluginOptions: z.ZodOptional<z.ZodAny>;
1486
- required: z.ZodOptional<z.ZodBoolean>;
1487
- type: z.ZodLiteral<"date">;
1488
- }, "strip", z.ZodTypeAny, {
1489
- __t4s_required?: boolean;
1490
- pluginOptions?: any;
1491
- required?: boolean;
1492
- type?: "date";
1493
- }, {
1494
- __t4s_required?: boolean;
1495
- pluginOptions?: any;
1496
- required?: boolean;
1497
- type?: "date";
1498
- }>, z.ZodObject<{
1499
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1500
- pluginOptions: z.ZodOptional<z.ZodAny>;
1501
- required: z.ZodOptional<z.ZodBoolean>;
1502
- type: z.ZodLiteral<"datetime">;
1503
- }, "strip", z.ZodTypeAny, {
1504
- __t4s_required?: boolean;
1505
- pluginOptions?: any;
1506
- required?: boolean;
1507
- type?: "datetime";
1508
- }, {
1509
- __t4s_required?: boolean;
1510
- pluginOptions?: any;
1511
- required?: boolean;
1512
- type?: "datetime";
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<"time">;
1518
- }, "strip", z.ZodTypeAny, {
1519
- __t4s_required?: boolean;
1520
- pluginOptions?: any;
1521
- required?: boolean;
1522
- type?: "time";
1523
- }, {
1524
- __t4s_required?: boolean;
1525
- pluginOptions?: any;
1526
- required?: boolean;
1527
- type?: "time";
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<"media">;
1533
- multiple: z.ZodOptional<z.ZodBoolean>;
1534
- allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
1535
- }, "strip", z.ZodTypeAny, {
1536
- __t4s_required?: boolean;
1537
- pluginOptions?: any;
1538
- required?: boolean;
1539
- type?: "media";
1540
- multiple?: boolean;
1541
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
1542
- }, {
1543
- __t4s_required?: boolean;
1544
- pluginOptions?: any;
1545
- required?: boolean;
1546
- type?: "media";
1547
- multiple?: boolean;
1548
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
1549
- }>, z.ZodObject<{
1550
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1551
- pluginOptions: z.ZodOptional<z.ZodAny>;
1552
- required: z.ZodOptional<z.ZodBoolean>;
1553
- type: z.ZodLiteral<"boolean">;
1554
- }, "strip", z.ZodTypeAny, {
1555
- __t4s_required?: boolean;
1556
- pluginOptions?: any;
1557
- required?: boolean;
1558
- type?: "boolean";
1559
- }, {
1560
- __t4s_required?: boolean;
1561
- pluginOptions?: any;
1562
- required?: boolean;
1563
- type?: "boolean";
1564
- }>, z.ZodObject<{
1565
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1566
- pluginOptions: z.ZodOptional<z.ZodAny>;
1567
- required: z.ZodOptional<z.ZodBoolean>;
1568
- type: z.ZodLiteral<"relation">;
1569
- target: z.ZodString;
1570
- relation: z.ZodLiteral<"oneToOne">;
1571
- }, "strip", z.ZodTypeAny, {
1572
- __t4s_required?: boolean;
1573
- pluginOptions?: any;
1574
- required?: boolean;
1575
- type?: "relation";
1576
- target?: string;
1577
- relation?: "oneToOne";
1578
- }, {
1579
- __t4s_required?: boolean;
1580
- pluginOptions?: any;
1581
- required?: boolean;
1582
- type?: "relation";
1583
- target?: string;
1584
- relation?: "oneToOne";
1585
- }>, z.ZodObject<{
1586
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1587
- pluginOptions: z.ZodOptional<z.ZodAny>;
1588
- required: z.ZodOptional<z.ZodBoolean>;
1589
- type: z.ZodLiteral<"relation">;
1590
- target: z.ZodString;
1591
- relation: z.ZodLiteral<"oneToOne">;
1592
- inversedBy: z.ZodString;
1593
- }, "strip", z.ZodTypeAny, {
1594
- __t4s_required?: boolean;
1595
- pluginOptions?: any;
1596
- required?: boolean;
1597
- type?: "relation";
1598
- target?: string;
1599
- relation?: "oneToOne";
1600
- inversedBy?: string;
1601
- }, {
1602
- __t4s_required?: boolean;
1603
- pluginOptions?: any;
1604
- required?: boolean;
1605
- type?: "relation";
1606
- target?: string;
1607
- relation?: "oneToOne";
1608
- inversedBy?: string;
1609
- }>, z.ZodObject<{
1610
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1611
- pluginOptions: z.ZodOptional<z.ZodAny>;
1612
- required: z.ZodOptional<z.ZodBoolean>;
1613
- type: z.ZodLiteral<"relation">;
1614
- target: z.ZodString;
1615
- mappedBy: z.ZodString;
1616
- relation: z.ZodLiteral<"oneToMany">;
1617
- }, "strip", z.ZodTypeAny, {
1618
- __t4s_required?: boolean;
1619
- pluginOptions?: any;
1620
- required?: boolean;
1621
- type?: "relation";
1622
- target?: string;
1623
- mappedBy?: string;
1624
- relation?: "oneToMany";
1625
- }, {
1626
- __t4s_required?: boolean;
1627
- pluginOptions?: any;
1628
- required?: boolean;
1629
- type?: "relation";
1630
- target?: string;
1631
- mappedBy?: string;
1632
- relation?: "oneToMany";
1633
- }>, z.ZodObject<{
1634
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1635
- pluginOptions: z.ZodOptional<z.ZodAny>;
1636
- required: z.ZodOptional<z.ZodBoolean>;
1637
- type: z.ZodLiteral<"relation">;
1638
- target: z.ZodString;
1639
- relation: z.ZodLiteral<"manyToOne">;
1640
- inversedBy: z.ZodString;
1641
- }, "strip", z.ZodTypeAny, {
1642
- __t4s_required?: boolean;
1643
- pluginOptions?: any;
1644
- required?: boolean;
1645
- type?: "relation";
1646
- target?: string;
1647
- relation?: "manyToOne";
1648
- inversedBy?: string;
1649
- }, {
1650
- __t4s_required?: boolean;
1651
- pluginOptions?: any;
1652
- required?: boolean;
1653
- type?: "relation";
1654
- target?: string;
1655
- relation?: "manyToOne";
1656
- inversedBy?: string;
1657
- }>, z.ZodObject<{
1658
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1659
- pluginOptions: z.ZodOptional<z.ZodAny>;
1660
- required: z.ZodOptional<z.ZodBoolean>;
1661
- type: z.ZodLiteral<"relation">;
1662
- target: z.ZodString;
1663
- relation: z.ZodLiteral<"manyToMany">;
1664
- inversedBy: z.ZodOptional<z.ZodString>;
1665
- mappedBy: z.ZodOptional<z.ZodString>;
1666
- }, "strip", z.ZodTypeAny, {
1667
- __t4s_required?: boolean;
1668
- pluginOptions?: any;
1669
- required?: boolean;
1670
- type?: "relation";
1671
- target?: string;
1672
- relation?: "manyToMany";
1673
- inversedBy?: string;
1674
- mappedBy?: string;
1675
- }, {
1676
- __t4s_required?: boolean;
1677
- pluginOptions?: any;
1678
- required?: boolean;
1679
- type?: "relation";
1680
- target?: string;
1681
- relation?: "manyToMany";
1682
- inversedBy?: string;
1683
- mappedBy?: string;
1684
- }>, z.ZodObject<{
1685
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1686
- pluginOptions: z.ZodOptional<z.ZodAny>;
1687
- required: z.ZodOptional<z.ZodBoolean>;
1688
- type: z.ZodLiteral<"relation">;
1689
- target: z.ZodString;
1690
- relation: z.ZodLiteral<"oneToMany">;
1691
- }, "strip", z.ZodTypeAny, {
1692
- __t4s_required?: boolean;
1693
- pluginOptions?: any;
1694
- required?: boolean;
1695
- type?: "relation";
1696
- target?: string;
1697
- relation?: "oneToMany";
1698
- }, {
1699
- __t4s_required?: boolean;
1700
- pluginOptions?: any;
1701
- required?: boolean;
1702
- type?: "relation";
1703
- target?: string;
1704
- relation?: "oneToMany";
1705
- }>, z.ZodObject<{
1706
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1707
- pluginOptions: z.ZodOptional<z.ZodAny>;
1708
- required: z.ZodOptional<z.ZodBoolean>;
1709
- type: z.ZodLiteral<"relation">;
1710
- relation: z.ZodLiteral<"morphToMany">;
1711
- }, "strip", z.ZodTypeAny, {
1712
- __t4s_required?: boolean;
1713
- pluginOptions?: any;
1714
- required?: boolean;
1715
- type?: "relation";
1716
- relation?: "morphToMany";
1717
- }, {
1718
- __t4s_required?: boolean;
1719
- pluginOptions?: any;
1720
- required?: boolean;
1721
- type?: "relation";
1722
- relation?: "morphToMany";
1723
- }>, z.ZodObject<{
1724
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1725
- pluginOptions: z.ZodOptional<z.ZodAny>;
1726
- required: z.ZodOptional<z.ZodBoolean>;
1727
- type: z.ZodLiteral<"relation">;
1728
- relation: z.ZodLiteral<"morphToOne">;
1729
- }, "strip", z.ZodTypeAny, {
1730
- __t4s_required?: boolean;
1731
- pluginOptions?: any;
1732
- required?: boolean;
1733
- type?: "relation";
1734
- relation?: "morphToOne";
1735
- }, {
1736
- __t4s_required?: boolean;
1737
- pluginOptions?: any;
1738
- required?: boolean;
1739
- type?: "relation";
1740
- relation?: "morphToOne";
1741
- }>, z.ZodObject<{
1742
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1743
- pluginOptions: z.ZodOptional<z.ZodAny>;
1744
- required: z.ZodOptional<z.ZodBoolean>;
1745
- type: z.ZodLiteral<"component">;
1746
- repeatable: z.ZodOptional<z.ZodBoolean>;
1747
- component: z.ZodString;
1748
- }, "strip", z.ZodTypeAny, {
1749
- __t4s_required?: boolean;
1750
- pluginOptions?: any;
1751
- required?: boolean;
1752
- type?: "component";
1753
- repeatable?: boolean;
1754
- component?: string;
1755
- }, {
1756
- __t4s_required?: boolean;
1757
- pluginOptions?: any;
1758
- required?: boolean;
1759
- type?: "component";
1760
- repeatable?: boolean;
1761
- component?: string;
1762
- }>, z.ZodObject<{
1763
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1764
- pluginOptions: z.ZodOptional<z.ZodAny>;
1765
- required: z.ZodOptional<z.ZodBoolean>;
1766
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
1767
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1768
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1769
- pluginOptions: z.ZodOptional<z.ZodAny>;
1770
- required: z.ZodOptional<z.ZodBoolean>;
1771
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
1772
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1773
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1774
- pluginOptions: z.ZodOptional<z.ZodAny>;
1775
- required: z.ZodOptional<z.ZodBoolean>;
1776
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
1777
- }, z.ZodTypeAny, "passthrough">>]>;
1778
- export type Attribute = z.infer<typeof attribute>;
1779
- export declare const isKnownAttribute: <T extends {
1780
- __t4s_required?: boolean;
1781
- pluginOptions?: any;
1782
- required?: boolean;
1783
- type?: "string" | "text";
1784
- } | {
1785
- __t4s_required?: boolean;
1786
- pluginOptions?: any;
1787
- required?: boolean;
1788
- type?: "email";
1789
- } | {
1790
- __t4s_required?: boolean;
1791
- pluginOptions?: any;
1792
- required?: boolean;
1793
- type?: "uid";
1794
- targetField?: string;
1795
- } | {
1796
- __t4s_required?: boolean;
1797
- pluginOptions?: any;
1798
- required?: boolean;
1799
- type?: "richtext";
1800
- } | {
1801
- __t4s_required?: boolean;
1802
- pluginOptions?: any;
1803
- required?: boolean;
1804
- type?: "json";
1805
- } | {
1806
- __t4s_required?: boolean;
1807
- pluginOptions?: any;
1808
- required?: boolean;
1809
- type?: "password";
1810
- } | {
1811
- __t4s_required?: boolean;
1812
- pluginOptions?: any;
1813
- required?: boolean;
1814
- type?: "integer";
1815
- } | {
1816
- __t4s_required?: boolean;
1817
- pluginOptions?: any;
1818
- required?: boolean;
1819
- type?: "float";
1820
- } | {
1821
- __t4s_required?: boolean;
1822
- pluginOptions?: any;
1823
- required?: boolean;
1824
- type?: "biginteger";
1825
- } | {
1826
- __t4s_required?: boolean;
1827
- pluginOptions?: any;
1828
- required?: boolean;
1829
- type?: "decimal";
1830
- } | {
1831
- __t4s_required?: boolean;
1832
- pluginOptions?: any;
1833
- required?: boolean;
1834
- type?: "enumeration";
1835
- enum?: string[];
1836
- } | {
1837
- __t4s_required?: boolean;
1838
- pluginOptions?: any;
1839
- required?: boolean;
1840
- type?: "date";
1841
- } | {
1842
- __t4s_required?: boolean;
1843
- pluginOptions?: any;
1844
- required?: boolean;
1845
- type?: "datetime";
1846
- } | {
1847
- __t4s_required?: boolean;
1848
- pluginOptions?: any;
1849
- required?: boolean;
1850
- type?: "time";
1851
- } | {
1852
- __t4s_required?: boolean;
1853
- pluginOptions?: any;
1854
- required?: boolean;
1855
- type?: "media";
1856
- multiple?: boolean;
1857
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
1858
- } | {
1859
- __t4s_required?: boolean;
1860
- pluginOptions?: any;
1861
- required?: boolean;
1862
- type?: "boolean";
1863
- } | {
1864
- __t4s_required?: boolean;
1865
- pluginOptions?: any;
1866
- required?: boolean;
1867
- type?: "relation";
1868
- target?: string;
1869
- relation?: "oneToOne";
1870
- } | {
1871
- __t4s_required?: boolean;
1872
- pluginOptions?: any;
1873
- required?: boolean;
1874
- type?: "relation";
1875
- target?: string;
1876
- relation?: "oneToOne";
1877
- inversedBy?: string;
1878
- } | {
1879
- __t4s_required?: boolean;
1880
- pluginOptions?: any;
1881
- required?: boolean;
1882
- type?: "relation";
1883
- target?: string;
1884
- mappedBy?: string;
1885
- relation?: "oneToMany";
1886
- } | {
1887
- __t4s_required?: boolean;
1888
- pluginOptions?: any;
1889
- required?: boolean;
1890
- type?: "relation";
1891
- target?: string;
1892
- relation?: "manyToOne";
1893
- inversedBy?: string;
1894
- } | {
1895
- __t4s_required?: boolean;
1896
- pluginOptions?: any;
1897
- required?: boolean;
1898
- type?: "relation";
1899
- target?: string;
1900
- relation?: "manyToMany";
1901
- inversedBy?: string;
1902
- mappedBy?: string;
1903
- } | {
1904
- __t4s_required?: boolean;
1905
- pluginOptions?: any;
1906
- required?: boolean;
1907
- type?: "relation";
1908
- target?: string;
1909
- relation?: "oneToMany";
1910
- } | {
1911
- __t4s_required?: boolean;
1912
- pluginOptions?: any;
1913
- required?: boolean;
1914
- type?: "relation";
1915
- relation?: "morphToMany";
1916
- } | {
1917
- __t4s_required?: boolean;
1918
- pluginOptions?: any;
1919
- required?: boolean;
1920
- type?: "relation";
1921
- relation?: "morphToOne";
1922
- } | {
1923
- __t4s_required?: boolean;
1924
- pluginOptions?: any;
1925
- required?: boolean;
1926
- type?: "component";
1927
- repeatable?: boolean;
1928
- component?: string;
1929
- } | z.objectOutputType<{
1930
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
1931
- pluginOptions: z.ZodOptional<z.ZodAny>;
1932
- required: z.ZodOptional<z.ZodBoolean>;
1933
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
1934
- }, z.ZodTypeAny, "passthrough">>(attributeObject: T) => attributeObject is T & ({
1935
- __t4s_required?: boolean;
1936
- pluginOptions?: any;
1937
- required?: boolean;
1938
- type?: "string" | "text";
1939
- } | {
1940
- __t4s_required?: boolean;
1941
- pluginOptions?: any;
1942
- required?: boolean;
1943
- type?: "email";
1944
- } | {
1945
- __t4s_required?: boolean;
1946
- pluginOptions?: any;
1947
- required?: boolean;
1948
- type?: "uid";
1949
- targetField?: string;
1950
- } | {
1951
- __t4s_required?: boolean;
1952
- pluginOptions?: any;
1953
- required?: boolean;
1954
- type?: "richtext";
1955
- } | {
1956
- __t4s_required?: boolean;
1957
- pluginOptions?: any;
1958
- required?: boolean;
1959
- type?: "json";
1960
- } | {
1961
- __t4s_required?: boolean;
1962
- pluginOptions?: any;
1963
- required?: boolean;
1964
- type?: "password";
1965
- } | {
1966
- __t4s_required?: boolean;
1967
- pluginOptions?: any;
1968
- required?: boolean;
1969
- type?: "integer";
1970
- } | {
1971
- __t4s_required?: boolean;
1972
- pluginOptions?: any;
1973
- required?: boolean;
1974
- type?: "float";
1975
- } | {
1976
- __t4s_required?: boolean;
1977
- pluginOptions?: any;
1978
- required?: boolean;
1979
- type?: "biginteger";
1980
- } | {
1981
- __t4s_required?: boolean;
1982
- pluginOptions?: any;
1983
- required?: boolean;
1984
- type?: "decimal";
1985
- } | {
1986
- __t4s_required?: boolean;
1987
- pluginOptions?: any;
1988
- required?: boolean;
1989
- type?: "enumeration";
1990
- enum?: string[];
1991
- } | {
1992
- __t4s_required?: boolean;
1993
- pluginOptions?: any;
1994
- required?: boolean;
1995
- type?: "date";
1996
- } | {
1997
- __t4s_required?: boolean;
1998
- pluginOptions?: any;
1999
- required?: boolean;
2000
- type?: "datetime";
2001
- } | {
2002
- __t4s_required?: boolean;
2003
- pluginOptions?: any;
2004
- required?: boolean;
2005
- type?: "time";
2006
- } | {
2007
- __t4s_required?: boolean;
2008
- pluginOptions?: any;
2009
- required?: boolean;
2010
- type?: "media";
2011
- multiple?: boolean;
2012
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
2013
- } | {
2014
- __t4s_required?: boolean;
2015
- pluginOptions?: any;
2016
- required?: boolean;
2017
- type?: "boolean";
2018
- } | {
2019
- __t4s_required?: boolean;
2020
- pluginOptions?: any;
2021
- required?: boolean;
2022
- type?: "relation";
2023
- target?: string;
2024
- relation?: "oneToOne";
2025
- } | {
2026
- __t4s_required?: boolean;
2027
- pluginOptions?: any;
2028
- required?: boolean;
2029
- type?: "relation";
2030
- target?: string;
2031
- relation?: "oneToOne";
2032
- inversedBy?: string;
2033
- } | {
2034
- __t4s_required?: boolean;
2035
- pluginOptions?: any;
2036
- required?: boolean;
2037
- type?: "relation";
2038
- target?: string;
2039
- mappedBy?: string;
2040
- relation?: "oneToMany";
2041
- } | {
2042
- __t4s_required?: boolean;
2043
- pluginOptions?: any;
2044
- required?: boolean;
2045
- type?: "relation";
2046
- target?: string;
2047
- relation?: "manyToOne";
2048
- inversedBy?: string;
2049
- } | {
2050
- __t4s_required?: boolean;
2051
- pluginOptions?: any;
2052
- required?: boolean;
2053
- type?: "relation";
2054
- target?: string;
2055
- relation?: "manyToMany";
2056
- inversedBy?: string;
2057
- mappedBy?: string;
2058
- } | {
2059
- __t4s_required?: boolean;
2060
- pluginOptions?: any;
2061
- required?: boolean;
2062
- type?: "relation";
2063
- target?: string;
2064
- relation?: "oneToMany";
2065
- } | {
2066
- __t4s_required?: boolean;
2067
- pluginOptions?: any;
2068
- required?: boolean;
2069
- type?: "relation";
2070
- relation?: "morphToMany";
2071
- } | {
2072
- __t4s_required?: boolean;
2073
- pluginOptions?: any;
2074
- required?: boolean;
2075
- type?: "relation";
2076
- relation?: "morphToOne";
2077
- } | {
2078
- __t4s_required?: boolean;
2079
- pluginOptions?: any;
2080
- required?: boolean;
2081
- type?: "component";
2082
- repeatable?: boolean;
2083
- component?: string;
2084
- });
2085
- export declare const contentTypeAttribute: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2086
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2087
- pluginOptions: z.ZodOptional<z.ZodAny>;
2088
- required: z.ZodOptional<z.ZodBoolean>;
2089
- type: z.ZodEnum<["text", "string"]>;
2090
- }, "strip", z.ZodTypeAny, {
2091
- __t4s_required?: boolean;
2092
- pluginOptions?: any;
2093
- required?: boolean;
2094
- type?: "string" | "text";
2095
- }, {
2096
- __t4s_required?: boolean;
2097
- pluginOptions?: any;
2098
- required?: boolean;
2099
- type?: "string" | "text";
2100
- }>, z.ZodObject<{
2101
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2102
- pluginOptions: z.ZodOptional<z.ZodAny>;
2103
- required: z.ZodOptional<z.ZodBoolean>;
2104
- type: z.ZodLiteral<"email">;
2105
- }, "strip", z.ZodTypeAny, {
2106
- __t4s_required?: boolean;
2107
- pluginOptions?: any;
2108
- required?: boolean;
2109
- type?: "email";
2110
- }, {
2111
- __t4s_required?: boolean;
2112
- pluginOptions?: any;
2113
- required?: boolean;
2114
- type?: "email";
2115
- }>, z.ZodObject<{
2116
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2117
- pluginOptions: z.ZodOptional<z.ZodAny>;
2118
- required: z.ZodOptional<z.ZodBoolean>;
2119
- type: z.ZodLiteral<"uid">;
2120
- targetField: z.ZodOptional<z.ZodString>;
2121
- }, "strip", z.ZodTypeAny, {
2122
- __t4s_required?: boolean;
2123
- pluginOptions?: any;
2124
- required?: boolean;
2125
- type?: "uid";
2126
- targetField?: string;
2127
- }, {
2128
- __t4s_required?: boolean;
2129
- pluginOptions?: any;
2130
- required?: boolean;
2131
- type?: "uid";
2132
- targetField?: string;
2133
- }>, z.ZodObject<{
2134
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2135
- pluginOptions: z.ZodOptional<z.ZodAny>;
2136
- required: z.ZodOptional<z.ZodBoolean>;
2137
- type: z.ZodLiteral<"richtext">;
2138
- }, "strip", z.ZodTypeAny, {
2139
- __t4s_required?: boolean;
2140
- pluginOptions?: any;
2141
- required?: boolean;
2142
- type?: "richtext";
2143
- }, {
2144
- __t4s_required?: boolean;
2145
- pluginOptions?: any;
2146
- required?: boolean;
2147
- type?: "richtext";
2148
- }>, z.ZodObject<{
2149
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2150
- pluginOptions: z.ZodOptional<z.ZodAny>;
2151
- required: z.ZodOptional<z.ZodBoolean>;
2152
- type: z.ZodLiteral<"json">;
2153
- }, "strip", z.ZodTypeAny, {
2154
- __t4s_required?: boolean;
2155
- pluginOptions?: any;
2156
- required?: boolean;
2157
- type?: "json";
2158
- }, {
2159
- __t4s_required?: boolean;
2160
- pluginOptions?: any;
2161
- required?: boolean;
2162
- type?: "json";
2163
- }>, z.ZodObject<{
2164
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2165
- pluginOptions: z.ZodOptional<z.ZodAny>;
2166
- required: z.ZodOptional<z.ZodBoolean>;
2167
- type: z.ZodLiteral<"password">;
2168
- }, "strip", z.ZodTypeAny, {
2169
- __t4s_required?: boolean;
2170
- pluginOptions?: any;
2171
- required?: boolean;
2172
- type?: "password";
2173
- }, {
2174
- __t4s_required?: boolean;
2175
- pluginOptions?: any;
2176
- required?: boolean;
2177
- type?: "password";
2178
- }>, z.ZodObject<{
2179
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2180
- pluginOptions: z.ZodOptional<z.ZodAny>;
2181
- required: z.ZodOptional<z.ZodBoolean>;
2182
- type: z.ZodLiteral<"integer">;
2183
- }, "strip", z.ZodTypeAny, {
2184
- __t4s_required?: boolean;
2185
- pluginOptions?: any;
2186
- required?: boolean;
2187
- type?: "integer";
2188
- }, {
2189
- __t4s_required?: boolean;
2190
- pluginOptions?: any;
2191
- required?: boolean;
2192
- type?: "integer";
2193
- }>, z.ZodObject<{
2194
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2195
- pluginOptions: z.ZodOptional<z.ZodAny>;
2196
- required: z.ZodOptional<z.ZodBoolean>;
2197
- type: z.ZodLiteral<"float">;
2198
- }, "strip", z.ZodTypeAny, {
2199
- __t4s_required?: boolean;
2200
- pluginOptions?: any;
2201
- required?: boolean;
2202
- type?: "float";
2203
- }, {
2204
- __t4s_required?: boolean;
2205
- pluginOptions?: any;
2206
- required?: boolean;
2207
- type?: "float";
2208
- }>, z.ZodObject<{
2209
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2210
- pluginOptions: z.ZodOptional<z.ZodAny>;
2211
- required: z.ZodOptional<z.ZodBoolean>;
2212
- type: z.ZodLiteral<"biginteger">;
2213
- }, "strip", z.ZodTypeAny, {
2214
- __t4s_required?: boolean;
2215
- pluginOptions?: any;
2216
- required?: boolean;
2217
- type?: "biginteger";
2218
- }, {
2219
- __t4s_required?: boolean;
2220
- pluginOptions?: any;
2221
- required?: boolean;
2222
- type?: "biginteger";
2223
- }>, z.ZodObject<{
2224
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2225
- pluginOptions: z.ZodOptional<z.ZodAny>;
2226
- required: z.ZodOptional<z.ZodBoolean>;
2227
- type: z.ZodLiteral<"decimal">;
2228
- }, "strip", z.ZodTypeAny, {
2229
- __t4s_required?: boolean;
2230
- pluginOptions?: any;
2231
- required?: boolean;
2232
- type?: "decimal";
2233
- }, {
2234
- __t4s_required?: boolean;
2235
- pluginOptions?: any;
2236
- required?: boolean;
2237
- type?: "decimal";
2238
- }>, z.ZodObject<{
2239
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2240
- pluginOptions: z.ZodOptional<z.ZodAny>;
2241
- required: z.ZodOptional<z.ZodBoolean>;
2242
- type: z.ZodLiteral<"enumeration">;
2243
- enum: z.ZodArray<z.ZodString, "many">;
2244
- }, "strip", z.ZodTypeAny, {
2245
- __t4s_required?: boolean;
2246
- pluginOptions?: any;
2247
- required?: boolean;
2248
- type?: "enumeration";
2249
- enum?: string[];
2250
- }, {
2251
- __t4s_required?: boolean;
2252
- pluginOptions?: any;
2253
- required?: boolean;
2254
- type?: "enumeration";
2255
- enum?: string[];
2256
- }>, z.ZodObject<{
2257
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2258
- pluginOptions: z.ZodOptional<z.ZodAny>;
2259
- required: z.ZodOptional<z.ZodBoolean>;
2260
- type: z.ZodLiteral<"date">;
2261
- }, "strip", z.ZodTypeAny, {
2262
- __t4s_required?: boolean;
2263
- pluginOptions?: any;
2264
- required?: boolean;
2265
- type?: "date";
2266
- }, {
2267
- __t4s_required?: boolean;
2268
- pluginOptions?: any;
2269
- required?: boolean;
2270
- type?: "date";
2271
- }>, z.ZodObject<{
2272
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2273
- pluginOptions: z.ZodOptional<z.ZodAny>;
2274
- required: z.ZodOptional<z.ZodBoolean>;
2275
- type: z.ZodLiteral<"datetime">;
2276
- }, "strip", z.ZodTypeAny, {
2277
- __t4s_required?: boolean;
2278
- pluginOptions?: any;
2279
- required?: boolean;
2280
- type?: "datetime";
2281
- }, {
2282
- __t4s_required?: boolean;
2283
- pluginOptions?: any;
2284
- required?: boolean;
2285
- type?: "datetime";
2286
- }>, z.ZodObject<{
2287
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2288
- pluginOptions: z.ZodOptional<z.ZodAny>;
2289
- required: z.ZodOptional<z.ZodBoolean>;
2290
- type: z.ZodLiteral<"time">;
2291
- }, "strip", z.ZodTypeAny, {
2292
- __t4s_required?: boolean;
2293
- pluginOptions?: any;
2294
- required?: boolean;
2295
- type?: "time";
2296
- }, {
2297
- __t4s_required?: boolean;
2298
- pluginOptions?: any;
2299
- required?: boolean;
2300
- type?: "time";
2301
- }>, z.ZodObject<{
2302
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2303
- pluginOptions: z.ZodOptional<z.ZodAny>;
2304
- required: z.ZodOptional<z.ZodBoolean>;
2305
- type: z.ZodLiteral<"media">;
2306
- multiple: z.ZodOptional<z.ZodBoolean>;
2307
- allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
2308
- }, "strip", z.ZodTypeAny, {
2309
- __t4s_required?: boolean;
2310
- pluginOptions?: any;
2311
- required?: boolean;
2312
- type?: "media";
2313
- multiple?: boolean;
2314
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
2315
- }, {
2316
- __t4s_required?: boolean;
2317
- pluginOptions?: any;
2318
- required?: boolean;
2319
- type?: "media";
2320
- multiple?: boolean;
2321
- allowedTypes?: ("images" | "videos" | "audios" | "files")[];
2322
- }>, z.ZodObject<{
2323
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2324
- pluginOptions: z.ZodOptional<z.ZodAny>;
2325
- required: z.ZodOptional<z.ZodBoolean>;
2326
- type: z.ZodLiteral<"boolean">;
2327
- }, "strip", z.ZodTypeAny, {
2328
- __t4s_required?: boolean;
2329
- pluginOptions?: any;
2330
- required?: boolean;
2331
- type?: "boolean";
2332
- }, {
2333
- __t4s_required?: boolean;
2334
- pluginOptions?: any;
2335
- required?: boolean;
2336
- type?: "boolean";
2337
- }>, z.ZodObject<{
2338
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2339
- pluginOptions: z.ZodOptional<z.ZodAny>;
2340
- required: z.ZodOptional<z.ZodBoolean>;
2341
- type: z.ZodLiteral<"relation">;
2342
- target: z.ZodString;
2343
- relation: z.ZodLiteral<"oneToOne">;
2344
- }, "strip", z.ZodTypeAny, {
2345
- __t4s_required?: boolean;
2346
- pluginOptions?: any;
2347
- required?: boolean;
2348
- type?: "relation";
2349
- target?: string;
2350
- relation?: "oneToOne";
2351
- }, {
2352
- __t4s_required?: boolean;
2353
- pluginOptions?: any;
2354
- required?: boolean;
2355
- type?: "relation";
2356
- target?: string;
2357
- relation?: "oneToOne";
2358
- }>, z.ZodObject<{
2359
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2360
- pluginOptions: z.ZodOptional<z.ZodAny>;
2361
- required: z.ZodOptional<z.ZodBoolean>;
2362
- type: z.ZodLiteral<"relation">;
2363
- target: z.ZodString;
2364
- relation: z.ZodLiteral<"oneToOne">;
2365
- inversedBy: z.ZodString;
2366
- }, "strip", z.ZodTypeAny, {
2367
- __t4s_required?: boolean;
2368
- pluginOptions?: any;
2369
- required?: boolean;
2370
- type?: "relation";
2371
- target?: string;
2372
- relation?: "oneToOne";
2373
- inversedBy?: string;
2374
- }, {
2375
- __t4s_required?: boolean;
2376
- pluginOptions?: any;
2377
- required?: boolean;
2378
- type?: "relation";
2379
- target?: string;
2380
- relation?: "oneToOne";
2381
- inversedBy?: string;
2382
- }>, z.ZodObject<{
2383
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2384
- pluginOptions: z.ZodOptional<z.ZodAny>;
2385
- required: z.ZodOptional<z.ZodBoolean>;
2386
- type: z.ZodLiteral<"relation">;
2387
- target: z.ZodString;
2388
- mappedBy: z.ZodString;
2389
- relation: z.ZodLiteral<"oneToMany">;
2390
- }, "strip", z.ZodTypeAny, {
2391
- __t4s_required?: boolean;
2392
- pluginOptions?: any;
2393
- required?: boolean;
2394
- type?: "relation";
2395
- target?: string;
2396
- mappedBy?: string;
2397
- relation?: "oneToMany";
2398
- }, {
2399
- __t4s_required?: boolean;
2400
- pluginOptions?: any;
2401
- required?: boolean;
2402
- type?: "relation";
2403
- target?: string;
2404
- mappedBy?: string;
2405
- relation?: "oneToMany";
2406
- }>, z.ZodObject<{
2407
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2408
- pluginOptions: z.ZodOptional<z.ZodAny>;
2409
- required: z.ZodOptional<z.ZodBoolean>;
2410
- type: z.ZodLiteral<"relation">;
2411
- target: z.ZodString;
2412
- relation: z.ZodLiteral<"manyToOne">;
2413
- inversedBy: z.ZodString;
2414
- }, "strip", z.ZodTypeAny, {
2415
- __t4s_required?: boolean;
2416
- pluginOptions?: any;
2417
- required?: boolean;
2418
- type?: "relation";
2419
- target?: string;
2420
- relation?: "manyToOne";
2421
- inversedBy?: string;
2422
- }, {
2423
- __t4s_required?: boolean;
2424
- pluginOptions?: any;
2425
- required?: boolean;
2426
- type?: "relation";
2427
- target?: string;
2428
- relation?: "manyToOne";
2429
- inversedBy?: string;
2430
- }>, z.ZodObject<{
2431
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2432
- pluginOptions: z.ZodOptional<z.ZodAny>;
2433
- required: z.ZodOptional<z.ZodBoolean>;
2434
- type: z.ZodLiteral<"relation">;
2435
- target: z.ZodString;
2436
- relation: z.ZodLiteral<"manyToMany">;
2437
- inversedBy: z.ZodOptional<z.ZodString>;
2438
- mappedBy: z.ZodOptional<z.ZodString>;
2439
- }, "strip", z.ZodTypeAny, {
2440
- __t4s_required?: boolean;
2441
- pluginOptions?: any;
2442
- required?: boolean;
2443
- type?: "relation";
2444
- target?: string;
2445
- relation?: "manyToMany";
2446
- inversedBy?: string;
2447
- mappedBy?: string;
2448
- }, {
2449
- __t4s_required?: boolean;
2450
- pluginOptions?: any;
2451
- required?: boolean;
2452
- type?: "relation";
2453
- target?: string;
2454
- relation?: "manyToMany";
2455
- inversedBy?: string;
2456
- mappedBy?: string;
2457
- }>, z.ZodObject<{
2458
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2459
- pluginOptions: z.ZodOptional<z.ZodAny>;
2460
- required: z.ZodOptional<z.ZodBoolean>;
2461
- type: z.ZodLiteral<"relation">;
2462
- target: z.ZodString;
2463
- relation: z.ZodLiteral<"oneToMany">;
2464
- }, "strip", z.ZodTypeAny, {
2465
- __t4s_required?: boolean;
2466
- pluginOptions?: any;
2467
- required?: boolean;
2468
- type?: "relation";
2469
- target?: string;
2470
- relation?: "oneToMany";
2471
- }, {
2472
- __t4s_required?: boolean;
2473
- pluginOptions?: any;
2474
- required?: boolean;
2475
- type?: "relation";
2476
- target?: string;
2477
- relation?: "oneToMany";
2478
- }>, z.ZodObject<{
2479
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2480
- pluginOptions: z.ZodOptional<z.ZodAny>;
2481
- required: z.ZodOptional<z.ZodBoolean>;
2482
- type: z.ZodLiteral<"relation">;
2483
- relation: z.ZodLiteral<"morphToMany">;
2484
- }, "strip", z.ZodTypeAny, {
2485
- __t4s_required?: boolean;
2486
- pluginOptions?: any;
2487
- required?: boolean;
2488
- type?: "relation";
2489
- relation?: "morphToMany";
2490
- }, {
2491
- __t4s_required?: boolean;
2492
- pluginOptions?: any;
2493
- required?: boolean;
2494
- type?: "relation";
2495
- relation?: "morphToMany";
2496
- }>, z.ZodObject<{
2497
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2498
- pluginOptions: z.ZodOptional<z.ZodAny>;
2499
- required: z.ZodOptional<z.ZodBoolean>;
2500
- type: z.ZodLiteral<"relation">;
2501
- relation: z.ZodLiteral<"morphToOne">;
2502
- }, "strip", z.ZodTypeAny, {
2503
- __t4s_required?: boolean;
2504
- pluginOptions?: any;
2505
- required?: boolean;
2506
- type?: "relation";
2507
- relation?: "morphToOne";
2508
- }, {
2509
- __t4s_required?: boolean;
2510
- pluginOptions?: any;
2511
- required?: boolean;
2512
- type?: "relation";
2513
- relation?: "morphToOne";
2514
- }>, z.ZodObject<{
2515
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2516
- pluginOptions: z.ZodOptional<z.ZodAny>;
2517
- required: z.ZodOptional<z.ZodBoolean>;
2518
- type: z.ZodLiteral<"component">;
2519
- repeatable: z.ZodOptional<z.ZodBoolean>;
2520
- component: z.ZodString;
2521
- }, "strip", z.ZodTypeAny, {
2522
- __t4s_required?: boolean;
2523
- pluginOptions?: any;
2524
- required?: boolean;
2525
- type?: "component";
2526
- repeatable?: boolean;
2527
- component?: string;
2528
- }, {
2529
- __t4s_required?: boolean;
2530
- pluginOptions?: any;
2531
- required?: boolean;
2532
- type?: "component";
2533
- repeatable?: boolean;
2534
- component?: string;
2535
- }>, z.ZodObject<{
2536
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2537
- pluginOptions: z.ZodOptional<z.ZodAny>;
2538
- required: z.ZodOptional<z.ZodBoolean>;
2539
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
2540
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2541
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2542
- pluginOptions: z.ZodOptional<z.ZodAny>;
2543
- required: z.ZodOptional<z.ZodBoolean>;
2544
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
2545
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2546
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2547
- pluginOptions: z.ZodOptional<z.ZodAny>;
2548
- required: z.ZodOptional<z.ZodBoolean>;
2549
- type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
2550
- }, z.ZodTypeAny, "passthrough">>]>, z.ZodObject<{
2551
- __t4s_required: z.ZodOptional<z.ZodBoolean>;
2552
- pluginOptions: z.ZodOptional<z.ZodAny>;
2553
- required: z.ZodOptional<z.ZodBoolean>;
2554
- type: z.ZodLiteral<"dynamiczone">;
2555
- components: z.ZodArray<z.ZodString, "many">;
2556
- }, "strip", z.ZodTypeAny, {
2557
- __t4s_required?: boolean;
2558
- pluginOptions?: any;
2559
- required?: boolean;
2560
- type?: "dynamiczone";
2561
- components?: string[];
2562
- }, {
2563
- __t4s_required?: boolean;
2564
- pluginOptions?: any;
2565
- required?: boolean;
2566
- type?: "dynamiczone";
2567
- components?: string[];
2568
- }>]>;
2569
- export type ContentTypeAttribute = z.infer<typeof contentTypeAttribute>;