@signalapp/libsignal-client 0.51.1 → 0.52.3
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 +4 -1
- package/dist/acknowledgments.md +36 -48
- package/dist/net.d.ts +2 -1
- package/dist/net.js +4 -3
- package/package.json +3 -3
- package/prebuilds/darwin-arm64/@signalapp+libsignal-client.node +0 -0
- package/prebuilds/darwin-x64/@signalapp+libsignal-client.node +0 -0
- package/prebuilds/linux-arm64/@signalapp+libsignal-client.node +0 -0
- package/prebuilds/linux-x64/@signalapp+libsignal-client.node +0 -0
- package/prebuilds/win32-arm64/@signalapp+libsignal-client.node +0 -0
- package/prebuilds/win32-x64/@signalapp+libsignal-client.node +0 -0
package/Native.d.ts
CHANGED
|
@@ -420,7 +420,7 @@ export function ServerCertificate_GetKeyId(obj: Wrapper<ServerCertificate>): num
|
|
|
420
420
|
export function ServerCertificate_GetSerialized(obj: Wrapper<ServerCertificate>): Buffer;
|
|
421
421
|
export function ServerCertificate_GetSignature(obj: Wrapper<ServerCertificate>): Buffer;
|
|
422
422
|
export function ServerCertificate_New(keyId: number, serverKey: Wrapper<PublicKey>, trustRoot: Wrapper<PrivateKey>): ServerCertificate;
|
|
423
|
-
export function
|
|
423
|
+
export function ServerMessageAck_SendStatus(asyncRuntime: Wrapper<TokioAsyncContext>, ack: Wrapper<ServerMessageAck>, status: number): Promise<void>;
|
|
424
424
|
export function ServerPublicParams_CreateAuthCredentialWithPniPresentationDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness: Buffer, groupSecretParams: Serialized<GroupSecretParams>, authCredentialWithPniBytes: Buffer): Buffer;
|
|
425
425
|
export function ServerPublicParams_CreateExpiringProfileKeyCredentialPresentationDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness: Buffer, groupSecretParams: Serialized<GroupSecretParams>, profileKeyCredential: Serialized<ExpiringProfileKeyCredential>): Buffer;
|
|
426
426
|
export function ServerPublicParams_CreateProfileKeyCredentialRequestContextDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness: Buffer, userId: Buffer, profileKey: Serialized<ProfileKey>): Serialized<ProfileKeyCredentialRequestContext>;
|
|
@@ -505,6 +505,7 @@ export function TESTING_FutureFailure(asyncRuntime: Wrapper<NonSuspendingBackgro
|
|
|
505
505
|
export function TESTING_FutureProducesOtherPointerType(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, input: string): Promise<OtherTestingHandleType>;
|
|
506
506
|
export function TESTING_FutureProducesPointerType(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, input: number): Promise<TestingHandleType>;
|
|
507
507
|
export function TESTING_FutureSuccess(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, input: number): Promise<number>;
|
|
508
|
+
export function TESTING_InputStreamReadIntoZeroLengthSlice(capsAlphabetInput: InputStream): Promise<Buffer>;
|
|
508
509
|
export function TESTING_NonSuspendingBackgroundThreadRuntime_New(): NonSuspendingBackgroundThreadRuntime;
|
|
509
510
|
export function TESTING_OnlyCompletesByCancellation(asyncRuntime: Wrapper<TokioAsyncContext>): Promise<void>;
|
|
510
511
|
export function TESTING_OtherTestingHandleType_getValue(handle: Wrapper<OtherTestingHandleType>): string;
|
|
@@ -522,6 +523,7 @@ export function TESTING_PanicOnReturnIo(asyncRuntime: Wrapper<NonSuspendingBackg
|
|
|
522
523
|
export function TESTING_PanicOnReturnSync(_needsCleanup: null): null;
|
|
523
524
|
export function TESTING_ProcessBytestringArray(input: Buffer[]): Buffer[];
|
|
524
525
|
export function TESTING_ReturnStringArray(): string[];
|
|
526
|
+
export function TESTING_ServerMessageAck_Create(): ServerMessageAck;
|
|
525
527
|
export function TESTING_TestingHandleType_getValue(handle: Wrapper<TestingHandleType>): number;
|
|
526
528
|
export function TokioAsyncContext_cancel(context: Wrapper<TokioAsyncContext>, rawCancellationId: bigint): void;
|
|
527
529
|
export function TokioAsyncContext_new(): TokioAsyncContext;
|
|
@@ -546,6 +548,7 @@ export function ValidatingMac_Initialize(key: Buffer, chunkSize: number, digests
|
|
|
546
548
|
export function ValidatingMac_Update(mac: Wrapper<ValidatingMac>, bytes: Buffer, offset: number, length: number): number;
|
|
547
549
|
export function WebpSanitizer_Sanitize(input: SyncInputStream): void;
|
|
548
550
|
export function initLogger(maxLevel: LogLevel, callback: (level: LogLevel, target: string, file: string | null, line: number | null, message: string) => void): void
|
|
551
|
+
export function test_only_fn_returns_123(): number;
|
|
549
552
|
interface Aes256GcmSiv { readonly __type: unique symbol; }
|
|
550
553
|
interface CdsiLookup { readonly __type: unique symbol; }
|
|
551
554
|
interface Chat { readonly __type: unique symbol; }
|
package/dist/acknowledgments.md
CHANGED
|
@@ -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, libsignal-ffi 0.
|
|
672
|
+
## attest 0.1.0, libsignal-ffi 0.52.3, libsignal-jni 0.52.3, libsignal-jni-testing 0.52.3, libsignal-node 0.52.3, signal-neon-futures 0.1.0, signal-neon-futures-tests 0.1.0, libsignal-bridge 0.1.0, libsignal-bridge-macros 0.1.0, libsignal-bridge-testing 0.1.0, libsignal-bridge-types 0.1.0, libsignal-core 0.1.0, signal-crypto 0.1.0, device-transfer 0.1.0, signal-media 0.1.0, libsignal-message-backup 0.1.0, libsignal-message-backup-macros 0.1.0, libsignal-net 0.1.0, signal-pin 0.1.0, poksho 0.7.0, libsignal-protocol 0.1.0, libsignal-svr3 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
|
|
@@ -3192,7 +3192,7 @@ DEALINGS IN THE SOFTWARE.
|
|
|
3192
3192
|
|
|
3193
3193
|
```
|
|
3194
3194
|
|
|
3195
|
-
## gimli 0.28.1, heck 0.3.3, heck 0.4.1, peeking_take_while 0.1.2, unicode-bidi 0.3.15, unicode-normalization 0.1.23, unicode-segmentation 1.11.0
|
|
3195
|
+
## gimli 0.28.1, heck 0.3.3, heck 0.4.1, heck 0.5.0, peeking_take_while 0.1.2, unicode-bidi 0.3.15, unicode-normalization 0.1.23, unicode-segmentation 1.11.0
|
|
3196
3196
|
|
|
3197
3197
|
```
|
|
3198
3198
|
Copyright (c) 2015 The Rust Project Developers
|
|
@@ -5576,6 +5576,38 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
|
5576
5576
|
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
5577
5577
|
DEALINGS IN THE SOFTWARE.
|
|
5578
5578
|
|
|
5579
|
+
```
|
|
5580
|
+
|
|
5581
|
+
## zerocopy-derive 0.7.34, zerocopy 0.7.34
|
|
5582
|
+
|
|
5583
|
+
```
|
|
5584
|
+
Copyright 2023 The Fuchsia Authors
|
|
5585
|
+
|
|
5586
|
+
Permission is hereby granted, free of charge, to any
|
|
5587
|
+
person obtaining a copy of this software and associated
|
|
5588
|
+
documentation files (the "Software"), to deal in the
|
|
5589
|
+
Software without restriction, including without
|
|
5590
|
+
limitation the rights to use, copy, modify, merge,
|
|
5591
|
+
publish, distribute, sublicense, and/or sell copies of
|
|
5592
|
+
the Software, and to permit persons to whom the Software
|
|
5593
|
+
is furnished to do so, subject to the following
|
|
5594
|
+
conditions:
|
|
5595
|
+
|
|
5596
|
+
The above copyright notice and this permission notice
|
|
5597
|
+
shall be included in all copies or substantial portions
|
|
5598
|
+
of the Software.
|
|
5599
|
+
|
|
5600
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
5601
|
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
5602
|
+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
5603
|
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
5604
|
+
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
5605
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
5606
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
5607
|
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
5608
|
+
DEALINGS IN THE SOFTWARE.
|
|
5609
|
+
|
|
5610
|
+
|
|
5579
5611
|
```
|
|
5580
5612
|
|
|
5581
5613
|
## encoding_rs 0.8.34
|
|
@@ -5879,7 +5911,7 @@ SOFTWARE.
|
|
|
5879
5911
|
|
|
5880
5912
|
```
|
|
5881
5913
|
|
|
5882
|
-
## strum 0.26.2, strum_macros 0.26.
|
|
5914
|
+
## strum 0.26.2, strum_macros 0.26.4
|
|
5883
5915
|
|
|
5884
5916
|
```
|
|
5885
5917
|
MIT License
|
|
@@ -6188,21 +6220,6 @@ SOFTWARE.
|
|
|
6188
6220
|
|
|
6189
6221
|
```
|
|
6190
6222
|
|
|
6191
|
-
## bytemuck 1.16.0
|
|
6192
|
-
|
|
6193
|
-
```
|
|
6194
|
-
MIT License
|
|
6195
|
-
|
|
6196
|
-
Copyright (c) 2019 Daniel "Lokathor" Gee.
|
|
6197
|
-
|
|
6198
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6199
|
-
|
|
6200
|
-
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
|
|
6201
|
-
|
|
6202
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
6203
|
-
|
|
6204
|
-
```
|
|
6205
|
-
|
|
6206
6223
|
## lazycell 1.3.0
|
|
6207
6224
|
|
|
6208
6225
|
```
|
|
@@ -6235,7 +6252,7 @@ DEALINGS IN THE SOFTWARE.
|
|
|
6235
6252
|
|
|
6236
6253
|
```
|
|
6237
6254
|
|
|
6238
|
-
## curve25519-dalek-derive 0.1.1, adler 1.0.2, anyhow 1.0.86, async-trait 0.1.80, atomic-waker 1.1.2, dyn-clone 1.0.17, fastrand 2.1.0, home 0.5.9, is-terminal 0.4.12, itoa 1.0.11, linkme-impl 0.3.26, linkme 0.3.26, linux-raw-sys 0.4.14, minimal-lexical 0.2.1, num_enum 0.6.1, num_enum_derive 0.6.1, once_cell 1.19.0, paste 1.0.15, pin-project-lite 0.2.14, prettyplease 0.2.20, proc-macro-crate 1.3.1, proc-macro2 1.0.83, quote 1.0.36, rustc-hash 1.1.0, rustix 0.38.34, rustversion 1.0.17, semver 1.0.23, send_wrapper 0.6.0, serde 1.0.202, serde_derive 1.0.202, serde_json 1.0.117, syn-mid 0.6.0, syn 1.0.109, syn 2.0.66, thiserror-impl 1.0.61, thiserror 1.0.61, unicode-ident 1.0.12, utf-8 0.7.6
|
|
6255
|
+
## curve25519-dalek-derive 0.1.1, adler 1.0.2, anyhow 1.0.86, async-trait 0.1.80, atomic-waker 1.1.2, displaydoc 0.2.5, dyn-clone 1.0.17, fastrand 2.1.0, home 0.5.9, is-terminal 0.4.12, itoa 1.0.11, linkme-impl 0.3.26, linkme 0.3.26, linux-raw-sys 0.4.14, minimal-lexical 0.2.1, num_enum 0.6.1, num_enum_derive 0.6.1, once_cell 1.19.0, paste 1.0.15, pin-project-lite 0.2.14, prettyplease 0.2.20, proc-macro-crate 1.3.1, proc-macro2 1.0.83, quote 1.0.36, rustc-hash 1.1.0, rustix 0.38.34, rustversion 1.0.17, semver 1.0.23, send_wrapper 0.6.0, serde 1.0.202, serde_derive 1.0.202, serde_json 1.0.117, syn-mid 0.6.0, syn 1.0.109, syn 2.0.66, thiserror-impl 1.0.61, thiserror 1.0.61, unicode-ident 1.0.12, utf-8 0.7.6
|
|
6239
6256
|
|
|
6240
6257
|
```
|
|
6241
6258
|
Permission is hereby granted, free of charge, to any
|
|
@@ -6264,35 +6281,6 @@ DEALINGS IN THE SOFTWARE.
|
|
|
6264
6281
|
|
|
6265
6282
|
```
|
|
6266
6283
|
|
|
6267
|
-
## displaydoc 0.2.4
|
|
6268
|
-
|
|
6269
|
-
```
|
|
6270
|
-
Permission is hereby granted, free of charge, to any
|
|
6271
|
-
person obtaining a copy of this software and associated
|
|
6272
|
-
documentation files (the "Software"), to deal in the
|
|
6273
|
-
Software without restriction, including without
|
|
6274
|
-
limitation the rights to use, copy, modify, merge,
|
|
6275
|
-
publish, distribute, sublicense, and/or sell copies of
|
|
6276
|
-
the Software, and to permit persons to whom the Software
|
|
6277
|
-
is furnished to do so, subject to the following
|
|
6278
|
-
conditions:
|
|
6279
|
-
|
|
6280
|
-
The above copyright notice and this permission notice
|
|
6281
|
-
shall be included in all copies or substantial portions
|
|
6282
|
-
of the Software.
|
|
6283
|
-
|
|
6284
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
6285
|
-
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
6286
|
-
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
6287
|
-
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
6288
|
-
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
6289
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
6290
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
6291
|
-
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
6292
|
-
DEALINGS IN THE SOFTWARE.
|
|
6293
|
-
|
|
6294
|
-
```
|
|
6295
|
-
|
|
6296
6284
|
## winnow 0.5.40
|
|
6297
6285
|
|
|
6298
6286
|
```
|
package/dist/net.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export type ChatRequest = Readonly<{
|
|
|
37
37
|
timeoutMillis?: number;
|
|
38
38
|
}>;
|
|
39
39
|
type ConnectionManager = Wrapper<Native.ConnectionManager>;
|
|
40
|
+
export declare function newNativeHandle<T>(handle: T): Wrapper<T>;
|
|
40
41
|
/** Low-level async runtime control, mostly just exported for testing. */
|
|
41
42
|
export declare class TokioAsyncContext {
|
|
42
43
|
readonly _nativeHandle: Native.TokioAsyncContext;
|
|
@@ -48,7 +49,7 @@ export declare class ChatServerMessageAck {
|
|
|
48
49
|
readonly _nativeHandle: Native.ServerMessageAck;
|
|
49
50
|
private promise;
|
|
50
51
|
constructor(asyncContext: TokioAsyncContext, _nativeHandle: Native.ServerMessageAck);
|
|
51
|
-
send(): Promise<void>;
|
|
52
|
+
send(statusCode: number): Promise<void>;
|
|
52
53
|
}
|
|
53
54
|
export interface ChatServiceListener {
|
|
54
55
|
/**
|
package/dist/net.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
5
5
|
//
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.RestoredSecret = exports.Net = exports.ChatService = exports.ChatServerMessageAck = exports.TokioAsyncContext = exports.Environment = void 0;
|
|
7
|
+
exports.RestoredSecret = exports.Net = exports.ChatService = exports.ChatServerMessageAck = exports.TokioAsyncContext = exports.newNativeHandle = exports.Environment = void 0;
|
|
8
8
|
const Native = require("../Native");
|
|
9
9
|
const Address_1 = require("./Address");
|
|
10
10
|
const node_buffer_1 = require("node:buffer");
|
|
@@ -20,6 +20,7 @@ function newNativeHandle(handle) {
|
|
|
20
20
|
_nativeHandle: handle,
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
+
exports.newNativeHandle = newNativeHandle;
|
|
23
24
|
/** Low-level async runtime control, mostly just exported for testing. */
|
|
24
25
|
class TokioAsyncContext {
|
|
25
26
|
constructor(handle) {
|
|
@@ -50,9 +51,9 @@ class ChatServerMessageAck {
|
|
|
50
51
|
this._nativeHandle = _nativeHandle;
|
|
51
52
|
this.promise = null;
|
|
52
53
|
}
|
|
53
|
-
send() {
|
|
54
|
+
send(statusCode) {
|
|
54
55
|
if (!this.promise) {
|
|
55
|
-
this.promise = Native.
|
|
56
|
+
this.promise = Native.ServerMessageAck_SendStatus(this.asyncContext, this, statusCode);
|
|
56
57
|
}
|
|
57
58
|
return this.promise;
|
|
58
59
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signalapp/libsignal-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.3",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"prebuilds/*/*.node"
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
|
-
"install": "node-gyp
|
|
20
|
+
"install": "echo Use \\`npx node-gyp rebuild\\` to build the native library from scratch if needed",
|
|
21
21
|
"build": "node-gyp build",
|
|
22
22
|
"build-with-debug-level-logs": "npx --libsignal-debug-level-logs node-gyp build",
|
|
23
23
|
"tsc": "tsc -b",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@types/chai-as-promised": "^7.1.3",
|
|
40
40
|
"@types/chance": "^1.1.3",
|
|
41
41
|
"@types/mocha": "^5.2.7",
|
|
42
|
-
"@types/node": "~
|
|
42
|
+
"@types/node": "~20.11.0",
|
|
43
43
|
"@types/sinon": "^17.0.3",
|
|
44
44
|
"@types/sinon-chai": "^3.2.12",
|
|
45
45
|
"@types/uuid": "^8.3.0",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|