@junobuild/admin 0.0.47 → 0.0.48-next-2024-05-17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/declarations/ic/ic.did.d.ts +220 -140
  2. package/declarations/ic/ic.factory.did.js +234 -169
  3. package/declarations/ic/ic.factory.did.mjs +339 -0
  4. package/declarations/orbiter/orbiter.did.d.ts +7 -2
  5. package/declarations/orbiter/orbiter.factory.did.js +8 -3
  6. package/declarations/orbiter/orbiter.factory.did.mjs +8 -3
  7. package/declarations/satellite/satellite.did.d.ts +17 -3
  8. package/declarations/satellite/satellite.factory.did.js +23 -6
  9. package/declarations/satellite/satellite.factory.did.mjs +23 -6
  10. package/dist/browser/index.js +7 -7
  11. package/dist/browser/index.js.map +3 -3
  12. package/dist/declarations/ic/ic.did.d.ts +220 -140
  13. package/dist/declarations/ic/ic.factory.did.js +234 -169
  14. package/dist/declarations/ic/ic.factory.did.mjs +339 -0
  15. package/dist/declarations/orbiter/orbiter.did.d.ts +7 -2
  16. package/dist/declarations/orbiter/orbiter.factory.did.js +8 -3
  17. package/dist/declarations/orbiter/orbiter.factory.did.mjs +8 -3
  18. package/dist/declarations/satellite/satellite.did.d.ts +17 -3
  19. package/dist/declarations/satellite/satellite.factory.did.js +23 -6
  20. package/dist/declarations/satellite/satellite.factory.did.mjs +23 -6
  21. package/dist/node/index.mjs +7 -7
  22. package/dist/node/index.mjs.map +3 -3
  23. package/dist/types/api/ic.api.d.ts +1 -1
  24. package/dist/types/api/satellite.api.d.ts +8 -1
  25. package/dist/types/services/orbiter.services.d.ts +1 -1
  26. package/dist/types/services/satellite.services.d.ts +10 -3
  27. package/dist/types/types/ic.types.d.ts +3 -11
  28. package/dist/types/utils/actor.utils.d.ts +1 -1
  29. package/dist/types/utils/rule.utils.d.ts +1 -1
  30. package/package.json +6 -6
  31. package/declarations/ic/ic.did +0 -195
  32. package/declarations/mission_control/index.d.ts +0 -45
  33. package/declarations/mission_control/index.js +0 -38
  34. package/declarations/orbiter/index.d.ts +0 -45
  35. package/declarations/orbiter/index.js +0 -37
  36. package/declarations/satellite/index.d.ts +0 -45
  37. package/declarations/satellite/index.js +0 -37
  38. package/dist/declarations/ic/ic.did +0 -195
  39. package/dist/declarations/mission_control/index.d.ts +0 -45
  40. package/dist/declarations/mission_control/index.js +0 -38
  41. package/dist/declarations/orbiter/index.d.ts +0 -45
  42. package/dist/declarations/orbiter/index.js +0 -37
  43. package/dist/declarations/satellite/index.d.ts +0 -45
  44. 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
+ };
@@ -51,7 +51,7 @@ export interface Controller {
51
51
  }
52
52
  export type ControllerScope = {Write: null} | {Admin: null};
53
53
  export interface DelSatelliteConfig {
54
- updated_at: [] | [bigint];
54
+ version: [] | [bigint];
55
55
  }
