@signalapp/libsignal-client 0.35.0 → 0.36.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 +12 -1
- package/dist/net.js +2 -1
- package/package.json +1 -1
- package/prebuilds/darwin-arm64/node.napi.node +0 -0
- package/prebuilds/darwin-x64/node.napi.node +0 -0
- package/prebuilds/linux-arm64/node.napi.node +0 -0
- package/prebuilds/linux-x64/node.napi.node +0 -0
- package/prebuilds/win32-arm64/node.napi.node +0 -0
- package/prebuilds/win32-x64/node.napi.node +0 -0
package/Native.d.ts
CHANGED
|
@@ -108,7 +108,9 @@ export function CallLinkSecretParams_DecryptUserId(paramsBytes: Buffer, userId:
|
|
|
108
108
|
export function CallLinkSecretParams_DeriveFromRootKey(rootKey: Buffer): Buffer;
|
|
109
109
|
export function CallLinkSecretParams_GetPublicParams(paramsBytes: Buffer): Buffer;
|
|
110
110
|
export function Cds2ClientState_New(mrenclave: Buffer, attestationMsg: Buffer, currentTimestamp: Timestamp): SgxClientState;
|
|
111
|
-
export function
|
|
111
|
+
export function CdsiLookup_complete(asyncRuntime: Wrapper<TokioAsyncContext>, lookup: Wrapper<CdsiLookup>): Promise<LookupResponse>;
|
|
112
|
+
export function CdsiLookup_new(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>, username: string, password: string, request: Wrapper<LookupRequest>, timeoutMillis: number): Promise<CdsiLookup>;
|
|
113
|
+
export function CdsiLookup_token(lookup: Wrapper<CdsiLookup>): Buffer;
|
|
112
114
|
export function CiphertextMessage_FromPlaintextContent(m: Wrapper<PlaintextContent>): CiphertextMessage;
|
|
113
115
|
export function CiphertextMessage_Serialize(obj: Wrapper<CiphertextMessage>): Buffer;
|
|
114
116
|
export function CiphertextMessage_Type(msg: Wrapper<CiphertextMessage>): number;
|
|
@@ -190,8 +192,10 @@ export function KyberSecretKey_Deserialize(data: Buffer): KyberSecretKey;
|
|
|
190
192
|
export function KyberSecretKey_Serialize(obj: Wrapper<KyberSecretKey>): Buffer;
|
|
191
193
|
export function LookupRequest_addAciAndAccessKey(request: Wrapper<LookupRequest>, aci: Buffer, accessKey: Buffer): void;
|
|
192
194
|
export function LookupRequest_addE164(request: Wrapper<LookupRequest>, e164: string): void;
|
|
195
|
+
export function LookupRequest_addPreviousE164(request: Wrapper<LookupRequest>, e164: string): void;
|
|
193
196
|
export function LookupRequest_new(): LookupRequest;
|
|
194
197
|
export function LookupRequest_setReturnAcisWithoutUaks(request: Wrapper<LookupRequest>, returnAcisWithoutUaks: boolean): void;
|
|
198
|
+
export function LookupRequest_setToken(request: Wrapper<LookupRequest>, token: Buffer): void;
|
|
195
199
|
export function Mp4Sanitizer_Sanitize(input: InputStream, len: Buffer): Promise<SanitizedMetadata>;
|
|
196
200
|
export function PlaintextContent_Deserialize(data: Buffer): PlaintextContent;
|
|
197
201
|
export function PlaintextContent_FromDecryptionErrorMessage(m: Wrapper<DecryptionErrorMessage>): PlaintextContent;
|
|
@@ -380,8 +384,11 @@ export function TESTING_ErrorOnReturnAsync(_needsCleanup: null): Promise<null>;
|
|
|
380
384
|
export function TESTING_ErrorOnReturnIo(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _needsCleanup: null): Promise<null>;
|
|
381
385
|
export function TESTING_ErrorOnReturnSync(_needsCleanup: null): null;
|
|
382
386
|
export function TESTING_FutureFailure(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _input: number): Promise<number>;
|
|
387
|
+
export function TESTING_FutureProducesOtherPointerType(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, input: string): Promise<OtherTestingHandleType>;
|
|
388
|
+
export function TESTING_FutureProducesPointerType(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, input: number): Promise<TestingHandleType>;
|
|
383
389
|
export function TESTING_FutureSuccess(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, input: number): Promise<number>;
|
|
384
390
|
export function TESTING_NonSuspendingBackgroundThreadRuntime_New(): NonSuspendingBackgroundThreadRuntime;
|
|
391
|
+
export function TESTING_OtherTestingHandleType_getValue(handle: Wrapper<OtherTestingHandleType>): string;
|
|
385
392
|
export function TESTING_PanicInBodyAsync(_input: null): Promise<void>;
|
|
386
393
|
export function TESTING_PanicInBodyIo(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _input: null): Promise<void>;
|
|
387
394
|
export function TESTING_PanicInBodySync(_input: null): void;
|
|
@@ -394,6 +401,7 @@ export function TESTING_PanicOnLoadSync(_needsCleanup: null, _input: null): void
|
|
|
394
401
|
export function TESTING_PanicOnReturnAsync(_needsCleanup: null): Promise<null>;
|
|
395
402
|
export function TESTING_PanicOnReturnIo(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _needsCleanup: null): Promise<null>;
|
|
396
403
|
export function TESTING_PanicOnReturnSync(_needsCleanup: null): null;
|
|
404
|
+
export function TESTING_TestingHandleType_getValue(handle: Wrapper<TestingHandleType>): number;
|
|
397
405
|
export function TokioAsyncContext_new(): TokioAsyncContext;
|
|
398
406
|
export function UnidentifiedSenderMessageContent_Deserialize(data: Buffer): UnidentifiedSenderMessageContent;
|
|
399
407
|
export function UnidentifiedSenderMessageContent_GetContentHint(m: Wrapper<UnidentifiedSenderMessageContent>): number;
|
|
@@ -420,6 +428,7 @@ interface AuthCredential { readonly __type: unique symbol; }
|
|
|
420
428
|
interface AuthCredentialResponse { readonly __type: unique symbol; }
|
|
421
429
|
interface AuthCredentialWithPni { readonly __type: unique symbol; }
|
|
422
430
|
interface AuthCredentialWithPniResponse { readonly __type: unique symbol; }
|
|
431
|
+
interface CdsiLookup { readonly __type: unique symbol; }
|
|
423
432
|
interface CiphertextMessage { readonly __type: unique symbol; }
|
|
424
433
|
interface ConnectionManager { readonly __type: unique symbol; }
|
|
425
434
|
interface DecryptionErrorMessage { readonly __type: unique symbol; }
|
|
@@ -437,6 +446,7 @@ interface KyberPublicKey { readonly __type: unique symbol; }
|
|
|
437
446
|
interface KyberSecretKey { readonly __type: unique symbol; }
|
|
438
447
|
interface LookupRequest { readonly __type: unique symbol; }
|
|
439
448
|
interface NonSuspendingBackgroundThreadRuntime { readonly __type: unique symbol; }
|
|
449
|
+
interface OtherTestingHandleType { readonly __type: unique symbol; }
|
|
440
450
|
interface PlaintextContent { readonly __type: unique symbol; }
|
|
441
451
|
interface PreKeyBundle { readonly __type: unique symbol; }
|
|
442
452
|
interface PreKeyRecord { readonly __type: unique symbol; }
|
|
@@ -467,6 +477,7 @@ interface SessionRecord { readonly __type: unique symbol; }
|
|
|
467
477
|
interface SgxClientState { readonly __type: unique symbol; }
|
|
468
478
|
interface SignalMessage { readonly __type: unique symbol; }
|
|
469
479
|
interface SignedPreKeyRecord { readonly __type: unique symbol; }
|
|
480
|
+
interface TestingHandleType { readonly __type: unique symbol; }
|
|
470
481
|
interface TokioAsyncContext { readonly __type: unique symbol; }
|
|
471
482
|
interface UnidentifiedSenderMessageContent { readonly __type: unique symbol; }
|
|
472
483
|
interface UuidCiphertext { readonly __type: unique symbol; }
|
package/dist/net.js
CHANGED
|
@@ -27,7 +27,8 @@ class Net {
|
|
|
27
27
|
Native.LookupRequest_addAciAndAccessKey(request, Address_1.Aci.parseFromServiceIdString(aciStr).getServiceIdFixedWidthBinary(), Buffer.from(accessKeyStr, 'base64'));
|
|
28
28
|
});
|
|
29
29
|
Native.LookupRequest_setReturnAcisWithoutUaks(request, returnAcisWithoutUaks);
|
|
30
|
-
|
|
30
|
+
const lookup = await Native.CdsiLookup_new({ _nativeHandle: this._asyncContext }, { _nativeHandle: this._connectionManager }, username, password, request, timeout);
|
|
31
|
+
return await Native.CdsiLookup_complete({ _nativeHandle: this._asyncContext }, { _nativeHandle: lookup });
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
exports.Net = Net;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|