@junobuild/admin 0.3.0-next-2025-05-20.1 → 0.3.1
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 +3 -3
- package/dist/declarations/orbiter/orbiter.did.d.ts +16 -0
- package/dist/declarations/orbiter/orbiter.factory.certified.did.js +13 -0
- package/dist/declarations/orbiter/orbiter.factory.did.js +13 -0
- package/dist/declarations/orbiter/orbiter.factory.did.mjs +13 -0
- package/dist/declarations/satellite/satellite.did.d.ts +5 -0
- package/dist/declarations/satellite/satellite.factory.certified.did.js +2 -0
- package/dist/declarations/satellite/satellite.factory.did.js +2 -0
- package/dist/declarations/satellite/satellite.factory.did.mjs +2 -0
- package/dist/node/index.mjs +1 -1
- package/dist/node/index.mjs.map +3 -3
- package/dist/types/api/orbiter.api.d.ts +4 -1
- package/dist/types/api/satellite.api.d.ts +4 -1
- package/dist/types/services/orbiter.memory.services.d.ts +5 -5
- package/dist/types/services/satellite.memory.services.d.ts +5 -5
- package/package.json +10 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
|
-
import type { Controller } from '../../declarations/orbiter/orbiter.did';
|
|
2
|
+
import type { Controller, MemorySize } from '../../declarations/orbiter/orbiter.did';
|
|
3
3
|
import type { OrbiterParameters } from '../types/actor.types';
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated - Replaced in Orbiter > v0.0.8 with public custom section juno:package
|
|
@@ -10,3 +10,6 @@ export declare const version: ({ orbiter }: {
|
|
|
10
10
|
export declare const listControllers: ({ orbiter }: {
|
|
11
11
|
orbiter: OrbiterParameters;
|
|
12
12
|
}) => Promise<[Principal, Controller][]>;
|
|
13
|
+
export declare const memorySize: ({ orbiter }: {
|
|
14
|
+
orbiter: OrbiterParameters;
|
|
15
|
+
}) => Promise<MemorySize>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
|
-
import type { AuthenticationConfig, CollectionType, Controller, CustomDomain, DbConfig, Rule, SetControllersArgs, SetRule, StorageConfig } from '../../declarations/satellite/satellite.did';
|
|
2
|
+
import type { AuthenticationConfig, CollectionType, Controller, CustomDomain, DbConfig, MemorySize, Rule, SetControllersArgs, SetRule, StorageConfig } from '../../declarations/satellite/satellite.did';
|
|
3
3
|
import type { SatelliteParameters } from '../types/actor.types';
|
|
4
4
|
export declare const setStorageConfig: ({ config, satellite }: {
|
|
5
5
|
config: StorageConfig;
|
|
@@ -61,6 +61,9 @@ export declare const setCustomDomain: ({ satellite, domainName, boundaryNodesId
|
|
|
61
61
|
domainName: string;
|
|
62
62
|
boundaryNodesId: string | undefined;
|
|
63
63
|
}) => Promise<void>;
|
|
64
|
+
export declare const memorySize: ({ satellite }: {
|
|
65
|
+
satellite: SatelliteParameters;
|
|
66
|
+
}) => Promise<MemorySize>;
|
|
64
67
|
export declare const countDocs: ({ collection, satellite }: {
|
|
65
68
|
collection: string;
|
|
66
69
|
satellite: SatelliteParameters;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MemorySize } from '../../declarations/orbiter/orbiter.did';
|
|
2
2
|
import type { OrbiterParameters } from '../types/actor.types';
|
|
3
3
|
/**
|
|
4
|
-
* Retrieves the memory size of the Orbiter.
|
|
4
|
+
* Retrieves the stable and heap memory size of the Orbiter.
|
|
5
5
|
* @param {Object} params - The parameters for the Orbiter.
|
|
6
6
|
* @param {OrbiterParameters} params.orbiter - The Orbiter parameters.
|
|
7
|
-
* @returns {Promise<
|
|
7
|
+
* @returns {Promise<MemorySize>} A promise that resolves to the memory size of the Orbiter.
|
|
8
8
|
*/
|
|
9
|
-
export declare const orbiterMemorySize: (
|
|
9
|
+
export declare const orbiterMemorySize: (params: {
|
|
10
10
|
orbiter: OrbiterParameters;
|
|
11
|
-
}) => Promise<
|
|
11
|
+
}) => Promise<MemorySize>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MemorySize } from '../../declarations/satellite/satellite.did';
|
|
2
2
|
import type { SatelliteParameters } from '../types/actor.types';
|
|
3
3
|
/**
|
|
4
|
-
* Retrieves the memory size of a satellite.
|
|
4
|
+
* Retrieves the stable and heap memory size of a satellite.
|
|
5
5
|
* @param {Object} params - The parameters for retrieving the memory size.
|
|
6
6
|
* @param {SatelliteParameters} params.satellite - The satellite parameters.
|
|
7
|
-
* @returns {Promise<
|
|
7
|
+
* @returns {Promise<MemorySize>} A promise that resolves to the memory size of the satellite.
|
|
8
8
|
*/
|
|
9
|
-
export declare const satelliteMemorySize: (
|
|
9
|
+
export declare const satelliteMemorySize: (params: {
|
|
10
10
|
satellite: SatelliteParameters;
|
|
11
|
-
}) => Promise<
|
|
11
|
+
}) => Promise<MemorySize>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junobuild/admin",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
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",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
],
|
|
51
51
|
"homepage": "https://juno.build",
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@dfinity/agent": "
|
|
54
|
-
"@dfinity/candid": "
|
|
55
|
-
"@dfinity/ic-management": "
|
|
56
|
-
"@dfinity/identity": "
|
|
57
|
-
"@dfinity/principal": "
|
|
58
|
-
"@dfinity/utils": "
|
|
53
|
+
"@dfinity/agent": "^2.3.0",
|
|
54
|
+
"@dfinity/candid": "^2.3.0",
|
|
55
|
+
"@dfinity/ic-management": "^6.1",
|
|
56
|
+
"@dfinity/identity": "^2.3.0",
|
|
57
|
+
"@dfinity/principal": "^2.3.0",
|
|
58
|
+
"@dfinity/utils": "^2",
|
|
59
59
|
"@junobuild/config": "*",
|
|
60
|
-
"semver": "
|
|
61
|
-
"zod": "
|
|
60
|
+
"semver": "7.*",
|
|
61
|
+
"zod": "^3"
|
|
62
62
|
}
|
|
63
|
-
}
|
|
63
|
+
}
|