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