@wireapp/core-crypto 10.0.0-pre.10 → 10.0.0-pre.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/autogenerated/wasm-bindgen/index_bg.wasm +0 -0
- package/dist/browser/autogenerated/wasm-bindgen/index_bg.wasm.d.ts +60 -20
- package/dist/browser/corecrypto.d.ts +56 -10
- package/dist/browser/corecrypto.js +1522 -1198
- package/dist/native/corecrypto.d.ts +56 -10
- package/dist/native/corecrypto.js +326 -17
- package/dist/native/libcore_crypto_ffi.dylib +0 -0
- package/dist/native/libcore_crypto_ffi.so +0 -0
- package/package.json +1 -1
|
Binary file
|
|
@@ -115,6 +115,10 @@ export const ubrn_uniffi_core_crypto_ffi_checksum_constructor_database_open: ()
|
|
|
115
115
|
export const uniffi_core_crypto_ffi_checksum_constructor_database_open: () => number;
|
|
116
116
|
export const ubrn_uniffi_core_crypto_ffi_checksum_constructor_databasekey_new: () => number;
|
|
117
117
|
export const uniffi_core_crypto_ffi_checksum_constructor_databasekey_new: () => number;
|
|
118
|
+
export const ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_from_hex_string: () => number;
|
|
119
|
+
export const uniffi_core_crypto_ffi_checksum_constructor_deviceid_from_hex_string: () => number;
|
|
120
|
+
export const ubrn_uniffi_core_crypto_ffi_checksum_constructor_deviceid_new: () => number;
|
|
121
|
+
export const uniffi_core_crypto_ffi_checksum_constructor_deviceid_new: () => number;
|
|
118
122
|
export const ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse: () => number;
|
|
119
123
|
export const uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse: () => number;
|
|
120
124
|
export const ubrn_uniffi_core_crypto_ffi_checksum_constructor_externalsender_parse_jwk: () => number;
|
|
@@ -129,6 +133,8 @@ export const ubrn_uniffi_core_crypto_ffi_checksum_constructor_pkienvironment_new
|
|
|
129
133
|
export const uniffi_core_crypto_ffi_checksum_constructor_pkienvironment_new: () => number;
|
|
130
134
|
export const ubrn_uniffi_core_crypto_ffi_checksum_constructor_secretkey_new: () => number;
|
|
131
135
|
export const uniffi_core_crypto_ffi_checksum_constructor_secretkey_new: () => number;
|
|
136
|
+
export const ubrn_uniffi_core_crypto_ffi_checksum_constructor_uuid_new: () => number;
|
|
137
|
+
export const uniffi_core_crypto_ffi_checksum_constructor_uuid_new: () => number;
|
|
132
138
|
export const ubrn_uniffi_core_crypto_ffi_checksum_constructor_welcome_new: () => number;
|
|
133
139
|
export const uniffi_core_crypto_ffi_checksum_constructor_welcome_new: () => number;
|
|
134
140
|
export const ubrn_uniffi_core_crypto_ffi_checksum_constructor_x509credentialacquisition_frombytes: () => number;
|
|
@@ -351,6 +357,10 @@ export const ubrn_uniffi_core_crypto_ffi_checksum_method_database_get_location:
|
|
|
351
357
|
export const uniffi_core_crypto_ffi_checksum_method_database_get_location: () => number;
|
|
352
358
|
export const ubrn_uniffi_core_crypto_ffi_checksum_method_database_update_key: () => number;
|
|
353
359
|
export const uniffi_core_crypto_ffi_checksum_method_database_update_key: () => number;
|
|
360
|
+
export const ubrn_uniffi_core_crypto_ffi_checksum_method_deviceid_to_hex_string: () => number;
|
|
361
|
+
export const uniffi_core_crypto_ffi_checksum_method_deviceid_to_hex_string: () => number;
|
|
362
|
+
export const ubrn_uniffi_core_crypto_ffi_checksum_method_deviceid_to_u64: () => number;
|
|
363
|
+
export const uniffi_core_crypto_ffi_checksum_method_deviceid_to_u64: () => number;
|
|
354
364
|
export const ubrn_uniffi_core_crypto_ffi_checksum_method_epochobserver_epoch_changed: () => number;
|
|
355
365
|
export const uniffi_core_crypto_ffi_checksum_method_epochobserver_epoch_changed: () => number;
|
|
356
366
|
export const ubrn_uniffi_core_crypto_ffi_checksum_method_externalsender_serialize: () => number;
|
|
@@ -413,6 +423,8 @@ export const ubrn_uniffi_core_crypto_ffi_fn_clone_database: (a: bigint, b: numbe
|
|
|
413
423
|
export const uniffi_core_crypto_ffi_fn_clone_database: (a: bigint, b: number) => bigint;
|
|
414
424
|
export const ubrn_uniffi_core_crypto_ffi_fn_clone_databasekey: (a: bigint, b: number) => bigint;
|
|
415
425
|
export const uniffi_core_crypto_ffi_fn_clone_databasekey: (a: bigint, b: number) => bigint;
|
|
426
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_clone_deviceid: (a: bigint, b: number) => bigint;
|
|
427
|
+
export const uniffi_core_crypto_ffi_fn_clone_deviceid: (a: bigint, b: number) => bigint;
|
|
416
428
|
export const ubrn_uniffi_core_crypto_ffi_fn_clone_epochobserver: (a: bigint, b: number) => bigint;
|
|
417
429
|
export const uniffi_core_crypto_ffi_fn_clone_epochobserver: (a: bigint, b: number) => bigint;
|
|
418
430
|
export const ubrn_uniffi_core_crypto_ffi_fn_clone_externalsender: (a: bigint, b: number) => bigint;
|
|
@@ -433,12 +445,14 @@ export const ubrn_uniffi_core_crypto_ffi_fn_clone_pkienvironmenthooks: (a: bigin
|
|
|
433
445
|
export const uniffi_core_crypto_ffi_fn_clone_pkienvironmenthooks: (a: bigint, b: number) => bigint;
|
|
434
446
|
export const ubrn_uniffi_core_crypto_ffi_fn_clone_secretkey: (a: bigint, b: number) => bigint;
|
|
435
447
|
export const uniffi_core_crypto_ffi_fn_clone_secretkey: (a: bigint, b: number) => bigint;
|
|
448
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_clone_uuid: (a: bigint, b: number) => bigint;
|
|
449
|
+
export const uniffi_core_crypto_ffi_fn_clone_uuid: (a: bigint, b: number) => bigint;
|
|
436
450
|
export const ubrn_uniffi_core_crypto_ffi_fn_clone_welcome: (a: bigint, b: number) => bigint;
|
|
437
451
|
export const uniffi_core_crypto_ffi_fn_clone_welcome: (a: bigint, b: number) => bigint;
|
|
438
452
|
export const ubrn_uniffi_core_crypto_ffi_fn_clone_x509credentialacquisition: (a: bigint, b: number) => bigint;
|
|
439
453
|
export const uniffi_core_crypto_ffi_fn_clone_x509credentialacquisition: (a: bigint, b: number) => bigint;
|
|
440
|
-
export const ubrn_uniffi_core_crypto_ffi_fn_constructor_clientid_new: (a:
|
|
441
|
-
export const uniffi_core_crypto_ffi_fn_constructor_clientid_new: (a:
|
|
454
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_constructor_clientid_new: (a: bigint, b: bigint, c: number, d: number, e: number) => bigint;
|
|
455
|
+
export const uniffi_core_crypto_ffi_fn_constructor_clientid_new: (a: bigint, b: bigint, c: number, d: number) => bigint;
|
|
442
456
|
export const ubrn_uniffi_core_crypto_ffi_fn_constructor_conversationid_new: (a: number, b: number, c: number) => bigint;
|
|
443
457
|
export const uniffi_core_crypto_ffi_fn_constructor_conversationid_new: (a: number, b: number) => bigint;
|
|
444
458
|
export const ubrn_uniffi_core_crypto_ffi_fn_constructor_corecryptocontext_new: (a: bigint, b: number) => bigint;
|
|
@@ -453,6 +467,10 @@ export const ubrn_uniffi_core_crypto_ffi_fn_constructor_database_open: (a: numbe
|
|
|
453
467
|
export const uniffi_core_crypto_ffi_fn_constructor_database_open: (a: number, b: bigint) => bigint;
|
|
454
468
|
export const ubrn_uniffi_core_crypto_ffi_fn_constructor_databasekey_new: (a: number, b: number, c: number) => bigint;
|
|
455
469
|
export const uniffi_core_crypto_ffi_fn_constructor_databasekey_new: (a: number, b: number) => bigint;
|
|
470
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_constructor_deviceid_from_hex_string: (a: number, b: number, c: number) => bigint;
|
|
471
|
+
export const uniffi_core_crypto_ffi_fn_constructor_deviceid_from_hex_string: (a: number, b: number) => bigint;
|
|
472
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_constructor_deviceid_new: (a: bigint, b: number) => bigint;
|
|
473
|
+
export const uniffi_core_crypto_ffi_fn_constructor_deviceid_new: (a: bigint, b: number) => bigint;
|
|
456
474
|
export const ubrn_uniffi_core_crypto_ffi_fn_constructor_externalsender_parse: (a: number, b: number, c: number, d: number, e: number) => bigint;
|
|
457
475
|
export const uniffi_core_crypto_ffi_fn_constructor_externalsender_parse: (a: number, b: number, c: number) => bigint;
|
|
458
476
|
export const ubrn_uniffi_core_crypto_ffi_fn_constructor_externalsender_parse_jwk: (a: number, b: number, c: number) => bigint;
|
|
@@ -467,6 +485,8 @@ export const ubrn_uniffi_core_crypto_ffi_fn_constructor_pkienvironment_new: (a:
|
|
|
467
485
|
export const uniffi_core_crypto_ffi_fn_constructor_pkienvironment_new: (a: bigint, b: bigint) => bigint;
|
|
468
486
|
export const ubrn_uniffi_core_crypto_ffi_fn_constructor_secretkey_new: (a: number, b: number, c: number) => bigint;
|
|
469
487
|
export const uniffi_core_crypto_ffi_fn_constructor_secretkey_new: (a: number, b: number) => bigint;
|
|
488
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_constructor_uuid_new: (a: number, b: number, c: number) => bigint;
|
|
489
|
+
export const uniffi_core_crypto_ffi_fn_constructor_uuid_new: (a: number, b: number) => bigint;
|
|
470
490
|
export const ubrn_uniffi_core_crypto_ffi_fn_constructor_welcome_new: (a: number, b: number, c: number) => bigint;
|
|
471
491
|
export const uniffi_core_crypto_ffi_fn_constructor_welcome_new: (a: number, b: number) => bigint;
|
|
472
492
|
export const ubrn_uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_frombytes: (a: bigint, b: number, c: number, d: number) => bigint;
|
|
@@ -495,6 +515,8 @@ export const ubrn_uniffi_core_crypto_ffi_fn_free_database: (a: bigint, b: number
|
|
|
495
515
|
export const uniffi_core_crypto_ffi_fn_free_database: (a: bigint, b: number) => void;
|
|
496
516
|
export const ubrn_uniffi_core_crypto_ffi_fn_free_databasekey: (a: bigint, b: number) => void;
|
|
497
517
|
export const uniffi_core_crypto_ffi_fn_free_databasekey: (a: bigint, b: number) => void;
|
|
518
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_free_deviceid: (a: bigint, b: number) => void;
|
|
519
|
+
export const uniffi_core_crypto_ffi_fn_free_deviceid: (a: bigint, b: number) => void;
|
|
498
520
|
export const ubrn_uniffi_core_crypto_ffi_fn_free_epochobserver: (a: bigint, b: number) => void;
|
|
499
521
|
export const uniffi_core_crypto_ffi_fn_free_epochobserver: (a: bigint, b: number) => void;
|
|
500
522
|
export const ubrn_uniffi_core_crypto_ffi_fn_free_externalsender: (a: bigint, b: number) => void;
|
|
@@ -515,6 +537,8 @@ export const ubrn_uniffi_core_crypto_ffi_fn_free_pkienvironmenthooks: (a: bigint
|
|
|
515
537
|
export const uniffi_core_crypto_ffi_fn_free_pkienvironmenthooks: (a: bigint, b: number) => void;
|
|
516
538
|
export const ubrn_uniffi_core_crypto_ffi_fn_free_secretkey: (a: bigint, b: number) => void;
|
|
517
539
|
export const uniffi_core_crypto_ffi_fn_free_secretkey: (a: bigint, b: number) => void;
|
|
540
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_free_uuid: (a: bigint, b: number) => void;
|
|
541
|
+
export const uniffi_core_crypto_ffi_fn_free_uuid: (a: bigint, b: number) => void;
|
|
518
542
|
export const ubrn_uniffi_core_crypto_ffi_fn_free_welcome: (a: bigint, b: number) => void;
|
|
519
543
|
export const uniffi_core_crypto_ffi_fn_free_welcome: (a: bigint, b: number) => void;
|
|
520
544
|
export const ubrn_uniffi_core_crypto_ffi_fn_free_x509credentialacquisition: (a: bigint, b: number) => void;
|
|
@@ -769,6 +793,16 @@ export const ubrn_uniffi_core_crypto_ffi_fn_method_databasekey_uniffi_trait_eq_e
|
|
|
769
793
|
export const uniffi_core_crypto_ffi_fn_method_databasekey_uniffi_trait_eq_eq: (a: bigint, b: bigint, c: number) => number;
|
|
770
794
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_databasekey_uniffi_trait_eq_ne: (a: bigint, b: bigint, c: number) => number;
|
|
771
795
|
export const uniffi_core_crypto_ffi_fn_method_databasekey_uniffi_trait_eq_ne: (a: bigint, b: bigint, c: number) => number;
|
|
796
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_hex_string: (a: bigint, b: number) => [number, number];
|
|
797
|
+
export const uniffi_core_crypto_ffi_fn_method_deviceid_to_hex_string: (a: number, b: bigint, c: number) => void;
|
|
798
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_u64: (a: bigint, b: number) => bigint;
|
|
799
|
+
export const uniffi_core_crypto_ffi_fn_method_deviceid_to_u64: (a: bigint, b: number) => bigint;
|
|
800
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_eq: (a: bigint, b: bigint, c: number) => number;
|
|
801
|
+
export const uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_eq: (a: bigint, b: bigint, c: number) => number;
|
|
802
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_ne: (a: bigint, b: bigint, c: number) => number;
|
|
803
|
+
export const uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_ne: (a: bigint, b: bigint, c: number) => number;
|
|
804
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_hash: (a: bigint, b: number) => bigint;
|
|
805
|
+
export const uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_hash: (a: bigint, b: number) => bigint;
|
|
772
806
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_epochobserver_epoch_changed: (a: bigint, b: bigint, c: bigint) => bigint;
|
|
773
807
|
export const uniffi_core_crypto_ffi_fn_method_epochobserver_epoch_changed: (a: bigint, b: bigint, c: bigint) => bigint;
|
|
774
808
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_externalsender_serialize: (a: bigint, b: number) => [number, number];
|
|
@@ -819,34 +853,40 @@ export const ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_ne:
|
|
|
819
853
|
export const uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_ne: (a: bigint, b: bigint, c: number) => number;
|
|
820
854
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_hash: (a: bigint, b: number) => bigint;
|
|
821
855
|
export const uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_hash: (a: bigint, b: number) => bigint;
|
|
856
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_eq: (a: bigint, b: bigint, c: number) => number;
|
|
857
|
+
export const uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_eq: (a: bigint, b: bigint, c: number) => number;
|
|
858
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_ne: (a: bigint, b: bigint, c: number) => number;
|
|
859
|
+
export const uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_ne: (a: bigint, b: bigint, c: number) => number;
|
|
860
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_hash: (a: bigint, b: number) => bigint;
|
|
861
|
+
export const uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_hash: (a: bigint, b: number) => bigint;
|
|
822
862
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_welcome_serialize: (a: bigint, b: number) => [number, number];
|
|
823
863
|
export const uniffi_core_crypto_ffi_fn_method_welcome_serialize: (a: number, b: bigint, c: number) => void;
|
|
824
864
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_x509credentialacquisition_finalize: (a: bigint) => bigint;
|
|
825
865
|
export const uniffi_core_crypto_ffi_fn_method_x509credentialacquisition_finalize: (a: bigint) => bigint;
|
|
826
|
-
export const
|
|
827
|
-
export const
|
|
828
|
-
export const
|
|
829
|
-
export const
|
|
830
|
-
export const
|
|
866
|
+
export const __wbg_foreignfuturecompletef32_free: (a: number, b: number) => void;
|
|
867
|
+
export const __wbg_foreignfuturecompletei64_free: (a: number, b: number) => void;
|
|
868
|
+
export const foreignfuturecompletef32_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
869
|
+
export const foreignfuturecompletei64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
870
|
+
export const __wbg_foreignfuturecompleteu8_free: (a: number, b: number) => void;
|
|
831
871
|
export const __wbg_foreignfuturecompletevoid_free: (a: number, b: number) => void;
|
|
832
|
-
export const
|
|
872
|
+
export const foreignfuturecompleteu8_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
833
873
|
export const foreignfuturecompletevoid_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
874
|
+
export const __wbg_foreignfuturecompletei16_free: (a: number, b: number) => void;
|
|
875
|
+
export const __wbg_foreignfuturecompletei8_free: (a: number, b: number) => void;
|
|
834
876
|
export const __wbg_foreignfuturecompleterustbuffer_free: (a: number, b: number) => void;
|
|
835
877
|
export const __wbg_foreignfuturecompleteu32_free: (a: number, b: number) => void;
|
|
836
|
-
export const
|
|
837
|
-
export const
|
|
878
|
+
export const foreignfuturecompletei16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
879
|
+
export const foreignfuturecompletei8_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
838
880
|
export const foreignfuturecompleterustbuffer_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
839
881
|
export const foreignfuturecompleteu32_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
840
|
-
export const foreignfuturecompleteu64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
841
|
-
export const foreignfuturecompleteu8_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
842
|
-
export const __wbg_foreignfuturecompletef32_free: (a: number, b: number) => void;
|
|
843
882
|
export const __wbg_foreignfuturecompletef64_free: (a: number, b: number) => void;
|
|
844
|
-
export const
|
|
845
|
-
export const
|
|
846
|
-
export const
|
|
883
|
+
export const __wbg_foreignfuturecompletei32_free: (a: number, b: number) => void;
|
|
884
|
+
export const __wbg_foreignfuturecompleteu16_free: (a: number, b: number) => void;
|
|
885
|
+
export const __wbg_foreignfuturecompleteu64_free: (a: number, b: number) => void;
|
|
847
886
|
export const foreignfuturecompletef64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
848
|
-
export const
|
|
849
|
-
export const
|
|
887
|
+
export const foreignfuturecompletei32_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
888
|
+
export const foreignfuturecompleteu16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
889
|
+
export const foreignfuturecompleteu64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
850
890
|
export const __wbg_get_rustcallstatus_code: (a: number) => number;
|
|
851
891
|
export const __wbg_rustcallstatus_free: (a: number, b: number) => void;
|
|
852
892
|
export const __wbg_set_rustcallstatus_code: (a: number, b: number) => void;
|
|
@@ -867,10 +907,10 @@ export const rust_sqlite_wasm_localtime: (a: number) => number;
|
|
|
867
907
|
export const rust_sqlite_wasm_realloc: (a: number, b: number) => number;
|
|
868
908
|
export const sqlite3_os_end: () => number;
|
|
869
909
|
export const sqlite3_os_init: () => number;
|
|
870
|
-
export const wasm_bindgen__convert__closures_____invoke__h750cfefaea4c73c0: (a: number, b: number, c: any) => void;
|
|
871
|
-
export const wasm_bindgen__closure__destroy__h03dbd4d16ebe6a7f: (a: number, b: number) => void;
|
|
872
910
|
export const wasm_bindgen__convert__closures_____invoke__hf3c68230db5190d1: (a: number, b: number, c: any) => void;
|
|
873
911
|
export const wasm_bindgen__closure__destroy__h4d2826f8cf3948a6: (a: number, b: number) => void;
|
|
912
|
+
export const wasm_bindgen__convert__closures_____invoke__he6b63f055d8ab351: (a: number, b: number, c: any) => void;
|
|
913
|
+
export const wasm_bindgen__closure__destroy__h0424ebc31579b4c3: (a: number, b: number) => void;
|
|
874
914
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
875
915
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
876
916
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
@@ -41,6 +41,52 @@ export declare function setMaxLogLevel(level: CoreCryptoLogLevel): void;
|
|
|
41
41
|
* The version of `core-crypto`.
|
|
42
42
|
*/
|
|
43
43
|
export declare function version(): string;
|
|
44
|
+
type UuidLike = Uuid;
|
|
45
|
+
/**
|
|
46
|
+
* A Uuid.
|
|
47
|
+
*/
|
|
48
|
+
export declare class Uuid extends UniffiAbstractObject {
|
|
49
|
+
readonly [uniffiTypeNameSymbol] = "Uuid";
|
|
50
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
51
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
52
|
+
/**
|
|
53
|
+
* Parse a `Uuid` from a string.
|
|
54
|
+
*/
|
|
55
|
+
constructor(uuid: string);
|
|
56
|
+
equals(other: Uuid): boolean;
|
|
57
|
+
hashCode(): bigint;
|
|
58
|
+
uniffiDestroy(): void;
|
|
59
|
+
static instanceOf(obj_: any): obj_ is Uuid;
|
|
60
|
+
}
|
|
61
|
+
type DeviceIdLike = DeviceId;
|
|
62
|
+
/**
|
|
63
|
+
* A Device ID.
|
|
64
|
+
*/
|
|
65
|
+
export declare class DeviceId extends UniffiAbstractObject {
|
|
66
|
+
readonly [uniffiTypeNameSymbol] = "DeviceId";
|
|
67
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
68
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
69
|
+
/**
|
|
70
|
+
* New device id from an unsigned 64-bit integer.
|
|
71
|
+
*/
|
|
72
|
+
constructor(id: bigint);
|
|
73
|
+
/**
|
|
74
|
+
* Construct a `DeviceId` from 8 bytes encoded as a hex string.
|
|
75
|
+
*/
|
|
76
|
+
static fromHexString(hexString: string): DeviceIdLike;
|
|
77
|
+
/**
|
|
78
|
+
* Encode the `DeviceId` as a 16-character lowercase hex string, with leading 0s.
|
|
79
|
+
*/
|
|
80
|
+
toHexString(): string;
|
|
81
|
+
/**
|
|
82
|
+
* Get the number corresponding to this `DeviceId`.
|
|
83
|
+
*/
|
|
84
|
+
toU64(): bigint;
|
|
85
|
+
equals(other: DeviceId): boolean;
|
|
86
|
+
hashCode(): bigint;
|
|
87
|
+
uniffiDestroy(): void;
|
|
88
|
+
static instanceOf(obj_: any): obj_ is DeviceId;
|
|
89
|
+
}
|
|
44
90
|
/**
|
|
45
91
|
* This directly represents a `ClientId` of the `<userid>-<device-id>@<domain>` format.
|
|
46
92
|
* Instantiate via [ClientId::deserialize].
|
|
@@ -51,13 +97,13 @@ export type DeserializedClientId = {
|
|
|
51
97
|
*/
|
|
52
98
|
clientId: ClientIdLike;
|
|
53
99
|
/**
|
|
54
|
-
* The
|
|
100
|
+
* The user id component
|
|
55
101
|
*/
|
|
56
|
-
userId:
|
|
102
|
+
userId: UuidLike;
|
|
57
103
|
/**
|
|
58
|
-
*
|
|
104
|
+
* The device id component
|
|
59
105
|
*/
|
|
60
|
-
deviceId:
|
|
106
|
+
deviceId: DeviceIdLike;
|
|
61
107
|
/**
|
|
62
108
|
* The domain
|
|
63
109
|
*/
|
|
@@ -86,13 +132,13 @@ export declare class ClientId extends UniffiAbstractObject {
|
|
|
86
132
|
/**
|
|
87
133
|
* Create a new client id.
|
|
88
134
|
*/
|
|
89
|
-
constructor(userId:
|
|
135
|
+
constructor(userId: UuidLike, deviceId: DeviceIdLike, domain: string);
|
|
90
136
|
/**
|
|
91
137
|
* Copy the wrapped data into a new byte array.
|
|
92
138
|
*/
|
|
93
139
|
copyBytes(): Uint8Array;
|
|
94
140
|
/**
|
|
95
|
-
* Copy the wrapped data into a direct representation of the `<
|
|
141
|
+
* Copy the wrapped data into a direct representation of the `<user-id>:<device-id>@<domain>` format.
|
|
96
142
|
*/
|
|
97
143
|
deserialize(): DeserializedClientId;
|
|
98
144
|
equals(other: ClientId): boolean;
|
|
@@ -3091,9 +3137,9 @@ declare class CoreCryptoContext extends UniffiAbstractObject {
|
|
|
3091
3137
|
/**
|
|
3092
3138
|
* Returns the E2EI identity claims for the specified users in the given conversation, grouped by user ID.
|
|
3093
3139
|
*/
|
|
3094
|
-
getUserIdentities(conversationId: ConversationIdLike, userIds: Array<
|
|
3140
|
+
getUserIdentities(conversationId: ConversationIdLike, userIds: Array<UuidLike>, asyncOpts_?: {
|
|
3095
3141
|
signal: AbortSignal;
|
|
3096
|
-
}): Promise<Map<
|
|
3142
|
+
}): Promise<Map<UuidLike, Array<WireIdentity>>>;
|
|
3097
3143
|
/**
|
|
3098
3144
|
* Joins an existing conversation by constructing an external commit from the given group info.
|
|
3099
3145
|
*/
|
|
@@ -3480,9 +3526,9 @@ declare class CoreCryptoFfi extends UniffiAbstractObject {
|
|
|
3480
3526
|
/**
|
|
3481
3527
|
* Returns the E2EI identity claims for the specified users in the given conversation, grouped by user ID.
|
|
3482
3528
|
*/
|
|
3483
|
-
getUserIdentities(conversationId: ConversationIdLike, userIds: Array<
|
|
3529
|
+
getUserIdentities(conversationId: ConversationIdLike, userIds: Array<UuidLike>, asyncOpts_?: {
|
|
3484
3530
|
signal: AbortSignal;
|
|
3485
|
-
}): Promise<Map<
|
|
3531
|
+
}): Promise<Map<UuidLike, Array<WireIdentity>>>;
|
|
3486
3532
|
/**
|
|
3487
3533
|
* Returns true if history sharing is currently enabled for the given conversation.
|
|
3488
3534
|
*/
|