@junobuild/admin 0.0.58 → 0.0.59

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 (40) hide show
  1. package/dist/browser/index.js +7 -7
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/node/index.mjs +7 -7
  4. package/dist/node/index.mjs.map +4 -4
  5. package/dist/types/api/actor.api.d.ts +0 -2
  6. package/dist/types/api/ic.api.d.ts +32 -2
  7. package/dist/types/constants/upgrade.constants.d.ts +5 -0
  8. package/dist/types/errors/upgrade.errors.d.ts +3 -0
  9. package/dist/types/handlers/upgrade.chunks.handlers.d.ts +2 -0
  10. package/dist/types/handlers/upgrade.handlers.d.ts +4 -0
  11. package/dist/types/handlers/upgrade.single.handlers.d.ts +2 -0
  12. package/dist/types/index.d.ts +19 -4
  13. package/dist/types/services/{mission-control.services.d.ts → mission-control.controllers.services.d.ts} +0 -21
  14. package/dist/types/services/mission-control.upgrade.services.d.ts +15 -0
  15. package/dist/types/services/mission-control.version.services.d.ts +10 -0
  16. package/dist/types/services/orbiter.controllers.services.d.ts +12 -0
  17. package/dist/types/services/orbiter.memory.services.d.ts +11 -0
  18. package/dist/types/services/orbiter.upgrade.services.d.ts +18 -0
  19. package/dist/types/services/orbiter.version.services.d.ts +10 -0
  20. package/dist/types/services/satellite.assets.services.d.ts +23 -0
  21. package/dist/types/services/satellite.config.services.d.ts +48 -0
  22. package/dist/types/services/satellite.controllers.services.d.ts +25 -0
  23. package/dist/types/services/satellite.docs.services.d.ts +23 -0
  24. package/dist/types/services/satellite.domains.services.d.ts +22 -0
  25. package/dist/types/services/satellite.memory.services.d.ts +11 -0
  26. package/dist/types/services/satellite.rules.services.d.ts +26 -0
  27. package/dist/types/services/satellite.upgrade.services.d.ts +22 -0
  28. package/dist/types/services/satellite.version.services.d.ts +29 -0
  29. package/dist/types/types/actor.types.d.ts +5 -1
  30. package/dist/types/types/upgrade.types.d.ts +24 -0
  31. package/dist/types/utils/actor.utils.d.ts +1 -1
  32. package/dist/types/utils/array.utils.d.ts +1 -0
  33. package/dist/types/utils/crypto.utils.d.ts +2 -0
  34. package/package.json +2 -1
  35. package/dist/declarations/ic/ic.did.d.ts +0 -344
  36. package/dist/declarations/ic/ic.factory.did.js +0 -378
  37. package/dist/declarations/ic/ic.factory.did.mjs +0 -378
  38. package/dist/types/services/orbiter.services.d.ts +0 -45
  39. package/dist/types/services/satellite.services.d.ts +0 -215
  40. package/dist/types/types/ic.types.d.ts +0 -14
