@junobuild/admin 0.0.43 → 0.0.44-next-2024-01-30

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,6 +1,11 @@
1
+ import { CanisterStatus } from '@dfinity/agent';
1
2
  import type { ActorParameters } from '../types/actor.types';
2
3
  import type { InstallCodeParams } from '../types/ic.types';
3
4
  export declare const upgradeCode: ({ actor, code }: {
4
5
  actor: ActorParameters;
5
6
  code: Omit<InstallCodeParams, 'sender_canister_version'>;
6
7
  }) => Promise<void>;
8
+ export declare const canisterMetadata: ({ canisterId, path, ...rest }: ActorParameters & {
9
+ canisterId: string | undefined;
10
+ path: string;
11
+ }) => Promise<CanisterStatus.Status | undefined>;
@@ -18,6 +18,9 @@ export declare const setRule: ({ type, collection, rule, satellite }: {
18
18
  export declare const version: ({ satellite }: {
19
19
  satellite: SatelliteParameters;
20
20
  }) => Promise<string>;
21
+ export declare const versionBuild: ({ satellite }: {
22
+ satellite: SatelliteParameters;
23
+ }) => Promise<string>;
21
24
  export declare const listDeprecatedControllers: ({ satellite }: {
22
25
  satellite: SatelliteParameters;
23
26
  }) => Promise<Principal[]>;
@@ -1,3 +1,4 @@
1
+ import type { CanisterStatus } from '@dfinity/agent';
1
2
  import { Principal } from '@dfinity/principal';
2
3
  import type { Controller, MemorySize, SetControllersArgs } from '../../declarations/satellite/satellite.did';
3
4
  import type { SatelliteParameters } from '../types/actor.types';
@@ -20,6 +21,12 @@ export declare const setRule: ({ rule: { collection, ...rest }, type, satellite
20
21
  export declare const satelliteVersion: (params: {
21
22
  satellite: SatelliteParameters;
22
23
  }) => Promise<string>;
24
+ export declare const satelliteVersionBuild: (params: {
25
+ satellite: SatelliteParameters;
26
+ }) => Promise<string>;
27
+ export declare const satelliteWasmMetadataBuild: ({ satellite: { satelliteId, ...rest } }: {
28
+ satellite: SatelliteParameters;
29
+ }) => Promise<CanisterStatus.Status | undefined>;
23
30
  export declare const upgradeSatellite: ({ satellite, wasm_module, deprecated, deprecatedNoScope, reset }: {
24
31
  satellite: SatelliteParameters;
25
32
  wasm_module: Uint8Array;
@@ -2,7 +2,7 @@ import type { Identity } from '@dfinity/agent';
2
2
  export interface ActorParameters {
3
3
  identity: Identity;
4
4
  fetch?: typeof fetch;
5
- container?: boolean | 'string';
5
+ container?: boolean | string;
6
6
  }
7
7
  export interface SatelliteParameters extends ActorParameters {
8
8
  satelliteId?: string;
@@ -1,8 +1,10 @@
1
1
  import type { ActorConfig, ActorMethod, ActorSubclass } from '@dfinity/agent';
2
+ import { HttpAgent } from '@dfinity/agent';
2
3
  import type { IDL } from '@dfinity/candid';
3
4
  import type { ActorParameters } from '../types/actor.types';
4
- export declare const createActor: <T = Record<string, ActorMethod<unknown[], unknown>>>({ canisterId, idlFactory, identity, fetch, container, config }: {
5
+ export declare const createActor: <T = Record<string, ActorMethod<unknown[], unknown>>>({ canisterId, idlFactory, config, ...rest }: {
5
6
  idlFactory: IDL.InterfaceFactory;
6
7
  canisterId: string;
7
8
  config?: Pick<ActorConfig, "callTransform" | "queryTransform"> | undefined;
8
9
  } & ActorParameters) => Promise<ActorSubclass<T>>;
10
+ export declare const initAgent: ({ identity, fetch, container }: ActorParameters) => Promise<HttpAgent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/admin",
3
- "version": "0.0.43",
3
+ "version": "0.0.44-next-2024-01-30",
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",
@@ -51,10 +51,10 @@
51
51
  ],
52
52
  "homepage": "https://juno.build",
53
53
  "peerDependencies": {
54
- "@dfinity/agent": "^0.20.2",
55
- "@dfinity/identity": "^0.20.2",
56
- "@dfinity/principal": "^0.20.2",
54
+ "@dfinity/agent": "*",
55
+ "@dfinity/identity": "*",
56
+ "@dfinity/principal": "*",
57
57
  "@junobuild/utils": "*",
58
- "semver": "7.*"
58
+ "semver": "*"
59
59
  }
60
- }
60
+ }