@junobuild/admin 0.0.57 → 0.0.58
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.
- package/dist/browser/index.js +7 -7
- package/dist/browser/index.js.map +3 -3
- package/dist/declarations/mission_control/mission_control.did.d.ts +59 -7
- package/dist/declarations/mission_control/mission_control.factory.did.js +63 -8
- package/dist/declarations/satellite/satellite.did.d.ts +10 -1
- package/dist/declarations/satellite/satellite.factory.did.js +28 -19
- package/dist/declarations/satellite/satellite.factory.did.mjs +28 -19
- package/dist/node/index.mjs +7 -7
- package/dist/node/index.mjs.map +3 -3
- package/dist/types/api/satellite.api.d.ts +1 -1
- package/dist/types/constants/rules.constants.d.ts +1 -0
- package/dist/types/types/controllers.types.d.ts +2 -2
- package/dist/types/utils/actor.utils.d.ts +2 -3
- package/dist/types/utils/rule.utils.d.ts +1 -1
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ export declare const setRule: ({ type, collection, rule, satellite }: {
|
|
|
31
31
|
collection: string;
|
|
32
32
|
rule: SetRule;
|
|
33
33
|
satellite: SatelliteParameters;
|
|
34
|
-
}) => Promise<
|
|
34
|
+
}) => Promise<Rule>;
|
|
35
35
|
export declare const version: ({ satellite }: {
|
|
36
36
|
satellite: SatelliteParameters;
|
|
37
37
|
}) => Promise<string>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @property {string} controllerId - The ID of the controller.
|
|
5
5
|
* @property {string | null | undefined} profile - The profile of the controller.
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export interface SetControllerParams {
|
|
8
8
|
controllerId: string;
|
|
9
9
|
profile: string | null | undefined;
|
|
10
|
-
}
|
|
10
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { HttpAgent } from '@dfinity/agent';
|
|
1
|
+
import { HttpAgent, type ActorConfig, type ActorMethod, type ActorSubclass } from '@dfinity/agent';
|
|
3
2
|
import type { IDL } from '@dfinity/candid';
|
|
4
3
|
import type { ActorParameters } from '../types/actor.types';
|
|
5
4
|
export declare const createActor: <T = Record<string, ActorMethod<unknown[], unknown>>>({ canisterId, idlFactory, config, ...rest }: {
|
|
6
5
|
idlFactory: IDL.InterfaceFactory;
|
|
7
6
|
canisterId: string;
|
|
8
|
-
config?: Pick<ActorConfig,
|
|
7
|
+
config?: Pick<ActorConfig, "callTransform" | "queryTransform">;
|
|
9
8
|
} & ActorParameters) => Promise<ActorSubclass<T>>;
|
|
10
9
|
export declare const initAgent: ({ identity, fetch, container }: ActorParameters) => Promise<HttpAgent>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MemoryText, PermissionText, Rule, RulesType } from '@junobuild/config';
|
|
2
2
|
import type { Memory, Permission, Rule as RuleApi, RulesType as RulesTypeApi, SetRule } from '../../declarations/satellite/satellite.did';
|
|
3
3
|
export declare const mapRuleType: (type: RulesType) => RulesTypeApi;
|
|
4
|
-
export declare const mapSetRule: ({ read, write, memory, maxSize, maxCapacity, version, mutablePermissions }: Pick<Rule,
|
|
4
|
+
export declare const mapSetRule: ({ read, write, memory, maxSize, maxCapacity, version, mutablePermissions, maxTokens }: Pick<Rule, "read" | "write" | "maxSize" | "maxCapacity" | "version" | "memory" | "mutablePermissions" | "maxTokens">) => SetRule;
|
|
5
5
|
export declare const mapRule: ([collection, rule]: [string, RuleApi]) => Rule;
|
|
6
6
|
export declare const permissionToText: (permission: Permission) => PermissionText;
|
|
7
7
|
export declare const memoryFromText: (text: MemoryText) => Memory;
|