@junobuild/admin
Version:
A library for interfacing with admin features of Juno
52 lines (51 loc) • 2.26 kB
TypeScript
import { CanisterStatus } from '@dfinity/agent';
import { type chunk_hash, type InstallChunkedCodeParams, type InstallCodeParams, type list_canister_snapshots_result, type snapshot_id, type UploadChunkParams } from '@dfinity/ic-management';
import type { take_canister_snapshot_result } from '@dfinity/ic-management/dist/candid/ic-management';
import type { CanisterStatusResponse } from '@dfinity/ic-management/dist/types/types/ic-management.responses';
import { Principal } from '@dfinity/principal';
import type { ActorParameters } from '../types/actor.types';
export declare const canisterStop: ({ canisterId, actor }: {
canisterId: Principal;
actor: ActorParameters;
}) => Promise<void>;
export declare const canisterStart: ({ canisterId, actor }: {
canisterId: Principal;
actor: ActorParameters;
}) => Promise<void>;
export declare const installCode: ({ actor, code }: {
actor: ActorParameters;
code: InstallCodeParams;
}) => Promise<void>;
export declare const storedChunks: ({ actor, canisterId }: {
actor: ActorParameters;
canisterId: Principal;
}) => Promise<chunk_hash[]>;
export declare const clearChunkStore: ({ actor, canisterId }: {
actor: ActorParameters;
canisterId: Principal;
}) => Promise<void>;
export declare const uploadChunk: ({ actor, chunk }: {
actor: ActorParameters;
chunk: UploadChunkParams;
}) => Promise<chunk_hash>;
export declare const installChunkedCode: ({ actor, code }: {
actor: ActorParameters;
code: InstallChunkedCodeParams;
}) => Promise<void>;
export declare const canisterStatus: ({ actor, canisterId }: {
actor: ActorParameters;
canisterId: Principal;
}) => Promise<CanisterStatusResponse>;
export declare const canisterMetadata: ({ canisterId, path, ...rest }: ActorParameters & {
canisterId: Principal | string;
path: string;
}) => Promise<CanisterStatus.Status | undefined>;
export declare const listCanisterSnapshots: ({ actor, canisterId }: {
actor: ActorParameters;
canisterId: Principal;
}) => Promise<list_canister_snapshots_result>;
export declare const takeCanisterSnapshot: ({ actor, ...rest }: {
actor: ActorParameters;
canisterId: Principal;
snapshotId?: snapshot_id;
}) => Promise<take_canister_snapshot_result>;