@signalapp/libsignal-client 0.45.1 → 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 +1 -1
- package/dist/Address.d.ts +12 -0
- package/dist/Address.js +14 -0
- package/dist/acknowledgments.md +1 -1
- package/dist/net.d.ts +1 -1
- package/dist/net.js +2 -2
- package/package.json +1 -1
- package/prebuilds/darwin-arm64/node.napi.node +0 -0
- package/prebuilds/darwin-x64/node.napi.node +0 -0
- package/prebuilds/linux-arm64/node.napi.node +0 -0
- package/prebuilds/linux-x64/node.napi.node +0 -0
- package/prebuilds/win32-arm64/node.napi.node +0 -0
- package/prebuilds/win32-x64/node.napi.node +0 -0
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;
|
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, device-transfer 0.1.0, libsignal-bridge 0.1.0, libsignal-bridge-macros 0.1.0, libsignal-core 0.1.0, libsignal-ffi 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
|
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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|