@wireapp/core-crypto 10.2.0 → 10.4.0

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.
@@ -31,6 +31,8 @@ __export(exports_wasm_bindgen, {
31
31
  ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_get_backend_nonce: () => ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_get_backend_nonce,
32
32
  ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_fetch_backend_access_token: () => ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_fetch_backend_access_token,
33
33
  ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_authenticate: () => ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_authenticate,
34
+ ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_remove_trust_anchor: () => ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_remove_trust_anchor,
35
+ ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_get_trust_anchors: () => ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_get_trust_anchors,
34
36
  ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_add_trust_anchor: () => ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_add_trust_anchor,
35
37
  ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_add_intermediate_cert: () => ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_add_intermediate_cert,
36
38
  ubrn_uniffi_core_crypto_ffi_fn_method_mlstransport_send_commit_bundle: () => ubrn_uniffi_core_crypto_ffi_fn_method_mlstransport_send_commit_bundle,
@@ -134,6 +136,7 @@ __export(exports_wasm_bindgen, {
134
136
  ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_client_ids: () => ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_get_client_ids,
135
137
  ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_generate_key_package: () => ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_generate_key_package,
136
138
  ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_export_secret_key: () => ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_export_secret_key,
139
+ ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_encrypt_targeted_message: () => ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_encrypt_targeted_message,
137
140
  ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_encrypt_message: () => ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_encrypt_message,
138
141
  ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_enable_history_sharing: () => ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_enable_history_sharing,
139
142
  ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_e2ei_is_enabled: () => ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_e2ei_is_enabled,
@@ -255,6 +258,8 @@ __export(exports_wasm_bindgen, {
255
258
  ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_get_backend_nonce: () => ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_get_backend_nonce,
256
259
  ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_fetch_backend_access_token: () => ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_fetch_backend_access_token,
257
260
  ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_authenticate: () => ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_authenticate,
261
+ ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_remove_trust_anchor: () => ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_remove_trust_anchor,
262
+ ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_get_trust_anchors: () => ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_get_trust_anchors,
258
263
  ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_trust_anchor: () => ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_trust_anchor,
259
264
  ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_intermediate_cert: () => ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_intermediate_cert,
260
265
  ubrn_uniffi_core_crypto_ffi_checksum_method_mlstransport_send_commit_bundle: () => ubrn_uniffi_core_crypto_ffi_checksum_method_mlstransport_send_commit_bundle,
@@ -348,6 +353,7 @@ __export(exports_wasm_bindgen, {
348
353
  ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_client_ids: () => ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_client_ids,
349
354
  ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_generate_key_package: () => ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_generate_key_package,
350
355
  ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_export_secret_key: () => ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_export_secret_key,
356
+ ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_encrypt_targeted_message: () => ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_encrypt_targeted_message,
351
357
  ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_encrypt_message: () => ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_encrypt_message,
352
358
  ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_enable_history_sharing: () => ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_enable_history_sharing,
353
359
  ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_e2ei_is_enabled: () => ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_e2ei_is_enabled,
@@ -1081,6 +1087,12 @@ function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_encrypt_message
1081
1087
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_encrypt_message(ptr, conversation_id, ptr0, len0);
1082
1088
  return BigInt.asUintN(64, ret);
1083
1089
  }
1090
+ function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_remove_clients_from_conversation(ptr, conversation_id, clients) {
1091
+ const ptr0 = passArray8ToWasm0(clients, wasm.__wbindgen_malloc);
1092
+ const len0 = WASM_VECTOR_LEN;
1093
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_remove_clients_from_conversation(ptr, conversation_id, ptr0, len0);
1094
+ return BigInt.asUintN(64, ret);
1095
+ }
1084
1096
  function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_remove_credential(ptr, credential_ref) {
1085
1097
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_remove_credential(ptr, credential_ref);
1086
1098
  return BigInt.asUintN(64, ret);
@@ -1113,12 +1125,12 @@ function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_decrypt
1113
1125
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_decrypt(ptr, ptr0, len0, ptr1, len1);
1114
1126
  return BigInt.asUintN(64, ret);
1115
1127
  }
1116
- function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_decrypt_safe(ptr, session_id, ciphertext) {
1117
- const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
1128
+ function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_encrypt_targeted_message(ptr, conversation_id, recipient, policy, message) {
1129
+ const ptr0 = passArray8ToWasm0(policy, wasm.__wbindgen_malloc);
1118
1130
  const len0 = WASM_VECTOR_LEN;
1119
- const ptr1 = passArray8ToWasm0(ciphertext, wasm.__wbindgen_malloc);
1131
+ const ptr1 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
1120
1132
  const len1 = WASM_VECTOR_LEN;
1121
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_decrypt_safe(ptr, ptr0, len0, ptr1, len1);
1133
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_encrypt_targeted_message(ptr, conversation_id, recipient, ptr0, len0, ptr1, len1);
1122
1134
  return BigInt.asUintN(64, ret);
1123
1135
  }
1124
1136
  function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_export_secret_key(ptr, conversation_id, key_length) {
@@ -1155,10 +1167,12 @@ function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_process_welcome
1155
1167
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_process_welcome_message(ptr, welcome_message);
1156
1168
  return BigInt.asUintN(64, ret);
1157
1169
  }
1158
- function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_remove_clients_from_conversation(ptr, conversation_id, clients) {
1159
- const ptr0 = passArray8ToWasm0(clients, wasm.__wbindgen_malloc);
1170
+ function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_decrypt_safe(ptr, session_id, ciphertext) {
1171
+ const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
1160
1172
  const len0 = WASM_VECTOR_LEN;
1161
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_remove_clients_from_conversation(ptr, conversation_id, ptr0, len0);
1173
+ const ptr1 = passArray8ToWasm0(ciphertext, wasm.__wbindgen_malloc);
1174
+ const len1 = WASM_VECTOR_LEN;
1175
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_decrypt_safe(ptr, ptr0, len0, ptr1, len1);
1162
1176
  return BigInt.asUintN(64, ret);
1163
1177
  }
1164
1178
  function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_encrypt(ptr, session_id, plaintext) {
@@ -1181,10 +1195,12 @@ function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_fingerp
1181
1195
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_fingerprint(ptr);
1182
1196
  return BigInt.asUintN(64, ret);
1183
1197
  }
1184
- function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_fingerprint_local(ptr, session_id) {
1198
+ function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_from_message(ptr, session_id, envelope) {
1185
1199
  const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
1186
1200
  const len0 = WASM_VECTOR_LEN;
1187
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_fingerprint_local(ptr, ptr0, len0);
1201
+ const ptr1 = passArray8ToWasm0(envelope, wasm.__wbindgen_malloc);
1202
+ const len1 = WASM_VECTOR_LEN;
1203
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_from_message(ptr, ptr0, len0, ptr1, len1);
1188
1204
  return BigInt.asUintN(64, ret);
1189
1205
  }
1190
1206
  function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_from_prekey(ptr, session_id, prekey) {
@@ -1233,13 +1249,6 @@ function ubrn_uniffi_core_crypto_ffi_fn_constructor_secretkey_new(bytes, f_statu
1233
1249
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_secretkey_new(ptr0, len0, f_status_.__wbg_ptr);
1234
1250
  return BigInt.asUintN(64, ret);
1235
1251
  }
1236
- function ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_copy_bytes(ptr, f_status_) {
1237
- _assertClass(f_status_, RustCallStatus);
1238
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_copy_bytes(ptr, f_status_.__wbg_ptr);
1239
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1240
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1241
- return v1;
1242
- }
1243
1252
  function ubrn_uniffi_core_crypto_ffi_fn_constructor_clientid_new(user_id, device_id, domain, f_status_) {
1244
1253
  const ptr0 = passArray8ToWasm0(domain, wasm.__wbindgen_malloc);
1245
1254
  const len0 = WASM_VECTOR_LEN;
@@ -1247,6 +1256,12 @@ function ubrn_uniffi_core_crypto_ffi_fn_constructor_clientid_new(user_id, device
1247
1256
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_clientid_new(user_id, device_id, ptr0, len0, f_status_.__wbg_ptr);
1248
1257
  return BigInt.asUintN(64, ret);
1249
1258
  }
1259
+ function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_fingerprint_local(ptr, session_id) {
1260
+ const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
1261
+ const len0 = WASM_VECTOR_LEN;
1262
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_fingerprint_local(ptr, ptr0, len0);
1263
+ return BigInt.asUintN(64, ret);
1264
+ }
1250
1265
  function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_fingerprint_remote(ptr, session_id) {
1251
1266
  const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
1252
1267
  const len0 = WASM_VECTOR_LEN;
@@ -1281,13 +1296,12 @@ function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session
1281
1296
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_exists(ptr, ptr0, len0);
1282
1297
  return BigInt.asUintN(64, ret);
1283
1298
  }
1284
- function ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_from_message(ptr, session_id, envelope) {
1285
- const ptr0 = passArray8ToWasm0(session_id, wasm.__wbindgen_malloc);
1286
- const len0 = WASM_VECTOR_LEN;
1287
- const ptr1 = passArray8ToWasm0(envelope, wasm.__wbindgen_malloc);
1288
- const len1 = WASM_VECTOR_LEN;
1289
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_proteus_session_from_message(ptr, ptr0, len0, ptr1, len1);
1290
- return BigInt.asUintN(64, ret);
1299
+ function ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_copy_bytes(ptr, f_status_) {
1300
+ _assertClass(f_status_, RustCallStatus);
1301
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_copy_bytes(ptr, f_status_.__wbg_ptr);
1302
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1303
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1304
+ return v1;
1291
1305
  }
1292
1306
  function ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_display(ptr, f_status_) {
1293
1307
  _assertClass(f_status_, RustCallStatus);
@@ -1301,10 +1315,10 @@ function ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_eq(ptr,
1301
1315
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_eq(ptr, other, f_status_.__wbg_ptr);
1302
1316
  return ret;
1303
1317
  }
1304
- function ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_ne(ptr, other, f_status_) {
1318
+ function ubrn_uniffi_core_crypto_ffi_fn_method_credential_earliest_validity(ptr, f_status_) {
1305
1319
  _assertClass(f_status_, RustCallStatus);
1306
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_ne(ptr, other, f_status_.__wbg_ptr);
1307
- return ret;
1320
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credential_earliest_validity(ptr, f_status_.__wbg_ptr);
1321
+ return BigInt.asUintN(64, ret);
1308
1322
  }
1309
1323
  function ubrn_uniffi_core_crypto_ffi_fn_method_credential_export_pem(ptr, f_status_) {
1310
1324
  _assertClass(f_status_, RustCallStatus);
@@ -1353,12 +1367,10 @@ function ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_earliest_validity(p
1353
1367
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_earliest_validity(ptr, f_status_.__wbg_ptr);
1354
1368
  return BigInt.asUintN(64, ret);
1355
1369
  }
1356
- function ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_public_key_hash(ptr, f_status_) {
1370
+ function ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_ne(ptr, other, f_status_) {
1357
1371
  _assertClass(f_status_, RustCallStatus);
1358
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_public_key_hash(ptr, f_status_.__wbg_ptr);
1359
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1360
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1361
- return v1;
1372
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_ne(ptr, other, f_status_.__wbg_ptr);
1373
+ return ret;
1362
1374
  }
1363
1375
  function ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_hash(ptr, f_status_) {
1364
1376
  _assertClass(f_status_, RustCallStatus);
@@ -1404,10 +1416,12 @@ function ubrn_uniffi_core_crypto_ffi_fn_constructor_credential_basic(cipher_suit
1404
1416
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_credential_basic(ptr0, len0, client_id, f_status_.__wbg_ptr);
1405
1417
  return BigInt.asUintN(64, ret);
1406
1418
  }
1407
- function ubrn_uniffi_core_crypto_ffi_fn_method_credential_earliest_validity(ptr, f_status_) {
1419
+ function ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_public_key_hash(ptr, f_status_) {
1408
1420
  _assertClass(f_status_, RustCallStatus);
1409
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credential_earliest_validity(ptr, f_status_.__wbg_ptr);
1410
- return BigInt.asUintN(64, ret);
1421
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_public_key_hash(ptr, f_status_.__wbg_ptr);
1422
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1423
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1424
+ return v1;
1411
1425
  }
1412
1426
  function ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_signature_scheme(ptr, f_status_) {
1413
1427
  _assertClass(f_status_, RustCallStatus);
@@ -1423,12 +1437,9 @@ function ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_type(ptr, f_status_
1423
1437
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1424
1438
  return v1;
1425
1439
  }
1426
- function ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_uniffi_trait_debug(ptr, f_status_) {
1440
+ function ubrn_uniffi_core_crypto_ffi_fn_free_databasekey(handle, f_status_) {
1427
1441
  _assertClass(f_status_, RustCallStatus);
1428
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_uniffi_trait_debug(ptr, f_status_.__wbg_ptr);
1429
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1430
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1431
- return v1;
1442
+ wasm.ubrn_uniffi_core_crypto_ffi_fn_free_databasekey(handle, f_status_.__wbg_ptr);
1432
1443
  }
1433
1444
  function ubrn_uniffi_core_crypto_ffi_fn_constructor_databasekey_new(bytes, f_status_) {
1434
1445
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
@@ -1470,12 +1481,12 @@ function ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_fr
1470
1481
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_frombytes(pki_environment, ptr0, len0, f_status_.__wbg_ptr);
1471
1482
  return BigInt.asUintN(64, ret);
1472
1483
  }
1473
- function ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_new(pki_environment, config, f_status_) {
1474
- const ptr0 = passArray8ToWasm0(config, wasm.__wbindgen_malloc);
1475
- const len0 = WASM_VECTOR_LEN;
1484
+ function ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_uniffi_trait_debug(ptr, f_status_) {
1476
1485
  _assertClass(f_status_, RustCallStatus);
1477
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_new(pki_environment, ptr0, len0, f_status_.__wbg_ptr);
1478
- return BigInt.asUintN(64, ret);
1486
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_credentialref_uniffi_trait_debug(ptr, f_status_.__wbg_ptr);
1487
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1488
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1489
+ return v1;
1479
1490
  }
1480
1491
  function ubrn_uniffi_core_crypto_ffi_fn_clone_database(handle, f_status_) {
1481
1492
  _assertClass(f_status_, RustCallStatus);
@@ -1513,9 +1524,12 @@ function ubrn_uniffi_core_crypto_ffi_fn_clone_databasekey(handle, f_status_) {
1513
1524
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_databasekey(handle, f_status_.__wbg_ptr);
1514
1525
  return BigInt.asUintN(64, ret);
1515
1526
  }
1516
- function ubrn_uniffi_core_crypto_ffi_fn_free_databasekey(handle, f_status_) {
1527
+ function ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_new(pki_environment, config, f_status_) {
1528
+ const ptr0 = passArray8ToWasm0(config, wasm.__wbindgen_malloc);
1529
+ const len0 = WASM_VECTOR_LEN;
1517
1530
  _assertClass(f_status_, RustCallStatus);
1518
- wasm.ubrn_uniffi_core_crypto_ffi_fn_free_databasekey(handle, f_status_.__wbg_ptr);
1531
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_new(pki_environment, ptr0, len0, f_status_.__wbg_ptr);
1532
+ return BigInt.asUintN(64, ret);
1519
1533
  }
1520
1534
  function ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_new_from_credential_ref(pki_environment, config, credential_ref, core_crypto_database) {
1521
1535
  const ptr0 = passArray8ToWasm0(config, wasm.__wbindgen_malloc);
@@ -1534,9 +1548,9 @@ function ubrn_uniffi_core_crypto_ffi_fn_clone_externalsender(handle, f_status_)
1534
1548
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_externalsender(handle, f_status_.__wbg_ptr);
1535
1549
  return BigInt.asUintN(64, ret);
1536
1550
  }
1537
- function ubrn_uniffi_core_crypto_ffi_fn_free_externalsender(handle, f_status_) {
1551
+ function ubrn_uniffi_core_crypto_ffi_fn_free_keypackage(handle, f_status_) {
1538
1552
  _assertClass(f_status_, RustCallStatus);
1539
- wasm.ubrn_uniffi_core_crypto_ffi_fn_free_externalsender(handle, f_status_.__wbg_ptr);
1553
+ wasm.ubrn_uniffi_core_crypto_ffi_fn_free_keypackage(handle, f_status_.__wbg_ptr);
1540
1554
  }
1541
1555
  function ubrn_uniffi_core_crypto_ffi_fn_constructor_keypackage_new(bytes, f_status_) {
1542
1556
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
@@ -1587,11 +1601,6 @@ function ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_hash_ref(ptr, f_sta
1587
1601
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1588
1602
  return v1;
1589
1603
  }
1590
- function ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_is_valid(ptr, f_status_) {
1591
- _assertClass(f_status_, RustCallStatus);
1592
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_is_valid(ptr, f_status_.__wbg_ptr);
1593
- return ret;
1594
- }
1595
1604
  function ubrn_uniffi_core_crypto_ffi_fn_method_clientid_copy_bytes(ptr, f_status_) {
1596
1605
  _assertClass(f_status_, RustCallStatus);
1597
1606
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_clientid_copy_bytes(ptr, f_status_.__wbg_ptr);
@@ -1599,6 +1608,10 @@ function ubrn_uniffi_core_crypto_ffi_fn_method_clientid_copy_bytes(ptr, f_status
1599
1608
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1600
1609
  return v1;
1601
1610
  }
1611
+ function ubrn_uniffi_core_crypto_ffi_fn_free_externalsender(handle, f_status_) {
1612
+ _assertClass(f_status_, RustCallStatus);
1613
+ wasm.ubrn_uniffi_core_crypto_ffi_fn_free_externalsender(handle, f_status_.__wbg_ptr);
1614
+ }
1602
1615
  function ubrn_uniffi_core_crypto_ffi_fn_constructor_externalsender_parse(key, signature_scheme, f_status_) {
1603
1616
  const ptr0 = passArray8ToWasm0(key, wasm.__wbindgen_malloc);
1604
1617
  const len0 = WASM_VECTOR_LEN;
@@ -1646,10 +1659,6 @@ function ubrn_uniffi_core_crypto_ffi_fn_clone_keypackage(handle, f_status_) {
1646
1659
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_keypackage(handle, f_status_.__wbg_ptr);
1647
1660
  return BigInt.asUintN(64, ret);
1648
1661
  }
1649
- function ubrn_uniffi_core_crypto_ffi_fn_free_keypackage(handle, f_status_) {
1650
- _assertClass(f_status_, RustCallStatus);
1651
- wasm.ubrn_uniffi_core_crypto_ffi_fn_free_keypackage(handle, f_status_.__wbg_ptr);
1652
- }
1653
1662
  function ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_hex_string(ptr, f_status_) {
1654
1663
  _assertClass(f_status_, RustCallStatus);
1655
1664
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_hex_string(ptr, f_status_.__wbg_ptr);
@@ -1700,6 +1709,11 @@ function ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_display(ptr, f_
1700
1709
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1701
1710
  return v1;
1702
1711
  }
1712
+ function ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_is_valid(ptr, f_status_) {
1713
+ _assertClass(f_status_, RustCallStatus);
1714
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_is_valid(ptr, f_status_.__wbg_ptr);
1715
+ return ret;
1716
+ }
1703
1717
  function ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_signature_scheme(ptr, f_status_) {
1704
1718
  _assertClass(f_status_, RustCallStatus);
1705
1719
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_signature_scheme(ptr, f_status_.__wbg_ptr);
@@ -1712,9 +1726,33 @@ function ubrn_uniffi_core_crypto_ffi_fn_clone_pkienvironment(handle, f_status_)
1712
1726
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_pkienvironment(handle, f_status_.__wbg_ptr);
1713
1727
  return BigInt.asUintN(64, ret);
1714
1728
  }
1715
- function ubrn_uniffi_core_crypto_ffi_fn_free_pkienvironment(handle, f_status_) {
1716
- _assertClass(f_status_, RustCallStatus);
1717
- wasm.ubrn_uniffi_core_crypto_ffi_fn_free_pkienvironment(handle, f_status_.__wbg_ptr);
1729
+ function ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_http_request(ptr, method, url, headers, body) {
1730
+ const ptr0 = passArray8ToWasm0(method, wasm.__wbindgen_malloc);
1731
+ const len0 = WASM_VECTOR_LEN;
1732
+ const ptr1 = passArray8ToWasm0(url, wasm.__wbindgen_malloc);
1733
+ const len1 = WASM_VECTOR_LEN;
1734
+ const ptr2 = passArray8ToWasm0(headers, wasm.__wbindgen_malloc);
1735
+ const len2 = WASM_VECTOR_LEN;
1736
+ const ptr3 = passArray8ToWasm0(body, wasm.__wbindgen_malloc);
1737
+ const len3 = WASM_VECTOR_LEN;
1738
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_http_request(ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
1739
+ return BigInt.asUintN(64, ret);
1740
+ }
1741
+ function ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_authenticate(ptr, idp, key_auth, acme_aud, acquisition_snapshot) {
1742
+ const ptr0 = passArray8ToWasm0(idp, wasm.__wbindgen_malloc);
1743
+ const len0 = WASM_VECTOR_LEN;
1744
+ const ptr1 = passArray8ToWasm0(key_auth, wasm.__wbindgen_malloc);
1745
+ const len1 = WASM_VECTOR_LEN;
1746
+ const ptr2 = passArray8ToWasm0(acme_aud, wasm.__wbindgen_malloc);
1747
+ const len2 = WASM_VECTOR_LEN;
1748
+ const ptr3 = passArray8ToWasm0(acquisition_snapshot, wasm.__wbindgen_malloc);
1749
+ const len3 = WASM_VECTOR_LEN;
1750
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_authenticate(ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
1751
+ return BigInt.asUintN(64, ret);
1752
+ }
1753
+ function ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_get_backend_nonce(ptr) {
1754
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_get_backend_nonce(ptr);
1755
+ return BigInt.asUintN(64, ret);
1718
1756
  }
1719
1757
  function ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_fetch_backend_access_token(ptr, dpop) {
1720
1758
  const ptr0 = passArray8ToWasm0(dpop, wasm.__wbindgen_malloc);
@@ -1754,25 +1792,9 @@ function ubrn_uniffi_core_crypto_ffi_fn_func_set_logger(logger, f_status_) {
1754
1792
  _assertClass(f_status_, RustCallStatus);
1755
1793
  wasm.ubrn_uniffi_core_crypto_ffi_fn_func_set_logger(logger, f_status_.__wbg_ptr);
1756
1794
  }
1757
- function ubrn_uniffi_core_crypto_ffi_fn_func_set_max_log_level(level, f_status_) {
1758
- const ptr0 = passArray8ToWasm0(level, wasm.__wbindgen_malloc);
1759
- const len0 = WASM_VECTOR_LEN;
1760
- _assertClass(f_status_, RustCallStatus);
1761
- wasm.ubrn_uniffi_core_crypto_ffi_fn_func_set_max_log_level(ptr0, len0, f_status_.__wbg_ptr);
1762
- }
1763
- function ubrn_uniffi_core_crypto_ffi_fn_func_proteus_fingerprint_prekeybundle_ffi(prekey, f_status_) {
1764
- const ptr0 = passArray8ToWasm0(prekey, wasm.__wbindgen_malloc);
1765
- const len0 = WASM_VECTOR_LEN;
1766
- _assertClass(f_status_, RustCallStatus);
1767
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_proteus_fingerprint_prekeybundle_ffi(ptr0, len0, f_status_.__wbg_ptr);
1768
- var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1769
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1770
- return v2;
1771
- }
1772
- function ubrn_uniffi_core_crypto_ffi_fn_func_proteus_last_resort_prekey_id_ffi(f_status_) {
1795
+ function ubrn_uniffi_core_crypto_ffi_fn_free_pkienvironment(handle, f_status_) {
1773
1796
  _assertClass(f_status_, RustCallStatus);
1774
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_proteus_last_resort_prekey_id_ffi(f_status_.__wbg_ptr);
1775
- return ret;
1797
+ wasm.ubrn_uniffi_core_crypto_ffi_fn_free_pkienvironment(handle, f_status_.__wbg_ptr);
1776
1798
  }
1777
1799
  function ubrn_uniffi_core_crypto_ffi_fn_constructor_pkienvironment_new(hooks, database) {
1778
1800
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_pkienvironment_new(hooks, database);
@@ -1790,6 +1812,16 @@ function ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_add_trust_anchor(p
1790
1812
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_add_trust_anchor(ptr, ptr0, len0);
1791
1813
  return BigInt.asUintN(64, ret);
1792
1814
  }
1815
+ function ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_get_trust_anchors(ptr) {
1816
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_get_trust_anchors(ptr);
1817
+ return BigInt.asUintN(64, ret);
1818
+ }
1819
+ function ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_remove_trust_anchor(ptr, fingerprint) {
1820
+ const ptr0 = passArray8ToWasm0(fingerprint, wasm.__wbindgen_malloc);
1821
+ const len0 = WASM_VECTOR_LEN;
1822
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_remove_trust_anchor(ptr, ptr0, len0);
1823
+ return BigInt.asUintN(64, ret);
1824
+ }
1793
1825
  function ubrn_uniffi_core_crypto_ffi_fn_clone_pkienvironmenthooks(handle, f_status_) {
1794
1826
  _assertClass(f_status_, RustCallStatus);
1795
1827
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_pkienvironmenthooks(handle, f_status_.__wbg_ptr);
@@ -1802,54 +1834,36 @@ function ubrn_uniffi_core_crypto_ffi_fn_free_pkienvironmenthooks(handle, f_statu
1802
1834
  function ubrn_uniffi_core_crypto_ffi_fn_init_callback_vtable_pkienvironmenthooks(vtable) {
1803
1835
  wasm.ubrn_uniffi_core_crypto_ffi_fn_init_callback_vtable_pkienvironmenthooks(vtable);
1804
1836
  }
1805
- function ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_http_request(ptr, method, url, headers, body) {
1806
- const ptr0 = passArray8ToWasm0(method, wasm.__wbindgen_malloc);
1837
+ function ubrn_uniffi_core_crypto_ffi_fn_func_set_max_log_level(level, f_status_) {
1838
+ const ptr0 = passArray8ToWasm0(level, wasm.__wbindgen_malloc);
1807
1839
  const len0 = WASM_VECTOR_LEN;
1808
- const ptr1 = passArray8ToWasm0(url, wasm.__wbindgen_malloc);
1809
- const len1 = WASM_VECTOR_LEN;
1810
- const ptr2 = passArray8ToWasm0(headers, wasm.__wbindgen_malloc);
1811
- const len2 = WASM_VECTOR_LEN;
1812
- const ptr3 = passArray8ToWasm0(body, wasm.__wbindgen_malloc);
1813
- const len3 = WASM_VECTOR_LEN;
1814
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_http_request(ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
1815
- return BigInt.asUintN(64, ret);
1840
+ _assertClass(f_status_, RustCallStatus);
1841
+ wasm.ubrn_uniffi_core_crypto_ffi_fn_func_set_max_log_level(ptr0, len0, f_status_.__wbg_ptr);
1816
1842
  }
1817
- function ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_authenticate(ptr, idp, key_auth, acme_aud, acquisition_snapshot) {
1818
- const ptr0 = passArray8ToWasm0(idp, wasm.__wbindgen_malloc);
1843
+ function ubrn_uniffi_core_crypto_ffi_fn_func_proteus_fingerprint_prekeybundle_ffi(prekey, f_status_) {
1844
+ const ptr0 = passArray8ToWasm0(prekey, wasm.__wbindgen_malloc);
1819
1845
  const len0 = WASM_VECTOR_LEN;
1820
- const ptr1 = passArray8ToWasm0(key_auth, wasm.__wbindgen_malloc);
1821
- const len1 = WASM_VECTOR_LEN;
1822
- const ptr2 = passArray8ToWasm0(acme_aud, wasm.__wbindgen_malloc);
1823
- const len2 = WASM_VECTOR_LEN;
1824
- const ptr3 = passArray8ToWasm0(acquisition_snapshot, wasm.__wbindgen_malloc);
1825
- const len3 = WASM_VECTOR_LEN;
1826
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_authenticate(ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
1827
- return BigInt.asUintN(64, ret);
1846
+ _assertClass(f_status_, RustCallStatus);
1847
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_proteus_fingerprint_prekeybundle_ffi(ptr0, len0, f_status_.__wbg_ptr);
1848
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1849
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1850
+ return v2;
1828
1851
  }
1829
- function ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_get_backend_nonce(ptr) {
1830
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_get_backend_nonce(ptr);
1831
- return BigInt.asUintN(64, ret);
1852
+ function ubrn_uniffi_core_crypto_ffi_fn_func_proteus_last_resort_prekey_id_ffi(f_status_) {
1853
+ _assertClass(f_status_, RustCallStatus);
1854
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_proteus_last_resort_prekey_id_ffi(f_status_.__wbg_ptr);
1855
+ return ret;
1832
1856
  }
1833
- function ubrn_uniffi_core_crypto_ffi_fn_func_migrate_database_key_type_to_bytes(path, old_key, new_key) {
1834
- const ptr0 = passArray8ToWasm0(path, wasm.__wbindgen_malloc);
1835
- const len0 = WASM_VECTOR_LEN;
1836
- const ptr1 = passArray8ToWasm0(old_key, wasm.__wbindgen_malloc);
1837
- const len1 = WASM_VECTOR_LEN;
1838
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_migrate_database_key_type_to_bytes(ptr0, len0, ptr1, len1, new_key);
1839
- return BigInt.asUintN(64, ret);
1857
+ function ubrn_ffi_core_crypto_ffi_rust_future_cancel_i8(handle) {
1858
+ wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_i8(handle);
1840
1859
  }
1841
- function ubrn_uniffi_core_crypto_ffi_fn_func_core_crypto_history_client(history_secret) {
1842
- const ptr0 = passArray8ToWasm0(history_secret, wasm.__wbindgen_malloc);
1843
- const len0 = WASM_VECTOR_LEN;
1844
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_core_crypto_history_client(ptr0, len0);
1845
- return BigInt.asUintN(64, ret);
1860
+ function ubrn_ffi_core_crypto_ffi_rust_future_free_i8(handle) {
1861
+ wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_i8(handle);
1846
1862
  }
1847
- function ubrn_uniffi_core_crypto_ffi_fn_func_build_metadata(f_status_) {
1863
+ function ubrn_ffi_core_crypto_ffi_rust_future_complete_i8(handle, f_status_) {
1848
1864
  _assertClass(f_status_, RustCallStatus);
1849
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_build_metadata(f_status_.__wbg_ptr);
1850
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1851
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1852
- return v1;
1865
+ const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_i8(handle, f_status_.__wbg_ptr);
1866
+ return ret;
1853
1867
  }
1854
1868
  function ubrn_ffi_core_crypto_ffi_rust_future_poll_u16(handle, callback, callback_data) {
1855
1869
  wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_u16(handle, callback, callback_data);
@@ -1868,16 +1882,26 @@ function ubrn_ffi_core_crypto_ffi_rust_future_complete_u16(handle, f_status_) {
1868
1882
  function ubrn_ffi_core_crypto_ffi_rust_future_poll_i16(handle, callback, callback_data) {
1869
1883
  wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_i16(handle, callback, callback_data);
1870
1884
  }
1871
- function ubrn_ffi_core_crypto_ffi_rust_future_cancel_i16(handle) {
1872
- wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_i16(handle);
1885
+ function ubrn_uniffi_core_crypto_ffi_fn_func_migrate_database_key_type_to_bytes(path, old_key, new_key) {
1886
+ const ptr0 = passArray8ToWasm0(path, wasm.__wbindgen_malloc);
1887
+ const len0 = WASM_VECTOR_LEN;
1888
+ const ptr1 = passArray8ToWasm0(old_key, wasm.__wbindgen_malloc);
1889
+ const len1 = WASM_VECTOR_LEN;
1890
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_migrate_database_key_type_to_bytes(ptr0, len0, ptr1, len1, new_key);
1891
+ return BigInt.asUintN(64, ret);
1873
1892
  }
1874
- function ubrn_ffi_core_crypto_ffi_rust_future_free_i16(handle) {
1875
- wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_i16(handle);
1893
+ function ubrn_uniffi_core_crypto_ffi_fn_func_core_crypto_history_client(history_secret) {
1894
+ const ptr0 = passArray8ToWasm0(history_secret, wasm.__wbindgen_malloc);
1895
+ const len0 = WASM_VECTOR_LEN;
1896
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_core_crypto_history_client(ptr0, len0);
1897
+ return BigInt.asUintN(64, ret);
1876
1898
  }
1877
- function ubrn_ffi_core_crypto_ffi_rust_future_complete_i16(handle, f_status_) {
1899
+ function ubrn_uniffi_core_crypto_ffi_fn_func_build_metadata(f_status_) {
1878
1900
  _assertClass(f_status_, RustCallStatus);
1879
- const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_i16(handle, f_status_.__wbg_ptr);
1880
- return ret;
1901
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_func_build_metadata(f_status_.__wbg_ptr);
1902
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1903
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1904
+ return v1;
1881
1905
  }
1882
1906
  function ubrn_uniffi_core_crypto_ffi_fn_func_version(f_status_) {
1883
1907
  _assertClass(f_status_, RustCallStatus);
@@ -1903,30 +1927,30 @@ function ubrn_ffi_core_crypto_ffi_rust_future_complete_u8(handle, f_status_) {
1903
1927
  function ubrn_ffi_core_crypto_ffi_rust_future_poll_i8(handle, callback, callback_data) {
1904
1928
  wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_i8(handle, callback, callback_data);
1905
1929
  }
1906
- function ubrn_ffi_core_crypto_ffi_rust_future_cancel_i8(handle) {
1907
- wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_i8(handle);
1930
+ function ubrn_ffi_core_crypto_ffi_rust_future_cancel_i16(handle) {
1931
+ wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_i16(handle);
1908
1932
  }
1909
- function ubrn_ffi_core_crypto_ffi_rust_future_free_i8(handle) {
1910
- wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_i8(handle);
1933
+ function ubrn_ffi_core_crypto_ffi_rust_future_free_i16(handle) {
1934
+ wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_i16(handle);
1911
1935
  }
1912
- function ubrn_ffi_core_crypto_ffi_rust_future_complete_i8(handle, f_status_) {
1936
+ function ubrn_ffi_core_crypto_ffi_rust_future_complete_i16(handle, f_status_) {
1913
1937
  _assertClass(f_status_, RustCallStatus);
1914
- const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_i8(handle, f_status_.__wbg_ptr);
1938
+ const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_i16(handle, f_status_.__wbg_ptr);
1915
1939
  return ret;
1916
1940
  }
1917
1941
  function ubrn_ffi_core_crypto_ffi_rust_future_poll_u32(handle, callback, callback_data) {
1918
1942
  wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_u32(handle, callback, callback_data);
1919
1943
  }
1920
- function ubrn_ffi_core_crypto_ffi_rust_future_cancel_u32(handle) {
1921
- wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_u32(handle);
1944
+ function ubrn_ffi_core_crypto_ffi_rust_future_cancel_u64(handle) {
1945
+ wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_u64(handle);
1922
1946
  }
1923
- function ubrn_ffi_core_crypto_ffi_rust_future_free_u32(handle) {
1924
- wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_u32(handle);
1947
+ function ubrn_ffi_core_crypto_ffi_rust_future_free_u64(handle) {
1948
+ wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_u64(handle);
1925
1949
  }
1926
- function ubrn_ffi_core_crypto_ffi_rust_future_complete_u32(handle, f_status_) {
1950
+ function ubrn_ffi_core_crypto_ffi_rust_future_complete_u64(handle, f_status_) {
1927
1951
  _assertClass(f_status_, RustCallStatus);
1928
- const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_u32(handle, f_status_.__wbg_ptr);
1929
- return ret >>> 0;
1952
+ const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_u64(handle, f_status_.__wbg_ptr);
1953
+ return BigInt.asUintN(64, ret);
1930
1954
  }
1931
1955
  function ubrn_ffi_core_crypto_ffi_rust_future_poll_i64(handle, callback, callback_data) {
1932
1956
  wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_i64(handle, callback, callback_data);
@@ -1948,17 +1972,6 @@ function ubrn_ffi_core_crypto_ffi_rust_future_poll_f32(handle, callback, callbac
1948
1972
  function ubrn_ffi_core_crypto_ffi_rust_future_cancel_f32(handle) {
1949
1973
  wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_f32(handle);
1950
1974
  }
1951
- function ubrn_ffi_core_crypto_ffi_rust_future_free_f32(handle) {
1952
- wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_f32(handle);
1953
- }
1954
- function ubrn_ffi_core_crypto_ffi_rust_future_complete_f32(handle, f_status_) {
1955
- _assertClass(f_status_, RustCallStatus);
1956
- const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_f32(handle, f_status_.__wbg_ptr);
1957
- return ret;
1958
- }
1959
- function ubrn_ffi_core_crypto_ffi_rust_future_poll_f64(handle, callback, callback_data) {
1960
- wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_f64(handle, callback, callback_data);
1961
- }
1962
1975
  function ubrn_uniffi_core_crypto_ffi_fn_method_clientid_deserialize(ptr, f_status_) {
1963
1976
  _assertClass(f_status_, RustCallStatus);
1964
1977
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_clientid_deserialize(ptr, f_status_.__wbg_ptr);
@@ -1966,6 +1979,17 @@ function ubrn_uniffi_core_crypto_ffi_fn_method_clientid_deserialize(ptr, f_statu
1966
1979
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1967
1980
  return v1;
1968
1981
  }
1982
+ function ubrn_ffi_core_crypto_ffi_rust_future_cancel_u32(handle) {
1983
+ wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_u32(handle);
1984
+ }
1985
+ function ubrn_ffi_core_crypto_ffi_rust_future_free_u32(handle) {
1986
+ wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_u32(handle);
1987
+ }
1988
+ function ubrn_ffi_core_crypto_ffi_rust_future_complete_u32(handle, f_status_) {
1989
+ _assertClass(f_status_, RustCallStatus);
1990
+ const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_u32(handle, f_status_.__wbg_ptr);
1991
+ return ret >>> 0;
1992
+ }
1969
1993
  function ubrn_ffi_core_crypto_ffi_rust_future_poll_i32(handle, callback, callback_data) {
1970
1994
  wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_i32(handle, callback, callback_data);
1971
1995
  }
@@ -1983,26 +2007,26 @@ function ubrn_ffi_core_crypto_ffi_rust_future_complete_i32(handle, f_status_) {
1983
2007
  function ubrn_ffi_core_crypto_ffi_rust_future_poll_u64(handle, callback, callback_data) {
1984
2008
  wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_u64(handle, callback, callback_data);
1985
2009
  }
1986
- function ubrn_ffi_core_crypto_ffi_rust_future_cancel_u64(handle) {
1987
- wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_u64(handle);
1988
- }
1989
- function ubrn_ffi_core_crypto_ffi_rust_future_free_u64(handle) {
1990
- wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_u64(handle);
2010
+ function ubrn_ffi_core_crypto_ffi_rust_future_free_f32(handle) {
2011
+ wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_f32(handle);
1991
2012
  }
1992
- function ubrn_ffi_core_crypto_ffi_rust_future_complete_u64(handle, f_status_) {
2013
+ function ubrn_ffi_core_crypto_ffi_rust_future_complete_f32(handle, f_status_) {
1993
2014
  _assertClass(f_status_, RustCallStatus);
1994
- const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_u64(handle, f_status_.__wbg_ptr);
1995
- return BigInt.asUintN(64, ret);
2015
+ const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_f32(handle, f_status_.__wbg_ptr);
2016
+ return ret;
1996
2017
  }
1997
- function ubrn_ffi_core_crypto_ffi_rust_future_cancel_f64(handle) {
1998
- wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_f64(handle);
2018
+ function ubrn_ffi_core_crypto_ffi_rust_future_poll_f64(handle, callback, callback_data) {
2019
+ wasm.ubrn_ffi_core_crypto_ffi_rust_future_poll_f64(handle, callback, callback_data);
1999
2020
  }
2000
- function ubrn_ffi_core_crypto_ffi_rust_future_free_f64(handle) {
2001
- wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_f64(handle);
2021
+ function ubrn_ffi_core_crypto_ffi_rust_future_free_void(handle) {
2022
+ wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_void(handle);
2002
2023
  }
2003
- function ubrn_ffi_core_crypto_ffi_rust_future_complete_f64(handle, f_status_) {
2024
+ function ubrn_ffi_core_crypto_ffi_rust_future_complete_void(handle, f_status_) {
2004
2025
  _assertClass(f_status_, RustCallStatus);
2005
- const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_f64(handle, f_status_.__wbg_ptr);
2026
+ wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_void(handle, f_status_.__wbg_ptr);
2027
+ }
2028
+ function ubrn_uniffi_core_crypto_ffi_checksum_func_cipher_suite_default() {
2029
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_cipher_suite_default();
2006
2030
  return ret;
2007
2031
  }
2008
2032
  function ubrn_uniffi_core_crypto_ffi_checksum_func_cipher_suite_from_u16() {
@@ -2029,16 +2053,15 @@ function ubrn_uniffi_core_crypto_ffi_checksum_func_proteus_last_resort_prekey_id
2029
2053
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_proteus_last_resort_prekey_id_ffi();
2030
2054
  return ret;
2031
2055
  }
2032
- function ubrn_uniffi_core_crypto_ffi_checksum_func_migrate_database_key_type_to_bytes() {
2033
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_migrate_database_key_type_to_bytes();
2034
- return ret;
2056
+ function ubrn_ffi_core_crypto_ffi_rust_future_cancel_f64(handle) {
2057
+ wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_f64(handle);
2035
2058
  }
2036
- function ubrn_uniffi_core_crypto_ffi_checksum_func_core_crypto_history_client() {
2037
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_core_crypto_history_client();
2038
- return ret;
2059
+ function ubrn_ffi_core_crypto_ffi_rust_future_free_f64(handle) {
2060
+ wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_f64(handle);
2039
2061
  }
2040
- function ubrn_uniffi_core_crypto_ffi_checksum_func_build_metadata() {
2041
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_build_metadata();
2062
+ function ubrn_ffi_core_crypto_ffi_rust_future_complete_f64(handle, f_status_) {
2063
+ _assertClass(f_status_, RustCallStatus);
2064
+ const ret = wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_f64(handle, f_status_.__wbg_ptr);
2042
2065
  return ret;
2043
2066
  }
2044
2067
  function ubrn_ffi_core_crypto_ffi_rust_future_poll_rust_buffer(handle, callback, callback_data) {
@@ -2063,27 +2086,28 @@ function ubrn_ffi_core_crypto_ffi_rust_future_poll_void(handle, callback, callba
2063
2086
  function ubrn_ffi_core_crypto_ffi_rust_future_cancel_void(handle) {
2064
2087
  wasm.ubrn_ffi_core_crypto_ffi_rust_future_cancel_void(handle);
2065
2088
  }
2066
- function ubrn_ffi_core_crypto_ffi_rust_future_free_void(handle) {
2067
- wasm.ubrn_ffi_core_crypto_ffi_rust_future_free_void(handle);
2089
+ function ubrn_uniffi_core_crypto_ffi_checksum_func_migrate_database_key_type_to_bytes() {
2090
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_migrate_database_key_type_to_bytes();
2091
+ return ret;
2068
2092
  }
2069
- function ubrn_ffi_core_crypto_ffi_rust_future_complete_void(handle, f_status_) {
2070
- _assertClass(f_status_, RustCallStatus);
2071
- wasm.ubrn_ffi_core_crypto_ffi_rust_future_complete_void(handle, f_status_.__wbg_ptr);
2093
+ function ubrn_uniffi_core_crypto_ffi_checksum_func_core_crypto_history_client() {
2094
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_core_crypto_history_client();
2095
+ return ret;
2072
2096
  }
2073
- function ubrn_uniffi_core_crypto_ffi_checksum_func_cipher_suite_default() {
2074
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_cipher_suite_default();
2097
+ function ubrn_uniffi_core_crypto_ffi_checksum_func_build_metadata() {
2098
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_build_metadata();
2075
2099
  return ret;
2076
2100
  }
2077
- function ubrn_uniffi_core_crypto_ffi_checksum_func_version() {
2078
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_version();
2101
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_conversation_exists() {
2102
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_conversation_exists();
2079
2103
  return ret;
2080
2104
  }
2081
- function ubrn_uniffi_core_crypto_ffi_checksum_method_clientid_copy_bytes() {
2082
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_clientid_copy_bytes();
2105
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_export_secret_key() {
2106
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_export_secret_key();
2083
2107
  return ret;
2084
2108
  }
2085
- function ubrn_uniffi_core_crypto_ffi_checksum_method_clientid_deserialize() {
2086
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_clientid_deserialize();
2109
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_client_ids() {
2110
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_client_ids();
2087
2111
  return ret;
2088
2112
  }
2089
2113
  function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_external_sender() {
@@ -2106,16 +2130,16 @@ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_public_key()
2106
2130
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_public_key();
2107
2131
  return ret;
2108
2132
  }
2109
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_conversation_state() {
2110
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_conversation_state();
2133
+ function ubrn_uniffi_core_crypto_ffi_checksum_func_version() {
2134
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_func_version();
2111
2135
  return ret;
2112
2136
  }
2113
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_is_enabled() {
2114
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_is_enabled();
2137
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_clientid_copy_bytes() {
2138
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_clientid_copy_bytes();
2115
2139
  return ret;
2116
2140
  }
2117
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_is_pki_env_setup() {
2118
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_is_pki_env_setup();
2141
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_clientid_deserialize() {
2142
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_clientid_deserialize();
2119
2143
  return ret;
2120
2144
  }
2121
2145
  function ubrn_uniffi_core_crypto_ffi_checksum_method_deviceid_to_hex_string() {
@@ -2142,32 +2166,32 @@ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_conversation_
2142
2166
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_conversation_epoch();
2143
2167
  return ret;
2144
2168
  }
2145
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_conversation_exists() {
2146
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_conversation_exists();
2169
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_conversation_state() {
2170
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_conversation_state();
2147
2171
  return ret;
2148
2172
  }
2149
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_export_secret_key() {
2150
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_export_secret_key();
2173
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_is_enabled() {
2174
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_is_enabled();
2151
2175
  return ret;
2152
2176
  }
2153
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_client_ids() {
2154
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_client_ids();
2177
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_is_pki_env_setup() {
2178
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_e2ei_is_pki_env_setup();
2155
2179
  return ret;
2156
2180
  }
2157
2181
  function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_device_identities() {
2158
2182
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_device_identities();
2159
2183
  return ret;
2160
2184
  }
2161
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_user_identities() {
2162
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_user_identities();
2185
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_reseed() {
2186
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_reseed();
2163
2187
  return ret;
2164
2188
  }
2165
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_register_epoch_observer() {
2166
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_register_epoch_observer();
2189
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_pki_environment() {
2190
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_pki_environment();
2167
2191
  return ret;
2168
2192
  }
2169
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_register_history_observer() {
2170
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_register_history_observer();
2193
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_set_pki_environment() {
2194
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_set_pki_environment();
2171
2195
  return ret;
2172
2196
  }
2173
2197
  function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocommand_execute() {
@@ -2194,21 +2218,21 @@ function ubrn_uniffi_core_crypto_ffi_checksum_method_mlstransport_send_commit_bu
2194
2218
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_mlstransport_send_commit_bundle();
2195
2219
  return ret;
2196
2220
  }
2197
- function ubrn_uniffi_core_crypto_ffi_checksum_method_mlstransport_prepare_for_transport() {
2198
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_mlstransport_prepare_for_transport();
2221
+ function ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_eq_eq(ptr, other, f_status_) {
2222
+ _assertClass(f_status_, RustCallStatus);
2223
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_eq_eq(ptr, other, f_status_.__wbg_ptr);
2199
2224
  return ret;
2200
2225
  }
2201
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_data() {
2202
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_data();
2226
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_user_identities() {
2227
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_user_identities();
2203
2228
  return ret;
2204
2229
  }
2205
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_random_bytes() {
2206
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_random_bytes();
2230
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_register_epoch_observer() {
2231
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_register_epoch_observer();
2207
2232
  return ret;
2208
2233
  }
2209
- function ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_eq_eq(ptr, other, f_status_) {
2210
- _assertClass(f_status_, RustCallStatus);
2211
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_eq_eq(ptr, other, f_status_.__wbg_ptr);
2234
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_register_history_observer() {
2235
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_register_history_observer();
2212
2236
  return ret;
2213
2237
  }
2214
2238
  function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_proteus_fingerprint() {
@@ -2231,28 +2255,28 @@ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_random_bytes(
2231
2255
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_random_bytes();
2232
2256
  return ret;
2233
2257
  }
2234
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_reseed() {
2235
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_reseed();
2258
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_mlstransport_prepare_for_transport() {
2259
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_mlstransport_prepare_for_transport();
2236
2260
  return ret;
2237
2261
  }
2238
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_pki_environment() {
2239
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_get_pki_environment();
2262
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_data() {
2263
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_data();
2240
2264
  return ret;
2241
2265
  }
2242
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_set_pki_environment() {
2243
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptoffi_set_pki_environment();
2266
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_random_bytes() {
2267
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_random_bytes();
2244
2268
  return ret;
2245
2269
  }
2246
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_set_data() {
2247
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_set_data();
2270
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_cipher_suite() {
2271
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_cipher_suite();
2248
2272
  return ret;
2249
2273
  }
2250
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_e2ei_conversation_state() {
2251
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_e2ei_conversation_state();
2274
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_credential() {
2275
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_credential();
2252
2276
  return ret;
2253
2277
  }
2254
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_e2ei_is_enabled() {
2255
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_e2ei_is_enabled();
2278
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_epoch() {
2279
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_epoch();
2256
2280
  return ret;
2257
2281
  }
2258
2282
  function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_exists() {
@@ -2279,16 +2303,16 @@ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_encrypt_m
2279
2303
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_encrypt_message();
2280
2304
  return ret;
2281
2305
  }
2282
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_export_secret_key() {
2283
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_export_secret_key();
2306
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_set_data() {
2307
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_set_data();
2284
2308
  return ret;
2285
2309
  }
2286
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_generate_key_package() {
2287
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_generate_key_package();
2310
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_e2ei_conversation_state() {
2311
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_e2ei_conversation_state();
2288
2312
  return ret;
2289
2313
  }
2290
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_client_ids() {
2291
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_client_ids();
2314
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_e2ei_is_enabled() {
2315
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_e2ei_is_enabled();
2292
2316
  return ret;
2293
2317
  }
2294
2318
  function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_device_identities() {
@@ -2315,28 +2339,32 @@ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_commit_pe
2315
2339
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_commit_pending_proposals();
2316
2340
  return ret;
2317
2341
  }
2318
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_cipher_suite() {
2319
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_cipher_suite();
2342
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_encrypt_targeted_message() {
2343
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_encrypt_targeted_message();
2320
2344
  return ret;
2321
2345
  }
2322
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_credential() {
2323
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_credential();
2346
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_export_secret_key() {
2347
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_export_secret_key();
2324
2348
  return ret;
2325
2349
  }
2326
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_epoch() {
2327
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_conversation_epoch();
2350
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_generate_key_package() {
2351
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_generate_key_package();
2328
2352
  return ret;
2329
2353
  }
2330
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_external_sender() {
2331
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_external_sender();
2354
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_remove_key_packages_for() {
2355
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_remove_key_packages_for();
2332
2356
  return ret;
2333
2357
  }
2334
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_key_packages() {
2335
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_key_packages();
2358
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_set_conversation_credential() {
2359
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_set_conversation_credential();
2336
2360
  return ret;
2337
2361
  }
2338
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_join_by_external_commit() {
2339
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_join_by_external_commit();
2362
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_update_keying_material() {
2363
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_update_keying_material();
2364
+ return ret;
2365
+ }
2366
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_wipe_conversation() {
2367
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_wipe_conversation();
2340
2368
  return ret;
2341
2369
  }
2342
2370
  function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_decrypt() {
@@ -2355,20 +2383,20 @@ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_e
2355
2383
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_encrypt_batched();
2356
2384
  return ret;
2357
2385
  }
2358
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint() {
2359
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint();
2386
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_client_ids() {
2387
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_client_ids();
2360
2388
  return ret;
2361
2389
  }
2362
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint_local() {
2363
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint_local();
2390
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_external_sender() {
2391
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_external_sender();
2364
2392
  return ret;
2365
2393
  }
2366
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint_remote() {
2367
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint_remote();
2394
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_key_packages() {
2395
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_get_key_packages();
2368
2396
  return ret;
2369
2397
  }
2370
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_init() {
2371
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_init();
2398
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_join_by_external_commit() {
2399
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_join_by_external_commit();
2372
2400
  return ret;
2373
2401
  }
2374
2402
  function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_mls_init() {
@@ -2391,36 +2419,36 @@ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_remove_ke
2391
2419
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_remove_key_package();
2392
2420
  return ret;
2393
2421
  }
2394
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_remove_key_packages_for() {
2395
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_remove_key_packages_for();
2422
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint() {
2423
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint();
2396
2424
  return ret;
2397
2425
  }
2398
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_set_conversation_credential() {
2399
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_set_conversation_credential();
2426
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint_local() {
2427
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint_local();
2400
2428
  return ret;
2401
2429
  }
2402
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_update_keying_material() {
2403
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_update_keying_material();
2430
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint_remote() {
2431
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_fingerprint_remote();
2404
2432
  return ret;
2405
2433
  }
2406
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_wipe_conversation() {
2407
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_wipe_conversation();
2434
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_init() {
2435
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_init();
2408
2436
  return ret;
2409
2437
  }
2410
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_last_resort_prekey() {
2411
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_last_resort_prekey();
2438
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_secretkey_copy_bytes() {
2439
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_secretkey_copy_bytes();
2412
2440
  return ret;
2413
2441
  }
2414
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_new_prekey() {
2415
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_new_prekey();
2442
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_welcome_serialize() {
2443
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_welcome_serialize();
2416
2444
  return ret;
2417
2445
  }
2418
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_new_prekey_auto() {
2419
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_new_prekey_auto();
2446
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_credential_earliest_validity() {
2447
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credential_earliest_validity();
2420
2448
  return ret;
2421
2449
  }
2422
- function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_session_delete() {
2423
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_session_delete();
2450
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_credential_export_pem() {
2451
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credential_export_pem();
2424
2452
  return ret;
2425
2453
  }
2426
2454
  function ubrn_uniffi_core_crypto_ffi_checksum_method_credential_signature_scheme() {
@@ -2443,25 +2471,25 @@ function ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_earliest_vali
2443
2471
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_earliest_validity();
2444
2472
  return ret;
2445
2473
  }
2446
- function ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_public_key_hash() {
2447
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_public_key_hash();
2474
+ function ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_eq_ne(ptr, other, f_status_) {
2475
+ _assertClass(f_status_, RustCallStatus);
2476
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_eq_ne(ptr, other, f_status_.__wbg_ptr);
2448
2477
  return ret;
2449
2478
  }
2450
- function ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_signature_scheme() {
2451
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_signature_scheme();
2479
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_last_resort_prekey() {
2480
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_last_resort_prekey();
2452
2481
  return ret;
2453
2482
  }
2454
- function ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_type() {
2455
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_type();
2483
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_new_prekey() {
2484
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_new_prekey();
2456
2485
  return ret;
2457
2486
  }
2458
- function ubrn_uniffi_core_crypto_ffi_checksum_method_database_close() {
2459
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_database_close();
2487
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_new_prekey_auto() {
2488
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_new_prekey_auto();
2460
2489
  return ret;
2461
2490
  }
2462
- function ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_eq_ne(ptr, other, f_status_) {
2463
- _assertClass(f_status_, RustCallStatus);
2464
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_eq_ne(ptr, other, f_status_.__wbg_ptr);
2491
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_session_delete() {
2492
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_session_delete();
2465
2493
  return ret;
2466
2494
  }
2467
2495
  function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_session_exists() {
@@ -2480,68 +2508,68 @@ function ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_s
2480
2508
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_proteus_session_save();
2481
2509
  return ret;
2482
2510
  }
2483
- function ubrn_uniffi_core_crypto_ffi_checksum_method_secretkey_copy_bytes() {
2484
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_secretkey_copy_bytes();
2511
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_public_key_hash() {
2512
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_public_key_hash();
2485
2513
  return ret;
2486
2514
  }
2487
- function ubrn_uniffi_core_crypto_ffi_checksum_method_welcome_serialize() {
2488
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_welcome_serialize();
2515
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_signature_scheme() {
2516
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_signature_scheme();
2489
2517
  return ret;
2490
2518
  }
2491
- function ubrn_uniffi_core_crypto_ffi_checksum_method_credential_earliest_validity() {
2492
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credential_earliest_validity();
2519
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_type() {
2520
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credentialref_type();
2493
2521
  return ret;
2494
2522
  }
2495
- function ubrn_uniffi_core_crypto_ffi_checksum_method_credential_export_pem() {
2496
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_credential_export_pem();
2523
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_hash_ref() {
2524
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_hash_ref();
2497
2525
  return ret;
2498
2526
  }
2499
- function ubrn_uniffi_core_crypto_ffi_checksum_method_database_get_location() {
2500
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_database_get_location();
2527
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_is_valid() {
2528
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_is_valid();
2501
2529
  return ret;
2502
2530
  }
2503
- function ubrn_uniffi_core_crypto_ffi_checksum_method_database_update_key() {
2504
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_database_update_key();
2531
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_signature_scheme() {
2532
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_signature_scheme();
2505
2533
  return ret;
2506
2534
  }
2507
- function ubrn_uniffi_core_crypto_ffi_checksum_method_x509credentialacquisition_finalize() {
2508
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_x509credentialacquisition_finalize();
2535
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_intermediate_cert() {
2536
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_intermediate_cert();
2509
2537
  return ret;
2510
2538
  }
2511
2539
  function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_trust_anchor() {
2512
2540
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_trust_anchor();
2513
2541
  return ret;
2514
2542
  }
2515
- function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_http_request() {
2516
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_http_request();
2543
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_get_trust_anchors() {
2544
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_get_trust_anchors();
2517
2545
  return ret;
2518
2546
  }
2519
- function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_authenticate() {
2520
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_authenticate();
2547
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_remove_trust_anchor() {
2548
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_remove_trust_anchor();
2521
2549
  return ret;
2522
2550
  }
2523
- function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_get_backend_nonce() {
2524
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_get_backend_nonce();
2551
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_http_request() {
2552
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_http_request();
2525
2553
  return ret;
2526
2554
  }
2527
- function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_fetch_backend_access_token() {
2528
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_fetch_backend_access_token();
2555
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_authenticate() {
2556
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_authenticate();
2529
2557
  return ret;
2530
2558
  }
2531
- function ubrn_uniffi_core_crypto_ffi_checksum_constructor_clientid_new() {
2532
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_clientid_new();
2559
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_database_close() {
2560
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_database_close();
2533
2561
  return ret;
2534
2562
  }
2535
- function ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_from_hex_string() {
2536
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_from_hex_string();
2563
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_database_get_location() {
2564
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_database_get_location();
2537
2565
  return ret;
2538
2566
  }
2539
- function ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_new() {
2540
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_new();
2567
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_database_update_key() {
2568
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_database_update_key();
2541
2569
  return ret;
2542
2570
  }
2543
- function ubrn_uniffi_core_crypto_ffi_checksum_constructor_uuid_new() {
2544
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_uuid_new();
2571
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_x509credentialacquisition_finalize() {
2572
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_x509credentialacquisition_finalize();
2545
2573
  return ret;
2546
2574
  }
2547
2575
  function ubrn_uniffi_core_crypto_ffi_checksum_method_externalsender_serialize() {
@@ -2564,32 +2592,40 @@ function ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_credential_ty
2564
2592
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_credential_type();
2565
2593
  return ret;
2566
2594
  }
2567
- function ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_hash_ref() {
2568
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_hash_ref();
2595
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_get_backend_nonce() {
2596
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_get_backend_nonce();
2569
2597
  return ret;
2570
2598
  }
2571
- function ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_is_valid() {
2572
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_is_valid();
2599
+ function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_fetch_backend_access_token() {
2600
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_fetch_backend_access_token();
2573
2601
  return ret;
2574
2602
  }
2575
- function ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_signature_scheme() {
2576
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_keypackageref_signature_scheme();
2603
+ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_clientid_new() {
2604
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_clientid_new();
2577
2605
  return ret;
2578
2606
  }
2579
- function ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_intermediate_cert() {
2580
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_intermediate_cert();
2607
+ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_credential_basic() {
2608
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_credential_basic();
2581
2609
  return ret;
2582
2610
  }
2583
- function ubrn_uniffi_core_crypto_ffi_checksum_constructor_corecryptoffi_new() {
2584
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_corecryptoffi_new();
2611
+ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_in_memory() {
2612
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_in_memory();
2585
2613
  return ret;
2586
2614
  }
2587
- function ubrn_uniffi_core_crypto_ffi_checksum_constructor_conversationid_new() {
2588
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_conversationid_new();
2615
+ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_open() {
2616
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_open();
2589
2617
  return ret;
2590
2618
  }
2591
- function ubrn_uniffi_core_crypto_ffi_checksum_constructor_corecryptocontext_new() {
2592
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_corecryptocontext_new();
2619
+ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_databasekey_new() {
2620
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_databasekey_new();
2621
+ return ret;
2622
+ }
2623
+ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_frombytes() {
2624
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_frombytes();
2625
+ return ret;
2626
+ }
2627
+ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_new() {
2628
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_new();
2593
2629
  return ret;
2594
2630
  }
2595
2631
  function ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_new_from_credential_ref() {
@@ -2600,25 +2636,29 @@ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse()
2600
2636
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse();
2601
2637
  return ret;
2602
2638
  }
2603
- function ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_jwk() {
2604
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_jwk();
2639
+ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_from_hex_string() {
2640
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_from_hex_string();
2605
2641
  return ret;
2606
2642
  }
2607
- function ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_public_key() {
2608
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_public_key();
2643
+ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_new() {
2644
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_new();
2609
2645
  return ret;
2610
2646
  }
2611
- function ubrn_uniffi_core_crypto_ffi_checksum_constructor_keypackage_new() {
2612
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_keypackage_new();
2647
+ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_uuid_new() {
2648
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_uuid_new();
2613
2649
  return ret;
2614
2650
  }
2615
- function ubrn_uniffi_core_crypto_ffi_checksum_constructor_pkienvironment_new() {
2616
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_pkienvironment_new();
2651
+ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_corecryptoffi_new() {
2652
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_corecryptoffi_new();
2617
2653
  return ret;
2618
2654
  }
2619
- function ubrn_ffi_core_crypto_ffi_uniffi_contract_version() {
2620
- const ret = wasm.ubrn_ffi_core_crypto_ffi_uniffi_contract_version();
2621
- return ret >>> 0;
2655
+ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_conversationid_new() {
2656
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_conversationid_new();
2657
+ return ret;
2658
+ }
2659
+ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_corecryptocontext_new() {
2660
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_corecryptocontext_new();
2661
+ return ret;
2622
2662
  }
2623
2663
  function ubrn_uniffi_core_crypto_ffi_checksum_constructor_groupinfo_new() {
2624
2664
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_groupinfo_new();
@@ -2632,28 +2672,20 @@ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_welcome_new() {
2632
2672
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_welcome_new();
2633
2673
  return ret;
2634
2674
  }
2635
- function ubrn_uniffi_core_crypto_ffi_checksum_constructor_credential_basic() {
2636
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_credential_basic();
2637
- return ret;
2638
- }
2639
- function ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_in_memory() {
2640
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_in_memory();
2641
- return ret;
2642
- }
2643
- function ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_open() {
2644
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_open();
2675
+ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_jwk() {
2676
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_jwk();
2645
2677
  return ret;
2646
2678
  }
2647
- function ubrn_uniffi_core_crypto_ffi_checksum_constructor_databasekey_new() {
2648
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_databasekey_new();
2679
+ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_public_key() {
2680
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_public_key();
2649
2681
  return ret;
2650
2682
  }
2651
- function ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_frombytes() {
2652
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_frombytes();
2683
+ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_keypackage_new() {
2684
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_keypackage_new();
2653
2685
  return ret;
2654
2686
  }
2655
- function ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_new() {
2656
- const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_new();
2687
+ function ubrn_uniffi_core_crypto_ffi_checksum_constructor_pkienvironment_new() {
2688
+ const ret = wasm.ubrn_uniffi_core_crypto_ffi_checksum_constructor_pkienvironment_new();
2657
2689
  return ret;
2658
2690
  }
2659
2691
  function ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_hash(ptr, f_status_) {
@@ -2661,6 +2693,10 @@ function ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_hash(ptr, f
2661
2693
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_hash(ptr, f_status_.__wbg_ptr);
2662
2694
  return BigInt.asUintN(64, ret);
2663
2695
  }
2696
+ function ubrn_ffi_core_crypto_ffi_uniffi_contract_version() {
2697
+ const ret = wasm.ubrn_ffi_core_crypto_ffi_uniffi_contract_version();
2698
+ return ret >>> 0;
2699
+ }
2664
2700
  function ubrn_uniffi_core_crypto_ffi_fn_clone_deviceid(handle, f_status_) {
2665
2701
  _assertClass(f_status_, RustCallStatus);
2666
2702
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_clone_deviceid(handle, f_status_.__wbg_ptr);
@@ -2682,31 +2718,31 @@ function ubrn_uniffi_core_crypto_ffi_fn_constructor_deviceid_new(id, f_status_)
2682
2718
  const ret = wasm.ubrn_uniffi_core_crypto_ffi_fn_constructor_deviceid_new(id, f_status_.__wbg_ptr);
2683
2719
  return BigInt.asUintN(64, ret);
2684
2720
  }
2685
- function _RINvNvNtNtCs1v8yTr2kYOM_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCsj0N8EzF6AVm_7web_sys8features9gen_Event5EventuECs23g10cbCpHB_3idb(arg0, arg1, arg2) {
2686
- wasm._RINvNvNtNtCs1v8yTr2kYOM_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCsj0N8EzF6AVm_7web_sys8features9gen_Event5EventuECs23g10cbCpHB_3idb(arg0, arg1, arg2);
2687
- }
2688
- function _RINvNvNtNtCs1v8yTr2kYOM_12wasm_bindgen7convert8closuress2_1__6invokeNtB8_7JsValueuECs1CdnCKNhB1d_20wasm_bindgen_futures(arg0, arg1, arg2) {
2689
- wasm._RINvNvNtNtCs1v8yTr2kYOM_12wasm_bindgen7convert8closuress2_1__6invokeNtB8_7JsValueuECs1CdnCKNhB1d_20wasm_bindgen_futures(arg0, arg1, arg2);
2721
+ function _RINvNvNtNtCslSRLpRjL4Qd_12wasm_bindgen7convert8closuress2_1__6invokeNtB8_7JsValueuECs6oi2QWajr82_20wasm_bindgen_futures(arg0, arg1, arg2) {
2722
+ wasm._RINvNvNtNtCslSRLpRjL4Qd_12wasm_bindgen7convert8closuress2_1__6invokeNtB8_7JsValueuECs6oi2QWajr82_20wasm_bindgen_futures(arg0, arg1, arg2);
2690
2723
  }
2691
2724
  function takeFromExternrefTable0(idx) {
2692
2725
  const value = wasm.__wbindgen_externrefs.get(idx);
2693
2726
  wasm.__externref_table_dealloc(idx);
2694
2727
  return value;
2695
2728
  }
2696
- function _RINvNvNtNtCs1v8yTr2kYOM_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCsj0N8EzF6AVm_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventINtNtCsdkdt1aaAg1T_4core6result6ResultuNtB8_7JsValueEECs8XZ7I9GocMb_15core_crypto_ffi(arg0, arg1, arg2) {
2697
- const ret = wasm._RINvNvNtNtCs1v8yTr2kYOM_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCsj0N8EzF6AVm_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventINtNtCsdkdt1aaAg1T_4core6result6ResultuNtB8_7JsValueEECs8XZ7I9GocMb_15core_crypto_ffi(arg0, arg1, arg2);
2729
+ function _RINvNvNtNtCslSRLpRjL4Qd_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs5aKoPCzAvZg_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventINtNtCsdkdt1aaAg1T_4core6result6ResultuNtB8_7JsValueEECsezU3dQ8ny60_15core_crypto_ffi(arg0, arg1, arg2) {
2730
+ const ret = wasm._RINvNvNtNtCslSRLpRjL4Qd_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs5aKoPCzAvZg_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventINtNtCsdkdt1aaAg1T_4core6result6ResultuNtB8_7JsValueEECsezU3dQ8ny60_15core_crypto_ffi(arg0, arg1, arg2);
2698
2731
  if (ret[1]) {
2699
2732
  throw takeFromExternrefTable0(ret[0]);
2700
2733
  }
2701
2734
  }
2702
- function _RINvNvNtNtCs1v8yTr2kYOM_12wasm_bindgen7convert8closuress0_1__6invokeuECsckjKPEl01w1_18indexed_db_futures(arg0, arg1) {
2703
- wasm._RINvNvNtNtCs1v8yTr2kYOM_12wasm_bindgen7convert8closuress0_1__6invokeuECsckjKPEl01w1_18indexed_db_futures(arg0, arg1);
2735
+ function _RINvNvNtNtCslSRLpRjL4Qd_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs5aKoPCzAvZg_7web_sys8features9gen_Event5EventuECszZaOapotrU_18indexed_db_futures(arg0, arg1, arg2) {
2736
+ wasm._RINvNvNtNtCslSRLpRjL4Qd_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs5aKoPCzAvZg_7web_sys8features9gen_Event5EventuECszZaOapotrU_18indexed_db_futures(arg0, arg1, arg2);
2737
+ }
2738
+ function _RINvNvNtNtCslSRLpRjL4Qd_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs5aKoPCzAvZg_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventuECsfTAVwrhQF3_20core_crypto_keystore(arg0, arg1, arg2) {
2739
+ wasm._RINvNvNtNtCslSRLpRjL4Qd_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs5aKoPCzAvZg_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventuECsfTAVwrhQF3_20core_crypto_keystore(arg0, arg1, arg2);
2704
2740
  }
2705
- function _RINvNvNtNtCs1v8yTr2kYOM_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCsj0N8EzF6AVm_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventuECs9dh8yPvxFbN_20core_crypto_keystore(arg0, arg1, arg2) {
2706
- wasm._RINvNvNtNtCs1v8yTr2kYOM_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCsj0N8EzF6AVm_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventuECs9dh8yPvxFbN_20core_crypto_keystore(arg0, arg1, arg2);
2741
+ function _RINvNvNtNtCslSRLpRjL4Qd_12wasm_bindgen7convert8closuress0_1__6invokeuECszZaOapotrU_18indexed_db_futures(arg0, arg1) {
2742
+ wasm._RINvNvNtNtCslSRLpRjL4Qd_12wasm_bindgen7convert8closuress0_1__6invokeuECszZaOapotrU_18indexed_db_futures(arg0, arg1);
2707
2743
  }
2708
- function _RINvNvNtNtCs1v8yTr2kYOM_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCsj0N8EzF6AVm_7web_sys8features9gen_Event5EventuECsckjKPEl01w1_18indexed_db_futures(arg0, arg1, arg2) {
2709
- wasm._RINvNvNtNtCs1v8yTr2kYOM_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCsj0N8EzF6AVm_7web_sys8features9gen_Event5EventuECsckjKPEl01w1_18indexed_db_futures(arg0, arg1, arg2);
2744
+ function _RINvNvNtNtCslSRLpRjL4Qd_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs5aKoPCzAvZg_7web_sys8features9gen_Event5EventuECs7RhRqPViKqB_3idb(arg0, arg1, arg2) {
2745
+ wasm._RINvNvNtNtCslSRLpRjL4Qd_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs5aKoPCzAvZg_7web_sys8features9gen_Event5EventuECs7RhRqPViKqB_3idb(arg0, arg1, arg2);
2710
2746
  }
2711
2747
  var __wbindgen_enum_IdbRequestReadyState = ["pending", "done"];
2712
2748
  var __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
@@ -4080,28 +4116,28 @@ function __wbg_get_imports() {
4080
4116
  const ret = arg0.versions;
4081
4117
  return ret;
4082
4118
  };
4083
- imports.wbg.__wbindgen_cast_13362a32bfbf4437 = function(arg0, arg1) {
4084
- const ret = makeMutClosure(arg0, arg1, wasm._RINvNtCs1v8yTr2kYOM_12wasm_bindgen7closure7destroyDINtNtNtCsdkdt1aaAg1T_4core3ops8function5FnMutTNtNtNtCsj0N8EzF6AVm_7web_sys8features9gen_Event5EventEEp6OutputuEL_ECsckjKPEl01w1_18indexed_db_futures, _RINvNvNtNtCs1v8yTr2kYOM_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCsj0N8EzF6AVm_7web_sys8features9gen_Event5EventuECsckjKPEl01w1_18indexed_db_futures);
4119
+ imports.wbg.__wbindgen_cast_13b5e8fcefd01c4c = function(arg0, arg1) {
4120
+ const ret = makeMutClosure(arg0, arg1, wasm._RINvNtCslSRLpRjL4Qd_12wasm_bindgen7closure7destroyDINtNtNtCsdkdt1aaAg1T_4core3ops8function5FnMutTNtNtNtCs5aKoPCzAvZg_7web_sys8features9gen_Event5EventEEp6OutputuEL_ECs7RhRqPViKqB_3idb, _RINvNvNtNtCslSRLpRjL4Qd_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs5aKoPCzAvZg_7web_sys8features9gen_Event5EventuECs7RhRqPViKqB_3idb);
4085
4121
  return ret;
4086
4122
  };
4087
4123
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
4088
4124
  const ret = getStringFromWasm0(arg0, arg1);
4089
4125
  return ret;
4090
4126
  };
4091
- imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
4092
- const ret = BigInt.asUintN(64, arg0);
4127
+ imports.wbg.__wbindgen_cast_2fa6c75e78383271 = function(arg0, arg1) {
4128
+ const ret = makeMutClosure(arg0, arg1, wasm._RINvNtCslSRLpRjL4Qd_12wasm_bindgen7closure7destroyDINtNtNtCsdkdt1aaAg1T_4core3ops8function5FnMutTNtNtNtCs5aKoPCzAvZg_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventEEp6OutputuEL_ECsfTAVwrhQF3_20core_crypto_keystore, _RINvNvNtNtCslSRLpRjL4Qd_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs5aKoPCzAvZg_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventuECsfTAVwrhQF3_20core_crypto_keystore);
4093
4129
  return ret;
4094
4130
  };
4095
- imports.wbg.__wbindgen_cast_4bd566ee8bca33f5 = function(arg0, arg1) {
4096
- const ret = makeMutClosure(arg0, arg1, wasm._RINvNtCs1v8yTr2kYOM_12wasm_bindgen7closure7destroyDINtNtNtCsdkdt1aaAg1T_4core3ops8function5FnMutTNtNtNtCsj0N8EzF6AVm_7web_sys8features9gen_Event5EventEEp6OutputuEL_ECsckjKPEl01w1_18indexed_db_futures, _RINvNvNtNtCs1v8yTr2kYOM_12wasm_bindgen7convert8closuress0_1__6invokeuECsckjKPEl01w1_18indexed_db_futures);
4131
+ imports.wbg.__wbindgen_cast_35698d6af910240c = function(arg0, arg1) {
4132
+ const ret = makeMutClosure(arg0, arg1, wasm._RINvNtCslSRLpRjL4Qd_12wasm_bindgen7closure7destroyDINtNtNtCsdkdt1aaAg1T_4core3ops8function5FnMutTNtNtNtCs5aKoPCzAvZg_7web_sys8features9gen_Event5EventEEp6OutputuEL_ECszZaOapotrU_18indexed_db_futures, _RINvNvNtNtCslSRLpRjL4Qd_12wasm_bindgen7convert8closuress0_1__6invokeuECszZaOapotrU_18indexed_db_futures);
4097
4133
  return ret;
4098
4134
  };
4099
- imports.wbg.__wbindgen_cast_55e0497722645319 = function(arg0, arg1) {
4100
- const ret = makeMutClosure(arg0, arg1, wasm._RINvNtCs1v8yTr2kYOM_12wasm_bindgen7closure7destroyDINtNtNtCsdkdt1aaAg1T_4core3ops8function5FnMutTNtB4_7JsValueEEp6OutputuEL_ECs1CdnCKNhB1d_20wasm_bindgen_futures, _RINvNvNtNtCs1v8yTr2kYOM_12wasm_bindgen7convert8closuress2_1__6invokeNtB8_7JsValueuECs1CdnCKNhB1d_20wasm_bindgen_futures);
4135
+ imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
4136
+ const ret = BigInt.asUintN(64, arg0);
4101
4137
  return ret;
4102
4138
  };
4103
- imports.wbg.__wbindgen_cast_6839ba539615cc3f = function(arg0, arg1) {
4104
- const ret = makeMutClosure(arg0, arg1, wasm._RINvNtCs1v8yTr2kYOM_12wasm_bindgen7closure7destroyDINtNtNtCsdkdt1aaAg1T_4core3ops8function5FnMutTNtNtNtCsj0N8EzF6AVm_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventEEp6OutputuEL_ECs9dh8yPvxFbN_20core_crypto_keystore, _RINvNvNtNtCs1v8yTr2kYOM_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCsj0N8EzF6AVm_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventuECs9dh8yPvxFbN_20core_crypto_keystore);
4139
+ imports.wbg.__wbindgen_cast_60eb12e88f7c1fa3 = function(arg0, arg1) {
4140
+ const ret = makeMutClosure(arg0, arg1, wasm._RINvNtCslSRLpRjL4Qd_12wasm_bindgen7closure7destroyDINtNtNtCsdkdt1aaAg1T_4core3ops8function5FnMutTNtNtNtCs5aKoPCzAvZg_7web_sys8features9gen_Event5EventEEp6OutputuEL_ECszZaOapotrU_18indexed_db_futures, _RINvNvNtNtCslSRLpRjL4Qd_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs5aKoPCzAvZg_7web_sys8features9gen_Event5EventuECszZaOapotrU_18indexed_db_futures);
4105
4141
  return ret;
4106
4142
  };
4107
4143
  imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function(arg0, arg1) {
@@ -4110,14 +4146,6 @@ function __wbg_get_imports() {
4110
4146
  const ret = v0;
4111
4147
  return ret;
4112
4148
  };
4113
- imports.wbg.__wbindgen_cast_aaa470e682f93910 = function(arg0, arg1) {
4114
- const ret = makeMutClosure(arg0, arg1, wasm._RINvNtCs1v8yTr2kYOM_12wasm_bindgen7closure7destroyDINtNtNtCsdkdt1aaAg1T_4core3ops8function5FnMutTNtNtNtCsj0N8EzF6AVm_7web_sys8features9gen_Event5EventEEp6OutputuEL_ECs23g10cbCpHB_3idb, _RINvNvNtNtCs1v8yTr2kYOM_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCsj0N8EzF6AVm_7web_sys8features9gen_Event5EventuECs23g10cbCpHB_3idb);
4115
- return ret;
4116
- };
4117
- imports.wbg.__wbindgen_cast_c750ad92937d61ae = function(arg0, arg1) {
4118
- const ret = makeMutClosure(arg0, arg1, wasm._RINvNtCs1v8yTr2kYOM_12wasm_bindgen7closure7destroyDINtNtNtCsdkdt1aaAg1T_4core3ops8function5FnMutTNtNtNtCsj0N8EzF6AVm_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventEEp6OutputINtNtBU_6result6ResultuNtB4_7JsValueEEL_ECs8XZ7I9GocMb_15core_crypto_ffi, _RINvNvNtNtCs1v8yTr2kYOM_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCsj0N8EzF6AVm_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventINtNtCsdkdt1aaAg1T_4core6result6ResultuNtB8_7JsValueEECs8XZ7I9GocMb_15core_crypto_ffi);
4119
- return ret;
4120
- };
4121
4149
  imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
4122
4150
  const ret = getArrayU8FromWasm0(arg0, arg1);
4123
4151
  return ret;
@@ -4126,6 +4154,14 @@ function __wbg_get_imports() {
4126
4154
  const ret = arg0;
4127
4155
  return ret;
4128
4156
  };
4157
+ imports.wbg.__wbindgen_cast_e06c15c3e65c1b9e = function(arg0, arg1) {
4158
+ const ret = makeMutClosure(arg0, arg1, wasm._RINvNtCslSRLpRjL4Qd_12wasm_bindgen7closure7destroyDINtNtNtCsdkdt1aaAg1T_4core3ops8function5FnMutTNtB4_7JsValueEEp6OutputuEL_ECs6oi2QWajr82_20wasm_bindgen_futures, _RINvNvNtNtCslSRLpRjL4Qd_12wasm_bindgen7convert8closuress2_1__6invokeNtB8_7JsValueuECs6oi2QWajr82_20wasm_bindgen_futures);
4159
+ return ret;
4160
+ };
4161
+ imports.wbg.__wbindgen_cast_f39e1a27b2b659d3 = function(arg0, arg1) {
4162
+ const ret = makeMutClosure(arg0, arg1, wasm._RINvNtCslSRLpRjL4Qd_12wasm_bindgen7closure7destroyDINtNtNtCsdkdt1aaAg1T_4core3ops8function5FnMutTNtNtNtCs5aKoPCzAvZg_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventEEp6OutputINtNtBU_6result6ResultuNtB4_7JsValueEEL_ECsezU3dQ8ny60_15core_crypto_ffi, _RINvNvNtNtCslSRLpRjL4Qd_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs5aKoPCzAvZg_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventINtNtCsdkdt1aaAg1T_4core6result6ResultuNtB8_7JsValueEECsezU3dQ8ny60_15core_crypto_ffi);
4163
+ return ret;
4164
+ };
4129
4165
  imports.wbg.__wbindgen_init_externref_table = function() {
4130
4166
  const table = wasm.__wbindgen_externrefs;
4131
4167
  const offset = table.grow(4);
@@ -4941,6 +4977,10 @@ function uniffiTraitInterfaceCallWithError(makeCall, handleSuccess, handleError2
4941
4977
  }
4942
4978
  }
4943
4979
  }
4980
+ // node_modules/@ubjs/core/dist/esm/enums.js
4981
+ class UniffiEnum {
4982
+ constructor(...args) {}
4983
+ }
4944
4984
  // node_modules/@ubjs/core/dist/esm/objects.js
4945
4985
  class UniffiAbstractObject {
4946
4986
  uniffiUse(block) {
@@ -5113,568 +5153,33 @@ function version() {
5113
5153
  return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_func_version(callStatus);
5114
5154
  }, FfiConverterString.lift.bind(FfiConverterString)));
5115
5155
  }
5116
-
5117
- class Uuid extends UniffiAbstractObject {
5118
- [uniffiTypeNameSymbol] = "Uuid";
5119
- [destructorGuardSymbol];
5120
- [pointerLiteralSymbol];
5121
- constructor(uuid) {
5122
- super();
5123
- const pointer = uniffiCaller.rustCallWithError(FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError), (callStatus) => {
5124
- return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_constructor_uuid_new(FfiConverterString.lower(uuid, nativeModule().rustbuffer_alloc), callStatus);
5125
- }, FfiConverterString.lift.bind(FfiConverterString));
5126
- this[pointerLiteralSymbol] = pointer;
5127
- this[destructorGuardSymbol] = uniffiTypeUuidObjectFactory.bless(pointer);
5128
- }
5129
- toString() {
5130
- return ((__rb) => {
5131
- try {
5132
- return FfiConverterString.lift(__rb);
5133
- } finally {
5134
- nativeModule().rustbuffer_free(__rb);
5135
- }
5136
- })(uniffiCaller.rustCall((callStatus) => {
5137
- return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_display(uniffiTypeUuidObjectFactory.clonePointer(this), callStatus);
5138
- }, FfiConverterString.lift.bind(FfiConverterString)));
5139
- }
5140
- equals(other) {
5141
- return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
5142
- return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_eq(uniffiTypeUuidObjectFactory.clonePointer(this), FfiConverterTypeUuid.lower(other, nativeModule().rustbuffer_alloc), callStatus);
5143
- }, FfiConverterString.lift.bind(FfiConverterString)));
5144
- }
5145
- hashCode() {
5146
- return FfiConverterUInt64.lift(uniffiCaller.rustCall((callStatus) => {
5147
- return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_hash(uniffiTypeUuidObjectFactory.clonePointer(this), callStatus);
5148
- }, FfiConverterString.lift.bind(FfiConverterString)));
5149
- }
5150
- uniffiDestroy() {
5151
- const ptr = this[destructorGuardSymbol];
5152
- if (ptr !== undefined) {
5153
- const pointer = uniffiTypeUuidObjectFactory.pointer(this);
5154
- uniffiTypeUuidObjectFactory.freePointer(pointer);
5155
- uniffiTypeUuidObjectFactory.unbless(ptr);
5156
- delete this[destructorGuardSymbol];
5157
- }
5158
- }
5159
- static instanceOf(obj_) {
5160
- return uniffiTypeUuidObjectFactory.isConcreteType(obj_);
5161
- }
5162
- }
5163
- var uniffiTypeUuidObjectFactory = (() => {
5164
- const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
5165
- uniffiTypeUuidObjectFactory.freePointer(heldValue);
5166
- }) : null;
5167
- return {
5168
- create(pointer) {
5169
- const instance = Object.create(Uuid.prototype);
5170
- instance[pointerLiteralSymbol] = pointer;
5171
- instance[destructorGuardSymbol] = this.bless(pointer);
5172
- instance[uniffiTypeNameSymbol] = "Uuid";
5173
- return instance;
5174
- },
5175
- bless(p) {
5176
- const ptr = {
5177
- p,
5178
- markDestroyed: () => {
5179
- return;
5180
- }
5181
- };
5182
- if (registry) {
5183
- registry.register(ptr, p, ptr);
5184
- }
5185
- return ptr;
5186
- },
5187
- unbless(ptr_) {
5188
- if (registry) {
5189
- registry.unregister(ptr_);
5190
- }
5191
- },
5192
- pointer(obj_) {
5193
- if (obj_[destructorGuardSymbol] === undefined) {
5194
- throw new UniffiInternalError.UnexpectedNullPointer;
5195
- }
5196
- return obj_[pointerLiteralSymbol];
5197
- },
5198
- clonePointer(obj_) {
5199
- const pointer = this.pointer(obj_);
5200
- return uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_clone_uuid(pointer, callStatus), FfiConverterString.lift);
5201
- },
5202
- freePointer(pointer) {
5203
- uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_free_uuid(pointer, callStatus), FfiConverterString.lift);
5204
- },
5205
- isConcreteType(obj_) {
5206
- return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "Uuid";
5207
- }
5208
- };
5209
- })();
5210
- var FfiConverterTypeUuid = new FfiConverterObject(uniffiTypeUuidObjectFactory);
5211
- var stringConverter = (() => {
5212
- const encoder = new TextEncoder;
5213
- const decoder = new TextDecoder;
5214
- return {
5215
- stringToBytes: (s) => encoder.encode(s),
5216
- bytesToString: (ab) => decoder.decode(ab),
5217
- stringByteLength: (s) => encoder.encode(s).byteLength,
5218
- writeStringIntoBuffer: (s, buf, offset) => {
5219
- const view = new Uint8Array(buf.arrayBuffer, offset, buf.arrayBuffer.byteLength - offset);
5220
- return encoder.encodeInto(s, view).written;
5221
- },
5222
- readStringFromBuffer: (buf, offset, length) => decoder.decode(new Uint8Array(buf.arrayBuffer, offset, length))
5223
- };
5224
- })();
5225
- var FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
5226
-
5227
- class DeviceId extends UniffiAbstractObject {
5228
- [uniffiTypeNameSymbol] = "DeviceId";
5229
- [destructorGuardSymbol];
5230
- [pointerLiteralSymbol];
5231
- constructor(id) {
5232
- super();
5233
- const pointer = uniffiCaller.rustCall((callStatus) => {
5234
- return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_constructor_deviceid_new(FfiConverterUInt64.lower(id, nativeModule().rustbuffer_alloc), callStatus);
5235
- }, FfiConverterString.lift.bind(FfiConverterString));
5236
- this[pointerLiteralSymbol] = pointer;
5237
- this[destructorGuardSymbol] = uniffiTypeDeviceIdObjectFactory.bless(pointer);
5238
- }
5239
- static fromHexString(hexString) {
5240
- return FfiConverterTypeDeviceId.lift(uniffiCaller.rustCallWithError(FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError), (callStatus) => {
5241
- return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_constructor_deviceid_from_hex_string(FfiConverterString.lower(hexString, nativeModule().rustbuffer_alloc), callStatus);
5242
- }, FfiConverterString.lift.bind(FfiConverterString)));
5243
- }
5244
- toHexString() {
5245
- return ((__rb) => {
5246
- try {
5247
- return FfiConverterString.lift(__rb);
5248
- } finally {
5249
- nativeModule().rustbuffer_free(__rb);
5250
- }
5251
- })(uniffiCaller.rustCall((callStatus) => {
5252
- return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_hex_string(uniffiTypeDeviceIdObjectFactory.clonePointer(this), callStatus);
5253
- }, FfiConverterString.lift.bind(FfiConverterString)));
5254
- }
5255
- toU64() {
5256
- return FfiConverterUInt64.lift(uniffiCaller.rustCall((callStatus) => {
5257
- return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_u64(uniffiTypeDeviceIdObjectFactory.clonePointer(this), callStatus);
5258
- }, FfiConverterString.lift.bind(FfiConverterString)));
5259
- }
5260
- equals(other) {
5261
- return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
5262
- return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_eq(uniffiTypeDeviceIdObjectFactory.clonePointer(this), FfiConverterTypeDeviceId.lower(other, nativeModule().rustbuffer_alloc), callStatus);
5263
- }, FfiConverterString.lift.bind(FfiConverterString)));
5264
- }
5265
- hashCode() {
5266
- return FfiConverterUInt64.lift(uniffiCaller.rustCall((callStatus) => {
5267
- return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_hash(uniffiTypeDeviceIdObjectFactory.clonePointer(this), callStatus);
5268
- }, FfiConverterString.lift.bind(FfiConverterString)));
5269
- }
5270
- uniffiDestroy() {
5271
- const ptr = this[destructorGuardSymbol];
5272
- if (ptr !== undefined) {
5273
- const pointer = uniffiTypeDeviceIdObjectFactory.pointer(this);
5274
- uniffiTypeDeviceIdObjectFactory.freePointer(pointer);
5275
- uniffiTypeDeviceIdObjectFactory.unbless(ptr);
5276
- delete this[destructorGuardSymbol];
5277
- }
5278
- }
5279
- static instanceOf(obj_) {
5280
- return uniffiTypeDeviceIdObjectFactory.isConcreteType(obj_);
5281
- }
5282
- }
5283
- var uniffiTypeDeviceIdObjectFactory = (() => {
5284
- const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
5285
- uniffiTypeDeviceIdObjectFactory.freePointer(heldValue);
5286
- }) : null;
5287
- return {
5288
- create(pointer) {
5289
- const instance = Object.create(DeviceId.prototype);
5290
- instance[pointerLiteralSymbol] = pointer;
5291
- instance[destructorGuardSymbol] = this.bless(pointer);
5292
- instance[uniffiTypeNameSymbol] = "DeviceId";
5293
- return instance;
5294
- },
5295
- bless(p) {
5296
- const ptr = {
5297
- p,
5298
- markDestroyed: () => {
5299
- return;
5300
- }
5301
- };
5302
- if (registry) {
5303
- registry.register(ptr, p, ptr);
5304
- }
5305
- return ptr;
5306
- },
5307
- unbless(ptr_) {
5308
- if (registry) {
5309
- registry.unregister(ptr_);
5310
- }
5311
- },
5312
- pointer(obj_) {
5313
- if (obj_[destructorGuardSymbol] === undefined) {
5314
- throw new UniffiInternalError.UnexpectedNullPointer;
5315
- }
5316
- return obj_[pointerLiteralSymbol];
5317
- },
5318
- clonePointer(obj_) {
5319
- const pointer = this.pointer(obj_);
5320
- return uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_clone_deviceid(pointer, callStatus), FfiConverterString.lift);
5321
- },
5322
- freePointer(pointer) {
5323
- uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_free_deviceid(pointer, callStatus), FfiConverterString.lift);
5324
- },
5325
- isConcreteType(obj_) {
5326
- return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "DeviceId";
5327
- }
5328
- };
5329
- })();
5330
- var FfiConverterTypeDeviceId = new FfiConverterObject(uniffiTypeDeviceIdObjectFactory);
5331
- var DeserializedClientId = (() => {
5332
- const defaults = () => ({});
5333
- const create = (() => {
5334
- return uniffiCreateRecord(defaults);
5335
- })();
5336
- return Object.freeze({
5337
- create,
5338
- new: create,
5339
- defaults: () => Object.freeze(defaults()),
5340
- toString(self_) {
5341
- return ((__rb) => {
5342
- try {
5343
- return FfiConverterString.lift(__rb);
5344
- } finally {
5345
- nativeModule().rustbuffer_free(__rb);
5346
- }
5347
- })(uniffiCaller.rustCall((callStatus) => {
5348
- return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_deserializedclientid_uniffi_trait_display(FfiConverterTypeDeserializedClientId.lower(self_, nativeModule().rustbuffer_alloc), callStatus);
5349
- }, FfiConverterString.lift.bind(FfiConverterString)));
5350
- }
5351
- });
5352
- })();
5353
- var FfiConverterTypeDeserializedClientId = (() => {
5354
-
5355
- class FFIConverter extends AbstractFfiConverterByteArray {
5356
- read(from) {
5357
- return {
5358
- clientId: FfiConverterTypeClientId.read(from),
5359
- userId: FfiConverterTypeUuid.read(from),
5360
- deviceId: FfiConverterTypeDeviceId.read(from),
5361
- domain: FfiConverterString.read(from)
5362
- };
5363
- }
5364
- write(value, into) {
5365
- FfiConverterTypeClientId.write(value.clientId, into);
5366
- FfiConverterTypeUuid.write(value.userId, into);
5367
- FfiConverterTypeDeviceId.write(value.deviceId, into);
5368
- FfiConverterString.write(value.domain, into);
5369
- }
5370
- allocationSize(value) {
5371
- return FfiConverterTypeClientId.allocationSize(value.clientId) + FfiConverterTypeUuid.allocationSize(value.userId) + FfiConverterTypeDeviceId.allocationSize(value.deviceId) + FfiConverterString.allocationSize(value.domain);
5372
- }
5373
- }
5374
- return new FFIConverter;
5375
- })();
5376
-
5377
- class ClientId extends UniffiAbstractObject {
5378
- [uniffiTypeNameSymbol] = "ClientId";
5379
- [destructorGuardSymbol];
5380
- [pointerLiteralSymbol];
5381
- constructor(userId, deviceId, domain) {
5382
- super();
5383
- const pointer = uniffiCaller.rustCall((callStatus) => {
5384
- 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);
5385
- }, FfiConverterString.lift.bind(FfiConverterString));
5386
- this[pointerLiteralSymbol] = pointer;
5387
- this[destructorGuardSymbol] = uniffiTypeClientIdObjectFactory.bless(pointer);
5388
- }
5389
- copyBytes() {
5390
- return ((__rb) => {
5391
- try {
5392
- return FfiConverterUint8Array.lift(__rb);
5393
- } finally {
5394
- nativeModule().rustbuffer_free(__rb);
5395
- }
5396
- })(uniffiCaller.rustCall((callStatus) => {
5397
- return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_clientid_copy_bytes(uniffiTypeClientIdObjectFactory.clonePointer(this), callStatus);
5398
- }, FfiConverterString.lift.bind(FfiConverterString)));
5399
- }
5400
- deserialize() {
5401
- return ((__rb) => {
5402
- try {
5403
- return FfiConverterTypeDeserializedClientId.lift(__rb);
5404
- } finally {
5405
- nativeModule().rustbuffer_free(__rb);
5406
- }
5407
- })(uniffiCaller.rustCall((callStatus) => {
5408
- return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_clientid_deserialize(uniffiTypeClientIdObjectFactory.clonePointer(this), callStatus);
5409
- }, FfiConverterString.lift.bind(FfiConverterString)));
5410
- }
5411
- equals(other) {
5412
- return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
5413
- return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_eq_eq(uniffiTypeClientIdObjectFactory.clonePointer(this), FfiConverterTypeClientId.lower(other, nativeModule().rustbuffer_alloc), callStatus);
5414
- }, FfiConverterString.lift.bind(FfiConverterString)));
5415
- }
5416
- hashCode() {
5417
- return FfiConverterUInt64.lift(uniffiCaller.rustCall((callStatus) => {
5418
- return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_hash(uniffiTypeClientIdObjectFactory.clonePointer(this), callStatus);
5419
- }, FfiConverterString.lift.bind(FfiConverterString)));
5420
- }
5421
- uniffiDestroy() {
5422
- const ptr = this[destructorGuardSymbol];
5423
- if (ptr !== undefined) {
5424
- const pointer = uniffiTypeClientIdObjectFactory.pointer(this);
5425
- uniffiTypeClientIdObjectFactory.freePointer(pointer);
5426
- uniffiTypeClientIdObjectFactory.unbless(ptr);
5427
- delete this[destructorGuardSymbol];
5428
- }
5429
- }
5430
- static instanceOf(obj_) {
5431
- return uniffiTypeClientIdObjectFactory.isConcreteType(obj_);
5432
- }
5433
- }
5434
- var uniffiTypeClientIdObjectFactory = (() => {
5435
- const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
5436
- uniffiTypeClientIdObjectFactory.freePointer(heldValue);
5437
- }) : null;
5438
- return {
5439
- create(pointer) {
5440
- const instance = Object.create(ClientId.prototype);
5441
- instance[pointerLiteralSymbol] = pointer;
5442
- instance[destructorGuardSymbol] = this.bless(pointer);
5443
- instance[uniffiTypeNameSymbol] = "ClientId";
5444
- return instance;
5445
- },
5446
- bless(p) {
5447
- const ptr = {
5448
- p,
5449
- markDestroyed: () => {
5450
- return;
5451
- }
5452
- };
5453
- if (registry) {
5454
- registry.register(ptr, p, ptr);
5455
- }
5456
- return ptr;
5457
- },
5458
- unbless(ptr_) {
5459
- if (registry) {
5460
- registry.unregister(ptr_);
5461
- }
5462
- },
5463
- pointer(obj_) {
5464
- if (obj_[destructorGuardSymbol] === undefined) {
5465
- throw new UniffiInternalError.UnexpectedNullPointer;
5466
- }
5467
- return obj_[pointerLiteralSymbol];
5468
- },
5469
- clonePointer(obj_) {
5470
- const pointer = this.pointer(obj_);
5471
- return uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_clone_clientid(pointer, callStatus), FfiConverterString.lift);
5472
- },
5473
- freePointer(pointer) {
5474
- uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_free_clientid(pointer, callStatus), FfiConverterString.lift);
5475
- },
5476
- isConcreteType(obj_) {
5477
- return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "ClientId";
5478
- }
5479
- };
5480
- })();
5481
- var FfiConverterTypeClientId = new FfiConverterObject(uniffiTypeClientIdObjectFactory);
5482
- var DeviceStatus;
5483
- ((DeviceStatus2) => {
5484
- DeviceStatus2[DeviceStatus2["Valid"] = 1] = "Valid";
5485
- DeviceStatus2[DeviceStatus2["Expired"] = 2] = "Expired";
5486
- DeviceStatus2[DeviceStatus2["Revoked"] = 3] = "Revoked";
5487
- })(DeviceStatus ||= {});
5488
- var FfiConverterTypeDeviceStatus = (() => {
5489
- const ordinalConverter = FfiConverterInt32;
5490
-
5491
- class FFIConverter extends AbstractFfiConverterByteArray {
5492
- read(from) {
5493
- switch (ordinalConverter.read(from)) {
5494
- case 1:
5495
- return 1 /* Valid */;
5496
- case 2:
5497
- return 2 /* Expired */;
5498
- case 3:
5499
- return 3 /* Revoked */;
5500
- default:
5501
- throw new UniffiInternalError.UnexpectedEnumCase;
5502
- }
5503
- }
5504
- write(value, into) {
5505
- switch (value) {
5506
- case 1 /* Valid */:
5507
- return ordinalConverter.write(1, into);
5508
- case 2 /* Expired */:
5509
- return ordinalConverter.write(2, into);
5510
- case 3 /* Revoked */:
5511
- return ordinalConverter.write(3, into);
5512
- }
5513
- }
5514
- allocationSize(value) {
5515
- return ordinalConverter.allocationSize(0);
5516
- }
5517
- }
5518
- return new FFIConverter;
5519
- })();
5520
- var CredentialType;
5521
- ((CredentialType2) => {
5522
- CredentialType2[CredentialType2["Basic"] = 1] = "Basic";
5523
- CredentialType2[CredentialType2["X509"] = 2] = "X509";
5524
- })(CredentialType ||= {});
5525
- var FfiConverterTypeCredentialType = (() => {
5526
- const ordinalConverter = FfiConverterInt32;
5527
-
5528
- class FFIConverter extends AbstractFfiConverterByteArray {
5529
- read(from) {
5530
- switch (ordinalConverter.read(from)) {
5531
- case 1:
5532
- return 1 /* Basic */;
5533
- case 2:
5534
- return 2 /* X509 */;
5535
- default:
5536
- throw new UniffiInternalError.UnexpectedEnumCase;
5537
- }
5538
- }
5539
- write(value, into) {
5540
- switch (value) {
5541
- case 1 /* Basic */:
5542
- return ordinalConverter.write(1, into);
5543
- case 2 /* X509 */:
5544
- return ordinalConverter.write(2, into);
5545
- }
5546
- }
5547
- allocationSize(value) {
5548
- return ordinalConverter.allocationSize(0);
5549
- }
5550
- }
5551
- return new FFIConverter;
5552
- })();
5553
- var FfiConverterTypeTimestamp = FfiConverterTimestamp;
5554
- var X509Identity = (() => {
5555
- const defaults = () => ({});
5556
- const create = (() => {
5557
- return uniffiCreateRecord(defaults);
5558
- })();
5559
- return Object.freeze({
5560
- create,
5561
- new: create,
5562
- defaults: () => Object.freeze(defaults())
5563
- });
5564
- })();
5565
- var FfiConverterTypeX509Identity = (() => {
5566
-
5567
- class FFIConverter extends AbstractFfiConverterByteArray {
5568
- read(from) {
5569
- return {
5570
- handle: FfiConverterString.read(from),
5571
- displayName: FfiConverterString.read(from),
5572
- domain: FfiConverterString.read(from),
5573
- certificate: FfiConverterString.read(from),
5574
- serialNumber: FfiConverterString.read(from),
5575
- notBefore: FfiConverterTypeTimestamp.read(from),
5576
- notAfter: FfiConverterTypeTimestamp.read(from)
5577
- };
5578
- }
5579
- write(value, into) {
5580
- FfiConverterString.write(value.handle, into);
5581
- FfiConverterString.write(value.displayName, into);
5582
- FfiConverterString.write(value.domain, into);
5583
- FfiConverterString.write(value.certificate, into);
5584
- FfiConverterString.write(value.serialNumber, into);
5585
- FfiConverterTypeTimestamp.write(value.notBefore, into);
5586
- FfiConverterTypeTimestamp.write(value.notAfter, into);
5587
- }
5588
- allocationSize(value) {
5589
- return FfiConverterString.allocationSize(value.handle) + FfiConverterString.allocationSize(value.displayName) + FfiConverterString.allocationSize(value.domain) + FfiConverterString.allocationSize(value.certificate) + FfiConverterString.allocationSize(value.serialNumber) + FfiConverterTypeTimestamp.allocationSize(value.notBefore) + FfiConverterTypeTimestamp.allocationSize(value.notAfter);
5590
- }
5591
- }
5592
- return new FFIConverter;
5593
- })();
5594
- var WireIdentity = (() => {
5595
- const defaults = () => ({});
5596
- const create = (() => {
5597
- return uniffiCreateRecord(defaults);
5598
- })();
5599
- return Object.freeze({
5600
- create,
5601
- new: create,
5602
- defaults: () => Object.freeze(defaults())
5603
- });
5604
- })();
5605
- var FfiConverterTypeWireIdentity = (() => {
5606
-
5607
- class FFIConverter extends AbstractFfiConverterByteArray {
5608
- read(from) {
5609
- return {
5610
- clientId: FfiConverterOptionalTypeClientId.read(from),
5611
- status: FfiConverterTypeDeviceStatus.read(from),
5612
- thumbprint: FfiConverterString.read(from),
5613
- credentialType: FfiConverterTypeCredentialType.read(from),
5614
- x509Identity: FfiConverterOptionalTypeX509Identity.read(from)
5615
- };
5616
- }
5617
- write(value, into) {
5618
- FfiConverterOptionalTypeClientId.write(value.clientId, into);
5619
- FfiConverterTypeDeviceStatus.write(value.status, into);
5620
- FfiConverterString.write(value.thumbprint, into);
5621
- FfiConverterTypeCredentialType.write(value.credentialType, into);
5622
- FfiConverterOptionalTypeX509Identity.write(value.x509Identity, into);
5623
- }
5624
- allocationSize(value) {
5625
- return FfiConverterOptionalTypeClientId.allocationSize(value.clientId) + FfiConverterTypeDeviceStatus.allocationSize(value.status) + FfiConverterString.allocationSize(value.thumbprint) + FfiConverterTypeCredentialType.allocationSize(value.credentialType) + FfiConverterOptionalTypeX509Identity.allocationSize(value.x509Identity);
5626
- }
5627
- }
5628
- return new FFIConverter;
5629
- })();
5630
- var BufferedDecryptedMessage = (() => {
5631
- const defaults = () => ({});
5632
- const create = (() => {
5633
- return uniffiCreateRecord(defaults);
5634
- })();
5635
- return Object.freeze({
5636
- create,
5637
- new: create,
5638
- defaults: () => Object.freeze(defaults())
5639
- });
5640
- })();
5641
- var FfiConverterTypeBufferedDecryptedMessage = (() => {
5642
-
5643
- class FFIConverter extends AbstractFfiConverterByteArray {
5644
- read(from) {
5645
- return {
5646
- message: FfiConverterOptionalBytes.read(from),
5647
- isActive: FfiConverterBool.read(from),
5648
- commitDelay: FfiConverterOptionalUInt64.read(from),
5649
- senderClientId: FfiConverterOptionalTypeClientId.read(from),
5650
- identity: FfiConverterTypeWireIdentity.read(from)
5651
- };
5652
- }
5653
- write(value, into) {
5654
- FfiConverterOptionalBytes.write(value.message, into);
5655
- FfiConverterBool.write(value.isActive, into);
5656
- FfiConverterOptionalUInt64.write(value.commitDelay, into);
5657
- FfiConverterOptionalTypeClientId.write(value.senderClientId, into);
5658
- FfiConverterTypeWireIdentity.write(value.identity, into);
5659
- }
5660
- allocationSize(value) {
5661
- return FfiConverterOptionalBytes.allocationSize(value.message) + FfiConverterBool.allocationSize(value.isActive) + FfiConverterOptionalUInt64.allocationSize(value.commitDelay) + FfiConverterOptionalTypeClientId.allocationSize(value.senderClientId) + FfiConverterTypeWireIdentity.allocationSize(value.identity);
5662
- }
5663
- }
5664
- return new FFIConverter;
5665
- })();
5666
- var BuildMetadata = (() => {
5667
- const defaults = () => ({});
5668
- const create = (() => {
5669
- return uniffiCreateRecord(defaults);
5670
- })();
5671
- return Object.freeze({
5672
- create,
5673
- new: create,
5674
- defaults: () => Object.freeze(defaults())
5675
- });
5676
- })();
5677
- var FfiConverterTypeBuildMetadata = (() => {
5156
+ var stringConverter = (() => {
5157
+ const encoder = new TextEncoder;
5158
+ const decoder = new TextDecoder;
5159
+ return {
5160
+ stringToBytes: (s) => encoder.encode(s),
5161
+ bytesToString: (ab) => decoder.decode(ab),
5162
+ stringByteLength: (s) => encoder.encode(s).byteLength,
5163
+ writeStringIntoBuffer: (s, buf, offset) => {
5164
+ const view = new Uint8Array(buf.arrayBuffer, offset, buf.arrayBuffer.byteLength - offset);
5165
+ return encoder.encodeInto(s, view).written;
5166
+ },
5167
+ readStringFromBuffer: (buf, offset, length) => decoder.decode(new Uint8Array(buf.arrayBuffer, offset, length))
5168
+ };
5169
+ })();
5170
+ var FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
5171
+ var BuildMetadata = (() => {
5172
+ const defaults = () => ({});
5173
+ const create = (() => {
5174
+ return uniffiCreateRecord(defaults);
5175
+ })();
5176
+ return Object.freeze({
5177
+ create,
5178
+ new: create,
5179
+ defaults: () => Object.freeze(defaults())
5180
+ });
5181
+ })();
5182
+ var FfiConverterTypeBuildMetadata = (() => {
5678
5183
 
5679
5184
  class FFIConverter extends AbstractFfiConverterByteArray {
5680
5185
  read(from) {
@@ -5987,9 +5492,7 @@ var FfiConverterTypeMlsError = (() => {
5987
5492
  read(from) {
5988
5493
  switch (ordinalConverter.read(from)) {
5989
5494
  case 1:
5990
- return new MlsError.ConversationAlreadyExists({
5991
- conversationId: FfiConverterUint8Array.read(from)
5992
- });
5495
+ return new MlsError.ConversationAlreadyExists({ conversationId: FfiConverterUint8Array.read(from) });
5993
5496
  case 2:
5994
5497
  return new MlsError.DuplicateMessage;
5995
5498
  case 3:
@@ -6011,13 +5514,9 @@ var FfiConverterTypeMlsError = (() => {
6011
5514
  case 11:
6012
5515
  return new MlsError.OrphanWelcome;
6013
5516
  case 12:
6014
- return new MlsError.MessageRejected({
6015
- reason: FfiConverterString.read(from)
6016
- });
5517
+ return new MlsError.MessageRejected({ reason: FfiConverterString.read(from) });
6017
5518
  case 13:
6018
- return new MlsError.Other({
6019
- msg: FfiConverterString.read(from)
6020
- });
5519
+ return new MlsError.Other({ msg: FfiConverterString.read(from) });
6021
5520
  default:
6022
5521
  throw new UniffiInternalError.UnexpectedEnumCase;
6023
5522
  }
@@ -6175,40 +5674,236 @@ var ProteusError = (() => {
6175
5674
  constructor() {
6176
5675
  super("ProteusError", "DuplicateMessage");
6177
5676
  }
6178
- static new() {
6179
- return new DuplicateMessage_;
5677
+ static new() {
5678
+ return new DuplicateMessage_;
5679
+ }
5680
+ static instanceOf(obj) {
5681
+ return obj.tag === "DuplicateMessage" /* DuplicateMessage */;
5682
+ }
5683
+ static hasInner(obj) {
5684
+ return false;
5685
+ }
5686
+ }
5687
+
5688
+ class RemoteIdentityChanged_ extends UniffiError {
5689
+ [uniffiTypeNameSymbol] = "ProteusError";
5690
+ tag = "RemoteIdentityChanged" /* RemoteIdentityChanged */;
5691
+ constructor() {
5692
+ super("ProteusError", "RemoteIdentityChanged");
5693
+ }
5694
+ static new() {
5695
+ return new RemoteIdentityChanged_;
5696
+ }
5697
+ static instanceOf(obj) {
5698
+ return obj.tag === "RemoteIdentityChanged" /* RemoteIdentityChanged */;
5699
+ }
5700
+ static hasInner(obj) {
5701
+ return false;
5702
+ }
5703
+ }
5704
+
5705
+ class Other_ extends UniffiError {
5706
+ [uniffiTypeNameSymbol] = "ProteusError";
5707
+ tag = "Other" /* Other */;
5708
+ inner;
5709
+ constructor(inner) {
5710
+ super("ProteusError", "Other");
5711
+ this.inner = Object.freeze(inner);
5712
+ }
5713
+ static new(inner) {
5714
+ return new Other_(inner);
5715
+ }
5716
+ static instanceOf(obj) {
5717
+ return obj.tag === "Other" /* Other */;
5718
+ }
5719
+ static hasInner(obj) {
5720
+ return Other_.instanceOf(obj);
5721
+ }
5722
+ static getInner(obj) {
5723
+ return obj.inner;
5724
+ }
5725
+ }
5726
+ function instanceOf(obj) {
5727
+ return obj[uniffiTypeNameSymbol] === "ProteusError";
5728
+ }
5729
+ return Object.freeze({
5730
+ instanceOf,
5731
+ SessionNotFound: SessionNotFound_,
5732
+ DuplicateMessage: DuplicateMessage_,
5733
+ RemoteIdentityChanged: RemoteIdentityChanged_,
5734
+ Other: Other_
5735
+ });
5736
+ })();
5737
+ var FfiConverterTypeProteusError = (() => {
5738
+ const ordinalConverter = FfiConverterInt32;
5739
+
5740
+ class FFIConverter extends AbstractFfiConverterByteArray {
5741
+ read(from) {
5742
+ switch (ordinalConverter.read(from)) {
5743
+ case 1:
5744
+ return new ProteusError.SessionNotFound;
5745
+ case 2:
5746
+ return new ProteusError.DuplicateMessage;
5747
+ case 3:
5748
+ return new ProteusError.RemoteIdentityChanged;
5749
+ case 4:
5750
+ return new ProteusError.Other({ errorCode: FfiConverterUInt16.read(from) });
5751
+ default:
5752
+ throw new UniffiInternalError.UnexpectedEnumCase;
5753
+ }
5754
+ }
5755
+ write(value, into) {
5756
+ switch (value.tag) {
5757
+ case "SessionNotFound" /* SessionNotFound */: {
5758
+ ordinalConverter.write(1, into);
5759
+ return;
5760
+ }
5761
+ case "DuplicateMessage" /* DuplicateMessage */: {
5762
+ ordinalConverter.write(2, into);
5763
+ return;
5764
+ }
5765
+ case "RemoteIdentityChanged" /* RemoteIdentityChanged */: {
5766
+ ordinalConverter.write(3, into);
5767
+ return;
5768
+ }
5769
+ case "Other" /* Other */: {
5770
+ ordinalConverter.write(4, into);
5771
+ const inner = value.inner;
5772
+ FfiConverterUInt16.write(inner.errorCode, into);
5773
+ return;
5774
+ }
5775
+ default:
5776
+ throw new UniffiInternalError.UnexpectedEnumCase;
5777
+ }
5778
+ }
5779
+ allocationSize(value) {
5780
+ switch (value.tag) {
5781
+ case "SessionNotFound" /* SessionNotFound */: {
5782
+ return ordinalConverter.allocationSize(1);
5783
+ }
5784
+ case "DuplicateMessage" /* DuplicateMessage */: {
5785
+ return ordinalConverter.allocationSize(2);
5786
+ }
5787
+ case "RemoteIdentityChanged" /* RemoteIdentityChanged */: {
5788
+ return ordinalConverter.allocationSize(3);
5789
+ }
5790
+ case "Other" /* Other */: {
5791
+ const inner = value.inner;
5792
+ let size = ordinalConverter.allocationSize(4);
5793
+ size += FfiConverterUInt16.allocationSize(inner.errorCode);
5794
+ return size;
5795
+ }
5796
+ default:
5797
+ throw new UniffiInternalError.UnexpectedEnumCase;
5798
+ }
5799
+ }
5800
+ }
5801
+ return new FFIConverter;
5802
+ })();
5803
+ var CoreCryptoError_Tags;
5804
+ ((CoreCryptoError_Tags2) => {
5805
+ CoreCryptoError_Tags2["Mls"] = "Mls";
5806
+ CoreCryptoError_Tags2["Proteus"] = "Proteus";
5807
+ CoreCryptoError_Tags2["E2ei"] = "E2ei";
5808
+ CoreCryptoError_Tags2["TransactionFailed"] = "TransactionFailed";
5809
+ CoreCryptoError_Tags2["Other"] = "Other";
5810
+ })(CoreCryptoError_Tags ||= {});
5811
+ var CoreCryptoError = (() => {
5812
+
5813
+ class Mls_ extends UniffiError {
5814
+ [uniffiTypeNameSymbol] = "CoreCryptoError";
5815
+ tag = "Mls" /* Mls */;
5816
+ inner;
5817
+ constructor(inner) {
5818
+ super("CoreCryptoError", "Mls");
5819
+ this.inner = Object.freeze(inner);
5820
+ }
5821
+ static new(inner) {
5822
+ return new Mls_(inner);
5823
+ }
5824
+ static instanceOf(obj) {
5825
+ return obj.tag === "Mls" /* Mls */;
5826
+ }
5827
+ static hasInner(obj) {
5828
+ return Mls_.instanceOf(obj);
5829
+ }
5830
+ static getInner(obj) {
5831
+ return obj.inner;
5832
+ }
5833
+ }
5834
+
5835
+ class Proteus_ extends UniffiError {
5836
+ [uniffiTypeNameSymbol] = "CoreCryptoError";
5837
+ tag = "Proteus" /* Proteus */;
5838
+ inner;
5839
+ constructor(inner) {
5840
+ super("CoreCryptoError", "Proteus");
5841
+ this.inner = Object.freeze(inner);
5842
+ }
5843
+ static new(inner) {
5844
+ return new Proteus_(inner);
5845
+ }
5846
+ static instanceOf(obj) {
5847
+ return obj.tag === "Proteus" /* Proteus */;
5848
+ }
5849
+ static hasInner(obj) {
5850
+ return Proteus_.instanceOf(obj);
5851
+ }
5852
+ static getInner(obj) {
5853
+ return obj.inner;
5854
+ }
5855
+ }
5856
+
5857
+ class E2ei_ extends UniffiError {
5858
+ [uniffiTypeNameSymbol] = "CoreCryptoError";
5859
+ tag = "E2ei" /* E2ei */;
5860
+ inner;
5861
+ constructor(inner) {
5862
+ super("CoreCryptoError", "E2ei");
5863
+ this.inner = Object.freeze(inner);
5864
+ }
5865
+ static new(inner) {
5866
+ return new E2ei_(inner);
6180
5867
  }
6181
5868
  static instanceOf(obj) {
6182
- return obj.tag === "DuplicateMessage" /* DuplicateMessage */;
5869
+ return obj.tag === "E2ei" /* E2ei */;
6183
5870
  }
6184
5871
  static hasInner(obj) {
6185
- return false;
5872
+ return E2ei_.instanceOf(obj);
5873
+ }
5874
+ static getInner(obj) {
5875
+ return obj.inner;
6186
5876
  }
6187
5877
  }
6188
5878
 
6189
- class RemoteIdentityChanged_ extends UniffiError {
6190
- [uniffiTypeNameSymbol] = "ProteusError";
6191
- tag = "RemoteIdentityChanged" /* RemoteIdentityChanged */;
6192
- constructor() {
6193
- super("ProteusError", "RemoteIdentityChanged");
5879
+ class TransactionFailed_ extends UniffiError {
5880
+ [uniffiTypeNameSymbol] = "CoreCryptoError";
5881
+ tag = "TransactionFailed" /* TransactionFailed */;
5882
+ inner;
5883
+ constructor(inner) {
5884
+ super("CoreCryptoError", "TransactionFailed");
5885
+ this.inner = Object.freeze(inner);
6194
5886
  }
6195
- static new() {
6196
- return new RemoteIdentityChanged_;
5887
+ static new(inner) {
5888
+ return new TransactionFailed_(inner);
6197
5889
  }
6198
5890
  static instanceOf(obj) {
6199
- return obj.tag === "RemoteIdentityChanged" /* RemoteIdentityChanged */;
5891
+ return obj.tag === "TransactionFailed" /* TransactionFailed */;
6200
5892
  }
6201
5893
  static hasInner(obj) {
6202
- return false;
5894
+ return TransactionFailed_.instanceOf(obj);
5895
+ }
5896
+ static getInner(obj) {
5897
+ return obj.inner;
6203
5898
  }
6204
5899
  }
6205
5900
 
6206
5901
  class Other_ extends UniffiError {
6207
- [uniffiTypeNameSymbol] = "ProteusError";
5902
+ [uniffiTypeNameSymbol] = "CoreCryptoError";
6208
5903
  tag = "Other" /* Other */;
6209
5904
  inner;
6210
5905
  constructor(inner) {
6211
- super("ProteusError", "Other");
5906
+ super("CoreCryptoError", "Other");
6212
5907
  this.inner = Object.freeze(inner);
6213
5908
  }
6214
5909
  static new(inner) {
@@ -6225,367 +5920,602 @@ var ProteusError = (() => {
6225
5920
  }
6226
5921
  }
6227
5922
  function instanceOf(obj) {
6228
- return obj[uniffiTypeNameSymbol] === "ProteusError";
5923
+ return obj[uniffiTypeNameSymbol] === "CoreCryptoError";
6229
5924
  }
6230
5925
  return Object.freeze({
6231
5926
  instanceOf,
6232
- SessionNotFound: SessionNotFound_,
6233
- DuplicateMessage: DuplicateMessage_,
6234
- RemoteIdentityChanged: RemoteIdentityChanged_,
5927
+ Mls: Mls_,
5928
+ Proteus: Proteus_,
5929
+ E2ei: E2ei_,
5930
+ TransactionFailed: TransactionFailed_,
6235
5931
  Other: Other_
6236
5932
  });
6237
5933
  })();
6238
- var FfiConverterTypeProteusError = (() => {
5934
+ var FfiConverterTypeCoreCryptoError = (() => {
6239
5935
  const ordinalConverter = FfiConverterInt32;
6240
5936
 
6241
5937
  class FFIConverter extends AbstractFfiConverterByteArray {
6242
5938
  read(from) {
6243
5939
  switch (ordinalConverter.read(from)) {
6244
5940
  case 1:
6245
- return new ProteusError.SessionNotFound;
5941
+ return new CoreCryptoError.Mls({ mlsError: FfiConverterTypeMlsError.read(from) });
6246
5942
  case 2:
6247
- return new ProteusError.DuplicateMessage;
5943
+ return new CoreCryptoError.Proteus({ exception: FfiConverterTypeProteusError.read(from) });
6248
5944
  case 3:
6249
- return new ProteusError.RemoteIdentityChanged;
5945
+ return new CoreCryptoError.E2ei({ e2eiError: FfiConverterString.read(from) });
6250
5946
  case 4:
6251
- return new ProteusError.Other({
6252
- errorCode: FfiConverterUInt16.read(from)
6253
- });
5947
+ return new CoreCryptoError.TransactionFailed({ error: FfiConverterString.read(from) });
5948
+ case 5:
5949
+ return new CoreCryptoError.Other({ msg: FfiConverterString.read(from) });
6254
5950
  default:
6255
5951
  throw new UniffiInternalError.UnexpectedEnumCase;
6256
5952
  }
6257
5953
  }
6258
5954
  write(value, into) {
6259
5955
  switch (value.tag) {
6260
- case "SessionNotFound" /* SessionNotFound */: {
5956
+ case "Mls" /* Mls */: {
6261
5957
  ordinalConverter.write(1, into);
5958
+ const inner = value.inner;
5959
+ FfiConverterTypeMlsError.write(inner.mlsError, into);
6262
5960
  return;
6263
5961
  }
6264
- case "DuplicateMessage" /* DuplicateMessage */: {
5962
+ case "Proteus" /* Proteus */: {
6265
5963
  ordinalConverter.write(2, into);
5964
+ const inner = value.inner;
5965
+ FfiConverterTypeProteusError.write(inner.exception, into);
6266
5966
  return;
6267
5967
  }
6268
- case "RemoteIdentityChanged" /* RemoteIdentityChanged */: {
5968
+ case "E2ei" /* E2ei */: {
6269
5969
  ordinalConverter.write(3, into);
5970
+ const inner = value.inner;
5971
+ FfiConverterString.write(inner.e2eiError, into);
6270
5972
  return;
6271
5973
  }
6272
- case "Other" /* Other */: {
5974
+ case "TransactionFailed" /* TransactionFailed */: {
6273
5975
  ordinalConverter.write(4, into);
6274
5976
  const inner = value.inner;
6275
- FfiConverterUInt16.write(inner.errorCode, into);
5977
+ FfiConverterString.write(inner.error, into);
5978
+ return;
5979
+ }
5980
+ case "Other" /* Other */: {
5981
+ ordinalConverter.write(5, into);
5982
+ const inner = value.inner;
5983
+ FfiConverterString.write(inner.msg, into);
5984
+ return;
5985
+ }
5986
+ default:
5987
+ throw new UniffiInternalError.UnexpectedEnumCase;
5988
+ }
5989
+ }
5990
+ allocationSize(value) {
5991
+ switch (value.tag) {
5992
+ case "Mls" /* Mls */: {
5993
+ const inner = value.inner;
5994
+ let size = ordinalConverter.allocationSize(1);
5995
+ size += FfiConverterTypeMlsError.allocationSize(inner.mlsError);
5996
+ return size;
5997
+ }
5998
+ case "Proteus" /* Proteus */: {
5999
+ const inner = value.inner;
6000
+ let size = ordinalConverter.allocationSize(2);
6001
+ size += FfiConverterTypeProteusError.allocationSize(inner.exception);
6002
+ return size;
6003
+ }
6004
+ case "E2ei" /* E2ei */: {
6005
+ const inner = value.inner;
6006
+ let size = ordinalConverter.allocationSize(3);
6007
+ size += FfiConverterString.allocationSize(inner.e2eiError);
6008
+ return size;
6009
+ }
6010
+ case "TransactionFailed" /* TransactionFailed */: {
6011
+ const inner = value.inner;
6012
+ let size = ordinalConverter.allocationSize(4);
6013
+ size += FfiConverterString.allocationSize(inner.error);
6014
+ return size;
6015
+ }
6016
+ case "Other" /* Other */: {
6017
+ const inner = value.inner;
6018
+ let size = ordinalConverter.allocationSize(5);
6019
+ size += FfiConverterString.allocationSize(inner.msg);
6020
+ return size;
6021
+ }
6022
+ default:
6023
+ throw new UniffiInternalError.UnexpectedEnumCase;
6024
+ }
6025
+ }
6026
+ }
6027
+ return new FFIConverter;
6028
+ })();
6029
+
6030
+ class Welcome extends UniffiAbstractObject {
6031
+ [uniffiTypeNameSymbol] = "Welcome";
6032
+ [destructorGuardSymbol];
6033
+ [pointerLiteralSymbol];
6034
+ constructor(bytes) {
6035
+ super();
6036
+ const pointer = uniffiCaller.rustCallWithError(FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError), (callStatus) => {
6037
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_constructor_welcome_new(FfiConverterUint8Array.lower(bytes, nativeModule().rustbuffer_alloc), callStatus);
6038
+ }, FfiConverterString.lift.bind(FfiConverterString));
6039
+ this[pointerLiteralSymbol] = pointer;
6040
+ this[destructorGuardSymbol] = uniffiTypeWelcomeObjectFactory.bless(pointer);
6041
+ }
6042
+ serialize() {
6043
+ return ((__rb) => {
6044
+ try {
6045
+ return FfiConverterUint8Array.lift(__rb);
6046
+ } finally {
6047
+ nativeModule().rustbuffer_free(__rb);
6048
+ }
6049
+ })(uniffiCaller.rustCallWithError(FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError), (callStatus) => {
6050
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_welcome_serialize(uniffiTypeWelcomeObjectFactory.clonePointer(this), callStatus);
6051
+ }, FfiConverterString.lift.bind(FfiConverterString)));
6052
+ }
6053
+ uniffiDestroy() {
6054
+ const ptr = this[destructorGuardSymbol];
6055
+ if (ptr !== undefined) {
6056
+ const pointer = uniffiTypeWelcomeObjectFactory.pointer(this);
6057
+ uniffiTypeWelcomeObjectFactory.freePointer(pointer);
6058
+ uniffiTypeWelcomeObjectFactory.unbless(ptr);
6059
+ delete this[destructorGuardSymbol];
6060
+ }
6061
+ }
6062
+ static instanceOf(obj_) {
6063
+ return uniffiTypeWelcomeObjectFactory.isConcreteType(obj_);
6064
+ }
6065
+ }
6066
+ var uniffiTypeWelcomeObjectFactory = (() => {
6067
+ const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
6068
+ uniffiTypeWelcomeObjectFactory.freePointer(heldValue);
6069
+ }) : null;
6070
+ return {
6071
+ create(pointer) {
6072
+ const instance = Object.create(Welcome.prototype);
6073
+ instance[pointerLiteralSymbol] = pointer;
6074
+ instance[destructorGuardSymbol] = this.bless(pointer);
6075
+ instance[uniffiTypeNameSymbol] = "Welcome";
6076
+ return instance;
6077
+ },
6078
+ bless(p) {
6079
+ const ptr = {
6080
+ p,
6081
+ markDestroyed: () => {
6276
6082
  return;
6277
6083
  }
6084
+ };
6085
+ if (registry) {
6086
+ registry.register(ptr, p, ptr);
6087
+ }
6088
+ return ptr;
6089
+ },
6090
+ unbless(ptr_) {
6091
+ if (registry) {
6092
+ registry.unregister(ptr_);
6093
+ }
6094
+ },
6095
+ pointer(obj_) {
6096
+ if (obj_[destructorGuardSymbol] === undefined) {
6097
+ throw new UniffiInternalError.UnexpectedNullPointer;
6098
+ }
6099
+ return obj_[pointerLiteralSymbol];
6100
+ },
6101
+ clonePointer(obj_) {
6102
+ const pointer = this.pointer(obj_);
6103
+ return uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_clone_welcome(pointer, callStatus), FfiConverterString.lift);
6104
+ },
6105
+ freePointer(pointer) {
6106
+ uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_free_welcome(pointer, callStatus), FfiConverterString.lift);
6107
+ },
6108
+ isConcreteType(obj_) {
6109
+ return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "Welcome";
6110
+ }
6111
+ };
6112
+ })();
6113
+ var FfiConverterTypeWelcome = new FfiConverterObject(uniffiTypeWelcomeObjectFactory);
6114
+ var MlsGroupInfoEncryptionType;
6115
+ ((MlsGroupInfoEncryptionType2) => {
6116
+ MlsGroupInfoEncryptionType2[MlsGroupInfoEncryptionType2["Plaintext"] = 1] = "Plaintext";
6117
+ MlsGroupInfoEncryptionType2[MlsGroupInfoEncryptionType2["JweEncrypted"] = 2] = "JweEncrypted";
6118
+ })(MlsGroupInfoEncryptionType ||= {});
6119
+ var FfiConverterTypeMlsGroupInfoEncryptionType = (() => {
6120
+ const ordinalConverter = FfiConverterInt32;
6121
+
6122
+ class FFIConverter extends AbstractFfiConverterByteArray {
6123
+ read(from) {
6124
+ switch (ordinalConverter.read(from)) {
6125
+ case 1:
6126
+ return 1 /* Plaintext */;
6127
+ case 2:
6128
+ return 2 /* JweEncrypted */;
6129
+ default:
6130
+ throw new UniffiInternalError.UnexpectedEnumCase;
6131
+ }
6132
+ }
6133
+ write(value, into) {
6134
+ switch (value) {
6135
+ case 1 /* Plaintext */:
6136
+ return ordinalConverter.write(1, into);
6137
+ case 2 /* JweEncrypted */:
6138
+ return ordinalConverter.write(2, into);
6139
+ }
6140
+ }
6141
+ allocationSize(value) {
6142
+ return ordinalConverter.allocationSize(0);
6143
+ }
6144
+ }
6145
+ return new FFIConverter;
6146
+ })();
6147
+ var MlsRatchetTreeType;
6148
+ ((MlsRatchetTreeType2) => {
6149
+ MlsRatchetTreeType2[MlsRatchetTreeType2["Full"] = 1] = "Full";
6150
+ MlsRatchetTreeType2[MlsRatchetTreeType2["Delta"] = 2] = "Delta";
6151
+ MlsRatchetTreeType2[MlsRatchetTreeType2["ByRef"] = 3] = "ByRef";
6152
+ })(MlsRatchetTreeType ||= {});
6153
+ var FfiConverterTypeMlsRatchetTreeType = (() => {
6154
+ const ordinalConverter = FfiConverterInt32;
6155
+
6156
+ class FFIConverter extends AbstractFfiConverterByteArray {
6157
+ read(from) {
6158
+ switch (ordinalConverter.read(from)) {
6159
+ case 1:
6160
+ return 1 /* Full */;
6161
+ case 2:
6162
+ return 2 /* Delta */;
6163
+ case 3:
6164
+ return 3 /* ByRef */;
6278
6165
  default:
6279
6166
  throw new UniffiInternalError.UnexpectedEnumCase;
6280
6167
  }
6281
6168
  }
6282
- allocationSize(value) {
6283
- switch (value.tag) {
6284
- case "SessionNotFound" /* SessionNotFound */: {
6285
- return ordinalConverter.allocationSize(1);
6286
- }
6287
- case "DuplicateMessage" /* DuplicateMessage */: {
6288
- return ordinalConverter.allocationSize(2);
6289
- }
6290
- case "RemoteIdentityChanged" /* RemoteIdentityChanged */: {
6291
- return ordinalConverter.allocationSize(3);
6292
- }
6293
- case "Other" /* Other */: {
6294
- const inner = value.inner;
6295
- let size = ordinalConverter.allocationSize(4);
6296
- size += FfiConverterUInt16.allocationSize(inner.errorCode);
6297
- return size;
6298
- }
6299
- default:
6300
- throw new UniffiInternalError.UnexpectedEnumCase;
6169
+ write(value, into) {
6170
+ switch (value) {
6171
+ case 1 /* Full */:
6172
+ return ordinalConverter.write(1, into);
6173
+ case 2 /* Delta */:
6174
+ return ordinalConverter.write(2, into);
6175
+ case 3 /* ByRef */:
6176
+ return ordinalConverter.write(3, into);
6301
6177
  }
6302
6178
  }
6179
+ allocationSize(value) {
6180
+ return ordinalConverter.allocationSize(0);
6181
+ }
6303
6182
  }
6304
6183
  return new FFIConverter;
6305
6184
  })();
6306
- var CoreCryptoError_Tags;
6307
- ((CoreCryptoError_Tags2) => {
6308
- CoreCryptoError_Tags2["Mls"] = "Mls";
6309
- CoreCryptoError_Tags2["Proteus"] = "Proteus";
6310
- CoreCryptoError_Tags2["E2ei"] = "E2ei";
6311
- CoreCryptoError_Tags2["TransactionFailed"] = "TransactionFailed";
6312
- CoreCryptoError_Tags2["Other"] = "Other";
6313
- })(CoreCryptoError_Tags ||= {});
6314
- var CoreCryptoError = (() => {
6185
+ var GroupInfoBundle = (() => {
6186
+ const defaults = () => ({});
6187
+ const create = (() => {
6188
+ return uniffiCreateRecord(defaults);
6189
+ })();
6190
+ return Object.freeze({
6191
+ create,
6192
+ new: create,
6193
+ defaults: () => Object.freeze(defaults())
6194
+ });
6195
+ })();
6196
+ var FfiConverterTypeGroupInfoBundle = (() => {
6315
6197
 
6316
- class Mls_ extends UniffiError {
6317
- [uniffiTypeNameSymbol] = "CoreCryptoError";
6318
- tag = "Mls" /* Mls */;
6319
- inner;
6320
- constructor(inner) {
6321
- super("CoreCryptoError", "Mls");
6322
- this.inner = Object.freeze(inner);
6323
- }
6324
- static new(inner) {
6325
- return new Mls_(inner);
6326
- }
6327
- static instanceOf(obj) {
6328
- return obj.tag === "Mls" /* Mls */;
6198
+ class FFIConverter extends AbstractFfiConverterByteArray {
6199
+ read(from) {
6200
+ return {
6201
+ encryptionType: FfiConverterTypeMlsGroupInfoEncryptionType.read(from),
6202
+ ratchetTreeType: FfiConverterTypeMlsRatchetTreeType.read(from),
6203
+ payload: FfiConverterUint8Array.read(from)
6204
+ };
6329
6205
  }
6330
- static hasInner(obj) {
6331
- return Mls_.instanceOf(obj);
6206
+ write(value, into) {
6207
+ FfiConverterTypeMlsGroupInfoEncryptionType.write(value.encryptionType, into);
6208
+ FfiConverterTypeMlsRatchetTreeType.write(value.ratchetTreeType, into);
6209
+ FfiConverterUint8Array.write(value.payload, into);
6332
6210
  }
6333
- static getInner(obj) {
6334
- return obj.inner;
6211
+ allocationSize(value) {
6212
+ return FfiConverterTypeMlsGroupInfoEncryptionType.allocationSize(value.encryptionType) + FfiConverterTypeMlsRatchetTreeType.allocationSize(value.ratchetTreeType) + FfiConverterUint8Array.allocationSize(value.payload);
6335
6213
  }
6336
6214
  }
6215
+ return new FFIConverter;
6216
+ })();
6217
+ var CommitBundle = (() => {
6218
+ const defaults = () => ({});
6219
+ const create = (() => {
6220
+ return uniffiCreateRecord(defaults);
6221
+ })();
6222
+ return Object.freeze({
6223
+ create,
6224
+ new: create,
6225
+ defaults: () => Object.freeze(defaults())
6226
+ });
6227
+ })();
6228
+ var FfiConverterTypeCommitBundle = (() => {
6337
6229
 
6338
- class Proteus_ extends UniffiError {
6339
- [uniffiTypeNameSymbol] = "CoreCryptoError";
6340
- tag = "Proteus" /* Proteus */;
6341
- inner;
6342
- constructor(inner) {
6343
- super("CoreCryptoError", "Proteus");
6344
- this.inner = Object.freeze(inner);
6345
- }
6346
- static new(inner) {
6347
- return new Proteus_(inner);
6348
- }
6349
- static instanceOf(obj) {
6350
- return obj.tag === "Proteus" /* Proteus */;
6230
+ class FFIConverter extends AbstractFfiConverterByteArray {
6231
+ read(from) {
6232
+ return {
6233
+ welcome: FfiConverterOptionalTypeWelcome.read(from),
6234
+ commit: FfiConverterUint8Array.read(from),
6235
+ groupInfo: FfiConverterTypeGroupInfoBundle.read(from),
6236
+ encryptedMessage: FfiConverterOptionalBytes.read(from)
6237
+ };
6351
6238
  }
6352
- static hasInner(obj) {
6353
- return Proteus_.instanceOf(obj);
6239
+ write(value, into) {
6240
+ FfiConverterOptionalTypeWelcome.write(value.welcome, into);
6241
+ FfiConverterUint8Array.write(value.commit, into);
6242
+ FfiConverterTypeGroupInfoBundle.write(value.groupInfo, into);
6243
+ FfiConverterOptionalBytes.write(value.encryptedMessage, into);
6354
6244
  }
6355
- static getInner(obj) {
6356
- return obj.inner;
6245
+ allocationSize(value) {
6246
+ return FfiConverterOptionalTypeWelcome.allocationSize(value.welcome) + FfiConverterUint8Array.allocationSize(value.commit) + FfiConverterTypeGroupInfoBundle.allocationSize(value.groupInfo) + FfiConverterOptionalBytes.allocationSize(value.encryptedMessage);
6357
6247
  }
6358
6248
  }
6249
+ return new FFIConverter;
6250
+ })();
6359
6251
 
6360
- class E2ei_ extends UniffiError {
6361
- [uniffiTypeNameSymbol] = "CoreCryptoError";
6362
- tag = "E2ei" /* E2ei */;
6363
- inner;
6364
- constructor(inner) {
6365
- super("CoreCryptoError", "E2ei");
6366
- this.inner = Object.freeze(inner);
6367
- }
6368
- static new(inner) {
6369
- return new E2ei_(inner);
6370
- }
6371
- static instanceOf(obj) {
6372
- return obj.tag === "E2ei" /* E2ei */;
6373
- }
6374
- static hasInner(obj) {
6375
- return E2ei_.instanceOf(obj);
6376
- }
6377
- static getInner(obj) {
6378
- return obj.inner;
6379
- }
6252
+ class ClientId extends UniffiAbstractObject {
6253
+ [uniffiTypeNameSymbol] = "ClientId";
6254
+ [destructorGuardSymbol];
6255
+ [pointerLiteralSymbol];
6256
+ constructor(userId, deviceId, domain) {
6257
+ super();
6258
+ const pointer = uniffiCaller.rustCall((callStatus) => {
6259
+ 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);
6260
+ }, FfiConverterString.lift.bind(FfiConverterString));
6261
+ this[pointerLiteralSymbol] = pointer;
6262
+ this[destructorGuardSymbol] = uniffiTypeClientIdObjectFactory.bless(pointer);
6380
6263
  }
6381
-
6382
- class TransactionFailed_ extends UniffiError {
6383
- [uniffiTypeNameSymbol] = "CoreCryptoError";
6384
- tag = "TransactionFailed" /* TransactionFailed */;
6385
- inner;
6386
- constructor(inner) {
6387
- super("CoreCryptoError", "TransactionFailed");
6388
- this.inner = Object.freeze(inner);
6389
- }
6390
- static new(inner) {
6391
- return new TransactionFailed_(inner);
6392
- }
6393
- static instanceOf(obj) {
6394
- return obj.tag === "TransactionFailed" /* TransactionFailed */;
6395
- }
6396
- static hasInner(obj) {
6397
- return TransactionFailed_.instanceOf(obj);
6398
- }
6399
- static getInner(obj) {
6400
- return obj.inner;
6401
- }
6264
+ copyBytes() {
6265
+ return ((__rb) => {
6266
+ try {
6267
+ return FfiConverterUint8Array.lift(__rb);
6268
+ } finally {
6269
+ nativeModule().rustbuffer_free(__rb);
6270
+ }
6271
+ })(uniffiCaller.rustCall((callStatus) => {
6272
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_clientid_copy_bytes(uniffiTypeClientIdObjectFactory.clonePointer(this), callStatus);
6273
+ }, FfiConverterString.lift.bind(FfiConverterString)));
6402
6274
  }
6403
-
6404
- class Other_ extends UniffiError {
6405
- [uniffiTypeNameSymbol] = "CoreCryptoError";
6406
- tag = "Other" /* Other */;
6407
- inner;
6408
- constructor(inner) {
6409
- super("CoreCryptoError", "Other");
6410
- this.inner = Object.freeze(inner);
6411
- }
6412
- static new(inner) {
6413
- return new Other_(inner);
6414
- }
6415
- static instanceOf(obj) {
6416
- return obj.tag === "Other" /* Other */;
6417
- }
6418
- static hasInner(obj) {
6419
- return Other_.instanceOf(obj);
6275
+ deserialize() {
6276
+ return ((__rb) => {
6277
+ try {
6278
+ return FfiConverterTypeDeserializedClientId.lift(__rb);
6279
+ } finally {
6280
+ nativeModule().rustbuffer_free(__rb);
6281
+ }
6282
+ })(uniffiCaller.rustCall((callStatus) => {
6283
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_clientid_deserialize(uniffiTypeClientIdObjectFactory.clonePointer(this), callStatus);
6284
+ }, FfiConverterString.lift.bind(FfiConverterString)));
6285
+ }
6286
+ equals(other) {
6287
+ return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
6288
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_eq_eq(uniffiTypeClientIdObjectFactory.clonePointer(this), FfiConverterTypeClientId.lower(other, nativeModule().rustbuffer_alloc), callStatus);
6289
+ }, FfiConverterString.lift.bind(FfiConverterString)));
6290
+ }
6291
+ hashCode() {
6292
+ return FfiConverterUInt64.lift(uniffiCaller.rustCall((callStatus) => {
6293
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_hash(uniffiTypeClientIdObjectFactory.clonePointer(this), callStatus);
6294
+ }, FfiConverterString.lift.bind(FfiConverterString)));
6295
+ }
6296
+ uniffiDestroy() {
6297
+ const ptr = this[destructorGuardSymbol];
6298
+ if (ptr !== undefined) {
6299
+ const pointer = uniffiTypeClientIdObjectFactory.pointer(this);
6300
+ uniffiTypeClientIdObjectFactory.freePointer(pointer);
6301
+ uniffiTypeClientIdObjectFactory.unbless(ptr);
6302
+ delete this[destructorGuardSymbol];
6420
6303
  }
6421
- static getInner(obj) {
6422
- return obj.inner;
6304
+ }
6305
+ static instanceOf(obj_) {
6306
+ return uniffiTypeClientIdObjectFactory.isConcreteType(obj_);
6307
+ }
6308
+ }
6309
+ var uniffiTypeClientIdObjectFactory = (() => {
6310
+ const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
6311
+ uniffiTypeClientIdObjectFactory.freePointer(heldValue);
6312
+ }) : null;
6313
+ return {
6314
+ create(pointer) {
6315
+ const instance = Object.create(ClientId.prototype);
6316
+ instance[pointerLiteralSymbol] = pointer;
6317
+ instance[destructorGuardSymbol] = this.bless(pointer);
6318
+ instance[uniffiTypeNameSymbol] = "ClientId";
6319
+ return instance;
6320
+ },
6321
+ bless(p) {
6322
+ const ptr = {
6323
+ p,
6324
+ markDestroyed: () => {
6325
+ return;
6326
+ }
6327
+ };
6328
+ if (registry) {
6329
+ registry.register(ptr, p, ptr);
6330
+ }
6331
+ return ptr;
6332
+ },
6333
+ unbless(ptr_) {
6334
+ if (registry) {
6335
+ registry.unregister(ptr_);
6336
+ }
6337
+ },
6338
+ pointer(obj_) {
6339
+ if (obj_[destructorGuardSymbol] === undefined) {
6340
+ throw new UniffiInternalError.UnexpectedNullPointer;
6341
+ }
6342
+ return obj_[pointerLiteralSymbol];
6343
+ },
6344
+ clonePointer(obj_) {
6345
+ const pointer = this.pointer(obj_);
6346
+ return uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_clone_clientid(pointer, callStatus), FfiConverterString.lift);
6347
+ },
6348
+ freePointer(pointer) {
6349
+ uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_free_clientid(pointer, callStatus), FfiConverterString.lift);
6350
+ },
6351
+ isConcreteType(obj_) {
6352
+ return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "ClientId";
6423
6353
  }
6424
- }
6425
- function instanceOf(obj) {
6426
- return obj[uniffiTypeNameSymbol] === "CoreCryptoError";
6427
- }
6428
- return Object.freeze({
6429
- instanceOf,
6430
- Mls: Mls_,
6431
- Proteus: Proteus_,
6432
- E2ei: E2ei_,
6433
- TransactionFailed: TransactionFailed_,
6434
- Other: Other_
6435
- });
6354
+ };
6436
6355
  })();
6437
- var FfiConverterTypeCoreCryptoError = (() => {
6438
- const ordinalConverter = FfiConverterInt32;
6356
+ var FfiConverterTypeClientId = new FfiConverterObject(uniffiTypeClientIdObjectFactory);
6439
6357
 
6440
- class FFIConverter extends AbstractFfiConverterByteArray {
6441
- read(from) {
6442
- switch (ordinalConverter.read(from)) {
6443
- case 1:
6444
- return new CoreCryptoError.Mls({
6445
- mlsError: FfiConverterTypeMlsError.read(from)
6446
- });
6447
- case 2:
6448
- return new CoreCryptoError.Proteus({
6449
- exception: FfiConverterTypeProteusError.read(from)
6450
- });
6451
- case 3:
6452
- return new CoreCryptoError.E2ei({
6453
- e2eiError: FfiConverterString.read(from)
6454
- });
6455
- case 4:
6456
- return new CoreCryptoError.TransactionFailed({
6457
- error: FfiConverterString.read(from)
6458
- });
6459
- case 5:
6460
- return new CoreCryptoError.Other({
6461
- msg: FfiConverterString.read(from)
6462
- });
6463
- default:
6464
- throw new UniffiInternalError.UnexpectedEnumCase;
6358
+ class Uuid extends UniffiAbstractObject {
6359
+ [uniffiTypeNameSymbol] = "Uuid";
6360
+ [destructorGuardSymbol];
6361
+ [pointerLiteralSymbol];
6362
+ constructor(uuid) {
6363
+ super();
6364
+ const pointer = uniffiCaller.rustCallWithError(FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError), (callStatus) => {
6365
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_constructor_uuid_new(FfiConverterString.lower(uuid, nativeModule().rustbuffer_alloc), callStatus);
6366
+ }, FfiConverterString.lift.bind(FfiConverterString));
6367
+ this[pointerLiteralSymbol] = pointer;
6368
+ this[destructorGuardSymbol] = uniffiTypeUuidObjectFactory.bless(pointer);
6369
+ }
6370
+ toString() {
6371
+ return ((__rb) => {
6372
+ try {
6373
+ return FfiConverterString.lift(__rb);
6374
+ } finally {
6375
+ nativeModule().rustbuffer_free(__rb);
6465
6376
  }
6377
+ })(uniffiCaller.rustCall((callStatus) => {
6378
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_display(uniffiTypeUuidObjectFactory.clonePointer(this), callStatus);
6379
+ }, FfiConverterString.lift.bind(FfiConverterString)));
6380
+ }
6381
+ equals(other) {
6382
+ return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
6383
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_eq(uniffiTypeUuidObjectFactory.clonePointer(this), FfiConverterTypeUuid.lower(other, nativeModule().rustbuffer_alloc), callStatus);
6384
+ }, FfiConverterString.lift.bind(FfiConverterString)));
6385
+ }
6386
+ hashCode() {
6387
+ return FfiConverterUInt64.lift(uniffiCaller.rustCall((callStatus) => {
6388
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_hash(uniffiTypeUuidObjectFactory.clonePointer(this), callStatus);
6389
+ }, FfiConverterString.lift.bind(FfiConverterString)));
6390
+ }
6391
+ uniffiDestroy() {
6392
+ const ptr = this[destructorGuardSymbol];
6393
+ if (ptr !== undefined) {
6394
+ const pointer = uniffiTypeUuidObjectFactory.pointer(this);
6395
+ uniffiTypeUuidObjectFactory.freePointer(pointer);
6396
+ uniffiTypeUuidObjectFactory.unbless(ptr);
6397
+ delete this[destructorGuardSymbol];
6466
6398
  }
6467
- write(value, into) {
6468
- switch (value.tag) {
6469
- case "Mls" /* Mls */: {
6470
- ordinalConverter.write(1, into);
6471
- const inner = value.inner;
6472
- FfiConverterTypeMlsError.write(inner.mlsError, into);
6473
- return;
6474
- }
6475
- case "Proteus" /* Proteus */: {
6476
- ordinalConverter.write(2, into);
6477
- const inner = value.inner;
6478
- FfiConverterTypeProteusError.write(inner.exception, into);
6479
- return;
6480
- }
6481
- case "E2ei" /* E2ei */: {
6482
- ordinalConverter.write(3, into);
6483
- const inner = value.inner;
6484
- FfiConverterString.write(inner.e2eiError, into);
6485
- return;
6486
- }
6487
- case "TransactionFailed" /* TransactionFailed */: {
6488
- ordinalConverter.write(4, into);
6489
- const inner = value.inner;
6490
- FfiConverterString.write(inner.error, into);
6491
- return;
6492
- }
6493
- case "Other" /* Other */: {
6494
- ordinalConverter.write(5, into);
6495
- const inner = value.inner;
6496
- FfiConverterString.write(inner.msg, into);
6399
+ }
6400
+ static instanceOf(obj_) {
6401
+ return uniffiTypeUuidObjectFactory.isConcreteType(obj_);
6402
+ }
6403
+ }
6404
+ var uniffiTypeUuidObjectFactory = (() => {
6405
+ const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
6406
+ uniffiTypeUuidObjectFactory.freePointer(heldValue);
6407
+ }) : null;
6408
+ return {
6409
+ create(pointer) {
6410
+ const instance = Object.create(Uuid.prototype);
6411
+ instance[pointerLiteralSymbol] = pointer;
6412
+ instance[destructorGuardSymbol] = this.bless(pointer);
6413
+ instance[uniffiTypeNameSymbol] = "Uuid";
6414
+ return instance;
6415
+ },
6416
+ bless(p) {
6417
+ const ptr = {
6418
+ p,
6419
+ markDestroyed: () => {
6497
6420
  return;
6498
6421
  }
6499
- default:
6500
- throw new UniffiInternalError.UnexpectedEnumCase;
6422
+ };
6423
+ if (registry) {
6424
+ registry.register(ptr, p, ptr);
6501
6425
  }
6502
- }
6503
- allocationSize(value) {
6504
- switch (value.tag) {
6505
- case "Mls" /* Mls */: {
6506
- const inner = value.inner;
6507
- let size = ordinalConverter.allocationSize(1);
6508
- size += FfiConverterTypeMlsError.allocationSize(inner.mlsError);
6509
- return size;
6510
- }
6511
- case "Proteus" /* Proteus */: {
6512
- const inner = value.inner;
6513
- let size = ordinalConverter.allocationSize(2);
6514
- size += FfiConverterTypeProteusError.allocationSize(inner.exception);
6515
- return size;
6516
- }
6517
- case "E2ei" /* E2ei */: {
6518
- const inner = value.inner;
6519
- let size = ordinalConverter.allocationSize(3);
6520
- size += FfiConverterString.allocationSize(inner.e2eiError);
6521
- return size;
6522
- }
6523
- case "TransactionFailed" /* TransactionFailed */: {
6524
- const inner = value.inner;
6525
- let size = ordinalConverter.allocationSize(4);
6526
- size += FfiConverterString.allocationSize(inner.error);
6527
- return size;
6528
- }
6529
- case "Other" /* Other */: {
6530
- const inner = value.inner;
6531
- let size = ordinalConverter.allocationSize(5);
6532
- size += FfiConverterString.allocationSize(inner.msg);
6533
- return size;
6534
- }
6535
- default:
6536
- throw new UniffiInternalError.UnexpectedEnumCase;
6426
+ return ptr;
6427
+ },
6428
+ unbless(ptr_) {
6429
+ if (registry) {
6430
+ registry.unregister(ptr_);
6431
+ }
6432
+ },
6433
+ pointer(obj_) {
6434
+ if (obj_[destructorGuardSymbol] === undefined) {
6435
+ throw new UniffiInternalError.UnexpectedNullPointer;
6537
6436
  }
6437
+ return obj_[pointerLiteralSymbol];
6438
+ },
6439
+ clonePointer(obj_) {
6440
+ const pointer = this.pointer(obj_);
6441
+ return uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_clone_uuid(pointer, callStatus), FfiConverterString.lift);
6442
+ },
6443
+ freePointer(pointer) {
6444
+ uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_free_uuid(pointer, callStatus), FfiConverterString.lift);
6445
+ },
6446
+ isConcreteType(obj_) {
6447
+ return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "Uuid";
6538
6448
  }
6539
- }
6540
- return new FFIConverter;
6449
+ };
6541
6450
  })();
6451
+ var FfiConverterTypeUuid = new FfiConverterObject(uniffiTypeUuidObjectFactory);
6542
6452
 
6543
- class Welcome extends UniffiAbstractObject {
6544
- [uniffiTypeNameSymbol] = "Welcome";
6453
+ class DeviceId extends UniffiAbstractObject {
6454
+ [uniffiTypeNameSymbol] = "DeviceId";
6545
6455
  [destructorGuardSymbol];
6546
6456
  [pointerLiteralSymbol];
6547
- constructor(bytes) {
6457
+ constructor(id) {
6548
6458
  super();
6549
- const pointer = uniffiCaller.rustCallWithError(FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError), (callStatus) => {
6550
- return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_constructor_welcome_new(FfiConverterUint8Array.lower(bytes, nativeModule().rustbuffer_alloc), callStatus);
6459
+ const pointer = uniffiCaller.rustCall((callStatus) => {
6460
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_constructor_deviceid_new(FfiConverterUInt64.lower(id, nativeModule().rustbuffer_alloc), callStatus);
6551
6461
  }, FfiConverterString.lift.bind(FfiConverterString));
6552
6462
  this[pointerLiteralSymbol] = pointer;
6553
- this[destructorGuardSymbol] = uniffiTypeWelcomeObjectFactory.bless(pointer);
6463
+ this[destructorGuardSymbol] = uniffiTypeDeviceIdObjectFactory.bless(pointer);
6554
6464
  }
6555
- serialize() {
6465
+ static fromHexString(hexString) {
6466
+ return FfiConverterTypeDeviceId.lift(uniffiCaller.rustCallWithError(FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError), (callStatus) => {
6467
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_constructor_deviceid_from_hex_string(FfiConverterString.lower(hexString, nativeModule().rustbuffer_alloc), callStatus);
6468
+ }, FfiConverterString.lift.bind(FfiConverterString)));
6469
+ }
6470
+ toHexString() {
6556
6471
  return ((__rb) => {
6557
6472
  try {
6558
- return FfiConverterUint8Array.lift(__rb);
6473
+ return FfiConverterString.lift(__rb);
6559
6474
  } finally {
6560
6475
  nativeModule().rustbuffer_free(__rb);
6561
6476
  }
6562
- })(uniffiCaller.rustCallWithError(FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError), (callStatus) => {
6563
- return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_welcome_serialize(uniffiTypeWelcomeObjectFactory.clonePointer(this), callStatus);
6477
+ })(uniffiCaller.rustCall((callStatus) => {
6478
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_hex_string(uniffiTypeDeviceIdObjectFactory.clonePointer(this), callStatus);
6479
+ }, FfiConverterString.lift.bind(FfiConverterString)));
6480
+ }
6481
+ toU64() {
6482
+ return FfiConverterUInt64.lift(uniffiCaller.rustCall((callStatus) => {
6483
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_u64(uniffiTypeDeviceIdObjectFactory.clonePointer(this), callStatus);
6484
+ }, FfiConverterString.lift.bind(FfiConverterString)));
6485
+ }
6486
+ equals(other) {
6487
+ return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
6488
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_eq(uniffiTypeDeviceIdObjectFactory.clonePointer(this), FfiConverterTypeDeviceId.lower(other, nativeModule().rustbuffer_alloc), callStatus);
6489
+ }, FfiConverterString.lift.bind(FfiConverterString)));
6490
+ }
6491
+ hashCode() {
6492
+ return FfiConverterUInt64.lift(uniffiCaller.rustCall((callStatus) => {
6493
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_hash(uniffiTypeDeviceIdObjectFactory.clonePointer(this), callStatus);
6564
6494
  }, FfiConverterString.lift.bind(FfiConverterString)));
6565
6495
  }
6566
6496
  uniffiDestroy() {
6567
6497
  const ptr = this[destructorGuardSymbol];
6568
6498
  if (ptr !== undefined) {
6569
- const pointer = uniffiTypeWelcomeObjectFactory.pointer(this);
6570
- uniffiTypeWelcomeObjectFactory.freePointer(pointer);
6571
- uniffiTypeWelcomeObjectFactory.unbless(ptr);
6499
+ const pointer = uniffiTypeDeviceIdObjectFactory.pointer(this);
6500
+ uniffiTypeDeviceIdObjectFactory.freePointer(pointer);
6501
+ uniffiTypeDeviceIdObjectFactory.unbless(ptr);
6572
6502
  delete this[destructorGuardSymbol];
6573
6503
  }
6574
6504
  }
6575
6505
  static instanceOf(obj_) {
6576
- return uniffiTypeWelcomeObjectFactory.isConcreteType(obj_);
6506
+ return uniffiTypeDeviceIdObjectFactory.isConcreteType(obj_);
6577
6507
  }
6578
6508
  }
6579
- var uniffiTypeWelcomeObjectFactory = (() => {
6509
+ var uniffiTypeDeviceIdObjectFactory = (() => {
6580
6510
  const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
6581
- uniffiTypeWelcomeObjectFactory.freePointer(heldValue);
6511
+ uniffiTypeDeviceIdObjectFactory.freePointer(heldValue);
6582
6512
  }) : null;
6583
6513
  return {
6584
6514
  create(pointer) {
6585
- const instance = Object.create(Welcome.prototype);
6515
+ const instance = Object.create(DeviceId.prototype);
6586
6516
  instance[pointerLiteralSymbol] = pointer;
6587
6517
  instance[destructorGuardSymbol] = this.bless(pointer);
6588
- instance[uniffiTypeNameSymbol] = "Welcome";
6518
+ instance[uniffiTypeNameSymbol] = "DeviceId";
6589
6519
  return instance;
6590
6520
  },
6591
6521
  bless(p) {
@@ -6613,89 +6543,63 @@ var uniffiTypeWelcomeObjectFactory = (() => {
6613
6543
  },
6614
6544
  clonePointer(obj_) {
6615
6545
  const pointer = this.pointer(obj_);
6616
- return uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_clone_welcome(pointer, callStatus), FfiConverterString.lift);
6546
+ return uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_clone_deviceid(pointer, callStatus), FfiConverterString.lift);
6617
6547
  },
6618
6548
  freePointer(pointer) {
6619
- uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_free_welcome(pointer, callStatus), FfiConverterString.lift);
6549
+ uniffiCaller.rustCall((callStatus) => nativeModule().ubrn_uniffi_core_crypto_ffi_fn_free_deviceid(pointer, callStatus), FfiConverterString.lift);
6620
6550
  },
6621
6551
  isConcreteType(obj_) {
6622
- return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "Welcome";
6552
+ return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "DeviceId";
6623
6553
  }
6624
6554
  };
6625
6555
  })();
6626
- var FfiConverterTypeWelcome = new FfiConverterObject(uniffiTypeWelcomeObjectFactory);
6627
- var MlsGroupInfoEncryptionType;
6628
- ((MlsGroupInfoEncryptionType2) => {
6629
- MlsGroupInfoEncryptionType2[MlsGroupInfoEncryptionType2["Plaintext"] = 1] = "Plaintext";
6630
- MlsGroupInfoEncryptionType2[MlsGroupInfoEncryptionType2["JweEncrypted"] = 2] = "JweEncrypted";
6631
- })(MlsGroupInfoEncryptionType ||= {});
6632
- var FfiConverterTypeMlsGroupInfoEncryptionType = (() => {
6633
- const ordinalConverter = FfiConverterInt32;
6634
-
6635
- class FFIConverter extends AbstractFfiConverterByteArray {
6636
- read(from) {
6637
- switch (ordinalConverter.read(from)) {
6638
- case 1:
6639
- return 1 /* Plaintext */;
6640
- case 2:
6641
- return 2 /* JweEncrypted */;
6642
- default:
6643
- throw new UniffiInternalError.UnexpectedEnumCase;
6644
- }
6645
- }
6646
- write(value, into) {
6647
- switch (value) {
6648
- case 1 /* Plaintext */:
6649
- return ordinalConverter.write(1, into);
6650
- case 2 /* JweEncrypted */:
6651
- return ordinalConverter.write(2, into);
6652
- }
6653
- }
6654
- allocationSize(value) {
6655
- return ordinalConverter.allocationSize(0);
6556
+ var FfiConverterTypeDeviceId = new FfiConverterObject(uniffiTypeDeviceIdObjectFactory);
6557
+ var DeserializedClientId = (() => {
6558
+ const defaults = () => ({});
6559
+ const create = (() => {
6560
+ return uniffiCreateRecord(defaults);
6561
+ })();
6562
+ return Object.freeze({
6563
+ create,
6564
+ new: create,
6565
+ defaults: () => Object.freeze(defaults()),
6566
+ toString(self_) {
6567
+ return ((__rb) => {
6568
+ try {
6569
+ return FfiConverterString.lift(__rb);
6570
+ } finally {
6571
+ nativeModule().rustbuffer_free(__rb);
6572
+ }
6573
+ })(uniffiCaller.rustCall((callStatus) => {
6574
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_deserializedclientid_uniffi_trait_display(FfiConverterTypeDeserializedClientId.lower(self_, nativeModule().rustbuffer_alloc), callStatus);
6575
+ }, FfiConverterString.lift.bind(FfiConverterString)));
6656
6576
  }
6657
- }
6658
- return new FFIConverter;
6577
+ });
6659
6578
  })();
6660
- var MlsRatchetTreeType;
6661
- ((MlsRatchetTreeType2) => {
6662
- MlsRatchetTreeType2[MlsRatchetTreeType2["Full"] = 1] = "Full";
6663
- MlsRatchetTreeType2[MlsRatchetTreeType2["Delta"] = 2] = "Delta";
6664
- MlsRatchetTreeType2[MlsRatchetTreeType2["ByRef"] = 3] = "ByRef";
6665
- })(MlsRatchetTreeType ||= {});
6666
- var FfiConverterTypeMlsRatchetTreeType = (() => {
6667
- const ordinalConverter = FfiConverterInt32;
6579
+ var FfiConverterTypeDeserializedClientId = (() => {
6668
6580
 
6669
6581
  class FFIConverter extends AbstractFfiConverterByteArray {
6670
6582
  read(from) {
6671
- switch (ordinalConverter.read(from)) {
6672
- case 1:
6673
- return 1 /* Full */;
6674
- case 2:
6675
- return 2 /* Delta */;
6676
- case 3:
6677
- return 3 /* ByRef */;
6678
- default:
6679
- throw new UniffiInternalError.UnexpectedEnumCase;
6680
- }
6583
+ return {
6584
+ clientId: FfiConverterTypeClientId.read(from),
6585
+ userId: FfiConverterTypeUuid.read(from),
6586
+ deviceId: FfiConverterTypeDeviceId.read(from),
6587
+ domain: FfiConverterString.read(from)
6588
+ };
6681
6589
  }
6682
6590
  write(value, into) {
6683
- switch (value) {
6684
- case 1 /* Full */:
6685
- return ordinalConverter.write(1, into);
6686
- case 2 /* Delta */:
6687
- return ordinalConverter.write(2, into);
6688
- case 3 /* ByRef */:
6689
- return ordinalConverter.write(3, into);
6690
- }
6591
+ FfiConverterTypeClientId.write(value.clientId, into);
6592
+ FfiConverterTypeUuid.write(value.userId, into);
6593
+ FfiConverterTypeDeviceId.write(value.deviceId, into);
6594
+ FfiConverterString.write(value.domain, into);
6691
6595
  }
6692
6596
  allocationSize(value) {
6693
- return ordinalConverter.allocationSize(0);
6597
+ return FfiConverterTypeClientId.allocationSize(value.clientId) + FfiConverterTypeUuid.allocationSize(value.userId) + FfiConverterTypeDeviceId.allocationSize(value.deviceId) + FfiConverterString.allocationSize(value.domain);
6694
6598
  }
6695
6599
  }
6696
6600
  return new FFIConverter;
6697
6601
  })();
6698
- var GroupInfoBundle = (() => {
6602
+ var HistorySecret = (() => {
6699
6603
  const defaults = () => ({});
6700
6604
  const create = (() => {
6701
6605
  return uniffiCreateRecord(defaults);
@@ -6706,28 +6610,26 @@ var GroupInfoBundle = (() => {
6706
6610
  defaults: () => Object.freeze(defaults())
6707
6611
  });
6708
6612
  })();
6709
- var FfiConverterTypeGroupInfoBundle = (() => {
6613
+ var FfiConverterTypeHistorySecret = (() => {
6710
6614
 
6711
6615
  class FFIConverter extends AbstractFfiConverterByteArray {
6712
6616
  read(from) {
6713
6617
  return {
6714
- encryptionType: FfiConverterTypeMlsGroupInfoEncryptionType.read(from),
6715
- ratchetTreeType: FfiConverterTypeMlsRatchetTreeType.read(from),
6716
- payload: FfiConverterUint8Array.read(from)
6618
+ clientId: FfiConverterTypeClientId.read(from),
6619
+ data: FfiConverterUint8Array.read(from)
6717
6620
  };
6718
6621
  }
6719
6622
  write(value, into) {
6720
- FfiConverterTypeMlsGroupInfoEncryptionType.write(value.encryptionType, into);
6721
- FfiConverterTypeMlsRatchetTreeType.write(value.ratchetTreeType, into);
6722
- FfiConverterUint8Array.write(value.payload, into);
6623
+ FfiConverterTypeClientId.write(value.clientId, into);
6624
+ FfiConverterUint8Array.write(value.data, into);
6723
6625
  }
6724
6626
  allocationSize(value) {
6725
- return FfiConverterTypeMlsGroupInfoEncryptionType.allocationSize(value.encryptionType) + FfiConverterTypeMlsRatchetTreeType.allocationSize(value.ratchetTreeType) + FfiConverterUint8Array.allocationSize(value.payload);
6627
+ return FfiConverterTypeClientId.allocationSize(value.clientId) + FfiConverterUint8Array.allocationSize(value.data);
6726
6628
  }
6727
6629
  }
6728
6630
  return new FFIConverter;
6729
6631
  })();
6730
- var CommitBundle = (() => {
6632
+ var HttpHeader = (() => {
6731
6633
  const defaults = () => ({});
6732
6634
  const create = (() => {
6733
6635
  return uniffiCreateRecord(defaults);
@@ -6738,30 +6640,26 @@ var CommitBundle = (() => {
6738
6640
  defaults: () => Object.freeze(defaults())
6739
6641
  });
6740
6642
  })();
6741
- var FfiConverterTypeCommitBundle = (() => {
6643
+ var FfiConverterTypeHttpHeader = (() => {
6742
6644
 
6743
6645
  class FFIConverter extends AbstractFfiConverterByteArray {
6744
6646
  read(from) {
6745
6647
  return {
6746
- welcome: FfiConverterOptionalTypeWelcome.read(from),
6747
- commit: FfiConverterUint8Array.read(from),
6748
- groupInfo: FfiConverterTypeGroupInfoBundle.read(from),
6749
- encryptedMessage: FfiConverterOptionalBytes.read(from)
6648
+ name: FfiConverterString.read(from),
6649
+ value: FfiConverterString.read(from)
6750
6650
  };
6751
6651
  }
6752
6652
  write(value, into) {
6753
- FfiConverterOptionalTypeWelcome.write(value.welcome, into);
6754
- FfiConverterUint8Array.write(value.commit, into);
6755
- FfiConverterTypeGroupInfoBundle.write(value.groupInfo, into);
6756
- FfiConverterOptionalBytes.write(value.encryptedMessage, into);
6653
+ FfiConverterString.write(value.name, into);
6654
+ FfiConverterString.write(value.value, into);
6757
6655
  }
6758
6656
  allocationSize(value) {
6759
- return FfiConverterOptionalTypeWelcome.allocationSize(value.welcome) + FfiConverterUint8Array.allocationSize(value.commit) + FfiConverterTypeGroupInfoBundle.allocationSize(value.groupInfo) + FfiConverterOptionalBytes.allocationSize(value.encryptedMessage);
6657
+ return FfiConverterString.allocationSize(value.name) + FfiConverterString.allocationSize(value.value);
6760
6658
  }
6761
6659
  }
6762
6660
  return new FFIConverter;
6763
6661
  })();
6764
- var DecryptedMessage = (() => {
6662
+ var HttpResponse = (() => {
6765
6663
  const defaults = () => ({});
6766
6664
  const create = (() => {
6767
6665
  return uniffiCreateRecord(defaults);
@@ -6772,34 +6670,28 @@ var DecryptedMessage = (() => {
6772
6670
  defaults: () => Object.freeze(defaults())
6773
6671
  });
6774
6672
  })();
6775
- var FfiConverterTypeDecryptedMessage = (() => {
6673
+ var FfiConverterTypeHttpResponse = (() => {
6776
6674
 
6777
6675
  class FFIConverter extends AbstractFfiConverterByteArray {
6778
6676
  read(from) {
6779
6677
  return {
6780
- message: FfiConverterOptionalBytes.read(from),
6781
- isActive: FfiConverterBool.read(from),
6782
- commitDelay: FfiConverterOptionalUInt64.read(from),
6783
- senderClientId: FfiConverterOptionalTypeClientId.read(from),
6784
- identity: FfiConverterTypeWireIdentity.read(from),
6785
- bufferedMessages: FfiConverterOptionalSequenceTypeBufferedDecryptedMessage.read(from)
6678
+ status: FfiConverterUInt16.read(from),
6679
+ headers: FfiConverterSequenceTypeHttpHeader.read(from),
6680
+ body: FfiConverterUint8Array.read(from)
6786
6681
  };
6787
6682
  }
6788
6683
  write(value, into) {
6789
- FfiConverterOptionalBytes.write(value.message, into);
6790
- FfiConverterBool.write(value.isActive, into);
6791
- FfiConverterOptionalUInt64.write(value.commitDelay, into);
6792
- FfiConverterOptionalTypeClientId.write(value.senderClientId, into);
6793
- FfiConverterTypeWireIdentity.write(value.identity, into);
6794
- FfiConverterOptionalSequenceTypeBufferedDecryptedMessage.write(value.bufferedMessages, into);
6684
+ FfiConverterUInt16.write(value.status, into);
6685
+ FfiConverterSequenceTypeHttpHeader.write(value.headers, into);
6686
+ FfiConverterUint8Array.write(value.body, into);
6795
6687
  }
6796
6688
  allocationSize(value) {
6797
- return FfiConverterOptionalBytes.allocationSize(value.message) + FfiConverterBool.allocationSize(value.isActive) + FfiConverterOptionalUInt64.allocationSize(value.commitDelay) + FfiConverterOptionalTypeClientId.allocationSize(value.senderClientId) + FfiConverterTypeWireIdentity.allocationSize(value.identity) + FfiConverterOptionalSequenceTypeBufferedDecryptedMessage.allocationSize(value.bufferedMessages);
6689
+ return FfiConverterUInt16.allocationSize(value.status) + FfiConverterSequenceTypeHttpHeader.allocationSize(value.headers) + FfiConverterUint8Array.allocationSize(value.body);
6798
6690
  }
6799
6691
  }
6800
6692
  return new FFIConverter;
6801
6693
  })();
6802
- var HistorySecret = (() => {
6694
+ var ProteusAutoPrekeyBundle = (() => {
6803
6695
  const defaults = () => ({});
6804
6696
  const create = (() => {
6805
6697
  return uniffiCreateRecord(defaults);
@@ -6810,56 +6702,98 @@ var HistorySecret = (() => {
6810
6702
  defaults: () => Object.freeze(defaults())
6811
6703
  });
6812
6704
  })();
6813
- var FfiConverterTypeHistorySecret = (() => {
6705
+ var FfiConverterTypeProteusAutoPrekeyBundle = (() => {
6814
6706
 
6815
6707
  class FFIConverter extends AbstractFfiConverterByteArray {
6816
6708
  read(from) {
6817
6709
  return {
6818
- clientId: FfiConverterTypeClientId.read(from),
6819
- data: FfiConverterUint8Array.read(from)
6710
+ id: FfiConverterUInt16.read(from),
6711
+ pkb: FfiConverterUint8Array.read(from)
6820
6712
  };
6821
6713
  }
6822
6714
  write(value, into) {
6823
- FfiConverterTypeClientId.write(value.clientId, into);
6824
- FfiConverterUint8Array.write(value.data, into);
6715
+ FfiConverterUInt16.write(value.id, into);
6716
+ FfiConverterUint8Array.write(value.pkb, into);
6825
6717
  }
6826
6718
  allocationSize(value) {
6827
- return FfiConverterTypeClientId.allocationSize(value.clientId) + FfiConverterUint8Array.allocationSize(value.data);
6719
+ return FfiConverterUInt16.allocationSize(value.id) + FfiConverterUint8Array.allocationSize(value.pkb);
6828
6720
  }
6829
6721
  }
6830
6722
  return new FFIConverter;
6831
6723
  })();
6832
- var HttpHeader = (() => {
6833
- const defaults = () => ({});
6834
- const create = (() => {
6835
- return uniffiCreateRecord(defaults);
6836
- })();
6837
- return Object.freeze({
6838
- create,
6839
- new: create,
6840
- defaults: () => Object.freeze(defaults())
6841
- });
6724
+ var DeviceStatus;
6725
+ ((DeviceStatus2) => {
6726
+ DeviceStatus2[DeviceStatus2["Valid"] = 1] = "Valid";
6727
+ DeviceStatus2[DeviceStatus2["Expired"] = 2] = "Expired";
6728
+ DeviceStatus2[DeviceStatus2["Revoked"] = 3] = "Revoked";
6729
+ })(DeviceStatus ||= {});
6730
+ var FfiConverterTypeDeviceStatus = (() => {
6731
+ const ordinalConverter = FfiConverterInt32;
6732
+
6733
+ class FFIConverter extends AbstractFfiConverterByteArray {
6734
+ read(from) {
6735
+ switch (ordinalConverter.read(from)) {
6736
+ case 1:
6737
+ return 1 /* Valid */;
6738
+ case 2:
6739
+ return 2 /* Expired */;
6740
+ case 3:
6741
+ return 3 /* Revoked */;
6742
+ default:
6743
+ throw new UniffiInternalError.UnexpectedEnumCase;
6744
+ }
6745
+ }
6746
+ write(value, into) {
6747
+ switch (value) {
6748
+ case 1 /* Valid */:
6749
+ return ordinalConverter.write(1, into);
6750
+ case 2 /* Expired */:
6751
+ return ordinalConverter.write(2, into);
6752
+ case 3 /* Revoked */:
6753
+ return ordinalConverter.write(3, into);
6754
+ }
6755
+ }
6756
+ allocationSize(value) {
6757
+ return ordinalConverter.allocationSize(0);
6758
+ }
6759
+ }
6760
+ return new FFIConverter;
6842
6761
  })();
6843
- var FfiConverterTypeHttpHeader = (() => {
6762
+ var CredentialType;
6763
+ ((CredentialType2) => {
6764
+ CredentialType2[CredentialType2["Basic"] = 1] = "Basic";
6765
+ CredentialType2[CredentialType2["X509"] = 2] = "X509";
6766
+ })(CredentialType ||= {});
6767
+ var FfiConverterTypeCredentialType = (() => {
6768
+ const ordinalConverter = FfiConverterInt32;
6844
6769
 
6845
6770
  class FFIConverter extends AbstractFfiConverterByteArray {
6846
6771
  read(from) {
6847
- return {
6848
- name: FfiConverterString.read(from),
6849
- value: FfiConverterString.read(from)
6850
- };
6772
+ switch (ordinalConverter.read(from)) {
6773
+ case 1:
6774
+ return 1 /* Basic */;
6775
+ case 2:
6776
+ return 2 /* X509 */;
6777
+ default:
6778
+ throw new UniffiInternalError.UnexpectedEnumCase;
6779
+ }
6851
6780
  }
6852
6781
  write(value, into) {
6853
- FfiConverterString.write(value.name, into);
6854
- FfiConverterString.write(value.value, into);
6782
+ switch (value) {
6783
+ case 1 /* Basic */:
6784
+ return ordinalConverter.write(1, into);
6785
+ case 2 /* X509 */:
6786
+ return ordinalConverter.write(2, into);
6787
+ }
6855
6788
  }
6856
6789
  allocationSize(value) {
6857
- return FfiConverterString.allocationSize(value.name) + FfiConverterString.allocationSize(value.value);
6790
+ return ordinalConverter.allocationSize(0);
6858
6791
  }
6859
6792
  }
6860
6793
  return new FFIConverter;
6861
6794
  })();
6862
- var HttpResponse = (() => {
6795
+ var FfiConverterTypeTimestamp = FfiConverterTimestamp;
6796
+ var X509Identity = (() => {
6863
6797
  const defaults = () => ({});
6864
6798
  const create = (() => {
6865
6799
  return uniffiCreateRecord(defaults);
@@ -6870,28 +6804,36 @@ var HttpResponse = (() => {
6870
6804
  defaults: () => Object.freeze(defaults())
6871
6805
  });
6872
6806
  })();
6873
- var FfiConverterTypeHttpResponse = (() => {
6807
+ var FfiConverterTypeX509Identity = (() => {
6874
6808
 
6875
6809
  class FFIConverter extends AbstractFfiConverterByteArray {
6876
6810
  read(from) {
6877
6811
  return {
6878
- status: FfiConverterUInt16.read(from),
6879
- headers: FfiConverterSequenceTypeHttpHeader.read(from),
6880
- body: FfiConverterUint8Array.read(from)
6812
+ handle: FfiConverterString.read(from),
6813
+ displayName: FfiConverterString.read(from),
6814
+ domain: FfiConverterString.read(from),
6815
+ certificate: FfiConverterString.read(from),
6816
+ serialNumber: FfiConverterString.read(from),
6817
+ notBefore: FfiConverterTypeTimestamp.read(from),
6818
+ notAfter: FfiConverterTypeTimestamp.read(from)
6881
6819
  };
6882
6820
  }
6883
6821
  write(value, into) {
6884
- FfiConverterUInt16.write(value.status, into);
6885
- FfiConverterSequenceTypeHttpHeader.write(value.headers, into);
6886
- FfiConverterUint8Array.write(value.body, into);
6822
+ FfiConverterString.write(value.handle, into);
6823
+ FfiConverterString.write(value.displayName, into);
6824
+ FfiConverterString.write(value.domain, into);
6825
+ FfiConverterString.write(value.certificate, into);
6826
+ FfiConverterString.write(value.serialNumber, into);
6827
+ FfiConverterTypeTimestamp.write(value.notBefore, into);
6828
+ FfiConverterTypeTimestamp.write(value.notAfter, into);
6887
6829
  }
6888
6830
  allocationSize(value) {
6889
- return FfiConverterUInt16.allocationSize(value.status) + FfiConverterSequenceTypeHttpHeader.allocationSize(value.headers) + FfiConverterUint8Array.allocationSize(value.body);
6831
+ return FfiConverterString.allocationSize(value.handle) + FfiConverterString.allocationSize(value.displayName) + FfiConverterString.allocationSize(value.domain) + FfiConverterString.allocationSize(value.certificate) + FfiConverterString.allocationSize(value.serialNumber) + FfiConverterTypeTimestamp.allocationSize(value.notBefore) + FfiConverterTypeTimestamp.allocationSize(value.notAfter);
6890
6832
  }
6891
6833
  }
6892
6834
  return new FFIConverter;
6893
6835
  })();
6894
- var ProteusAutoPrekeyBundle = (() => {
6836
+ var WireIdentity = (() => {
6895
6837
  const defaults = () => ({});
6896
6838
  const create = (() => {
6897
6839
  return uniffiCreateRecord(defaults);
@@ -6902,21 +6844,27 @@ var ProteusAutoPrekeyBundle = (() => {
6902
6844
  defaults: () => Object.freeze(defaults())
6903
6845
  });
6904
6846
  })();
6905
- var FfiConverterTypeProteusAutoPrekeyBundle = (() => {
6847
+ var FfiConverterTypeWireIdentity = (() => {
6906
6848
 
6907
6849
  class FFIConverter extends AbstractFfiConverterByteArray {
6908
6850
  read(from) {
6909
6851
  return {
6910
- id: FfiConverterUInt16.read(from),
6911
- pkb: FfiConverterUint8Array.read(from)
6852
+ clientId: FfiConverterOptionalTypeClientId.read(from),
6853
+ status: FfiConverterTypeDeviceStatus.read(from),
6854
+ thumbprint: FfiConverterString.read(from),
6855
+ credentialType: FfiConverterTypeCredentialType.read(from),
6856
+ x509Identity: FfiConverterOptionalTypeX509Identity.read(from)
6912
6857
  };
6913
6858
  }
6914
6859
  write(value, into) {
6915
- FfiConverterUInt16.write(value.id, into);
6916
- FfiConverterUint8Array.write(value.pkb, into);
6860
+ FfiConverterOptionalTypeClientId.write(value.clientId, into);
6861
+ FfiConverterTypeDeviceStatus.write(value.status, into);
6862
+ FfiConverterString.write(value.thumbprint, into);
6863
+ FfiConverterTypeCredentialType.write(value.credentialType, into);
6864
+ FfiConverterOptionalTypeX509Identity.write(value.x509Identity, into);
6917
6865
  }
6918
6866
  allocationSize(value) {
6919
- return FfiConverterUInt16.allocationSize(value.id) + FfiConverterUint8Array.allocationSize(value.pkb);
6867
+ return FfiConverterOptionalTypeClientId.allocationSize(value.clientId) + FfiConverterTypeDeviceStatus.allocationSize(value.status) + FfiConverterString.allocationSize(value.thumbprint) + FfiConverterTypeCredentialType.allocationSize(value.credentialType) + FfiConverterOptionalTypeX509Identity.allocationSize(value.x509Identity);
6920
6868
  }
6921
6869
  }
6922
6870
  return new FFIConverter;
@@ -7021,6 +6969,139 @@ var FfiConverterTypeX509CredentialAcquisitionConfiguration = (() => {
7021
6969
  }
7022
6970
  return new FFIConverter;
7023
6971
  })();
6972
+ var BufferedDecryptedMessage = (() => {
6973
+ class Text_ extends UniffiEnum {
6974
+ [uniffiTypeNameSymbol] = "BufferedDecryptedMessage";
6975
+ tag = "Text" /* Text */;
6976
+ inner;
6977
+ constructor(inner) {
6978
+ super("BufferedDecryptedMessage", "Text");
6979
+ this.inner = Object.freeze(inner);
6980
+ }
6981
+ static new(inner) {
6982
+ return new Text_(inner);
6983
+ }
6984
+ static instanceOf(obj) {
6985
+ return obj.tag === "Text" /* Text */;
6986
+ }
6987
+ }
6988
+
6989
+ class Commit_ extends UniffiEnum {
6990
+ [uniffiTypeNameSymbol] = "BufferedDecryptedMessage";
6991
+ tag = "Commit" /* Commit */;
6992
+ inner;
6993
+ constructor(inner) {
6994
+ super("BufferedDecryptedMessage", "Commit");
6995
+ this.inner = Object.freeze(inner);
6996
+ }
6997
+ static new(inner) {
6998
+ return new Commit_(inner);
6999
+ }
7000
+ static instanceOf(obj) {
7001
+ return obj.tag === "Commit" /* Commit */;
7002
+ }
7003
+ }
7004
+
7005
+ class Proposal_ extends UniffiEnum {
7006
+ [uniffiTypeNameSymbol] = "BufferedDecryptedMessage";
7007
+ tag = "Proposal" /* Proposal */;
7008
+ inner;
7009
+ constructor(inner) {
7010
+ super("BufferedDecryptedMessage", "Proposal");
7011
+ this.inner = Object.freeze(inner);
7012
+ }
7013
+ static new(inner) {
7014
+ return new Proposal_(inner);
7015
+ }
7016
+ static instanceOf(obj) {
7017
+ return obj.tag === "Proposal" /* Proposal */;
7018
+ }
7019
+ }
7020
+ function instanceOf(obj) {
7021
+ return obj[uniffiTypeNameSymbol] === "BufferedDecryptedMessage";
7022
+ }
7023
+ return Object.freeze({
7024
+ instanceOf,
7025
+ Text: Text_,
7026
+ Commit: Commit_,
7027
+ Proposal: Proposal_
7028
+ });
7029
+ })();
7030
+ var FfiConverterTypeBufferedDecryptedMessage = (() => {
7031
+ const ordinalConverter = FfiConverterInt32;
7032
+
7033
+ class FFIConverter extends AbstractFfiConverterByteArray {
7034
+ read(from) {
7035
+ switch (ordinalConverter.read(from)) {
7036
+ case 1:
7037
+ return new BufferedDecryptedMessage.Text({ plaintext: FfiConverterUint8Array.read(from), senderClientId: FfiConverterTypeClientId.read(from), identity: FfiConverterTypeWireIdentity.read(from) });
7038
+ case 2:
7039
+ return new BufferedDecryptedMessage.Commit({ isActive: FfiConverterBool.read(from), identity: FfiConverterTypeWireIdentity.read(from) });
7040
+ case 3:
7041
+ return new BufferedDecryptedMessage.Proposal({ delay: FfiConverterOptionalUInt64.read(from), identity: FfiConverterTypeWireIdentity.read(from) });
7042
+ default:
7043
+ throw new UniffiInternalError.UnexpectedEnumCase;
7044
+ }
7045
+ }
7046
+ write(value, into) {
7047
+ switch (value.tag) {
7048
+ case "Text" /* Text */: {
7049
+ ordinalConverter.write(1, into);
7050
+ const inner = value.inner;
7051
+ FfiConverterUint8Array.write(inner.plaintext, into);
7052
+ FfiConverterTypeClientId.write(inner.senderClientId, into);
7053
+ FfiConverterTypeWireIdentity.write(inner.identity, into);
7054
+ return;
7055
+ }
7056
+ case "Commit" /* Commit */: {
7057
+ ordinalConverter.write(2, into);
7058
+ const inner = value.inner;
7059
+ FfiConverterBool.write(inner.isActive, into);
7060
+ FfiConverterTypeWireIdentity.write(inner.identity, into);
7061
+ return;
7062
+ }
7063
+ case "Proposal" /* Proposal */: {
7064
+ ordinalConverter.write(3, into);
7065
+ const inner = value.inner;
7066
+ FfiConverterOptionalUInt64.write(inner.delay, into);
7067
+ FfiConverterTypeWireIdentity.write(inner.identity, into);
7068
+ return;
7069
+ }
7070
+ default:
7071
+ throw new UniffiInternalError.UnexpectedEnumCase;
7072
+ }
7073
+ }
7074
+ allocationSize(value) {
7075
+ switch (value.tag) {
7076
+ case "Text" /* Text */: {
7077
+ const inner = value.inner;
7078
+ let size = ordinalConverter.allocationSize(1);
7079
+ size += FfiConverterUint8Array.allocationSize(inner.plaintext);
7080
+ size += FfiConverterTypeClientId.allocationSize(inner.senderClientId);
7081
+ size += FfiConverterTypeWireIdentity.allocationSize(inner.identity);
7082
+ return size;
7083
+ }
7084
+ case "Commit" /* Commit */: {
7085
+ const inner = value.inner;
7086
+ let size = ordinalConverter.allocationSize(2);
7087
+ size += FfiConverterBool.allocationSize(inner.isActive);
7088
+ size += FfiConverterTypeWireIdentity.allocationSize(inner.identity);
7089
+ return size;
7090
+ }
7091
+ case "Proposal" /* Proposal */: {
7092
+ const inner = value.inner;
7093
+ let size = ordinalConverter.allocationSize(3);
7094
+ size += FfiConverterOptionalUInt64.allocationSize(inner.delay);
7095
+ size += FfiConverterTypeWireIdentity.allocationSize(inner.identity);
7096
+ return size;
7097
+ }
7098
+ default:
7099
+ throw new UniffiInternalError.UnexpectedEnumCase;
7100
+ }
7101
+ }
7102
+ }
7103
+ return new FFIConverter;
7104
+ })();
7024
7105
  var CoreCryptoLogLevel;
7025
7106
  ((CoreCryptoLogLevel2) => {
7026
7107
  CoreCryptoLogLevel2[CoreCryptoLogLevel2["Off"] = 1] = "Off";
@@ -7074,6 +7155,141 @@ var FfiConverterTypeCoreCryptoLogLevel = (() => {
7074
7155
  }
7075
7156
  return new FFIConverter;
7076
7157
  })();
7158
+ var DecryptedMessage = (() => {
7159
+ class Text_ extends UniffiEnum {
7160
+ [uniffiTypeNameSymbol] = "DecryptedMessage";
7161
+ tag = "Text" /* Text */;
7162
+ inner;
7163
+ constructor(inner) {
7164
+ super("DecryptedMessage", "Text");
7165
+ this.inner = Object.freeze(inner);
7166
+ }
7167
+ static new(inner) {
7168
+ return new Text_(inner);
7169
+ }
7170
+ static instanceOf(obj) {
7171
+ return obj.tag === "Text" /* Text */;
7172
+ }
7173
+ }
7174
+
7175
+ class Commit_ extends UniffiEnum {
7176
+ [uniffiTypeNameSymbol] = "DecryptedMessage";
7177
+ tag = "Commit" /* Commit */;
7178
+ inner;
7179
+ constructor(inner) {
7180
+ super("DecryptedMessage", "Commit");
7181
+ this.inner = Object.freeze(inner);
7182
+ }
7183
+ static new(inner) {
7184
+ return new Commit_(inner);
7185
+ }
7186
+ static instanceOf(obj) {
7187
+ return obj.tag === "Commit" /* Commit */;
7188
+ }
7189
+ }
7190
+
7191
+ class Proposal_ extends UniffiEnum {
7192
+ [uniffiTypeNameSymbol] = "DecryptedMessage";
7193
+ tag = "Proposal" /* Proposal */;
7194
+ inner;
7195
+ constructor(inner) {
7196
+ super("DecryptedMessage", "Proposal");
7197
+ this.inner = Object.freeze(inner);
7198
+ }
7199
+ static new(inner) {
7200
+ return new Proposal_(inner);
7201
+ }
7202
+ static instanceOf(obj) {
7203
+ return obj.tag === "Proposal" /* Proposal */;
7204
+ }
7205
+ }
7206
+ function instanceOf(obj) {
7207
+ return obj[uniffiTypeNameSymbol] === "DecryptedMessage";
7208
+ }
7209
+ return Object.freeze({
7210
+ instanceOf,
7211
+ Text: Text_,
7212
+ Commit: Commit_,
7213
+ Proposal: Proposal_
7214
+ });
7215
+ })();
7216
+ var FfiConverterTypeDecryptedMessage = (() => {
7217
+ const ordinalConverter = FfiConverterInt32;
7218
+
7219
+ class FFIConverter extends AbstractFfiConverterByteArray {
7220
+ read(from) {
7221
+ switch (ordinalConverter.read(from)) {
7222
+ case 1:
7223
+ return new DecryptedMessage.Text({ plaintext: FfiConverterUint8Array.read(from), senderClientId: FfiConverterTypeClientId.read(from), identity: FfiConverterTypeWireIdentity.read(from) });
7224
+ case 2:
7225
+ return new DecryptedMessage.Commit({ isActive: FfiConverterBool.read(from), bufferedMessages: FfiConverterOptionalSequenceTypeBufferedDecryptedMessage.read(from), identity: FfiConverterTypeWireIdentity.read(from) });
7226
+ case 3:
7227
+ return new DecryptedMessage.Proposal({ delay: FfiConverterOptionalUInt64.read(from), identity: FfiConverterTypeWireIdentity.read(from) });
7228
+ default:
7229
+ throw new UniffiInternalError.UnexpectedEnumCase;
7230
+ }
7231
+ }
7232
+ write(value, into) {
7233
+ switch (value.tag) {
7234
+ case "Text" /* Text */: {
7235
+ ordinalConverter.write(1, into);
7236
+ const inner = value.inner;
7237
+ FfiConverterUint8Array.write(inner.plaintext, into);
7238
+ FfiConverterTypeClientId.write(inner.senderClientId, into);
7239
+ FfiConverterTypeWireIdentity.write(inner.identity, into);
7240
+ return;
7241
+ }
7242
+ case "Commit" /* Commit */: {
7243
+ ordinalConverter.write(2, into);
7244
+ const inner = value.inner;
7245
+ FfiConverterBool.write(inner.isActive, into);
7246
+ FfiConverterOptionalSequenceTypeBufferedDecryptedMessage.write(inner.bufferedMessages, into);
7247
+ FfiConverterTypeWireIdentity.write(inner.identity, into);
7248
+ return;
7249
+ }
7250
+ case "Proposal" /* Proposal */: {
7251
+ ordinalConverter.write(3, into);
7252
+ const inner = value.inner;
7253
+ FfiConverterOptionalUInt64.write(inner.delay, into);
7254
+ FfiConverterTypeWireIdentity.write(inner.identity, into);
7255
+ return;
7256
+ }
7257
+ default:
7258
+ throw new UniffiInternalError.UnexpectedEnumCase;
7259
+ }
7260
+ }
7261
+ allocationSize(value) {
7262
+ switch (value.tag) {
7263
+ case "Text" /* Text */: {
7264
+ const inner = value.inner;
7265
+ let size = ordinalConverter.allocationSize(1);
7266
+ size += FfiConverterUint8Array.allocationSize(inner.plaintext);
7267
+ size += FfiConverterTypeClientId.allocationSize(inner.senderClientId);
7268
+ size += FfiConverterTypeWireIdentity.allocationSize(inner.identity);
7269
+ return size;
7270
+ }
7271
+ case "Commit" /* Commit */: {
7272
+ const inner = value.inner;
7273
+ let size = ordinalConverter.allocationSize(2);
7274
+ size += FfiConverterBool.allocationSize(inner.isActive);
7275
+ size += FfiConverterOptionalSequenceTypeBufferedDecryptedMessage.allocationSize(inner.bufferedMessages);
7276
+ size += FfiConverterTypeWireIdentity.allocationSize(inner.identity);
7277
+ return size;
7278
+ }
7279
+ case "Proposal" /* Proposal */: {
7280
+ const inner = value.inner;
7281
+ let size = ordinalConverter.allocationSize(3);
7282
+ size += FfiConverterOptionalUInt64.allocationSize(inner.delay);
7283
+ size += FfiConverterTypeWireIdentity.allocationSize(inner.identity);
7284
+ return size;
7285
+ }
7286
+ default:
7287
+ throw new UniffiInternalError.UnexpectedEnumCase;
7288
+ }
7289
+ }
7290
+ }
7291
+ return new FFIConverter;
7292
+ })();
7077
7293
  var E2eiConversationState;
7078
7294
  ((E2eiConversationState2) => {
7079
7295
  E2eiConversationState2[E2eiConversationState2["Verified"] = 1] = "Verified";
@@ -7298,9 +7514,7 @@ var FfiConverterTypeMlsTransportError = (() => {
7298
7514
  read(from) {
7299
7515
  switch (ordinalConverter.read(from)) {
7300
7516
  case 1:
7301
- return new MlsTransportError.MessageRejected({
7302
- reason: FfiConverterString.read(from)
7303
- });
7517
+ return new MlsTransportError.MessageRejected({ reason: FfiConverterString.read(from) });
7304
7518
  default:
7305
7519
  throw new UniffiInternalError.UnexpectedEnumCase;
7306
7520
  }
@@ -7412,9 +7626,7 @@ var FfiConverterTypePkiEnvironmentHooksError = (() => {
7412
7626
  read(from) {
7413
7627
  switch (ordinalConverter.read(from)) {
7414
7628
  case 1:
7415
- return new PkiEnvironmentHooksError.Error({
7416
- reason: FfiConverterString.read(from)
7417
- });
7629
+ return new PkiEnvironmentHooksError.Error({ reason: FfiConverterString.read(from) });
7418
7630
  default:
7419
7631
  throw new UniffiInternalError.UnexpectedEnumCase;
7420
7632
  }
@@ -7494,6 +7706,34 @@ var FfiConverterTypeSignatureScheme = (() => {
7494
7706
  }
7495
7707
  return new FFIConverter;
7496
7708
  })();
7709
+ var FfiConverterTypeTargetedMessagePolicy = (() => {
7710
+ const ordinalConverter = FfiConverterInt32;
7711
+
7712
+ class FFIConverter extends AbstractFfiConverterByteArray {
7713
+ read(from) {
7714
+ switch (ordinalConverter.read(from)) {
7715
+ case 1:
7716
+ return 0 /* Transient */;
7717
+ case 2:
7718
+ return 1 /* Persisted */;
7719
+ default:
7720
+ throw new UniffiInternalError.UnexpectedEnumCase;
7721
+ }
7722
+ }
7723
+ write(value, into) {
7724
+ switch (value) {
7725
+ case 0 /* Transient */:
7726
+ return ordinalConverter.write(1, into);
7727
+ case 1 /* Persisted */:
7728
+ return ordinalConverter.write(2, into);
7729
+ }
7730
+ }
7731
+ allocationSize(value) {
7732
+ return ordinalConverter.allocationSize(0);
7733
+ }
7734
+ }
7735
+ return new FFIConverter;
7736
+ })();
7497
7737
  var FfiConverterTypeMlsTransportData = FfiConverterUint8Array;
7498
7738
 
7499
7739
  class ConversationId extends UniffiAbstractObject {
@@ -8577,6 +8817,11 @@ class CoreCryptoContext extends UniffiAbstractObject {
8577
8817
  return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_encrypt_message(uniffiTypeCoreCryptoContextObjectFactory.clonePointer(this), FfiConverterTypeConversationId.lower(conversationId, nativeModule().rustbuffer_alloc), FfiConverterUint8Array.lower(message, nativeModule().rustbuffer_alloc));
8578
8818
  }, 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, FfiConverterUint8Array.lift.bind(FfiConverterUint8Array), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError));
8579
8819
  }
8820
+ async encryptTargetedMessage(conversationId, recipient, policy, message, asyncOpts_) {
8821
+ return await uniffiRustCallAsync(uniffiCaller, () => {
8822
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_encrypt_targeted_message(uniffiTypeCoreCryptoContextObjectFactory.clonePointer(this), FfiConverterTypeConversationId.lower(conversationId, nativeModule().rustbuffer_alloc), FfiConverterTypeClientId.lower(recipient, nativeModule().rustbuffer_alloc), FfiConverterTypeTargetedMessagePolicy.lower(policy, nativeModule().rustbuffer_alloc), FfiConverterUint8Array.lower(message, nativeModule().rustbuffer_alloc));
8823
+ }, 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, FfiConverterUint8Array.lift.bind(FfiConverterUint8Array), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError));
8824
+ }
8580
8825
  async exportSecretKey(conversationId, keyLength, asyncOpts_) {
8581
8826
  return await uniffiRustCallAsync(uniffiCaller, () => {
8582
8827
  return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_corecryptocontext_export_secret_key(uniffiTypeCoreCryptoContextObjectFactory.clonePointer(this), FfiConverterTypeConversationId.lower(conversationId, nativeModule().rustbuffer_alloc), FfiConverterUInt32.lower(keyLength, nativeModule().rustbuffer_alloc));
@@ -8950,6 +9195,16 @@ class PkiEnvironment extends UniffiAbstractObject {
8950
9195
  return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_add_trust_anchor(uniffiTypePkiEnvironmentObjectFactory.clonePointer(this), FfiConverterString.lower(certPem, nativeModule().rustbuffer_alloc));
8951
9196
  }, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_poll_void, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_cancel_void, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_complete_void, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError));
8952
9197
  }
9198
+ async getTrustAnchors(asyncOpts_) {
9199
+ return await uniffiRustCallAsync(uniffiCaller, () => {
9200
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_get_trust_anchors(uniffiTypePkiEnvironmentObjectFactory.clonePointer(this));
9201
+ }, 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, FfiConverterSequenceString.lift.bind(FfiConverterSequenceString), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError));
9202
+ }
9203
+ async removeTrustAnchor(fingerprint, asyncOpts_) {
9204
+ return await uniffiRustCallAsync(uniffiCaller, () => {
9205
+ return nativeModule().ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_remove_trust_anchor(uniffiTypePkiEnvironmentObjectFactory.clonePointer(this), FfiConverterUint8Array.lower(fingerprint, nativeModule().rustbuffer_alloc));
9206
+ }, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_poll_void, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_cancel_void, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_complete_void, nativeModule().ubrn_ffi_core_crypto_ffi_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError));
9207
+ }
8953
9208
  uniffiDestroy() {
8954
9209
  const ptr = this[destructorGuardSymbol];
8955
9210
  if (ptr !== undefined) {
@@ -9998,15 +10253,15 @@ var uniffiTypeX509CredentialAcquisitionObjectFactory = (() => {
9998
10253
  };
9999
10254
  })();
10000
10255
  var FfiConverterTypeX509CredentialAcquisition = new FfiConverterObject(uniffiTypeX509CredentialAcquisitionObjectFactory);
10256
+ var FfiConverterOptionalTypeWelcome = new FfiConverterOptional(FfiConverterTypeWelcome);
10001
10257
  var FfiConverterOptionalBytes = new FfiConverterOptional(FfiConverterUint8Array);
10002
- var FfiConverterOptionalUInt64 = new FfiConverterOptional(FfiConverterUInt64);
10258
+ var FfiConverterSequenceTypeHttpHeader = new FfiConverterArray(FfiConverterTypeHttpHeader);
10003
10259
  var FfiConverterOptionalTypeClientId = new FfiConverterOptional(FfiConverterTypeClientId);
10004
10260
  var FfiConverterOptionalTypeX509Identity = new FfiConverterOptional(FfiConverterTypeX509Identity);
10005
- var FfiConverterOptionalTypeWelcome = new FfiConverterOptional(FfiConverterTypeWelcome);
10261
+ var FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
10262
+ var FfiConverterOptionalUInt64 = new FfiConverterOptional(FfiConverterUInt64);
10006
10263
  var FfiConverterSequenceTypeBufferedDecryptedMessage = new FfiConverterArray(FfiConverterTypeBufferedDecryptedMessage);
10007
10264
  var FfiConverterOptionalSequenceTypeBufferedDecryptedMessage = new FfiConverterOptional(FfiConverterSequenceTypeBufferedDecryptedMessage);
10008
- var FfiConverterSequenceTypeHttpHeader = new FfiConverterArray(FfiConverterTypeHttpHeader);
10009
- var FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
10010
10265
  var FfiConverterSequenceTypeKeyPackage = new FfiConverterArray(FfiConverterTypeKeyPackage);
10011
10266
  var FfiConverterOptionalTypeExternalSender = new FfiConverterOptional(FfiConverterTypeExternalSender);
10012
10267
  var FfiConverterOptionalDuration = new FfiConverterOptional(FfiConverterDuration);
@@ -10109,7 +10364,7 @@ function uniffiEnsureInitialized() {
10109
10364
  if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_create_conversation() !== 63673) {
10110
10365
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_corecryptocontext_create_conversation");
10111
10366
  }
10112
- if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_decrypt_message() !== 47475) {
10367
+ if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_decrypt_message() !== 8493) {
10113
10368
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_corecryptocontext_decrypt_message");
10114
10369
  }
10115
10370
  if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_disable_history_sharing() !== 27456) {
@@ -10127,6 +10382,9 @@ function uniffiEnsureInitialized() {
10127
10382
  if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_encrypt_message() !== 23805) {
10128
10383
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_corecryptocontext_encrypt_message");
10129
10384
  }
10385
+ if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_encrypt_targeted_message() !== 52733) {
10386
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_corecryptocontext_encrypt_targeted_message");
10387
+ }
10130
10388
  if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_corecryptocontext_export_secret_key() !== 35407) {
10131
10389
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_corecryptocontext_export_secret_key");
10132
10390
  }
@@ -10442,9 +10700,15 @@ function uniffiEnsureInitialized() {
10442
10700
  if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_intermediate_cert() !== 57664) {
10443
10701
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_intermediate_cert");
10444
10702
  }
10445
- if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_trust_anchor() !== 9292) {
10703
+ if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_trust_anchor() !== 14999) {
10446
10704
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_pkienvironment_add_trust_anchor");
10447
10705
  }
10706
+ if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_get_trust_anchors() !== 11812) {
10707
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_pkienvironment_get_trust_anchors");
10708
+ }
10709
+ if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironment_remove_trust_anchor() !== 41980) {
10710
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_pkienvironment_remove_trust_anchor");
10711
+ }
10448
10712
  if (nativeModule().ubrn_uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_http_request() !== 1349) {
10449
10713
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_pkienvironmenthooks_http_request");
10450
10714
  }
@@ -10543,6 +10807,7 @@ var core_crypto_ffi_default = Object.freeze({
10543
10807
  FfiConverterTypeProteusError,
10544
10808
  FfiConverterTypeSecretKey,
10545
10809
  FfiConverterTypeSignatureScheme,
10810
+ FfiConverterTypeTargetedMessagePolicy,
10546
10811
  FfiConverterTypeTimestamp,
10547
10812
  FfiConverterTypeUuid,
10548
10813
  FfiConverterTypeWelcome,
@@ -10682,6 +10947,7 @@ export {
10682
10947
  DeviceStatus,
10683
10948
  DeviceId,
10684
10949
  DeserializedClientId,
10950
+ DecryptedMessage,
10685
10951
  DatabaseKey,
10686
10952
  Database,
10687
10953
  CredentialType,