@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.
Files changed (61) hide show
  1. package/dist/browser/index.js +1 -1
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/node/index.mjs +1 -1
  4. package/dist/node/index.mjs.map +4 -4
  5. package/dist/types/api/ic.api.d.ts +1 -1
  6. package/dist/types/api/mission-control.api.d.ts +2 -2
  7. package/dist/types/api/orbiter.api.d.ts +2 -2
  8. package/dist/types/api/satellite.api.d.ts +11 -8
  9. package/dist/types/constants/rules.constants.d.ts +1 -1
  10. package/dist/types/index.d.ts +1 -1
  11. package/dist/types/services/mission-control.controllers.services.d.ts +2 -2
  12. package/dist/types/services/mission-control.upgrade.services.d.ts +1 -1
  13. package/dist/types/services/mission-control.version.services.d.ts +1 -1
  14. package/dist/types/services/module.upgrade.services.d.ts +1 -1
  15. package/dist/types/services/orbiter.controllers.services.d.ts +2 -2
  16. package/dist/types/services/orbiter.memory.services.d.ts +2 -2
  17. package/dist/types/services/orbiter.upgrade.services.d.ts +1 -1
  18. package/dist/types/services/orbiter.version.services.d.ts +1 -1
  19. package/dist/types/services/package.services.d.ts +1 -1
  20. package/dist/types/services/satellite.assets.services.d.ts +1 -1
  21. package/dist/types/services/satellite.config.services.d.ts +43 -12
  22. package/dist/types/services/satellite.controllers.services.d.ts +2 -2
  23. package/dist/types/services/satellite.docs.services.d.ts +1 -1
  24. package/dist/types/services/satellite.domains.services.d.ts +1 -1
  25. package/dist/types/services/satellite.memory.services.d.ts +2 -2
  26. package/dist/types/services/satellite.rules.services.d.ts +2 -2
  27. package/dist/types/services/satellite.upgrade.services.d.ts +1 -1
  28. package/dist/types/services/satellite.version.services.d.ts +1 -1
  29. package/dist/types/types/upgrade.d.ts +1 -1
  30. package/dist/types/utils/config.utils.d.ts +8 -0
  31. package/dist/types/utils/controllers.utils.d.ts +1 -1
  32. package/dist/types/utils/idl.utils.d.ts +1 -1
  33. package/dist/types/utils/memory.utils.d.ts +4 -1
  34. package/dist/types/utils/rule.utils.d.ts +5 -5
  35. package/package.json +12 -11
  36. package/dist/declarations/mission_control/mission_control-deprecated-version.did.d.ts +0 -231
  37. package/dist/declarations/mission_control/mission_control-deprecated-version.factory.did.js +0 -247
  38. package/dist/declarations/mission_control/mission_control.did.d.ts +0 -241
  39. package/dist/declarations/mission_control/mission_control.factory.certified.did.js +0 -259
  40. package/dist/declarations/mission_control/mission_control.factory.did.js +0 -259
  41. package/dist/declarations/orbiter/orbiter-deprecated-version.did.d.ts +0 -229
  42. package/dist/declarations/orbiter/orbiter-deprecated-version.factory.did.js +0 -271
  43. package/dist/declarations/orbiter/orbiter.did.d.ts +0 -277
  44. package/dist/declarations/orbiter/orbiter.factory.certified.did.js +0 -304
  45. package/dist/declarations/orbiter/orbiter.factory.did.js +0 -320
  46. package/dist/declarations/orbiter/orbiter.factory.did.mjs +0 -320
  47. package/dist/declarations/satellite/satellite-deprecated-no-scope.did.d.ts +0 -183
  48. package/dist/declarations/satellite/satellite-deprecated-no-scope.factory.did.js +0 -194
  49. package/dist/declarations/satellite/satellite-deprecated-no-scope.factory.did.mjs +0 -192
  50. package/dist/declarations/satellite/satellite-deprecated-version.did.d.ts +0 -291
  51. package/dist/declarations/satellite/satellite-deprecated-version.factory.did.js +0 -319
  52. package/dist/declarations/satellite/satellite-deprecated.did.d.ts +0 -182
  53. package/dist/declarations/satellite/satellite-deprecated.factory.did.js +0 -191
  54. package/dist/declarations/satellite/satellite-deprecated.factory.did.mjs +0 -191
  55. package/dist/declarations/satellite/satellite.did.d.ts +0 -365
  56. package/dist/declarations/satellite/satellite.factory.certified.did.js +0 -388
  57. package/dist/declarations/satellite/satellite.factory.did.js +0 -388
  58. package/dist/declarations/satellite/satellite.factory.did.mjs +0 -388
  59. package/dist/types/api/actor.api.d.ts +0 -41
  60. package/dist/types/types/actor.d.ts +0 -74
  61. 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 { ActorParameters } from '../types/actor';
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 type { Controller, SetController } from '../../declarations/mission_control/mission_control.did';
3
- import type { MissionControlParameters } from '../types/actor';
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 type { Controller, MemorySize } from '../../declarations/orbiter/orbiter.did';
3
- import type { OrbiterParameters } from '../types/actor';
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 type { AuthenticationConfig, CollectionType, Controller, CustomDomain, DbConfig, ListRulesParams, ListRulesResults, MemorySize, Rule, SetControllersArgs, SetRule, StorageConfig } from '../../declarations/satellite/satellite.did';
3
- import type { SatelliteParameters } from '../types/actor';
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: StorageConfig;
5
+ config: SetStorageConfig;
6
6
  satellite: SatelliteParameters;
