@signalapp/libsignal-client 0.79.1 → 0.80.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/dist/Errors.d.ts CHANGED
@@ -45,7 +45,8 @@ export declare enum ErrorCode {
45
45
  BackupValidation = 41,
46
46
  Cancelled = 42,
47
47
  KeyTransparencyError = 43,
48
- KeyTransparencyVerificationFailed = 44
48
+ KeyTransparencyVerificationFailed = 44,
49
+ IncrementalMacVerificationFailed = 45
49
50
  }
50
51
  export declare class LibSignalErrorBase extends Error {
51
52
  readonly code: ErrorCode;
@@ -207,4 +208,7 @@ export type KeyTransparencyError = LibSignalErrorCommon & {
207
208
  export type KeyTransparencyVerificationFailed = LibSignalErrorCommon & {
208
209
  code: ErrorCode.KeyTransparencyVerificationFailed;
209
210
  };
210
- export type LibSignalError = GenericError | DuplicatedMessageError | SealedSenderSelfSendError | UntrustedIdentityError | InvalidRegistrationIdError | InvalidProtocolAddress | VerificationFailedError | InvalidSessionError | InvalidSenderKeySessionError | NicknameCannotBeEmptyError | CannotStartWithDigitError | MissingSeparatorError | BadNicknameCharacterError | NicknameTooShortError | NicknameTooLongError | DiscriminatorCannotBeEmptyError | DiscriminatorCannotBeZeroError | DiscriminatorCannotBeSingleDigitError | DiscriminatorCannotHaveLeadingZerosError | BadDiscriminatorCharacterError | DiscriminatorTooLargeError | InputDataTooLong | InvalidEntropyDataLength | InvalidUsernameLinkEncryptedData | IoError | CdsiInvalidTokenError | InvalidUriError | InvalidMediaInputError | SvrDataMissingError | SvrRestoreFailedError | SvrRequestFailedError | SvrAttestationError | SvrInvalidDataError | UnsupportedMediaInputError | ChatServiceInactive | AppExpiredError | DeviceDelinkedError | ConnectionInvalidatedError | ConnectedElsewhereError | RateLimitedError | RateLimitChallengeError | BackupValidationError | CancellationError | KeyTransparencyError | KeyTransparencyVerificationFailed;
211
+ export type IncrementalMacVerificationFailed = LibSignalErrorCommon & {
212
+ code: ErrorCode.IncrementalMacVerificationFailed;
213
+ };
214
+ export type LibSignalError = GenericError | DuplicatedMessageError | SealedSenderSelfSendError | UntrustedIdentityError | InvalidRegistrationIdError | InvalidProtocolAddress | VerificationFailedError | InvalidSessionError | InvalidSenderKeySessionError | NicknameCannotBeEmptyError | CannotStartWithDigitError | MissingSeparatorError | BadNicknameCharacterError | NicknameTooShortError | NicknameTooLongError | DiscriminatorCannotBeEmptyError | DiscriminatorCannotBeZeroError | DiscriminatorCannotBeSingleDigitError | DiscriminatorCannotHaveLeadingZerosError | BadDiscriminatorCharacterError | DiscriminatorTooLargeError | InputDataTooLong | InvalidEntropyDataLength | InvalidUsernameLinkEncryptedData | IoError | CdsiInvalidTokenError | InvalidUriError | InvalidMediaInputError | SvrDataMissingError | SvrRestoreFailedError | SvrRequestFailedError | SvrAttestationError | SvrInvalidDataError | UnsupportedMediaInputError | ChatServiceInactive | AppExpiredError | DeviceDelinkedError | ConnectionInvalidatedError | ConnectedElsewhereError | RateLimitedError | RateLimitChallengeError | BackupValidationError | CancellationError | KeyTransparencyError | KeyTransparencyVerificationFailed | IncrementalMacVerificationFailed;
package/dist/Errors.js CHANGED
@@ -53,6 +53,7 @@ var ErrorCode;
53
53
  ErrorCode[ErrorCode["Cancelled"] = 42] = "Cancelled";
54
54
  ErrorCode[ErrorCode["KeyTransparencyError"] = 43] = "KeyTransparencyError";
55
55
  ErrorCode[ErrorCode["KeyTransparencyVerificationFailed"] = 44] = "KeyTransparencyVerificationFailed";
56
+ ErrorCode[ErrorCode["IncrementalMacVerificationFailed"] = 45] = "IncrementalMacVerificationFailed";
56
57
  })(ErrorCode || (exports.ErrorCode = ErrorCode = {}));
57
58
  class LibSignalErrorBase extends Error {
58
59
  constructor(message, name, operation, extraProps) {
@@ -182,6 +182,6 @@ function chunkSizeInBytes(sizeChoice) {
182
182
  }
183
183
  exports.chunkSizeInBytes = chunkSizeInBytes;
184
184
  function makeVerificationError(message) {
185
- return new Errors_1.LibSignalErrorBase(message, 'VerificationFailed', 'incremental_mac');
185
+ return new Errors_1.LibSignalErrorBase(message, 'IncrementalMacVerificationFailed', 'incremental_mac');
186
186
  }
187
187
  //# sourceMappingURL=incremental_mac.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalapp/libsignal-client",
3
- "version": "0.79.1",
3
+ "version": "0.80.0",
4
4
  "license": "AGPL-3.0-only",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",