@junobuild/config 0.2.3 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,14 @@
1
- import * as z from 'zod/v4';
1
+ import * as z from 'zod';
2
2
  /**
3
3
  * @see SatelliteAssertions
4
4
  */
5
5
  export declare const SatelliteAssertionsSchema: z.ZodObject<{
6
- heapMemory: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean]>>;
7
- }, z.core.$strict>;
6
+ heapMemory: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
7
+ }, "strict", z.ZodTypeAny, {
8
+ heapMemory?: number | boolean | undefined;
9
+ }, {
10
+ heapMemory?: number | boolean | undefined;
11
+ }>;
8
12
  /**
9
13
  * Configuration for satellite assertions.
10
14
  * @interface SatelliteAssertions
@@ -1,11 +1,17 @@
1
- import * as z from 'zod/v4';
1
+ import * as z from 'zod';
2
2
  /**
3
3
  * @see AuthenticationConfigInternetIdentity
4
4
  */
5
5
  export declare const AuthenticationConfigInternetIdentitySchema: z.ZodObject<{
6
- derivationOrigin: z.ZodOptional<z.ZodURL>;
7
- externalAlternativeOrigins: z.ZodOptional<z.ZodArray<z.ZodURL>>;
8
- }, z.core.$strict>;
6
+ derivationOrigin: z.ZodOptional<z.ZodString>;
7
+ externalAlternativeOrigins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8
+ }, "strict", z.ZodTypeAny, {
9
+ derivationOrigin?: string | undefined;
10
+ externalAlternativeOrigins?: string[] | undefined;
11
+ }, {
12
+ derivationOrigin?: string | undefined;
13
+ externalAlternativeOrigins?: string[] | undefined;
14
+ }>;
9
15
  /**
10
16
  * Configure the behavior of Internet Identity.
11
17
  * @interface AuthenticationConfigInternetIdentity
@@ -30,10 +36,26 @@ export interface AuthenticationConfigInternetIdentity {
30
36
  */
31
37
  export declare const AuthenticationConfigSchema: z.ZodObject<{
32
38
  internetIdentity: z.ZodOptional<z.ZodObject<{
33
- derivationOrigin: z.ZodOptional<z.ZodURL>;
34
- externalAlternativeOrigins: z.ZodOptional<z.ZodArray<z.ZodURL>>;
35
- }, z.core.$strict>>;
36
- }, z.core.$strict>;
39
+ derivationOrigin: z.ZodOptional<z.ZodString>;
40
+ externalAlternativeOrigins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
41
+ }, "strict", z.ZodTypeAny, {
42
+ derivationOrigin?: string | undefined;
43
+ externalAlternativeOrigins?: string[] | undefined;
44
+ }, {
45
+ derivationOrigin?: string | undefined;
46
+ externalAlternativeOrigins?: string[] | undefined;
47
+ }>>;
48
+ }, "strict", z.ZodTypeAny, {
49
+ internetIdentity?: {
50
+ derivationOrigin?: string | undefined;
51
+ externalAlternativeOrigins?: string[] | undefined;
52
+ } | undefined;
53
+ }, {
54
+ internetIdentity?: {
55
+ derivationOrigin?: string | undefined;
56
+ externalAlternativeOrigins?: string[] | undefined;
57
+ } | undefined;
58
+ }>;
37
59
  /**
38
60
  * Configures the Authentication options of a Satellite.
39
61
  * @interface AuthenticationConfig
@@ -1,4 +1,4 @@
1
- import * as z from 'zod/v4';
1
+ import * as z from 'zod';
2
2
  import { type MaxMemorySizeConfig } from '../../../shared/feature.config';
3
3
  /**
4
4
  * @see DatastoreConfig
@@ -7,8 +7,24 @@ export declare const DatastoreConfigSchema: z.ZodObject<{
7
7
  maxMemorySize: z.ZodOptional<z.ZodObject<{
8
8
  heap: z.ZodOptional<z.ZodBigInt>;
9
9
  stable: z.ZodOptional<z.ZodBigInt>;
10
- }, z.core.$strict>>;
11
- }, z.core.$strict>;
10
+ }, "strict", z.ZodTypeAny, {
11
+ heap?: bigint | undefined;
12
+ stable?: bigint | undefined;
13
+ }, {
14
+ heap?: bigint | undefined;
15
+ stable?: bigint | undefined;
16
+ }>>;
17
+ }, "strict", z.ZodTypeAny, {
18
+ maxMemorySize?: {
19
+ heap?: bigint | undefined;
20
+ stable?: bigint | undefined;
21
+ } | undefined;
22
+ }, {
23
+ maxMemorySize?: {
24
+ heap?: bigint | undefined;
25
+ stable?: bigint | undefined;
26
+ } | undefined;
27
+ }>;
12
28
  /**
13
29
  * Configures the behavior of the Datastore.
14
30
  * @interface DatastoreConfig
@@ -1,4 +1,4 @@
1
- import * as z from 'zod/v4';
1
+ import * as z from 'zod';
2
2
  /**
3
3
  * Represents the ports exposed by an emulator container.
4
4
  */
