@oak-digital/types-4-strapi-2 0.5.5 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/.eslintrc.json +2 -1
  2. package/CHANGELOG.md +7 -0
  3. package/README.md +17 -5
  4. package/lib/attributes/Attributes.d.ts +4 -3
  5. package/lib/attributes/Attributes.js +102 -78
  6. package/lib/content-types/reader.js +49 -145
  7. package/lib/extra-types/ExtraType.d.ts +2 -2
  8. package/lib/extra-types/ExtraType.js +19 -38
  9. package/lib/extra-types/createExtraTypes.d.ts +1 -1
  10. package/lib/extra-types/createExtraTypes.js +11 -12
  11. package/lib/file/File.d.ts +1 -1
  12. package/lib/file/File.js +44 -43
  13. package/lib/index.js +57 -19
  14. package/lib/interface/BuiltinComponentInterface.js +9 -27
  15. package/lib/interface/BuiltinInterface.d.ts +0 -1
  16. package/lib/interface/BuiltinInterface.js +5 -26
  17. package/lib/interface/ComponentInterface.d.ts +2 -1
  18. package/lib/interface/ComponentInterface.js +30 -48
  19. package/lib/interface/Interface.d.ts +6 -2
  20. package/lib/interface/Interface.js +69 -70
  21. package/lib/interface/builtinInterfaces.d.ts +1941 -2
  22. package/lib/interface/builtinInterfaces.js +56 -46
  23. package/lib/plugins/PluginManager.d.ts +8 -2
  24. package/lib/plugins/PluginManager.js +28 -35
  25. package/lib/plugins/draft-and-publish/index.d.ts +1 -1
  26. package/lib/plugins/draft-and-publish/index.js +17 -21
  27. package/lib/plugins/i18n/index.d.ts +1 -1
  28. package/lib/plugins/i18n/index.js +17 -22
  29. package/lib/plugins/index.js +4 -4
  30. package/lib/plugins/types.d.ts +1 -1
  31. package/lib/plugins/types.js +1 -4
  32. package/lib/plugins/url-alias/index.js +12 -15
  33. package/lib/plugins/url-alias/type.js +21 -32
  34. package/lib/program/InterfaceManager.d.ts +374 -24
  35. package/lib/program/InterfaceManager.js +128 -376
  36. package/lib/readers/by-file.d.ts +321 -0
  37. package/lib/readers/by-file.js +116 -0
  38. package/lib/readers/load-strapi/index.d.ts +319 -0
  39. package/lib/readers/load-strapi/index.js +106 -0
  40. package/lib/readers/load-strapi/remote.d.ts +1 -0
  41. package/lib/readers/load-strapi/remote.js +29 -0
  42. package/lib/readers/types/attributes.d.ts +1639 -0
  43. package/lib/readers/types/attributes.js +144 -0
  44. package/lib/readers/types/component.d.ts +723 -0
  45. package/lib/readers/types/component.js +11 -0
  46. package/lib/readers/types/content-type-reader.d.ts +16 -0
  47. package/lib/readers/types/content-type-reader.js +2 -0
  48. package/lib/readers/types/content-type.d.ts +766 -0
  49. package/lib/readers/types/content-type.js +16 -0
  50. package/lib/utils/casing/index.js +2 -2
  51. package/lib/utils/index.js +5 -39
  52. package/lib/writers/basic-writer.d.ts +24 -0
  53. package/lib/writers/basic-writer.js +75 -0
  54. package/lib/writers/types/writer.d.ts +4 -0
  55. package/lib/writers/types/writer.js +2 -0
  56. package/package.json +4 -2
  57. package/tests/strapi-project/.editorconfig +16 -0
  58. package/tests/strapi-project/.env.example +6 -0
  59. package/tests/strapi-project/README.md +57 -0
  60. package/tests/strapi-project/config/admin.ts +13 -0
  61. package/tests/strapi-project/config/api.ts +7 -0
  62. package/tests/strapi-project/config/database.ts +93 -0
  63. package/tests/strapi-project/config/middlewares.ts +12 -0
  64. package/tests/strapi-project/config/server.ts +10 -0
  65. package/tests/strapi-project/database/migrations/.gitkeep +0 -0
  66. package/tests/strapi-project/favicon.png +0 -0
  67. package/tests/strapi-project/package-lock.json +16125 -0
  68. package/tests/strapi-project/package.json +30 -0
  69. package/tests/strapi-project/public/robots.txt +3 -0
  70. package/tests/strapi-project/public/uploads/.gitkeep +0 -0
  71. package/tests/strapi-project/src/admin/app.example.tsx +35 -0
  72. package/tests/strapi-project/src/admin/webpack.config.example.js +9 -0
  73. package/tests/strapi-project/src/api/.gitkeep +0 -0
  74. package/tests/strapi-project/src/api/collection-1/content-types/collection-1/schema.json +18 -0
  75. package/tests/strapi-project/src/api/collection-1/content-types/generated-type/schema.json +18 -0
  76. package/tests/strapi-project/src/api/collection-1/controllers/collection-1.ts +7 -0
  77. package/tests/strapi-project/src/api/collection-1/controllers/generated-type.ts +7 -0
  78. package/tests/strapi-project/src/api/collection-1/routes/collection-1.ts +7 -0
  79. package/tests/strapi-project/src/api/collection-1/routes/generated-type.ts +7 -0
  80. package/tests/strapi-project/src/api/collection-1/services/collection-1.ts +7 -0
  81. package/tests/strapi-project/src/api/collection-1/services/generated-type.ts +7 -0
  82. package/tests/strapi-project/src/api/standalone-controller/controllers/standalone-controller.ts +13 -0
  83. package/tests/strapi-project/src/components/my-category/all-types.json +88 -0
  84. package/tests/strapi-project/src/components/other-category/sub-component.json +12 -0
  85. package/tests/strapi-project/src/extensions/.gitkeep +0 -0
  86. package/tests/strapi-project/src/index.ts +18 -0
@@ -1,5 +1,1944 @@
1
+ import { z } from 'zod';
1
2
  import { caseType } from '../utils/casing';
2
3
  import BuiltinComponentInterface from './BuiltinComponentInterface';
3
4
  import BuiltinInterface from './BuiltinInterface';
