@junobuild/admin 0.0.20 → 0.0.21
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/cmc/index.js +6 -1
- package/declarations/console/console.did.d.ts +5 -4
- package/declarations/console/console.factory.did.js +3 -2
- package/declarations/console/console.factory.did.mjs +3 -2
- package/declarations/console/index.js +6 -1
- package/declarations/ic/ic.did +131 -18
- package/declarations/ic/ic.did.d.ts +184 -53
- package/declarations/ic/ic.factory.did.js +167 -24
- package/declarations/mission_control/index.js +7 -1
- package/declarations/mission_control/mission_control.did.d.ts +1 -0
- package/declarations/mission_control/mission_control.factory.did.js +5 -0
- package/declarations/observatory/index.js +7 -1
- package/declarations/satellite/index.js +6 -1
- package/declarations/satellite/satellite.did.d.ts +1 -0
- package/declarations/satellite/satellite.factory.did.js +1 -0
- package/declarations/satellite/satellite.factory.did.mjs +1 -0
- package/dist/browser/index.js +15 -15
- package/dist/browser/index.js.map +4 -4
- package/dist/declarations/cmc/index.js +6 -1
- package/dist/declarations/console/console.did.d.ts +5 -4
- package/dist/declarations/console/console.factory.did.js +3 -2
- package/dist/declarations/console/console.factory.did.mjs +3 -2
- package/dist/declarations/console/index.js +6 -1
- package/dist/declarations/ic/ic.did +131 -18
- package/dist/declarations/ic/ic.did.d.ts +184 -53
- package/dist/declarations/ic/ic.factory.did.js +167 -24
- package/dist/declarations/mission_control/index.js +7 -1
- package/dist/declarations/mission_control/mission_control.did.d.ts +1 -0
- package/dist/declarations/mission_control/mission_control.factory.did.js +5 -0
- package/dist/declarations/observatory/index.js +7 -1
- package/dist/declarations/satellite/index.js +6 -1
- package/dist/declarations/satellite/satellite.did.d.ts +1 -0
- package/dist/declarations/satellite/satellite.factory.did.js +1 -0
- package/dist/declarations/satellite/satellite.factory.did.mjs +1 -0
- package/dist/node/index.mjs +19 -19
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/api/ic.api.d.ts +1 -1
- package/dist/types/constants/config.constants.d.ts +2 -0
- package/dist/types/services/mission-control.services.d.ts +1 -1
- package/dist/types/services/satellite.services.d.ts +2 -2
- package/dist/types/types/config.types.d.ts +9 -3
- package/dist/types/types/ic.types.d.ts +2 -1
- package/package.json +1 -1
- package/declarations/frontend/frontend.did +0 -188
- package/declarations/frontend/frontend.did.d.ts +0 -172
- package/declarations/frontend/frontend.factory.did.js +0 -210
- package/declarations/frontend/index.d.ts +0 -45
- package/declarations/frontend/index.js +0 -32
- package/declarations/internet_identity/index.d.ts +0 -45
- package/declarations/internet_identity/index.js +0 -32
- package/declarations/internet_identity/internet_identity.did +0 -378
- package/declarations/internet_identity/internet_identity.did.d.ts +0 -231
- package/declarations/internet_identity/internet_identity.factory.did.js +0 -277
- package/declarations/ledger/index.d.ts +0 -45
- package/declarations/ledger/index.js +0 -32
- package/declarations/ledger/ledger.did +0 -266
- package/declarations/ledger/ledger.did.d.ts +0 -117
- package/declarations/ledger/ledger.factory.did.js +0 -115
- package/dist/declarations/frontend/frontend.did +0 -188
- package/dist/declarations/frontend/frontend.did.d.ts +0 -172
- package/dist/declarations/frontend/frontend.factory.did.js +0 -210
- package/dist/declarations/frontend/index.d.ts +0 -45
- package/dist/declarations/frontend/index.js +0 -32
- package/dist/declarations/internet_identity/index.d.ts +0 -45
- package/dist/declarations/internet_identity/index.js +0 -32
- package/dist/declarations/internet_identity/internet_identity.did +0 -378
- package/dist/declarations/internet_identity/internet_identity.did.d.ts +0 -231
- package/dist/declarations/internet_identity/internet_identity.factory.did.js +0 -277
- package/dist/declarations/ledger/index.d.ts +0 -45
- package/dist/declarations/ledger/index.js +0 -32
- package/dist/declarations/ledger/ledger.did +0 -266
- package/dist/declarations/ledger/ledger.did.d.ts +0 -117
- package/dist/declarations/ledger/ledger.factory.did.js +0 -115
|
@@ -1,6 +1,79 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
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 get_balance_request = 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 get_current_fee_percentiles_request = IDL.Record({
|
|
15
|
+
network: bitcoin_network
|
|
16
|
+
});
|
|
17
|
+
const millisatoshi_per_byte = IDL.Nat64;
|
|
18
|
+
const get_utxos_request = IDL.Record({
|
|
19
|
+
network: bitcoin_network,
|
|
20
|
+
filter: IDL.Opt(
|
|
21
|
+
IDL.Variant({
|
|
22
|
+
page: IDL.Vec(IDL.Nat8),
|
|
23
|
+
min_confirmations: IDL.Nat32
|
|
24
|
+
})
|
|
25
|
+
),
|
|
26
|
+
address: bitcoin_address
|
|
27
|
+
});
|
|
28
|
+
const block_hash = IDL.Vec(IDL.Nat8);
|
|
29
|
+
const outpoint = IDL.Record({
|
|
30
|
+
txid: IDL.Vec(IDL.Nat8),
|
|
31
|
+
vout: IDL.Nat32
|
|
32
|
+
});
|
|
33
|
+
const utxo = IDL.Record({
|
|
34
|
+
height: IDL.Nat32,
|
|
35
|
+
value: satoshi,
|
|
36
|
+
outpoint: outpoint
|
|
37
|
+
});
|
|
38
|
+
const get_utxos_response = IDL.Record({
|
|
39
|
+
next_page: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
40
|
+
tip_height: IDL.Nat32,
|
|
41
|
+
tip_block_hash: block_hash,
|
|
42
|
+
utxos: IDL.Vec(utxo)
|
|
43
|
+
});
|
|
44
|
+
const send_transaction_request = IDL.Record({
|
|
45
|
+
transaction: IDL.Vec(IDL.Nat8),
|
|
46
|
+
network: bitcoin_network
|
|
47
|
+
});
|
|
3
48
|
const canister_id = IDL.Principal;
|
|
49
|
+
const change_origin = IDL.Variant({
|
|
50
|
+
from_user: IDL.Record({user_id: IDL.Principal}),
|
|
51
|
+
from_canister: IDL.Record({
|
|
52
|
+
canister_version: IDL.Opt(IDL.Nat64),
|
|
53
|
+
canister_id: IDL.Principal
|
|
54
|
+
})
|
|
55
|
+
});
|
|
56
|
+
const change_details = IDL.Variant({
|
|
57
|
+
creation: IDL.Record({controllers: IDL.Vec(IDL.Principal)}),
|
|
58
|
+
code_deployment: IDL.Record({
|
|
59
|
+
mode: IDL.Variant({
|
|
60
|
+
reinstall: IDL.Null,
|
|
61
|
+
upgrade: IDL.Null,
|
|
62
|
+
install: IDL.Null
|
|
63
|
+
}),
|
|
64
|
+
module_hash: IDL.Vec(IDL.Nat8)
|
|
65
|
+
}),
|
|
66
|
+
controllers_change: IDL.Record({
|
|
67
|
+
controllers: IDL.Vec(IDL.Principal)
|
|
68
|
+
}),
|
|
69
|
+
code_uninstall: IDL.Null
|
|
70
|
+
});
|
|
71
|
+
const change = IDL.Record({
|
|
72
|
+
timestamp_nanos: IDL.Nat64,
|
|
73
|
+
canister_version: IDL.Nat64,
|
|
74
|
+
origin: change_origin,
|
|
75
|
+
details: change_details
|
|
76
|
+
});
|
|
4
77
|
const definite_canister_settings = IDL.Record({
|
|
5
78
|
freezing_threshold: IDL.Nat,
|
|
6
79
|
controllers: IDL.Vec(IDL.Principal),
|
|
@@ -13,24 +86,40 @@ export const idlFactory = ({IDL}) => {
|
|
|
13
86
|
memory_allocation: IDL.Opt(IDL.Nat),
|
|
14
87
|
compute_allocation: IDL.Opt(IDL.Nat)
|
|
15
88
|
});
|
|
89
|
+
const ecdsa_curve = IDL.Variant({secp256k1: IDL.Null});
|
|
16
90
|
const http_header = IDL.Record({value: IDL.Text, name: IDL.Text});
|
|
17
91
|
const http_response = IDL.Record({
|
|
18
92
|
status: IDL.Nat,
|
|
19
93
|
body: IDL.Vec(IDL.Nat8),
|
|
20
94
|
headers: IDL.Vec(http_header)
|
|
21
95
|
});
|
|
22
|
-
const http_request_error = IDL.Variant({
|
|
23
|
-
dns_error: IDL.Null,
|
|
24
|
-
no_consensus: IDL.Null,
|
|
25
|
-
transform_error: IDL.Null,
|
|
26
|
-
unreachable: IDL.Null,
|
|
27
|
-
bad_tls: IDL.Null,
|
|
28
|
-
conn_timeout: IDL.Null,
|
|
29
|
-
invalid_url: IDL.Null,
|
|
30
|
-
timeout: IDL.Null
|
|
31
|
-
});
|
|
32
96
|
const wasm_module = IDL.Vec(IDL.Nat8);
|
|
33
97
|
return IDL.Service({
|
|
98
|
+
bitcoin_get_balance: IDL.Func([get_balance_request], [satoshi], []),
|
|
99
|
+
bitcoin_get_current_fee_percentiles: IDL.Func(
|
|
100
|
+
[get_current_fee_percentiles_request],
|
|
101
|
+
[IDL.Vec(millisatoshi_per_byte)],
|
|
102
|
+
[]
|
|
103
|
+
),
|
|
104
|
+
bitcoin_get_utxos: IDL.Func([get_utxos_request], [get_utxos_response], []),
|
|
105
|
+
bitcoin_send_transaction: IDL.Func([send_transaction_request], [], []),
|
|
106
|
+
canister_info: IDL.Func(
|
|
107
|
+
[
|
|
108
|
+
IDL.Record({
|
|
109
|
+
canister_id: canister_id,
|
|
110
|
+
num_requested_changes: IDL.Opt(IDL.Nat64)
|
|
111
|
+
})
|
|
112
|
+
],
|
|
113
|
+
[
|
|
114
|
+
IDL.Record({
|
|
115
|
+
controllers: IDL.Vec(IDL.Principal),
|
|
116
|
+
module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
117
|
+
recent_changes: IDL.Vec(change),
|
|
118
|
+
total_num_changes: IDL.Nat64
|
|
119
|
+
})
|
|
120
|
+
],
|
|
121
|
+
[]
|
|
122
|
+
),
|
|
34
123
|
canister_status: IDL.Func(
|
|
35
124
|
[IDL.Record({canister_id: canister_id})],
|
|
36
125
|
[
|
|
@@ -43,38 +132,70 @@ export const idlFactory = ({IDL}) => {
|
|
|
43
132
|
memory_size: IDL.Nat,
|
|
44
133
|
cycles: IDL.Nat,
|
|
45
134
|
settings: definite_canister_settings,
|
|
135
|
+
idle_cycles_burned_per_day: IDL.Nat,
|
|
46
136
|
module_hash: IDL.Opt(IDL.Vec(IDL.Nat8))
|
|
47
137
|
})
|
|
48
138
|
],
|
|
49
139
|
[]
|
|
50
140
|
),
|
|
51
141
|
create_canister: IDL.Func(
|
|
52
|
-
[
|
|
142
|
+
[
|
|
143
|
+
IDL.Record({
|
|
144
|
+
settings: IDL.Opt(canister_settings),
|
|
145
|
+
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
146
|
+
})
|
|
147
|
+
],
|
|
53
148
|
[IDL.Record({canister_id: canister_id})],
|
|
54
149
|
[]
|
|
55
150
|
),
|
|
56
151
|
delete_canister: IDL.Func([IDL.Record({canister_id: canister_id})], [], []),
|
|
57
152
|
deposit_cycles: IDL.Func([IDL.Record({canister_id: canister_id})], [], []),
|
|
153
|
+
ecdsa_public_key: IDL.Func(
|
|
154
|
+
[
|
|
155
|
+
IDL.Record({
|
|
156
|
+
key_id: IDL.Record({name: IDL.Text, curve: ecdsa_curve}),
|
|
157
|
+
canister_id: IDL.Opt(canister_id),
|
|
158
|
+
derivation_path: IDL.Vec(IDL.Vec(IDL.Nat8))
|
|
159
|
+
})
|
|
160
|
+
],
|
|
161
|
+
[
|
|
162
|
+
IDL.Record({
|
|
163
|
+
public_key: IDL.Vec(IDL.Nat8),
|
|
164
|
+
chain_code: IDL.Vec(IDL.Nat8)
|
|
165
|
+
})
|
|
166
|
+
],
|
|
167
|
+
[]
|
|
168
|
+
),
|
|
58
169
|
http_request: IDL.Func(
|
|
59
170
|
[
|
|
60
171
|
IDL.Record({
|
|
61
172
|
url: IDL.Text,
|
|
62
|
-
method: IDL.Variant({
|
|
173
|
+
method: IDL.Variant({
|
|
174
|
+
get: IDL.Null,
|
|
175
|
+
head: IDL.Null,
|
|
176
|
+
post: IDL.Null
|
|
177
|
+
}),
|
|
178
|
+
max_response_bytes: IDL.Opt(IDL.Nat64),
|
|
63
179
|
body: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
64
180
|
transform: IDL.Opt(
|
|
65
|
-
IDL.
|
|
66
|
-
function: IDL.Func(
|
|
181
|
+
IDL.Record({
|
|
182
|
+
function: IDL.Func(
|
|
183
|
+
[
|
|
184
|
+
IDL.Record({
|
|
185
|
+
context: IDL.Vec(IDL.Nat8),
|
|
186
|
+
response: http_response
|
|
187
|
+
})
|
|
188
|
+
],
|
|
189
|
+
[http_response],
|
|
190
|
+
['query']
|
|
191
|
+
),
|
|
192
|
+
context: IDL.Vec(IDL.Nat8)
|
|
67
193
|
})
|
|
68
194
|
),
|
|
69
195
|
headers: IDL.Vec(http_header)
|
|
70
196
|
})
|
|
71
197
|
],
|
|
72
|
-
[
|
|
73
|
-
IDL.Variant({
|
|
74
|
-
Ok: http_response,
|
|
75
|
-
Err: IDL.Opt(http_request_error)
|
|
76
|
-
})
|
|
77
|
-
],
|
|
198
|
+
[http_response],
|
|
78
199
|
[]
|
|
79
200
|
),
|
|
80
201
|
install_code: IDL.Func(
|
|
@@ -87,7 +208,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
87
208
|
upgrade: IDL.Null,
|
|
88
209
|
install: IDL.Null
|
|
89
210
|
}),
|
|
90
|
-
canister_id: canister_id
|
|
211
|
+
canister_id: canister_id,
|
|
212
|
+
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
91
213
|
})
|
|
92
214
|
],
|
|
93
215
|
[],
|
|
@@ -97,6 +219,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
97
219
|
[
|
|
98
220
|
IDL.Record({
|
|
99
221
|
settings: IDL.Opt(canister_settings),
|
|
222
|
+
specified_id: IDL.Opt(canister_id),
|
|
100
223
|
amount: IDL.Opt(IDL.Nat)
|
|
101
224
|
})
|
|
102
225
|
],
|
|
@@ -109,14 +232,35 @@ export const idlFactory = ({IDL}) => {
|
|
|
109
232
|
[]
|
|
110
233
|
),
|
|
111
234
|
raw_rand: IDL.Func([], [IDL.Vec(IDL.Nat8)], []),
|
|
235
|
+
sign_with_ecdsa: IDL.Func(
|
|
236
|
+
[
|
|
237
|
+
IDL.Record({
|
|
238
|
+
key_id: IDL.Record({name: IDL.Text, curve: ecdsa_curve}),
|
|
239
|
+
derivation_path: IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
240
|
+
message_hash: IDL.Vec(IDL.Nat8)
|
|
241
|
+
})
|
|
242
|
+
],
|
|
243
|
+
[IDL.Record({signature: IDL.Vec(IDL.Nat8)})],
|
|
244
|
+
[]
|
|
245
|
+
),
|
|
112
246
|
start_canister: IDL.Func([IDL.Record({canister_id: canister_id})], [], []),
|
|
113
247
|
stop_canister: IDL.Func([IDL.Record({canister_id: canister_id})], [], []),
|
|
114
|
-
uninstall_code: IDL.Func(
|
|
248
|
+
uninstall_code: IDL.Func(
|
|
249
|
+
[
|
|
250
|
+
IDL.Record({
|
|
251
|
+
canister_id: canister_id,
|
|
252
|
+
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
253
|
+
})
|
|
254
|
+
],
|
|
255
|
+
[],
|
|
256
|
+
[]
|
|
257
|
+
),
|
|
115
258
|
update_settings: IDL.Func(
|
|
116
259
|
[
|
|
117
260
|
IDL.Record({
|
|
118
261
|
canister_id: IDL.Principal,
|
|
119
|
-
settings: canister_settings
|
|
262
|
+
settings: canister_settings,
|
|
263
|
+
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
120
264
|
})
|
|
121
265
|
],
|
|
122
266
|
[],
|
|
@@ -124,7 +268,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
124
268
|
)
|
|
125
269
|
});
|
|
126
270
|
};
|
|
127
|
-
|
|
128
271
|
// @ts-ignore
|
|
129
272
|
export const init = ({IDL}) => {
|
|
130
273
|
return [];
|
|
@@ -4,7 +4,13 @@ import {Actor, HttpAgent} from '@dfinity/agent';
|
|
|
4
4
|
import {idlFactory} from './mission_control.did.js';
|
|
5
5
|
export {idlFactory} from './mission_control.did.js';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
/* CANISTER_ID is replaced by webpack based on node environment
|
|
8
|
+
* Note: canister environment variable will be standardized as
|
|
9
|
+
* process.env.CANISTER_ID_<CANISTER_NAME_UPPERCASE>
|
|
10
|
+
* beginning in dfx 0.15.0
|
|
11
|
+
*/
|
|
12
|
+
export const canisterId =
|
|
13
|
+
process.env.CANISTER_ID_MISSION_CONTROL || process.env.MISSION_CONTROL_CANISTER_ID;
|
|
8
14
|
|
|
9
15
|
export const createActor = (canisterId, options = {}) => {
|
|
10
16
|
const agent = options.agent || new HttpAgent({...options.agentOptions});
|
|
@@ -73,6 +73,7 @@ export interface _SERVICE {
|
|
|
73
73
|
remove_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
74
74
|
set_metadata: ActorMethod<[Array<[string, string]>], undefined>;
|
|
75
75
|
set_mission_control_controllers: ActorMethod<[Array<Principal>, SetController], undefined>;
|
|
76
|
+
set_satellite_metadata: ActorMethod<[Principal, Array<[string, string]>], Satellite>;
|
|
76
77
|
set_satellites_controllers: ActorMethod<
|
|
77
78
|
[Array<Principal>, Array<Principal>, SetController],
|
|
78
79
|
undefined
|
|
@@ -89,6 +89,11 @@ export const idlFactory = ({IDL}) => {
|
|
|
89
89
|
),
|
|
90
90
|
set_metadata: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
|
|
91
91
|
set_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal), SetController], [], []),
|
|
92
|
+
set_satellite_metadata: IDL.Func(
|
|
93
|
+
[IDL.Principal, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
94
|
+
[Satellite],
|
|
95
|
+
[]
|
|
96
|
+
),
|
|
92
97
|
set_satellites_controllers: IDL.Func(
|
|
93
98
|
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal), SetController],
|
|
94
99
|
[],
|
|
@@ -4,7 +4,13 @@ import {Actor, HttpAgent} from '@dfinity/agent';
|
|
|
4
4
|
import {idlFactory} from './observatory.did.js';
|
|
5
5
|
export {idlFactory} from './observatory.did.js';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
/* CANISTER_ID is replaced by webpack based on node environment
|
|
8
|
+
* Note: canister environment variable will be standardized as
|
|
9
|
+
* process.env.CANISTER_ID_<CANISTER_NAME_UPPERCASE>
|
|
10
|
+
* beginning in dfx 0.15.0
|
|
11
|
+
*/
|
|
12
|
+
export const canisterId =
|
|
13
|
+
process.env.CANISTER_ID_OBSERVATORY || process.env.OBSERVATORY_CANISTER_ID;
|
|
8
14
|
|
|
9
15
|
export const createActor = (canisterId, options = {}) => {
|
|
10
16
|
const agent = options.agent || new HttpAgent({...options.agentOptions});
|
|
@@ -4,7 +4,12 @@ import {Actor, HttpAgent} from '@dfinity/agent';
|
|
|
4
4
|
import {idlFactory} from './satellite.did.js';
|
|
5
5
|
export {idlFactory} from './satellite.did.js';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
/* CANISTER_ID is replaced by webpack based on node environment
|
|
8
|
+
* Note: canister environment variable will be standardized as
|
|
9
|
+
* process.env.CANISTER_ID_<CANISTER_NAME_UPPERCASE>
|
|
10
|
+
* beginning in dfx 0.15.0
|
|
11
|
+
*/
|
|
12
|
+
export const canisterId = process.env.CANISTER_ID_SATELLITE || process.env.SATELLITE_CANISTER_ID;
|
|
8
13
|
|
|
9
14
|
export const createActor = (canisterId, options = {}) => {
|
|
10
15
|
const agent = options.agent || new HttpAgent({...options.agentOptions});
|
|
@@ -22,6 +22,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
22
22
|
const DelDoc = IDL.Record({updated_at: IDL.Opt(IDL.Nat64)});
|
|
23
23
|
const RulesType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
|
|
24
24
|
const StorageConfig = IDL.Record({
|
|
25
|
+
rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
25
26
|
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))))
|
|
26
27
|
});
|
|
27
28
|
const Config = IDL.Record({storage: StorageConfig});
|
|
@@ -22,6 +22,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
22
22
|
const DelDoc = IDL.Record({updated_at: IDL.Opt(IDL.Nat64)});
|
|
23
23
|
const RulesType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
|
|
24
24
|
const StorageConfig = IDL.Record({
|
|
25
|
+
rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
25
26
|
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))))
|
|
26
27
|
});
|
|
27
28
|
const Config = IDL.Record({storage: StorageConfig});
|