@junobuild/ic-client 8.0.2 → 8.1.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.
Files changed (31) hide show
  1. package/actor.js +1 -1
  2. package/actor.js.map +3 -3
  3. package/actor.mjs +1 -1
  4. package/actor.mjs.map +3 -3
  5. package/declarations/console/console.did.d.ts +18 -18
  6. package/declarations/console/console.factory.certified.did.js +10 -10
  7. package/declarations/console/console.factory.did.js +10 -10
  8. package/declarations/console/console.factory.did.mjs +10 -10
  9. package/declarations/mission_control/mission_control.did.d.ts +17 -17
  10. package/declarations/mission_control/mission_control.factory.certified.did.js +12 -12
  11. package/declarations/mission_control/mission_control.factory.did.js +12 -12
  12. package/declarations/observatory/observatory.did.d.ts +10 -10
  13. package/declarations/observatory/observatory.factory.certified.did.js +10 -10
  14. package/declarations/observatory/observatory.factory.did.js +10 -10
  15. package/declarations/observatory/observatory.factory.did.mjs +10 -10
  16. package/declarations/orbiter/orbiter.did.d.ts +17 -17
  17. package/declarations/orbiter/orbiter.factory.certified.did.js +12 -12
  18. package/declarations/orbiter/orbiter.factory.did.js +12 -12
  19. package/declarations/orbiter/orbiter.factory.did.mjs +12 -12
  20. package/declarations/satellite/satellite.did.d.ts +44 -20
  21. package/declarations/satellite/satellite.factory.certified.did.js +46 -20
  22. package/declarations/satellite/satellite.factory.did.js +46 -20
  23. package/declarations/satellite/satellite.factory.did.mjs +46 -20
  24. package/declarations/sputnik/sputnik.did.d.ts +44 -20
  25. package/declarations/sputnik/sputnik.factory.certified.did.js +46 -20
  26. package/declarations/sputnik/sputnik.factory.did.js +46 -20
  27. package/package.json +2 -2
  28. package/webauthn.js +1 -1
  29. package/webauthn.js.map +3 -3
  30. package/webauthn.mjs +1 -1
  31. package/webauthn.mjs.map +3 -3
@@ -10,6 +10,16 @@ import type { ActorMethod } from '@icp-sdk/core/agent';
10
10
  import type { IDL } from '@icp-sdk/core/candid';
11
11
  import type { Principal } from '@icp-sdk/core/principal';
12
12
 
