@signalapp/libsignal-client 0.39.1 → 0.39.2

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/Native.d.ts CHANGED
@@ -18,11 +18,30 @@ interface LookupResponseEntry {
18
18
  readonly pni: string | undefined;
19
19
  }
20
20
 
21
+ interface SealedSenderMultiRecipientMessageRecipient {
22
+ deviceIds: number[];
23
+ registrationIds: number[];
24
+ rangeOffset: number;
25
+ rangeLen: number;
26
+ }
27
+
28
+ interface SealedSenderMultiRecipientMessage {
29
+ recipientMap: {
30
+ [serviceId: string]: SealedSenderMultiRecipientMessageRecipient;
31
+ };
32
+ excludedRecipients: string[];
33
+ offsetOfSharedData: number;
34
+ }
35
+
21
36
  export abstract class IdentityKeyStore {
22
37
  _getIdentityKey(): Promise<PrivateKey>;
23
38
  _getLocalRegistrationId(): Promise<number>;
24
39
  _saveIdentity(name: ProtocolAddress, key: PublicKey): Promise<boolean>;
25
- _isTrustedIdentity(name: ProtocolAddress, key: PublicKey, sending: boolean): Promise<boolean>;
40
+ _isTrustedIdentity(
41
+ name: ProtocolAddress,
42
+ key: PublicKey,
43
+ sending: boolean
44
+ ): Promise<boolean>;
26
45
  _getIdentity(name: ProtocolAddress): Promise<PublicKey | null>;
27
46
  }
28
47
 
@@ -38,19 +57,32 @@ export abstract class PreKeyStore {
38
57
  }
39
58
 
40
59
  export abstract class SignedPreKeyStore {
41
- _saveSignedPreKey(signedPreKeyId: number, record: SignedPreKeyRecord): Promise<void>;
60
+ _saveSignedPreKey(
61
+ signedPreKeyId: number,
62
+ record: SignedPreKeyRecord
63
+ ): Promise<void>;
42
64
  _getSignedPreKey(signedPreKeyId: number): Promise<SignedPreKeyRecord>;
43
65
  }
44
66
 
45
67
  export abstract class KyberPreKeyStore {
46
- _saveKyberPreKey(kyberPreKeyId: number, record: KyberPreKeyRecord): Promise<void>;
68
+ _saveKyberPreKey(
69
+ kyberPreKeyId: number,
70
+ record: KyberPreKeyRecord
71
+ ): Promise<void>;
47
72
  _getKyberPreKey(kyberPreKeyId: number): Promise<KyberPreKeyRecord>;
48
73
  _markKyberPreKeyUsed(kyberPreKeyId: number): Promise<void>;
49
74
  }
50
75
 
51
76
  export abstract class SenderKeyStore {
52
- _saveSenderKey(sender: ProtocolAddress, distributionId: Uuid, record: SenderKeyRecord): Promise<void>;
53
- _getSenderKey(sender: ProtocolAddress, distributionId: Uuid): Promise<SenderKeyRecord | null>;
77
+ _saveSenderKey(
78
+ sender: ProtocolAddress,
79
+ distributionId: Uuid,
80
+ record: SenderKeyRecord
81
+ ): Promise<void>;
82
+ _getSenderKey(
83
+ sender: ProtocolAddress,
84
+ distributionId: Uuid
85
+ ): Promise<SenderKeyRecord | null>;
54
86
  }
55
87
 
