@signalapp/libsignal-client 0.74.0 → 0.75.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 +281 -281
- package/dist/AccountKeys.d.ts +7 -8
- package/dist/Address.d.ts +12 -9
- package/dist/Address.js +10 -6
- package/dist/EcKeys.d.ts +12 -13
- package/dist/Errors.d.ts +43 -37
- package/dist/Errors.js +37 -36
- package/dist/MessageBackup.d.ts +6 -7
- package/dist/Minidump.d.ts +1 -2
- package/dist/Mp4Sanitizer.d.ts +1 -2
- package/dist/SealedSenderMultiRecipientMessage.d.ts +3 -4
- package/dist/SealedSenderMultiRecipientMessage.js +4 -2
- package/dist/WebpSanitizer.d.ts +1 -2
- package/dist/acknowledgments.md +24 -631
- package/dist/incremental_mac.d.ts +5 -5
- package/dist/incremental_mac.js +3 -1
- package/dist/index.d.ts +90 -91
- package/dist/index.js +4 -4
- package/dist/io.d.ts +3 -5
- package/dist/net/Chat.d.ts +1 -3
- package/dist/net/Chat.js +1 -3
- package/dist/net/KeyTransparency.d.ts +6 -7
- package/dist/net/Registration.d.ts +2 -3
- package/dist/net/Registration.js +1 -1
- package/dist/net.d.ts +1 -3
- package/dist/usernames.d.ts +8 -9
- package/dist/usernames.js +2 -2
- package/dist/zkgroup/GenericServerPublicParams.d.ts +1 -2
- package/dist/zkgroup/GenericServerSecretParams.d.ts +2 -3
- package/dist/zkgroup/NotarySignature.d.ts +1 -2
- package/dist/zkgroup/ServerPublicParams.d.ts +4 -5
- package/dist/zkgroup/ServerPublicParams.js +1 -1
- package/dist/zkgroup/ServerSecretParams.d.ts +5 -6
- package/dist/zkgroup/ServerSecretParams.js +1 -1
- package/dist/zkgroup/auth/AuthCredentialPresentation.d.ts +1 -2
- package/dist/zkgroup/auth/AuthCredentialWithPni.d.ts +1 -2
- package/dist/zkgroup/auth/AuthCredentialWithPniResponse.d.ts +1 -2
- package/dist/zkgroup/auth/ClientZkAuthOperations.d.ts +1 -2
- package/dist/zkgroup/auth/ServerZkAuthOperations.d.ts +1 -2
- package/dist/zkgroup/backups/BackupAuthCredential.d.ts +3 -4
- package/dist/zkgroup/backups/BackupAuthCredentialPresentation.d.ts +2 -3
- package/dist/zkgroup/backups/BackupAuthCredentialRequest.d.ts +2 -3
- package/dist/zkgroup/backups/BackupAuthCredentialRequestContext.d.ts +2 -3
- package/dist/zkgroup/backups/BackupAuthCredentialRequestContext.js +1 -1
- package/dist/zkgroup/backups/BackupAuthCredentialResponse.d.ts +1 -2
- package/dist/zkgroup/calllinks/CallLinkAuthCredential.d.ts +2 -3
- package/dist/zkgroup/calllinks/CallLinkAuthCredentialPresentation.d.ts +1 -2
- package/dist/zkgroup/calllinks/CallLinkAuthCredentialResponse.d.ts +2 -3
- package/dist/zkgroup/calllinks/CallLinkPublicParams.d.ts +1 -2
- package/dist/zkgroup/calllinks/CallLinkSecretParams.d.ts +2 -3
- package/dist/zkgroup/calllinks/CreateCallLinkCredential.d.ts +3 -4
- package/dist/zkgroup/calllinks/CreateCallLinkCredentialPresentation.d.ts +2 -3
- package/dist/zkgroup/calllinks/CreateCallLinkCredentialRequest.d.ts +2 -3
- package/dist/zkgroup/calllinks/CreateCallLinkCredentialRequestContext.d.ts +3 -4
- package/dist/zkgroup/calllinks/CreateCallLinkCredentialResponse.d.ts +1 -2
- package/dist/zkgroup/groups/ClientZkGroupCipher.d.ts +3 -4
- package/dist/zkgroup/groups/GroupIdentifier.d.ts +1 -2
- package/dist/zkgroup/groups/GroupIdentifier.js +1 -1
- package/dist/zkgroup/groups/GroupMasterKey.d.ts +1 -2
- package/dist/zkgroup/groups/GroupPublicParams.d.ts +1 -2
- package/dist/zkgroup/groups/GroupSecretParams.d.ts +2 -3
- package/dist/zkgroup/groups/ProfileKeyCiphertext.d.ts +1 -2
- package/dist/zkgroup/groups/UuidCiphertext.d.ts +2 -3
- package/dist/zkgroup/groups/UuidCiphertext.js +2 -2
- package/dist/zkgroup/groupsend/GroupSendDerivedKeyPair.d.ts +1 -2
- package/dist/zkgroup/groupsend/GroupSendEndorsement.d.ts +1 -2
- package/dist/zkgroup/groupsend/GroupSendEndorsementsResponse.d.ts +2 -3
- package/dist/zkgroup/groupsend/GroupSendFullToken.d.ts +1 -2
- package/dist/zkgroup/groupsend/GroupSendToken.d.ts +1 -2
- package/dist/zkgroup/internal/ByteArray.d.ts +5 -6
- package/dist/zkgroup/internal/ByteArray.js +2 -2
- package/dist/zkgroup/profiles/ClientZkProfileOperations.d.ts +2 -3
- package/dist/zkgroup/profiles/ExpiringProfileKeyCredential.d.ts +1 -2
- package/dist/zkgroup/profiles/ExpiringProfileKeyCredentialResponse.d.ts +1 -2
- package/dist/zkgroup/profiles/ProfileKey.d.ts +2 -3
- package/dist/zkgroup/profiles/ProfileKeyCommitment.d.ts +1 -2
- package/dist/zkgroup/profiles/ProfileKeyCredentialPresentation.d.ts +1 -2
- package/dist/zkgroup/profiles/ProfileKeyCredentialRequest.d.ts +1 -2
- package/dist/zkgroup/profiles/ProfileKeyCredentialRequestContext.d.ts +1 -2
- package/dist/zkgroup/profiles/ProfileKeyVersion.d.ts +1 -2
- package/dist/zkgroup/profiles/ProfileKeyVersion.js +4 -2
- package/dist/zkgroup/profiles/ServerZkProfileOperations.d.ts +1 -2
- package/dist/zkgroup/receipts/ClientZkReceiptOperations.d.ts +2 -3
- package/dist/zkgroup/receipts/ReceiptCredential.d.ts +1 -2
- package/dist/zkgroup/receipts/ReceiptCredentialPresentation.d.ts +1 -2
- package/dist/zkgroup/receipts/ReceiptCredentialRequest.d.ts +1 -2
- package/dist/zkgroup/receipts/ReceiptCredentialRequestContext.d.ts +1 -2
- package/dist/zkgroup/receipts/ReceiptCredentialResponse.d.ts +1 -2
- package/dist/zkgroup/receipts/ReceiptSerial.d.ts +1 -2
- package/dist/zkgroup/receipts/ServerZkReceiptOperations.d.ts +1 -2
- 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
|
@@ -15,7 +15,7 @@ class ByteArray {
|
|
|
15
15
|
}
|
|
16
16
|
else {
|
|
17
17
|
checkValid.call(Native, contents);
|
|
18
|
-
this.contents =
|
|
18
|
+
this.contents = Uint8Array.from(contents);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
static checkLength(expectedLength) {
|
|
@@ -29,7 +29,7 @@ class ByteArray {
|
|
|
29
29
|
return this.contents;
|
|
30
30
|
}
|
|
31
31
|
serialize() {
|
|
32
|
-
return
|
|
32
|
+
return Uint8Array.from(this.contents);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
exports.default = ByteArray;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import ServerPublicParams from '../ServerPublicParams';
|
|
3
2
|
import GroupSecretParams from '../groups/GroupSecretParams';
|
|
4
3
|
import ExpiringProfileKeyCredential from './ExpiringProfileKeyCredential';
|
|
@@ -11,8 +10,8 @@ export default class ClientZkProfileOperations {
|
|
|
11
10
|
serverPublicParams: ServerPublicParams;
|
|
12
11
|
constructor(serverPublicParams: ServerPublicParams);
|
|
13
12
|
createProfileKeyCredentialRequestContext(userId: Aci, profileKey: ProfileKey): ProfileKeyCredentialRequestContext;
|
|
14
|
-
createProfileKeyCredentialRequestContextWithRandom(random:
|
|
13
|
+
createProfileKeyCredentialRequestContextWithRandom(random: Uint8Array, userId: Aci, profileKey: ProfileKey): ProfileKeyCredentialRequestContext;
|
|
15
14
|
receiveExpiringProfileKeyCredential(profileKeyCredentialRequestContext: ProfileKeyCredentialRequestContext, profileKeyCredentialResponse: ExpiringProfileKeyCredentialResponse, now?: Date): ExpiringProfileKeyCredential;
|
|
16
15
|
createExpiringProfileKeyCredentialPresentation(groupSecretParams: GroupSecretParams, profileKeyCredential: ExpiringProfileKeyCredential): ProfileKeyCredentialPresentation;
|
|
17
|
-
createExpiringProfileKeyCredentialPresentationWithRandom(random:
|
|
16
|
+
createExpiringProfileKeyCredentialPresentationWithRandom(random: Uint8Array, groupSecretParams: GroupSecretParams, profileKeyCredential: ExpiringProfileKeyCredential): ProfileKeyCredentialPresentation;
|
|
18
17
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import ByteArray from '../internal/ByteArray';
|
|
3
2
|
export default class ExpiringProfileKeyCredential extends ByteArray {
|
|
4
3
|
private readonly __type?;
|
|
5
|
-
constructor(contents:
|
|
4
|
+
constructor(contents: Uint8Array);
|
|
6
5
|
getExpirationTime(): Date;
|
|
7
6
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import ByteArray from '../internal/ByteArray';
|
|
3
2
|
import ProfileKeyCommitment from './ProfileKeyCommitment';
|
|
4
3
|
import ProfileKeyVersion from './ProfileKeyVersion';
|
|
@@ -6,8 +5,8 @@ import { Aci } from '../../Address';
|
|
|
6
5
|
export default class ProfileKey extends ByteArray {
|
|
7
6
|
private readonly __type?;
|
|
8
7
|
static SIZE: number;
|
|
9
|
-
constructor(contents:
|
|
8
|
+
constructor(contents: Uint8Array);
|
|
10
9
|
getCommitment(userId: Aci): ProfileKeyCommitment;
|
|
11
10
|
getProfileKeyVersion(userId: Aci): ProfileKeyVersion;
|
|
12
|
-
deriveAccessKey():
|
|
11
|
+
deriveAccessKey(): Uint8Array;
|
|
13
12
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import ByteArray from '../internal/ByteArray';
|
|
3
2
|
import UuidCiphertext from '../groups/UuidCiphertext';
|
|
4
3
|
import ProfileKeyCiphertext from '../groups/ProfileKeyCiphertext';
|
|
5
4
|
export default class ProfileKeyCredentialPresentation extends ByteArray {
|
|
6
5
|
private readonly __type?;
|
|
7
|
-
constructor(contents:
|
|
6
|
+
constructor(contents: Uint8Array);
|
|
8
7
|
getUuidCiphertext(): UuidCiphertext;
|
|
9
8
|
getProfileKeyCiphertext(): ProfileKeyCiphertext;
|
|
10
9
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import ByteArray from '../internal/ByteArray';
|
|
3
2
|
import ProfileKeyCredentialRequest from './ProfileKeyCredentialRequest';
|
|
4
3
|
export default class ProfileKeyCredentialRequestContext extends ByteArray {
|
|
5
4
|
private readonly __type?;
|
|
6
|
-
constructor(contents:
|
|
5
|
+
constructor(contents: Uint8Array);
|
|
7
6
|
getRequest(): ProfileKeyCredentialRequest;
|
|
8
7
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import ByteArray from '../internal/ByteArray';
|
|
3
2
|
export default class ProfileKeyVersion extends ByteArray {
|
|
4
3
|
private readonly __type?;
|
|
5
4
|
static SIZE: number;
|
|
6
|
-
constructor(contents:
|
|
5
|
+
constructor(contents: Uint8Array | string);
|
|
7
6
|
toString(): string;
|
|
8
7
|
}
|
|
@@ -7,10 +7,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
const ByteArray_1 = require("../internal/ByteArray");
|
|
8
8
|
class ProfileKeyVersion extends ByteArray_1.default {
|
|
9
9
|
constructor(contents) {
|
|
10
|
-
super(typeof contents === 'string'
|
|
10
|
+
super(typeof contents === 'string'
|
|
11
|
+
? new TextEncoder().encode(contents)
|
|
12
|
+
: contents, ProfileKeyVersion.checkLength(ProfileKeyVersion.SIZE));
|
|
11
13
|
}
|
|
12
14
|
toString() {
|
|
13
|
-
return this.contents
|
|
15
|
+
return new TextDecoder().decode(this.contents);
|
|
14
16
|
}
|
|
15
17
|
}
|
|
16
18
|
ProfileKeyVersion.SIZE = 64;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import ServerSecretParams from '../ServerSecretParams';
|
|
3
2
|
import GroupPublicParams from '../groups/GroupPublicParams';
|
|
4
3
|
import ExpiringProfileKeyCredentialResponse from './ExpiringProfileKeyCredentialResponse';
|
|
@@ -10,6 +9,6 @@ export default class ServerZkProfileOperations {
|
|
|
10
9
|
serverSecretParams: ServerSecretParams;
|
|
11
10
|
constructor(serverSecretParams: ServerSecretParams);
|
|
12
11
|
issueExpiringProfileKeyCredential(profileKeyCredentialRequest: ProfileKeyCredentialRequest, userId: Aci, profileKeyCommitment: ProfileKeyCommitment, expirationInSeconds: number): ExpiringProfileKeyCredentialResponse;
|
|
13
|
-
issueExpiringProfileKeyCredentialWithRandom(random:
|
|
12
|
+
issueExpiringProfileKeyCredentialWithRandom(random: Uint8Array, profileKeyCredentialRequest: ProfileKeyCredentialRequest, userId: Aci, profileKeyCommitment: ProfileKeyCommitment, expirationInSeconds: number): ExpiringProfileKeyCredentialResponse;
|
|
14
13
|
verifyProfileKeyCredentialPresentation(groupPublicParams: GroupPublicParams, profileKeyCredentialPresentation: ProfileKeyCredentialPresentation, now?: Date): void;
|
|
15
14
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import ServerPublicParams from '../ServerPublicParams';
|
|
3
2
|
import ReceiptCredential from './ReceiptCredential';
|
|
4
3
|
import ReceiptCredentialPresentation from './ReceiptCredentialPresentation';
|
|
@@ -9,8 +8,8 @@ export default class ClientZkReceiptOperations {
|
|
|
9
8
|
serverPublicParams: ServerPublicParams;
|
|
10
9
|
constructor(serverPublicParams: ServerPublicParams);
|
|
11
10
|
createReceiptCredentialRequestContext(receiptSerial: ReceiptSerial): ReceiptCredentialRequestContext;
|
|
12
|
-
createReceiptCredentialRequestContextWithRandom(random:
|
|
11
|
+
createReceiptCredentialRequestContextWithRandom(random: Uint8Array, receiptSerial: ReceiptSerial): ReceiptCredentialRequestContext;
|
|
13
12
|
receiveReceiptCredential(receiptCredentialRequestContext: ReceiptCredentialRequestContext, receiptCredentialResponse: ReceiptCredentialResponse): ReceiptCredential;
|
|
14
13
|
createReceiptCredentialPresentation(receiptCredential: ReceiptCredential): ReceiptCredentialPresentation;
|
|
15
|
-
createReceiptCredentialPresentationWithRandom(random:
|
|
14
|
+
createReceiptCredentialPresentationWithRandom(random: Uint8Array, receiptCredential: ReceiptCredential): ReceiptCredentialPresentation;
|
|
16
15
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import ByteArray from '../internal/ByteArray';
|
|
3
2
|
export default class ReceiptCredential extends ByteArray {
|
|
4
3
|
private readonly __type?;
|
|
5
|
-
constructor(contents:
|
|
4
|
+
constructor(contents: Uint8Array);
|
|
6
5
|
getReceiptExpirationTime(): number;
|
|
7
6
|
getReceiptLevel(): bigint;
|
|
8
7
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import ByteArray from '../internal/ByteArray';
|
|
3
2
|
import ReceiptSerial from './ReceiptSerial';
|
|
4
3
|
export default class ReceiptCredentialPresentation extends ByteArray {
|
|
5
4
|
private readonly __type?;
|
|
6
5
|
static SIZE: number;
|
|
7
|
-
constructor(contents:
|
|
6
|
+
constructor(contents: Uint8Array);
|
|
8
7
|
getReceiptExpirationTime(): number;
|
|
9
8
|
getReceiptLevel(): bigint;
|
|
10
9
|
getReceiptSerialBytes(): ReceiptSerial;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import ByteArray from '../internal/ByteArray';
|
|
3
2
|
import ReceiptCredentialRequest from './ReceiptCredentialRequest';
|
|
4
3
|
export default class ReceiptCredentialRequestContext extends ByteArray {
|
|
5
4
|
private readonly __type?;
|
|
6
5
|
static SIZE: number;
|
|
7
|
-
constructor(contents:
|
|
6
|
+
constructor(contents: Uint8Array);
|
|
8
7
|
getRequest(): ReceiptCredentialRequest;
|
|
9
8
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import ServerSecretParams from '../ServerSecretParams';
|
|
3
2
|
import ReceiptCredentialRequest from './ReceiptCredentialRequest';
|
|
4
3
|
import ReceiptCredentialResponse from './ReceiptCredentialResponse';
|
|
@@ -7,6 +6,6 @@ export default class ServerZkReceiptOperations {
|
|
|
7
6
|
serverSecretParams: ServerSecretParams;
|
|
8
7
|
constructor(serverSecretParams: ServerSecretParams);
|
|
9
8
|
issueReceiptCredential(receiptCredentialRequest: ReceiptCredentialRequest, receiptExpirationTime: number, receiptLevel: bigint): ReceiptCredentialResponse;
|
|
10
|
-
issueReceiptCredentialWithRandom(random:
|
|
9
|
+
issueReceiptCredentialWithRandom(random: Uint8Array, receiptCredentialRequest: ReceiptCredentialRequest, receiptExpirationTime: number, receiptLevel: bigint): ReceiptCredentialResponse;
|
|
11
10
|
verifyReceiptCredentialPresentation(receiptCredentialPresentation: ReceiptCredentialPresentation): void;
|
|
12
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signalapp/libsignal-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.75.0",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
|
29
29
|
"format": "p() { prettier ${@:- --write} '**/*.{css,js,json,md,scss,ts,tsx}' ../rust/bridge/node/bin/Native.d.ts.in; }; p",
|
|
30
30
|
"format-check": "p() { prettier ${@:- --check} '**/*.{css,js,json,md,scss,ts,tsx}' ../rust/bridge/node/bin/Native.d.ts.in; }; p",
|
|
31
|
-
"prepack": "cp ../acknowledgments/acknowledgments.md dist"
|
|
31
|
+
"prepack": "cp ../acknowledgments/acknowledgments-desktop.md dist/acknowledgments.md"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"node-gyp-build": "^4.8.0",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|