@signalapp/libsignal-client 0.82.0 → 0.82.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/dist/Address.js +1 -0
- package/dist/SealedSenderMultiRecipientMessage.js +1 -0
- package/dist/incremental_mac.js +2 -1
- package/dist/index.js +1 -0
- package/dist/net/KeyTransparency.d.ts +5 -1
- package/dist/net/KeyTransparency.js +3 -3
- package/dist/net/chat/UnauthUsernamesService.js +1 -0
- package/dist/zkgroup/groups/GroupIdentifier.js +1 -0
- 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/dist/Address.js
CHANGED
package/dist/incremental_mac.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Copyright 2023 Signal Messenger, LLC.
|
|
3
3
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
4
4
|
//
|
|
5
|
-
import Native from '../Native.js';
|
|
6
5
|
import * as stream from 'node:stream';
|
|
6
|
+
import { Buffer } from 'node:buffer';
|
|
7
|
+
import Native from '../Native.js';
|
|
7
8
|
import { LibSignalErrorBase, } from './Errors.js';
|
|
8
9
|
export function everyNthByte(n) {
|
|
9
10
|
return { kind: 'everyN', n: n };
|
package/dist/index.js
CHANGED
|
@@ -124,6 +124,8 @@ export interface Client {
|
|
|
124
124
|
* @throws {ChatServiceInactive} if the chat connection has been closed.
|
|
125
125
|
* @throws {IoError} if an error occurred while communicating with the
|
|
126
126
|
* server.
|
|
127
|
+
* @throws {RateLimitedError} if the server is rate limiting this client. This is **retryable**
|
|
128
|
+
* after waiting the designated delay.
|
|
127
129
|
* */
|
|
128
130
|
search: (request: Request, store: Store, options?: Readonly<Options>) => Promise<void>;
|
|
129
131
|
/**
|
|
@@ -155,6 +157,8 @@ export interface Client {
|
|
|
155
157
|
* @throws {ChatServiceInactive} if the chat connection has been closed.
|
|
156
158
|
* @throws {IoError} if an error occurred while communicating with the
|
|
157
159
|
* server.
|
|
160
|
+
* @throws {RateLimitedError} if the server is rate limiting this client. This is **retryable**
|
|
161
|
+
* after waiting the designated delay.
|
|
158
162
|
*/
|
|
159
163
|
monitor: (request: MonitorRequest, store: Store, options?: Readonly<Options>) => Promise<void>;
|
|
160
164
|
}
|
|
@@ -166,5 +170,5 @@ export declare class ClientImpl implements Client {
|
|
|
166
170
|
search(request: Request, store: Store, options?: Readonly<Options>): Promise<void>;
|
|
167
171
|
monitor(request: MonitorRequest, store: Store, options?: Readonly<Options>): Promise<void>;
|
|
168
172
|
private updateDistinguished;
|
|
169
|
-
|
|
173
|
+
_getLatestDistinguished(store: Store, options: Readonly<Options>): Promise<Uint8Array>;
|
|
170
174
|
}
|
|
@@ -23,7 +23,7 @@ export class ClientImpl {
|
|
|
23
23
|
this.env = env;
|
|
24
24
|
}
|
|
25
25
|
async search(request, store, options) {
|
|
26
|
-
const distinguished = await this.
|
|
26
|
+
const distinguished = await this._getLatestDistinguished(store, options ?? {});
|
|
27
27
|
const { abortSignal } = options ?? {};
|
|
28
28
|
const { aciInfo: { aci, identityKey: aciIdentityKey }, e164Info, usernameHash, } = request;
|
|
29
29
|
const { e164, unidentifiedAccessKey } = e164Info ?? {
|
|
@@ -34,7 +34,7 @@ export class ClientImpl {
|
|
|
34
34
|
await store.setAccountData(aci, accountData);
|
|
35
35
|
}
|
|
36
36
|
async monitor(request, store, options) {
|
|
37
|
-
const distinguished = await this.
|
|
37
|
+
const distinguished = await this._getLatestDistinguished(store, options ?? {});
|
|
38
38
|
const { abortSignal } = options ?? {};
|
|
39
39
|
const { aciInfo: { aci, identityKey: aciIdentityKey }, e164Info, usernameHash, mode, } = request;
|
|
40
40
|
const { e164, unidentifiedAccessKey } = e164Info ?? {
|
|
@@ -49,7 +49,7 @@ export class ClientImpl {
|
|
|
49
49
|
await store.setLastDistinguishedTreeHead(bytes);
|
|
50
50
|
return bytes;
|
|
51
51
|
}
|
|
52
|
-
async
|
|
52
|
+
async _getLatestDistinguished(store, options) {
|
|
53
53
|
return ((await store.getLastDistinguishedTreeHead()) ??
|
|
54
54
|
(await this.updateDistinguished(store, options)));
|
|
55
55
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Copyright 2025 Signal Messenger, LLC.
|
|
3
3
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
4
4
|
//
|
|
5
|
+
import { Buffer } from 'node:buffer';
|
|
5
6
|
import Native from '../../../Native.js';
|
|
6
7
|
import { Aci } from '../../Address.js';
|
|
7
8
|
import { UnauthenticatedChatConnection } from '../Chat.js';
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
4
4
|
//
|
|
5
5
|
import ByteArray from '../internal/ByteArray.js';
|
|
6
|
+
import { Buffer } from 'node:buffer';
|
|
6
7
|
class GroupIdentifier extends ByteArray {
|
|
7
8
|
constructor(contents) {
|
|
8
9
|
super(contents, GroupIdentifier.checkLength(GroupIdentifier.SIZE));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signalapp/libsignal-client",
|
|
3
|
-
"version": "0.82.
|
|
3
|
+
"version": "0.82.1",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"eslint-import-resolver-typescript": "^2.0.0",
|
|
57
57
|
"eslint-plugin-chai-expect": "^3.1.0",
|
|
58
58
|
"eslint-plugin-header": "^3.1.0",
|
|
59
|
-
"eslint-plugin-import": "^2.
|
|
59
|
+
"eslint-plugin-import": "^2.32.0",
|
|
60
60
|
"eslint-plugin-jsdoc": "^48.2.0",
|
|
61
61
|
"eslint-plugin-mocha": "^10.1.0",
|
|
62
62
|
"eslint-plugin-node-import": "1.0.5",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|