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

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 (116) hide show
  1. package/.eslintrc.json +2 -1
  2. package/CHANGELOG.md +7 -0
  3. package/README.md +21 -8
  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/types/attributes.d.ts +1639 -0
  41. package/lib/readers/types/attributes.js +144 -0
  42. package/lib/readers/types/component.d.ts +723 -0
  43. package/lib/readers/types/component.js +11 -0
  44. package/lib/readers/types/content-type-reader.d.ts +16 -0
  45. package/lib/readers/types/content-type-reader.js +2 -0
  46. package/lib/readers/types/content-type.d.ts +766 -0
  47. package/lib/readers/types/content-type.js +16 -0
  48. package/lib/utils/casing/index.js +2 -2
  49. package/lib/utils/index.js +5 -39
  50. package/lib/writers/basic-writer.d.ts +24 -0
  51. package/lib/writers/basic-writer.js +75 -0
  52. package/lib/writers/types/writer.d.ts +4 -0
  53. package/lib/writers/types/writer.js +2 -0
  54. package/package.json +12 -9
  55. package/tests/strapi-project/.editorconfig +16 -0
  56. package/tests/strapi-project/.env.example +6 -0
  57. package/tests/strapi-project/README.md +57 -0
  58. package/tests/strapi-project/config/admin.ts +13 -0
  59. package/tests/strapi-project/config/api.ts +7 -0
  60. package/tests/strapi-project/config/database.ts +93 -0
  61. package/tests/strapi-project/config/middlewares.ts +12 -0
  62. package/tests/strapi-project/config/server.ts +10 -0
  63. package/tests/strapi-project/favicon.png +0 -0
  64. package/tests/strapi-project/package-lock.json +16125 -0
  65. package/tests/strapi-project/package.json +30 -0
  66. package/tests/strapi-project/public/robots.txt +3 -0
  67. package/tests/strapi-project/public/uploads/.gitkeep +0 -0
  68. package/tests/strapi-project/src/admin/app.example.tsx +35 -0
  69. package/tests/strapi-project/src/admin/webpack.config.example.js +9 -0
  70. package/tests/strapi-project/src/api/.gitkeep +0 -0
  71. package/tests/strapi-project/src/api/collection-1/content-types/collection-1/schema.json +18 -0
  72. package/tests/strapi-project/src/api/collection-1/content-types/generated-type/schema.json +18 -0
  73. package/tests/strapi-project/src/api/collection-1/controllers/collection-1.ts +7 -0
  74. package/tests/strapi-project/src/api/collection-1/controllers/generated-type.ts +7 -0
  75. package/tests/strapi-project/src/api/collection-1/routes/collection-1.ts +7 -0
  76. package/tests/strapi-project/src/api/collection-1/routes/generated-type.ts +7 -0
  77. package/tests/strapi-project/src/api/collection-1/services/collection-1.ts +7 -0
  78. package/tests/strapi-project/src/api/collection-1/services/generated-type.ts +7 -0
  79. package/tests/strapi-project/src/api/standalone-controller/controllers/standalone-controller.ts +13 -0
  80. package/tests/strapi-project/src/components/my-category/all-types.json +88 -0
  81. package/tests/strapi-project/src/components/other-category/sub-component.json +12 -0
  82. package/tests/strapi-project/src/extensions/.gitkeep +0 -0
  83. package/tests/strapi-project/src/index.ts +18 -0
  84. package/lib/.prettierrc.json +0 -7
  85. package/lib/case/index.d.ts +0 -4
  86. package/lib/case/index.js +0 -47
  87. package/lib/interface/Attributes.d.ts +0 -11
  88. package/lib/interface/Attributes.js +0 -167
  89. package/lib/interface/InterfaceManager.d.ts +0 -39
  90. package/lib/interface/InterfaceManager.js +0 -396
  91. package/lib/interface/interfaceCreator.js +0 -7
  92. package/lib/interface/interfaceWriter.d.ts +0 -2
  93. package/lib/interface/interfaceWriter.js +0 -46
  94. package/lib/interface/schemaReader.d.ts +0 -14
  95. package/lib/interface/schemaReader.js +0 -177
  96. package/lib/src/index.d.ts +0 -1
  97. package/lib/src/index.js +0 -25
  98. package/lib/src/interface/Attributes.d.ts +0 -11
  99. package/lib/src/interface/Attributes.js +0 -148
  100. package/lib/src/interface/BuiltinComponentInterface.d.ts +0 -5
  101. package/lib/src/interface/BuiltinComponentInterface.js +0 -36
  102. package/lib/src/interface/BuiltinInterface.d.ts +0 -5
  103. package/lib/src/interface/BuiltinInterface.js +0 -33
  104. package/lib/src/interface/ComponentInterface.d.ts +0 -8
  105. package/lib/src/interface/ComponentInterface.js +0 -58
  106. package/lib/src/interface/Interface.d.ts +0 -31
  107. package/lib/src/interface/Interface.js +0 -112
  108. package/lib/src/interface/InterfaceManager.d.ts +0 -25
  109. package/lib/src/interface/InterfaceManager.js +0 -288
  110. package/lib/src/interface/builtinInterfaces.d.ts +0 -4
  111. package/lib/src/interface/builtinInterfaces.js +0 -81
  112. package/lib/src/interface/schemaReader.d.ts +0 -14
  113. package/lib/src/interface/schemaReader.js +0 -172
  114. package/lib/src/utils/index.d.ts +0 -3
  115. package/lib/src/utils/index.js +0 -67
  116. /package/{lib/interface/interfaceCreator.d.ts → tests/strapi-project/database/migrations/.gitkeep} +0 -0
