@junobuild/config 0.2.3 → 0.3.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.
@@ -1,32 +1,41 @@
1
1
  import { type PrincipalText } from '@dfinity/zod-schemas';
2
- import * as z from 'zod/v4';
2
+ import * as z from 'zod';
3
3
  import { type Rule } from '../types/rules';
4
4
  /**
5
5
  * @see SatelliteDevDataStoreCollection
6
6
  */
7
- export declare const SatelliteDevDataStoreCollectionSchema: z.ZodObject<{
7
+ export declare const SatelliteDevDataStoreCollectionSchema: z.ZodObject<Omit<{
8
8
  collection: z.ZodString;
9
- read: z.ZodEnum<{
10
- controllers: "controllers";
11
- public: "public";
12
- private: "private";
13
- managed: "managed";
14
- }>;
15
- write: z.ZodEnum<{
16
- controllers: "controllers";
17
- public: "public";
18
- private: "private";
19
- managed: "managed";
20
- }>;
21
- memory: z.ZodEnum<{
22
- heap: "heap";
23
- stable: "stable";
24
- }>;
9
+ read: z.ZodEnum<["public", "private", "managed", "controllers"]>;
10
+ write: z.ZodEnum<["public", "private", "managed", "controllers"]>;
11
+ memory: z.ZodEnum<["heap", "stable"]>;
12
+ createdAt: z.ZodOptional<z.ZodBigInt>;
13
+ updatedAt: z.ZodOptional<z.ZodBigInt>;
14
+ version: z.ZodOptional<z.ZodBigInt>;
15
+ maxSize: z.ZodOptional<z.ZodNumber>;
25
16
  maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
26
17
  maxCapacity: z.ZodOptional<z.ZodNumber>;
27
18
  mutablePermissions: z.ZodBoolean;
28
19
  maxTokens: z.ZodOptional<z.ZodNumber>;
29
- }, z.core.$strict>;
20
+ }, "version" | "createdAt" | "updatedAt" | "maxSize">, "strict", z.ZodTypeAny, {
21
+ collection: string;
22
+ read: "controllers" | "public" | "private" | "managed";
23
+ write: "controllers" | "public" | "private" | "managed";
24
+ memory: "heap" | "stable";
25
+ mutablePermissions: boolean;
26
+ maxChangesPerUser?: number | undefined;
27
+ maxCapacity?: number | undefined;
28
+ maxTokens?: number | undefined;
29
+ }, {
30
+ collection: string;
31
+ read: "controllers" | "public" | "private" | "managed";
32
+ write: "controllers" | "public" | "private" | "managed";
33
+ memory: "heap" | "stable";
34
+ mutablePermissions: boolean;
35
+ maxChangesPerUser?: number | undefined;
36
+ maxCapacity?: number | undefined;
37
+ maxTokens?: number | undefined;
38
+ }>;
30
39
  /**
31
40
  * Represents a database collection configuration for a satellite in a development environment.
32
41
  * @typedef {Omit<Rule, 'createdAt' | 'updatedAt' | 'maxSize' | 'version'>} SatelliteDevDataStoreCollection
@@ -35,29 +44,38 @@ export type SatelliteDevDataStoreCollection = Omit<Rule, 'createdAt' | 'updatedA
35
44
  /**
36
45
  * @see SatelliteDevStorageCollection
37
46
  */
