@signalapp/libsignal-client 0.51.1 → 0.52.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 +2 -1
- package/dist/acknowledgments.md +4 -33
- package/dist/net.d.ts +2 -1
- package/dist/net.js +4 -3
- package/package.json +2 -2
- 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>;
|
|
@@ -522,6 +522,7 @@ export function TESTING_PanicOnReturnIo(asyncRuntime: Wrapper<NonSuspendingBackg
|
|
|
522
522
|
export function TESTING_PanicOnReturnSync(_needsCleanup: null): null;
|
|
523
523
|
export function TESTING_ProcessBytestringArray(input: Buffer[]): Buffer[];
|
|
524
524
|
export function TESTING_ReturnStringArray(): string[];
|
|
525
|
+
export function TESTING_ServerMessageAck_Create(): ServerMessageAck;
|
|
525
526
|
export function TESTING_TestingHandleType_getValue(handle: Wrapper<TestingHandleType>): number;
|
|
526
527
|
export function TokioAsyncContext_cancel(context: Wrapper<TokioAsyncContext>, rawCancellationId: bigint): void;
|
|
527
528
|
export function TokioAsyncContext_new(): TokioAsyncContext;
|
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.0, libsignal-jni 0.52.0, libsignal-node 0.52.0, 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-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
|
|
@@ -5879,7 +5879,7 @@ SOFTWARE.
|
|
|
5879
5879
|
|
|
5880
5880
|
```
|
|
5881
5881
|
|
|
5882
|
-
## strum 0.26.2, strum_macros 0.26.
|
|
5882
|
+
## strum 0.26.2, strum_macros 0.26.4
|
|
5883
5883
|
|
|
5884
5884
|
```
|
|
5885
5885
|
MIT License
|
|
@@ -6235,7 +6235,7 @@ DEALINGS IN THE SOFTWARE.
|
|
|
6235
6235
|
|
|
6236
6236
|
```
|
|
6237
6237
|
|
|
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
|
|
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, 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
6239
|
|
|
6240
6240
|
```
|
|
6241
6241
|
Permission is hereby granted, free of charge, to any
|
|
@@ -6264,35 +6264,6 @@ DEALINGS IN THE SOFTWARE.
|
|
|
6264
6264
|
|
|
6265
6265
|
```
|
|
6266
6266
|
|
|
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
6267
|
## winnow 0.5.40
|
|
6297
6268
|
|
|
6298
6269
|
```
|
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.1",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -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
|