@signalapp/libsignal-client 0.77.0 → 0.77.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/Native.d.ts CHANGED
@@ -501,9 +501,8 @@ export function SealedSender_DecryptToUsmc(ctext: Uint8Array, identityStore: Ide
501
501
  export function SealedSender_Encrypt(destination: Wrapper<ProtocolAddress>, content: Wrapper<UnidentifiedSenderMessageContent>, identityKeyStore: IdentityKeyStore): Promise<Uint8Array>;
502
502
  export function SealedSender_MultiRecipientEncrypt(recipients: Wrapper<ProtocolAddress>[], recipientSessions: Wrapper<SessionRecord>[], excludedRecipients: Uint8Array, content: Wrapper<UnidentifiedSenderMessageContent>, identityKeyStore: IdentityKeyStore): Promise<Uint8Array>;
503
503
  export function SealedSender_MultiRecipientMessageForSingleRecipient(encodedMultiRecipientMessage: Uint8Array): Uint8Array;
504
- export function SecureValueRecoveryForBackups_CreateStoreArgs(backupKey: Uint8Array, previousSecretData: Uint8Array, environment: number): StoreArgs;
505
504
  export function SecureValueRecoveryForBackups_RestoreBackupFromServer(asyncRuntime: Wrapper<TokioAsyncContext>, backupKey: Uint8Array, metadata: Uint8Array, connectionManager: Wrapper<ConnectionManager>, username: string, password: string): CancellablePromise<Uint8Array>;
506
- export function SecureValueRecoveryForBackups_StoreBackup(asyncRuntime: Wrapper<TokioAsyncContext>, store: Wrapper<StoreArgs>, connectionManager: Wrapper<ConnectionManager>, username: string, password: string): CancellablePromise<BackupResponse>;
505
+ export function SecureValueRecoveryForBackups_StoreBackup(asyncRuntime: Wrapper<TokioAsyncContext>, backupKey: Uint8Array, previousSecretData: Uint8Array, connectionManager: Wrapper<ConnectionManager>, username: string, password: string): CancellablePromise<BackupResponse>;
507
506
  export function SenderCertificate_Deserialize(data: Uint8Array): SenderCertificate;
508
507
  export function SenderCertificate_GetCertificate(obj: Wrapper<SenderCertificate>): Uint8Array;
509
508
  export function SenderCertificate_GetDeviceId(obj: Wrapper<SenderCertificate>): number;
@@ -789,7 +788,6 @@ interface SessionRecord { readonly __type: unique symbol; }
789
788
  interface SgxClientState { readonly __type: unique symbol; }
790
789
  interface SignalMessage { readonly __type: unique symbol; }
791
790
  interface SignedPreKeyRecord { readonly __type: unique symbol; }
792
- interface StoreArgs { readonly __type: unique symbol; }
793
791
  interface TestingFutureCancellationCounter { readonly __type: unique symbol; }
794
792
  interface TestingHandleType { readonly __type: unique symbol; }
795
793
  interface TestingSemaphore { readonly __type: unique symbol; }
package/dist/net/SvrB.js CHANGED
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.SvrB = void 0;
8
8
  const Native = require("../../Native");
9
9
  const AccountKeys_1 = require("../AccountKeys");
10
- const internal_1 = require("../internal");
11
10
  class StoreBackupResponseImpl {
12
11
  constructor(handle) {
13
12
  this._nativeHandle = handle;
@@ -110,8 +109,7 @@ class SvrB {
110
109
  */
111
110
  async storeBackup(backupKey, previousSecretData, options) {
112
111
  const secretData = previousSecretData ?? new Uint8Array(0);
113
- const handle = (0, internal_1.newNativeHandle)(Native.SecureValueRecoveryForBackups_CreateStoreArgs(backupKey.serialize(), secretData, this.environment));
114
- const promise = Native.SecureValueRecoveryForBackups_StoreBackup(this.asyncContext, handle, this.connectionManager, this.auth.username, this.auth.password);
112
+ const promise = Native.SecureValueRecoveryForBackups_StoreBackup(this.asyncContext, backupKey.serialize(), secretData, this.connectionManager, this.auth.username, this.auth.password);
115
113
  const response = await this.asyncContext.makeCancellable(options?.abortSignal, promise);
116
114
  return new StoreBackupResponseImpl(response);
117
115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalapp/libsignal-client",
3
- "version": "0.77.0",
3
+ "version": "0.77.1",
4
4
  "license": "AGPL-3.0-only",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",