38
- export declare const SatelliteDevStorageCollectionSchema: z.ZodObject<{
47
+ export declare const SatelliteDevStorageCollectionSchema: z.ZodObject<Omit<{
39
48
  collection: z.ZodString;
40
- read: z.ZodEnum<{
41
- controllers: "controllers";
42
- public: "public";
43
- private: "private";
44
- managed: "managed";
45
- }>;
46
- write: z.ZodEnum<{
47
- controllers: "controllers";
48
- public: "public";
49
- private: "private";
50
- managed: "managed";
51
- }>;
52
- memory: z.ZodEnum<{
53
- heap: "heap";
54
- stable: "stable";
55
- }>;
49
+ read: z.ZodEnum<["public", "private", "managed", "controllers"]>;
50
+ write: z.ZodEnum<["public", "private", "managed", "controllers"]>;
51
+ memory: z.ZodEnum<["heap", "stable"]>;
52
+ createdAt: z.ZodOptional<z.ZodBigInt>;
53
+ updatedAt: z.ZodOptional<z.ZodBigInt>;
54
+ version: z.ZodOptional<z.ZodBigInt>;
56
55
  maxSize: z.ZodOptional<z.ZodNumber>;
57
56
  maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
57
+ maxCapacity: z.ZodOptional<z.ZodNumber>;
58
58
  mutablePermissions: z.ZodBoolean;
59
59
  maxTokens: z.ZodOptional<z.ZodNumber>;
60
- }, z.core.$strict>;
60
+ }, "version" | "createdAt" | "updatedAt" | "maxCapacity">, "strict", z.ZodTypeAny, {
61
+ collection: string;
62
+ read: "controllers" | "public" | "private" | "managed";
63
+ write: "controllers" | "public" | "private" | "managed";
64
+ memory: "heap" | "stable";
65
+ mutablePermissions: boolean;
66
+ maxSize?: number | undefined;
67
+ maxChangesPerUser?: number | undefined;
68
+ maxTokens?: number | undefined;
69
+ }, {
70
+ collection: string;
71
+ read: "controllers" | "public" | "private" | "managed";
72
+ write: "controllers" | "public" | "private" | "managed";
73
+ memory: "heap" | "stable";
74
+ mutablePermissions: boolean;
75
+ maxSize?: number | undefined;
76
+ maxChangesPerUser?: number | undefined;
77
+ maxTokens?: number | undefined;
78
+ }>;
61
79
  /**
62
80
  * Represents a Storage collection configuration for a satellite in a development environment.
63
81
  * @typedef {Omit<Rule, 'createdAt' | 'updatedAt' | 'maxCapacity' | 'version'>} SatelliteDevStorageCollection
@@ -67,53 +85,113 @@ export type SatelliteDevStorageCollection = Omit<Rule, 'createdAt' | 'updatedAt'
67
85
  * @see SatelliteDevCollections
68
86
  */
