@signalapp/libsignal-client 0.39.3 → 0.40.1

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,7 +428,8 @@ 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;
420
- export function TESTING_CdsiLookupResponseConvert(): LookupResponse;
431
+ export function TESTING_CdsiLookupErrorConvert(): void;
432
+ export function TESTING_CdsiLookupResponseConvert(asyncRuntime: Wrapper<TokioAsyncContext>): Promise<LookupResponse>;
421
433
  export function TESTING_ErrorOnBorrowAsync(_input: null): Promise<void>;
422
434
  export function TESTING_ErrorOnBorrowIo(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _input: null): Promise<void>;
423
435
  export function TESTING_ErrorOnBorrowSync(_input: null): 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.1, libsignal-jni 0.40.1, libsignal-message-backup 0.1.0, libsignal-message-backup-macros 0.1.0, libsignal-net 0.1.0, libsignal-node 0.40.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
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
@@ -3118,6 +3150,31 @@ DEALINGS IN THE SOFTWARE.
3118
3150
 
3119
3151
  ```
3120
3152
 
3153
+ ## procfs-core 0.16.0
3154
+
3155
+ ```
3156
+ Copyright (c) 2015 The procfs Developers
3157
+
3158
+ Permission is hereby granted, free of charge, to any person obtaining a copy
3159
+ of this software and associated documentation files (the "Software"), to deal
3160
+ in the Software without restriction, including without limitation the rights
3161
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3162
+ copies of the Software, and to permit persons to whom the Software is
3163
+ furnished to do so, subject to the following conditions:
3164
+
3165
+ The above copyright notice and this permission notice shall be included in all
3166
+ copies or substantial portions of the Software.
3167
+
3168
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3169
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3170
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3171
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3172
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3173
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3174
+ SOFTWARE.
3175
+
3176
+ ```
3177
+
3121
3178
  ## jni-sys 0.3.0
3122
3179
 
3123
3180
  ```
@@ -4020,6 +4077,32 @@ THE SOFTWARE.
4020
4077
 
4021
4078
  ```
4022
4079
 
4080
+ ## circular 0.3.0
4081
+
4082
+ ```
4083
+ Copyright (c) 2017 Geoffroy Couprie
4084
+
4085
+ Permission is hereby granted, free of charge, to any person obtaining
4086
+ a copy of this software and associated documentation files (the
4087
+ "Software"), to deal in the Software without restriction, including
4088
+ without limitation the rights to use, copy, modify, merge, publish,
4089
+ distribute, sublicense, and/or sell copies of the Software, and to
4090
+ permit persons to whom the Software is furnished to do so, subject to
4091
+ the following conditions:
4092
+
4093
+ The above copyright notice and this permission notice shall be
4094
+ included in all copies or substantial portions of the Software.
4095
+
4096
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
4097
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
4098
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
4099
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
4100
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
4101
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
4102
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4103
+
4104
+ ```
4105
+
4023
4106
  ## foreign-types 0.5.0, foreign-types-macros 0.2.3, foreign-types-shared 0.3.1
4024
4107
 
4025
4108
  ```
@@ -4628,7 +4711,7 @@ DEALINGS IN THE SOFTWARE.
4628
4711
 
4629
4712
  ```
4630
4713
 
4631
- ## protobuf 3.3.0, protobuf-codegen 3.3.0
4714
+ ## protobuf 3.3.0, protobuf-codegen 3.3.0, protobuf-json-mapping 3.3.0, protobuf-parse 3.3.0, protobuf-support 3.3.0
4632
4715
 
4633
4716
  ```
4634
4717
  Copyright (c) 2019 Stepan Koltsov
@@ -4746,7 +4829,7 @@ DEALINGS IN THE SOFTWARE.
4746
4829
 
4747
4830
  ```
4748
4831
 
4749
- ## tracing 0.1.40, tracing-core 0.1.32
4832
+ ## tracing 0.1.40, tracing-attributes 0.1.27, tracing-core 0.1.32
4750
4833
 
4751
4834
  ```
4752
4835
  Copyright (c) 2019 Tokio Contributors
@@ -4963,6 +5046,38 @@ DEALINGS IN THE SOFTWARE.
4963
5046
 
4964
5047
  ```
4965
5048
 
5049
+ ## memmap2 0.9.4
5050
+
5051
+ ```
5052
+ Copyright (c) 2020 Yevhenii Reizner
5053
+ Copyright (c) 2015 Dan Burkert
5054
+
5055
+ Permission is hereby granted, free of charge, to any
5056
+ person obtaining a copy of this software and associated
5057
+ documentation files (the "Software"), to deal in the
5058
+ Software without restriction, including without
5059
+ limitation the rights to use, copy, modify, merge,
5060
+ publish, distribute, sublicense, and/or sell copies of
5061
+ the Software, and to permit persons to whom the Software
5062
+ is furnished to do so, subject to the following
5063
+ conditions:
5064
+
5065
+ The above copyright notice and this permission notice
5066
+ shall be included in all copies or substantial portions
5067
+ of the Software.
5068
+
5069
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
5070
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
5071
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
5072
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
5073
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
5074
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
5075
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
5076
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
5077
+ DEALINGS IN THE SOFTWARE.
5078
+
5079
+ ```
5080
+
4966
5081
  ## password-hash 0.5.0
4967
5082
 
4968
5083
  ```
