@junobuild/admin 0.6.8 → 1.0.0-next-2025-08-11.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 +4 -4
- 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/api/mission-control.api.d.ts +2 -2
- package/dist/types/api/orbiter.api.d.ts +2 -2
- package/dist/types/api/satellite.api.d.ts +11 -8
- package/dist/types/constants/rules.constants.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/services/mission-control.controllers.services.d.ts +2 -2
- package/dist/types/services/mission-control.upgrade.services.d.ts +1 -1
- package/dist/types/services/mission-control.version.services.d.ts +1 -1
- package/dist/types/services/module.upgrade.services.d.ts +1 -1
- package/dist/types/services/orbiter.controllers.services.d.ts +2 -2
- package/dist/types/services/orbiter.memory.services.d.ts +2 -2
- package/dist/types/services/orbiter.upgrade.services.d.ts +1 -1
- package/dist/types/services/orbiter.version.services.d.ts +1 -1
- package/dist/types/services/package.services.d.ts +1 -1
- package/dist/types/services/satellite.assets.services.d.ts +1 -1
- package/dist/types/services/satellite.config.services.d.ts +43 -12
- package/dist/types/services/satellite.controllers.services.d.ts +2 -2
- package/dist/types/services/satellite.docs.services.d.ts +1 -1
- package/dist/types/services/satellite.domains.services.d.ts +1 -1
- package/dist/types/services/satellite.memory.services.d.ts +2 -2
- package/dist/types/services/satellite.rules.services.d.ts +2 -2
- package/dist/types/services/satellite.upgrade.services.d.ts +1 -1
- package/dist/types/services/satellite.version.services.d.ts +1 -1
- package/dist/types/types/upgrade.d.ts +1 -1
- package/dist/types/utils/config.utils.d.ts +8 -0
- package/dist/types/utils/controllers.utils.d.ts +1 -1
- package/dist/types/utils/idl.utils.d.ts +1 -1
- package/dist/types/utils/memory.utils.d.ts +4 -1
- package/dist/types/utils/rule.utils.d.ts +5 -5
- package/package.json +12 -11
- package/dist/declarations/mission_control/mission_control-deprecated-version.did.d.ts +0 -231
- package/dist/declarations/mission_control/mission_control-deprecated-version.factory.did.js +0 -247
- package/dist/declarations/mission_control/mission_control.did.d.ts +0 -241
- package/dist/declarations/mission_control/mission_control.factory.certified.did.js +0 -259
- package/dist/declarations/mission_control/mission_control.factory.did.js +0 -259
- package/dist/declarations/orbiter/orbiter-deprecated-version.did.d.ts +0 -229
- package/dist/declarations/orbiter/orbiter-deprecated-version.factory.did.js +0 -271
- package/dist/declarations/orbiter/orbiter.did.d.ts +0 -277
- package/dist/declarations/orbiter/orbiter.factory.certified.did.js +0 -304
- package/dist/declarations/orbiter/orbiter.factory.did.js +0 -320
- package/dist/declarations/orbiter/orbiter.factory.did.mjs +0 -320
- package/dist/declarations/satellite/satellite-deprecated-no-scope.did.d.ts +0 -183
- package/dist/declarations/satellite/satellite-deprecated-no-scope.factory.did.js +0 -194
- package/dist/declarations/satellite/satellite-deprecated-no-scope.factory.did.mjs +0 -192
- package/dist/declarations/satellite/satellite-deprecated-version.did.d.ts +0 -291
- package/dist/declarations/satellite/satellite-deprecated-version.factory.did.js +0 -319
- package/dist/declarations/satellite/satellite-deprecated.did.d.ts +0 -182
- package/dist/declarations/satellite/satellite-deprecated.factory.did.js +0 -191
- package/dist/declarations/satellite/satellite-deprecated.factory.did.mjs +0 -191
- package/dist/declarations/satellite/satellite.did.d.ts +0 -365
- package/dist/declarations/satellite/satellite.factory.certified.did.js +0 -388
- package/dist/declarations/satellite/satellite.factory.did.js +0 -388
- package/dist/declarations/satellite/satellite.factory.did.mjs +0 -388
- package/dist/types/api/actor.api.d.ts +0 -41
- package/dist/types/types/actor.d.ts +0 -74
- package/dist/types/utils/actor.utils.d.ts +0 -9
|
@@ -3,7 +3,7 @@ import { type chunk_hash, type InstallChunkedCodeParams, type InstallCodeParams,
|
|
|
3
3
|
import type { take_canister_snapshot_result } from '@dfinity/ic-management/dist/candid/ic-management';
|
|
4
4
|
import type { CanisterStatusResponse } from '@dfinity/ic-management/dist/types/types/ic-management.responses';
|
|
5
5
|
import { Principal } from '@dfinity/principal';
|
|
6
|
-
import type
|
|
6
|
+
import { type ActorParameters } from '@junobuild/ic-client';
|
|
7
7
|
export declare const canisterStop: ({ canisterId, actor }: {
|
|
8
8
|
canisterId: Principal;
|
|
9
9
|
actor: ActorParameters;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
|
-
import
|
|
3
|
-
import type {
|
|
2
|
+
import { type MissionControlParameters } from '@junobuild/ic-client';
|
|
3
|
+
import type { Controller, SetController } from '@junobuild/ic-client/dist/declarations/mission_control/mission_control.did';
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated - Replaced in Mission Control > v0.0.14 with public custom section juno:package
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
|
-
import
|
|
3
|
-
import type {
|
|
2
|
+
import { type OrbiterParameters } from '@junobuild/ic-client';
|
|
3
|
+
import type { Controller, MemorySize } from '@junobuild/ic-client/dist/declarations/orbiter/orbiter.did';
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated - Replaced in Orbiter > v0.0.8 with public custom section juno:package
|
|
6
6
|
*/
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
|
-
import
|
|
3
|
-
import type {
|
|
2
|
+
import { type SatelliteParameters } from '@junobuild/ic-client';
|
|
3
|
+
import type { AuthenticationConfig, CollectionType, Config, Controller, CustomDomain, DbConfig, ListRulesParams, ListRulesResults, MemorySize, Rule, SetAuthenticationConfig, SetControllersArgs, SetDbConfig, SetRule, SetStorageConfig, StorageConfig } from '@junobuild/ic-client/dist/declarations/satellite/satellite.did';
|
|
4
4
|
export declare const setStorageConfig: ({ config, satellite }: {
|
|
5
|
-
config:
|
|
5
|
+
config: SetStorageConfig;
|
|
6
6
|
satellite: SatelliteParameters;
|
|
7
|
-
}) => Promise<
|
|
7
|
+
}) => Promise<StorageConfig>;
|
|
8
8
|
export declare const setDatastoreConfig: ({ config, satellite }: {
|
|
9
|
-
config:
|
|
9
|
+
config: SetDbConfig;
|
|
10
10
|
satellite: SatelliteParameters;
|
|
11
|
-
}) => Promise<
|
|
11
|
+
}) => Promise<DbConfig>;
|
|
12
12
|
export declare const setAuthConfig: ({ config, satellite }: {
|
|
13
|
-
config:
|
|
13
|
+
config: SetAuthenticationConfig;
|
|
14
14
|
satellite: SatelliteParameters;
|
|
15
|
-
}) => Promise<
|
|
15
|
+
}) => Promise<AuthenticationConfig>;
|
|
16
16
|
export declare const getStorageConfig: ({ satellite }: {
|
|
17
17
|
satellite: SatelliteParameters;
|
|
18
18
|
}) => Promise<StorageConfig>;
|
|
@@ -22,6 +22,9 @@ export declare const getDatastoreConfig: ({ satellite }: {
|
|
|
22
22
|
export declare const getAuthConfig: ({ satellite }: {
|
|
23
23
|
satellite: SatelliteParameters;
|
|
24
24
|
}) => Promise<[] | [AuthenticationConfig]>;
|
|
25
|
+
export declare const getConfig: ({ satellite }: {
|
|
26
|
+
satellite: SatelliteParameters;
|
|
27
|
+
}) => Promise<Config>;
|
|
25
28
|
export declare const listRules: ({ satellite, type, filter }: {
|
|
26
29
|
satellite: SatelliteParameters;
|
|
27
30
|
type: CollectionType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CollectionType, Memory, Permission } from '
|
|
1
|
+
import type { CollectionType, Memory, Permission } from '@junobuild/ic-client/dist/declarations/satellite/satellite.did';
|
|
2
2
|
export declare const DbRulesType: CollectionType;
|
|
3
3
|
export declare const StorageRulesType: CollectionType;
|
|
4
4
|
export declare const PermissionPublic: Permission;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export * from './services/satellite.memory.services';
|
|
|
24
24
|
export * from './services/satellite.rules.services';
|
|
25
25
|
export * from './services/satellite.upgrade.services';
|
|
26
26
|
export * from './services/satellite.version.services';
|
|
27
|
-
export type * from './types/actor';
|
|
28
27
|
export type * from './types/controllers';
|
|
29
28
|
export type * from './types/customdomain';
|
|
29
|
+
export type * from './types/list';
|
|
30
30
|
export * from './types/upgrade';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { MissionControlParameters } from '@junobuild/ic-client';
|
|
3
|
+
import type { Controller } from '@junobuild/ic-client/dist/declarations/mission_control/mission_control.did';
|
|
4
4
|
import type { SetControllerParams } from '../types/controllers';
|
|
5
5
|
/**
|
|
6
6
|
* Sets the controller for the specified satellites.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActorParameters } from '
|
|
1
|
+
import type { ActorParameters } from '@junobuild/ic-client';
|
|
2
2
|
import type { UpgradeCodeParams } from '../types/upgrade';
|
|
3
3
|
/**
|
|
4
4
|
* Upgrades a module with the provided WASM code and arguments. This generic is notably useful for Juno Docker.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { OrbiterParameters } from '@junobuild/ic-client';
|
|
3
|
+
import type { Controller } from '@junobuild/ic-client/dist/declarations/mission_control/mission_control.did';
|
|
4
4
|
/**
|
|
5
5
|
* Lists the controllers of the Orbiter.
|
|
6
6
|
* @param {Object} params - The parameters for listing the controllers.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { OrbiterParameters } from '@junobuild/ic-client';
|
|
2
|
+
import type { MemorySize } from '@junobuild/ic-client/dist/declarations/orbiter/orbiter.did';
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves the stable and heap memory size of the Orbiter.
|
|
5
5
|
* @param {Object} params - The parameters for the Orbiter.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
2
|
import { type JunoPackage } from '@junobuild/config';
|
|
3
|
-
import type { ActorParameters } from '
|
|
3
|
+
import type { ActorParameters } from '@junobuild/ic-client';
|
|
4
4
|
/**
|
|
5
5
|
* Parameters required to retrieve a `juno:package` metadata section.
|
|
6
6
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AuthenticationConfig, DatastoreConfig, StorageConfig } from '@junobuild/config';
|
|
2
|
-
import type { SatelliteParameters } from '
|
|
2
|
+
import type { SatelliteParameters } from '@junobuild/ic-client';
|
|
3
3
|
/**
|
|
4
4
|
* Sets the configuration for the Storage of a Satellite.
|
|
5
5
|
* @param {Object} params - The parameters for setting the configuration.
|
|
@@ -9,23 +9,23 @@ import type { SatelliteParameters } from '../types/actor';
|
|
|
9
9
|
* @param {Array<StorageConfigRedirect>} params.config.redirects - The redirects configuration.
|
|
10
10
|
* @param {string} params.config.iframe - The iframe configuration.
|
|
11
11
|
* @param {SatelliteParameters} params.satellite - The satellite parameters.
|
|
12
|
-
* @returns {Promise<void>} A promise that resolves
|
|
12
|
+
* @returns {Promise<void>} A promise that resolves with the applied configuration when set.
|
|
13
13
|
*/
|
|
14
|
-
export declare const setStorageConfig: ({ config
|
|
15
|
-
config: StorageConfig
|
|
14
|
+
export declare const setStorageConfig: ({ config, satellite }: {
|
|
15
|
+
config: Omit<StorageConfig, "createdAt" | "updatedAt">;
|
|
16
16
|
satellite: SatelliteParameters;
|
|
17
|
-
}) => Promise<
|
|
17
|
+
}) => Promise<StorageConfig>;
|
|
18
18
|
/**
|
|
19
19
|
* Sets the datastore configuration for a satellite.
|
|
20
20
|
* @param {Object} params - The parameters for setting the authentication configuration.
|
|
21
21
|
* @param {Object} params.config - The datastore configuration.
|
|
22
22
|
* @param {SatelliteParameters} params.satellite - The satellite parameters.
|
|
23
|
-
* @returns {Promise<void>} A promise that resolves when the datastore configuration is set.
|
|
23
|
+
* @returns {Promise<void>} A promise that resolves with the config when the datastore configuration is set.
|
|
24
24
|
*/
|
|
25
|
-
export declare const setDatastoreConfig: ({ config
|
|
26
|
-
config: DatastoreConfig
|
|
25
|
+
export declare const setDatastoreConfig: ({ config, ...rest }: {
|
|
26
|
+
config: Omit<DatastoreConfig, "createdAt" | "updatedAt">;
|
|
27
27
|
satellite: SatelliteParameters;
|
|
28
|
-
}) => Promise<
|
|
28
|
+
}) => Promise<DatastoreConfig>;
|
|
29
29
|
/**
|
|
30
30
|
* Sets the authentication configuration for a satellite.
|
|
31
31
|
* @param {Object} params - The parameters for setting the authentication configuration.
|
|
@@ -33,10 +33,10 @@ export declare const setDatastoreConfig: ({ config: { maxMemorySize }, ...rest }
|
|
|
33
33
|
* @param {SatelliteParameters} params.satellite - The satellite parameters.
|
|
34
34
|
* @returns {Promise<void>} A promise that resolves when the authentication configuration is set.
|
|
35
35
|
*/
|
|
36
|
-
export declare const setAuthConfig: ({ config
|
|
37
|
-
config: AuthenticationConfig
|
|
36
|
+
export declare const setAuthConfig: ({ config, ...rest }: {
|
|
37
|
+
config: Omit<AuthenticationConfig, "createdAt" | "updatedAt">;
|
|
38
38
|
satellite: SatelliteParameters;
|
|
39
|
-
}) => Promise<
|
|
39
|
+
}) => Promise<AuthenticationConfig>;
|
|
40
40
|
/**
|
|
41
41
|
* Gets the authentication configuration for a satellite.
|
|
42
42
|
* @param {Object} params - The parameters for getting the authentication configuration.
|
|
@@ -46,3 +46,34 @@ export declare const setAuthConfig: ({ config: { internetIdentity }, ...rest }:
|
|
|
46
46
|
export declare const getAuthConfig: ({ satellite }: {
|
|
47
47
|
satellite: SatelliteParameters;
|
|
48
48
|
}) => Promise<AuthenticationConfig | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* Gets the storage configuration for a satellite.
|
|
51
|
+
* @param {Object} params - The parameters for getting the storage configuration.
|
|
52
|
+
* @param {SatelliteParameters} params.satellite - The satellite parameters.
|
|
53
|
+
* @returns {Promise<StorageConfig | undefined>} A promise that resolves to the storage configuration or undefined if not found.
|
|
54
|
+
*/
|
|
55
|
+
export declare const getStorageConfig: ({ satellite }: {
|
|
56
|
+
satellite: SatelliteParameters;
|
|
57
|
+
}) => Promise<StorageConfig>;
|
|
58
|
+
/**
|
|
59
|
+
* Gets the datastore configuration for a satellite.
|
|
60
|
+
* @param {Object} params - The parameters for getting the datastore configuration.
|
|
61
|
+
* @param {SatelliteParameters} params.satellite - The satellite parameters.
|
|
62
|
+
* @returns {Promise<AuthenticationConfig | undefined>} A promise that resolves to the datastore configuration or undefined if not found.
|
|
63
|
+
*/
|
|
64
|
+
export declare const getDatastoreConfig: ({ satellite }: {
|
|
65
|
+
satellite: SatelliteParameters;
|
|
66
|
+
}) => Promise<DatastoreConfig | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* Gets all the configuration for a satellite.
|
|
69
|
+
* @param {Object} params - The parameters for getting the configurations.
|
|
70
|
+
* @param {SatelliteParameters} params.satellite - The satellite parameters.
|
|
71
|
+
* @returns {Promise<{storage: StorageConfig; datastore?: DatastoreConfig; auth?: AuthenticationConfig;}>} A promise that resolves to the configuration.
|
|
72
|
+
*/
|
|
73
|
+
export declare const getConfig: ({ satellite }: {
|
|
74
|
+
satellite: SatelliteParameters;
|
|
75
|
+
}) => Promise<{
|
|
76
|
+
storage: StorageConfig;
|
|
77
|
+
datastore?: DatastoreConfig;
|
|
78
|
+
auth?: AuthenticationConfig;
|
|
79
|
+
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { SatelliteParameters } from '@junobuild/ic-client';
|
|
3
|
+
import type { Controller, SetControllersArgs } from '@junobuild/ic-client/dist/declarations/satellite/satellite.did';
|
|
4
4
|
/**
|
|
5
5
|
* Lists the controllers of a satellite.
|
|
6
6
|
* @param {Object} params - The parameters for listing the controllers.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { SatelliteParameters } from '@junobuild/ic-client';
|
|
2
|
+
import type { MemorySize } from '@junobuild/ic-client/dist/declarations/satellite/satellite.did';
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves the stable and heap memory size of a satellite.
|
|
5
5
|
* @param {Object} params - The parameters for retrieving the memory size.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Rule, RulesType } from '@junobuild/config';
|
|
2
|
-
import type { SatelliteParameters } from '
|
|
2
|
+
import type { SatelliteParameters } from '@junobuild/ic-client';
|
|
3
3
|
import type { ListRulesMatcher, ListRulesResults } from '../types/list';
|
|
4
4
|
/**
|
|
5
5
|
* Lists the rules for a satellite.
|
|
@@ -26,4 +26,4 @@ export declare const setRule: ({ rule: { collection, ...rest }, type, satellite
|
|
|
26
26
|
rule: Rule;
|
|
27
27
|
type: RulesType;
|
|
28
28
|
satellite: SatelliteParameters;
|
|
29
|
-
}) => Promise<
|
|
29
|
+
}) => Promise<Rule>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { SatelliteParameters } from '@junobuild/ic-client';
|
|
1
2
|
import type { BuildType } from '../schemas/build';
|
|
2
|
-
import type { SatelliteParameters } from '../types/actor';
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves the version of the satellite.
|
|
5
5
|
* @param {Object} params - The parameters for retrieving the version.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { canister_install_mode } from '@dfinity/ic-management';
|
|
2
2
|
import type { Principal } from '@dfinity/principal';
|
|
3
|
-
import type { ActorParameters } from '
|
|
3
|
+
import type { ActorParameters } from '@junobuild/ic-client';
|
|
4
4
|
export declare enum UpgradeCodeProgressStep {
|
|
5
5
|
AssertingExistingCode = 0,
|
|
6
6
|
StoppingCanister = 1,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AuthenticationConfig, DatastoreConfig, StorageConfig } from '@junobuild/config';
|
|
2
|
+
import type { AuthenticationConfig as AuthenticationConfigDid, DbConfig as DbConfigDid, SetAuthenticationConfig, SetDbConfig, SetStorageConfig, StorageConfig as StorageConfigDid } from '@junobuild/ic-client/dist/declarations/satellite/satellite.did';
|
|
3
|
+
export declare const fromStorageConfig: ({ headers: configHeaders, rewrites: configRewrites, redirects: configRedirects, iframe: configIFrame, rawAccess: configRawAccess, maxMemorySize: configMaxMemorySize, version: configVersion }: StorageConfig) => SetStorageConfig;
|
|
4
|
+
export declare const toStorageConfig: ({ redirects: redirectsDid, iframe: iframeDid, version, raw_access: rawAccessDid, max_memory_size, headers: headersDid, rewrites: rewritesDid }: StorageConfigDid) => StorageConfig;
|
|
5
|
+
export declare const fromDatastoreConfig: ({ maxMemorySize, version }: DatastoreConfig) => SetDbConfig;
|
|
6
|
+
export declare const toDatastoreConfig: ({ version, max_memory_size }: DbConfigDid) => DatastoreConfig;
|
|
7
|
+
export declare const fromAuthenticationConfig: ({ internetIdentity, rules, version }: AuthenticationConfig) => SetAuthenticationConfig;
|
|
8
|
+
export declare const toAuthenticationConfig: ({ version, internet_identity, rules: rulesDid }: AuthenticationConfigDid) => AuthenticationConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Principal } from '@dfinity/principal';
|
|
2
|
-
import type { SetController } from '
|
|
2
|
+
import type { SetController } from '@junobuild/ic-client/dist/declarations/mission_control/mission_control.did';
|
|
3
3
|
import type { SetControllerParams } from '../types/controllers';
|
|
4
4
|
export declare const mapSetControllerParams: ({ controllerId, profile }: SetControllerParams) => {
|
|
5
5
|
controllerIds: Principal[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
|
-
import type { Controller } from '
|
|
2
|
+
import type { Controller } from '@junobuild/ic-client/dist/declarations/satellite/satellite.did';
|
|
3
3
|
export declare const encoreIDLUser: (user: Principal) => ArrayBuffer;
|
|
4
4
|
export declare const encodeAdminAccessKeysToIDL: (controllers: [Principal, Controller][]) => ArrayBuffer;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import type { MaxMemorySizeConfig } from '@junobuild/config';
|
|
2
|
-
import type { ConfigMaxMemorySize } from '
|
|
2
|
+
import type { ConfigMaxMemorySize } from '@junobuild/ic-client/dist/declarations/satellite/satellite.did';
|
|
3
3
|
export declare const toMaxMemorySize: (configMaxMemorySize?: MaxMemorySizeConfig) => [] | [ConfigMaxMemorySize];
|
|
4
|
+
export declare const fromMaxMemorySize: (configMaxMemorySize: [] | [ConfigMaxMemorySize]) => {
|
|
5
|
+
maxMemorySize?: MaxMemorySizeConfig;
|
|
6
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { MemoryText, PermissionText, Rule, RulesType } from '@junobuild/config';
|
|
2
|
-
import type { CollectionType as CollectionTypeApi, ListRulesParams as ListRulesParamsApi, Memory, Permission, Rule as RuleApi, SetRule } from '
|
|
2
|
+
import type { CollectionType as CollectionTypeApi, ListRulesParams as ListRulesParamsApi, Memory, Permission, Rule as RuleApi, SetRule } from '@junobuild/ic-client/dist/declarations/satellite/satellite.did';
|
|
3
3
|
import type { ListRulesMatcher } from '../types/list';
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
4
|
+
export declare const fromRuleType: (type: RulesType) => CollectionTypeApi;
|
|
5
|
+
export declare const fromRulesFilter: (filter?: ListRulesMatcher) => ListRulesParamsApi;
|
|
6
|
+
export declare const fromRule: ({ read, write, memory, maxSize, maxChangesPerUser, maxCapacity, version, mutablePermissions, maxTokens }: Pick<Rule, "read" | "write" | "maxSize" | "maxChangesPerUser" | "maxCapacity" | "version" | "memory" | "mutablePermissions" | "maxTokens">) => SetRule;
|
|
7
|
+
export declare const toRule: ([collection, rule]: [string, RuleApi]) => Rule;
|
|
8
8
|
export declare const permissionToText: (permission: Permission) => PermissionText;
|
|
9
9
|
export declare const memoryFromText: (text: MemoryText) => Memory;
|
|
10
10
|
export declare const memoryToText: (memory: Memory) => MemoryText;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junobuild/admin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-next-2025-08-11.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",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"scripts": {
|
|
29
29
|
"rmdir": "node ../../scripts/rmdir.mjs",
|
|
30
30
|
"ts-declaration": "tsc --emitDeclarationOnly --outDir dist/types",
|
|
31
|
-
"build": "npm run rmdir && mkdir -p dist &&
|
|
31
|
+
"build": "npm run rmdir && mkdir -p dist && node esbuild.mjs && npm run ts-declaration",
|
|
32
32
|
"prepack": "npm run build"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
@@ -50,14 +50,15 @@
|
|
|
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": "*",
|
|
54
|
+
"@dfinity/candid": "*",
|
|
55
|
+
"@dfinity/ic-management": "*",
|
|
56
|
+
"@dfinity/identity": "*",
|
|
57
|
+
"@dfinity/principal": "*",
|
|
58
|
+
"@dfinity/utils": "*",
|
|
59
59
|
"@junobuild/config": "*",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
60
|
+
"@junobuild/ic-client": "*",
|
|
61
|
+
"semver": "*",
|
|
62
|
+
"zod": "*"
|
|
62
63
|
}
|
|
63
|
-
}
|
|
64
|
+
}
|