@junobuild/admin 0.0.46 → 0.0.47-next-2024-05-06

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 +221 -140
  2. package/declarations/ic/ic.factory.did.js +234 -169
  3. package/declarations/ic/ic.factory.did.mjs +339 -0
  4. package/declarations/mission_control/mission_control.did.d.ts +1 -0
  5. package/declarations/orbiter/orbiter.did.d.ts +8 -2
  6. package/declarations/orbiter/orbiter.factory.did.js +8 -3
  7. package/declarations/orbiter/orbiter.factory.did.mjs +8 -3
  8. package/declarations/satellite/satellite.did.d.ts +18 -3
  9. package/declarations/satellite/satellite.factory.did.js +20 -6
  10. package/declarations/satellite/satellite.factory.did.mjs +20 -6
  11. package/dist/browser/index.js +7 -7
  12. package/dist/browser/index.js.map +3 -3
  13. package/dist/declarations/ic/ic.did.d.ts +221 -140
  14. package/dist/declarations/ic/ic.factory.did.js +234 -169
  15. package/dist/declarations/ic/ic.factory.did.mjs +339 -0
  16. package/dist/declarations/mission_control/mission_control.did.d.ts +1 -0
  17. package/dist/declarations/orbiter/orbiter.did.d.ts +8 -2
  18. package/dist/declarations/orbiter/orbiter.factory.did.js +8 -3
  19. package/dist/declarations/orbiter/orbiter.factory.did.mjs +8 -3
  20. package/dist/declarations/satellite/satellite.did.d.ts +18 -3
  21. package/dist/declarations/satellite/satellite.factory.did.js +20 -6
  22. package/dist/declarations/satellite/satellite.factory.did.mjs +20 -6
  23. package/dist/node/index.mjs +7 -7
  24. package/dist/node/index.mjs.map +3 -3
  25. package/dist/types/api/ic.api.d.ts +1 -1
  26. package/dist/types/api/satellite.api.d.ts +8 -1
  27. package/dist/types/services/satellite.services.d.ts +8 -1
  28. package/dist/types/types/ic.types.d.ts +3 -11
  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
+ };
@@ -109,3 +109,4 @@ export interface _SERVICE {
109
109
  version: ActorMethod<[], string>;
110
110
  }
111
111
  export declare const idlFactory: IDL.InterfaceFactory;
112
+ export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
@@ -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]>>;
@@ -158,3 +163,4 @@ export interface _SERVICE {
158
163
  version: ActorMethod<[], string>;
159
164
  }
160
165
  export declare const idlFactory: IDL.InterfaceFactory;
166
+ export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
@@ -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;
@@ -124,11 +133,13 @@ export interface MemorySize {
124
133
  }
125
134
  export type Permission = {Controllers: null} | {Private: null} | {Public: null} | {Managed: null};
126
135
  export interface Rule {
136
+ max_capacity: [] | [number];
127
137
  memory: [] | [Memory];
128
138
  updated_at: bigint;
129
139
  max_size: [] | [bigint];
130
140
  read: Permission;
131
141
  created_at: bigint;
142
+ version: [] | [bigint];
132
143
  mutable_permissions: [] | [boolean];
133
144
  write: Permission;
134
145
  }
@@ -143,15 +154,16 @@ export interface SetControllersArgs {
143
154
  controllers: Array<Principal>;
144
155
  }
145
156
  export interface SetDoc {
146
- updated_at: [] | [bigint];
147
157
  data: Uint8Array | number[];
148
158
  description: [] | [string];
159
+ version: [] | [bigint];
149
160
  }
150
161
  export interface SetRule {
162
+ max_capacity: [] | [number];
151
163
  memory: [] | [Memory];
152
- updated_at: [] | [bigint];
153
164
  max_size: [] | [bigint];
154
165
  read: Permission;
166
+ version: [] | [bigint];
155
167
  mutable_permissions: [] | [boolean];
156
168
  write: Permission;
157
169
  }
