appwrite-utils-cli 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 (86) hide show
  1. package/README.md +80 -0
  2. package/dist/main.d.ts +2 -0
  3. package/dist/main.js +74 -0
  4. package/dist/migrations/afterImportActions.d.ts +12 -0
  5. package/dist/migrations/afterImportActions.js +196 -0
  6. package/dist/migrations/attributes.d.ts +4 -0
  7. package/dist/migrations/attributes.js +158 -0
  8. package/dist/migrations/backup.d.ts +621 -0
  9. package/dist/migrations/backup.js +159 -0
  10. package/dist/migrations/collections.d.ts +16 -0
  11. package/dist/migrations/collections.js +207 -0
  12. package/dist/migrations/converters.d.ts +179 -0
  13. package/dist/migrations/converters.js +575 -0
  14. package/dist/migrations/dbHelpers.d.ts +5 -0
  15. package/dist/migrations/dbHelpers.js +54 -0
  16. package/dist/migrations/importController.d.ts +44 -0
  17. package/dist/migrations/importController.js +312 -0
  18. package/dist/migrations/importDataActions.d.ts +44 -0
  19. package/dist/migrations/importDataActions.js +219 -0
  20. package/dist/migrations/indexes.d.ts +4 -0
  21. package/dist/migrations/indexes.js +18 -0
  22. package/dist/migrations/logging.d.ts +2 -0
  23. package/dist/migrations/logging.js +14 -0
  24. package/dist/migrations/migrationHelper.d.ts +18 -0
  25. package/dist/migrations/migrationHelper.js +66 -0
  26. package/dist/migrations/queue.d.ts +13 -0
  27. package/dist/migrations/queue.js +79 -0
  28. package/dist/migrations/relationships.d.ts +90 -0
  29. package/dist/migrations/relationships.js +209 -0
  30. package/dist/migrations/schema.d.ts +3142 -0
  31. package/dist/migrations/schema.js +485 -0
  32. package/dist/migrations/schemaStrings.d.ts +12 -0
  33. package/dist/migrations/schemaStrings.js +261 -0
  34. package/dist/migrations/setupDatabase.d.ts +7 -0
  35. package/dist/migrations/setupDatabase.js +151 -0
  36. package/dist/migrations/storage.d.ts +8 -0
  37. package/dist/migrations/storage.js +241 -0
  38. package/dist/migrations/users.d.ts +11 -0
  39. package/dist/migrations/users.js +114 -0
  40. package/dist/migrations/validationRules.d.ts +43 -0
  41. package/dist/migrations/validationRules.js +42 -0
  42. package/dist/schemas/authUser.d.ts +62 -0
  43. package/dist/schemas/authUser.js +17 -0
  44. package/dist/setup.d.ts +2 -0
  45. package/dist/setup.js +5 -0
  46. package/dist/types.d.ts +9 -0
  47. package/dist/types.js +5 -0
  48. package/dist/utils/configSchema.json +742 -0
  49. package/dist/utils/helperFunctions.d.ts +34 -0
  50. package/dist/utils/helperFunctions.js +72 -0
  51. package/dist/utils/index.d.ts +2 -0
  52. package/dist/utils/index.js +2 -0
  53. package/dist/utils/setupFiles.d.ts +2 -0
  54. package/dist/utils/setupFiles.js +276 -0
  55. package/dist/utilsController.d.ts +30 -0
  56. package/dist/utilsController.js +106 -0
  57. package/package.json +34 -0
  58. package/src/main.ts +77 -0
  59. package/src/migrations/afterImportActions.ts +300 -0
  60. package/src/migrations/attributes.ts +315 -0
  61. package/src/migrations/backup.ts +189 -0
  62. package/src/migrations/collections.ts +303 -0
  63. package/src/migrations/converters.ts +628 -0
  64. package/src/migrations/dbHelpers.ts +89 -0
  65. package/src/migrations/importController.ts +509 -0
  66. package/src/migrations/importDataActions.ts +313 -0
  67. package/src/migrations/indexes.ts +37 -0
  68. package/src/migrations/logging.ts +15 -0
  69. package/src/migrations/migrationHelper.ts +100 -0
  70. package/src/migrations/queue.ts +119 -0
  71. package/src/migrations/relationships.ts +336 -0
  72. package/src/migrations/schema.ts +590 -0
  73. package/src/migrations/schemaStrings.ts +310 -0
  74. package/src/migrations/setupDatabase.ts +219 -0
  75. package/src/migrations/storage.ts +351 -0
  76. package/src/migrations/users.ts +148 -0
  77. package/src/migrations/validationRules.ts +63 -0
  78. package/src/schemas/authUser.ts +23 -0
  79. package/src/setup.ts +8 -0
  80. package/src/types.ts +14 -0
  81. package/src/utils/configSchema.json +742 -0
  82. package/src/utils/helperFunctions.ts +111 -0
  83. package/src/utils/index.ts +2 -0
  84. package/src/utils/setupFiles.ts +295 -0
  85. package/src/utilsController.ts +173 -0
  86. package/tsconfig.json +37 -0