69
87
  export declare const SatelliteDevCollectionsSchema: z.ZodObject<{
70
- datastore: z.ZodOptional<z.ZodArray<z.ZodObject<{
88
+ datastore: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
71
89
  collection: z.ZodString;
72
- read: z.ZodEnum<{
73
- controllers: "controllers";
74
- public: "public";
75
- private: "private";
76
- managed: "managed";
77
- }>;
78
- write: z.ZodEnum<{
79
- controllers: "controllers";
80
- public: "public";
81
- private: "private";
82
- managed: "managed";
83
- }>;
84
- memory: z.ZodEnum<{
85
- heap: "heap";
86
- stable: "stable";
87
- }>;
90
+ read: z.ZodEnum<["public", "private", "managed", "controllers"]>;
91
+ write: z.ZodEnum<["public", "private", "managed", "controllers"]>;
92
+ memory: z.ZodEnum<["heap", "stable"]>;
93
+ createdAt: z.ZodOptional<z.ZodBigInt>;
94
+ updatedAt: z.ZodOptional<z.ZodBigInt>;
95
+ version: z.ZodOptional<z.ZodBigInt>;
96
+ maxSize: z.ZodOptional<z.ZodNumber>;
88
97
  maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
89
98
  maxCapacity: z.ZodOptional<z.ZodNumber>;
90
99
  mutablePermissions: z.ZodBoolean;
91
100
  maxTokens: z.ZodOptional<z.ZodNumber>;
92
- }, z.core.$strict>>>;
93
- storage: z.ZodOptional<z.ZodArray<z.ZodObject<{
101
+ }, "version" | "createdAt" | "updatedAt" | "maxSize">, "strict", z.ZodTypeAny, {
102
+ collection: string;
103
+ read: "controllers" | "public" | "private" | "managed";
104
+ write: "controllers" | "public" | "private" | "managed";
105
+ memory: "heap" | "stable";
106
+ mutablePermissions: boolean;
107
+ maxChangesPerUser?: number | undefined;
108
+ maxCapacity?: number | undefined;
109
+ maxTokens?: number | undefined;
110
+ }, {
111
+ collection: string;
112
+ read: "controllers" | "public" | "private" | "managed";
113
+ write: "controllers" | "public" | "private" | "managed";
114
+ memory: "heap" | "stable";
115
+ mutablePermissions: boolean;
116
+ maxChangesPerUser?: number | undefined;
117
+ maxCapacity?: number | undefined;
118
+ maxTokens?: number | undefined;
119
+ }>, "many">>;
120
+ storage: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
94
121
  collection: z.ZodString;
95
- read: z.ZodEnum<{
96
- controllers: "controllers";
97
- public: "public";
98
- private: "private";
99
- managed: "managed";
100
- }>;
101
- write: z.ZodEnum<{
102
- controllers: "controllers";
103
- public: "public";
104
- private: "private";
105
- managed: "managed";
106
- }>;
107
- memory: z.ZodEnum<{
108
- heap: "heap";
109
- stable: "stable";
110
- }>;
122
+ read: z.ZodEnum<["public", "private", "managed", "controllers"]>;
123
+ write: z.ZodEnum<["public", "private", "managed", "controllers"]>;
124
+ memory: z.ZodEnum<["heap", "stable"]>;
125
+ createdAt: z.ZodOptional<z.ZodBigInt>;
126
+ updatedAt: z.ZodOptional<z.ZodBigInt>;
127
+ version: z.ZodOptional<z.ZodBigInt>;
111
128
  maxSize: z.ZodOptional<z.ZodNumber>;
112
129
  maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
130
+ maxCapacity: z.ZodOptional<z.ZodNumber>;
113
131
  mutablePermissions: z.ZodBoolean;
114
132
  maxTokens: z.ZodOptional<z.ZodNumber>;
115
- }, z.core.$strict>>>;
116
- }, z.core.$strict>;
133
+ }, "version" | "createdAt" | "updatedAt" | "maxCapacity">, "strict", z.ZodTypeAny, {
134
+ collection: string;
135
+ read: "controllers" | "public" | "private" | "managed";
136
+ write: "controllers" | "public" | "private" | "managed";
137
+ memory: "heap" | "stable";
138
+ mutablePermissions: boolean;
139
+ maxSize?: number | undefined;
140
+ maxChangesPerUser?: number | undefined;
141
+ maxTokens?: number | undefined;
142
+ }, {
143
+ collection: string;
144
+ read: "controllers" | "public" | "private" | "managed";
145
+ write: "controllers" | "public" | "private" | "managed";
146
+ memory: "heap" | "stable";
147
+ mutablePermissions: boolean;
148
+ maxSize?: number | undefined;
149
+ maxChangesPerUser?: number | undefined;
150
+ maxTokens?: number | undefined;
151
+ }>, "many">>;
152
+ }, "strict", z.ZodTypeAny, {
153
+ storage?: {
154
+ collection: string;
155
+ read: "controllers" | "public" | "private" | "managed";
156
+ write: "controllers" | "public" | "private" | "managed";
157
+ memory: "heap" | "stable";
158
+ mutablePermissions: boolean;
159
+ maxSize?: number | undefined;
160
+ maxChangesPerUser?: number | undefined;
161
+ maxTokens?: number | undefined;
162
+ }[] | undefined;
163
+ datastore?: {
164
+ collection: string;
165
+ read: "controllers" | "public" | "private" | "managed";
166
+ write: "controllers" | "public" | "private" | "managed";
167
+ memory: "heap" | "stable";
168
+ mutablePermissions: boolean;
169
+ maxChangesPerUser?: number | undefined;
170
+ maxCapacity?: number | undefined;
171
+ maxTokens?: number | undefined;
172
+ }[] | undefined;
173
+ }, {
174
+ storage?: {
175
+ collection: string;
176
+ read: "controllers" | "public" | "private" | "managed";
177
+ write: "controllers" | "public" | "private" | "managed";
178
+ memory: "heap" | "stable";
179
+ mutablePermissions: boolean;
180
+ maxSize?: number | undefined;
181
+ maxChangesPerUser?: number | undefined;
182
+ maxTokens?: number | undefined;
183
+ }[] | undefined;
184
+ datastore?: {
185
+ collection: string;
186
+ read: "controllers" | "public" | "private" | "managed";
187
+ write: "controllers" | "public" | "private" | "managed";
188
+ memory: "heap" | "stable";
189
+ mutablePermissions: boolean;
190
+ maxChangesPerUser?: number | undefined;
191
+ maxCapacity?: number | undefined;
192
+ maxTokens?: number | undefined;
193
+ }[] | undefined;
194
+ }>;
117
195
  /**
118
196
  * Represents the collections configuration for a satellite in a development environment.
119
197
  * @interface SatelliteDevCollections
@@ -136,13 +214,15 @@ export interface SatelliteDevCollections {
136
214
  * @see SatelliteDevController
137
215
  */
