@junobuild/cli 0.8.1 → 0.8.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/cli",
3
- "version": "0.8.1",
3
+ "version": "0.8.3",
4
4
  "description": "The Juno command-line interface",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",
@@ -30,15 +30,15 @@
30
30
  "@dfinity/identity": "^2.3.0",
31
31
  "@dfinity/principal": "^2.3.0",
32
32
  "@dfinity/zod-schemas": "^1.1.0",
33
- "@junobuild/admin": "^2.0.0",
34
- "@junobuild/cdn": "^1.1.0",
35
- "@junobuild/cli-tools": "^0.6.1",
36
- "@junobuild/config": "^2.0.0",
37
- "@junobuild/config-loader": "^0.4.1",
38
- "@junobuild/core": "^1.1.1",
39
- "@junobuild/did-tools": "^0.2.4",
40
- "@junobuild/ic-client": "^1.1.0",
41
- "@junobuild/storage": "^1.1.0",
33
+ "@junobuild/admin": "^2.1.0",
34
+ "@junobuild/cdn": "^1.2.1",
35
+ "@junobuild/cli-tools": "^0.6.5",
36
+ "@junobuild/config": "^2.1.0",
37
+ "@junobuild/config-loader": "^0.4.2",
38
+ "@junobuild/core": "^1.2.1",
39
+ "@junobuild/did-tools": "^0.2.5",
40
+ "@junobuild/ic-client": "^2.0.0",
41
+ "@junobuild/storage": "^1.2.0",
42
42
  "@junobuild/utils": "^0.1.4",
43
43
  "chokidar": "^4.0.3",
44
44
  "conf": "^14.0.0",
@@ -21,12 +21,17 @@ type AssetNoContent = record {
21
21
  };
22
22
  type AssetsUpgradeOptions = record { clear_existing_assets : opt bool };
23
23
  type AuthenticationConfig = record {
24
+ updated_at : opt nat64;
25
+ created_at : opt nat64;
26
+ version : opt nat64;
24
27
  internet_identity : opt AuthenticationConfigInternetIdentity;
28
+ rules : opt AuthenticationRules;
25
29
  };
26
30
  type AuthenticationConfigInternetIdentity = record {
27
31
  derivation_origin : opt text;
28
32
  external_alternative_origins : opt vec text;
29
33
  };
34
+ type AuthenticationRules = record { allowed_callers : vec principal };
30
35
  type CollectionType = variant { Db; Storage };
