@junobuild/config 2.4.3 → 2.5.0-next-2025-10-14
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 +46 -20
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +3 -3
- package/dist/node/index.mjs +1 -1
- package/dist/node/index.mjs.map +3 -3
- package/dist/types/satellite/configs/authentication.config.d.ts +31 -0
- package/dist/types/satellite/configs/emulator.config.d.ts +14 -0
- package/dist/types/satellite/configs/satellite.config.d.ts +6 -0
- package/dist/types/satellite/juno.config.d.ts +9 -0
- package/package.json +4 -4
|
@@ -26,6 +26,28 @@ export interface AuthenticationConfigInternetIdentity {
|
|
|
26
26
|
*/
|
|
27
27
|
externalAlternativeOrigins?: string[];
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* @see AuthenticationConfigGoogle
|
|
31
|
+
*/
|
|
32
|
+
export declare const AuthenticationConfigGoogleSchema: z.ZodObject<{
|
|
33
|
+
clientId: z.ZodString;
|
|
34
|
+
}, z.core.$strict>;
|
|
35
|
+
/**
|
|
36
|
+
* Configure the sign-in with Google.
|
|
37
|
+
*
|
|
38
|
+
* @interface AuthenticationConfigGoogle
|
|
39
|
+
*/
|
|
40
|
+
export interface AuthenticationConfigGoogle {
|
|
41
|
+
/**
|
|
42
|
+
* The OAuth 2.0 client ID from your
|
|
43
|
+
* [Google Cloud Console](https://console.cloud.google.com/apis/credentials).
|
|
44
|
+
*
|
|
45
|
+
* Example: `"1234567890-abcdefg.apps.googleusercontent.com"`
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
*/
|
|
49
|
+
clientId: string;
|
|
50
|
+
}
|
|
29
51
|
/**
|
|
30
52
|
* @see AuthenticationConfigRules
|
|
31
53
|
*/
|
|
@@ -55,6 +77,9 @@ export declare const AuthenticationConfigSchema: z.ZodObject<{
|
|
|
55
77
|
derivationOrigin: z.ZodOptional<z.ZodURL>;
|
|
56
78
|
externalAlternativeOrigins: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
57
79
|
}, z.core.$strict>>;
|
|
80
|
+
google: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
clientId: z.ZodString;
|
|
82
|
+
}, z.core.$strict>>;
|
|
58
83
|
rules: z.ZodOptional<z.ZodObject<{
|
|
59
84
|
allowedCallers: z.ZodArray<z.ZodString>;
|
|
60
85
|
}, z.core.$strict>>;
|
|
@@ -71,6 +96,12 @@ export interface AuthenticationConfig {
|
|
|
71
96
|
* @optional
|
|
72
97
|
*/
|
|
73
98
|
internetIdentity?: AuthenticationConfigInternetIdentity;
|
|
99
|
+
/**
|
|
100
|
+
* Optional configuration for enabling Google authentication method.
|
|
101
|
+
* @type {AuthenticationConfigGoogle}
|
|
102
|
+
* @optional
|
|
103
|
+
*/
|
|
104
|
+
google?: AuthenticationConfigGoogle;
|
|
74
105
|
/**
|
|
75
106
|
* Optional configuration for the rules of the authentication.
|
|
76
107
|
* @type {AuthenticationConfigRules}
|
|
@@ -14,6 +14,11 @@ export interface EmulatorPorts {
|
|
|
14
14
|
* @default 5999
|
|
15
15
|
*/
|
|
16
16
|
admin?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Max number of seconds to wait for emulator ports to become ready.
|
|
19
|
+
* @default 30
|
|
20
|
+
*/
|
|
21
|
+
timeoutInSeconds?: number;
|
|
17
22
|
}
|
|
18
23
|
/**
|
|
19
24
|
* Configuration for the Skylab emulator.
|
|
@@ -170,6 +175,7 @@ export declare const EmulatorConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
170
175
|
ports: z.ZodOptional<z.ZodObject<{
|
|
171
176
|
server: z.ZodOptional<z.ZodNumber>;
|
|
172
177
|
admin: z.ZodOptional<z.ZodNumber>;
|
|
178
|
+
timeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
173
179
|
console: z.ZodOptional<z.ZodNumber>;
|
|
174
180
|
}, z.core.$strict>>;
|
|
175
181
|
}, z.core.$strict>;
|
|
@@ -210,6 +216,10 @@ export declare const EmulatorConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
210
216
|
* @default 5999
|
|
211
217
|
*/
|
|
212
218
|
admin: z.ZodOptional<z.ZodNumber>;
|
|
219
|
+
/**
|
|
220
|
+
* @default 30
|
|
221
|
+
*/
|
|
222
|
+
timeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
213
223
|
}, z.core.$strict>>;
|
|
214
224
|
}, z.core.$strict>;
|
|
215
225
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -249,6 +259,10 @@ export declare const EmulatorConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
249
259
|
* @default 5999
|
|
250
260
|
*/
|
|
251
261
|
admin: z.ZodOptional<z.ZodNumber>;
|
|
262
|
+
/**
|
|
263
|
+
* @default 30
|
|
264
|
+
*/
|
|
265
|
+
timeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
252
266
|
}, z.core.$strict>>;
|
|
253
267
|
}, z.core.$strict>;
|
|
254
268
|
}, z.core.$strict>]>;
|
|
@@ -93,6 +93,9 @@ export declare const SatelliteConfigOptionsSchema: z.ZodUnion<readonly [z.ZodObj
|
|
|
93
93
|
derivationOrigin: z.ZodOptional<z.ZodURL>;
|
|
94
94
|
externalAlternativeOrigins: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
95
95
|
}, z.core.$strict>>;
|
|
96
|
+
google: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
clientId: z.ZodString;
|
|
98
|
+
}, z.core.$strict>>;
|
|
96
99
|
rules: z.ZodOptional<z.ZodObject<{
|
|
97
100
|
allowedCallers: z.ZodArray<z.ZodString>;
|
|
98
101
|
}, z.core.$strict>>;
|
|
@@ -202,6 +205,9 @@ export declare const SatelliteConfigOptionsSchema: z.ZodUnion<readonly [z.ZodObj
|
|
|
202
205
|
derivationOrigin: z.ZodOptional<z.ZodURL>;
|
|
203
206
|
externalAlternativeOrigins: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
204
207
|
}, z.core.$strict>>;
|
|
208
|
+
google: z.ZodOptional<z.ZodObject<{
|
|
209
|
+
clientId: z.ZodString;
|
|
210
|
+
}, z.core.$strict>>;
|
|
205
211
|
rules: z.ZodOptional<z.ZodObject<{
|
|
206
212
|
allowedCallers: z.ZodArray<z.ZodString>;
|
|
207
213
|
}, z.core.$strict>>;
|
|
@@ -45,6 +45,9 @@ export declare const JunoConfigSchema: z.ZodObject<{
|
|
|
45
45
|
derivationOrigin: z.ZodOptional<z.ZodURL>;
|
|
46
46
|
externalAlternativeOrigins: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
47
47
|
}, z.core.$strict>>;
|
|
48
|
+
google: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
clientId: z.ZodString;
|
|
50
|
+
}, z.core.$strict>>;
|
|
48
51
|
rules: z.ZodOptional<z.ZodObject<{
|
|
49
52
|
allowedCallers: z.ZodArray<z.ZodString>;
|
|
50
53
|
}, z.core.$strict>>;
|
|
@@ -154,6 +157,9 @@ export declare const JunoConfigSchema: z.ZodObject<{
|
|
|
154
157
|
derivationOrigin: z.ZodOptional<z.ZodURL>;
|
|
155
158
|
externalAlternativeOrigins: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
156
159
|
}, z.core.$strict>>;
|
|
160
|
+
google: z.ZodOptional<z.ZodObject<{
|
|
161
|
+
clientId: z.ZodString;
|
|
162
|
+
}, z.core.$strict>>;
|
|
157
163
|
rules: z.ZodOptional<z.ZodObject<{
|
|
158
164
|
allowedCallers: z.ZodArray<z.ZodString>;
|
|
159
165
|
}, z.core.$strict>>;
|
|
@@ -261,6 +267,7 @@ export declare const JunoConfigSchema: z.ZodObject<{
|
|
|
261
267
|
ports: z.ZodOptional<z.ZodObject<{
|
|
262
268
|
server: z.ZodOptional<z.ZodNumber>;
|
|
263
269
|
admin: z.ZodOptional<z.ZodNumber>;
|
|
270
|
+
timeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
264
271
|
console: z.ZodOptional<z.ZodNumber>;
|
|
265
272
|
}, z.core.$strict>>;
|
|
266
273
|
}, z.core.$strict>;
|
|
@@ -295,6 +302,7 @@ export declare const JunoConfigSchema: z.ZodObject<{
|
|
|
295
302
|
ports: z.ZodOptional<z.ZodObject<{
|
|
296
303
|
server: z.ZodOptional<z.ZodNumber>;
|
|
297
304
|
admin: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
timeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
298
306
|
}, z.core.$strict>>;
|
|
299
307
|
}, z.core.$strict>;
|
|
300
308
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -328,6 +336,7 @@ export declare const JunoConfigSchema: z.ZodObject<{
|
|
|
328
336
|
ports: z.ZodOptional<z.ZodObject<{
|
|
329
337
|
server: z.ZodOptional<z.ZodNumber>;
|
|
330
338
|
admin: z.ZodOptional<z.ZodNumber>;
|
|
339
|
+
timeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
331
340
|
}, z.core.$strict>>;
|
|
332
341
|
}, z.core.$strict>;
|
|
333
342
|
}, z.core.$strict>]>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junobuild/config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0-next-2025-10-14",
|
|
4
4
|
"description": "Configuration options for Juno CLI",
|
|
5
5
|
"author": "David Dal Busco (https://daviddalbusco.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"homepage": "https://juno.build",
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@dfinity/zod-schemas": "
|
|
45
|
-
"zod": "
|
|
44
|
+
"@dfinity/zod-schemas": "*",
|
|
45
|
+
"zod": "*"
|
|
46
46
|
}
|
|
47
|
-
}
|
|
47
|
+
}
|