@@ -0,0 +1,1639 @@
1
+ import { z } from 'zod';
2
+ export declare const baseAttribute: z.ZodObject<{
3
+ pluginOptions: 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.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?: "text" | "string";
25
+ }, {
26
+ __t4s_required?: boolean;
27
+ pluginOptions?: any;
28
+ required?: boolean;
29
+ type?: "text" | "string";
30
+ }>;
31
+ export declare type TextAttribute = z.infer<typeof textAttribute>;
32
+ export declare const emailAttribute: z.ZodObject<{
33
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
34
+ pluginOptions: 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 declare type EmailAttribute = z.infer<typeof emailAttribute>;
49
+ export declare const uidAttribute: z.ZodObject<{
50
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
51
+ pluginOptions: 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 declare type UidAttribute = z.infer<typeof uidAttribute>;
69
+ export declare const richTextAttribute: z.ZodObject<{
70
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
71
+ pluginOptions: 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 declare type RichTextAttribute = z.infer<typeof richTextAttribute>;
86
+ export declare const jsonAttribute: z.ZodObject<{
87
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
88
+ pluginOptions: z.ZodAny;
89
+ required: z.ZodOptional<z.ZodBoolean>;
90
+ type: z.ZodLiteral<"json">;
91
+ }, "strip", z.ZodTypeAny, {
92
+ __t4s_required?: boolean;
93
+ pluginOptions?: any;
94
+ required?: boolean;
95
+ type?: "json";
96
+ }, {
97
+ __t4s_required?: boolean;
98
+ pluginOptions?: any;
99
+ required?: boolean;
100
+ type?: "json";
101
+ }>;
102
+ export declare type JsonAttribute = z.infer<typeof jsonAttribute>;
103
+ export declare const passwordAttribute: z.ZodObject<{
104
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
105
+ pluginOptions: z.ZodAny;
106
+ required: z.ZodOptional<z.ZodBoolean>;
107
+ type: z.ZodLiteral<"password">;
108
+ }, "strip", z.ZodTypeAny, {
109
+ __t4s_required?: boolean;
110
+ pluginOptions?: any;
111
+ required?: boolean;
112
+ type?: "password";
113
+ }, {
114
+ __t4s_required?: boolean;
115
+ pluginOptions?: any;
116
+ required?: boolean;
117
+ type?: "password";
118
+ }>;
119
+ export declare type PasswordAttribute = z.infer<typeof passwordAttribute>;
120
+ export declare const integerAttribute: z.ZodObject<{
121
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
122
+ pluginOptions: z.ZodAny;
123
+ required: z.ZodOptional<z.ZodBoolean>;
124
+ type: z.ZodLiteral<"integer">;
125
+ }, "strip", z.ZodTypeAny, {
126
+ __t4s_required?: boolean;
127
+ pluginOptions?: any;
128
+ required?: boolean;
129
+ type?: "integer";
130
+ }, {
131
+ __t4s_required?: boolean;
132
+ pluginOptions?: any;
133
+ required?: boolean;
134
+ type?: "integer";
135
+ }>;
136
+ export declare const floatAttribute: z.ZodObject<{
137
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
138
+ pluginOptions: z.ZodAny;
139
+ required: z.ZodOptional<z.ZodBoolean>;
140
+ type: z.ZodLiteral<"float">;
141
+ }, "strip", z.ZodTypeAny, {
142
+ __t4s_required?: boolean;
143
+ pluginOptions?: any;
144
+ required?: boolean;
145
+ type?: "float";
146
+ }, {
147
+ __t4s_required?: boolean;
148
+ pluginOptions?: any;
149
+ required?: boolean;
150
+ type?: "float";
151
+ }>;
152
+ export declare const bigIntAttribute: z.ZodObject<{
153
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
154
+ pluginOptions: z.ZodAny;
155
+ required: z.ZodOptional<z.ZodBoolean>;
156
+ type: z.ZodLiteral<"biginteger">;
157
+ }, "strip", z.ZodTypeAny, {
158
+ __t4s_required?: boolean;
159
+ pluginOptions?: any;
160
+ required?: boolean;
161
+ type?: "biginteger";
162
+ }, {
163
+ __t4s_required?: boolean;
164
+ pluginOptions?: any;
165
+ required?: boolean;
166
+ type?: "biginteger";
167
+ }>;
168
+ export declare const decimalAttribute: z.ZodObject<{
169
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
170
+ pluginOptions: z.ZodAny;
171
+ required: z.ZodOptional<z.ZodBoolean>;
172
+ type: z.ZodLiteral<"decimal">;
173
+ }, "strip", z.ZodTypeAny, {
174
+ __t4s_required?: boolean;
175
+ pluginOptions?: any;
176
+ required?: boolean;
177
+ type?: "decimal";
178
+ }, {
179
+ __t4s_required?: boolean;
180
+ pluginOptions?: any;
181
+ required?: boolean;
182
+ type?: "decimal";
183
+ }>;
184
+ export declare const numberAttribute: z.ZodUnion<[z.ZodObject<{
185
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
186
+ pluginOptions: z.ZodAny;
187
+ required: z.ZodOptional<z.ZodBoolean>;
188
+ type: z.ZodLiteral<"integer">;
189
+ }, "strip", z.ZodTypeAny, {
190
+ __t4s_required?: boolean;
191
+ pluginOptions?: any;
192
+ required?: boolean;
193
+ type?: "integer";
194
+ }, {
195
+ __t4s_required?: boolean;
196
+ pluginOptions?: any;
197
+ required?: boolean;
198
+ type?: "integer";
199
+ }>, z.ZodObject<{
200
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
201
+ pluginOptions: z.ZodAny;
202
+ required: z.ZodOptional<z.ZodBoolean>;
203
+ type: z.ZodLiteral<"float">;
204
+ }, "strip", z.ZodTypeAny, {
205
+ __t4s_required?: boolean;
206
+ pluginOptions?: any;
207
+ required?: boolean;
208
+ type?: "float";
209
+ }, {
210
+ __t4s_required?: boolean;
211
+ pluginOptions?: any;
212
+ required?: boolean;
213
+ type?: "float";
214
+ }>, z.ZodObject<{
215
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
216
+ pluginOptions: z.ZodAny;
217
+ required: z.ZodOptional<z.ZodBoolean>;
218
+ type: z.ZodLiteral<"biginteger">;
219
+ }, "strip", z.ZodTypeAny, {
220
+ __t4s_required?: boolean;
221
+ pluginOptions?: any;
222
+ required?: boolean;
223
+ type?: "biginteger";
224
+ }, {
225
+ __t4s_required?: boolean;
226
+ pluginOptions?: any;
227
+ required?: boolean;
228
+ type?: "biginteger";
229
+ }>, z.ZodObject<{
230
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
231
+ pluginOptions: z.ZodAny;
232
+ required: z.ZodOptional<z.ZodBoolean>;
233
+ type: z.ZodLiteral<"decimal">;
234
+ }, "strip", z.ZodTypeAny, {
235
+ __t4s_required?: boolean;
236
+ pluginOptions?: any;
237
+ required?: boolean;
238
+ type?: "decimal";
239
+ }, {
240
+ __t4s_required?: boolean;
241
+ pluginOptions?: any;
242
+ required?: boolean;
243
+ type?: "decimal";
244
+ }>]>;
245
+ export declare type NumberAttribute = z.infer<typeof numberAttribute>;
246
+ export declare const enumAttribute: z.ZodObject<{
247
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
248
+ pluginOptions: z.ZodAny;
249
+ required: z.ZodOptional<z.ZodBoolean>;
250
+ type: z.ZodLiteral<"enumeration">;
251
+ enum: z.ZodArray<z.ZodString, "many">;
252
+ }, "strip", z.ZodTypeAny, {
253
+ __t4s_required?: boolean;
254
+ pluginOptions?: any;
255
+ required?: boolean;
256
+ type?: "enumeration";
257
+ enum?: string[];
258
+ }, {
259
+ __t4s_required?: boolean;
260
+ pluginOptions?: any;
261
+ required?: boolean;
262
+ type?: "enumeration";
263
+ enum?: string[];
264
+ }>;
265
+ export declare type EnumAttribute = z.infer<typeof enumAttribute>;
266
+ export declare const dateOnlyAttribute: z.ZodObject<{
267
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
268
+ pluginOptions: z.ZodAny;
269
+ required: z.ZodOptional<z.ZodBoolean>;
270
+ type: z.ZodLiteral<"date">;
271
+ }, "strip", z.ZodTypeAny, {
272
+ __t4s_required?: boolean;
273
+ pluginOptions?: any;
274
+ required?: boolean;
275
+ type?: "date";
276
+ }, {
277
+ __t4s_required?: boolean;
278
+ pluginOptions?: any;
279
+ required?: boolean;
280
+ type?: "date";
281
+ }>;
282
+ export declare const dateTimeAttribute: z.ZodObject<{
283
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
284
+ pluginOptions: z.ZodAny;
285
+ required: z.ZodOptional<z.ZodBoolean>;
286
+ type: z.ZodLiteral<"datetime">;
287
+ }, "strip", z.ZodTypeAny, {
288
+ __t4s_required?: boolean;
289
+ pluginOptions?: any;
290
+ required?: boolean;
291
+ type?: "datetime";
292
+ }, {
293
+ __t4s_required?: boolean;
294
+ pluginOptions?: any;
295
+ required?: boolean;
296
+ type?: "datetime";
297
+ }>;
298
+ export declare const timeAttribute: z.ZodObject<{
299
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
300
+ pluginOptions: z.ZodAny;
301
+ required: z.ZodOptional<z.ZodBoolean>;
302
+ type: z.ZodLiteral<"time">;
303
+ }, "strip", z.ZodTypeAny, {
304
+ __t4s_required?: boolean;
305
+ pluginOptions?: any;
306
+ required?: boolean;
307
+ type?: "time";
308
+ }, {
309
+ __t4s_required?: boolean;
310
+ pluginOptions?: any;
311
+ required?: boolean;
312
+ type?: "time";
313
+ }>;
314
+ export declare const dateAttribute: z.ZodUnion<[z.ZodObject<{
315
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
316
+ pluginOptions: z.ZodAny;
317
+ required: z.ZodOptional<z.ZodBoolean>;
318
+ type: z.ZodLiteral<"date">;
319
+ }, "strip", z.ZodTypeAny, {
320
+ __t4s_required?: boolean;
321
+ pluginOptions?: any;
322
+ required?: boolean;
323
+ type?: "date";
324
+ }, {
325
+ __t4s_required?: boolean;
326
+ pluginOptions?: any;
327
+ required?: boolean;
328
+ type?: "date";
329
+ }>, z.ZodObject<{
330
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
331
+ pluginOptions: z.ZodAny;
332
+ required: z.ZodOptional<z.ZodBoolean>;
333
+ type: z.ZodLiteral<"datetime">;
334
+ }, "strip", z.ZodTypeAny, {
335
+ __t4s_required?: boolean;
336
+ pluginOptions?: any;
337
+ required?: boolean;
338
+ type?: "datetime";
339
+ }, {
340
+ __t4s_required?: boolean;
341
+ pluginOptions?: any;
342
+ required?: boolean;
343
+ type?: "datetime";
344
+ }>, z.ZodObject<{
345
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
346
+ pluginOptions: z.ZodAny;
347
+ required: z.ZodOptional<z.ZodBoolean>;
348
+ type: z.ZodLiteral<"time">;
349
+ }, "strip", z.ZodTypeAny, {
350
+ __t4s_required?: boolean;
351
+ pluginOptions?: any;
352
+ required?: boolean;
353
+ type?: "time";
354
+ }, {
355
+ __t4s_required?: boolean;
356
+ pluginOptions?: any;
357
+ required?: boolean;
358
+ type?: "time";
359
+ }>]>;
360
+ export declare type DateAttribute = z.infer<typeof dateAttribute>;
361
+ export declare const mediaAttribute: z.ZodObject<{
362
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
363
+ pluginOptions: z.ZodAny;
364
+ required: z.ZodOptional<z.ZodBoolean>;
365
+ type: z.ZodLiteral<"media">;
366
+ multiple: z.ZodOptional<z.ZodBoolean>;
367
+ allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
368
+ }, "strip", z.ZodTypeAny, {
369
+ __t4s_required?: boolean;
370
+ pluginOptions?: any;
371
+ required?: boolean;
372
+ type?: "media";
373
+ multiple?: boolean;
374
+ allowedTypes?: ("images" | "videos" | "audios" | "files")[];
375
+ }, {
376
+ __t4s_required?: boolean;
377
+ pluginOptions?: any;
378
+ required?: boolean;
379
+ type?: "media";
380
+ multiple?: boolean;
381
+ allowedTypes?: ("images" | "videos" | "audios" | "files")[];
382
+ }>;
383
+ export declare type MediaAttribute = z.infer<typeof mediaAttribute>;
384
+ export declare const booleanAttribute: z.ZodObject<{
385
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
386
+ pluginOptions: z.ZodAny;
387
+ required: z.ZodOptional<z.ZodBoolean>;
388
+ type: z.ZodLiteral<"boolean">;
389
+ }, "strip", z.ZodTypeAny, {
390
+ __t4s_required?: boolean;
391
+ pluginOptions?: any;
392
+ required?: boolean;
393
+ type?: "boolean";
394
+ }, {
395
+ __t4s_required?: boolean;
396
+ pluginOptions?: any;
397
+ required?: boolean;
398
+ type?: "boolean";
399
+ }>;
400
+ export declare type BooleanAttribute = z.infer<typeof booleanAttribute>;
401
+ export declare const baseRelationAttribute: z.ZodObject<{
402
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
403
+ pluginOptions: z.ZodAny;
404
+ required: z.ZodOptional<z.ZodBoolean>;
405
+ type: z.ZodLiteral<"relation">;
406
+ target: z.ZodString;
407
+ }, "strip", z.ZodTypeAny, {
408
+ __t4s_required?: boolean;
409
+ pluginOptions?: any;
410
+ required?: boolean;
411
+ type?: "relation";
412
+ target?: string;
413
+ }, {
414
+ __t4s_required?: boolean;
415
+ pluginOptions?: any;
416
+ required?: boolean;
417
+ type?: "relation";
418
+ target?: string;
419
+ }>;
420
+ export declare const hasOneAttribute: z.ZodObject<{
421
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
422
+ pluginOptions: z.ZodAny;
423
+ required: z.ZodOptional<z.ZodBoolean>;
424
+ type: z.ZodLiteral<"relation">;
425
+ target: z.ZodString;
426
+ relation: z.ZodLiteral<"oneToOne">;
427
+ }, "strip", z.ZodTypeAny, {
428
+ __t4s_required?: boolean;
429
+ pluginOptions?: any;
430
+ required?: boolean;
431
+ type?: "relation";
432
+ target?: string;
433
+ relation?: "oneToOne";
434
+ }, {
435
+ __t4s_required?: boolean;
436
+ pluginOptions?: any;
437
+ required?: boolean;
438
+ type?: "relation";
439
+ target?: string;
440
+ relation?: "oneToOne";
441
+ }>;
442
+ export declare const oneToOneAttribute: z.ZodObject<{
443
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
444
+ pluginOptions: z.ZodAny;
445
+ required: z.ZodOptional<z.ZodBoolean>;
446
+ type: z.ZodLiteral<"relation">;
447
+ target: z.ZodString;
448
+ relation: z.ZodLiteral<"oneToOne">;
449
+ inversedBy: z.ZodString;
450
+ }, "strip", z.ZodTypeAny, {
451
+ __t4s_required?: boolean;
452
+ pluginOptions?: any;
453
+ required?: boolean;
454
+ type?: "relation";
455
+ target?: string;
456
+ relation?: "oneToOne";
457
+ inversedBy?: string;
458
+ }, {
459
+ __t4s_required?: boolean;
460
+ pluginOptions?: any;
461
+ required?: boolean;
462
+ type?: "relation";
463
+ target?: string;
464
+ relation?: "oneToOne";
465
+ inversedBy?: string;
466
+ }>;
467
+ export declare const belongsToManyAttribute: z.ZodObject<{
468
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
469
+ pluginOptions: z.ZodAny;
470
+ required: z.ZodOptional<z.ZodBoolean>;
471
+ type: z.ZodLiteral<"relation">;
472
+ target: z.ZodString;
473
+ mappedBy: z.ZodString;
474
+ relation: z.ZodLiteral<"oneToMany">;
475
+ }, "strip", z.ZodTypeAny, {
476
+ __t4s_required?: boolean;
477
+ pluginOptions?: any;
478
+ required?: boolean;
479
+ type?: "relation";
480
+ target?: string;
481
+ mappedBy?: string;
482
+ relation?: "oneToMany";
483
+ }, {
484
+ __t4s_required?: boolean;
485
+ pluginOptions?: any;
486
+ required?: boolean;
487
+ type?: "relation";
488
+ target?: string;
489
+ mappedBy?: string;
490
+ relation?: "oneToMany";
491
+ }>;
492
+ export declare const manyToOneAttribute: z.ZodObject<{
493
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
494
+ pluginOptions: z.ZodAny;
495
+ required: z.ZodOptional<z.ZodBoolean>;
496
+ type: z.ZodLiteral<"relation">;
497
+ target: z.ZodString;
498
+ relation: z.ZodLiteral<"manyToOne">;
499
+ inversedBy: z.ZodString;
500
+ }, "strip", z.ZodTypeAny, {
501
+ __t4s_required?: boolean;
502
+ pluginOptions?: any;
503
+ required?: boolean;
504
+ type?: "relation";
505
+ target?: string;
506
+ relation?: "manyToOne";
507
+ inversedBy?: string;
508
+ }, {
509
+ __t4s_required?: boolean;
510
+ pluginOptions?: any;
511
+ required?: boolean;
512
+ type?: "relation";
513
+ target?: string;
514
+ relation?: "manyToOne";
515
+ inversedBy?: string;
516
+ }>;
517
+ export declare const manyToManyAttribute: z.ZodObject<{
518
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
519
+ pluginOptions: z.ZodAny;
520
+ required: z.ZodOptional<z.ZodBoolean>;
521
+ type: z.ZodLiteral<"relation">;
522
+ target: z.ZodString;
523
+ relation: z.ZodLiteral<"manyToMany">;
524
+ inversedBy: z.ZodOptional<z.ZodString>;
525
+ mappedBy: z.ZodOptional<z.ZodString>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ __t4s_required?: boolean;
528
+ pluginOptions?: any;
529
+ required?: boolean;
530
+ type?: "relation";
531
+ target?: string;
532
+ relation?: "manyToMany";
533
+ inversedBy?: string;
534
+ mappedBy?: string;
535
+ }, {
536
+ __t4s_required?: boolean;
537
+ pluginOptions?: any;
538
+ required?: boolean;
539
+ type?: "relation";
540
+ target?: string;
541
+ relation?: "manyToMany";
542
+ inversedBy?: string;
543
+ mappedBy?: string;
544
+ }>;
545
+ export declare const hasManyAttribute: z.ZodObject<{
546
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
547
+ pluginOptions: z.ZodAny;
548
+ required: z.ZodOptional<z.ZodBoolean>;
549
+ type: z.ZodLiteral<"relation">;
550
+ target: z.ZodString;
551
+ relation: z.ZodLiteral<"oneToMany">;
552
+ }, "strip", z.ZodTypeAny, {
553
+ __t4s_required?: boolean;
554
+ pluginOptions?: any;
555
+ required?: boolean;
556
+ type?: "relation";
557
+ target?: string;
558
+ relation?: "oneToMany";
559
+ }, {
560
+ __t4s_required?: boolean;
561
+ pluginOptions?: any;
562
+ required?: boolean;
563
+ type?: "relation";
564
+ target?: string;
565
+ relation?: "oneToMany";
566
+ }>;
567
+ export declare const morphToManyAttribute: z.ZodObject<{
568
+ type: z.ZodLiteral<"relation">;
569
+ relation: z.ZodLiteral<"morphToMany">;
570
+ }, "strip", z.ZodTypeAny, {
571
+ type?: "relation";
572
+ relation?: "morphToMany";
573
+ }, {
574
+ type?: "relation";
575
+ relation?: "morphToMany";
576
+ }>;
577
+ export declare const relationAttribute: z.ZodUnion<[z.ZodObject<{
578
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
579
+ pluginOptions: z.ZodAny;
580
+ required: z.ZodOptional<z.ZodBoolean>;
581
+ type: z.ZodLiteral<"relation">;
582
+ target: z.ZodString;
583
+ relation: z.ZodLiteral<"oneToOne">;
584
+ }, "strip", z.ZodTypeAny, {
585
+ __t4s_required?: boolean;
586
+ pluginOptions?: any;
587
+ required?: boolean;
588
+ type?: "relation";
589
+ target?: string;
590
+ relation?: "oneToOne";
591
+ }, {
592
+ __t4s_required?: boolean;
593
+ pluginOptions?: any;
594
+ required?: boolean;
595
+ type?: "relation";
596
+ target?: string;
597
+ relation?: "oneToOne";
598
+ }>, z.ZodObject<{
599
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
600
+ pluginOptions: z.ZodAny;
601
+ required: z.ZodOptional<z.ZodBoolean>;
602
+ type: z.ZodLiteral<"relation">;
603
+ target: z.ZodString;
604
+ relation: z.ZodLiteral<"oneToOne">;
605
+ inversedBy: z.ZodString;
606
+ }, "strip", z.ZodTypeAny, {
607
+ __t4s_required?: boolean;
608
+ pluginOptions?: any;
609
+ required?: boolean;
610
+ type?: "relation";
611
+ target?: string;
612
+ relation?: "oneToOne";
613
+ inversedBy?: string;
614
+ }, {
615
+ __t4s_required?: boolean;
616
+ pluginOptions?: any;
617
+ required?: boolean;
618
+ type?: "relation";
619
+ target?: string;
620
+ relation?: "oneToOne";
621
+ inversedBy?: string;
622
+ }>, z.ZodObject<{
623
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
624
+ pluginOptions: z.ZodAny;
625
+ required: z.ZodOptional<z.ZodBoolean>;
626
+ type: z.ZodLiteral<"relation">;
627
+ target: z.ZodString;
628
+ mappedBy: z.ZodString;
629
+ relation: z.ZodLiteral<"oneToMany">;
630
+ }, "strip", z.ZodTypeAny, {
631
+ __t4s_required?: boolean;
632
+ pluginOptions?: any;
633
+ required?: boolean;
634
+ type?: "relation";
635
+ target?: string;
636
+ mappedBy?: string;
637
+ relation?: "oneToMany";
638
+ }, {
639
+ __t4s_required?: boolean;
640
+ pluginOptions?: any;
641
+ required?: boolean;
642
+ type?: "relation";
643
+ target?: string;
644
+ mappedBy?: string;
645
+ relation?: "oneToMany";
646
+ }>, z.ZodObject<{
647
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
648
+ pluginOptions: z.ZodAny;
649
+ required: z.ZodOptional<z.ZodBoolean>;
650
+ type: z.ZodLiteral<"relation">;
651
+ target: z.ZodString;
652
+ relation: z.ZodLiteral<"manyToOne">;
653
+ inversedBy: z.ZodString;
654
+ }, "strip", z.ZodTypeAny, {
655
+ __t4s_required?: boolean;
656
+ pluginOptions?: any;
657
+ required?: boolean;
658
+ type?: "relation";
659
+ target?: string;
660
+ relation?: "manyToOne";
661
+ inversedBy?: string;
662
+ }, {
663
+ __t4s_required?: boolean;
664
+ pluginOptions?: any;
665
+ required?: boolean;
666
+ type?: "relation";
667
+ target?: string;
668
+ relation?: "manyToOne";
669
+ inversedBy?: string;
670
+ }>, z.ZodObject<{
671
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
672
+ pluginOptions: z.ZodAny;
673
+ required: z.ZodOptional<z.ZodBoolean>;
674
+ type: z.ZodLiteral<"relation">;
675
+ target: z.ZodString;
676
+ relation: z.ZodLiteral<"manyToMany">;
677
+ inversedBy: z.ZodOptional<z.ZodString>;
678
+ mappedBy: z.ZodOptional<z.ZodString>;
679
+ }, "strip", z.ZodTypeAny, {
680
+ __t4s_required?: boolean;
681
+ pluginOptions?: any;
682
+ required?: boolean;
683
+ type?: "relation";
684
+ target?: string;
685
+ relation?: "manyToMany";
686
+ inversedBy?: string;
687
+ mappedBy?: string;
688
+ }, {
689
+ __t4s_required?: boolean;
690
+ pluginOptions?: any;
691
+ required?: boolean;
692
+ type?: "relation";
693
+ target?: string;
694
+ relation?: "manyToMany";
695
+ inversedBy?: string;
696
+ mappedBy?: string;
697
+ }>, z.ZodObject<{
698
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
699
+ pluginOptions: z.ZodAny;
700
+ required: z.ZodOptional<z.ZodBoolean>;
701
+ type: z.ZodLiteral<"relation">;
702
+ target: z.ZodString;
703
+ relation: z.ZodLiteral<"oneToMany">;
704
+ }, "strip", z.ZodTypeAny, {
705
+ __t4s_required?: boolean;
706
+ pluginOptions?: any;
707
+ required?: boolean;
708
+ type?: "relation";
709
+ target?: string;
710
+ relation?: "oneToMany";
711
+ }, {
712
+ __t4s_required?: boolean;
713
+ pluginOptions?: any;
714
+ required?: boolean;
715
+ type?: "relation";
716
+ target?: string;
717
+ relation?: "oneToMany";
718
+ }>, z.ZodObject<{
719
+ type: z.ZodLiteral<"relation">;
720
+ relation: z.ZodLiteral<"morphToMany">;
721
+ }, "strip", z.ZodTypeAny, {
722
+ type?: "relation";
723
+ relation?: "morphToMany";
724
+ }, {
725
+ type?: "relation";
726
+ relation?: "morphToMany";
727
+ }>]>;
728
+ export declare type RelationAttribute = z.infer<typeof relationAttribute>;
729
+ export declare const componentAttribute: z.ZodObject<{
730
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
731
+ pluginOptions: z.ZodAny;
732
+ required: z.ZodOptional<z.ZodBoolean>;
733
+ type: z.ZodLiteral<"component">;
734
+ repeatable: z.ZodOptional<z.ZodBoolean>;
735
+ component: z.ZodString;
736
+ }, "strip", z.ZodTypeAny, {
737
+ __t4s_required?: boolean;
738
+ pluginOptions?: any;
739
+ required?: boolean;
740
+ type?: "component";
741
+ repeatable?: boolean;
742
+ component?: string;
743
+ }, {
744
+ __t4s_required?: boolean;
745
+ pluginOptions?: any;
746
+ required?: boolean;
747
+ type?: "component";
748
+ repeatable?: boolean;
749
+ component?: string;
750
+ }>;
751
+ export declare type ComponentAttribute = z.infer<typeof componentAttribute>;
752
+ export declare const dynamiczoneAttribute: z.ZodObject<{
753
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
754
+ pluginOptions: z.ZodAny;
755
+ required: z.ZodOptional<z.ZodBoolean>;
756
+ type: z.ZodLiteral<"dynamiczone">;
757
+ components: z.ZodArray<z.ZodString, "many">;
758
+ }, "strip", z.ZodTypeAny, {
759
+ __t4s_required?: boolean;
760
+ pluginOptions?: any;
761
+ required?: boolean;
762
+ type?: "dynamiczone";
763
+ components?: string[];
764
+ }, {
765
+ __t4s_required?: boolean;
766
+ pluginOptions?: any;
767
+ required?: boolean;
768
+ type?: "dynamiczone";
769
+ components?: string[];
770
+ }>;
771
+ export declare type DynamiczoneAttribute = z.infer<typeof dynamiczoneAttribute>;
772
+ export declare const attribute: z.ZodUnion<[z.ZodObject<{
773
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
774
+ pluginOptions: z.ZodAny;
775
+ required: z.ZodOptional<z.ZodBoolean>;
776
+ type: z.ZodEnum<["text", "string"]>;
777
+ }, "strip", z.ZodTypeAny, {
778
+ __t4s_required?: boolean;
779
+ pluginOptions?: any;
780
+ required?: boolean;
781
+ type?: "text" | "string";
782
+ }, {
783
+ __t4s_required?: boolean;
784
+ pluginOptions?: any;
785
+ required?: boolean;
786
+ type?: "text" | "string";
787
+ }>, z.ZodObject<{
788
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
789
+ pluginOptions: z.ZodAny;
790
+ required: z.ZodOptional<z.ZodBoolean>;
791
+ type: z.ZodLiteral<"email">;
792
+ }, "strip", z.ZodTypeAny, {
793
+ __t4s_required?: boolean;
794
+ pluginOptions?: any;
795
+ required?: boolean;
796
+ type?: "email";
797
+ }, {
798
+ __t4s_required?: boolean;
799
+ pluginOptions?: any;
800
+ required?: boolean;
801
+ type?: "email";
802
+ }>, z.ZodObject<{
803
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
804
+ pluginOptions: z.ZodAny;
805
+ required: z.ZodOptional<z.ZodBoolean>;
806
+ type: z.ZodLiteral<"uid">;
807
+ targetField: z.ZodOptional<z.ZodString>;
808
+ }, "strip", z.ZodTypeAny, {
809
+ __t4s_required?: boolean;
810
+ pluginOptions?: any;
811
+ required?: boolean;
812
+ type?: "uid";
813
+ targetField?: string;
814
+ }, {
815
+ __t4s_required?: boolean;
816
+ pluginOptions?: any;
817
+ required?: boolean;
818
+ type?: "uid";
819
+ targetField?: string;
820
+ }>, z.ZodObject<{
821
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
822
+ pluginOptions: z.ZodAny;
823
+ required: z.ZodOptional<z.ZodBoolean>;
824
+ type: z.ZodLiteral<"richtext">;
825
+ }, "strip", z.ZodTypeAny, {
826
+ __t4s_required?: boolean;
827
+ pluginOptions?: any;
828
+ required?: boolean;
829
+ type?: "richtext";
830
+ }, {
831
+ __t4s_required?: boolean;
832
+ pluginOptions?: any;
833
+ required?: boolean;
834
+ type?: "richtext";
835
+ }>, z.ZodObject<{
836
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
837
+ pluginOptions: z.ZodAny;
838
+ required: z.ZodOptional<z.ZodBoolean>;
839
+ type: z.ZodLiteral<"json">;
840
+ }, "strip", z.ZodTypeAny, {
841
+ __t4s_required?: boolean;
842
+ pluginOptions?: any;
843
+ required?: boolean;
844
+ type?: "json";
845
+ }, {
846
+ __t4s_required?: boolean;
847
+ pluginOptions?: any;
848
+ required?: boolean;
849
+ type?: "json";
850
+ }>, z.ZodObject<{
851
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
852
+ pluginOptions: z.ZodAny;
853
+ required: z.ZodOptional<z.ZodBoolean>;
854
+ type: z.ZodLiteral<"password">;
855
+ }, "strip", z.ZodTypeAny, {
856
+ __t4s_required?: boolean;
857
+ pluginOptions?: any;
858
+ required?: boolean;
859
+ type?: "password";
860
+ }, {
861
+ __t4s_required?: boolean;
862
+ pluginOptions?: any;
863
+ required?: boolean;
864
+ type?: "password";
865
+ }>, z.ZodUnion<[z.ZodObject<{
866
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
867
+ pluginOptions: z.ZodAny;
868
+ required: z.ZodOptional<z.ZodBoolean>;
869
+ type: z.ZodLiteral<"integer">;
870
+ }, "strip", z.ZodTypeAny, {
871
+ __t4s_required?: boolean;
872
+ pluginOptions?: any;
873
+ required?: boolean;
874
+ type?: "integer";
875
+ }, {
876
+ __t4s_required?: boolean;
877
+ pluginOptions?: any;
878
+ required?: boolean;
879
+ type?: "integer";
880
+ }>, z.ZodObject<{
881
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
882
+ pluginOptions: z.ZodAny;
883
+ required: z.ZodOptional<z.ZodBoolean>;
884
+ type: z.ZodLiteral<"float">;
885
+ }, "strip", z.ZodTypeAny, {
886
+ __t4s_required?: boolean;
887
+ pluginOptions?: any;
888
+ required?: boolean;
889
+ type?: "float";
890
+ }, {
891
+ __t4s_required?: boolean;
892
+ pluginOptions?: any;
893
+ required?: boolean;
894
+ type?: "float";
895
+ }>, z.ZodObject<{
896
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
897
+ pluginOptions: z.ZodAny;
898
+ required: z.ZodOptional<z.ZodBoolean>;
899
+ type: z.ZodLiteral<"biginteger">;
900
+ }, "strip", z.ZodTypeAny, {
901
+ __t4s_required?: boolean;
902
+ pluginOptions?: any;
903
+ required?: boolean;
904
+ type?: "biginteger";
905
+ }, {
906
+ __t4s_required?: boolean;
907
+ pluginOptions?: any;
908
+ required?: boolean;
909
+ type?: "biginteger";
910
+ }>, z.ZodObject<{
911
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
912
+ pluginOptions: z.ZodAny;
913
+ required: z.ZodOptional<z.ZodBoolean>;
914
+ type: z.ZodLiteral<"decimal">;
915
+ }, "strip", z.ZodTypeAny, {
916
+ __t4s_required?: boolean;
917
+ pluginOptions?: any;
918
+ required?: boolean;
919
+ type?: "decimal";
920
+ }, {
921
+ __t4s_required?: boolean;
922
+ pluginOptions?: any;
923
+ required?: boolean;
924
+ type?: "decimal";
925
+ }>]>, z.ZodObject<{
926
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
927
+ pluginOptions: z.ZodAny;
928
+ required: z.ZodOptional<z.ZodBoolean>;
929
+ type: z.ZodLiteral<"enumeration">;
930
+ enum: z.ZodArray<z.ZodString, "many">;
931
+ }, "strip", z.ZodTypeAny, {
932
+ __t4s_required?: boolean;
933
+ pluginOptions?: any;
934
+ required?: boolean;
935
+ type?: "enumeration";
936
+ enum?: string[];
937
+ }, {
938
+ __t4s_required?: boolean;
939
+ pluginOptions?: any;
940
+ required?: boolean;
941
+ type?: "enumeration";
942
+ enum?: string[];
943
+ }>, z.ZodUnion<[z.ZodObject<{
944
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
945
+ pluginOptions: z.ZodAny;
946
+ required: z.ZodOptional<z.ZodBoolean>;
947
+ type: z.ZodLiteral<"date">;
948
+ }, "strip", z.ZodTypeAny, {
949
+ __t4s_required?: boolean;
950
+ pluginOptions?: any;
951
+ required?: boolean;
952
+ type?: "date";
953
+ }, {
954
+ __t4s_required?: boolean;
955
+ pluginOptions?: any;
956
+ required?: boolean;
957
+ type?: "date";
958
+ }>, z.ZodObject<{
959
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
960
+ pluginOptions: z.ZodAny;
961
+ required: z.ZodOptional<z.ZodBoolean>;
962
+ type: z.ZodLiteral<"datetime">;
963
+ }, "strip", z.ZodTypeAny, {
964
+ __t4s_required?: boolean;
965
+ pluginOptions?: any;
966
+ required?: boolean;
967
+ type?: "datetime";
968
+ }, {
969
+ __t4s_required?: boolean;
970
+ pluginOptions?: any;
971
+ required?: boolean;
972
+ type?: "datetime";
973
+ }>, z.ZodObject<{
974
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
975
+ pluginOptions: z.ZodAny;
976
+ required: z.ZodOptional<z.ZodBoolean>;
977
+ type: z.ZodLiteral<"time">;
978
+ }, "strip", z.ZodTypeAny, {
979
+ __t4s_required?: boolean;
980
+ pluginOptions?: any;
981
+ required?: boolean;
982
+ type?: "time";
983
+ }, {
984
+ __t4s_required?: boolean;
985
+ pluginOptions?: any;
986
+ required?: boolean;
987
+ type?: "time";
988
+ }>]>, z.ZodObject<{
989
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
990
+ pluginOptions: z.ZodAny;
991
+ required: z.ZodOptional<z.ZodBoolean>;
992
+ type: z.ZodLiteral<"media">;
993
+ multiple: z.ZodOptional<z.ZodBoolean>;
994
+ allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
995
+ }, "strip", z.ZodTypeAny, {
996
+ __t4s_required?: boolean;
997
+ pluginOptions?: any;
998
+ required?: boolean;
999
+ type?: "media";
1000
+ multiple?: boolean;
1001
+ allowedTypes?: ("images" | "videos" | "audios" | "files")[];
1002
+ }, {
1003
+ __t4s_required?: boolean;
1004
+ pluginOptions?: any;
1005
+ required?: boolean;
1006
+ type?: "media";
1007
+ multiple?: boolean;
1008
+ allowedTypes?: ("images" | "videos" | "audios" | "files")[];
1009
+ }>, z.ZodObject<{
1010
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1011
+ pluginOptions: z.ZodAny;
1012
+ required: z.ZodOptional<z.ZodBoolean>;
1013
+ type: z.ZodLiteral<"boolean">;
1014
+ }, "strip", z.ZodTypeAny, {
1015
+ __t4s_required?: boolean;
1016
+ pluginOptions?: any;
1017
+ required?: boolean;
1018
+ type?: "boolean";
1019
+ }, {
1020
+ __t4s_required?: boolean;
1021
+ pluginOptions?: any;
1022
+ required?: boolean;
1023
+ type?: "boolean";
1024
+ }>, z.ZodUnion<[z.ZodObject<{
1025
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1026
+ pluginOptions: z.ZodAny;
1027
+ required: z.ZodOptional<z.ZodBoolean>;
1028
+ type: z.ZodLiteral<"relation">;
1029
+ target: z.ZodString;
1030
+ relation: z.ZodLiteral<"oneToOne">;
1031
+ }, "strip", z.ZodTypeAny, {
1032
+ __t4s_required?: boolean;
1033
+ pluginOptions?: any;
1034
+ required?: boolean;
1035
+ type?: "relation";
1036
+ target?: string;
1037
+ relation?: "oneToOne";
1038
+ }, {
1039
+ __t4s_required?: boolean;
1040
+ pluginOptions?: any;
1041
+ required?: boolean;
1042
+ type?: "relation";
1043
+ target?: string;
1044
+ relation?: "oneToOne";
1045
+ }>, z.ZodObject<{
1046
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1047
+ pluginOptions: z.ZodAny;
1048
+ required: z.ZodOptional<z.ZodBoolean>;
1049
+ type: z.ZodLiteral<"relation">;
1050
+ target: z.ZodString;
1051
+ relation: z.ZodLiteral<"oneToOne">;
1052
+ inversedBy: z.ZodString;
1053
+ }, "strip", z.ZodTypeAny, {
1054
+ __t4s_required?: boolean;
1055
+ pluginOptions?: any;
1056
+ required?: boolean;
1057
+ type?: "relation";
1058
+ target?: string;
1059
+ relation?: "oneToOne";
1060
+ inversedBy?: string;
1061
+ }, {
1062
+ __t4s_required?: boolean;
1063
+ pluginOptions?: any;
1064
+ required?: boolean;
1065
+ type?: "relation";
1066
+ target?: string;
1067
+ relation?: "oneToOne";
1068
+ inversedBy?: string;
1069
+ }>, z.ZodObject<{
1070
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1071
+ pluginOptions: z.ZodAny;
1072
+ required: z.ZodOptional<z.ZodBoolean>;
1073
+ type: z.ZodLiteral<"relation">;
1074
+ target: z.ZodString;
1075
+ mappedBy: z.ZodString;
1076
+ relation: z.ZodLiteral<"oneToMany">;
1077
+ }, "strip", z.ZodTypeAny, {
1078
+ __t4s_required?: boolean;
1079
+ pluginOptions?: any;
1080
+ required?: boolean;
1081
+ type?: "relation";
1082
+ target?: string;
1083
+ mappedBy?: string;
1084
+ relation?: "oneToMany";
1085
+ }, {
1086
+ __t4s_required?: boolean;
1087
+ pluginOptions?: any;
1088
+ required?: boolean;
1089
+ type?: "relation";
1090
+ target?: string;
1091
+ mappedBy?: string;
1092
+ relation?: "oneToMany";
1093
+ }>, z.ZodObject<{
1094
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1095
+ pluginOptions: z.ZodAny;
1096
+ required: z.ZodOptional<z.ZodBoolean>;
1097
+ type: z.ZodLiteral<"relation">;
1098
+ target: z.ZodString;
1099
+ relation: z.ZodLiteral<"manyToOne">;
1100
+ inversedBy: z.ZodString;
1101
+ }, "strip", z.ZodTypeAny, {
1102
+ __t4s_required?: boolean;
1103
+ pluginOptions?: any;
1104
+ required?: boolean;
1105
+ type?: "relation";
1106
+ target?: string;
1107
+ relation?: "manyToOne";
1108
+ inversedBy?: string;
1109
+ }, {
1110
+ __t4s_required?: boolean;
1111
+ pluginOptions?: any;
1112
+ required?: boolean;
1113
+ type?: "relation";
1114
+ target?: string;
1115
+ relation?: "manyToOne";
1116
+ inversedBy?: string;
1117
+ }>, z.ZodObject<{
1118
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1119
+ pluginOptions: z.ZodAny;
1120
+ required: z.ZodOptional<z.ZodBoolean>;
1121
+ type: z.ZodLiteral<"relation">;
1122
+ target: z.ZodString;
1123
+ relation: z.ZodLiteral<"manyToMany">;
1124
+ inversedBy: z.ZodOptional<z.ZodString>;
1125
+ mappedBy: z.ZodOptional<z.ZodString>;
1126
+ }, "strip", z.ZodTypeAny, {
1127
+ __t4s_required?: boolean;
1128
+ pluginOptions?: any;
1129
+ required?: boolean;
1130
+ type?: "relation";
1131
+ target?: string;
1132
+ relation?: "manyToMany";
1133
+ inversedBy?: string;
1134
+ mappedBy?: string;
1135
+ }, {
1136
+ __t4s_required?: boolean;
1137
+ pluginOptions?: any;
1138
+ required?: boolean;
1139
+ type?: "relation";
1140
+ target?: string;
1141
+ relation?: "manyToMany";
1142
+ inversedBy?: string;
1143
+ mappedBy?: string;
1144
+ }>, z.ZodObject<{
1145
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1146
+ pluginOptions: z.ZodAny;
1147
+ required: z.ZodOptional<z.ZodBoolean>;
1148
+ type: z.ZodLiteral<"relation">;
1149
+ target: z.ZodString;
1150
+ relation: z.ZodLiteral<"oneToMany">;
1151
+ }, "strip", z.ZodTypeAny, {
1152
+ __t4s_required?: boolean;
1153
+ pluginOptions?: any;
1154
+ required?: boolean;
1155
+ type?: "relation";
1156
+ target?: string;
1157
+ relation?: "oneToMany";
1158
+ }, {
1159
+ __t4s_required?: boolean;
1160
+ pluginOptions?: any;
1161
+ required?: boolean;
1162
+ type?: "relation";
1163
+ target?: string;
1164
+ relation?: "oneToMany";
1165
+ }>, z.ZodObject<{
1166
+ type: z.ZodLiteral<"relation">;
1167
+ relation: z.ZodLiteral<"morphToMany">;
1168
+ }, "strip", z.ZodTypeAny, {
1169
+ type?: "relation";
1170
+ relation?: "morphToMany";
1171
+ }, {
1172
+ type?: "relation";
1173
+ relation?: "morphToMany";
1174
+ }>]>, z.ZodObject<{
1175
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
1176
+ pluginOptions: z.ZodAny;
1177
+ required: z.ZodOptional<z.ZodBoolean>;
1178
+ type: z.ZodLiteral<"component">;
1179
+ repeatable: z.ZodOptional<z.ZodBoolean>;
1180
+ component: z.ZodString;
1181
+ }, "strip", z.ZodTypeAny, {
1182
+ __t4s_required?: boolean;
1183
+ pluginOptions?: any;
1184
+ required?: boolean;
1185
+ type?: "component";
1186
+ repeatable?: boolean;
1187
+ component?: string;
1188
+ }, {
1189
+ __t4s_required?: boolean;
1190
+ pluginOptions?: any;
1191
+ required?: boolean;
1192
+ type?: "component";
1193
+ repeatable?: boolean;
1194
+ component?: string;
1195
+ }>]>;
1196
+ export declare type Attribute = z.infer<typeof attribute>;
1197
+ export declare const contentTypeAttribute: 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
+ export declare type ContentTypeAttribute = z.infer<typeof contentTypeAttribute>;