@wireapp/core-crypto 10.0.0-pre.10 → 10.0.0-pre.12
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/autogenerated/wasm-bindgen/index_bg.wasm +0 -0
- package/dist/browser/autogenerated/wasm-bindgen/index_bg.wasm.d.ts +62 -18
- package/dist/browser/corecrypto.d.ts +61 -13
- package/dist/browser/corecrypto.js +1569 -1218
- package/dist/native/corecrypto.d.ts +59 -11
- package/dist/native/corecrypto.js +359 -18
- package/dist/native/libcore_crypto_ffi.dylib +0 -0
- package/dist/native/libcore_crypto_ffi.so +0 -0
- package/package.json +12 -3
|
@@ -12,19 +12,16 @@ var __export = (target, all) => {
|
|
|
12
12
|
set: __exportSetter.bind(all, name)
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
16
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
17
|
-
}) : x)(function(x) {
|
|
18
|
-
if (typeof require !== "undefined")
|
|
19
|
-
return require.apply(this, arguments);
|
|
20
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
21
|
-
});
|
|
22
15
|
|
|
23
16
|
// packages/browser/src/autogenerated/wasm-bindgen/index.js
|
|
24
17
|
var exports_wasm_bindgen = {};
|
|
25
18
|
__export(exports_wasm_bindgen, {
|
|
26
19
|
ubrn_uniffi_core_crypto_ffi_fn_method_x509credentialacquisition_finalize: () => ubrn_uniffi_core_crypto_ffi_fn_method_x509credentialacquisition_finalize,
|
|
27
20
|
ubrn_uniffi_core_crypto_ffi_fn_method_welcome_serialize: () => ubrn_uniffi_core_crypto_ffi_fn_method_welcome_serialize,
|
|
21
|
+
ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_hash: () => ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_hash,
|
|
22
|
+
ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_ne: () => ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_ne,
|
|
23
|
+
ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_eq: () => ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_eq,
|
|
24
|
+
ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_display: () => ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_display,
|
|
28
25
|
ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_hash: () => ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_hash,
|
|
29
26
|
ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_ne: () => ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_ne,
|
|
30
27
|
ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_eq: () => ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_eq,
|
|
@@ -50,6 +47,12 @@ __export(exports_wasm_bindgen, {
|
|
|
50
47
|
ubrn_uniffi_core_crypto_ffi_fn_method_externalsender_uniffi_trait_eq_eq: () => ubrn_uniffi_core_crypto_ffi_fn_method_externalsender_uniffi_trait_eq_eq,
|
|
51
48
|
ubrn_uniffi_core_crypto_ffi_fn_method_externalsender_serialize: () => ubrn_uniffi_core_crypto_ffi_fn_method_externalsender_serialize,
|
|
52
49
|
ubrn_uniffi_core_crypto_ffi_fn_method_epochobserver_epoch_changed: () => ubrn_uniffi_core_crypto_ffi_fn_method_epochobserver_epoch_changed,
|
|
50
|
+
ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_hash: () => ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_hash,
|
|
51
|
+
ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_ne: () => ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_ne,
|
|
52
|
+
ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_eq: () => ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_eq,
|
|
53
|
+
ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_u64: () => ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_u64,
|
|
54
|
+
ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_hex_string: () => ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_hex_string,
|
|
55
|
+
ubrn_uniffi_core_crypto_ffi_fn_method_deserializedclientid_uniffi_trait_display: () => ubrn_uniffi_core_crypto_ffi_fn_method_deserializedclientid_uniffi_trait_display,
|
|
53
56
|
ubrn_uniffi_core_crypto_ffi_fn_method_databasekey_uniffi_trait_eq_ne: () => ubrn_uniffi_core_crypto_ffi_fn_method_databasekey_uniffi_trait_eq_ne,
|
|
54
57
|
ubrn_uniffi_core_crypto_ffi_fn_method_databasekey_uniffi_trait_eq_eq: () => ubrn_uniffi_core_crypto_ffi_fn_method_databasekey_uniffi_trait_eq_eq,
|
|
55
58
|
ubrn_uniffi_core_crypto_ffi_fn_method_databasekey_uniffi_trait_debug: () => ubrn_uniffi_core_crypto_ffi_fn_method_databasekey_uniffi_trait_debug,
|
|
@@ -177,6 +180,7 @@ __export(exports_wasm_bindgen, {
|
|
|
177
180
|
ubrn_uniffi_core_crypto_ffi_fn_func_build_metadata: () => ubrn_uniffi_core_crypto_ffi_fn_func_build_metadata,
|
|
178
181
|
ubrn_uniffi_core_crypto_ffi_fn_free_x509credentialacquisition: () => ubrn_uniffi_core_crypto_ffi_fn_free_x509credentialacquisition,
|
|
179
182
|
ubrn_uniffi_core_crypto_ffi_fn_free_welcome: () => ubrn_uniffi_core_crypto_ffi_fn_free_welcome,
|
|
183
|
+
ubrn_uniffi_core_crypto_ffi_fn_free_uuid: () => ubrn_uniffi_core_crypto_ffi_fn_free_uuid,
|
|
180
184
|
ubrn_uniffi_core_crypto_ffi_fn_free_secretkey: () => ubrn_uniffi_core_crypto_ffi_fn_free_secretkey,
|
|
181
185
|
ubrn_uniffi_core_crypto_ffi_fn_free_pkienvironmenthooks: () => ubrn_uniffi_core_crypto_ffi_fn_free_pkienvironmenthooks,
|
|
182
186
|
ubrn_uniffi_core_crypto_ffi_fn_free_pkienvironment: () => ubrn_uniffi_core_crypto_ffi_fn_free_pkienvironment,
|
|
@@ -187,6 +191,7 @@ __export(exports_wasm_bindgen, {
|
|
|
187
191
|
ubrn_uniffi_core_crypto_ffi_fn_free_groupinfo: () => ubrn_uniffi_core_crypto_ffi_fn_free_groupinfo,
|
|
188
192
|
ubrn_uniffi_core_crypto_ffi_fn_free_externalsender: () => ubrn_uniffi_core_crypto_ffi_fn_free_externalsender,
|
|
189
193
|
ubrn_uniffi_core_crypto_ffi_fn_free_epochobserver: () => ubrn_uniffi_core_crypto_ffi_fn_free_epochobserver,
|
|
194
|
+
ubrn_uniffi_core_crypto_ffi_fn_free_deviceid: () => ubrn_uniffi_core_crypto_ffi_fn_free_deviceid,
|
|
190
195
|
ubrn_uniffi_core_crypto_ffi_fn_free_databasekey: () => ubrn_uniffi_core_crypto_ffi_fn_free_databasekey,
|
|
191
196
|
ubrn_uniffi_core_crypto_ffi_fn_free_database: () => ubrn_uniffi_core_crypto_ffi_fn_free_database,
|
|
192
197
|
ubrn_uniffi_core_crypto_ffi_fn_free_credentialref: () => ubrn_uniffi_core_crypto_ffi_fn_free_credentialref,
|
|
@@ -201,6 +206,7 @@ __export(exports_wasm_bindgen, {
|
|
|
201
206
|
ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_new: () => ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_new,
|
|
202
207
|
ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_frombytes: () => ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_frombytes,
|
|
203
208
|
ubrn_uniffi_core_crypto_ffi_fn_constructor_welcome_new: () => ubrn_uniffi_core_crypto_ffi_fn_constructor_welcome_new,
|
|
209
|
+
ubrn_uniffi_core_crypto_ffi_fn_constructor_uuid_new: () => ubrn_uniffi_core_crypto_ffi_fn_constructor_uuid_new,
|
|
204
210
|
ubrn_uniffi_core_crypto_ffi_fn_constructor_secretkey_new: () => ubrn_uniffi_core_crypto_ffi_fn_constructor_secretkey_new,
|
|
205
211
|
ubrn_uniffi_core_crypto_ffi_fn_constructor_pkienvironment_new: () => ubrn_uniffi_core_crypto_ffi_fn_constructor_pkienvironment_new,
|
|
206
212
|
ubrn_uniffi_core_crypto_ffi_fn_constructor_keypackage_new: () => ubrn_uniffi_core_crypto_ffi_fn_constructor_keypackage_new,
|
|
@@ -208,6 +214,8 @@ __export(exports_wasm_bindgen, {
|
|
|
208
214
|
ubrn_uniffi_core_crypto_ffi_fn_constructor_externalsender_parse_public_key: () => ubrn_uniffi_core_crypto_ffi_fn_constructor_externalsender_parse_public_key,
|
|
209
215
|
ubrn_uniffi_core_crypto_ffi_fn_constructor_externalsender_parse_jwk: () => ubrn_uniffi_core_crypto_ffi_fn_constructor_externalsender_parse_jwk,
|
|
210
216
|
ubrn_uniffi_core_crypto_ffi_fn_constructor_externalsender_parse: () => ubrn_uniffi_core_crypto_ffi_fn_constructor_externalsender_parse,
|
|
217
|
+
ubrn_uniffi_core_crypto_ffi_fn_constructor_deviceid_new: () => ubrn_uniffi_core_crypto_ffi_fn_constructor_deviceid_new,
|
|
218
|
+
ubrn_uniffi_core_crypto_ffi_fn_constructor_deviceid_from_hex_string: () => ubrn_uniffi_core_crypto_ffi_fn_constructor_deviceid_from_hex_string,
|
|
211
219
|
ubrn_uniffi_core_crypto_ffi_fn_constructor_databasekey_new: () => ubrn_uniffi_core_crypto_ffi_fn_constructor_databasekey_new,
|
|
212
220
|
ubrn_uniffi_core_crypto_ffi_fn_constructor_database_open: () => ubrn_uniffi_core_crypto_ffi_fn_constructor_database_open,
|
|
213
221
|
ubrn_uniffi_core_crypto_ffi_fn_constructor_database_in_memory: () => ubrn_uniffi_core_crypto_ffi_fn_constructor_database_in_memory,
|
|
@@ -218,6 +226,7 @@ __export(exports_wasm_bindgen, {
|
|
|
218
226
|
ubrn_uniffi_core_crypto_ffi_fn_constructor_clientid_new: () => ubrn_uniffi_core_crypto_ffi_fn_constructor_clientid_new,
|
|
219
227
|
ubrn_uniffi_core_crypto_ffi_fn_clone_x509credentialacquisition: () => ubrn_uniffi_core_crypto_ffi_fn_clone_x509credentialacquisition,
|
|
220
228
|
ubrn_uniffi_core_crypto_ffi_fn_clone_welcome: () => ubrn_uniffi_core_crypto_ffi_fn_clone_welcome,
|
|
229
|
+
ubrn_uniffi_core_crypto_ffi_fn_clone_uuid: () => ubrn_uniffi_core_crypto_ffi_fn_clone_uuid,
|
|
221
230
|
ubrn_uniffi_core_crypto_ffi_fn_clone_secretkey: () => ubrn_uniffi_core_crypto_ffi_fn_clone_secretkey,
|
|
222
231
|
ubrn_uniffi_core_crypto_ffi_fn_clone_pkienvironmenthooks: () => ubrn_uniffi_core_crypto_ffi_fn_clone_pkienvironmenthooks,
|
|
223
232
|
ubrn_uniffi_core_crypto_ffi_fn_clone_pkienvironment: () => ubrn_uniffi_core_crypto_ffi_fn_clone_pkienvironment,
|
|
@@ -228,6 +237,7 @@ __export(exports_wasm_bindgen, {
|
|
|
228
237
|
ubrn_uniffi_core_crypto_ffi_fn_clone_groupinfo: () => ubrn_uniffi_core_crypto_ffi_fn_clone_groupinfo,
|
|
229
238
|
ubrn_uniffi_core_crypto_ffi_fn_clone_externalsender: () => ubrn_uniffi_core_crypto_ffi_fn_clone_externalsender,
|
|
230
239
|
ubrn_uniffi_core_crypto_ffi_fn_clone_epochobserver: () => ubrn_uniffi_core_crypto_ffi_fn_clone_epochobserver,
|
|
240
|
+
ubrn_uniffi_core_crypto_ffi_fn_clone_deviceid: () => ubrn_uniffi_core_crypto_ffi_fn_clone_deviceid,
|
|
231
241
|
ubrn_uniffi_core_crypto_ffi_fn_clone_databasekey: () => ubrn_uniffi_core_crypto_ffi_fn_clone_databasekey,
|
|
232
242
|
ubrn_uniffi_core_crypto_ffi_fn_clone_database: () => ubrn_uniffi_core_crypto_ffi_fn_clone_database,
|
|
233
243
|
ubrn_uniffi_core_crypto_ffi_fn_clone_credentialref: () => ubrn_uniffi_core_crypto_ffi_fn_clone_credentialref,
|
|
@@ -259,6 +269,8 @@ __export(exports_wasm_bindgen, {
|
|
|
259
269
|
ubrn_uniffi_core_crypto_ffi_checksum_method_historyobserver_history_client_created: () => ubrn_uniffi_core_crypto_ffi_checksum_method_historyobserver_history_client_created,
|
|
260
270
|
ubrn_uniffi_core_crypto_ffi_checksum_method_externalsender_serialize: () => ubrn_uniffi_core_crypto_ffi_checksum_method_externalsender_serialize,
|
|
261
271
|
ubrn_uniffi_core_crypto_ffi_checksum_method_epochobserver_epoch_changed: () => ubrn_uniffi_core_crypto_ffi_checksum_method_epochobserver_epoch_changed,
|
|
272
|
+
ubrn_uniffi_core_crypto_ffi_checksum_method_deviceid_to_u64: () => ubrn_uniffi_core_crypto_ffi_checksum_method_deviceid_to_u64,
|
|
273
|
+
ubrn_uniffi_core_crypto_ffi_checksum_method_deviceid_to_hex_string: () => ubrn_uniffi_core_crypto_ffi_checksum_method_deviceid_to_hex_string,
|
|
262
274
|
ubrn_uniffi_core_crypto_ffi_checksum_method_database_update_key: () => ubrn_uniffi_core_crypto_ffi_checksum_method_database_update_key,
|
|
263
275
|
ubrn_uniffi_core_crypto_ffi_checksum_method_database_get_location: () => ubrn_uniffi_core_crypto_ffi_checksum_method_database_get_location,
|
|
264
276
|
ubrn_uniffi_core_crypto_ffi_checksum_method_database_close: () => ubrn_uniffi_core_crypto_ffi_checksum_method_database_close,
|
|
@@ -370,6 +382,7 @@ __export(exports_wasm_bindgen, {
|
|
|
370
382
|
ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_new: () => ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_new,
|
|
371
383
|
ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_frombytes: () => ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_frombytes,
|
|
372
384
|
ubrn_uniffi_core_crypto_ffi_checksum_constructor_welcome_new: () => ubrn_uniffi_core_crypto_ffi_checksum_constructor_welcome_new,
|
|
385
|
+
ubrn_uniffi_core_crypto_ffi_checksum_constructor_uuid_new: () => ubrn_uniffi_core_crypto_ffi_checksum_constructor_uuid_new,
|
|
373
386
|
ubrn_uniffi_core_crypto_ffi_checksum_constructor_secretkey_new: () => ubrn_uniffi_core_crypto_ffi_checksum_constructor_secretkey_new,
|
|
374
387
|
ubrn_uniffi_core_crypto_ffi_checksum_constructor_pkienvironment_new: () => ubrn_uniffi_core_crypto_ffi_checksum_constructor_pkienvironment_new,
|
|
375
388
|
ubrn_uniffi_core_crypto_ffi_checksum_constructor_keypackage_new: () => ubrn_uniffi_core_crypto_ffi_checksum_constructor_keypackage_new,
|
|
@@ -377,6 +390,8 @@ __export(exports_wasm_bindgen, {
|
|
|
377
390
|
ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_public_key: () => ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_public_key,
|
|
378
391
|
ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_jwk: () => ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_jwk,
|
|
379
392
|
ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse: () => ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse,
|
|
393
|
+
ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_new: () => ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_new,
|
|
394
|
+
ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_from_hex_string: () => ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_from_hex_string,
|
|
380
395
|
ubrn_uniffi_core_crypto_ffi_checksum_constructor_databasekey_new: () => ubrn_uniffi_core_crypto_ffi_checksum_constructor_databasekey_new,
|
|
381
396
|
ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_open: () => ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_open,
|
|
382
397
|
ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_in_memory: () => ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_in_memory,
|
|
@@ -636,208 +651,189 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
636
651
|
CLOSURE_DTORS.register(real, state, state);
|
|
637
652
|
return real;
|
|
638
653
|
}
|
|
639
|
-
function
|
|
654
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_pkienvironment(handle, f_status_) {
|
|
640
655
|
_assertClass(f_status_, RustCallStatus);
|
|
641
|
-
const ret = wasm.
|
|
656
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_pkienvironment(handle, f_status_.__wbg_ptr);
|
|
642
657
|
return BigInt.asUintN(64, ret);
|
|
643
658
|
}
|
|
644
|
-
function
|
|
645
|
-
wasm.
|
|
646
|
-
}
|
|
647
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_method_historyobserver_history_client_created() {
|
|
648
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_historyobserver_history_client_created();
|
|
659
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_corecryptoffi_new() {
|
|
660
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_corecryptoffi_new();
|
|
649
661
|
return ret;
|
|
650
662
|
}
|
|
651
|
-
function
|
|
663
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_ne(ptr, other, f_status_) {
|
|
652
664
|
_assertClass(f_status_, RustCallStatus);
|
|
653
|
-
wasm.
|
|
665
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_ne(ptr, other, f_status_.__wbg_ptr);
|
|
666
|
+
return ret;
|
|
654
667
|
}
|
|
655
|
-
function
|
|
656
|
-
const
|
|
668
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_conversationid_new(bytes, f_status_) {
|
|
669
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
670
|
+
const len0 = WASM_VECTOR_LEN;
|
|
671
|
+
_assertClass(f_status_, RustCallStatus);
|
|
672
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_conversationid_new(ptr0, len0, f_status_.__wbg_ptr);
|
|
657
673
|
return BigInt.asUintN(64, ret);
|
|
658
674
|
}
|
|
659
|
-
function
|
|
660
|
-
const ret = wasm.
|
|
675
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_init(ptr) {
|
|
676
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_init(ptr);
|
|
661
677
|
return BigInt.asUintN(64, ret);
|
|
662
678
|
}
|
|
663
|
-
function
|
|
664
|
-
|
|
665
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_conversationid_uniffi_trait_eq_ne(ptr, other, f_status_.__wbg_ptr);
|
|
679
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_add_clients_to_conversation() {
|
|
680
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_add_clients_to_conversation();
|
|
666
681
|
return ret;
|
|
667
682
|
}
|
|
668
|
-
function
|
|
669
|
-
const ret = wasm.
|
|
670
|
-
return ret;
|
|
683
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_pkienvironment_new(hooks, database) {
|
|
684
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_pkienvironment_new(hooks, database);
|
|
685
|
+
return BigInt.asUintN(64, ret);
|
|
671
686
|
}
|
|
672
|
-
function
|
|
673
|
-
|
|
674
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_earliest_validity(ptr, f_status_.__wbg_ptr);
|
|
687
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_remove_credential(ptr, credential_ref) {
|
|
688
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_remove_credential(ptr, credential_ref);
|
|
675
689
|
return BigInt.asUintN(64, ret);
|
|
676
690
|
}
|
|
677
|
-
function
|
|
691
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_clientid_new(user_id, device_id, domain, f_status_) {
|
|
692
|
+
const ptr0 = passArray8ToWasm0(domain, wasm.__wbindgen_malloc);
|
|
693
|
+
const len0 = WASM_VECTOR_LEN;
|
|
678
694
|
_assertClass(f_status_, RustCallStatus);
|
|
679
|
-
const ret = wasm.
|
|
695
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_clientid_new(user_id, device_id, ptr0, len0, f_status_.__wbg_ptr);
|
|
680
696
|
return BigInt.asUintN(64, ret);
|
|
681
697
|
}
|
|
682
|
-
function
|
|
683
|
-
const ptr0 = passArray8ToWasm0(
|
|
698
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_fingerprint_local(ptr, session_id) {
|
|
699
|
+
const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
|
|
684
700
|
const len0 = WASM_VECTOR_LEN;
|
|
685
|
-
const ret = wasm.
|
|
701
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_fingerprint_local(ptr, ptr0, len0);
|
|
686
702
|
return BigInt.asUintN(64, ret);
|
|
687
703
|
}
|
|
688
|
-
function
|
|
689
|
-
wasm.
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_clientid_copy_bytes(ptr, f_status_.__wbg_ptr);
|
|
694
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
695
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
696
|
-
return v1;
|
|
704
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_mlstransport_prepare_for_transport(ptr, history_secret) {
|
|
705
|
+
const ptr0 = passArray8ToWasm0(history_secret, wasm.__wbindgen_malloc);
|
|
706
|
+
const len0 = WASM_VECTOR_LEN;
|
|
707
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_mlstransport_prepare_for_transport(ptr, ptr0, len0);
|
|
708
|
+
return BigInt.asUintN(64, ret);
|
|
697
709
|
}
|
|
698
|
-
function
|
|
699
|
-
const ret = wasm.
|
|
710
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_device_identities() {
|
|
711
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_device_identities();
|
|
700
712
|
return ret;
|
|
701
713
|
}
|
|
702
|
-
function
|
|
703
|
-
|
|
704
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_cipher_suite_default(f_status_.__wbg_ptr);
|
|
705
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
706
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
707
|
-
return v1;
|
|
714
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_poll_rust_buffer(handle, callback, callback_data) {
|
|
715
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_rust_buffer(handle, callback, callback_data);
|
|
708
716
|
}
|
|
709
|
-
function
|
|
710
|
-
const ptr0 = passArray8ToWasm0(
|
|
717
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_database_open(location, key) {
|
|
718
|
+
const ptr0 = passArray8ToWasm0(location, wasm.__wbindgen_malloc);
|
|
711
719
|
const len0 = WASM_VECTOR_LEN;
|
|
712
|
-
const ret = wasm.
|
|
720
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_database_open(ptr0, len0, key);
|
|
713
721
|
return BigInt.asUintN(64, ret);
|
|
714
722
|
}
|
|
715
|
-
function
|
|
716
|
-
const ptr0 = passArray8ToWasm0(jwk, wasm.__wbindgen_malloc);
|
|
717
|
-
const len0 = WASM_VECTOR_LEN;
|
|
723
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_keypackage(handle, f_status_) {
|
|
718
724
|
_assertClass(f_status_, RustCallStatus);
|
|
719
|
-
|
|
725
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_keypackage(handle, f_status_.__wbg_ptr);
|
|
726
|
+
}
|
|
727
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_mlstransport(handle, f_status_) {
|
|
728
|
+
_assertClass(f_status_, RustCallStatus);
|
|
729
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_mlstransport(handle, f_status_.__wbg_ptr);
|
|
720
730
|
return BigInt.asUintN(64, ret);
|
|
721
731
|
}
|
|
722
|
-
function
|
|
723
|
-
|
|
732
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_cancel_i8(handle) {
|
|
733
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_i8(handle);
|
|
734
|
+
}
|
|
735
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_free_rust_buffer(handle) {
|
|
736
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_rust_buffer(handle);
|
|
737
|
+
}
|
|
738
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_set_pki_environment() {
|
|
739
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_set_pki_environment();
|
|
724
740
|
return ret;
|
|
725
741
|
}
|
|
726
|
-
function
|
|
742
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_databasekey_uniffi_trait_eq_ne(ptr, other, f_status_) {
|
|
727
743
|
_assertClass(f_status_, RustCallStatus);
|
|
728
|
-
const ret = wasm.
|
|
744
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_databasekey_uniffi_trait_eq_ne(ptr, other, f_status_.__wbg_ptr);
|
|
729
745
|
return ret;
|
|
730
746
|
}
|
|
731
|
-
function
|
|
732
|
-
const ret = wasm.
|
|
747
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_conversation_exists(ptr, conversation_id) {
|
|
748
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_conversation_exists(ptr, conversation_id);
|
|
749
|
+
return BigInt.asUintN(64, ret);
|
|
750
|
+
}
|
|
751
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_signature_scheme() {
|
|
752
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_signature_scheme();
|
|
733
753
|
return ret;
|
|
734
754
|
}
|
|
735
|
-
function
|
|
736
|
-
const ret = wasm.
|
|
755
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_public_key() {
|
|
756
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_public_key();
|
|
737
757
|
return ret;
|
|
738
758
|
}
|
|
739
|
-
function
|
|
759
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_externalsender_uniffi_trait_eq_ne(ptr, other, f_status_) {
|
|
740
760
|
_assertClass(f_status_, RustCallStatus);
|
|
741
|
-
const ret = wasm.
|
|
742
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
743
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
744
|
-
return v1;
|
|
745
|
-
}
|
|
746
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_remove_credential() {
|
|
747
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_remove_credential();
|
|
761
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_externalsender_uniffi_trait_eq_ne(ptr, other, f_status_.__wbg_ptr);
|
|
748
762
|
return ret;
|
|
749
763
|
}
|
|
750
|
-
function
|
|
751
|
-
const ret = wasm.
|
|
764
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_credential() {
|
|
765
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_credential();
|
|
752
766
|
return ret;
|
|
753
767
|
}
|
|
754
|
-
function
|
|
755
|
-
const ret = wasm.
|
|
756
|
-
return ret;
|
|
768
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_conversation_epoch(ptr, conversation_id) {
|
|
769
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_conversation_epoch(ptr, conversation_id);
|
|
770
|
+
return BigInt.asUintN(64, ret);
|
|
757
771
|
}
|
|
758
|
-
function
|
|
759
|
-
wasm.
|
|
772
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_last_resort_prekey() {
|
|
773
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_last_resort_prekey();
|
|
774
|
+
return ret;
|
|
760
775
|
}
|
|
761
|
-
function
|
|
762
|
-
|
|
776
|
+
function ubrn_uniffi_core_crypto_ffi_fn_func_build_metadata(f_status_) {
|
|
777
|
+
_assertClass(f_status_, RustCallStatus);
|
|
778
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_build_metadata(f_status_.__wbg_ptr);
|
|
779
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
780
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
781
|
+
return v1;
|
|
763
782
|
}
|
|
764
|
-
function
|
|
765
|
-
const ptr0 = passArray8ToWasm0(
|
|
783
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_add_intermediate_cert(ptr, cert_pem) {
|
|
784
|
+
const ptr0 = passArray8ToWasm0(cert_pem, wasm.__wbindgen_malloc);
|
|
766
785
|
const len0 = WASM_VECTOR_LEN;
|
|
767
|
-
const
|
|
768
|
-
const len1 = WASM_VECTOR_LEN;
|
|
769
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_decrypt_safe(ptr, ptr0, len0, ptr1, len1);
|
|
786
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_add_intermediate_cert(ptr, ptr0, len0);
|
|
770
787
|
return BigInt.asUintN(64, ret);
|
|
771
788
|
}
|
|
772
|
-
function
|
|
773
|
-
wasm.
|
|
774
|
-
}
|
|
775
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_device_identities() {
|
|
776
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_device_identities();
|
|
789
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_welcome_serialize() {
|
|
790
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_welcome_serialize();
|
|
777
791
|
return ret;
|
|
778
792
|
}
|
|
779
|
-
function
|
|
780
|
-
const ret = wasm.
|
|
793
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_fingerprint(ptr) {
|
|
794
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_fingerprint(ptr);
|
|
781
795
|
return BigInt.asUintN(64, ret);
|
|
782
796
|
}
|
|
783
|
-
function
|
|
784
|
-
|
|
785
|
-
|
|
797
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_secretkey(handle, f_status_) {
|
|
798
|
+
_assertClass(f_status_, RustCallStatus);
|
|
799
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_secretkey(handle, f_status_.__wbg_ptr);
|
|
786
800
|
}
|
|
787
|
-
function
|
|
788
|
-
|
|
789
|
-
return BigInt.asUintN(64, ret);
|
|
801
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_poll_u32(handle, callback, callback_data) {
|
|
802
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_u32(handle, callback, callback_data);
|
|
790
803
|
}
|
|
791
|
-
function
|
|
792
|
-
const ret = wasm.
|
|
804
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_user_identities() {
|
|
805
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_user_identities();
|
|
793
806
|
return ret;
|
|
794
807
|
}
|
|
795
|
-
function
|
|
796
|
-
const ret = wasm.
|
|
808
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_init() {
|
|
809
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_init();
|
|
797
810
|
return ret;
|
|
798
811
|
}
|
|
799
|
-
function
|
|
800
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_process_welcome_message(ptr, welcome_message);
|
|
801
|
-
return BigInt.asUintN(64, ret);
|
|
802
|
-
}
|
|
803
|
-
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_conversation_exists(ptr, conversation_id) {
|
|
804
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_conversation_exists(ptr, conversation_id);
|
|
805
|
-
return BigInt.asUintN(64, ret);
|
|
806
|
-
}
|
|
807
|
-
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_is_history_sharing_enabled(ptr, conversation_id) {
|
|
808
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_is_history_sharing_enabled(ptr, conversation_id);
|
|
809
|
-
return BigInt.asUintN(64, ret);
|
|
810
|
-
}
|
|
811
|
-
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_add_credential(ptr, credential) {
|
|
812
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_add_credential(ptr, credential);
|
|
813
|
-
return BigInt.asUintN(64, ret);
|
|
814
|
-
}
|
|
815
|
-
function ubrn_uniffi_core_crypto_ffi_fn_func_cipher_suite_from_u16(discriminant, f_status_) {
|
|
812
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_corecryptocommand(handle, f_status_) {
|
|
816
813
|
_assertClass(f_status_, RustCallStatus);
|
|
817
|
-
|
|
818
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
819
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
820
|
-
return v1;
|
|
814
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_corecryptocommand(handle, f_status_.__wbg_ptr);
|
|
821
815
|
}
|
|
822
|
-
function
|
|
823
|
-
const ptr0 = passArray8ToWasm0(
|
|
816
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_add_trust_anchor(ptr, cert_pem) {
|
|
817
|
+
const ptr0 = passArray8ToWasm0(cert_pem, wasm.__wbindgen_malloc);
|
|
824
818
|
const len0 = WASM_VECTOR_LEN;
|
|
825
|
-
const
|
|
826
|
-
const len1 = WASM_VECTOR_LEN;
|
|
827
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_decrypt(ptr, ptr0, len0, ptr1, len1);
|
|
819
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_add_trust_anchor(ptr, ptr0, len0);
|
|
828
820
|
return BigInt.asUintN(64, ret);
|
|
829
821
|
}
|
|
830
|
-
function
|
|
831
|
-
|
|
832
|
-
const
|
|
833
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_core_crypto_history_client(ptr0, len0);
|
|
822
|
+
function ubrn_uniffi_core_crypto_ffi_fn_func_core_crypto_new(database, f_status_) {
|
|
823
|
+
_assertClass(f_status_, RustCallStatus);
|
|
824
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_core_crypto_new(database, f_status_.__wbg_ptr);
|
|
834
825
|
return BigInt.asUintN(64, ret);
|
|
835
826
|
}
|
|
836
|
-
function
|
|
837
|
-
const
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
827
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_func_core_crypto_history_client() {
|
|
828
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_core_crypto_history_client();
|
|
829
|
+
return ret;
|
|
830
|
+
}
|
|
831
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_export_secret_key() {
|
|
832
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_export_secret_key();
|
|
833
|
+
return ret;
|
|
834
|
+
}
|
|
835
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_cancel_f32(handle) {
|
|
836
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_f32(handle);
|
|
841
837
|
}
|
|
842
838
|
function ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_authenticate(ptr, idp, key_auth, acme_aud, acquisition_snapshot) {
|
|
843
839
|
const ptr0 = passArray8ToWasm0(idp, wasm.__wbindgen_malloc);
|
|
@@ -851,1462 +847,1640 @@ function ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_authenticate(
|
|
|
851
847
|
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_authenticate(ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
852
848
|
return BigInt.asUintN(64, ret);
|
|
853
849
|
}
|
|
854
|
-
function
|
|
855
|
-
|
|
856
|
-
const len0 = WASM_VECTOR_LEN;
|
|
857
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_add_clients_to_conversation(ptr, conversation_id, ptr0, len0);
|
|
858
|
-
return BigInt.asUintN(64, ret);
|
|
859
|
-
}
|
|
860
|
-
function ubrn_uniffi_core_crypto_ffi_fn_constructor_corecryptocontext_new(instance, f_status_) {
|
|
861
|
-
_assertClass(f_status_, RustCallStatus);
|
|
862
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_corecryptocontext_new(instance, f_status_.__wbg_ptr);
|
|
863
|
-
return BigInt.asUintN(64, ret);
|
|
850
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_poll_i32(handle, callback, callback_data) {
|
|
851
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_i32(handle, callback, callback_data);
|
|
864
852
|
}
|
|
865
|
-
function
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
return BigInt.asUintN(64, ret);
|
|
853
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_signature_scheme() {
|
|
854
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_signature_scheme();
|
|
855
|
+
return ret;
|
|
869
856
|
}
|
|
870
|
-
function
|
|
871
|
-
const ret = wasm.
|
|
857
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_external_sender() {
|
|
858
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_external_sender();
|
|
872
859
|
return ret;
|
|
873
860
|
}
|
|
874
|
-
function
|
|
861
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_groupinfo_new(bytes, f_status_) {
|
|
862
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
863
|
+
const len0 = WASM_VECTOR_LEN;
|
|
875
864
|
_assertClass(f_status_, RustCallStatus);
|
|
876
|
-
const ret = wasm.
|
|
865
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_groupinfo_new(ptr0, len0, f_status_.__wbg_ptr);
|
|
877
866
|
return BigInt.asUintN(64, ret);
|
|
878
867
|
}
|
|
879
|
-
function
|
|
880
|
-
|
|
881
|
-
const
|
|
868
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_reseed(ptr, seed) {
|
|
869
|
+
const ptr0 = passArray8ToWasm0(seed, wasm.__wbindgen_malloc);
|
|
870
|
+
const len0 = WASM_VECTOR_LEN;
|
|
871
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_reseed(ptr, ptr0, len0);
|
|
882
872
|
return BigInt.asUintN(64, ret);
|
|
883
873
|
}
|
|
884
|
-
function
|
|
885
|
-
|
|
886
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_build_metadata(f_status_.__wbg_ptr);
|
|
887
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
888
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
889
|
-
return v1;
|
|
874
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_free_i64(handle) {
|
|
875
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_i64(handle);
|
|
890
876
|
}
|
|
891
|
-
function
|
|
892
|
-
|
|
877
|
+
function ubrn_uniffi_core_crypto_ffi_fn_init_callback_vtable_pkienvironmenthooks(vtable) {
|
|
878
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_init_callback_vtable_pkienvironmenthooks(vtable);
|
|
879
|
+
}
|
|
880
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_poll_void(handle, callback, callback_data) {
|
|
881
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_void(handle, callback, callback_data);
|
|
882
|
+
}
|
|
883
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_credentials() {
|
|
884
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_credentials();
|
|
893
885
|
return ret;
|
|
894
886
|
}
|
|
895
|
-
function
|
|
896
|
-
const ret = wasm.
|
|
887
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_uuid_new() {
|
|
888
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_uuid_new();
|
|
897
889
|
return ret;
|
|
898
890
|
}
|
|
899
|
-
function
|
|
900
|
-
const ret = wasm.
|
|
891
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_fetch_backend_access_token() {
|
|
892
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_fetch_backend_access_token();
|
|
901
893
|
return ret;
|
|
902
894
|
}
|
|
903
|
-
function
|
|
904
|
-
const
|
|
905
|
-
const len0 = WASM_VECTOR_LEN;
|
|
906
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_remove_clients_from_conversation(ptr, conversation_id, ptr0, len0);
|
|
895
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_commit_pending_proposals(ptr, conversation_id) {
|
|
896
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_commit_pending_proposals(ptr, conversation_id);
|
|
907
897
|
return BigInt.asUintN(64, ret);
|
|
908
898
|
}
|
|
909
|
-
function
|
|
910
|
-
wasm.
|
|
899
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_e2ei_is_enabled() {
|
|
900
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_e2ei_is_enabled();
|
|
901
|
+
return ret;
|
|
911
902
|
}
|
|
912
|
-
function
|
|
913
|
-
|
|
903
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_keypackage(handle, f_status_) {
|
|
904
|
+
_assertClass(f_status_, RustCallStatus);
|
|
905
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_keypackage(handle, f_status_.__wbg_ptr);
|
|
914
906
|
return BigInt.asUintN(64, ret);
|
|
915
907
|
}
|
|
916
|
-
function
|
|
917
|
-
wasm.
|
|
918
|
-
}
|
|
919
|
-
function ubrn_uniffi_core_crypto_ffi_fn_constructor_database_open(location, key) {
|
|
920
|
-
const ptr0 = passArray8ToWasm0(location, wasm.__wbindgen_malloc);
|
|
908
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_from_message(ptr, session_id, envelope) {
|
|
909
|
+
const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
|
|
921
910
|
const len0 = WASM_VECTOR_LEN;
|
|
922
|
-
const
|
|
911
|
+
const ptr1 = passArray8ToWasm0(envelope, wasm.__wbindgen_malloc);
|
|
912
|
+
const len1 = WASM_VECTOR_LEN;
|
|
913
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_from_message(ptr, ptr0, len0, ptr1, len1);
|
|
923
914
|
return BigInt.asUintN(64, ret);
|
|
924
915
|
}
|
|
925
|
-
function
|
|
916
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_keypackage_new() {
|
|
917
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_keypackage_new();
|
|
918
|
+
return ret;
|
|
919
|
+
}
|
|
920
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_corecryptologger(handle, f_status_) {
|
|
926
921
|
_assertClass(f_status_, RustCallStatus);
|
|
927
|
-
const ret = wasm.
|
|
922
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_corecryptologger(handle, f_status_.__wbg_ptr);
|
|
923
|
+
return BigInt.asUintN(64, ret);
|
|
924
|
+
}
|
|
925
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_last_resort_prekey(ptr) {
|
|
926
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_last_resort_prekey(ptr);
|
|
927
|
+
return BigInt.asUintN(64, ret);
|
|
928
|
+
}
|
|
929
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_externalsender_serialize(ptr, f_status_) {
|
|
930
|
+
_assertClass(f_status_, RustCallStatus);
|
|
931
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_externalsender_serialize(ptr, f_status_.__wbg_ptr);
|
|
928
932
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
929
933
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
930
934
|
return v1;
|
|
931
935
|
}
|
|
932
|
-
function
|
|
933
|
-
const ret = wasm.
|
|
934
|
-
return ret;
|
|
935
|
-
}
|
|
936
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_method_mlstransport_send_commit_bundle() {
|
|
937
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_mlstransport_send_commit_bundle();
|
|
938
|
-
return ret;
|
|
939
|
-
}
|
|
940
|
-
function ubrn_uniffi_core_crypto_ffi_fn_clone_credential(handle, f_status_) {
|
|
941
|
-
_assertClass(f_status_, RustCallStatus);
|
|
942
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_credential(handle, f_status_.__wbg_ptr);
|
|
936
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_conversation_epoch(ptr, conversation_id) {
|
|
937
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_conversation_epoch(ptr, conversation_id);
|
|
943
938
|
return BigInt.asUintN(64, ret);
|
|
944
939
|
}
|
|
945
|
-
function
|
|
940
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_conversationid(handle, f_status_) {
|
|
946
941
|
_assertClass(f_status_, RustCallStatus);
|
|
947
|
-
wasm.
|
|
942
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_conversationid(handle, f_status_.__wbg_ptr);
|
|
948
943
|
}
|
|
949
|
-
function
|
|
950
|
-
|
|
944
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_corecryptoffi(handle, f_status_) {
|
|
945
|
+
_assertClass(f_status_, RustCallStatus);
|
|
946
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_corecryptoffi(handle, f_status_.__wbg_ptr);
|
|
951
947
|
return BigInt.asUintN(64, ret);
|
|
952
948
|
}
|
|
953
949
|
function ubrn_ffi_core_crypto_ffi_rust_future_complete_void(handle, f_status_) {
|
|
954
950
|
_assertClass(f_status_, RustCallStatus);
|
|
955
951
|
wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_void(handle, f_status_.__wbg_ptr);
|
|
956
952
|
}
|
|
957
|
-
function
|
|
953
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint() {
|
|
954
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint();
|
|
955
|
+
return ret;
|
|
956
|
+
}
|
|
957
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_hash_ref() {
|
|
958
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_hash_ref();
|
|
959
|
+
return ret;
|
|
960
|
+
}
|
|
961
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_credential_type(ptr, f_status_) {
|
|
958
962
|
_assertClass(f_status_, RustCallStatus);
|
|
959
|
-
const ret = wasm.
|
|
963
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_credential_type(ptr, f_status_.__wbg_ptr);
|
|
960
964
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
961
965
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
962
966
|
return v1;
|
|
963
967
|
}
|
|
964
|
-
function
|
|
965
|
-
wasm.
|
|
968
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_poll_u8(handle, callback, callback_data) {
|
|
969
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_u8(handle, callback, callback_data);
|
|
966
970
|
}
|
|
967
|
-
function
|
|
968
|
-
const ret = wasm.
|
|
971
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_trust_anchor() {
|
|
972
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_trust_anchor();
|
|
969
973
|
return ret;
|
|
970
974
|
}
|
|
971
|
-
function
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
}
|
|
975
|
-
function ubrn_uniffi_core_crypto_ffi_fn_constructor_database_in_memory(key) {
|
|
976
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_database_in_memory(key);
|
|
977
|
-
return BigInt.asUintN(64, ret);
|
|
978
|
-
}
|
|
979
|
-
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_data(ptr) {
|
|
980
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_data(ptr);
|
|
981
|
-
return BigInt.asUintN(64, ret);
|
|
982
|
-
}
|
|
983
|
-
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocommand_execute(ptr, context) {
|
|
984
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocommand_execute(ptr, context);
|
|
985
|
-
return BigInt.asUintN(64, ret);
|
|
975
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_keypackage_serialize() {
|
|
976
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_keypackage_serialize();
|
|
977
|
+
return ret;
|
|
986
978
|
}
|
|
987
|
-
function
|
|
988
|
-
const ret = wasm.
|
|
979
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_mlstransport_prepare_for_transport() {
|
|
980
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_mlstransport_prepare_for_transport();
|
|
989
981
|
return ret;
|
|
990
982
|
}
|
|
991
|
-
function
|
|
992
|
-
const ret = wasm.
|
|
993
|
-
return
|
|
983
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_pki_environment() {
|
|
984
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_pki_environment();
|
|
985
|
+
return ret;
|
|
994
986
|
}
|
|
995
|
-
function
|
|
996
|
-
const ret = wasm.
|
|
987
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_func_cipher_suite_from_u16() {
|
|
988
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_cipher_suite_from_u16();
|
|
997
989
|
return ret;
|
|
998
990
|
}
|
|
999
991
|
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_generate_key_package() {
|
|
1000
992
|
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_generate_key_package();
|
|
1001
993
|
return ret;
|
|
1002
994
|
}
|
|
1003
|
-
function
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
return BigInt.asUintN(64, ret);
|
|
995
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_hash_ref(ptr, f_status_) {
|
|
996
|
+
_assertClass(f_status_, RustCallStatus);
|
|
997
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_hash_ref(ptr, f_status_.__wbg_ptr);
|
|
998
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
999
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1000
|
+
return v1;
|
|
1010
1001
|
}
|
|
1011
|
-
function
|
|
1002
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_earliest_validity(ptr, f_status_) {
|
|
1012
1003
|
_assertClass(f_status_, RustCallStatus);
|
|
1013
|
-
const ret = wasm.
|
|
1014
|
-
return ret;
|
|
1004
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_earliest_validity(ptr, f_status_.__wbg_ptr);
|
|
1005
|
+
return BigInt.asUintN(64, ret);
|
|
1015
1006
|
}
|
|
1016
|
-
function
|
|
1017
|
-
const ret = wasm.
|
|
1007
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_database_close() {
|
|
1008
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_database_close();
|
|
1018
1009
|
return ret;
|
|
1019
1010
|
}
|
|
1020
|
-
function
|
|
1011
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_conversationid_uniffi_trait_eq_ne(ptr, other, f_status_) {
|
|
1021
1012
|
_assertClass(f_status_, RustCallStatus);
|
|
1022
|
-
const ret = wasm.
|
|
1023
|
-
return ret;
|
|
1024
|
-
}
|
|
1025
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_credentials() {
|
|
1026
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_credentials();
|
|
1013
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_conversationid_uniffi_trait_eq_ne(ptr, other, f_status_.__wbg_ptr);
|
|
1027
1014
|
return ret;
|
|
1028
1015
|
}
|
|
1029
|
-
function
|
|
1030
|
-
const ptr0 = passArray8ToWasm0(
|
|
1016
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_from_prekey(ptr, session_id, prekey) {
|
|
1017
|
+
const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
|
|
1031
1018
|
const len0 = WASM_VECTOR_LEN;
|
|
1032
|
-
const ptr1 = passArray8ToWasm0(
|
|
1019
|
+
const ptr1 = passArray8ToWasm0(prekey, wasm.__wbindgen_malloc);
|
|
1033
1020
|
const len1 = WASM_VECTOR_LEN;
|
|
1034
|
-
const ret = wasm.
|
|
1021
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_from_prekey(ptr, ptr0, len0, ptr1, len1);
|
|
1035
1022
|
return BigInt.asUintN(64, ret);
|
|
1036
1023
|
}
|
|
1037
|
-
function
|
|
1038
|
-
const
|
|
1024
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_session_save() {
|
|
1025
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_session_save();
|
|
1026
|
+
return ret;
|
|
1027
|
+
}
|
|
1028
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_e2ei_is_enabled(ptr, cipher_suite) {
|
|
1029
|
+
const ptr0 = passArray8ToWasm0(cipher_suite, wasm.__wbindgen_malloc);
|
|
1039
1030
|
const len0 = WASM_VECTOR_LEN;
|
|
1040
|
-
const ret = wasm.
|
|
1031
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_e2ei_is_enabled(ptr, ptr0, len0);
|
|
1041
1032
|
return BigInt.asUintN(64, ret);
|
|
1042
1033
|
}
|
|
1043
|
-
function
|
|
1044
|
-
|
|
1045
|
-
|
|
1034
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_credential_basic() {
|
|
1035
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_credential_basic();
|
|
1036
|
+
return ret;
|
|
1037
|
+
}
|
|
1038
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_get_external_sender(ptr, conversation_id) {
|
|
1039
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_get_external_sender(ptr, conversation_id);
|
|
1046
1040
|
return BigInt.asUintN(64, ret);
|
|
1047
1041
|
}
|
|
1048
|
-
function
|
|
1049
|
-
|
|
1042
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_credential(handle, f_status_) {
|
|
1043
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1044
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_credential(handle, f_status_.__wbg_ptr);
|
|
1045
|
+
return BigInt.asUintN(64, ret);
|
|
1050
1046
|
}
|
|
1051
|
-
function
|
|
1047
|
+
function ubrn_uniffi_core_crypto_ffi_fn_func_version(f_status_) {
|
|
1052
1048
|
_assertClass(f_status_, RustCallStatus);
|
|
1053
|
-
const ret = wasm.
|
|
1049
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_version(f_status_.__wbg_ptr);
|
|
1054
1050
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1055
1051
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1056
1052
|
return v1;
|
|
1057
1053
|
}
|
|
1058
|
-
function
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_new_prekey(ptr, prekey_id);
|
|
1054
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_historyobserver_history_client_created(ptr, conversation_id, secret) {
|
|
1055
|
+
const ptr0 = passArray8ToWasm0(secret, wasm.__wbindgen_malloc);
|
|
1056
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1057
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_historyobserver_history_client_created(ptr, conversation_id, ptr0, len0);
|
|
1063
1058
|
return BigInt.asUintN(64, ret);
|
|
1064
1059
|
}
|
|
1065
|
-
function
|
|
1066
|
-
const ret = wasm.
|
|
1060
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_conversationid_copy_bytes() {
|
|
1061
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_conversationid_copy_bytes();
|
|
1067
1062
|
return ret;
|
|
1068
1063
|
}
|
|
1069
|
-
function
|
|
1064
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_free_u8(handle) {
|
|
1065
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_u8(handle);
|
|
1066
|
+
}
|
|
1067
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_credentialref(handle, f_status_) {
|
|
1070
1068
|
_assertClass(f_status_, RustCallStatus);
|
|
1071
|
-
const ret = wasm.
|
|
1069
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_credentialref(handle, f_status_.__wbg_ptr);
|
|
1072
1070
|
return BigInt.asUintN(64, ret);
|
|
1073
1071
|
}
|
|
1074
|
-
function
|
|
1075
|
-
const ret = wasm.
|
|
1076
|
-
return ret
|
|
1072
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_conversation_credential(ptr, conversation_id) {
|
|
1073
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_conversation_credential(ptr, conversation_id);
|
|
1074
|
+
return BigInt.asUintN(64, ret);
|
|
1077
1075
|
}
|
|
1078
|
-
function
|
|
1079
|
-
wasm.
|
|
1076
|
+
function ubrn_uniffi_core_crypto_ffi_fn_init_callback_vtable_historyobserver(vtable) {
|
|
1077
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_init_callback_vtable_historyobserver(vtable);
|
|
1080
1078
|
}
|
|
1081
|
-
function
|
|
1082
|
-
|
|
1079
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_is_valid(ptr, f_status_) {
|
|
1080
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1081
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_is_valid(ptr, f_status_.__wbg_ptr);
|
|
1082
|
+
return ret;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1085
|
-
const
|
|
1084
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_e2ei_is_enabled(ptr, cipher_suite) {
|
|
1085
|
+
const ptr0 = passArray8ToWasm0(cipher_suite, wasm.__wbindgen_malloc);
|
|
1086
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1087
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_e2ei_is_enabled(ptr, ptr0, len0);
|
|
1086
1088
|
return BigInt.asUintN(64, ret);
|
|
1087
1089
|
}
|
|
1088
|
-
function
|
|
1089
|
-
|
|
1090
|
-
|
|
1090
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_data() {
|
|
1091
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_data();
|
|
1092
|
+
return ret;
|
|
1091
1093
|
}
|
|
1092
|
-
function
|
|
1093
|
-
const ret = wasm.
|
|
1094
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_in_memory() {
|
|
1095
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_in_memory();
|
|
1094
1096
|
return ret;
|
|
1095
1097
|
}
|
|
1096
|
-
function
|
|
1097
|
-
wasm.
|
|
1098
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_cipher_suite() {
|
|
1099
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_cipher_suite();
|
|
1100
|
+
return ret;
|
|
1098
1101
|
}
|
|
1099
|
-
function
|
|
1102
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_eq(ptr, other, f_status_) {
|
|
1100
1103
|
_assertClass(f_status_, RustCallStatus);
|
|
1101
|
-
const ret = wasm.
|
|
1104
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_eq(ptr, other, f_status_.__wbg_ptr);
|
|
1102
1105
|
return ret;
|
|
1103
1106
|
}
|
|
1104
|
-
function
|
|
1105
|
-
wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_u32(handle);
|
|
1106
|
-
}
|
|
1107
|
-
function ubrn_uniffi_core_crypto_ffi_fn_clone_groupinfo(handle, f_status_) {
|
|
1107
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_conversationid_uniffi_trait_hash(ptr, f_status_) {
|
|
1108
1108
|
_assertClass(f_status_, RustCallStatus);
|
|
1109
|
-
const ret = wasm.
|
|
1109
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_conversationid_uniffi_trait_hash(ptr, f_status_.__wbg_ptr);
|
|
1110
1110
|
return BigInt.asUintN(64, ret);
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1116
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1117
|
-
return v1;
|
|
1112
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_proteus_fingerprint_remote() {
|
|
1113
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_proteus_fingerprint_remote();
|
|
1114
|
+
return ret;
|
|
1118
1115
|
}
|
|
1119
|
-
function
|
|
1120
|
-
|
|
1121
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_eq_eq(ptr, other, f_status_.__wbg_ptr);
|
|
1116
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_type() {
|
|
1117
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_type();
|
|
1122
1118
|
return ret;
|
|
1123
1119
|
}
|
|
1124
|
-
function
|
|
1125
|
-
const
|
|
1126
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1127
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_fetch_backend_access_token(ptr, ptr0, len0);
|
|
1120
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_database_in_memory(key) {
|
|
1121
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_database_in_memory(key);
|
|
1128
1122
|
return BigInt.asUintN(64, ret);
|
|
1129
1123
|
}
|
|
1130
|
-
function
|
|
1131
|
-
const
|
|
1132
|
-
|
|
1133
|
-
const ptr1 = passArray8ToWasm0(plaintext, wasm.__wbindgen_malloc);
|
|
1134
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1135
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_encrypt_batched(ptr, ptr0, len0, ptr1, len1);
|
|
1136
|
-
return BigInt.asUintN(64, ret);
|
|
1124
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_historyobserver_history_client_created() {
|
|
1125
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_historyobserver_history_client_created();
|
|
1126
|
+
return ret;
|
|
1137
1127
|
}
|
|
1138
|
-
function
|
|
1139
|
-
|
|
1140
|
-
return BigInt.asUintN(64, ret);
|
|
1128
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_poll_f64(handle, callback, callback_data) {
|
|
1129
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_f64(handle, callback, callback_data);
|
|
1141
1130
|
}
|
|
1142
|
-
function
|
|
1143
|
-
const ret = wasm.
|
|
1131
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_session_from_message() {
|
|
1132
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_session_from_message();
|
|
1144
1133
|
return ret;
|
|
1145
1134
|
}
|
|
1146
|
-
function
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1150
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1151
|
-
return v1;
|
|
1135
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_transaction_ffi() {
|
|
1136
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_transaction_ffi();
|
|
1137
|
+
return ret;
|
|
1152
1138
|
}
|
|
1153
|
-
function
|
|
1154
|
-
const ret = wasm.
|
|
1139
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_export_secret_key(ptr, conversation_id, key_length) {
|
|
1140
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_export_secret_key(ptr, conversation_id, key_length);
|
|
1141
|
+
return BigInt.asUintN(64, ret);
|
|
1142
|
+
}
|
|
1143
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_key_packages(ptr) {
|
|
1144
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_key_packages(ptr);
|
|
1155
1145
|
return BigInt.asUintN(64, ret);
|
|
1156
1146
|
}
|
|
1157
1147
|
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint_local() {
|
|
1158
1148
|
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint_local();
|
|
1159
1149
|
return ret;
|
|
1160
1150
|
}
|
|
1161
|
-
function
|
|
1162
|
-
|
|
1151
|
+
function ubrn_uniffi_core_crypto_ffi_fn_init_callback_vtable_mlstransport(vtable) {
|
|
1152
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_init_callback_vtable_mlstransport(vtable);
|
|
1153
|
+
}
|
|
1154
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_proteus_fingerprint(ptr) {
|
|
1155
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_proteus_fingerprint(ptr);
|
|
1156
|
+
return BigInt.asUintN(64, ret);
|
|
1157
|
+
}
|
|
1158
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_proteus_fingerprint_local() {
|
|
1159
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_proteus_fingerprint_local();
|
|
1163
1160
|
return ret;
|
|
1164
1161
|
}
|
|
1165
|
-
function
|
|
1166
|
-
const ret = wasm.
|
|
1162
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_authenticate() {
|
|
1163
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_authenticate();
|
|
1167
1164
|
return ret;
|
|
1168
1165
|
}
|
|
1169
|
-
function
|
|
1166
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_display(ptr, f_status_) {
|
|
1170
1167
|
_assertClass(f_status_, RustCallStatus);
|
|
1171
|
-
const ret = wasm.
|
|
1168
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_display(ptr, f_status_.__wbg_ptr);
|
|
1169
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1170
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1171
|
+
return v1;
|
|
1172
|
+
}
|
|
1173
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_cipher_suite() {
|
|
1174
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_cipher_suite();
|
|
1172
1175
|
return ret;
|
|
1173
1176
|
}
|
|
1174
|
-
function
|
|
1175
|
-
|
|
1177
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_complete_i16(handle, f_status_) {
|
|
1178
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1179
|
+
const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_i16(handle, f_status_.__wbg_ptr);
|
|
1176
1180
|
return ret;
|
|
1177
1181
|
}
|
|
1178
|
-
function
|
|
1179
|
-
const ptr0 = passArray8ToWasm0(
|
|
1182
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_decrypt_message(ptr, conversation_id, payload) {
|
|
1183
|
+
const ptr0 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
|
|
1180
1184
|
const len0 = WASM_VECTOR_LEN;
|
|
1181
|
-
const ret = wasm.
|
|
1185
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_decrypt_message(ptr, conversation_id, ptr0, len0);
|
|
1182
1186
|
return BigInt.asUintN(64, ret);
|
|
1183
1187
|
}
|
|
1184
|
-
function
|
|
1185
|
-
|
|
1186
|
-
wasm.ubrn_uniffi_core_crypto_ffi_fn_func_set_logger(logger, f_status_.__wbg_ptr);
|
|
1187
|
-
}
|
|
1188
|
-
function ubrn_ffi_core_crypto_ffi_rust_future_complete_i32(handle, f_status_) {
|
|
1189
|
-
_assertClass(f_status_, RustCallStatus);
|
|
1190
|
-
const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_i32(handle, f_status_.__wbg_ptr);
|
|
1191
|
-
return ret;
|
|
1192
|
-
}
|
|
1193
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_jwk() {
|
|
1194
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_jwk();
|
|
1188
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_http_request() {
|
|
1189
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_http_request();
|
|
1195
1190
|
return ret;
|
|
1196
1191
|
}
|
|
1197
|
-
function
|
|
1192
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_public_key_hash(ptr, f_status_) {
|
|
1198
1193
|
_assertClass(f_status_, RustCallStatus);
|
|
1199
|
-
const ret = wasm.
|
|
1194
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_public_key_hash(ptr, f_status_.__wbg_ptr);
|
|
1200
1195
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1201
1196
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1202
1197
|
return v1;
|
|
1203
1198
|
}
|
|
1204
|
-
function
|
|
1199
|
+
function ubrn_uniffi_core_crypto_ffi_fn_func_proteus_fingerprint_prekeybundle_ffi(prekey, f_status_) {
|
|
1200
|
+
const ptr0 = passArray8ToWasm0(prekey, wasm.__wbindgen_malloc);
|
|
1201
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1205
1202
|
_assertClass(f_status_, RustCallStatus);
|
|
1206
|
-
const ret = wasm.
|
|
1203
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_proteus_fingerprint_prekeybundle_ffi(ptr0, len0, f_status_.__wbg_ptr);
|
|
1204
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1205
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1206
|
+
return v2;
|
|
1207
|
+
}
|
|
1208
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_database_close(ptr) {
|
|
1209
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_database_close(ptr);
|
|
1210
|
+
return BigInt.asUintN(64, ret);
|
|
1211
|
+
}
|
|
1212
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_cancel_i64(handle) {
|
|
1213
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_i64(handle);
|
|
1214
|
+
}
|
|
1215
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_clientid_copy_bytes(ptr, f_status_) {
|
|
1216
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1217
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_clientid_copy_bytes(ptr, f_status_.__wbg_ptr);
|
|
1207
1218
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1208
1219
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1209
1220
|
return v1;
|
|
1210
1221
|
}
|
|
1211
|
-
function
|
|
1212
|
-
const ret = wasm.
|
|
1222
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_conversation_state() {
|
|
1223
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_conversation_state();
|
|
1213
1224
|
return ret;
|
|
1214
1225
|
}
|
|
1215
|
-
function
|
|
1216
|
-
|
|
1217
|
-
|
|
1226
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_x509credentialacquisition(handle, f_status_) {
|
|
1227
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1228
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_x509credentialacquisition(handle, f_status_.__wbg_ptr);
|
|
1229
|
+
return BigInt.asUintN(64, ret);
|
|
1218
1230
|
}
|
|
1219
|
-
function
|
|
1231
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_uuid_new(uuid, f_status_) {
|
|
1232
|
+
const ptr0 = passArray8ToWasm0(uuid, wasm.__wbindgen_malloc);
|
|
1233
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1220
1234
|
_assertClass(f_status_, RustCallStatus);
|
|
1221
|
-
wasm.
|
|
1235
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_uuid_new(ptr0, len0, f_status_.__wbg_ptr);
|
|
1236
|
+
return BigInt.asUintN(64, ret);
|
|
1222
1237
|
}
|
|
1223
|
-
function
|
|
1224
|
-
const
|
|
1225
|
-
|
|
1238
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_set_data(ptr, data) {
|
|
1239
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
1240
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1241
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_set_data(ptr, ptr0, len0);
|
|
1242
|
+
return BigInt.asUintN(64, ret);
|
|
1226
1243
|
}
|
|
1227
|
-
function
|
|
1228
|
-
const ret = wasm.
|
|
1244
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_add_credential() {
|
|
1245
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_add_credential();
|
|
1229
1246
|
return ret;
|
|
1230
1247
|
}
|
|
1231
|
-
function
|
|
1232
|
-
const ret = wasm.
|
|
1248
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_get_backend_nonce(ptr) {
|
|
1249
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_get_backend_nonce(ptr);
|
|
1250
|
+
return BigInt.asUintN(64, ret);
|
|
1251
|
+
}
|
|
1252
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_proteus_fingerprint_remote(ptr, session_id) {
|
|
1253
|
+
const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
|
|
1254
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1255
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_proteus_fingerprint_remote(ptr, ptr0, len0);
|
|
1256
|
+
return BigInt.asUintN(64, ret);
|
|
1257
|
+
}
|
|
1258
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_historyobserver(handle, f_status_) {
|
|
1259
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1260
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_historyobserver(handle, f_status_.__wbg_ptr);
|
|
1261
|
+
return BigInt.asUintN(64, ret);
|
|
1262
|
+
}
|
|
1263
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_encrypt() {
|
|
1264
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_encrypt();
|
|
1233
1265
|
return ret;
|
|
1234
1266
|
}
|
|
1235
|
-
function
|
|
1236
|
-
const ret = wasm.
|
|
1267
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_enable_history_sharing() {
|
|
1268
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_enable_history_sharing();
|
|
1237
1269
|
return ret;
|
|
1238
1270
|
}
|
|
1239
|
-
function
|
|
1240
|
-
|
|
1241
|
-
|
|
1271
|
+
function ubrn_uniffi_core_crypto_ffi_fn_func_set_logger(logger, f_status_) {
|
|
1272
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1273
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_func_set_logger(logger, f_status_.__wbg_ptr);
|
|
1242
1274
|
}
|
|
1243
|
-
function
|
|
1244
|
-
|
|
1275
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_database(handle, f_status_) {
|
|
1276
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1277
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_database(handle, f_status_.__wbg_ptr);
|
|
1278
|
+
}
|
|
1279
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_complete_u64(handle, f_status_) {
|
|
1280
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1281
|
+
const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_u64(handle, f_status_.__wbg_ptr);
|
|
1245
1282
|
return BigInt.asUintN(64, ret);
|
|
1246
1283
|
}
|
|
1247
|
-
function
|
|
1284
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_databasekey(handle, f_status_) {
|
|
1248
1285
|
_assertClass(f_status_, RustCallStatus);
|
|
1249
|
-
wasm.
|
|
1286
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_databasekey(handle, f_status_.__wbg_ptr);
|
|
1250
1287
|
}
|
|
1251
|
-
function
|
|
1252
|
-
const ret = wasm.
|
|
1288
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_epochobserver_epoch_changed(ptr, conversation_id, epoch) {
|
|
1289
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_epochobserver_epoch_changed(ptr, conversation_id, epoch);
|
|
1290
|
+
return BigInt.asUintN(64, ret);
|
|
1291
|
+
}
|
|
1292
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_register_history_observer(ptr, history_observer) {
|
|
1293
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_register_history_observer(ptr, history_observer);
|
|
1294
|
+
return BigInt.asUintN(64, ret);
|
|
1295
|
+
}
|
|
1296
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_external_sender() {
|
|
1297
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_external_sender();
|
|
1253
1298
|
return ret;
|
|
1254
1299
|
}
|
|
1255
|
-
function
|
|
1256
|
-
const ret = wasm.
|
|
1300
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_wipe_conversation(ptr, conversation_id) {
|
|
1301
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_wipe_conversation(ptr, conversation_id);
|
|
1302
|
+
return BigInt.asUintN(64, ret);
|
|
1303
|
+
}
|
|
1304
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_new_prekey() {
|
|
1305
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_new_prekey();
|
|
1306
|
+
return ret;
|
|
1307
|
+
}
|
|
1308
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_clientid(handle, f_status_) {
|
|
1309
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1310
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_clientid(handle, f_status_.__wbg_ptr);
|
|
1257
1311
|
return BigInt.asUintN(64, ret);
|
|
1258
1312
|
}
|
|
1259
|
-
function
|
|
1260
|
-
const ret = wasm.
|
|
1313
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_client_ids(ptr, conversation_id) {
|
|
1314
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_client_ids(ptr, conversation_id);
|
|
1315
|
+
return BigInt.asUintN(64, ret);
|
|
1316
|
+
}
|
|
1317
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_new_prekey_auto() {
|
|
1318
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_new_prekey_auto();
|
|
1319
|
+
return ret;
|
|
1320
|
+
}
|
|
1321
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_cancel_i16(handle) {
|
|
1322
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_i16(handle);
|
|
1323
|
+
}
|
|
1324
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_conversation_cipher_suite() {
|
|
1325
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_conversation_cipher_suite();
|
|
1261
1326
|
return ret;
|
|
1262
1327
|
}
|
|
1263
|
-
function
|
|
1264
|
-
const ptr0 = passArray8ToWasm0(
|
|
1328
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_externalsender_parse_public_key(key, signature_scheme, f_status_) {
|
|
1329
|
+
const ptr0 = passArray8ToWasm0(key, wasm.__wbindgen_malloc);
|
|
1265
1330
|
const len0 = WASM_VECTOR_LEN;
|
|
1266
|
-
const
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_export_secret_key(ptr, conversation_id, key_length);
|
|
1331
|
+
const ptr1 = passArray8ToWasm0(signature_scheme, wasm.__wbindgen_malloc);
|
|
1332
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1333
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1334
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_externalsender_parse_public_key(ptr0, len0, ptr1, len1, f_status_.__wbg_ptr);
|
|
1271
1335
|
return BigInt.asUintN(64, ret);
|
|
1272
1336
|
}
|
|
1273
|
-
function
|
|
1274
|
-
wasm.
|
|
1337
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_epochobserver_epoch_changed() {
|
|
1338
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_epochobserver_epoch_changed();
|
|
1339
|
+
return ret;
|
|
1275
1340
|
}
|
|
1276
|
-
function
|
|
1341
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_signature_scheme(ptr, f_status_) {
|
|
1277
1342
|
_assertClass(f_status_, RustCallStatus);
|
|
1278
|
-
const ret = wasm.
|
|
1343
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_signature_scheme(ptr, f_status_.__wbg_ptr);
|
|
1279
1344
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1280
1345
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1281
1346
|
return v1;
|
|
1282
1347
|
}
|
|
1283
|
-
function
|
|
1284
|
-
const ptr0 = passArray8ToWasm0(user_id, wasm.__wbindgen_malloc);
|
|
1285
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1286
|
-
const ptr1 = passArray8ToWasm0(device_id, wasm.__wbindgen_malloc);
|
|
1287
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1288
|
-
const ptr2 = passArray8ToWasm0(domain, wasm.__wbindgen_malloc);
|
|
1289
|
-
const len2 = WASM_VECTOR_LEN;
|
|
1348
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_credentialref(handle, f_status_) {
|
|
1290
1349
|
_assertClass(f_status_, RustCallStatus);
|
|
1291
|
-
|
|
1292
|
-
return BigInt.asUintN(64, ret);
|
|
1350
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_credentialref(handle, f_status_.__wbg_ptr);
|
|
1293
1351
|
}
|
|
1294
|
-
function
|
|
1295
|
-
|
|
1352
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_complete_u32(handle, f_status_) {
|
|
1353
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1354
|
+
const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_u32(handle, f_status_.__wbg_ptr);
|
|
1355
|
+
return ret >>> 0;
|
|
1296
1356
|
}
|
|
1297
|
-
function
|
|
1298
|
-
wasm.
|
|
1357
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_func_version() {
|
|
1358
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_version();
|
|
1359
|
+
return ret;
|
|
1299
1360
|
}
|
|
1300
|
-
function
|
|
1301
|
-
const ret = wasm.
|
|
1361
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_is_history_sharing_enabled() {
|
|
1362
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_is_history_sharing_enabled();
|
|
1302
1363
|
return ret;
|
|
1303
1364
|
}
|
|
1304
|
-
function
|
|
1305
|
-
|
|
1365
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_databasekey(handle, f_status_) {
|
|
1366
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1367
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_databasekey(handle, f_status_.__wbg_ptr);
|
|
1368
|
+
return BigInt.asUintN(64, ret);
|
|
1369
|
+
}
|
|
1370
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_encrypt(ptr, session_id, plaintext) {
|
|
1371
|
+
const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
|
|
1306
1372
|
const len0 = WASM_VECTOR_LEN;
|
|
1307
|
-
const ptr1 = passArray8ToWasm0(
|
|
1373
|
+
const ptr1 = passArray8ToWasm0(plaintext, wasm.__wbindgen_malloc);
|
|
1308
1374
|
const len1 = WASM_VECTOR_LEN;
|
|
1309
|
-
const
|
|
1310
|
-
|
|
1311
|
-
_assertClass(f_status_, RustCallStatus);
|
|
1312
|
-
wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptologger_log(ptr, ptr0, len0, ptr1, len1, ptr2, len2, f_status_.__wbg_ptr);
|
|
1375
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_encrypt(ptr, ptr0, len0, ptr1, len1);
|
|
1376
|
+
return BigInt.asUintN(64, ret);
|
|
1313
1377
|
}
|
|
1314
|
-
function
|
|
1378
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_e2ei_conversation_state(ptr, conversation_id) {
|
|
1379
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_e2ei_conversation_state(ptr, conversation_id);
|
|
1380
|
+
return BigInt.asUintN(64, ret);
|
|
1381
|
+
}
|
|
1382
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_u64(ptr, f_status_) {
|
|
1315
1383
|
_assertClass(f_status_, RustCallStatus);
|
|
1316
|
-
const ret = wasm.
|
|
1384
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_u64(ptr, f_status_.__wbg_ptr);
|
|
1317
1385
|
return BigInt.asUintN(64, ret);
|
|
1318
1386
|
}
|
|
1319
|
-
function
|
|
1387
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_uniffi_trait_debug(ptr, f_status_) {
|
|
1320
1388
|
_assertClass(f_status_, RustCallStatus);
|
|
1321
|
-
const ret = wasm.
|
|
1389
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_uniffi_trait_debug(ptr, f_status_.__wbg_ptr);
|
|
1322
1390
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1323
1391
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1324
1392
|
return v1;
|
|
1325
1393
|
}
|
|
1326
|
-
function
|
|
1394
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_key_packages() {
|
|
1395
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_key_packages();
|
|
1396
|
+
return ret;
|
|
1397
|
+
}
|
|
1398
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_decrypt(ptr, session_id, ciphertext) {
|
|
1399
|
+
const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
|
|
1400
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1401
|
+
const ptr1 = passArray8ToWasm0(ciphertext, wasm.__wbindgen_malloc);
|
|
1402
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1403
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_decrypt(ptr, ptr0, len0, ptr1, len1);
|
|
1404
|
+
return BigInt.asUintN(64, ret);
|
|
1405
|
+
}
|
|
1406
|
+
function ubrn_uniffi_core_crypto_ffi_fn_init_callback_vtable_epochobserver(vtable) {
|
|
1407
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_init_callback_vtable_epochobserver(vtable);
|
|
1408
|
+
}
|
|
1409
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_cancel_u16(handle) {
|
|
1410
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_u16(handle);
|
|
1411
|
+
}
|
|
1412
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_enable_history_sharing(ptr, conversation_id) {
|
|
1413
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_enable_history_sharing(ptr, conversation_id);
|
|
1414
|
+
return BigInt.asUintN(64, ret);
|
|
1415
|
+
}
|
|
1416
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_corecryptocontext(handle, f_status_) {
|
|
1327
1417
|
_assertClass(f_status_, RustCallStatus);
|
|
1328
|
-
const ret = wasm.
|
|
1418
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_corecryptocontext(handle, f_status_.__wbg_ptr);
|
|
1329
1419
|
return BigInt.asUintN(64, ret);
|
|
1330
1420
|
}
|
|
1331
|
-
function
|
|
1332
|
-
const ret = wasm.
|
|
1421
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_encrypt_batched() {
|
|
1422
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_encrypt_batched();
|
|
1333
1423
|
return ret;
|
|
1334
1424
|
}
|
|
1335
|
-
function
|
|
1336
|
-
|
|
1337
|
-
return ret;
|
|
1425
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_poll_i16(handle, callback, callback_data) {
|
|
1426
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_i16(handle, callback, callback_data);
|
|
1338
1427
|
}
|
|
1339
|
-
function
|
|
1340
|
-
|
|
1428
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_corecryptocontext(handle, f_status_) {
|
|
1429
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1430
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_corecryptocontext(handle, f_status_.__wbg_ptr);
|
|
1431
|
+
}
|
|
1432
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_epoch() {
|
|
1433
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_epoch();
|
|
1341
1434
|
return ret;
|
|
1342
1435
|
}
|
|
1343
|
-
function
|
|
1436
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_pkienvironment(handle, f_status_) {
|
|
1344
1437
|
_assertClass(f_status_, RustCallStatus);
|
|
1345
|
-
|
|
1438
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_pkienvironment(handle, f_status_.__wbg_ptr);
|
|
1439
|
+
}
|
|
1440
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_cancel_u64(handle) {
|
|
1441
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_u64(handle);
|
|
1442
|
+
}
|
|
1443
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_free_f64(handle) {
|
|
1444
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_f64(handle);
|
|
1445
|
+
}
|
|
1446
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_hex_string(ptr, f_status_) {
|
|
1447
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1448
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_hex_string(ptr, f_status_.__wbg_ptr);
|
|
1346
1449
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1347
1450
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1348
1451
|
return v1;
|
|
1349
1452
|
}
|
|
1350
|
-
function
|
|
1351
|
-
|
|
1352
|
-
const
|
|
1353
|
-
|
|
1453
|
+
function ubrn_uniffi_core_crypto_ffi_fn_func_migrate_database_key_type_to_bytes(path, old_key, new_key) {
|
|
1454
|
+
const ptr0 = passArray8ToWasm0(path, wasm.__wbindgen_malloc);
|
|
1455
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1456
|
+
const ptr1 = passArray8ToWasm0(old_key, wasm.__wbindgen_malloc);
|
|
1457
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1458
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_migrate_database_key_type_to_bytes(ptr0, len0, ptr1, len1, new_key);
|
|
1459
|
+
return BigInt.asUintN(64, ret);
|
|
1354
1460
|
}
|
|
1355
|
-
function
|
|
1356
|
-
const ret = wasm.
|
|
1461
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_intermediate_cert() {
|
|
1462
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_intermediate_cert();
|
|
1357
1463
|
return ret;
|
|
1358
1464
|
}
|
|
1359
|
-
function
|
|
1465
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_keypackageref(handle, f_status_) {
|
|
1360
1466
|
_assertClass(f_status_, RustCallStatus);
|
|
1361
|
-
|
|
1467
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_keypackageref(handle, f_status_.__wbg_ptr);
|
|
1468
|
+
}
|
|
1469
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_new_from_credential_ref() {
|
|
1470
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_new_from_credential_ref();
|
|
1362
1471
|
return ret;
|
|
1363
1472
|
}
|
|
1364
|
-
function
|
|
1365
|
-
|
|
1473
|
+
function ubrn_uniffi_core_crypto_ffi_fn_init_callback_vtable_corecryptologger(vtable) {
|
|
1474
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_init_callback_vtable_corecryptologger(vtable);
|
|
1475
|
+
}
|
|
1476
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_externalsender_parse(key, signature_scheme, f_status_) {
|
|
1477
|
+
const ptr0 = passArray8ToWasm0(key, wasm.__wbindgen_malloc);
|
|
1366
1478
|
const len0 = WASM_VECTOR_LEN;
|
|
1479
|
+
const ptr1 = passArray8ToWasm0(signature_scheme, wasm.__wbindgen_malloc);
|
|
1480
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1367
1481
|
_assertClass(f_status_, RustCallStatus);
|
|
1368
|
-
const ret = wasm.
|
|
1482
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_externalsender_parse(ptr0, len0, ptr1, len1, f_status_.__wbg_ptr);
|
|
1369
1483
|
return BigInt.asUintN(64, ret);
|
|
1370
1484
|
}
|
|
1371
|
-
function
|
|
1372
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_reseed();
|
|
1373
|
-
return ret;
|
|
1374
|
-
}
|
|
1375
|
-
function ubrn_uniffi_core_crypto_ffi_fn_clone_pkienvironment(handle, f_status_) {
|
|
1485
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_signature_scheme(ptr, f_status_) {
|
|
1376
1486
|
_assertClass(f_status_, RustCallStatus);
|
|
1377
|
-
const ret = wasm.
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_migrate_database_key_type_to_bytes();
|
|
1382
|
-
return ret;
|
|
1487
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_signature_scheme(ptr, f_status_.__wbg_ptr);
|
|
1488
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1489
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1490
|
+
return v1;
|
|
1383
1491
|
}
|
|
1384
|
-
function
|
|
1492
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_hash(ptr, f_status_) {
|
|
1385
1493
|
_assertClass(f_status_, RustCallStatus);
|
|
1386
|
-
const ret = wasm.
|
|
1387
|
-
return ret;
|
|
1494
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_hash(ptr, f_status_.__wbg_ptr);
|
|
1495
|
+
return BigInt.asUintN(64, ret);
|
|
1388
1496
|
}
|
|
1389
|
-
function
|
|
1390
|
-
const ptr0 = passArray8ToWasm0(config, wasm.__wbindgen_malloc);
|
|
1391
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1497
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_externalsender(handle, f_status_) {
|
|
1392
1498
|
_assertClass(f_status_, RustCallStatus);
|
|
1393
|
-
const ret = wasm.
|
|
1499
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_externalsender(handle, f_status_.__wbg_ptr);
|
|
1394
1500
|
return BigInt.asUintN(64, ret);
|
|
1395
1501
|
}
|
|
1396
|
-
function
|
|
1502
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_eq(ptr, other, f_status_) {
|
|
1397
1503
|
_assertClass(f_status_, RustCallStatus);
|
|
1398
|
-
const ret = wasm.
|
|
1504
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_eq(ptr, other, f_status_.__wbg_ptr);
|
|
1399
1505
|
return ret;
|
|
1400
1506
|
}
|
|
1401
|
-
function
|
|
1402
|
-
const ptr0 = passArray8ToWasm0(
|
|
1507
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_proteus_fingerprint_local(ptr, session_id) {
|
|
1508
|
+
const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
|
|
1403
1509
|
const len0 = WASM_VECTOR_LEN;
|
|
1404
|
-
const ret = wasm.
|
|
1510
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_proteus_fingerprint_local(ptr, ptr0, len0);
|
|
1405
1511
|
return BigInt.asUintN(64, ret);
|
|
1406
1512
|
}
|
|
1407
|
-
function
|
|
1408
|
-
const ret = wasm.
|
|
1409
|
-
return ret;
|
|
1513
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_export_secret_key(ptr, conversation_id, key_length) {
|
|
1514
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_export_secret_key(ptr, conversation_id, key_length);
|
|
1515
|
+
return BigInt.asUintN(64, ret);
|
|
1410
1516
|
}
|
|
1411
|
-
function
|
|
1412
|
-
|
|
1413
|
-
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_credentialref(handle, f_status_.__wbg_ptr);
|
|
1517
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_cancel_i32(handle) {
|
|
1518
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_i32(handle);
|
|
1414
1519
|
}
|
|
1415
|
-
function
|
|
1416
|
-
const ret = wasm.
|
|
1520
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_func_set_max_log_level() {
|
|
1521
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_set_max_log_level();
|
|
1417
1522
|
return ret;
|
|
1418
1523
|
}
|
|
1419
|
-
function
|
|
1420
|
-
const
|
|
1524
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_database_update_key(ptr, key) {
|
|
1525
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_database_update_key(ptr, key);
|
|
1526
|
+
return BigInt.asUintN(64, ret);
|
|
1527
|
+
}
|
|
1528
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptologger_log(ptr, level, message, context, f_status_) {
|
|
1529
|
+
const ptr0 = passArray8ToWasm0(level, wasm.__wbindgen_malloc);
|
|
1421
1530
|
const len0 = WASM_VECTOR_LEN;
|
|
1422
|
-
const
|
|
1531
|
+
const ptr1 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
|
1532
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1533
|
+
const ptr2 = passArray8ToWasm0(context, wasm.__wbindgen_malloc);
|
|
1534
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1535
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1536
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptologger_log(ptr, ptr0, len0, ptr1, len1, ptr2, len2, f_status_.__wbg_ptr);
|
|
1537
|
+
}
|
|
1538
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_set_pki_environment(ptr, pki_environment) {
|
|
1539
|
+
const ptr0 = passArray8ToWasm0(pki_environment, wasm.__wbindgen_malloc);
|
|
1540
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1541
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_set_pki_environment(ptr, ptr0, len0);
|
|
1423
1542
|
return BigInt.asUintN(64, ret);
|
|
1424
1543
|
}
|
|
1425
|
-
function
|
|
1426
|
-
const ret = wasm.
|
|
1544
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_decrypt_message() {
|
|
1545
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_decrypt_message();
|
|
1427
1546
|
return ret;
|
|
1428
1547
|
}
|
|
1429
|
-
function
|
|
1430
|
-
wasm.
|
|
1548
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_func_migrate_database_key_type_to_bytes() {
|
|
1549
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_migrate_database_key_type_to_bytes();
|
|
1550
|
+
return ret;
|
|
1431
1551
|
}
|
|
1432
|
-
function
|
|
1433
|
-
const ret = wasm.
|
|
1552
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_commit_pending_proposals() {
|
|
1553
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_commit_pending_proposals();
|
|
1434
1554
|
return ret;
|
|
1435
1555
|
}
|
|
1436
|
-
function
|
|
1556
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_secretkey(handle, f_status_) {
|
|
1557
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1558
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_secretkey(handle, f_status_.__wbg_ptr);
|
|
1559
|
+
return BigInt.asUintN(64, ret);
|
|
1560
|
+
}
|
|
1561
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_credential_basic(cipher_suite, client_id, f_status_) {
|
|
1562
|
+
const ptr0 = passArray8ToWasm0(cipher_suite, wasm.__wbindgen_malloc);
|
|
1563
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1437
1564
|
_assertClass(f_status_, RustCallStatus);
|
|
1438
|
-
const ret = wasm.
|
|
1565
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_credential_basic(ptr0, len0, client_id, f_status_.__wbg_ptr);
|
|
1439
1566
|
return BigInt.asUintN(64, ret);
|
|
1440
1567
|
}
|
|
1441
|
-
function
|
|
1442
|
-
const ret = wasm.
|
|
1568
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_user_identities() {
|
|
1569
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_user_identities();
|
|
1443
1570
|
return ret;
|
|
1444
1571
|
}
|
|
1445
|
-
function
|
|
1446
|
-
const
|
|
1572
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_mlstransport_send_commit_bundle(ptr, commit_bundle) {
|
|
1573
|
+
const ptr0 = passArray8ToWasm0(commit_bundle, wasm.__wbindgen_malloc);
|
|
1574
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1575
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_mlstransport_send_commit_bundle(ptr, ptr0, len0);
|
|
1447
1576
|
return BigInt.asUintN(64, ret);
|
|
1448
1577
|
}
|
|
1449
|
-
function
|
|
1450
|
-
|
|
1451
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_copy_bytes(ptr, f_status_.__wbg_ptr);
|
|
1452
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1453
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1454
|
-
return v1;
|
|
1455
|
-
}
|
|
1456
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_decrypt_safe() {
|
|
1457
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_decrypt_safe();
|
|
1578
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_from_hex_string() {
|
|
1579
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_from_hex_string();
|
|
1458
1580
|
return ret;
|
|
1459
1581
|
}
|
|
1460
|
-
function
|
|
1461
|
-
const ptr0 = passArray8ToWasm0(
|
|
1582
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_keypackage_new(bytes, f_status_) {
|
|
1583
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
1462
1584
|
const len0 = WASM_VECTOR_LEN;
|
|
1463
|
-
|
|
1585
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1586
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_keypackage_new(ptr0, len0, f_status_.__wbg_ptr);
|
|
1464
1587
|
return BigInt.asUintN(64, ret);
|
|
1465
1588
|
}
|
|
1466
|
-
function
|
|
1467
|
-
const ptr0 = passArray8ToWasm0(
|
|
1589
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_new_from_credential_ref(pki_environment, config, credential_ref, core_crypto_database) {
|
|
1590
|
+
const ptr0 = passArray8ToWasm0(config, wasm.__wbindgen_malloc);
|
|
1468
1591
|
const len0 = WASM_VECTOR_LEN;
|
|
1469
|
-
const
|
|
1592
|
+
const ptr1 = passArray8ToWasm0(core_crypto_database, wasm.__wbindgen_malloc);
|
|
1593
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1594
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_new_from_credential_ref(pki_environment, ptr0, len0, credential_ref, ptr1, len1);
|
|
1470
1595
|
return BigInt.asUintN(64, ret);
|
|
1471
1596
|
}
|
|
1472
|
-
function
|
|
1597
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_deviceid(handle, f_status_) {
|
|
1473
1598
|
_assertClass(f_status_, RustCallStatus);
|
|
1474
|
-
const ret = wasm.
|
|
1599
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_deviceid(handle, f_status_.__wbg_ptr);
|
|
1475
1600
|
return BigInt.asUintN(64, ret);
|
|
1476
1601
|
}
|
|
1477
|
-
function
|
|
1602
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_corecryptoffi(handle, f_status_) {
|
|
1478
1603
|
_assertClass(f_status_, RustCallStatus);
|
|
1479
|
-
wasm.
|
|
1604
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_corecryptoffi(handle, f_status_.__wbg_ptr);
|
|
1480
1605
|
}
|
|
1481
1606
|
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_secretkey_new() {
|
|
1482
1607
|
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_secretkey_new();
|
|
1483
1608
|
return ret;
|
|
1484
1609
|
}
|
|
1485
|
-
function
|
|
1486
|
-
|
|
1487
|
-
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_mlstransport(handle, f_status_.__wbg_ptr);
|
|
1488
|
-
}
|
|
1489
|
-
function ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_http_request(ptr, method, url, headers, body) {
|
|
1490
|
-
const ptr0 = passArray8ToWasm0(method, wasm.__wbindgen_malloc);
|
|
1491
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1492
|
-
const ptr1 = passArray8ToWasm0(url, wasm.__wbindgen_malloc);
|
|
1493
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1494
|
-
const ptr2 = passArray8ToWasm0(headers, wasm.__wbindgen_malloc);
|
|
1495
|
-
const len2 = WASM_VECTOR_LEN;
|
|
1496
|
-
const ptr3 = passArray8ToWasm0(body, wasm.__wbindgen_malloc);
|
|
1497
|
-
const len3 = WASM_VECTOR_LEN;
|
|
1498
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_http_request(ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
1499
|
-
return BigInt.asUintN(64, ret);
|
|
1500
|
-
}
|
|
1501
|
-
function ubrn_uniffi_core_crypto_ffi_fn_clone_databasekey(handle, f_status_) {
|
|
1502
|
-
_assertClass(f_status_, RustCallStatus);
|
|
1503
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_databasekey(handle, f_status_.__wbg_ptr);
|
|
1504
|
-
return BigInt.asUintN(64, ret);
|
|
1505
|
-
}
|
|
1506
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_disable_history_sharing() {
|
|
1507
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_disable_history_sharing();
|
|
1508
|
-
return ret;
|
|
1610
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_free_void(handle) {
|
|
1611
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_void(handle);
|
|
1509
1612
|
}
|
|
1510
|
-
function
|
|
1511
|
-
const ret = wasm.
|
|
1613
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_set_conversation_credential() {
|
|
1614
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_set_conversation_credential();
|
|
1512
1615
|
return ret;
|
|
1513
1616
|
}
|
|
1514
|
-
function
|
|
1515
|
-
const ret = wasm.
|
|
1516
|
-
return BigInt.asUintN(64, ret);
|
|
1517
|
-
}
|
|
1518
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_conversation_exists() {
|
|
1519
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_conversation_exists();
|
|
1617
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_get_backend_nonce() {
|
|
1618
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_get_backend_nonce();
|
|
1520
1619
|
return ret;
|
|
1521
1620
|
}
|
|
1522
|
-
function
|
|
1523
|
-
|
|
1524
|
-
|
|
1621
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_pkienvironmenthooks(handle, f_status_) {
|
|
1622
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1623
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_pkienvironmenthooks(handle, f_status_.__wbg_ptr);
|
|
1525
1624
|
}
|
|
1526
|
-
function
|
|
1625
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_epochobserver(handle, f_status_) {
|
|
1527
1626
|
_assertClass(f_status_, RustCallStatus);
|
|
1528
|
-
const ret = wasm.
|
|
1627
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_epochobserver(handle, f_status_.__wbg_ptr);
|
|
1529
1628
|
return BigInt.asUintN(64, ret);
|
|
1530
1629
|
}
|
|
1531
|
-
function
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_set_data() {
|
|
1535
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_set_data();
|
|
1536
|
-
return ret;
|
|
1630
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_historyobserver(handle, f_status_) {
|
|
1631
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1632
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_historyobserver(handle, f_status_.__wbg_ptr);
|
|
1537
1633
|
}
|
|
1538
|
-
function
|
|
1539
|
-
const ret = wasm.
|
|
1540
|
-
return ret;
|
|
1634
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_external_sender(ptr, conversation_id) {
|
|
1635
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_external_sender(ptr, conversation_id);
|
|
1636
|
+
return BigInt.asUintN(64, ret);
|
|
1541
1637
|
}
|
|
1542
|
-
function
|
|
1543
|
-
const ptr0 = passArray8ToWasm0(
|
|
1638
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_exists(ptr, session_id) {
|
|
1639
|
+
const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
|
|
1544
1640
|
const len0 = WASM_VECTOR_LEN;
|
|
1545
|
-
const ret = wasm.
|
|
1641
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_exists(ptr, ptr0, len0);
|
|
1546
1642
|
return BigInt.asUintN(64, ret);
|
|
1547
1643
|
}
|
|
1548
|
-
function
|
|
1549
|
-
|
|
1550
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credential_export_pem(ptr, f_status_.__wbg_ptr);
|
|
1551
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1552
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1553
|
-
return v1;
|
|
1554
|
-
}
|
|
1555
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_process_welcome_message() {
|
|
1556
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_process_welcome_message();
|
|
1644
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_export_secret_key() {
|
|
1645
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_export_secret_key();
|
|
1557
1646
|
return ret;
|
|
1558
1647
|
}
|
|
1559
|
-
function
|
|
1560
|
-
const ret = wasm.
|
|
1648
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_check_credentials(ptr) {
|
|
1649
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_check_credentials(ptr);
|
|
1561
1650
|
return BigInt.asUintN(64, ret);
|
|
1562
1651
|
}
|
|
1563
|
-
function
|
|
1652
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_complete_u16(handle, f_status_) {
|
|
1564
1653
|
_assertClass(f_status_, RustCallStatus);
|
|
1565
|
-
const ret = wasm.
|
|
1566
|
-
|
|
1567
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1568
|
-
return v1;
|
|
1569
|
-
}
|
|
1570
|
-
function ubrn_uniffi_core_crypto_ffi_fn_init_callback_vtable_corecryptocommand(vtable) {
|
|
1571
|
-
wasm.ubrn_uniffi_core_crypto_ffi_fn_init_callback_vtable_corecryptocommand(vtable);
|
|
1654
|
+
const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_u16(handle, f_status_.__wbg_ptr);
|
|
1655
|
+
return ret;
|
|
1572
1656
|
}
|
|
1573
|
-
function
|
|
1574
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
1575
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1657
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_pkienvironmenthooks(handle, f_status_) {
|
|
1576
1658
|
_assertClass(f_status_, RustCallStatus);
|
|
1577
|
-
const ret = wasm.
|
|
1659
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_pkienvironmenthooks(handle, f_status_.__wbg_ptr);
|
|
1578
1660
|
return BigInt.asUintN(64, ret);
|
|
1579
1661
|
}
|
|
1580
|
-
function
|
|
1581
|
-
wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_void(handle);
|
|
1582
|
-
}
|
|
1583
|
-
function ubrn_uniffi_core_crypto_ffi_fn_constructor_secretkey_new(bytes, f_status_) {
|
|
1662
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_databasekey_new(bytes, f_status_) {
|
|
1584
1663
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
1585
1664
|
const len0 = WASM_VECTOR_LEN;
|
|
1586
1665
|
_assertClass(f_status_, RustCallStatus);
|
|
1587
|
-
const ret = wasm.
|
|
1588
|
-
return BigInt.asUintN(64, ret);
|
|
1589
|
-
}
|
|
1590
|
-
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_commit_pending_proposals(ptr, conversation_id) {
|
|
1591
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_commit_pending_proposals(ptr, conversation_id);
|
|
1666
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_databasekey_new(ptr0, len0, f_status_.__wbg_ptr);
|
|
1592
1667
|
return BigInt.asUintN(64, ret);
|
|
1593
1668
|
}
|
|
1594
|
-
function
|
|
1595
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_welcome_serialize();
|
|
1596
|
-
return ret;
|
|
1597
|
-
}
|
|
1598
|
-
function ubrn_ffi_core_crypto_ffi_rust_future_cancel_f32(handle) {
|
|
1599
|
-
wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_f32(handle);
|
|
1600
|
-
}
|
|
1601
|
-
function ubrn_ffi_core_crypto_ffi_rust_future_complete_f32(handle, f_status_) {
|
|
1669
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_x509credentialacquisition(handle, f_status_) {
|
|
1602
1670
|
_assertClass(f_status_, RustCallStatus);
|
|
1603
|
-
|
|
1604
|
-
return ret;
|
|
1671
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_x509credentialacquisition(handle, f_status_.__wbg_ptr);
|
|
1605
1672
|
}
|
|
1606
|
-
function
|
|
1607
|
-
|
|
1608
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_proteus_last_resort_prekey_id_ffi(f_status_.__wbg_ptr);
|
|
1673
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_earliest_validity() {
|
|
1674
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_earliest_validity();
|
|
1609
1675
|
return ret;
|
|
1610
1676
|
}
|
|
1611
|
-
function
|
|
1612
|
-
const ret = wasm.
|
|
1677
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_create_conversation() {
|
|
1678
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_create_conversation();
|
|
1613
1679
|
return ret;
|
|
1614
1680
|
}
|
|
1615
|
-
function
|
|
1616
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_conversation_epoch(ptr, conversation_id);
|
|
1617
|
-
return BigInt.asUintN(64, ret);
|
|
1618
|
-
}
|
|
1619
|
-
function ubrn_ffi_core_crypto_ffi_rust_future_cancel_i32(handle) {
|
|
1620
|
-
wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_i32(handle);
|
|
1621
|
-
}
|
|
1622
|
-
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_from_message(ptr, session_id, envelope) {
|
|
1623
|
-
const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
|
|
1624
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1625
|
-
const ptr1 = passArray8ToWasm0(envelope, wasm.__wbindgen_malloc);
|
|
1626
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1627
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_from_message(ptr, ptr0, len0, ptr1, len1);
|
|
1628
|
-
return BigInt.asUintN(64, ret);
|
|
1629
|
-
}
|
|
1630
|
-
function ubrn_uniffi_core_crypto_ffi_fn_method_conversationid_uniffi_trait_debug(ptr, f_status_) {
|
|
1681
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_conversationid_uniffi_trait_display(ptr, f_status_) {
|
|
1631
1682
|
_assertClass(f_status_, RustCallStatus);
|
|
1632
|
-
const ret = wasm.
|
|
1683
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_conversationid_uniffi_trait_display(ptr, f_status_.__wbg_ptr);
|
|
1633
1684
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1634
1685
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1635
1686
|
return v1;
|
|
1636
1687
|
}
|
|
1637
|
-
function
|
|
1638
|
-
|
|
1639
|
-
|
|
1688
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_corecryptocommand(handle, f_status_) {
|
|
1689
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1690
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_corecryptocommand(handle, f_status_.__wbg_ptr);
|
|
1691
|
+
return BigInt.asUintN(64, ret);
|
|
1640
1692
|
}
|
|
1641
|
-
function
|
|
1642
|
-
const ptr0 = passArray8ToWasm0(
|
|
1693
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_get_user_identities(ptr, conversation_id, user_ids) {
|
|
1694
|
+
const ptr0 = passArray8ToWasm0(user_ids, wasm.__wbindgen_malloc);
|
|
1643
1695
|
const len0 = WASM_VECTOR_LEN;
|
|
1644
|
-
const ret = wasm.
|
|
1696
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_get_user_identities(ptr, conversation_id, ptr0, len0);
|
|
1645
1697
|
return BigInt.asUintN(64, ret);
|
|
1646
1698
|
}
|
|
1647
|
-
function
|
|
1648
|
-
wasm.
|
|
1649
|
-
}
|
|
1650
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_data() {
|
|
1651
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_data();
|
|
1699
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_database_update_key() {
|
|
1700
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_database_update_key();
|
|
1652
1701
|
return ret;
|
|
1653
1702
|
}
|
|
1654
|
-
function
|
|
1655
|
-
wasm.
|
|
1656
|
-
}
|
|
1657
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_e2ei_conversation_state() {
|
|
1658
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_e2ei_conversation_state();
|
|
1703
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_set_data() {
|
|
1704
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_set_data();
|
|
1659
1705
|
return ret;
|
|
1660
1706
|
}
|
|
1661
|
-
function
|
|
1707
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_complete_rust_buffer(handle, f_status_) {
|
|
1662
1708
|
_assertClass(f_status_, RustCallStatus);
|
|
1663
|
-
wasm.
|
|
1709
|
+
const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_rust_buffer(handle, f_status_.__wbg_ptr);
|
|
1710
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1711
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1712
|
+
return v1;
|
|
1664
1713
|
}
|
|
1665
|
-
function
|
|
1666
|
-
const ret = wasm.
|
|
1714
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_decrypt_safe() {
|
|
1715
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_decrypt_safe();
|
|
1667
1716
|
return ret;
|
|
1668
1717
|
}
|
|
1669
|
-
function
|
|
1670
|
-
|
|
1671
|
-
|
|
1718
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_corecryptologger(handle, f_status_) {
|
|
1719
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1720
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_corecryptologger(handle, f_status_.__wbg_ptr);
|
|
1672
1721
|
}
|
|
1673
|
-
function
|
|
1674
|
-
const ret = wasm.
|
|
1722
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_cipher_suite() {
|
|
1723
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_cipher_suite();
|
|
1675
1724
|
return ret;
|
|
1676
1725
|
}
|
|
1677
|
-
function
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1726
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_cancel_void(handle) {
|
|
1727
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_void(handle);
|
|
1728
|
+
}
|
|
1729
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_clientid_deserialize(ptr, f_status_) {
|
|
1682
1730
|
_assertClass(f_status_, RustCallStatus);
|
|
1683
|
-
const ret = wasm.
|
|
1684
|
-
|
|
1731
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_clientid_deserialize(ptr, f_status_.__wbg_ptr);
|
|
1732
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1733
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1734
|
+
return v1;
|
|
1685
1735
|
}
|
|
1686
|
-
function
|
|
1687
|
-
const ret = wasm.
|
|
1736
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_func_cipher_suite_default() {
|
|
1737
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_cipher_suite_default();
|
|
1688
1738
|
return ret;
|
|
1689
1739
|
}
|
|
1690
|
-
function
|
|
1691
|
-
const ret = wasm.
|
|
1740
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_x509credentialacquisition_finalize() {
|
|
1741
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_x509credentialacquisition_finalize();
|
|
1692
1742
|
return ret;
|
|
1693
1743
|
}
|
|
1694
|
-
function
|
|
1695
|
-
_assertClass(f_status_, RustCallStatus);
|
|
1696
|
-
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_conversationid(handle, f_status_.__wbg_ptr);
|
|
1697
|
-
}
|
|
1698
|
-
function ubrn_uniffi_core_crypto_ffi_fn_method_externalsender_serialize(ptr, f_status_) {
|
|
1744
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_credential_export_pem(ptr, f_status_) {
|
|
1699
1745
|
_assertClass(f_status_, RustCallStatus);
|
|
1700
|
-
const ret = wasm.
|
|
1746
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credential_export_pem(ptr, f_status_.__wbg_ptr);
|
|
1701
1747
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1702
1748
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1703
1749
|
return v1;
|
|
1704
1750
|
}
|
|
1705
|
-
function
|
|
1706
|
-
const ret = wasm.
|
|
1751
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_secretkey_copy_bytes() {
|
|
1752
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_secretkey_copy_bytes();
|
|
1707
1753
|
return ret;
|
|
1708
1754
|
}
|
|
1709
|
-
function
|
|
1710
|
-
|
|
1711
|
-
|
|
1755
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_groupinfo(handle, f_status_) {
|
|
1756
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1757
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_groupinfo(handle, f_status_.__wbg_ptr);
|
|
1712
1758
|
}
|
|
1713
|
-
function
|
|
1714
|
-
const ret = wasm.
|
|
1759
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_client_ids() {
|
|
1760
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_client_ids();
|
|
1715
1761
|
return ret;
|
|
1716
1762
|
}
|
|
1717
|
-
function
|
|
1718
|
-
const ret = wasm.
|
|
1763
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_public_key() {
|
|
1764
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_public_key();
|
|
1719
1765
|
return ret;
|
|
1720
1766
|
}
|
|
1721
|
-
function
|
|
1722
|
-
const ret = wasm.
|
|
1767
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_credential_earliest_validity() {
|
|
1768
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credential_earliest_validity();
|
|
1723
1769
|
return ret;
|
|
1724
1770
|
}
|
|
1725
|
-
function
|
|
1726
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_get_client_ids(ptr, conversation_id);
|
|
1727
|
-
return BigInt.asUintN(64, ret);
|
|
1728
|
-
}
|
|
1729
|
-
function ubrn_uniffi_core_crypto_ffi_fn_func_set_max_log_level(level, f_status_) {
|
|
1730
|
-
const ptr0 = passArray8ToWasm0(level, wasm.__wbindgen_malloc);
|
|
1731
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1771
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_complete_f32(handle, f_status_) {
|
|
1732
1772
|
_assertClass(f_status_, RustCallStatus);
|
|
1733
|
-
wasm.
|
|
1734
|
-
}
|
|
1735
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_welcome_new() {
|
|
1736
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_welcome_new();
|
|
1737
|
-
return ret;
|
|
1738
|
-
}
|
|
1739
|
-
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_get_credentials(ptr) {
|
|
1740
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_get_credentials(ptr);
|
|
1741
|
-
return BigInt.asUintN(64, ret);
|
|
1742
|
-
}
|
|
1743
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint_remote() {
|
|
1744
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint_remote();
|
|
1773
|
+
const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_f32(handle, f_status_.__wbg_ptr);
|
|
1745
1774
|
return ret;
|
|
1746
1775
|
}
|
|
1747
|
-
function
|
|
1748
|
-
const ret = wasm.
|
|
1776
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_deviceid_to_u64() {
|
|
1777
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_deviceid_to_u64();
|
|
1749
1778
|
return ret;
|
|
1750
1779
|
}
|
|
1751
1780
|
function ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_credential_type() {
|
|
1752
1781
|
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_credential_type();
|
|
1753
1782
|
return ret;
|
|
1754
1783
|
}
|
|
1755
|
-
function
|
|
1756
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_is_enabled();
|
|
1757
|
-
return ret;
|
|
1758
|
-
}
|
|
1759
|
-
function ubrn_uniffi_core_crypto_ffi_fn_free_keypackage(handle, f_status_) {
|
|
1760
|
-
_assertClass(f_status_, RustCallStatus);
|
|
1761
|
-
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_keypackage(handle, f_status_.__wbg_ptr);
|
|
1762
|
-
}
|
|
1763
|
-
function ubrn_ffi_core_crypto_ffi_rust_future_complete_u32(handle, f_status_) {
|
|
1784
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_eq_ne(ptr, other, f_status_) {
|
|
1764
1785
|
_assertClass(f_status_, RustCallStatus);
|
|
1765
|
-
const ret = wasm.
|
|
1766
|
-
return ret
|
|
1786
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_eq_ne(ptr, other, f_status_.__wbg_ptr);
|
|
1787
|
+
return ret;
|
|
1767
1788
|
}
|
|
1768
|
-
function
|
|
1769
|
-
const ret = wasm.
|
|
1789
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_client_id() {
|
|
1790
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_client_id();
|
|
1770
1791
|
return ret;
|
|
1771
1792
|
}
|
|
1772
|
-
function
|
|
1773
|
-
|
|
1774
|
-
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_keypackageref(handle, f_status_.__wbg_ptr);
|
|
1793
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_poll_f32(handle, callback, callback_data) {
|
|
1794
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_f32(handle, callback, callback_data);
|
|
1775
1795
|
}
|
|
1776
|
-
function
|
|
1796
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_frombytes(pki_environment, bytes, f_status_) {
|
|
1777
1797
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
1778
1798
|
const len0 = WASM_VECTOR_LEN;
|
|
1779
1799
|
_assertClass(f_status_, RustCallStatus);
|
|
1780
|
-
const ret = wasm.
|
|
1800
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_frombytes(pki_environment, ptr0, len0, f_status_.__wbg_ptr);
|
|
1781
1801
|
return BigInt.asUintN(64, ret);
|
|
1782
1802
|
}
|
|
1783
|
-
function
|
|
1784
|
-
const
|
|
1785
|
-
|
|
1803
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_reseed() {
|
|
1804
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_reseed();
|
|
1805
|
+
return ret;
|
|
1806
|
+
}
|
|
1807
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_keypackageref(handle, f_status_) {
|
|
1786
1808
|
_assertClass(f_status_, RustCallStatus);
|
|
1787
|
-
const ret = wasm.
|
|
1809
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_keypackageref(handle, f_status_.__wbg_ptr);
|
|
1788
1810
|
return BigInt.asUintN(64, ret);
|
|
1789
1811
|
}
|
|
1790
|
-
function
|
|
1812
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_func_proteus_last_resort_prekey_id_ffi() {
|
|
1813
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_proteus_last_resort_prekey_id_ffi();
|
|
1814
|
+
return ret;
|
|
1815
|
+
}
|
|
1816
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_complete_u8(handle, f_status_) {
|
|
1791
1817
|
_assertClass(f_status_, RustCallStatus);
|
|
1792
|
-
const ret = wasm.
|
|
1818
|
+
const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_u8(handle, f_status_.__wbg_ptr);
|
|
1793
1819
|
return ret;
|
|
1794
1820
|
}
|
|
1795
|
-
function
|
|
1796
|
-
|
|
1797
|
-
const
|
|
1798
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_decrypt_message(ptr, conversation_id, ptr0, len0);
|
|
1821
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_groupinfo(handle, f_status_) {
|
|
1822
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1823
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_groupinfo(handle, f_status_.__wbg_ptr);
|
|
1799
1824
|
return BigInt.asUintN(64, ret);
|
|
1800
1825
|
}
|
|
1801
|
-
function
|
|
1802
|
-
const ret = wasm.
|
|
1826
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_remove_key_package() {
|
|
1827
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_remove_key_package();
|
|
1803
1828
|
return ret;
|
|
1804
1829
|
}
|
|
1805
|
-
function
|
|
1830
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_welcome_new() {
|
|
1831
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_welcome_new();
|
|
1832
|
+
return ret;
|
|
1833
|
+
}
|
|
1834
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_new() {
|
|
1835
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_new();
|
|
1836
|
+
return ret;
|
|
1837
|
+
}
|
|
1838
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_cancel_u32(handle) {
|
|
1839
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_u32(handle);
|
|
1840
|
+
}
|
|
1841
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_deserializedclientid_uniffi_trait_display(ptr, f_status_) {
|
|
1842
|
+
const ptr0 = passArray8ToWasm0(ptr, wasm.__wbindgen_malloc);
|
|
1843
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1806
1844
|
_assertClass(f_status_, RustCallStatus);
|
|
1807
|
-
const ret = wasm.
|
|
1845
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_deserializedclientid_uniffi_trait_display(ptr0, len0, f_status_.__wbg_ptr);
|
|
1846
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1847
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1848
|
+
return v2;
|
|
1849
|
+
}
|
|
1850
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_hash(ptr, f_status_) {
|
|
1851
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1852
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_hash(ptr, f_status_.__wbg_ptr);
|
|
1808
1853
|
return BigInt.asUintN(64, ret);
|
|
1809
1854
|
}
|
|
1810
|
-
function
|
|
1855
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_cipher_suite(ptr, f_status_) {
|
|
1811
1856
|
_assertClass(f_status_, RustCallStatus);
|
|
1812
|
-
const ret = wasm.
|
|
1857
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_cipher_suite(ptr, f_status_.__wbg_ptr);
|
|
1813
1858
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1814
1859
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1815
1860
|
return v1;
|
|
1816
1861
|
}
|
|
1817
|
-
function
|
|
1818
|
-
const ret = wasm.
|
|
1819
|
-
return ret;
|
|
1862
|
+
function ubrn_ffi_core_crypto_ffi_uniffi_contract_version() {
|
|
1863
|
+
const ret = wasm.ubrn_ffi_core_crypto_ffi_uniffi_contract_version();
|
|
1864
|
+
return ret >>> 0;
|
|
1820
1865
|
}
|
|
1821
|
-
function
|
|
1866
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_proteus_session_exists(ptr, session_id) {
|
|
1822
1867
|
const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
|
|
1823
1868
|
const len0 = WASM_VECTOR_LEN;
|
|
1824
|
-
const ret = wasm.
|
|
1869
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_proteus_session_exists(ptr, ptr0, len0);
|
|
1825
1870
|
return BigInt.asUintN(64, ret);
|
|
1826
1871
|
}
|
|
1827
|
-
function
|
|
1828
|
-
const
|
|
1872
|
+
function ubrn_uniffi_core_crypto_ffi_fn_func_core_crypto_history_client(history_secret) {
|
|
1873
|
+
const ptr0 = passArray8ToWasm0(history_secret, wasm.__wbindgen_malloc);
|
|
1874
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1875
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_core_crypto_history_client(ptr0, len0);
|
|
1829
1876
|
return BigInt.asUintN(64, ret);
|
|
1830
1877
|
}
|
|
1831
|
-
function
|
|
1832
|
-
|
|
1878
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_credential_signature_scheme(ptr, f_status_) {
|
|
1879
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1880
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credential_signature_scheme(ptr, f_status_.__wbg_ptr);
|
|
1881
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1882
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1883
|
+
return v1;
|
|
1884
|
+
}
|
|
1885
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_corecryptoffi_new(instance, f_status_) {
|
|
1886
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1887
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_corecryptoffi_new(instance, f_status_.__wbg_ptr);
|
|
1833
1888
|
return BigInt.asUintN(64, ret);
|
|
1834
1889
|
}
|
|
1835
|
-
function
|
|
1836
|
-
const ret = wasm.
|
|
1890
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_session_delete() {
|
|
1891
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_session_delete();
|
|
1837
1892
|
return ret;
|
|
1838
1893
|
}
|
|
1839
|
-
function
|
|
1840
|
-
const ret = wasm.
|
|
1894
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_jwk() {
|
|
1895
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_jwk();
|
|
1841
1896
|
return ret;
|
|
1842
1897
|
}
|
|
1843
|
-
function
|
|
1898
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_free_i8(handle) {
|
|
1899
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_i8(handle);
|
|
1900
|
+
}
|
|
1901
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_check_credentials() {
|
|
1902
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_check_credentials();
|
|
1903
|
+
return ret;
|
|
1904
|
+
}
|
|
1905
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocommand_execute() {
|
|
1906
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocommand_execute();
|
|
1907
|
+
return ret;
|
|
1908
|
+
}
|
|
1909
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_deviceid(handle, f_status_) {
|
|
1844
1910
|
_assertClass(f_status_, RustCallStatus);
|
|
1845
|
-
|
|
1846
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1847
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1848
|
-
return v1;
|
|
1911
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_deviceid(handle, f_status_.__wbg_ptr);
|
|
1849
1912
|
}
|
|
1850
|
-
function
|
|
1851
|
-
const ret = wasm.
|
|
1913
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_groupinfo_new() {
|
|
1914
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_groupinfo_new();
|
|
1915
|
+
return ret;
|
|
1916
|
+
}
|
|
1917
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_deviceid_to_hex_string() {
|
|
1918
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_deviceid_to_hex_string();
|
|
1919
|
+
return ret;
|
|
1920
|
+
}
|
|
1921
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_clientid(handle, f_status_) {
|
|
1922
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1923
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_clientid(handle, f_status_.__wbg_ptr);
|
|
1924
|
+
}
|
|
1925
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_free_f32(handle) {
|
|
1926
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_f32(handle);
|
|
1927
|
+
}
|
|
1928
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_find_credentials_ffi(ptr, client_id, public_key, cipher_suite, credential_type, earliest_validity) {
|
|
1929
|
+
const ptr0 = passArray8ToWasm0(client_id, wasm.__wbindgen_malloc);
|
|
1930
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1931
|
+
const ptr1 = passArray8ToWasm0(public_key, wasm.__wbindgen_malloc);
|
|
1932
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1933
|
+
const ptr2 = passArray8ToWasm0(cipher_suite, wasm.__wbindgen_malloc);
|
|
1934
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1935
|
+
const ptr3 = passArray8ToWasm0(credential_type, wasm.__wbindgen_malloc);
|
|
1936
|
+
const len3 = WASM_VECTOR_LEN;
|
|
1937
|
+
const ptr4 = passArray8ToWasm0(earliest_validity, wasm.__wbindgen_malloc);
|
|
1938
|
+
const len4 = WASM_VECTOR_LEN;
|
|
1939
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_find_credentials_ffi(ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
1852
1940
|
return BigInt.asUintN(64, ret);
|
|
1853
1941
|
}
|
|
1854
|
-
function
|
|
1942
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_uuid(handle, f_status_) {
|
|
1855
1943
|
_assertClass(f_status_, RustCallStatus);
|
|
1856
|
-
|
|
1944
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_uuid(handle, f_status_.__wbg_ptr);
|
|
1945
|
+
}
|
|
1946
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_conversation_epoch() {
|
|
1947
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_conversation_epoch();
|
|
1948
|
+
return ret;
|
|
1949
|
+
}
|
|
1950
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_random_bytes(ptr, len) {
|
|
1951
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_random_bytes(ptr, len);
|
|
1857
1952
|
return BigInt.asUintN(64, ret);
|
|
1858
1953
|
}
|
|
1859
|
-
function
|
|
1860
|
-
const ret = wasm.
|
|
1954
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_e2ei_is_pki_env_setup(ptr) {
|
|
1955
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_e2ei_is_pki_env_setup(ptr);
|
|
1861
1956
|
return BigInt.asUintN(64, ret);
|
|
1862
1957
|
}
|
|
1863
|
-
function
|
|
1958
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_update_keying_material() {
|
|
1959
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_update_keying_material();
|
|
1960
|
+
return ret;
|
|
1961
|
+
}
|
|
1962
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptologger_log() {
|
|
1963
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptologger_log();
|
|
1964
|
+
return ret;
|
|
1965
|
+
}
|
|
1966
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_externalsender_parse_jwk(jwk, f_status_) {
|
|
1967
|
+
const ptr0 = passArray8ToWasm0(jwk, wasm.__wbindgen_malloc);
|
|
1968
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1864
1969
|
_assertClass(f_status_, RustCallStatus);
|
|
1865
|
-
wasm.
|
|
1970
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_externalsender_parse_jwk(ptr0, len0, f_status_.__wbg_ptr);
|
|
1971
|
+
return BigInt.asUintN(64, ret);
|
|
1972
|
+
}
|
|
1973
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_welcome_new(bytes, f_status_) {
|
|
1974
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
1975
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1976
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1977
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_welcome_new(ptr0, len0, f_status_.__wbg_ptr);
|
|
1978
|
+
return BigInt.asUintN(64, ret);
|
|
1866
1979
|
}
|
|
1867
|
-
function
|
|
1868
|
-
|
|
1980
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_complete_f64(handle, f_status_) {
|
|
1981
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1982
|
+
const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_f64(handle, f_status_.__wbg_ptr);
|
|
1869
1983
|
return ret;
|
|
1870
1984
|
}
|
|
1871
|
-
function
|
|
1872
|
-
const ret = wasm.
|
|
1985
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_public_key_hash() {
|
|
1986
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_public_key_hash();
|
|
1873
1987
|
return ret;
|
|
1874
1988
|
}
|
|
1875
|
-
function
|
|
1876
|
-
|
|
1989
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_free_u64(handle) {
|
|
1990
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_u64(handle);
|
|
1991
|
+
}
|
|
1992
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_type(ptr, f_status_) {
|
|
1993
|
+
_assertClass(f_status_, RustCallStatus);
|
|
1994
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_type(ptr, f_status_.__wbg_ptr);
|
|
1995
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1996
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1997
|
+
return v1;
|
|
1998
|
+
}
|
|
1999
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_poll_i64(handle, callback, callback_data) {
|
|
2000
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_i64(handle, callback, callback_data);
|
|
2001
|
+
}
|
|
2002
|
+
function ubrn_uniffi_core_crypto_ffi_fn_func_proteus_last_resort_prekey_id_ffi(f_status_) {
|
|
2003
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2004
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_proteus_last_resort_prekey_id_ffi(f_status_.__wbg_ptr);
|
|
1877
2005
|
return ret;
|
|
1878
2006
|
}
|
|
1879
|
-
function
|
|
2007
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_welcome_serialize(ptr, f_status_) {
|
|
1880
2008
|
_assertClass(f_status_, RustCallStatus);
|
|
1881
|
-
const ret = wasm.
|
|
2009
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_welcome_serialize(ptr, f_status_.__wbg_ptr);
|
|
1882
2010
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1883
2011
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1884
2012
|
return v1;
|
|
1885
2013
|
}
|
|
1886
|
-
function
|
|
2014
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_externalsender(handle, f_status_) {
|
|
1887
2015
|
_assertClass(f_status_, RustCallStatus);
|
|
1888
|
-
|
|
2016
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_externalsender(handle, f_status_.__wbg_ptr);
|
|
2017
|
+
}
|
|
2018
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_random_bytes() {
|
|
2019
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_random_bytes();
|
|
1889
2020
|
return ret;
|
|
1890
2021
|
}
|
|
1891
|
-
function
|
|
2022
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_conversationid_uniffi_trait_eq_eq(ptr, other, f_status_) {
|
|
1892
2023
|
_assertClass(f_status_, RustCallStatus);
|
|
1893
|
-
const ret = wasm.
|
|
2024
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_conversationid_uniffi_trait_eq_eq(ptr, other, f_status_.__wbg_ptr);
|
|
2025
|
+
return ret;
|
|
2026
|
+
}
|
|
2027
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_conversation_cipher_suite(ptr, conversation_id) {
|
|
2028
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_conversation_cipher_suite(ptr, conversation_id);
|
|
1894
2029
|
return BigInt.asUintN(64, ret);
|
|
1895
2030
|
}
|
|
1896
|
-
function
|
|
1897
|
-
const ptr0 = passArray8ToWasm0(cipher_suite, wasm.__wbindgen_malloc);
|
|
1898
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2031
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_hash(ptr, f_status_) {
|
|
1899
2032
|
_assertClass(f_status_, RustCallStatus);
|
|
1900
|
-
const ret = wasm.
|
|
2033
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_hash(ptr, f_status_.__wbg_ptr);
|
|
1901
2034
|
return BigInt.asUintN(64, ret);
|
|
1902
2035
|
}
|
|
1903
|
-
function
|
|
1904
|
-
const
|
|
2036
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_generate_key_package(ptr, credential_ref, lifetime) {
|
|
2037
|
+
const ptr0 = passArray8ToWasm0(lifetime, wasm.__wbindgen_malloc);
|
|
2038
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2039
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_generate_key_package(ptr, credential_ref, ptr0, len0);
|
|
1905
2040
|
return BigInt.asUintN(64, ret);
|
|
1906
2041
|
}
|
|
1907
|
-
function
|
|
1908
|
-
|
|
1909
|
-
const
|
|
2042
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_device_identities(ptr, conversation_id, device_ids) {
|
|
2043
|
+
const ptr0 = passArray8ToWasm0(device_ids, wasm.__wbindgen_malloc);
|
|
2044
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2045
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_device_identities(ptr, conversation_id, ptr0, len0);
|
|
1910
2046
|
return BigInt.asUintN(64, ret);
|
|
1911
2047
|
}
|
|
1912
|
-
function
|
|
1913
|
-
wasm.
|
|
2048
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_conversation_exists() {
|
|
2049
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_conversation_exists();
|
|
2050
|
+
return ret;
|
|
1914
2051
|
}
|
|
1915
|
-
function
|
|
2052
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_welcome(handle, f_status_) {
|
|
1916
2053
|
_assertClass(f_status_, RustCallStatus);
|
|
1917
|
-
wasm.
|
|
2054
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_welcome(handle, f_status_.__wbg_ptr);
|
|
2055
|
+
return BigInt.asUintN(64, ret);
|
|
1918
2056
|
}
|
|
1919
|
-
function
|
|
1920
|
-
const ret = wasm.
|
|
1921
|
-
return ret;
|
|
2057
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_e2ei_conversation_state(ptr, conversation_id) {
|
|
2058
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_e2ei_conversation_state(ptr, conversation_id);
|
|
2059
|
+
return BigInt.asUintN(64, ret);
|
|
1922
2060
|
}
|
|
1923
|
-
function
|
|
2061
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_cipher_suite(ptr, f_status_) {
|
|
1924
2062
|
_assertClass(f_status_, RustCallStatus);
|
|
1925
|
-
const ret = wasm.
|
|
2063
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_cipher_suite(ptr, f_status_.__wbg_ptr);
|
|
1926
2064
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1927
2065
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1928
2066
|
return v1;
|
|
1929
2067
|
}
|
|
1930
|
-
function
|
|
1931
|
-
|
|
1932
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_hash(ptr, f_status_.__wbg_ptr);
|
|
2068
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_random_bytes(ptr, len) {
|
|
2069
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_random_bytes(ptr, len);
|
|
1933
2070
|
return BigInt.asUintN(64, ret);
|
|
1934
2071
|
}
|
|
1935
|
-
function
|
|
1936
|
-
const ptr0 = passArray8ToWasm0(
|
|
2072
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_encrypt_batched(ptr, sessions, plaintext) {
|
|
2073
|
+
const ptr0 = passArray8ToWasm0(sessions, wasm.__wbindgen_malloc);
|
|
1937
2074
|
const len0 = WASM_VECTOR_LEN;
|
|
1938
|
-
const
|
|
2075
|
+
const ptr1 = passArray8ToWasm0(plaintext, wasm.__wbindgen_malloc);
|
|
2076
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2077
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_encrypt_batched(ptr, ptr0, len0, ptr1, len1);
|
|
1939
2078
|
return BigInt.asUintN(64, ret);
|
|
1940
2079
|
}
|
|
1941
|
-
function
|
|
1942
|
-
wasm.
|
|
2080
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_proteus_session_exists() {
|
|
2081
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_proteus_session_exists();
|
|
2082
|
+
return ret;
|
|
1943
2083
|
}
|
|
1944
|
-
function
|
|
2084
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_corecryptocontext_new() {
|
|
2085
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_corecryptocontext_new();
|
|
2086
|
+
return ret;
|
|
2087
|
+
}
|
|
2088
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_complete_i8(handle, f_status_) {
|
|
1945
2089
|
_assertClass(f_status_, RustCallStatus);
|
|
1946
|
-
wasm.
|
|
2090
|
+
const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_i8(handle, f_status_.__wbg_ptr);
|
|
2091
|
+
return ret;
|
|
1947
2092
|
}
|
|
1948
|
-
function
|
|
1949
|
-
const
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
const ret = wasm.
|
|
2093
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_credential_type() {
|
|
2094
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credential_type();
|
|
2095
|
+
return ret;
|
|
2096
|
+
}
|
|
2097
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_remove_key_package(ptr, kp_ref) {
|
|
2098
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_remove_key_package(ptr, kp_ref);
|
|
1954
2099
|
return BigInt.asUintN(64, ret);
|
|
1955
2100
|
}
|
|
1956
|
-
function
|
|
1957
|
-
|
|
2101
|
+
function ubrn_uniffi_core_crypto_ffi_fn_func_cipher_suite_default(f_status_) {
|
|
2102
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2103
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_cipher_suite_default(f_status_.__wbg_ptr);
|
|
2104
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2105
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2106
|
+
return v1;
|
|
1958
2107
|
}
|
|
1959
|
-
function
|
|
1960
|
-
const ret = wasm.
|
|
2108
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_new_prekey(ptr, prekey_id) {
|
|
2109
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_new_prekey(ptr, prekey_id);
|
|
1961
2110
|
return BigInt.asUintN(64, ret);
|
|
1962
2111
|
}
|
|
1963
|
-
function
|
|
1964
|
-
const ret = wasm.
|
|
1965
|
-
return ret;
|
|
2112
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_disable_history_sharing(ptr, conversation_id) {
|
|
2113
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_disable_history_sharing(ptr, conversation_id);
|
|
2114
|
+
return BigInt.asUintN(64, ret);
|
|
1966
2115
|
}
|
|
1967
|
-
function
|
|
1968
|
-
const ptr0 = passArray8ToWasm0(prekey, wasm.__wbindgen_malloc);
|
|
1969
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2116
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_copy_bytes(ptr, f_status_) {
|
|
1970
2117
|
_assertClass(f_status_, RustCallStatus);
|
|
1971
|
-
const ret = wasm.
|
|
1972
|
-
var
|
|
2118
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_copy_bytes(ptr, f_status_.__wbg_ptr);
|
|
2119
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1973
2120
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1974
|
-
return
|
|
2121
|
+
return v1;
|
|
1975
2122
|
}
|
|
1976
|
-
function
|
|
1977
|
-
|
|
2123
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_complete_i32(handle, f_status_) {
|
|
2124
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2125
|
+
const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_i32(handle, f_status_.__wbg_ptr);
|
|
1978
2126
|
return ret;
|
|
1979
2127
|
}
|
|
1980
|
-
function
|
|
1981
|
-
|
|
1982
|
-
|
|
2128
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_func_set_logger() {
|
|
2129
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_set_logger();
|
|
2130
|
+
return ret;
|
|
1983
2131
|
}
|
|
1984
|
-
function
|
|
1985
|
-
|
|
1986
|
-
return BigInt.asUintN(64, ret);
|
|
2132
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_free_i16(handle) {
|
|
2133
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_i16(handle);
|
|
1987
2134
|
}
|
|
1988
|
-
function
|
|
1989
|
-
const ret = wasm.
|
|
2135
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_database_get_location() {
|
|
2136
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_database_get_location();
|
|
1990
2137
|
return ret;
|
|
1991
2138
|
}
|
|
1992
|
-
function
|
|
1993
|
-
const ret = wasm.
|
|
1994
|
-
return
|
|
1995
|
-
}
|
|
1996
|
-
function ubrn_ffi_core_crypto_ffi_rust_future_free_u8(handle) {
|
|
1997
|
-
wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_u8(handle);
|
|
2139
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_is_valid() {
|
|
2140
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_is_valid();
|
|
2141
|
+
return ret;
|
|
1998
2142
|
}
|
|
1999
|
-
function
|
|
2000
|
-
const ret = wasm.
|
|
2143
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_clientid_copy_bytes() {
|
|
2144
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_clientid_copy_bytes();
|
|
2001
2145
|
return ret;
|
|
2002
2146
|
}
|
|
2003
|
-
function
|
|
2147
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_decrypt_safe(ptr, session_id, ciphertext) {
|
|
2004
2148
|
const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
|
|
2005
2149
|
const len0 = WASM_VECTOR_LEN;
|
|
2006
|
-
const
|
|
2150
|
+
const ptr1 = passArray8ToWasm0(ciphertext, wasm.__wbindgen_malloc);
|
|
2151
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2152
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_decrypt_safe(ptr, ptr0, len0, ptr1, len1);
|
|
2007
2153
|
return BigInt.asUintN(64, ret);
|
|
2008
2154
|
}
|
|
2009
|
-
function
|
|
2010
|
-
const ret = wasm.
|
|
2011
|
-
return
|
|
2155
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_is_pki_env_setup() {
|
|
2156
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_is_pki_env_setup();
|
|
2157
|
+
return ret;
|
|
2012
2158
|
}
|
|
2013
|
-
function
|
|
2014
|
-
const ret = wasm.
|
|
2159
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_is_enabled() {
|
|
2160
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_is_enabled();
|
|
2015
2161
|
return ret;
|
|
2016
2162
|
}
|
|
2017
|
-
function
|
|
2018
|
-
wasm.
|
|
2163
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_free_u32(handle) {
|
|
2164
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_u32(handle);
|
|
2019
2165
|
}
|
|
2020
|
-
function
|
|
2021
|
-
const
|
|
2166
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_add_clients_to_conversation(ptr, conversation_id, key_packages) {
|
|
2167
|
+
const ptr0 = passArray8ToWasm0(key_packages, wasm.__wbindgen_malloc);
|
|
2168
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2169
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_add_clients_to_conversation(ptr, conversation_id, ptr0, len0);
|
|
2022
2170
|
return BigInt.asUintN(64, ret);
|
|
2023
2171
|
}
|
|
2024
|
-
function
|
|
2025
|
-
const ret = wasm.
|
|
2172
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_func_build_metadata() {
|
|
2173
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_build_metadata();
|
|
2026
2174
|
return ret;
|
|
2027
2175
|
}
|
|
2028
|
-
function
|
|
2029
|
-
const ret = wasm.
|
|
2176
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_databasekey_new() {
|
|
2177
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_databasekey_new();
|
|
2030
2178
|
return ret;
|
|
2031
2179
|
}
|
|
2032
|
-
function
|
|
2033
|
-
const ret = wasm.
|
|
2180
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_get_client_ids(ptr, conversation_id) {
|
|
2181
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_get_client_ids(ptr, conversation_id);
|
|
2034
2182
|
return BigInt.asUintN(64, ret);
|
|
2035
2183
|
}
|
|
2036
|
-
function
|
|
2037
|
-
const
|
|
2038
|
-
|
|
2184
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_deviceid_from_hex_string(hex_string, f_status_) {
|
|
2185
|
+
const ptr0 = passArray8ToWasm0(hex_string, wasm.__wbindgen_malloc);
|
|
2186
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2187
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2188
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_deviceid_from_hex_string(ptr0, len0, f_status_.__wbg_ptr);
|
|
2189
|
+
return BigInt.asUintN(64, ret);
|
|
2039
2190
|
}
|
|
2040
|
-
function
|
|
2041
|
-
|
|
2191
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_eq_eq(ptr, other, f_status_) {
|
|
2192
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2193
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_eq_eq(ptr, other, f_status_.__wbg_ptr);
|
|
2042
2194
|
return ret;
|
|
2043
2195
|
}
|
|
2044
|
-
function
|
|
2196
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_epochobserver(handle, f_status_) {
|
|
2045
2197
|
_assertClass(f_status_, RustCallStatus);
|
|
2046
|
-
|
|
2047
|
-
return ret;
|
|
2198
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_epochobserver(handle, f_status_.__wbg_ptr);
|
|
2048
2199
|
}
|
|
2049
|
-
function
|
|
2050
|
-
const ret = wasm.
|
|
2200
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_is_history_sharing_enabled(ptr, conversation_id) {
|
|
2201
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_is_history_sharing_enabled(ptr, conversation_id);
|
|
2202
|
+
return BigInt.asUintN(64, ret);
|
|
2203
|
+
}
|
|
2204
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_mlstransport(handle, f_status_) {
|
|
2205
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2206
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_mlstransport(handle, f_status_.__wbg_ptr);
|
|
2207
|
+
}
|
|
2208
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_free_u16(handle) {
|
|
2209
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_u16(handle);
|
|
2210
|
+
}
|
|
2211
|
+
function ubrn_uniffi_core_crypto_ffi_fn_func_cipher_suite_from_u16(discriminant, f_status_) {
|
|
2212
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2213
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_cipher_suite_from_u16(discriminant, f_status_.__wbg_ptr);
|
|
2214
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2215
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2216
|
+
return v1;
|
|
2217
|
+
}
|
|
2218
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_x509credentialacquisition_finalize(ptr) {
|
|
2219
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_x509credentialacquisition_finalize(ptr);
|
|
2051
2220
|
return BigInt.asUintN(64, ret);
|
|
2052
2221
|
}
|
|
2053
|
-
function
|
|
2054
|
-
const ret = wasm.
|
|
2222
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_wipe_conversation() {
|
|
2223
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_wipe_conversation();
|
|
2055
2224
|
return ret;
|
|
2056
2225
|
}
|
|
2057
|
-
function
|
|
2058
|
-
const
|
|
2059
|
-
|
|
2226
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_save(ptr, session_id) {
|
|
2227
|
+
const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
|
|
2228
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2229
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_save(ptr, ptr0, len0);
|
|
2230
|
+
return BigInt.asUintN(64, ret);
|
|
2060
2231
|
}
|
|
2061
|
-
function
|
|
2062
|
-
|
|
2063
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_ne(ptr, other, f_status_.__wbg_ptr);
|
|
2232
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint_remote() {
|
|
2233
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint_remote();
|
|
2064
2234
|
return ret;
|
|
2065
2235
|
}
|
|
2066
|
-
function
|
|
2067
|
-
const ret = wasm.
|
|
2236
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_frombytes() {
|
|
2237
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_frombytes();
|
|
2068
2238
|
return ret;
|
|
2069
2239
|
}
|
|
2070
|
-
function
|
|
2071
|
-
const
|
|
2072
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2073
|
-
_assertClass(f_status_, RustCallStatus);
|
|
2074
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_frombytes(pki_environment, ptr0, len0, f_status_.__wbg_ptr);
|
|
2075
|
-
return BigInt.asUintN(64, ret);
|
|
2076
|
-
}
|
|
2077
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_method_keypackage_serialize() {
|
|
2078
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_keypackage_serialize();
|
|
2240
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_remove_key_packages_for() {
|
|
2241
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_remove_key_packages_for();
|
|
2079
2242
|
return ret;
|
|
2080
2243
|
}
|
|
2081
|
-
function
|
|
2082
|
-
const ptr0 = passArray8ToWasm0(
|
|
2244
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_remove_clients_from_conversation(ptr, conversation_id, clients) {
|
|
2245
|
+
const ptr0 = passArray8ToWasm0(clients, wasm.__wbindgen_malloc);
|
|
2083
2246
|
const len0 = WASM_VECTOR_LEN;
|
|
2084
|
-
const ret = wasm.
|
|
2247
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_remove_clients_from_conversation(ptr, conversation_id, ptr0, len0);
|
|
2085
2248
|
return BigInt.asUintN(64, ret);
|
|
2086
2249
|
}
|
|
2087
|
-
function
|
|
2088
|
-
|
|
2089
|
-
|
|
2250
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_conversationid_copy_bytes(ptr, f_status_) {
|
|
2251
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2252
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_conversationid_copy_bytes(ptr, f_status_.__wbg_ptr);
|
|
2253
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2254
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2255
|
+
return v1;
|
|
2090
2256
|
}
|
|
2091
|
-
function
|
|
2092
|
-
const ret = wasm.
|
|
2257
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_conversation_cipher_suite(ptr, conversation_id) {
|
|
2258
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_conversation_cipher_suite(ptr, conversation_id);
|
|
2093
2259
|
return BigInt.asUintN(64, ret);
|
|
2094
2260
|
}
|
|
2095
|
-
function
|
|
2096
|
-
const ret = wasm.
|
|
2097
|
-
return ret;
|
|
2261
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_public_key(ptr, credential_ref) {
|
|
2262
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_public_key(ptr, credential_ref);
|
|
2263
|
+
return BigInt.asUintN(64, ret);
|
|
2098
2264
|
}
|
|
2099
|
-
function
|
|
2100
|
-
const ret = wasm.
|
|
2265
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_process_welcome_message() {
|
|
2266
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_process_welcome_message();
|
|
2101
2267
|
return ret;
|
|
2102
2268
|
}
|
|
2103
|
-
function
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2269
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_http_request(ptr, method, url, headers, body) {
|
|
2270
|
+
const ptr0 = passArray8ToWasm0(method, wasm.__wbindgen_malloc);
|
|
2271
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2272
|
+
const ptr1 = passArray8ToWasm0(url, wasm.__wbindgen_malloc);
|
|
2273
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2274
|
+
const ptr2 = passArray8ToWasm0(headers, wasm.__wbindgen_malloc);
|
|
2275
|
+
const len2 = WASM_VECTOR_LEN;
|
|
2276
|
+
const ptr3 = passArray8ToWasm0(body, wasm.__wbindgen_malloc);
|
|
2277
|
+
const len3 = WASM_VECTOR_LEN;
|
|
2278
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_http_request(ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
2279
|
+
return BigInt.asUintN(64, ret);
|
|
2108
2280
|
}
|
|
2109
|
-
function
|
|
2110
|
-
const ret = wasm.
|
|
2281
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_database_get_location(ptr) {
|
|
2282
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_database_get_location(ptr);
|
|
2111
2283
|
return BigInt.asUintN(64, ret);
|
|
2112
2284
|
}
|
|
2113
|
-
function
|
|
2114
|
-
const
|
|
2285
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_func_core_crypto_new() {
|
|
2286
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_core_crypto_new();
|
|
2287
|
+
return ret;
|
|
2288
|
+
}
|
|
2289
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_encrypt_message(ptr, conversation_id, message) {
|
|
2290
|
+
const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
|
2115
2291
|
const len0 = WASM_VECTOR_LEN;
|
|
2116
|
-
const ret = wasm.
|
|
2292
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_encrypt_message(ptr, conversation_id, ptr0, len0);
|
|
2117
2293
|
return BigInt.asUintN(64, ret);
|
|
2118
2294
|
}
|
|
2119
|
-
function
|
|
2120
|
-
wasm.
|
|
2295
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_free_i32(handle) {
|
|
2296
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_i32(handle);
|
|
2121
2297
|
}
|
|
2122
|
-
function
|
|
2123
|
-
const ret = wasm.
|
|
2298
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_disable_history_sharing() {
|
|
2299
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_disable_history_sharing();
|
|
2124
2300
|
return ret;
|
|
2125
2301
|
}
|
|
2126
|
-
function
|
|
2127
|
-
const ret = wasm.
|
|
2302
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_remove_credential() {
|
|
2303
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_remove_credential();
|
|
2128
2304
|
return ret;
|
|
2129
2305
|
}
|
|
2130
|
-
function
|
|
2131
|
-
const ret = wasm.
|
|
2306
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_remove_clients_from_conversation() {
|
|
2307
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_remove_clients_from_conversation();
|
|
2132
2308
|
return ret;
|
|
2133
2309
|
}
|
|
2134
|
-
function
|
|
2310
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_externalsender_uniffi_trait_eq_eq(ptr, other, f_status_) {
|
|
2135
2311
|
_assertClass(f_status_, RustCallStatus);
|
|
2136
|
-
const ret = wasm.
|
|
2137
|
-
return
|
|
2312
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_externalsender_uniffi_trait_eq_eq(ptr, other, f_status_.__wbg_ptr);
|
|
2313
|
+
return ret;
|
|
2138
2314
|
}
|
|
2139
|
-
function
|
|
2140
|
-
wasm.
|
|
2315
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_keypackage_ref() {
|
|
2316
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_keypackage_ref();
|
|
2317
|
+
return ret;
|
|
2141
2318
|
}
|
|
2142
|
-
function
|
|
2143
|
-
|
|
2144
|
-
const
|
|
2319
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_get_device_identities(ptr, conversation_id, device_ids) {
|
|
2320
|
+
const ptr0 = passArray8ToWasm0(device_ids, wasm.__wbindgen_malloc);
|
|
2321
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2322
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_get_device_identities(ptr, conversation_id, ptr0, len0);
|
|
2145
2323
|
return BigInt.asUintN(64, ret);
|
|
2146
2324
|
}
|
|
2147
|
-
function
|
|
2148
|
-
const ret = wasm.
|
|
2325
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_session_exists() {
|
|
2326
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_session_exists();
|
|
2149
2327
|
return ret;
|
|
2150
2328
|
}
|
|
2151
|
-
function
|
|
2152
|
-
const ret = wasm.
|
|
2153
|
-
return BigInt.asUintN(64, ret);
|
|
2154
|
-
}
|
|
2155
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_conversationid_new() {
|
|
2156
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_conversationid_new();
|
|
2329
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_mlstransport_send_commit_bundle() {
|
|
2330
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_mlstransport_send_commit_bundle();
|
|
2157
2331
|
return ret;
|
|
2158
2332
|
}
|
|
2159
|
-
function
|
|
2160
|
-
const ptr0 = passArray8ToWasm0(
|
|
2333
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_secretkey_new(bytes, f_status_) {
|
|
2334
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
2161
2335
|
const len0 = WASM_VECTOR_LEN;
|
|
2162
|
-
|
|
2336
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2337
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_secretkey_new(ptr0, len0, f_status_.__wbg_ptr);
|
|
2163
2338
|
return BigInt.asUintN(64, ret);
|
|
2164
2339
|
}
|
|
2165
|
-
function
|
|
2166
|
-
const ret = wasm.
|
|
2340
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_exists() {
|
|
2341
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_exists();
|
|
2167
2342
|
return ret;
|
|
2168
2343
|
}
|
|
2169
|
-
function
|
|
2344
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_credential_type(ptr, f_status_) {
|
|
2170
2345
|
_assertClass(f_status_, RustCallStatus);
|
|
2171
|
-
const ret = wasm.
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_pki_environment();
|
|
2176
|
-
return ret;
|
|
2346
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credential_type(ptr, f_status_.__wbg_ptr);
|
|
2347
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2348
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2349
|
+
return v1;
|
|
2177
2350
|
}
|
|
2178
|
-
function
|
|
2179
|
-
|
|
2351
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_ne(ptr, other, f_status_) {
|
|
2352
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2353
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_ne(ptr, other, f_status_.__wbg_ptr);
|
|
2180
2354
|
return ret;
|
|
2181
2355
|
}
|
|
2182
|
-
function
|
|
2356
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_conversationid_uniffi_trait_debug(ptr, f_status_) {
|
|
2183
2357
|
_assertClass(f_status_, RustCallStatus);
|
|
2184
|
-
const ret = wasm.
|
|
2358
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_conversationid_uniffi_trait_debug(ptr, f_status_.__wbg_ptr);
|
|
2185
2359
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2186
2360
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2187
2361
|
return v1;
|
|
2188
2362
|
}
|
|
2189
|
-
function
|
|
2363
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_ne(ptr, other, f_status_) {
|
|
2190
2364
|
_assertClass(f_status_, RustCallStatus);
|
|
2191
|
-
const ret = wasm.
|
|
2192
|
-
return BigInt.asUintN(64, ret);
|
|
2193
|
-
}
|
|
2194
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_method_credential_earliest_validity() {
|
|
2195
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credential_earliest_validity();
|
|
2365
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_ne(ptr, other, f_status_.__wbg_ptr);
|
|
2196
2366
|
return ret;
|
|
2197
2367
|
}
|
|
2198
|
-
function
|
|
2199
|
-
const ret = wasm.
|
|
2200
|
-
return ret;
|
|
2368
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_transaction_ffi(ptr, command) {
|
|
2369
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_transaction_ffi(ptr, command);
|
|
2370
|
+
return BigInt.asUintN(64, ret);
|
|
2201
2371
|
}
|
|
2202
|
-
function
|
|
2203
|
-
|
|
2204
|
-
|
|
2372
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_database(handle, f_status_) {
|
|
2373
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2374
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_database(handle, f_status_.__wbg_ptr);
|
|
2375
|
+
return BigInt.asUintN(64, ret);
|
|
2205
2376
|
}
|
|
2206
|
-
function
|
|
2207
|
-
const ret = wasm.
|
|
2377
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_register_epoch_observer() {
|
|
2378
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_register_epoch_observer();
|
|
2208
2379
|
return ret;
|
|
2209
2380
|
}
|
|
2210
|
-
function
|
|
2211
|
-
|
|
2381
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_eq(ptr, other, f_status_) {
|
|
2382
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2383
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_eq(ptr, other, f_status_.__wbg_ptr);
|
|
2212
2384
|
return ret;
|
|
2213
2385
|
}
|
|
2214
|
-
function
|
|
2215
|
-
const ptr0 = passArray8ToWasm0(secret, wasm.__wbindgen_malloc);
|
|
2216
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2217
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_historyobserver_history_client_created(ptr, conversation_id, ptr0, len0);
|
|
2218
|
-
return BigInt.asUintN(64, ret);
|
|
2219
|
-
}
|
|
2220
|
-
function ubrn_uniffi_core_crypto_ffi_fn_method_conversationid_uniffi_trait_hash(ptr, f_status_) {
|
|
2386
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_conversationid(handle, f_status_) {
|
|
2221
2387
|
_assertClass(f_status_, RustCallStatus);
|
|
2222
|
-
const ret = wasm.
|
|
2388
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_conversationid(handle, f_status_.__wbg_ptr);
|
|
2223
2389
|
return BigInt.asUintN(64, ret);
|
|
2224
2390
|
}
|
|
2225
|
-
function
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
return ret;
|
|
2229
|
-
}
|
|
2230
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_add_clients_to_conversation() {
|
|
2231
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_add_clients_to_conversation();
|
|
2232
|
-
return ret;
|
|
2391
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_update_keying_material(ptr, conversation_id) {
|
|
2392
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_update_keying_material(ptr, conversation_id);
|
|
2393
|
+
return BigInt.asUintN(64, ret);
|
|
2233
2394
|
}
|
|
2234
|
-
function
|
|
2395
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_delete(ptr, session_id) {
|
|
2235
2396
|
const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
|
|
2236
2397
|
const len0 = WASM_VECTOR_LEN;
|
|
2237
|
-
const
|
|
2238
|
-
const len1 = WASM_VECTOR_LEN;
|
|
2239
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_from_prekey(ptr, ptr0, len0, ptr1, len1);
|
|
2398
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_delete(ptr, ptr0, len0);
|
|
2240
2399
|
return BigInt.asUintN(64, ret);
|
|
2241
2400
|
}
|
|
2242
|
-
function
|
|
2243
|
-
|
|
2244
|
-
return BigInt.asUintN(64, ret);
|
|
2401
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_poll_u64(handle, callback, callback_data) {
|
|
2402
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_u64(handle, callback, callback_data);
|
|
2245
2403
|
}
|
|
2246
|
-
function
|
|
2247
|
-
const ret = wasm.
|
|
2404
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_e2ei_conversation_state() {
|
|
2405
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_e2ei_conversation_state();
|
|
2248
2406
|
return ret;
|
|
2249
2407
|
}
|
|
2250
|
-
function
|
|
2251
|
-
const ret = wasm.
|
|
2408
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_client_ids() {
|
|
2409
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_client_ids();
|
|
2252
2410
|
return ret;
|
|
2253
2411
|
}
|
|
2254
|
-
function
|
|
2255
|
-
const ret = wasm.
|
|
2256
|
-
return
|
|
2412
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_find_credentials_ffi() {
|
|
2413
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_find_credentials_ffi();
|
|
2414
|
+
return ret;
|
|
2257
2415
|
}
|
|
2258
|
-
function
|
|
2259
|
-
const ret = wasm.
|
|
2416
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_random_bytes() {
|
|
2417
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_random_bytes();
|
|
2418
|
+
return ret;
|
|
2419
|
+
}
|
|
2420
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_add_credential(ptr, credential) {
|
|
2421
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_add_credential(ptr, credential);
|
|
2260
2422
|
return BigInt.asUintN(64, ret);
|
|
2261
2423
|
}
|
|
2262
|
-
function
|
|
2263
|
-
|
|
2264
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_keypackage(handle, f_status_.__wbg_ptr);
|
|
2424
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocommand_execute(ptr, context) {
|
|
2425
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocommand_execute(ptr, context);
|
|
2265
2426
|
return BigInt.asUintN(64, ret);
|
|
2266
2427
|
}
|
|
2267
|
-
function
|
|
2268
|
-
|
|
2269
|
-
return BigInt.asUintN(64, ret);
|
|
2428
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_poll_u16(handle, callback, callback_data) {
|
|
2429
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_u16(handle, callback, callback_data);
|
|
2270
2430
|
}
|
|
2271
|
-
function
|
|
2272
|
-
const
|
|
2273
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2274
|
-
const ptr1 = passArray8ToWasm0(plaintext, wasm.__wbindgen_malloc);
|
|
2275
|
-
const len1 = WASM_VECTOR_LEN;
|
|
2276
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_encrypt(ptr, ptr0, len0, ptr1, len1);
|
|
2431
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_set_conversation_credential(ptr, conversation_id, credential_ref) {
|
|
2432
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_set_conversation_credential(ptr, conversation_id, credential_ref);
|
|
2277
2433
|
return BigInt.asUintN(64, ret);
|
|
2278
2434
|
}
|
|
2279
|
-
function
|
|
2280
|
-
const ret = wasm.
|
|
2435
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_credential_signature_scheme() {
|
|
2436
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credential_signature_scheme();
|
|
2281
2437
|
return ret;
|
|
2282
2438
|
}
|
|
2283
|
-
function
|
|
2284
|
-
const ret = wasm.
|
|
2439
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_encrypt_message() {
|
|
2440
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_encrypt_message();
|
|
2285
2441
|
return ret;
|
|
2286
2442
|
}
|
|
2287
|
-
function
|
|
2288
|
-
const ret = wasm.
|
|
2443
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_register_history_observer() {
|
|
2444
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_register_history_observer();
|
|
2289
2445
|
return ret;
|
|
2290
2446
|
}
|
|
2291
|
-
function
|
|
2292
|
-
const ret = wasm.
|
|
2447
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_new_prekey_auto(ptr) {
|
|
2448
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_new_prekey_auto(ptr);
|
|
2449
|
+
return BigInt.asUintN(64, ret);
|
|
2450
|
+
}
|
|
2451
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_conversation_exists(ptr, conversation_id) {
|
|
2452
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_conversation_exists(ptr, conversation_id);
|
|
2453
|
+
return BigInt.asUintN(64, ret);
|
|
2454
|
+
}
|
|
2455
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_clientid_deserialize() {
|
|
2456
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_clientid_deserialize();
|
|
2293
2457
|
return ret;
|
|
2294
2458
|
}
|
|
2295
|
-
function
|
|
2296
|
-
const ret = wasm.
|
|
2459
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_new() {
|
|
2460
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_new();
|
|
2297
2461
|
return ret;
|
|
2298
2462
|
}
|
|
2299
|
-
function
|
|
2463
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_hash(ptr, f_status_) {
|
|
2300
2464
|
_assertClass(f_status_, RustCallStatus);
|
|
2301
|
-
wasm.
|
|
2465
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_hash(ptr, f_status_.__wbg_ptr);
|
|
2466
|
+
return BigInt.asUintN(64, ret);
|
|
2302
2467
|
}
|
|
2303
|
-
function
|
|
2468
|
+
function ubrn_uniffi_core_crypto_ffi_fn_init_callback_vtable_corecryptocommand(vtable) {
|
|
2469
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_init_callback_vtable_corecryptocommand(vtable);
|
|
2470
|
+
}
|
|
2471
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_get_credentials(ptr) {
|
|
2472
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_get_credentials(ptr);
|
|
2473
|
+
return BigInt.asUintN(64, ret);
|
|
2474
|
+
}
|
|
2475
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_keypackage_serialize(ptr, f_status_) {
|
|
2304
2476
|
_assertClass(f_status_, RustCallStatus);
|
|
2305
|
-
wasm.
|
|
2477
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_keypackage_serialize(ptr, f_status_.__wbg_ptr);
|
|
2478
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2479
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2480
|
+
return v1;
|
|
2306
2481
|
}
|
|
2307
|
-
function
|
|
2308
|
-
|
|
2309
|
-
return ret;
|
|
2482
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_cancel_rust_buffer(handle) {
|
|
2483
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_rust_buffer(handle);
|
|
2310
2484
|
}
|
|
2311
2485
|
function ubrn_uniffi_core_crypto_ffi_fn_method_databasekey_uniffi_trait_debug(ptr, f_status_) {
|
|
2312
2486
|
_assertClass(f_status_, RustCallStatus);
|
|
@@ -2315,54 +2489,44 @@ function ubrn_uniffi_core_crypto_ffi_fn_method_databasekey_uniffi_trait_debug(pt
|
|
|
2315
2489
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2316
2490
|
return v1;
|
|
2317
2491
|
}
|
|
2318
|
-
function
|
|
2319
|
-
const ret = wasm.
|
|
2320
|
-
return ret;
|
|
2321
|
-
}
|
|
2322
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_e2ei_is_enabled() {
|
|
2323
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_e2ei_is_enabled();
|
|
2324
|
-
return ret;
|
|
2492
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_register_epoch_observer(ptr, epoch_observer) {
|
|
2493
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_register_epoch_observer(ptr, epoch_observer);
|
|
2494
|
+
return BigInt.asUintN(64, ret);
|
|
2325
2495
|
}
|
|
2326
|
-
function
|
|
2327
|
-
const ret = wasm.
|
|
2328
|
-
return ret;
|
|
2496
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_data(ptr) {
|
|
2497
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_data(ptr);
|
|
2498
|
+
return BigInt.asUintN(64, ret);
|
|
2329
2499
|
}
|
|
2330
|
-
function
|
|
2331
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
2332
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2500
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_client_id(ptr, f_status_) {
|
|
2333
2501
|
_assertClass(f_status_, RustCallStatus);
|
|
2334
|
-
const ret = wasm.
|
|
2502
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_client_id(ptr, f_status_.__wbg_ptr);
|
|
2335
2503
|
return BigInt.asUintN(64, ret);
|
|
2336
2504
|
}
|
|
2337
|
-
function
|
|
2505
|
+
function ubrn_uniffi_core_crypto_ffi_fn_clone_uuid(handle, f_status_) {
|
|
2338
2506
|
_assertClass(f_status_, RustCallStatus);
|
|
2339
|
-
const ret = wasm.
|
|
2507
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_uuid(handle, f_status_.__wbg_ptr);
|
|
2340
2508
|
return BigInt.asUintN(64, ret);
|
|
2341
2509
|
}
|
|
2342
|
-
function
|
|
2343
|
-
wasm.
|
|
2344
|
-
}
|
|
2345
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_open() {
|
|
2346
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_open();
|
|
2347
|
-
return ret;
|
|
2348
|
-
}
|
|
2349
|
-
function ubrn_ffi_core_crypto_ffi_rust_future_free_rust_buffer(handle) {
|
|
2350
|
-
wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_rust_buffer(handle);
|
|
2351
|
-
}
|
|
2352
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_func_core_crypto_history_client() {
|
|
2353
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_core_crypto_history_client();
|
|
2510
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse() {
|
|
2511
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse();
|
|
2354
2512
|
return ret;
|
|
2355
2513
|
}
|
|
2356
|
-
function
|
|
2357
|
-
wasm.
|
|
2514
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_fingerprint_remote(ptr, session_id) {
|
|
2515
|
+
const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
|
|
2516
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2517
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_fingerprint_remote(ptr, ptr0, len0);
|
|
2518
|
+
return BigInt.asUintN(64, ret);
|
|
2358
2519
|
}
|
|
2359
|
-
function
|
|
2360
|
-
const ret = wasm.
|
|
2520
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_join_by_external_commit() {
|
|
2521
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_join_by_external_commit();
|
|
2361
2522
|
return ret;
|
|
2362
2523
|
}
|
|
2363
|
-
function
|
|
2364
|
-
|
|
2365
|
-
|
|
2524
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_display(ptr, f_status_) {
|
|
2525
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2526
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_display(ptr, f_status_.__wbg_ptr);
|
|
2527
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2528
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2529
|
+
return v1;
|
|
2366
2530
|
}
|
|
2367
2531
|
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_user_identities(ptr, conversation_id, user_ids) {
|
|
2368
2532
|
const ptr0 = passArray8ToWasm0(user_ids, wasm.__wbindgen_malloc);
|
|
@@ -2370,198 +2534,160 @@ function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_user_identi
|
|
|
2370
2534
|
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_user_identities(ptr, conversation_id, ptr0, len0);
|
|
2371
2535
|
return BigInt.asUintN(64, ret);
|
|
2372
2536
|
}
|
|
2373
|
-
function
|
|
2374
|
-
const
|
|
2375
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2376
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_get_user_identities(ptr, conversation_id, ptr0, len0);
|
|
2537
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_process_welcome_message(ptr, welcome_message) {
|
|
2538
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_process_welcome_message(ptr, welcome_message);
|
|
2377
2539
|
return BigInt.asUintN(64, ret);
|
|
2378
2540
|
}
|
|
2379
|
-
function
|
|
2380
|
-
const
|
|
2381
|
-
|
|
2382
|
-
|
|
2541
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_conversation_credential() {
|
|
2542
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_conversation_credential();
|
|
2543
|
+
return ret;
|
|
2544
|
+
}
|
|
2545
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_join_by_external_commit(ptr, group_info, credential_ref) {
|
|
2546
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_join_by_external_commit(ptr, group_info, credential_ref);
|
|
2383
2547
|
return BigInt.asUintN(64, ret);
|
|
2384
2548
|
}
|
|
2385
|
-
function
|
|
2386
|
-
const ret = wasm.
|
|
2549
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_conversationid_new() {
|
|
2550
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_conversationid_new();
|
|
2387
2551
|
return ret;
|
|
2388
2552
|
}
|
|
2389
|
-
function
|
|
2390
|
-
const ptr0 = passArray8ToWasm0(
|
|
2553
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_new(pki_environment, config, f_status_) {
|
|
2554
|
+
const ptr0 = passArray8ToWasm0(config, wasm.__wbindgen_malloc);
|
|
2391
2555
|
const len0 = WASM_VECTOR_LEN;
|
|
2392
|
-
|
|
2393
|
-
const
|
|
2394
|
-
const ptr2 = passArray8ToWasm0(cipher_suite, wasm.__wbindgen_malloc);
|
|
2395
|
-
const len2 = WASM_VECTOR_LEN;
|
|
2396
|
-
const ptr3 = passArray8ToWasm0(credential_type, wasm.__wbindgen_malloc);
|
|
2397
|
-
const len3 = WASM_VECTOR_LEN;
|
|
2398
|
-
const ptr4 = passArray8ToWasm0(earliest_validity, wasm.__wbindgen_malloc);
|
|
2399
|
-
const len4 = WASM_VECTOR_LEN;
|
|
2400
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_find_credentials_ffi(ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
2556
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2557
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_new(pki_environment, ptr0, len0, f_status_.__wbg_ptr);
|
|
2401
2558
|
return BigInt.asUintN(64, ret);
|
|
2402
2559
|
}
|
|
2403
|
-
function
|
|
2404
|
-
const ret = wasm.
|
|
2405
|
-
return
|
|
2560
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_proteus_fingerprint() {
|
|
2561
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_proteus_fingerprint();
|
|
2562
|
+
return ret;
|
|
2406
2563
|
}
|
|
2407
|
-
function
|
|
2408
|
-
const ret = wasm.
|
|
2564
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_credential_export_pem() {
|
|
2565
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credential_export_pem();
|
|
2409
2566
|
return ret;
|
|
2410
2567
|
}
|
|
2411
|
-
function
|
|
2568
|
+
function ubrn_uniffi_core_crypto_ffi_fn_func_set_max_log_level(level, f_status_) {
|
|
2569
|
+
const ptr0 = passArray8ToWasm0(level, wasm.__wbindgen_malloc);
|
|
2570
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2412
2571
|
_assertClass(f_status_, RustCallStatus);
|
|
2413
|
-
|
|
2414
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2415
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2416
|
-
return v1;
|
|
2572
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_func_set_max_log_level(ptr0, len0, f_status_.__wbg_ptr);
|
|
2417
2573
|
}
|
|
2418
|
-
function
|
|
2419
|
-
|
|
2574
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_cancel_f64(handle) {
|
|
2575
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_f64(handle);
|
|
2576
|
+
}
|
|
2577
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_complete_i64(handle, f_status_) {
|
|
2578
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2579
|
+
const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_i64(handle, f_status_.__wbg_ptr);
|
|
2420
2580
|
return ret;
|
|
2421
2581
|
}
|
|
2422
|
-
function
|
|
2423
|
-
|
|
2582
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_credential_earliest_validity(ptr, f_status_) {
|
|
2583
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2584
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credential_earliest_validity(ptr, f_status_.__wbg_ptr);
|
|
2424
2585
|
return BigInt.asUintN(64, ret);
|
|
2425
2586
|
}
|
|
2426
|
-
function
|
|
2427
|
-
const ret = wasm.
|
|
2428
|
-
return
|
|
2587
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_decrypt() {
|
|
2588
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_decrypt();
|
|
2589
|
+
return ret;
|
|
2590
|
+
}
|
|
2591
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_mls_init() {
|
|
2592
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_mls_init();
|
|
2593
|
+
return ret;
|
|
2429
2594
|
}
|
|
2430
2595
|
function ubrn_uniffi_core_crypto_ffi_fn_free_welcome(handle, f_status_) {
|
|
2431
2596
|
_assertClass(f_status_, RustCallStatus);
|
|
2432
2597
|
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_welcome(handle, f_status_.__wbg_ptr);
|
|
2433
2598
|
}
|
|
2434
|
-
function
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2438
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2439
|
-
return v1;
|
|
2440
|
-
}
|
|
2441
|
-
function ubrn_uniffi_core_crypto_ffi_fn_free_pkienvironment(handle, f_status_) {
|
|
2442
|
-
_assertClass(f_status_, RustCallStatus);
|
|
2443
|
-
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_pkienvironment(handle, f_status_.__wbg_ptr);
|
|
2599
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_open() {
|
|
2600
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_open();
|
|
2601
|
+
return ret;
|
|
2444
2602
|
}
|
|
2445
|
-
function
|
|
2446
|
-
const ret = wasm.
|
|
2603
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_mls_init(ptr, client_id, transport) {
|
|
2604
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_mls_init(ptr, client_id, transport);
|
|
2447
2605
|
return BigInt.asUintN(64, ret);
|
|
2448
2606
|
}
|
|
2449
|
-
function
|
|
2450
|
-
wasm.
|
|
2451
|
-
}
|
|
2452
|
-
function ubrn_ffi_core_crypto_ffi_rust_future_cancel_u32(handle) {
|
|
2453
|
-
wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_u32(handle);
|
|
2454
|
-
}
|
|
2455
|
-
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_disable_history_sharing(ptr, conversation_id) {
|
|
2456
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_disable_history_sharing(ptr, conversation_id);
|
|
2457
|
-
return BigInt.asUintN(64, ret);
|
|
2607
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_cancel_u8(handle) {
|
|
2608
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_u8(handle);
|
|
2458
2609
|
}
|
|
2459
|
-
function
|
|
2460
|
-
const ptr0 = passArray8ToWasm0(
|
|
2610
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_create_conversation(ptr, conversation_id, credential_ref, external_sender) {
|
|
2611
|
+
const ptr0 = passArray8ToWasm0(external_sender, wasm.__wbindgen_malloc);
|
|
2461
2612
|
const len0 = WASM_VECTOR_LEN;
|
|
2462
|
-
const
|
|
2463
|
-
const len1 = WASM_VECTOR_LEN;
|
|
2464
|
-
_assertClass(f_status_, RustCallStatus);
|
|
2465
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_externalsender_parse(ptr0, len0, ptr1, len1, f_status_.__wbg_ptr);
|
|
2466
|
-
return BigInt.asUintN(64, ret);
|
|
2467
|
-
}
|
|
2468
|
-
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_transaction_ffi(ptr, command) {
|
|
2469
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_transaction_ffi(ptr, command);
|
|
2613
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_create_conversation(ptr, conversation_id, credential_ref, ptr0, len0);
|
|
2470
2614
|
return BigInt.asUintN(64, ret);
|
|
2471
2615
|
}
|
|
2472
|
-
function
|
|
2473
|
-
wasm.
|
|
2474
|
-
}
|
|
2475
|
-
function ubrn_uniffi_core_crypto_ffi_fn_method_mlstransport_send_commit_bundle(ptr, commit_bundle) {
|
|
2476
|
-
const ptr0 = passArray8ToWasm0(commit_bundle, wasm.__wbindgen_malloc);
|
|
2477
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2478
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_mlstransport_send_commit_bundle(ptr, ptr0, len0);
|
|
2479
|
-
return BigInt.asUintN(64, ret);
|
|
2616
|
+
function ubrn_ffi_core_crypto_ffi_rust_future_poll_i8(handle, callback, callback_data) {
|
|
2617
|
+
wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_i8(handle, callback, callback_data);
|
|
2480
2618
|
}
|
|
2481
|
-
function
|
|
2482
|
-
const ptr0 = passArray8ToWasm0(
|
|
2619
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_fetch_backend_access_token(ptr, dpop) {
|
|
2620
|
+
const ptr0 = passArray8ToWasm0(dpop, wasm.__wbindgen_malloc);
|
|
2483
2621
|
const len0 = WASM_VECTOR_LEN;
|
|
2484
|
-
const ret = wasm.
|
|
2622
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_fetch_backend_access_token(ptr, ptr0, len0);
|
|
2485
2623
|
return BigInt.asUintN(64, ret);
|
|
2486
2624
|
}
|
|
2487
|
-
function
|
|
2488
|
-
|
|
2489
|
-
const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_u16(handle, f_status_.__wbg_ptr);
|
|
2490
|
-
return ret;
|
|
2491
|
-
}
|
|
2492
|
-
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_random_bytes(ptr, len) {
|
|
2493
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_random_bytes(ptr, len);
|
|
2625
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_conversation_credential(ptr, conversation_id) {
|
|
2626
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_conversation_credential(ptr, conversation_id);
|
|
2494
2627
|
return BigInt.asUintN(64, ret);
|
|
2495
2628
|
}
|
|
2496
|
-
function
|
|
2497
|
-
|
|
2498
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_credentialref(handle, f_status_.__wbg_ptr);
|
|
2629
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_remove_key_packages_for(ptr, credential_ref) {
|
|
2630
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_remove_key_packages_for(ptr, credential_ref);
|
|
2499
2631
|
return BigInt.asUintN(64, ret);
|
|
2500
2632
|
}
|
|
2501
|
-
function
|
|
2502
|
-
const ret = wasm.
|
|
2633
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_device_identities() {
|
|
2634
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_device_identities();
|
|
2503
2635
|
return ret;
|
|
2504
2636
|
}
|
|
2505
|
-
function
|
|
2637
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_databasekey_uniffi_trait_eq_eq(ptr, other, f_status_) {
|
|
2506
2638
|
_assertClass(f_status_, RustCallStatus);
|
|
2507
|
-
const ret = wasm.
|
|
2508
|
-
return
|
|
2639
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_databasekey_uniffi_trait_eq_eq(ptr, other, f_status_.__wbg_ptr);
|
|
2640
|
+
return ret;
|
|
2509
2641
|
}
|
|
2510
2642
|
function ubrn_uniffi_core_crypto_ffi_checksum_method_externalsender_serialize() {
|
|
2511
2643
|
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_externalsender_serialize();
|
|
2512
2644
|
return ret;
|
|
2513
2645
|
}
|
|
2514
|
-
function
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
}
|
|
2518
|
-
function ubrn_uniffi_core_crypto_ffi_checksum_func_cipher_suite_default() {
|
|
2519
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_cipher_suite_default();
|
|
2520
|
-
return ret;
|
|
2646
|
+
function ubrn_uniffi_core_crypto_ffi_fn_free_credential(handle, f_status_) {
|
|
2647
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2648
|
+
wasm.ubrn_uniffi_core_crypto_ffi_fn_free_credential(handle, f_status_.__wbg_ptr);
|
|
2521
2649
|
}
|
|
2522
|
-
function
|
|
2523
|
-
const ret = wasm.
|
|
2650
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_session_from_prekey() {
|
|
2651
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_session_from_prekey();
|
|
2524
2652
|
return ret;
|
|
2525
2653
|
}
|
|
2526
|
-
function
|
|
2654
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_keypackage_ref(ptr, f_status_) {
|
|
2527
2655
|
_assertClass(f_status_, RustCallStatus);
|
|
2528
|
-
wasm.
|
|
2656
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_keypackage_ref(ptr, f_status_.__wbg_ptr);
|
|
2657
|
+
return BigInt.asUintN(64, ret);
|
|
2529
2658
|
}
|
|
2530
|
-
function
|
|
2531
|
-
const ret = wasm.
|
|
2659
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_pkienvironment_new() {
|
|
2660
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_pkienvironment_new();
|
|
2532
2661
|
return ret;
|
|
2533
2662
|
}
|
|
2534
|
-
function
|
|
2535
|
-
wasm.
|
|
2663
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_constructor_clientid_new() {
|
|
2664
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_clientid_new();
|
|
2665
|
+
return ret;
|
|
2536
2666
|
}
|
|
2537
|
-
function
|
|
2538
|
-
|
|
2667
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_deviceid_new(id, f_status_) {
|
|
2668
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2669
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_deviceid_new(id, f_status_.__wbg_ptr);
|
|
2539
2670
|
return BigInt.asUintN(64, ret);
|
|
2540
2671
|
}
|
|
2541
|
-
function
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_save(ptr, session_id) {
|
|
2545
|
-
const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
|
|
2546
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2547
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_save(ptr, ptr0, len0);
|
|
2672
|
+
function ubrn_uniffi_core_crypto_ffi_fn_constructor_corecryptocontext_new(instance, f_status_) {
|
|
2673
|
+
_assertClass(f_status_, RustCallStatus);
|
|
2674
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_corecryptocontext_new(instance, f_status_.__wbg_ptr);
|
|
2548
2675
|
return BigInt.asUintN(64, ret);
|
|
2549
2676
|
}
|
|
2550
|
-
function
|
|
2551
|
-
const ret = wasm.
|
|
2677
|
+
function ubrn_uniffi_core_crypto_ffi_checksum_func_proteus_fingerprint_prekeybundle_ffi() {
|
|
2678
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_proteus_fingerprint_prekeybundle_ffi();
|
|
2552
2679
|
return ret;
|
|
2553
2680
|
}
|
|
2554
|
-
function
|
|
2555
|
-
|
|
2556
|
-
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_corecryptocommand(handle, f_status_.__wbg_ptr);
|
|
2681
|
+
function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_get_pki_environment(ptr) {
|
|
2682
|
+
const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_get_pki_environment(ptr);
|
|
2557
2683
|
return BigInt.asUintN(64, ret);
|
|
2558
2684
|
}
|
|
2559
|
-
function wasm_bindgen__convert__closures_____invoke__h750cfefaea4c73c0(arg0, arg1, arg2) {
|
|
2560
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h750cfefaea4c73c0(arg0, arg1, arg2);
|
|
2561
|
-
}
|
|
2562
2685
|
function wasm_bindgen__convert__closures_____invoke__hf3c68230db5190d1(arg0, arg1, arg2) {
|
|
2563
2686
|
wasm.wasm_bindgen__convert__closures_____invoke__hf3c68230db5190d1(arg0, arg1, arg2);
|
|
2564
2687
|
}
|
|
2688
|
+
function wasm_bindgen__convert__closures_____invoke__h69e5fefe6cfc2af1(arg0, arg1, arg2) {
|
|
2689
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h69e5fefe6cfc2af1(arg0, arg1, arg2);
|
|
2690
|
+
}
|
|
2565
2691
|
var __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
|
|
2566
2692
|
var ForeignFutureCompleteF32Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_foreignfuturecompletef32_free(ptr >>> 0, 1));
|
|
2567
2693
|
|
|
@@ -3275,14 +3401,14 @@ function __wbg_get_imports() {
|
|
|
3275
3401
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
3276
3402
|
}, arguments);
|
|
3277
3403
|
};
|
|
3278
|
-
imports.wbg.
|
|
3404
|
+
imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() {
|
|
3279
3405
|
return handleError(function(arg0, arg1) {
|
|
3280
|
-
|
|
3406
|
+
arg0.getRandomValues(arg1);
|
|
3281
3407
|
}, arguments);
|
|
3282
3408
|
};
|
|
3283
|
-
imports.wbg.
|
|
3409
|
+
imports.wbg.__wbg_getRandomValues_cfa3e51efd7b03ad = function() {
|
|
3284
3410
|
return handleError(function(arg0, arg1) {
|
|
3285
|
-
|
|
3411
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
3286
3412
|
}, arguments);
|
|
3287
3413
|
};
|
|
3288
3414
|
imports.wbg.__wbg_getRandomValues_e378dd0e2b437a84 = function() {
|
|
@@ -3823,12 +3949,12 @@ function __wbg_get_imports() {
|
|
|
3823
3949
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
3824
3950
|
return ret;
|
|
3825
3951
|
};
|
|
3826
|
-
imports.wbg.
|
|
3827
|
-
const ret =
|
|
3952
|
+
imports.wbg.__wbindgen_cast_2cf518115ff3cb31 = function(arg0, arg1) {
|
|
3953
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h4d2826f8cf3948a6, wasm_bindgen__convert__closures_____invoke__hf3c68230db5190d1);
|
|
3828
3954
|
return ret;
|
|
3829
3955
|
};
|
|
3830
|
-
imports.wbg.
|
|
3831
|
-
const ret =
|
|
3956
|
+
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
3957
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
3832
3958
|
return ret;
|
|
3833
3959
|
};
|
|
3834
3960
|
imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function(arg0, arg1) {
|
|
@@ -3837,6 +3963,10 @@ function __wbg_get_imports() {
|
|
|
3837
3963
|
const ret = v0;
|
|
3838
3964
|
return ret;
|
|
3839
3965
|
};
|
|
3966
|
+
imports.wbg.__wbindgen_cast_a47b288385bcc742 = function(arg0, arg1) {
|
|
3967
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8554e479c7e37116, wasm_bindgen__convert__closures_____invoke__h69e5fefe6cfc2af1);
|
|
3968
|
+
return ret;
|
|
3969
|
+
};
|
|
3840
3970
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
3841
3971
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
3842
3972
|
return ret;
|
|
@@ -3845,10 +3975,6 @@ function __wbg_get_imports() {
|
|
|
3845
3975
|
const ret = arg0;
|
|
3846
3976
|
return ret;
|
|
3847
3977
|
};
|
|
3848
|
-
imports.wbg.__wbindgen_cast_dd79c37428f4fbe5 = function(arg0, arg1) {
|
|
3849
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h4d2826f8cf3948a6, wasm_bindgen__convert__closures_____invoke__hf3c68230db5190d1);
|
|
3850
|
-
return ret;
|
|
3851
|
-
};
|
|
3852
3978
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
3853
3979
|
const table = wasm.__wbindgen_externrefs;
|
|
3854
3980
|
const offset = table.grow(4);
|
|
@@ -4836,6 +4962,101 @@ function version() {
|
|
|
4836
4962
|
return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_func_version(callStatus);
|
|
4837
4963
|
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
4838
4964
|
}
|
|
4965
|
+
|
|
4966
|
+
class Uuid extends UniffiAbstractObject {
|
|
4967
|
+
[uniffiTypeNameSymbol] = "Uuid";
|
|
4968
|
+
[destructorGuardSymbol];
|
|
4969
|
+
[pointerLiteralSymbol];
|
|
4970
|
+
constructor(uuid) {
|
|
4971
|
+
super();
|
|
4972
|
+
const pointer = uniffiCaller.rustCallWithError(FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError), (callStatus) => {
|
|
4973
|
+
return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_constructor_uuid_new(FfiConverterString.lower(uuid, nativeModule().rustbuffer_alloc), callStatus);
|
|
4974
|
+
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
4975
|
+
this[pointerLiteralSymbol] = pointer;
|
|
4976
|
+
this[destructorGuardSymbol] = uniffiTypeUuidObjectFactory.bless(pointer);
|
|
4977
|
+
}
|
|
4978
|
+
toString() {
|
|
4979
|
+
return ((__rb) => {
|
|
4980
|
+
try {
|
|
4981
|
+
return FfiConverterString.lift(__rb);
|
|
4982
|
+
} finally {
|
|
4983
|
+
nativeModule().rustbuffer_free(__rb);
|
|
4984
|
+
}
|
|
4985
|
+
})(uniffiCaller.rustCall((callStatus) => {
|
|
4986
|
+
return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_display(uniffiTypeUuidObjectFactory.clonePointer(this), callStatus);
|
|
4987
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
4988
|
+
}
|
|
4989
|
+
equals(other) {
|
|
4990
|
+
return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
|
|
4991
|
+
return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_eq(uniffiTypeUuidObjectFactory.clonePointer(this), FfiConverterTypeUuid.lower(other, nativeModule().rustbuffer_alloc), callStatus);
|
|
4992
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
4993
|
+
}
|
|
4994
|
+
hashCode() {
|
|
4995
|
+
return FfiConverterUInt64.lift(uniffiCaller.rustCall((callStatus) => {
|
|
4996
|
+
return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_hash(uniffiTypeUuidObjectFactory.clonePointer(this), callStatus);
|
|
4997
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
4998
|
+
}
|
|
4999
|
+
uniffiDestroy() {
|
|
5000
|
+
const ptr = this[destructorGuardSymbol];
|
|
5001
|
+
if (ptr !== undefined) {
|
|
5002
|
+
const pointer = uniffiTypeUuidObjectFactory.pointer(this);
|
|
5003
|
+
uniffiTypeUuidObjectFactory.freePointer(pointer);
|
|
5004
|
+
uniffiTypeUuidObjectFactory.unbless(ptr);
|
|
5005
|
+
delete this[destructorGuardSymbol];
|
|
5006
|
+
}
|
|
5007
|
+
}
|
|
5008
|
+
static instanceOf(obj_) {
|
|
5009
|
+
return uniffiTypeUuidObjectFactory.isConcreteType(obj_);
|
|
5010
|
+
}
|
|
5011
|
+
}
|
|
5012
|
+
var uniffiTypeUuidObjectFactory = (() => {
|
|
5013
|
+
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
5014
|
+
uniffiTypeUuidObjectFactory.freePointer(heldValue);
|
|
5015
|
+
}) : null;
|
|
5016
|
+
return {
|
|
5017
|
+
create(pointer) {
|
|
5018
|
+
const instance = Object.create(Uuid.prototype);
|
|
5019
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
5020
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
5021
|
+
instance[uniffiTypeNameSymbol] = "Uuid";
|
|
5022
|
+
return instance;
|
|
5023
|
+
},
|
|
5024
|
+
bless(p) {
|
|
5025
|
+
const ptr = {
|
|
5026
|
+
p,
|
|
5027
|
+
markDestroyed: () => {
|
|
5028
|
+
return;
|
|
5029
|
+
}
|
|
5030
|
+
};
|
|
5031
|
+
if (registry) {
|
|
5032
|
+
registry.register(ptr, p, ptr);
|
|
5033
|
+
}
|
|
5034
|
+
return ptr;
|
|
5035
|
+
},
|
|
5036
|
+
unbless(ptr_) {
|
|
5037
|
+
if (registry) {
|
|
5038
|
+
registry.unregister(ptr_);
|
|
5039
|
+
}
|
|
5040
|
+
},
|
|
5041
|
+
pointer(obj_) {
|
|
5042
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
5043
|
+
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
5044
|
+
}
|
|
5045
|
+
return obj_[pointerLiteralSymbol];
|
|
5046
|
+
},
|
|
5047
|
+
clonePointer(obj_) {
|
|
5048
|
+
const pointer = this.pointer(obj_);
|
|
5049
|
+
return uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_clone_uuid(pointer, callStatus), FfiConverterString.lift);
|
|
5050
|
+
},
|
|
5051
|
+
freePointer(pointer) {
|
|
5052
|
+
uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_free_uuid(pointer, callStatus), FfiConverterString.lift);
|
|
5053
|
+
},
|
|
5054
|
+
isConcreteType(obj_) {
|
|
5055
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "Uuid";
|
|
5056
|
+
}
|
|
5057
|
+
};
|
|
5058
|
+
})();
|
|
5059
|
+
var FfiConverterTypeUuid = new FfiConverterObject(uniffiTypeUuidObjectFactory);
|
|
4839
5060
|
var stringConverter = (() => {
|
|
4840
5061
|
const encoder = new TextEncoder;
|
|
4841
5062
|
const decoder = new TextDecoder;
|
|
@@ -4851,6 +5072,111 @@ var stringConverter = (() => {
|
|
|
4851
5072
|
};
|
|
4852
5073
|
})();
|
|
4853
5074
|
var FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
|
|
5075
|
+
|
|
5076
|
+
class DeviceId extends UniffiAbstractObject {
|
|
5077
|
+
[uniffiTypeNameSymbol] = "DeviceId";
|
|
5078
|
+
[destructorGuardSymbol];
|
|
5079
|
+
[pointerLiteralSymbol];
|
|
5080
|
+
constructor(id) {
|
|
5081
|
+
super();
|
|
5082
|
+
const pointer = uniffiCaller.rustCall((callStatus) => {
|
|
5083
|
+
return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_constructor_deviceid_new(FfiConverterUInt64.lower(id, nativeModule().rustbuffer_alloc), callStatus);
|
|
5084
|
+
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
5085
|
+
this[pointerLiteralSymbol] = pointer;
|
|
5086
|
+
this[destructorGuardSymbol] = uniffiTypeDeviceIdObjectFactory.bless(pointer);
|
|
5087
|
+
}
|
|
5088
|
+
static fromHexString(hexString) {
|
|
5089
|
+
return FfiConverterTypeDeviceId.lift(uniffiCaller.rustCallWithError(FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError), (callStatus) => {
|
|
5090
|
+
return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_constructor_deviceid_from_hex_string(FfiConverterString.lower(hexString, nativeModule().rustbuffer_alloc), callStatus);
|
|
5091
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
5092
|
+
}
|
|
5093
|
+
toHexString() {
|
|
5094
|
+
return ((__rb) => {
|
|
5095
|
+
try {
|
|
5096
|
+
return FfiConverterString.lift(__rb);
|
|
5097
|
+
} finally {
|
|
5098
|
+
nativeModule().rustbuffer_free(__rb);
|
|
5099
|
+
}
|
|
5100
|
+
})(uniffiCaller.rustCall((callStatus) => {
|
|
5101
|
+
return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_hex_string(uniffiTypeDeviceIdObjectFactory.clonePointer(this), callStatus);
|
|
5102
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
5103
|
+
}
|
|
5104
|
+
toU64() {
|
|
5105
|
+
return FfiConverterUInt64.lift(uniffiCaller.rustCall((callStatus) => {
|
|
5106
|
+
return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_u64(uniffiTypeDeviceIdObjectFactory.clonePointer(this), callStatus);
|
|
5107
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
5108
|
+
}
|
|
5109
|
+
equals(other) {
|
|
5110
|
+
return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
|
|
5111
|
+
return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_eq(uniffiTypeDeviceIdObjectFactory.clonePointer(this), FfiConverterTypeDeviceId.lower(other, nativeModule().rustbuffer_alloc), callStatus);
|
|
5112
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
5113
|
+
}
|
|
5114
|
+
hashCode() {
|
|
5115
|
+
return FfiConverterUInt64.lift(uniffiCaller.rustCall((callStatus) => {
|
|
5116
|
+
return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_hash(uniffiTypeDeviceIdObjectFactory.clonePointer(this), callStatus);
|
|
5117
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
5118
|
+
}
|
|
5119
|
+
uniffiDestroy() {
|
|
5120
|
+
const ptr = this[destructorGuardSymbol];
|
|
5121
|
+
if (ptr !== undefined) {
|
|
5122
|
+
const pointer = uniffiTypeDeviceIdObjectFactory.pointer(this);
|
|
5123
|
+
uniffiTypeDeviceIdObjectFactory.freePointer(pointer);
|
|
5124
|
+
uniffiTypeDeviceIdObjectFactory.unbless(ptr);
|
|
5125
|
+
delete this[destructorGuardSymbol];
|
|
5126
|
+
}
|
|
5127
|
+
}
|
|
5128
|
+
static instanceOf(obj_) {
|
|
5129
|
+
return uniffiTypeDeviceIdObjectFactory.isConcreteType(obj_);
|
|
5130
|
+
}
|
|
5131
|
+
}
|
|
5132
|
+
var uniffiTypeDeviceIdObjectFactory = (() => {
|
|
5133
|
+
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
5134
|
+
uniffiTypeDeviceIdObjectFactory.freePointer(heldValue);
|
|
5135
|
+
}) : null;
|
|
5136
|
+
return {
|
|
5137
|
+
create(pointer) {
|
|
5138
|
+
const instance = Object.create(DeviceId.prototype);
|
|
5139
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
5140
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
5141
|
+
instance[uniffiTypeNameSymbol] = "DeviceId";
|
|
5142
|
+
return instance;
|
|
5143
|
+
},
|
|
5144
|
+
bless(p) {
|
|
5145
|
+
const ptr = {
|
|
5146
|
+
p,
|
|
5147
|
+
markDestroyed: () => {
|
|
5148
|
+
return;
|
|
5149
|
+
}
|
|
5150
|
+
};
|
|
5151
|
+
if (registry) {
|
|
5152
|
+
registry.register(ptr, p, ptr);
|
|
5153
|
+
}
|
|
5154
|
+
return ptr;
|
|
5155
|
+
},
|
|
5156
|
+
unbless(ptr_) {
|
|
5157
|
+
if (registry) {
|
|
5158
|
+
registry.unregister(ptr_);
|
|
5159
|
+
}
|
|
5160
|
+
},
|
|
5161
|
+
pointer(obj_) {
|
|
5162
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
5163
|
+
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
5164
|
+
}
|
|
5165
|
+
return obj_[pointerLiteralSymbol];
|
|
5166
|
+
},
|
|
5167
|
+
clonePointer(obj_) {
|
|
5168
|
+
const pointer = this.pointer(obj_);
|
|
5169
|
+
return uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_clone_deviceid(pointer, callStatus), FfiConverterString.lift);
|
|
5170
|
+
},
|
|
5171
|
+
freePointer(pointer) {
|
|
5172
|
+
uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_free_deviceid(pointer, callStatus), FfiConverterString.lift);
|
|
5173
|
+
},
|
|
5174
|
+
isConcreteType(obj_) {
|
|
5175
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "DeviceId";
|
|
5176
|
+
}
|
|
5177
|
+
};
|
|
5178
|
+
})();
|
|
5179
|
+
var FfiConverterTypeDeviceId = new FfiConverterObject(uniffiTypeDeviceIdObjectFactory);
|
|
4854
5180
|
var DeserializedClientId = (() => {
|
|
4855
5181
|
const defaults = () => ({});
|
|
4856
5182
|
const create = (() => {
|
|
@@ -4859,7 +5185,18 @@ var DeserializedClientId = (() => {
|
|
|
4859
5185
|
return Object.freeze({
|
|
4860
5186
|
create,
|
|
4861
5187
|
new: create,
|
|
4862
|
-
defaults: () => Object.freeze(defaults())
|
|
5188
|
+
defaults: () => Object.freeze(defaults()),
|
|
5189
|
+
toString(self_) {
|
|
5190
|
+
return ((__rb) => {
|
|
5191
|
+
try {
|
|
5192
|
+
return FfiConverterString.lift(__rb);
|
|
5193
|
+
} finally {
|
|
5194
|
+
nativeModule().rustbuffer_free(__rb);
|
|
5195
|
+
}
|
|
5196
|
+
})(uniffiCaller.rustCall((callStatus) => {
|
|
5197
|
+
return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_deserializedclientid_uniffi_trait_display(FfiConverterTypeDeserializedClientId.lower(self_, nativeModule().rustbuffer_alloc), callStatus);
|
|
5198
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
5199
|
+
}
|
|
4863
5200
|
});
|
|
4864
5201
|
})();
|
|
4865
5202
|
var FfiConverterTypeDeserializedClientId = (() => {
|
|
@@ -4868,19 +5205,19 @@ var FfiConverterTypeDeserializedClientId = (() => {
|
|
|
4868
5205
|
read(from) {
|
|
4869
5206
|
return {
|
|
4870
5207
|
clientId: FfiConverterTypeClientId.read(from),
|
|
4871
|
-
userId:
|
|
4872
|
-
deviceId:
|
|
5208
|
+
userId: FfiConverterTypeUuid.read(from),
|
|
5209
|
+
deviceId: FfiConverterTypeDeviceId.read(from),
|
|
4873
5210
|
domain: FfiConverterString.read(from)
|
|
4874
5211
|
};
|
|
4875
5212
|
}
|
|
4876
5213
|
write(value, into) {
|
|
4877
5214
|
FfiConverterTypeClientId.write(value.clientId, into);
|
|
4878
|
-
|
|
4879
|
-
|
|
5215
|
+
FfiConverterTypeUuid.write(value.userId, into);
|
|
5216
|
+
FfiConverterTypeDeviceId.write(value.deviceId, into);
|
|
4880
5217
|
FfiConverterString.write(value.domain, into);
|
|
4881
5218
|
}
|
|
4882
5219
|
allocationSize(value) {
|
|
4883
|
-
return FfiConverterTypeClientId.allocationSize(value.clientId) +
|
|
5220
|
+
return FfiConverterTypeClientId.allocationSize(value.clientId) + FfiConverterTypeUuid.allocationSize(value.userId) + FfiConverterTypeDeviceId.allocationSize(value.deviceId) + FfiConverterString.allocationSize(value.domain);
|
|
4884
5221
|
}
|
|
4885
5222
|
}
|
|
4886
5223
|
return new FFIConverter;
|
|
@@ -4892,8 +5229,8 @@ class ClientId extends UniffiAbstractObject {
|
|
|
4892
5229
|
[pointerLiteralSymbol];
|
|
4893
5230
|
constructor(userId, deviceId, domain) {
|
|
4894
5231
|
super();
|
|
4895
|
-
const pointer = uniffiCaller.
|
|
4896
|
-
return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_constructor_clientid_new(
|
|
5232
|
+
const pointer = uniffiCaller.rustCall((callStatus) => {
|
|
5233
|
+
return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_constructor_clientid_new(FfiConverterTypeUuid.lower(userId, nativeModule().rustbuffer_alloc), FfiConverterTypeDeviceId.lower(deviceId, nativeModule().rustbuffer_alloc), FfiConverterString.lower(domain, nativeModule().rustbuffer_alloc), callStatus);
|
|
4897
5234
|
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
4898
5235
|
this[pointerLiteralSymbol] = pointer;
|
|
4899
5236
|
this[destructorGuardSymbol] = uniffiTypeClientIdObjectFactory.bless(pointer);
|
|
@@ -8126,8 +8463,8 @@ class CoreCryptoContext extends UniffiAbstractObject {
|
|
|
8126
8463
|
}
|
|
8127
8464
|
async getUserIdentities(conversationId, userIds, asyncOpts_) {
|
|
8128
8465
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
8129
|
-
return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_user_identities(uniffiTypeCoreCryptoContextObjectFactory.clonePointer(this), FfiConverterTypeConversationId.lower(conversationId, nativeModule().rustbuffer_alloc),
|
|
8130
|
-
}, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_poll_rust_buffer, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_cancel_rust_buffer, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_complete_rust_buffer, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_free_rust_buffer,
|
|
8466
|
+
return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_user_identities(uniffiTypeCoreCryptoContextObjectFactory.clonePointer(this), FfiConverterTypeConversationId.lower(conversationId, nativeModule().rustbuffer_alloc), FfiConverterSequenceTypeUuid.lower(userIds, nativeModule().rustbuffer_alloc));
|
|
8467
|
+
}, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_poll_rust_buffer, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_cancel_rust_buffer, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_complete_rust_buffer, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_free_rust_buffer, FfiConverterMapTypeUuidSequenceTypeWireIdentity.lift.bind(FfiConverterMapTypeUuidSequenceTypeWireIdentity), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError));
|
|
8131
8468
|
}
|
|
8132
8469
|
async joinByExternalCommit(groupInfo, credentialRef, asyncOpts_) {
|
|
8133
8470
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
@@ -8822,8 +9159,8 @@ class CoreCryptoFfi extends UniffiAbstractObject {
|
|
|
8822
9159
|
}
|
|
8823
9160
|
async getUserIdentities(conversationId, userIds, asyncOpts_) {
|
|
8824
9161
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
8825
|
-
return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_get_user_identities(uniffiTypeCoreCryptoFfiObjectFactory.clonePointer(this), FfiConverterTypeConversationId.lower(conversationId, nativeModule().rustbuffer_alloc),
|
|
8826
|
-
}, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_poll_rust_buffer, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_cancel_rust_buffer, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_complete_rust_buffer, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_free_rust_buffer,
|
|
9162
|
+
return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_corecryptoffi_get_user_identities(uniffiTypeCoreCryptoFfiObjectFactory.clonePointer(this), FfiConverterTypeConversationId.lower(conversationId, nativeModule().rustbuffer_alloc), FfiConverterSequenceTypeUuid.lower(userIds, nativeModule().rustbuffer_alloc));
|
|
9163
|
+
}, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_poll_rust_buffer, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_cancel_rust_buffer, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_complete_rust_buffer, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_free_rust_buffer, FfiConverterMapTypeUuidSequenceTypeWireIdentity.lift.bind(FfiConverterMapTypeUuidSequenceTypeWireIdentity), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError));
|
|
8827
9164
|
}
|
|
8828
9165
|
async isHistorySharingEnabled(conversationId, asyncOpts_) {
|
|
8829
9166
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
@@ -9525,8 +9862,9 @@ var FfiConverterOptionalDuration = new FfiConverterOptional(FfiConverterDuration
|
|
|
9525
9862
|
var FfiConverterSequenceTypeClientId = new FfiConverterArray(FfiConverterTypeClientId);
|
|
9526
9863
|
var FfiConverterSequenceTypeWireIdentity = new FfiConverterArray(FfiConverterTypeWireIdentity);
|
|
9527
9864
|
var FfiConverterSequenceTypeKeyPackageRef = new FfiConverterArray(FfiConverterTypeKeyPackageRef);
|
|
9865
|
+
var FfiConverterSequenceTypeUuid = new FfiConverterArray(FfiConverterTypeUuid);
|
|
9866
|
+
var FfiConverterMapTypeUuidSequenceTypeWireIdentity = new FfiConverterMap(FfiConverterTypeUuid, FfiConverterSequenceTypeWireIdentity);
|
|
9528
9867
|
var FfiConverterSequenceString = new FfiConverterArray(FfiConverterString);
|
|
9529
|
-
var FfiConverterMapStringSequenceTypeWireIdentity = new FfiConverterMap(FfiConverterString, FfiConverterSequenceTypeWireIdentity);
|
|
9530
9868
|
var FfiConverterMapStringBytes = new FfiConverterMap(FfiConverterString, FfiConverterUint8Array);
|
|
9531
9869
|
var FfiConverterOptionalTypeCipherSuite = new FfiConverterOptional(FfiConverterTypeCipherSuite);
|
|
9532
9870
|
var FfiConverterOptionalTypeCredentialType = new FfiConverterOptional(FfiConverterTypeCredentialType);
|
|
@@ -9572,13 +9910,13 @@ function uniffiEnsureInitialized() {
|
|
|
9572
9910
|
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_func_version() !== 8474) {
|
|
9573
9911
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_func_version");
|
|
9574
9912
|
}
|
|
9575
|
-
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_constructor_clientid_new() !==
|
|
9913
|
+
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_constructor_clientid_new() !== 44879) {
|
|
9576
9914
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_constructor_clientid_new");
|
|
9577
9915
|
}
|
|
9578
9916
|
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_clientid_copy_bytes() !== 10155) {
|
|
9579
9917
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_clientid_copy_bytes");
|
|
9580
9918
|
}
|
|
9581
|
-
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_clientid_deserialize() !==
|
|
9919
|
+
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_clientid_deserialize() !== 19701) {
|
|
9582
9920
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_clientid_deserialize");
|
|
9583
9921
|
}
|
|
9584
9922
|
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_constructor_conversationid_new() !== 12558) {
|
|
@@ -9659,7 +9997,7 @@ function uniffiEnsureInitialized() {
|
|
|
9659
9997
|
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_key_packages() !== 64486) {
|
|
9660
9998
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_key_packages");
|
|
9661
9999
|
}
|
|
9662
|
-
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_user_identities() !==
|
|
10000
|
+
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_user_identities() !== 21557) {
|
|
9663
10001
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_user_identities");
|
|
9664
10002
|
}
|
|
9665
10003
|
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_join_by_external_commit() !== 38654) {
|
|
@@ -9791,7 +10129,7 @@ function uniffiEnsureInitialized() {
|
|
|
9791
10129
|
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_pki_environment() !== 28140) {
|
|
9792
10130
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_pki_environment");
|
|
9793
10131
|
}
|
|
9794
|
-
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_user_identities() !==
|
|
10132
|
+
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_user_identities() !== 33184) {
|
|
9795
10133
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_user_identities");
|
|
9796
10134
|
}
|
|
9797
10135
|
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_is_history_sharing_enabled() !== 59378) {
|
|
@@ -9884,6 +10222,18 @@ function uniffiEnsureInitialized() {
|
|
|
9884
10222
|
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_constructor_databasekey_new() !== 36198) {
|
|
9885
10223
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_constructor_databasekey_new");
|
|
9886
10224
|
}
|
|
10225
|
+
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_from_hex_string() !== 44184) {
|
|
10226
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_constructor_deviceid_from_hex_string");
|
|
10227
|
+
}
|
|
10228
|
+
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_new() !== 62163) {
|
|
10229
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_constructor_deviceid_new");
|
|
10230
|
+
}
|
|
10231
|
+
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_deviceid_to_hex_string() !== 17498) {
|
|
10232
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_deviceid_to_hex_string");
|
|
10233
|
+
}
|
|
10234
|
+
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_deviceid_to_u64() !== 14542) {
|
|
10235
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_deviceid_to_u64");
|
|
10236
|
+
}
|
|
9887
10237
|
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_epochobserver_epoch_changed() !== 64106) {
|
|
9888
10238
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_epochobserver_epoch_changed");
|
|
9889
10239
|
}
|
|
@@ -9962,6 +10312,9 @@ function uniffiEnsureInitialized() {
|
|
|
9962
10312
|
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_secretkey_copy_bytes() !== 18148) {
|
|
9963
10313
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_secretkey_copy_bytes");
|
|
9964
10314
|
}
|
|
10315
|
+
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_constructor_uuid_new() !== 40259) {
|
|
10316
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_constructor_uuid_new");
|
|
10317
|
+
}
|
|
9965
10318
|
if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_constructor_welcome_new() !== 20256) {
|
|
9966
10319
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_constructor_welcome_new");
|
|
9967
10320
|
}
|
|
@@ -10009,6 +10362,7 @@ var core_crypto_ffi_default = Object.freeze({
|
|
|
10009
10362
|
FfiConverterTypeDatabaseKey,
|
|
10010
10363
|
FfiConverterTypeDecryptedMessage,
|
|
10011
10364
|
FfiConverterTypeDeserializedClientId,
|
|
10365
|
+
FfiConverterTypeDeviceId,
|
|
10012
10366
|
FfiConverterTypeDeviceStatus,
|
|
10013
10367
|
FfiConverterTypeE2eiConversationState,
|
|
10014
10368
|
FfiConverterTypeEpochChangedReportingError,
|
|
@@ -10039,6 +10393,7 @@ var core_crypto_ffi_default = Object.freeze({
|
|
|
10039
10393
|
FfiConverterTypeSecretKey,
|
|
10040
10394
|
FfiConverterTypeSignatureScheme,
|
|
10041
10395
|
FfiConverterTypeTimestamp,
|
|
10396
|
+
FfiConverterTypeUuid,
|
|
10042
10397
|
FfiConverterTypeWelcome,
|
|
10043
10398
|
FfiConverterTypeWireIdentity,
|
|
10044
10399
|
FfiConverterTypeX509CredentialAcquisition,
|
|
@@ -10120,21 +10475,15 @@ class X509CredentialAcquisition2 extends X509CredentialAcquisition {
|
|
|
10120
10475
|
}
|
|
10121
10476
|
}
|
|
10122
10477
|
// packages/browser/src/CoreCrypto.ts
|
|
10123
|
-
async function initWasmModule(
|
|
10478
|
+
async function initWasmModule(path = undefined) {
|
|
10124
10479
|
if (typeof window !== "undefined") {
|
|
10125
|
-
if (typeof
|
|
10126
|
-
const path = `${location}index_bg.wasm`;
|
|
10480
|
+
if (typeof path === "string") {
|
|
10127
10481
|
await wasm_bindgen_default({ module_or_path: path });
|
|
10128
10482
|
} else {
|
|
10129
10483
|
await wasm_bindgen_default({});
|
|
10130
10484
|
}
|
|
10131
10485
|
} else {
|
|
10132
|
-
|
|
10133
|
-
const path = new URL(`${location}index_bg.wasm`, import.meta.url);
|
|
10134
|
-
const file = await fs.open(path);
|
|
10135
|
-
const buffer = await file.readFile();
|
|
10136
|
-
const module = new WebAssembly.Module(new Uint8Array(buffer));
|
|
10137
|
-
await wasm_bindgen_default({ module_or_path: module });
|
|
10486
|
+
throw Error("initializing the wasm module of `@wireapp/core-crypto/browser` package outside the browser isn't currently supported. Consider using the `@wireapp/core-crypto/native` package.");
|
|
10138
10487
|
}
|
|
10139
10488
|
core_crypto_ffi_default.initialize();
|
|
10140
10489
|
}
|
|
@@ -10153,6 +10502,7 @@ export {
|
|
|
10153
10502
|
X509CredentialAcquisition2 as X509CredentialAcquisition,
|
|
10154
10503
|
WireIdentity,
|
|
10155
10504
|
Welcome,
|
|
10505
|
+
Uuid,
|
|
10156
10506
|
SignatureScheme,
|
|
10157
10507
|
SecretKey,
|
|
10158
10508
|
MlsRatchetTreeType as RatchetTreeType,
|
|
@@ -10179,6 +10529,7 @@ export {
|
|
|
10179
10529
|
EpochChangedReportingError,
|
|
10180
10530
|
E2eiConversationState,
|
|
10181
10531
|
DeviceStatus,
|
|
10532
|
+
DeviceId,
|
|
10182
10533
|
DeserializedClientId,
|
|
10183
10534
|
DatabaseKey,
|
|
10184
10535
|
Database,
|