@@ -55,7 +55,7 @@ export interface EmulatorRunner {
55
55
  /**
56
56
  * The containerization tool to run the emulator.
57
57
  */
58
- type: 'docker';
58
+ type: 'docker' | 'podman';
59
59
  /**
60
60
  * Image reference.
61
61
  * @default depends on emulator type, e.g. "junobuild/skylab:latest"
@@ -83,41 +83,122 @@ export interface EmulatorRunner {
83
83
  /**
84
84
  * @see EmulatorConfig
85
85
  */
86
- export declare const EmulatorConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
86
+ export declare const EmulatorConfigSchema: z.ZodUnion<[z.ZodObject<{
87
87
  runner: z.ZodOptional<z.ZodObject<{
88
- type: z.ZodEnum<{
89
- docker: "docker";
90
- }>;
88
+ type: z.ZodEnum<["docker", "podman"]>;
91
89
  image: z.ZodOptional<z.ZodString>;
92
90
  name: z.ZodOptional<z.ZodString>;
93
91
  volume: z.ZodOptional<z.ZodString>;
94
92
  target: z.ZodOptional<z.ZodString>;
95
- platform: z.ZodOptional<z.ZodEnum<{
96
- "linux/amd64": "linux/amd64";
97
- "linux/arm64": "linux/arm64";
98
- }>>;
99
- }, z.core.$strict>>;
93
+ platform: z.ZodOptional<z.ZodEnum<["linux/amd64", "linux/arm64"]>>;
94
+ }, "strict", z.ZodTypeAny, {
95
+ type: "docker" | "podman";
96
+ name?: string | undefined;
97
+ image?: string | undefined;
98
+ volume?: string | undefined;
99
+ target?: string | undefined;
100
+ platform?: "linux/amd64" | "linux/arm64" | undefined;
101
+ }, {
102
+ type: "docker" | "podman";
103
+ name?: string | undefined;
104
+ image?: string | undefined;
105
+ volume?: string | undefined;
106
+ target?: string | undefined;
107
+ platform?: "linux/amd64" | "linux/arm64" | undefined;
108
+ }>>;
100
109
  skylab: z.ZodObject<{
101
110
  ports: z.ZodOptional<z.ZodObject<{
111
+ /**
112
+ * @default 5987
113
+ */
102
114
  server: z.ZodOptional<z.ZodNumber>;
115
+ /**
116
+ * @default 5999
117
+ */
103
118
  admin: z.ZodOptional<z.ZodNumber>;
119
+ } & {
120
+ /**
121
+ * Console UI (like https://console.juno.build) running with the emulator.
122
+ * @default 5866
123
+ */
104
124
  console: z.ZodOptional<z.ZodNumber>;
105
- }, z.core.$strict>>;
106
- }, z.core.$strict>;
107
- }, z.core.$strict>, z.ZodObject<{
125
+ }, "strict", z.ZodTypeAny, {
126
+ admin?: number | undefined;
127
+ server?: number | undefined;
128
+ console?: number | undefined;
129
+ }, {
130
+ admin?: number | undefined;
131
+ server?: number | undefined;
132
+ console?: number | undefined;
133
+ }>>;
134
+ }, "strict", z.ZodTypeAny, {
135
+ ports?: {
136
+ admin?: number | undefined;
137
+ server?: number | undefined;
138
+ console?: number | undefined;
139
+ } | undefined;
140
+ }, {
141
+ ports?: {
142
+ admin?: number | undefined;
143
+ server?: number | undefined;
144
+ console?: number | undefined;
145
+ } | undefined;
146
+ }>;
147
+ }, "strict", z.ZodTypeAny, {
148
+ skylab: {
149
+ ports?: {
150
+ admin?: number | undefined;
151
+ server?: number | undefined;
152
+ console?: number | undefined;
153
+ } | undefined;
154
+ };
155
+ runner?: {
156
+ type: "docker" | "podman";
157
+ name?: string | undefined;
158
+ image?: string | undefined;
159
+ volume?: string | undefined;
160
+ target?: string | undefined;
161
+ platform?: "linux/amd64" | "linux/arm64" | undefined;
162
+ } | undefined;
163
+ }, {
164
+ skylab: {
165
+ ports?: {
166
+ admin?: number | undefined;
167
+ server?: number | undefined;
168
+ console?: number | undefined;
169
+ } | undefined;
170
+ };
171
+ runner?: {
172
+ type: "docker" | "podman";
173
+ name?: string | undefined;
174
+ image?: string | undefined;
175
+ volume?: string | undefined;
176
+ target?: string | undefined;
177
+ platform?: "linux/amd64" | "linux/arm64" | undefined;
178
+ } | undefined;
179
+ }>, z.ZodObject<{
108
180
  runner: z.ZodOptional<z.ZodObject<{
109
- type: z.ZodEnum<{
110
- docker: "docker";
111
- }>;
181
+ type: z.ZodEnum<["docker", "podman"]>;
112
182
  image: z.ZodOptional<z.ZodString>;
113
183
  name: z.ZodOptional<z.ZodString>;
114
184
  volume: z.ZodOptional<z.ZodString>;
115
185
  target: z.ZodOptional<z.ZodString>;
116
- platform: z.ZodOptional<z.ZodEnum<{
117
- "linux/amd64": "linux/amd64";
118
- "linux/arm64": "linux/arm64";
119
- }>>;
120
- }, z.core.$strict>>;
186
+ platform: z.ZodOptional<z.ZodEnum<["linux/amd64", "linux/arm64"]>>;
187
+ }, "strict", z.ZodTypeAny, {
188
+ type: "docker" | "podman";
189
+ name?: string | undefined;
190
+ image?: string | undefined;
191
+ volume?: string | undefined;
192
+ target?: string | undefined;
193
+ platform?: "linux/amd64" | "linux/arm64" | undefined;
194
+ }, {
195
+ type: "docker" | "podman";
196
+ name?: string | undefined;
197
+ image?: string | undefined;
198
+ volume?: string | undefined;
199
+ target?: string | undefined;
200
+ platform?: "linux/amd64" | "linux/arm64" | undefined;
201
+ }>>;
121
202
  console: z.ZodObject<{
122
203
  ports: z.ZodOptional<z.ZodObject<{
123
204
  /**
@@ -128,22 +209,77 @@ export declare const EmulatorConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
128
209
  * @default 5999
129
210
  */
130
211
  admin: z.ZodOptional<z.ZodNumber>;
131
- }, z.core.$strict>>;
132
- }, z.core.$strict>;
133
- }, z.core.$strict>, z.ZodObject<{
212
+ }, "strict", z.ZodTypeAny, {
213
+ admin?: number | undefined;
214
+ server?: number | undefined;
215
+ }, {
216
+ admin?: number | undefined;
217
+ server?: number | undefined;
218
+ }>>;
219
+ }, "strict", z.ZodTypeAny, {
220
+ ports?: {
221
+ admin?: number | undefined;
222
+ server?: number | undefined;
223
+ } | undefined;
224
+ }, {
225
+ ports?: {
226
+ admin?: number | undefined;
227
+ server?: number | undefined;
228
+ } | undefined;
229
+ }>;
230
+ }, "strict", z.ZodTypeAny, {
231
+ console: {
232
+ ports?: {
233
+ admin?: number | undefined;
234
+ server?: number | undefined;
235
+ } | undefined;
236
+ };
237
+ runner?: {
238
+ type: "docker" | "podman";
239
+ name?: string | undefined;
240
+ image?: string | undefined;
241
+ volume?: string | undefined;
242
+ target?: string | undefined;
243
+ platform?: "linux/amd64" | "linux/arm64" | undefined;
244
+ } | undefined;
245
+ }, {
246
+ console: {
247
+ ports?: {
248
+ admin?: number | undefined;
249
+ server?: number | undefined;
250
+ } | undefined;
251
+ };
252
+ runner?: {
253
+ type: "docker" | "podman";
254
+ name?: string | undefined;
255
+ image?: string | undefined;
256
+ volume?: string | undefined;
257
+ target?: string | undefined;
258
+ platform?: "linux/amd64" | "linux/arm64" | undefined;
259
+ } | undefined;
260
+ }>, z.ZodObject<{
134
261
  runner: z.ZodOptional<z.ZodObject<{
135
- type: z.ZodEnum<{
136
- docker: "docker";
137
- }>;
262
+ type: z.ZodEnum<["docker", "podman"]>;
138
263
  image: z.ZodOptional<z.ZodString>;
139
264
  name: z.ZodOptional<z.ZodString>;
140
265
  volume: z.ZodOptional<z.ZodString>;
141
266
  target: z.ZodOptional<z.ZodString>;
142
- platform: z.ZodOptional<z.ZodEnum<{
143
- "linux/amd64": "linux/amd64";
144
- "linux/arm64": "linux/arm64";
145
- }>>;
146
- }, z.core.$strict>>;
267
+ platform: z.ZodOptional<z.ZodEnum<["linux/amd64", "linux/arm64"]>>;
268
+ }, "strict", z.ZodTypeAny, {
269
+ type: "docker" | "podman";
270
+ name?: string | undefined;
271
+ image?: string | undefined;
272
+ volume?: string | undefined;
273
+ target?: string | undefined;
274
+ platform?: "linux/amd64" | "linux/arm64" | undefined;
275
+ }, {
276
+ type: "docker" | "podman";
277
+ name?: string | undefined;
278
+ image?: string | undefined;
279
+ volume?: string | undefined;
280
+ target?: string | undefined;
281
+ platform?: "linux/amd64" | "linux/arm64" | undefined;
282
+ }>>;
147
283
  satellite: z.ZodObject<{
148
284
  ports: z.ZodOptional<z.ZodObject<{
149
285
  /**
@@ -154,9 +290,55 @@ export declare const EmulatorConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
154
290
  * @default 5999
155
291
  */
156
292
  admin: z.ZodOptional<z.ZodNumber>;
157
- }, z.core.$strict>>;
158
- }, z.core.$strict>;
159
- }, z.core.$strict>]>;
293
+ }, "strict", z.ZodTypeAny, {
294
+ admin?: number | undefined;
295
+ server?: number | undefined;
296
+ }, {
297
+ admin?: number | undefined;
298
+ server?: number | undefined;
299
+ }>>;
300
+ }, "strict", z.ZodTypeAny, {
301
+ ports?: {
302
+ admin?: number | undefined;
303
+ server?: number | undefined;
304
+ } | undefined;
305
+ }, {
306
+ ports?: {
307
+ admin?: number | undefined;
308
+ server?: number | undefined;
309
+ } | undefined;
310
+ }>;
311
+ }, "strict", z.ZodTypeAny, {
312
+ satellite: {
313
+ ports?: {
314
+ admin?: number | undefined;
315
+ server?: number | undefined;
316
+ } | undefined;
317
+ };
318
+ runner?: {
319
+ type: "docker" | "podman";
320
+ name?: string | undefined;
321
+ image?: string | undefined;
322
+ volume?: string | undefined;
323
+ target?: string | undefined;
324
+ platform?: "linux/amd64" | "linux/arm64" | undefined;
325
+ } | undefined;
326
+ }, {
327
+ satellite: {
328
+ ports?: {
329
+ admin?: number | undefined;
330
+ server?: number | undefined;
331
+ } | undefined;
332
+ };
333
+ runner?: {
334
+ type: "docker" | "podman";
335
+ name?: string | undefined;
336
+ image?: string | undefined;
337
+ volume?: string | undefined;
338
+ target?: string | undefined;
339
+ platform?: "linux/amd64" | "linux/arm64" | undefined;
340
+ } | undefined;
341
+ }>]>;
160
342
  /**
161
343
  * The configuration for running the Juno emulator.
162
344
  */
