@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.
@@ -3,12 +3,8 @@ import * as z from 'zod';
3
3
  * @see SatelliteAssertions
4
4
  */
5
5
  export declare const SatelliteAssertionsSchema: z.ZodObject<{
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
- }>;
6
+ heapMemory: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean]>>;
7
+ }, z.core.$strict>;
12
8
  /**
13
9
  * Configuration for satellite assertions.
14
10
  * @interface SatelliteAssertions
@@ -3,15 +3,9 @@ import * as z from 'zod';
3
3
  * @see AuthenticationConfigInternetIdentity
4
4
  */
5
5
  export declare const AuthenticationConfigInternetIdentitySchema: z.ZodObject<{
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
- }>;
6
+ derivationOrigin: z.ZodOptional<z.ZodURL>;
7
+ externalAlternativeOrigins: z.ZodOptional<z.ZodArray<z.ZodURL>>;
8
+ }, z.core.$strict>;
15
9
  /**
16
10
  * Configure the behavior of Internet Identity.
17
11
  * @interface AuthenticationConfigInternetIdentity
@@ -36,26 +30,10 @@ export interface AuthenticationConfigInternetIdentity {
36
30
  */
37
31
  export declare const AuthenticationConfigSchema: z.ZodObject<{
38
32
  internetIdentity: z.ZodOptional<z.ZodObject<{
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
- }>;
33
+ derivationOrigin: z.ZodOptional<z.ZodURL>;
34
+ externalAlternativeOrigins: z.ZodOptional<z.ZodArray<z.ZodURL>>;
35
+ }, z.core.$strict>>;
36
+ }, z.core.$strict>;
59
37
  /**
60
38
  * Configures the Authentication options of a Satellite.
61
39
  * @interface AuthenticationConfig
@@ -7,24 +7,8 @@ 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
- }, "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
- }>;
10
+ }, z.core.$strict>>;
11
+ }, z.core.$strict>;
28
12
  /**
29
13
  * Configures the behavior of the Datastore.
30
14
  * @interface DatastoreConfig
@@ -83,122 +83,43 @@ export interface EmulatorRunner {
83
83
  /**
84
84
  * @see EmulatorConfig
85
85
  */
