bloko 0.0.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 (97) hide show
  1. package/dist/cascade/manager.d.ts +21 -0
  2. package/dist/cascade/manager.d.ts.map +1 -0
  3. package/dist/cascade/manager.js +282 -0
  4. package/dist/cascade/manager.js.map +1 -0
  5. package/dist/cli/index.d.ts +3 -0
  6. package/dist/cli/index.d.ts.map +1 -0
  7. package/dist/cli/index.js +145 -0
  8. package/dist/cli/index.js.map +1 -0
  9. package/dist/client.d.ts +55 -0
  10. package/dist/client.d.ts.map +1 -0
  11. package/dist/client.js +146 -0
  12. package/dist/client.js.map +1 -0
  13. package/dist/config.d.ts +29 -0
  14. package/dist/config.d.ts.map +1 -0
  15. package/dist/config.js +17 -0
  16. package/dist/config.js.map +1 -0
  17. package/dist/db/mongo.d.ts +15 -0
  18. package/dist/db/mongo.d.ts.map +1 -0
  19. package/dist/db/mongo.js +99 -0
  20. package/dist/db/mongo.js.map +1 -0
  21. package/dist/entities/base.d.ts +25 -0
  22. package/dist/entities/base.d.ts.map +1 -0
  23. package/dist/entities/base.js +71 -0
  24. package/dist/entities/base.js.map +1 -0
  25. package/dist/entities/blocks.d.ts +80 -0
  26. package/dist/entities/blocks.d.ts.map +1 -0
  27. package/dist/entities/blocks.js +152 -0
  28. package/dist/entities/blocks.js.map +1 -0
  29. package/dist/entities/collections.d.ts +40 -0
  30. package/dist/entities/collections.d.ts.map +1 -0
  31. package/dist/entities/collections.js +55 -0
  32. package/dist/entities/collections.js.map +1 -0
  33. package/dist/entities/contents.d.ts +60 -0
  34. package/dist/entities/contents.d.ts.map +1 -0
  35. package/dist/entities/contents.js +169 -0
  36. package/dist/entities/contents.js.map +1 -0
  37. package/dist/entities/image-variants.d.ts +95 -0
  38. package/dist/entities/image-variants.d.ts.map +1 -0
  39. package/dist/entities/image-variants.js +146 -0
  40. package/dist/entities/image-variants.js.map +1 -0
  41. package/dist/entities/images.d.ts +99 -0
  42. package/dist/entities/images.d.ts.map +1 -0
  43. package/dist/entities/images.js +128 -0
  44. package/dist/entities/images.js.map +1 -0
  45. package/dist/entities/languages.d.ts +25 -0
  46. package/dist/entities/languages.d.ts.map +1 -0
  47. package/dist/entities/languages.js +123 -0
  48. package/dist/entities/languages.js.map +1 -0
  49. package/dist/entities/node-relation-types.d.ts +60 -0
  50. package/dist/entities/node-relation-types.d.ts.map +1 -0
  51. package/dist/entities/node-relation-types.js +85 -0
  52. package/dist/entities/node-relation-types.js.map +1 -0
  53. package/dist/entities/node-relations.d.ts +61 -0
  54. package/dist/entities/node-relations.d.ts.map +1 -0
  55. package/dist/entities/node-relations.js +95 -0
  56. package/dist/entities/node-relations.js.map +1 -0
  57. package/dist/entities/node-types.d.ts +52 -0
  58. package/dist/entities/node-types.d.ts.map +1 -0
  59. package/dist/entities/node-types.js +67 -0
  60. package/dist/entities/node-types.js.map +1 -0
  61. package/dist/entities/nodes.d.ts +159 -0
  62. package/dist/entities/nodes.d.ts.map +1 -0
  63. package/dist/entities/nodes.js +265 -0
  64. package/dist/entities/nodes.js.map +1 -0
  65. package/dist/entities/templates.d.ts +60 -0
  66. package/dist/entities/templates.d.ts.map +1 -0
  67. package/dist/entities/templates.js +84 -0
  68. package/dist/entities/templates.js.map +1 -0
  69. package/dist/index.d.ts +16 -0
  70. package/dist/index.d.ts.map +1 -0
  71. package/dist/index.js +76 -0
  72. package/dist/index.js.map +1 -0
  73. package/dist/storage/s3.d.ts +23 -0
  74. package/dist/storage/s3.d.ts.map +1 -0
  75. package/dist/storage/s3.js +98 -0
  76. package/dist/storage/s3.js.map +1 -0
  77. package/dist/types.d.ts +113 -0
  78. package/dist/types.d.ts.map +1 -0
  79. package/dist/types.js +51 -0
  80. package/dist/types.js.map +1 -0
  81. package/dist/utils/image.d.ts +46 -0
  82. package/dist/utils/image.d.ts.map +1 -0
  83. package/dist/utils/image.js +117 -0
  84. package/dist/utils/image.js.map +1 -0
  85. package/dist/utils/multilang.d.ts +50 -0
  86. package/dist/utils/multilang.d.ts.map +1 -0
  87. package/dist/utils/multilang.js +124 -0
  88. package/dist/utils/multilang.js.map +1 -0
  89. package/dist/utils/slug.d.ts +25 -0
  90. package/dist/utils/slug.d.ts.map +1 -0
  91. package/dist/utils/slug.js +80 -0
  92. package/dist/utils/slug.js.map +1 -0
  93. package/dist/validation/schemas.d.ts +728 -0
  94. package/dist/validation/schemas.d.ts.map +1 -0
  95. package/dist/validation/schemas.js +164 -0
  96. package/dist/validation/schemas.js.map +1 -0
  97. package/package.json +48 -0