@@ -1,13 +1,17 @@
1
1
  import { type PrincipalText } from '@dfinity/zod-schemas';
2
- import * as z from 'zod/v4';
2
+ import * as z from 'zod';
3
3
  import { type JunoConfigMode } from '../../../types/juno.env';
4
4
  import type { Either } from '../../../types/utility.types';
5
5
  /**
6
6
  * @see OrbiterId
7
7
  */
8
8
  export declare const OrbiterIdSchema: z.ZodObject<{
9
- id: z.ZodString;
10
- }, z.core.$strip>;
9
+ id: z.ZodEffects<z.ZodString, string, string>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ id: string;
12
+ }, {
13
+ id: string;
14
+ }>;
11
15
  /**
12
16
  * Represents the configuration for an orbiter.
13
17
  * @interface OrbiterId
@@ -23,8 +27,12 @@ export interface OrbiterId {
23
27
  * @see OrbiterIds
24
28
  */
25
29
  export declare const OrbiterIdsSchema: z.ZodObject<{
26
- ids: z.ZodRecord<z.ZodUnion<readonly [z.ZodLiteral<"production">, z.ZodString]>, z.ZodString>;
27
- }, z.core.$strip>;
30
+ ids: z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"production">, z.ZodString]>, z.ZodEffects<z.ZodString, string, string>>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ ids: Record<string, string>;
33
+ }, {
34
+ ids: Record<string, string>;
35
+ }>;
28
36
  /**
29
37
  * Represents a mapping of orbiter identitifiers to different configurations based on the mode of the application.
30
38
  * @interface OrbiterIds
@@ -47,11 +55,19 @@ export interface OrbiterIds {
47
55
  /**
48
56
  * @see OrbiterConfig
49
57
  */
50
- export declare const OrbiterConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
51
- id: z.ZodString;
52
- }, z.core.$strict>, z.ZodObject<{
53
- ids: z.ZodRecord<z.ZodUnion<readonly [z.ZodLiteral<"production">, z.ZodString]>, z.ZodString>;
54
- }, z.core.$strict>]>;
58
+ export declare const OrbiterConfigSchema: z.ZodUnion<[z.ZodObject<{
59
+ id: z.ZodEffects<z.ZodString, string, string>;
60
+ }, "strict", z.ZodTypeAny, {
61
+ id: string;
62
+ }, {
63
+ id: string;
64
+ }>, z.ZodObject<{
65
+ ids: z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"production">, z.ZodString]>, z.ZodEffects<z.ZodString, string, string>>;
66
+ }, "strict", z.ZodTypeAny, {
67
+ ids: Record<string, string>;
68
+ }, {
69
+ ids: Record<string, string>;
70
+ }>]>;
55
71
  /**
56
72
  * Represents the configuration for an orbiter (analytics).
57
73
  *