@junobuild/config 0.4.3 → 1.0.0
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 +76 -533
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +4 -4
- package/dist/node/index.mjs +1 -1
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/console/console.config.d.ts +2 -0
- package/dist/types/index.d.ts +10 -11
- package/dist/types/satellite/{mainnet/config.d.ts → config.d.ts} +1 -1
- package/dist/types/satellite/{mainnet/configs → configs}/authentication.config.d.ts +42 -0
- package/dist/types/satellite/configs/collections.d.ts +137 -0
- package/dist/types/satellite/{mainnet/configs → configs}/datastore.config.d.ts +12 -1
- package/dist/types/satellite/{mainnet/configs → configs}/orbiter.config.d.ts +2 -2
- package/dist/types/satellite/{types → configs}/rules.d.ts +7 -6
- package/dist/types/satellite/{mainnet/configs → configs}/satellite.config.d.ts +124 -5
- package/dist/types/satellite/{mainnet/juno.config.d.ts → juno.config.d.ts} +112 -0
- package/dist/types/shared/storage.config.d.ts +11 -0
- package/package.json +2 -2
- package/dist/types/satellite/dev/config.d.ts +0 -6
- package/dist/types/satellite/dev/juno.dev.config.d.ts +0 -313
- package/dist/types/tests/mocks/principal.mocks.d.ts +0 -2
- /package/dist/types/satellite/{mainnet/configs → configs}/assertions.config.d.ts +0 -0
- /package/dist/types/satellite/{mainnet/configs → configs}/emulator.config.d.ts +0 -0
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
import { type PrincipalText } from '@dfinity/zod-schemas';
|
|
2
|
-
import * as z from 'zod/v4';
|
|
3
|
-
import { type Rule } from '../types/rules';
|
|
4
|
-
/**
|
|
5
|
-
* @see SatelliteDevDataStoreCollection
|
|
6
|
-
*/
|
|
7
|
-
export declare const SatelliteDevDataStoreCollectionSchema: z.ZodObject<{
|
|
8
|
-
collection: z.ZodString;
|
|
9
|
-
read: z.ZodEnum<{
|
|
10
|
-
controllers: "controllers";
|
|
11
|
-
public: "public";
|
|
12
|
-
private: "private";
|
|
13
|
-
managed: "managed";
|
|
14
|
-
}>;
|
|
15
|
-
write: z.ZodEnum<{
|
|
16
|
-
controllers: "controllers";
|
|
17
|
-
public: "public";
|
|
18
|
-
private: "private";
|
|
19
|
-
managed: "managed";
|
|
20
|
-
}>;
|
|
21
|
-
memory: z.ZodEnum<{
|
|
22
|
-
heap: "heap";
|
|
23
|
-
stable: "stable";
|
|
24
|
-
}>;
|
|
25
|
-
maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
|
|
26
|
-
maxCapacity: z.ZodOptional<z.ZodNumber>;
|
|
27
|
-
mutablePermissions: z.ZodBoolean;
|
|
28
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
29
|
-
}, z.core.$strict>;
|
|
30
|
-
/**
|
|
31
|
-
* Represents a database collection configuration for a satellite in a development environment.
|
|
32
|
-
* @typedef {Omit<Rule, 'createdAt' | 'updatedAt' | 'maxSize' | 'version'>} SatelliteDevDataStoreCollection
|
|
33
|
-
*/
|
|
34
|
-
export type SatelliteDevDataStoreCollection = Omit<Rule, 'createdAt' | 'updatedAt' | 'maxSize' | 'version'>;
|
|
35
|
-
/**
|
|
36
|
-
* @see SatelliteDevStorageCollection
|
|
37
|
-
*/
|
|
38
|
-
export declare const SatelliteDevStorageCollectionSchema: z.ZodObject<{
|
|
39
|
-
collection: z.ZodString;
|
|
40
|
-
read: z.ZodEnum<{
|
|
41
|
-
controllers: "controllers";
|
|
42
|
-
public: "public";
|
|
43
|
-
private: "private";
|
|
44
|
-
managed: "managed";
|
|
45
|
-
}>;
|
|
46
|
-
write: z.ZodEnum<{
|
|
47
|
-
controllers: "controllers";
|
|
48
|
-
public: "public";
|
|
49
|
-
private: "private";
|
|
50
|
-
managed: "managed";
|
|
51
|
-
}>;
|
|
52
|
-
memory: z.ZodEnum<{
|
|
53
|
-
heap: "heap";
|
|
54
|
-
stable: "stable";
|
|
55
|
-
}>;
|
|
56
|
-
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
57
|
-
maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
|
|
58
|
-
mutablePermissions: z.ZodBoolean;
|
|
59
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
60
|
-
}, z.core.$strict>;
|
|
61
|
-
/**
|
|
62
|
-
* Represents a Storage collection configuration for a satellite in a development environment.
|
|
63
|
-
* @typedef {Omit<Rule, 'createdAt' | 'updatedAt' | 'maxCapacity' | 'version'>} SatelliteDevStorageCollection
|
|
64
|
-
*/
|
|
65
|
-
export type SatelliteDevStorageCollection = Omit<Rule, 'createdAt' | 'updatedAt' | 'maxCapacity' | 'version'>;
|
|
66
|
-
/**
|
|
67
|
-
* @see SatelliteDevCollections
|
|
68
|
-
*/
|
|
69
|
-
export declare const SatelliteDevCollectionsSchema: z.ZodObject<{
|
|
70
|
-
datastore: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
71
|
-
collection: z.ZodString;
|
|
72
|
-
read: z.ZodEnum<{
|
|
73
|
-
controllers: "controllers";
|
|
74
|
-
public: "public";
|
|
75
|
-
private: "private";
|
|
76
|
-
managed: "managed";
|
|
77
|
-
}>;
|
|
78
|
-
write: z.ZodEnum<{
|
|
79
|
-
controllers: "controllers";
|
|
80
|
-
public: "public";
|
|
81
|
-
private: "private";
|
|
82
|
-
managed: "managed";
|
|
83
|
-
}>;
|
|
84
|
-
memory: z.ZodEnum<{
|
|
85
|
-
heap: "heap";
|
|
86
|
-
stable: "stable";
|
|
87
|
-
}>;
|
|
88
|
-
maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
|
|
89
|
-
maxCapacity: z.ZodOptional<z.ZodNumber>;
|
|
90
|
-
mutablePermissions: z.ZodBoolean;
|
|
91
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
92
|
-
}, z.core.$strict>>>;
|
|
93
|
-
storage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
94
|
-
collection: z.ZodString;
|
|
95
|
-
read: z.ZodEnum<{
|
|
96
|
-
controllers: "controllers";
|
|
97
|
-
public: "public";
|
|
98
|
-
private: "private";
|
|
99
|
-
managed: "managed";
|
|
100
|
-
}>;
|
|
101
|
-
write: z.ZodEnum<{
|
|
102
|
-
controllers: "controllers";
|
|
103
|
-
public: "public";
|
|
104
|
-
private: "private";
|
|
105
|
-
managed: "managed";
|
|
106
|
-
}>;
|
|
107
|
-
memory: z.ZodEnum<{
|
|
108
|
-
heap: "heap";
|
|
109
|
-
stable: "stable";
|
|
110
|
-
}>;
|
|
111
|
-
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
112
|
-
maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
|
|
113
|
-
mutablePermissions: z.ZodBoolean;
|
|
114
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
115
|
-
}, z.core.$strict>>>;
|
|
116
|
-
}, z.core.$strict>;
|
|
117
|
-
/**
|
|
118
|
-
* Represents the collections configuration for a satellite in a development environment.
|
|
119
|
-
* @interface SatelliteDevCollections
|
|
120
|
-
*/
|
|
121
|
-
export interface SatelliteDevCollections {
|
|
122
|
-
/**
|
|
123
|
-
* The Datastore collections configuration.
|
|
124
|
-
* @type {SatelliteDevDataStoreCollection[]}
|
|
125
|
-
* @optional
|
|
126
|
-
*/
|
|
127
|
-
datastore?: SatelliteDevDataStoreCollection[];
|
|
128
|
-
/**
|
|
129
|
-
* The Storage collections configuration.
|
|
130
|
-
* @type {SatelliteDevStorageCollection[]}
|
|
131
|
-
* @optional
|
|
132
|
-
*/
|
|
133
|
-
storage?: SatelliteDevStorageCollection[];
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* @see SatelliteDevController
|
|
137
|
-
*/
|
|
138
|
-
export declare const SatelliteDevControllerSchema: z.ZodObject<{
|
|
139
|
-
id: z.ZodString;
|
|
140
|
-
scope: z.ZodEnum<{
|
|
141
|
-
write: "write";
|
|
142
|
-
admin: "admin";
|
|
143
|
-
submit: "submit";
|
|
144
|
-
}>;
|
|
145
|
-
}, z.core.$strict>;
|
|
146
|
-
/**
|
|
147
|
-
* Represents a controller configuration for a satellite in a development environment.
|
|
148
|
-
* @interface SatelliteDevController
|
|
149
|
-
*/
|
|
150
|
-
export interface SatelliteDevController {
|
|
151
|
-
/**
|
|
152
|
-
* The unique identifier of the controller.
|
|
153
|
-
* @type {string}
|
|
154
|
-
*/
|
|
155
|
-
id: PrincipalText;
|
|
156
|
-
/**
|
|
157
|
-
* The scope of the controller's permissions.
|
|
158
|
-
* @type {'write' | 'admin'}
|
|
159
|
-
*/
|
|
160
|
-
scope: 'write' | 'admin' | 'submit';
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* @see SatelliteDevConfig
|
|
164
|
-
*/
|
|
165
|
-
export declare const SatelliteDevConfigSchema: z.ZodObject<{
|
|
166
|
-
collections: z.ZodObject<{
|
|
167
|
-
datastore: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
168
|
-
collection: z.ZodString;
|
|
169
|
-
read: z.ZodEnum<{
|
|
170
|
-
controllers: "controllers";
|
|
171
|
-
public: "public";
|
|
172
|
-
private: "private";
|
|
173
|
-
managed: "managed";
|
|
174
|
-
}>;
|
|
175
|
-
write: z.ZodEnum<{
|
|
176
|
-
controllers: "controllers";
|
|
177
|
-
public: "public";
|
|
178
|
-
private: "private";
|
|
179
|
-
managed: "managed";
|
|
180
|
-
}>;
|
|
181
|
-
memory: z.ZodEnum<{
|
|
182
|
-
heap: "heap";
|
|
183
|
-
stable: "stable";
|
|
184
|
-
}>;
|
|
185
|
-
maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
|
|
186
|
-
maxCapacity: z.ZodOptional<z.ZodNumber>;
|
|
187
|
-
mutablePermissions: z.ZodBoolean;
|
|
188
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
189
|
-
}, z.core.$strict>>>;
|
|
190
|
-
storage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
191
|
-
collection: z.ZodString;
|
|
192
|
-
read: z.ZodEnum<{
|
|
193
|
-
controllers: "controllers";
|
|
194
|
-
public: "public";
|
|
195
|
-
private: "private";
|
|
196
|
-
managed: "managed";
|
|
197
|
-
}>;
|
|
198
|
-
write: z.ZodEnum<{
|
|
199
|
-
controllers: "controllers";
|
|
200
|
-
public: "public";
|
|
201
|
-
private: "private";
|
|
202
|
-
managed: "managed";
|
|
203
|
-
}>;
|
|
204
|
-
memory: z.ZodEnum<{
|
|
205
|
-
heap: "heap";
|
|
206
|
-
stable: "stable";
|
|
207
|
-
}>;
|
|
208
|
-
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
209
|
-
maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
|
|
210
|
-
mutablePermissions: z.ZodBoolean;
|
|
211
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
212
|
-
}, z.core.$strict>>>;
|
|
213
|
-
}, z.core.$strict>;
|
|
214
|
-
controllers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
215
|
-
id: z.ZodString;
|
|
216
|
-
scope: z.ZodEnum<{
|
|
217
|
-
write: "write";
|
|
218
|
-
admin: "admin";
|
|
219
|
-
submit: "submit";
|
|
220
|
-
}>;
|
|
221
|
-
}, z.core.$strict>>>;
|
|
222
|
-
}, z.core.$strict>;
|
|
223
|
-
/**
|
|
224
|
-
* Represents the development configuration for a satellite.
|
|
225
|
-
* @interface SatelliteDevConfig
|
|
226
|
-
*/
|
|
227
|
-
export interface SatelliteDevConfig {
|
|
228
|
-
/**
|
|
229
|
-
* The collections configuration.
|
|
230
|
-
* @type {SatelliteDevCollections}
|
|
231
|
-
*/
|
|
232
|
-
collections: SatelliteDevCollections;
|
|
233
|
-
/**
|
|
234
|
-
* The optional controllers configuration.
|
|
235
|
-
* @type {SatelliteDevController[]}
|
|
236
|
-
* @optional
|
|
237
|
-
*/
|
|
238
|
-
controllers?: SatelliteDevController[];
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* @see JunoDevConfig
|
|
242
|
-
*/
|
|
243
|
-
export declare const JunoDevConfigSchema: z.ZodObject<{
|
|
244
|
-
satellite: z.ZodObject<{
|
|
245
|
-
collections: z.ZodObject<{
|
|
246
|
-
datastore: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
247
|
-
collection: z.ZodString;
|
|
248
|
-
read: z.ZodEnum<{
|
|
249
|
-
controllers: "controllers";
|
|
250
|
-
public: "public";
|
|
251
|
-
private: "private";
|
|
252
|
-
managed: "managed";
|
|
253
|
-
}>;
|
|
254
|
-
write: z.ZodEnum<{
|
|
255
|
-
controllers: "controllers";
|
|
256
|
-
public: "public";
|
|
257
|
-
private: "private";
|
|
258
|
-
managed: "managed";
|
|
259
|
-
}>;
|
|
260
|
-
memory: z.ZodEnum<{
|
|
261
|
-
heap: "heap";
|
|
262
|
-
stable: "stable";
|
|
263
|
-
}>;
|
|
264
|
-
maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
|
|
265
|
-
maxCapacity: z.ZodOptional<z.ZodNumber>;
|
|
266
|
-
mutablePermissions: z.ZodBoolean;
|
|
267
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
268
|
-
}, z.core.$strict>>>;
|
|
269
|
-
storage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
270
|
-
collection: z.ZodString;
|
|
271
|
-
read: z.ZodEnum<{
|
|
272
|
-
controllers: "controllers";
|
|
273
|
-
public: "public";
|
|
274
|
-
private: "private";
|
|
275
|
-
managed: "managed";
|
|
276
|
-
}>;
|
|
277
|
-
write: z.ZodEnum<{
|
|
278
|
-
controllers: "controllers";
|
|
279
|
-
public: "public";
|
|
280
|
-
private: "private";
|
|
281
|
-
managed: "managed";
|
|
282
|
-
}>;
|
|
283
|
-
memory: z.ZodEnum<{
|
|
284
|
-
heap: "heap";
|
|
285
|
-
stable: "stable";
|
|
286
|
-
}>;
|
|
287
|
-
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
288
|
-
maxChangesPerUser: z.ZodOptional<z.ZodNumber>;
|
|
289
|
-
mutablePermissions: z.ZodBoolean;
|
|
290
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
291
|
-
}, z.core.$strict>>>;
|
|
292
|
-
}, z.core.$strict>;
|
|
293
|
-
controllers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
294
|
-
id: z.ZodString;
|
|
295
|
-
scope: z.ZodEnum<{
|
|
296
|
-
write: "write";
|
|
297
|
-
admin: "admin";
|
|
298
|
-
submit: "submit";
|
|
299
|
-
}>;
|
|
300
|
-
}, z.core.$strict>>>;
|
|
301
|
-
}, z.core.$strict>;
|
|
302
|
-
}, z.core.$strict>;
|
|
303
|
-
/**
|
|
304
|
-
* Represents the development configuration for Juno.
|
|
305
|
-
* @interface JunoDevConfig
|
|
306
|
-
*/
|
|
307
|
-
export interface JunoDevConfig {
|
|
308
|
-
/**
|
|
309
|
-
* The development configuration for the satellite.
|
|
310
|
-
* @type {SatelliteDevConfig}
|
|
311
|
-
*/
|
|
312
|
-
satellite: SatelliteDevConfig;
|
|
313
|
-
}
|
|
File without changes
|
|
File without changes
|