Socket
Socket
Sign inDemoInstall

@signalapp/libsignal-client

Package Overview
Dependencies
Maintainers
6
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@signalapp/libsignal-client - npm Package Compare versions

Comparing version 0.33.0 to 0.34.0

dist/net.d.ts

7

dist/Errors.d.ts

@@ -23,3 +23,4 @@ import { ProtocolAddress } from './Address';

InvalidEntropyDataLength = 18,
InvalidUsernameLinkEncryptedData = 19
InvalidUsernameLinkEncryptedData = 19,
RateLimitedError = 20
}

@@ -97,2 +98,6 @@ export declare class LibSignalErrorBase extends Error {

};
export type RateLimitedError = LibSignalErrorBase & {
code: ErrorCode.RateLimitedError;
readonly retryAfterSecs: number;
};
export type LibSignalError = GenericError | DuplicatedMessageError | SealedSenderSelfSendError | UntrustedIdentityError | InvalidRegistrationIdError | VerificationFailedError | InvalidSessionError | InvalidSenderKeySessionError | CannotBeEmptyError | CannotStartWithDigitError | MissingSeparatorError | BadNicknameCharacterError | NicknameTooShortError | NicknameTooLongError | InputDataTooLong | InvalidEntropyDataLength | InvalidUsernameLinkEncryptedData | IoError | InvalidMediaInputError | UnsupportedMediaInputError;

@@ -31,2 +31,3 @@ "use strict";

ErrorCode[ErrorCode["InvalidUsernameLinkEncryptedData"] = 19] = "InvalidUsernameLinkEncryptedData";
ErrorCode[ErrorCode["RateLimitedError"] = 20] = "RateLimitedError";
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));