7
- }) => Promise<void>;
7
+ }) => Promise<StorageConfig>;
8
8
  export declare const setDatastoreConfig: ({ config, satellite }: {
9
- config: DbConfig;
9
+ config: SetDbConfig;
10
10
  satellite: SatelliteParameters;
11
- }) => Promise<void>;
11
+ }) => Promise<DbConfig>;
12
12
  export declare const setAuthConfig: ({ config, satellite }: {
13
- config: AuthenticationConfig;
13
+ config: SetAuthenticationConfig;
14
14
  satellite: SatelliteParameters;
15
- }) => Promise<void>;
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 '../../declarations/satellite/satellite.did';
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;
@@ -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 { Controller } from '../../declarations/mission_control/mission_control.did';
3
- import type { MissionControlParameters } from '../types/actor';
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 { MissionControlParameters } from '../types/actor';
1
+ import { type MissionControlParameters } from '@junobuild/ic-client';
2
2
  import type { UpgradeCodeParams } from '../types/upgrade';
3
3
  /**
4
4
  * Upgrades the Mission Control with the provided WASM module.
@@ -1,4 +1,4 @@
1
- import type { MissionControlParameters } from '../types/actor';
1
+ import type { MissionControlParameters } from '@junobuild/ic-client';
2
2
  /**
3
3
  * Retrieves the version of Mission Control.
4
4
  * @param {Object} params - The parameters for Mission Control.
@@ -1,4 +1,4 @@
1
- import type { ActorParameters } from '../types/actor';
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 { Controller } from '../../declarations/mission_control/mission_control.did';
3
- import type { OrbiterParameters } from '../types/actor';
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 { MemorySize } from '../../declarations/orbiter/orbiter.did';
2
- import type { OrbiterParameters } from '../types/actor';
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,4 +1,4 @@
1
- import type { OrbiterParameters } from '../types/actor';
1
+ import { type OrbiterParameters } from '@junobuild/ic-client';
2
2
  import type { UpgradeCodeParams } from '../types/upgrade';
3
3
  /**
4
4
  * Upgrades the Orbiter with the provided WASM module.
@@ -1,4 +1,4 @@
1
- import type { OrbiterParameters } from '../types/actor';
1
+ import type { OrbiterParameters } from '@junobuild/ic-client';
2
2
  /**
3
3
  * Retrieves the version of the Orbiter.
4
4
  * @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 '../types/actor';
3
+ import type { ActorParameters } from '@junobuild/ic-client';
4
4
  /**
5
5
  * Parameters required to retrieve a `juno:package` metadata section.
6
6
  *
@@ -1,4 +1,4 @@
1
- import type { SatelliteParameters } from '../types/actor';
1
+ import type { SatelliteParameters } from '@junobuild/ic-client';
2
2
  /**
3
3
  * Counts the assets in a collection.
4
4
  * @param {Object} params - The parameters for counting the assets.
@@ -1,5 +1,5 @@
1
1
  import type { AuthenticationConfig, DatastoreConfig, StorageConfig } from '@junobuild/config';
2
- import type { SatelliteParameters } from '../types/actor';
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 when the configuration is set.
12
+ * @returns {Promise<void>} A promise that resolves with the applied configuration when set.
13
13
  */
