@signalapp/libsignal-client 0.45.0 → 0.46.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
@@ -178,7 +178,7 @@ export function CiphertextMessage_FromPlaintextContent(m: Wrapper<PlaintextConte
178
178
  export function CiphertextMessage_Serialize(obj: Wrapper<CiphertextMessage>): Buffer;
179
179
  export function CiphertextMessage_Type(msg: Wrapper<CiphertextMessage>): number;
180
180
  export function ConnectionManager_clear_proxy(connectionManager: Wrapper<ConnectionManager>): void;
181
- export function ConnectionManager_new(environment: number): ConnectionManager;
181
+ export function ConnectionManager_new(environment: number, userAgent: string): ConnectionManager;
182
182
  export function ConnectionManager_set_ipv6_enabled(connectionManager: Wrapper<ConnectionManager>, ipv6Enabled: boolean): void;
183
183
  export function ConnectionManager_set_proxy(connectionManager: Wrapper<ConnectionManager>, host: string, port: number): void;
184
184
  export function CreateCallLinkCredentialPresentation_CheckValidContents(presentationBytes: Buffer): void;
package/dist/Address.d.ts CHANGED
@@ -4,6 +4,12 @@ export declare enum ServiceIdKind {
4
4
  Aci = 0,
5
5
  Pni = 1
6
6
  }
7
+ /**
8
+ * Typed representation of a Signal service ID, which can be one of various types.
9
+ *
10
+ * Conceptually this is a UUID in a particular "namespace" representing a particular way to reach a
11
+ * user on the Signal service.
12
+ */
7
13
  export declare abstract class ServiceId extends Object {
8
14
  private readonly serviceIdFixedWidthBinary;
9
15
  constructor(serviceIdFixedWidthBinary: Buffer);
@@ -19,6 +25,12 @@ export declare abstract class ServiceId extends Object {
19
25
  getRawUuid(): string;
20
26
  getRawUuidBytes(): Buffer;
21
27
  isEqual(other: ServiceId): boolean;
28
+ /**
29
+ * Orders ServiceIds by kind, then lexicographically by the bytes of the UUID.
30
+ *
31
+ * Compatible with <code>Array.sort</code>.
32
+ */
33
+ static comparator(this: void, lhs: ServiceId, rhs: ServiceId): number;
22
34
  static toConcatenatedFixedWidthBinary(serviceIds: ServiceId[]): Buffer;
23
35
  }
24
36
  export declare class Aci extends ServiceId {
package/dist/Address.js CHANGED
@@ -13,6 +13,12 @@ var ServiceIdKind;
13
13
  ServiceIdKind[ServiceIdKind["Pni"] = 1] = "Pni";
14
14
  })(ServiceIdKind = exports.ServiceIdKind || (exports.ServiceIdKind = {}));
15
15
  const SERVICE_ID_FIXED_WIDTH_BINARY_LEN = 17;
16
+ /**
17
+ * Typed representation of a Signal service ID, which can be one of various types.
18
+ *
19
+ * Conceptually this is a UUID in a particular "namespace" representing a particular way to reach a
20
+ * user on the Signal service.
21
+ */
16
22
  class ServiceId extends Object {
17
23
  // This has to be public for `InstanceType<T>`, which we use below.
18
24
  constructor(serviceIdFixedWidthBinary) {
@@ -78,6 +84,14 @@ class ServiceId extends Object {
78
84
  isEqual(other) {
79
85
  return this.serviceIdFixedWidthBinary.equals(other.serviceIdFixedWidthBinary);
80
86
  }
87
+ /**
88
+ * Orders ServiceIds by kind, then lexicographically by the bytes of the UUID.
89
+ *
90
+ * Compatible with <code>Array.sort</code>.
91
+ */
92
+ static comparator(lhs, rhs) {
93
+ return lhs.serviceIdFixedWidthBinary.compare(rhs.serviceIdFixedWidthBinary);
94
+ }
81
95
  static toConcatenatedFixedWidthBinary(serviceIds) {
82
96
  const result = Buffer.alloc(serviceIds.length * SERVICE_ID_FIXED_WIDTH_BINARY_LEN);
83
97
  let offset = 0;
@@ -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.45.0, libsignal-jni 0.45.0, libsignal-message-backup 0.1.0, libsignal-message-backup-macros 0.1.0, libsignal-net 0.1.0, libsignal-node 0.45.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
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.46.0, libsignal-jni 0.46.0, libsignal-message-backup 0.1.0, libsignal-message-backup-macros 0.1.0, libsignal-net 0.1.0, libsignal-node 0.46.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
@@ -2377,6 +2377,24 @@ express Statement of Purpose.
2377
2377
 
2378
2378
  ```
2379
2379
 
2380
+ ## ring 0.17.8
2381
+
2382
+ ```
2383
+ Copyright 2015-2016 Brian Smith.
2384
+
2385
+ Permission to use, copy, modify, and/or distribute this software for any
2386
+ purpose with or without fee is hereby granted, provided that the above
2387
+ copyright notice and this permission notice appear in all copies.
2388
+
2389
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
2390
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
2391
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
2392
+ SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
2393
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
2394
+ OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
2395
+ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2396
+ ```
2397
+
2380
2398
  ## boring-sys 4.6.0
2381
2399
 
2382
2400
  ```
@@ -2395,6 +2413,44 @@ express Statement of Purpose.
2395
2413
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
2396
2414
  ```
2397
2415
 
2416
+ ## ring 0.17.8
2417
+
2418
+ ```
2419
+ /* Copyright (c) 2015, Google Inc.
2420
+ *
2421
+ * Permission to use, copy, modify, and/or distribute this software for any
2422
+ * purpose with or without fee is hereby granted, provided that the above
2423
+ * copyright notice and this permission notice appear in all copies.
2424
+ *
2425
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
2426
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
2427
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
2428
+ * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
2429
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
2430
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
2431
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
2432
+
2433
+ ```
2434
+
2435
+ ## untrusted 0.9.0
2436
+
2437
+ ```
2438
+ // Copyright 2015-2016 Brian Smith.
2439
+ //
2440
+ // Permission to use, copy, modify, and/or distribute this software for any
2441
+ // purpose with or without fee is hereby granted, provided that the above
2442
+ // copyright notice and this permission notice appear in all copies.
2443
+ //
2444
+ // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
2445
+ // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
2446
+ // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
2447
+ // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
2448
+ // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
2449
+ // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
2450
+ // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2451
+
2452
+ ```
2453
+
2398
2454
  ## libloading 0.8.3
2399
2455
 
2400
2456
  ```
@@ -2413,6 +2469,31 @@ THIS SOFTWARE.
2413
2469
 
2414
2470
  ```
2415
2471
 
2472
+ ## rustls-webpki 0.102.2
2473
+
2474
+ ```
2475
+ Except as otherwise noted, this project is licensed under the following
2476
+ (ISC-style) terms:
2477
+
2478
+ Copyright 2015 Brian Smith.
2479
+
2480
+ Permission to use, copy, modify, and/or distribute this software for any
2481
+ purpose with or without fee is hereby granted, provided that the above
2482
+ copyright notice and this permission notice appear in all copies.
2483
+
2484
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
2485
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
2486
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
2487
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
2488
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
2489
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
2490
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2491
+
2492
+ The files under third-party/chromium are licensed as described in
2493
+ third-party/chromium/LICENSE.
2494
+
2495
+ ```
2496
+
2416
2497
  ## 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.4, windows_aarch64_msvc 0.42.2, windows_aarch64_msvc 0.48.5, windows_aarch64_msvc 0.52.4, windows_x86_64_gnu 0.48.5, windows_x86_64_gnu 0.52.4, windows_x86_64_msvc 0.42.2, windows_x86_64_msvc 0.48.5, windows_x86_64_msvc 0.52.4
2417
2498
 
2418
2499
  ```
@@ -2805,7 +2886,7 @@ DEALINGS IN THE SOFTWARE.
2805
2886
 
2806
2887
  ```
2807
2888
 
2808
- ## bitflags 1.3.2, bitflags 2.4.2, glob 0.3.1, log 0.4.21, num-derive 0.4.2, num-integer 0.1.46, num-traits 0.2.18, range-map 0.2.0, regex 1.10.3, regex-automata 0.4.6, regex-syntax 0.8.2
2889
+ ## bitflags 1.3.2, bitflags 2.4.2, glob 0.3.1, log 0.4.21, num-bigint 0.4.4, num-derive 0.4.2, num-integer 0.1.46, num-traits 0.2.18, range-map 0.2.0, regex 1.10.3, regex-automata 0.4.6, regex-syntax 0.8.2
2809
2890
 
2810
2891
  ```
2811
2892
  Copyright (c) 2014 The Rust Project Developers
@@ -3270,6 +3351,32 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3270
3351
  SOFTWARE.
3271
3352
  ```
3272
3353
 
3354
+ ## ring 0.17.8
3355
+
3356
+ ```
3357
+ Copyright (c) 2015-2016 the fiat-crypto authors (see
3358
+ https://github.com/mit-plv/fiat-crypto/blob/master/AUTHORS).
3359
+
3360
+ Permission is hereby granted, free of charge, to any person obtaining a copy
3361
+ of this software and associated documentation files (the "Software"), to deal
3362
+ in the Software without restriction, including without limitation the rights
3363
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3364
+ copies of the Software, and to permit persons to whom the Software is
3365
+ furnished to do so, subject to the following conditions:
3366
+
3367
+ The above copyright notice and this permission notice shall be included in all
3368
+ copies or substantial portions of the Software.
3369
+
3370
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3371
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3372
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3373
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3374
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3375
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3376
+ SOFTWARE.
3377
+
3378
+ ```
3379
+
3273
3380
  ## fixedbitset 0.4.2
3274
3381
 
3275
3382
  ```
@@ -3540,7 +3647,7 @@ DEALINGS IN THE SOFTWARE.
3540
3647
 
3541
3648
  ```
3542
3649
 
3543
- ## rustls-native-certs 0.6.3, rustls-pemfile 1.0.4
3650
+ ## rustls 0.23.4, rustls-native-certs 0.7.0, rustls-pemfile 2.1.2
3544
3651
 
3545
3652
  ```
3546
3653
  Copyright (c) 2016 Joseph Birr-Pixton <jpixton@gmail.com>
@@ -5170,6 +5277,37 @@ SOFTWARE.
5170
5277
 
5171
5278
  ```
5172
5279
 
5280
+ ## rustls-pki-types 1.4.1
5281
+
5282
+ ```
5283
+ Copyright (c) 2023 Dirkjan Ochtman <dirkjan@ochtman.nl>
5284
+
5285
+ Permission is hereby granted, free of charge, to any
5286
+ person obtaining a copy of this software and associated
5287
+ documentation files (the "Software"), to deal in the
5288
+ Software without restriction, including without
5289
+ limitation the rights to use, copy, modify, merge,
5290
+ publish, distribute, sublicense, and/or sell copies of
5291
+ the Software, and to permit persons to whom the Software
5292
+ is furnished to do so, subject to the following
5293
+ conditions:
5294
+
5295
+ The above copyright notice and this permission notice
5296
+ shall be included in all copies or substantial portions
5297
+ of the Software.
5298
+
5299
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
5300
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
5301
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
5302
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
5303
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
5304
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
5305
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
5306
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
5307
+ DEALINGS IN THE SOFTWARE.
5308
+
5309
+ ```
5310
+
5173
5311
  ## num-conv 0.1.0
5174
5312
 
5175
5313
  ```
@@ -5892,7 +6030,7 @@ SOFTWARE.
5892
6030
 
5893
6031
  ```
5894
6032
 
5895
- ## cesu8 1.1.0, curve25519-dalek-derive 0.1.0, half 2.4.0, pqcrypto-internals 0.2.5, pqcrypto-kyber 0.7.9, pqcrypto-kyber 0.8.1, pqcrypto-traits 0.3.5
6033
+ ## cesu8 1.1.0, curve25519-dalek-derive 0.1.0, half 2.4.0, pqcrypto-internals 0.2.5, pqcrypto-kyber 0.7.9, pqcrypto-kyber 0.8.1, pqcrypto-traits 0.3.5, rustls-platform-verifier 0.3.1, rustls-platform-verifier-android 0.1.0
5896
6034
 
5897
6035
  ```
5898
6036
  MIT License
@@ -6125,6 +6263,32 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6125
6263
 
6126
6264
  ```
6127
6265
 
6266
+ ## spin 0.9.8
6267
+
6268
+ ```
6269
+ The MIT License (MIT)
6270
+
6271
+ Copyright (c) 2014 Mathijs van de Nes
6272
+
6273
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6274
+ of this software and associated documentation files (the "Software"), to deal
6275
+ in the Software without restriction, including without limitation the rights
6276
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
6277
+ copies of the Software, and to permit persons to whom the Software is
6278
+ furnished to do so, subject to the following conditions:
6279
+
6280
+ The above copyright notice and this permission notice shall be included in all
6281
+ copies or substantial portions of the Software.
6282
+
6283
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6284
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6285
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
6286
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
6287
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
6288
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
6289
+ SOFTWARE.
6290
+ ```
6291
+
6128
6292
  ## typenum 1.17.0
6129
6293
 
6130
6294
  ```
@@ -6178,7 +6342,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
6178
6342
  THE SOFTWARE.
6179
6343
  ```
6180
6344
 
6181
- ## base64 0.21.7
6345
+ ## base64 0.21.7, base64 0.22.0
6182
6346
 
6183
6347
  ```
6184
6348
  The MIT License (MIT)
@@ -6424,7 +6588,7 @@ SOFTWARE.
6424
6588
 
6425
6589
  ```
6426
6590
 
6427
- ## jni 0.21.1
6591
+ ## jni 0.19.0, jni 0.21.1
6428
6592
 
6429
6593
  ```
6430
6594
  The MIT License (MIT)
@@ -6698,7 +6862,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
6698
6862
  SOFTWARE.
6699
6863
  ```
6700
6864
 
6701
- ## boring-sys 4.6.0
6865
+ ## boring-sys 4.6.0, ring 0.17.8
6702
6866
 
6703
6867
  ```
6704
6868
  /* ====================================================================
package/dist/net.d.ts CHANGED
@@ -97,7 +97,7 @@ export declare class Net {
97
97
  * Instance of the {@link Svr3Client} to access SVR3.
98
98
  */
99
99
  svr3: Svr3Client;
100
- constructor(env: Environment);
100
+ constructor(env: Environment, userAgent: string);
101
101
  /**
102
102
  * Creates a new instance of {@link ChatService}.
103
103
  */
package/dist/net.js CHANGED
@@ -95,9 +95,9 @@ class ChatService {
95
95
  }
96
96
  exports.ChatService = ChatService;
97
97
  class Net {
98
- constructor(env) {
98
+ constructor(env, userAgent) {
99
99
  this.asyncContext = newNativeHandle(Native.TokioAsyncContext_new());
100
- this.connectionManager = newNativeHandle(Native.ConnectionManager_new(env));
100
+ this.connectionManager = newNativeHandle(Native.ConnectionManager_new(env, userAgent));
101
101
  this.svr3 = new Svr3ClientImpl(this.asyncContext, this.connectionManager);
102
102
  }
103
103
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalapp/libsignal-client",
3
- "version": "0.45.0",
3
+ "version": "0.46.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