@junobuild/admin 0.0.41 → 0.0.43

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,5 +1,5 @@
1
1
  import type { Principal } from '@dfinity/principal';
2
- import type { Config, Controller, CustomDomain, MemorySize, Rule, RulesType, SetRule } from '../../declarations/satellite/satellite.did';
2
+ import type { Config, Controller, CustomDomain, MemorySize, Rule, RulesType, SetControllersArgs, SetRule } from '../../declarations/satellite/satellite.did';
3
3
  import type { SatelliteParameters } from '../types/actor.types';
4
4
  export declare const setConfig: ({ config, satellite }: {
5
5
  config: Config;
@@ -54,3 +54,7 @@ export declare const deleteAssets: ({ collection, satellite }: {
54
54
  collection: string;
55
55
  satellite: SatelliteParameters;
56
56
  }) => Promise<void>;
57
+ export declare const setControllers: ({ args, satellite }: {
58
+ args: SetControllersArgs;
59
+ satellite: SatelliteParameters;
60
+ }) => Promise<[Principal, Controller][]>;
@@ -1,5 +1,5 @@
1
1
  import { Principal } from '@dfinity/principal';
2
- import type { Controller, MemorySize } from '../../declarations/satellite/satellite.did';
2
+ import type { Controller, MemorySize, SetControllersArgs } from '../../declarations/satellite/satellite.did';
3
3
  import type { SatelliteParameters } from '../types/actor.types';
4
4
  import type { Config } from '../types/config.types';
5
5
  import type { CustomDomain } from '../types/customdomain.types';
@@ -55,9 +55,9 @@ export declare const deleteAssets: (params: {
55
55
  }) => Promise<void>;
56
56
  export declare const listSatelliteControllers: ({ deprecatedNoScope, ...params }: {
57
57
  satellite: SatelliteParameters;
58
- } & {
59
58
  deprecatedNoScope?: boolean | undefined;
60
- }) => Promise<[
61
- Principal,
62
- Controller
63
- ][]>;
59
+ }) => Promise<[Principal, Controller][]>;
60
+ export declare const setSatelliteControllers: (params: {
61
+ satellite: SatelliteParameters;
62
+ args: SetControllersArgs;
63
+ }) => Promise<[Principal, Controller][]>;
@@ -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
- env?: 'dev' | 'prod';
5
+ container?: boolean | 'string';
6
6
  }
7
7
  export interface SatelliteParameters extends ActorParameters {
8
8
  satelliteId?: string;
@@ -1,7 +1,7 @@
1
1
  import type { ActorConfig, ActorMethod, ActorSubclass } from '@dfinity/agent';
2
2
  import type { IDL } from '@dfinity/candid';
3
3
  import type { ActorParameters } from '../types/actor.types';
4
- export declare const createActor: <T = Record<string, ActorMethod<unknown[], unknown>>>({ canisterId, idlFactory, identity, fetch, env, config }: {
4
+ export declare const createActor: <T = Record<string, ActorMethod<unknown[], unknown>>>({ canisterId, idlFactory, identity, fetch, container, config }: {
5
5
  idlFactory: IDL.InterfaceFactory;
6
6
  canisterId: string;
7
7
  config?: Pick<ActorConfig, "callTransform" | "queryTransform"> | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/admin",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
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",