14
- export declare const setStorageConfig: ({ config: { headers: configHeaders, rewrites: configRewrites, redirects: configRedirects, iframe: configIFrame, rawAccess: configRawAccess, maxMemorySize: configMaxMemorySize }, satellite }: {
15
- config: StorageConfig;
14
+ export declare const setStorageConfig: ({ config, satellite }: {
15
+ config: Omit<StorageConfig, "createdAt" | "updatedAt">;
16
16
  satellite: SatelliteParameters;
17
- }) => Promise<void>;
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: { maxMemorySize }, ...rest }: {
26
- config: DatastoreConfig;
25
+ export declare const setDatastoreConfig: ({ config, ...rest }: {
26
+ config: Omit<DatastoreConfig, "createdAt" | "updatedAt">;
27
27
  satellite: SatelliteParameters;
28
- }) => Promise<void>;
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: { internetIdentity }, ...rest }: {
37
- config: AuthenticationConfig;
36
+ export declare const setAuthConfig: ({ config, ...rest }: {
37
+ config: Omit<AuthenticationConfig, "createdAt" | "updatedAt">;
38
38
  satellite: SatelliteParameters;
39
- }) => Promise<void>;
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 { Controller, SetControllersArgs } from '../../declarations/satellite/satellite.did';
3
- import type { SatelliteParameters } from '../types/actor';
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,4 +1,4 @@
1
- import type { SatelliteParameters } from '../types/actor';
1
+ import type { SatelliteParameters } from '@junobuild/ic-client';
2
2
  /**
3
3
  * Counts the documents in a collection.
4
4
  * @param {Object} params - The parameters for counting the documents.
@@ -1,4 +1,4 @@
1
- import type { SatelliteParameters } from '../types/actor';
1
+ import type { SatelliteParameters } from '@junobuild/ic-client';
2
2
  import type { CustomDomain } from '../types/customdomain';
3
3
  /**
4
4
  * Lists the custom domains for a satellite.
@@ -1,5 +1,5 @@
1
- import type { MemorySize } from '../../declarations/satellite/satellite.did';
2
- import type { SatelliteParameters } from '../types/actor';
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 '../types/actor';
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<void>;
29
+ }) => Promise<Rule>;
@@ -1,4 +1,4 @@
1
- import type { SatelliteParameters } from '../types/actor';
1
+ import { type SatelliteParameters } from '@junobuild/ic-client';
2
2
  import type { UpgradeCodeParams } from '../types/upgrade';
3
3
  /**
4
4
  * Upgrades a satellite with the provided WASM module.
@@ -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 './actor';
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 '../../declarations/mission_control/mission_control.did';
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 '../../declarations/satellite/satellite.did';
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 '../../declarations/satellite/satellite.did';
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 '../../declarations/satellite/satellite.did';
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 mapRuleType: (type: RulesType) => CollectionTypeApi;
5
- export declare const mapRulesFilter: (filter?: ListRulesMatcher) => ListRulesParamsApi;
6
- export declare const mapSetRule: ({ 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 mapRule: ([collection, rule]: [string, RuleApi]) => Rule;
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.6.8",
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 && cp -R declarations dist && node esbuild.mjs && npm run ts-declaration",
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": "^2.3.0",
54
- "@dfinity/candid": "^2.3.0",
55
- "@dfinity/ic-management": "^6.2",
56
- "@dfinity/identity": "^2.3.0",
57
- "@dfinity/principal": "^2.3.0",
58
- "@dfinity/utils": "^2",
53
+ "@dfinity/agent": "*",
54
+ "@dfinity/candid": "*",
55
+ "@dfinity/ic-management": "*",
56
+ "@dfinity/identity": "*",
57
+ "@dfinity/principal": "*",
58
+ "@dfinity/utils": "*",
59
59
  "@junobuild/config": "*",
60
- "semver": "7.*",
61
- "zod": "^3.25"
60
+ "@junobuild/ic-client": "*",
61
+ "semver": "*",
62
+ "zod": "*"
62
63
  }
63
- }
64
+ }