@@ -1,344 +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 type bitcoin_address = string;
6
- export interface bitcoin_get_balance_args {
7
- network: bitcoin_network;
8
- address: bitcoin_address;
9
- min_confirmations: [] | [number];
10
- }
11
- export interface bitcoin_get_balance_query_args {
12
- network: bitcoin_network;
13
- address: bitcoin_address;
14
- min_confirmations: [] | [number];
15
- }
16
- export type bitcoin_get_balance_query_result = satoshi;
17
- export type bitcoin_get_balance_result = satoshi;
18
- export interface bitcoin_get_current_fee_percentiles_args {
19
- network: bitcoin_network;
20
- }
21
- export type bitcoin_get_current_fee_percentiles_result = BigUint64Array | bigint[];
22
- export interface bitcoin_get_utxos_args {
23
- network: bitcoin_network;
24
- filter: [] | [{page: Uint8Array | number[]} | {min_confirmations: number}];
25
- address: bitcoin_address;
26
- }
27
- export interface bitcoin_get_utxos_query_args {
28
- network: bitcoin_network;
29
- filter: [] | [{page: Uint8Array | number[]} | {min_confirmations: number}];
30
- address: bitcoin_address;
31
- }
32
- export interface bitcoin_get_utxos_query_result {
33
- next_page: [] | [Uint8Array | number[]];
34
- tip_height: number;
35
- tip_block_hash: block_hash;
36
- utxos: Array<utxo>;
37
- }
38
- export interface bitcoin_get_utxos_result {
39
- next_page: [] | [Uint8Array | number[]];
40
- tip_height: number;
41
- tip_block_hash: block_hash;
42
- utxos: Array<utxo>;
43
- }
44
- export type bitcoin_network = {mainnet: null} | {testnet: null};
45
- export interface bitcoin_send_transaction_args {
46
- transaction: Uint8Array | number[];
47
- network: bitcoin_network;
48
- }
49
- export type block_hash = Uint8Array | number[];
50
- export type canister_id = Principal;
51
- export interface canister_info_args {
52
- canister_id: canister_id;
53
- num_requested_changes: [] | [bigint];
54
- }
55
- export interface canister_info_result {
56
- controllers: Array<Principal>;
57
- module_hash: [] | [Uint8Array | number[]];
58
- recent_changes: Array<change>;
59
- total_num_changes: bigint;
60
- }
61
- export type canister_install_mode =
62
- | {reinstall: null}
63
- | {
64
- upgrade:
65
- | []
66
- | [
67
- {
68
- wasm_memory_persistence: [] | [{keep: null} | {replace: null}];
69
- skip_pre_upgrade: [] | [boolean];
70
- }
71
- ];
72
- }
73
- | {install: null};
74
- export interface canister_log_record {
75
- idx: bigint;
76
- timestamp_nanos: bigint;
77
- content: Uint8Array | number[];
78
- }
79
- export interface canister_settings {
80
- freezing_threshold: [] | [bigint];
81
- controllers: [] | [Array<Principal>];
82
- reserved_cycles_limit: [] | [bigint];
83
- log_visibility: [] | [log_visibility];
84
- wasm_memory_limit: [] | [bigint];
85
- memory_allocation: [] | [bigint];
86
- compute_allocation: [] | [bigint];
87
- }
88
- export interface canister_status_args {
89
- canister_id: canister_id;
90
- }
91
- export interface canister_status_result {
92
- status: {stopped: null} | {stopping: null} | {running: null};
93
- memory_size: bigint;
94
- cycles: bigint;
95
- settings: definite_canister_settings;
96
- query_stats: {
97
- response_payload_bytes_total: bigint;
98
- num_instructions_total: bigint;
99
- num_calls_total: bigint;
100
- request_payload_bytes_total: bigint;
101
- };
102
- idle_cycles_burned_per_day: bigint;
103
- module_hash: [] | [Uint8Array | number[]];
104
- reserved_cycles: bigint;
105
- }
106
- export interface change {
107
- timestamp_nanos: bigint;
108
- canister_version: bigint;
109
- origin: change_origin;
110
- details: change_details;
111
- }
112
- export type change_details =
113
- | {
114
- creation: {controllers: Array<Principal>};
115
- }
116
- | {
117
- code_deployment: {
118
- mode: {reinstall: null} | {upgrade: null} | {install: null};
119
- module_hash: Uint8Array | number[];
120
- };
121
- }
122
- | {controllers_change: {controllers: Array<Principal>}}
123
- | {code_uninstall: null};
124
- export type change_origin =
125
- | {from_user: {user_id: Principal}}
126
- | {
127
- from_canister: {
128
- canister_version: [] | [bigint];
129
- canister_id: Principal;
130
- };
131
- };
132
- export interface chunk_hash {
133
- hash: Uint8Array | number[];
134
- }
135
- export interface clear_chunk_store_args {
136
- canister_id: canister_id;
137
- }
138
- export interface create_canister_args {
139
- settings: [] | [canister_settings];
140
- sender_canister_version: [] | [bigint];
141
- }
142
- export interface create_canister_result {
143
- canister_id: canister_id;
144
- }
145
- export interface definite_canister_settings {
146
- freezing_threshold: bigint;
147
- controllers: Array<Principal>;
148
- reserved_cycles_limit: bigint;
149
- log_visibility: log_visibility;
150
- wasm_memory_limit: bigint;
151
- memory_allocation: bigint;
152
- compute_allocation: bigint;
153
- }
154
- export interface delete_canister_args {
155
- canister_id: canister_id;
156
- }
157
- export interface deposit_cycles_args {
158
- canister_id: canister_id;
159
- }
160
- export type ecdsa_curve = {secp256k1: null};
161
- export interface ecdsa_public_key_args {
162
- key_id: {name: string; curve: ecdsa_curve};
163
- canister_id: [] | [canister_id];
164
- derivation_path: Array<Uint8Array | number[]>;
165
- }
166
- export interface ecdsa_public_key_result {
167
- public_key: Uint8Array | number[];
168
- chain_code: Uint8Array | number[];
169
- }
170
- export interface fetch_canister_logs_args {
171
- canister_id: canister_id;
172
- }
173
- export interface fetch_canister_logs_result {
174
- canister_log_records: Array<canister_log_record>;
175
- }
176
- export interface http_header {
177
- value: string;
178
- name: string;
179
- }
180
- export interface http_request_args {
181
- url: string;
182
- method: {get: null} | {head: null} | {post: null};
183
- max_response_bytes: [] | [bigint];
184
- body: [] | [Uint8Array | number[]];
185
- transform: [] | [{function: [Principal, string]; context: Uint8Array | number[]}];
186
- headers: Array<http_header>;
187
- }
188
- export interface http_request_result {
189
- status: bigint;
190
- body: Uint8Array | number[];
191
- headers: Array<http_header>;
192
- }
193
- export interface install_chunked_code_args {
194
- arg: Uint8Array | number[];
195
- wasm_module_hash: Uint8Array | number[];
196
- mode: canister_install_mode;
197
- chunk_hashes_list: Array<chunk_hash>;
198
- target_canister: canister_id;
199
- store_canister: [] | [canister_id];
200
- sender_canister_version: [] | [bigint];
201
- }
202
- export interface install_code_args {
203
- arg: Uint8Array | number[];
204
- wasm_module: wasm_module;
205
- mode: canister_install_mode;
206
- canister_id: canister_id;
207
- sender_canister_version: [] | [bigint];
208
- }
209
- export type log_visibility = {controllers: null} | {public: null};
210
- export type millisatoshi_per_byte = bigint;
211
- export interface node_metrics {
212
- num_block_failures_total: bigint;
213
- node_id: Principal;
214
- num_blocks_proposed_total: bigint;
215
- }
216
- export interface node_metrics_history_args {
217
- start_at_timestamp_nanos: bigint;
218
- subnet_id: Principal;
219
- }
220
- export type node_metrics_history_result = Array<{
221
- timestamp_nanos: bigint;
222
- node_metrics: Array<node_metrics>;
223
- }>;
224
- export interface outpoint {
225
- txid: Uint8Array | number[];
226
- vout: number;
227
- }
228
- export interface provisional_create_canister_with_cycles_args {
229
- settings: [] | [canister_settings];
230
- specified_id: [] | [canister_id];
231
- amount: [] | [bigint];
232
- sender_canister_version: [] | [bigint];
233
- }
234
- export interface provisional_create_canister_with_cycles_result {
235
- canister_id: canister_id;
236
- }
237
- export interface provisional_top_up_canister_args {
238
- canister_id: canister_id;
239
- amount: bigint;
240
- }
241
- export type raw_rand_result = Uint8Array | number[];
242
- export type satoshi = bigint;
243
- export type schnorr_algorithm = {ed25519: null} | {bip340secp256k1: null};
244
- export interface schnorr_public_key_args {
245
- key_id: {algorithm: schnorr_algorithm; name: string};
246
- canister_id: [] | [canister_id];
247
- derivation_path: Array<Uint8Array | number[]>;
248
- }
249
- export interface schnorr_public_key_result {
250
- public_key: Uint8Array | number[];
251
- chain_code: Uint8Array | number[];
252
- }
253
- export interface sign_with_ecdsa_args {
254
- key_id: {name: string; curve: ecdsa_curve};
255
- derivation_path: Array<Uint8Array | number[]>;
256
- message_hash: Uint8Array | number[];
257
- }
258
- export interface sign_with_ecdsa_result {
259
- signature: Uint8Array | number[];
260
- }
261
- export interface sign_with_schnorr_args {
262
- key_id: {algorithm: schnorr_algorithm; name: string};
263
- derivation_path: Array<Uint8Array | number[]>;
264
- message: Uint8Array | number[];
265
- }
266
- export interface sign_with_schnorr_result {
267
- signature: Uint8Array | number[];
268
- }
269
- export interface start_canister_args {
270
- canister_id: canister_id;
271
- }
272
- export interface stop_canister_args {
273
- canister_id: canister_id;
274
- }
275
- export interface stored_chunks_args {
276
- canister_id: canister_id;
277
- }
278
- export type stored_chunks_result = Array<chunk_hash>;
279
- export interface uninstall_code_args {
280
- canister_id: canister_id;
281
- sender_canister_version: [] | [bigint];
282
- }
283
- export interface update_settings_args {
284
- canister_id: Principal;
285
- settings: canister_settings;
286
- sender_canister_version: [] | [bigint];
287
- }
288
- export interface upload_chunk_args {
289
- chunk: Uint8Array | number[];
290
- canister_id: Principal;
291
- }
292
- export type upload_chunk_result = chunk_hash;
293
- export interface utxo {
294
- height: number;
295
- value: satoshi;
296
- outpoint: outpoint;
297
- }
298
- export type wasm_module = Uint8Array | number[];
299
- export interface _SERVICE {
300
- bitcoin_get_balance: ActorMethod<[bitcoin_get_balance_args], bitcoin_get_balance_result>;
301
- bitcoin_get_balance_query: ActorMethod<
302
- [bitcoin_get_balance_query_args],
303
- bitcoin_get_balance_query_result
304
- >;
305
- bitcoin_get_current_fee_percentiles: ActorMethod<
306
- [bitcoin_get_current_fee_percentiles_args],
307
- bitcoin_get_current_fee_percentiles_result
308
- >;
309
- bitcoin_get_utxos: ActorMethod<[bitcoin_get_utxos_args], bitcoin_get_utxos_result>;
310
- bitcoin_get_utxos_query: ActorMethod<
311
- [bitcoin_get_utxos_query_args],
312
- bitcoin_get_utxos_query_result
313
- >;
314
- bitcoin_send_transaction: ActorMethod<[bitcoin_send_transaction_args], undefined>;
315
- canister_info: ActorMethod<[canister_info_args], canister_info_result>;
316
- canister_status: ActorMethod<[canister_status_args], canister_status_result>;
317
- clear_chunk_store: ActorMethod<[clear_chunk_store_args], undefined>;
318
- create_canister: ActorMethod<[create_canister_args], create_canister_result>;
319
- delete_canister: ActorMethod<[delete_canister_args], undefined>;
320
- deposit_cycles: ActorMethod<[deposit_cycles_args], undefined>;
321
- ecdsa_public_key: ActorMethod<[ecdsa_public_key_args], ecdsa_public_key_result>;
322
- fetch_canister_logs: ActorMethod<[fetch_canister_logs_args], fetch_canister_logs_result>;
323
- http_request: ActorMethod<[http_request_args], http_request_result>;
324
- install_chunked_code: ActorMethod<[install_chunked_code_args], undefined>;
325
- install_code: ActorMethod<[install_code_args], undefined>;
326
- node_metrics_history: ActorMethod<[node_metrics_history_args], node_metrics_history_result>;
327
- provisional_create_canister_with_cycles: ActorMethod<
328
- [provisional_create_canister_with_cycles_args],
329
- provisional_create_canister_with_cycles_result
330
- >;
331
- provisional_top_up_canister: ActorMethod<[provisional_top_up_canister_args], undefined>;
332
- raw_rand: ActorMethod<[], raw_rand_result>;
333
- schnorr_public_key: ActorMethod<[schnorr_public_key_args], schnorr_public_key_result>;
334
- sign_with_ecdsa: ActorMethod<[sign_with_ecdsa_args], sign_with_ecdsa_result>;
335
- sign_with_schnorr: ActorMethod<[sign_with_schnorr_args], sign_with_schnorr_result>;
336
- start_canister: ActorMethod<[start_canister_args], undefined>;
337
- stop_canister: ActorMethod<[stop_canister_args], undefined>;
338
- stored_chunks: ActorMethod<[stored_chunks_args], stored_chunks_result>;
339
- uninstall_code: ActorMethod<[uninstall_code_args], undefined>;
340
- update_settings: ActorMethod<[update_settings_args], undefined>;
341
- upload_chunk: ActorMethod<[upload_chunk_args], upload_chunk_result>;
342
- }
343
- export declare const idlFactory: IDL.InterfaceFactory;
344
- export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];