@junobuild/ic-client 3.1.2 → 3.1.3
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/actor.js +1 -1
- package/actor.js.map +3 -3
- package/actor.mjs +1 -1
- package/actor.mjs.map +3 -3
- package/declarations/console/console.did.d.ts +228 -218
- package/declarations/console/console.factory.certified.did.js +14 -1
- package/declarations/console/console.factory.did.js +14 -1
- package/declarations/console/console.factory.did.mjs +14 -1
- package/declarations/deprecated/console-0-0-14.did.d.ts +186 -186
- package/declarations/deprecated/console-0-0-8-patch1.did.d.ts +49 -49
- package/declarations/deprecated/mission_control-0-0-13.did.d.ts +173 -173
- package/declarations/deprecated/mission_control-0-0-14.did.d.ts +167 -167
- package/declarations/deprecated/mission_control-0-0-4.did.d.ts +57 -57
- package/declarations/deprecated/observatory-0-0-9.did.d.ts +42 -42
- package/declarations/deprecated/orbiter-0-0-6.did.d.ts +111 -111
- package/declarations/deprecated/orbiter-0-0-7.did.d.ts +116 -116
- package/declarations/deprecated/orbiter-0-0-8.did.d.ts +177 -177
- package/declarations/deprecated/orbiter-0-2-0.did.d.ts +203 -203
- package/declarations/deprecated/satellite-0-0-16.did.d.ts +174 -170
- package/declarations/deprecated/satellite-0-0-17.did.d.ts +185 -181
- package/declarations/deprecated/satellite-0-0-21.did.d.ts +216 -212
- package/declarations/deprecated/satellite-0-0-22.did.d.ts +211 -207
- package/declarations/deprecated/satellite-0-0-8.did.d.ts +125 -121
- package/declarations/deprecated/satellite-0-0-9.did.d.ts +139 -135
- package/declarations/mission_control/mission_control.did.d.ts +178 -169
- package/declarations/mission_control/mission_control.factory.certified.did.js +16 -4
- package/declarations/mission_control/mission_control.factory.did.js +16 -4
- package/declarations/observatory/observatory.did.d.ts +54 -54
- package/declarations/orbiter/orbiter.did.d.ts +206 -206
- package/declarations/orbiter/orbiter.factory.certified.did.js +7 -3
- package/declarations/orbiter/orbiter.factory.did.js +7 -3
- package/declarations/orbiter/orbiter.factory.did.mjs +7 -3
- package/declarations/satellite/satellite.did.d.ts +294 -285
- package/declarations/satellite/satellite.factory.certified.did.js +1 -0
- package/declarations/satellite/satellite.factory.did.js +1 -0
- package/declarations/satellite/satellite.factory.did.mjs +1 -0
- package/declarations/sputnik/sputnik.did.d.ts +294 -285
- package/declarations/sputnik/sputnik.factory.certified.did.js +1 -0
- package/declarations/sputnik/sputnik.factory.did.js +1 -0
- package/package.json +1 -1
|
@@ -1,241 +1,241 @@
|
|
|
1
|
-
import type {ActorMethod} from '@dfinity/agent';
|
|
2
|
-
import type {IDL} from '@dfinity/candid';
|
|
3
|
-
import type {Principal} from '@dfinity/principal';
|
|
1
|
+
import type { ActorMethod } from '@dfinity/agent';
|
|
2
|
+
import type { IDL } from '@dfinity/candid';
|
|
3
|
+
import type { Principal } from '@dfinity/principal';
|
|
4
4
|
|
|
5
5
|
export interface Account {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
owner: Principal;
|
|
7
|
+
subaccount: [] | [Uint8Array | number[]];
|
|
8
8
|
}
|
|
9
9
|
export interface Config {
|
|
10
|
-
|
|
10
|
+
monitoring: [] | [MonitoringConfig];
|
|
11
11
|
}
|
|
12
12
|
export interface Controller {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
updated_at: bigint;
|
|
14
|
+
metadata: Array<[string, string]>;
|
|
15
|
+
created_at: bigint;
|
|
16
|
+
scope: ControllerScope;
|
|
17
|
+
expires_at: [] | [bigint];
|
|
18
18
|
}
|
|
19
|
-
export type ControllerScope = {Write: null} | {Admin: null};
|
|
19
|
+
export type ControllerScope = { Write: null } | { Admin: null };
|
|
20
20
|
export interface CreateCanisterConfig {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
subnet_id: [] | [Principal];
|
|
22
|
+
name: [] | [string];
|
|
23
23
|
}
|
|
24
24
|
export interface CyclesBalance {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
timestamp: bigint;
|
|
26
|
+
amount: bigint;
|
|
27
27
|
}
|
|
28
28
|
export interface CyclesMonitoring {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
strategy: [] | [CyclesMonitoringStrategy];
|
|
30
|
+
enabled: boolean;
|
|
31
31
|
}
|
|
32
32
|
export interface CyclesMonitoringConfig {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
notification: [] | [DepositedCyclesEmailNotification];
|
|
34
|
+
default_strategy: [] | [CyclesMonitoringStrategy];
|
|
35
35
|
}
|
|
36
36
|
export interface CyclesMonitoringStartConfig {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
orbiters_strategy: [] | [SegmentsMonitoringStrategy];
|
|
38
|
+
mission_control_strategy: [] | [CyclesMonitoringStrategy];
|
|
39
|
+
satellites_strategy: [] | [SegmentsMonitoringStrategy];
|
|
40
40
|
}
|
|
41
41
|
export interface CyclesMonitoringStatus {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
monitored_ids: Array<Principal>;
|
|
43
|
+
running: boolean;
|
|
44
44
|
}
|
|
45
45
|
export interface CyclesMonitoringStopConfig {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
satellite_ids: [] | [Array<Principal>];
|
|
47
|
+
try_mission_control: [] | [boolean];
|
|
48
|
+
orbiter_ids: [] | [Array<Principal>];
|
|
49
49
|
}
|
|
50
|
-
export type CyclesMonitoringStrategy = {BelowThreshold: CyclesThreshold};
|
|
50
|
+
export type CyclesMonitoringStrategy = { BelowThreshold: CyclesThreshold };
|
|
51
51
|
export interface CyclesThreshold {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
fund_cycles: bigint;
|
|
53
|
+
min_cycles: bigint;
|
|
54
54
|
}
|
|
55
55
|
export interface DepositCyclesArgs {
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
cycles: bigint;
|
|
57
|
+
destination_id: Principal;
|
|
58
58
|
}
|
|
59
59
|
export interface DepositedCyclesEmailNotification {
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
to: [] | [string];
|
|
61
|
+
enabled: boolean;
|
|
62
62
|
}
|
|
63
63
|
export type FundingErrorCode =
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
| { BalanceCheckFailed: null }
|
|
65
|
+
| { ObtainCyclesFailed: null }
|
|
66
|
+
| { DepositFailed: null }
|
|
67
|
+
| { InsufficientCycles: null }
|
|
68
|
+
| { Other: string };
|
|
69
69
|
export interface FundingFailure {
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
timestamp: bigint;
|
|
71
|
+
error_code: FundingErrorCode;
|
|
72
72
|
}
|
|
73
73
|
export interface GetMonitoringHistory {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
to: [] | [bigint];
|
|
75
|
+
from: [] | [bigint];
|
|
76
|
+
segment_id: Principal;
|
|
77
77
|
}
|
|
78
78
|
export interface MissionControlSettings {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
updated_at: bigint;
|
|
80
|
+
created_at: bigint;
|
|
81
|
+
monitoring: [] | [Monitoring];
|
|
82
82
|
}
|
|
83
83
|
export interface Monitoring {
|
|
84
|
-
|
|
84
|
+
cycles: [] | [CyclesMonitoring];
|
|
85
85
|
}
|
|
86
86
|
export interface MonitoringConfig {
|
|
87
|
-
|
|
87
|
+
cycles: [] | [CyclesMonitoringConfig];
|
|
88
88
|
}
|
|
89
89
|
export interface MonitoringHistory {
|
|
90
|
-
|
|
90
|
+
cycles: [] | [MonitoringHistoryCycles];
|
|
91
91
|
}
|
|
92
92
|
export interface MonitoringHistoryCycles {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
deposited_cycles: [] | [CyclesBalance];
|
|
94
|
+
cycles: CyclesBalance;
|
|
95
|
+
funding_failure: [] | [FundingFailure];
|
|
96
96
|
}
|
|
97
97
|
export interface MonitoringHistoryKey {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
segment_id: Principal;
|
|
99
|
+
created_at: bigint;
|
|
100
|
+
nonce: number;
|
|
101
101
|
}
|
|
102
102
|
export interface MonitoringStartConfig {
|
|
103
|
-
|
|
103
|
+
cycles_config: [] | [CyclesMonitoringStartConfig];
|
|
104
104
|
}
|
|
105
105
|
export interface MonitoringStatus {
|
|
106
|
-
|
|
106
|
+
cycles: [] | [CyclesMonitoringStatus];
|
|
107
107
|
}
|
|
108
108
|
export interface MonitoringStopConfig {
|
|
109
|
-
|
|
109
|
+
cycles_config: [] | [CyclesMonitoringStopConfig];
|
|
110
110
|
}
|
|
111
111
|
export interface Orbiter {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
export type Result = {Ok: bigint} | {Err: TransferError};
|
|
119
|
-
export type Result_1 = {Ok: bigint} | {Err: TransferError_1};
|
|
112
|
+
updated_at: bigint;
|
|
113
|
+
orbiter_id: Principal;
|
|
114
|
+
metadata: Array<[string, string]>;
|
|
115
|
+
created_at: bigint;
|
|
116
|
+
settings: [] | [Settings];
|
|
117
|
+
}
|
|
118
|
+
export type Result = { Ok: bigint } | { Err: TransferError };
|
|
119
|
+
export type Result_1 = { Ok: bigint } | { Err: TransferError_1 };
|
|
120
120
|
export interface Satellite {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
121
|
+
updated_at: bigint;
|
|
122
|
+
metadata: Array<[string, string]>;
|
|
123
|
+
created_at: bigint;
|
|
124
|
+
satellite_id: Principal;
|
|
125
|
+
settings: [] | [Settings];
|
|
126
126
|
}
|
|
127
127
|
export interface SegmentsMonitoringStrategy {
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
ids: Array<Principal>;
|
|
129
|
+
strategy: CyclesMonitoringStrategy;
|
|
130
130
|
}
|
|
131
131
|
export interface SetController {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
metadata: Array<[string, string]>;
|
|
133
|
+
scope: ControllerScope;
|
|
134
|
+
expires_at: [] | [bigint];
|
|
135
135
|
}
|
|
136
136
|
export interface Settings {
|
|
137
|
-
|
|
137
|
+
monitoring: [] | [Monitoring];
|
|
138
138
|
}
|
|
139
139
|
export interface Timestamp {
|
|
140
|
-
|
|
140
|
+
timestamp_nanos: bigint;
|
|
141
141
|
}
|
|
142
142
|
export interface Tokens {
|
|
143
|
-
|
|
143
|
+
e8s: bigint;
|
|
144
144
|
}
|
|
145
145
|
export interface TransferArg {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
146
|
+
to: Account;
|
|
147
|
+
fee: [] | [bigint];
|
|
148
|
+
memo: [] | [Uint8Array | number[]];
|
|
149
|
+
from_subaccount: [] | [Uint8Array | number[]];
|
|
150
|
+
created_at_time: [] | [bigint];
|
|
151
|
+
amount: bigint;
|
|
152
152
|
}
|
|
153
153
|
export interface TransferArgs {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
154
|
+
to: Uint8Array | number[];
|
|
155
|
+
fee: Tokens;
|
|
156
|
+
memo: bigint;
|
|
157
|
+
from_subaccount: [] | [Uint8Array | number[]];
|
|
158
|
+
created_at_time: [] | [Timestamp];
|
|
159
|
+
amount: Tokens;
|
|
160
160
|
}
|
|
161
161
|
export type TransferError =
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
162
|
+
| {
|
|
163
|
+
TxTooOld: { allowed_window_nanos: bigint };
|
|
164
|
+
}
|
|
165
|
+
| { BadFee: { expected_fee: Tokens } }
|
|
166
|
+
| { TxDuplicate: { duplicate_of: bigint } }
|
|
167
|
+
| { TxCreatedInFuture: null }
|
|
168
|
+
| { InsufficientFunds: { balance: Tokens } };
|
|
169
169
|
export type TransferError_1 =
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
170
|
+
| {
|
|
171
|
+
GenericError: { message: string; error_code: bigint };
|
|
172
|
+
}
|
|
173
|
+
| { TemporarilyUnavailable: null }
|
|
174
|
+
| { BadBurn: { min_burn_amount: bigint } }
|
|
175
|
+
| { Duplicate: { duplicate_of: bigint } }
|
|
176
|
+
| { BadFee: { expected_fee: bigint } }
|
|
177
|
+
| { CreatedInFuture: { ledger_time: bigint } }
|
|
178
|
+
| { TooOld: null }
|
|
179
|
+
| { InsufficientFunds: { balance: bigint } };
|
|
180
180
|
export interface User {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
181
|
+
updated_at: bigint;
|
|
182
|
+
metadata: Array<[string, string]>;
|
|
183
|
+
user: [] | [Principal];
|
|
184
|
+
created_at: bigint;
|
|
185
|
+
config: [] | [Config];
|
|
186
186
|
}
|
|
187
187
|
export interface _SERVICE {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
188
|
+
add_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
|
|
189
|
+
add_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
190
|
+
create_orbiter: ActorMethod<[[] | [string]], Orbiter>;
|
|
191
|
+
create_orbiter_with_config: ActorMethod<[CreateCanisterConfig], Orbiter>;
|
|
192
|
+
create_satellite: ActorMethod<[string], Satellite>;
|
|
193
|
+
create_satellite_with_config: ActorMethod<[CreateCanisterConfig], Satellite>;
|
|
194
|
+
del_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
|
|
195
|
+
del_orbiter: ActorMethod<[Principal, bigint], undefined>;
|
|
196
|
+
del_orbiters_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
197
|
+
del_satellite: ActorMethod<[Principal, bigint], undefined>;
|
|
198
|
+
del_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
199
|
+
deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
|
|
200
|
+
get_config: ActorMethod<[], [] | [Config]>;
|
|
201
|
+
get_metadata: ActorMethod<[], Array<[string, string]>>;
|
|
202
|
+
get_monitoring_history: ActorMethod<
|
|
203
|
+
[GetMonitoringHistory],
|
|
204
|
+
Array<[MonitoringHistoryKey, MonitoringHistory]>
|
|
205
|
+
>;
|
|
206
|
+
get_monitoring_status: ActorMethod<[], MonitoringStatus>;
|
|
207
|
+
get_settings: ActorMethod<[], [] | [MissionControlSettings]>;
|
|
208
|
+
get_user: ActorMethod<[], Principal>;
|
|
209
|
+
get_user_data: ActorMethod<[], User>;
|
|
210
|
+
icp_transfer: ActorMethod<[TransferArgs], Result>;
|
|
211
|
+
icrc_transfer: ActorMethod<[Principal, TransferArg], Result_1>;
|
|
212
|
+
list_mission_control_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
213
|
+
list_orbiters: ActorMethod<[], Array<[Principal, Orbiter]>>;
|
|
214
|
+
list_satellites: ActorMethod<[], Array<[Principal, Satellite]>>;
|
|
215
|
+
remove_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
|
|
216
|
+
remove_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
217
|
+
set_config: ActorMethod<[[] | [Config]], undefined>;
|
|
218
|
+
set_metadata: ActorMethod<[Array<[string, string]>], undefined>;
|
|
219
|
+
set_mission_control_controllers: ActorMethod<[Array<Principal>, SetController], undefined>;
|
|
220
|
+
set_orbiter: ActorMethod<[Principal, [] | [string]], Orbiter>;
|
|
221
|
+
set_orbiter_metadata: ActorMethod<[Principal, Array<[string, string]>], Orbiter>;
|
|
222
|
+
set_orbiters_controllers: ActorMethod<
|
|
223
|
+
[Array<Principal>, Array<Principal>, SetController],
|
|
224
|
+
undefined
|
|
225
|
+
>;
|
|
226
|
+
set_satellite: ActorMethod<[Principal, [] | [string]], Satellite>;
|
|
227
|
+
set_satellite_metadata: ActorMethod<[Principal, Array<[string, string]>], Satellite>;
|
|
228
|
+
set_satellites_controllers: ActorMethod<
|
|
229
|
+
[Array<Principal>, Array<Principal>, SetController],
|
|
230
|
+
undefined
|
|
231
|
+
>;
|
|
232
|
+
start_monitoring: ActorMethod<[], undefined>;
|
|
233
|
+
stop_monitoring: ActorMethod<[], undefined>;
|
|
234
|
+
top_up: ActorMethod<[Principal, Tokens], undefined>;
|
|
235
|
+
unset_orbiter: ActorMethod<[Principal], undefined>;
|
|
236
|
+
unset_satellite: ActorMethod<[Principal], undefined>;
|
|
237
|
+
update_and_start_monitoring: ActorMethod<[MonitoringStartConfig], undefined>;
|
|
238
|
+
update_and_stop_monitoring: ActorMethod<[MonitoringStopConfig], undefined>;
|
|
239
239
|
}
|
|
240
240
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
241
|
-
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|
|
241
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import type {ActorMethod} from '@dfinity/agent';
|
|
2
|
-
import type {Principal} from '@dfinity/principal';
|
|
1
|
+
import type { ActorMethod } from '@dfinity/agent';
|
|
2
|
+
import type { Principal } from '@dfinity/principal';
|
|
3
3
|
|
|
4
4
|
export interface CanisterStatusResponse {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
status: CanisterStatusType;
|
|
6
|
+
memory_size: bigint;
|
|
7
|
+
cycles: bigint;
|
|
8
|
+
settings: DefiniteCanisterSettings;
|
|
9
|
+
idle_cycles_burned_per_day: bigint;
|
|
10
|
+
module_hash: [] | [Uint8Array | number[]];
|
|
11
11
|
}
|
|
12
|
-
export type CanisterStatusType = {stopped: null} | {stopping: null} | {running: null};
|
|
12
|
+
export type CanisterStatusType = { stopped: null } | { stopping: null } | { running: null };
|
|
13
13
|
export interface Controller {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
updated_at: bigint;
|
|
15
|
+
metadata: Array<[string, string]>;
|
|
16
|
+
created_at: bigint;
|
|
17
|
+
expires_at: [] | [bigint];
|
|
18
18
|
}
|
|
19
19
|
export interface CronJobStatusesSatelliteConfig {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
cycles_threshold: [] | [bigint];
|
|
22
22
|
}
|
|
23
23
|
export interface DefiniteCanisterSettings {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
freezing_threshold: bigint;
|
|
25
|
+
controllers: Array<Principal>;
|
|
26
|
+
memory_allocation: bigint;
|
|
27
|
+
compute_allocation: bigint;
|
|
28
28
|
}
|
|
29
|
-
export type Result = {Ok: SegmentStatus} | {Err: string};
|
|
29
|
+
export type Result = { Ok: SegmentStatus } | { Err: string };
|
|
30
30
|
export interface Satellite {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
updated_at: bigint;
|
|
32
|
+
metadata: Array<[string, string]>;
|
|
33
|
+
created_at: bigint;
|
|
34
|
+
satellite_id: Principal;
|
|
35
35
|
}
|
|
36
36
|
export interface SegmentStatus {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
id: Principal;
|
|
38
|
+
status: CanisterStatusResponse;
|
|
39
|
+
metadata: [] | [Array<[string, string]>];
|
|
40
|
+
status_at: bigint;
|
|
41
41
|
}
|
|
42
42
|
export interface SegmentsStatuses {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
satellites: [] | [Array<Result>];
|
|
44
|
+
mission_control: Result;
|
|
45
45
|
}
|
|
46
46
|
export interface SetController {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
metadata: Array<[string, string]>;
|
|
48
|
+
expires_at: [] | [bigint];
|
|
49
49
|
}
|
|
50
50
|
export interface StatusesArgs {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
mission_control_cycles_threshold: [] | [bigint];
|
|
52
|
+
satellites: Array<[Principal, CronJobStatusesSatelliteConfig]>;
|
|
53
|
+
cycles_threshold: [] | [bigint];
|
|
54
54
|
}
|
|
55
55
|
export interface Tokens {
|
|
56
|
-
|
|
56
|
+
e8s: bigint;
|
|
57
57
|
}
|
|
58
58
|
export interface _SERVICE {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
59
|
+
add_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
|
|
60
|
+
add_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
61
|
+
create_satellite: ActorMethod<[string], Satellite>;
|
|
62
|
+
del_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
|
|
63
|
+
del_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
64
|
+
get_user: ActorMethod<[], Principal>;
|
|
65
|
+
list_mission_control_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
66
|
+
list_mission_control_statuses: ActorMethod<[], Array<[bigint, Result]>>;
|
|
67
|
+
list_satellite_statuses: ActorMethod<[Principal], [] | [Array<[bigint, Result]>]>;
|
|
68
|
+
list_satellites: ActorMethod<[], Array<[Principal, Satellite]>>;
|
|
69
|
+
remove_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
|
|
70
|
+
remove_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
71
|
+
set_metadata: ActorMethod<[Array<[string, string]>], undefined>;
|
|
72
|
+
set_mission_control_controllers: ActorMethod<[Array<Principal>, SetController], undefined>;
|
|
73
|
+
set_satellites_controllers: ActorMethod<
|
|
74
|
+
[Array<Principal>, Array<Principal>, SetController],
|
|
75
|
+
undefined
|
|
76
|
+
>;
|
|
77
|
+
status: ActorMethod<[StatusesArgs], SegmentsStatuses>;
|
|
78
|
+
top_up: ActorMethod<[Principal, Tokens], undefined>;
|
|
79
|
+
version: ActorMethod<[], string>;
|
|
80
80
|
}
|