@signalapp/libsignal-client 0.15.0 → 0.16.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 +39 -42
- 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
|
@@ -50,11 +50,11 @@ export const enum LogLevel { Error = 1, Warn, Info, Debug, Trace }
|
|
|
50
50
|
export function Aes256GcmSiv_Decrypt(aesGcmSiv: Wrapper<Aes256GcmSiv>, ctext: Buffer, nonce: Buffer, associatedData: Buffer): Buffer;
|
|
51
51
|
export function Aes256GcmSiv_Encrypt(aesGcmSivObj: Wrapper<Aes256GcmSiv>, ptext: Buffer, nonce: Buffer, associatedData: Buffer): Buffer;
|
|
52
52
|
export function Aes256GcmSiv_New(key: Buffer): Aes256GcmSiv;
|
|
53
|
-
export function AuthCredentialPresentation_CheckValidContents(
|
|
54
|
-
export function AuthCredentialPresentation_GetRedemptionTime(
|
|
55
|
-
export function AuthCredentialPresentation_GetUuidCiphertext(
|
|
56
|
-
export function AuthCredentialResponse_CheckValidContents(
|
|
57
|
-
export function AuthCredential_CheckValidContents(
|
|
53
|
+
export function AuthCredentialPresentation_CheckValidContents(presentationBytes: Buffer): void;
|
|
54
|
+
export function AuthCredentialPresentation_GetRedemptionTime(presentationBytes: Buffer): number;
|
|
55
|
+
export function AuthCredentialPresentation_GetUuidCiphertext(presentationBytes: Buffer): Serialized<UuidCiphertext>;
|
|
56
|
+
export function AuthCredentialResponse_CheckValidContents(buffer: Buffer): void;
|
|
57
|
+
export function AuthCredential_CheckValidContents(buffer: Buffer): void;
|
|
58
58
|
export function CiphertextMessage_FromPlaintextContent(m: Wrapper<PlaintextContent>): CiphertextMessage;
|
|
59
59
|
export function CiphertextMessage_Serialize(obj: Wrapper<CiphertextMessage>): Buffer;
|
|
60
60
|
export function CiphertextMessage_Type(msg: Wrapper<CiphertextMessage>): number;
|
|
@@ -70,10 +70,10 @@ export function Fingerprint_New(iterations: number, version: number, localIdenti
|
|
|
70
70
|
export function Fingerprint_ScannableEncoding(obj: Wrapper<Fingerprint>): Buffer;
|
|
71
71
|
export function GroupCipher_DecryptMessage(sender: Wrapper<ProtocolAddress>, message: Buffer, store: SenderKeyStore, ctx: null): Promise<Buffer>;
|
|
72
72
|
export function GroupCipher_EncryptMessage(sender: Wrapper<ProtocolAddress>, distributionId: Uuid, message: Buffer, store: SenderKeyStore, ctx: null): Promise<CiphertextMessage>;
|
|
73
|
-
export function GroupMasterKey_CheckValidContents(
|
|
74
|
-
export function GroupPublicParams_CheckValidContents(
|
|
73
|
+
export function GroupMasterKey_CheckValidContents(buffer: Buffer): void;
|
|
74
|
+
export function GroupPublicParams_CheckValidContents(buffer: Buffer): void;
|
|
75
75
|
export function GroupPublicParams_GetGroupIdentifier(groupPublicParams: Serialized<GroupPublicParams>): Buffer;
|
|
76
|
-
export function GroupSecretParams_CheckValidContents(
|
|
76
|
+
export function GroupSecretParams_CheckValidContents(buffer: Buffer): void;
|
|
77
77
|
export function GroupSecretParams_DecryptBlobWithPadding(params: Serialized<GroupSecretParams>, ciphertext: Buffer): Buffer;
|
|
78
78
|
export function GroupSecretParams_DecryptProfileKey(params: Serialized<GroupSecretParams>, profileKey: Serialized<ProfileKeyCiphertext>, uuid: Uuid): Serialized<ProfileKey>;
|
|
79
79
|
export function GroupSecretParams_DecryptUuid(params: Serialized<GroupSecretParams>, uuid: Serialized<UuidCiphertext>): Uuid;
|
|
@@ -97,14 +97,14 @@ export function PlaintextContent_Deserialize(data: Buffer): PlaintextContent;
|
|
|
97
97
|
export function PlaintextContent_FromDecryptionErrorMessage(m: Wrapper<DecryptionErrorMessage>): PlaintextContent;
|
|
98
98
|
export function PlaintextContent_GetBody(obj: Wrapper<PlaintextContent>): Buffer;
|
|
99
99
|
export function PlaintextContent_Serialize(obj: Wrapper<PlaintextContent>): Buffer;
|
|
100
|
-
export function PniCredentialPresentation_CheckValidContents(
|
|
101
|
-
export function PniCredentialPresentation_GetAciCiphertext(
|
|
102
|
-
export function PniCredentialPresentation_GetPniCiphertext(
|
|
103
|
-
export function PniCredentialPresentation_GetProfileKeyCiphertext(
|
|
104
|
-
export function PniCredentialRequestContext_CheckValidContents(
|
|
100
|
+
export function PniCredentialPresentation_CheckValidContents(presentationBytes: Buffer): void;
|
|
101
|
+
export function PniCredentialPresentation_GetAciCiphertext(presentationBytes: Buffer): Serialized<UuidCiphertext>;
|
|
102
|
+
export function PniCredentialPresentation_GetPniCiphertext(presentationBytes: Buffer): Serialized<UuidCiphertext>;
|
|
103
|
+
export function PniCredentialPresentation_GetProfileKeyCiphertext(presentationBytes: Buffer): Serialized<ProfileKeyCiphertext>;
|
|
104
|
+
export function PniCredentialRequestContext_CheckValidContents(buffer: Buffer): void;
|
|
105
105
|
export function PniCredentialRequestContext_GetRequest(context: Serialized<PniCredentialRequestContext>): Serialized<ProfileKeyCredentialRequest>;
|
|
106
|
-
export function PniCredentialResponse_CheckValidContents(
|
|
107
|
-
export function PniCredential_CheckValidContents(
|
|
106
|
+
export function PniCredentialResponse_CheckValidContents(buffer: Buffer): void;
|
|
107
|
+
export function PniCredential_CheckValidContents(buffer: Buffer): void;
|
|
108
108
|
export function PreKeyBundle_GetDeviceId(obj: Wrapper<PreKeyBundle>): number;
|
|
109
109
|
export function PreKeyBundle_GetIdentityKey(p: Wrapper<PreKeyBundle>): PublicKey;
|
|
110
110
|
export function PreKeyBundle_GetPreKeyId(obj: Wrapper<PreKeyBundle>): number | null;
|
|
@@ -133,17 +133,17 @@ export function PrivateKey_Generate(): PrivateKey;
|
|
|
133
133
|
export function PrivateKey_GetPublicKey(k: Wrapper<PrivateKey>): PublicKey;
|
|
134
134
|
export function PrivateKey_Serialize(obj: Wrapper<PrivateKey>): Buffer;
|
|
135
135
|
export function PrivateKey_Sign(key: Wrapper<PrivateKey>, message: Buffer): Buffer;
|
|
136
|
-
export function ProfileKeyCiphertext_CheckValidContents(
|
|
137
|
-
export function ProfileKeyCommitment_CheckValidContents(
|
|
138
|
-
export function ProfileKeyCredentialPresentation_CheckValidContents(
|
|
139
|
-
export function ProfileKeyCredentialPresentation_GetProfileKeyCiphertext(
|
|
140
|
-
export function ProfileKeyCredentialPresentation_GetUuidCiphertext(
|
|
141
|
-
export function ProfileKeyCredentialRequestContext_CheckValidContents(
|
|
136
|
+
export function ProfileKeyCiphertext_CheckValidContents(buffer: Buffer): void;
|
|
137
|
+
export function ProfileKeyCommitment_CheckValidContents(buffer: Buffer): void;
|
|
138
|
+
export function ProfileKeyCredentialPresentation_CheckValidContents(presentationBytes: Buffer): void;
|
|
139
|
+
export function ProfileKeyCredentialPresentation_GetProfileKeyCiphertext(presentationBytes: Buffer): Serialized<ProfileKeyCiphertext>;
|
|
140
|
+
export function ProfileKeyCredentialPresentation_GetUuidCiphertext(presentationBytes: Buffer): Serialized<UuidCiphertext>;
|
|
141
|
+
export function ProfileKeyCredentialRequestContext_CheckValidContents(buffer: Buffer): void;
|
|
142
142
|
export function ProfileKeyCredentialRequestContext_GetRequest(context: Serialized<ProfileKeyCredentialRequestContext>): Serialized<ProfileKeyCredentialRequest>;
|
|
143
|
-
export function ProfileKeyCredentialRequest_CheckValidContents(
|
|
144
|
-
export function ProfileKeyCredentialResponse_CheckValidContents(
|
|
145
|
-
export function ProfileKeyCredential_CheckValidContents(
|
|
146
|
-
export function ProfileKey_CheckValidContents(
|
|
143
|
+
export function ProfileKeyCredentialRequest_CheckValidContents(buffer: Buffer): void;
|
|
144
|
+
export function ProfileKeyCredentialResponse_CheckValidContents(buffer: Buffer): void;
|
|
145
|
+
export function ProfileKeyCredential_CheckValidContents(buffer: Buffer): void;
|
|
146
|
+
export function ProfileKey_CheckValidContents(buffer: Buffer): void;
|
|
147
147
|
export function ProfileKey_GetCommitment(profileKey: Serialized<ProfileKey>, uuid: Uuid): Serialized<ProfileKeyCommitment>;
|
|
148
148
|
export function ProfileKey_GetProfileKeyVersion(profileKey: Serialized<ProfileKey>, uuid: Uuid): Buffer;
|
|
149
149
|
export function ProtocolAddress_DeviceId(obj: Wrapper<ProtocolAddress>): number;
|
|
@@ -154,15 +154,15 @@ export function PublicKey_Deserialize(data: Buffer): PublicKey;
|
|
|
154
154
|
export function PublicKey_GetPublicKeyBytes(obj: Wrapper<PublicKey>): Buffer;
|
|
155
155
|
export function PublicKey_Serialize(obj: Wrapper<PublicKey>): Buffer;
|
|
156
156
|
export function PublicKey_Verify(key: Wrapper<PublicKey>, message: Buffer, signature: Buffer): boolean;
|
|
157
|
-
export function ReceiptCredentialPresentation_CheckValidContents(
|
|
157
|
+
export function ReceiptCredentialPresentation_CheckValidContents(buffer: Buffer): void;
|
|
158
158
|
export function ReceiptCredentialPresentation_GetReceiptExpirationTime(presentation: Serialized<ReceiptCredentialPresentation>): Buffer;
|
|
159
159
|
export function ReceiptCredentialPresentation_GetReceiptLevel(presentation: Serialized<ReceiptCredentialPresentation>): Buffer;
|
|
160
160
|
export function ReceiptCredentialPresentation_GetReceiptSerial(presentation: Serialized<ReceiptCredentialPresentation>): Buffer;
|
|
161
|
-
export function ReceiptCredentialRequestContext_CheckValidContents(
|
|
161
|
+
export function ReceiptCredentialRequestContext_CheckValidContents(buffer: Buffer): void;
|
|
162
162
|
export function ReceiptCredentialRequestContext_GetRequest(requestContext: Serialized<ReceiptCredentialRequestContext>): Serialized<ReceiptCredentialRequest>;
|
|
163
|
-
export function ReceiptCredentialRequest_CheckValidContents(
|
|
164
|
-
export function ReceiptCredentialResponse_CheckValidContents(
|
|
165
|
-
export function ReceiptCredential_CheckValidContents(
|
|
163
|
+
export function ReceiptCredentialRequest_CheckValidContents(buffer: Buffer): void;
|
|
164
|
+
export function ReceiptCredentialResponse_CheckValidContents(buffer: Buffer): void;
|
|
165
|
+
export function ReceiptCredential_CheckValidContents(buffer: Buffer): void;
|
|
166
166
|
export function ReceiptCredential_GetReceiptExpirationTime(receiptCredential: Serialized<ReceiptCredential>): Buffer;
|
|
167
167
|
export function ReceiptCredential_GetReceiptLevel(receiptCredential: Serialized<ReceiptCredential>): Buffer;
|
|
168
168
|
export function ScannableFingerprint_Compare(fprint1: Buffer, fprint2: Buffer): boolean;
|
|
@@ -213,11 +213,11 @@ export function ServerCertificate_GetKeyId(obj: Wrapper<ServerCertificate>): num
|
|
|
213
213
|
export function ServerCertificate_GetSerialized(obj: Wrapper<ServerCertificate>): Buffer;
|
|
214
214
|
export function ServerCertificate_GetSignature(obj: Wrapper<ServerCertificate>): Buffer;
|
|
215
215
|
export function ServerCertificate_New(keyId: number, serverKey: Wrapper<PublicKey>, trustRoot: Wrapper<PrivateKey>): ServerCertificate;
|
|
216
|
-
export function ServerPublicParams_CheckValidContents(
|
|
217
|
-
export function ServerPublicParams_CreateAuthCredentialPresentationDeterministic(serverPublicParams: Serialized<ServerPublicParams>, randomness: Buffer, groupSecretParams: Serialized<GroupSecretParams>, authCredential: Serialized<AuthCredential>):
|
|
218
|
-
export function ServerPublicParams_CreatePniCredentialPresentationDeterministic(serverPublicParams: Serialized<ServerPublicParams>, randomness: Buffer, groupSecretParams: Serialized<GroupSecretParams>,
|
|
216
|
+
export function ServerPublicParams_CheckValidContents(buffer: Buffer): void;
|
|
217
|
+
export function ServerPublicParams_CreateAuthCredentialPresentationDeterministic(serverPublicParams: Serialized<ServerPublicParams>, randomness: Buffer, groupSecretParams: Serialized<GroupSecretParams>, authCredential: Serialized<AuthCredential>): Buffer;
|
|
218
|
+
export function ServerPublicParams_CreatePniCredentialPresentationDeterministic(serverPublicParams: Serialized<ServerPublicParams>, randomness: Buffer, groupSecretParams: Serialized<GroupSecretParams>, pniCredential: Serialized<PniCredential>): Buffer;
|
|
219
219
|
export function ServerPublicParams_CreatePniCredentialRequestContextDeterministic(serverPublicParams: Serialized<ServerPublicParams>, randomness: Buffer, aci: Uuid, pni: Uuid, profileKey: Serialized<ProfileKey>): Serialized<PniCredentialRequestContext>;
|
|
220
|
-
export function ServerPublicParams_CreateProfileKeyCredentialPresentationDeterministic(serverPublicParams: Serialized<ServerPublicParams>, randomness: Buffer, groupSecretParams: Serialized<GroupSecretParams>, profileKeyCredential: Serialized<ProfileKeyCredential>):
|
|
220
|
+
export function ServerPublicParams_CreateProfileKeyCredentialPresentationDeterministic(serverPublicParams: Serialized<ServerPublicParams>, randomness: Buffer, groupSecretParams: Serialized<GroupSecretParams>, profileKeyCredential: Serialized<ProfileKeyCredential>): Buffer;
|
|
221
221
|
export function ServerPublicParams_CreateProfileKeyCredentialRequestContextDeterministic(serverPublicParams: Serialized<ServerPublicParams>, randomness: Buffer, uuid: Uuid, profileKey: Serialized<ProfileKey>): Serialized<ProfileKeyCredentialRequestContext>;
|
|
222
222
|
export function ServerPublicParams_CreateReceiptCredentialPresentationDeterministic(serverPublicParams: Serialized<ServerPublicParams>, randomness: Buffer, receiptCredential: Serialized<ReceiptCredential>): Serialized<ReceiptCredentialPresentation>;
|
|
223
223
|
export function ServerPublicParams_CreateReceiptCredentialRequestContextDeterministic(serverPublicParams: Serialized<ServerPublicParams>, randomness: Buffer, receiptSerial: Buffer): Serialized<ReceiptCredentialRequestContext>;
|
|
@@ -226,7 +226,7 @@ export function ServerPublicParams_ReceivePniCredential(serverPublicParams: Seri
|
|
|
226
226
|
export function ServerPublicParams_ReceiveProfileKeyCredential(serverPublicParams: Serialized<ServerPublicParams>, requestContext: Serialized<ProfileKeyCredentialRequestContext>, response: Serialized<ProfileKeyCredentialResponse>): Serialized<ProfileKeyCredential>;
|
|
227
227
|
export function ServerPublicParams_ReceiveReceiptCredential(serverPublicParams: Serialized<ServerPublicParams>, requestContext: Serialized<ReceiptCredentialRequestContext>, response: Serialized<ReceiptCredentialResponse>): Serialized<ReceiptCredential>;
|
|
228
228
|
export function ServerPublicParams_VerifySignature(serverPublicParams: Serialized<ServerPublicParams>, message: Buffer, notarySignature: Buffer): void;
|
|
229
|
-
export function ServerSecretParams_CheckValidContents(
|
|
229
|
+
export function ServerSecretParams_CheckValidContents(buffer: Buffer): void;
|
|
230
230
|
export function ServerSecretParams_GenerateDeterministic(randomness: Buffer): Serialized<ServerSecretParams>;
|
|
231
231
|
export function ServerSecretParams_GetPublicParams(params: Serialized<ServerSecretParams>): Serialized<ServerPublicParams>;
|
|
232
232
|
export function ServerSecretParams_IssueAuthCredentialDeterministic(serverSecretParams: Serialized<ServerSecretParams>, randomness: Buffer, uuid: Uuid, redemptionTime: number): Serialized<AuthCredentialResponse>;
|
|
@@ -234,9 +234,9 @@ export function ServerSecretParams_IssuePniCredentialDeterministic(serverSecretP
|
|
|
234
234
|
export function ServerSecretParams_IssueProfileKeyCredentialDeterministic(serverSecretParams: Serialized<ServerSecretParams>, randomness: Buffer, request: Serialized<ProfileKeyCredentialRequest>, uuid: Uuid, commitment: Serialized<ProfileKeyCommitment>): Serialized<ProfileKeyCredentialResponse>;
|
|
235
235
|
export function ServerSecretParams_IssueReceiptCredentialDeterministic(serverSecretParams: Serialized<ServerSecretParams>, randomness: Buffer, request: Serialized<ReceiptCredentialRequest>, receiptExpirationTime: Buffer, receiptLevel: Buffer): Serialized<ReceiptCredentialResponse>;
|
|
236
236
|
export function ServerSecretParams_SignDeterministic(params: Serialized<ServerSecretParams>, randomness: Buffer, message: Buffer): Buffer;
|
|
237
|
-
export function ServerSecretParams_VerifyAuthCredentialPresentation(serverSecretParams: Serialized<ServerSecretParams>, groupPublicParams: Serialized<GroupPublicParams>,
|
|
238
|
-
export function ServerSecretParams_VerifyPniCredentialPresentation(serverSecretParams: Serialized<ServerSecretParams>, groupPublicParams: Serialized<GroupPublicParams>,
|
|
239
|
-
export function ServerSecretParams_VerifyProfileKeyCredentialPresentation(serverSecretParams: Serialized<ServerSecretParams>, groupPublicParams: Serialized<GroupPublicParams>,
|
|
237
|
+
export function ServerSecretParams_VerifyAuthCredentialPresentation(serverSecretParams: Serialized<ServerSecretParams>, groupPublicParams: Serialized<GroupPublicParams>, presentationBytes: Buffer): void;
|
|
238
|
+
export function ServerSecretParams_VerifyPniCredentialPresentation(serverSecretParams: Serialized<ServerSecretParams>, groupPublicParams: Serialized<GroupPublicParams>, presentationBytes: Buffer): void;
|
|
239
|
+
export function ServerSecretParams_VerifyProfileKeyCredentialPresentation(serverSecretParams: Serialized<ServerSecretParams>, groupPublicParams: Serialized<GroupPublicParams>, presentationBytes: Buffer): void;
|
|
240
240
|
export function ServerSecretParams_VerifyReceiptCredentialPresentation(serverSecretParams: Serialized<ServerSecretParams>, presentation: Serialized<ReceiptCredentialPresentation>): void;
|
|
241
241
|
export function SessionBuilder_ProcessPreKeyBundle(bundle: Wrapper<PreKeyBundle>, protocolAddress: Wrapper<ProtocolAddress>, sessionStore: SessionStore, identityKeyStore: IdentityKeyStore, ctx: null): Promise<void>;
|
|
242
242
|
export function SessionCipher_DecryptPreKeySignalMessage(message: Wrapper<PreKeySignalMessage>, protocolAddress: Wrapper<ProtocolAddress>, sessionStore: SessionStore, identityKeyStore: IdentityKeyStore, prekeyStore: PreKeyStore, signedPrekeyStore: SignedPreKeyStore, ctx: null): Promise<Buffer>;
|
|
@@ -274,11 +274,10 @@ export function UnidentifiedSenderMessageContent_GetMsgType(m: Wrapper<Unidentif
|
|
|
274
274
|
export function UnidentifiedSenderMessageContent_GetSenderCert(m: Wrapper<UnidentifiedSenderMessageContent>): SenderCertificate;
|
|
275
275
|
export function UnidentifiedSenderMessageContent_New(message: Wrapper<CiphertextMessage>, sender: Wrapper<SenderCertificate>, contentHint: number, groupId: Buffer | null): UnidentifiedSenderMessageContent;
|
|
276
276
|
export function UnidentifiedSenderMessageContent_Serialize(obj: Wrapper<UnidentifiedSenderMessageContent>): Buffer;
|
|
277
|
-
export function UuidCiphertext_CheckValidContents(
|
|
277
|
+
export function UuidCiphertext_CheckValidContents(buffer: Buffer): void;
|
|
278
278
|
export function initLogger(maxLevel: LogLevel, callback: (level: LogLevel, target: string, file: string | null, line: number | null, message: string) => void): void
|
|
279
279
|
interface Aes256GcmSiv { readonly __type: unique symbol; }
|
|
280
280
|
interface AuthCredential { readonly __type: unique symbol; }
|
|
281
|
-
interface AuthCredentialPresentation { readonly __type: unique symbol; }
|
|
282
281
|
interface AuthCredentialResponse { readonly __type: unique symbol; }
|
|
283
282
|
interface CiphertextMessage { readonly __type: unique symbol; }
|
|
284
283
|
interface DecryptionErrorMessage { readonly __type: unique symbol; }
|
|
@@ -289,7 +288,6 @@ interface GroupSecretParams { readonly __type: unique symbol; }
|
|
|
289
288
|
interface HsmEnclaveClient { readonly __type: unique symbol; }
|
|
290
289
|
interface PlaintextContent { readonly __type: unique symbol; }
|
|
291
290
|
interface PniCredential { readonly __type: unique symbol; }
|
|
292
|
-
interface PniCredentialPresentation { readonly __type: unique symbol; }
|
|
293
291
|
interface PniCredentialRequestContext { readonly __type: unique symbol; }
|
|
294
292
|
interface PniCredentialResponse { readonly __type: unique symbol; }
|
|
295
293
|
interface PreKeyBundle { readonly __type: unique symbol; }
|
|
@@ -300,7 +298,6 @@ interface ProfileKey { readonly __type: unique symbol; }
|
|
|
300
298
|
interface ProfileKeyCiphertext { readonly __type: unique symbol; }
|
|
301
299
|
interface ProfileKeyCommitment { readonly __type: unique symbol; }
|
|
302
300
|
interface ProfileKeyCredential { readonly __type: unique symbol; }
|
|
303
|
-
interface ProfileKeyCredentialPresentation { readonly __type: unique symbol; }
|
|
304
301
|
interface ProfileKeyCredentialRequest { readonly __type: unique symbol; }
|
|
305
302
|
interface ProfileKeyCredentialRequestContext { readonly __type: unique symbol; }
|
|
306
303
|
interface ProfileKeyCredentialResponse { readonly __type: unique symbol; }
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|