56
56
  export interface DeleteControllersArgs {
57
57
  controllers: Array<Principal>;
@@ -72,6 +72,7 @@ export interface MemorySize {
72
72
  export interface OrbiterSatelliteConfig {
73
73
  updated_at: bigint;
74
74
  created_at: bigint;
75
+ version: [] | [bigint];
75
76
  enabled: boolean;
76
77
  }
77
78
  export interface PageView {
@@ -84,6 +85,7 @@ export interface PageView {
84
85
  created_at: bigint;
85
86
  satellite_id: Principal;
86
87
  device: PageViewDevice;
88
+ version: [] | [bigint];
87
89
  user_agent: [] | [string];
88
90
  }
89
91
  export interface PageViewDevice {
@@ -111,10 +113,11 @@ export interface SetPageView {
111
113
  href: string;
112
114
  satellite_id: Principal;
113
115
  device: PageViewDevice;
116
+ version: [] | [bigint];
114
117
  user_agent: [] | [string];
115
118
  }
116
119
  export interface SetSatelliteConfig {
117
- updated_at: [] | [bigint];
120
+ version: [] | [bigint];
118
121
  enabled: boolean;
119
122
  }
120
123
  export interface SetTrackEvent {
@@ -123,6 +126,7 @@ export interface SetTrackEvent {
123
126
  metadata: [] | [Array<[string, string]>];
124
127
  name: string;
125
128
  satellite_id: Principal;
129
+ version: [] | [bigint];
126
130
  user_agent: [] | [string];
127
131
  }
128
132
  export interface TrackEvent {
@@ -132,6 +136,7 @@ export interface TrackEvent {
132
136
  name: string;
133
137
  created_at: bigint;
134
138
  satellite_id: Principal;
139
+ version: [] | [bigint];
135
140
  }
136
141
  export interface _SERVICE {
137
142
  del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
@@ -14,7 +14,7 @@ export const idlFactory = ({IDL}) => {
14
14
  scope: ControllerScope,
15
15
  expires_at: IDL.Opt(IDL.Nat64)
16
16
  });
17
- const DelSatelliteConfig = IDL.Record({updated_at: IDL.Opt(IDL.Nat64)});
17
+ const DelSatelliteConfig = IDL.Record({version: IDL.Opt(IDL.Nat64)});
18
18
  const DepositCyclesArgs = IDL.Record({
19
19
  cycles: IDL.Nat,
20
20
  destination_id: IDL.Principal
@@ -42,6 +42,7 @@ export const idlFactory = ({IDL}) => {
42
42
  created_at: IDL.Nat64,
43
43
  satellite_id: IDL.Principal,
44
44
  device: PageViewDevice,
45
+ version: IDL.Opt(IDL.Nat64),
45
46
  user_agent: IDL.Opt(IDL.Text)
46
47
  });
47
48
  const AnalyticsBrowsersPageViews = IDL.Record({
@@ -83,7 +84,8 @@ export const idlFactory = ({IDL}) => {
83
84
  metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
84
85
  name: IDL.Text,
85
86
  created_at: IDL.Nat64,
86
- satellite_id: IDL.Principal
87
+ satellite_id: IDL.Principal,
88
+ version: IDL.Opt(IDL.Nat64)
87
89
  });
88
90
  const AnalyticsTrackEvents = IDL.Record({
89
91
  total: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32))
@@ -91,6 +93,7 @@ export const idlFactory = ({IDL}) => {
91
93
  const OrbiterSatelliteConfig = IDL.Record({
92
94
  updated_at: IDL.Nat64,
93
95
  created_at: IDL.Nat64,
96
+ version: IDL.Opt(IDL.Nat64),
94
97
  enabled: IDL.Bool
95
98
  });
96
99
  const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
@@ -112,6 +115,7 @@ export const idlFactory = ({IDL}) => {
112
115
  href: IDL.Text,
113
116
  satellite_id: IDL.Principal,
114
117
  device: PageViewDevice,
118
+ version: IDL.Opt(IDL.Nat64),
115
119
  user_agent: IDL.Opt(IDL.Text)
116
120
  });
117
121
  const Result = IDL.Variant({Ok: PageView, Err: IDL.Text});
@@ -120,7 +124,7 @@ export const idlFactory = ({IDL}) => {
120
124
  Err: IDL.Vec(IDL.Tuple(AnalyticKey, IDL.Text))
121
125
  });
122
126
  const SetSatelliteConfig = IDL.Record({
123
- updated_at: IDL.Opt(IDL.Nat64),
127
+ version: IDL.Opt(IDL.Nat64),
124
128
  enabled: IDL.Bool
125
129
  });
126
130
  const SetTrackEvent = IDL.Record({
@@ -129,6 +133,7 @@ export const idlFactory = ({IDL}) => {
129
133
  metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
130
134
  name: IDL.Text,
131
135
  satellite_id: IDL.Principal,
136
+ version: IDL.Opt(IDL.Nat64),
132
137
  user_agent: IDL.Opt(IDL.Text)
133
138
  });
134
139
  const Result_2 = IDL.Variant({Ok: TrackEvent, Err: IDL.Text});
@@ -14,7 +14,7 @@ export const idlFactory = ({IDL}) => {
14
14
  scope: ControllerScope,
15
15
  expires_at: IDL.Opt(IDL.Nat64)
16
16
  });
17
- const DelSatelliteConfig = IDL.Record({updated_at: IDL.Opt(IDL.Nat64)});
17
+ const DelSatelliteConfig = IDL.Record({version: IDL.Opt(IDL.Nat64)});
18
18
  const DepositCyclesArgs = IDL.Record({
19
19
  cycles: IDL.Nat,
20
20
  destination_id: IDL.Principal
@@ -42,6 +42,7 @@ export const idlFactory = ({IDL}) => {
42
42
  created_at: IDL.Nat64,
43
43
  satellite_id: IDL.Principal,
44
44
  device: PageViewDevice,
45
+ version: IDL.Opt(IDL.Nat64),
45
46
  user_agent: IDL.Opt(IDL.Text)
46
47
  });
47
48
  const AnalyticsBrowsersPageViews = IDL.Record({
@@ -83,7 +84,8 @@ export const idlFactory = ({IDL}) => {
83
84
  metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
84
85
  name: IDL.Text,
85
86
  created_at: IDL.Nat64,
86
- satellite_id: IDL.Principal
87
+ satellite_id: IDL.Principal,
88
+ version: IDL.Opt(IDL.Nat64)
87
89
  });
88
90
  const AnalyticsTrackEvents = IDL.Record({
89
91
  total: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32))
@@ -91,6 +93,7 @@ export const idlFactory = ({IDL}) => {
91
93
  const OrbiterSatelliteConfig = IDL.Record({
92
94
  updated_at: IDL.Nat64,
93
95
  created_at: IDL.Nat64,
96
+ version: IDL.Opt(IDL.Nat64),
94
97
  enabled: IDL.Bool
95
98
  });
96
99
  const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
@@ -112,6 +115,7 @@ export const idlFactory = ({IDL}) => {
112
115
  href: IDL.Text,
113
116
  satellite_id: IDL.Principal,
114
117
  device: PageViewDevice,
118
+ version: IDL.Opt(IDL.Nat64),
115
119
  user_agent: IDL.Opt(IDL.Text)
116
120
  });
117
121
  const Result = IDL.Variant({Ok: PageView, Err: IDL.Text});
@@ -120,7 +124,7 @@ export const idlFactory = ({IDL}) => {
120
124
  Err: IDL.Vec(IDL.Tuple(AnalyticKey, IDL.Text))
121
125
  });
122
126
  const SetSatelliteConfig = IDL.Record({
123
- updated_at: IDL.Opt(IDL.Nat64),
127
+ version: IDL.Opt(IDL.Nat64),
124
128
  enabled: IDL.Bool
125
129
  });
126
130
  const SetTrackEvent = IDL.Record({
@@ -129,6 +133,7 @@ export const idlFactory = ({IDL}) => {
129
133
  metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
130
134
  name: IDL.Text,
131
135
  satellite_id: IDL.Principal,
136
+ version: IDL.Opt(IDL.Nat64),
132
137
  user_agent: IDL.Opt(IDL.Text)
133
138
  });
134
139
  const Result_2 = IDL.Variant({Ok: TrackEvent, Err: IDL.Text});
@@ -21,6 +21,13 @@ export interface AssetNoContent {
21
21
  encodings: Array<[string, AssetEncodingNoContent]>;
22
22
  headers: Array<[string, string]>;
23
23
  created_at: bigint;
24
+ version: [] | [bigint];
25
+ }
26
+ export interface AuthenticationConfig {
27
+ internet_identity: [] | [AuthenticationConfigInternetIdentity];
28
+ }
29
+ export interface AuthenticationConfigInternetIdentity {
30
+ derivation_origin: [] | [string];
24
31
  }
25
32
  export interface CommitBatch {
26
33
  batch_id: bigint;
@@ -41,10 +48,11 @@ export type ControllerScope = {Write: null} | {Admin: null};
41
48
  export interface CustomDomain {
42
49
  updated_at: bigint;
43
50
  created_at: bigint;
51
+ version: [] | [bigint];
44
52
  bn_id: [] | [string];
45
53
  }
46
54
  export interface DelDoc {
47
- updated_at: [] | [bigint];
55
+ version: [] | [bigint];
48
56
  }
49
57
  export interface DeleteControllersArgs {
50
58
  controllers: Array<Principal>;
@@ -59,6 +67,7 @@ export interface Doc {
59
67
  data: Uint8Array | number[];
60
68
  description: [] | [string];
61
69
  created_at: bigint;
70
+ version: [] | [bigint];
62
71
  }
63
72
  export interface HttpRequest {
64
73
  url: string;
@@ -130,6 +139,7 @@ export interface Rule {
130
139
  max_size: [] | [bigint];
131
140
  read: Permission;
132
141
  created_at: bigint;
142
+ version: [] | [bigint];
133
143
  mutable_permissions: [] | [boolean];
134
144
  write: Permission;
135
145
  }
@@ -144,16 +154,16 @@ export interface SetControllersArgs {
144
154
  controllers: Array<Principal>;
145
155
  }
146
156
  export interface SetDoc {
147
- updated_at: [] | [bigint];
148
157
  data: Uint8Array | number[];
149
158
  description: [] | [string];
159
+ version: [] | [bigint];
150
160
  }
151
161
  export interface SetRule {
152
162
  max_capacity: [] | [number];
153
163
  memory: [] | [Memory];
154
- updated_at: [] | [bigint];
155
164
  max_size: [] | [bigint];
156
165
  read: Permission;
166
+ version: [] | [bigint];
157
167
  mutable_permissions: [] | [boolean];
158
168
  write: Permission;
159
169
  }
@@ -161,9 +171,11 @@ export interface StorageConfig {
161
171
  iframe: [] | [StorageConfigIFrame];
162
172
  rewrites: Array<[string, string]>;
163
173
  headers: Array<[string, Array<[string, string]>]>;
174
+ raw_access: [] | [StorageConfigRawAccess];
164
175
  redirects: [] | [Array<[string, StorageConfigRedirect]>];
165
176
  }
166
177
  export type StorageConfigIFrame = {Deny: null} | {AllowAny: null} | {SameOrigin: null};
178
+ export type StorageConfigRawAccess = {Deny: null} | {Allow: null};
167
179
  export interface StorageConfigRedirect {
168
180
  status_code: number;
169
181
  location: string;
@@ -211,6 +223,7 @@ export interface _SERVICE {
211
223
  del_rule: ActorMethod<[RulesType, string, DelDoc], undefined>;
212
224
  deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
213
225
  get_asset: ActorMethod<[string, string], [] | [AssetNoContent]>;
226
+ get_auth_config: ActorMethod<[], [] | [AuthenticationConfig]>;
214
227
  get_config: ActorMethod<[], Config>;
215
228
  get_doc: ActorMethod<[string, string], [] | [Doc]>;
216
229
  get_many_assets: ActorMethod<[Array<[string, string]>], Array<[string, [] | [AssetNoContent]]>>;
@@ -227,6 +240,7 @@ export interface _SERVICE {
227
240
  list_docs: ActorMethod<[string, ListParams], ListResults_1>;
228
241
  list_rules: ActorMethod<[RulesType], Array<[string, Rule]>>;
229
242
  memory_size: ActorMethod<[], MemorySize>;
243
+ set_auth_config: ActorMethod<[AuthenticationConfig], undefined>;
230
244
  set_config: ActorMethod<[Config], undefined>;
231
245
  set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
232
246
  set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
@@ -19,7 +19,7 @@ export const idlFactory = ({IDL}) => {
19
19
  scope: ControllerScope,
20
20
  expires_at: IDL.Opt(IDL.Nat64)
21
21
  });
22
- const DelDoc = IDL.Record({updated_at: IDL.Opt(IDL.Nat64)});
22
+ const DelDoc = IDL.Record({version: IDL.Opt(IDL.Nat64)});
23
23
  const RulesType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
24
24
  const DepositCyclesArgs = IDL.Record({
25
25
  cycles: IDL.Nat,
@@ -43,13 +43,24 @@ export const idlFactory = ({IDL}) => {
43
43
  updated_at: IDL.Nat64,
44
44
  encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
45
45
  headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
46
- created_at: IDL.Nat64
46
+ created_at: IDL.Nat64,
47
+ version: IDL.Opt(IDL.Nat64)
48
+ });
49
+ const AuthenticationConfigInternetIdentity = IDL.Record({
50
+ derivation_origin: IDL.Opt(IDL.Text)
51
+ });
52
+ const AuthenticationConfig = IDL.Record({
53
+ internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity)
47
54
  });
48
55
  const StorageConfigIFrame = IDL.Variant({
49
56
  Deny: IDL.Null,
50
57
  AllowAny: IDL.Null,
51
58
  SameOrigin: IDL.Null
52
59
  });
60
+ const StorageConfigRawAccess = IDL.Variant({
61
+ Deny: IDL.Null,
62
+ Allow: IDL.Null
63
+ });
53
64
  const StorageConfigRedirect = IDL.Record({
54
65
  status_code: IDL.Nat16,
55
66
  location: IDL.Text
@@ -58,6 +69,7 @@ export const idlFactory = ({IDL}) => {
58
69
  iframe: IDL.Opt(StorageConfigIFrame),
59
70
  rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
60
71
  headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
72
+ raw_access: IDL.Opt(StorageConfigRawAccess),
61
73
  redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
62
74
  });
63
75
  const Config = IDL.Record({storage: StorageConfig});
@@ -66,7 +78,8 @@ export const idlFactory = ({IDL}) => {
66
78
  owner: IDL.Principal,
67
79
  data: IDL.Vec(IDL.Nat8),
68
80
  description: IDL.Opt(IDL.Text),
69
- created_at: IDL.Nat64
81
+ created_at: IDL.Nat64,
82
+ version: IDL.Opt(IDL.Nat64)
70
83
  });
71
84
  const HttpRequest = IDL.Record({
72
85
  url: IDL.Text,
@@ -140,6 +153,7 @@ export const idlFactory = ({IDL}) => {
140
153
  const CustomDomain = IDL.Record({
141
154
  updated_at: IDL.Nat64,
142
155
  created_at: IDL.Nat64,
156
+ version: IDL.Opt(IDL.Nat64),
143
157
  bn_id: IDL.Opt(IDL.Text)
144
158
  });
145
159
  const ListResults_1 = IDL.Record({
@@ -162,6 +176,7 @@ export const idlFactory = ({IDL}) => {
162
176
  max_size: IDL.Opt(IDL.Nat),
163
177
  read: Permission,
164
178
  created_at: IDL.Nat64,
179
+ version: IDL.Opt(IDL.Nat64),
165
180
  mutable_permissions: IDL.Opt(IDL.Bool),
166
181
  write: Permission
167
182
  });
@@ -176,16 +191,16 @@ export const idlFactory = ({IDL}) => {
176
191
  controllers: IDL.Vec(IDL.Principal)
177
192
  });
178
193
  const SetDoc = IDL.Record({
179
- updated_at: IDL.Opt(IDL.Nat64),
180
194
  data: IDL.Vec(IDL.Nat8),
181
- description: IDL.Opt(IDL.Text)
195
+ description: IDL.Opt(IDL.Text),
196
+ version: IDL.Opt(IDL.Nat64)
182
197
  });
183
198
  const SetRule = IDL.Record({
184
199
  max_capacity: IDL.Opt(IDL.Nat32),
185
200
  memory: IDL.Opt(Memory),
186
- updated_at: IDL.Opt(IDL.Nat64),
187
201
  max_size: IDL.Opt(IDL.Nat),
188
202
  read: Permission,
203
+ version: IDL.Opt(IDL.Nat64),
189
204
  mutable_permissions: IDL.Opt(IDL.Bool),
190
205
  write: Permission
191
206
  });
@@ -215,6 +230,7 @@ export const idlFactory = ({IDL}) => {
215
230
  del_rule: IDL.Func([RulesType, IDL.Text, DelDoc], [], []),
216
231
  deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
217
232
  get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], ['query']),
233
+ get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
218
234
  get_config: IDL.Func([], [Config], []),
219
235
  get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
220
236
  get_many_assets: IDL.Func(
@@ -240,6 +256,7 @@ export const idlFactory = ({IDL}) => {
240
256
  list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
241
257
  list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
242
258
  memory_size: IDL.Func([], [MemorySize], ['query']),
259
+ set_auth_config: IDL.Func([AuthenticationConfig], [], []),
243
260
  set_config: IDL.Func([Config], [], []),
244
261
  set_controllers: IDL.Func(
245
262
  [SetControllersArgs],