@@ -0,0 +1,3142 @@
1
+ import { z } from "zod";
2
+ declare const stringAttributeSchema: z.ZodObject<{
3
+ key: z.ZodString;
4
+ type: z.ZodDefault<z.ZodLiteral<"string">>;
5
+ error: z.ZodDefault<z.ZodString>;
6
+ required: z.ZodDefault<z.ZodBoolean>;
7
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ encrypted: z.ZodOptional<z.ZodBoolean>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ key: string;
13
+ type: "string";
14
+ error: string;
15
+ required: boolean;
16
+ array: boolean;
17
+ size: number;
18
+ xdefault?: string | null | undefined;
19
+ encrypted?: boolean | undefined;
20
+ }, {
21
+ key: string;
22
+ type?: "string" | undefined;
23
+ error?: string | undefined;
24
+ required?: boolean | undefined;
25
+ array?: boolean | undefined;
26
+ size?: number | undefined;
27
+ xdefault?: string | null | undefined;
28
+ encrypted?: boolean | undefined;
29
+ }>;
30
+ type StringAttribute = z.infer<typeof stringAttributeSchema>;
31
+ declare const integerAttributeSchema: z.ZodObject<{
32
+ key: z.ZodString;
33
+ type: z.ZodDefault<z.ZodLiteral<"integer">>;
34
+ error: z.ZodDefault<z.ZodString>;
35
+ required: z.ZodDefault<z.ZodBoolean>;
36
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
37
+ min: z.ZodOptional<z.ZodNumber>;
38
+ max: z.ZodOptional<z.ZodNumber>;
39
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ key: string;
42
+ type: "integer";
43
+ error: string;
44
+ required: boolean;
45
+ array: boolean;
46
+ min?: number | undefined;
47
+ max?: number | undefined;
48
+ xdefault?: number | null | undefined;
49
+ }, {
50
+ key: string;
51
+ type?: "integer" | undefined;
52
+ error?: string | undefined;
53
+ required?: boolean | undefined;
54
+ array?: boolean | undefined;
55
+ min?: number | undefined;
56
+ max?: number | undefined;
57
+ xdefault?: number | null | undefined;
58
+ }>;
59
+ type IntegerAttribute = z.infer<typeof integerAttributeSchema>;
60
+ declare const floatAttributeSchema: z.ZodObject<{
61
+ key: z.ZodString;
62
+ type: z.ZodDefault<z.ZodLiteral<"float">>;
63
+ error: z.ZodDefault<z.ZodString>;
64
+ required: z.ZodDefault<z.ZodBoolean>;
65
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
66
+ min: z.ZodOptional<z.ZodNumber>;
67
+ max: z.ZodOptional<z.ZodNumber>;
68
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ key: string;
71
+ type: "float";
72
+ error: string;
73
+ required: boolean;
74
+ array: boolean;
75
+ min?: number | undefined;
76
+ max?: number | undefined;
77
+ xdefault?: number | null | undefined;
78
+ }, {
79
+ key: string;
80
+ type?: "float" | undefined;
81
+ error?: string | undefined;
82
+ required?: boolean | undefined;
83
+ array?: boolean | undefined;
84
+ min?: number | undefined;
85
+ max?: number | undefined;
86
+ xdefault?: number | null | undefined;
87
+ }>;
88
+ type FloatAttribute = z.infer<typeof floatAttributeSchema>;
89
+ declare const booleanAttributeSchema: z.ZodObject<{
90
+ key: z.ZodString;
91
+ type: z.ZodDefault<z.ZodLiteral<"boolean">>;
92
+ error: z.ZodDefault<z.ZodString>;
93
+ required: z.ZodDefault<z.ZodBoolean>;
94
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
95
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ key: string;
98
+ type: "boolean";
99
+ error: string;
100
+ required: boolean;
101
+ array: boolean;
102
+ xdefault?: boolean | null | undefined;
103
+ }, {
104
+ key: string;
105
+ type?: "boolean" | undefined;
106
+ error?: string | undefined;
107
+ required?: boolean | undefined;
108
+ array?: boolean | undefined;
109
+ xdefault?: boolean | null | undefined;
110
+ }>;
111
+ type BooleanAttribute = z.infer<typeof booleanAttributeSchema>;
112
+ declare const datetimeAttributeSchema: z.ZodObject<{
113
+ key: z.ZodString;
114
+ type: z.ZodDefault<z.ZodLiteral<"datetime">>;
115
+ error: z.ZodDefault<z.ZodString>;
116
+ required: z.ZodDefault<z.ZodBoolean>;
117
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
118
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ key: string;
121
+ type: "datetime";
122
+ error: string;
123
+ required: boolean;
124
+ array: boolean;
125
+ xdefault?: string | null | undefined;
126
+ }, {
127
+ key: string;
128
+ type?: "datetime" | undefined;
129
+ error?: string | undefined;
130
+ required?: boolean | undefined;
131
+ array?: boolean | undefined;
132
+ xdefault?: string | null | undefined;
133
+ }>;
134
+ type DatetimeAttribute = z.infer<typeof datetimeAttributeSchema>;
135
+ declare const emailAttributeSchema: z.ZodObject<{
136
+ key: z.ZodString;
137
+ type: z.ZodDefault<z.ZodLiteral<"email">>;
138
+ error: z.ZodDefault<z.ZodString>;
139
+ required: z.ZodDefault<z.ZodBoolean>;
140
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
141
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ key: string;
144
+ type: "email";
145
+ error: string;
146
+ required: boolean;
147
+ array: boolean;
148
+ xdefault?: string | null | undefined;
149
+ }, {
150
+ key: string;
151
+ type?: "email" | undefined;
152
+ error?: string | undefined;
153
+ required?: boolean | undefined;
154
+ array?: boolean | undefined;
155
+ xdefault?: string | null | undefined;
156
+ }>;
157
+ type EmailAttribute = z.infer<typeof emailAttributeSchema>;
158
+ declare const ipAttributeSchema: z.ZodObject<{
159
+ key: z.ZodString;
160
+ type: z.ZodLiteral<"ip">;
161
+ error: z.ZodDefault<z.ZodString>;
162
+ required: z.ZodDefault<z.ZodBoolean>;
163
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
164
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ key: string;
167
+ type: "ip";
168
+ error: string;
169
+ required: boolean;
170
+ array: boolean;
171
+ xdefault?: string | null | undefined;
172
+ }, {
173
+ key: string;
174
+ type: "ip";
175
+ error?: string | undefined;
176
+ required?: boolean | undefined;
177
+ array?: boolean | undefined;
178
+ xdefault?: string | null | undefined;
179
+ }>;
180
+ type IpAttribute = z.infer<typeof ipAttributeSchema>;
181
+ declare const urlAttributeSchema: z.ZodObject<{
182
+ key: z.ZodString;
183
+ type: z.ZodDefault<z.ZodLiteral<"url">>;
184
+ error: z.ZodDefault<z.ZodString>;
185
+ required: z.ZodDefault<z.ZodBoolean>;
186
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
187
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
188
+ }, "strip", z.ZodTypeAny, {
189
+ key: string;
190
+ type: "url";
191
+ error: string;
192
+ required: boolean;
193
+ array: boolean;
194
+ xdefault?: string | null | undefined;
195
+ }, {
196
+ key: string;
197
+ type?: "url" | undefined;
198
+ error?: string | undefined;
199
+ required?: boolean | undefined;
200
+ array?: boolean | undefined;
201
+ xdefault?: string | null | undefined;
202
+ }>;
203
+ type UrlAttribute = z.infer<typeof urlAttributeSchema>;
204
+ declare const enumAttributeSchema: z.ZodObject<{
205
+ key: z.ZodString;
206
+ type: z.ZodDefault<z.ZodLiteral<"enum">>;
207
+ error: z.ZodDefault<z.ZodString>;
208
+ required: z.ZodDefault<z.ZodBoolean>;
209
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
210
+ elements: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
211
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
212
+ }, "strip", z.ZodTypeAny, {
213
+ key: string;
214
+ type: "enum";
215
+ error: string;
216
+ required: boolean;
217
+ array: boolean;
218
+ elements: string[];
219
+ xdefault?: string | null | undefined;
220
+ }, {
221
+ key: string;
222
+ type?: "enum" | undefined;
223
+ error?: string | undefined;
224
+ required?: boolean | undefined;
225
+ array?: boolean | undefined;
226
+ elements?: string[] | undefined;
227
+ xdefault?: string | null | undefined;
228
+ }>;
229
+ type EnumAttribute = z.infer<typeof enumAttributeSchema>;
230
+ declare const relationshipAttributeSchema: z.ZodObject<{
231
+ key: z.ZodString;
232
+ type: z.ZodDefault<z.ZodLiteral<"relationship">>;
233
+ error: z.ZodDefault<z.ZodString>;
234
+ required: z.ZodDefault<z.ZodBoolean>;
235
+ array: z.ZodOptional<z.ZodBoolean>;
236
+ relatedCollection: z.ZodString;
237
+ relationType: z.ZodEnum<["oneToMany", "manyToOne", "oneToOne", "manyToMany"]>;
238
+ twoWay: z.ZodBoolean;
239
+ twoWayKey: z.ZodString;
240
+ onDelete: z.ZodDefault<z.ZodEnum<["setNull", "cascade", "restrict"]>>;
241
+ side: z.ZodEnum<["parent", "child"]>;
242
+ importMapping: z.ZodOptional<z.ZodObject<{
243
+ originalIdField: z.ZodString;
244
+ targetField: z.ZodOptional<z.ZodString>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ originalIdField: string;
247
+ targetField?: string | undefined;
248
+ }, {
249
+ originalIdField: string;
250
+ targetField?: string | undefined;
251
+ }>>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ key: string;
254
+ type: "relationship";
255
+ error: string;
256
+ required: boolean;
257
+ relatedCollection: string;
258
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
259
+ twoWay: boolean;
260
+ twoWayKey: string;
261
+ onDelete: "setNull" | "cascade" | "restrict";
262
+ side: "parent" | "child";
263
+ array?: boolean | undefined;
264
+ importMapping?: {
265
+ originalIdField: string;
266
+ targetField?: string | undefined;
267
+ } | undefined;
268
+ }, {
269
+ key: string;
270
+ relatedCollection: string;
271
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
272
+ twoWay: boolean;
273
+ twoWayKey: string;
274
+ side: "parent" | "child";
275
+ type?: "relationship" | undefined;
276
+ error?: string | undefined;
277
+ required?: boolean | undefined;
278
+ array?: boolean | undefined;
279
+ onDelete?: "setNull" | "cascade" | "restrict" | undefined;
280
+ importMapping?: {
281
+ originalIdField: string;
282
+ targetField?: string | undefined;
283
+ } | undefined;
284
+ }>;
285
+ export type RelationshipAttribute = z.infer<typeof relationshipAttributeSchema>;
286
+ export declare const createRelationshipAttributes: (relatedCollection: string, relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany", twoWay: boolean, twoWayKey: string, onDelete: "setNull" | "cascade" | "restrict", side: "parent" | "child") => {
287
+ key: string;
288
+ type: "relationship";
289
+ error: string;
290
+ required: boolean;
291
+ relatedCollection: string;
292
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
293
+ twoWay: boolean;
294
+ twoWayKey: string;
295
+ onDelete: "setNull" | "cascade" | "restrict";
296
+ side: "parent" | "child";
297
+ array?: boolean | undefined;
298
+ importMapping?: {
299
+ originalIdField: string;
300
+ targetField?: string | undefined;
301
+ } | undefined;
302
+ };
303
+ export declare const attributeSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
304
+ key: z.ZodString;
305
+ type: z.ZodDefault<z.ZodLiteral<"string">>;
306
+ error: z.ZodDefault<z.ZodString>;
307
+ required: z.ZodDefault<z.ZodBoolean>;
308
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
309
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
310
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
+ encrypted: z.ZodOptional<z.ZodBoolean>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ key: string;
314
+ type: "string";
315
+ error: string;
316
+ required: boolean;
317
+ array: boolean;
318
+ size: number;
319
+ xdefault?: string | null | undefined;
320
+ encrypted?: boolean | undefined;
321
+ }, {
322
+ key: string;
323
+ type?: "string" | undefined;
324
+ error?: string | undefined;
325
+ required?: boolean | undefined;
326
+ array?: boolean | undefined;
327
+ size?: number | undefined;
328
+ xdefault?: string | null | undefined;
329
+ encrypted?: boolean | undefined;
330
+ }>, z.ZodObject<{
331
+ key: z.ZodString;
332
+ type: z.ZodDefault<z.ZodLiteral<"integer">>;
333
+ error: z.ZodDefault<z.ZodString>;
334
+ required: z.ZodDefault<z.ZodBoolean>;
335
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
336
+ min: z.ZodOptional<z.ZodNumber>;
337
+ max: z.ZodOptional<z.ZodNumber>;
338
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
339
+ }, "strip", z.ZodTypeAny, {
340
+ key: string;
341
+ type: "integer";
342
+ error: string;
343
+ required: boolean;
344
+ array: boolean;
345
+ min?: number | undefined;
346
+ max?: number | undefined;
347
+ xdefault?: number | null | undefined;
348
+ }, {
349
+ key: string;
350
+ type?: "integer" | undefined;
351
+ error?: string | undefined;
352
+ required?: boolean | undefined;
353
+ array?: boolean | undefined;
354
+ min?: number | undefined;
355
+ max?: number | undefined;
356
+ xdefault?: number | null | undefined;
357
+ }>]>, z.ZodObject<{
358
+ key: z.ZodString;
359
+ type: z.ZodDefault<z.ZodLiteral<"float">>;
360
+ error: z.ZodDefault<z.ZodString>;
361
+ required: z.ZodDefault<z.ZodBoolean>;
362
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
363
+ min: z.ZodOptional<z.ZodNumber>;
364
+ max: z.ZodOptional<z.ZodNumber>;
365
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
366
+ }, "strip", z.ZodTypeAny, {
367
+ key: string;
368
+ type: "float";
369
+ error: string;
370
+ required: boolean;
371
+ array: boolean;
372
+ min?: number | undefined;
373
+ max?: number | undefined;
374
+ xdefault?: number | null | undefined;
375
+ }, {
376
+ key: string;
377
+ type?: "float" | undefined;
378
+ error?: string | undefined;
379
+ required?: boolean | undefined;
380
+ array?: boolean | undefined;
381
+ min?: number | undefined;
382
+ max?: number | undefined;
383
+ xdefault?: number | null | undefined;
384
+ }>]>, z.ZodObject<{
385
+ key: z.ZodString;
386
+ type: z.ZodDefault<z.ZodLiteral<"boolean">>;
387
+ error: z.ZodDefault<z.ZodString>;
388
+ required: z.ZodDefault<z.ZodBoolean>;
389
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
390
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
391
+ }, "strip", z.ZodTypeAny, {
392
+ key: string;
393
+ type: "boolean";
394
+ error: string;
395
+ required: boolean;
396
+ array: boolean;
397
+ xdefault?: boolean | null | undefined;
398
+ }, {
399
+ key: string;
400
+ type?: "boolean" | undefined;
401
+ error?: string | undefined;
402
+ required?: boolean | undefined;
403
+ array?: boolean | undefined;
404
+ xdefault?: boolean | null | undefined;
405
+ }>]>, z.ZodObject<{
406
+ key: z.ZodString;
407
+ type: z.ZodDefault<z.ZodLiteral<"datetime">>;
408
+ error: z.ZodDefault<z.ZodString>;
409
+ required: z.ZodDefault<z.ZodBoolean>;
410
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
411
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
412
+ }, "strip", z.ZodTypeAny, {
413
+ key: string;
414
+ type: "datetime";
415
+ error: string;
416
+ required: boolean;
417
+ array: boolean;
418
+ xdefault?: string | null | undefined;
419
+ }, {
420
+ key: string;
421
+ type?: "datetime" | undefined;
422
+ error?: string | undefined;
423
+ required?: boolean | undefined;
424
+ array?: boolean | undefined;
425
+ xdefault?: string | null | undefined;
426
+ }>]>, z.ZodObject<{
427
+ key: z.ZodString;
428
+ type: z.ZodDefault<z.ZodLiteral<"email">>;
429
+ error: z.ZodDefault<z.ZodString>;
430
+ required: z.ZodDefault<z.ZodBoolean>;
431
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
432
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
433
+ }, "strip", z.ZodTypeAny, {
434
+ key: string;
435
+ type: "email";
436
+ error: string;
437
+ required: boolean;
438
+ array: boolean;
439
+ xdefault?: string | null | undefined;
440
+ }, {
441
+ key: string;
442
+ type?: "email" | undefined;
443
+ error?: string | undefined;
444
+ required?: boolean | undefined;
445
+ array?: boolean | undefined;
446
+ xdefault?: string | null | undefined;
447
+ }>]>, z.ZodObject<{
448
+ key: z.ZodString;
449
+ type: z.ZodLiteral<"ip">;
450
+ error: z.ZodDefault<z.ZodString>;
451
+ required: z.ZodDefault<z.ZodBoolean>;
452
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
453
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
454
+ }, "strip", z.ZodTypeAny, {
455
+ key: string;
456
+ type: "ip";
457
+ error: string;
458
+ required: boolean;
459
+ array: boolean;
460
+ xdefault?: string | null | undefined;
461
+ }, {
462
+ key: string;
463
+ type: "ip";
464
+ error?: string | undefined;
465
+ required?: boolean | undefined;
466
+ array?: boolean | undefined;
467
+ xdefault?: string | null | undefined;
468
+ }>]>, z.ZodObject<{
469
+ key: z.ZodString;
470
+ type: z.ZodDefault<z.ZodLiteral<"url">>;
471
+ error: z.ZodDefault<z.ZodString>;
472
+ required: z.ZodDefault<z.ZodBoolean>;
473
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
474
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
475
+ }, "strip", z.ZodTypeAny, {
476
+ key: string;
477
+ type: "url";
478
+ error: string;
479
+ required: boolean;
480
+ array: boolean;
481
+ xdefault?: string | null | undefined;
482
+ }, {
483
+ key: string;
484
+ type?: "url" | undefined;
485
+ error?: string | undefined;
486
+ required?: boolean | undefined;
487
+ array?: boolean | undefined;
488
+ xdefault?: string | null | undefined;
489
+ }>]>, z.ZodObject<{
490
+ key: z.ZodString;
491
+ type: z.ZodDefault<z.ZodLiteral<"enum">>;
492
+ error: z.ZodDefault<z.ZodString>;
493
+ required: z.ZodDefault<z.ZodBoolean>;
494
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
495
+ elements: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
496
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
497
+ }, "strip", z.ZodTypeAny, {
498
+ key: string;
499
+ type: "enum";
500
+ error: string;
501
+ required: boolean;
502
+ array: boolean;
503
+ elements: string[];
504
+ xdefault?: string | null | undefined;
505
+ }, {
506
+ key: string;
507
+ type?: "enum" | undefined;
508
+ error?: string | undefined;
509
+ required?: boolean | undefined;
510
+ array?: boolean | undefined;
511
+ elements?: string[] | undefined;
512
+ xdefault?: string | null | undefined;
513
+ }>]>, z.ZodObject<{
514
+ key: z.ZodString;
515
+ type: z.ZodDefault<z.ZodLiteral<"relationship">>;
516
+ error: z.ZodDefault<z.ZodString>;
517
+ required: z.ZodDefault<z.ZodBoolean>;
518
+ array: z.ZodOptional<z.ZodBoolean>;
519
+ relatedCollection: z.ZodString;
520
+ relationType: z.ZodEnum<["oneToMany", "manyToOne", "oneToOne", "manyToMany"]>;
521
+ twoWay: z.ZodBoolean;
522
+ twoWayKey: z.ZodString;
523
+ onDelete: z.ZodDefault<z.ZodEnum<["setNull", "cascade", "restrict"]>>;
524
+ side: z.ZodEnum<["parent", "child"]>;
525
+ importMapping: z.ZodOptional<z.ZodObject<{
526
+ originalIdField: z.ZodString;
527
+ targetField: z.ZodOptional<z.ZodString>;
528
+ }, "strip", z.ZodTypeAny, {
529
+ originalIdField: string;
530
+ targetField?: string | undefined;
531
+ }, {
532
+ originalIdField: string;
533
+ targetField?: string | undefined;
534
+ }>>;
535
+ }, "strip", z.ZodTypeAny, {
536
+ key: string;
537
+ type: "relationship";
538
+ error: string;
539
+ required: boolean;
540
+ relatedCollection: string;
541
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
542
+ twoWay: boolean;
543
+ twoWayKey: string;
544
+ onDelete: "setNull" | "cascade" | "restrict";
545
+ side: "parent" | "child";
546
+ array?: boolean | undefined;
547
+ importMapping?: {
548
+ originalIdField: string;
549
+ targetField?: string | undefined;
550
+ } | undefined;
551
+ }, {
552
+ key: string;
553
+ relatedCollection: string;
554
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
555
+ twoWay: boolean;
556
+ twoWayKey: string;
557
+ side: "parent" | "child";
558
+ type?: "relationship" | undefined;
559
+ error?: string | undefined;
560
+ required?: boolean | undefined;
561
+ array?: boolean | undefined;
562
+ onDelete?: "setNull" | "cascade" | "restrict" | undefined;
563
+ importMapping?: {
564
+ originalIdField: string;
565
+ targetField?: string | undefined;
566
+ } | undefined;
567
+ }>]>;
568
+ export declare const parseAttribute: (attribute: StringAttribute | IntegerAttribute | FloatAttribute | BooleanAttribute | DatetimeAttribute | EmailAttribute | IpAttribute | UrlAttribute | EnumAttribute | RelationshipAttribute) => {
569
+ key: string;
570
+ type: "string";
571
+ error: string;
572
+ required: boolean;
573
+ array: boolean;
574
+ size: number;
575
+ xdefault?: string | null | undefined;
576
+ encrypted?: boolean | undefined;
577
+ } | {
578
+ key: string;
579
+ type: "integer";
580
+ error: string;
581
+ required: boolean;
582
+ array: boolean;
583
+ min?: number | undefined;
584
+ max?: number | undefined;
585
+ xdefault?: number | null | undefined;
586
+ } | {
587
+ key: string;
588
+ type: "float";
589
+ error: string;
590
+ required: boolean;
591
+ array: boolean;
592
+ min?: number | undefined;
593
+ max?: number | undefined;
594
+ xdefault?: number | null | undefined;
595
+ } | {
596
+ key: string;
597
+ type: "boolean";
598
+ error: string;
599
+ required: boolean;
600
+ array: boolean;
601
+ xdefault?: boolean | null | undefined;
602
+ } | {
603
+ key: string;
604
+ type: "datetime";
605
+ error: string;
606
+ required: boolean;
607
+ array: boolean;
608
+ xdefault?: string | null | undefined;
609
+ } | {
610
+ key: string;
611
+ type: "email";
612
+ error: string;
613
+ required: boolean;
614
+ array: boolean;
615
+ xdefault?: string | null | undefined;
616
+ } | {
617
+ key: string;
618
+ type: "ip";
619
+ error: string;
620
+ required: boolean;
621
+ array: boolean;
622
+ xdefault?: string | null | undefined;
623
+ } | {
624
+ key: string;
625
+ type: "url";
626
+ error: string;
627
+ required: boolean;
628
+ array: boolean;
629
+ xdefault?: string | null | undefined;
630
+ } | {
631
+ key: string;
632
+ type: "enum";
633
+ error: string;
634
+ required: boolean;
635
+ array: boolean;
636
+ elements: string[];
637
+ xdefault?: string | null | undefined;
638
+ } | {
639
+ key: string;
640
+ type: "relationship";
641
+ error: string;
642
+ required: boolean;
643
+ relatedCollection: string;
644
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
645
+ twoWay: boolean;
646
+ twoWayKey: string;
647
+ onDelete: "setNull" | "cascade" | "restrict";
648
+ side: "parent" | "child";
649
+ array?: boolean | undefined;
650
+ importMapping?: {
651
+ originalIdField: string;
652
+ targetField?: string | undefined;
653
+ } | undefined;
654
+ };
655
+ export type Attribute = z.infer<typeof attributeSchema>;
656
+ export declare const indexSchema: z.ZodObject<{
657
+ key: z.ZodString;
658
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["key", "unique", "fulltext"]>>>;
659
+ status: z.ZodOptional<z.ZodString>;
660
+ error: z.ZodOptional<z.ZodString>;
661
+ attributes: z.ZodArray<z.ZodString, "many">;
662
+ orders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
663
+ }, "strip", z.ZodTypeAny, {
664
+ key: string;
665
+ type: "key" | "unique" | "fulltext";
666
+ attributes: string[];
667
+ status?: string | undefined;
668
+ error?: string | undefined;
669
+ orders?: string[] | undefined;
670
+ }, {
671
+ key: string;
672
+ attributes: string[];
673
+ type?: "key" | "unique" | "fulltext" | undefined;
674
+ status?: string | undefined;
675
+ error?: string | undefined;
676
+ orders?: string[] | undefined;
677
+ }>;
678
+ export type Index = z.infer<typeof indexSchema>;
679
+ export declare const collectionSchema: z.ZodObject<{
680
+ $id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
681
+ $createdAt: z.ZodString;
682
+ $updatedAt: z.ZodString;
683
+ $permissions: z.ZodDefault<z.ZodArray<z.ZodObject<{
684
+ permission: z.ZodString;
685
+ target: z.ZodString;
686
+ }, "strip", z.ZodTypeAny, {
687
+ permission: string;
688
+ target: string;
689
+ }, {
690
+ permission: string;
691
+ target: string;
692
+ }>, "many">>;
693
+ databaseId: z.ZodOptional<z.ZodString>;
694
+ name: z.ZodString;
695
+ enabled: z.ZodDefault<z.ZodBoolean>;
696
+ documentSecurity: z.ZodDefault<z.ZodBoolean>;
697
+ attributes: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
698
+ key: z.ZodString;
699
+ type: z.ZodDefault<z.ZodLiteral<"string">>;
700
+ error: z.ZodDefault<z.ZodString>;
701
+ required: z.ZodDefault<z.ZodBoolean>;
702
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
703
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
704
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
705
+ encrypted: z.ZodOptional<z.ZodBoolean>;
706
+ }, "strip", z.ZodTypeAny, {
707
+ key: string;
708
+ type: "string";
709
+ error: string;
710
+ required: boolean;
711
+ array: boolean;
712
+ size: number;
713
+ xdefault?: string | null | undefined;
714
+ encrypted?: boolean | undefined;
715
+ }, {
716
+ key: string;
717
+ type?: "string" | undefined;
718
+ error?: string | undefined;
719
+ required?: boolean | undefined;
720
+ array?: boolean | undefined;
721
+ size?: number | undefined;
722
+ xdefault?: string | null | undefined;
723
+ encrypted?: boolean | undefined;
724
+ }>, z.ZodObject<{
725
+ key: z.ZodString;
726
+ type: z.ZodDefault<z.ZodLiteral<"integer">>;
727
+ error: z.ZodDefault<z.ZodString>;
728
+ required: z.ZodDefault<z.ZodBoolean>;
729
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
730
+ min: z.ZodOptional<z.ZodNumber>;
731
+ max: z.ZodOptional<z.ZodNumber>;
732
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
733
+ }, "strip", z.ZodTypeAny, {
734
+ key: string;
735
+ type: "integer";
736
+ error: string;
737
+ required: boolean;
738
+ array: boolean;
739
+ min?: number | undefined;
740
+ max?: number | undefined;
741
+ xdefault?: number | null | undefined;
742
+ }, {
743
+ key: string;
744
+ type?: "integer" | undefined;
745
+ error?: string | undefined;
746
+ required?: boolean | undefined;
747
+ array?: boolean | undefined;
748
+ min?: number | undefined;
749
+ max?: number | undefined;
750
+ xdefault?: number | null | undefined;
751
+ }>]>, z.ZodObject<{
752
+ key: z.ZodString;
753
+ type: z.ZodDefault<z.ZodLiteral<"float">>;
754
+ error: z.ZodDefault<z.ZodString>;
755
+ required: z.ZodDefault<z.ZodBoolean>;
756
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
757
+ min: z.ZodOptional<z.ZodNumber>;
758
+ max: z.ZodOptional<z.ZodNumber>;
759
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
760
+ }, "strip", z.ZodTypeAny, {
761
+ key: string;
762
+ type: "float";
763
+ error: string;
764
+ required: boolean;
765
+ array: boolean;
766
+ min?: number | undefined;
767
+ max?: number | undefined;
768
+ xdefault?: number | null | undefined;
769
+ }, {
770
+ key: string;
771
+ type?: "float" | undefined;
772
+ error?: string | undefined;
773
+ required?: boolean | undefined;
774
+ array?: boolean | undefined;
775
+ min?: number | undefined;
776
+ max?: number | undefined;
777
+ xdefault?: number | null | undefined;
778
+ }>]>, z.ZodObject<{
779
+ key: z.ZodString;
780
+ type: z.ZodDefault<z.ZodLiteral<"boolean">>;
781
+ error: z.ZodDefault<z.ZodString>;
782
+ required: z.ZodDefault<z.ZodBoolean>;
783
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
784
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
785
+ }, "strip", z.ZodTypeAny, {
786
+ key: string;
787
+ type: "boolean";
788
+ error: string;
789
+ required: boolean;
790
+ array: boolean;
791
+ xdefault?: boolean | null | undefined;
792
+ }, {
793
+ key: string;
794
+ type?: "boolean" | undefined;
795
+ error?: string | undefined;
796
+ required?: boolean | undefined;
797
+ array?: boolean | undefined;
798
+ xdefault?: boolean | null | undefined;
799
+ }>]>, z.ZodObject<{
800
+ key: z.ZodString;
801
+ type: z.ZodDefault<z.ZodLiteral<"datetime">>;
802
+ error: z.ZodDefault<z.ZodString>;
803
+ required: z.ZodDefault<z.ZodBoolean>;
804
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
805
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
806
+ }, "strip", z.ZodTypeAny, {
807
+ key: string;
808
+ type: "datetime";
809
+ error: string;
810
+ required: boolean;
811
+ array: boolean;
812
+ xdefault?: string | null | undefined;
813
+ }, {
814
+ key: string;
815
+ type?: "datetime" | undefined;
816
+ error?: string | undefined;
817
+ required?: boolean | undefined;
818
+ array?: boolean | undefined;
819
+ xdefault?: string | null | undefined;
820
+ }>]>, z.ZodObject<{
821
+ key: z.ZodString;
822
+ type: z.ZodDefault<z.ZodLiteral<"email">>;
823
+ error: z.ZodDefault<z.ZodString>;
824
+ required: z.ZodDefault<z.ZodBoolean>;
825
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
826
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
827
+ }, "strip", z.ZodTypeAny, {
828
+ key: string;
829
+ type: "email";
830
+ error: string;
831
+ required: boolean;
832
+ array: boolean;
833
+ xdefault?: string | null | undefined;
834
+ }, {
835
+ key: string;
836
+ type?: "email" | undefined;
837
+ error?: string | undefined;
838
+ required?: boolean | undefined;
839
+ array?: boolean | undefined;
840
+ xdefault?: string | null | undefined;
841
+ }>]>, z.ZodObject<{
842
+ key: z.ZodString;
843
+ type: z.ZodLiteral<"ip">;
844
+ error: z.ZodDefault<z.ZodString>;
845
+ required: z.ZodDefault<z.ZodBoolean>;
846
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
847
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
848
+ }, "strip", z.ZodTypeAny, {
849
+ key: string;
850
+ type: "ip";
851
+ error: string;
852
+ required: boolean;
853
+ array: boolean;
854
+ xdefault?: string | null | undefined;
855
+ }, {
856
+ key: string;
857
+ type: "ip";
858
+ error?: string | undefined;
859
+ required?: boolean | undefined;
860
+ array?: boolean | undefined;
861
+ xdefault?: string | null | undefined;
862
+ }>]>, z.ZodObject<{
863
+ key: z.ZodString;
864
+ type: z.ZodDefault<z.ZodLiteral<"url">>;
865
+ error: z.ZodDefault<z.ZodString>;
866
+ required: z.ZodDefault<z.ZodBoolean>;
867
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
868
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
869
+ }, "strip", z.ZodTypeAny, {
870
+ key: string;
871
+ type: "url";
872
+ error: string;
873
+ required: boolean;
874
+ array: boolean;
875
+ xdefault?: string | null | undefined;
876
+ }, {
877
+ key: string;
878
+ type?: "url" | undefined;
879
+ error?: string | undefined;
880
+ required?: boolean | undefined;
881
+ array?: boolean | undefined;
882
+ xdefault?: string | null | undefined;
883
+ }>]>, z.ZodObject<{
884
+ key: z.ZodString;
885
+ type: z.ZodDefault<z.ZodLiteral<"enum">>;
886
+ error: z.ZodDefault<z.ZodString>;
887
+ required: z.ZodDefault<z.ZodBoolean>;
888
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
889
+ elements: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
890
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
891
+ }, "strip", z.ZodTypeAny, {
892
+ key: string;
893
+ type: "enum";
894
+ error: string;
895
+ required: boolean;
896
+ array: boolean;
897
+ elements: string[];
898
+ xdefault?: string | null | undefined;
899
+ }, {
900
+ key: string;
901
+ type?: "enum" | undefined;
902
+ error?: string | undefined;
903
+ required?: boolean | undefined;
904
+ array?: boolean | undefined;
905
+ elements?: string[] | undefined;
906
+ xdefault?: string | null | undefined;
907
+ }>]>, z.ZodObject<{
908
+ key: z.ZodString;
909
+ type: z.ZodDefault<z.ZodLiteral<"relationship">>;
910
+ error: z.ZodDefault<z.ZodString>;
911
+ required: z.ZodDefault<z.ZodBoolean>;
912
+ array: z.ZodOptional<z.ZodBoolean>;
913
+ relatedCollection: z.ZodString;
914
+ relationType: z.ZodEnum<["oneToMany", "manyToOne", "oneToOne", "manyToMany"]>;
915
+ twoWay: z.ZodBoolean;
916
+ twoWayKey: z.ZodString;
917
+ onDelete: z.ZodDefault<z.ZodEnum<["setNull", "cascade", "restrict"]>>;
918
+ side: z.ZodEnum<["parent", "child"]>;
919
+ importMapping: z.ZodOptional<z.ZodObject<{
920
+ originalIdField: z.ZodString;
921
+ targetField: z.ZodOptional<z.ZodString>;
922
+ }, "strip", z.ZodTypeAny, {
923
+ originalIdField: string;
924
+ targetField?: string | undefined;
925
+ }, {
926
+ originalIdField: string;
927
+ targetField?: string | undefined;
928
+ }>>;
929
+ }, "strip", z.ZodTypeAny, {
930
+ key: string;
931
+ type: "relationship";
932
+ error: string;
933
+ required: boolean;
934
+ relatedCollection: string;
935
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
936
+ twoWay: boolean;
937
+ twoWayKey: string;
938
+ onDelete: "setNull" | "cascade" | "restrict";
939
+ side: "parent" | "child";
940
+ array?: boolean | undefined;
941
+ importMapping?: {
942
+ originalIdField: string;
943
+ targetField?: string | undefined;
944
+ } | undefined;
945
+ }, {
946
+ key: string;
947
+ relatedCollection: string;
948
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
949
+ twoWay: boolean;
950
+ twoWayKey: string;
951
+ side: "parent" | "child";
952
+ type?: "relationship" | undefined;
953
+ error?: string | undefined;
954
+ required?: boolean | undefined;
955
+ array?: boolean | undefined;
956
+ onDelete?: "setNull" | "cascade" | "restrict" | undefined;
957
+ importMapping?: {
958
+ originalIdField: string;
959
+ targetField?: string | undefined;
960
+ } | undefined;
961
+ }>]>, "many">>;
962
+ indexes: z.ZodDefault<z.ZodArray<z.ZodObject<{
963
+ key: z.ZodString;
964
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["key", "unique", "fulltext"]>>>;
965
+ status: z.ZodOptional<z.ZodString>;
966
+ error: z.ZodOptional<z.ZodString>;
967
+ attributes: z.ZodArray<z.ZodString, "many">;
968
+ orders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
969
+ }, "strip", z.ZodTypeAny, {
970
+ key: string;
971
+ type: "key" | "unique" | "fulltext";
972
+ attributes: string[];
973
+ status?: string | undefined;
974
+ error?: string | undefined;
975
+ orders?: string[] | undefined;
976
+ }, {
977
+ key: string;
978
+ attributes: string[];
979
+ type?: "key" | "unique" | "fulltext" | undefined;
980
+ status?: string | undefined;
981
+ error?: string | undefined;
982
+ orders?: string[] | undefined;
983
+ }>, "many">>;
984
+ importDefs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
985
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["create", "update"]>>>;
986
+ filePath: z.ZodString;
987
+ basePath: z.ZodOptional<z.ZodString>;
988
+ updateMapping: z.ZodOptional<z.ZodObject<{
989
+ originalIdField: z.ZodString;
990
+ targetField: z.ZodString;
991
+ }, "strip", z.ZodTypeAny, {
992
+ originalIdField: string;
993
+ targetField: string;
994
+ }, {
995
+ originalIdField: string;
996
+ targetField: string;
997
+ }>>;
998
+ attributeMappings: z.ZodArray<z.ZodObject<{
999
+ oldKey: z.ZodOptional<z.ZodString>;
1000
+ oldKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1001
+ targetKey: z.ZodString;
1002
+ fileData: z.ZodOptional<z.ZodObject<{
1003
+ name: z.ZodString;
1004
+ path: z.ZodString;
1005
+ }, "strip", z.ZodTypeAny, {
1006
+ path: string;
1007
+ name: string;
1008
+ }, {
1009
+ path: string;
1010
+ name: string;
1011
+ }>>;
1012
+ converters: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1013
+ validationActions: z.ZodDefault<z.ZodArray<z.ZodObject<{
1014
+ action: z.ZodString;
1015
+ params: z.ZodArray<z.ZodString, "many">;
1016
+ }, "strip", z.ZodTypeAny, {
1017
+ params: string[];
1018
+ action: string;
1019
+ }, {
1020
+ params: string[];
1021
+ action: string;
1022
+ }>, "many">>;
1023
+ postImportActions: z.ZodDefault<z.ZodArray<z.ZodObject<{
1024
+ action: z.ZodString;
1025
+ params: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
1026
+ }, "strip", z.ZodTypeAny, {
1027
+ params: (string | Record<string, any>)[];
1028
+ action: string;
1029
+ }, {
1030
+ params: (string | Record<string, any>)[];
1031
+ action: string;
1032
+ }>, "many">>;
1033
+ }, "strip", z.ZodTypeAny, {
1034
+ targetKey: string;
1035
+ converters: string[];
1036
+ validationActions: {
1037
+ params: string[];
1038
+ action: string;
1039
+ }[];
1040
+ postImportActions: {
1041
+ params: (string | Record<string, any>)[];
1042
+ action: string;
1043
+ }[];
1044
+ oldKey?: string | undefined;
1045
+ oldKeys?: string[] | undefined;
1046
+ fileData?: {
1047
+ path: string;
1048
+ name: string;
1049
+ } | undefined;
1050
+ }, {
1051
+ targetKey: string;
1052
+ oldKey?: string | undefined;
1053
+ oldKeys?: string[] | undefined;
1054
+ fileData?: {
1055
+ path: string;
1056
+ name: string;
1057
+ } | undefined;
1058
+ converters?: string[] | undefined;
1059
+ validationActions?: {
1060
+ params: string[];
1061
+ action: string;
1062
+ }[] | undefined;
1063
+ postImportActions?: {
1064
+ params: (string | Record<string, any>)[];
1065
+ action: string;
1066
+ }[] | undefined;
1067
+ }>, "many">;
1068
+ }, "strip", z.ZodTypeAny, {
1069
+ filePath: string;
1070
+ attributeMappings: {
1071
+ targetKey: string;
1072
+ converters: string[];
1073
+ validationActions: {
1074
+ params: string[];
1075
+ action: string;
1076
+ }[];
1077
+ postImportActions: {
1078
+ params: (string | Record<string, any>)[];
1079
+ action: string;
1080
+ }[];
1081
+ oldKey?: string | undefined;
1082
+ oldKeys?: string[] | undefined;
1083
+ fileData?: {
1084
+ path: string;
1085
+ name: string;
1086
+ } | undefined;
1087
+ }[];
1088
+ type?: "create" | "update" | undefined;
1089
+ basePath?: string | undefined;
1090
+ updateMapping?: {
1091
+ originalIdField: string;
1092
+ targetField: string;
1093
+ } | undefined;
1094
+ }, {
1095
+ filePath: string;
1096
+ attributeMappings: {
1097
+ targetKey: string;
1098
+ oldKey?: string | undefined;
1099
+ oldKeys?: string[] | undefined;
1100
+ fileData?: {
1101
+ path: string;
1102
+ name: string;
1103
+ } | undefined;
1104
+ converters?: string[] | undefined;
1105
+ validationActions?: {
1106
+ params: string[];
1107
+ action: string;
1108
+ }[] | undefined;
1109
+ postImportActions?: {
1110
+ params: (string | Record<string, any>)[];
1111
+ action: string;
1112
+ }[] | undefined;
1113
+ }[];
1114
+ type?: "create" | "update" | undefined;
1115
+ basePath?: string | undefined;
1116
+ updateMapping?: {
1117
+ originalIdField: string;
1118
+ targetField: string;
1119
+ } | undefined;
1120
+ }>, "many">>>;
1121
+ }, "strip", z.ZodTypeAny, {
1122
+ attributes: ({
1123
+ key: string;
1124
+ type: "string";
1125
+ error: string;
1126
+ required: boolean;
1127
+ array: boolean;
1128
+ size: number;
1129
+ xdefault?: string | null | undefined;
1130
+ encrypted?: boolean | undefined;
1131
+ } | {
1132
+ key: string;
1133
+ type: "integer";
1134
+ error: string;
1135
+ required: boolean;
1136
+ array: boolean;
1137
+ min?: number | undefined;
1138
+ max?: number | undefined;
1139
+ xdefault?: number | null | undefined;
1140
+ } | {
1141
+ key: string;
1142
+ type: "float";
1143
+ error: string;
1144
+ required: boolean;
1145
+ array: boolean;
1146
+ min?: number | undefined;
1147
+ max?: number | undefined;
1148
+ xdefault?: number | null | undefined;
1149
+ } | {
1150
+ key: string;
1151
+ type: "boolean";
1152
+ error: string;
1153
+ required: boolean;
1154
+ array: boolean;
1155
+ xdefault?: boolean | null | undefined;
1156
+ } | {
1157
+ key: string;
1158
+ type: "datetime";
1159
+ error: string;
1160
+ required: boolean;
1161
+ array: boolean;
1162
+ xdefault?: string | null | undefined;
1163
+ } | {
1164
+ key: string;
1165
+ type: "email";
1166
+ error: string;
1167
+ required: boolean;
1168
+ array: boolean;
1169
+ xdefault?: string | null | undefined;
1170
+ } | {
1171
+ key: string;
1172
+ type: "ip";
1173
+ error: string;
1174
+ required: boolean;
1175
+ array: boolean;
1176
+ xdefault?: string | null | undefined;
1177
+ } | {
1178
+ key: string;
1179
+ type: "url";
1180
+ error: string;
1181
+ required: boolean;
1182
+ array: boolean;
1183
+ xdefault?: string | null | undefined;
1184
+ } | {
1185
+ key: string;
1186
+ type: "enum";
1187
+ error: string;
1188
+ required: boolean;
1189
+ array: boolean;
1190
+ elements: string[];
1191
+ xdefault?: string | null | undefined;
1192
+ } | {
1193
+ key: string;
1194
+ type: "relationship";
1195
+ error: string;
1196
+ required: boolean;
1197
+ relatedCollection: string;
1198
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
1199
+ twoWay: boolean;
1200
+ twoWayKey: string;
1201
+ onDelete: "setNull" | "cascade" | "restrict";
1202
+ side: "parent" | "child";
1203
+ array?: boolean | undefined;
1204
+ importMapping?: {
1205
+ originalIdField: string;
1206
+ targetField?: string | undefined;
1207
+ } | undefined;
1208
+ })[];
1209
+ $id: string;
1210
+ $createdAt: string;
1211
+ $updatedAt: string;
1212
+ $permissions: {
1213
+ permission: string;
1214
+ target: string;
1215
+ }[];
1216
+ name: string;
1217
+ enabled: boolean;
1218
+ documentSecurity: boolean;
1219
+ indexes: {
1220
+ key: string;
1221
+ type: "key" | "unique" | "fulltext";
1222
+ attributes: string[];
1223
+ status?: string | undefined;
1224
+ error?: string | undefined;
1225
+ orders?: string[] | undefined;
1226
+ }[];
1227
+ importDefs: {
1228
+ filePath: string;
1229
+ attributeMappings: {
1230
+ targetKey: string;
1231
+ converters: string[];
1232
+ validationActions: {
1233
+ params: string[];
1234
+ action: string;
1235
+ }[];
1236
+ postImportActions: {
1237
+ params: (string | Record<string, any>)[];
1238
+ action: string;
1239
+ }[];
1240
+ oldKey?: string | undefined;
1241
+ oldKeys?: string[] | undefined;
1242
+ fileData?: {
1243
+ path: string;
1244
+ name: string;
1245
+ } | undefined;
1246
+ }[];
1247
+ type?: "create" | "update" | undefined;
1248
+ basePath?: string | undefined;
1249
+ updateMapping?: {
1250
+ originalIdField: string;
1251
+ targetField: string;
1252
+ } | undefined;
1253
+ }[];
1254
+ databaseId?: string | undefined;
1255
+ }, {
1256
+ $createdAt: string;
1257
+ $updatedAt: string;
1258
+ name: string;
1259
+ $id?: string | undefined;
1260
+ $permissions?: {
1261
+ permission: string;
1262
+ target: string;
1263
+ }[] | undefined;
1264
+ databaseId?: string | undefined;
1265
+ enabled?: boolean | undefined;
1266
+ documentSecurity?: boolean | undefined;
1267
+ attributes?: ({
1268
+ key: string;
1269
+ type?: "string" | undefined;
1270
+ error?: string | undefined;
1271
+ required?: boolean | undefined;
1272
+ array?: boolean | undefined;
1273
+ size?: number | undefined;
1274
+ xdefault?: string | null | undefined;
1275
+ encrypted?: boolean | undefined;
1276
+ } | {
1277
+ key: string;
1278
+ type?: "integer" | undefined;
1279
+ error?: string | undefined;
1280
+ required?: boolean | undefined;
1281
+ array?: boolean | undefined;
1282
+ min?: number | undefined;
1283
+ max?: number | undefined;
1284
+ xdefault?: number | null | undefined;
1285
+ } | {
1286
+ key: string;
1287
+ type?: "float" | undefined;
1288
+ error?: string | undefined;
1289
+ required?: boolean | undefined;
1290
+ array?: boolean | undefined;
1291
+ min?: number | undefined;
1292
+ max?: number | undefined;
1293
+ xdefault?: number | null | undefined;
1294
+ } | {
1295
+ key: string;
1296
+ type?: "boolean" | undefined;
1297
+ error?: string | undefined;
1298
+ required?: boolean | undefined;
1299
+ array?: boolean | undefined;
1300
+ xdefault?: boolean | null | undefined;
1301
+ } | {
1302
+ key: string;
1303
+ type?: "datetime" | undefined;
1304
+ error?: string | undefined;
1305
+ required?: boolean | undefined;
1306
+ array?: boolean | undefined;
1307
+ xdefault?: string | null | undefined;
1308
+ } | {
1309
+ key: string;
1310
+ type?: "email" | undefined;
1311
+ error?: string | undefined;
1312
+ required?: boolean | undefined;
1313
+ array?: boolean | undefined;
1314
+ xdefault?: string | null | undefined;
1315
+ } | {
1316
+ key: string;
1317
+ type: "ip";
1318
+ error?: string | undefined;
1319
+ required?: boolean | undefined;
1320
+ array?: boolean | undefined;
1321
+ xdefault?: string | null | undefined;
1322
+ } | {
1323
+ key: string;
1324
+ type?: "url" | undefined;
1325
+ error?: string | undefined;
1326
+ required?: boolean | undefined;
1327
+ array?: boolean | undefined;
1328
+ xdefault?: string | null | undefined;
1329
+ } | {
1330
+ key: string;
1331
+ type?: "enum" | undefined;
1332
+ error?: string | undefined;
1333
+ required?: boolean | undefined;
1334
+ array?: boolean | undefined;
1335
+ elements?: string[] | undefined;
1336
+ xdefault?: string | null | undefined;
1337
+ } | {
1338
+ key: string;
1339
+ relatedCollection: string;
1340
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
1341
+ twoWay: boolean;
1342
+ twoWayKey: string;
1343
+ side: "parent" | "child";
1344
+ type?: "relationship" | undefined;
1345
+ error?: string | undefined;
1346
+ required?: boolean | undefined;
1347
+ array?: boolean | undefined;
1348
+ onDelete?: "setNull" | "cascade" | "restrict" | undefined;
1349
+ importMapping?: {
1350
+ originalIdField: string;
1351
+ targetField?: string | undefined;
1352
+ } | undefined;
1353
+ })[] | undefined;
1354
+ indexes?: {
1355
+ key: string;
1356
+ attributes: string[];
1357
+ type?: "key" | "unique" | "fulltext" | undefined;
1358
+ status?: string | undefined;
1359
+ error?: string | undefined;
1360
+ orders?: string[] | undefined;
1361
+ }[] | undefined;
1362
+ importDefs?: {
1363
+ filePath: string;
1364
+ attributeMappings: {
1365
+ targetKey: string;
1366
+ oldKey?: string | undefined;
1367
+ oldKeys?: string[] | undefined;
1368
+ fileData?: {
1369
+ path: string;
1370
+ name: string;
1371
+ } | undefined;
1372
+ converters?: string[] | undefined;
1373
+ validationActions?: {
1374
+ params: string[];
1375
+ action: string;
1376
+ }[] | undefined;
1377
+ postImportActions?: {
1378
+ params: (string | Record<string, any>)[];
1379
+ action: string;
1380
+ }[] | undefined;
1381
+ }[];
1382
+ type?: "create" | "update" | undefined;
1383
+ basePath?: string | undefined;
1384
+ updateMapping?: {
1385
+ originalIdField: string;
1386
+ targetField: string;
1387
+ } | undefined;
1388
+ }[] | undefined;
1389
+ }>;
1390
+ export declare const CollectionCreateSchema: z.ZodObject<Omit<{
1391
+ $id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1392
+ $createdAt: z.ZodString;
1393
+ $updatedAt: z.ZodString;
1394
+ $permissions: z.ZodDefault<z.ZodArray<z.ZodObject<{
1395
+ permission: z.ZodString;
1396
+ target: z.ZodString;
1397
+ }, "strip", z.ZodTypeAny, {
1398
+ permission: string;
1399
+ target: string;
1400
+ }, {
1401
+ permission: string;
1402
+ target: string;
1403
+ }>, "many">>;
1404
+ databaseId: z.ZodOptional<z.ZodString>;
1405
+ name: z.ZodString;
1406
+ enabled: z.ZodDefault<z.ZodBoolean>;
1407
+ documentSecurity: z.ZodDefault<z.ZodBoolean>;
1408
+ attributes: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1409
+ key: z.ZodString;
1410
+ type: z.ZodDefault<z.ZodLiteral<"string">>;
1411
+ error: z.ZodDefault<z.ZodString>;
1412
+ required: z.ZodDefault<z.ZodBoolean>;
1413
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1414
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1415
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1416
+ encrypted: z.ZodOptional<z.ZodBoolean>;
1417
+ }, "strip", z.ZodTypeAny, {
1418
+ key: string;
1419
+ type: "string";
1420
+ error: string;
1421
+ required: boolean;
1422
+ array: boolean;
1423
+ size: number;
1424
+ xdefault?: string | null | undefined;
1425
+ encrypted?: boolean | undefined;
1426
+ }, {
1427
+ key: string;
1428
+ type?: "string" | undefined;
1429
+ error?: string | undefined;
1430
+ required?: boolean | undefined;
1431
+ array?: boolean | undefined;
1432
+ size?: number | undefined;
1433
+ xdefault?: string | null | undefined;
1434
+ encrypted?: boolean | undefined;
1435
+ }>, z.ZodObject<{
1436
+ key: z.ZodString;
1437
+ type: z.ZodDefault<z.ZodLiteral<"integer">>;
1438
+ error: z.ZodDefault<z.ZodString>;
1439
+ required: z.ZodDefault<z.ZodBoolean>;
1440
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1441
+ min: z.ZodOptional<z.ZodNumber>;
1442
+ max: z.ZodOptional<z.ZodNumber>;
1443
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1444
+ }, "strip", z.ZodTypeAny, {
1445
+ key: string;
1446
+ type: "integer";
1447
+ error: string;
1448
+ required: boolean;
1449
+ array: boolean;
1450
+ min?: number | undefined;
1451
+ max?: number | undefined;
1452
+ xdefault?: number | null | undefined;
1453
+ }, {
1454
+ key: string;
1455
+ type?: "integer" | undefined;
1456
+ error?: string | undefined;
1457
+ required?: boolean | undefined;
1458
+ array?: boolean | undefined;
1459
+ min?: number | undefined;
1460
+ max?: number | undefined;
1461
+ xdefault?: number | null | undefined;
1462
+ }>]>, z.ZodObject<{
1463
+ key: z.ZodString;
1464
+ type: z.ZodDefault<z.ZodLiteral<"float">>;
1465
+ error: z.ZodDefault<z.ZodString>;
1466
+ required: z.ZodDefault<z.ZodBoolean>;
1467
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1468
+ min: z.ZodOptional<z.ZodNumber>;
1469
+ max: z.ZodOptional<z.ZodNumber>;
1470
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1471
+ }, "strip", z.ZodTypeAny, {
1472
+ key: string;
1473
+ type: "float";
1474
+ error: string;
1475
+ required: boolean;
1476
+ array: boolean;
1477
+ min?: number | undefined;
1478
+ max?: number | undefined;
1479
+ xdefault?: number | null | undefined;
1480
+ }, {
1481
+ key: string;
1482
+ type?: "float" | undefined;
1483
+ error?: string | undefined;
1484
+ required?: boolean | undefined;
1485
+ array?: boolean | undefined;
1486
+ min?: number | undefined;
1487
+ max?: number | undefined;
1488
+ xdefault?: number | null | undefined;
1489
+ }>]>, z.ZodObject<{
1490
+ key: z.ZodString;
1491
+ type: z.ZodDefault<z.ZodLiteral<"boolean">>;
1492
+ error: z.ZodDefault<z.ZodString>;
1493
+ required: z.ZodDefault<z.ZodBoolean>;
1494
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1495
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1496
+ }, "strip", z.ZodTypeAny, {
1497
+ key: string;
1498
+ type: "boolean";
1499
+ error: string;
1500
+ required: boolean;
1501
+ array: boolean;
1502
+ xdefault?: boolean | null | undefined;
1503
+ }, {
1504
+ key: string;
1505
+ type?: "boolean" | undefined;
1506
+ error?: string | undefined;
1507
+ required?: boolean | undefined;
1508
+ array?: boolean | undefined;
1509
+ xdefault?: boolean | null | undefined;
1510
+ }>]>, z.ZodObject<{
1511
+ key: z.ZodString;
1512
+ type: z.ZodDefault<z.ZodLiteral<"datetime">>;
1513
+ error: z.ZodDefault<z.ZodString>;
1514
+ required: z.ZodDefault<z.ZodBoolean>;
1515
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1516
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1517
+ }, "strip", z.ZodTypeAny, {
1518
+ key: string;
1519
+ type: "datetime";
1520
+ error: string;
1521
+ required: boolean;
1522
+ array: boolean;
1523
+ xdefault?: string | null | undefined;
1524
+ }, {
1525
+ key: string;
1526
+ type?: "datetime" | undefined;
1527
+ error?: string | undefined;
1528
+ required?: boolean | undefined;
1529
+ array?: boolean | undefined;
1530
+ xdefault?: string | null | undefined;
1531
+ }>]>, z.ZodObject<{
1532
+ key: z.ZodString;
1533
+ type: z.ZodDefault<z.ZodLiteral<"email">>;
1534
+ error: z.ZodDefault<z.ZodString>;
1535
+ required: z.ZodDefault<z.ZodBoolean>;
1536
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1537
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1538
+ }, "strip", z.ZodTypeAny, {
1539
+ key: string;
1540
+ type: "email";
1541
+ error: string;
1542
+ required: boolean;
1543
+ array: boolean;
1544
+ xdefault?: string | null | undefined;
1545
+ }, {
1546
+ key: string;
1547
+ type?: "email" | undefined;
1548
+ error?: string | undefined;
1549
+ required?: boolean | undefined;
1550
+ array?: boolean | undefined;
1551
+ xdefault?: string | null | undefined;
1552
+ }>]>, z.ZodObject<{
1553
+ key: z.ZodString;
1554
+ type: z.ZodLiteral<"ip">;
1555
+ error: z.ZodDefault<z.ZodString>;
1556
+ required: z.ZodDefault<z.ZodBoolean>;
1557
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1558
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1559
+ }, "strip", z.ZodTypeAny, {
1560
+ key: string;
1561
+ type: "ip";
1562
+ error: string;
1563
+ required: boolean;
1564
+ array: boolean;
1565
+ xdefault?: string | null | undefined;
1566
+ }, {
1567
+ key: string;
1568
+ type: "ip";
1569
+ error?: string | undefined;
1570
+ required?: boolean | undefined;
1571
+ array?: boolean | undefined;
1572
+ xdefault?: string | null | undefined;
1573
+ }>]>, z.ZodObject<{
1574
+ key: z.ZodString;
1575
+ type: z.ZodDefault<z.ZodLiteral<"url">>;
1576
+ error: z.ZodDefault<z.ZodString>;
1577
+ required: z.ZodDefault<z.ZodBoolean>;
1578
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1579
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1580
+ }, "strip", z.ZodTypeAny, {
1581
+ key: string;
1582
+ type: "url";
1583
+ error: string;
1584
+ required: boolean;
1585
+ array: boolean;
1586
+ xdefault?: string | null | undefined;
1587
+ }, {
1588
+ key: string;
1589
+ type?: "url" | undefined;
1590
+ error?: string | undefined;
1591
+ required?: boolean | undefined;
1592
+ array?: boolean | undefined;
1593
+ xdefault?: string | null | undefined;
1594
+ }>]>, z.ZodObject<{
1595
+ key: z.ZodString;
1596
+ type: z.ZodDefault<z.ZodLiteral<"enum">>;
1597
+ error: z.ZodDefault<z.ZodString>;
1598
+ required: z.ZodDefault<z.ZodBoolean>;
1599
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1600
+ elements: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1601
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1602
+ }, "strip", z.ZodTypeAny, {
1603
+ key: string;
1604
+ type: "enum";
1605
+ error: string;
1606
+ required: boolean;
1607
+ array: boolean;
1608
+ elements: string[];
1609
+ xdefault?: string | null | undefined;
1610
+ }, {
1611
+ key: string;
1612
+ type?: "enum" | undefined;
1613
+ error?: string | undefined;
1614
+ required?: boolean | undefined;
1615
+ array?: boolean | undefined;
1616
+ elements?: string[] | undefined;
1617
+ xdefault?: string | null | undefined;
1618
+ }>]>, z.ZodObject<{
1619
+ key: z.ZodString;
1620
+ type: z.ZodDefault<z.ZodLiteral<"relationship">>;
1621
+ error: z.ZodDefault<z.ZodString>;
1622
+ required: z.ZodDefault<z.ZodBoolean>;
1623
+ array: z.ZodOptional<z.ZodBoolean>;
1624
+ relatedCollection: z.ZodString;
1625
+ relationType: z.ZodEnum<["oneToMany", "manyToOne", "oneToOne", "manyToMany"]>;
1626
+ twoWay: z.ZodBoolean;
1627
+ twoWayKey: z.ZodString;
1628
+ onDelete: z.ZodDefault<z.ZodEnum<["setNull", "cascade", "restrict"]>>;
1629
+ side: z.ZodEnum<["parent", "child"]>;
1630
+ importMapping: z.ZodOptional<z.ZodObject<{
1631
+ originalIdField: z.ZodString;
1632
+ targetField: z.ZodOptional<z.ZodString>;
1633
+ }, "strip", z.ZodTypeAny, {
1634
+ originalIdField: string;
1635
+ targetField?: string | undefined;
1636
+ }, {
1637
+ originalIdField: string;
1638
+ targetField?: string | undefined;
1639
+ }>>;
1640
+ }, "strip", z.ZodTypeAny, {
1641
+ key: string;
1642
+ type: "relationship";
1643
+ error: string;
1644
+ required: boolean;
1645
+ relatedCollection: string;
1646
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
1647
+ twoWay: boolean;
1648
+ twoWayKey: string;
1649
+ onDelete: "setNull" | "cascade" | "restrict";
1650
+ side: "parent" | "child";
1651
+ array?: boolean | undefined;
1652
+ importMapping?: {
1653
+ originalIdField: string;
1654
+ targetField?: string | undefined;
1655
+ } | undefined;
1656
+ }, {
1657
+ key: string;
1658
+ relatedCollection: string;
1659
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
1660
+ twoWay: boolean;
1661
+ twoWayKey: string;
1662
+ side: "parent" | "child";
1663
+ type?: "relationship" | undefined;
1664
+ error?: string | undefined;
1665
+ required?: boolean | undefined;
1666
+ array?: boolean | undefined;
1667
+ onDelete?: "setNull" | "cascade" | "restrict" | undefined;
1668
+ importMapping?: {
1669
+ originalIdField: string;
1670
+ targetField?: string | undefined;
1671
+ } | undefined;
1672
+ }>]>, "many">>;
1673
+ indexes: z.ZodDefault<z.ZodArray<z.ZodObject<{
1674
+ key: z.ZodString;
1675
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["key", "unique", "fulltext"]>>>;
1676
+ status: z.ZodOptional<z.ZodString>;
1677
+ error: z.ZodOptional<z.ZodString>;
1678
+ attributes: z.ZodArray<z.ZodString, "many">;
1679
+ orders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1680
+ }, "strip", z.ZodTypeAny, {
1681
+ key: string;
1682
+ type: "key" | "unique" | "fulltext";
1683
+ attributes: string[];
1684
+ status?: string | undefined;
1685
+ error?: string | undefined;
1686
+ orders?: string[] | undefined;
1687
+ }, {
1688
+ key: string;
1689
+ attributes: string[];
1690
+ type?: "key" | "unique" | "fulltext" | undefined;
1691
+ status?: string | undefined;
1692
+ error?: string | undefined;
1693
+ orders?: string[] | undefined;
1694
+ }>, "many">>;
1695
+ importDefs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1696
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["create", "update"]>>>;
1697
+ filePath: z.ZodString;
1698
+ basePath: z.ZodOptional<z.ZodString>;
1699
+ updateMapping: z.ZodOptional<z.ZodObject<{
1700
+ originalIdField: z.ZodString;
1701
+ targetField: z.ZodString;
1702
+ }, "strip", z.ZodTypeAny, {
1703
+ originalIdField: string;
1704
+ targetField: string;
1705
+ }, {
1706
+ originalIdField: string;
1707
+ targetField: string;
1708
+ }>>;
1709
+ attributeMappings: z.ZodArray<z.ZodObject<{
1710
+ oldKey: z.ZodOptional<z.ZodString>;
1711
+ oldKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1712
+ targetKey: z.ZodString;
1713
+ fileData: z.ZodOptional<z.ZodObject<{
1714
+ name: z.ZodString;
1715
+ path: z.ZodString;
1716
+ }, "strip", z.ZodTypeAny, {
1717
+ path: string;
1718
+ name: string;
1719
+ }, {
1720
+ path: string;
1721
+ name: string;
1722
+ }>>;
1723
+ converters: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1724
+ validationActions: z.ZodDefault<z.ZodArray<z.ZodObject<{
1725
+ action: z.ZodString;
1726
+ params: z.ZodArray<z.ZodString, "many">;
1727
+ }, "strip", z.ZodTypeAny, {
1728
+ params: string[];
1729
+ action: string;
1730
+ }, {
1731
+ params: string[];
1732
+ action: string;
1733
+ }>, "many">>;
1734
+ postImportActions: z.ZodDefault<z.ZodArray<z.ZodObject<{
1735
+ action: z.ZodString;
1736
+ params: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
1737
+ }, "strip", z.ZodTypeAny, {
1738
+ params: (string | Record<string, any>)[];
1739
+ action: string;
1740
+ }, {
1741
+ params: (string | Record<string, any>)[];
1742
+ action: string;
1743
+ }>, "many">>;
1744
+ }, "strip", z.ZodTypeAny, {
1745
+ targetKey: string;
1746
+ converters: string[];
1747
+ validationActions: {
1748
+ params: string[];
1749
+ action: string;
1750
+ }[];
1751
+ postImportActions: {
1752
+ params: (string | Record<string, any>)[];
1753
+ action: string;
1754
+ }[];
1755
+ oldKey?: string | undefined;
1756
+ oldKeys?: string[] | undefined;
1757
+ fileData?: {
1758
+ path: string;
1759
+ name: string;
1760
+ } | undefined;
1761
+ }, {
1762
+ targetKey: string;
1763
+ oldKey?: string | undefined;
1764
+ oldKeys?: string[] | undefined;
1765
+ fileData?: {
1766
+ path: string;
1767
+ name: string;
1768
+ } | undefined;
1769
+ converters?: string[] | undefined;
1770
+ validationActions?: {
1771
+ params: string[];
1772
+ action: string;
1773
+ }[] | undefined;
1774
+ postImportActions?: {
1775
+ params: (string | Record<string, any>)[];
1776
+ action: string;
1777
+ }[] | undefined;
1778
+ }>, "many">;
1779
+ }, "strip", z.ZodTypeAny, {
1780
+ filePath: string;
1781
+ attributeMappings: {
1782
+ targetKey: string;
1783
+ converters: string[];
1784
+ validationActions: {
1785
+ params: string[];
1786
+ action: string;
1787
+ }[];
1788
+ postImportActions: {
1789
+ params: (string | Record<string, any>)[];
1790
+ action: string;
1791
+ }[];
1792
+ oldKey?: string | undefined;
1793
+ oldKeys?: string[] | undefined;
1794
+ fileData?: {
1795
+ path: string;
1796
+ name: string;
1797
+ } | undefined;
1798
+ }[];
1799
+ type?: "create" | "update" | undefined;
1800
+ basePath?: string | undefined;
1801
+ updateMapping?: {
1802
+ originalIdField: string;
1803
+ targetField: string;
1804
+ } | undefined;
1805
+ }, {
1806
+ filePath: string;
1807
+ attributeMappings: {
1808
+ targetKey: string;
1809
+ oldKey?: string | undefined;
1810
+ oldKeys?: string[] | undefined;
1811
+ fileData?: {
1812
+ path: string;
1813
+ name: string;
1814
+ } | undefined;
1815
+ converters?: string[] | undefined;
1816
+ validationActions?: {
1817
+ params: string[];
1818
+ action: string;
1819
+ }[] | undefined;
1820
+ postImportActions?: {
1821
+ params: (string | Record<string, any>)[];
1822
+ action: string;
1823
+ }[] | undefined;
1824
+ }[];
1825
+ type?: "create" | "update" | undefined;
1826
+ basePath?: string | undefined;
1827
+ updateMapping?: {
1828
+ originalIdField: string;
1829
+ targetField: string;
1830
+ } | undefined;
1831
+ }>, "many">>>;
1832
+ }, "$createdAt" | "$updatedAt">, "strip", z.ZodTypeAny, {
1833
+ attributes: ({
1834
+ key: string;
1835
+ type: "string";
1836
+ error: string;
1837
+ required: boolean;
1838
+ array: boolean;
1839
+ size: number;
1840
+ xdefault?: string | null | undefined;
1841
+ encrypted?: boolean | undefined;
1842
+ } | {
1843
+ key: string;
1844
+ type: "integer";
1845
+ error: string;
1846
+ required: boolean;
1847
+ array: boolean;
1848
+ min?: number | undefined;
1849
+ max?: number | undefined;
1850
+ xdefault?: number | null | undefined;
1851
+ } | {
1852
+ key: string;
1853
+ type: "float";
1854
+ error: string;
1855
+ required: boolean;
1856
+ array: boolean;
1857
+ min?: number | undefined;
1858
+ max?: number | undefined;
1859
+ xdefault?: number | null | undefined;
1860
+ } | {
1861
+ key: string;
1862
+ type: "boolean";
1863
+ error: string;
1864
+ required: boolean;
1865
+ array: boolean;
1866
+ xdefault?: boolean | null | undefined;
1867
+ } | {
1868
+ key: string;
1869
+ type: "datetime";
1870
+ error: string;
1871
+ required: boolean;
1872
+ array: boolean;
1873
+ xdefault?: string | null | undefined;
1874
+ } | {
1875
+ key: string;
1876
+ type: "email";
1877
+ error: string;
1878
+ required: boolean;
1879
+ array: boolean;
1880
+ xdefault?: string | null | undefined;
1881
+ } | {
1882
+ key: string;
1883
+ type: "ip";
1884
+ error: string;
1885
+ required: boolean;
1886
+ array: boolean;
1887
+ xdefault?: string | null | undefined;
1888
+ } | {
1889
+ key: string;
1890
+ type: "url";
1891
+ error: string;
1892
+ required: boolean;
1893
+ array: boolean;
1894
+ xdefault?: string | null | undefined;
1895
+ } | {
1896
+ key: string;
1897
+ type: "enum";
1898
+ error: string;
1899
+ required: boolean;
1900
+ array: boolean;
1901
+ elements: string[];
1902
+ xdefault?: string | null | undefined;
1903
+ } | {
1904
+ key: string;
1905
+ type: "relationship";
1906
+ error: string;
1907
+ required: boolean;
1908
+ relatedCollection: string;
1909
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
1910
+ twoWay: boolean;
1911
+ twoWayKey: string;
1912
+ onDelete: "setNull" | "cascade" | "restrict";
1913
+ side: "parent" | "child";
1914
+ array?: boolean | undefined;
1915
+ importMapping?: {
1916
+ originalIdField: string;
1917
+ targetField?: string | undefined;
1918
+ } | undefined;
1919
+ })[];
1920
+ $id: string;
1921
+ $permissions: {
1922
+ permission: string;
1923
+ target: string;
1924
+ }[];
1925
+ name: string;
1926
+ enabled: boolean;
1927
+ documentSecurity: boolean;
1928
+ indexes: {
1929
+ key: string;
1930
+ type: "key" | "unique" | "fulltext";
1931
+ attributes: string[];
1932
+ status?: string | undefined;
1933
+ error?: string | undefined;
1934
+ orders?: string[] | undefined;
1935
+ }[];
1936
+ importDefs: {
1937
+ filePath: string;
1938
+ attributeMappings: {
1939
+ targetKey: string;
1940
+ converters: string[];
1941
+ validationActions: {
1942
+ params: string[];
1943
+ action: string;
1944
+ }[];
1945
+ postImportActions: {
1946
+ params: (string | Record<string, any>)[];
1947
+ action: string;
1948
+ }[];
1949
+ oldKey?: string | undefined;
1950
+ oldKeys?: string[] | undefined;
1951
+ fileData?: {
1952
+ path: string;
1953
+ name: string;
1954
+ } | undefined;
1955
+ }[];
1956
+ type?: "create" | "update" | undefined;
1957
+ basePath?: string | undefined;
1958
+ updateMapping?: {
1959
+ originalIdField: string;
1960
+ targetField: string;
1961
+ } | undefined;
1962
+ }[];
1963
+ databaseId?: string | undefined;
1964
+ }, {
1965
+ name: string;
1966
+ attributes?: ({
1967
+ key: string;
1968
+ type?: "string" | undefined;
1969
+ error?: string | undefined;
1970
+ required?: boolean | undefined;
1971
+ array?: boolean | undefined;
1972
+ size?: number | undefined;
1973
+ xdefault?: string | null | undefined;
1974
+ encrypted?: boolean | undefined;
1975
+ } | {
1976
+ key: string;
1977
+ type?: "integer" | undefined;
1978
+ error?: string | undefined;
1979
+ required?: boolean | undefined;
1980
+ array?: boolean | undefined;
1981
+ min?: number | undefined;
1982
+ max?: number | undefined;
1983
+ xdefault?: number | null | undefined;
1984
+ } | {
1985
+ key: string;
1986
+ type?: "float" | undefined;
1987
+ error?: string | undefined;
1988
+ required?: boolean | undefined;
1989
+ array?: boolean | undefined;
1990
+ min?: number | undefined;
1991
+ max?: number | undefined;
1992
+ xdefault?: number | null | undefined;
1993
+ } | {
1994
+ key: string;
1995
+ type?: "boolean" | undefined;
1996
+ error?: string | undefined;
1997
+ required?: boolean | undefined;
1998
+ array?: boolean | undefined;
1999
+ xdefault?: boolean | null | undefined;
2000
+ } | {
2001
+ key: string;
2002
+ type?: "datetime" | undefined;
2003
+ error?: string | undefined;
2004
+ required?: boolean | undefined;
2005
+ array?: boolean | undefined;
2006
+ xdefault?: string | null | undefined;
2007
+ } | {
2008
+ key: string;
2009
+ type?: "email" | undefined;
2010
+ error?: string | undefined;
2011
+ required?: boolean | undefined;
2012
+ array?: boolean | undefined;
2013
+ xdefault?: string | null | undefined;
2014
+ } | {
2015
+ key: string;
2016
+ type: "ip";
2017
+ error?: string | undefined;
2018
+ required?: boolean | undefined;
2019
+ array?: boolean | undefined;
2020
+ xdefault?: string | null | undefined;
2021
+ } | {
2022
+ key: string;
2023
+ type?: "url" | undefined;
2024
+ error?: string | undefined;
2025
+ required?: boolean | undefined;
2026
+ array?: boolean | undefined;
2027
+ xdefault?: string | null | undefined;
2028
+ } | {
2029
+ key: string;
2030
+ type?: "enum" | undefined;
2031
+ error?: string | undefined;
2032
+ required?: boolean | undefined;
2033
+ array?: boolean | undefined;
2034
+ elements?: string[] | undefined;
2035
+ xdefault?: string | null | undefined;
2036
+ } | {
2037
+ key: string;
2038
+ relatedCollection: string;
2039
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
2040
+ twoWay: boolean;
2041
+ twoWayKey: string;
2042
+ side: "parent" | "child";
2043
+ type?: "relationship" | undefined;
2044
+ error?: string | undefined;
2045
+ required?: boolean | undefined;
2046
+ array?: boolean | undefined;
2047
+ onDelete?: "setNull" | "cascade" | "restrict" | undefined;
2048
+ importMapping?: {
2049
+ originalIdField: string;
2050
+ targetField?: string | undefined;
2051
+ } | undefined;
2052
+ })[] | undefined;
2053
+ $id?: string | undefined;
2054
+ $permissions?: {
2055
+ permission: string;
2056
+ target: string;
2057
+ }[] | undefined;
2058
+ databaseId?: string | undefined;
2059
+ enabled?: boolean | undefined;
2060
+ documentSecurity?: boolean | undefined;
2061
+ indexes?: {
2062
+ key: string;
2063
+ attributes: string[];
2064
+ type?: "key" | "unique" | "fulltext" | undefined;
2065
+ status?: string | undefined;
2066
+ error?: string | undefined;
2067
+ orders?: string[] | undefined;
2068
+ }[] | undefined;
2069
+ importDefs?: {
2070
+ filePath: string;
2071
+ attributeMappings: {
2072
+ targetKey: string;
2073
+ oldKey?: string | undefined;
2074
+ oldKeys?: string[] | undefined;
2075
+ fileData?: {
2076
+ path: string;
2077
+ name: string;
2078
+ } | undefined;
2079
+ converters?: string[] | undefined;
2080
+ validationActions?: {
2081
+ params: string[];
2082
+ action: string;
2083
+ }[] | undefined;
2084
+ postImportActions?: {
2085
+ params: (string | Record<string, any>)[];
2086
+ action: string;
2087
+ }[] | undefined;
2088
+ }[];
2089
+ type?: "create" | "update" | undefined;
2090
+ basePath?: string | undefined;
2091
+ updateMapping?: {
2092
+ originalIdField: string;
2093
+ targetField: string;
2094
+ } | undefined;
2095
+ }[] | undefined;
2096
+ }>;
2097
+ export type Collection = z.infer<typeof collectionSchema>;
2098
+ export type CollectionCreate = z.infer<typeof CollectionCreateSchema>;
2099
+ export declare const AppwriteConfigSchema: z.ZodObject<{
2100
+ appwriteEndpoint: z.ZodDefault<z.ZodString>;
2101
+ appwriteProject: z.ZodString;
2102
+ appwriteKey: z.ZodString;
2103
+ appwriteClient: z.ZodDefault<z.ZodUnion<[z.ZodAny, z.ZodNull]>>;
2104
+ enableDevDatabase: z.ZodDefault<z.ZodBoolean>;
2105
+ enableBackups: z.ZodDefault<z.ZodBoolean>;
2106
+ backupInterval: z.ZodDefault<z.ZodNumber>;
2107
+ backupRetention: z.ZodDefault<z.ZodNumber>;
2108
+ enableBackupCleanup: z.ZodDefault<z.ZodBoolean>;
2109
+ enableMockData: z.ZodDefault<z.ZodBoolean>;
2110
+ enableWipeOtherDatabases: z.ZodDefault<z.ZodBoolean>;
2111
+ documentBucketId: z.ZodDefault<z.ZodString>;
2112
+ usersCollectionName: z.ZodDefault<z.ZodString>;
2113
+ databases: z.ZodDefault<z.ZodArray<z.ZodObject<{
2114
+ $id: z.ZodString;
2115
+ name: z.ZodString;
2116
+ }, "strip", z.ZodTypeAny, {
2117
+ $id: string;
2118
+ name: string;
2119
+ }, {
2120
+ $id: string;
2121
+ name: string;
2122
+ }>, "many">>;
2123
+ collections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
2124
+ $id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2125
+ $createdAt: z.ZodString;
2126
+ $updatedAt: z.ZodString;
2127
+ $permissions: z.ZodDefault<z.ZodArray<z.ZodObject<{
2128
+ permission: z.ZodString;
2129
+ target: z.ZodString;
2130
+ }, "strip", z.ZodTypeAny, {
2131
+ permission: string;
2132
+ target: string;
2133
+ }, {
2134
+ permission: string;
2135
+ target: string;
2136
+ }>, "many">>;
2137
+ databaseId: z.ZodOptional<z.ZodString>;
2138
+ name: z.ZodString;
2139
+ enabled: z.ZodDefault<z.ZodBoolean>;
2140
+ documentSecurity: z.ZodDefault<z.ZodBoolean>;
2141
+ attributes: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2142
+ key: z.ZodString;
2143
+ type: z.ZodDefault<z.ZodLiteral<"string">>;
2144
+ error: z.ZodDefault<z.ZodString>;
2145
+ required: z.ZodDefault<z.ZodBoolean>;
2146
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2147
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2148
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2149
+ encrypted: z.ZodOptional<z.ZodBoolean>;
2150
+ }, "strip", z.ZodTypeAny, {
2151
+ key: string;
2152
+ type: "string";
2153
+ error: string;
2154
+ required: boolean;
2155
+ array: boolean;
2156
+ size: number;
2157
+ xdefault?: string | null | undefined;
2158
+ encrypted?: boolean | undefined;
2159
+ }, {
2160
+ key: string;
2161
+ type?: "string" | undefined;
2162
+ error?: string | undefined;
2163
+ required?: boolean | undefined;
2164
+ array?: boolean | undefined;
2165
+ size?: number | undefined;
2166
+ xdefault?: string | null | undefined;
2167
+ encrypted?: boolean | undefined;
2168
+ }>, z.ZodObject<{
2169
+ key: z.ZodString;
2170
+ type: z.ZodDefault<z.ZodLiteral<"integer">>;
2171
+ error: z.ZodDefault<z.ZodString>;
2172
+ required: z.ZodDefault<z.ZodBoolean>;
2173
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2174
+ min: z.ZodOptional<z.ZodNumber>;
2175
+ max: z.ZodOptional<z.ZodNumber>;
2176
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2177
+ }, "strip", z.ZodTypeAny, {
2178
+ key: string;
2179
+ type: "integer";
2180
+ error: string;
2181
+ required: boolean;
2182
+ array: boolean;
2183
+ min?: number | undefined;
2184
+ max?: number | undefined;
2185
+ xdefault?: number | null | undefined;
2186
+ }, {
2187
+ key: string;
2188
+ type?: "integer" | undefined;
2189
+ error?: string | undefined;
2190
+ required?: boolean | undefined;
2191
+ array?: boolean | undefined;
2192
+ min?: number | undefined;
2193
+ max?: number | undefined;
2194
+ xdefault?: number | null | undefined;
2195
+ }>]>, z.ZodObject<{
2196
+ key: z.ZodString;
2197
+ type: z.ZodDefault<z.ZodLiteral<"float">>;
2198
+ error: z.ZodDefault<z.ZodString>;
2199
+ required: z.ZodDefault<z.ZodBoolean>;
2200
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2201
+ min: z.ZodOptional<z.ZodNumber>;
2202
+ max: z.ZodOptional<z.ZodNumber>;
2203
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2204
+ }, "strip", z.ZodTypeAny, {
2205
+ key: string;
2206
+ type: "float";
2207
+ error: string;
2208
+ required: boolean;
2209
+ array: boolean;
2210
+ min?: number | undefined;
2211
+ max?: number | undefined;
2212
+ xdefault?: number | null | undefined;
2213
+ }, {
2214
+ key: string;
2215
+ type?: "float" | undefined;
2216
+ error?: string | undefined;
2217
+ required?: boolean | undefined;
2218
+ array?: boolean | undefined;
2219
+ min?: number | undefined;
2220
+ max?: number | undefined;
2221
+ xdefault?: number | null | undefined;
2222
+ }>]>, z.ZodObject<{
2223
+ key: z.ZodString;
2224
+ type: z.ZodDefault<z.ZodLiteral<"boolean">>;
2225
+ error: z.ZodDefault<z.ZodString>;
2226
+ required: z.ZodDefault<z.ZodBoolean>;
2227
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2228
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2229
+ }, "strip", z.ZodTypeAny, {
2230
+ key: string;
2231
+ type: "boolean";
2232
+ error: string;
2233
+ required: boolean;
2234
+ array: boolean;
2235
+ xdefault?: boolean | null | undefined;
2236
+ }, {
2237
+ key: string;
2238
+ type?: "boolean" | undefined;
2239
+ error?: string | undefined;
2240
+ required?: boolean | undefined;
2241
+ array?: boolean | undefined;
2242
+ xdefault?: boolean | null | undefined;
2243
+ }>]>, z.ZodObject<{
2244
+ key: z.ZodString;
2245
+ type: z.ZodDefault<z.ZodLiteral<"datetime">>;
2246
+ error: z.ZodDefault<z.ZodString>;
2247
+ required: z.ZodDefault<z.ZodBoolean>;
2248
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2249
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2250
+ }, "strip", z.ZodTypeAny, {
2251
+ key: string;
2252
+ type: "datetime";
2253
+ error: string;
2254
+ required: boolean;
2255
+ array: boolean;
2256
+ xdefault?: string | null | undefined;
2257
+ }, {
2258
+ key: string;
2259
+ type?: "datetime" | undefined;
2260
+ error?: string | undefined;
2261
+ required?: boolean | undefined;
2262
+ array?: boolean | undefined;
2263
+ xdefault?: string | null | undefined;
2264
+ }>]>, z.ZodObject<{
2265
+ key: z.ZodString;
2266
+ type: z.ZodDefault<z.ZodLiteral<"email">>;
2267
+ error: z.ZodDefault<z.ZodString>;
2268
+ required: z.ZodDefault<z.ZodBoolean>;
2269
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2270
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2271
+ }, "strip", z.ZodTypeAny, {
2272
+ key: string;
2273
+ type: "email";
2274
+ error: string;
2275
+ required: boolean;
2276
+ array: boolean;
2277
+ xdefault?: string | null | undefined;
2278
+ }, {
2279
+ key: string;
2280
+ type?: "email" | undefined;
2281
+ error?: string | undefined;
2282
+ required?: boolean | undefined;
2283
+ array?: boolean | undefined;
2284
+ xdefault?: string | null | undefined;
2285
+ }>]>, z.ZodObject<{
2286
+ key: z.ZodString;
2287
+ type: z.ZodLiteral<"ip">;
2288
+ error: z.ZodDefault<z.ZodString>;
2289
+ required: z.ZodDefault<z.ZodBoolean>;
2290
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2291
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2292
+ }, "strip", z.ZodTypeAny, {
2293
+ key: string;
2294
+ type: "ip";
2295
+ error: string;
2296
+ required: boolean;
2297
+ array: boolean;
2298
+ xdefault?: string | null | undefined;
2299
+ }, {
2300
+ key: string;
2301
+ type: "ip";
2302
+ error?: string | undefined;
2303
+ required?: boolean | undefined;
2304
+ array?: boolean | undefined;
2305
+ xdefault?: string | null | undefined;
2306
+ }>]>, z.ZodObject<{
2307
+ key: z.ZodString;
2308
+ type: z.ZodDefault<z.ZodLiteral<"url">>;
2309
+ error: z.ZodDefault<z.ZodString>;
2310
+ required: z.ZodDefault<z.ZodBoolean>;
2311
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2312
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2313
+ }, "strip", z.ZodTypeAny, {
2314
+ key: string;
2315
+ type: "url";
2316
+ error: string;
2317
+ required: boolean;
2318
+ array: boolean;
2319
+ xdefault?: string | null | undefined;
2320
+ }, {
2321
+ key: string;
2322
+ type?: "url" | undefined;
2323
+ error?: string | undefined;
2324
+ required?: boolean | undefined;
2325
+ array?: boolean | undefined;
2326
+ xdefault?: string | null | undefined;
2327
+ }>]>, z.ZodObject<{
2328
+ key: z.ZodString;
2329
+ type: z.ZodDefault<z.ZodLiteral<"enum">>;
2330
+ error: z.ZodDefault<z.ZodString>;
2331
+ required: z.ZodDefault<z.ZodBoolean>;
2332
+ array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2333
+ elements: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2334
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2335
+ }, "strip", z.ZodTypeAny, {
2336
+ key: string;
2337
+ type: "enum";
2338
+ error: string;
2339
+ required: boolean;
2340
+ array: boolean;
2341
+ elements: string[];
2342
+ xdefault?: string | null | undefined;
2343
+ }, {
2344
+ key: string;
2345
+ type?: "enum" | undefined;
2346
+ error?: string | undefined;
2347
+ required?: boolean | undefined;
2348
+ array?: boolean | undefined;
2349
+ elements?: string[] | undefined;
2350
+ xdefault?: string | null | undefined;
2351
+ }>]>, z.ZodObject<{
2352
+ key: z.ZodString;
2353
+ type: z.ZodDefault<z.ZodLiteral<"relationship">>;
2354
+ error: z.ZodDefault<z.ZodString>;
2355
+ required: z.ZodDefault<z.ZodBoolean>;
2356
+ array: z.ZodOptional<z.ZodBoolean>;
2357
+ relatedCollection: z.ZodString;
2358
+ relationType: z.ZodEnum<["oneToMany", "manyToOne", "oneToOne", "manyToMany"]>;
2359
+ twoWay: z.ZodBoolean;
2360
+ twoWayKey: z.ZodString;
2361
+ onDelete: z.ZodDefault<z.ZodEnum<["setNull", "cascade", "restrict"]>>;
2362
+ side: z.ZodEnum<["parent", "child"]>;
2363
+ importMapping: z.ZodOptional<z.ZodObject<{
2364
+ originalIdField: z.ZodString;
2365
+ targetField: z.ZodOptional<z.ZodString>;
2366
+ }, "strip", z.ZodTypeAny, {
2367
+ originalIdField: string;
2368
+ targetField?: string | undefined;
2369
+ }, {
2370
+ originalIdField: string;
2371
+ targetField?: string | undefined;
2372
+ }>>;
2373
+ }, "strip", z.ZodTypeAny, {
2374
+ key: string;
2375
+ type: "relationship";
2376
+ error: string;
2377
+ required: boolean;
2378
+ relatedCollection: string;
2379
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
2380
+ twoWay: boolean;
2381
+ twoWayKey: string;
2382
+ onDelete: "setNull" | "cascade" | "restrict";
2383
+ side: "parent" | "child";
2384
+ array?: boolean | undefined;
2385
+ importMapping?: {
2386
+ originalIdField: string;
2387
+ targetField?: string | undefined;
2388
+ } | undefined;
2389
+ }, {
2390
+ key: string;
2391
+ relatedCollection: string;
2392
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
2393
+ twoWay: boolean;
2394
+ twoWayKey: string;
2395
+ side: "parent" | "child";
2396
+ type?: "relationship" | undefined;
2397
+ error?: string | undefined;
2398
+ required?: boolean | undefined;
2399
+ array?: boolean | undefined;
2400
+ onDelete?: "setNull" | "cascade" | "restrict" | undefined;
2401
+ importMapping?: {
2402
+ originalIdField: string;
2403
+ targetField?: string | undefined;
2404
+ } | undefined;
2405
+ }>]>, "many">>;
2406
+ indexes: z.ZodDefault<z.ZodArray<z.ZodObject<{
2407
+ key: z.ZodString;
2408
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["key", "unique", "fulltext"]>>>;
2409
+ status: z.ZodOptional<z.ZodString>;
2410
+ error: z.ZodOptional<z.ZodString>;
2411
+ attributes: z.ZodArray<z.ZodString, "many">;
2412
+ orders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2413
+ }, "strip", z.ZodTypeAny, {
2414
+ key: string;
2415
+ type: "key" | "unique" | "fulltext";
2416
+ attributes: string[];
2417
+ status?: string | undefined;
2418
+ error?: string | undefined;
2419
+ orders?: string[] | undefined;
2420
+ }, {
2421
+ key: string;
2422
+ attributes: string[];
2423
+ type?: "key" | "unique" | "fulltext" | undefined;
2424
+ status?: string | undefined;
2425
+ error?: string | undefined;
2426
+ orders?: string[] | undefined;
2427
+ }>, "many">>;
2428
+ importDefs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2429
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["create", "update"]>>>;
2430
+ filePath: z.ZodString;
2431
+ basePath: z.ZodOptional<z.ZodString>;
2432
+ updateMapping: z.ZodOptional<z.ZodObject<{
2433
+ originalIdField: z.ZodString;
2434
+ targetField: z.ZodString;
2435
+ }, "strip", z.ZodTypeAny, {
2436
+ originalIdField: string;
2437
+ targetField: string;
2438
+ }, {
2439
+ originalIdField: string;
2440
+ targetField: string;
2441
+ }>>;
2442
+ attributeMappings: z.ZodArray<z.ZodObject<{
2443
+ oldKey: z.ZodOptional<z.ZodString>;
2444
+ oldKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2445
+ targetKey: z.ZodString;
2446
+ fileData: z.ZodOptional<z.ZodObject<{
2447
+ name: z.ZodString;
2448
+ path: z.ZodString;
2449
+ }, "strip", z.ZodTypeAny, {
2450
+ path: string;
2451
+ name: string;
2452
+ }, {
2453
+ path: string;
2454
+ name: string;
2455
+ }>>;
2456
+ converters: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2457
+ validationActions: z.ZodDefault<z.ZodArray<z.ZodObject<{
2458
+ action: z.ZodString;
2459
+ params: z.ZodArray<z.ZodString, "many">;
2460
+ }, "strip", z.ZodTypeAny, {
2461
+ params: string[];
2462
+ action: string;
2463
+ }, {
2464
+ params: string[];
2465
+ action: string;
2466
+ }>, "many">>;
2467
+ postImportActions: z.ZodDefault<z.ZodArray<z.ZodObject<{
2468
+ action: z.ZodString;
2469
+ params: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
2470
+ }, "strip", z.ZodTypeAny, {
2471
+ params: (string | Record<string, any>)[];
2472
+ action: string;
2473
+ }, {
2474
+ params: (string | Record<string, any>)[];
2475
+ action: string;
2476
+ }>, "many">>;
2477
+ }, "strip", z.ZodTypeAny, {
2478
+ targetKey: string;
2479
+ converters: string[];
2480
+ validationActions: {
2481
+ params: string[];
2482
+ action: string;
2483
+ }[];
2484
+ postImportActions: {
2485
+ params: (string | Record<string, any>)[];
2486
+ action: string;
2487
+ }[];
2488
+ oldKey?: string | undefined;
2489
+ oldKeys?: string[] | undefined;
2490
+ fileData?: {
2491
+ path: string;
2492
+ name: string;
2493
+ } | undefined;
2494
+ }, {
2495
+ targetKey: string;
2496
+ oldKey?: string | undefined;
2497
+ oldKeys?: string[] | undefined;
2498
+ fileData?: {
2499
+ path: string;
2500
+ name: string;
2501
+ } | undefined;
2502
+ converters?: string[] | undefined;
2503
+ validationActions?: {
2504
+ params: string[];
2505
+ action: string;
2506
+ }[] | undefined;
2507
+ postImportActions?: {
2508
+ params: (string | Record<string, any>)[];
2509
+ action: string;
2510
+ }[] | undefined;
2511
+ }>, "many">;
2512
+ }, "strip", z.ZodTypeAny, {
2513
+ filePath: string;
2514
+ attributeMappings: {
2515
+ targetKey: string;
2516
+ converters: string[];
2517
+ validationActions: {
2518
+ params: string[];
2519
+ action: string;
2520
+ }[];
2521
+ postImportActions: {
2522
+ params: (string | Record<string, any>)[];
2523
+ action: string;
2524
+ }[];
2525
+ oldKey?: string | undefined;
2526
+ oldKeys?: string[] | undefined;
2527
+ fileData?: {
2528
+ path: string;
2529
+ name: string;
2530
+ } | undefined;
2531
+ }[];
2532
+ type?: "create" | "update" | undefined;
2533
+ basePath?: string | undefined;
2534
+ updateMapping?: {
2535
+ originalIdField: string;
2536
+ targetField: string;
2537
+ } | undefined;
2538
+ }, {
2539
+ filePath: string;
2540
+ attributeMappings: {
2541
+ targetKey: string;
2542
+ oldKey?: string | undefined;
2543
+ oldKeys?: string[] | undefined;
2544
+ fileData?: {
2545
+ path: string;
2546
+ name: string;
2547
+ } | undefined;
2548
+ converters?: string[] | undefined;
2549
+ validationActions?: {
2550
+ params: string[];
2551
+ action: string;
2552
+ }[] | undefined;
2553
+ postImportActions?: {
2554
+ params: (string | Record<string, any>)[];
2555
+ action: string;
2556
+ }[] | undefined;
2557
+ }[];
2558
+ type?: "create" | "update" | undefined;
2559
+ basePath?: string | undefined;
2560
+ updateMapping?: {
2561
+ originalIdField: string;
2562
+ targetField: string;
2563
+ } | undefined;
2564
+ }>, "many">>>;
2565
+ }, "$createdAt" | "$updatedAt">, "strip", z.ZodTypeAny, {
2566
+ attributes: ({
2567
+ key: string;
2568
+ type: "string";
2569
+ error: string;
2570
+ required: boolean;
2571
+ array: boolean;
2572
+ size: number;
2573
+ xdefault?: string | null | undefined;
2574
+ encrypted?: boolean | undefined;
2575
+ } | {
2576
+ key: string;
2577
+ type: "integer";
2578
+ error: string;
2579
+ required: boolean;
2580
+ array: boolean;
2581
+ min?: number | undefined;
2582
+ max?: number | undefined;
2583
+ xdefault?: number | null | undefined;
2584
+ } | {
2585
+ key: string;
2586
+ type: "float";
2587
+ error: string;
2588
+ required: boolean;
2589
+ array: boolean;
2590
+ min?: number | undefined;
2591
+ max?: number | undefined;
2592
+ xdefault?: number | null | undefined;
2593
+ } | {
2594
+ key: string;
2595
+ type: "boolean";
2596
+ error: string;
2597
+ required: boolean;
2598
+ array: boolean;
2599
+ xdefault?: boolean | null | undefined;
2600
+ } | {
2601
+ key: string;
2602
+ type: "datetime";
2603
+ error: string;
2604
+ required: boolean;
2605
+ array: boolean;
2606
+ xdefault?: string | null | undefined;
2607
+ } | {
2608
+ key: string;
2609
+ type: "email";
2610
+ error: string;
2611
+ required: boolean;
2612
+ array: boolean;
2613
+ xdefault?: string | null | undefined;
2614
+ } | {
2615
+ key: string;
2616
+ type: "ip";
2617
+ error: string;
2618
+ required: boolean;
2619
+ array: boolean;
2620
+ xdefault?: string | null | undefined;
2621
+ } | {
2622
+ key: string;
2623
+ type: "url";
2624
+ error: string;
2625
+ required: boolean;
2626
+ array: boolean;
2627
+ xdefault?: string | null | undefined;
2628
+ } | {
2629
+ key: string;
2630
+ type: "enum";
2631
+ error: string;
2632
+ required: boolean;
2633
+ array: boolean;
2634
+ elements: string[];
2635
+ xdefault?: string | null | undefined;
2636
+ } | {
2637
+ key: string;
2638
+ type: "relationship";
2639
+ error: string;
2640
+ required: boolean;
2641
+ relatedCollection: string;
2642
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
2643
+ twoWay: boolean;
2644
+ twoWayKey: string;
2645
+ onDelete: "setNull" | "cascade" | "restrict";
2646
+ side: "parent" | "child";
2647
+ array?: boolean | undefined;
2648
+ importMapping?: {
2649
+ originalIdField: string;
2650
+ targetField?: string | undefined;
2651
+ } | undefined;
2652
+ })[];
2653
+ $id: string;
2654
+ $permissions: {
2655
+ permission: string;
2656
+ target: string;
2657
+ }[];
2658
+ name: string;
2659
+ enabled: boolean;
2660
+ documentSecurity: boolean;
2661
+ indexes: {
2662
+ key: string;
2663
+ type: "key" | "unique" | "fulltext";
2664
+ attributes: string[];
2665
+ status?: string | undefined;
2666
+ error?: string | undefined;
2667
+ orders?: string[] | undefined;
2668
+ }[];
2669
+ importDefs: {
2670
+ filePath: string;
2671
+ attributeMappings: {
2672
+ targetKey: string;
2673
+ converters: string[];
2674
+ validationActions: {
2675
+ params: string[];
2676
+ action: string;
2677
+ }[];
2678
+ postImportActions: {
2679
+ params: (string | Record<string, any>)[];
2680
+ action: string;
2681
+ }[];
2682
+ oldKey?: string | undefined;
2683
+ oldKeys?: string[] | undefined;
2684
+ fileData?: {
2685
+ path: string;
2686
+ name: string;
2687
+ } | undefined;
2688
+ }[];
2689
+ type?: "create" | "update" | undefined;
2690
+ basePath?: string | undefined;
2691
+ updateMapping?: {
2692
+ originalIdField: string;
2693
+ targetField: string;
2694
+ } | undefined;
2695
+ }[];
2696
+ databaseId?: string | undefined;
2697
+ }, {
2698
+ name: string;
2699
+ attributes?: ({
2700
+ key: string;
2701
+ type?: "string" | undefined;
2702
+ error?: string | undefined;
2703
+ required?: boolean | undefined;
2704
+ array?: boolean | undefined;
2705
+ size?: number | undefined;
2706
+ xdefault?: string | null | undefined;
2707
+ encrypted?: boolean | undefined;
2708
+ } | {
2709
+ key: string;
2710
+ type?: "integer" | undefined;
2711
+ error?: string | undefined;
2712
+ required?: boolean | undefined;
2713
+ array?: boolean | undefined;
2714
+ min?: number | undefined;
2715
+ max?: number | undefined;
2716
+ xdefault?: number | null | undefined;
2717
+ } | {
2718
+ key: string;
2719
+ type?: "float" | undefined;
2720
+ error?: string | undefined;
2721
+ required?: boolean | undefined;
2722
+ array?: boolean | undefined;
2723
+ min?: number | undefined;
2724
+ max?: number | undefined;
2725
+ xdefault?: number | null | undefined;
2726
+ } | {
2727
+ key: string;
2728
+ type?: "boolean" | undefined;
2729
+ error?: string | undefined;
2730
+ required?: boolean | undefined;
2731
+ array?: boolean | undefined;
2732
+ xdefault?: boolean | null | undefined;
2733
+ } | {
2734
+ key: string;
2735
+ type?: "datetime" | undefined;
2736
+ error?: string | undefined;
2737
+ required?: boolean | undefined;
2738
+ array?: boolean | undefined;
2739
+ xdefault?: string | null | undefined;
2740
+ } | {
2741
+ key: string;
2742
+ type?: "email" | undefined;
2743
+ error?: string | undefined;
2744
+ required?: boolean | undefined;
2745
+ array?: boolean | undefined;
2746
+ xdefault?: string | null | undefined;
2747
+ } | {
2748
+ key: string;
2749
+ type: "ip";
2750
+ error?: string | undefined;
2751
+ required?: boolean | undefined;
2752
+ array?: boolean | undefined;
2753
+ xdefault?: string | null | undefined;
2754
+ } | {
2755
+ key: string;
2756
+ type?: "url" | undefined;
2757
+ error?: string | undefined;
2758
+ required?: boolean | undefined;
2759
+ array?: boolean | undefined;
2760
+ xdefault?: string | null | undefined;
2761
+ } | {
2762
+ key: string;
2763
+ type?: "enum" | undefined;
2764
+ error?: string | undefined;
2765
+ required?: boolean | undefined;
2766
+ array?: boolean | undefined;
2767
+ elements?: string[] | undefined;
2768
+ xdefault?: string | null | undefined;
2769
+ } | {
2770
+ key: string;
2771
+ relatedCollection: string;
2772
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
2773
+ twoWay: boolean;
2774
+ twoWayKey: string;
2775
+ side: "parent" | "child";
2776
+ type?: "relationship" | undefined;
2777
+ error?: string | undefined;
2778
+ required?: boolean | undefined;
2779
+ array?: boolean | undefined;
2780
+ onDelete?: "setNull" | "cascade" | "restrict" | undefined;
2781
+ importMapping?: {
2782
+ originalIdField: string;
2783
+ targetField?: string | undefined;
2784
+ } | undefined;
2785
+ })[] | undefined;
2786
+ $id?: string | undefined;
2787
+ $permissions?: {
2788
+ permission: string;
2789
+ target: string;
2790
+ }[] | undefined;
2791
+ databaseId?: string | undefined;
2792
+ enabled?: boolean | undefined;
2793
+ documentSecurity?: boolean | undefined;
2794
+ indexes?: {
2795
+ key: string;
2796
+ attributes: string[];
2797
+ type?: "key" | "unique" | "fulltext" | undefined;
2798
+ status?: string | undefined;
2799
+ error?: string | undefined;
2800
+ orders?: string[] | undefined;
2801
+ }[] | undefined;
2802
+ importDefs?: {
2803
+ filePath: string;
2804
+ attributeMappings: {
2805
+ targetKey: string;
2806
+ oldKey?: string | undefined;
2807
+ oldKeys?: string[] | undefined;
2808
+ fileData?: {
2809
+ path: string;
2810
+ name: string;
2811
+ } | undefined;
2812
+ converters?: string[] | undefined;
2813
+ validationActions?: {
2814
+ params: string[];
2815
+ action: string;
2816
+ }[] | undefined;
2817
+ postImportActions?: {
2818
+ params: (string | Record<string, any>)[];
2819
+ action: string;
2820
+ }[] | undefined;
2821
+ }[];
2822
+ type?: "create" | "update" | undefined;
2823
+ basePath?: string | undefined;
2824
+ updateMapping?: {
2825
+ originalIdField: string;
2826
+ targetField: string;
2827
+ } | undefined;
2828
+ }[] | undefined;
2829
+ }>, "many">>>;
2830
+ }, "strip", z.ZodTypeAny, {
2831
+ appwriteEndpoint: string;
2832
+ appwriteProject: string;
2833
+ appwriteKey: string;
2834
+ enableDevDatabase: boolean;
2835
+ enableBackups: boolean;
2836
+ backupInterval: number;
2837
+ backupRetention: number;
2838
+ enableBackupCleanup: boolean;
2839
+ enableMockData: boolean;
2840
+ enableWipeOtherDatabases: boolean;
2841
+ documentBucketId: string;
2842
+ usersCollectionName: string;
2843
+ databases: {
2844
+ $id: string;
2845
+ name: string;
2846
+ }[];
2847
+ collections: {
2848
+ attributes: ({
2849
+ key: string;
2850
+ type: "string";
2851
+ error: string;
2852
+ required: boolean;
2853
+ array: boolean;
2854
+ size: number;
2855
+ xdefault?: string | null | undefined;
2856
+ encrypted?: boolean | undefined;
2857
+ } | {
2858
+ key: string;
2859
+ type: "integer";
2860
+ error: string;
2861
+ required: boolean;
2862
+ array: boolean;
2863
+ min?: number | undefined;
2864
+ max?: number | undefined;
2865
+ xdefault?: number | null | undefined;
2866
+ } | {
2867
+ key: string;
2868
+ type: "float";
2869
+ error: string;
2870
+ required: boolean;
2871
+ array: boolean;
2872
+ min?: number | undefined;
2873
+ max?: number | undefined;
2874
+ xdefault?: number | null | undefined;
2875
+ } | {
2876
+ key: string;
2877
+ type: "boolean";
2878
+ error: string;
2879
+ required: boolean;
2880
+ array: boolean;
2881
+ xdefault?: boolean | null | undefined;
2882
+ } | {
2883
+ key: string;
2884
+ type: "datetime";
2885
+ error: string;
2886
+ required: boolean;
2887
+ array: boolean;
2888
+ xdefault?: string | null | undefined;
2889
+ } | {
2890
+ key: string;
2891
+ type: "email";
2892
+ error: string;
2893
+ required: boolean;
2894
+ array: boolean;
2895
+ xdefault?: string | null | undefined;
2896
+ } | {
2897
+ key: string;
2898
+ type: "ip";
2899
+ error: string;
2900
+ required: boolean;
2901
+ array: boolean;
2902
+ xdefault?: string | null | undefined;
2903
+ } | {
2904
+ key: string;
2905
+ type: "url";
2906
+ error: string;
2907
+ required: boolean;
2908
+ array: boolean;
2909
+ xdefault?: string | null | undefined;
2910
+ } | {
2911
+ key: string;
2912
+ type: "enum";
2913
+ error: string;
2914
+ required: boolean;
2915
+ array: boolean;
2916
+ elements: string[];
2917
+ xdefault?: string | null | undefined;
2918
+ } | {
2919
+ key: string;
2920
+ type: "relationship";
2921
+ error: string;
2922
+ required: boolean;
2923
+ relatedCollection: string;
2924
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
2925
+ twoWay: boolean;
2926
+ twoWayKey: string;
2927
+ onDelete: "setNull" | "cascade" | "restrict";
2928
+ side: "parent" | "child";
2929
+ array?: boolean | undefined;
2930
+ importMapping?: {
2931
+ originalIdField: string;
2932
+ targetField?: string | undefined;
2933
+ } | undefined;
2934
+ })[];
2935
+ $id: string;
2936
+ $permissions: {
2937
+ permission: string;
2938
+ target: string;
2939
+ }[];
2940
+ name: string;
2941
+ enabled: boolean;
2942
+ documentSecurity: boolean;
2943
+ indexes: {
2944
+ key: string;
2945
+ type: "key" | "unique" | "fulltext";
2946
+ attributes: string[];
2947
+ status?: string | undefined;
2948
+ error?: string | undefined;
2949
+ orders?: string[] | undefined;
2950
+ }[];
2951
+ importDefs: {
2952
+ filePath: string;
2953
+ attributeMappings: {
2954
+ targetKey: string;
2955
+ converters: string[];
2956
+ validationActions: {
2957
+ params: string[];
2958
+ action: string;
2959
+ }[];
2960
+ postImportActions: {
2961
+ params: (string | Record<string, any>)[];
2962
+ action: string;
2963
+ }[];
2964
+ oldKey?: string | undefined;
2965
+ oldKeys?: string[] | undefined;
2966
+ fileData?: {
2967
+ path: string;
2968
+ name: string;
2969
+ } | undefined;
2970
+ }[];
2971
+ type?: "create" | "update" | undefined;
2972
+ basePath?: string | undefined;
2973
+ updateMapping?: {
2974
+ originalIdField: string;
2975
+ targetField: string;
2976
+ } | undefined;
2977
+ }[];
2978
+ databaseId?: string | undefined;
2979
+ }[];
2980
+ appwriteClient?: any;
2981
+ }, {
2982
+ appwriteProject: string;
2983
+ appwriteKey: string;
2984
+ appwriteEndpoint?: string | undefined;
2985
+ appwriteClient?: any;
2986
+ enableDevDatabase?: boolean | undefined;
2987
+ enableBackups?: boolean | undefined;
2988
+ backupInterval?: number | undefined;
2989
+ backupRetention?: number | undefined;
2990
+ enableBackupCleanup?: boolean | undefined;
2991
+ enableMockData?: boolean | undefined;
2992
+ enableWipeOtherDatabases?: boolean | undefined;
2993
+ documentBucketId?: string | undefined;
2994
+ usersCollectionName?: string | undefined;
2995
+ databases?: {
2996
+ $id: string;
2997
+ name: string;
2998
+ }[] | undefined;
2999
+ collections?: {
3000
+ name: string;
3001
+ attributes?: ({
3002
+ key: string;
3003
+ type?: "string" | undefined;
3004
+ error?: string | undefined;
3005
+ required?: boolean | undefined;
3006
+ array?: boolean | undefined;
3007
+ size?: number | undefined;
3008
+ xdefault?: string | null | undefined;
3009
+ encrypted?: boolean | undefined;
3010
+ } | {
3011
+ key: string;
3012
+ type?: "integer" | undefined;
3013
+ error?: string | undefined;
3014
+ required?: boolean | undefined;
3015
+ array?: boolean | undefined;
3016
+ min?: number | undefined;
3017
+ max?: number | undefined;
3018
+ xdefault?: number | null | undefined;
3019
+ } | {
3020
+ key: string;
3021
+ type?: "float" | undefined;
3022
+ error?: string | undefined;
3023
+ required?: boolean | undefined;
3024
+ array?: boolean | undefined;
3025
+ min?: number | undefined;
3026
+ max?: number | undefined;
3027
+ xdefault?: number | null | undefined;
3028
+ } | {
3029
+ key: string;
3030
+ type?: "boolean" | undefined;
3031
+ error?: string | undefined;
3032
+ required?: boolean | undefined;
3033
+ array?: boolean | undefined;
3034
+ xdefault?: boolean | null | undefined;
3035
+ } | {
3036
+ key: string;
3037
+ type?: "datetime" | undefined;
3038
+ error?: string | undefined;
3039
+ required?: boolean | undefined;
3040
+ array?: boolean | undefined;
3041
+ xdefault?: string | null | undefined;
3042
+ } | {
3043
+ key: string;
3044
+ type?: "email" | undefined;
3045
+ error?: string | undefined;
3046
+ required?: boolean | undefined;
3047
+ array?: boolean | undefined;
3048
+ xdefault?: string | null | undefined;
3049
+ } | {
3050
+ key: string;
3051
+ type: "ip";
3052
+ error?: string | undefined;
3053
+ required?: boolean | undefined;
3054
+ array?: boolean | undefined;
3055
+ xdefault?: string | null | undefined;
3056
+ } | {
3057
+ key: string;
3058
+ type?: "url" | undefined;
3059
+ error?: string | undefined;
3060
+ required?: boolean | undefined;
3061
+ array?: boolean | undefined;
3062
+ xdefault?: string | null | undefined;
3063
+ } | {
3064
+ key: string;
3065
+ type?: "enum" | undefined;
3066
+ error?: string | undefined;
3067
+ required?: boolean | undefined;
3068
+ array?: boolean | undefined;
3069
+ elements?: string[] | undefined;
3070
+ xdefault?: string | null | undefined;
3071
+ } | {
3072
+ key: string;
3073
+ relatedCollection: string;
3074
+ relationType: "oneToMany" | "manyToOne" | "oneToOne" | "manyToMany";
3075
+ twoWay: boolean;
3076
+ twoWayKey: string;
3077
+ side: "parent" | "child";
3078
+ type?: "relationship" | undefined;
3079
+ error?: string | undefined;
3080
+ required?: boolean | undefined;
3081
+ array?: boolean | undefined;
3082
+ onDelete?: "setNull" | "cascade" | "restrict" | undefined;
3083
+ importMapping?: {
3084
+ originalIdField: string;
3085
+ targetField?: string | undefined;
3086
+ } | undefined;
3087
+ })[] | undefined;
3088
+ $id?: string | undefined;
3089
+ $permissions?: {
3090
+ permission: string;
3091
+ target: string;
3092
+ }[] | undefined;
3093
+ databaseId?: string | undefined;
3094
+ enabled?: boolean | undefined;
3095
+ documentSecurity?: boolean | undefined;
3096
+ indexes?: {
3097
+ key: string;
3098
+ attributes: string[];
3099
+ type?: "key" | "unique" | "fulltext" | undefined;
3100
+ status?: string | undefined;
3101
+ error?: string | undefined;
3102
+ orders?: string[] | undefined;
3103
+ }[] | undefined;
3104
+ importDefs?: {
3105
+ filePath: string;
3106
+ attributeMappings: {
3107
+ targetKey: string;
3108
+ oldKey?: string | undefined;
3109
+ oldKeys?: string[] | undefined;
3110
+ fileData?: {
3111
+ path: string;
3112
+ name: string;
3113
+ } | undefined;
3114
+ converters?: string[] | undefined;
3115
+ validationActions?: {
3116
+ params: string[];
3117
+ action: string;
3118
+ }[] | undefined;
3119
+ postImportActions?: {
3120
+ params: (string | Record<string, any>)[];
3121
+ action: string;
3122
+ }[] | undefined;
3123
+ }[];
3124
+ type?: "create" | "update" | undefined;
3125
+ basePath?: string | undefined;
3126
+ updateMapping?: {
3127
+ originalIdField: string;
3128
+ targetField: string;
3129
+ } | undefined;
3130
+ }[] | undefined;
3131
+ }[] | undefined;
3132
+ }>;
3133
+ export type AppwriteConfig = z.infer<typeof AppwriteConfigSchema>;
3134
+ export type ConfigCollections = AppwriteConfig["collections"];
3135
+ export type ConfigCollection = ConfigCollections[number];
3136
+ export type ConfigDatabases = AppwriteConfig["databases"];
3137
+ export type ConfigDatabase = ConfigDatabases[number];
3138
+ export type ImportDefs = ConfigCollections[number]["importDefs"];
3139
+ export type ImportDef = ImportDefs[number];
3140
+ export type AttributeMappings = ImportDefs[number]["attributeMappings"];
3141
+ export type AttributeMapping = AttributeMappings[number];
3142
+ export {};