138
216
  export declare const SatelliteDevControllerSchema: z.ZodObject<{
139
- id: z.ZodString;
140
- scope: z.ZodEnum<{
141
- write: "write";
142
- admin: "admin";
143
- submit: "submit";
144
- }>;
145
- }, z.core.$strict>;
217
+ id: z.ZodEffects<z.ZodString, string, string>;
218
+ scope: z.ZodEnum<["write", "admin", "submit"]>;
219
+ }, "strict", z.ZodTypeAny, {
220
+ id: string;
221
+ scope: "write" | "admin" | "submit";
222
+ }, {
223
+ id: string;
224
+ scope: "write" | "admin" | "submit";
225
+ }>;
146
226
  /**
147
227
  * Represents a controller configuration for a satellite in a development environment.
148
228
  * @interface SatelliteDevController
@@ -164,62 +244,178 @@ export interface SatelliteDevController {
164
244
  */
165
245
  export declare const SatelliteDevConfigSchema: z.ZodObject<{
166
246
  collections: z.ZodObject<{
167
- datastore: z.ZodOptional<z.ZodArray<z.ZodObject<{
247
+ datastore: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
168
248
  collection: z.ZodString;
169
- read: z.ZodEnum<{
170
- controllers: "controllers";
171
- public: "public";
172
- private: "private";
173
- managed: "managed";
174
- }>;
175
- write: z.ZodEnum<{
176
- controllers: "controllers";
177
- public: "public";
178
- private: "private";
179
- managed: "managed";
180
- }>;
181
- memory: z.ZodEnum<{
182
- heap: "heap";
183
- stable: "stable";
184
- }>;
249
+ read: z.ZodEnum<["public", "private", "managed", "controllers"]>;
250
+ write: z.ZodEnum<["public", "private", "managed", "controllers"]>;
251
+ memory: z.ZodEnum<["heap", "stable"]>;
252
+ createdAt: z.ZodOptional<z.ZodBigInt>;
253
+ updatedAt: z.ZodOptional<z.ZodBigInt>;
254
+ version: z.ZodOptional<z.ZodBigInt>;
255
+ maxSize: z.ZodOptional<z.ZodNumber>;
185
256
  maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
186
257
  maxCapacity: z.ZodOptional<z.ZodNumber>;
187
258
  mutablePermissions: z.ZodBoolean;
188
259
  maxTokens: z.ZodOptional<z.ZodNumber>;
189
- }, z.core.$strict>>>;
190
- storage: z.ZodOptional<z.ZodArray<z.ZodObject<{
260
+ }, "version" | "createdAt" | "updatedAt" | "maxSize">, "strict", z.ZodTypeAny, {
261
+ collection: string;
262
+ read: "controllers" | "public" | "private" | "managed";
263
+ write: "controllers" | "public" | "private" | "managed";
264
+ memory: "heap" | "stable";
265
+ mutablePermissions: boolean;
266
+ maxChangesPerUser?: number | undefined;
267
+ maxCapacity?: number | undefined;
268
+ maxTokens?: number | undefined;
269
+ }, {
270
+ collection: string;
271
+ read: "controllers" | "public" | "private" | "managed";
272
+ write: "controllers" | "public" | "private" | "managed";
273
+ memory: "heap" | "stable";
274
+ mutablePermissions: boolean;
275
+ maxChangesPerUser?: number | undefined;
276
+ maxCapacity?: number | undefined;
277
+ maxTokens?: number | undefined;
278
+ }>, "many">>;
279
+ storage: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
191
280
  collection: z.ZodString;
192
- read: z.ZodEnum<{
193
- controllers: "controllers";
194
- public: "public";
195
- private: "private";
196
- managed: "managed";
197
- }>;
198
- write: z.ZodEnum<{
199
- controllers: "controllers";
200
- public: "public";
201
- private: "private";
202
- managed: "managed";
203
- }>;
204
- memory: z.ZodEnum<{
205
- heap: "heap";
206
- stable: "stable";
207
- }>;
281
+ read: z.ZodEnum<["public", "private", "managed", "controllers"]>;
282
+ write: z.ZodEnum<["public", "private", "managed", "controllers"]>;
283
+ memory: z.ZodEnum<["heap", "stable"]>;
284
+ createdAt: z.ZodOptional<z.ZodBigInt>;
285
+ updatedAt: z.ZodOptional<z.ZodBigInt>;
286
+ version: z.ZodOptional<z.ZodBigInt>;
208
287
  maxSize: z.ZodOptional<z.ZodNumber>;
209
288
  maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
289
+ maxCapacity: z.ZodOptional<z.ZodNumber>;
210
290
  mutablePermissions: z.ZodBoolean;
211
291
  maxTokens: z.ZodOptional<z.ZodNumber>;
212
- }, z.core.$strict>>>;
213
- }, z.core.$strict>;
292
+ }, "version" | "createdAt" | "updatedAt" | "maxCapacity">, "strict", z.ZodTypeAny, {
293
+ collection: string;
294
+ read: "controllers" | "public" | "private" | "managed";
295
+ write: "controllers" | "public" | "private" | "managed";
296
+ memory: "heap" | "stable";
297
+ mutablePermissions: boolean;
298
+ maxSize?: number | undefined;
299
+ maxChangesPerUser?: number | undefined;
300
+ maxTokens?: number | undefined;
301
+ }, {
302
+ collection: string;
303
+ read: "controllers" | "public" | "private" | "managed";
304
+ write: "controllers" | "public" | "private" | "managed";
305
+ memory: "heap" | "stable";
306
+ mutablePermissions: boolean;
307
+ maxSize?: number | undefined;
308
+ maxChangesPerUser?: number | undefined;
309
+ maxTokens?: number | undefined;
310
+ }>, "many">>;
311
+ }, "strict", z.ZodTypeAny, {
312
+ storage?: {
313
+ collection: string;
314
+ read: "controllers" | "public" | "private" | "managed";
315
+ write: "controllers" | "public" | "private" | "managed";
316
+ memory: "heap" | "stable";
317
+ mutablePermissions: boolean;
318
+ maxSize?: number | undefined;
319
+ maxChangesPerUser?: number | undefined;
320
+ maxTokens?: number | undefined;
321
+ }[] | undefined;
322
+ datastore?: {
323
+ collection: string;
324
+ read: "controllers" | "public" | "private" | "managed";
325
+ write: "controllers" | "public" | "private" | "managed";
326
+ memory: "heap" | "stable";
327
+ mutablePermissions: boolean;
328
+ maxChangesPerUser?: number | undefined;
329
+ maxCapacity?: number | undefined;
330
+ maxTokens?: number | undefined;
331
+ }[] | undefined;
332
+ }, {
333
+ storage?: {
334
+ collection: string;
335
+ read: "controllers" | "public" | "private" | "managed";
336
+ write: "controllers" | "public" | "private" | "managed";
337
+ memory: "heap" | "stable";
338
+ mutablePermissions: boolean;
339
+ maxSize?: number | undefined;
340
+ maxChangesPerUser?: number | undefined;
341
+ maxTokens?: number | undefined;
342
+ }[] | undefined;
343
+ datastore?: {
344
+ collection: string;
345
+ read: "controllers" | "public" | "private" | "managed";
346
+ write: "controllers" | "public" | "private" | "managed";
347
+ memory: "heap" | "stable";
348
+ mutablePermissions: boolean;
349
+ maxChangesPerUser?: number | undefined;
350
+ maxCapacity?: number | undefined;
351
+ maxTokens?: number | undefined;
352
+ }[] | undefined;
353
+ }>;
214
354
  controllers: z.ZodOptional<z.ZodArray<z.ZodObject<{
215
- id: z.ZodString;
216
- scope: z.ZodEnum<{
217
- write: "write";
218
- admin: "admin";
219
- submit: "submit";
220
- }>;
221
- }, z.core.$strict>>>;
222
- }, z.core.$strict>;
355
+ id: z.ZodEffects<z.ZodString, string, string>;
356
+ scope: z.ZodEnum<["write", "admin", "submit"]>;
357
+ }, "strict", z.ZodTypeAny, {
358
+ id: string;
359
+ scope: "write" | "admin" | "submit";
360
+ }, {
361
+ id: string;
362
+ scope: "write" | "admin" | "submit";
363
+ }>, "many">>;
364
+ }, "strict", z.ZodTypeAny, {
365
+ collections: {
366
+ storage?: {
367
+ collection: string;
368
+ read: "controllers" | "public" | "private" | "managed";
369
+ write: "controllers" | "public" | "private" | "managed";
370
+ memory: "heap" | "stable";
371
+ mutablePermissions: boolean;
372
+ maxSize?: number | undefined;
373
+ maxChangesPerUser?: number | undefined;
374
+ maxTokens?: number | undefined;
375
+ }[] | undefined;
376
+ datastore?: {
377
+ collection: string;
378
+ read: "controllers" | "public" | "private" | "managed";
379
+ write: "controllers" | "public" | "private" | "managed";
380
+ memory: "heap" | "stable";
381
+ mutablePermissions: boolean;
382
+ maxChangesPerUser?: number | undefined;
383
+ maxCapacity?: number | undefined;
384
+ maxTokens?: number | undefined;
385
+ }[] | undefined;
386
+ };
387
+ controllers?: {
388
+ id: string;
389
+ scope: "write" | "admin" | "submit";
390
+ }[] | undefined;
391
+ }, {
392
+ collections: {
393
+ storage?: {
394
+ collection: string;
395
+ read: "controllers" | "public" | "private" | "managed";
396
+ write: "controllers" | "public" | "private" | "managed";
397
+ memory: "heap" | "stable";
398
+ mutablePermissions: boolean;
399
+ maxSize?: number | undefined;
400
+ maxChangesPerUser?: number | undefined;
401
+ maxTokens?: number | undefined;
402
+ }[] | undefined;
403
+ datastore?: {
404
+ collection: string;
405
+ read: "controllers" | "public" | "private" | "managed";
406
+ write: "controllers" | "public" | "private" | "managed";
407
+ memory: "heap" | "stable";
408
+ mutablePermissions: boolean;
409
+ maxChangesPerUser?: number | undefined;
410
+ maxCapacity?: number | undefined;
411
+ maxTokens?: number | undefined;
412
+ }[] | undefined;
413
+ };
414
+ controllers?: {
415
+ id: string;
416
+ scope: "write" | "admin" | "submit";
417
+ }[] | undefined;
418
+ }>;
223
419
  /**
224
420
  * Represents the development configuration for a satellite.
225
421
  * @interface SatelliteDevConfig
@@ -243,63 +439,237 @@ export interface SatelliteDevConfig {
243
439
  export declare const JunoDevConfigSchema: z.ZodObject<{
244
440
  satellite: z.ZodObject<{
245
441
  collections: z.ZodObject<{
246
- datastore: z.ZodOptional<z.ZodArray<z.ZodObject<{
442
+ datastore: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
247
443
  collection: z.ZodString;
248
- read: z.ZodEnum<{
249
- controllers: "controllers";
250
- public: "public";
251
- private: "private";
252
- managed: "managed";
253
- }>;
254
- write: z.ZodEnum<{
255
- controllers: "controllers";
256
- public: "public";
257
- private: "private";
258
- managed: "managed";
259
- }>;
260
- memory: z.ZodEnum<{
261
- heap: "heap";
262
- stable: "stable";
263
- }>;
444
+ read: z.ZodEnum<["public", "private", "managed", "controllers"]>;
445
+ write: z.ZodEnum<["public", "private", "managed", "controllers"]>;
446
+ memory: z.ZodEnum<["heap", "stable"]>;
447
+ createdAt: z.ZodOptional<z.ZodBigInt>;
448
+ updatedAt: z.ZodOptional<z.ZodBigInt>;
449
+ version: z.ZodOptional<z.ZodBigInt>;
450
+ maxSize: z.ZodOptional<z.ZodNumber>;
264
451
  maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
265
452
  maxCapacity: z.ZodOptional<z.ZodNumber>;
266
453
  mutablePermissions: z.ZodBoolean;
267
454
  maxTokens: z.ZodOptional<z.ZodNumber>;
268
- }, z.core.$strict>>>;
269
- storage: z.ZodOptional<z.ZodArray<z.ZodObject<{
455
+ }, "version" | "createdAt" | "updatedAt" | "maxSize">, "strict", z.ZodTypeAny, {
456
+ collection: string;
457
+ read: "controllers" | "public" | "private" | "managed";
458
+ write: "controllers" | "public" | "private" | "managed";
459
+ memory: "heap" | "stable";
460
+ mutablePermissions: boolean;
461
+ maxChangesPerUser?: number | undefined;
462
+ maxCapacity?: number | undefined;
463
+ maxTokens?: number | undefined;
464
+ }, {
465
+ collection: string;
466
+ read: "controllers" | "public" | "private" | "managed";
467
+ write: "controllers" | "public" | "private" | "managed";
468
+ memory: "heap" | "stable";
469
+ mutablePermissions: boolean;
470
+ maxChangesPerUser?: number | undefined;
471
+ maxCapacity?: number | undefined;
472
+ maxTokens?: number | undefined;
473
+ }>, "many">>;
474
+ storage: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
270
475
  collection: z.ZodString;
271
- read: z.ZodEnum<{
272
- controllers: "controllers";
273
- public: "public";
274
- private: "private";
275
- managed: "managed";
276
- }>;
277
- write: z.ZodEnum<{
278
- controllers: "controllers";
279
- public: "public";
280
- private: "private";
281
- managed: "managed";
282
- }>;
283
- memory: z.ZodEnum<{
284
- heap: "heap";
285
- stable: "stable";
286
- }>;
476
+ read: z.ZodEnum<["public", "private", "managed", "controllers"]>;
477
+ write: z.ZodEnum<["public", "private", "managed", "controllers"]>;
478
+ memory: z.ZodEnum<["heap", "stable"]>;
479
+ createdAt: z.ZodOptional<z.ZodBigInt>;
480
+ updatedAt: z.ZodOptional<z.ZodBigInt>;
481
+ version: z.ZodOptional<z.ZodBigInt>;
287
482
  maxSize: z.ZodOptional<z.ZodNumber>;
288
483
  maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
484
+ maxCapacity: z.ZodOptional<z.ZodNumber>;
289
485
  mutablePermissions: z.ZodBoolean;
290
486
  maxTokens: z.ZodOptional<z.ZodNumber>;
291
- }, z.core.$strict>>>;
292
- }, z.core.$strict>;
487
+ }, "version" | "createdAt" | "updatedAt" | "maxCapacity">, "strict", z.ZodTypeAny, {
488
+ collection: string;
489
+ read: "controllers" | "public" | "private" | "managed";
490
+ write: "controllers" | "public" | "private" | "managed";
491
+ memory: "heap" | "stable";
492
+ mutablePermissions: boolean;
493
+ maxSize?: number | undefined;
494
+ maxChangesPerUser?: number | undefined;
495
+ maxTokens?: number | undefined;
496
+ }, {
497
+ collection: string;
498
+ read: "controllers" | "public" | "private" | "managed";
499
+ write: "controllers" | "public" | "private" | "managed";
500
+ memory: "heap" | "stable";
501
+ mutablePermissions: boolean;
502
+ maxSize?: number | undefined;
503
+ maxChangesPerUser?: number | undefined;
504
+ maxTokens?: number | undefined;
505
+ }>, "many">>;
506
+ }, "strict", z.ZodTypeAny, {
507
+ storage?: {
508
+ collection: string;
509
+ read: "controllers" | "public" | "private" | "managed";
510
+ write: "controllers" | "public" | "private" | "managed";
511
+ memory: "heap" | "stable";
512
+ mutablePermissions: boolean;
513
+ maxSize?: number | undefined;
514
+ maxChangesPerUser?: number | undefined;
515
+ maxTokens?: number | undefined;
516
+ }[] | undefined;
517
+ datastore?: {
518
+ collection: string;
519
+ read: "controllers" | "public" | "private" | "managed";
520
+ write: "controllers" | "public" | "private" | "managed";
521
+ memory: "heap" | "stable";
522
+ mutablePermissions: boolean;
523
+ maxChangesPerUser?: number | undefined;
524
+ maxCapacity?: number | undefined;
525
+ maxTokens?: number | undefined;
526
+ }[] | undefined;
527
+ }, {
528
+ storage?: {
529
+ collection: string;
530
+ read: "controllers" | "public" | "private" | "managed";
531
+ write: "controllers" | "public" | "private" | "managed";
532
+ memory: "heap" | "stable";
533
+ mutablePermissions: boolean;
534
+ maxSize?: number | undefined;
535
+ maxChangesPerUser?: number | undefined;
536
+ maxTokens?: number | undefined;
537
+ }[] | undefined;
538
+ datastore?: {
539
+ collection: string;
540
+ read: "controllers" | "public" | "private" | "managed";
541
+ write: "controllers" | "public" | "private" | "managed";
542
+ memory: "heap" | "stable";
543
+ mutablePermissions: boolean;
544
+ maxChangesPerUser?: number | undefined;
545
+ maxCapacity?: number | undefined;
546
+ maxTokens?: number | undefined;
547
+ }[] | undefined;
548
+ }>;
293
549
  controllers: z.ZodOptional<z.ZodArray<z.ZodObject<{
294
- id: z.ZodString;
295
- scope: z.ZodEnum<{
296
- write: "write";
297
- admin: "admin";
298
- submit: "submit";
299
- }>;
300
- }, z.core.$strict>>>;
301
- }, z.core.$strict>;
302
- }, z.core.$strict>;
550
+ id: z.ZodEffects<z.ZodString, string, string>;
551
+ scope: z.ZodEnum<["write", "admin", "submit"]>;
552
+ }, "strict", z.ZodTypeAny, {
553
+ id: string;
554
+ scope: "write" | "admin" | "submit";
555
+ }, {
556
+ id: string;
557
+ scope: "write" | "admin" | "submit";
558
+ }>, "many">>;
559
+ }, "strict", z.ZodTypeAny, {
560
+ collections: {
561
+ storage?: {
562
+ collection: string;
563
+ read: "controllers" | "public" | "private" | "managed";
564
+ write: "controllers" | "public" | "private" | "managed";
565
+ memory: "heap" | "stable";
566
+ mutablePermissions: boolean;
567
+ maxSize?: number | undefined;
568
+ maxChangesPerUser?: number | undefined;
569
+ maxTokens?: number | undefined;
570
+ }[] | undefined;
571
+ datastore?: {
572
+ collection: string;
573
+ read: "controllers" | "public" | "private" | "managed";
574
+ write: "controllers" | "public" | "private" | "managed";
575
+ memory: "heap" | "stable";
576
+ mutablePermissions: boolean;
577
+ maxChangesPerUser?: number | undefined;
578
+ maxCapacity?: number | undefined;
579
+ maxTokens?: number | undefined;
580
+ }[] | undefined;
581
+ };
582
+ controllers?: {
583
+ id: string;
584
+ scope: "write" | "admin" | "submit";
585
+ }[] | undefined;
586
+ }, {
587
+ collections: {
588
+ storage?: {
589
+ collection: string;
590
+ read: "controllers" | "public" | "private" | "managed";
591
+ write: "controllers" | "public" | "private" | "managed";
592
+ memory: "heap" | "stable";
593
+ mutablePermissions: boolean;
594
+ maxSize?: number | undefined;
595
+ maxChangesPerUser?: number | undefined;
596
+ maxTokens?: number | undefined;
597
+ }[] | undefined;
598
+ datastore?: {
599
+ collection: string;
600
+ read: "controllers" | "public" | "private" | "managed";
601
+ write: "controllers" | "public" | "private" | "managed";
602
+ memory: "heap" | "stable";
603
+ mutablePermissions: boolean;
604
+ maxChangesPerUser?: number | undefined;
605
+ maxCapacity?: number | undefined;
606
+ maxTokens?: number | undefined;
607
+ }[] | undefined;
608
+ };
609
+ controllers?: {
610
+ id: string;
611
+ scope: "write" | "admin" | "submit";
612
+ }[] | undefined;
613
+ }>;
614
+ }, "strict", z.ZodTypeAny, {
615
+ satellite: {
616
+ collections: {
617
+ storage?: {
618
+ collection: string;
619
+ read: "controllers" | "public" | "private" | "managed";
620
+ write: "controllers" | "public" | "private" | "managed";
621
+ memory: "heap" | "stable";
622
+ mutablePermissions: boolean;
623
+ maxSize?: number | undefined;
624
+ maxChangesPerUser?: number | undefined;
625
+ maxTokens?: number | undefined;
626
+ }[] | undefined;
627
+ datastore?: {
628
+ collection: string;
629
+ read: "controllers" | "public" | "private" | "managed";
630
+ write: "controllers" | "public" | "private" | "managed";
631
+ memory: "heap" | "stable";
632
+ mutablePermissions: boolean;
633
+ maxChangesPerUser?: number | undefined;
634
+ maxCapacity?: number | undefined;
635
+ maxTokens?: number | undefined;
636
+ }[] | undefined;
637
+ };
638
+ controllers?: {
639
+ id: string;
640
+ scope: "write" | "admin" | "submit";
641
+ }[] | undefined;
642
+ };
643
+ }, {
644
+ satellite: {
645
+ collections: {
646
+ storage?: {
647
+ collection: string;
648
+ read: "controllers" | "public" | "private" | "managed";
649
+ write: "controllers" | "public" | "private" | "managed";
650
+ memory: "heap" | "stable";
651
+ mutablePermissions: boolean;
652
+ maxSize?: number | undefined;
653
+ maxChangesPerUser?: number | undefined;
654
+ maxTokens?: number | undefined;
655
+ }[] | undefined;
656
+ datastore?: {
657
+ collection: string;
658
+ read: "controllers" | "public" | "private" | "managed";
659
+ write: "controllers" | "public" | "private" | "managed";
660
+ memory: "heap" | "stable";
661
+ mutablePermissions: boolean;
662
+ maxChangesPerUser?: number | undefined;
663
+ maxCapacity?: number | undefined;
664
+ maxTokens?: number | undefined;
665
+ }[] | undefined;
666
+ };
667
+ controllers?: {
668
+ id: string;
669
+ scope: "write" | "admin" | "submit";
670
+ }[] | undefined;
671
+ };
672
+ }>;
303
673
  /**
304
674
  * Represents the development configuration for Juno.
305
675
  * @interface JunoDevConfig