@junobuild/config 1.1.1 → 1.1.2
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.
- package/README.md +170 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,6 +52,10 @@ Configuration options for [Juno] CLI.
|
|
|
52
52
|
| --------------------------- | ---------------------------------------------------------------------------------------------- |
|
|
53
53
|
| `SatelliteAssertionsSchema` | `ZodObject<{ heapMemory: ZodOptional<ZodUnion<readonly [ZodBigInt, ZodBoolean]>>; }, $strict>` |
|
|
54
54
|
|
|
55
|
+
References:
|
|
56
|
+
|
|
57
|
+
- SatelliteAssertions
|
|
58
|
+
|
|
55
59
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/assertions.config.ts#L6)
|
|
56
60
|
|
|
57
61
|
#### :gear: AuthenticationConfigInternetIdentitySchema
|
|
@@ -60,6 +64,10 @@ Configuration options for [Juno] CLI.
|
|
|
60
64
|
| -------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
|
|
61
65
|
| `AuthenticationConfigInternetIdentitySchema` | `ZodObject<{ derivationOrigin: ZodOptional<ZodURL>; externalAlternativeOrigins: ZodOptional<ZodArray<ZodURL>>; }, $strict>` |
|
|
62
66
|
|
|
67
|
+
References:
|
|
68
|
+
|
|
69
|
+
- AuthenticationConfigInternetIdentity
|
|
70
|
+
|
|
63
71
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/authentication.config.ts#L7)
|
|
64
72
|
|
|
65
73
|
#### :gear: AuthenticationConfigRulesSchema
|
|
@@ -68,6 +76,10 @@ Configuration options for [Juno] CLI.
|
|
|
68
76
|
| --------------------------------- | -------------------------------------------------------------- |
|
|
69
77
|
| `AuthenticationConfigRulesSchema` | `ZodObject<{ allowedCallers: ZodArray<ZodString>; }, $strict>` |
|
|
70
78
|
|
|
79
|
+
References:
|
|
80
|
+
|
|
81
|
+
- AuthenticationConfigRules
|
|
82
|
+
|
|
71
83
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/authentication.config.ts#L36)
|
|
72
84
|
|
|
73
85
|
#### :gear: AuthenticationConfigSchema
|
|
@@ -76,6 +88,10 @@ Configuration options for [Juno] CLI.
|
|
|
76
88
|
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
77
89
|
| `AuthenticationConfigSchema` | `ZodObject<{ internetIdentity: ZodOptional<ZodObject<{ derivationOrigin: ZodOptional<ZodURL>; externalAlternativeOrigins: ZodOptional<ZodArray<ZodURL>>; }, $strict>>; rules: ZodOptional<...>; version: ZodOptional<...>; }, $strict>` |
|
|
78
90
|
|
|
91
|
+
References:
|
|
92
|
+
|
|
93
|
+
- AuthenticationConfig
|
|
94
|
+
|
|
79
95
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/authentication.config.ts#L59)
|
|
80
96
|
|
|
81
97
|
#### :gear: PermissionTextSchema
|
|
@@ -84,6 +100,10 @@ Configuration options for [Juno] CLI.
|
|
|
84
100
|
| ---------------------- | ---------------------------------------------------------------------------------------------------- |
|
|
85
101
|
| `PermissionTextSchema` | `ZodEnum<{ public: "public"; private: "private"; managed: "managed"; controllers: "controllers"; }>` |
|
|
86
102
|
|
|
103
|
+
References:
|
|
104
|
+
|
|
105
|
+
- PermissionText
|
|
106
|
+
|
|
87
107
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/rules.ts#L6)
|
|
88
108
|
|
|
89
109
|
#### :gear: MemoryTextSchema
|
|
@@ -92,6 +112,10 @@ Configuration options for [Juno] CLI.
|
|
|
92
112
|
| ------------------ | ---------------------------------------------- |
|
|
93
113
|
| `MemoryTextSchema` | `ZodEnum<{ heap: "heap"; stable: "stable"; }>` |
|
|
94
114
|
|
|
115
|
+
References:
|
|
116
|
+
|
|
117
|
+
- MemoryText
|
|
118
|
+
|
|
95
119
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/rules.ts#L17)
|
|
96
120
|
|
|
97
121
|
#### :gear: RulesTypeSchema
|
|
@@ -100,6 +124,10 @@ Configuration options for [Juno] CLI.
|
|
|
100
124
|
| ----------------- | -------------------------------------------- |
|
|
101
125
|
| `RulesTypeSchema` | `ZodEnum<{ db: "db"; storage: "storage"; }>` |
|
|
102
126
|
|
|
127
|
+
References:
|
|
128
|
+
|
|
129
|
+
- RulesType
|
|
130
|
+
|
|
103
131
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/rules.ts#L28)
|
|
104
132
|
|
|
105
133
|
#### :gear: RuleSchema
|
|
@@ -108,6 +136,10 @@ Configuration options for [Juno] CLI.
|
|
|
108
136
|
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
109
137
|
| `RuleSchema` | `ZodObject<{ collection: ZodString; read: ZodEnum<{ public: "public"; private: "private"; managed: "managed"; controllers: "controllers"; }>; write: ZodEnum<{ public: "public"; private: "private"; managed: "managed"; controllers: "controllers"; }>; ... 8 more ...; maxTokens: ZodOptional<...>; }, $strict>` |
|
|
110
138
|
|
|
139
|
+
References:
|
|
140
|
+
|
|
141
|
+
- Rule
|
|
142
|
+
|
|
111
143
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/rules.ts#L39)
|
|
112
144
|
|
|
113
145
|
#### :gear: DatastoreCollectionSchema
|
|
@@ -116,6 +148,10 @@ Configuration options for [Juno] CLI.
|
|
|
116
148
|
| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
117
149
|
| `DatastoreCollectionSchema` | `ZodObject<{ version: ZodOptional<ZodBigInt>; collection: ZodString; read: ZodEnum<{ public: "public"; private: "private"; managed: "managed"; controllers: "controllers"; }>; ... 5 more ...; maxTokens: ZodOptional<...>; }, $strict>` |
|
|
118
150
|
|
|
151
|
+
References:
|
|
152
|
+
|
|
153
|
+
- DatastoreCollection
|
|
154
|
+
|
|
119
155
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/collections.ts#L7)
|
|
120
156
|
|
|
121
157
|
#### :gear: StorageCollectionSchema
|
|
@@ -124,6 +160,10 @@ Configuration options for [Juno] CLI.
|
|
|
124
160
|
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
125
161
|
| `StorageCollectionSchema` | `ZodObject<{ version: ZodOptional<ZodBigInt>; collection: ZodString; read: ZodEnum<{ public: "public"; private: "private"; managed: "managed"; controllers: "controllers"; }>; ... 5 more ...; maxTokens: ZodOptional<...>; }, $strict>` |
|
|
126
162
|
|
|
163
|
+
References:
|
|
164
|
+
|
|
165
|
+
- StorageCollection
|
|
166
|
+
|
|
127
167
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/collections.ts#L22)
|
|
128
168
|
|
|
129
169
|
#### :gear: CollectionsSchema
|
|
@@ -132,6 +172,10 @@ Configuration options for [Juno] CLI.
|
|
|
132
172
|
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
133
173
|
| `CollectionsSchema` | `ZodObject<{ datastore: ZodOptional<ZodArray<ZodObject<{ version: ZodOptional<ZodBigInt>; collection: ZodString; read: ZodEnum<{ public: "public"; private: "private"; managed: "managed"; controllers: "controllers"; }>; ... 5 more ...; maxTokens: ZodOptional<...>; }, $strict>>>; storage: ZodOptional<...>; }, $strict>` |
|
|
134
174
|
|
|
175
|
+
References:
|
|
176
|
+
|
|
177
|
+
- Collections
|
|
178
|
+
|
|
135
179
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/collections.ts#L37)
|
|
136
180
|
|
|
137
181
|
#### :gear: MaxMemorySizeConfigSchema
|
|
@@ -140,6 +184,10 @@ Configuration options for [Juno] CLI.
|
|
|
140
184
|
| --------------------------- | --------------------------------------------------------------------------------------- |
|
|
141
185
|
| `MaxMemorySizeConfigSchema` | `ZodObject<{ heap: ZodOptional<ZodBigInt>; stable: ZodOptional<ZodBigInt>; }, $strict>` |
|
|
142
186
|
|
|
187
|
+
References:
|
|
188
|
+
|
|
189
|
+
- MaxMemorySizeConfig
|
|
190
|
+
|
|
143
191
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/shared/feature.config.ts#L6)
|
|
144
192
|
|
|
145
193
|
#### :gear: DatastoreConfigSchema
|
|
@@ -148,6 +196,10 @@ Configuration options for [Juno] CLI.
|
|
|
148
196
|
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
149
197
|
| `DatastoreConfigSchema` | `ZodObject<{ maxMemorySize: ZodOptional<ZodObject<{ heap: ZodOptional<ZodBigInt>; stable: ZodOptional<ZodBigInt>; }, $strict>>; version: ZodOptional<...>; }, $strict>` |
|
|
150
198
|
|
|
199
|
+
References:
|
|
200
|
+
|
|
201
|
+
- DatastoreConfig
|
|
202
|
+
|
|
151
203
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/datastore.config.ts#L7)
|
|
152
204
|
|
|
153
205
|
#### :gear: EmulatorConfigSchema
|
|
@@ -156,6 +208,10 @@ Configuration options for [Juno] CLI.
|
|
|
156
208
|
| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
157
209
|
| `EmulatorConfigSchema` | `ZodUnion<readonly [ZodObject<{ runner: ZodOptional<ZodObject<{ type: ZodEnum<{ docker: "docker"; podman: "podman"; }>; image: ZodOptional<ZodString>; name: ZodOptional<ZodString>; volume: ZodOptional<...>; target: ZodOptional<...>; platform: ZodOptional<...>; }, $strict>>; skylab: ZodObject<...>; }, $strict>, ZodObj...` |
|
|
158
210
|
|
|
211
|
+
References:
|
|
212
|
+
|
|
213
|
+
- EmulatorConfig
|
|
214
|
+
|
|
159
215
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/emulator.config.ts#L151)
|
|
160
216
|
|
|
161
217
|
#### :gear: ModuleLogVisibilitySchema
|
|
@@ -164,6 +220,10 @@ Configuration options for [Juno] CLI.
|
|
|
164
220
|
| --------------------------- | ------------------------------------------------------------ |
|
|
165
221
|
| `ModuleLogVisibilitySchema` | `ZodEnum<{ public: "public"; controllers: "controllers"; }>` |
|
|
166
222
|
|
|
223
|
+
References:
|
|
224
|
+
|
|
225
|
+
- ModuleLogVisibility
|
|
226
|
+
|
|
167
227
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/module.settings.ts#L6)
|
|
168
228
|
|
|
169
229
|
#### :gear: ModuleSettingsSchema
|
|
@@ -172,6 +232,10 @@ Configuration options for [Juno] CLI.
|
|
|
172
232
|
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
173
233
|
| `ModuleSettingsSchema` | `ZodObject<{ freezingThreshold: ZodOptional<ZodBigInt>; reservedCyclesLimit: ZodOptional<ZodBigInt>; logVisibility: ZodOptional<ZodEnum<{ public: "public"; controllers: "controllers"; }>>; heapMemoryLimit: ZodOptional<...>; memoryAllocation: ZodOptional<...>; computeAllocation: ZodOptional<...>; }, $strict>` |
|
|
174
234
|
|
|
235
|
+
References:
|
|
236
|
+
|
|
237
|
+
- ModuleSettings
|
|
238
|
+
|
|
175
239
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/module.settings.ts#L21)
|
|
176
240
|
|
|
177
241
|
#### :gear: JunoConfigModeSchema
|
|
@@ -180,6 +244,10 @@ Configuration options for [Juno] CLI.
|
|
|
180
244
|
| ---------------------- | ---------------------------------------------------------- |
|
|
181
245
|
| `JunoConfigModeSchema` | `ZodUnion<readonly [ZodLiteral<"production">, ZodString]>` |
|
|
182
246
|
|
|
247
|
+
References:
|
|
248
|
+
|
|
249
|
+
- JunoConfigMode
|
|
250
|
+
|
|
183
251
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/types/juno.env.ts#L6)
|
|
184
252
|
|
|
185
253
|
#### :gear: JunoConfigEnvSchema
|
|
@@ -188,6 +256,10 @@ Configuration options for [Juno] CLI.
|
|
|
188
256
|
| --------------------- | ---------------------------------------------------------------------------------------- |
|
|
189
257
|
| `JunoConfigEnvSchema` | `ZodObject<{ mode: ZodUnion<readonly [ZodLiteral<"production">, ZodString]>; }, $strip>` |
|
|
190
258
|
|
|
259
|
+
References:
|
|
260
|
+
|
|
261
|
+
- JunoConfigEnv
|
|
262
|
+
|
|
191
263
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/types/juno.env.ts#L17)
|
|
192
264
|
|
|
193
265
|
#### :gear: OrbiterIdSchema
|
|
@@ -196,6 +268,10 @@ Configuration options for [Juno] CLI.
|
|
|
196
268
|
| ----------------- | --------------------------------------- |
|
|
197
269
|
| `OrbiterIdSchema` | `ZodObject<{ id: ZodString; }, $strip>` |
|
|
198
270
|
|
|
271
|
+
References:
|
|
272
|
+
|
|
273
|
+
- OrbiterId
|
|
274
|
+
|
|
199
275
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/orbiter.config.ts#L10)
|
|
200
276
|
|
|
201
277
|
#### :gear: OrbiterIdsSchema
|
|
@@ -204,6 +280,10 @@ Configuration options for [Juno] CLI.
|
|
|
204
280
|
| ------------------ | ------------------------------------------------------------------------------------------------------------- |
|
|
205
281
|
| `OrbiterIdsSchema` | `ZodObject<{ ids: ZodRecord<ZodUnion<readonly [ZodLiteral<"production">, ZodString]>, ZodString>; }, $strip>` |
|
|
206
282
|
|
|
283
|
+
References:
|
|
284
|
+
|
|
285
|
+
- OrbiterIds
|
|
286
|
+
|
|
207
287
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/orbiter.config.ts#L29)
|
|
208
288
|
|
|
209
289
|
#### :gear: OrbiterConfigSchema
|
|
@@ -212,6 +292,10 @@ Configuration options for [Juno] CLI.
|
|
|
212
292
|
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
213
293
|
| `OrbiterConfigSchema` | `ZodUnion<readonly [ZodObject<{ id: ZodString; }, $strict>, ZodObject<{ ids: ZodRecord<ZodUnion<readonly [ZodLiteral<"production">, ZodString]>, ZodString>; }, $strict>]>` |
|
|
214
294
|
|
|
295
|
+
References:
|
|
296
|
+
|
|
297
|
+
- OrbiterConfig
|
|
298
|
+
|
|
215
299
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/orbiter.config.ts#L56)
|
|
216
300
|
|
|
217
301
|
#### :gear: StorageConfigSourceGlobSchema
|
|
@@ -220,6 +304,10 @@ Configuration options for [Juno] CLI.
|
|
|
220
304
|
| ------------------------------- | ----------- |
|
|
221
305
|
| `StorageConfigSourceGlobSchema` | `ZodString` |
|
|
222
306
|
|
|
307
|
+
References:
|
|
308
|
+
|
|
309
|
+
- StorageConfigSourceGlob
|
|
310
|
+
|
|
223
311
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/shared/storage.config.ts#L7)
|
|
224
312
|
|
|
225
313
|
#### :gear: StorageConfigHeaderSchema
|
|
@@ -228,6 +316,10 @@ Configuration options for [Juno] CLI.
|
|
|
228
316
|
| --------------------------- | ------------------------------------------------------------------------------------------------------- |
|
|
229
317
|
| `StorageConfigHeaderSchema` | `ZodObject<{ source: ZodString; headers: ZodArray<ZodTuple<[ZodString, ZodString], null>>; }, $strict>` |
|
|
230
318
|
|
|
319
|
+
References:
|
|
320
|
+
|
|
321
|
+
- StorageConfigHeader
|
|
322
|
+
|
|
231
323
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/shared/storage.config.ts#L18)
|
|
232
324
|
|
|
233
325
|
#### :gear: StorageConfigRewriteSchema
|
|
@@ -236,6 +328,10 @@ Configuration options for [Juno] CLI.
|
|
|
236
328
|
| ---------------------------- | -------------------------------------------------------------------- |
|
|
237
329
|
| `StorageConfigRewriteSchema` | `ZodObject<{ source: ZodString; destination: ZodString; }, $strict>` |
|
|
238
330
|
|
|
331
|
+
References:
|
|
332
|
+
|
|
333
|
+
- StorageConfigRewrite
|
|
334
|
+
|
|
239
335
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/shared/storage.config.ts#L49)
|
|
240
336
|
|
|
241
337
|
#### :gear: StorageConfigRedirectSchema
|
|
@@ -244,6 +340,10 @@ Configuration options for [Juno] CLI.
|
|
|
244
340
|
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
|
245
341
|
| `StorageConfigRedirectSchema` | `ZodObject<{ source: ZodString; location: ZodString; code: ZodUnion<readonly [ZodLiteral<301>, ZodLiteral<302>]>; }, $strict>` |
|
|
246
342
|
|
|
343
|
+
References:
|
|
344
|
+
|
|
345
|
+
- StorageConfigRedirect
|
|
346
|
+
|
|
247
347
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/shared/storage.config.ts#L79)
|
|
248
348
|
|
|
249
349
|
#### :gear: StorageConfigSchema
|
|
@@ -252,6 +352,10 @@ Configuration options for [Juno] CLI.
|
|
|
252
352
|
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
253
353
|
| `StorageConfigSchema` | `ZodObject<{ headers: ZodOptional<ZodArray<ZodObject<{ source: ZodString; headers: ZodArray<ZodTuple<[ZodString, ZodString], null>>; }, $strict>>>; ... 5 more ...; version: ZodOptional<...>; }, $strip>` |
|
|
254
354
|
|
|
355
|
+
References:
|
|
356
|
+
|
|
357
|
+
- StorageConfig
|
|
358
|
+
|
|
255
359
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/shared/storage.config.ts#L114)
|
|
256
360
|
|
|
257
361
|
#### :gear: EncodingTypeSchema
|
|
@@ -270,6 +374,10 @@ see EncodingType
|
|
|
270
374
|
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
271
375
|
| `CliConfigSchema` | `ZodObject<{ source: ZodOptional<ZodString>; ignore: ZodOptional<ZodArray<ZodString>>; gzip: ZodOptional<ZodUnion<readonly [ZodString, ZodLiteral<...>]>>; encoding: ZodOptional<...>; predeploy: ZodOptional<...>; postdeploy: ZodOptional<...>; }, $strict>` |
|
|
272
376
|
|
|
377
|
+
References:
|
|
378
|
+
|
|
379
|
+
- CliConfig
|
|
380
|
+
|
|
273
381
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/types/cli.config.ts#L7)
|
|
274
382
|
|
|
275
383
|
#### :gear: SatelliteIdSchema
|
|
@@ -278,6 +386,10 @@ see EncodingType
|
|
|
278
386
|
| ------------------- | --------------------------------------- |
|
|
279
387
|
| `SatelliteIdSchema` | `ZodObject<{ id: ZodString; }, $strip>` |
|
|
280
388
|
|
|
389
|
+
References:
|
|
390
|
+
|
|
391
|
+
- SatelliteId
|
|
392
|
+
|
|
281
393
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/satellite.config.ts#L17)
|
|
282
394
|
|
|
283
395
|
#### :gear: SatelliteIdsSchema
|
|
@@ -286,6 +398,10 @@ see EncodingType
|
|
|
286
398
|
| -------------------- | ------------------------------------------------------------------------------------------------------------- |
|
|
287
399
|
| `SatelliteIdsSchema` | `ZodObject<{ ids: ZodRecord<ZodUnion<readonly [ZodLiteral<"production">, ZodString]>, ZodString>; }, $strip>` |
|
|
288
400
|
|
|
401
|
+
References:
|
|
402
|
+
|
|
403
|
+
- SatelliteIds
|
|
404
|
+
|
|
289
405
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/satellite.config.ts#L36)
|
|
290
406
|
|
|
291
407
|
#### :gear: SatelliteConfigOptionsSchema
|
|
@@ -294,6 +410,10 @@ see EncodingType
|
|
|
294
410
|
| ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
295
411
|
| `SatelliteConfigOptionsSchema` | `ZodUnion<readonly [ZodObject<{ storage: ZodOptional<ZodObject<{ headers: ZodOptional<ZodArray<ZodObject<{ source: ZodString; headers: ZodArray<ZodTuple<[ZodString, ZodString], null>>; }, $strict>>>; ... 5 more ...; version: ZodOptional<...>; }, $strip>>; ... 5 more ...; id: ZodString; }, $strict>, ZodObject<...>]>` |
|
|
296
412
|
|
|
413
|
+
References:
|
|
414
|
+
|
|
415
|
+
- JunoConsoleConfig
|
|
416
|
+
|
|
297
417
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/satellite.config.ts#L75)
|
|
298
418
|
|
|
299
419
|
### :tropical_drink: Interfaces
|
|
@@ -332,6 +452,8 @@ Configuration for satellite assertions.
|
|
|
332
452
|
| ------------ | -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
333
453
|
| `heapMemory` | `bigint or boolean or undefined` | Configuration for the heap memory size check, which can be: - `true` to enable the check with a default threshold of 900MB, - `false` to disable the heap memory size check, - A `bigint` to specify a custom threshold in MB (megabytes) for the heap memory size check. If not specified, then `true` is used as the default value. type: {bigint or boolean} |
|
|
334
454
|
|
|
455
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/assertions.config.ts#L14)
|
|
456
|
+
|
|
335
457
|
#### :gear: AuthenticationConfigInternetIdentity
|
|
336
458
|
|
|
337
459
|
Configure the behavior of Internet Identity.
|
|
@@ -341,6 +463,8 @@ Configure the behavior of Internet Identity.
|
|
|
341
463
|
| `derivationOrigin` | `string or undefined` | This setting ensures that users are recognized on your app, regardless of whether they use the default URL or any other custom domain. For example, if set to hello.com, a user signing on at https://hello.com will receive the same identifier (principal) as when signing on at https://www.hello.com. type: {string}optional |
|
|
342
464
|
| `externalAlternativeOrigins` | `string[] or undefined` | An optional list of external alternative origins allowed for authentication, which can be useful if you want to reuse the same derivation origin across multiple Satellites. type: {string[]}optional |
|
|
343
465
|
|
|
466
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/authentication.config.ts#L16)
|
|
467
|
+
|
|
344
468
|
#### :gear: AuthenticationConfigRules
|
|
345
469
|
|
|
346
470
|
Configure the rules of the authentication.
|
|
@@ -349,6 +473,8 @@ Configure the rules of the authentication.
|
|
|
349
473
|
| ---------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
350
474
|
| `allowedCallers` | `string[]` | This option defines who's allowed to use your app. If you enable this, only the identities you list (in user key, format, like `bj4r4-5cdop-...`) will be allowed to sign in or use any features like Datastore or Storage. type: {PrincipalText[]}optional |
|
|
351
475
|
|
|
476
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/authentication.config.ts#L44)
|
|
477
|
+
|
|
352
478
|
#### :gear: AuthenticationConfig
|
|
353
479
|
|
|
354
480
|
Configures the Authentication options of a Satellite.
|
|
@@ -359,6 +485,8 @@ Configures the Authentication options of a Satellite.
|
|
|
359
485
|
| `rules` | `AuthenticationConfigRules or undefined` | Optional configuration for the rules of the authentication. type: {AuthenticationConfigRules}optional |
|
|
360
486
|
| `version` | `bigint or undefined` | The current version of the config. Optional. The CLI will automatically resolve the version and warn you if there's a potential overwrite. You can provide it if you want to manage versioning manually within your config file. type: {bigint}optional |
|
|
361
487
|
|
|
488
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/authentication.config.ts#L69)
|
|
489
|
+
|
|
362
490
|
#### :gear: Rule
|
|
363
491
|
|
|
364
492
|
Represents a rule configuration for a collection.
|
|
@@ -378,6 +506,8 @@ Represents a rule configuration for a collection.
|
|
|
378
506
|
| `mutablePermissions` | `boolean or undefined` | Indicates whether the permissions are mutable. default: truetype: {boolean} |
|
|
379
507
|
| `maxTokens` | `bigint or undefined` | The maximum number of writes and deletes per minute. |
|
|
380
508
|
|
|
509
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/rules.ts#L58)
|
|
510
|
+
|
|
381
511
|
#### :gear: Collections
|
|
382
512
|
|
|
383
513
|
Represents the configuration for all the collections of a Satellite.
|
|
@@ -387,6 +517,8 @@ Represents the configuration for all the collections of a Satellite.
|
|
|
387
517
|
| `datastore` | `DatastoreCollection[] or undefined` | An optional array that defines the collections of the Datastore. type: {DatastoreCollection[]}optional |
|
|
388
518
|
| `storage` | `StorageCollection[] or undefined` | An optional array that defines the collections of the Storage. type: {StorageCollection[]}optional |
|
|
389
519
|
|
|
520
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/collections.ts#L46)
|
|
521
|
+
|
|
390
522
|
#### :gear: MaxMemorySizeConfig
|
|
391
523
|
|
|
392
524
|
Configuration for granting access to features only if the maximum memory size limits are not reached.
|
|
@@ -398,6 +530,8 @@ The maximum size corresponds to the overall heap or stable memory of the smart c
|
|
|
398
530
|
| `heap` | `bigint or undefined` | Maximum allowed heap memory size in bytes. This field is optional. If not specified, no limit is enforced on the heap memory size. type: {bigint} |
|
|
399
531
|
| `stable` | `bigint or undefined` | Maximum allowed stable memory size in bytes. This field is optional. If not specified, no limit is enforced on the stable memory size. type: {bigint} |
|
|
400
532
|
|
|
533
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/shared/feature.config.ts#L18)
|
|
534
|
+
|
|
401
535
|
#### :gear: DatastoreConfig
|
|
402
536
|
|
|
403
537
|
Configures the behavior of the Datastore.
|
|
@@ -407,6 +541,8 @@ Configures the behavior of the Datastore.
|
|
|
407
541
|
| `maxMemorySize` | `MaxMemorySizeConfig or undefined` | Configuration for maximum memory size limits for the Datastore. This is used to specify optional limits on heap and stable memory for the smart contract. When the limit is reached, the Datastore and smart contract continue to operate normally but reject the creation or updates of documents. If not specified, no memory limits are enforced. type: {MaxMemorySizeConfig}optional |
|
|
408
542
|
| `version` | `bigint or undefined` | The current version of the config. Optional. The CLI will automatically resolve the version and warn you if there's a potential overwrite. You can provide it if you want to manage versioning manually within your config file. type: {bigint}optional |
|
|
409
543
|
|
|
544
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/datastore.config.ts#L16)
|
|
545
|
+
|
|
410
546
|
#### :gear: EmulatorPorts
|
|
411
547
|
|
|
412
548
|
Represents the ports exposed by an emulator container.
|
|
@@ -416,6 +552,8 @@ Represents the ports exposed by an emulator container.
|
|
|
416
552
|
| `server` | `number or undefined` | The port of the server used to simulate execution. This is the port your app connects to. Also known as the "local Internet Computer replica" or the "Pocket-IC port". default: 5987 |
|
|
417
553
|
| `admin` | `number or undefined` | The port of the admin server used for tasks like transferring ICP from the ledger. default: 5999 |
|
|
418
554
|
|
|
555
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/emulator.config.ts#L26)
|
|
556
|
+
|
|
419
557
|
#### :gear: EmulatorSkylab
|
|
420
558
|
|
|
421
559
|
Configuration for the Skylab emulator.
|
|
@@ -424,6 +562,8 @@ Configuration for the Skylab emulator.
|
|
|
424
562
|
| -------- | ------------------------------------------------------- | -------------------------------------- |
|
|
425
563
|
| `ports` | `(EmulatorPorts and { console: number; }) or undefined` | Ports exposed by the Skylab container. |
|
|
426
564
|
|
|
565
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/emulator.config.ts#L51)
|
|
566
|
+
|
|
427
567
|
#### :gear: EmulatorConsole
|
|
428
568
|
|
|
429
569
|
Configuration for the Console emulator.
|
|
@@ -432,6 +572,8 @@ Configuration for the Console emulator.
|
|
|
432
572
|
| -------- | ---------------------------- | --------------------------------------- |
|
|
433
573
|
| `ports` | `EmulatorPorts or undefined` | Ports exposed by the Console container. |
|
|
434
574
|
|
|
575
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/emulator.config.ts#L74)
|
|
576
|
+
|
|
435
577
|
#### :gear: EmulatorSatellite
|
|
436
578
|
|
|
437
579
|
Configuration for the Satellite emulator.
|
|
@@ -440,6 +582,8 @@ Configuration for the Satellite emulator.
|
|
|
440
582
|
| -------- | ---------------------------- | ----------------------------------------- |
|
|
441
583
|
| `ports` | `EmulatorPorts or undefined` | Ports exposed by the Satellite container. |
|
|
442
584
|
|
|
585
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/emulator.config.ts#L91)
|
|
586
|
+
|
|
443
587
|
#### :gear: EmulatorRunner
|
|
444
588
|
|
|
445
589
|
Shared options for all runner variants.
|
|
@@ -453,6 +597,8 @@ Shared options for all runner variants.
|
|
|
453
597
|
| `target` | `string or undefined` | Shared folder for deploying and hot-reloading serverless functions. |
|
|
454
598
|
| `platform` | `"linux/amd64" or "linux/arm64" or undefined` | The platform to use when running the emulator container. |
|
|
455
599
|
|
|
600
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/emulator.config.ts#L113)
|
|
601
|
+
|
|
456
602
|
#### :gear: ModuleSettings
|
|
457
603
|
|
|
458
604
|
Settings for a module - Satellite, Mission Control or Orbiter.
|
|
@@ -468,6 +614,8 @@ These settings control various aspects of the module's behavior and resource usa
|
|
|
468
614
|
| `memoryAllocation` | `bigint or undefined` | The amount of memory explicitly allocated to the module. For example, setting it to `BigInt(1024 * 1024 * 128)` allocates 128 MB of memory to the module. type: {bigint} |
|
|
469
615
|
| `computeAllocation` | `bigint or undefined` | The proportion of compute capacity allocated to the module. This is a fraction of the total compute capacity of the subnet. For example, setting it to `BigInt(10)` allocates 10% of the compute capacity to the module. type: {bigint} |
|
|
470
616
|
|
|
617
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/module.settings.ts#L37)
|
|
618
|
+
|
|
471
619
|
#### :gear: JunoConfigEnv
|
|
472
620
|
|
|
473
621
|
Represents the environment configuration for Juno.
|
|
@@ -476,6 +624,8 @@ Represents the environment configuration for Juno.
|
|
|
476
624
|
| -------- | -------- | ---------------------------------------------------------- |
|
|
477
625
|
| `mode` | `string` | The mode of the Juno configuration. type: {JunoConfigMode} |
|
|
478
626
|
|
|
627
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/types/juno.env.ts#L25)
|
|
628
|
+
|
|
479
629
|
#### :gear: OrbiterId
|
|
480
630
|
|
|
481
631
|
Represents the configuration for an orbiter.
|
|
@@ -484,6 +634,8 @@ Represents the configuration for an orbiter.
|
|
|
484
634
|
| -------- | -------- | -------------------------------------------------------------- |
|
|
485
635
|
| `id` | `string` | The identifier of the orbiter used in the dApp. type: {string} |
|
|
486
636
|
|
|
637
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/orbiter.config.ts#L18)
|
|
638
|
+
|
|
487
639
|
#### :gear: OrbiterIds
|
|
488
640
|
|
|
489
641
|
Represents a mapping of orbiter identitifiers to different configurations based on the mode of the application.
|
|
@@ -492,6 +644,8 @@ Represents a mapping of orbiter identitifiers to different configurations based
|
|
|
492
644
|
| -------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
493
645
|
| `ids` | `Record<string, string>` | A mapping of orbiter identifiers (IDs) to different configurations based on the mode of the application. This allows the application to use different orbiter IDs, such as production, development, etc. Example: { "production": "xo2hm-lqaaa-aaaal-ab3oa-cai", "development": "gl6nx-5maaa-aaaaa-qaaqq-cai" } type: {Record<JunoConfigMode, string>} |
|
|
494
646
|
|
|
647
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/orbiter.config.ts#L37)
|
|
648
|
+
|
|
495
649
|
#### :gear: StorageConfigHeader
|
|
496
650
|
|
|
497
651
|
Headers allow the client and the Storage to pass additional information along with a request or a response.
|
|
@@ -502,6 +656,8 @@ Some sets of headers can affect how the browser handles the page and its content
|
|
|
502
656
|
| `source` | `string` | The glob pattern used to match files within the Storage that these headers will apply to. type: {StorageConfigSourceGlob} |
|
|
503
657
|
| `headers` | `[string, string][]` | An array of key-value pairs representing the headers to apply. Each pair includes the header name and its value. Example: `[["Cache-Control", "max-age=3600"], ["X-Custom-Header", "value"]]` type: {Array<[string, string]>} |
|
|
504
658
|
|
|
659
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/shared/storage.config.ts#L30)
|
|
660
|
+
|
|
505
661
|
#### :gear: StorageConfigRewrite
|
|
506
662
|
|
|
507
663
|
You can utilize optional rewrites to display the same content for multiple URLs.
|
|
@@ -512,6 +668,8 @@ Rewrites are especially useful when combined with pattern matching, allowing acc
|
|
|
512
668
|
| `source` | `string` | The glob pattern or specific path to match for incoming requests. Matches are rewritten to the specified destination. type: {StorageConfigSourceGlob} |
|
|
513
669
|
| `destination` | `string` | The destination path or file to which matching requests should be rewritten. type: {string} |
|
|
514
670
|
|
|
671
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/shared/storage.config.ts#L61)
|
|
672
|
+
|
|
515
673
|
#### :gear: StorageConfigRedirect
|
|
516
674
|
|
|
517
675
|
Use a URL redirect to prevent broken links if you've moved a page or to shorten URLs.
|
|
@@ -522,6 +680,8 @@ Use a URL redirect to prevent broken links if you've moved a page or to shorten
|
|
|
522
680
|
| `location` | `string` | The URL or path to which the request should be redirected. type: {string} |
|
|
523
681
|
| `code` | `301 or 302` | The HTTP status code to use for the redirect, typically 301 (permanent redirect) or 302 (temporary redirect). type: {301 or 302} |
|
|
524
682
|
|
|
683
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/shared/storage.config.ts#L91)
|
|
684
|
+
|
|
525
685
|
#### :gear: StorageConfig
|
|
526
686
|
|
|
527
687
|
Configures the hosting behavior of the Storage.
|
|
@@ -536,6 +696,8 @@ Configures the hosting behavior of the Storage.
|
|
|
536
696
|
| `maxMemorySize` | `MaxMemorySizeConfig or undefined` | Configuration for maximum memory size limits for the Storage. This is used to specify optional limits on heap and stable memory for the smart contract. When the limit is reached, the Storage and smart contract continue to operate normally but reject the upload of new assets. If not specified, no memory limits are enforced. type: {MaxMemorySizeConfig}optional |
|
|
537
697
|
| `version` | `bigint or undefined` | The current version of the config. Optional. The CLI will automatically resolve the version and warn you if there's a potential overwrite. You can provide it if you want to manage versioning manually within your config file. type: {bigint}optional |
|
|
538
698
|
|
|
699
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/shared/storage.config.ts#L128)
|
|
700
|
+
|
|
539
701
|
#### :gear: CliConfig
|
|
540
702
|
|
|
541
703
|
| Property | Type | Description |
|
|
@@ -547,6 +709,8 @@ Configures the hosting behavior of the Storage.
|
|
|
547
709
|
| `predeploy` | `string[] or undefined` | Defines a list of scripts or commands to be run before the deployment process begins. This can be useful for tasks such as compiling assets, running tests, or building production-ready files. Example: `json { "predeploy": ["npm run build", "npm run lint"] } ` type: {string[]}optional |
|
|
548
710
|
| `postdeploy` | `string[] or undefined` | Defines a list of scripts or commands to be run after the deployment process completes. This can be used for tasks such as notifications, cleanup, or sending confirmation messages to services or team members. Example: `json { "postdeploy": ["./scripts/notify-admins.sh", "echo 'Deployment complete'"] } ` type: {string[]}optional |
|
|
549
711
|
|
|
712
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/types/cli.config.ts#L18)
|
|
713
|
+
|
|
550
714
|
#### :gear: SatelliteId
|
|
551
715
|
|
|
552
716
|
Represents the unique identifier for a satellite.
|
|
@@ -555,6 +719,8 @@ Represents the unique identifier for a satellite.
|
|
|
555
719
|
| -------- | -------- | -------------------------------------------------------------------------------- |
|
|
556
720
|
| `id` | `string` | The unique identifier (ID) of the satellite for this application. type: {string} |
|
|
557
721
|
|
|
722
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/satellite.config.ts#L25)
|
|
723
|
+
|
|
558
724
|
#### :gear: SatelliteIds
|
|
559
725
|
|
|
560
726
|
Represents a mapping of satellite identifiers to different configurations based on the mode of the application.
|
|
@@ -563,6 +729,8 @@ Represents a mapping of satellite identifiers to different configurations based
|
|
|
563
729
|
| -------- | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
564
730
|
| `ids` | `Record<string, string>` | A mapping of satellite identifiers (IDs) to different configurations based on the mode of the application. This allows the application to use different satellite IDs, such as production, staging, etc. Example: { "production": "xo2hm-lqaaa-aaaal-ab3oa-cai", "staging": "gl6nx-5maaa-aaaaa-qaaqq-cai" } type: {Record<JunoConfigMode, string>} |
|
|
565
731
|
|
|
732
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/satellite.config.ts#L44)
|
|
733
|
+
|
|
566
734
|
#### :gear: SatelliteConfigOptions
|
|
567
735
|
|
|
568
736
|
SatelliteConfigOptions interface provides configuration settings that allow for fine-tuning
|
|
@@ -581,6 +749,8 @@ changes, typically through CLI commands (e.g., `juno config`).
|
|
|
581
749
|
| `settings` | `ModuleSettings or undefined` | Optional configuration parameters for the Satellite. These settings control various aspects of the module's behavior and resource usage. type: {ModuleSettings}optional |
|
|
582
750
|
| `collections` | `Collections or undefined` | Optional configuration for the Datastore and Storage collections. type: {Collections}optional |
|
|
583
751
|
|
|
752
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/satellite.config.ts#L106)
|
|
753
|
+
|
|
584
754
|
### :cocktail: Types
|
|
585
755
|
|
|
586
756
|
- [PermissionText](#gear-permissiontext)
|