@wireapp/core-crypto 10.0.0-pre.10 → 10.0.0-pre.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/autogenerated/wasm-bindgen/index_bg.wasm +0 -0
- package/dist/browser/autogenerated/wasm-bindgen/index_bg.wasm.d.ts +62 -18
- package/dist/browser/corecrypto.d.ts +61 -13
- package/dist/browser/corecrypto.js +1569 -1218
- package/dist/native/corecrypto.d.ts +59 -11
- package/dist/native/corecrypto.js +359 -18
- package/dist/native/libcore_crypto_ffi.dylib +0 -0
- package/dist/native/libcore_crypto_ffi.so +0 -0
- package/package.json +12 -3
|
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,18 @@ 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_deserializedclientid_uniffi_trait_display: (a: number, b: number, c: number) => [number, number];
|
|
797
|
+
export const uniffi_core_crypto_ffi_fn_method_deserializedclientid_uniffi_trait_display: (a: number, b: number, c: number) => void;
|
|
798
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_hex_string: (a: bigint, b: number) => [number, number];
|
|
799
|
+
export const uniffi_core_crypto_ffi_fn_method_deviceid_to_hex_string: (a: number, b: bigint, c: number) => void;
|
|
800
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_to_u64: (a: bigint, b: number) => bigint;
|
|
801
|
+
export const uniffi_core_crypto_ffi_fn_method_deviceid_to_u64: (a: bigint, b: number) => bigint;
|
|
802
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_eq: (a: bigint, b: bigint, c: number) => number;
|
|
803
|
+
export const uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_eq: (a: bigint, b: bigint, c: number) => number;
|
|
804
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_ne: (a: bigint, b: bigint, c: number) => number;
|
|
805
|
+
export const uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_ne: (a: bigint, b: bigint, c: number) => number;
|
|
806
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_hash: (a: bigint, b: number) => bigint;
|
|
807
|
+
export const uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_hash: (a: bigint, b: number) => bigint;
|
|
772
808
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_epochobserver_epoch_changed: (a: bigint, b: bigint, c: bigint) => bigint;
|
|
773
809
|
export const uniffi_core_crypto_ffi_fn_method_epochobserver_epoch_changed: (a: bigint, b: bigint, c: bigint) => bigint;
|
|
774
810
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_externalsender_serialize: (a: bigint, b: number) => [number, number];
|
|
@@ -819,34 +855,42 @@ export const ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_ne:
|
|
|
819
855
|
export const uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_eq_ne: (a: bigint, b: bigint, c: number) => number;
|
|
820
856
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_hash: (a: bigint, b: number) => bigint;
|
|
821
857
|
export const uniffi_core_crypto_ffi_fn_method_secretkey_uniffi_trait_hash: (a: bigint, b: number) => bigint;
|
|
858
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_display: (a: bigint, b: number) => [number, number];
|
|
859
|
+
export const uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_display: (a: number, b: bigint, c: number) => void;
|
|
860
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_eq: (a: bigint, b: bigint, c: number) => number;
|
|
861
|
+
export const uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_eq: (a: bigint, b: bigint, c: number) => number;
|
|
862
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_ne: (a: bigint, b: bigint, c: number) => number;
|
|
863
|
+
export const uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_ne: (a: bigint, b: bigint, c: number) => number;
|
|
864
|
+
export const ubrn_uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_hash: (a: bigint, b: number) => bigint;
|
|
865
|
+
export const uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_hash: (a: bigint, b: number) => bigint;
|
|
822
866
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_welcome_serialize: (a: bigint, b: number) => [number, number];
|
|
823
867
|
export const uniffi_core_crypto_ffi_fn_method_welcome_serialize: (a: number, b: bigint, c: number) => void;
|
|
824
868
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_x509credentialacquisition_finalize: (a: bigint) => bigint;
|
|
825
869
|
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
|
|
870
|
+
export const __wbg_foreignfuturecompletef32_free: (a: number, b: number) => void;
|
|
871
|
+
export const __wbg_foreignfuturecompleteu32_free: (a: number, b: number) => void;
|
|
872
|
+
export const foreignfuturecompletef32_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
873
|
+
export const foreignfuturecompleteu32_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
830
874
|
export const __wbg_foreignfuturecompletei8_free: (a: number, b: number) => void;
|
|
831
875
|
export const __wbg_foreignfuturecompletevoid_free: (a: number, b: number) => void;
|
|
832
876
|
export const foreignfuturecompletei8_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
833
877
|
export const foreignfuturecompletevoid_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
878
|
+
export const __wbg_foreignfuturecompletef64_free: (a: number, b: number) => void;
|
|
879
|
+
export const __wbg_foreignfuturecompletei32_free: (a: number, b: number) => void;
|
|
880
|
+
export const __wbg_foreignfuturecompletei64_free: (a: number, b: number) => void;
|
|
881
|
+
export const __wbg_foreignfuturecompleteu16_free: (a: number, b: number) => void;
|
|
882
|
+
export const foreignfuturecompletef64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
883
|
+
export const foreignfuturecompletei32_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
884
|
+
export const foreignfuturecompletei64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
885
|
+
export const foreignfuturecompleteu16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
886
|
+
export const __wbg_foreignfuturecompletei16_free: (a: number, b: number) => void;
|
|
834
887
|
export const __wbg_foreignfuturecompleterustbuffer_free: (a: number, b: number) => void;
|
|
835
|
-
export const __wbg_foreignfuturecompleteu32_free: (a: number, b: number) => void;
|
|
836
888
|
export const __wbg_foreignfuturecompleteu64_free: (a: number, b: number) => void;
|
|
837
889
|
export const __wbg_foreignfuturecompleteu8_free: (a: number, b: number) => void;
|
|
890
|
+
export const foreignfuturecompletei16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
838
891
|
export const foreignfuturecompleterustbuffer_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
839
|
-
export const foreignfuturecompleteu32_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
840
892
|
export const foreignfuturecompleteu64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
841
893
|
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
|
-
export const __wbg_foreignfuturecompletef64_free: (a: number, b: number) => void;
|
|
844
|
-
export const __wbg_foreignfuturecompletei16_free: (a: number, b: number) => void;
|
|
845
|
-
export const __wbg_foreignfuturecompletei64_free: (a: number, b: number) => void;
|
|
846
|
-
export const foreignfuturecompletef32_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
847
|
-
export const foreignfuturecompletef64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
848
|
-
export const foreignfuturecompletei16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
849
|
-
export const foreignfuturecompletei64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
850
894
|
export const __wbg_get_rustcallstatus_code: (a: number) => number;
|
|
851
895
|
export const __wbg_rustcallstatus_free: (a: number, b: number) => void;
|
|
852
896
|
export const __wbg_set_rustcallstatus_code: (a: number, b: number) => void;
|
|
@@ -867,10 +911,10 @@ export const rust_sqlite_wasm_localtime: (a: number) => number;
|
|
|
867
911
|
export const rust_sqlite_wasm_realloc: (a: number, b: number) => number;
|
|
868
912
|
export const sqlite3_os_end: () => number;
|
|
869
913
|
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
914
|
export const wasm_bindgen__convert__closures_____invoke__hf3c68230db5190d1: (a: number, b: number, c: any) => void;
|
|
873
915
|
export const wasm_bindgen__closure__destroy__h4d2826f8cf3948a6: (a: number, b: number) => void;
|
|
916
|
+
export const wasm_bindgen__convert__closures_____invoke__h69e5fefe6cfc2af1: (a: number, b: number, c: any) => void;
|
|
917
|
+
export const wasm_bindgen__closure__destroy__h8554e479c7e37116: (a: number, b: number) => void;
|
|
874
918
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
875
919
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
876
920
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
@@ -41,8 +41,55 @@ 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;
|
|
44
45
|
/**
|
|
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
|
+
toString(): string;
|
|
57
|
+
equals(other: Uuid): boolean;
|
|
58
|
+
hashCode(): bigint;
|
|
59
|
+
uniffiDestroy(): void;
|
|
60
|
+
static instanceOf(obj_: any): obj_ is Uuid;
|
|
61
|
+
}
|
|
62
|
+
type DeviceIdLike = DeviceId;
|
|
63
|
+
/**
|
|
64
|
+
* A Device ID.
|
|
65
|
+
*/
|
|
66
|
+
export declare class DeviceId extends UniffiAbstractObject {
|
|
67
|
+
readonly [uniffiTypeNameSymbol] = "DeviceId";
|
|
68
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
69
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
70
|
+
/**
|
|
71
|
+
* New device id from an unsigned 64-bit integer.
|
|
72
|
+
*/
|
|
73
|
+
constructor(id: bigint);
|
|
74
|
+
/**
|
|
75
|
+
* Construct a `DeviceId` from 8 bytes encoded as a hex string.
|
|
76
|
+
*/
|
|
77
|
+
static fromHexString(hexString: string): DeviceIdLike;
|
|
78
|
+
/**
|
|
79
|
+
* Encode the `DeviceId` as a 16-character lowercase hex string, with leading 0s.
|
|
80
|
+
*/
|
|
81
|
+
toHexString(): string;
|
|
82
|
+
/**
|
|
83
|
+
* Get the number corresponding to this `DeviceId`.
|
|
84
|
+
*/
|
|
85
|
+
toU64(): bigint;
|
|
86
|
+
equals(other: DeviceId): boolean;
|
|
87
|
+
hashCode(): bigint;
|
|
88
|
+
uniffiDestroy(): void;
|
|
89
|
+
static instanceOf(obj_: any): obj_ is DeviceId;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* This directly represents a `ClientId` of the `<userid>:<device-id>@<domain>` format.
|
|
46
93
|
* Instantiate via [ClientId::deserialize].
|
|
47
94
|
*/
|
|
48
95
|
export type DeserializedClientId = {
|
|
@@ -51,13 +98,13 @@ export type DeserializedClientId = {
|
|
|
51
98
|
*/
|
|
52
99
|
clientId: ClientIdLike;
|
|
53
100
|
/**
|
|
54
|
-
* The
|
|
101
|
+
* The user id component
|
|
55
102
|
*/
|
|
56
|
-
userId:
|
|
103
|
+
userId: UuidLike;
|
|
57
104
|
/**
|
|
58
|
-
*
|
|
105
|
+
* The device id component
|
|
59
106
|
*/
|
|
60
|
-
deviceId:
|
|
107
|
+
deviceId: DeviceIdLike;
|
|
61
108
|
/**
|
|
62
109
|
* The domain
|
|
63
110
|
*/
|
|
@@ -70,6 +117,7 @@ export declare const DeserializedClientId: Readonly<{
|
|
|
70
117
|
create: (partial: Partial<DeserializedClientId> & Required<Omit<DeserializedClientId, never>>) => DeserializedClientId;
|
|
71
118
|
new: (partial: Partial<DeserializedClientId> & Required<Omit<DeserializedClientId, never>>) => DeserializedClientId;
|
|
72
119
|
defaults: () => Partial<DeserializedClientId>;
|
|
120
|
+
toString(self_: DeserializedClientId): string;
|
|
73
121
|
}>;
|
|
74
122
|
type ClientIdLike = ClientId;
|
|
75
123
|
/**
|
|
@@ -86,13 +134,13 @@ export declare class ClientId extends UniffiAbstractObject {
|
|
|
86
134
|
/**
|
|
87
135
|
* Create a new client id.
|
|
88
136
|
*/
|
|
89
|
-
constructor(userId:
|
|
137
|
+
constructor(userId: UuidLike, deviceId: DeviceIdLike, domain: string);
|
|
90
138
|
/**
|
|
91
139
|
* Copy the wrapped data into a new byte array.
|
|
92
140
|
*/
|
|
93
141
|
copyBytes(): Uint8Array;
|
|
94
142
|
/**
|
|
95
|
-
* Copy the wrapped data into a direct representation of the `<
|
|
143
|
+
* Copy the wrapped data into a direct representation of the `<user-id>:<device-id>@<domain>` format.
|
|
96
144
|
*/
|
|
97
145
|
deserialize(): DeserializedClientId;
|
|
98
146
|
equals(other: ClientId): boolean;
|
|
@@ -3091,9 +3139,9 @@ declare class CoreCryptoContext extends UniffiAbstractObject {
|
|
|
3091
3139
|
/**
|
|
3092
3140
|
* Returns the E2EI identity claims for the specified users in the given conversation, grouped by user ID.
|
|
3093
3141
|
*/
|
|
3094
|
-
getUserIdentities(conversationId: ConversationIdLike, userIds: Array<
|
|
3142
|
+
getUserIdentities(conversationId: ConversationIdLike, userIds: Array<UuidLike>, asyncOpts_?: {
|
|
3095
3143
|
signal: AbortSignal;
|
|
3096
|
-
}): Promise<Map<
|
|
3144
|
+
}): Promise<Map<UuidLike, Array<WireIdentity>>>;
|
|
3097
3145
|
/**
|
|
3098
3146
|
* Joins an existing conversation by constructing an external commit from the given group info.
|
|
3099
3147
|
*/
|
|
@@ -3480,9 +3528,9 @@ declare class CoreCryptoFfi extends UniffiAbstractObject {
|
|
|
3480
3528
|
/**
|
|
3481
3529
|
* Returns the E2EI identity claims for the specified users in the given conversation, grouped by user ID.
|
|
3482
3530
|
*/
|
|
3483
|
-
getUserIdentities(conversationId: ConversationIdLike, userIds: Array<
|
|
3531
|
+
getUserIdentities(conversationId: ConversationIdLike, userIds: Array<UuidLike>, asyncOpts_?: {
|
|
3484
3532
|
signal: AbortSignal;
|
|
3485
|
-
}): Promise<Map<
|
|
3533
|
+
}): Promise<Map<UuidLike, Array<WireIdentity>>>;
|
|
3486
3534
|
/**
|
|
3487
3535
|
* Returns true if history sharing is currently enabled for the given conversation.
|
|
3488
3536
|
*/
|
|
@@ -3812,10 +3860,10 @@ declare class X509CredentialAcquisition$1 extends X509CredentialAcquisition {
|
|
|
3812
3860
|
/**
|
|
3813
3861
|
* Initialises the wasm module necessary for running core crypto.
|
|
3814
3862
|
*
|
|
3815
|
-
* @param
|
|
3863
|
+
* @param path to the wasm module, e.g., on the local file system or a remote URL.
|
|
3816
3864
|
* If omitted the module is assumed be located at the root of the core crypto module.
|
|
3817
3865
|
*/
|
|
3818
|
-
export declare function initWasmModule(
|
|
3866
|
+
export declare function initWasmModule(path?: string | undefined): Promise<void>;
|
|
3819
3867
|
|
|
3820
3868
|
export {
|
|
3821
3869
|
CoreCryptoContext$1 as CoreCryptoContext,
|