@@ -0,0 +1,728 @@
1
+ import { z } from 'zod';
2
+ export declare const multiLangStringSchema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
3
+ export declare const imageArrayItemSchema: z.ZodObject<{
4
+ _image: z.ZodEffects<z.ZodString, string, string>;
5
+ sort: z.ZodNumber;
6
+ }, "strip", z.ZodTypeAny, {
7
+ sort: number;
8
+ _image: string;
9
+ }, {
10
+ sort: number;
11
+ _image: string;
12
+ }>;
13
+ export declare const imagesArraySchema: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
14
+ _image: z.ZodEffects<z.ZodString, string, string>;
15
+ sort: z.ZodNumber;
16
+ }, "strip", z.ZodTypeAny, {
17
+ sort: number;
18
+ _image: string;
19
+ }, {
20
+ sort: number;
21
+ _image: string;
22
+ }>, "many">>>;
23
+ export declare const contentTypeEnum: z.ZodEnum<["number", "text", "text_list", "titled_text_list", "image", "images"]>;
24
+ export type ContentType = z.infer<typeof contentTypeEnum>;
25
+ export declare const nodeChildrenSortOptionEnum: z.ZodEnum<["sort", "title", "subtitle"]>;
26
+ export type NodeChildrenSortOption = z.infer<typeof nodeChildrenSortOptionEnum>;
27
+ export declare const collectionSchema: z.ZodObject<{
28
+ code: z.ZodString;
29
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ code: string;
32
+ notes?: string | null | undefined;
33
+ }, {
34
+ code: string;
35
+ notes?: string | null | undefined;
36
+ }>;
37
+ export declare const collectionCreateSchema: z.ZodObject<{
38
+ code: z.ZodString;
39
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ code: string;
42
+ notes?: string | null | undefined;
43
+ }, {
44
+ code: string;
45
+ notes?: string | null | undefined;
46
+ }>;
47
+ export declare const collectionUpdateSchema: z.ZodObject<{
48
+ code: z.ZodOptional<z.ZodString>;
49
+ notes: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ code?: string | undefined;
52
+ notes?: string | null | undefined;
53
+ }, {
54
+ code?: string | undefined;
55
+ notes?: string | null | undefined;
56
+ }>;
57
+ export type CollectionInput = z.infer<typeof collectionSchema>;
58
+ export declare const languageSchema: z.ZodObject<{
59
+ id: z.ZodString;
60
+ title: z.ZodString;
61
+ sort: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
62
+ }, "strip", z.ZodTypeAny, {
63
+ id: string;
64
+ title: string;
65
+ sort?: number | null | undefined;
66
+ }, {
67
+ id: string;
68
+ title: string;
69
+ sort?: number | null | undefined;
70
+ }>;
71
+ export declare const languageCreateSchema: z.ZodObject<{
72
+ id: z.ZodString;
73
+ title: z.ZodString;
74
+ sort: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
75
+ }, "strip", z.ZodTypeAny, {
76
+ id: string;
77
+ title: string;
78
+ sort?: number | null | undefined;
79
+ }, {
80
+ id: string;
81
+ title: string;
82
+ sort?: number | null | undefined;
83
+ }>;
84
+ export declare const languageUpdateSchema: z.ZodObject<{
85
+ id: z.ZodOptional<z.ZodString>;
86
+ title: z.ZodOptional<z.ZodString>;
87
+ sort: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ sort?: number | null | undefined;
90
+ id?: string | undefined;
91
+ title?: string | undefined;
92
+ }, {
93
+ sort?: number | null | undefined;
94
+ id?: string | undefined;
95
+ title?: string | undefined;
96
+ }>;
97
+ export type LanguageInput = z.infer<typeof languageSchema>;
98
+ export declare const nodeTypeSchema: z.ZodObject<{
99
+ code: z.ZodString;
100
+ title: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
101
+ sort: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
102
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ code: string;
105
+ sort?: number | null | undefined;
106
+ title?: Record<string, string | null> | null | undefined;
107
+ notes?: string | null | undefined;
108
+ }, {
109
+ code: string;
110
+ sort?: number | null | undefined;
111
+ title?: Record<string, string | null> | null | undefined;
112
+ notes?: string | null | undefined;
113
+ }>;
114
+ export declare const nodeTypeCreateSchema: z.ZodObject<{
115
+ code: z.ZodString;
116
+ title: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
117
+ sort: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
118
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ code: string;
121
+ sort?: number | null | undefined;
122
+ title?: Record<string, string | null> | null | undefined;
123
+ notes?: string | null | undefined;
124
+ }, {
125
+ code: string;
126
+ sort?: number | null | undefined;
127
+ title?: Record<string, string | null> | null | undefined;
128
+ notes?: string | null | undefined;
129
+ }>;
130
+ export declare const nodeTypeUpdateSchema: z.ZodObject<{
131
+ code: z.ZodOptional<z.ZodString>;
132
+ title: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>>;
133
+ sort: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
134
+ notes: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ code?: string | undefined;
137
+ sort?: number | null | undefined;
138
+ title?: Record<string, string | null> | null | undefined;
139
+ notes?: string | null | undefined;
140
+ }, {
141
+ code?: string | undefined;
142
+ sort?: number | null | undefined;
143
+ title?: Record<string, string | null> | null | undefined;
144
+ notes?: string | null | undefined;
145
+ }>;
146
+ export type NodeTypeInput = z.infer<typeof nodeTypeSchema>;
147
+ export declare const templateSchema: z.ZodObject<{
148
+ code: z.ZodString;
149
+ _collection: z.ZodEffects<z.ZodString, string, string>;
150
+ title: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
151
+ sort: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
152
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ code: string;
155
+ _collection: string;
156
+ sort?: number | null | undefined;
157
+ title?: Record<string, string | null> | null | undefined;
158
+ notes?: string | null | undefined;
159
+ }, {
160
+ code: string;
161
+ _collection: string;
162
+ sort?: number | null | undefined;
163
+ title?: Record<string, string | null> | null | undefined;
164
+ notes?: string | null | undefined;
165
+ }>;
166
+ export declare const templateCreateSchema: z.ZodObject<{
167
+ code: z.ZodString;
168
+ _collection: z.ZodEffects<z.ZodString, string, string>;
169
+ title: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
170
+ sort: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
171
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
172
+ }, "strip", z.ZodTypeAny, {
173
+ code: string;
174
+ _collection: string;
175
+ sort?: number | null | undefined;
176
+ title?: Record<string, string | null> | null | undefined;
177
+ notes?: string | null | undefined;
178
+ }, {
179
+ code: string;
180
+ _collection: string;
181
+ sort?: number | null | undefined;
182
+ title?: Record<string, string | null> | null | undefined;
183
+ notes?: string | null | undefined;
184
+ }>;
185
+ export declare const templateUpdateSchema: z.ZodObject<Omit<{
186
+ code: z.ZodOptional<z.ZodString>;
187
+ _collection: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
188
+ title: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>>;
189
+ sort: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
190
+ notes: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
191
+ }, "_collection">, "strip", z.ZodTypeAny, {
192
+ code?: string | undefined;
193
+ sort?: number | null | undefined;
194
+ title?: Record<string, string | null> | null | undefined;
195
+ notes?: string | null | undefined;
196
+ }, {
197
+ code?: string | undefined;
198
+ sort?: number | null | undefined;
199
+ title?: Record<string, string | null> | null | undefined;
200
+ notes?: string | null | undefined;
201
+ }>;
202
+ export type TemplateInput = z.infer<typeof templateSchema>;
203
+ export declare const blockSchema: z.ZodObject<{
204
+ code: z.ZodString;
205
+ _template: z.ZodEffects<z.ZodString, string, string>;
206
+ _parent: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
207
+ title: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
208
+ content_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["number", "text", "text_list", "titled_text_list", "image", "images"]>>>;
209
+ sort: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
210
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
211
+ }, "strip", z.ZodTypeAny, {
212
+ code: string;
213
+ _template: string;
214
+ sort?: number | null | undefined;
215
+ _parent?: string | null | undefined;
216
+ title?: Record<string, string | null> | null | undefined;
217
+ notes?: string | null | undefined;
218
+ content_type?: "number" | "images" | "text" | "text_list" | "titled_text_list" | "image" | null | undefined;
219
+ }, {
220
+ code: string;
221
+ _template: string;
222
+ sort?: number | null | undefined;
223
+ _parent?: string | null | undefined;
224
+ title?: Record<string, string | null> | null | undefined;
225
+ notes?: string | null | undefined;
226
+ content_type?: "number" | "images" | "text" | "text_list" | "titled_text_list" | "image" | null | undefined;
227
+ }>;
228
+ export declare const blockCreateSchema: z.ZodObject<{
229
+ code: z.ZodString;
230
+ _template: z.ZodEffects<z.ZodString, string, string>;
231
+ _parent: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
232
+ title: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
233
+ content_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["number", "text", "text_list", "titled_text_list", "image", "images"]>>>;
234
+ sort: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
235
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
236
+ }, "strip", z.ZodTypeAny, {
237
+ code: string;
238
+ _template: string;
239
+ sort?: number | null | undefined;
240
+ _parent?: string | null | undefined;
241
+ title?: Record<string, string | null> | null | undefined;
242
+ notes?: string | null | undefined;
243
+ content_type?: "number" | "images" | "text" | "text_list" | "titled_text_list" | "image" | null | undefined;
244
+ }, {
245
+ code: string;
246
+ _template: string;
247
+ sort?: number | null | undefined;
248
+ _parent?: string | null | undefined;
249
+ title?: Record<string, string | null> | null | undefined;
250
+ notes?: string | null | undefined;
251
+ content_type?: "number" | "images" | "text" | "text_list" | "titled_text_list" | "image" | null | undefined;
252
+ }>;
253
+ export declare const blockUpdateSchema: z.ZodObject<Omit<{
254
+ code: z.ZodOptional<z.ZodString>;
255
+ _template: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
256
+ _parent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>>;
257
+ title: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>>;
258
+ content_type: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["number", "text", "text_list", "titled_text_list", "image", "images"]>>>>;
259
+ sort: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
260
+ notes: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
261
+ }, "_template">, "strip", z.ZodTypeAny, {
262
+ code?: string | undefined;
263
+ sort?: number | null | undefined;
264
+ _parent?: string | null | undefined;
265
+ title?: Record<string, string | null> | null | undefined;
266
+ notes?: string | null | undefined;
267
+ content_type?: "number" | "images" | "text" | "text_list" | "titled_text_list" | "image" | null | undefined;
268
+ }, {
269
+ code?: string | undefined;
270
+ sort?: number | null | undefined;
271
+ _parent?: string | null | undefined;
272
+ title?: Record<string, string | null> | null | undefined;
273
+ notes?: string | null | undefined;
274
+ content_type?: "number" | "images" | "text" | "text_list" | "titled_text_list" | "image" | null | undefined;
275
+ }>;
276
+ export type BlockInput = z.infer<typeof blockSchema>;
277
+ export declare const nodeSchema: z.ZodObject<{
278
+ code: z.ZodString;
279
+ _collection: z.ZodEffects<z.ZodString, string, string>;
280
+ _template: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
281
+ _node_type: z.ZodEffects<z.ZodString, string, string>;
282
+ _parent: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
283
+ title: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
284
+ subtitle: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
285
+ slug: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
286
+ sort: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
287
+ sort_children_by: z.ZodNullable<z.ZodOptional<z.ZodEnum<["sort", "title", "subtitle"]>>>;
288
+ _cover_image: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
289
+ _images: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
290
+ _image: z.ZodEffects<z.ZodString, string, string>;
291
+ sort: z.ZodNumber;
292
+ }, "strip", z.ZodTypeAny, {
293
+ sort: number;
294
+ _image: string;
295
+ }, {
296
+ sort: number;
297
+ _image: string;
298
+ }>, "many">>>;
299
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ code: string;
302
+ _collection: string;
303
+ _node_type: string;
304
+ sort?: number | null | undefined;
305
+ _parent?: string | null | undefined;
306
+ _template?: string | null | undefined;
307
+ title?: Record<string, string | null> | null | undefined;
308
+ subtitle?: Record<string, string | null> | null | undefined;
309
+ slug?: Record<string, string | null> | null | undefined;
310
+ sort_children_by?: "sort" | "title" | "subtitle" | null | undefined;
311
+ _cover_image?: string | null | undefined;
312
+ _images?: {
313
+ sort: number;
314
+ _image: string;
315
+ }[] | null | undefined;
316
+ notes?: string | null | undefined;
317
+ }, {
318
+ code: string;
319
+ _collection: string;
320
+ _node_type: string;
321
+ sort?: number | null | undefined;
322
+ _parent?: string | null | undefined;
323
+ _template?: string | null | undefined;
324
+ title?: Record<string, string | null> | null | undefined;
325
+ subtitle?: Record<string, string | null> | null | undefined;
326
+ slug?: Record<string, string | null> | null | undefined;
327
+ sort_children_by?: "sort" | "title" | "subtitle" | null | undefined;
328
+ _cover_image?: string | null | undefined;
329
+ _images?: {
330
+ sort: number;
331
+ _image: string;
332
+ }[] | null | undefined;
333
+ notes?: string | null | undefined;
334
+ }>;
335
+ export declare const nodeCreateSchema: z.ZodObject<Omit<{
336
+ code: z.ZodString;
337
+ _collection: z.ZodEffects<z.ZodString, string, string>;
338
+ _template: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
339
+ _node_type: z.ZodEffects<z.ZodString, string, string>;
340
+ _parent: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
341
+ title: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
342
+ subtitle: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
343
+ slug: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
344
+ sort: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
345
+ sort_children_by: z.ZodNullable<z.ZodOptional<z.ZodEnum<["sort", "title", "subtitle"]>>>;
346
+ _cover_image: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
347
+ _images: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
348
+ _image: z.ZodEffects<z.ZodString, string, string>;
349
+ sort: z.ZodNumber;
350
+ }, "strip", z.ZodTypeAny, {
351
+ sort: number;
352
+ _image: string;
353
+ }, {
354
+ sort: number;
355
+ _image: string;
356
+ }>, "many">>>;
357
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
358
+ }, "slug">, "strip", z.ZodTypeAny, {
359
+ code: string;
360
+ _collection: string;
361
+ _node_type: string;
362
+ sort?: number | null | undefined;
363
+ _parent?: string | null | undefined;
364
+ _template?: string | null | undefined;
365
+ title?: Record<string, string | null> | null | undefined;
366
+ subtitle?: Record<string, string | null> | null | undefined;
367
+ sort_children_by?: "sort" | "title" | "subtitle" | null | undefined;
368
+ _cover_image?: string | null | undefined;
369
+ _images?: {
370
+ sort: number;
371
+ _image: string;
372
+ }[] | null | undefined;
373
+ notes?: string | null | undefined;
374
+ }, {
375
+ code: string;
376
+ _collection: string;
377
+ _node_type: string;
378
+ sort?: number | null | undefined;
379
+ _parent?: string | null | undefined;
380
+ _template?: string | null | undefined;
381
+ title?: Record<string, string | null> | null | undefined;
382
+ subtitle?: Record<string, string | null> | null | undefined;
383
+ sort_children_by?: "sort" | "title" | "subtitle" | null | undefined;
384
+ _cover_image?: string | null | undefined;
385
+ _images?: {
386
+ sort: number;
387
+ _image: string;
388
+ }[] | null | undefined;
389
+ notes?: string | null | undefined;
390
+ }>;
391
+ export declare const nodeUpdateSchema: z.ZodObject<Omit<{
392
+ code: z.ZodOptional<z.ZodString>;
393
+ _collection: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
394
+ _template: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>>;
395
+ _node_type: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
396
+ _parent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>>;
397
+ title: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>>;
398
+ subtitle: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>>;
399
+ slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>>;
400
+ sort: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
401
+ sort_children_by: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["sort", "title", "subtitle"]>>>>;
402
+ _cover_image: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>>;
403
+ _images: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
404
+ _image: z.ZodEffects<z.ZodString, string, string>;
405
+ sort: z.ZodNumber;
406
+ }, "strip", z.ZodTypeAny, {
407
+ sort: number;
408
+ _image: string;
409
+ }, {
410
+ sort: number;
411
+ _image: string;
412
+ }>, "many">>>>;
413
+ notes: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
414
+ }, "_collection" | "slug">, "strip", z.ZodTypeAny, {
415
+ code?: string | undefined;
416
+ sort?: number | null | undefined;
417
+ _parent?: string | null | undefined;
418
+ _template?: string | null | undefined;
419
+ _node_type?: string | undefined;
420
+ title?: Record<string, string | null> | null | undefined;
421
+ subtitle?: Record<string, string | null> | null | undefined;
422
+ sort_children_by?: "sort" | "title" | "subtitle" | null | undefined;
423
+ _cover_image?: string | null | undefined;
424
+ _images?: {
425
+ sort: number;
426
+ _image: string;
427
+ }[] | null | undefined;
428
+ notes?: string | null | undefined;
429
+ }, {
430
+ code?: string | undefined;
431
+ sort?: number | null | undefined;
432
+ _parent?: string | null | undefined;
433
+ _template?: string | null | undefined;
434
+ _node_type?: string | undefined;
435
+ title?: Record<string, string | null> | null | undefined;
436
+ subtitle?: Record<string, string | null> | null | undefined;
437
+ sort_children_by?: "sort" | "title" | "subtitle" | null | undefined;
438
+ _cover_image?: string | null | undefined;
439
+ _images?: {
440
+ sort: number;
441
+ _image: string;
442
+ }[] | null | undefined;
443
+ notes?: string | null | undefined;
444
+ }>;
445
+ export type NodeInput = z.infer<typeof nodeSchema>;
446
+ export type NodeCreateInput = z.infer<typeof nodeCreateSchema>;
447
+ export declare const contentValueSchemas: {
448
+ readonly number: z.ZodNumber;
449
+ readonly text: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
450
+ readonly text_list: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>, "many">;
451
+ readonly titled_text_list: z.ZodArray<z.ZodObject<{
452
+ title: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
453
+ text: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
454
+ }, "strip", z.ZodTypeAny, {
455
+ text: Record<string, string | null>;
456
+ title: Record<string, string | null>;
457
+ }, {
458
+ text: Record<string, string | null>;
459
+ title: Record<string, string | null>;
460
+ }>, "many">;
461
+ readonly image: z.ZodEffects<z.ZodString, string, string>;
462
+ readonly images: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
463
+ _image: z.ZodEffects<z.ZodString, string, string>;
464
+ sort: z.ZodNumber;
465
+ }, "strip", z.ZodTypeAny, {
466
+ sort: number;
467
+ _image: string;
468
+ }, {
469
+ sort: number;
470
+ _image: string;
471
+ }>, "many">>>;
472
+ };
473
+ export declare const contentSchema: z.ZodObject<{
474
+ _node: z.ZodEffects<z.ZodString, string, string>;
475
+ _block: z.ZodEffects<z.ZodString, string, string>;
476
+ value: z.ZodUnknown;
477
+ }, "strip", z.ZodTypeAny, {
478
+ _node: string;
479
+ _block: string;
480
+ value?: unknown;
481
+ }, {
482
+ _node: string;
483
+ _block: string;
484
+ value?: unknown;
485
+ }>;
486
+ export declare const contentCreateSchema: z.ZodObject<{
487
+ _node: z.ZodEffects<z.ZodString, string, string>;
488
+ _block: z.ZodEffects<z.ZodString, string, string>;
489
+ value: z.ZodUnknown;
490
+ }, "strip", z.ZodTypeAny, {
491
+ _node: string;
492
+ _block: string;
493
+ value?: unknown;
494
+ }, {
495
+ _node: string;
496
+ _block: string;
497
+ value?: unknown;
498
+ }>;
499
+ export declare const contentUpdateSchema: z.ZodObject<{
500
+ value: z.ZodAny;
501
+ }, "strip", z.ZodTypeAny, {
502
+ value?: any;
503
+ }, {
504
+ value?: any;
505
+ }>;
506
+ export type ContentInput = z.infer<typeof contentSchema>;
507
+ export declare const imageSchema: z.ZodObject<{
508
+ _collection: z.ZodEffects<z.ZodString, string, string>;
509
+ s3_key: z.ZodString;
510
+ file_name: z.ZodString;
511
+ mime_type: z.ZodString;
512
+ format: z.ZodEnum<["jpg", "jpeg", "png", "gif", "webp", "svg"]>;
513
+ file_size: z.ZodNumber;
514
+ width: z.ZodNumber;
515
+ height: z.ZodNumber;
516
+ caption: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
517
+ credit: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
518
+ }, "strip", z.ZodTypeAny, {
519
+ _collection: string;
520
+ s3_key: string;
521
+ width: number;
522
+ height: number;
523
+ format: "jpg" | "jpeg" | "png" | "gif" | "webp" | "svg";
524
+ file_name: string;
525
+ mime_type: string;
526
+ file_size: number;
527
+ caption?: Record<string, string | null> | null | undefined;
528
+ credit?: Record<string, string | null> | null | undefined;
529
+ }, {
530
+ _collection: string;
531
+ s3_key: string;
532
+ width: number;
533
+ height: number;
534
+ format: "jpg" | "jpeg" | "png" | "gif" | "webp" | "svg";
535
+ file_name: string;
536
+ mime_type: string;
537
+ file_size: number;
538
+ caption?: Record<string, string | null> | null | undefined;
539
+ credit?: Record<string, string | null> | null | undefined;
540
+ }>;
541
+ export declare const imageCreateSchema: z.ZodObject<{
542
+ _collection: z.ZodEffects<z.ZodString, string, string>;
543
+ s3_key: z.ZodString;
544
+ file_name: z.ZodString;
545
+ mime_type: z.ZodString;
546
+ format: z.ZodEnum<["jpg", "jpeg", "png", "gif", "webp", "svg"]>;
547
+ file_size: z.ZodNumber;
548
+ width: z.ZodNumber;
549
+ height: z.ZodNumber;
550
+ caption: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
551
+ credit: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
552
+ }, "strip", z.ZodTypeAny, {
553
+ _collection: string;
554
+ s3_key: string;
555
+ width: number;
556
+ height: number;
557
+ format: "jpg" | "jpeg" | "png" | "gif" | "webp" | "svg";
558
+ file_name: string;
559
+ mime_type: string;
560
+ file_size: number;
561
+ caption?: Record<string, string | null> | null | undefined;
562
+ credit?: Record<string, string | null> | null | undefined;
563
+ }, {
564
+ _collection: string;
565
+ s3_key: string;
566
+ width: number;
567
+ height: number;
568
+ format: "jpg" | "jpeg" | "png" | "gif" | "webp" | "svg";
569
+ file_name: string;
570
+ mime_type: string;
571
+ file_size: number;
572
+ caption?: Record<string, string | null> | null | undefined;
573
+ credit?: Record<string, string | null> | null | undefined;
574
+ }>;
575
+ export declare const imageUpdateSchema: z.ZodObject<Omit<{
576
+ _collection: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
577
+ s3_key: z.ZodOptional<z.ZodString>;
578
+ file_name: z.ZodOptional<z.ZodString>;
579
+ mime_type: z.ZodOptional<z.ZodString>;
580
+ format: z.ZodOptional<z.ZodEnum<["jpg", "jpeg", "png", "gif", "webp", "svg"]>>;
581
+ file_size: z.ZodOptional<z.ZodNumber>;
582
+ width: z.ZodOptional<z.ZodNumber>;
583
+ height: z.ZodOptional<z.ZodNumber>;
584
+ caption: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>>;
585
+ credit: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>>;
586
+ }, "_collection" | "s3_key" | "width" | "height" | "file_size">, "strip", z.ZodTypeAny, {
587
+ format?: "jpg" | "jpeg" | "png" | "gif" | "webp" | "svg" | undefined;
588
+ file_name?: string | undefined;
589
+ mime_type?: string | undefined;
590
+ caption?: Record<string, string | null> | null | undefined;
591
+ credit?: Record<string, string | null> | null | undefined;
592
+ }, {
593
+ format?: "jpg" | "jpeg" | "png" | "gif" | "webp" | "svg" | undefined;
594
+ file_name?: string | undefined;
595
+ mime_type?: string | undefined;
596
+ caption?: Record<string, string | null> | null | undefined;
597
+ credit?: Record<string, string | null> | null | undefined;
598
+ }>;
599
+ export type ImageInput = z.infer<typeof imageSchema>;
600
+ export declare const imageVariantSchema: z.ZodObject<{
601
+ _image: z.ZodEffects<z.ZodString, string, string>;
602
+ width: z.ZodNumber;
603
+ height: z.ZodNumber;
604
+ s3_key: z.ZodString;
605
+ format: z.ZodEnum<["jpg", "jpeg", "png", "gif", "webp"]>;
606
+ file_size: z.ZodNumber;
607
+ }, "strip", z.ZodTypeAny, {
608
+ s3_key: string;
609
+ _image: string;
610
+ width: number;
611
+ height: number;
612
+ format: "jpg" | "jpeg" | "png" | "gif" | "webp";
613
+ file_size: number;
614
+ }, {
615
+ s3_key: string;
616
+ _image: string;
617
+ width: number;
618
+ height: number;
619
+ format: "jpg" | "jpeg" | "png" | "gif" | "webp";
620
+ file_size: number;
621
+ }>;
622
+ export declare const imageVariantCreateSchema: z.ZodObject<{
623
+ _image: z.ZodEffects<z.ZodString, string, string>;
624
+ width: z.ZodNumber;
625
+ height: z.ZodNumber;
626
+ s3_key: z.ZodString;
627
+ format: z.ZodEnum<["jpg", "jpeg", "png", "gif", "webp"]>;
628
+ file_size: z.ZodNumber;
629
+ }, "strip", z.ZodTypeAny, {
630
+ s3_key: string;
631
+ _image: string;
632
+ width: number;
633
+ height: number;
634
+ format: "jpg" | "jpeg" | "png" | "gif" | "webp";
635
+ file_size: number;
636
+ }, {
637
+ s3_key: string;
638
+ _image: string;
639
+ width: number;
640
+ height: number;
641
+ format: "jpg" | "jpeg" | "png" | "gif" | "webp";
642
+ file_size: number;
643
+ }>;
644
+ export type ImageVariantInput = z.infer<typeof imageVariantSchema>;
645
+ export declare const nodeRelationTypeSchema: z.ZodObject<{
646
+ code: z.ZodString;
647
+ _collection: z.ZodEffects<z.ZodString, string, string>;
648
+ title: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
649
+ reverse_title: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
650
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
651
+ }, "strip", z.ZodTypeAny, {
652
+ code: string;
653
+ _collection: string;
654
+ title?: Record<string, string | null> | null | undefined;
655
+ notes?: string | null | undefined;
656
+ reverse_title?: Record<string, string | null> | null | undefined;
657
+ }, {
658
+ code: string;
659
+ _collection: string;
660
+ title?: Record<string, string | null> | null | undefined;
661
+ notes?: string | null | undefined;
662
+ reverse_title?: Record<string, string | null> | null | undefined;
663
+ }>;
664
+ export declare const nodeRelationTypeCreateSchema: z.ZodObject<{
665
+ code: z.ZodString;
666
+ _collection: z.ZodEffects<z.ZodString, string, string>;
667
+ title: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
668
+ reverse_title: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
669
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
670
+ }, "strip", z.ZodTypeAny, {
671
+ code: string;
672
+ _collection: string;
673
+ title?: Record<string, string | null> | null | undefined;
674
+ notes?: string | null | undefined;
675
+ reverse_title?: Record<string, string | null> | null | undefined;
676
+ }, {
677
+ code: string;
678
+ _collection: string;
679
+ title?: Record<string, string | null> | null | undefined;
680
+ notes?: string | null | undefined;
681
+ reverse_title?: Record<string, string | null> | null | undefined;
682
+ }>;
683
+ export declare const nodeRelationTypeUpdateSchema: z.ZodObject<Omit<{
684
+ code: z.ZodOptional<z.ZodString>;
685
+ _collection: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
686
+ title: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>>;
687
+ reverse_title: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>>;
688
+ notes: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
689
+ }, "_collection">, "strip", z.ZodTypeAny, {
690
+ code?: string | undefined;
691
+ title?: Record<string, string | null> | null | undefined;
692
+ notes?: string | null | undefined;
693
+ reverse_title?: Record<string, string | null> | null | undefined;
694
+ }, {
695
+ code?: string | undefined;
696
+ title?: Record<string, string | null> | null | undefined;
697
+ notes?: string | null | undefined;
698
+ reverse_title?: Record<string, string | null> | null | undefined;
699
+ }>;
700
+ export type NodeRelationTypeInput = z.infer<typeof nodeRelationTypeSchema>;
701
+ export declare const nodeRelationSchema: z.ZodObject<{
702
+ _from: z.ZodEffects<z.ZodString, string, string>;
703
+ _to: z.ZodEffects<z.ZodString, string, string>;
704
+ _node_relation_type: z.ZodEffects<z.ZodString, string, string>;
705
+ }, "strip", z.ZodTypeAny, {
706
+ _from: string;
707
+ _to: string;
708
+ _node_relation_type: string;
709
+ }, {
710
+ _from: string;
711
+ _to: string;
712
+ _node_relation_type: string;
713
+ }>;
714
+ export declare const nodeRelationCreateSchema: z.ZodObject<{
715
+ _from: z.ZodEffects<z.ZodString, string, string>;
716
+ _to: z.ZodEffects<z.ZodString, string, string>;
717
+ _node_relation_type: z.ZodEffects<z.ZodString, string, string>;
718
+ }, "strip", z.ZodTypeAny, {
719
+ _from: string;
720
+ _to: string;
721
+ _node_relation_type: string;
722
+ }, {
723
+ _from: string;
724
+ _to: string;
725
+ _node_relation_type: string;
726
+ }>;
727
+ export type NodeRelationInput = z.infer<typeof nodeRelationSchema>;
728
+ //# sourceMappingURL=schemas.d.ts.map