31
36
  type CommitBatch = record {
32
37
  batch_id : nat;
@@ -54,7 +59,12 @@ type CustomDomain = record {
54
59
  version : opt nat64;
55
60
  bn_id : opt text;
56
61
  };
57
- type DbConfig = record { max_memory_size : opt ConfigMaxMemorySize };
62
+ type DbConfig = record {
63
+ updated_at : opt nat64;
64
+ created_at : opt nat64;
65
+ version : opt nat64;
66
+ max_memory_size : opt ConfigMaxMemorySize;
67
+ };
58
68
  type DelDoc = record { version : opt nat64 };
59
69
  type DelRule = record { version : opt nat64 };
60
70
  type DeleteControllersArgs = record { controllers : vec principal };
@@ -182,6 +192,11 @@ type SegmentsDeploymentOptions = record {
182
192
  mission_control_version : opt text;
183
193
  satellite_version : opt text;
184
194
  };
195
+ type SetAuthenticationConfig = record {
196
+ version : opt nat64;
197
+ internet_identity : opt AuthenticationConfigInternetIdentity;
198
+ rules : opt AuthenticationRules;
199
+ };
185
200
  type SetController = record {
186
201
  metadata : vec record { text; text };
187
202
  scope : ControllerScope;
@@ -191,6 +206,10 @@ type SetControllersArgs = record {
191
206
  controller : SetController;
192
207
  controllers : vec principal;
193
208
  };
209
+ type SetDbConfig = record {
210
+ version : opt nat64;
211
+ max_memory_size : opt ConfigMaxMemorySize;
212
+ };
194
213
  type SetDoc = record {
195
214
  data : blob;
196
215
  description : opt text;
@@ -207,10 +226,22 @@ type SetRule = record {
207
226
  write : Permission;
208
227
  max_changes_per_user : opt nat32;
209
228
  };
229
+ type SetStorageConfig = record {
230
+ iframe : opt StorageConfigIFrame;
231
+ rewrites : vec record { text; text };
232
+ headers : vec record { text; vec record { text; text } };
233
+ version : opt nat64;
234
+ max_memory_size : opt ConfigMaxMemorySize;
235
+ raw_access : opt StorageConfigRawAccess;
236
+ redirects : opt vec record { text; StorageConfigRedirect };
237
+ };
210
238
  type StorageConfig = record {
211
239
  iframe : opt StorageConfigIFrame;
240
+ updated_at : opt nat64;
212
241
  rewrites : vec record { text; text };
213
242
  headers : vec record { text; vec record { text; text } };
243
+ created_at : opt nat64;
244
+ version : opt nat64;
214
245
  max_memory_size : opt ConfigMaxMemorySize;
215
246
  raw_access : opt StorageConfigRawAccess;
216
247
  redirects : opt vec record { text; StorageConfigRedirect };
@@ -253,6 +284,7 @@ service : () -> {
253
284
  commit_asset_upload : (CommitBatch) -> ();
254
285
  commit_proposal : (CommitProposal) -> (null);
255
286
  commit_proposal_asset_upload : (CommitBatch) -> ();
287
+ commit_proposal_many_assets_upload : (vec CommitBatch) -> ();
256
288
  count_assets : (text, ListParams) -> (nat64) query;
257
289
  count_collection_assets : (text) -> (nat64) query;
258
290
  count_collection_docs : (text) -> (nat64) query;
@@ -294,6 +326,9 @@ service : () -> {
294
326
  init_asset_upload : (InitAssetKey) -> (InitUploadResult);
295
327
  init_proposal : (ProposalType) -> (nat, Proposal);
296
328
  init_proposal_asset_upload : (InitAssetKey, nat) -> (InitUploadResult);
329
+ init_proposal_many_assets_upload : (vec InitAssetKey, nat) -> (
330
+ vec record { text; InitUploadResult },
331
+ );
297
332
  list_assets : (text, ListParams) -> (ListResults) query;
298
333
  list_controllers : () -> (vec record { principal; Controller }) query;
299
334
  list_custom_domains : () -> (vec record { text; CustomDomain }) query;
@@ -302,18 +337,18 @@ service : () -> {
302
337
  list_rules : (CollectionType, ListRulesParams) -> (ListRulesResults) query;
303
338
  memory_size : () -> (MemorySize) query;
304
339
  reject_proposal : (CommitProposal) -> (null);
305
- set_auth_config : (AuthenticationConfig) -> ();
340
+ set_auth_config : (SetAuthenticationConfig) -> (AuthenticationConfig);
306
341
  set_controllers : (SetControllersArgs) -> (
307
342
  vec record { principal; Controller },
308
343
  );
309
344
  set_custom_domain : (text, opt text) -> ();
310
- set_db_config : (DbConfig) -> ();
345
+ set_db_config : (SetDbConfig) -> (DbConfig);
311
346
  set_doc : (text, text, SetDoc) -> (Doc);
312
347
  set_many_docs : (vec record { text; text; SetDoc }) -> (
313
348
  vec record { text; Doc },
314
349
  );
315
350
  set_rule : (CollectionType, text, SetRule) -> (Rule);
316
- set_storage_config : (StorageConfig) -> ();
351
+ set_storage_config : (SetStorageConfig) -> (StorageConfig);
317
352
  submit_proposal : (nat) -> (nat, Proposal);
318
353
  upload_asset_chunk : (UploadChunk) -> (UploadChunkResult);
319
354
  upload_proposal_asset_chunk : (UploadChunk) -> (UploadChunkResult);