@junobuild/admin 3.0.4 → 3.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.
@@ -1,4 +1,4 @@
1
- import { type CanisterStatusResponse, type chunk_hash, type InstallChunkedCodeParams, type InstallCodeParams, type list_canister_snapshots_result, type snapshot_id, type take_canister_snapshot_result, type UploadChunkParams } from '@icp-sdk/canisters/ic-management';
1
+ import { type CanisterStatusResponse, type IcManagementDid, type InstallChunkedCodeParams, type InstallCodeParams, type UploadChunkParams } from '@icp-sdk/canisters/ic-management';
2
2
  import { CanisterStatus } from '@icp-sdk/core/agent';
3
3
  import { Principal } from '@icp-sdk/core/principal';
4
4
  import { type ActorParameters } from '@junobuild/ic-client/actor';
@@ -17,7 +17,7 @@ export declare const installCode: ({ actor, code }: {
17
17
  export declare const storedChunks: ({ actor, canisterId }: {
18
18
  actor: ActorParameters;
19
19
  canisterId: Principal;
20
- }) => Promise<chunk_hash[]>;
20
+ }) => Promise<IcManagementDid.chunk_hash[]>;
21
21
  export declare const clearChunkStore: ({ actor, canisterId }: {
22
22
  actor: ActorParameters;
23
23
  canisterId: Principal;
@@ -25,7 +25,7 @@ export declare const clearChunkStore: ({ actor, canisterId }: {
25
25
  export declare const uploadChunk: ({ actor, chunk }: {
26
26
  actor: ActorParameters;
27
27
  chunk: UploadChunkParams;
28
- }) => Promise<chunk_hash>;
28
+ }) => Promise<IcManagementDid.chunk_hash>;
29
29
  export declare const installChunkedCode: ({ actor, code }: {
30
30
  actor: ActorParameters;
31
31
  code: InstallChunkedCodeParams;
@@ -41,9 +41,9 @@ export declare const canisterMetadata: ({ canisterId, path, ...rest }: ActorPara
41
41
  export declare const listCanisterSnapshots: ({ actor, canisterId }: {
42
42
  actor: ActorParameters;
43
43
  canisterId: Principal;
44
- }) => Promise<list_canister_snapshots_result>;
44
+ }) => Promise<IcManagementDid.list_canister_snapshots_result>;
45
45
  export declare const takeCanisterSnapshot: ({ actor, ...rest }: {
46
46
  actor: ActorParameters;
47
47
  canisterId: Principal;
48
- snapshotId?: snapshot_id;
49
- }) => Promise<take_canister_snapshot_result>;
48
+ snapshotId?: IcManagementDid.snapshot_id;
49
+ }) => Promise<IcManagementDid.take_canister_snapshot_result>;
@@ -1,5 +1,5 @@
1
- import type { canister_install_mode } from '@icp-sdk/canisters/ic-management';
1
+ import type { IcManagementDid } from '@icp-sdk/canisters/ic-management';
2
2
  export declare const SIMPLE_INSTALL_MAX_WASM_SIZE = 2000000;
3
3
  export declare const INSTALL_MAX_CHUNK_SIZE = 1000000;
4
- export declare const INSTALL_MODE_RESET: canister_install_mode;
5
- export declare const INSTALL_MODE_UPGRADE: canister_install_mode;
4
+ export declare const INSTALL_MODE_RESET: IcManagementDid.canister_install_mode;
5
+ export declare const INSTALL_MODE_UPGRADE: IcManagementDid.canister_install_mode;
@@ -1,4 +1,4 @@
1
- import type { canister_install_mode } from '@icp-sdk/canisters/ic-management';
1
+ import type { IcManagementDid } from '@icp-sdk/canisters/ic-management';
2
2
  import type { Principal } from '@icp-sdk/core/principal';
3
3
  import type { ActorParameters } from '@junobuild/ic-client/actor';
4
4
  export declare enum UpgradeCodeProgressStep {
@@ -19,7 +19,7 @@ export interface UpgradeCodeParams {
19
19
  missionControlId?: Principal;
20
20
  wasmModule: Uint8Array;
21
21
  arg: Uint8Array;
22
- mode: canister_install_mode;
22
+ mode: IcManagementDid.canister_install_mode;
23
23
  preClearChunks?: boolean;
24
24
  takeSnapshot?: boolean;
25
25
  onProgress?: (progress: UpgradeCodeProgress) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/admin",
3
- "version": "3.0.4",
3
+ "version": "3.1.0",
4
4
  "description": "A library for interfacing with admin features of Juno",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",
@@ -53,7 +53,7 @@
53
53
  "homepage": "https://juno.build",
54
54
  "peerDependencies": {
55
55
  "@dfinity/utils": "^4",
56
- "@icp-sdk/canisters": "^2",
56
+ "@icp-sdk/canisters": "^3",
57
57
  "@icp-sdk/core": "^4.2",
58
58
  "@junobuild/config": "*",
59
59
  "@junobuild/ic-client": "^7",