4
- export declare function createMediaInterface(directory: string, caseTypeName: caseType, prefix: string): BuiltinInterface;
5
- export declare function createMediaFormatInterface(directory: string, caseTypeName: caseType, prefix: string): BuiltinComponentInterface;
5
+ export declare const nestedAttribute: z.ZodObject<{
6
+ type: z.ZodLiteral<"nested">;
7
+ nullable: z.ZodOptional<z.ZodBoolean>;
8
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
9
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
10
+ pluginOptions: z.ZodAny;
11
+ required: z.ZodOptional<z.ZodBoolean>;
12
+ type: z.ZodEnum<["text", "string"]>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ __t4s_required?: boolean;
15
+ pluginOptions?: any;
16
+ required?: boolean;
17
+ type?: "text" | "string";
18
+ }, {
19
+ __t4s_required?: boolean;
20
+ pluginOptions?: any;
21
+ required?: boolean;
22
+ type?: "text" | "string";
23
+ }>, z.ZodObject<{
24
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
25
+ pluginOptions: z.ZodAny;
26
+ required: z.ZodOptional<z.ZodBoolean>;
27
+ type: z.ZodLiteral<"email">;
28
+ }, "strip", z.ZodTypeAny, {
29
+ __t4s_required?: boolean;
30
+ pluginOptions?: any;
31
+ required?: boolean;
32
+ type?: "email";
33
+ }, {
34
+ __t4s_required?: boolean;
35
+ pluginOptions?: any;
36
+ required?: boolean;
37
+ type?: "email";
38
+ }>, z.ZodObject<{
39
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
40
+ pluginOptions: z.ZodAny;
41
+ required: z.ZodOptional<z.ZodBoolean>;
42
+ type: z.ZodLiteral<"uid">;
43
+ targetField: z.ZodOptional<z.ZodString>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ __t4s_required?: boolean;
46
+ pluginOptions?: any;
47
+ required?: boolean;
48
+ type?: "uid";
49
+ targetField?: string;
50
+ }, {
51
+ __t4s_required?: boolean;
52
+ pluginOptions?: any;
53
+ required?: boolean;
54
+ type?: "uid";
55
+ targetField?: string;
56
+ }>, z.ZodObject<{
57
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
58
+ pluginOptions: z.ZodAny;
59
+ required: z.ZodOptional<z.ZodBoolean>;
60
+ type: z.ZodLiteral<"richtext">;
61
+ }, "strip", z.ZodTypeAny, {
62
+ __t4s_required?: boolean;
63
+ pluginOptions?: any;
64
+ required?: boolean;
65
+ type?: "richtext";
66
+ }, {
67
+ __t4s_required?: boolean;
68
+ pluginOptions?: any;
69
+ required?: boolean;
70
+ type?: "richtext";
71
+ }>, z.ZodObject<{
72
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
73
+ pluginOptions: z.ZodAny;
74
+ required: z.ZodOptional<z.ZodBoolean>;
75
+ type: z.ZodLiteral<"json">;
76
+ }, "strip", z.ZodTypeAny, {
77
+ __t4s_required?: boolean;
78
+ pluginOptions?: any;
79
+ required?: boolean;
80
+ type?: "json";
81
+ }, {
82
+ __t4s_required?: boolean;
83
+ pluginOptions?: any;
84
+ required?: boolean;
85
+ type?: "json";
86
+ }>, z.ZodObject<{
87
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
88
+ pluginOptions: z.ZodAny;
89
+ required: z.ZodOptional<z.ZodBoolean>;
90
+ type: z.ZodLiteral<"password">;
91
+ }, "strip", z.ZodTypeAny, {
92
+ __t4s_required?: boolean;
93
+ pluginOptions?: any;
94
+ required?: boolean;
95
+ type?: "password";
96
+ }, {
97
+ __t4s_required?: boolean;
98
+ pluginOptions?: any;
99
+ required?: boolean;
100
+ type?: "password";
101
+ }>, z.ZodUnion<[z.ZodObject<{
102
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
103
+ pluginOptions: z.ZodAny;
104
+ required: z.ZodOptional<z.ZodBoolean>;
105
+ type: z.ZodLiteral<"integer">;
106
+ }, "strip", z.ZodTypeAny, {
107
+ __t4s_required?: boolean;
108
+ pluginOptions?: any;
109
+ required?: boolean;
110
+ type?: "integer";
111
+ }, {
112
+ __t4s_required?: boolean;
113
+ pluginOptions?: any;
114
+ required?: boolean;
115
+ type?: "integer";
116
+ }>, z.ZodObject<{
117
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
118
+ pluginOptions: z.ZodAny;
119
+ required: z.ZodOptional<z.ZodBoolean>;
120
+ type: z.ZodLiteral<"float">;
121
+ }, "strip", z.ZodTypeAny, {
122
+ __t4s_required?: boolean;
123
+ pluginOptions?: any;
124
+ required?: boolean;
125
+ type?: "float";
126
+ }, {
127
+ __t4s_required?: boolean;
128
+ pluginOptions?: any;
129
+ required?: boolean;
130
+ type?: "float";
131
+ }>, z.ZodObject<{
132
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
133
+ pluginOptions: z.ZodAny;
134
+ required: z.ZodOptional<z.ZodBoolean>;
135
+ type: z.ZodLiteral<"biginteger">;
136
+ }, "strip", z.ZodTypeAny, {
137
+ __t4s_required?: boolean;
138
+ pluginOptions?: any;
139
+ required?: boolean;
140
+ type?: "biginteger";
141
+ }, {
142
+ __t4s_required?: boolean;
143
+ pluginOptions?: any;
144
+ required?: boolean;
145
+ type?: "biginteger";
146
+ }>, z.ZodObject<{
147
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
148
+ pluginOptions: z.ZodAny;
149
+ required: z.ZodOptional<z.ZodBoolean>;
150
+ type: z.ZodLiteral<"decimal">;
151
+ }, "strip", z.ZodTypeAny, {
152
+ __t4s_required?: boolean;
153
+ pluginOptions?: any;
154
+ required?: boolean;
155
+ type?: "decimal";
156
+ }, {
157
+ __t4s_required?: boolean;
158
+ pluginOptions?: any;
159
+ required?: boolean;
160
+ type?: "decimal";
161
+ }>]>, z.ZodObject<{
162
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
163
+ pluginOptions: z.ZodAny;
164
+ required: z.ZodOptional<z.ZodBoolean>;
165
+ type: z.ZodLiteral<"enumeration">;
166
+ enum: z.ZodArray<z.ZodString, "many">;
167
+ }, "strip", z.ZodTypeAny, {
168
+ __t4s_required?: boolean;
169
+ pluginOptions?: any;
170
+ required?: boolean;
171
+ type?: "enumeration";
172
+ enum?: string[];
173
+ }, {
174
+ __t4s_required?: boolean;
175
+ pluginOptions?: any;
176
+ required?: boolean;
177
+ type?: "enumeration";
178
+ enum?: string[];
179
+ }>, z.ZodUnion<[z.ZodObject<{
180
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
181
+ pluginOptions: z.ZodAny;
182
+ required: z.ZodOptional<z.ZodBoolean>;
183
+ type: z.ZodLiteral<"date">;
184
+ }, "strip", z.ZodTypeAny, {
185
+ __t4s_required?: boolean;
186
+ pluginOptions?: any;
187
+ required?: boolean;
188
+ type?: "date";
189
+ }, {
190
+ __t4s_required?: boolean;
191
+ pluginOptions?: any;
192
+ required?: boolean;
193
+ type?: "date";
194
+ }>, z.ZodObject<{
195
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
196
+ pluginOptions: z.ZodAny;
197
+ required: z.ZodOptional<z.ZodBoolean>;
198
+ type: z.ZodLiteral<"datetime">;
199
+ }, "strip", z.ZodTypeAny, {
200
+ __t4s_required?: boolean;
201
+ pluginOptions?: any;
202
+ required?: boolean;
203
+ type?: "datetime";
204
+ }, {
205
+ __t4s_required?: boolean;
206
+ pluginOptions?: any;
207
+ required?: boolean;
208
+ type?: "datetime";
209
+ }>, z.ZodObject<{
210
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
211
+ pluginOptions: z.ZodAny;
212
+ required: z.ZodOptional<z.ZodBoolean>;
213
+ type: z.ZodLiteral<"time">;
214
+ }, "strip", z.ZodTypeAny, {
215
+ __t4s_required?: boolean;
216
+ pluginOptions?: any;
217
+ required?: boolean;
218
+ type?: "time";
219
+ }, {
220
+ __t4s_required?: boolean;
221
+ pluginOptions?: any;
222
+ required?: boolean;
223
+ type?: "time";
224
+ }>]>, z.ZodObject<{
225
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
226
+ pluginOptions: z.ZodAny;
227
+ required: z.ZodOptional<z.ZodBoolean>;
228
+ type: z.ZodLiteral<"media">;
229
+ multiple: z.ZodOptional<z.ZodBoolean>;
230
+ allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ __t4s_required?: boolean;
233
+ pluginOptions?: any;
234
+ required?: boolean;
235
+ type?: "media";
236
+ multiple?: boolean;
237
+ allowedTypes?: ("images" | "videos" | "audios" | "files")[];
238
+ }, {
239
+ __t4s_required?: boolean;
240
+ pluginOptions?: any;
241
+ required?: boolean;
242
+ type?: "media";
243
+ multiple?: boolean;
244
+ allowedTypes?: ("images" | "videos" | "audios" | "files")[];
245
+ }>, z.ZodObject<{
246
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
247
+ pluginOptions: z.ZodAny;
248
+ required: z.ZodOptional<z.ZodBoolean>;
249
+ type: z.ZodLiteral<"boolean">;
250
+ }, "strip", z.ZodTypeAny, {
251
+ __t4s_required?: boolean;
252
+ pluginOptions?: any;
253
+ required?: boolean;
254
+ type?: "boolean";
255
+ }, {
256
+ __t4s_required?: boolean;
257
+ pluginOptions?: any;
258
+ required?: boolean;
259
+ type?: "boolean";
260
+ }>, z.ZodUnion<[z.ZodObject<{
261
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
262
+ pluginOptions: z.ZodAny;
263
+ required: z.ZodOptional<z.ZodBoolean>;
264
+ type: z.ZodLiteral<"relation">;
265
+ target: z.ZodString;
266
+ relation: z.ZodLiteral<"oneToOne">;
267
+ }, "strip", z.ZodTypeAny, {
268
+ __t4s_required?: boolean;
269
+ pluginOptions?: any;
270
+ required?: boolean;
271
+ type?: "relation";
272
+ target?: string;
273
+ relation?: "oneToOne";
274
+ }, {
275
+ __t4s_required?: boolean;
276
+ pluginOptions?: any;
277
+ required?: boolean;
278
+ type?: "relation";
279
+ target?: string;
280
+ relation?: "oneToOne";
281
+ }>, z.ZodObject<{
282
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
283
+ pluginOptions: z.ZodAny;
284
+ required: z.ZodOptional<z.ZodBoolean>;
285
+ type: z.ZodLiteral<"relation">;
286
+ target: z.ZodString;
287
+ relation: z.ZodLiteral<"oneToOne">;
288
+ inversedBy: z.ZodString;
289
+ }, "strip", z.ZodTypeAny, {
290
+ __t4s_required?: boolean;
291
+ pluginOptions?: any;
292
+ required?: boolean;
293
+ type?: "relation";
294
+ target?: string;
295
+ relation?: "oneToOne";
296
+ inversedBy?: string;
297
+ }, {
298
+ __t4s_required?: boolean;
299
+ pluginOptions?: any;
300
+ required?: boolean;
301
+ type?: "relation";
302
+ target?: string;
303
+ relation?: "oneToOne";
304
+ inversedBy?: string;
305
+ }>, z.ZodObject<{
306
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
307
+ pluginOptions: z.ZodAny;
308
+ required: z.ZodOptional<z.ZodBoolean>;
309
+ type: z.ZodLiteral<"relation">;
310
+ target: z.ZodString;
311
+ mappedBy: z.ZodString;
312
+ relation: z.ZodLiteral<"oneToMany">;
313
+ }, "strip", z.ZodTypeAny, {
314
+ __t4s_required?: boolean;
315
+ pluginOptions?: any;
316
+ required?: boolean;
317
+ type?: "relation";
318
+ target?: string;
319
+ mappedBy?: string;
320
+ relation?: "oneToMany";
321
+ }, {
322
+ __t4s_required?: boolean;
323
+ pluginOptions?: any;
324
+ required?: boolean;
325
+ type?: "relation";
326
+ target?: string;
327
+ mappedBy?: string;
328
+ relation?: "oneToMany";
329
+ }>, z.ZodObject<{
330
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
331
+ pluginOptions: z.ZodAny;
332
+ required: z.ZodOptional<z.ZodBoolean>;
333
+ type: z.ZodLiteral<"relation">;
334
+ target: z.ZodString;
335
+ relation: z.ZodLiteral<"manyToOne">;
336
+ inversedBy: z.ZodString;
337
+ }, "strip", z.ZodTypeAny, {
338
+ __t4s_required?: boolean;
339
+ pluginOptions?: any;
340
+ required?: boolean;
341
+ type?: "relation";
342
+ target?: string;
343
+ relation?: "manyToOne";
344
+ inversedBy?: string;
345
+ }, {
346
+ __t4s_required?: boolean;
347
+ pluginOptions?: any;
348
+ required?: boolean;
349
+ type?: "relation";
350
+ target?: string;
351
+ relation?: "manyToOne";
352
+ inversedBy?: string;
353
+ }>, z.ZodObject<{
354
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
355
+ pluginOptions: z.ZodAny;
356
+ required: z.ZodOptional<z.ZodBoolean>;
357
+ type: z.ZodLiteral<"relation">;
358
+ target: z.ZodString;
359
+ relation: z.ZodLiteral<"manyToMany">;
360
+ inversedBy: z.ZodOptional<z.ZodString>;
361
+ mappedBy: z.ZodOptional<z.ZodString>;
362
+ }, "strip", z.ZodTypeAny, {
363
+ __t4s_required?: boolean;
364
+ pluginOptions?: any;
365
+ required?: boolean;
366
+ type?: "relation";
367
+ target?: string;
368
+ relation?: "manyToMany";
369
+ inversedBy?: string;
370
+ mappedBy?: string;
371
+ }, {
372
+ __t4s_required?: boolean;
373
+ pluginOptions?: any;
374
+ required?: boolean;
375
+ type?: "relation";
376
+ target?: string;
377
+ relation?: "manyToMany";
378
+ inversedBy?: string;
379
+ mappedBy?: string;
380
+ }>, z.ZodObject<{
381
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
382
+ pluginOptions: z.ZodAny;
383
+ required: z.ZodOptional<z.ZodBoolean>;
384
+ type: z.ZodLiteral<"relation">;
385
+ target: z.ZodString;
386
+ relation: z.ZodLiteral<"oneToMany">;
387
+ }, "strip", z.ZodTypeAny, {
388
+ __t4s_required?: boolean;
389
+ pluginOptions?: any;
390
+ required?: boolean;
391
+ type?: "relation";
392
+ target?: string;
393
+ relation?: "oneToMany";
394
+ }, {
395
+ __t4s_required?: boolean;
396
+ pluginOptions?: any;
397
+ required?: boolean;
398
+ type?: "relation";
399
+ target?: string;
400
+ relation?: "oneToMany";
401
+ }>, z.ZodObject<{
402
+ type: z.ZodLiteral<"relation">;
403
+ relation: z.ZodLiteral<"morphToMany">;
404
+ }, "strip", z.ZodTypeAny, {
405
+ type?: "relation";
406
+ relation?: "morphToMany";
407
+ }, {
408
+ type?: "relation";
409
+ relation?: "morphToMany";
410
+ }>]>, z.ZodObject<{
411
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
412
+ pluginOptions: z.ZodAny;
413
+ required: z.ZodOptional<z.ZodBoolean>;
414
+ type: z.ZodLiteral<"component">;
415
+ repeatable: z.ZodOptional<z.ZodBoolean>;
416
+ component: z.ZodString;
417
+ }, "strip", z.ZodTypeAny, {
418
+ __t4s_required?: boolean;
419
+ pluginOptions?: any;
420
+ required?: boolean;
421
+ type?: "component";
422
+ repeatable?: boolean;
423
+ component?: string;
424
+ }, {
425
+ __t4s_required?: boolean;
426
+ pluginOptions?: any;
427
+ required?: boolean;
428
+ type?: "component";
429
+ repeatable?: boolean;
430
+ component?: string;
431
+ }>]>, z.ZodObject<{
432
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
433
+ pluginOptions: z.ZodAny;
434
+ required: z.ZodOptional<z.ZodBoolean>;
435
+ type: z.ZodLiteral<"dynamiczone">;
436
+ components: z.ZodArray<z.ZodString, "many">;
437
+ }, "strip", z.ZodTypeAny, {
438
+ __t4s_required?: boolean;
439
+ pluginOptions?: any;
440
+ required?: boolean;
441
+ type?: "dynamiczone";
442
+ components?: string[];
443
+ }, {
444
+ __t4s_required?: boolean;
445
+ pluginOptions?: any;
446
+ required?: boolean;
447
+ type?: "dynamiczone";
448
+ components?: string[];
449
+ }>]>>;
450
+ }, "strip", z.ZodTypeAny, {
451
+ type?: "nested";
452
+ nullable?: boolean;
453
+ fields?: Record<string, {
454
+ __t4s_required?: boolean;
455
+ pluginOptions?: any;
456
+ required?: boolean;
457
+ type?: "text" | "string";
458
+ } | {
459
+ __t4s_required?: boolean;
460
+ pluginOptions?: any;
461
+ required?: boolean;
462
+ type?: "email";
463
+ } | {
464
+ __t4s_required?: boolean;
465
+ pluginOptions?: any;
466
+ required?: boolean;
467
+ type?: "uid";
468
+ targetField?: string;
469
+ } | {
470
+ __t4s_required?: boolean;
471
+ pluginOptions?: any;
472
+ required?: boolean;
473
+ type?: "richtext";
474
+ } | {
475
+ __t4s_required?: boolean;
476
+ pluginOptions?: any;
477
+ required?: boolean;
478
+ type?: "json";
479
+ } | {
480
+ __t4s_required?: boolean;
481
+ pluginOptions?: any;
482
+ required?: boolean;
483
+ type?: "password";
484
+ } | {
485
+ __t4s_required?: boolean;
486
+ pluginOptions?: any;
487
+ required?: boolean;
488
+ type?: "integer";
489
+ } | {
490
+ __t4s_required?: boolean;
491
+ pluginOptions?: any;
492
+ required?: boolean;
493
+ type?: "float";
494
+ } | {
495
+ __t4s_required?: boolean;
496
+ pluginOptions?: any;
497
+ required?: boolean;
498
+ type?: "biginteger";
499
+ } | {
500
+ __t4s_required?: boolean;
501
+ pluginOptions?: any;
502
+ required?: boolean;
503
+ type?: "decimal";
504
+ } | {
505
+ __t4s_required?: boolean;
506
+ pluginOptions?: any;
507
+ required?: boolean;
508
+ type?: "enumeration";
509
+ enum?: string[];
510
+ } | {
511
+ __t4s_required?: boolean;
512
+ pluginOptions?: any;
513
+ required?: boolean;
514
+ type?: "date";
515
+ } | {
516
+ __t4s_required?: boolean;
517
+ pluginOptions?: any;
518
+ required?: boolean;
519
+ type?: "datetime";
520
+ } | {
521
+ __t4s_required?: boolean;
522
+ pluginOptions?: any;
523
+ required?: boolean;
524
+ type?: "time";
525
+ } | {
526
+ __t4s_required?: boolean;
527
+ pluginOptions?: any;
528
+ required?: boolean;
529
+ type?: "media";
530
+ multiple?: boolean;
531
+ allowedTypes?: ("images" | "videos" | "audios" | "files")[];
532
+ } | {
533
+ __t4s_required?: boolean;
534
+ pluginOptions?: any;
535
+ required?: boolean;
536
+ type?: "boolean";
537
+ } | {
538
+ __t4s_required?: boolean;
539
+ pluginOptions?: any;
540
+ required?: boolean;
541
+ type?: "relation";
542
+ target?: string;
543
+ relation?: "oneToOne";
544
+ } | {
545
+ __t4s_required?: boolean;
546
+ pluginOptions?: any;
547
+ required?: boolean;
548
+ type?: "relation";
549
+ target?: string;
550
+ relation?: "oneToOne";
551
+ inversedBy?: string;
552
+ } | {
553
+ __t4s_required?: boolean;
554
+ pluginOptions?: any;
555
+ required?: boolean;
556
+ type?: "relation";
557
+ target?: string;
558
+ mappedBy?: string;
559
+ relation?: "oneToMany";
560
+ } | {
561
+ __t4s_required?: boolean;
562
+ pluginOptions?: any;
563
+ required?: boolean;
564
+ type?: "relation";
565
+ target?: string;
566
+ relation?: "manyToOne";
567
+ inversedBy?: string;
568
+ } | {
569
+ __t4s_required?: boolean;
570
+ pluginOptions?: any;
571
+ required?: boolean;
572
+ type?: "relation";
573
+ target?: string;
574
+ relation?: "manyToMany";
575
+ inversedBy?: string;
576
+ mappedBy?: string;
577
+ } | {
578
+ __t4s_required?: boolean;
579
+ pluginOptions?: any;
580
+ required?: boolean;
581
+ type?: "relation";
582
+ target?: string;
583
+ relation?: "oneToMany";
584
+ } | {
585
+ type?: "relation";
586
+ relation?: "morphToMany";
587
+ } | {
588
+ __t4s_required?: boolean;
589
+ pluginOptions?: any;
590
+ required?: boolean;
591
+ type?: "component";
592
+ repeatable?: boolean;
593
+ component?: string;
594
+ } | {
595
+ __t4s_required?: boolean;
596
+ pluginOptions?: any;
597
+ required?: boolean;
598
+ type?: "dynamiczone";
599
+ components?: string[];
600
+ }>;
601
+ }, {
602
+ type?: "nested";
603
+ nullable?: boolean;
604
+ fields?: Record<string, {
605
+ __t4s_required?: boolean;
606
+ pluginOptions?: any;
607
+ required?: boolean;
608
+ type?: "text" | "string";
609
+ } | {
610
+ __t4s_required?: boolean;
611
+ pluginOptions?: any;
612
+ required?: boolean;
613
+ type?: "email";
614
+ } | {
615
+ __t4s_required?: boolean;
616
+ pluginOptions?: any;
617
+ required?: boolean;
618
+ type?: "uid";
619
+ targetField?: string;
620
+ } | {
621
+ __t4s_required?: boolean;
622
+ pluginOptions?: any;
623
+ required?: boolean;
624
+ type?: "richtext";
625
+ } | {
626
+ __t4s_required?: boolean;
627
+ pluginOptions?: any;
628
+ required?: boolean;
629
+ type?: "json";
630
+ } | {
631
+ __t4s_required?: boolean;
632
+ pluginOptions?: any;
633
+ required?: boolean;
634
+ type?: "password";
635
+ } | {
636
+ __t4s_required?: boolean;
637
+ pluginOptions?: any;
638
+ required?: boolean;
639
+ type?: "integer";
640
+ } | {
641
+ __t4s_required?: boolean;
642
+ pluginOptions?: any;
643
+ required?: boolean;
644
+ type?: "float";
645
+ } | {
646
+ __t4s_required?: boolean;
647
+ pluginOptions?: any;
648
+ required?: boolean;
649
+ type?: "biginteger";
650
+ } | {
651
+ __t4s_required?: boolean;
652
+ pluginOptions?: any;
653
+ required?: boolean;
654
+ type?: "decimal";
655
+ } | {
656
+ __t4s_required?: boolean;
657
+ pluginOptions?: any;
658
+ required?: boolean;
659
+ type?: "enumeration";
660
+ enum?: string[];
661
+ } | {
662
+ __t4s_required?: boolean;
663
+ pluginOptions?: any;
664
+ required?: boolean;
665
+ type?: "date";
666
+ } | {
667
+ __t4s_required?: boolean;
668
+ pluginOptions?: any;
669
+ required?: boolean;
670
+ type?: "datetime";
671
+ } | {
672
+ __t4s_required?: boolean;
673
+ pluginOptions?: any;
674
+ required?: boolean;
675
+ type?: "time";
676
+ } | {
677
+ __t4s_required?: boolean;
678
+ pluginOptions?: any;
679
+ required?: boolean;
680
+ type?: "media";
681
+ multiple?: boolean;
682
+ allowedTypes?: ("images" | "videos" | "audios" | "files")[];
683
+ } | {
684
+ __t4s_required?: boolean;
685
+ pluginOptions?: any;
686
+ required?: boolean;
687
+ type?: "boolean";
688
+ } | {
689
+ __t4s_required?: boolean;
690
+ pluginOptions?: any;
691
+ required?: boolean;
692
+ type?: "relation";
693
+ target?: string;
694
+ relation?: "oneToOne";
695
+ } | {
696
+ __t4s_required?: boolean;
697
+ pluginOptions?: any;
698
+ required?: boolean;
699
+ type?: "relation";
700
+ target?: string;
701
+ relation?: "oneToOne";
702
+ inversedBy?: string;
703
+ } | {
704
+ __t4s_required?: boolean;
705
+ pluginOptions?: any;
706
+ required?: boolean;
707
+ type?: "relation";
708
+ target?: string;
709
+ mappedBy?: string;
710
+ relation?: "oneToMany";
711
+ } | {
712
+ __t4s_required?: boolean;
713
+ pluginOptions?: any;
714
+ required?: boolean;
715
+ type?: "relation";
716
+ target?: string;
717
+ relation?: "manyToOne";
718
+ inversedBy?: string;
719
+ } | {
720
+ __t4s_required?: boolean;
721
+ pluginOptions?: any;
722
+ required?: boolean;
723
+ type?: "relation";
724
+ target?: string;
725
+ relation?: "manyToMany";
726
+ inversedBy?: string;
727
+ mappedBy?: string;
728
+ } | {
729
+ __t4s_required?: boolean;
730
+ pluginOptions?: any;
731
+ required?: boolean;
732
+ type?: "relation";
733
+ target?: string;
734
+ relation?: "oneToMany";
735
+ } | {
736
+ type?: "relation";
737
+ relation?: "morphToMany";
738
+ } | {
739
+ __t4s_required?: boolean;
740
+ pluginOptions?: any;
741
+ required?: boolean;
742
+ type?: "component";
743
+ repeatable?: boolean;
744
+ component?: string;
745
+ } | {
746
+ __t4s_required?: boolean;
747
+ pluginOptions?: any;
748
+ required?: boolean;
749
+ type?: "dynamiczone";
750
+ components?: string[];
751
+ }>;
752
+ }>;
753
+ export declare const attributeWithNested: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
754
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
755
+ pluginOptions: z.ZodAny;
756
+ required: z.ZodOptional<z.ZodBoolean>;
757
+ type: z.ZodEnum<["text", "string"]>;
758
+ }, "strip", z.ZodTypeAny, {
759
+ __t4s_required?: boolean;
760
+ pluginOptions?: any;
761
+ required?: boolean;
762
+ type?: "text" | "string";
763
+ }, {
764
+ __t4s_required?: boolean;
765
+ pluginOptions?: any;
766
+ required?: boolean;
767
+ type?: "text" | "string";
768
+ }>, z.ZodObject<{
769
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
770
+ pluginOptions: z.ZodAny;
771
+ required: z.ZodOptional<z.ZodBoolean>;
772
+ type: z.ZodLiteral<"email">;
773
+ }, "strip", z.ZodTypeAny, {
774
+ __t4s_required?: boolean;
775
+ pluginOptions?: any;
776
+ required?: boolean;
777
+ type?: "email";
778
+ }, {
779
+ __t4s_required?: boolean;
780
+ pluginOptions?: any;
781
+ required?: boolean;
782
+ type?: "email";
783
+ }>, z.ZodObject<{
784
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
785
+ pluginOptions: z.ZodAny;
786
+ required: z.ZodOptional<z.ZodBoolean>;
787
+ type: z.ZodLiteral<"uid">;
788
+ targetField: z.ZodOptional<z.ZodString>;
789
+ }, "strip", z.ZodTypeAny, {
790
+ __t4s_required?: boolean;
791
+ pluginOptions?: any;
792
+ required?: boolean;
793
+ type?: "uid";
794
+ targetField?: string;
795
+ }, {
796
+ __t4s_required?: boolean;
797
+ pluginOptions?: any;
798
+ required?: boolean;
799
+ type?: "uid";
800
+ targetField?: string;
801
+ }>, z.ZodObject<{
802
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
803
+ pluginOptions: z.ZodAny;
804
+ required: z.ZodOptional<z.ZodBoolean>;
805
+ type: z.ZodLiteral<"richtext">;
806
+ }, "strip", z.ZodTypeAny, {
807
+ __t4s_required?: boolean;
808
+ pluginOptions?: any;
809
+ required?: boolean;
810
+ type?: "richtext";
811
+ }, {
812
+ __t4s_required?: boolean;
813
+ pluginOptions?: any;
814
+ required?: boolean;
815
+ type?: "richtext";
816
+ }>, z.ZodObject<{
817
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
818
+ pluginOptions: z.ZodAny;
819
+ required: z.ZodOptional<z.ZodBoolean>;
820
+ type: z.ZodLiteral<"json">;
821
+ }, "strip", z.ZodTypeAny, {
822
+ __t4s_required?: boolean;
823
+ pluginOptions?: any;
824
+ required?: boolean;
825
+ type?: "json";
826
+ }, {
827
+ __t4s_required?: boolean;
828
+ pluginOptions?: any;
829
+ required?: boolean;
830
+ type?: "json";
831
+ }>, z.ZodObject<{
832
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
833
+ pluginOptions: z.ZodAny;
834
+ required: z.ZodOptional<z.ZodBoolean>;
835
+ type: z.ZodLiteral<"password">;
836
+ }, "strip", z.ZodTypeAny, {
837
+ __t4s_required?: boolean;
838
+ pluginOptions?: any;
839
+ required?: boolean;
840
+ type?: "password";
841
+ }, {
842
+ __t4s_required?: boolean;
843
+ pluginOptions?: any;
844
+ required?: boolean;
845
+ type?: "password";
846
+ }>, z.ZodUnion<[z.ZodObject<{
847
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
848
+ pluginOptions: z.ZodAny;
849
+ required: z.ZodOptional<z.ZodBoolean>;
850
+ type: z.ZodLiteral<"integer">;
851
+ }, "strip", z.ZodTypeAny, {
852
+ __t4s_required?: boolean;
853
+ pluginOptions?: any;
854
+ required?: boolean;
855
+ type?: "integer";
856
+ }, {
857
+ __t4s_required?: boolean;
858
+ pluginOptions?: any;
859
+ required?: boolean;
860
+ type?: "integer";
861
+ }>, z.ZodObject<{
862
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
863
+ pluginOptions: z.ZodAny;
864
+ required: z.ZodOptional<z.ZodBoolean>;
865
+ type: z.ZodLiteral<"float">;
866
+ }, "strip", z.ZodTypeAny, {
867
+ __t4s_required?: boolean;
868
+ pluginOptions?: any;
869
+ required?: boolean;
870
+ type?: "float";
871
+ }, {
872
+ __t4s_required?: boolean;
873
+ pluginOptions?: any;
874
+ required?: boolean;
875
+ type?: "float";
876
+ }>, z.ZodObject<{
877
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
878
+ pluginOptions: z.ZodAny;
879
+ required: z.ZodOptional<z.ZodBoolean>;
880
+ type: z.ZodLiteral<"biginteger">;
881
+ }, "strip", z.ZodTypeAny, {
882
+ __t4s_required?: boolean;
883
+ pluginOptions?: any;
884
+ required?: boolean;
885
+ type?: "biginteger";
886
+ }, {
887
+ __t4s_required?: boolean;
888
+ pluginOptions?: any;
889
+ required?: boolean;
890
+ type?: "biginteger";
891
+ }>, z.ZodObject<{
892
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
893
+ pluginOptions: z.ZodAny;
894
+ required: z.ZodOptional<z.ZodBoolean>;
895
+ type: z.ZodLiteral<"decimal">;
896
+ }, "strip", z.ZodTypeAny, {
897
+ __t4s_required?: boolean;
898
+ pluginOptions?: any;
899
+ required?: boolean;
900
+ type?: "decimal";
901
+ }, {
902
+ __t4s_required?: boolean;
903
+ pluginOptions?: any;
904
+ required?: boolean;
905
+ type?: "decimal";
906
+ }>]>, z.ZodObject<{
907
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
908
+ pluginOptions: z.ZodAny;
909
+ required: z.ZodOptional<z.ZodBoolean>;
910
+ type: z.ZodLiteral<"enumeration">;
911
+ enum: z.ZodArray<z.ZodString, "many">;
912
+ }, "strip", z.ZodTypeAny, {
913
+ __t4s_required?: boolean;
914
+ pluginOptions?: any;
915
+ required?: boolean;
916
+ type?: "enumeration";
917
+ enum?: string[];
918
+ }, {
919
+ __t4s_required?: boolean;
920
+ pluginOptions?: any;
921
+ required?: boolean;
922
+ type?: "enumeration";
923
+ enum?: string[];
924
+ }>, z.ZodUnion<[z.ZodObject<{
925
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
926
+ pluginOptions: z.ZodAny;
927
+ required: z.ZodOptional<z.ZodBoolean>;
928
+ type: z.ZodLiteral<"date">;
929
+ }, "strip", z.ZodTypeAny, {
930
+ __t4s_required?: boolean;
931
+ pluginOptions?: any;
932
+ required?: boolean;
933
+ type?: "date";
934
+ }, {
935
+ __t4s_required?: boolean;
936
+ pluginOptions?: any;
937
+ required?: boolean;
938
+ type?: "date";
939
+ }>, z.ZodObject<{
940
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
941
+ pluginOptions: z.ZodAny;
942
+ required: z.ZodOptional<z.ZodBoolean>;
943
+ type: z.ZodLiteral<"datetime">;
944
+ }, "strip", z.ZodTypeAny, {
945
+ __t4s_required?: boolean;
946
+ pluginOptions?: any;
947
+ required?: boolean;
948
+ type?: "datetime";
949
+ }, {
950
+ __t4s_required?: boolean;
951
+ pluginOptions?: any;
952
+ required?: boolean;
953
+ type?: "datetime";
954
+ }>, z.ZodObject<{
955
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
956
+ pluginOptions: z.ZodAny;
957
+ required: z.ZodOptional<z.ZodBoolean>;
958
+ type: z.ZodLiteral<"time">;
959
+ }, "strip", z.ZodTypeAny, {
960
+ __t4s_required?: boolean;
961
+ pluginOptions?: any;
962
+ required?: boolean;
963
+ type?: "time";
964
+ }, {
965
+ __t4s_required?: boolean;
966
+ pluginOptions?: any;
967
+ required?: boolean;
968
+ type?: "time";
969
+ }>]>, z.ZodObject<{
970
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
971
+ pluginOptions: z.ZodAny;
972
+ required: z.ZodOptional<z.ZodBoolean>;
973
+ type: z.ZodLiteral<"media">;
974
+ multiple: z.ZodOptional<z.ZodBoolean>;
975
+ allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
976
+ }, "strip", z.ZodTypeAny, {
977
+ __t4s_required?: boolean;
978
+ pluginOptions?: any;
979
+ required?: boolean;
980
+ type?: "media";
981
+ multiple?: boolean;
982
+ allowedTypes?: ("images" | "videos" | "audios" | "files")[];
983
+ }, {
984
+ __t4s_required?: boolean;
985
+ pluginOptions?: any;
986
+ required?: boolean;
987
+ type?: "media";
988
+ multiple?: boolean;
989
+ allowedTypes?: ("images" | "videos" | "audios" | "files")[];
990
+ }>, z.ZodObject<{
991
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
992
+ pluginOptions: z.ZodAny;
993
+ required: z.ZodOptional<z.ZodBoolean>;
994
+ type: z.ZodLiteral<"boolean">;
995
+ }, "strip", z.ZodTypeAny, {
996
+ __t4s_required?: boolean;
997
+ pluginOptions?: any;
998
+ required?: boolean;
999
+ type?: "boolean";
1000
+ }, {
1001
+ __t4s_required?: boolean;
1002
+ pluginOptions?: any;
1003
+ required?: boolean;
1004
+ type?: "boolean";
1005
+ }>, z.ZodUnion<[z.ZodObject<{
1006
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1007
+ pluginOptions: z.ZodAny;
1008
+ required: z.ZodOptional<z.ZodBoolean>;
1009
+ type: z.ZodLiteral<"relation">;
1010
+ target: z.ZodString;
1011
+ relation: z.ZodLiteral<"oneToOne">;
1012
+ }, "strip", z.ZodTypeAny, {
1013
+ __t4s_required?: boolean;
1014
+ pluginOptions?: any;
1015
+ required?: boolean;
1016
+ type?: "relation";
1017
+ target?: string;
1018
+ relation?: "oneToOne";
1019
+ }, {
1020
+ __t4s_required?: boolean;
1021
+ pluginOptions?: any;
1022
+ required?: boolean;
1023
+ type?: "relation";
1024
+ target?: string;
1025
+ relation?: "oneToOne";
1026
+ }>, z.ZodObject<{
1027
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1028
+ pluginOptions: z.ZodAny;
1029
+ required: z.ZodOptional<z.ZodBoolean>;
1030
+ type: z.ZodLiteral<"relation">;
1031
+ target: z.ZodString;
1032
+ relation: z.ZodLiteral<"oneToOne">;
1033
+ inversedBy: z.ZodString;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ __t4s_required?: boolean;
1036
+ pluginOptions?: any;
1037
+ required?: boolean;
1038
+ type?: "relation";
1039
+ target?: string;
1040
+ relation?: "oneToOne";
1041
+ inversedBy?: string;
1042
+ }, {
1043
+ __t4s_required?: boolean;
1044
+ pluginOptions?: any;
1045
+ required?: boolean;
1046
+ type?: "relation";
1047
+ target?: string;
1048
+ relation?: "oneToOne";
1049
+ inversedBy?: string;
1050
+ }>, z.ZodObject<{
1051
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1052
+ pluginOptions: z.ZodAny;
1053
+ required: z.ZodOptional<z.ZodBoolean>;
1054
+ type: z.ZodLiteral<"relation">;
1055
+ target: z.ZodString;
1056
+ mappedBy: z.ZodString;
1057
+ relation: z.ZodLiteral<"oneToMany">;
1058
+ }, "strip", z.ZodTypeAny, {
1059
+ __t4s_required?: boolean;
1060
+ pluginOptions?: any;
1061
+ required?: boolean;
1062
+ type?: "relation";
1063
+ target?: string;
1064
+ mappedBy?: string;
1065
+ relation?: "oneToMany";
1066
+ }, {
1067
+ __t4s_required?: boolean;
1068
+ pluginOptions?: any;
1069
+ required?: boolean;
1070
+ type?: "relation";
1071
+ target?: string;
1072
+ mappedBy?: string;
1073
+ relation?: "oneToMany";
1074
+ }>, z.ZodObject<{
1075
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1076
+ pluginOptions: z.ZodAny;
1077
+ required: z.ZodOptional<z.ZodBoolean>;
1078
+ type: z.ZodLiteral<"relation">;
1079
+ target: z.ZodString;
1080
+ relation: z.ZodLiteral<"manyToOne">;
1081
+ inversedBy: z.ZodString;
1082
+ }, "strip", z.ZodTypeAny, {
1083
+ __t4s_required?: boolean;
1084
+ pluginOptions?: any;
1085
+ required?: boolean;
1086
+ type?: "relation";
1087
+ target?: string;
1088
+ relation?: "manyToOne";
1089
+ inversedBy?: string;
1090
+ }, {
1091
+ __t4s_required?: boolean;
1092
+ pluginOptions?: any;
1093
+ required?: boolean;
1094
+ type?: "relation";
1095
+ target?: string;
1096
+ relation?: "manyToOne";
1097
+ inversedBy?: string;
1098
+ }>, z.ZodObject<{
1099
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1100
+ pluginOptions: z.ZodAny;
1101
+ required: z.ZodOptional<z.ZodBoolean>;
1102
+ type: z.ZodLiteral<"relation">;
1103
+ target: z.ZodString;
1104
+ relation: z.ZodLiteral<"manyToMany">;
1105
+ inversedBy: z.ZodOptional<z.ZodString>;
1106
+ mappedBy: z.ZodOptional<z.ZodString>;
1107
+ }, "strip", z.ZodTypeAny, {
1108
+ __t4s_required?: boolean;
1109
+ pluginOptions?: any;
1110
+ required?: boolean;
1111
+ type?: "relation";
1112
+ target?: string;
1113
+ relation?: "manyToMany";
1114
+ inversedBy?: string;
1115
+ mappedBy?: string;
1116
+ }, {
1117
+ __t4s_required?: boolean;
1118
+ pluginOptions?: any;
1119
+ required?: boolean;
1120
+ type?: "relation";
1121
+ target?: string;
1122
+ relation?: "manyToMany";
1123
+ inversedBy?: string;
1124
+ mappedBy?: string;
1125
+ }>, z.ZodObject<{
1126
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1127
+ pluginOptions: z.ZodAny;
1128
+ required: z.ZodOptional<z.ZodBoolean>;
1129
+ type: z.ZodLiteral<"relation">;
1130
+ target: z.ZodString;
1131
+ relation: z.ZodLiteral<"oneToMany">;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ __t4s_required?: boolean;
1134
+ pluginOptions?: any;
1135
+ required?: boolean;
1136
+ type?: "relation";
1137
+ target?: string;
1138
+ relation?: "oneToMany";
1139
+ }, {
1140
+ __t4s_required?: boolean;
1141
+ pluginOptions?: any;
1142
+ required?: boolean;
1143
+ type?: "relation";
1144
+ target?: string;
1145
+ relation?: "oneToMany";
1146
+ }>, z.ZodObject<{
1147
+ type: z.ZodLiteral<"relation">;
1148
+ relation: z.ZodLiteral<"morphToMany">;
1149
+ }, "strip", z.ZodTypeAny, {
1150
+ type?: "relation";
1151
+ relation?: "morphToMany";
1152
+ }, {
1153
+ type?: "relation";
1154
+ relation?: "morphToMany";
1155
+ }>]>, z.ZodObject<{
1156
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1157
+ pluginOptions: z.ZodAny;
1158
+ required: z.ZodOptional<z.ZodBoolean>;
1159
+ type: z.ZodLiteral<"component">;
1160
+ repeatable: z.ZodOptional<z.ZodBoolean>;
1161
+ component: z.ZodString;
1162
+ }, "strip", z.ZodTypeAny, {
1163
+ __t4s_required?: boolean;
1164
+ pluginOptions?: any;
1165
+ required?: boolean;
1166
+ type?: "component";
1167
+ repeatable?: boolean;
1168
+ component?: string;
1169
+ }, {
1170
+ __t4s_required?: boolean;
1171
+ pluginOptions?: any;
1172
+ required?: boolean;
1173
+ type?: "component";
1174
+ repeatable?: boolean;
1175
+ component?: string;
1176
+ }>]>, z.ZodObject<{
1177
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1178
+ pluginOptions: z.ZodAny;
1179
+ required: z.ZodOptional<z.ZodBoolean>;
1180
+ type: z.ZodLiteral<"dynamiczone">;
1181
+ components: z.ZodArray<z.ZodString, "many">;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ __t4s_required?: boolean;
1184
+ pluginOptions?: any;
1185
+ required?: boolean;
1186
+ type?: "dynamiczone";
1187
+ components?: string[];
1188
+ }, {
1189
+ __t4s_required?: boolean;
1190
+ pluginOptions?: any;
1191
+ required?: boolean;
1192
+ type?: "dynamiczone";
1193
+ components?: string[];
1194
+ }>]>, z.ZodObject<{
1195
+ type: z.ZodLiteral<"nested">;
1196
+ nullable: z.ZodOptional<z.ZodBoolean>;
1197
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1198
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1199
+ pluginOptions: z.ZodAny;
1200
+ required: z.ZodOptional<z.ZodBoolean>;
1201
+ type: z.ZodEnum<["text", "string"]>;
1202
+ }, "strip", z.ZodTypeAny, {
1203
+ __t4s_required?: boolean;
1204
+ pluginOptions?: any;
1205
+ required?: boolean;
1206
+ type?: "text" | "string";
1207
+ }, {
1208
+ __t4s_required?: boolean;
1209
+ pluginOptions?: any;
1210
+ required?: boolean;
1211
+ type?: "text" | "string";
1212
+ }>, z.ZodObject<{
1213
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1214
+ pluginOptions: z.ZodAny;
1215
+ required: z.ZodOptional<z.ZodBoolean>;
1216
+ type: z.ZodLiteral<"email">;
1217
+ }, "strip", z.ZodTypeAny, {
1218
+ __t4s_required?: boolean;
1219
+ pluginOptions?: any;
1220
+ required?: boolean;
1221
+ type?: "email";
1222
+ }, {
1223
+ __t4s_required?: boolean;
1224
+ pluginOptions?: any;
1225
+ required?: boolean;
1226
+ type?: "email";
1227
+ }>, z.ZodObject<{
1228
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1229
+ pluginOptions: z.ZodAny;
1230
+ required: z.ZodOptional<z.ZodBoolean>;
1231
+ type: z.ZodLiteral<"uid">;
1232
+ targetField: z.ZodOptional<z.ZodString>;
1233
+ }, "strip", z.ZodTypeAny, {
1234
+ __t4s_required?: boolean;
1235
+ pluginOptions?: any;
1236
+ required?: boolean;
1237
+ type?: "uid";
1238
+ targetField?: string;
1239
+ }, {
1240
+ __t4s_required?: boolean;
1241
+ pluginOptions?: any;
1242
+ required?: boolean;
1243
+ type?: "uid";
1244
+ targetField?: string;
1245
+ }>, z.ZodObject<{
1246
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1247
+ pluginOptions: z.ZodAny;
1248
+ required: z.ZodOptional<z.ZodBoolean>;
1249
+ type: z.ZodLiteral<"richtext">;
1250
+ }, "strip", z.ZodTypeAny, {
1251
+ __t4s_required?: boolean;
1252
+ pluginOptions?: any;
1253
+ required?: boolean;
1254
+ type?: "richtext";
1255
+ }, {
1256
+ __t4s_required?: boolean;
1257
+ pluginOptions?: any;
1258
+ required?: boolean;
1259
+ type?: "richtext";
1260
+ }>, z.ZodObject<{
1261
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1262
+ pluginOptions: z.ZodAny;
1263
+ required: z.ZodOptional<z.ZodBoolean>;
1264
+ type: z.ZodLiteral<"json">;
1265
+ }, "strip", z.ZodTypeAny, {
1266
+ __t4s_required?: boolean;
1267
+ pluginOptions?: any;
1268
+ required?: boolean;
1269
+ type?: "json";
1270
+ }, {
1271
+ __t4s_required?: boolean;
1272
+ pluginOptions?: any;
1273
+ required?: boolean;
1274
+ type?: "json";
1275
+ }>, z.ZodObject<{
1276
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1277
+ pluginOptions: z.ZodAny;
1278
+ required: z.ZodOptional<z.ZodBoolean>;
1279
+ type: z.ZodLiteral<"password">;
1280
+ }, "strip", z.ZodTypeAny, {
1281
+ __t4s_required?: boolean;
1282
+ pluginOptions?: any;
1283
+ required?: boolean;
1284
+ type?: "password";
1285
+ }, {
1286
+ __t4s_required?: boolean;
1287
+ pluginOptions?: any;
1288
+ required?: boolean;
1289
+ type?: "password";
1290
+ }>, z.ZodUnion<[z.ZodObject<{
1291
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1292
+ pluginOptions: z.ZodAny;
1293
+ required: z.ZodOptional<z.ZodBoolean>;
1294
+ type: z.ZodLiteral<"integer">;
1295
+ }, "strip", z.ZodTypeAny, {
1296
+ __t4s_required?: boolean;
1297
+ pluginOptions?: any;
1298
+ required?: boolean;
1299
+ type?: "integer";
1300
+ }, {
1301
+ __t4s_required?: boolean;
1302
+ pluginOptions?: any;
1303
+ required?: boolean;
1304
+ type?: "integer";
1305
+ }>, z.ZodObject<{
1306
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1307
+ pluginOptions: z.ZodAny;
1308
+ required: z.ZodOptional<z.ZodBoolean>;
1309
+ type: z.ZodLiteral<"float">;
1310
+ }, "strip", z.ZodTypeAny, {
1311
+ __t4s_required?: boolean;
1312
+ pluginOptions?: any;
1313
+ required?: boolean;
1314
+ type?: "float";
1315
+ }, {
1316
+ __t4s_required?: boolean;
1317
+ pluginOptions?: any;
1318
+ required?: boolean;
1319
+ type?: "float";
1320
+ }>, z.ZodObject<{
1321
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1322
+ pluginOptions: z.ZodAny;
1323
+ required: z.ZodOptional<z.ZodBoolean>;
1324
+ type: z.ZodLiteral<"biginteger">;
1325
+ }, "strip", z.ZodTypeAny, {
1326
+ __t4s_required?: boolean;
1327
+ pluginOptions?: any;
1328
+ required?: boolean;
1329
+ type?: "biginteger";
1330
+ }, {
1331
+ __t4s_required?: boolean;
1332
+ pluginOptions?: any;
1333
+ required?: boolean;
1334
+ type?: "biginteger";
1335
+ }>, z.ZodObject<{
1336
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1337
+ pluginOptions: z.ZodAny;
1338
+ required: z.ZodOptional<z.ZodBoolean>;
1339
+ type: z.ZodLiteral<"decimal">;
1340
+ }, "strip", z.ZodTypeAny, {
1341
+ __t4s_required?: boolean;
1342
+ pluginOptions?: any;
1343
+ required?: boolean;
1344
+ type?: "decimal";
1345
+ }, {
1346
+ __t4s_required?: boolean;
1347
+ pluginOptions?: any;
1348
+ required?: boolean;
1349
+ type?: "decimal";
1350
+ }>]>, z.ZodObject<{
1351
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1352
+ pluginOptions: z.ZodAny;
1353
+ required: z.ZodOptional<z.ZodBoolean>;
1354
+ type: z.ZodLiteral<"enumeration">;
1355
+ enum: z.ZodArray<z.ZodString, "many">;
1356
+ }, "strip", z.ZodTypeAny, {
1357
+ __t4s_required?: boolean;
1358
+ pluginOptions?: any;
1359
+ required?: boolean;
1360
+ type?: "enumeration";
1361
+ enum?: string[];
1362
+ }, {
1363
+ __t4s_required?: boolean;
1364
+ pluginOptions?: any;
1365
+ required?: boolean;
1366
+ type?: "enumeration";
1367
+ enum?: string[];
1368
+ }>, z.ZodUnion<[z.ZodObject<{
1369
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1370
+ pluginOptions: z.ZodAny;
1371
+ required: z.ZodOptional<z.ZodBoolean>;
1372
+ type: z.ZodLiteral<"date">;
1373
+ }, "strip", z.ZodTypeAny, {
1374
+ __t4s_required?: boolean;
1375
+ pluginOptions?: any;
1376
+ required?: boolean;
1377
+ type?: "date";
1378
+ }, {
1379
+ __t4s_required?: boolean;
1380
+ pluginOptions?: any;
1381
+ required?: boolean;
1382
+ type?: "date";
1383
+ }>, z.ZodObject<{
1384
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1385
+ pluginOptions: z.ZodAny;
1386
+ required: z.ZodOptional<z.ZodBoolean>;
1387
+ type: z.ZodLiteral<"datetime">;
1388
+ }, "strip", z.ZodTypeAny, {
1389
+ __t4s_required?: boolean;
1390
+ pluginOptions?: any;
1391
+ required?: boolean;
1392
+ type?: "datetime";
1393
+ }, {
1394
+ __t4s_required?: boolean;
1395
+ pluginOptions?: any;
1396
+ required?: boolean;
1397
+ type?: "datetime";
1398
+ }>, z.ZodObject<{
1399
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1400
+ pluginOptions: z.ZodAny;
1401
+ required: z.ZodOptional<z.ZodBoolean>;
1402
+ type: z.ZodLiteral<"time">;
1403
+ }, "strip", z.ZodTypeAny, {
1404
+ __t4s_required?: boolean;
1405
+ pluginOptions?: any;
1406
+ required?: boolean;
1407
+ type?: "time";
1408
+ }, {
1409
+ __t4s_required?: boolean;
1410
+ pluginOptions?: any;
1411
+ required?: boolean;
1412
+ type?: "time";
1413
+ }>]>, z.ZodObject<{
1414
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1415
+ pluginOptions: z.ZodAny;
1416
+ required: z.ZodOptional<z.ZodBoolean>;
1417
+ type: z.ZodLiteral<"media">;
1418
+ multiple: z.ZodOptional<z.ZodBoolean>;
1419
+ allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
1420
+ }, "strip", z.ZodTypeAny, {
1421
+ __t4s_required?: boolean;
1422
+ pluginOptions?: any;
1423
+ required?: boolean;
1424
+ type?: "media";
1425
+ multiple?: boolean;
1426
+ allowedTypes?: ("images" | "videos" | "audios" | "files")[];
1427
+ }, {
1428
+ __t4s_required?: boolean;
1429
+ pluginOptions?: any;
1430
+ required?: boolean;
1431
+ type?: "media";
1432
+ multiple?: boolean;
1433
+ allowedTypes?: ("images" | "videos" | "audios" | "files")[];
1434
+ }>, z.ZodObject<{
1435
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1436
+ pluginOptions: z.ZodAny;
1437
+ required: z.ZodOptional<z.ZodBoolean>;
1438
+ type: z.ZodLiteral<"boolean">;
1439
+ }, "strip", z.ZodTypeAny, {
1440
+ __t4s_required?: boolean;
1441
+ pluginOptions?: any;
1442
+ required?: boolean;
1443
+ type?: "boolean";
1444
+ }, {
1445
+ __t4s_required?: boolean;
1446
+ pluginOptions?: any;
1447
+ required?: boolean;
1448
+ type?: "boolean";
1449
+ }>, z.ZodUnion<[z.ZodObject<{
1450
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1451
+ pluginOptions: z.ZodAny;
1452
+ required: z.ZodOptional<z.ZodBoolean>;
1453
+ type: z.ZodLiteral<"relation">;
1454
+ target: z.ZodString;
1455
+ relation: z.ZodLiteral<"oneToOne">;
1456
+ }, "strip", z.ZodTypeAny, {
1457
+ __t4s_required?: boolean;
1458
+ pluginOptions?: any;
1459
+ required?: boolean;
1460
+ type?: "relation";
1461
+ target?: string;
1462
+ relation?: "oneToOne";
1463
+ }, {
1464
+ __t4s_required?: boolean;
1465
+ pluginOptions?: any;
1466
+ required?: boolean;
1467
+ type?: "relation";
1468
+ target?: string;
1469
+ relation?: "oneToOne";
1470
+ }>, z.ZodObject<{
1471
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1472
+ pluginOptions: z.ZodAny;
1473
+ required: z.ZodOptional<z.ZodBoolean>;
1474
+ type: z.ZodLiteral<"relation">;
1475
+ target: z.ZodString;
1476
+ relation: z.ZodLiteral<"oneToOne">;
1477
+ inversedBy: z.ZodString;
1478
+ }, "strip", z.ZodTypeAny, {
1479
+ __t4s_required?: boolean;
1480
+ pluginOptions?: any;
1481
+ required?: boolean;
1482
+ type?: "relation";
1483
+ target?: string;
1484
+ relation?: "oneToOne";
1485
+ inversedBy?: string;
1486
+ }, {
1487
+ __t4s_required?: boolean;
1488
+ pluginOptions?: any;
1489
+ required?: boolean;
1490
+ type?: "relation";
1491
+ target?: string;
1492
+ relation?: "oneToOne";
1493
+ inversedBy?: string;
1494
+ }>, z.ZodObject<{
1495
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1496
+ pluginOptions: z.ZodAny;
1497
+ required: z.ZodOptional<z.ZodBoolean>;
1498
+ type: z.ZodLiteral<"relation">;
1499
+ target: z.ZodString;
1500
+ mappedBy: z.ZodString;
1501
+ relation: z.ZodLiteral<"oneToMany">;
1502
+ }, "strip", z.ZodTypeAny, {
1503
+ __t4s_required?: boolean;
1504
+ pluginOptions?: any;
1505
+ required?: boolean;
1506
+ type?: "relation";
1507
+ target?: string;
1508
+ mappedBy?: string;
1509
+ relation?: "oneToMany";
1510
+ }, {
1511
+ __t4s_required?: boolean;
1512
+ pluginOptions?: any;
1513
+ required?: boolean;
1514
+ type?: "relation";
1515
+ target?: string;
1516
+ mappedBy?: string;
1517
+ relation?: "oneToMany";
1518
+ }>, z.ZodObject<{
1519
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1520
+ pluginOptions: z.ZodAny;
1521
+ required: z.ZodOptional<z.ZodBoolean>;
1522
+ type: z.ZodLiteral<"relation">;
1523
+ target: z.ZodString;
1524
+ relation: z.ZodLiteral<"manyToOne">;
1525
+ inversedBy: z.ZodString;
1526
+ }, "strip", z.ZodTypeAny, {
1527
+ __t4s_required?: boolean;
1528
+ pluginOptions?: any;
1529
+ required?: boolean;
1530
+ type?: "relation";
1531
+ target?: string;
1532
+ relation?: "manyToOne";
1533
+ inversedBy?: string;
1534
+ }, {
1535
+ __t4s_required?: boolean;
1536
+ pluginOptions?: any;
1537
+ required?: boolean;
1538
+ type?: "relation";
1539
+ target?: string;
1540
+ relation?: "manyToOne";
1541
+ inversedBy?: string;
1542
+ }>, z.ZodObject<{
1543
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1544
+ pluginOptions: z.ZodAny;
1545
+ required: z.ZodOptional<z.ZodBoolean>;
1546
+ type: z.ZodLiteral<"relation">;
1547
+ target: z.ZodString;
1548
+ relation: z.ZodLiteral<"manyToMany">;
1549
+ inversedBy: z.ZodOptional<z.ZodString>;
1550
+ mappedBy: z.ZodOptional<z.ZodString>;
1551
+ }, "strip", z.ZodTypeAny, {
1552
+ __t4s_required?: boolean;
1553
+ pluginOptions?: any;
1554
+ required?: boolean;
1555
+ type?: "relation";
1556
+ target?: string;
1557
+ relation?: "manyToMany";
1558
+ inversedBy?: string;
1559
+ mappedBy?: string;
1560
+ }, {
1561
+ __t4s_required?: boolean;
1562
+ pluginOptions?: any;
1563
+ required?: boolean;
1564
+ type?: "relation";
1565
+ target?: string;
1566
+ relation?: "manyToMany";
1567
+ inversedBy?: string;
1568
+ mappedBy?: string;
1569
+ }>, z.ZodObject<{
1570
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1571
+ pluginOptions: z.ZodAny;
1572
+ required: z.ZodOptional<z.ZodBoolean>;
1573
+ type: z.ZodLiteral<"relation">;
1574
+ target: z.ZodString;
1575
+ relation: z.ZodLiteral<"oneToMany">;
1576
+ }, "strip", z.ZodTypeAny, {
1577
+ __t4s_required?: boolean;
1578
+ pluginOptions?: any;
1579
+ required?: boolean;
1580
+ type?: "relation";
1581
+ target?: string;
1582
+ relation?: "oneToMany";
1583
+ }, {
1584
+ __t4s_required?: boolean;
1585
+ pluginOptions?: any;
1586
+ required?: boolean;
1587
+ type?: "relation";
1588
+ target?: string;
1589
+ relation?: "oneToMany";
1590
+ }>, z.ZodObject<{
1591
+ type: z.ZodLiteral<"relation">;
1592
+ relation: z.ZodLiteral<"morphToMany">;
1593
+ }, "strip", z.ZodTypeAny, {
1594
+ type?: "relation";
1595
+ relation?: "morphToMany";
1596
+ }, {
1597
+ type?: "relation";
1598
+ relation?: "morphToMany";
1599
+ }>]>, z.ZodObject<{
1600
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1601
+ pluginOptions: z.ZodAny;
1602
+ required: z.ZodOptional<z.ZodBoolean>;
1603
+ type: z.ZodLiteral<"component">;
1604
+ repeatable: z.ZodOptional<z.ZodBoolean>;
1605
+ component: z.ZodString;
1606
+ }, "strip", z.ZodTypeAny, {
1607
+ __t4s_required?: boolean;
1608
+ pluginOptions?: any;
1609
+ required?: boolean;
1610
+ type?: "component";
1611
+ repeatable?: boolean;
1612
+ component?: string;
1613
+ }, {
1614
+ __t4s_required?: boolean;
1615
+ pluginOptions?: any;
1616
+ required?: boolean;
1617
+ type?: "component";
1618
+ repeatable?: boolean;
1619
+ component?: string;
1620
+ }>]>, z.ZodObject<{
1621
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1622
+ pluginOptions: z.ZodAny;
1623
+ required: z.ZodOptional<z.ZodBoolean>;
1624
+ type: z.ZodLiteral<"dynamiczone">;
1625
+ components: z.ZodArray<z.ZodString, "many">;
1626
+ }, "strip", z.ZodTypeAny, {
1627
+ __t4s_required?: boolean;
1628
+ pluginOptions?: any;
1629
+ required?: boolean;
1630
+ type?: "dynamiczone";
1631
+ components?: string[];
1632
+ }, {
1633
+ __t4s_required?: boolean;
1634
+ pluginOptions?: any;
1635
+ required?: boolean;
1636
+ type?: "dynamiczone";
1637
+ components?: string[];
1638
+ }>]>>;
1639
+ }, "strip", z.ZodTypeAny, {
1640
+ type?: "nested";
1641
+ nullable?: boolean;
1642
+ fields?: Record<string, {
1643
+ __t4s_required?: boolean;
1644
+ pluginOptions?: any;
1645
+ required?: boolean;
1646
+ type?: "text" | "string";
1647
+ } | {
1648
+ __t4s_required?: boolean;
1649
+ pluginOptions?: any;
1650
+ required?: boolean;
1651
+ type?: "email";
1652
+ } | {
1653
+ __t4s_required?: boolean;
1654
+ pluginOptions?: any;
1655
+ required?: boolean;
1656
+ type?: "uid";
1657
+ targetField?: string;
1658
+ } | {
1659
+ __t4s_required?: boolean;
1660
+ pluginOptions?: any;
1661
+ required?: boolean;
1662
+ type?: "richtext";
1663
+ } | {
1664
+ __t4s_required?: boolean;
1665
+ pluginOptions?: any;
1666
+ required?: boolean;
1667
+ type?: "json";
1668
+ } | {
1669
+ __t4s_required?: boolean;
1670
+ pluginOptions?: any;
1671
+ required?: boolean;
1672
+ type?: "password";
1673
+ } | {
1674
+ __t4s_required?: boolean;
1675
+ pluginOptions?: any;
1676
+ required?: boolean;
1677
+ type?: "integer";
1678
+ } | {
1679
+ __t4s_required?: boolean;
1680
+ pluginOptions?: any;
1681
+ required?: boolean;
1682
+ type?: "float";
1683
+ } | {
1684
+ __t4s_required?: boolean;
1685
+ pluginOptions?: any;
1686
+ required?: boolean;
1687
+ type?: "biginteger";
1688
+ } | {
1689
+ __t4s_required?: boolean;
1690
+ pluginOptions?: any;
1691
+ required?: boolean;
1692
+ type?: "decimal";
1693
+ } | {
1694
+ __t4s_required?: boolean;
1695
+ pluginOptions?: any;
1696
+ required?: boolean;
1697
+ type?: "enumeration";
1698
+ enum?: string[];
1699
+ } | {
1700
+ __t4s_required?: boolean;
1701
+ pluginOptions?: any;
1702
+ required?: boolean;
1703
+ type?: "date";
1704
+ } | {
1705
+ __t4s_required?: boolean;
1706
+ pluginOptions?: any;
1707
+ required?: boolean;
1708
+ type?: "datetime";
1709
+ } | {
1710
+ __t4s_required?: boolean;
1711
+ pluginOptions?: any;
1712
+ required?: boolean;
1713
+ type?: "time";
1714
+ } | {
1715
+ __t4s_required?: boolean;
1716
+ pluginOptions?: any;
1717
+ required?: boolean;
1718
+ type?: "media";
1719
+ multiple?: boolean;
1720
+ allowedTypes?: ("images" | "videos" | "audios" | "files")[];
1721
+ } | {
1722
+ __t4s_required?: boolean;
1723
+ pluginOptions?: any;
1724
+ required?: boolean;
1725
+ type?: "boolean";
1726
+ } | {
1727
+ __t4s_required?: boolean;
1728
+ pluginOptions?: any;
1729
+ required?: boolean;
1730
+ type?: "relation";
1731
+ target?: string;
1732
+ relation?: "oneToOne";
1733
+ } | {
1734
+ __t4s_required?: boolean;
1735
+ pluginOptions?: any;
1736
+ required?: boolean;
1737
+ type?: "relation";
1738
+ target?: string;
1739
+ relation?: "oneToOne";
1740
+ inversedBy?: string;
1741
+ } | {
1742
+ __t4s_required?: boolean;
1743
+ pluginOptions?: any;
1744
+ required?: boolean;
1745
+ type?: "relation";
1746
+ target?: string;
1747
+ mappedBy?: string;
1748
+ relation?: "oneToMany";
1749
+ } | {
1750
+ __t4s_required?: boolean;
1751
+ pluginOptions?: any;
1752
+ required?: boolean;
1753
+ type?: "relation";
1754
+ target?: string;
1755
+ relation?: "manyToOne";
1756
+ inversedBy?: string;
1757
+ } | {
1758
+ __t4s_required?: boolean;
1759
+ pluginOptions?: any;
1760
+ required?: boolean;
1761
+ type?: "relation";
1762
+ target?: string;
1763
+ relation?: "manyToMany";
1764
+ inversedBy?: string;
1765
+ mappedBy?: string;
1766
+ } | {
1767
+ __t4s_required?: boolean;
1768
+ pluginOptions?: any;
1769
+ required?: boolean;
1770
+ type?: "relation";
1771
+ target?: string;
1772
+ relation?: "oneToMany";
1773
+ } | {
1774
+ type?: "relation";
1775
+ relation?: "morphToMany";
1776
+ } | {
1777
+ __t4s_required?: boolean;
1778
+ pluginOptions?: any;
1779
+ required?: boolean;
1780
+ type?: "component";
1781
+ repeatable?: boolean;
1782
+ component?: string;
1783
+ } | {
1784
+ __t4s_required?: boolean;
1785
+ pluginOptions?: any;
1786
+ required?: boolean;
1787
+ type?: "dynamiczone";
1788
+ components?: string[];
1789
+ }>;
1790
+ }, {
1791
+ type?: "nested";
1792
+ nullable?: boolean;
1793
+ fields?: Record<string, {
1794
+ __t4s_required?: boolean;
1795
+ pluginOptions?: any;
1796
+ required?: boolean;
1797
+ type?: "text" | "string";
1798
+ } | {
1799
+ __t4s_required?: boolean;
1800
+ pluginOptions?: any;
1801
+ required?: boolean;
1802
+ type?: "email";
1803
+ } | {
1804
+ __t4s_required?: boolean;
1805
+ pluginOptions?: any;
1806
+ required?: boolean;
1807
+ type?: "uid";
1808
+ targetField?: string;
1809
+ } | {
1810
+ __t4s_required?: boolean;
1811
+ pluginOptions?: any;
1812
+ required?: boolean;
1813
+ type?: "richtext";
1814
+ } | {
1815
+ __t4s_required?: boolean;
1816
+ pluginOptions?: any;
1817
+ required?: boolean;
1818
+ type?: "json";
1819
+ } | {
1820
+ __t4s_required?: boolean;
1821
+ pluginOptions?: any;
1822
+ required?: boolean;
1823
+ type?: "password";
1824
+ } | {
1825
+ __t4s_required?: boolean;
1826
+ pluginOptions?: any;
1827
+ required?: boolean;
1828
+ type?: "integer";
1829
+ } | {
1830
+ __t4s_required?: boolean;
1831
+ pluginOptions?: any;
1832
+ required?: boolean;
1833
+ type?: "float";
1834
+ } | {
1835
+ __t4s_required?: boolean;
1836
+ pluginOptions?: any;
1837
+ required?: boolean;
1838
+ type?: "biginteger";
1839
+ } | {
1840
+ __t4s_required?: boolean;
1841
+ pluginOptions?: any;
1842
+ required?: boolean;
1843
+ type?: "decimal";
1844
+ } | {
1845
+ __t4s_required?: boolean;
1846
+ pluginOptions?: any;
1847
+ required?: boolean;
1848
+ type?: "enumeration";
1849
+ enum?: string[];
1850
+ } | {
1851
+ __t4s_required?: boolean;
1852
+ pluginOptions?: any;
1853
+ required?: boolean;
1854
+ type?: "date";
1855
+ } | {
1856
+ __t4s_required?: boolean;
1857
+ pluginOptions?: any;
1858
+ required?: boolean;
1859
+ type?: "datetime";
1860
+ } | {
1861
+ __t4s_required?: boolean;
1862
+ pluginOptions?: any;
1863
+ required?: boolean;
1864
+ type?: "time";
1865
+ } | {
1866
+ __t4s_required?: boolean;
1867
+ pluginOptions?: any;
1868
+ required?: boolean;
1869
+ type?: "media";
1870
+ multiple?: boolean;
1871
+ allowedTypes?: ("images" | "videos" | "audios" | "files")[];
1872
+ } | {
1873
+ __t4s_required?: boolean;
1874
+ pluginOptions?: any;
1875
+ required?: boolean;
1876
+ type?: "boolean";
1877
+ } | {
1878
+ __t4s_required?: boolean;
1879
+ pluginOptions?: any;
1880
+ required?: boolean;
1881
+ type?: "relation";
1882
+ target?: string;
1883
+ relation?: "oneToOne";
1884
+ } | {
1885
+ __t4s_required?: boolean;
1886
+ pluginOptions?: any;
1887
+ required?: boolean;
1888
+ type?: "relation";
1889
+ target?: string;
1890
+ relation?: "oneToOne";
1891
+ inversedBy?: string;
1892
+ } | {
1893
+ __t4s_required?: boolean;
1894
+ pluginOptions?: any;
1895
+ required?: boolean;
1896
+ type?: "relation";
1897
+ target?: string;
1898
+ mappedBy?: string;
1899
+ relation?: "oneToMany";
1900
+ } | {
1901
+ __t4s_required?: boolean;
1902
+ pluginOptions?: any;
1903
+ required?: boolean;
1904
+ type?: "relation";
1905
+ target?: string;
1906
+ relation?: "manyToOne";
1907
+ inversedBy?: string;
1908
+ } | {
1909
+ __t4s_required?: boolean;
1910
+ pluginOptions?: any;
1911
+ required?: boolean;
1912
+ type?: "relation";
1913
+ target?: string;
1914
+ relation?: "manyToMany";
1915
+ inversedBy?: string;
1916
+ mappedBy?: string;
1917
+ } | {
1918
+ __t4s_required?: boolean;
1919
+ pluginOptions?: any;
1920
+ required?: boolean;
1921
+ type?: "relation";
1922
+ target?: string;
1923
+ relation?: "oneToMany";
1924
+ } | {
1925
+ type?: "relation";
1926
+ relation?: "morphToMany";
1927
+ } | {
1928
+ __t4s_required?: boolean;
1929
+ pluginOptions?: any;
1930
+ required?: boolean;
1931
+ type?: "component";
1932
+ repeatable?: boolean;
1933
+ component?: string;
1934
+ } | {
1935
+ __t4s_required?: boolean;
1936
+ pluginOptions?: any;
1937
+ required?: boolean;
1938
+ type?: "dynamiczone";
1939
+ components?: string[];
1940
+ }>;
1941
+ }>]>;
1942
+ export declare type AttributeWithNested = z.infer<typeof attributeWithNested>;
1943
+ export declare function createMediaInterface(caseTypeName: caseType, prefix: string): BuiltinInterface;
1944
+ export declare function createMediaFormatInterface(caseTypeName: caseType, prefix: string): BuiltinComponentInterface;