@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.
- package/README.md +79 -79
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +2 -2
- package/dist/node/index.mjs +1 -1
- package/dist/node/index.mjs.map +2 -2
- package/dist/types/console/console.config.d.ts +55 -291
- package/dist/types/module/module.settings.d.ts +9 -17
- package/dist/types/pkg/juno.package.d.ts +1 -9
- package/dist/types/satellite/dev/juno.dev.config.d.ts +171 -541
- package/dist/types/satellite/mainnet/configs/assertions.config.d.ts +2 -6
- package/dist/types/satellite/mainnet/configs/authentication.config.d.ts +7 -29
- package/dist/types/satellite/mainnet/configs/datastore.config.d.ts +2 -18
- package/dist/types/satellite/mainnet/configs/emulator.config.d.ts +37 -216
- package/dist/types/satellite/mainnet/configs/orbiter.config.d.ts +9 -25
- package/dist/types/satellite/mainnet/configs/satellite.config.d.ts +59 -469
- package/dist/types/satellite/mainnet/juno.config.d.ts +98 -969
- package/dist/types/satellite/types/rules.d.ts +31 -33
- package/dist/types/shared/feature.config.d.ts +1 -7
- package/dist/types/shared/storage.config.d.ts +17 -99
- package/dist/types/types/cli.config.d.ts +12 -20
- package/dist/types/types/encoding.d.ts +7 -1
- package/dist/types/types/juno.env.d.ts +3 -7
- package/dist/types/utils/principal.utils.d.ts +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -88,71 +88,71 @@ Configuration options for [Juno] CLI.
|
|
|
88
88
|
|
|
89
89
|
| Constant | Type |
|
|
90
90
|
| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
91
|
-
| `EmulatorConfigSchema` | `ZodUnion<[ZodObject<{ runner: ZodOptional<ZodObject<{ type: ZodEnum<
|
|
91
|
+
| `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...` |
|
|
92
92
|
|
|
93
93
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/mainnet/configs/emulator.config.ts#L151)
|
|
94
94
|
|
|
95
95
|
#### :gear: JunoConfigModeSchema
|
|
96
96
|
|
|
97
|
-
| Constant | Type
|
|
98
|
-
| ---------------------- |
|
|
99
|
-
| `JunoConfigModeSchema` | `ZodUnion<[ZodLiteral<"production">, ZodString]>` |
|
|
97
|
+
| Constant | Type |
|
|
98
|
+
| ---------------------- | ---------------------------------------------------------- |
|
|
99
|
+
| `JunoConfigModeSchema` | `ZodUnion<readonly [ZodLiteral<"production">, ZodString]>` |
|
|
100
100
|
|
|
101
101
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/types/juno.env.ts#L6)
|
|
102
102
|
|
|
103
103
|
#### :gear: JunoConfigEnvSchema
|
|
104
104
|
|
|
105
|
-
| Constant | Type
|
|
106
|
-
| --------------------- |
|
|
107
|
-
| `JunoConfigEnvSchema` | `ZodObject<{ mode: ZodUnion<[ZodLiteral<"production">, ZodString]>; },
|
|
105
|
+
| Constant | Type |
|
|
106
|
+
| --------------------- | ---------------------------------------------------------------------------------------- |
|
|
107
|
+
| `JunoConfigEnvSchema` | `ZodObject<{ mode: ZodUnion<readonly [ZodLiteral<"production">, ZodString]>; }, $strip>` |
|
|
108
108
|
|
|
109
109
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/types/juno.env.ts#L17)
|
|
110
110
|
|
|
111
111
|
#### :gear: OrbiterIdSchema
|
|
112
112
|
|
|
113
|
-
| Constant | Type
|
|
114
|
-
| ----------------- |
|
|
115
|
-
| `OrbiterIdSchema` | `ZodObject<{ id:
|
|
113
|
+
| Constant | Type |
|
|
114
|
+
| ----------------- | --------------------------------------- |
|
|
115
|
+
| `OrbiterIdSchema` | `ZodObject<{ id: ZodString; }, $strip>` |
|
|
116
116
|
|
|
117
117
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/mainnet/configs/orbiter.config.ts#L10)
|
|
118
118
|
|
|
119
119
|
#### :gear: OrbiterIdsSchema
|
|
120
120
|
|
|
121
|
-
| Constant | Type
|
|
122
|
-
| ------------------ |
|
|
123
|
-
| `OrbiterIdsSchema` | `ZodObject<{ ids: ZodRecord<ZodUnion<[ZodLiteral<"production">, ZodString]>,
|
|
121
|
+
| Constant | Type |
|
|
122
|
+
| ------------------ | ------------------------------------------------------------------------------------------------------------- |
|
|
123
|
+
| `OrbiterIdsSchema` | `ZodObject<{ ids: ZodRecord<ZodUnion<readonly [ZodLiteral<"production">, ZodString]>, ZodString>; }, $strip>` |
|
|
124
124
|
|
|
125
125
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/mainnet/configs/orbiter.config.ts#L29)
|
|
126
126
|
|
|
127
127
|
#### :gear: OrbiterConfigSchema
|
|
128
128
|
|
|
129
|
-
| Constant | Type
|
|
130
|
-
| --------------------- |
|
|
131
|
-
| `OrbiterConfigSchema` | `ZodUnion<[ZodObject<{ id:
|
|
129
|
+
| Constant | Type |
|
|
130
|
+
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
131
|
+
| `OrbiterConfigSchema` | `ZodUnion<readonly [ZodObject<{ id: ZodString; }, $strict>, ZodObject<{ ids: ZodRecord<ZodUnion<readonly [ZodLiteral<"production">, ZodString]>, ZodString>; }, $strict>]>` |
|
|
132
132
|
|
|
133
133
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/mainnet/configs/orbiter.config.ts#L56)
|
|
134
134
|
|
|
135
135
|
#### :gear: ModuleLogVisibilitySchema
|
|
136
136
|
|
|
137
|
-
| Constant | Type
|
|
138
|
-
| --------------------------- |
|
|
139
|
-
| `ModuleLogVisibilitySchema` | `ZodEnum<
|
|
137
|
+
| Constant | Type |
|
|
138
|
+
| --------------------------- | ------------------------------------------------------------ |
|
|
139
|
+
| `ModuleLogVisibilitySchema` | `ZodEnum<{ controllers: "controllers"; public: "public"; }>` |
|
|
140
140
|
|
|
141
141
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/module/module.settings.ts#L6)
|
|
142
142
|
|
|
143
143
|
#### :gear: ModuleSettingsSchema
|
|
144
144
|
|
|
145
|
-
| Constant | Type
|
|
146
|
-
| ---------------------- |
|
|
147
|
-
| `ModuleSettingsSchema` | `ZodObject<{ freezingThreshold: ZodOptional<ZodBigInt>; reservedCyclesLimit: ZodOptional<ZodBigInt>; logVisibility: ZodOptional<ZodEnum<
|
|
145
|
+
| Constant | Type |
|
|
146
|
+
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
147
|
+
| `ModuleSettingsSchema` | `ZodObject<{ freezingThreshold: ZodOptional<ZodBigInt>; reservedCyclesLimit: ZodOptional<ZodBigInt>; logVisibility: ZodOptional<ZodEnum<{ controllers: "controllers"; public: "public"; }>>; heapMemoryLimit: ZodOptional<...>; memoryAllocation: ZodOptional<...>; computeAllocation: ZodOptional<...>; }, $strict>` |
|
|
148
148
|
|
|
149
149
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/module/module.settings.ts#L21)
|
|
150
150
|
|
|
151
151
|
#### :gear: MaxMemorySizeConfigSchema
|
|
152
152
|
|
|
153
|
-
| Constant | Type
|
|
154
|
-
| --------------------------- |
|
|
155
|
-
| `MaxMemorySizeConfigSchema` | `ZodObject<{ heap: ZodOptional<ZodBigInt>; stable: ZodOptional<ZodBigInt>; },
|
|
153
|
+
| Constant | Type |
|
|
154
|
+
| --------------------------- | --------------------------------------------------------------------------------------- |
|
|
155
|
+
| `MaxMemorySizeConfigSchema` | `ZodObject<{ heap: ZodOptional<ZodBigInt>; stable: ZodOptional<ZodBigInt>; }, $strict>` |
|
|
156
156
|
|
|
157
157
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/shared/feature.config.ts#L6)
|
|
158
158
|
|
|
@@ -166,33 +166,33 @@ Configuration options for [Juno] CLI.
|
|
|
166
166
|
|
|
167
167
|
#### :gear: StorageConfigHeaderSchema
|
|
168
168
|
|
|
169
|
-
| Constant | Type
|
|
170
|
-
| --------------------------- |
|
|
171
|
-
| `StorageConfigHeaderSchema` | `ZodObject<{ source: ZodString; headers: ZodArray<ZodTuple<[ZodString, ZodString], null
|
|
169
|
+
| Constant | Type |
|
|
170
|
+
| --------------------------- | ------------------------------------------------------------------------------------------------------- |
|
|
171
|
+
| `StorageConfigHeaderSchema` | `ZodObject<{ source: ZodString; headers: ZodArray<ZodTuple<[ZodString, ZodString], null>>; }, $strict>` |
|
|
172
172
|
|
|
173
173
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/shared/storage.config.ts#L18)
|
|
174
174
|
|
|
175
175
|
#### :gear: StorageConfigRewriteSchema
|
|
176
176
|
|
|
177
|
-
| Constant | Type
|
|
178
|
-
| ---------------------------- |
|
|
179
|
-
| `StorageConfigRewriteSchema` | `ZodObject<{ source: ZodString; destination: ZodString; },
|
|
177
|
+
| Constant | Type |
|
|
178
|
+
| ---------------------------- | -------------------------------------------------------------------- |
|
|
179
|
+
| `StorageConfigRewriteSchema` | `ZodObject<{ source: ZodString; destination: ZodString; }, $strict>` |
|
|
180
180
|
|
|
181
181
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/shared/storage.config.ts#L49)
|
|
182
182
|
|
|
183
183
|
#### :gear: StorageConfigRedirectSchema
|
|
184
184
|
|
|
185
|
-
| Constant | Type
|
|
186
|
-
| ----------------------------- |
|
|
187
|
-
| `StorageConfigRedirectSchema` | `ZodObject<{ source: ZodString; location: ZodString; code: ZodUnion<[ZodLiteral<301>, ZodLiteral<302>]>; },
|
|
185
|
+
| Constant | Type |
|
|
186
|
+
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
|
187
|
+
| `StorageConfigRedirectSchema` | `ZodObject<{ source: ZodString; location: ZodString; code: ZodUnion<readonly [ZodLiteral<301>, ZodLiteral<302>]>; }, $strict>` |
|
|
188
188
|
|
|
189
189
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/shared/storage.config.ts#L79)
|
|
190
190
|
|
|
191
191
|
#### :gear: StorageConfigSchema
|
|
192
192
|
|
|
193
|
-
| Constant | Type
|
|
194
|
-
| --------------------- |
|
|
195
|
-
| `StorageConfigSchema` | `ZodObject<{ headers: ZodOptional<ZodArray<ZodObject<{ source: ZodString; headers: ZodArray<ZodTuple<[ZodString, ZodString], null
|
|
193
|
+
| Constant | Type |
|
|
194
|
+
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
195
|
+
| `StorageConfigSchema` | `ZodObject<{ headers: ZodOptional<ZodArray<ZodObject<{ source: ZodString; headers: ZodArray<ZodTuple<[ZodString, ZodString], null>>; }, $strict>>>; ... 4 more ...; maxMemorySize: ZodOptional<...>; }, $strip>` |
|
|
196
196
|
|
|
197
197
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/shared/storage.config.ts#L114)
|
|
198
198
|
|
|
@@ -200,65 +200,65 @@ Configuration options for [Juno] CLI.
|
|
|
200
200
|
|
|
201
201
|
see EncodingType
|
|
202
202
|
|
|
203
|
-
| Constant | Type
|
|
204
|
-
| -------------------- |
|
|
205
|
-
| `EncodingTypeSchema` | `ZodEnum<
|
|
203
|
+
| Constant | Type |
|
|
204
|
+
| -------------------- | ------------------------------------------------------------------------------------------------------ |
|
|
205
|
+
| `EncodingTypeSchema` | `ZodEnum<{ identity: "identity"; gzip: "gzip"; compress: "compress"; deflate: "deflate"; br: "br"; }>` |
|
|
206
206
|
|
|
207
207
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/types/encoding.ts#L6)
|
|
208
208
|
|
|
209
209
|
#### :gear: CliConfigSchema
|
|
210
210
|
|
|
211
|
-
| Constant | Type
|
|
212
|
-
| ----------------- |
|
|
213
|
-
| `CliConfigSchema` | `ZodObject<{ source: ZodOptional<ZodString>; ignore: ZodOptional<ZodArray<ZodString
|
|
211
|
+
| Constant | Type |
|
|
212
|
+
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
213
|
+
| `CliConfigSchema` | `ZodObject<{ source: ZodOptional<ZodString>; ignore: ZodOptional<ZodArray<ZodString>>; gzip: ZodOptional<ZodUnion<readonly [ZodString, ZodLiteral<...>]>>; encoding: ZodOptional<...>; predeploy: ZodOptional<...>; postdeploy: ZodOptional<...>; }, $strict>` |
|
|
214
214
|
|
|
215
215
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/types/cli.config.ts#L7)
|
|
216
216
|
|
|
217
217
|
#### :gear: SatelliteAssertionsSchema
|
|
218
218
|
|
|
219
|
-
| Constant | Type
|
|
220
|
-
| --------------------------- |
|
|
221
|
-
| `SatelliteAssertionsSchema` | `ZodObject<{ heapMemory: ZodOptional<ZodUnion<[ZodNumber, ZodBoolean]>>; },
|
|
219
|
+
| Constant | Type |
|
|
220
|
+
| --------------------------- | ---------------------------------------------------------------------------------------------- |
|
|
221
|
+
| `SatelliteAssertionsSchema` | `ZodObject<{ heapMemory: ZodOptional<ZodUnion<readonly [ZodNumber, ZodBoolean]>>; }, $strict>` |
|
|
222
222
|
|
|
223
223
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/mainnet/configs/assertions.config.ts#L6)
|
|
224
224
|
|
|
225
225
|
#### :gear: AuthenticationConfigInternetIdentitySchema
|
|
226
226
|
|
|
227
|
-
| Constant | Type
|
|
228
|
-
| -------------------------------------------- |
|
|
229
|
-
| `AuthenticationConfigInternetIdentitySchema` | `ZodObject<{ derivationOrigin: ZodOptional<
|
|
227
|
+
| Constant | Type |
|
|
228
|
+
| -------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
|
|
229
|
+
| `AuthenticationConfigInternetIdentitySchema` | `ZodObject<{ derivationOrigin: ZodOptional<ZodURL>; externalAlternativeOrigins: ZodOptional<ZodArray<ZodURL>>; }, $strict>` |
|
|
230
230
|
|
|
231
231
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/mainnet/configs/authentication.config.ts#L6)
|
|
232
232
|
|
|
233
233
|
#### :gear: AuthenticationConfigSchema
|
|
234
234
|
|
|
235
|
-
| Constant | Type
|
|
236
|
-
| ---------------------------- |
|
|
237
|
-
| `AuthenticationConfigSchema` | `ZodObject<{ internetIdentity: ZodOptional<ZodObject<{ derivationOrigin: ZodOptional<
|
|
235
|
+
| Constant | Type |
|
|
236
|
+
| ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
237
|
+
| `AuthenticationConfigSchema` | `ZodObject<{ internetIdentity: ZodOptional<ZodObject<{ derivationOrigin: ZodOptional<ZodURL>; externalAlternativeOrigins: ZodOptional<ZodArray<ZodURL>>; }, $strict>>; }, $strict>` |
|
|
238
238
|
|
|
239
239
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/mainnet/configs/authentication.config.ts#L35)
|
|
240
240
|
|
|
241
241
|
#### :gear: DatastoreConfigSchema
|
|
242
242
|
|
|
243
|
-
| Constant | Type
|
|
244
|
-
| ----------------------- |
|
|
245
|
-
| `DatastoreConfigSchema` | `ZodObject<{ maxMemorySize: ZodOptional<ZodObject<{ heap: ZodOptional<ZodBigInt>; stable: ZodOptional<ZodBigInt>; },
|
|
243
|
+
| Constant | Type |
|
|
244
|
+
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
245
|
+
| `DatastoreConfigSchema` | `ZodObject<{ maxMemorySize: ZodOptional<ZodObject<{ heap: ZodOptional<ZodBigInt>; stable: ZodOptional<ZodBigInt>; }, $strict>>; }, $strict>` |
|
|
246
246
|
|
|
247
247
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/mainnet/configs/datastore.config.ts#L7)
|
|
248
248
|
|
|
249
249
|
#### :gear: SatelliteIdSchema
|
|
250
250
|
|
|
251
|
-
| Constant | Type
|
|
252
|
-
| ------------------- |
|
|
253
|
-
| `SatelliteIdSchema` | `ZodObject<{ id:
|
|
251
|
+
| Constant | Type |
|
|
252
|
+
| ------------------- | --------------------------------------- |
|
|
253
|
+
| `SatelliteIdSchema` | `ZodObject<{ id: ZodString; }, $strip>` |
|
|
254
254
|
|
|
255
255
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/mainnet/configs/satellite.config.ts#L16)
|
|
256
256
|
|
|
257
257
|
#### :gear: SatelliteIdsSchema
|
|
258
258
|
|
|
259
|
-
| Constant | Type
|
|
260
|
-
| -------------------- |
|
|
261
|
-
| `SatelliteIdsSchema` | `ZodObject<{ ids: ZodRecord<ZodUnion<[ZodLiteral<"production">, ZodString]>,
|
|
259
|
+
| Constant | Type |
|
|
260
|
+
| -------------------- | ------------------------------------------------------------------------------------------------------------- |
|
|
261
|
+
| `SatelliteIdsSchema` | `ZodObject<{ ids: ZodRecord<ZodUnion<readonly [ZodLiteral<"production">, ZodString]>, ZodString>; }, $strip>` |
|
|
262
262
|
|
|
263
263
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/mainnet/configs/satellite.config.ts#L35)
|
|
264
264
|
|
|
@@ -266,7 +266,7 @@ see EncodingType
|
|
|
266
266
|
|
|
267
267
|
| Constant | Type |
|
|
268
268
|
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
269
|
-
| `SatelliteConfigOptionsSchema` | `ZodUnion<[ZodObject<{ storage: ZodOptional<ZodObject<{ headers: ZodOptional<ZodArray<ZodObject<{ source: ZodString; headers: ZodArray<ZodTuple<[ZodString, ZodString], null
|
|
269
|
+
| `SatelliteConfigOptionsSchema` | `ZodUnion<readonly [ZodObject<{ storage: ZodOptional<ZodObject<{ headers: ZodOptional<ZodArray<ZodObject<{ source: ZodString; headers: ZodArray<ZodTuple<[ZodString, ZodString], null>>; }, $strict>>>; ... 4 more ...; maxMemorySize: ZodOptional<...>; }, $strip>>; ... 4 more ...; id: ZodString; }, $strict>, ZodObject<.....` |
|
|
270
270
|
|
|
271
271
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/mainnet/configs/satellite.config.ts#L70)
|
|
272
272
|
|
|
@@ -274,47 +274,47 @@ see EncodingType
|
|
|
274
274
|
|
|
275
275
|
| Constant | Type |
|
|
276
276
|
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
277
|
-
| `JunoConfigSchema` | `ZodObject<{ satellite: ZodUnion<[ZodObject<{ storage: ZodOptional<ZodObject<{ headers: ZodOptional<ZodArray<ZodObject<{ source: ZodString; headers: ZodArray<ZodTuple<[ZodString, ZodString], null
|
|
277
|
+
| `JunoConfigSchema` | `ZodObject<{ satellite: ZodUnion<readonly [ZodObject<{ storage: ZodOptional<ZodObject<{ headers: ZodOptional<ZodArray<ZodObject<{ source: ZodString; headers: ZodArray<ZodTuple<[ZodString, ZodString], null>>; }, $strict>>>; ... 4 more ...; maxMemorySize: ZodOptional<...>; }, $strip>>; ... 4 more ...; id: ZodString; },...` |
|
|
278
278
|
|
|
279
279
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/mainnet/juno.config.ts#L9)
|
|
280
280
|
|
|
281
281
|
#### :gear: SatelliteDevDataStoreCollectionSchema
|
|
282
282
|
|
|
283
|
-
| Constant | Type
|
|
284
|
-
| --------------------------------------- |
|
|
285
|
-
| `SatelliteDevDataStoreCollectionSchema` | `ZodObject<
|
|
283
|
+
| Constant | Type |
|
|
284
|
+
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
285
|
+
| `SatelliteDevDataStoreCollectionSchema` | `ZodObject<{ collection: ZodString; read: ZodEnum<{ controllers: "controllers"; public: "public"; private: "private"; managed: "managed"; }>; write: ZodEnum<{ controllers: "controllers"; public: "public"; private: "private"; managed: "managed"; }>; ... 4 more ...; maxTokens: ZodOptional<...>; }, $strict>` |
|
|
286
286
|
|
|
287
287
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/dev/juno.dev.config.ts#L8)
|
|
288
288
|
|
|
289
289
|
#### :gear: SatelliteDevStorageCollectionSchema
|
|
290
290
|
|
|
291
|
-
| Constant | Type
|
|
292
|
-
| ------------------------------------- |
|
|
293
|
-
| `SatelliteDevStorageCollectionSchema` | `ZodObject<
|
|
291
|
+
| Constant | Type |
|
|
292
|
+
| ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
293
|
+
| `SatelliteDevStorageCollectionSchema` | `ZodObject<{ collection: ZodString; read: ZodEnum<{ controllers: "controllers"; public: "public"; private: "private"; managed: "managed"; }>; write: ZodEnum<{ controllers: "controllers"; public: "public"; private: "private"; managed: "managed"; }>; ... 4 more ...; maxTokens: ZodOptional<...>; }, $strict>` |
|
|
294
294
|
|
|
295
295
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/dev/juno.dev.config.ts#L27)
|
|
296
296
|
|
|
297
297
|
#### :gear: SatelliteDevCollectionsSchema
|
|
298
298
|
|
|
299
|
-
| Constant | Type
|
|
300
|
-
| ------------------------------- |
|
|
301
|
-
| `SatelliteDevCollectionsSchema` | `ZodObject<{ datastore: ZodOptional<ZodArray<ZodObject<
|
|
299
|
+
| Constant | Type |
|
|
300
|
+
| ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
301
|
+
| `SatelliteDevCollectionsSchema` | `ZodObject<{ datastore: ZodOptional<ZodArray<ZodObject<{ collection: ZodString; read: ZodEnum<{ controllers: "controllers"; public: "public"; private: "private"; managed: "managed"; }>; write: ZodEnum<{ controllers: "controllers"; public: "public"; private: "private"; managed: "managed"; }>; ... 4 more ...; maxTokens...` |
|
|
302
302
|
|
|
303
303
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/dev/juno.dev.config.ts#L46)
|
|
304
304
|
|
|
305
305
|
#### :gear: SatelliteDevControllerSchema
|
|
306
306
|
|
|
307
|
-
| Constant | Type
|
|
308
|
-
| ------------------------------ |
|
|
309
|
-
| `SatelliteDevControllerSchema` | `ZodObject<{ id:
|
|
307
|
+
| Constant | Type |
|
|
308
|
+
| ------------------------------ | --------------------------------------------------------------------------------------------------------------- |
|
|
309
|
+
| `SatelliteDevControllerSchema` | `ZodObject<{ id: ZodString; scope: ZodEnum<{ admin: "admin"; write: "write"; submit: "submit"; }>; }, $strict>` |
|
|
310
310
|
|
|
311
311
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/dev/juno.dev.config.ts#L74)
|
|
312
312
|
|
|
313
313
|
#### :gear: SatelliteDevConfigSchema
|
|
314
314
|
|
|
315
|
-
| Constant | Type
|
|
316
|
-
| -------------------------- |
|
|
317
|
-
| `SatelliteDevConfigSchema` | `ZodObject<{ collections: ZodObject<{ datastore: ZodOptional<ZodArray<ZodObject<
|
|
315
|
+
| Constant | Type |
|
|
316
|
+
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
317
|
+
| `SatelliteDevConfigSchema` | `ZodObject<{ collections: ZodObject<{ datastore: ZodOptional<ZodArray<ZodObject<{ collection: ZodString; read: ZodEnum<{ controllers: "controllers"; public: "public"; private: "private"; managed: "managed"; }>; ... 5 more ...; maxTokens: ZodOptional<...>; }, $strict>>>; storage: ZodOptional<...>; }, $strict>; control...` |
|
|
318
318
|
|
|
319
319
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/dev/juno.dev.config.ts#L100)
|
|
320
320
|
|
|
@@ -322,7 +322,7 @@ see EncodingType
|
|
|
322
322
|
|
|
323
323
|
| Constant | Type |
|
|
324
324
|
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
325
|
-
| `JunoDevConfigSchema` | `ZodObject<{ satellite: ZodObject<{ collections: ZodObject<{ datastore: ZodOptional<ZodArray<ZodObject<
|
|
325
|
+
| `JunoDevConfigSchema` | `ZodObject<{ satellite: ZodObject<{ collections: ZodObject<{ datastore: ZodOptional<ZodArray<ZodObject<{ collection: ZodString; read: ZodEnum<{ controllers: "controllers"; public: "public"; private: "private"; managed: "managed"; }>; ... 5 more ...; maxTokens: ZodOptional<...>; }, $strict>>>; storage: ZodOptional<......` |
|
|
326
326
|
|
|
327
327
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/dev/juno.dev.config.ts#L127)
|
|
328
328
|
|
package/dist/browser/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function fo(f){return f}import{PrincipalTextSchema as K}from"@dfinity/zod-schemas";import*as r from"zod";import*as o from"zod";import*as x from"zod";var S=x.object({heap:x.bigint().optional(),stable:x.bigint().optional()}).strict();var z=o.string(),L=o.object({source:z,headers:o.array(o.tuple([o.string(),o.string()]))}).strict(),G=o.object({source:z,destination:o.string()}).strict(),N=o.object({source:z,location:o.string(),code:o.union([o.literal(301),o.literal(302)])}).strict(),d=o.object({headers:o.array(L).optional(),rewrites:o.array(G).optional(),redirects:o.array(N).optional(),iframe:o.enum(["deny","same-origin","allow-any"]).optional(),rawAccess:o.boolean().optional(),maxMemorySize:S.optional()});import*as t from"zod";import*as O from"zod";var J=O.enum(["identity","gzip","compress","deflate","br"]);var v=t.object({source:t.string().optional(),ignore:t.array(t.string()).optional(),gzip:t.union([t.string(),t.literal(!1)]).optional(),encoding:t.array(t.tuple([t.string(),J])).optional(),predeploy:t.array(t.string()).optional(),postdeploy:t.array(t.string()).optional()}).strict();import*as s from"zod";var g=s.union([s.literal("production"),s.string()]),yo=s.object({mode:g});import{PrincipalTextSchema as U}from"@dfinity/zod-schemas";import*as j from"zod";var C=j.string().refine(f=>U.safeParse(f).success,{message:"Invalid textual representation of a Principal."});var V=r.object({id:K}),B=r.object({ids:r.record(g,C)}),D=r.object({...v.shape,storage:d.optional()}),Ao=r.union([r.object({...V.shape,...D.shape}).strict(),r.object({...B.shape,...D.shape}).strict()]);import*as a from"zod";var H=a.enum(["controllers","public"]),E=a.strictObject({freezingThreshold:a.bigint().optional(),reservedCyclesLimit:a.bigint().optional(),logVisibility:H.optional(),heapMemoryLimit:a.bigint().optional(),memoryAllocation:a.bigint().optional(),computeAllocation:a.bigint().optional()});import*as p from"zod";var q=p.record(p.string(),p.string()),Io=p.object({name:p.string(),version:p.string(),dependencies:q.optional()});var Ro="@junobuild/satellite",wo="@junobuild/sputnik",_o="@junobuild/mission-control",ko="@junobuild/orbiter";function Go(f){return f}import{PrincipalTextSchema as W}from"@dfinity/zod-schemas";import*as n from"zod";import*as i from"zod";var M=i.enum(["public","private","managed","controllers"]),Q=i.enum(["heap","stable"]),Uo=i.enum(["db","storage"]),b=i.strictObject({collection:i.string(),read:M,write:M,memory:Q,createdAt:i.bigint().optional(),updatedAt:i.bigint().optional(),version:i.bigint().optional(),maxSize:i.number().optional(),maxChangesPerUser:i.number().optional(),maxCapacity:i.number().optional(),mutablePermissions:i.boolean(),maxTokens:i.number().optional()});var X=b.omit({createdAt:!0,updatedAt:!0,maxSize:!0,version:!0}),Y=b.omit({createdAt:!0,updatedAt:!0,maxCapacity:!0,version:!0}),Z=n.strictObject({datastore:n.array(X).optional(),storage:n.array(Y).optional()}),$=n.strictObject({id:W,scope:n.enum(["write","admin","submit"])}),oo=n.strictObject({collections:Z,controllers:n.array($).optional()}),Ho=n.strictObject({satellite:oo});function Qo(f){return f}import*as l from"zod";var A=l.strictObject({heapMemory:l.union([l.number(),l.boolean()]).optional()});import*as m from"zod";var eo=m.strictObject({derivationOrigin:m.
|
|
1
|
+
function fo(f){return f}import{PrincipalTextSchema as K}from"@dfinity/zod-schemas";import*as r from"zod";import*as o from"zod";import*as x from"zod";var S=x.object({heap:x.bigint().optional(),stable:x.bigint().optional()}).strict();var z=o.string(),L=o.object({source:z,headers:o.array(o.tuple([o.string(),o.string()]))}).strict(),G=o.object({source:z,destination:o.string()}).strict(),N=o.object({source:z,location:o.string(),code:o.union([o.literal(301),o.literal(302)])}).strict(),d=o.object({headers:o.array(L).optional(),rewrites:o.array(G).optional(),redirects:o.array(N).optional(),iframe:o.enum(["deny","same-origin","allow-any"]).optional(),rawAccess:o.boolean().optional(),maxMemorySize:S.optional()});import*as t from"zod";import*as O from"zod";var J=O.enum(["identity","gzip","compress","deflate","br"]);var v=t.object({source:t.string().optional(),ignore:t.array(t.string()).optional(),gzip:t.union([t.string(),t.literal(!1)]).optional(),encoding:t.array(t.tuple([t.string(),J])).optional(),predeploy:t.array(t.string()).optional(),postdeploy:t.array(t.string()).optional()}).strict();import*as s from"zod";var g=s.union([s.literal("production"),s.string()]),yo=s.object({mode:g});import{PrincipalTextSchema as U}from"@dfinity/zod-schemas";import*as j from"zod";var C=j.string().refine(f=>U.safeParse(f).success,{message:"Invalid textual representation of a Principal."});var V=r.object({id:K}),B=r.object({ids:r.record(g,C)}),D=r.object({...v.shape,storage:d.optional()}),Ao=r.union([r.object({...V.shape,...D.shape}).strict(),r.object({...B.shape,...D.shape}).strict()]);import*as a from"zod";var H=a.enum(["controllers","public"]),E=a.strictObject({freezingThreshold:a.bigint().optional(),reservedCyclesLimit:a.bigint().optional(),logVisibility:H.optional(),heapMemoryLimit:a.bigint().optional(),memoryAllocation:a.bigint().optional(),computeAllocation:a.bigint().optional()});import*as p from"zod";var q=p.record(p.string(),p.string()),Io=p.object({name:p.string(),version:p.string(),dependencies:q.optional()});var Ro="@junobuild/satellite",wo="@junobuild/sputnik",_o="@junobuild/mission-control",ko="@junobuild/orbiter";function Go(f){return f}import{PrincipalTextSchema as W}from"@dfinity/zod-schemas";import*as n from"zod";import*as i from"zod";var M=i.enum(["public","private","managed","controllers"]),Q=i.enum(["heap","stable"]),Uo=i.enum(["db","storage"]),b=i.strictObject({collection:i.string(),read:M,write:M,memory:Q,createdAt:i.bigint().optional(),updatedAt:i.bigint().optional(),version:i.bigint().optional(),maxSize:i.number().optional(),maxChangesPerUser:i.number().optional(),maxCapacity:i.number().optional(),mutablePermissions:i.boolean(),maxTokens:i.number().optional()});var X=b.omit({createdAt:!0,updatedAt:!0,maxSize:!0,version:!0}),Y=b.omit({createdAt:!0,updatedAt:!0,maxCapacity:!0,version:!0}),Z=n.strictObject({datastore:n.array(X).optional(),storage:n.array(Y).optional()}),$=n.strictObject({id:W,scope:n.enum(["write","admin","submit"])}),oo=n.strictObject({collections:Z,controllers:n.array($).optional()}),Ho=n.strictObject({satellite:oo});function Qo(f){return f}import*as l from"zod";var A=l.strictObject({heapMemory:l.union([l.number(),l.boolean()]).optional()});import*as m from"zod";var eo=m.strictObject({derivationOrigin:m.url().optional(),externalAlternativeOrigins:m.array(m.url()).optional()}),P=m.strictObject({internetIdentity:eo.optional()});import*as T from"zod";var I=T.strictObject({maxMemorySize:S.optional()});import*as e from"zod";var h=e.strictObject({server:e.number().optional(),admin:e.number().optional()}),to=e.strictObject({console:e.number().optional()}),io=e.strictObject({ports:h.extend(to.shape).optional()}),no=e.strictObject({ports:h.optional()}),ro=e.strictObject({ports:h.optional()}),y=e.strictObject({type:e.enum(["docker","podman"]),image:e.string().optional(),name:e.string().optional(),volume:e.string().optional(),target:e.string().optional(),platform:e.enum(["linux/amd64","linux/arm64"]).optional()}),F=e.union([e.strictObject({runner:y.optional(),skylab:io}),e.strictObject({runner:y.optional(),console:no}),e.strictObject({runner:y.optional(),satellite:ro})]);import{PrincipalTextSchema as ao}from"@dfinity/zod-schemas";import*as u from"zod";var co=u.object({id:ao}),po=u.object({ids:u.record(g,C)}),R=u.union([co.strict(),po.strict()]);import{PrincipalTextSchema as so}from"@dfinity/zod-schemas";import*as c from"zod";var lo=c.object({id:so}),mo=c.object({ids:c.record(g,C)}),w=c.object({storage:d.optional(),datastore:I.optional(),authentication:P.optional(),assertions:A.optional(),settings:E.optional()}),_=c.union([c.object({...lo.shape,...w.shape}).strict(),c.object({...mo.shape,...w.shape}).strict()]);import*as k from"zod";var Se=k.strictObject({satellite:_,orbiter:R.optional(),emulator:F.optional()});export{eo as AuthenticationConfigInternetIdentitySchema,P as AuthenticationConfigSchema,v as CliConfigSchema,V as ConsoleIdSchema,B as ConsoleIdsSchema,I as DatastoreConfigSchema,F as EmulatorConfigSchema,J as EncodingTypeSchema,_o as JUNO_PACKAGE_MISSION_CONTROL_ID,ko as JUNO_PACKAGE_ORBITER_ID,Ro as JUNO_PACKAGE_SATELLITE_ID,wo as JUNO_PACKAGE_SPUTNIK_ID,yo as JunoConfigEnvSchema,g as JunoConfigModeSchema,Se as JunoConfigSchema,Ao as JunoConsoleConfigSchema,Ho as JunoDevConfigSchema,q as JunoPackageDependenciesSchema,Io as JunoPackageSchema,S as MaxMemorySizeConfigSchema,Q as MemoryTextSchema,H as ModuleLogVisibilitySchema,E as ModuleSettingsSchema,R as OrbiterConfigSchema,co as OrbiterIdSchema,po as OrbiterIdsSchema,M as PermissionTextSchema,b as RuleSchema,Uo as RulesTypeSchema,A as SatelliteAssertionsSchema,_ as SatelliteConfigOptionsSchema,Z as SatelliteDevCollectionsSchema,oo as SatelliteDevConfigSchema,$ as SatelliteDevControllerSchema,X as SatelliteDevDataStoreCollectionSchema,Y as SatelliteDevStorageCollectionSchema,lo as SatelliteIdSchema,mo as SatelliteIdsSchema,L as StorageConfigHeaderSchema,N as StorageConfigRedirectSchema,G as StorageConfigRewriteSchema,d as StorageConfigSchema,z as StorageConfigSourceGlobSchema,Qo as defineConfig,fo as defineConsoleConfig,Go as defineDevConfig};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|