56
88
  export abstract class InputStream {
@@ -58,11 +90,10 @@ export abstract class InputStream {
58
90
  _skip(amount: number): Promise<void>;
59
91
  }
60
92
 
61
- export abstract class SyncInputStream extends Buffer {
62
- }
93
+ export abstract class SyncInputStream extends Buffer {}
63
94
 
64
95
  interface Wrapper<T> {
65
- readonly _nativeHandle: T
96
+ readonly _nativeHandle: T;
66
97
  }
67
98
 
68
99
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -280,6 +311,7 @@ export function SealedSenderDecryptionResult_GetDeviceId(obj: Wrapper<SealedSend
280
311
  export function SealedSenderDecryptionResult_GetSenderE164(obj: Wrapper<SealedSenderDecryptionResult>): string | null;
281
312
  export function SealedSenderDecryptionResult_GetSenderUuid(obj: Wrapper<SealedSenderDecryptionResult>): string;
282
313
  export function SealedSenderDecryptionResult_Message(obj: Wrapper<SealedSenderDecryptionResult>): Buffer;
314
+ export function SealedSenderMultiRecipientMessage_Parse(buffer: Buffer): SealedSenderMultiRecipientMessage;
283
315
  export function SealedSender_DecryptMessage(message: Buffer, trustRoot: Wrapper<PublicKey>, timestamp: Timestamp, localE164: string | null, localUuid: string, localDeviceId: number, sessionStore: SessionStore, identityStore: IdentityKeyStore, prekeyStore: PreKeyStore, signedPrekeyStore: SignedPreKeyStore, kyberPrekeyStore: KyberPreKeyStore): Promise<SealedSenderDecryptionResult>;
284
316
  export function SealedSender_DecryptToUsmc(ctext: Buffer, identityStore: IdentityKeyStore): Promise<UnidentifiedSenderMessageContent>;
285
317
  export function SealedSender_Encrypt(destination: Wrapper<ProtocolAddress>, content: Wrapper<UnidentifiedSenderMessageContent>, identityKeyStore: IdentityKeyStore): Promise<Buffer>;
@@ -430,7 +462,7 @@ export function UuidCiphertext_CheckValidContents(buffer: Buffer): void;
430
462
  export function ValidatingMac_Finalize(mac: Wrapper<ValidatingMac>): number;
431
463
  export function ValidatingMac_Initialize(key: Buffer, chunkSize: number, digests: Buffer): ValidatingMac;
432
464
  export function ValidatingMac_Update(mac: Wrapper<ValidatingMac>, bytes: Buffer, offset: number, length: number): number;
433
- export function WebpSanitizer_Sanitize(input: SyncInputStream, len: Buffer): void;
465
+ export function WebpSanitizer_Sanitize(input: SyncInputStream): void;
434
466
  export function initLogger(maxLevel: LogLevel, callback: (level: LogLevel, target: string, file: string | null, line: number | null, message: string) => void): void
435
467
  interface Aes256GcmSiv { readonly __type: unique symbol; }
436
468
  interface AuthCredential { readonly __type: unique symbol; }
@@ -0,0 +1,51 @@
1
+ /// <reference types="node" />
2
+ import * as Native from '../Native';
3
+ /**
4
+ * A single recipient parsed from a {@link SealedSenderMultiRecipientMessage}.
5
+ *
6
+ * The `deviceIds` and `registrationIds` arrays are parallel (so the first entry of each belongs to
7
+ * one device, the second to another, and so on).
8
+ */
9
+ export interface Recipient {
10
+ deviceIds: number[];
11
+ registrationIds: number[];
12
+ }
13
+ /**
14
+ * A parsed Sealed Sender v2 "SentMessage", ready to be fanned out to multiple recipients.
15
+ *
16
+ * The implementation assumes that every device for a particular recipient should use the same key
17
+ * material.
18
+ */
19
+ export default class SealedSenderMultiRecipientMessage {
20
+ readonly _buffer: Buffer;
21
+ readonly _recipientMap: {
22
+ [serviceId: string]: Native.SealedSenderMultiRecipientMessageRecipient;
23
+ };
24
+ readonly _excludedRecipients: string[];
25
+ readonly _offsetOfSharedData: number;
26
+ constructor(buffer: Buffer);
27
+ /**
28
+ * Returns the recipients parsed from the message, keyed by service ID string.
29
+ *
30
+ * The result has no keys other than the service IDs of the recipients.
31
+ */
32
+ recipientsByServiceIdString(): Readonly<{
33
+ [serviceId: string]: Recipient;
34
+ }>;
35
+ /**
36
+ * Returns the service IDs of recipients excluded from receiving the message.
37
+ *
38
+ * This is enforced to be disjoint from the recipients in {@link recipientsByServiceIdString}; it
39
+ * may be used for authorization purposes or just to check that certain recipients were
40
+ * deliberately excluded rather than accidentally.
41
+ */
42
+ excludedRecipientServiceIdStrings(): ReadonlyArray<string>;
43
+ /**
44
+ * Returns the Sealed Sender V2 "ReceivedMessage" payload for delivery to a particular recipient.
45
+ *
46
+ * `recipient` must be one of the recipients in the map returned by
47
+ * {@link recipientsByServiceIdString}. The same payload should be sent to all of the recipient's
48
+ * devices.
49
+ */
50
+ messageForRecipient(recipient: Recipient): Buffer;
51
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2024 Signal Messenger, LLC.
4
+ // SPDX-License-Identifier: AGPL-3.0-only
5
+ //
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const Native = require("../Native");
8
+ /**
9
+ * A parsed Sealed Sender v2 "SentMessage", ready to be fanned out to multiple recipients.
10
+ *
11
+ * The implementation assumes that every device for a particular recipient should use the same key
12
+ * material.
13
+ */
14
+ class SealedSenderMultiRecipientMessage {
15
+ constructor(buffer) {
16
+ const { recipientMap, excludedRecipients, offsetOfSharedData } = Native.SealedSenderMultiRecipientMessage_Parse(buffer);
17
+ this._buffer = buffer;
18
+ this._recipientMap = recipientMap;
19
+ this._excludedRecipients = excludedRecipients;
20
+ this._offsetOfSharedData = offsetOfSharedData;
21
+ }
22
+ /**
23
+ * Returns the recipients parsed from the message, keyed by service ID string.
24
+ *
25
+ * The result has no keys other than the service IDs of the recipients.
26
+ */
27
+ recipientsByServiceIdString() {
28
+ return this._recipientMap;
29
+ }
30
+ /**
31
+ * Returns the service IDs of recipients excluded from receiving the message.
32
+ *
33
+ * This is enforced to be disjoint from the recipients in {@link recipientsByServiceIdString}; it
34
+ * may be used for authorization purposes or just to check that certain recipients were
35
+ * deliberately excluded rather than accidentally.
36
+ */
37
+ excludedRecipientServiceIdStrings() {
38
+ return this._excludedRecipients;
39
+ }
40
+ /**
41
+ * Returns the Sealed Sender V2 "ReceivedMessage" payload for delivery to a particular recipient.
42
+ *
43
+ * `recipient` must be one of the recipients in the map returned by
44
+ * {@link recipientsByServiceIdString}. The same payload should be sent to all of the recipient's
45
+ * devices.
46
+ */
47
+ messageForRecipient(recipient) {
48
+ const nativeRecipient = recipient;
49
+ return Buffer.concat([
50
+ Buffer.of(0x22),
51
+ this._buffer.subarray(nativeRecipient.rangeOffset, nativeRecipient.rangeOffset + nativeRecipient.rangeLen),
52
+ this._buffer.subarray(this._offsetOfSharedData),
53
+ ]);
54
+ }
55
+ }
56
+ exports.default = SealedSenderMultiRecipientMessage;
57
+ //# sourceMappingURL=SealedSenderMultiRecipientMessage.js.map
@@ -14,7 +14,6 @@ exports.sanitize = void 0;
14
14
  * @module WebpSanitizer
15
15
  */
16
16
  const Native = require("../Native");
17
- const BigIntUtil_1 = require("./zkgroup/internal/BigIntUtil");
18
17
  /**
19
18
  * Sanitize a WebP input.
20
19
  *
@@ -25,7 +24,7 @@ const BigIntUtil_1 = require("./zkgroup/internal/BigIntUtil");
25
24
  * @throws UnsupportedMediaInputError If the input could not be parsed because it's unsupported in some way.
26
25
  */
27
26
  function sanitize(input) {
28
- Native.WebpSanitizer_Sanitize(input, (0, BigIntUtil_1.bufferFromBigUInt64BE)(BigInt(input.length)));
27
+ Native.WebpSanitizer_Sanitize(input);
29
28
  }
30
29
  exports.sanitize = sanitize;
31
30
  //# sourceMappingURL=WebpSanitizer.js.map
@@ -669,7 +669,7 @@ For more information on this, and how to apply and follow the GNU AGPL, see
669
669
 
670
670
  ```
671
671
 
672
- ## attest 0.1.0, device-transfer 0.1.0, libsignal-bridge 0.1.0, libsignal-bridge-macros 0.1.0, libsignal-core 0.1.0, libsignal-ffi 0.39.1, libsignal-jni 0.39.1, libsignal-message-backup 0.1.0, libsignal-net 0.1.0, libsignal-node 0.39.1, libsignal-protocol 0.1.0, libsignal-svr3 0.1.0, poksho 0.7.0, signal-crypto 0.1.0, signal-media 0.1.0, signal-neon-futures 0.1.0, signal-neon-futures-tests 0.1.0, signal-pin 0.1.0, usernames 0.1.0, zkcredential 0.1.0, zkgroup 0.9.0
672
+ ## attest 0.1.0, device-transfer 0.1.0, libsignal-bridge 0.1.0, libsignal-bridge-macros 0.1.0, libsignal-core 0.1.0, libsignal-ffi 0.39.2, libsignal-jni 0.39.2, libsignal-message-backup 0.1.0, libsignal-net 0.1.0, libsignal-node 0.39.2, libsignal-protocol 0.1.0, libsignal-svr3 0.1.0, poksho 0.7.0, signal-crypto 0.1.0, signal-media 0.1.0, signal-neon-futures 0.1.0, signal-neon-futures-tests 0.1.0, signal-pin 0.1.0, usernames 0.1.0, zkcredential 0.1.0, zkgroup 0.9.0
673
673
 
674
674
  ```
675
675
  GNU AFFERO GENERAL PUBLIC LICENSE
@@ -1118,7 +1118,7 @@ You should also get your employer (if you work as a programmer) or school, if an
1118
1118
 
1119
1119
  ```
1120
1120
 
1121
- ## clang-sys 1.6.1
1121
+ ## clang-sys 1.7.0
1122
1122
 
1123
1123
  ```
1124
1124
 
@@ -1533,7 +1533,7 @@ You should also get your employer (if you work as a programmer) or school, if an
1533
1533
 
1534
1534
  ```
1535
1535
 
1536
- ## ryu 1.0.15
1536
+ ## ryu 1.0.16
1537
1537
 
1538
1538
  ```
1539
1539
  Apache License
@@ -1715,7 +1715,7 @@ END OF TERMS AND CONDITIONS
1715
1715
 
1716
1716
  ```
1717
1717
 
1718
- ## prost 0.12.1, prost-build 0.12.1, prost-derive 0.12.1, prost-types 0.12.1
1718
+ ## prost 0.12.3, prost-build 0.12.3, prost-derive 0.12.3, prost-types 0.12.3
1719
1719
 
1720
1720
  ```
1721
1721
  Apache License
@@ -2324,7 +2324,7 @@ express Statement of Purpose.
2324
2324
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
2325
2325
  ```
2326
2326
 
2327
- ## libloading 0.6.7, libloading 0.7.4
2327
+ ## libloading 0.6.7, libloading 0.8.1
2328
2328
 
2329
2329
  ```
2330
2330
  Copyright © 2015, Simonas Kazlauskas
@@ -2342,7 +2342,7 @@ THIS SOFTWARE.
2342
2342
 
2343
2343
  ```
2344
2344
 
2345
- ## windows-core 0.51.1, windows-sys 0.45.0, windows-sys 0.48.0, windows-sys 0.52.0, windows-targets 0.42.2, windows-targets 0.48.5, windows-targets 0.52.0, windows_aarch64_msvc 0.42.2, windows_aarch64_msvc 0.48.5, windows_aarch64_msvc 0.52.0, windows_x86_64_gnu 0.48.5, windows_x86_64_gnu 0.52.0, windows_x86_64_msvc 0.42.2, windows_x86_64_msvc 0.48.5, windows_x86_64_msvc 0.52.0
2345
+ ## windows-core 0.52.0, windows-sys 0.45.0, windows-sys 0.48.0, windows-sys 0.52.0, windows-targets 0.42.2, windows-targets 0.48.5, windows-targets 0.52.0, windows_aarch64_msvc 0.42.2, windows_aarch64_msvc 0.48.5, windows_aarch64_msvc 0.52.0, windows_x86_64_gnu 0.48.5, windows_x86_64_gnu 0.52.0, windows_x86_64_msvc 0.42.2, windows_x86_64_msvc 0.48.5, windows_x86_64_msvc 0.52.0
2346
2346
 
2347
2347
  ```
2348
2348
  MIT License
@@ -2464,7 +2464,7 @@ DEALINGS IN THE SOFTWARE.
2464
2464
 
2465
2465
  ```
2466
2466
 
2467
- ## core-foundation 0.9.3, core-foundation-sys 0.8.4
2467
+ ## core-foundation 0.9.4, core-foundation-sys 0.8.6
2468
2468
 
2469
2469
  ```
2470
2470
  Copyright (c) 2012-2013 Mozilla Foundation
@@ -2521,7 +2521,7 @@ SOFTWARE.
2521
2521
 
2522
2522
  ```
2523
2523
 
2524
- ## form_urlencoded 1.2.0
2524
+ ## form_urlencoded 1.2.1
2525
2525
 
2526
2526
  ```
2527
2527
  Copyright (c) 2013-2016 The rust-url developers
@@ -2552,7 +2552,7 @@ DEALINGS IN THE SOFTWARE.
2552
2552
 
2553
2553
  ```
2554
2554
 
2555
- ## idna 0.4.0, percent-encoding 2.3.0, url 2.4.1
2555
+ ## idna 0.5.0, percent-encoding 2.3.1, url 2.5.0
2556
2556
 
2557
2557
  ```
2558
2558
  Copyright (c) 2013-2022 The rust-url developers
@@ -2677,7 +2677,7 @@ DEALINGS IN THE SOFTWARE.
2677
2677
 
2678
2678
  ```
2679
2679
 
2680
- ## mio 0.8.9
2680
+ ## mio 0.8.10
2681
2681
 
2682
2682
  ```
2683
2683
  Copyright (c) 2014 Carl Lerche and other MIO contributors
@@ -2765,7 +2765,7 @@ DEALINGS IN THE SOFTWARE.
2765
2765
 
2766
2766
  ```
2767
2767
 
2768
- ## uuid 1.5.0
2768
+ ## uuid 1.6.1
2769
2769
 
2770
2770
  ```
2771
2771
  Copyright (c) 2014 The Rust Project Developers
@@ -2823,7 +2823,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2823
2823
 
2824
2824
  ```
2825
2825
 
2826
- ## libc 0.2.149
2826
+ ## libc 0.2.152
2827
2827
 
2828
2828
  ```
2829
2829
  Copyright (c) 2014-2020 The Rust Project Developers
@@ -2854,7 +2854,7 @@ DEALINGS IN THE SOFTWARE.
2854
2854
 
2855
2855
  ```
2856
2856
 
2857
- ## hyper 1.0.0-rc.4
2857
+ ## hyper 1.1.0
2858
2858
 
2859
2859
  ```
2860
2860
  Copyright (c) 2014-2021 Sean McArthur
@@ -2986,7 +2986,7 @@ SOFTWARE.
2986
2986
 
2987
2987
  ```
2988
2988
 
2989
- ## tempfile 3.8.1
2989
+ ## tempfile 3.9.0
2990
2990
 
2991
2991
  ```
2992
2992
  Copyright (c) 2015 Steven Allen
@@ -3017,7 +3017,7 @@ DEALINGS IN THE SOFTWARE.
3017
3017
 
3018
3018
  ```
3019
3019
 
3020
- ## object 0.32.1
3020
+ ## object 0.32.2
3021
3021
 
3022
3022
  ```
3023
3023
  Copyright (c) 2015 The Gimli Developers
@@ -3048,7 +3048,7 @@ DEALINGS IN THE SOFTWARE.
3048
3048
 
3049
3049
  ```
3050
3050
 
3051
- ## gimli 0.28.0, heck 0.3.3, heck 0.4.1, peeking_take_while 0.1.2, unicode-bidi 0.3.13, unicode-normalization 0.1.22, unicode-segmentation 1.10.1
3051
+ ## gimli 0.28.1, heck 0.3.3, heck 0.4.1, peeking_take_while 0.1.2, unicode-bidi 0.3.14, unicode-normalization 0.1.22, unicode-segmentation 1.10.1
3052
3052
 
3053
3053
  ```
3054
3054
  Copyright (c) 2015 The Rust Project Developers
@@ -3129,7 +3129,7 @@ THE SOFTWARE.
3129
3129
 
3130
3130
  ```
3131
3131
 
3132
- ## schannel 0.1.22
3132
+ ## schannel 0.1.23
3133
3133
 
3134
3134
  ```
3135
3135
  Copyright (c) 2015 steffengy
@@ -3255,7 +3255,7 @@ SOFTWARE.
3255
3255
 
3256
3256
  ```
3257
3257
 
3258
- ## hkdf 0.12.3
3258
+ ## hkdf 0.12.4
3259
3259
 
3260
3260
  ```
3261
3261
  Copyright (c) 2015-2018 Vlad Filippov
@@ -3287,7 +3287,7 @@ DEALINGS IN THE SOFTWARE.
3287
3287
 
3288
3288
  ```
3289
3289
 
3290
- ## poly1305 0.7.2, poly1305 0.8.0
3290
+ ## poly1305 0.8.0
3291
3291
 
3292
3292
  ```
3293
3293
  Copyright (c) 2015-2019 RustCrypto Developers
@@ -3344,7 +3344,7 @@ THE SOFTWARE.
3344
3344
 
3345
3345
  ```
3346
3346
 
3347
- ## futures 0.3.29, futures-channel 0.3.29, futures-core 0.3.29, futures-executor 0.3.29, futures-io 0.3.29, futures-macro 0.3.29, futures-sink 0.3.29, futures-task 0.3.29, futures-util 0.3.29
3347
+ ## futures 0.3.30, futures-channel 0.3.30, futures-core 0.3.30, futures-executor 0.3.30, futures-io 0.3.30, futures-macro 0.3.30, futures-sink 0.3.30, futures-task 0.3.30, futures-util 0.3.30
3348
3348
 
3349
3349
  ```
3350
3350
  Copyright (c) 2016 Alex Crichton
@@ -3376,7 +3376,7 @@ DEALINGS IN THE SOFTWARE.
3376
3376
 
3377
3377
  ```
3378
3378
 
3379
- ## hashbrown 0.12.3, hashbrown 0.14.2
3379
+ ## hashbrown 0.12.3, hashbrown 0.14.3
3380
3380
 
3381
3381
  ```
3382
3382
  Copyright (c) 2016 Amanieu d'Antras
@@ -3469,7 +3469,7 @@ DEALINGS IN THE SOFTWARE.
3469
3469
 
3470
3470
  ```
3471
3471
 
3472
- ## rustls-native-certs 0.6.3, rustls-pemfile 1.0.3
3472
+ ## rustls-native-certs 0.6.3, rustls-pemfile 1.0.4
3473
3473
 
3474
3474
  ```
3475
3475
  Copyright (c) 2016 Joseph Birr-Pixton <jpixton@gmail.com>
@@ -3531,31 +3531,6 @@ DEALINGS IN THE SOFTWARE.
3531
3531
 
3532
3532
  ```
3533
3533
 
3534
- ## httpdate 1.0.3
3535
-
3536
- ```
3537
- Copyright (c) 2016 Pyfisch
3538
-
3539
- Permission is hereby granted, free of charge, to any person obtaining a copy
3540
- of this software and associated documentation files (the "Software"), to deal
3541
- in the Software without restriction, including without limitation the rights
3542
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3543
- copies of the Software, and to permit persons to whom the Software is
3544
- furnished to do so, subject to the following conditions:
3545
-
3546
- The above copyright notice and this permission notice shall be included in
3547
- all copies or substantial portions of the Software.
3548
-
3549
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3550
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3551
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3552
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3553
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3554
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3555
- THE SOFTWARE.
3556
-
3557
- ```
3558
-
3559
3534
  ## semver-parser 0.7.0
3560
3535
 
3561
3536
  ```
@@ -3830,7 +3805,7 @@ DEALINGS IN THE SOFTWARE.
3830
3805
 
3831
3806
  ```
3832
3807
 
3833
- ## cipher 0.3.0, cipher 0.4.4
3808
+ ## cipher 0.4.4
3834
3809
 
3835
3810
  ```
3836
3811
  Copyright (c) 2016-2020 RustCrypto Developers
@@ -3861,7 +3836,7 @@ DEALINGS IN THE SOFTWARE.
3861
3836
 
3862
3837
  ```
3863
3838
 
3864
- ## tungstenite 0.19.0
3839
+ ## tungstenite 0.21.0
3865
3840
 
3866
3841
  ```
3867
3842
  Copyright (c) 2017 Alexey Galakhov
@@ -3918,7 +3893,7 @@ DEALINGS IN THE SOFTWARE.
3918
3893
 
3919
3894
  ```
3920
3895
 
3921
- ## bitstream-io 1.8.0
3896
+ ## bitstream-io 1.10.0
3922
3897
 
3923
3898
  ```
3924
3899
  Copyright (c) 2017 Brian Langenberger
@@ -3980,7 +3955,7 @@ DEALINGS IN THE SOFTWARE.
3980
3955
 
3981
3956
  ```
3982
3957
 
3983
- ## tokio-tungstenite 0.19.0
3958
+ ## tokio-tungstenite 0.21.0
3984
3959
 
3985
3960
  ```
3986
3961
  Copyright (c) 2017 Daniel Abramov
@@ -4006,30 +3981,6 @@ THE SOFTWARE.
4006
3981
 
4007
3982
  ```
4008
3983
 
4009
- ## memoffset 0.9.0
4010
-
4011
- ```
4012
- Copyright (c) 2017 Gilad Naaman
4013
-
4014
- Permission is hereby granted, free of charge, to any person obtaining a copy
4015
- of this software and associated documentation files (the "Software"), to deal
4016
- in the Software without restriction, including without limitation the rights
4017
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
4018
- copies of the Software, and to permit persons to whom the Software is
4019
- furnished to do so, subject to the following conditions:
4020
-
4021
- The above copyright notice and this permission notice shall be included in all
4022
- copies or substantial portions of the Software.
4023
-
4024
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4025
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4026
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
4027
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4028
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4029
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4030
- SOFTWARE.
4031
- ```
4032
-
4033
3984
  ## foreign-types 0.5.0, foreign-types-macros 0.2.3, foreign-types-shared 0.3.1
4034
3985
 
4035
3986
  ```
@@ -4055,7 +4006,7 @@ SOFTWARE.
4055
4006
 
4056
4007
  ```
4057
4008
 
4058
- ## h2 0.3.21
4009
+ ## h2 0.4.1
4059
4010
 
4060
4011
  ```
4061
4012
  Copyright (c) 2017 h2 authors
@@ -4086,7 +4037,7 @@ DEALINGS IN THE SOFTWARE.
4086
4037
 
4087
4038
  ```
4088
4039
 
4089
- ## http 0.2.9
4040
+ ## http 1.0.0
4090
4041
 
4091
4042
  ```
4092
4043
  Copyright (c) 2017 http-rs authors
@@ -4148,7 +4099,7 @@ DEALINGS IN THE SOFTWARE.
4148
4099
 
4149
4100
  ```
4150
4101
 
4151
- ## aes 0.7.5, aes 0.8.3, ctr 0.7.0
4102
+ ## aes 0.8.3
4152
4103
 
4153
4104
  ```
4154
4105
  Copyright (c) 2018 Artyom Pavlov
@@ -4304,34 +4255,7 @@ DEALINGS IN THE SOFTWARE.
4304
4255
 
4305
4256
  ```
4306
4257
 
4307
- ## try-lock 0.2.4
4308
-
4309
- ```
4310
- Copyright (c) 2018 Sean McArthur
4311
- Copyright (c) 2016 Alex Crichton
4312
-
4313
- Permission is hereby granted, free of charge, to any person obtaining a copy
4314
- of this software and associated documentation files (the "Software"), to deal
4315
- in the Software without restriction, including without limitation the rights
4316
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
4317
- copies of the Software, and to permit persons to whom the Software is
4318
- furnished to do so, subject to the following conditions:
4319
-
4320
- The above copyright notice and this permission notice shall be included in
4321
- all copies or substantial portions of the Software.
4322
-
4323
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4324
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4325
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
4326
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4327
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4328
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
4329
- THE SOFTWARE.
4330
-
4331
-
4332
- ```
4333
-
4334
- ## smallvec 1.11.1
4258
+ ## smallvec 1.11.2
4335
4259
 
4336
4260
  ```
4337
4261
  Copyright (c) 2018 The Servo Project Developers
@@ -4450,7 +4374,7 @@ DEALINGS IN THE SOFTWARE.
4450
4374
 
4451
4375
  ```
4452
4376
 
4453
- ## platforms 3.2.0
4377
+ ## platforms 3.3.0
4454
4378
 
4455
4379
  ```
4456
4380
  Copyright (c) 2018-2020 The Rust Secure Code Working Group
@@ -4513,10 +4437,38 @@ DEALINGS IN THE SOFTWARE.
4513
4437
 
4514
4438
  ```
4515
4439
 
4516
- ## slab 0.4.9
4440
+ ## try-lock 0.2.5
4517
4441
 
4518
4442
  ```
4519
- Copyright (c) 2019 Carl Lerche
4443
+ Copyright (c) 2018-2023 Sean McArthur
4444
+ Copyright (c) 2016 Alex Crichton
4445
+
4446
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4447
+ of this software and associated documentation files (the "Software"), to deal
4448
+ in the Software without restriction, including without limitation the rights
4449
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
4450
+ copies of the Software, and to permit persons to whom the Software is
4451
+ furnished to do so, subject to the following conditions:
4452
+
4453
+ The above copyright notice and this permission notice shall be included in
4454
+ all copies or substantial portions of the Software.
4455
+
4456
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4457
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4458
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
4459
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4460
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4461
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
4462
+ THE SOFTWARE.
4463
+
4464
+
4465
+ ```
4466
+
4467
+ ## getrandom 0.2.12
4468
+
4469
+ ```
4470
+ Copyright (c) 2018-2024 The rust-random Project Developers
4471
+ Copyright (c) 2014 The Rust Project Developers
4520
4472
 
4521
4473
  Permission is hereby granted, free of charge, to any
4522
4474
  person obtaining a copy of this software and associated
@@ -4544,10 +4496,10 @@ DEALINGS IN THE SOFTWARE.
4544
4496
 
4545
4497
  ```
4546
4498
 
4547
- ## chacha20 0.8.2
4499
+ ## slab 0.4.9
4548
4500
 
4549
4501
  ```
4550
- Copyright (c) 2019 Eric McCorkle
4502
+ Copyright (c) 2019 Carl Lerche
4551
4503
 
4552
4504
  Permission is hereby granted, free of charge, to any
4553
4505
  person obtaining a copy of this software and associated
@@ -4575,7 +4527,7 @@ DEALINGS IN THE SOFTWARE.
4575
4527
 
4576
4528
  ```
4577
4529
 
4578
- ## http-body 1.0.0-rc.2, http-body-util 0.1.0-rc.3
4530
+ ## http-body 1.0.0, http-body-util 0.1.0
4579
4531
 
4580
4532
  ```
4581
4533
  Copyright (c) 2019 Hyper Contributors
@@ -4606,7 +4558,7 @@ DEALINGS IN THE SOFTWARE.
4606
4558
 
4607
4559
  ```
4608
4560
 
4609
- ## ghash 0.4.4, ghash 0.5.0, polyval 0.5.3
4561
+ ## ghash 0.5.0
4610
4562
 
4611
4563
  ```
4612
4564
  Copyright (c) 2019 RustCrypto Developers
@@ -4692,7 +4644,7 @@ DEALINGS IN THE SOFTWARE.
4692
4644
 
4693
4645
  ```
4694
4646
 
4695
- ## aes-gcm 0.9.2, aes-gcm-siv 0.11.1, chacha20poly1305 0.10.1, chacha20poly1305 0.9.1
4647
+ ## aes-gcm 0.10.3, aes-gcm-siv 0.11.1, chacha20poly1305 0.10.1
4696
4648
 
4697
4649
  ```
4698
4650
  Copyright (c) 2019 The RustCrypto Project Developers
@@ -4723,7 +4675,7 @@ DEALINGS IN THE SOFTWARE.
4723
4675
 
4724
4676
  ```
4725
4677
 
4726
- ## aead 0.4.3, aead 0.5.2
4678
+ ## aead 0.5.2
4727
4679
 
4728
4680
  ```
4729
4681
  Copyright (c) 2019 The RustCrypto Project Developers
@@ -4786,7 +4738,7 @@ DEALINGS IN THE SOFTWARE.
4786
4738
 
4787
4739
  ```
4788
4740
 
4789
- ## universal-hash 0.4.0, universal-hash 0.5.1
4741
+ ## universal-hash 0.5.1
4790
4742
 
4791
4743
  ```
4792
4744
  Copyright (c) 2019-2020 RustCrypto Developers
@@ -4879,7 +4831,7 @@ DEALINGS IN THE SOFTWARE.
4879
4831
 
4880
4832
  ```
4881
4833
 
4882
- ## iana-time-zone 0.1.58
4834
+ ## iana-time-zone 0.1.59
4883
4835
 
4884
4836
  ```
4885
4837
  Copyright (c) 2020 Andrew D. Straw
@@ -4941,7 +4893,7 @@ DEALINGS IN THE SOFTWARE.
4941
4893
 
4942
4894
  ```
4943
4895
 
4944
- ## cpufeatures 0.2.11
4896
+ ## cpufeatures 0.2.12
4945
4897
 
4946
4898
  ```
4947
4899
  Copyright (c) 2020 The RustCrypto Project Developers
@@ -5147,7 +5099,7 @@ SOFTWARE.
5147
5099
 
5148
5100
  ```
5149
5101
 
5150
- ## tokio 1.33.0, tokio-macros 2.1.0, tokio-util 0.7.10
5102
+ ## tokio 1.35.1, tokio-macros 2.2.0, tokio-util 0.7.10
5151
5103
 
5152
5104
  ```
5153
5105
  Copyright (c) 2023 Tokio Contributors
@@ -5178,7 +5130,7 @@ DEALINGS IN THE SOFTWARE.
5178
5130
 
5179
5131
  ```
5180
5132
 
5181
- ## anstream 0.6.5, anstyle-query 1.0.2, clap 4.4.11, colorchoice 1.0.0, toml_datetime 0.6.5, toml_edit 0.19.15
5133
+ ## anstream 0.6.7, anstyle-query 1.0.2, clap 4.4.16, colorchoice 1.0.0, toml_datetime 0.6.5, toml_edit 0.19.15
5182
5134
 
5183
5135
  ```
5184
5136
  Copyright (c) Individual contributors
@@ -5246,7 +5198,7 @@ DEALINGS IN THE SOFTWARE.
5246
5198
 
5247
5199
  ```
5248
5200
 
5249
- ## getrandom 0.2.10, rand 0.8.5, rand_chacha 0.3.1, rand_core 0.6.4
5201
+ ## rand 0.8.5, rand_chacha 0.3.1, rand_core 0.6.4
5250
5202
 
5251
5203
  ```
5252
5204
  Copyright 2018 Developers of the Rand project
@@ -5440,7 +5392,7 @@ SOFTWARE.
5440
5392
 
5441
5393
  ```
5442
5394
 
5443
- ## zeroize 1.6.0
5395
+ ## zeroize 1.7.0
5444
5396
 
5445
5397
  ```
5446
5398
  MIT License
@@ -5575,7 +5527,7 @@ SOFTWARE.
5575
5527
 
5576
5528
  ```
5577
5529
 
5578
- ## snow 0.9.3
5530
+ ## snow 0.9.4
5579
5531
 
5580
5532
  ```
5581
5533
  MIT License
@@ -5743,7 +5695,7 @@ DEALINGS IN THE SOFTWARE.
5743
5695
 
5744
5696
  ```
5745
5697
 
5746
- ## adler 1.0.2, anyhow 1.0.75, async-trait 0.1.74, dyn-clone 1.0.14, fastrand 2.0.1, home 0.5.5, itoa 1.0.9, linkme 0.3.17, linkme-impl 0.3.17, linux-raw-sys 0.4.10, minimal-lexical 0.2.1, num_enum 0.6.1, num_enum_derive 0.6.1, once_cell 1.18.0, paste 1.0.14, pin-project-lite 0.2.13, prettyplease 0.2.15, proc-macro-crate 1.3.1, proc-macro2 1.0.69, quote 1.0.33, rustc-hash 1.1.0, rustix 0.38.21, semver 1.0.20, serde 1.0.190, serde_derive 1.0.190, serde_json 1.0.108, syn 1.0.109, syn 2.0.38, syn-mid 0.5.4, thiserror 1.0.50, thiserror-impl 1.0.50, unicode-ident 1.0.12, utf-8 0.7.6
5698
+ ## adler 1.0.2, anyhow 1.0.79, async-trait 0.1.77, dyn-clone 1.0.16, fastrand 2.0.1, home 0.5.9, itoa 1.0.10, linkme 0.3.22, linkme-impl 0.3.22, linux-raw-sys 0.4.12, minimal-lexical 0.2.1, num_enum 0.6.1, num_enum_derive 0.6.1, once_cell 1.19.0, paste 1.0.14, pin-project-lite 0.2.13, prettyplease 0.2.16, proc-macro-crate 1.3.1, proc-macro2 1.0.76, quote 1.0.35, rustc-hash 1.1.0, rustix 0.38.28, semver 1.0.21, serde 1.0.195, serde_derive 1.0.195, serde_json 1.0.111, syn 1.0.109, syn 2.0.48, syn-mid 0.5.4, thiserror 1.0.56, thiserror-impl 1.0.56, unicode-ident 1.0.12, utf-8 0.7.6
5747
5699
 
5748
5700
  ```
5749
5701
  Permission is hereby granted, free of charge, to any
@@ -5801,7 +5753,7 @@ DEALINGS IN THE SOFTWARE.
5801
5753
 
5802
5754
  ```
5803
5755
 
5804
- ## winnow 0.5.18
5756
+ ## winnow 0.5.34
5805
5757
 
5806
5758
  ```
5807
5759
  Permission is hereby granted, free of charge, to any person obtaining
@@ -5915,7 +5867,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
5915
5867
  THE SOFTWARE.
5916
5868
  ```
5917
5869
 
5918
- ## base64 0.21.5
5870
+ ## base64 0.21.7
5919
5871
 
5920
5872
  ```
5921
5873
  The MIT License (MIT)
@@ -5942,7 +5894,7 @@ THE SOFTWARE.
5942
5894
 
5943
5895
  ```
5944
5896
 
5945
- ## aho-corasick 1.1.2, byteorder 1.5.0, memchr 2.6.4, walkdir 2.4.0
5897
+ ## aho-corasick 1.1.2, byteorder 1.5.0, memchr 2.7.1, walkdir 2.4.0
5946
5898
 
5947
5899
  ```
5948
5900
  The MIT License (MIT)
@@ -6079,7 +6031,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6079
6031
 
6080
6032
  ```
6081
6033
 
6082
- ## data-encoding 2.4.0
6034
+ ## data-encoding 2.5.0
6083
6035
 
6084
6036
  ```
6085
6037
  The MIT License (MIT)
@@ -6107,7 +6059,7 @@ SOFTWARE.
6107
6059
 
6108
6060
  ```
6109
6061
 
6110
- ## clap_builder 4.4.11, clap_derive 4.4.7, clap_lex 0.6.0
6062
+ ## clap_builder 4.4.16, clap_derive 4.4.7, clap_lex 0.6.0
6111
6063
 
6112
6064
  ```
6113
6065
  The MIT License (MIT)
@@ -6269,7 +6221,7 @@ SOFTWARE.
6269
6221
 
6270
6222
  ```
6271
6223
 
6272
- ## crossbeam-deque 0.8.3, crossbeam-epoch 0.9.15, crossbeam-utils 0.8.16
6224
+ ## crossbeam-deque 0.8.5, crossbeam-epoch 0.9.18, crossbeam-utils 0.8.19
6273
6225
 
6274
6226
  ```
6275
6227
  The MIT License (MIT)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalapp/libsignal-client",
3
- "version": "0.39.1",
3
+ "version": "0.39.2",
4
4
  "license": "AGPL-3.0-only",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "clean": "rimraf dist build prebuilds",
24
24
  "test": "mocha --recursive dist/test --require source-map-support/register",
25
25
  "lint": "eslint . --ext .js,.jsx,.ts,.tsx",
26
- "format": "p() { prettier ${@:- --write} '**/*.{css,js,json,md,scss,ts,tsx}'; }; p",
26
+ "format": "p() { prettier ${@:- --write} '**/*.{css,js,json,md,scss,ts,tsx}' ../rust/bridge/node/bin/Native.d.ts.in; }; p",
27
27
  "prepack": "cp ../acknowledgments/acknowledgments.md dist"
28
28
  },
29
29
  "dependencies": {
@@ -52,8 +52,8 @@
52
52
  "eslint-plugin-more": "^1.0.0",
53
53
  "mocha": "^9",
54
54
  "node-gyp": "^10.0.0",
55
- "prettier": "^2.7.1",
56
55
  "prebuildify": "^5.0.1",
56
+ "prettier": "^2.7.1",
57
57
  "rimraf": "^3.0.1",
58
58
  "source-map-support": "^0.5.19",
59
59
  "typescript": "4.9.3"
Binary file
Binary file
Binary file