@junobuild/admin 0.6.8-next-2025-08-02.3 → 1.0.0-next-2025-08-11
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 +2 -2
- package/dist/types/constants/rules.constants.d.ts +1 -1
- package/dist/types/index.d.ts +0 -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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/types/utils/rule.utils.d.ts +1 -1
- package/package.json +3 -2
- 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 -396
- package/dist/declarations/satellite/satellite.factory.certified.did.js +0 -419
- package/dist/declarations/satellite/satellite.factory.did.js +0 -419
- package/dist/declarations/satellite/satellite.factory.did.mjs +0 -419
- package/dist/types/api/_actor.api.d.ts +0 -34
- package/dist/types/api/_actor.factory.d.ts +0 -19
- package/dist/types/api/_agent.api.d.ts +0 -3
- package/dist/types/types/actor.d.ts +0 -74
- package/dist/types/utils/agent.utils.d.ts +0 -6
|
@@ -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,6 +1,6 @@
|
|
|
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
5
|
config: SetStorageConfig;
|
|
6
6
|
satellite: SatelliteParameters;
|
|
@@ -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,6 @@ 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';
|
|
30
29
|
export type * from './types/list';
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -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,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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 '
|
|
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
3
|
export declare const fromStorageConfig: ({ headers: configHeaders, rewrites: configRewrites, redirects: configRedirects, iframe: configIFrame, rawAccess: configRawAccess, maxMemorySize: configMaxMemorySize, version: configVersion }: StorageConfig) => SetStorageConfig;
|
|
4
4
|
export declare const toStorageConfig: ({ redirects: redirectsDid, iframe: iframeDid, version, raw_access: rawAccessDid, max_memory_size, headers: headersDid, rewrites: rewritesDid }: StorageConfigDid) => StorageConfig;
|
|
5
5
|
export declare const fromDatastoreConfig: ({ maxMemorySize, version }: DatastoreConfig) => SetDbConfig;
|
|
@@ -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,5 +1,5 @@
|
|
|
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
4
|
export declare const fromMaxMemorySize: (configMaxMemorySize: [] | [ConfigMaxMemorySize]) => {
|
|
5
5
|
maxMemorySize?: MaxMemorySizeConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
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
4
|
export declare const fromRuleType: (type: RulesType) => CollectionTypeApi;
|
|
5
5
|
export declare const fromRulesFilter: (filter?: ListRulesMatcher) => ListRulesParamsApi;
|
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",
|
|
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": {
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"@dfinity/principal": "*",
|
|
58
58
|
"@dfinity/utils": "*",
|
|
59
59
|
"@junobuild/config": "*",
|
|
60
|
+
"@junobuild/ic-client": "*",
|
|
60
61
|
"semver": "*",
|
|
61
62
|
"zod": "*"
|
|
62
63
|
}
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import type {ActorMethod} from '@dfinity/agent';
|
|
2
|
-
import type {IDL} from '@dfinity/candid';
|
|
3
|
-
import type {Principal} from '@dfinity/principal';
|
|
4
|
-
|
|
5
|
-
export interface Account {
|
|
6
|
-
owner: Principal;
|
|
7
|
-
subaccount: [] | [Uint8Array | number[]];
|
|
8
|
-
}
|
|
9
|
-
export interface Config {
|
|
10
|
-
monitoring: [] | [MonitoringConfig];
|
|
11
|
-
}
|
|
12
|
-
export interface Controller {
|
|
13
|
-
updated_at: bigint;
|
|
14
|
-
metadata: Array<[string, string]>;
|
|
15
|
-
created_at: bigint;
|
|
16
|
-
scope: ControllerScope;
|
|
17
|
-
expires_at: [] | [bigint];
|
|
18
|
-
}
|
|
19
|
-
export type ControllerScope = {Write: null} | {Admin: null};
|
|
20
|
-
export interface CreateCanisterConfig {
|
|
21
|
-
subnet_id: [] | [Principal];
|
|
22
|
-
name: [] | [string];
|
|
23
|
-
}
|
|
24
|
-
export interface CyclesBalance {
|
|
25
|
-
timestamp: bigint;
|
|
26
|
-
amount: bigint;
|
|
27
|
-
}
|
|
28
|
-
export interface CyclesMonitoring {
|
|
29
|
-
strategy: [] | [CyclesMonitoringStrategy];
|
|
30
|
-
enabled: boolean;
|
|
31
|
-
}
|
|
32
|
-
export interface CyclesMonitoringConfig {
|
|
33
|
-
notification: [] | [DepositedCyclesEmailNotification];
|
|
34
|
-
default_strategy: [] | [CyclesMonitoringStrategy];
|
|
35
|
-
}
|
|
36
|
-
export interface CyclesMonitoringStartConfig {
|
|
37
|
-
orbiters_strategy: [] | [SegmentsMonitoringStrategy];
|
|
38
|
-
mission_control_strategy: [] | [CyclesMonitoringStrategy];
|
|
39
|
-
satellites_strategy: [] | [SegmentsMonitoringStrategy];
|
|
40
|
-
}
|
|
41
|
-
export interface CyclesMonitoringStatus {
|
|
42
|
-
monitored_ids: Array<Principal>;
|
|
43
|
-
running: boolean;
|
|
44
|
-
}
|
|
45
|
-
export interface CyclesMonitoringStopConfig {
|
|
46
|
-
satellite_ids: [] | [Array<Principal>];
|
|
47
|
-
try_mission_control: [] | [boolean];
|
|
48
|
-
orbiter_ids: [] | [Array<Principal>];
|
|
49
|
-
}
|
|
50
|
-
export type CyclesMonitoringStrategy = {BelowThreshold: CyclesThreshold};
|
|
51
|
-
export interface CyclesThreshold {
|
|
52
|
-
fund_cycles: bigint;
|
|
53
|
-
min_cycles: bigint;
|
|
54
|
-
}
|
|
55
|
-
export interface DepositCyclesArgs {
|
|
56
|
-
cycles: bigint;
|
|
57
|
-
destination_id: Principal;
|
|
58
|
-
}
|
|
59
|
-
export interface DepositedCyclesEmailNotification {
|
|
60
|
-
to: [] | [string];
|
|
61
|
-
enabled: boolean;
|
|
62
|
-
}
|
|
63
|
-
export interface GetMonitoringHistory {
|
|
64
|
-
to: [] | [bigint];
|
|
65
|
-
from: [] | [bigint];
|
|
66
|
-
segment_id: Principal;
|
|
67
|
-
}
|
|
68
|
-
export interface MissionControlSettings {
|
|
69
|
-
updated_at: bigint;
|
|
70
|
-
created_at: bigint;
|
|
71
|
-
monitoring: [] | [Monitoring];
|
|
72
|
-
}
|
|
73
|
-
export interface Monitoring {
|
|
74
|
-
cycles: [] | [CyclesMonitoring];
|
|
75
|
-
}
|
|
76
|
-
export interface MonitoringConfig {
|
|
77
|
-
cycles: [] | [CyclesMonitoringConfig];
|
|
78
|
-
}
|
|
79
|
-
export interface MonitoringHistory {
|
|
80
|
-
cycles: [] | [MonitoringHistoryCycles];
|
|
81
|
-
}
|
|
82
|
-
export interface MonitoringHistoryCycles {
|
|
83
|
-
deposited_cycles: [] | [CyclesBalance];
|
|
84
|
-
cycles: CyclesBalance;
|
|
85
|
-
}
|
|
86
|
-
export interface MonitoringHistoryKey {
|
|
87
|
-
segment_id: Principal;
|
|
88
|
-
created_at: bigint;
|
|
89
|
-
nonce: number;
|
|
90
|
-
}
|
|
91
|
-
export interface MonitoringStartConfig {
|
|
92
|
-
cycles_config: [] | [CyclesMonitoringStartConfig];
|
|
93
|
-
}
|
|
94
|
-
export interface MonitoringStatus {
|
|
95
|
-
cycles: [] | [CyclesMonitoringStatus];
|
|
96
|
-
}
|
|
97
|
-
export interface MonitoringStopConfig {
|
|
98
|
-
cycles_config: [] | [CyclesMonitoringStopConfig];
|
|
99
|
-
}
|
|
100
|
-
export interface Orbiter {
|
|
101
|
-
updated_at: bigint;
|
|
102
|
-
orbiter_id: Principal;
|
|
103
|
-
metadata: Array<[string, string]>;
|
|
104
|
-
created_at: bigint;
|
|
105
|
-
settings: [] | [Settings];
|
|
106
|
-
}
|
|
107
|
-
export type Result = {Ok: bigint} | {Err: TransferError};
|
|
108
|
-
export type Result_1 = {Ok: bigint} | {Err: TransferError_1};
|
|
109
|
-
export interface Satellite {
|
|
110
|
-
updated_at: bigint;
|
|
111
|
-
metadata: Array<[string, string]>;
|
|
112
|
-
created_at: bigint;
|
|
113
|
-
satellite_id: Principal;
|
|
114
|
-
settings: [] | [Settings];
|
|
115
|
-
}
|
|
116
|
-
export interface SegmentsMonitoringStrategy {
|
|
117
|
-
ids: Array<Principal>;
|
|
118
|
-
strategy: CyclesMonitoringStrategy;
|
|
119
|
-
}
|
|
120
|
-
export interface SetController {
|
|
121
|
-
metadata: Array<[string, string]>;
|
|
122
|
-
scope: ControllerScope;
|
|
123
|
-
expires_at: [] | [bigint];
|
|
124
|
-
}
|
|
125
|
-
export interface Settings {
|
|
126
|
-
monitoring: [] | [Monitoring];
|
|
127
|
-
}
|
|
128
|
-
export interface Timestamp {
|
|
129
|
-
timestamp_nanos: bigint;
|
|
130
|
-
}
|
|
131
|
-
export interface Tokens {
|
|
132
|
-
e8s: bigint;
|
|
133
|
-
}
|
|
134
|
-
export interface TransferArg {
|
|
135
|
-
to: Account;
|
|
136
|
-
fee: [] | [bigint];
|
|
137
|
-
memo: [] | [Uint8Array | number[]];
|
|
138
|
-
from_subaccount: [] | [Uint8Array | number[]];
|
|
139
|
-
created_at_time: [] | [bigint];
|
|
140
|
-
amount: bigint;
|
|
141
|
-
}
|
|
142
|
-
export interface TransferArgs {
|
|
143
|
-
to: Uint8Array | number[];
|
|
144
|
-
fee: Tokens;
|
|
145
|
-
memo: bigint;
|
|
146
|
-
from_subaccount: [] | [Uint8Array | number[]];
|
|
147
|
-
created_at_time: [] | [Timestamp];
|
|
148
|
-
amount: Tokens;
|
|
149
|
-
}
|
|
150
|
-
export type TransferError =
|
|
151
|
-
| {
|
|
152
|
-
TxTooOld: {allowed_window_nanos: bigint};
|
|
153
|
-
}
|
|
154
|
-
| {BadFee: {expected_fee: Tokens}}
|
|
155
|
-
| {TxDuplicate: {duplicate_of: bigint}}
|
|
156
|
-
| {TxCreatedInFuture: null}
|
|
157
|
-
| {InsufficientFunds: {balance: Tokens}};
|
|
158
|
-
export type TransferError_1 =
|
|
159
|
-
| {
|
|
160
|
-
GenericError: {message: string; error_code: bigint};
|
|
161
|
-
}
|
|
162
|
-
| {TemporarilyUnavailable: null}
|
|
163
|
-
| {BadBurn: {min_burn_amount: bigint}}
|
|
164
|
-
| {Duplicate: {duplicate_of: bigint}}
|
|
165
|
-
| {BadFee: {expected_fee: bigint}}
|
|
166
|
-
| {CreatedInFuture: {ledger_time: bigint}}
|
|
167
|
-
| {TooOld: null}
|
|
168
|
-
| {InsufficientFunds: {balance: bigint}};
|
|
169
|
-
export interface User {
|
|
170
|
-
updated_at: bigint;
|
|
171
|
-
metadata: Array<[string, string]>;
|
|
172
|
-
user: [] | [Principal];
|
|
173
|
-
created_at: bigint;
|
|
174
|
-
config: [] | [Config];
|
|
175
|
-
}
|
|
176
|
-
export interface _SERVICE {
|
|
177
|
-
add_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
|
|
178
|
-
add_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
179
|
-
create_orbiter: ActorMethod<[[] | [string]], Orbiter>;
|
|
180
|
-
create_orbiter_with_config: ActorMethod<[CreateCanisterConfig], Orbiter>;
|
|
181
|
-
create_satellite: ActorMethod<[string], Satellite>;
|
|
182
|
-
create_satellite_with_config: ActorMethod<[CreateCanisterConfig], Satellite>;
|
|
183
|
-
del_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
|
|
184
|
-
del_orbiter: ActorMethod<[Principal, bigint], undefined>;
|
|
185
|
-
del_orbiters_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
186
|
-
del_satellite: ActorMethod<[Principal, bigint], undefined>;
|
|
187
|
-
del_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
188
|
-
deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
|
|
189
|
-
get_config: ActorMethod<[], [] | [Config]>;
|
|
190
|
-
get_metadata: ActorMethod<[], Array<[string, string]>>;
|
|
191
|
-
get_monitoring_history: ActorMethod<
|
|
192
|
-
[GetMonitoringHistory],
|
|
193
|
-
Array<[MonitoringHistoryKey, MonitoringHistory]>
|
|
194
|
-
>;
|
|
195
|
-
get_monitoring_status: ActorMethod<[], MonitoringStatus>;
|
|
196
|
-
get_settings: ActorMethod<[], [] | [MissionControlSettings]>;
|
|
197
|
-
get_user: ActorMethod<[], Principal>;
|
|
198
|
-
get_user_data: ActorMethod<[], User>;
|
|
199
|
-
icp_transfer: ActorMethod<[TransferArgs], Result>;
|
|
200
|
-
icrc_transfer: ActorMethod<[Principal, TransferArg], Result_1>;
|
|
201
|
-
list_mission_control_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
202
|
-
list_orbiters: ActorMethod<[], Array<[Principal, Orbiter]>>;
|
|
203
|
-
list_satellites: ActorMethod<[], Array<[Principal, Satellite]>>;
|
|
204
|
-
remove_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
|
|
205
|
-
remove_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
206
|
-
set_config: ActorMethod<[[] | [Config]], undefined>;
|
|
207
|
-
set_metadata: ActorMethod<[Array<[string, string]>], undefined>;
|
|
208
|
-
set_mission_control_controllers: ActorMethod<[Array<Principal>, SetController], undefined>;
|
|
209
|
-
set_orbiter: ActorMethod<[Principal, [] | [string]], Orbiter>;
|
|
210
|
-
set_orbiter_metadata: ActorMethod<[Principal, Array<[string, string]>], Orbiter>;
|
|
211
|
-
set_orbiters_controllers: ActorMethod<
|
|
212
|
-
[Array<Principal>, Array<Principal>, SetController],
|
|
213
|
-
undefined
|
|
214
|
-
>;
|
|
215
|
-
set_satellite: ActorMethod<[Principal, [] | [string]], Satellite>;
|
|
216
|
-
set_satellite_metadata: ActorMethod<[Principal, Array<[string, string]>], Satellite>;
|
|
217
|
-
set_satellites_controllers: ActorMethod<
|
|
218
|
-
[Array<Principal>, Array<Principal>, SetController],
|
|
219
|
-
undefined
|
|
220
|
-
>;
|
|
221
|
-
start_monitoring: ActorMethod<[], undefined>;
|
|
222
|
-
stop_monitoring: ActorMethod<[], undefined>;
|
|
223
|
-
top_up: ActorMethod<[Principal, Tokens], undefined>;
|
|
224
|
-
unset_orbiter: ActorMethod<[Principal], undefined>;
|
|
225
|
-
unset_satellite: ActorMethod<[Principal], undefined>;
|
|
226
|
-
update_and_start_monitoring: ActorMethod<[MonitoringStartConfig], undefined>;
|
|
227
|
-
update_and_stop_monitoring: ActorMethod<[MonitoringStopConfig], undefined>;
|
|
228
|
-
version: ActorMethod<[], string>;
|
|
229
|
-
}
|
|
230
|
-
export declare const idlFactory: IDL.InterfaceFactory;
|
|
231
|
-
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|