@@ -5056,6 +5171,31 @@ DEALINGS IN THE SOFTWARE.
5056
5171
 
5057
5172
  ```
5058
5173
 
5174
+ ## deranged 0.3.11, time-core 0.1.2
5175
+
5176
+ ```
5177
+ Copyright (c) 2022 Jacob Pratt et al.
5178
+
5179
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5180
+ of this software and associated documentation files (the "Software"), to deal
5181
+ in the Software without restriction, including without limitation the rights
5182
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5183
+ copies of the Software, and to permit persons to whom the Software is
5184
+ furnished to do so, subject to the following conditions:
5185
+
5186
+ The above copyright notice and this permission notice shall be included in all
5187
+ copies or substantial portions of the Software.
5188
+
5189
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5190
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5191
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5192
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5193
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5194
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5195
+ SOFTWARE.
5196
+
5197
+ ```
5198
+
5059
5199
  ## inout 0.1.3
5060
5200
 
5061
5201
  ```
@@ -5138,6 +5278,56 @@ SOFTWARE.
5138
5278
 
5139
5279
  ```
5140
5280
 
5281
+ ## num-conv 0.1.0
5282
+
5283
+ ```
5284
+ Copyright (c) 2023 Jacob Pratt
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
+
5306
+ ## powerfmt 0.2.0
5307
+
5308
+ ```
5309
+ Copyright (c) 2023 Jacob Pratt et al.
5310
+
5311
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5312
+ of this software and associated documentation files (the "Software"), to deal
5313
+ in the Software without restriction, including without limitation the rights
5314
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5315
+ copies of the Software, and to permit persons to whom the Software is
5316
+ furnished to do so, subject to the following conditions:
5317
+
5318
+ The above copyright notice and this permission notice shall be included in all
5319
+ copies or substantial portions of the Software.
5320
+
5321
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5322
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5323
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5324
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5325
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5326
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5327
+ SOFTWARE.
5328
+
5329
+ ```
5330
+
5141
5331
  ## tokio 1.35.1, tokio-macros 2.2.0, tokio-util 0.7.10
5142
5332
 
5143
5333
  ```
@@ -5169,6 +5359,31 @@ DEALINGS IN THE SOFTWARE.
5169
5359
 
5170
5360
  ```
5171
5361
 
5362
+ ## time 0.3.34
5363
+
5364
+ ```
5365
+ Copyright (c) 2024 Jacob Pratt et al.
5366
+
5367
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5368
+ of this software and associated documentation files (the "Software"), to deal
5369
+ in the Software without restriction, including without limitation the rights
5370
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5371
+ copies of the Software, and to permit persons to whom the Software is
5372
+ furnished to do so, subject to the following conditions:
5373
+
5374
+ The above copyright notice and this permission notice shall be included in all
5375
+ copies or substantial portions of the Software.
5376
+
5377
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5378
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5379
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5380
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5381
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5382
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5383
+ SOFTWARE.
5384
+
5385
+ ```
5386
+
5172
5387
  ## 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
5388
 
5174
5389
  ```
@@ -5269,6 +5484,91 @@ DEALINGS IN THE SOFTWARE.
5269
5484
 
5270
5485
  ```
5271
5486
 
5487
+ ## encoding_rs 0.8.33
5488
+
5489
+ ```
5490
+ Copyright Mozilla Foundation
5491
+
5492
+ Permission is hereby granted, free of charge, to any
5493
+ person obtaining a copy of this software and associated
5494
+ documentation files (the "Software"), to deal in the
5495
+ Software without restriction, including without
5496
+ limitation the rights to use, copy, modify, merge,
5497
+ publish, distribute, sublicense, and/or sell copies of
5498
+ the Software, and to permit persons to whom the Software
5499
+ is furnished to do so, subject to the following
5500
+ conditions:
5501
+
5502
+ The above copyright notice and this permission notice
5503
+ shall be included in all copies or substantial portions
5504
+ of the Software.
5505
+
5506
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
5507
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
5508
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
5509
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
5510
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
5511
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
5512
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
5513
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
5514
+ DEALINGS IN THE SOFTWARE.
5515
+
5516
+ ```
5517
+
5518
+ ## breakpad-symbols 0.20.0, minidump 0.20.0, minidump-common 0.20.0, minidump-processor 0.20.0, minidump-unwind 0.20.0
5519
+
5520
+ ```
5521
+ MIT License
5522
+
5523
+ Copyright (c) 2015-2023 rust-minidump contributors
5524
+
5525
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5526
+ of this software and associated documentation files (the "Software"), to deal
5527
+ in the Software without restriction, including without limitation the rights
5528
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5529
+ copies of the Software, and to permit persons to whom the Software is
5530
+ furnished to do so, subject to the following conditions:
5531
+
5532
+ The above copyright notice and this permission notice shall be included in all
5533
+ copies or substantial portions of the Software.
5534
+
5535
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5536
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5537
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5538
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5539
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5540
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5541
+ SOFTWARE.
5542
+
5543
+ ```
5544
+
5545
+ ## scroll_derive 0.12.0
5546
+
5547
+ ```
5548
+ MIT License
5549
+
5550
+ Copyright (c) 2017
5551
+
5552
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5553
+ of this software and associated documentation files (the "Software"), to deal
5554
+ in the Software without restriction, including without limitation the rights
5555
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5556
+ copies of the Software, and to permit persons to whom the Software is
5557
+ furnished to do so, subject to the following conditions:
5558
+
5559
+ The above copyright notice and this permission notice shall be included in all
5560
+ copies or substantial portions of the Software.
5561
+
5562
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5563
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5564
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5565
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5566
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5567
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5568
+ SOFTWARE.
5569
+
5570
+ ```
5571
+
5272
5572
  ## fs_extra 1.3.0
