@signalapp/libsignal-client 0.39.3 → 0.40.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.
package/Native.d.ts CHANGED
@@ -11,7 +11,10 @@ type Uuid = Buffer;
11
11
  /// what's important is that it's an integer less than Number.MAX_SAFE_INTEGER.
12
12
  type Timestamp = number;
13
13
 
14
- type LookupResponse = Map<string, LookupResponseEntry>;
14
+ interface LookupResponse {
15
+ entries: Map<string, LookupResponseEntry>;
16
+ debugPermitsUsed: number;
17
+ }
15
18
 
16
19
  interface LookupResponseEntry {
17
20
  readonly aci: string | undefined;
@@ -96,6 +99,11 @@ interface Wrapper<T> {
96
99
  readonly _nativeHandle: T;
97
100
  }
98
101
 
102
+ interface MessageBackupValidationOutcome {
103
+ errorMessage: string | null;
104
+ unknownFieldMessages: Array<string>;
105
+ }
106
+
99
107
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
100
108
  type Serialized<T> = Buffer;
101
109
 
@@ -236,6 +244,9 @@ export function LookupRequest_addPreviousE164(request: Wrapper<LookupRequest>, e
236
244
  export function LookupRequest_new(): LookupRequest;
237
245
  export function LookupRequest_setReturnAcisWithoutUaks(request: Wrapper<LookupRequest>, returnAcisWithoutUaks: boolean): void;
238
246
  export function LookupRequest_setToken(request: Wrapper<LookupRequest>, token: Buffer): void;
247
+ export function MessageBackupKey_New(masterKey: Buffer, aci: Buffer): MessageBackupKey;
248
+ export function MessageBackupValidator_Validate(key: Wrapper<MessageBackupKey>, firstStream: InputStream, secondStream: InputStream, len: Buffer): Promise<MessageBackupValidationOutcome>;
249
+ export function MinidumpToJSONString(buffer: Buffer): string;
239
250
  export function Mp4Sanitizer_Sanitize(input: InputStream, len: Buffer): Promise<SanitizedMetadata>;
240
251
  export function PlaintextContent_Deserialize(data: Buffer): PlaintextContent;
241
252
  export function PlaintextContent_FromDecryptionErrorMessage(m: Wrapper<DecryptionErrorMessage>): PlaintextContent;
@@ -417,6 +428,7 @@ export function SignedPreKeyRecord_GetSignature(obj: Wrapper<SignedPreKeyRecord>
417
428
  export function SignedPreKeyRecord_GetTimestamp(obj: Wrapper<SignedPreKeyRecord>): Timestamp;
418
429
  export function SignedPreKeyRecord_New(id: number, timestamp: Timestamp, pubKey: Wrapper<PublicKey>, privKey: Wrapper<PrivateKey>, signature: Buffer): SignedPreKeyRecord;
419
430
  export function SignedPreKeyRecord_Serialize(obj: Wrapper<SignedPreKeyRecord>): Buffer;
431
+ export function TESTING_CdsiLookupErrorConvert(): void;
420
432
  export function TESTING_CdsiLookupResponseConvert(): LookupResponse;
421
433
  export function TESTING_ErrorOnBorrowAsync(_input: null): Promise<void>;
422
434
  export function TESTING_ErrorOnBorrowIo(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _input: null): Promise<void>;
@@ -442,6 +454,7 @@ export function TESTING_PanicOnLoadSync(_needsCleanup: null, _input: null): void
442
454
  export function TESTING_PanicOnReturnAsync(_needsCleanup: null): Promise<null>;
443
455
  export function TESTING_PanicOnReturnIo(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _needsCleanup: null): Promise<null>;
444
456
  export function TESTING_PanicOnReturnSync(_needsCleanup: null): null;
457
+ export function TESTING_ReturnStringArray(): string[];
445
458
  export function TESTING_TestingHandleType_getValue(handle: Wrapper<TestingHandleType>): number;
446
459
  export function TokioAsyncContext_new(): TokioAsyncContext;
447
460
  export function UnidentifiedSenderMessageContent_Deserialize(data: Buffer): UnidentifiedSenderMessageContent;
@@ -454,7 +467,7 @@ export function UnidentifiedSenderMessageContent_New(message: Wrapper<Ciphertext
454
467
  export function UnidentifiedSenderMessageContent_Serialize(obj: Wrapper<UnidentifiedSenderMessageContent>): Buffer;
455
468
  export function UsernameLink_Create(username: string, entropy: Buffer | null): Buffer;
456
469
  export function UsernameLink_DecryptUsername(entropy: Buffer, encryptedUsername: Buffer): string;
457
- export function Username_CandidatesFrom(nickname: string, minLen: number, maxLen: number): string;
470
+ export function Username_CandidatesFrom(nickname: string, minLen: number, maxLen: number): string[];
458
471
  export function Username_Hash(username: string): Buffer;
459
472
  export function Username_HashFromParts(nickname: string, discriminator: string, minLen: number, maxLen: number): Buffer;
460
473
  export function Username_Proof(username: string, randomness: Buffer): Buffer;
@@ -487,6 +500,7 @@ interface KyberPreKeyRecord { readonly __type: unique symbol; }
487
500
  interface KyberPublicKey { readonly __type: unique symbol; }
488
501
  interface KyberSecretKey { readonly __type: unique symbol; }
489
502
  interface LookupRequest { readonly __type: unique symbol; }
503
+ interface MessageBackupKey { readonly __type: unique symbol; }
490
504
  interface NonSuspendingBackgroundThreadRuntime { readonly __type: unique symbol; }
491
505
  interface OtherTestingHandleType { readonly __type: unique symbol; }
492
506
  interface PlaintextContent { readonly __type: unique symbol; }
@@ -0,0 +1,53 @@
1
+ /// <reference types="node" />
2
+ /**
3
+ * Message backup validation routines.
4
+ *
5
+ * @module MessageBackup
6
+ */
7
+ import * as Native from '../Native';
8
+ import { Aci } from './Address';
9
+ import { InputStream } from './io';
10
+ export type InputStreamFactory = () => InputStream;
11
+ /**
12
+ * Result of validating a message backup bundle.
13
+ */
14
+ export declare class ValidationOutcome {
15
+ /**
16
+ * A developer-facing message about the error encountered during validation,
17
+ * if any.
18
+ */
19
+ errorMessage: string | null;
20
+ /**
21
+ * Information about unknown fields encountered during validation.
22
+ */
23
+ unknownFieldMessages: string[];
24
+ /**
25
+ * `true` if the backup is valid, `false` otherwise.
26
+ *
27
+ * If this is `true`, there might still be messages about unknown fields.
28
+ */
29
+ get ok(): boolean;
30
+ constructor(outcome: Native.MessageBackupValidationOutcome);
31
+ }
32
+ /**
33
+ * Key used to encrypt and decrypt a message backup bundle.
34
+ */
35
+ export declare class MessageBackupKey {
36
+ readonly _nativeHandle: Native.MessageBackupKey;
37
+ /**
38
+ * Create a public key from the given master key and ACI.
39
+ *
40
+ * `masterKeyBytes` should contain exactly 32 bytes.
41
+ */
42
+ constructor(masterKeyBytes: Buffer, aci: Aci);
43
+ }
44
+ /**
45
+ * Validate a backup file
46
+ *
47
+ * @param backupKey The key to use to decrypt the backup contents.
48
+ * @param inputFactory A function that returns new input streams that read the backup contents.
49
+ * @param length The exact length of the input stream.
50
+ * @returns The outcome of validation, including any errors and warnings.
51
+ * @throws IoError If an IO error on the input occurs.
52
+ */
53
+ export declare function validate(backupKey: MessageBackupKey, inputFactory: InputStreamFactory, length: bigint): Promise<ValidationOutcome>;
@@ -0,0 +1,63 @@
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
+ exports.validate = exports.MessageBackupKey = exports.ValidationOutcome = void 0;
8
+ /**
9
+ * Message backup validation routines.
10
+ *
11
+ * @module MessageBackup
12
+ */
13
+ const Native = require("../Native");
14
+ const BigIntUtil_1 = require("./zkgroup/internal/BigIntUtil");
15
+ /**
16
+ * Result of validating a message backup bundle.
17
+ */
18
+ class ValidationOutcome {
19
+ /**
20
+ * `true` if the backup is valid, `false` otherwise.
21
+ *
22
+ * If this is `true`, there might still be messages about unknown fields.
23
+ */
24
+ get ok() {
25
+ return this.errorMessage == null;
26
+ }
27
+ constructor(outcome) {
28
+ const { errorMessage, unknownFieldMessages } = outcome;
29
+ this.errorMessage = errorMessage;
30
+ this.unknownFieldMessages = unknownFieldMessages;
31
+ }
32
+ }
33
+ exports.ValidationOutcome = ValidationOutcome;
34
+ /**
35
+ * Key used to encrypt and decrypt a message backup bundle.
36
+ */
37
+ class MessageBackupKey {
38
+ /**
39
+ * Create a public key from the given master key and ACI.
40
+ *
41
+ * `masterKeyBytes` should contain exactly 32 bytes.
42
+ */
43
+ constructor(masterKeyBytes, aci) {
44
+ this._nativeHandle = Native.MessageBackupKey_New(masterKeyBytes, aci.getServiceIdFixedWidthBinary());
45
+ }
46
+ }
47
+ exports.MessageBackupKey = MessageBackupKey;
48
+ /**
49
+ * Validate a backup file
50
+ *
51
+ * @param backupKey The key to use to decrypt the backup contents.
52
+ * @param inputFactory A function that returns new input streams that read the backup contents.
53
+ * @param length The exact length of the input stream.
54
+ * @returns The outcome of validation, including any errors and warnings.
55
+ * @throws IoError If an IO error on the input occurs.
56
+ */
57
+ async function validate(backupKey, inputFactory, length) {
58
+ const firstStream = inputFactory();
59
+ const secondStream = inputFactory();
60
+ return new ValidationOutcome(await Native.MessageBackupValidator_Validate(backupKey, firstStream, secondStream, (0, BigIntUtil_1.bufferFromBigUInt64BE)(length)));
61
+ }
62
+ exports.validate = validate;
63
+ //# sourceMappingURL=MessageBackup.js.map
@@ -0,0 +1,2 @@
1
+ /// <reference types="node" />
2
+ export declare function toJSONString(buffer: Buffer): string;
@@ -0,0 +1,13 @@
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
+ exports.toJSONString = void 0;
8
+ const Native = require("../Native");
9
+ function toJSONString(buffer) {
10
+ return Native.MinidumpToJSONString(buffer);
11
+ }
12
+ exports.toJSONString = toJSONString;
13
+ //# sourceMappingURL=Minidump.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.3, libsignal-jni 0.39.3, libsignal-message-backup 0.1.0, libsignal-message-backup-macros 0.1.0, libsignal-net 0.1.0, libsignal-node 0.39.3, 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.40.0, libsignal-jni 0.40.0, libsignal-message-backup 0.1.0, libsignal-message-backup-macros 0.1.0, libsignal-net 0.1.0, libsignal-node 0.40.0, 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
@@ -1715,7 +1715,7 @@ END OF TERMS AND CONDITIONS
1715
1715
 
1716
1716
  ```
1717
1717
 
1718
- ## prost 0.12.3, prost-build 0.12.3, prost-derive 0.12.3, prost-types 0.12.3
1718
+ ## debugid 0.8.0, 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
@@ -2218,6 +2218,38 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2218
2218
 
2219
2219
  ```
2220
2220
 
2221
+ ## encoding_rs 0.8.33
2222
+
2223
+ ```
2224
+ Copyright © WHATWG (Apple, Google, Mozilla, Microsoft).
2225
+
2226
+ Redistribution and use in source and binary forms, with or without
2227
+ modification, are permitted provided that the following conditions are met:
2228
+
2229
+ 1. Redistributions of source code must retain the above copyright notice, this
2230
+ list of conditions and the following disclaimer.
2231
+
2232
+ 2. Redistributions in binary form must reproduce the above copyright notice,
2233
+ this list of conditions and the following disclaimer in the documentation
2234
+ and/or other materials provided with the distribution.
2235
+
2236
+ 3. Neither the name of the copyright holder nor the names of its
2237
+ contributors may be used to endorse or promote products derived from
2238
+ this software without specific prior written permission.
2239
+
2240
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
2241
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2242
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
2243
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
2244
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2245
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
2246
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
2247
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
2248
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2249
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2250
+
2251
+ ```
2252
+
2221
2253
  ## dunce 1.0.4
2222
2254
 
2223
2255
  ```
@@ -2773,7 +2805,7 @@ DEALINGS IN THE SOFTWARE.
2773
2805
 
2774
2806
  ```
2775
2807
 
2776
- ## bitflags 1.3.2, bitflags 2.4.2, glob 0.3.1, log 0.4.20, num-integer 0.1.45, num-traits 0.2.17, regex 1.10.3, regex-automata 0.4.4, regex-syntax 0.8.2, semver 0.9.0
2808
+ ## bitflags 1.3.2, bitflags 2.4.2, glob 0.3.1, log 0.4.20, num-derive 0.4.2, num-integer 0.1.45, num-traits 0.2.17, range-map 0.2.0, regex 1.10.3, regex-automata 0.4.4, regex-syntax 0.8.2, semver 0.9.0
2777
2809
 
2778
2810
  ```
2779
2811
  Copyright (c) 2014 The Rust Project Developers
@@ -2918,7 +2950,7 @@ THE SOFTWARE.
2918
2950
 
2919
2951
  ```
2920
2952
 
2921
- ## either 1.9.0, itertools 0.10.5, itertools 0.11.0, petgraph 0.6.4
2953
+ ## either 1.9.0, itertools 0.11.0, itertools 0.12.0, petgraph 0.6.4
2922
2954
 
2923
2955
  ```
2924
2956
  Copyright (c) 2015
@@ -4020,6 +4052,32 @@ THE SOFTWARE.
4020
4052
 
4021
4053
  ```
4022
4054
 
4055
+ ## circular 0.3.0
4056
+
4057
+ ```
4058
+ Copyright (c) 2017 Geoffroy Couprie
4059
+
4060
+ Permission is hereby granted, free of charge, to any person obtaining
4061
+ a copy of this software and associated documentation files (the
4062
+ "Software"), to deal in the Software without restriction, including
4063
+ without limitation the rights to use, copy, modify, merge, publish,
4064
+ distribute, sublicense, and/or sell copies of the Software, and to
4065
+ permit persons to whom the Software is furnished to do so, subject to
4066
+ the following conditions:
4067
+
4068
+ The above copyright notice and this permission notice shall be
4069
+ included in all copies or substantial portions of the Software.
4070
+
4071
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
4072
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
4073
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
4074
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
4075
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
4076
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
4077
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4078
+
4079
+ ```
4080
+
4023
4081
  ## foreign-types 0.5.0, foreign-types-macros 0.2.3, foreign-types-shared 0.3.1
4024
4082
 
4025
4083
  ```
@@ -4746,7 +4804,7 @@ DEALINGS IN THE SOFTWARE.
4746
4804
 
4747
4805
  ```
4748
4806
 
4749
- ## tracing 0.1.40, tracing-core 0.1.32
4807
+ ## tracing 0.1.40, tracing-attributes 0.1.27, tracing-core 0.1.32
4750
4808
 
4751
4809
  ```
4752
4810
  Copyright (c) 2019 Tokio Contributors
@@ -4963,6 +5021,38 @@ DEALINGS IN THE SOFTWARE.
4963
5021
 
4964
5022
  ```
4965
5023
 
5024
+ ## memmap2 0.9.4
5025
+
5026
+ ```
5027
+ Copyright (c) 2020 Yevhenii Reizner
5028
+ Copyright (c) 2015 Dan Burkert
5029
+
5030
+ Permission is hereby granted, free of charge, to any
5031
+ person obtaining a copy of this software and associated
5032
+ documentation files (the "Software"), to deal in the
5033
+ Software without restriction, including without
5034
+ limitation the rights to use, copy, modify, merge,
5035
+ publish, distribute, sublicense, and/or sell copies of
5036
+ the Software, and to permit persons to whom the Software
5037
+ is furnished to do so, subject to the following
5038
+ conditions:
5039
+
5040
+ The above copyright notice and this permission notice
5041
+ shall be included in all copies or substantial portions
5042
+ of the Software.
5043
+
5044
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
5045
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
5046
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
5047
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
5048
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
5049
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
5050
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
5051
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
5052
+ DEALINGS IN THE SOFTWARE.
5053
+
5054
+ ```
5055
+
4966
5056
  ## password-hash 0.5.0
4967
5057
 
4968
5058
  ```
@@ -5056,6 +5146,31 @@ DEALINGS IN THE SOFTWARE.
5056
5146
 
5057
5147
  ```
5058
5148
 
5149
+ ## deranged 0.3.11, time-core 0.1.2
5150
+
5151
+ ```
5152
+ Copyright (c) 2022 Jacob Pratt et al.
5153
+
5154
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5155
+ of this software and associated documentation files (the "Software"), to deal
5156
+ in the Software without restriction, including without limitation the rights
5157
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5158
+ copies of the Software, and to permit persons to whom the Software is
5159
+ furnished to do so, subject to the following conditions:
5160
+
5161
+ The above copyright notice and this permission notice shall be included in all
5162
+ copies or substantial portions of the Software.
5163
+
5164
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5165
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5166
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5167
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5168
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5169
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5170
+ SOFTWARE.
5171
+
5172
+ ```
5173
+
5059
5174
  ## inout 0.1.3
5060
5175
 
5061
5176
  ```
@@ -5138,6 +5253,56 @@ SOFTWARE.
5138
5253
 
5139
5254
  ```
5140
5255
 
5256
+ ## num-conv 0.1.0
5257
+
5258
+ ```
5259
+ Copyright (c) 2023 Jacob Pratt
5260
+
5261
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5262
+ of this software and associated documentation files (the "Software"), to deal
5263
+ in the Software without restriction, including without limitation the rights
5264
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5265
+ copies of the Software, and to permit persons to whom the Software is
5266
+ furnished to do so, subject to the following conditions:
5267
+
5268
+ The above copyright notice and this permission notice shall be included in all
5269
+ copies or substantial portions of the Software.
5270
+
5271
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5272
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5273
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5274
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5275
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5276
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5277
+ SOFTWARE.
5278
+
5279
+ ```
5280
+
5281
+ ## powerfmt 0.2.0
5282
+
5283
+ ```
5284
+ Copyright (c) 2023 Jacob Pratt et al.
5285
+
5286
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5287
+ of this software and associated documentation files (the "Software"), to deal
5288
+ in the Software without restriction, including without limitation the rights
5289
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5290
+ copies of the Software, and to permit persons to whom the Software is
5291
+ furnished to do so, subject to the following conditions:
5292
+
5293
+ The above copyright notice and this permission notice shall be included in all
5294
+ copies or substantial portions of the Software.
5295
+
5296
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5297
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5298
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5299
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5300
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5301
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5302
+ SOFTWARE.
5303
+
5304
+ ```
5305
+
5141
5306
  ## tokio 1.35.1, tokio-macros 2.2.0, tokio-util 0.7.10
5142
5307
 
5143
5308
  ```
@@ -5169,6 +5334,31 @@ DEALINGS IN THE SOFTWARE.
5169
5334
 
5170
5335
  ```
5171
5336
 
5337
+ ## time 0.3.34
5338
+
5339
+ ```
5340
+ Copyright (c) 2024 Jacob Pratt et al.
5341
+
5342
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5343
+ of this software and associated documentation files (the "Software"), to deal
5344
+ in the Software without restriction, including without limitation the rights
5345
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5346
+ copies of the Software, and to permit persons to whom the Software is
5347
+ furnished to do so, subject to the following conditions:
5348
+
5349
+ The above copyright notice and this permission notice shall be included in all
5350
+ copies or substantial portions of the Software.
5351
+
5352
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5353
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5354
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5355
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5356
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5357
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5358
+ SOFTWARE.
5359
+
5360
+ ```
5361
+
5172
5362
  ## anstream 0.6.11, anstyle-query 1.0.2, clap 4.4.18, colorchoice 1.0.0, toml_datetime 0.6.5, toml_edit 0.19.15
5173
5363
 
5174
5364
  ```
@@ -5269,6 +5459,91 @@ DEALINGS IN THE SOFTWARE.
5269
5459
 
5270
5460
  ```
5271
5461
 
5462
+ ## encoding_rs 0.8.33
5463
+
5464
+ ```
5465
+ Copyright Mozilla Foundation
5466
+
5467
+ Permission is hereby granted, free of charge, to any
5468
+ person obtaining a copy of this software and associated
5469
+ documentation files (the "Software"), to deal in the
5470
+ Software without restriction, including without
5471
+ limitation the rights to use, copy, modify, merge,
5472
+ publish, distribute, sublicense, and/or sell copies of
5473
+ the Software, and to permit persons to whom the Software
5474
+ is furnished to do so, subject to the following
5475
+ conditions:
5476
+
5477
+ The above copyright notice and this permission notice
5478
+ shall be included in all copies or substantial portions
5479
+ of the Software.
5480
+
5481
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
5482
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
5483
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
5484
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
5485
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
5486
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
5487
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
5488
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
5489
+ DEALINGS IN THE SOFTWARE.
5490
+
5491
+ ```
5492
+
5493
+ ## breakpad-symbols 0.20.0, minidump 0.20.0, minidump-common 0.20.0, minidump-processor 0.20.0, minidump-unwind 0.20.0
5494
+
5495
+ ```
5496
+ MIT License
5497
+
5498
+ Copyright (c) 2015-2023 rust-minidump contributors
5499
+
5500
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5501
+ of this software and associated documentation files (the "Software"), to deal
5502
+ in the Software without restriction, including without limitation the rights
5503
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5504
+ copies of the Software, and to permit persons to whom the Software is
5505
+ furnished to do so, subject to the following conditions:
5506
+
5507
+ The above copyright notice and this permission notice shall be included in all
5508
+ copies or substantial portions of the Software.
5509
+
5510
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5511
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5512
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5513
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5514
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5515
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5516
+ SOFTWARE.
5517
+
5518
+ ```
5519
+
5520
+ ## scroll_derive 0.12.0
5521
+
5522
+ ```
5523
+ MIT License
5524
+
5525
+ Copyright (c) 2017
5526
+
5527
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5528
+ of this software and associated documentation files (the "Software"), to deal
5529
+ in the Software without restriction, including without limitation the rights
5530
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5531
+ copies of the Software, and to permit persons to whom the Software is
5532
+ furnished to do so, subject to the following conditions:
5533
+
5534
+ The above copyright notice and this permission notice shall be included in all
5535
+ copies or substantial portions of the Software.
5536
+
5537
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5538
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5539
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5540
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5541
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5542
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5543
+ SOFTWARE.
5544
+
5545
+ ```
5546
+
5272
5547
  ## fs_extra 1.3.0
5273
5548
 
5274
5549
  ```
@@ -5323,6 +5598,33 @@ SOFTWARE.
5323
5598
 
5324
5599
  ```
5325
5600
 
5601
+ ## smart-default 0.7.1
5602
+
5603
+ ```
5604
+ MIT License
5605
+
5606
+ Copyright (c) 2017 Idan Arye
5607
+
5608
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5609
+ of this software and associated documentation files (the "Software"), to deal
5610
+ in the Software without restriction, including without limitation the rights
5611
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5612
+ copies of the Software, and to permit persons to whom the Software is
5613
+ furnished to do so, subject to the following conditions:
5614
+
5615
+ The above copyright notice and this permission notice shall be included in all
5616
+ copies or substantial portions of the Software.
5617
+
5618
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5619
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5620
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5621
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5622
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5623
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5624
+ SOFTWARE.
5625
+
5626
+ ```
5627
+
5326
5628
  ## static_assertions 1.1.0
5327
5629
 
5328
5630
  ```
@@ -5566,7 +5868,7 @@ SOFTWARE.
5566
5868
 
5567
5869
  ```
5568
5870
 
5569
- ## snow 0.9.4
5871
+ ## snow 0.9.5
5570
5872
 
5571
5873
  ```
5572
5874
  MIT License
@@ -5620,7 +5922,34 @@ SOFTWARE.
5620
5922
 
5621
5923
  ```
5622
5924
 
5623
- ## cesu8 1.1.0, curve25519-dalek-derive 0.1.0, half 1.8.2, pqcrypto-internals 0.2.5, pqcrypto-kyber 0.7.9, pqcrypto-kyber 0.8.0, pqcrypto-traits 0.3.5, protobuf-parse 3.3.0, protobuf-support 3.3.0
5925
+ ## cachemap2 0.2.0
5926
+
5927
+ ```
5928
+ MIT License
5929
+
5930
+ Copyright (c) 2021 hclarke
5931
+
5932
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5933
+ of this software and associated documentation files (the "Software"), to deal
5934
+ in the Software without restriction, including without limitation the rights
5935
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5936
+ copies of the Software, and to permit persons to whom the Software is
5937
+ furnished to do so, subject to the following conditions:
5938
+
5939
+ The above copyright notice and this permission notice shall be included in all
5940
+ copies or substantial portions of the Software.
5941
+
5942
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5943
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5944
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5945
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5946
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5947
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5948
+ SOFTWARE.
5949
+
5950
+ ```
5951
+
5952
+ ## cesu8 1.1.0, const-str 0.5.6, curve25519-dalek-derive 0.1.0, half 1.8.2, pqcrypto-internals 0.2.5, pqcrypto-kyber 0.7.9, pqcrypto-kyber 0.8.0, pqcrypto-traits 0.3.5, procfs-core 0.16.0, protobuf-parse 3.3.0, protobuf-support 3.3.0
5624
5953
 
5625
5954
  ```
5626
5955
  MIT License
@@ -6319,6 +6648,33 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
6319
6648
  SOFTWARE.
6320
6649
 
6321
6650
 
6651
+ ```
6652
+
6653
+ ## scroll 0.12.0
6654
+
6655
+ ```
6656
+ The MIT License (MIT)
6657
+
6658
+ Copyright (c) m4b 2016
6659
+
6660
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6661
+ of this software and associated documentation files (the "Software"), to deal
6662
+ in the Software without restriction, including without limitation the rights
6663
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
6664
+ copies of the Software, and to permit persons to whom the Software is
6665
+ furnished to do so, subject to the following conditions:
6666
+
6667
+ The above copyright notice and this permission notice shall be included in all
6668
+ copies or substantial portions of the Software.
6669
+
6670
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6671
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6672
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
6673
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
6674
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
6675
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
6676
+ SOFTWARE.
6677
+
6322
6678
  ```
6323
6679
 
6324
6680
  ## version_check 0.9.4
package/dist/net.d.ts CHANGED
@@ -20,7 +20,11 @@ export type CDSResponseEntryType<Aci, Pni> = {
20
20
  aci: Aci | undefined;
21
21
  pni: Pni | undefined;
22
22
  };
23
- export type CDSResponseType<Aci, Pni> = Map<string, CDSResponseEntryType<Aci, Pni>>;
23
+ export type CDSResponseEntries<Aci, Pni> = Map<string, CDSResponseEntryType<Aci, Pni>>;
24
+ export interface CDSResponseType<Aci, Pni> {
25
+ entries: CDSResponseEntries<Aci, Pni>;
26
+ debugPermitsUsed: number;
27
+ }
24
28
  export declare class Net {
25
29
  private readonly _asyncContext;
26
30
  private readonly _connectionManager;
package/dist/usernames.js CHANGED
@@ -10,7 +10,7 @@ const crypto_1 = require("crypto");
10
10
  const Constants_1 = require("./zkgroup/internal/Constants");
11
11
  const Native = require("../Native");
12
12
  function generateCandidates(nickname, minNicknameLength, maxNicknameLength) {
13
- return Native.Username_CandidatesFrom(nickname, minNicknameLength, maxNicknameLength).split(',');
13
+ return Native.Username_CandidatesFrom(nickname, minNicknameLength, maxNicknameLength);
14
14
  }
15
15
  exports.generateCandidates = generateCandidates;
16
16
  function fromParts(nickname, discriminator, minNicknameLength, maxNicknameLength) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalapp/libsignal-client",
3
- "version": "0.39.3",
3
+ "version": "0.40.0",
4
4
  "license": "AGPL-3.0-only",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
Binary file
Binary file
Binary file