@junobuild/admin 0.0.54 → 0.0.55

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.
@@ -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 type chunk_hash = Uint8Array | number[];
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: {reinstall: null} | {upgrade: [] | [{skip_pre_upgrade: [] | [boolean]}]} | {install: null};
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: {reinstall: null} | {upgrade: [] | [{skip_pre_upgrade: [] | [boolean]}]} | {install: null};
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
- num_blocks_total: bigint;
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 chunk_hash = IDL.Vec(IDL.Nat8);
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: IDL.Variant({
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
- sender_canister_version: IDL.Opt(IDL.Nat64),
216
- storage_canister: IDL.Opt(canister_id)
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: IDL.Variant({
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
- num_blocks_total: IDL.Nat64
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 chunk_hash = IDL.Vec(IDL.Nat8);
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: IDL.Variant({
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
- sender_canister_version: IDL.Opt(IDL.Nat64),
216
- storage_canister: IDL.Opt(canister_id)
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: IDL.Variant({
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
- num_blocks_total: IDL.Nat64
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,11 +80,23 @@ 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;
92
+ features: [] | [OrbiterSatelliteFeatures];
74
93
  created_at: bigint;
75
94
  version: [] | [bigint];
76
- enabled: boolean;
95
+ }
96
+ export interface OrbiterSatelliteFeatures {
97
+ performance_metrics: boolean;
98
+ track_events: boolean;
99
+ page_views: boolean;
77
100
  }
78
101
  export interface PageView {
79
102
  title: string;
@@ -92,9 +115,27 @@ export interface PageViewDevice {
92
115
  inner_height: number;
93
116
  inner_width: number;
94
117
  }
118
+ export type PerformanceData = {WebVitalsMetric: WebVitalsMetric};
119
+ export interface PerformanceMetric {
120
+ updated_at: bigint;
121
+ session_id: string;
122
+ data: PerformanceData;
123
+ href: string;
124
+ metric_name: PerformanceMetricName;
125
+ created_at: bigint;
126
+ satellite_id: Principal;
127
+ version: [] | [bigint];
128
+ }
129
+ export type PerformanceMetricName =
130
+ | {CLS: null}
131
+ | {FCP: null}
132
+ | {INP: null}
133
+ | {LCP: null}
134
+ | {TTFB: null};
95
135
  export type Result = {Ok: PageView} | {Err: string};
96
136
  export type Result_1 = {Ok: null} | {Err: Array<[AnalyticKey, string]>};
97
- export type Result_2 = {Ok: TrackEvent} | {Err: string};
137
+ export type Result_2 = {Ok: PerformanceMetric} | {Err: string};
138
+ export type Result_3 = {Ok: TrackEvent} | {Err: string};
98
139
  export interface SetController {
99
140
  metadata: Array<[string, string]>;
100
141
  scope: ControllerScope;
@@ -116,9 +157,18 @@ export interface SetPageView {
116
157
  version: [] | [bigint];
117
158
  user_agent: [] | [string];
118
159
  }
160
+ export interface SetPerformanceMetric {
161
+ session_id: string;
162
+ data: PerformanceData;
163
+ href: string;
164
+ metric_name: PerformanceMetricName;
165
+ satellite_id: Principal;
166
+ version: [] | [bigint];
167
+ user_agent: [] | [string];
168
+ }
119
169
  export interface SetSatelliteConfig {
170
+ features: [] | [OrbiterSatelliteFeatures];
120
171
  version: [] | [bigint];
121
- enabled: boolean;
122
172
  }
123
173
  export interface SetTrackEvent {
124
174
  updated_at: [] | [bigint];
@@ -138,6 +188,12 @@ export interface TrackEvent {
138
188
  satellite_id: Principal;
139
189
  version: [] | [bigint];
140
190
  }
191
+ export interface WebVitalsMetric {
192
+ id: string;
193
+ value: number;
194
+ navigation_type: [] | [NavigationType];
195
+ delta: number;
196
+ }
141
197
  export interface _SERVICE {
142
198
  del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
143
199
  del_satellite_config: ActorMethod<[Principal, DelSatelliteConfig], undefined>;
@@ -146,6 +202,11 @@ export interface _SERVICE {
146
202
  get_page_views_analytics_clients: ActorMethod<[GetAnalytics], AnalyticsClientsPageViews>;
147
203
  get_page_views_analytics_metrics: ActorMethod<[GetAnalytics], AnalyticsMetricsPageViews>;
148
204
  get_page_views_analytics_top_10: ActorMethod<[GetAnalytics], AnalyticsTop10PageViews>;
205
+ get_performance_metrics: ActorMethod<[GetAnalytics], Array<[AnalyticKey, PerformanceMetric]>>;
206
+ get_performance_metrics_analytics_web_vitals: ActorMethod<
207
+ [GetAnalytics],
208
+ AnalyticsWebVitalsPerformanceMetrics
209
+ >;
149
210
  get_track_events: ActorMethod<[GetAnalytics], Array<[AnalyticKey, TrackEvent]>>;
150
211
  get_track_events_analytics: ActorMethod<[GetAnalytics], AnalyticsTrackEvents>;
151
212
  list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
@@ -154,11 +215,13 @@ export interface _SERVICE {
154
215
  set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
155
216
  set_page_view: ActorMethod<[AnalyticKey, SetPageView], Result>;
156
217
  set_page_views: ActorMethod<[Array<[AnalyticKey, SetPageView]>], Result_1>;
218
+ set_performance_metric: ActorMethod<[AnalyticKey, SetPerformanceMetric], Result_2>;
219
+ set_performance_metrics: ActorMethod<[Array<[AnalyticKey, SetPerformanceMetric]>], Result_1>;
157
220
  set_satellite_configs: ActorMethod<
158
221
  [Array<[Principal, SetSatelliteConfig]>],
159
222
  Array<[Principal, OrbiterSatelliteConfig]>
160
223
  >;
161
- set_track_event: ActorMethod<[AnalyticKey, SetTrackEvent], Result_2>;
224
+ set_track_event: ActorMethod<[AnalyticKey, SetTrackEvent], Result_3>;
162
225
  set_track_events: ActorMethod<[Array<[AnalyticKey, SetTrackEvent]>], Result_1>;
163
226
  version: ActorMethod<[], string>;
164
227
  }
@@ -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,
@@ -90,11 +133,16 @@ export const idlFactory = ({IDL}) => {
90
133
  const AnalyticsTrackEvents = IDL.Record({
91
134
  total: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32))
92
135
  });
136
+ const OrbiterSatelliteFeatures = IDL.Record({
137
+ performance_metrics: IDL.Bool,
138
+ track_events: IDL.Bool,
139
+ page_views: IDL.Bool
140
+ });
93
141
  const OrbiterSatelliteConfig = IDL.Record({
94
142
  updated_at: IDL.Nat64,
143
+ features: IDL.Opt(OrbiterSatelliteFeatures),
95
144
  created_at: IDL.Nat64,
96
- version: IDL.Opt(IDL.Nat64),
97
- enabled: IDL.Bool
145
+ version: IDL.Opt(IDL.Nat64)
98
146
  });
99
147
  const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
100
148
  const SetController = IDL.Record({
@@ -123,9 +171,19 @@ export const idlFactory = ({IDL}) => {
123
171
  Ok: IDL.Null,
124
172
  Err: IDL.Vec(IDL.Tuple(AnalyticKey, IDL.Text))
125
173
  });
126
- const SetSatelliteConfig = IDL.Record({
174
+ const SetPerformanceMetric = IDL.Record({
175
+ session_id: IDL.Text,
176
+ data: PerformanceData,
177
+ href: IDL.Text,
178
+ metric_name: PerformanceMetricName,
179
+ satellite_id: IDL.Principal,
127
180
  version: IDL.Opt(IDL.Nat64),
128
- enabled: IDL.Bool
181
+ user_agent: IDL.Opt(IDL.Text)
182
+ });
183
+ const Result_2 = IDL.Variant({Ok: PerformanceMetric, Err: IDL.Text});
184
+ const SetSatelliteConfig = IDL.Record({
185
+ features: IDL.Opt(OrbiterSatelliteFeatures),
186
+ version: IDL.Opt(IDL.Nat64)
129
187
  });
130
188
  const SetTrackEvent = IDL.Record({
131
189
  updated_at: IDL.Opt(IDL.Nat64),
@@ -136,7 +194,7 @@ export const idlFactory = ({IDL}) => {
136
194
  version: IDL.Opt(IDL.Nat64),
137
195
  user_agent: IDL.Opt(IDL.Text)
138
196
  });
139
- const Result_2 = IDL.Variant({Ok: TrackEvent, Err: IDL.Text});
197
+ const Result_3 = IDL.Variant({Ok: TrackEvent, Err: IDL.Text});
140
198
  return IDL.Service({
141
199
  del_controllers: IDL.Func(
142
200
  [DeleteControllersArgs],
@@ -161,6 +219,16 @@ export const idlFactory = ({IDL}) => {
161
219
  ['query']
162
220
  ),
163
221
  get_page_views_analytics_top_10: IDL.Func([GetAnalytics], [AnalyticsTop10PageViews], ['query']),
222
+ get_performance_metrics: IDL.Func(
223
+ [GetAnalytics],
224
+ [IDL.Vec(IDL.Tuple(AnalyticKey, PerformanceMetric))],
225
+ ['query']
226
+ ),
227
+ get_performance_metrics_analytics_web_vitals: IDL.Func(
228
+ [GetAnalytics],
229
+ [AnalyticsWebVitalsPerformanceMetrics],
230
+ ['query']
231
+ ),
164
232
  get_track_events: IDL.Func(
165
233
  [GetAnalytics],
166
234
  [IDL.Vec(IDL.Tuple(AnalyticKey, TrackEvent))],
@@ -181,12 +249,18 @@ export const idlFactory = ({IDL}) => {
181
249
  ),
182
250
  set_page_view: IDL.Func([AnalyticKey, SetPageView], [Result], []),
183
251
  set_page_views: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetPageView))], [Result_1], []),
252
+ set_performance_metric: IDL.Func([AnalyticKey, SetPerformanceMetric], [Result_2], []),
253
+ set_performance_metrics: IDL.Func(
254
+ [IDL.Vec(IDL.Tuple(AnalyticKey, SetPerformanceMetric))],
255
+ [Result_1],
256
+ []
257
+ ),
184
258
  set_satellite_configs: IDL.Func(
185
259
  [IDL.Vec(IDL.Tuple(IDL.Principal, SetSatelliteConfig))],
186
260
  [IDL.Vec(IDL.Tuple(IDL.Principal, OrbiterSatelliteConfig))],
187
261
  []
188
262
  ),
189
- set_track_event: IDL.Func([AnalyticKey, SetTrackEvent], [Result_2], []),
263
+ set_track_event: IDL.Func([AnalyticKey, SetTrackEvent], [Result_3], []),
190
264
  set_track_events: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetTrackEvent))], [Result_1], []),
191
265
  version: IDL.Func([], [IDL.Text], ['query'])
192
266
  });