86
- export declare const EmulatorConfigSchema: z.ZodUnion<[z.ZodObject<{
86
+ export declare const EmulatorConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
87
87
  runner: z.ZodOptional<z.ZodObject<{
88
- type: z.ZodEnum<["docker", "podman"]>;
88
+ type: z.ZodEnum<{
89
+ docker: "docker";
90
+ podman: "podman";
91
+ }>;
89
92
  image: z.ZodOptional<z.ZodString>;
90
93
  name: z.ZodOptional<z.ZodString>;
91
94
  volume: z.ZodOptional<z.ZodString>;
92
95
  target: z.ZodOptional<z.ZodString>;
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
- }>>;
96
+ platform: z.ZodOptional<z.ZodEnum<{
97
+ "linux/amd64": "linux/amd64";
98
+ "linux/arm64": "linux/arm64";
99
+ }>>;
100
+ }, z.core.$strict>>;
109
101
  skylab: z.ZodObject<{
110
102
  ports: z.ZodOptional<z.ZodObject<{
111
- /**
112
- * @default 5987
113
- */
114
103
  server: z.ZodOptional<z.ZodNumber>;
115
- /**
116
- * @default 5999
117
- */
118
104
  admin: z.ZodOptional<z.ZodNumber>;
119
- } & {
120
- /**
121
- * Console UI (like https://console.juno.build) running with the emulator.
122
- * @default 5866
123
- */
124
105
  console: z.ZodOptional<z.ZodNumber>;
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<{
106
+ }, z.core.$strict>>;
107
+ }, z.core.$strict>;
108
+ }, z.core.$strict>, z.ZodObject<{
180
109
  runner: z.ZodOptional<z.ZodObject<{
181
- type: z.ZodEnum<["docker", "podman"]>;
110
+ type: z.ZodEnum<{
111
+ docker: "docker";
112
+ podman: "podman";
113
+ }>;
182
114
  image: z.ZodOptional<z.ZodString>;
183
115
  name: z.ZodOptional<z.ZodString>;
184
116
  volume: z.ZodOptional<z.ZodString>;
185
117
  target: z.ZodOptional<z.ZodString>;
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
- }>>;
118
+ platform: z.ZodOptional<z.ZodEnum<{
119
+ "linux/amd64": "linux/amd64";
120
+ "linux/arm64": "linux/arm64";
121
+ }>>;
122
+ }, z.core.$strict>>;
202
123
  console: z.ZodObject<{
203
124
  ports: z.ZodOptional<z.ZodObject<{
204
125
  /**
@@ -209,77 +130,23 @@ export declare const EmulatorConfigSchema: z.ZodUnion<[z.ZodObject<{
209
130
  * @default 5999
210
131
  */
211
132
  admin: z.ZodOptional<z.ZodNumber>;
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<{
133
+ }, z.core.$strict>>;
134
+ }, z.core.$strict>;
135
+ }, z.core.$strict>, z.ZodObject<{
261
136
  runner: z.ZodOptional<z.ZodObject<{
262
- type: z.ZodEnum<["docker", "podman"]>;
137
+ type: z.ZodEnum<{
138
+ docker: "docker";
139
+ podman: "podman";
140
+ }>;
263
141
  image: z.ZodOptional<z.ZodString>;
264
142
  name: z.ZodOptional<z.ZodString>;
265
143
  volume: z.ZodOptional<z.ZodString>;
266
144
  target: z.ZodOptional<z.ZodString>;
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
- }>>;
145
+ platform: z.ZodOptional<z.ZodEnum<{
146
+ "linux/amd64": "linux/amd64";
147
+ "linux/arm64": "linux/arm64";
148
+ }>>;
149
+ }, z.core.$strict>>;
283
150
  satellite: z.ZodObject<{
284
151
  ports: z.ZodOptional<z.ZodObject<{
285
152
  /**
@@ -290,55 +157,9 @@ export declare const EmulatorConfigSchema: z.ZodUnion<[z.ZodObject<{
290
157
  * @default 5999
291
158
  */
292
159
  admin: z.ZodOptional<z.ZodNumber>;
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
+ }, z.core.$strict>>;
161
+ }, z.core.$strict>;
162
+ }, z.core.$strict>]>;
342
163
  /**
343
164
  * The configuration for running the Juno emulator.
344
165
  */
@@ -6,12 +6,8 @@ import type { Either } from '../../../types/utility.types';
6
6
  * @see OrbiterId
7
7
  */
8
8
  export declare const OrbiterIdSchema: z.ZodObject<{
9
- id: z.ZodEffects<z.ZodString, string, string>;
10
- }, "strip", z.ZodTypeAny, {
11
- id: string;
12
- }, {
13
- id: string;
14
- }>;
9
+ id: z.ZodString;
10
+ }, z.core.$strip>;
15
11
  /**
16
12
  * Represents the configuration for an orbiter.
17
13
  * @interface OrbiterId
@@ -27,12 +23,8 @@ export interface OrbiterId {
27
23
  * @see OrbiterIds
28
24
  */
29
25
  export declare const OrbiterIdsSchema: z.ZodObject<{
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
- }>;
26
+ ids: z.ZodRecord<z.ZodUnion<readonly [z.ZodLiteral<"production">, z.ZodString]>, z.ZodString>;
27
+ }, z.core.$strip>;
36
28
  /**
37
29
  * Represents a mapping of orbiter identitifiers to different configurations based on the mode of the application.
38
30
  * @interface OrbiterIds
@@ -55,19 +47,11 @@ export interface OrbiterIds {
55
47
  /**
56
48
  * @see OrbiterConfig
57
49
  */
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
- }>]>;
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>]>;
71
55
  /**
72
56
  * Represents the configuration for an orbiter (analytics).
73
57
  *