@junobuild/config 0.3.1 → 0.4.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.
@@ -4,38 +4,29 @@ import { type Rule } from '../types/rules';
4
4
  /**
5
5
  * @see SatelliteDevDataStoreCollection
6
6
  */
7
- export declare const SatelliteDevDataStoreCollectionSchema: z.ZodObject<Omit<{
7
+ export declare const SatelliteDevDataStoreCollectionSchema: z.ZodObject<{
8
8
  collection: z.ZodString;
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>;
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
+ }>;
16
25
  maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
17
26
  maxCapacity: z.ZodOptional<z.ZodNumber>;
18
27
  mutablePermissions: z.ZodBoolean;
19
28
  maxTokens: z.ZodOptional<z.ZodNumber>;
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
- }>;
29
+ }, z.core.$strict>;
39
30
  /**
40
31
  * Represents a database collection configuration for a satellite in a development environment.
41
32
  * @typedef {Omit<Rule, 'createdAt' | 'updatedAt' | 'maxSize' | 'version'>} SatelliteDevDataStoreCollection
@@ -44,38 +35,29 @@ export type SatelliteDevDataStoreCollection = Omit<Rule, 'createdAt' | 'updatedA
44
35
  /**
45
36
  * @see SatelliteDevStorageCollection
46
37
  */
47
- export declare const SatelliteDevStorageCollectionSchema: z.ZodObject<Omit<{
38
+ export declare const SatelliteDevStorageCollectionSchema: z.ZodObject<{
48
39
  collection: z.ZodString;
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>;
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
+ }>;
55
56
  maxSize: z.ZodOptional<z.ZodNumber>;
56
57
  maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
57
- maxCapacity: z.ZodOptional<z.ZodNumber>;
58
58
  mutablePermissions: z.ZodBoolean;
59
59
  maxTokens: z.ZodOptional<z.ZodNumber>;
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
- }>;
60
+ }, z.core.$strict>;
79
61
  /**
80
62
  * Represents a Storage collection configuration for a satellite in a development environment.
81
63
  * @typedef {Omit<Rule, 'createdAt' | 'updatedAt' | 'maxCapacity' | 'version'>} SatelliteDevStorageCollection
@@ -85,113 +67,53 @@ export type SatelliteDevStorageCollection = Omit<Rule, 'createdAt' | 'updatedAt'
85
67
  * @see SatelliteDevCollections
86
68
  */
87
69
  export declare const SatelliteDevCollectionsSchema: z.ZodObject<{
88
- datastore: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
70
+ datastore: z.ZodOptional<z.ZodArray<z.ZodObject<{
89
71
  collection: z.ZodString;
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>;
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
+ }>;
97
88
  maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
98
89
  maxCapacity: z.ZodOptional<z.ZodNumber>;
99
90
  mutablePermissions: z.ZodBoolean;
100
91
  maxTokens: z.ZodOptional<z.ZodNumber>;
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<{
92
+ }, z.core.$strict>>>;
93
+ storage: z.ZodOptional<z.ZodArray<z.ZodObject<{
121
94
  collection: z.ZodString;
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>;
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
+ }>;
128
111
  maxSize: z.ZodOptional<z.ZodNumber>;
129
112
  maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
130
- maxCapacity: z.ZodOptional<z.ZodNumber>;
131
113
  mutablePermissions: z.ZodBoolean;
132
114
  maxTokens: z.ZodOptional<z.ZodNumber>;
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
- }>;
115
+ }, z.core.$strict>>>;
116
+ }, z.core.$strict>;
195
117
  /**
196
118
  * Represents the collections configuration for a satellite in a development environment.
197
119
  * @interface SatelliteDevCollections
@@ -214,15 +136,13 @@ export interface SatelliteDevCollections {
214
136
  * @see SatelliteDevController
215
137
  */
216
138
  export declare const SatelliteDevControllerSchema: z.ZodObject<{
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
- }>;
139
+ id: z.ZodString;
140
+ scope: z.ZodEnum<{
141
+ write: "write";
142
+ admin: "admin";
143
+ submit: "submit";
144
+ }>;
145
+ }, z.core.$strict>;
226
146
  /**
227
147
  * Represents a controller configuration for a satellite in a development environment.
228
148
  * @interface SatelliteDevController
@@ -244,178 +164,62 @@ export interface SatelliteDevController {
244
164
  */
245
165
  export declare const SatelliteDevConfigSchema: z.ZodObject<{
246
166
  collections: z.ZodObject<{
247
- datastore: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
167
+ datastore: z.ZodOptional<z.ZodArray<z.ZodObject<{
248
168
  collection: z.ZodString;
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>;
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
+ }>;
256
185
  maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
257
186
  maxCapacity: z.ZodOptional<z.ZodNumber>;
258
187
  mutablePermissions: z.ZodBoolean;
259
188
  maxTokens: z.ZodOptional<z.ZodNumber>;
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<{
189
+ }, z.core.$strict>>>;
190
+ storage: z.ZodOptional<z.ZodArray<z.ZodObject<{
280
191
  collection: z.ZodString;
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>;
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
+ }>;
287
208
  maxSize: z.ZodOptional<z.ZodNumber>;
288
209
  maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
289
- maxCapacity: z.ZodOptional<z.ZodNumber>;
290
210
  mutablePermissions: z.ZodBoolean;
291
211
  maxTokens: z.ZodOptional<z.ZodNumber>;
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
- }>;
212
+ }, z.core.$strict>>>;
213
+ }, z.core.$strict>;
354
214
  controllers: z.ZodOptional<z.ZodArray<z.ZodObject<{
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
- }>;
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>;
419
223
  /**
420
224
  * Represents the development configuration for a satellite.
421
225
  * @interface SatelliteDevConfig
@@ -439,237 +243,63 @@ export interface SatelliteDevConfig {
439
243
  export declare const JunoDevConfigSchema: z.ZodObject<{
440
244
  satellite: z.ZodObject<{
441
245
  collections: z.ZodObject<{
442
- datastore: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
246
+ datastore: z.ZodOptional<z.ZodArray<z.ZodObject<{
443
247
  collection: z.ZodString;
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>;
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
+ }>;
451
264
  maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
452
265
  maxCapacity: z.ZodOptional<z.ZodNumber>;
453
266
  mutablePermissions: z.ZodBoolean;
454
267
  maxTokens: z.ZodOptional<z.ZodNumber>;
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<{
268
+ }, z.core.$strict>>>;
269
+ storage: z.ZodOptional<z.ZodArray<z.ZodObject<{
475
270
  collection: z.ZodString;
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>;
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
+ }>;
482
287
  maxSize: z.ZodOptional<z.ZodNumber>;
483
288
  maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
484
- maxCapacity: z.ZodOptional<z.ZodNumber>;
485
289
  mutablePermissions: z.ZodBoolean;
486
290
  maxTokens: z.ZodOptional<z.ZodNumber>;
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
- }>;
291
+ }, z.core.$strict>>>;
292
+ }, z.core.$strict>;
549
293
  controllers: z.ZodOptional<z.ZodArray<z.ZodObject<{
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
- }>;
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>;
673
303
  /**
674
304
  * Represents the development configuration for Juno.
675
305
  * @interface JunoDevConfig