5273
5573
 
5274
5574
  ```
@@ -5323,6 +5623,33 @@ SOFTWARE.
5323
5623
 
5324
5624
  ```
5325
5625
 
5626
+ ## smart-default 0.7.1
5627
+
5628
+ ```
5629
+ MIT License
5630
+
5631
+ Copyright (c) 2017 Idan Arye
5632
+
5633
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5634
+ of this software and associated documentation files (the "Software"), to deal
5635
+ in the Software without restriction, including without limitation the rights
5636
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5637
+ copies of the Software, and to permit persons to whom the Software is
5638
+ furnished to do so, subject to the following conditions:
5639
+
5640
+ The above copyright notice and this permission notice shall be included in all
5641
+ copies or substantial portions of the Software.
5642
+
5643
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5644
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5645
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5646
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5647
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5648
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5649
+ SOFTWARE.
5650
+
5651
+ ```
5652
+
5326
5653
  ## static_assertions 1.1.0
5327
5654
 
5328
5655
  ```
@@ -5539,6 +5866,32 @@ SOFTWARE.
5539
5866
 
5540
5867
  ```
5541
5868
 
5869
+ ## const-str 0.5.6
5870
+
5871
+ ```
5872
+ MIT License
5873
+
5874
+ Copyright (c) 2020 Nugine
5875
+
5876
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5877
+ of this software and associated documentation files (the "Software"), to deal
5878
+ in the Software without restriction, including without limitation the rights
5879
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5880
+ copies of the Software, and to permit persons to whom the Software is
5881
+ furnished to do so, subject to the following conditions:
5882
+
5883
+ The above copyright notice and this permission notice shall be included in all
5884
+ copies or substantial portions of the Software.
5885
+
5886
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5887
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5888
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5889
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5890
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5891
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5892
+ SOFTWARE.
5893
+ ```
5894
+
5542
5895
  ## tinyvec_macros 0.1.1
5543
5896
 
5544
5897
  ```
@@ -5566,7 +5919,7 @@ SOFTWARE.
5566
5919
 
5567
5920
  ```
5568
5921
 
5569
- ## snow 0.9.4
5922
+ ## snow 0.9.5
5570
5923
 
5571
5924
  ```
5572
5925
  MIT License
@@ -5620,7 +5973,34 @@ SOFTWARE.
5620
5973
 
5621
5974
  ```
5622
5975
 
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
5976
+ ## cachemap2 0.2.0
5977
+
5978
+ ```
5979
+ MIT License
5980
+
5981
+ Copyright (c) 2021 hclarke
5982
+
5983
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5984
+ of this software and associated documentation files (the "Software"), to deal
5985
+ in the Software without restriction, including without limitation the rights
5986
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5987
+ copies of the Software, and to permit persons to whom the Software is
5988
+ furnished to do so, subject to the following conditions:
5989
+
5990
+ The above copyright notice and this permission notice shall be included in all
5991
+ copies or substantial portions of the Software.
5992
+
5993
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5994
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5995
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5996
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5997
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5998
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5999
+ SOFTWARE.
6000
+
6001
+ ```
6002
+
6003
+ ## 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
5624
6004
 
5625
6005
  ```
5626
6006
  MIT License
@@ -6319,6 +6699,33 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
6319
6699
  SOFTWARE.
6320
6700
 
6321
6701
 
6702
+ ```
6703
+
6704
+ ## scroll 0.12.0
6705
+
6706
+ ```
6707
+ The MIT License (MIT)
6708
+
6709
+ Copyright (c) m4b 2016
6710
+
6711
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6712
+ of this software and associated documentation files (the "Software"), to deal
6713
+ in the Software without restriction, including without limitation the rights
6714
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
6715
+ copies of the Software, and to permit persons to whom the Software is
6716
+ furnished to do so, subject to the following conditions:
6717
+
6718
+ The above copyright notice and this permission notice shall be included in all
6719
+ copies or substantial portions of the Software.
6720
+
6721
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6722
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6723
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
6724
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
6725
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
6726
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
6727
+ SOFTWARE.
6728
+
6322
6729
  ```
6323
6730
 
6324
6731
  ## 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.1",
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