@signalapp/libsignal-client 0.58.1 → 0.58.2
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 -0
- package/dist/acknowledgments.md +1 -1
- package/dist/zkgroup/backups/BackupAuthCredentialPresentation.d.ts +3 -0
- package/dist/zkgroup/backups/BackupAuthCredentialPresentation.js +11 -0
- 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
|
@@ -153,6 +153,8 @@ export function AuthCredentialPresentation_GetUuidCiphertext(presentationBytes:
|
|
|
153
153
|
export function AuthCredentialWithPniResponse_CheckValidContents(bytes: Buffer): void;
|
|
154
154
|
export function AuthCredentialWithPni_CheckValidContents(bytes: Buffer): void;
|
|
155
155
|
export function BackupAuthCredentialPresentation_CheckValidContents(presentationBytes: Buffer): void;
|
|
156
|
+
export function BackupAuthCredentialPresentation_GetBackupId(presentationBytes: Buffer): Buffer;
|
|
157
|
+
export function BackupAuthCredentialPresentation_GetBackupLevel(presentationBytes: Buffer): number;
|
|
156
158
|
export function BackupAuthCredentialPresentation_Verify(presentationBytes: Buffer, now: Timestamp, serverParamsBytes: Buffer): void;
|
|
157
159
|
export function BackupAuthCredentialRequestContext_CheckValidContents(contextBytes: Buffer): void;
|
|
158
160
|
export function BackupAuthCredentialRequestContext_GetRequest(contextBytes: Buffer): Buffer;
|
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.58.
|
|
672
|
+
## attest 0.1.0, libsignal-ffi 0.58.2, libsignal-jni 0.58.2, libsignal-jni-testing 0.58.2, libsignal-node 0.58.2, 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, libsignal-net-infra 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
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import ByteArray from '../internal/ByteArray';
|
|
3
3
|
import GenericServerSecretParams from '../GenericServerSecretParams';
|
|
4
|
+
import BackupLevel from './BackupLevel';
|
|
4
5
|
export default class BackupAuthCredentialPresentation extends ByteArray {
|
|
5
6
|
private readonly __type?;
|
|
6
7
|
constructor(contents: Buffer);
|
|
7
8
|
verify(serverParams: GenericServerSecretParams, now?: Date): void;
|
|
9
|
+
getBackupId(): Buffer;
|
|
10
|
+
getBackupLevel(): BackupLevel;
|
|
8
11
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const ByteArray_1 = require("../internal/ByteArray");
|
|
8
8
|
const Native = require("../../../Native");
|
|
9
|
+
const BackupLevel_1 = require("./BackupLevel");
|
|
9
10
|
class BackupAuthCredentialPresentation extends ByteArray_1.default {
|
|
10
11
|
constructor(contents) {
|
|
11
12
|
super(contents, Native.BackupAuthCredentialPresentation_CheckValidContents);
|
|
@@ -13,6 +14,16 @@ class BackupAuthCredentialPresentation extends ByteArray_1.default {
|
|
|
13
14
|
verify(serverParams, now = new Date()) {
|
|
14
15
|
Native.BackupAuthCredentialPresentation_Verify(this.contents, Math.floor(now.getTime() / 1000), serverParams.contents);
|
|
15
16
|
}
|
|
17
|
+
getBackupId() {
|
|
18
|
+
return Native.BackupAuthCredentialPresentation_GetBackupId(this.contents);
|
|
19
|
+
}
|
|
20
|
+
getBackupLevel() {
|
|
21
|
+
const n = Native.BackupAuthCredentialPresentation_GetBackupLevel(this.contents);
|
|
22
|
+
if (!(n in BackupLevel_1.default)) {
|
|
23
|
+
throw new TypeError(`Invalid BackupLevel ${n}`);
|
|
24
|
+
}
|
|
25
|
+
return n;
|
|
26
|
+
}
|
|
16
27
|
}
|
|
17
28
|
exports.default = BackupAuthCredentialPresentation;
|
|
18
29
|
//# sourceMappingURL=BackupAuthCredentialPresentation.js.map
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|