@@ -33,0 +34,0 @@ class LibSignalErrorBase extends Error {

@@ -7,2 +7,3 @@ /// <reference types="node" />

export * as io from './io';
export * as Net from './net';
export * as Mp4Sanitizer from './Mp4Sanitizer';

@@ -9,0 +10,0 @@ export * as WebpSanitizer from './WebpSanitizer';

5

dist/index.js

@@ -30,4 +30,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.sealedSenderEncryptMessage = exports.signalDecryptPreKey = exports.signalDecrypt = exports.signalEncrypt = exports.processPreKeyBundle = exports.DecryptionErrorMessage = exports.PlaintextContent = exports.CiphertextMessage = exports.SealedSenderDecryptionResult = exports.groupDecrypt = exports.groupEncrypt = exports.SenderKeyStore = exports.KyberPreKeyStore = exports.SignedPreKeyStore = exports.PreKeyStore = exports.IdentityKeyStore = exports.SessionStore = exports.UnidentifiedSenderMessageContent = exports.SenderKeyMessage = exports.processSenderKeyDistributionMessage = exports.SenderKeyDistributionMessage = exports.SenderCertificate = exports.SenderKeyRecord = exports.ServerCertificate = exports.SessionRecord = exports.PreKeySignalMessage = exports.SignalMessage = exports.KyberPreKeyRecord = exports.SignedPreKeyRecord = exports.PreKeyRecord = exports.PreKeyBundle = exports.IdentityKeyPair = exports.KEMKeyPair = exports.KEMSecretKey = exports.KEMPublicKey = exports.PrivateKey = exports.PublicKey = exports.Aes256GcmSiv = exports.Fingerprint = exports.DisplayableFingerprint = exports.ScannableFingerprint = exports.hkdf = exports.HKDF = exports.ContentHint = exports.Direction = exports.CiphertextMessageType = exports.WebpSanitizer = exports.Mp4Sanitizer = exports.io = exports.usernames = void 0;
exports.initLogger = exports.LogLevel = exports.HsmEnclaveClient = exports.Cds2Client = exports.sealedSenderDecryptToUsmc = exports.sealedSenderDecryptMessage = exports.sealedSenderMultiRecipientMessageForSingleRecipient = exports.sealedSenderMultiRecipientEncrypt = exports.sealedSenderEncrypt = void 0;
exports.signalDecryptPreKey = exports.signalDecrypt = exports.signalEncrypt = exports.processPreKeyBundle = exports.DecryptionErrorMessage = exports.PlaintextContent = exports.CiphertextMessage = exports.SealedSenderDecryptionResult = exports.groupDecrypt = exports.groupEncrypt = exports.SenderKeyStore = exports.KyberPreKeyStore = exports.SignedPreKeyStore = exports.PreKeyStore = exports.IdentityKeyStore = exports.SessionStore = exports.UnidentifiedSenderMessageContent = exports.SenderKeyMessage = exports.processSenderKeyDistributionMessage = exports.SenderKeyDistributionMessage = exports.SenderCertificate = exports.SenderKeyRecord = exports.ServerCertificate = exports.SessionRecord = exports.PreKeySignalMessage = exports.SignalMessage = exports.KyberPreKeyRecord = exports.SignedPreKeyRecord = exports.PreKeyRecord = exports.PreKeyBundle = exports.IdentityKeyPair = exports.KEMKeyPair = exports.KEMSecretKey = exports.KEMPublicKey = exports.PrivateKey = exports.PublicKey = exports.Aes256GcmSiv = exports.Fingerprint = exports.DisplayableFingerprint = exports.ScannableFingerprint = exports.hkdf = exports.HKDF = exports.ContentHint = exports.Direction = exports.CiphertextMessageType = exports.WebpSanitizer = exports.Mp4Sanitizer = exports.Net = exports.io = exports.usernames = void 0;
exports.initLogger = exports.LogLevel = exports.HsmEnclaveClient = exports.Cds2Client = exports.sealedSenderDecryptToUsmc = exports.sealedSenderDecryptMessage = exports.sealedSenderMultiRecipientMessageForSingleRecipient = exports.sealedSenderMultiRecipientEncrypt = exports.sealedSenderEncrypt = exports.sealedSenderEncryptMessage = void 0;
const uuid = require("uuid");

@@ -40,2 +40,3 @@ const Errors = require("./Errors");

exports.io = require("./io");
exports.Net = require("./net");
exports.Mp4Sanitizer = require("./Mp4Sanitizer");

@@ -42,0 +43,0 @@ exports.WebpSanitizer = require("./WebpSanitizer");

@@ -11,3 +11,3 @@ /// <reference types="node" />

export declare function decryptUsernameLink(usernameLink: UsernameLink): string;
export declare function createUsernameLink(username: string): UsernameLink;
export declare function createUsernameLink(username: string, previousEntropy?: Buffer): UsernameLink;
export declare function verifyProof(proof: Buffer, hash: Buffer): void;

@@ -33,4 +33,4 @@ "use strict";

exports.decryptUsernameLink = decryptUsernameLink;
function createUsernameLink(username) {
const usernameLinkData = Native.UsernameLink_Create(username);
function createUsernameLink(username, previousEntropy) {
const usernameLinkData = Native.UsernameLink_Create(username, previousEntropy !== null && previousEntropy !== void 0 ? previousEntropy : null);
const entropy = usernameLinkData.slice(0, 32);

@@ -37,0 +37,0 @@ const encryptedUsername = usernameLinkData.slice(32);

@@ -14,2 +14,9 @@ //

type LookupResponse = Map<string, LookupResponseEntry>;
interface LookupResponseEntry {
readonly aci: string | undefined;
readonly pni: string | undefined;
}
export abstract class IdentityKeyStore {

@@ -105,5 +112,7 @@ _getIdentityKey(): Promise<PrivateKey>;

export function Cds2ClientState_New(mrenclave: Buffer, attestationMsg: Buffer, currentTimestamp: Timestamp): SgxClientState;
export function CdsiLookup(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>, username: string, password: string, request: Wrapper<LookupRequest>, timeoutMillis: number): Promise<LookupResponse>;
export function CiphertextMessage_FromPlaintextContent(m: Wrapper<PlaintextContent>): CiphertextMessage;
export function CiphertextMessage_Serialize(obj: Wrapper<CiphertextMessage>): Buffer;
export function CiphertextMessage_Type(msg: Wrapper<CiphertextMessage>): number;
export function ConnectionManager_new(environment: number): ConnectionManager;
export function CreateCallLinkCredentialPresentation_CheckValidContents(presentationBytes: Buffer): void;

@@ -184,2 +193,6 @@ export function CreateCallLinkCredentialPresentation_Verify(presentationBytes: Buffer, roomId: Buffer, now: Timestamp, serverParamsBytes: Buffer, callLinkParamsBytes: Buffer): void;

export function KyberSecretKey_Serialize(obj: Wrapper<KyberSecretKey>): Buffer;
export function LookupRequest_addAciAndAccessKey(request: Wrapper<LookupRequest>, aci: Buffer, accessKey: Buffer): void;
export function LookupRequest_addE164(request: Wrapper<LookupRequest>, e164: string): void;
export function LookupRequest_new(): LookupRequest;
export function LookupRequest_setReturnAcisWithoutUaks(request: Wrapper<LookupRequest>, returnAcisWithoutUaks: boolean): void;
export function Mp4Sanitizer_Sanitize(input: InputStream, len: Buffer): Promise<SanitizedMetadata>;

@@ -365,2 +378,3 @@ export function PlaintextContent_Deserialize(data: Buffer): PlaintextContent;

export function SignedPreKeyRecord_Serialize(obj: Wrapper<SignedPreKeyRecord>): Buffer;
export function TESTING_CdsiLookupResponseConvert(): LookupResponse;
export function TESTING_ErrorOnBorrowAsync(_input: null): Promise<void>;

@@ -387,2 +401,3 @@ export function TESTING_ErrorOnBorrowIo(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _input: null): Promise<void>;

export function TESTING_PanicOnReturnSync(_needsCleanup: null): null;
export function TokioAsyncContext_new(): TokioAsyncContext;
export function UnidentifiedSenderMessageContent_Deserialize(data: Buffer): UnidentifiedSenderMessageContent;

@@ -396,3 +411,3 @@ export function UnidentifiedSenderMessageContent_GetContentHint(m: Wrapper<UnidentifiedSenderMessageContent>): number;

export function UnidentifiedSenderMessageContent_Serialize(obj: Wrapper<UnidentifiedSenderMessageContent>): Buffer;
export function UsernameLink_Create(username: string): Buffer;
export function UsernameLink_Create(username: string, entropy: Buffer | null): Buffer;
export function UsernameLink_DecryptUsername(entropy: Buffer, encryptedUsername: Buffer): string;

@@ -415,2 +430,3 @@ export function Username_CandidatesFrom(nickname: string, minLen: number, maxLen: number): string;

interface CiphertextMessage { readonly __type: unique symbol; }
interface ConnectionManager { readonly __type: unique symbol; }
interface DecryptionErrorMessage { readonly __type: unique symbol; }

@@ -429,2 +445,3 @@ interface ExpiringProfileKeyCredential { readonly __type: unique symbol; }

interface KyberSecretKey { readonly __type: unique symbol; }
interface LookupRequest { readonly __type: unique symbol; }
interface NonSuspendingBackgroundThreadRuntime { readonly __type: unique symbol; }

@@ -461,4 +478,5 @@ interface PlaintextContent { readonly __type: unique symbol; }

interface SignedPreKeyRecord { readonly __type: unique symbol; }
interface TokioAsyncContext { readonly __type: unique symbol; }
interface UnidentifiedSenderMessageContent { readonly __type: unique symbol; }
interface UuidCiphertext { readonly __type: unique symbol; }
interface ValidatingMac { readonly __type: unique symbol; }
{
"name": "@signalapp/libsignal-client",
"version": "0.33.0",
"version": "0.34.0",
"license": "AGPL-3.0-only",

@@ -29,2 +29,3 @@ "main": "dist/index.js",

"node-gyp-build": "^4.2.3",
"type-fest": "^3.5.0",
"uuid": "^8.3.0"

@@ -38,3 +39,3 @@ },

"@types/mocha": "^5.2.7",
"@types/node": "16.18.3",
"@types/node": "~18.15.0",
"@types/uuid": "^8.3.0",

@@ -53,3 +54,3 @@ "@typescript-eslint/eslint-plugin": "^5.47.0",

"mocha": "^9",
"node-gyp": "^8.4.1",
"node-gyp": "^10.0.0",
"prettier": "^2.7.1",

@@ -56,0 +57,0 @@ "rimraf": "^3.0.1",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc