@junobuild/admin 0.0.54-next-2024-08-09 → 0.0.54-next-2024-08-24
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/dist/browser/index.js +7 -7
- package/dist/browser/index.js.map +3 -3
- package/dist/declarations/ic/ic.did.d.ts +48 -5
- package/dist/declarations/ic/ic.factory.did.js +53 -14
- package/dist/declarations/ic/ic.factory.did.mjs +53 -14
- package/dist/declarations/orbiter/orbiter.did.d.ts +60 -2
- package/dist/declarations/orbiter/orbiter.factory.did.js +71 -2
- package/dist/declarations/orbiter/orbiter.factory.did.mjs +71 -2
- package/dist/node/index.mjs +7 -7
- package/dist/node/index.mjs.map +3 -3
- package/package.json +1 -1
|
@@ -58,6 +58,19 @@ export interface canister_info_result {
|
|
|
58
58
|
recent_changes: Array<change>;
|
|
59
59
|
total_num_changes: bigint;
|
|
60
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};
|
|
61
74
|
export interface canister_log_record {
|
|
62
75
|
idx: bigint;
|
|
63
76
|
timestamp_nanos: bigint;
|
|
@@ -68,6 +81,7 @@ export interface canister_settings {
|
|
|
68
81
|
controllers: [] | [Array<Principal>];
|
|
69
82
|
reserved_cycles_limit: [] | [bigint];
|
|
70
83
|
log_visibility: [] | [log_visibility];
|
|
84
|
+
wasm_memory_limit: [] | [bigint];
|
|
71
85
|
memory_allocation: [] | [bigint];
|
|
72
86
|
compute_allocation: [] | [bigint];
|
|
73
87
|
}
|
|
@@ -79,6 +93,12 @@ export interface canister_status_result {
|
|
|
79
93
|
memory_size: bigint;
|
|
80
94
|
cycles: bigint;
|
|
81
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
|
+
};
|
|
82
102
|
idle_cycles_burned_per_day: bigint;
|
|
83
103
|
module_hash: [] | [Uint8Array | number[]];
|
|
84
104
|
reserved_cycles: bigint;
|
|
@@ -109,7 +129,9 @@ export type change_origin =
|
|
|
109
129
|
canister_id: Principal;
|
|
110
130
|
};
|
|
111
131
|
};
|
|
112
|
-
export
|
|
132
|
+
export interface chunk_hash {
|
|
133
|
+
hash: Uint8Array | number[];
|
|
134
|
+
}
|
|
113
135
|
export interface clear_chunk_store_args {
|
|
114
136
|
canister_id: canister_id;
|
|
115
137
|
}
|
|
@@ -125,6 +147,7 @@ export interface definite_canister_settings {
|
|
|
125
147
|
controllers: Array<Principal>;
|
|
126
148
|
reserved_cycles_limit: bigint;
|
|
127
149
|
log_visibility: log_visibility;
|
|
150
|
+
wasm_memory_limit: bigint;
|
|
128
151
|
memory_allocation: bigint;
|
|
129
152
|
compute_allocation: bigint;
|
|
130
153
|
}
|
|
@@ -170,16 +193,16 @@ export interface http_request_result {
|
|
|
170
193
|
export interface install_chunked_code_args {
|
|
171
194
|
arg: Uint8Array | number[];
|
|
172
195
|
wasm_module_hash: Uint8Array | number[];
|
|
173
|
-
mode:
|
|
196
|
+
mode: canister_install_mode;
|
|
174
197
|
chunk_hashes_list: Array<chunk_hash>;
|
|
175
198
|
target_canister: canister_id;
|
|
199
|
+
store_canister: [] | [canister_id];
|
|
176
200
|
sender_canister_version: [] | [bigint];
|
|
177
|
-
storage_canister: [] | [canister_id];
|
|
178
201
|
}
|
|
179
202
|
export interface install_code_args {
|
|
180
203
|
arg: Uint8Array | number[];
|
|
181
204
|
wasm_module: wasm_module;
|
|
182
|
-
mode:
|
|
205
|
+
mode: canister_install_mode;
|
|
183
206
|
canister_id: canister_id;
|
|
184
207
|
sender_canister_version: [] | [bigint];
|
|
185
208
|
}
|
|
@@ -188,7 +211,7 @@ export type millisatoshi_per_byte = bigint;
|
|
|
188
211
|
export interface node_metrics {
|
|
189
212
|
num_block_failures_total: bigint;
|
|
190
213
|
node_id: Principal;
|
|
191
|
-
|
|
214
|
+
num_blocks_proposed_total: bigint;
|
|
192
215
|
}
|
|
193
216
|
export interface node_metrics_history_args {
|
|
194
217
|
start_at_timestamp_nanos: bigint;
|
|
@@ -217,6 +240,16 @@ export interface provisional_top_up_canister_args {
|
|
|
217
240
|
}
|
|
218
241
|
export type raw_rand_result = Uint8Array | number[];
|
|
219
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
|
+
}
|
|
220
253
|
export interface sign_with_ecdsa_args {
|
|
221
254
|
key_id: {name: string; curve: ecdsa_curve};
|
|
222
255
|
derivation_path: Array<Uint8Array | number[]>;
|
|
@@ -225,6 +258,14 @@ export interface sign_with_ecdsa_args {
|
|
|
225
258
|
export interface sign_with_ecdsa_result {
|
|
226
259
|
signature: Uint8Array | number[];
|
|
227
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
|
+
}
|
|
228
269
|
export interface start_canister_args {
|
|
229
270
|
canister_id: canister_id;
|
|
230
271
|
}
|
|
@@ -289,7 +330,9 @@ export interface _SERVICE {
|
|
|
289
330
|
>;
|
|
290
331
|
provisional_top_up_canister: ActorMethod<[provisional_top_up_canister_args], undefined>;
|
|
291
332
|
raw_rand: ActorMethod<[], raw_rand_result>;
|
|
333
|
+
schnorr_public_key: ActorMethod<[schnorr_public_key_args], schnorr_public_key_result>;
|
|
292
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>;
|
|
293
336
|
start_canister: ActorMethod<[start_canister_args], undefined>;
|
|
294
337
|
stop_canister: ActorMethod<[stop_canister_args], undefined>;
|
|
295
338
|
stored_chunks: ActorMethod<[stored_chunks_args], stored_chunks_result>;
|
|
@@ -118,6 +118,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
118
118
|
controllers: IDL.Vec(IDL.Principal),
|
|
119
119
|
reserved_cycles_limit: IDL.Nat,
|
|
120
120
|
log_visibility: log_visibility,
|
|
121
|
+
wasm_memory_limit: IDL.Nat,
|
|
121
122
|
memory_allocation: IDL.Nat,
|
|
122
123
|
compute_allocation: IDL.Nat
|
|
123
124
|
});
|
|
@@ -130,6 +131,12 @@ export const idlFactory = ({IDL}) => {
|
|
|
130
131
|
memory_size: IDL.Nat,
|
|
131
132
|
cycles: IDL.Nat,
|
|
132
133
|
settings: definite_canister_settings,
|
|
134
|
+
query_stats: IDL.Record({
|
|
135
|
+
response_payload_bytes_total: IDL.Nat,
|
|
136
|
+
num_instructions_total: IDL.Nat,
|
|
137
|
+
num_calls_total: IDL.Nat,
|
|
138
|
+
request_payload_bytes_total: IDL.Nat
|
|
139
|
+
}),
|
|
133
140
|
idle_cycles_burned_per_day: IDL.Nat,
|
|
134
141
|
module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
135
142
|
reserved_cycles: IDL.Nat
|
|
@@ -140,6 +147,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
140
147
|
controllers: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
141
148
|
reserved_cycles_limit: IDL.Opt(IDL.Nat),
|
|
142
149
|
log_visibility: IDL.Opt(log_visibility),
|
|
150
|
+
wasm_memory_limit: IDL.Opt(IDL.Nat),
|
|
143
151
|
memory_allocation: IDL.Opt(IDL.Nat),
|
|
144
152
|
compute_allocation: IDL.Opt(IDL.Nat)
|
|
145
153
|
});
|
|
@@ -201,29 +209,31 @@ export const idlFactory = ({IDL}) => {
|
|
|
201
209
|
),
|
|
202
210
|
headers: IDL.Vec(http_header)
|
|
203
211
|
});
|
|
204
|
-
const
|
|
212
|
+
const canister_install_mode = IDL.Variant({
|
|
213
|
+
reinstall: IDL.Null,
|
|
214
|
+
upgrade: IDL.Opt(
|
|
215
|
+
IDL.Record({
|
|
216
|
+
wasm_memory_persistence: IDL.Opt(IDL.Variant({keep: IDL.Null, replace: IDL.Null})),
|
|
217
|
+
skip_pre_upgrade: IDL.Opt(IDL.Bool)
|
|
218
|
+
})
|
|
219
|
+
),
|
|
220
|
+
install: IDL.Null
|
|
221
|
+
});
|
|
222
|
+
const chunk_hash = IDL.Record({hash: IDL.Vec(IDL.Nat8)});
|
|
205
223
|
const install_chunked_code_args = IDL.Record({
|
|
206
224
|
arg: IDL.Vec(IDL.Nat8),
|
|
207
225
|
wasm_module_hash: IDL.Vec(IDL.Nat8),
|
|
208
|
-
mode:
|
|
209
|
-
reinstall: IDL.Null,
|
|
210
|
-
upgrade: IDL.Opt(IDL.Record({skip_pre_upgrade: IDL.Opt(IDL.Bool)})),
|
|
211
|
-
install: IDL.Null
|
|
212
|
-
}),
|
|
226
|
+
mode: canister_install_mode,
|
|
213
227
|
chunk_hashes_list: IDL.Vec(chunk_hash),
|
|
214
228
|
target_canister: canister_id,
|
|
215
|
-
|
|
216
|
-
|
|
229
|
+
store_canister: IDL.Opt(canister_id),
|
|
230
|
+
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
217
231
|
});
|
|
218
232
|
const wasm_module = IDL.Vec(IDL.Nat8);
|
|
219
233
|
const install_code_args = IDL.Record({
|
|
220
234
|
arg: IDL.Vec(IDL.Nat8),
|
|
221
235
|
wasm_module: wasm_module,
|
|
222
|
-
mode:
|
|
223
|
-
reinstall: IDL.Null,
|
|
224
|
-
upgrade: IDL.Opt(IDL.Record({skip_pre_upgrade: IDL.Opt(IDL.Bool)})),
|
|
225
|
-
install: IDL.Null
|
|
226
|
-
}),
|
|
236
|
+
mode: canister_install_mode,
|
|
227
237
|
canister_id: canister_id,
|
|
228
238
|
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
229
239
|
});
|
|
@@ -234,7 +244,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
234
244
|
const node_metrics = IDL.Record({
|
|
235
245
|
num_block_failures_total: IDL.Nat64,
|
|
236
246
|
node_id: IDL.Principal,
|
|
237
|
-
|
|
247
|
+
num_blocks_proposed_total: IDL.Nat64
|
|
238
248
|
});
|
|
239
249
|
const node_metrics_history_result = IDL.Vec(
|
|
240
250
|
IDL.Record({
|
|
@@ -256,6 +266,22 @@ export const idlFactory = ({IDL}) => {
|
|
|
256
266
|
amount: IDL.Nat
|
|
257
267
|
});
|
|
258
268
|
const raw_rand_result = IDL.Vec(IDL.Nat8);
|
|
269
|
+
const schnorr_algorithm = IDL.Variant({
|
|
270
|
+
ed25519: IDL.Null,
|
|
271
|
+
bip340secp256k1: IDL.Null
|
|
272
|
+
});
|
|
273
|
+
const schnorr_public_key_args = IDL.Record({
|
|
274
|
+
key_id: IDL.Record({
|
|
275
|
+
algorithm: schnorr_algorithm,
|
|
276
|
+
name: IDL.Text
|
|
277
|
+
}),
|
|
278
|
+
canister_id: IDL.Opt(canister_id),
|
|
279
|
+
derivation_path: IDL.Vec(IDL.Vec(IDL.Nat8))
|
|
280
|
+
});
|
|
281
|
+
const schnorr_public_key_result = IDL.Record({
|
|
282
|
+
public_key: IDL.Vec(IDL.Nat8),
|
|
283
|
+
chain_code: IDL.Vec(IDL.Nat8)
|
|
284
|
+
});
|
|
259
285
|
const sign_with_ecdsa_args = IDL.Record({
|
|
260
286
|
key_id: IDL.Record({name: IDL.Text, curve: ecdsa_curve}),
|
|
261
287
|
derivation_path: IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
@@ -264,6 +290,17 @@ export const idlFactory = ({IDL}) => {
|
|
|
264
290
|
const sign_with_ecdsa_result = IDL.Record({
|
|
265
291
|
signature: IDL.Vec(IDL.Nat8)
|
|
266
292
|
});
|
|
293
|
+
const sign_with_schnorr_args = IDL.Record({
|
|
294
|
+
key_id: IDL.Record({
|
|
295
|
+
algorithm: schnorr_algorithm,
|
|
296
|
+
name: IDL.Text
|
|
297
|
+
}),
|
|
298
|
+
derivation_path: IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
299
|
+
message: IDL.Vec(IDL.Nat8)
|
|
300
|
+
});
|
|
301
|
+
const sign_with_schnorr_result = IDL.Record({
|
|
302
|
+
signature: IDL.Vec(IDL.Nat8)
|
|
303
|
+
});
|
|
267
304
|
const start_canister_args = IDL.Record({canister_id: canister_id});
|
|
268
305
|
const stop_canister_args = IDL.Record({canister_id: canister_id});
|
|
269
306
|
const stored_chunks_args = IDL.Record({canister_id: canister_id});
|
|
@@ -324,7 +361,9 @@ export const idlFactory = ({IDL}) => {
|
|
|
324
361
|
),
|
|
325
362
|
provisional_top_up_canister: IDL.Func([provisional_top_up_canister_args], [], []),
|
|
326
363
|
raw_rand: IDL.Func([], [raw_rand_result], []),
|
|
364
|
+
schnorr_public_key: IDL.Func([schnorr_public_key_args], [schnorr_public_key_result], []),
|
|
327
365
|
sign_with_ecdsa: IDL.Func([sign_with_ecdsa_args], [sign_with_ecdsa_result], []),
|
|
366
|
+
sign_with_schnorr: IDL.Func([sign_with_schnorr_args], [sign_with_schnorr_result], []),
|
|
328
367
|
start_canister: IDL.Func([start_canister_args], [], []),
|
|
329
368
|
stop_canister: IDL.Func([stop_canister_args], [], []),
|
|
330
369
|
stored_chunks: IDL.Func([stored_chunks_args], [stored_chunks_result], []),
|
|
@@ -118,6 +118,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
118
118
|
controllers: IDL.Vec(IDL.Principal),
|
|
119
119
|
reserved_cycles_limit: IDL.Nat,
|
|
120
120
|
log_visibility: log_visibility,
|
|
121
|
+
wasm_memory_limit: IDL.Nat,
|
|
121
122
|
memory_allocation: IDL.Nat,
|
|
122
123
|
compute_allocation: IDL.Nat
|
|
123
124
|
});
|
|
@@ -130,6 +131,12 @@ export const idlFactory = ({IDL}) => {
|
|
|
130
131
|
memory_size: IDL.Nat,
|
|
131
132
|
cycles: IDL.Nat,
|
|
132
133
|
settings: definite_canister_settings,
|
|
134
|
+
query_stats: IDL.Record({
|
|
135
|
+
response_payload_bytes_total: IDL.Nat,
|
|
136
|
+
num_instructions_total: IDL.Nat,
|
|
137
|
+
num_calls_total: IDL.Nat,
|
|
138
|
+
request_payload_bytes_total: IDL.Nat
|
|
139
|
+
}),
|
|
133
140
|
idle_cycles_burned_per_day: IDL.Nat,
|
|
134
141
|
module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
135
142
|
reserved_cycles: IDL.Nat
|
|
@@ -140,6 +147,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
140
147
|
controllers: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
141
148
|
reserved_cycles_limit: IDL.Opt(IDL.Nat),
|
|
142
149
|
log_visibility: IDL.Opt(log_visibility),
|
|
150
|
+
wasm_memory_limit: IDL.Opt(IDL.Nat),
|
|
143
151
|
memory_allocation: IDL.Opt(IDL.Nat),
|
|
144
152
|
compute_allocation: IDL.Opt(IDL.Nat)
|
|
145
153
|
});
|
|
@@ -201,29 +209,31 @@ export const idlFactory = ({IDL}) => {
|
|
|
201
209
|
),
|
|
202
210
|
headers: IDL.Vec(http_header)
|
|
203
211
|
});
|
|
204
|
-
const
|
|
212
|
+
const canister_install_mode = IDL.Variant({
|
|
213
|
+
reinstall: IDL.Null,
|
|
214
|
+
upgrade: IDL.Opt(
|
|
215
|
+
IDL.Record({
|
|
216
|
+
wasm_memory_persistence: IDL.Opt(IDL.Variant({keep: IDL.Null, replace: IDL.Null})),
|
|
217
|
+
skip_pre_upgrade: IDL.Opt(IDL.Bool)
|
|
218
|
+
})
|
|
219
|
+
),
|
|
220
|
+
install: IDL.Null
|
|
221
|
+
});
|
|
222
|
+
const chunk_hash = IDL.Record({hash: IDL.Vec(IDL.Nat8)});
|
|
205
223
|
const install_chunked_code_args = IDL.Record({
|
|
206
224
|
arg: IDL.Vec(IDL.Nat8),
|
|
207
225
|
wasm_module_hash: IDL.Vec(IDL.Nat8),
|
|
208
|
-
mode:
|
|
209
|
-
reinstall: IDL.Null,
|
|
210
|
-
upgrade: IDL.Opt(IDL.Record({skip_pre_upgrade: IDL.Opt(IDL.Bool)})),
|
|
211
|
-
install: IDL.Null
|
|
212
|
-
}),
|
|
226
|
+
mode: canister_install_mode,
|
|
213
227
|
chunk_hashes_list: IDL.Vec(chunk_hash),
|
|
214
228
|
target_canister: canister_id,
|
|
215
|
-
|
|
216
|
-
|
|
229
|
+
store_canister: IDL.Opt(canister_id),
|
|
230
|
+
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
217
231
|
});
|
|
218
232
|
const wasm_module = IDL.Vec(IDL.Nat8);
|
|
219
233
|
const install_code_args = IDL.Record({
|
|
220
234
|
arg: IDL.Vec(IDL.Nat8),
|
|
221
235
|
wasm_module: wasm_module,
|
|
222
|
-
mode:
|
|
223
|
-
reinstall: IDL.Null,
|
|
224
|
-
upgrade: IDL.Opt(IDL.Record({skip_pre_upgrade: IDL.Opt(IDL.Bool)})),
|
|
225
|
-
install: IDL.Null
|
|
226
|
-
}),
|
|
236
|
+
mode: canister_install_mode,
|
|
227
237
|
canister_id: canister_id,
|
|
228
238
|
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
229
239
|
});
|
|
@@ -234,7 +244,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
234
244
|
const node_metrics = IDL.Record({
|
|
235
245
|
num_block_failures_total: IDL.Nat64,
|
|
236
246
|
node_id: IDL.Principal,
|
|
237
|
-
|
|
247
|
+
num_blocks_proposed_total: IDL.Nat64
|
|
238
248
|
});
|
|
239
249
|
const node_metrics_history_result = IDL.Vec(
|
|
240
250
|
IDL.Record({
|
|
@@ -256,6 +266,22 @@ export const idlFactory = ({IDL}) => {
|
|
|
256
266
|
amount: IDL.Nat
|
|
257
267
|
});
|
|
258
268
|
const raw_rand_result = IDL.Vec(IDL.Nat8);
|
|
269
|
+
const schnorr_algorithm = IDL.Variant({
|
|
270
|
+
ed25519: IDL.Null,
|
|
271
|
+
bip340secp256k1: IDL.Null
|
|
272
|
+
});
|
|
273
|
+
const schnorr_public_key_args = IDL.Record({
|
|
274
|
+
key_id: IDL.Record({
|
|
275
|
+
algorithm: schnorr_algorithm,
|
|
276
|
+
name: IDL.Text
|
|
277
|
+
}),
|
|
278
|
+
canister_id: IDL.Opt(canister_id),
|
|
279
|
+
derivation_path: IDL.Vec(IDL.Vec(IDL.Nat8))
|
|
280
|
+
});
|
|
281
|
+
const schnorr_public_key_result = IDL.Record({
|
|
282
|
+
public_key: IDL.Vec(IDL.Nat8),
|
|
283
|
+
chain_code: IDL.Vec(IDL.Nat8)
|
|
284
|
+
});
|
|
259
285
|
const sign_with_ecdsa_args = IDL.Record({
|
|
260
286
|
key_id: IDL.Record({name: IDL.Text, curve: ecdsa_curve}),
|
|
261
287
|
derivation_path: IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
@@ -264,6 +290,17 @@ export const idlFactory = ({IDL}) => {
|
|
|
264
290
|
const sign_with_ecdsa_result = IDL.Record({
|
|
265
291
|
signature: IDL.Vec(IDL.Nat8)
|
|
266
292
|
});
|
|
293
|
+
const sign_with_schnorr_args = IDL.Record({
|
|
294
|
+
key_id: IDL.Record({
|
|
295
|
+
algorithm: schnorr_algorithm,
|
|
296
|
+
name: IDL.Text
|
|
297
|
+
}),
|
|
298
|
+
derivation_path: IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
299
|
+
message: IDL.Vec(IDL.Nat8)
|
|
300
|
+
});
|
|
301
|
+
const sign_with_schnorr_result = IDL.Record({
|
|
302
|
+
signature: IDL.Vec(IDL.Nat8)
|
|
303
|
+
});
|
|
267
304
|
const start_canister_args = IDL.Record({canister_id: canister_id});
|
|
268
305
|
const stop_canister_args = IDL.Record({canister_id: canister_id});
|
|
269
306
|
const stored_chunks_args = IDL.Record({canister_id: canister_id});
|
|
@@ -324,7 +361,9 @@ export const idlFactory = ({IDL}) => {
|
|
|
324
361
|
),
|
|
325
362
|
provisional_top_up_canister: IDL.Func([provisional_top_up_canister_args], [], []),
|
|
326
363
|
raw_rand: IDL.Func([], [raw_rand_result], []),
|
|
364
|
+
schnorr_public_key: IDL.Func([schnorr_public_key_args], [schnorr_public_key_result], []),
|
|
327
365
|
sign_with_ecdsa: IDL.Func([sign_with_ecdsa_args], [sign_with_ecdsa_result], []),
|
|
366
|
+
sign_with_schnorr: IDL.Func([sign_with_schnorr_args], [sign_with_schnorr_result], []),
|
|
328
367
|
start_canister: IDL.Func([start_canister_args], [], []),
|
|
329
368
|
stop_canister: IDL.Func([stop_canister_args], [], []),
|
|
330
369
|
stored_chunks: IDL.Func([stored_chunks_args], [stored_chunks_result], []),
|
|
@@ -37,6 +37,17 @@ export interface AnalyticsTop10PageViews {
|
|
|
37
37
|
export interface AnalyticsTrackEvents {
|
|
38
38
|
total: Array<[string, number]>;
|
|
39
39
|
}
|
|
40
|
+
export interface AnalyticsWebVitalsPageMetrics {
|
|
41
|
+
cls: [] | [number];
|
|
42
|
+
fcp: [] | [number];
|
|
43
|
+
inp: [] | [number];
|
|
44
|
+
lcp: [] | [number];
|
|
45
|
+
ttfb: [] | [number];
|
|
46
|
+
}
|
|
47
|
+
export interface AnalyticsWebVitalsPerformanceMetrics {
|
|
48
|
+
overall: AnalyticsWebVitalsPageMetrics;
|
|
49
|
+
pages: Array<[string, AnalyticsWebVitalsPageMetrics]>;
|
|
50
|
+
}
|
|
40
51
|
export interface CalendarDate {
|
|
41
52
|
day: number;
|
|
42
53
|
month: number;
|
|
@@ -69,6 +80,13 @@ export interface MemorySize {
|
|
|
69
80
|
stable: bigint;
|
|
70
81
|
heap: bigint;
|
|
71
82
|
}
|
|
83
|
+
export type NavigationType =
|
|
84
|
+
| {Navigate: null}
|
|
85
|
+
| {Restore: null}
|
|
86
|
+
| {Reload: null}
|
|
87
|
+
| {BackForward: null}
|
|
88
|
+
| {BackForwardCache: null}
|
|
89
|
+
| {Prerender: null};
|
|
72
90
|
export interface OrbiterSatelliteConfig {
|
|
73
91
|
updated_at: bigint;
|
|
74
92
|
created_at: bigint;
|
|
@@ -92,9 +110,27 @@ export interface PageViewDevice {
|
|
|
92
110
|
inner_height: number;
|
|
93
111
|
inner_width: number;
|
|
94
112
|
}
|
|
113
|
+
export type PerformanceData = {WebVitalsMetric: WebVitalsMetric};
|
|
114
|
+
export interface PerformanceMetric {
|
|
115
|
+
updated_at: bigint;
|
|
116
|
+
session_id: string;
|
|
117
|
+
data: PerformanceData;
|
|
118
|
+
href: string;
|
|
119
|
+
metric_name: PerformanceMetricName;
|
|
120
|
+
created_at: bigint;
|
|
121
|
+
satellite_id: Principal;
|
|
122
|
+
version: [] | [bigint];
|
|
123
|
+
}
|
|
124
|
+
export type PerformanceMetricName =
|
|
125
|
+
| {CLS: null}
|
|
126
|
+
| {FCP: null}
|
|
127
|
+
| {INP: null}
|
|
128
|
+
| {LCP: null}
|
|
129
|
+
| {TTFB: null};
|
|
95
130
|
export type Result = {Ok: PageView} | {Err: string};
|
|
96
131
|
export type Result_1 = {Ok: null} | {Err: Array<[AnalyticKey, string]>};
|
|
97
|
-
export type Result_2 = {Ok:
|
|
132
|
+
export type Result_2 = {Ok: PerformanceMetric} | {Err: string};
|
|
133
|
+
export type Result_3 = {Ok: TrackEvent} | {Err: string};
|
|
98
134
|
export interface SetController {
|
|
99
135
|
metadata: Array<[string, string]>;
|
|
100
136
|
scope: ControllerScope;
|
|
@@ -116,6 +152,15 @@ export interface SetPageView {
|
|
|
116
152
|
version: [] | [bigint];
|
|
117
153
|
user_agent: [] | [string];
|
|
118
154
|
}
|
|
155
|
+
export interface SetPerformanceMetric {
|
|
156
|
+
session_id: string;
|
|
157
|
+
data: PerformanceData;
|
|
158
|
+
href: string;
|
|
159
|
+
metric_name: PerformanceMetricName;
|
|
160
|
+
satellite_id: Principal;
|
|
161
|
+
version: [] | [bigint];
|
|
162
|
+
user_agent: [] | [string];
|
|
163
|
+
}
|
|
119
164
|
export interface SetSatelliteConfig {
|
|
120
165
|
version: [] | [bigint];
|
|
121
166
|
enabled: boolean;
|
|
@@ -138,6 +183,12 @@ export interface TrackEvent {
|
|
|
138
183
|
satellite_id: Principal;
|
|
139
184
|
version: [] | [bigint];
|
|
140
185
|
}
|
|
186
|
+
export interface WebVitalsMetric {
|
|
187
|
+
id: string;
|
|
188
|
+
value: number;
|
|
189
|
+
navigation_type: [] | [NavigationType];
|
|
190
|
+
delta: number;
|
|
191
|
+
}
|
|
141
192
|
export interface _SERVICE {
|
|
142
193
|
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
|
|
143
194
|
del_satellite_config: ActorMethod<[Principal, DelSatelliteConfig], undefined>;
|
|
@@ -146,6 +197,11 @@ export interface _SERVICE {
|
|
|
146
197
|
get_page_views_analytics_clients: ActorMethod<[GetAnalytics], AnalyticsClientsPageViews>;
|
|
147
198
|
get_page_views_analytics_metrics: ActorMethod<[GetAnalytics], AnalyticsMetricsPageViews>;
|
|
148
199
|
get_page_views_analytics_top_10: ActorMethod<[GetAnalytics], AnalyticsTop10PageViews>;
|
|
200
|
+
get_performance_metrics: ActorMethod<[GetAnalytics], Array<[AnalyticKey, PerformanceMetric]>>;
|
|
201
|
+
get_performance_metrics_analytics_web_vitals: ActorMethod<
|
|
202
|
+
[GetAnalytics],
|
|
203
|
+
AnalyticsWebVitalsPerformanceMetrics
|
|
204
|
+
>;
|
|
149
205
|
get_track_events: ActorMethod<[GetAnalytics], Array<[AnalyticKey, TrackEvent]>>;
|
|
150
206
|
get_track_events_analytics: ActorMethod<[GetAnalytics], AnalyticsTrackEvents>;
|
|
151
207
|
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
@@ -154,11 +210,13 @@ export interface _SERVICE {
|
|
|
154
210
|
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
155
211
|
set_page_view: ActorMethod<[AnalyticKey, SetPageView], Result>;
|
|
156
212
|
set_page_views: ActorMethod<[Array<[AnalyticKey, SetPageView]>], Result_1>;
|
|
213
|
+
set_performance_metric: ActorMethod<[AnalyticKey, SetPerformanceMetric], Result_2>;
|
|
214
|
+
set_performance_metrics: ActorMethod<[Array<[AnalyticKey, SetPerformanceMetric]>], Result_1>;
|
|
157
215
|
set_satellite_configs: ActorMethod<
|
|
158
216
|
[Array<[Principal, SetSatelliteConfig]>],
|
|
159
217
|
Array<[Principal, OrbiterSatelliteConfig]>
|
|
160
218
|
>;
|
|
161
|
-
set_track_event: ActorMethod<[AnalyticKey, SetTrackEvent],
|
|
219
|
+
set_track_event: ActorMethod<[AnalyticKey, SetTrackEvent], Result_3>;
|
|
162
220
|
set_track_events: ActorMethod<[Array<[AnalyticKey, SetTrackEvent]>], Result_1>;
|
|
163
221
|
version: ActorMethod<[], string>;
|
|
164
222
|
}
|
|
@@ -78,6 +78,49 @@ export const idlFactory = ({IDL}) => {
|
|
|
78
78
|
referrers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32)),
|
|
79
79
|
pages: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32))
|
|
80
80
|
});
|
|
81
|
+
const NavigationType = IDL.Variant({
|
|
82
|
+
Navigate: IDL.Null,
|
|
83
|
+
Restore: IDL.Null,
|
|
84
|
+
Reload: IDL.Null,
|
|
85
|
+
BackForward: IDL.Null,
|
|
86
|
+
BackForwardCache: IDL.Null,
|
|
87
|
+
Prerender: IDL.Null
|
|
88
|
+
});
|
|
89
|
+
const WebVitalsMetric = IDL.Record({
|
|
90
|
+
id: IDL.Text,
|
|
91
|
+
value: IDL.Float64,
|
|
92
|
+
navigation_type: IDL.Opt(NavigationType),
|
|
93
|
+
delta: IDL.Float64
|
|
94
|
+
});
|
|
95
|
+
const PerformanceData = IDL.Variant({WebVitalsMetric: WebVitalsMetric});
|
|
96
|
+
const PerformanceMetricName = IDL.Variant({
|
|
97
|
+
CLS: IDL.Null,
|
|
98
|
+
FCP: IDL.Null,
|
|
99
|
+
INP: IDL.Null,
|
|
100
|
+
LCP: IDL.Null,
|
|
101
|
+
TTFB: IDL.Null
|
|
102
|
+
});
|
|
103
|
+
const PerformanceMetric = IDL.Record({
|
|
104
|
+
updated_at: IDL.Nat64,
|
|
105
|
+
session_id: IDL.Text,
|
|
106
|
+
data: PerformanceData,
|
|
107
|
+
href: IDL.Text,
|
|
108
|
+
metric_name: PerformanceMetricName,
|
|
109
|
+
created_at: IDL.Nat64,
|
|
110
|
+
satellite_id: IDL.Principal,
|
|
111
|
+
version: IDL.Opt(IDL.Nat64)
|
|
112
|
+
});
|
|
113
|
+
const AnalyticsWebVitalsPageMetrics = IDL.Record({
|
|
114
|
+
cls: IDL.Opt(IDL.Float64),
|
|
115
|
+
fcp: IDL.Opt(IDL.Float64),
|
|
116
|
+
inp: IDL.Opt(IDL.Float64),
|
|
117
|
+
lcp: IDL.Opt(IDL.Float64),
|
|
118
|
+
ttfb: IDL.Opt(IDL.Float64)
|
|
119
|
+
});
|
|
120
|
+
const AnalyticsWebVitalsPerformanceMetrics = IDL.Record({
|
|
121
|
+
overall: AnalyticsWebVitalsPageMetrics,
|
|
122
|
+
pages: IDL.Vec(IDL.Tuple(IDL.Text, AnalyticsWebVitalsPageMetrics))
|
|
123
|
+
});
|
|
81
124
|
const TrackEvent = IDL.Record({
|
|
82
125
|
updated_at: IDL.Nat64,
|
|
83
126
|
session_id: IDL.Text,
|
|
@@ -123,6 +166,16 @@ export const idlFactory = ({IDL}) => {
|
|
|
123
166
|
Ok: IDL.Null,
|
|
124
167
|
Err: IDL.Vec(IDL.Tuple(AnalyticKey, IDL.Text))
|
|
125
168
|
});
|
|
169
|
+
const SetPerformanceMetric = IDL.Record({
|
|
170
|
+
session_id: IDL.Text,
|
|
171
|
+
data: PerformanceData,
|
|
172
|
+
href: IDL.Text,
|
|
173
|
+
metric_name: PerformanceMetricName,
|
|
174
|
+
satellite_id: IDL.Principal,
|
|
175
|
+
version: IDL.Opt(IDL.Nat64),
|
|
176
|
+
user_agent: IDL.Opt(IDL.Text)
|
|
177
|
+
});
|
|
178
|
+
const Result_2 = IDL.Variant({Ok: PerformanceMetric, Err: IDL.Text});
|
|
126
179
|
const SetSatelliteConfig = IDL.Record({
|
|
127
180
|
version: IDL.Opt(IDL.Nat64),
|
|
128
181
|
enabled: IDL.Bool
|
|
@@ -136,7 +189,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
136
189
|
version: IDL.Opt(IDL.Nat64),
|
|
137
190
|
user_agent: IDL.Opt(IDL.Text)
|
|
138
191
|
});
|
|
139
|
-
const
|
|
192
|
+
const Result_3 = IDL.Variant({Ok: TrackEvent, Err: IDL.Text});
|
|
140
193
|
return IDL.Service({
|
|
141
194
|
del_controllers: IDL.Func(
|
|
142
195
|
[DeleteControllersArgs],
|
|
@@ -161,6 +214,16 @@ export const idlFactory = ({IDL}) => {
|
|
|
161
214
|
['query']
|
|
162
215
|
),
|
|
163
216
|
get_page_views_analytics_top_10: IDL.Func([GetAnalytics], [AnalyticsTop10PageViews], ['query']),
|
|
217
|
+
get_performance_metrics: IDL.Func(
|
|
218
|
+
[GetAnalytics],
|
|
219
|
+
[IDL.Vec(IDL.Tuple(AnalyticKey, PerformanceMetric))],
|
|
220
|
+
['query']
|
|
221
|
+
),
|
|
222
|
+
get_performance_metrics_analytics_web_vitals: IDL.Func(
|
|
223
|
+
[GetAnalytics],
|
|
224
|
+
[AnalyticsWebVitalsPerformanceMetrics],
|
|
225
|
+
['query']
|
|
226
|
+
),
|
|
164
227
|
get_track_events: IDL.Func(
|
|
165
228
|
[GetAnalytics],
|
|
166
229
|
[IDL.Vec(IDL.Tuple(AnalyticKey, TrackEvent))],
|
|
@@ -181,12 +244,18 @@ export const idlFactory = ({IDL}) => {
|
|
|
181
244
|
),
|
|
182
245
|
set_page_view: IDL.Func([AnalyticKey, SetPageView], [Result], []),
|
|
183
246
|
set_page_views: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetPageView))], [Result_1], []),
|
|
247
|
+
set_performance_metric: IDL.Func([AnalyticKey, SetPerformanceMetric], [Result_2], []),
|
|
248
|
+
set_performance_metrics: IDL.Func(
|
|
249
|
+
[IDL.Vec(IDL.Tuple(AnalyticKey, SetPerformanceMetric))],
|
|
250
|
+
[Result_1],
|
|
251
|
+
[]
|
|
252
|
+
),
|
|
184
253
|
set_satellite_configs: IDL.Func(
|
|
185
254
|
[IDL.Vec(IDL.Tuple(IDL.Principal, SetSatelliteConfig))],
|
|
186
255
|
[IDL.Vec(IDL.Tuple(IDL.Principal, OrbiterSatelliteConfig))],
|
|
187
256
|
[]
|
|
188
257
|
),
|
|
189
|
-
set_track_event: IDL.Func([AnalyticKey, SetTrackEvent], [
|
|
258
|
+
set_track_event: IDL.Func([AnalyticKey, SetTrackEvent], [Result_3], []),
|
|
190
259
|
set_track_events: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetTrackEvent))], [Result_1], []),
|
|
191
260
|
version: IDL.Func([], [IDL.Text], ['query'])
|
|
192
261
|
});
|