13
+ export interface AccessKey {
14
+ updated_at: bigint;
15
+ metadata: Array<[string, string]>;
16
+ kind: [] | [AccessKeyKind];
17
+ created_at: bigint;
18
+ scope: AccessKeyScope;
19
+ expires_at: [] | [bigint];
20
+ }
21
+ export type AccessKeyKind = { Emulator: null } | { Automation: null };
22
+ export type AccessKeyScope = { Write: null } | { Admin: null } | { Submit: null };
13
23
  export interface AnalyticKey {
14
24
  key: string;
15
25
  collected_at: bigint;
@@ -75,16 +85,6 @@ export interface CalendarDate {
75
85
  month: number;
76
86
  year: number;
77
87
  }
78
- export interface Controller {
79
- updated_at: bigint;
80
- metadata: Array<[string, string]>;
81
- kind: [] | [ControllerKind];
82
- created_at: bigint;
83
- scope: ControllerScope;
84
- expires_at: [] | [bigint];
85
- }
86
- export type ControllerKind = { Emulator: null } | { Automation: null };
87
- export type ControllerScope = { Write: null } | { Admin: null } | { Submit: null };
88
88
  export interface DelSatelliteConfig {
89
89
  version: [] | [bigint];
90
90
  }
@@ -193,14 +193,14 @@ export type Result = { Ok: PageView } | { Err: string };
193
193
  export type Result_1 = { Ok: null } | { Err: Array<[AnalyticKey, string]> };
194
194
  export type Result_2 = { Ok: PerformanceMetric } | { Err: string };
195
195
  export type Result_3 = { Ok: TrackEvent } | { Err: string };
196
- export interface SetController {
196
+ export interface SetAccessKey {
197
197
  metadata: Array<[string, string]>;
198
- kind: [] | [ControllerKind];
199
- scope: ControllerScope;
198
+ kind: [] | [AccessKeyKind];
199
+ scope: AccessKeyScope;
200
200
  expires_at: [] | [bigint];
201
201
  }
202
202
  export interface SetControllersArgs {
203
- controller: SetController;
203
+ controller: SetAccessKey;
204
204
  controllers: Array<Principal>;
205
205
  }
206
206
  export interface SetPageView {
@@ -256,7 +256,7 @@ export interface WebVitalsMetric {
256
256
  delta: number;
257
257
  }
258
258
  export interface _SERVICE {
259
- del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
259
+ del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, AccessKey]>>;
260
260
  del_satellite_config: ActorMethod<[Principal, DelSatelliteConfig], undefined>;
261
261
  deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
262
262
  get_page_views: ActorMethod<[GetAnalytics], Array<[AnalyticKey, PageView]>>;
@@ -272,10 +272,10 @@ export interface _SERVICE {
272
272
  get_track_events_analytics: ActorMethod<[GetAnalytics], AnalyticsTrackEvents>;
273
273
  http_request: ActorMethod<[HttpRequest], HttpResponse>;
274
274
  http_request_update: ActorMethod<[HttpRequest], HttpResponse>;
275
- list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
275
+ list_controllers: ActorMethod<[], Array<[Principal, AccessKey]>>;
276
276
  list_satellite_configs: ActorMethod<[], Array<[Principal, OrbiterSatelliteConfig]>>;
277
277
  memory_size: ActorMethod<[], MemorySize>;
278
- set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
278
+ set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, AccessKey]>>;
279
279
  set_page_view: ActorMethod<[AnalyticKey, SetPageView], Result>;
280
280
  set_page_views: ActorMethod<[Array<[AnalyticKey, SetPageView]>], Result_1>;
281
281
  set_performance_metric: ActorMethod<[AnalyticKey, SetPerformanceMetric], Result_2>;
@@ -13,21 +13,21 @@ export const idlFactory = ({IDL}) => {
13
13
  const DeleteControllersArgs = IDL.Record({
14
14
  controllers: IDL.Vec(IDL.Principal)
15
15
  });
16
- const ControllerKind = IDL.Variant({
16
+ const AccessKeyKind = IDL.Variant({
17
17
  Emulator: IDL.Null,
18
18
  Automation: IDL.Null
19
19
  });
20
- const ControllerScope = IDL.Variant({
20
+ const AccessKeyScope = IDL.Variant({
21
21
  Write: IDL.Null,
22
22
  Admin: IDL.Null,
23
23
  Submit: IDL.Null
24
24
  });
25
- const Controller = IDL.Record({
25
+ const AccessKey = IDL.Record({
26
26
  updated_at: IDL.Nat64,
27
27
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
28
- kind: IDL.Opt(ControllerKind),
28
+ kind: IDL.Opt(AccessKeyKind),
29
29
  created_at: IDL.Nat64,
30
- scope: ControllerScope,
30
+ scope: AccessKeyScope,
31
31
  expires_at: IDL.Opt(IDL.Nat64)
32
32
  });
33
33
  const DelSatelliteConfig = IDL.Record({version: IDL.Opt(IDL.Nat64)});
@@ -205,14 +205,14 @@ export const idlFactory = ({IDL}) => {
205
205
  version: IDL.Opt(IDL.Nat64)
206
206
  });
207
207
  const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
208
- const SetController = IDL.Record({
208
+ const SetAccessKey = IDL.Record({
209
209
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
210
- kind: IDL.Opt(ControllerKind),
211
- scope: ControllerScope,
210
+ kind: IDL.Opt(AccessKeyKind),
211
+ scope: AccessKeyScope,
212
212
  expires_at: IDL.Opt(IDL.Nat64)
213
213
  });
214
214
  const SetControllersArgs = IDL.Record({
215
- controller: SetController,
215
+ controller: SetAccessKey,
216
216
  controllers: IDL.Vec(IDL.Principal)
217
217
  });
218
218
  const SetPageView = IDL.Record({
@@ -263,7 +263,7 @@ export const idlFactory = ({IDL}) => {
263
263
  return IDL.Service({
264
264
  del_controllers: IDL.Func(
265
265
  [DeleteControllersArgs],
266
- [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
266
+ [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))],
267
267
  []
268
268
  ),
269
269
  del_satellite_config: IDL.Func([IDL.Principal, DelSatelliteConfig], [], []),
@@ -286,7 +286,7 @@ export const idlFactory = ({IDL}) => {
286
286
  get_track_events_analytics: IDL.Func([GetAnalytics], [AnalyticsTrackEvents], []),
287
287
  http_request: IDL.Func([HttpRequest], [HttpResponse], []),
288
288
  http_request_update: IDL.Func([HttpRequest], [HttpResponse], []),
289
- list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], []),
289
+ list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))], []),
290
290
  list_satellite_configs: IDL.Func(
291
291
  [],
292
292
  [IDL.Vec(IDL.Tuple(IDL.Principal, OrbiterSatelliteConfig))],
@@ -295,7 +295,7 @@ export const idlFactory = ({IDL}) => {
295
295
  memory_size: IDL.Func([], [MemorySize], []),
296
296
  set_controllers: IDL.Func(
297
297
  [SetControllersArgs],
298
- [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
298
+ [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))],
299
299
  []
300
300
  ),
301
301
  set_page_view: IDL.Func([AnalyticKey, SetPageView], [Result], []),
@@ -13,21 +13,21 @@ export const idlFactory = ({IDL}) => {
13
13
  const DeleteControllersArgs = IDL.Record({
14
14
  controllers: IDL.Vec(IDL.Principal)
15
15
  });
16
- const ControllerKind = IDL.Variant({
16
+ const AccessKeyKind = IDL.Variant({
17
17
  Emulator: IDL.Null,
18
18
  Automation: IDL.Null
19
19
  });
20
- const ControllerScope = IDL.Variant({
20
+ const AccessKeyScope = IDL.Variant({
21
21
  Write: IDL.Null,
22
22
  Admin: IDL.Null,
23
23
  Submit: IDL.Null
24
24
  });
25
- const Controller = IDL.Record({
25
+ const AccessKey = IDL.Record({
26
26
  updated_at: IDL.Nat64,
27
27
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
28
- kind: IDL.Opt(ControllerKind),
28
+ kind: IDL.Opt(AccessKeyKind),
29
29
  created_at: IDL.Nat64,
30
- scope: ControllerScope,
30
+ scope: AccessKeyScope,
31
31
  expires_at: IDL.Opt(IDL.Nat64)
32
32
  });
33
33
  const DelSatelliteConfig = IDL.Record({version: IDL.Opt(IDL.Nat64)});
@@ -205,14 +205,14 @@ export const idlFactory = ({IDL}) => {
205
205
  version: IDL.Opt(IDL.Nat64)
206
206
  });
207
207
  const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
208
- const SetController = IDL.Record({
208
+ const SetAccessKey = IDL.Record({
209
209
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
210
- kind: IDL.Opt(ControllerKind),
211
- scope: ControllerScope,
210
+ kind: IDL.Opt(AccessKeyKind),
211
+ scope: AccessKeyScope,
212
212
  expires_at: IDL.Opt(IDL.Nat64)
213
213
  });
214
214
  const SetControllersArgs = IDL.Record({
215
- controller: SetController,
215
+ controller: SetAccessKey,
216
216
  controllers: IDL.Vec(IDL.Principal)
217
217
  });
218
218
  const SetPageView = IDL.Record({
@@ -263,7 +263,7 @@ export const idlFactory = ({IDL}) => {
263
263
  return IDL.Service({
264
264
  del_controllers: IDL.Func(
265
265
  [DeleteControllersArgs],
266
- [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
266
+ [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))],
267
267
  []
268
268
  ),
269
269
  del_satellite_config: IDL.Func([IDL.Principal, DelSatelliteConfig], [], []),
@@ -302,7 +302,7 @@ export const idlFactory = ({IDL}) => {
302
302
  get_track_events_analytics: IDL.Func([GetAnalytics], [AnalyticsTrackEvents], ['query']),
303
303
  http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
304
304
  http_request_update: IDL.Func([HttpRequest], [HttpResponse], []),
305
- list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
305
+ list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))], ['query']),
306
306
  list_satellite_configs: IDL.Func(
307
307
  [],
308
308
  [IDL.Vec(IDL.Tuple(IDL.Principal, OrbiterSatelliteConfig))],
@@ -311,7 +311,7 @@ export const idlFactory = ({IDL}) => {
311
311
  memory_size: IDL.Func([], [MemorySize], ['query']),
312
312
  set_controllers: IDL.Func(
313
313
  [SetControllersArgs],
314
- [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
314
+ [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))],
315
315
  []
316
316
  ),
317
317
  set_page_view: IDL.Func([AnalyticKey, SetPageView], [Result], []),
@@ -13,21 +13,21 @@ export const idlFactory = ({IDL}) => {
13
13
  const DeleteControllersArgs = IDL.Record({
14
14
  controllers: IDL.Vec(IDL.Principal)
15
15
  });
16
- const ControllerKind = IDL.Variant({
16
+ const AccessKeyKind = IDL.Variant({
17
17
  Emulator: IDL.Null,
18
18
  Automation: IDL.Null
19
19
  });
20
- const ControllerScope = IDL.Variant({
20
+ const AccessKeyScope = IDL.Variant({
21
21
  Write: IDL.Null,
22
22
  Admin: IDL.Null,
23
23
  Submit: IDL.Null
24
24
  });
25
- const Controller = IDL.Record({
25
+ const AccessKey = IDL.Record({
26
26
  updated_at: IDL.Nat64,
27
27
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
28
- kind: IDL.Opt(ControllerKind),
28
+ kind: IDL.Opt(AccessKeyKind),
29
29
  created_at: IDL.Nat64,
30
- scope: ControllerScope,
30
+ scope: AccessKeyScope,
31
31
  expires_at: IDL.Opt(IDL.Nat64)
32
32
  });
33
33
  const DelSatelliteConfig = IDL.Record({version: IDL.Opt(IDL.Nat64)});
@@ -205,14 +205,14 @@ export const idlFactory = ({IDL}) => {
205
205
  version: IDL.Opt(IDL.Nat64)
206
206
  });
207
207
  const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
208
- const SetController = IDL.Record({
208
+ const SetAccessKey = IDL.Record({
209
209
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
210
- kind: IDL.Opt(ControllerKind),
211
- scope: ControllerScope,
210
+ kind: IDL.Opt(AccessKeyKind),
211
+ scope: AccessKeyScope,
212
212
  expires_at: IDL.Opt(IDL.Nat64)
213
213
  });
214
214
  const SetControllersArgs = IDL.Record({
215
- controller: SetController,
215
+ controller: SetAccessKey,
216
216
  controllers: IDL.Vec(IDL.Principal)
217
217
  });
218
218
  const SetPageView = IDL.Record({
@@ -263,7 +263,7 @@ export const idlFactory = ({IDL}) => {
263
263
  return IDL.Service({
264
264
  del_controllers: IDL.Func(
265
265
  [DeleteControllersArgs],
266
- [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
266
+ [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))],
267
267
  []
268
268
  ),
269
269
  del_satellite_config: IDL.Func([IDL.Principal, DelSatelliteConfig], [], []),
@@ -302,7 +302,7 @@ export const idlFactory = ({IDL}) => {
302
302
  get_track_events_analytics: IDL.Func([GetAnalytics], [AnalyticsTrackEvents], ['query']),
303
303
  http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
304
304
  http_request_update: IDL.Func([HttpRequest], [HttpResponse], []),
305
- list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
305
+ list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))], ['query']),
306
306
  list_satellite_configs: IDL.Func(
307
307
  [],
308
308
  [IDL.Vec(IDL.Tuple(IDL.Principal, OrbiterSatelliteConfig))],
@@ -311,7 +311,7 @@ export const idlFactory = ({IDL}) => {
311
311
  memory_size: IDL.Func([], [MemorySize], ['query']),
312
312
  set_controllers: IDL.Func(
313
313
  [SetControllersArgs],
314
- [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
314
+ [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))],
315
315
  []
316
316
  ),
317
317
  set_page_view: IDL.Func([AnalyticKey, SetPageView], [Result], []),
@@ -10,6 +10,16 @@ import type { ActorMethod } from '@icp-sdk/core/agent';
10
10
  import type { IDL } from '@icp-sdk/core/candid';
11
11
  import type { Principal } from '@icp-sdk/core/principal';
12
12
 
13
+ export interface AccessKey {
14
+ updated_at: bigint;
15
+ metadata: Array<[string, string]>;
16
+ kind: [] | [AccessKeyKind];
17
+ created_at: bigint;
18
+ scope: AccessKeyScope;
19
+ expires_at: [] | [bigint];
20
+ }
21
+ export type AccessKeyKind = { Emulator: null } | { Automation: null };
22
+ export type AccessKeyScope = { Write: null } | { Admin: null } | { Submit: null };
13
23
  export interface AssetEncodingNoContent {
14
24
  modified: bigint;
15
25
  sha256: Uint8Array;
@@ -94,6 +104,21 @@ export interface AutomationController {
94
104
  expires_at: bigint;
95
105
  }
96
106
  export type AutomationScope = { Write: null } | { Submit: null };
107
+ export interface CertifyAssetsArgs {
108
+ cursor: CertifyAssetsCursor;
109
+ strategy: CertifyAssetsStrategy;
110
+ chunk_size: [] | [number];
111
+ }
112
+ export type CertifyAssetsCursor =
113
+ | { Heap: { offset: bigint } }
114
+ | { Stable: { key: [] | [AssetKey] } };
115
+ export interface CertifyAssetsResult {
116
+ next_cursor: [] | [CertifyAssetsCursor];
117
+ }
118
+ export type CertifyAssetsStrategy =
119
+ | { Append: null }
120
+ | { Clear: null }
121
+ | { AppendWithRouting: null };
97
122
  export type CollectionType = { Db: null } | { Storage: null };
98
123
  export interface CommitBatch {
99
124
  batch_id: bigint;
@@ -114,16 +139,6 @@ export interface ConfigMaxMemorySize {
114
139
  stable: [] | [bigint];
115
140
  heap: [] | [bigint];
116
141
  }
117
- export interface Controller {
118
- updated_at: bigint;
119
- metadata: Array<[string, string]>;
120
- kind: [] | [ControllerKind];
121
- created_at: bigint;
122
- scope: ControllerScope;
123
- expires_at: [] | [bigint];
124
- }
125
- export type ControllerKind = { Emulator: null } | { Automation: null };
126
- export type ControllerScope = { Write: null } | { Admin: null } | { Submit: null };
127
142
  export interface CustomDomain {
128
143
  updated_at: bigint;
129
144
  created_at: bigint;
@@ -407,6 +422,12 @@ export interface SegmentsDeploymentOptions {
407
422
  mission_control_version: [] | [string];
408
423
  satellite_version: [] | [string];
409
424
  }
425
+ export interface SetAccessKey {
426
+ metadata: Array<[string, string]>;
427
+ kind: [] | [AccessKeyKind];
428
+ scope: AccessKeyScope;
429
+ expires_at: [] | [bigint];
430
+ }
410
431
  export interface SetAuthenticationConfig {
411
432
  openid: [] | [AuthenticationConfigOpenId];
412
433
  version: [] | [bigint];
@@ -417,14 +438,8 @@ export interface SetAutomationConfig {
417
438
  openid: [] | [AutomationConfigOpenId];
418
439
  version: [] | [bigint];
419
440
  }
420
- export interface SetController {
421
- metadata: Array<[string, string]>;
422
- kind: [] | [ControllerKind];
423
- scope: ControllerScope;
424
- expires_at: [] | [bigint];
425
- }
426
441
  export interface SetControllersArgs {
427
- controller: SetController;
442
+ controller: SetAccessKey;
428
443
  controllers: Array<Principal>;
429
444
  }
430
445
  export interface SetDbConfig {
@@ -456,6 +471,13 @@ export interface SetStorageConfig {
456
471
  raw_access: [] | [StorageConfigRawAccess];
457
472
  redirects: [] | [Array<[string, StorageConfigRedirect]>];
458
473
  }
474
+ export interface SetStorageConfigOptions {
475
+ skip_certification: [] | [boolean];
476
+ }
477
+ export interface SetStorageConfigWithOptions {
478
+ config: SetStorageConfig;
479
+ options: SetStorageConfigOptions;
480
+ }
459
481
  export interface SignedDelegation {
460
482
  signature: Uint8Array;
461
483
  delegation: Delegation;
@@ -515,6 +537,7 @@ export interface _SERVICE {
515
537
  [AuthenticateAutomationArgs],
516
538
  AuthenticateAutomationResultResponse
517
539
  >;
540
+ certify_assets_chunk: ActorMethod<[CertifyAssetsArgs], CertifyAssetsResult>;
518
541
  commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
519
542
  commit_proposal: ActorMethod<[CommitProposal], null>;
520
543
  commit_proposal_asset_upload: ActorMethod<[CommitBatch], undefined>;
@@ -527,7 +550,7 @@ export interface _SERVICE {
527
550
  del_asset: ActorMethod<[string, string], undefined>;
528
551
  del_assets: ActorMethod<[string], undefined>;
529
552
  del_controller_self: ActorMethod<[], undefined>;
530
- del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
553
+ del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, AccessKey]>>;
531
554
  del_custom_domain: ActorMethod<[string], undefined>;
532
555
  del_doc: ActorMethod<[string, string, DelDoc], undefined>;
533
556
  del_docs: ActorMethod<[string], undefined>;
@@ -563,7 +586,7 @@ export interface _SERVICE {
563
586
  Array<[string, InitUploadResult]>
564
587
  >;
565
588
  list_assets: ActorMethod<[string, ListParams], ListResults>;
566
- list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
589
+ list_controllers: ActorMethod<[], Array<[Principal, AccessKey]>>;
567
590
  list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
568
591
  list_docs: ActorMethod<[string, ListParams], ListResults_1>;
569
592
  list_proposals: ActorMethod<[ListProposalsParams], ListProposalResults>;
@@ -573,13 +596,14 @@ export interface _SERVICE {
573
596
  set_asset_token: ActorMethod<[string, string, [] | [string]], undefined>;
574
597
  set_auth_config: ActorMethod<[SetAuthenticationConfig], AuthenticationConfig>;
575
598
  set_automation_config: ActorMethod<[SetAutomationConfig], AutomationConfig>;
576
- set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
599
+ set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, AccessKey]>>;
577
600
  set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
578
601
  set_db_config: ActorMethod<[SetDbConfig], DbConfig>;
579
602
  set_doc: ActorMethod<[string, string, SetDoc], Doc>;
580
603
  set_many_docs: ActorMethod<[Array<[string, string, SetDoc]>], Array<[string, Doc]>>;
581
604
  set_rule: ActorMethod<[CollectionType, string, SetRule], Rule>;
582
605
  set_storage_config: ActorMethod<[SetStorageConfig], StorageConfig>;
606
+ set_storage_config_with_options: ActorMethod<[SetStorageConfigWithOptions], StorageConfig>;
583
607
  submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
584
608
  switch_storage_system_memory: ActorMethod<[], undefined>;
585
609
  upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
@@ -111,6 +111,31 @@ export const idlFactory = ({IDL}) => {
111
111
  Ok: IDL.Tuple(IDL.Principal, AutomationController),
112
112
  Err: AuthenticationAutomationError
113
113
  });
114
+ const AssetKey = IDL.Record({
115
+ token: IDL.Opt(IDL.Text),
116
+ collection: IDL.Text,
117
+ owner: IDL.Principal,
118
+ name: IDL.Text,
119
+ description: IDL.Opt(IDL.Text),
120
+ full_path: IDL.Text
121
+ });
122
+ const CertifyAssetsCursor = IDL.Variant({
123
+ Heap: IDL.Record({offset: IDL.Nat64}),
124
+ Stable: IDL.Record({key: IDL.Opt(AssetKey)})
125
+ });
126
+ const CertifyAssetsStrategy = IDL.Variant({
127
+ Append: IDL.Null,
128
+ Clear: IDL.Null,
129
+ AppendWithRouting: IDL.Null
130
+ });
131
+ const CertifyAssetsArgs = IDL.Record({
132
+ cursor: CertifyAssetsCursor,
133
+ strategy: CertifyAssetsStrategy,
134
+ chunk_size: IDL.Opt(IDL.Nat32)
135
+ });
136
+ const CertifyAssetsResult = IDL.Record({
137
+ next_cursor: IDL.Opt(CertifyAssetsCursor)
138
+ });
114
139
  const CommitBatch = IDL.Record({
115
140
  batch_id: IDL.Nat,
116
141
  headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
@@ -151,21 +176,21 @@ export const idlFactory = ({IDL}) => {
151
176
  const DeleteControllersArgs = IDL.Record({
152
177
  controllers: IDL.Vec(IDL.Principal)
153
178
  });
154
- const ControllerKind = IDL.Variant({
179
+ const AccessKeyKind = IDL.Variant({
155
180
  Emulator: IDL.Null,
156
181
  Automation: IDL.Null
157
182
  });
158
- const ControllerScope = IDL.Variant({
183
+ const AccessKeyScope = IDL.Variant({
159
184
  Write: IDL.Null,
160
185
  Admin: IDL.Null,
161
186
  Submit: IDL.Null
162
187
  });
163
- const Controller = IDL.Record({
188
+ const AccessKey = IDL.Record({
164
189
  updated_at: IDL.Nat64,
165
190
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
166
- kind: IDL.Opt(ControllerKind),
191
+ kind: IDL.Opt(AccessKeyKind),
167
192
  created_at: IDL.Nat64,
168
- scope: ControllerScope,
193
+ scope: AccessKeyScope,
169
194
  expires_at: IDL.Opt(IDL.Nat64)
170
195
  });
171
196
  const DelDoc = IDL.Record({version: IDL.Opt(IDL.Nat64)});
@@ -178,14 +203,6 @@ export const idlFactory = ({IDL}) => {
178
203
  cycles: IDL.Nat,
179
204
  destination_id: IDL.Principal
180
205
  });
181
- const AssetKey = IDL.Record({
182
- token: IDL.Opt(IDL.Text),
183
- collection: IDL.Text,
184
- owner: IDL.Principal,
185
- name: IDL.Text,
186
- description: IDL.Opt(IDL.Text),
187
- full_path: IDL.Text
188
- });
189
206
  const AssetEncodingNoContent = IDL.Record({
190
207
  modified: IDL.Nat64,
191
208
  sha256: IDL.Vec(IDL.Nat8),
@@ -469,14 +486,14 @@ export const idlFactory = ({IDL}) => {
469
486
  openid: IDL.Opt(AutomationConfigOpenId),
470
487
  version: IDL.Opt(IDL.Nat64)
471
488
  });
472
- const SetController = IDL.Record({
489
+ const SetAccessKey = IDL.Record({
473
490
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
474
- kind: IDL.Opt(ControllerKind),
475
- scope: ControllerScope,
491
+ kind: IDL.Opt(AccessKeyKind),
492
+ scope: AccessKeyScope,
476
493
  expires_at: IDL.Opt(IDL.Nat64)
477
494
  });
478
495
  const SetControllersArgs = IDL.Record({
479
- controller: SetController,
496
+ controller: SetAccessKey,
480
497
  controllers: IDL.Vec(IDL.Principal)
481
498
  });
482
499
  const SetDbConfig = IDL.Record({
@@ -508,6 +525,13 @@ export const idlFactory = ({IDL}) => {
508
525
  raw_access: IDL.Opt(StorageConfigRawAccess),
509
526
  redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
510
527
  });
528
+ const SetStorageConfigOptions = IDL.Record({
529
+ skip_certification: IDL.Opt(IDL.Bool)
530
+ });
531
+ const SetStorageConfigWithOptions = IDL.Record({
532
+ config: SetStorageConfig,
533
+ options: SetStorageConfigOptions
534
+ });
511
535
  const UploadChunk = IDL.Record({
512
536
  content: IDL.Vec(IDL.Nat8),
513
537
  batch_id: IDL.Nat,
@@ -522,6 +546,7 @@ export const idlFactory = ({IDL}) => {
522
546
  [AuthenticateAutomationResultResponse],
523
547
  []
524
548
  ),
549
+ certify_assets_chunk: IDL.Func([CertifyAssetsArgs], [CertifyAssetsResult], []),
525
550
  commit_asset_upload: IDL.Func([CommitBatch], [], []),
526
551
  commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
527
552
  commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
@@ -536,7 +561,7 @@ export const idlFactory = ({IDL}) => {
536
561
  del_controller_self: IDL.Func([], [], []),
537
562
  del_controllers: IDL.Func(
538
563
  [DeleteControllersArgs],
539
- [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
564
+ [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))],
540
565
  []
541
566
  ),
542
567
  del_custom_domain: IDL.Func([IDL.Text], [], []),
@@ -584,7 +609,7 @@ export const idlFactory = ({IDL}) => {
584
609
  []
585
610
  ),
586
611
  list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], []),
587
- list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], []),
612
+ list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))], []),
588
613
  list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], []),
589
614
  list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], []),
590
615
  list_proposals: IDL.Func([ListProposalsParams], [ListProposalResults], []),
@@ -596,7 +621,7 @@ export const idlFactory = ({IDL}) => {
596
621
  set_automation_config: IDL.Func([SetAutomationConfig], [AutomationConfig], []),
597
622
  set_controllers: IDL.Func(
598
623
  [SetControllersArgs],
599
- [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
624
+ [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))],
600
625
  []
601
626
  ),
602
627
  set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
@@ -609,6 +634,7 @@ export const idlFactory = ({IDL}) => {
609
634
  ),
610
635
  set_rule: IDL.Func([CollectionType, IDL.Text, SetRule], [Rule], []),
611
636
  set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
637
+ set_storage_config_with_options: IDL.Func([SetStorageConfigWithOptions], [StorageConfig], []),
612
638
  submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
613
639
  switch_storage_system_memory: IDL.Func([], [], []),
614
640
  upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),