@junobuild/admin 0.0.46 → 0.0.47-next-2024-04-28

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