@signalapp/libsignal-client 0.56.1 → 0.57.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 +4 -1
- package/dist/acknowledgments.md +1 -1
- package/dist/net.d.ts +5 -3
- package/dist/net.js +4 -4
- package/package.json +1 -1
- 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
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
4
4
|
//
|
|
5
5
|
|
|
6
|
+
import { LibSignalError } from './ts/Errors';
|
|
7
|
+
|
|
6
8
|
// WARNING: this file was automatically generated
|
|
7
9
|
|
|
8
10
|
type Uuid = Buffer;
|
|
@@ -120,7 +122,7 @@ export abstract class ChatListener {
|
|
|
120
122
|
ack: ServerMessageAck
|
|
121
123
|
): void;
|
|
122
124
|
_queue_empty(): void;
|
|
123
|
-
_connection_interrupted(): void;
|
|
125
|
+
_connection_interrupted(reason: LibSignalError | null): void;
|
|
124
126
|
}
|
|
125
127
|
|
|
126
128
|
export abstract class MakeChatListener extends ChatListener {}
|
|
@@ -498,6 +500,7 @@ export function TESTING_ChatServiceErrorConvert(errorDescription: string): void;
|
|
|
498
500
|
export function TESTING_ChatServiceResponseAndDebugInfoConvert(): ResponseAndDebugInfo;
|
|
499
501
|
export function TESTING_ChatServiceResponseConvert(bodyPresent: boolean): ChatResponse;
|
|
500
502
|
export function TESTING_ChatService_InjectConnectionInterrupted(chat: Wrapper<Chat>): void;
|
|
503
|
+
export function TESTING_ChatService_InjectIntentionalDisconnect(chat: Wrapper<Chat>): void;
|
|
501
504
|
export function TESTING_ChatService_InjectRawServerRequest(chat: Wrapper<Chat>, bytes: Buffer): void;
|
|
502
505
|
export function TESTING_ErrorOnBorrowAsync(_input: null): Promise<void>;
|
|
503
506
|
export function TESTING_ErrorOnBorrowIo(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _input: null): Promise<void>;
|
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.57.0, libsignal-jni 0.57.0, libsignal-jni-testing 0.57.0, libsignal-node 0.57.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-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, libsignal-keytrans 0.0.1, 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
|
package/dist/net.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import type { ReadonlyDeep } from 'type-fest';
|
|
3
3
|
import * as Native from '../Native';
|
|
4
|
+
import { LibSignalError } from './Errors';
|
|
4
5
|
import { Wrapper } from '../Native';
|
|
5
6
|
import { Buffer } from 'node:buffer';
|
|
6
7
|
export declare enum Environment {
|
|
@@ -55,10 +56,11 @@ export interface ConnectionEventsListener {
|
|
|
55
56
|
/**
|
|
56
57
|
* Called when the client gets disconnected from the server.
|
|
57
58
|
*
|
|
58
|
-
* This includes both deliberate disconnects as well as unexpected socket
|
|
59
|
-
*
|
|
59
|
+
* This includes both deliberate disconnects as well as unexpected socket
|
|
60
|
+
* closures. If the closure was not due to a deliberate disconnect, the error
|
|
61
|
+
* will be provided.
|
|
60
62
|
*/
|
|
61
|
-
onConnectionInterrupted(): void;
|
|
63
|
+
onConnectionInterrupted(cause: LibSignalError | null): void;
|
|
62
64
|
}
|
|
63
65
|
export interface ChatServiceListener extends ConnectionEventsListener {
|
|
64
66
|
/**
|
package/dist/net.js
CHANGED
|
@@ -73,8 +73,8 @@ class AuthenticatedChatService {
|
|
|
73
73
|
_queue_empty() {
|
|
74
74
|
listener.onQueueEmpty();
|
|
75
75
|
},
|
|
76
|
-
_connection_interrupted() {
|
|
77
|
-
listener.onConnectionInterrupted();
|
|
76
|
+
_connection_interrupted(cause) {
|
|
77
|
+
listener.onConnectionInterrupted(cause);
|
|
78
78
|
},
|
|
79
79
|
};
|
|
80
80
|
Native.ChatService_SetListenerAuth(asyncContext, this.chatService, nativeChatListener);
|
|
@@ -107,8 +107,8 @@ class UnauthenticatedChatService {
|
|
|
107
107
|
_queue_empty() {
|
|
108
108
|
throw new Error('Event not supported on unauthenticated connection');
|
|
109
109
|
},
|
|
110
|
-
_connection_interrupted() {
|
|
111
|
-
listener.onConnectionInterrupted();
|
|
110
|
+
_connection_interrupted(cause) {
|
|
111
|
+
listener.onConnectionInterrupted(cause);
|
|
112
112
|
},
|
|
113
113
|
};
|
|
114
114
|
Native.ChatService_SetListenerUnauth(asyncContext, this.chatService, nativeChatListener);
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|