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