@junobuild/admin 0.1.6-next-2025-03-29.2 → 0.1.6-next-2025-04-05
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 +1 -1
- package/dist/browser/index.js.map +4 -4
- package/dist/declarations/mission_control/mission_control.factory.certified.did.js +247 -0
- package/dist/declarations/orbiter/orbiter.factory.certified.did.js +255 -0
- package/dist/declarations/satellite/satellite.factory.certified.did.js +319 -0
- package/dist/node/index.mjs +1 -1
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/api/ic.api.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/services/package.services.d.ts +17 -0
- package/package.json +3 -2
|
@@ -37,7 +37,7 @@ export declare const canisterStatus: ({ actor, canisterId }: {
|
|
|
37
37
|
canisterId: Principal;
|
|
38
38
|
}) => Promise<CanisterStatusResponse>;
|
|
39
39
|
export declare const canisterMetadata: ({ canisterId, path, ...rest }: ActorParameters & {
|
|
40
|
-
canisterId: string | undefined;
|
|
40
|
+
canisterId: Principal | string | undefined;
|
|
41
41
|
path: string;
|
|
42
42
|
}) => Promise<CanisterStatus.Status | undefined>;
|
|
43
43
|
export declare const listCanisterSnapshots: ({ actor, canisterId }: {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './services/orbiter.controllers.services';
|
|
|
7
7
|
export * from './services/orbiter.memory.services';
|
|
8
8
|
export * from './services/orbiter.upgrade.services';
|
|
9
9
|
export * from './services/orbiter.version.services';
|
|
10
|
+
export * from './services/package.services';
|
|
10
11
|
export * from './services/releases.services';
|
|
11
12
|
export * from './services/satellite.assets.services';
|
|
12
13
|
export * from './services/satellite.config.services';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Principal } from '@dfinity/principal';
|
|
2
|
+
import { type JunoPackage } from '@junobuild/config';
|
|
3
|
+
import { ActorParameters } from '../types/actor.types';
|
|
4
|
+
/**
|
|
5
|
+
* Get the `juno:package` metadata from the public custom section of a given module.
|
|
6
|
+
*
|
|
7
|
+
* @param {Object} params - The parameters to fetch the metadata.
|
|
8
|
+
* @param {Principal | string} params.moduleId - The canister ID (as a `Principal` or string) from which to retrieve the metadata.
|
|
9
|
+
* @param {ActorParameters} params - Additional actor parameters required for the call.
|
|
10
|
+
*
|
|
11
|
+
* @returns {Promise<JunoPackage | undefined>} A promise that resolves to the parsed `JunoPackage` metadata, or `undefined` if not found.
|
|
12
|
+
*
|
|
13
|
+
* @throws {ZodError} If the metadata exists but does not conform to the expected `JunoPackage` schema.
|
|
14
|
+
*/
|
|
15
|
+
export declare const getJunoPackage: ({ moduleId, ...rest }: {
|
|
16
|
+
moduleId: Principal | string;
|
|
17
|
+
} & ActorParameters) => Promise<JunoPackage | undefined>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junobuild/admin",
|
|
3
|
-
"version": "0.1.6-next-2025-
|
|
3
|
+
"version": "0.1.6-next-2025-04-05",
|
|
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",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"@dfinity/principal": "*",
|
|
58
58
|
"@dfinity/utils": "*",
|
|
59
59
|
"@junobuild/config": "*",
|
|
60
|
-
"semver": "*"
|
|
60
|
+
"semver": "*",
|
|
61
|
+
"zod": "*"
|
|
61
62
|
}
|
|
62
63
|
}
|