@@ -209,6 +221,7 @@ export interface _SERVICE {
209
221
  del_rule: ActorMethod<[RulesType, string, DelDoc], undefined>;
210
222
  deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
211
223
  get_asset: ActorMethod<[string, string], [] | [AssetNoContent]>;
224
+ get_auth_config: ActorMethod<[], [] | [AuthenticationConfig]>;
212
225
  get_config: ActorMethod<[], Config>;
213
226
  get_doc: ActorMethod<[string, string], [] | [Doc]>;
214
227
  get_many_assets: ActorMethod<[Array<[string, string]>], Array<[string, [] | [AssetNoContent]]>>;
@@ -225,6 +238,7 @@ export interface _SERVICE {
225
238
  list_docs: ActorMethod<[string, ListParams], ListResults_1>;
226
239
  list_rules: ActorMethod<[RulesType], Array<[string, Rule]>>;
227
240
  memory_size: ActorMethod<[], MemorySize>;
241
+ set_auth_config: ActorMethod<[AuthenticationConfig], undefined>;
228
242
  set_config: ActorMethod<[Config], undefined>;
229
243
  set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
230
244
  set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
@@ -235,3 +249,4 @@ export interface _SERVICE {
235
249
  version: ActorMethod<[], string>;
236
250
  }
237
251
  export declare const idlFactory: IDL.InterfaceFactory;
252
+ export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
@@ -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,7 +43,14 @@ 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,
@@ -66,7 +73,8 @@ export const idlFactory = ({IDL}) => {
66
73
  owner: IDL.Principal,
67
74
  data: IDL.Vec(IDL.Nat8),
68
75
  description: IDL.Opt(IDL.Text),
69
- created_at: IDL.Nat64
76
+ created_at: IDL.Nat64,
77
+ version: IDL.Opt(IDL.Nat64)
70
78
  });
71
79
  const HttpRequest = IDL.Record({
72
80
  url: IDL.Text,
@@ -140,6 +148,7 @@ export const idlFactory = ({IDL}) => {
140
148
  const CustomDomain = IDL.Record({
141
149
  updated_at: IDL.Nat64,
142
150
  created_at: IDL.Nat64,
151
+ version: IDL.Opt(IDL.Nat64),
143
152
  bn_id: IDL.Opt(IDL.Text)
144
153
  });
145
154
  const ListResults_1 = IDL.Record({
@@ -156,11 +165,13 @@ export const idlFactory = ({IDL}) => {
156
165
  Managed: IDL.Null
157
166
  });
158
167
  const Rule = IDL.Record({
168
+ max_capacity: IDL.Opt(IDL.Nat32),
159
169
  memory: IDL.Opt(Memory),
160
170
  updated_at: IDL.Nat64,
161
171
  max_size: IDL.Opt(IDL.Nat),
162
172
  read: Permission,
163
173
  created_at: IDL.Nat64,
174
+ version: IDL.Opt(IDL.Nat64),
164
175
  mutable_permissions: IDL.Opt(IDL.Bool),
165
176
  write: Permission
166
177
  });
@@ -175,15 +186,16 @@ export const idlFactory = ({IDL}) => {
175
186
  controllers: IDL.Vec(IDL.Principal)
176
187
  });
177
188
  const SetDoc = IDL.Record({
178
- updated_at: IDL.Opt(IDL.Nat64),
179
189
  data: IDL.Vec(IDL.Nat8),
180
- description: IDL.Opt(IDL.Text)
190
+ description: IDL.Opt(IDL.Text),
191
+ version: IDL.Opt(IDL.Nat64)
181
192
  });
182
193
  const SetRule = IDL.Record({
194
+ max_capacity: IDL.Opt(IDL.Nat32),
183
195
  memory: IDL.Opt(Memory),
184
- updated_at: IDL.Opt(IDL.Nat64),
185
196
  max_size: IDL.Opt(IDL.Nat),
186
197
  read: Permission,
198
+ version: IDL.Opt(IDL.Nat64),
187
199
  mutable_permissions: IDL.Opt(IDL.Bool),
188
200
  write: Permission
189
201
  });
@@ -213,6 +225,7 @@ export const idlFactory = ({IDL}) => {
213
225
  del_rule: IDL.Func([RulesType, IDL.Text, DelDoc], [], []),
214
226
  deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
215
227
  get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], ['query']),
228
+ get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
216
229
  get_config: IDL.Func([], [Config], []),
217
230
  get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
218
231
  get_many_assets: IDL.Func(
@@ -238,6 +251,7 @@ export const idlFactory = ({IDL}) => {
238
251
  list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
239
252
  list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
240
253
  memory_size: IDL.Func([], [MemorySize], ['query']),
254
+ set_auth_config: IDL.Func([AuthenticationConfig], [], []),
241
255
  set_config: IDL.Func([Config], [], []),
242
256
  set_controllers: IDL.Func(
243
257
  [SetControllersArgs],