@signalapp/libsignal-client 0.74.0 → 0.75.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 +281 -281
- package/dist/AccountKeys.d.ts +7 -8
- package/dist/Address.d.ts +12 -9
- package/dist/Address.js +10 -6
- package/dist/EcKeys.d.ts +12 -13
- package/dist/Errors.d.ts +43 -37
- package/dist/Errors.js +37 -36
- package/dist/MessageBackup.d.ts +6 -7
- package/dist/Minidump.d.ts +1 -2
- package/dist/Mp4Sanitizer.d.ts +1 -2
- package/dist/SealedSenderMultiRecipientMessage.d.ts +3 -4
- package/dist/SealedSenderMultiRecipientMessage.js +4 -2
- package/dist/WebpSanitizer.d.ts +1 -2
- package/dist/acknowledgments.md +24 -631
- package/dist/incremental_mac.d.ts +5 -5
- package/dist/incremental_mac.js +3 -1
- package/dist/index.d.ts +90 -91
- package/dist/index.js +4 -4
- package/dist/io.d.ts +3 -5
- package/dist/net/Chat.d.ts +1 -3
- package/dist/net/Chat.js +1 -3
- package/dist/net/KeyTransparency.d.ts +6 -7
- package/dist/net/Registration.d.ts +2 -3
- package/dist/net/Registration.js +1 -1
- package/dist/net.d.ts +1 -3
- package/dist/usernames.d.ts +8 -9
- package/dist/usernames.js +2 -2
- package/dist/zkgroup/GenericServerPublicParams.d.ts +1 -2
- package/dist/zkgroup/GenericServerSecretParams.d.ts +2 -3
- package/dist/zkgroup/NotarySignature.d.ts +1 -2
- package/dist/zkgroup/ServerPublicParams.d.ts +4 -5
- package/dist/zkgroup/ServerPublicParams.js +1 -1
- package/dist/zkgroup/ServerSecretParams.d.ts +5 -6
- package/dist/zkgroup/ServerSecretParams.js +1 -1
- package/dist/zkgroup/auth/AuthCredentialPresentation.d.ts +1 -2
- package/dist/zkgroup/auth/AuthCredentialWithPni.d.ts +1 -2
- package/dist/zkgroup/auth/AuthCredentialWithPniResponse.d.ts +1 -2
- package/dist/zkgroup/auth/ClientZkAuthOperations.d.ts +1 -2
- package/dist/zkgroup/auth/ServerZkAuthOperations.d.ts +1 -2
- package/dist/zkgroup/backups/BackupAuthCredential.d.ts +3 -4
- package/dist/zkgroup/backups/BackupAuthCredentialPresentation.d.ts +2 -3
- package/dist/zkgroup/backups/BackupAuthCredentialRequest.d.ts +2 -3
- package/dist/zkgroup/backups/BackupAuthCredentialRequestContext.d.ts +2 -3
- package/dist/zkgroup/backups/BackupAuthCredentialRequestContext.js +1 -1
- package/dist/zkgroup/backups/BackupAuthCredentialResponse.d.ts +1 -2
- package/dist/zkgroup/calllinks/CallLinkAuthCredential.d.ts +2 -3
- package/dist/zkgroup/calllinks/CallLinkAuthCredentialPresentation.d.ts +1 -2
- package/dist/zkgroup/calllinks/CallLinkAuthCredentialResponse.d.ts +2 -3
- package/dist/zkgroup/calllinks/CallLinkPublicParams.d.ts +1 -2
- package/dist/zkgroup/calllinks/CallLinkSecretParams.d.ts +2 -3
- package/dist/zkgroup/calllinks/CreateCallLinkCredential.d.ts +3 -4
- package/dist/zkgroup/calllinks/CreateCallLinkCredentialPresentation.d.ts +2 -3
- package/dist/zkgroup/calllinks/CreateCallLinkCredentialRequest.d.ts +2 -3
- package/dist/zkgroup/calllinks/CreateCallLinkCredentialRequestContext.d.ts +3 -4
- package/dist/zkgroup/calllinks/CreateCallLinkCredentialResponse.d.ts +1 -2
- package/dist/zkgroup/groups/ClientZkGroupCipher.d.ts +3 -4
- package/dist/zkgroup/groups/GroupIdentifier.d.ts +1 -2
- package/dist/zkgroup/groups/GroupIdentifier.js +1 -1
- package/dist/zkgroup/groups/GroupMasterKey.d.ts +1 -2
- package/dist/zkgroup/groups/GroupPublicParams.d.ts +1 -2
- package/dist/zkgroup/groups/GroupSecretParams.d.ts +2 -3
- package/dist/zkgroup/groups/ProfileKeyCiphertext.d.ts +1 -2
- package/dist/zkgroup/groups/UuidCiphertext.d.ts +2 -3
- package/dist/zkgroup/groups/UuidCiphertext.js +2 -2
- package/dist/zkgroup/groupsend/GroupSendDerivedKeyPair.d.ts +1 -2
- package/dist/zkgroup/groupsend/GroupSendEndorsement.d.ts +1 -2
- package/dist/zkgroup/groupsend/GroupSendEndorsementsResponse.d.ts +2 -3
- package/dist/zkgroup/groupsend/GroupSendFullToken.d.ts +1 -2
- package/dist/zkgroup/groupsend/GroupSendToken.d.ts +1 -2
- package/dist/zkgroup/internal/ByteArray.d.ts +5 -6
- package/dist/zkgroup/internal/ByteArray.js +2 -2
- package/dist/zkgroup/profiles/ClientZkProfileOperations.d.ts +2 -3
- package/dist/zkgroup/profiles/ExpiringProfileKeyCredential.d.ts +1 -2
- package/dist/zkgroup/profiles/ExpiringProfileKeyCredentialResponse.d.ts +1 -2
- package/dist/zkgroup/profiles/ProfileKey.d.ts +2 -3
- package/dist/zkgroup/profiles/ProfileKeyCommitment.d.ts +1 -2
- package/dist/zkgroup/profiles/ProfileKeyCredentialPresentation.d.ts +1 -2
- package/dist/zkgroup/profiles/ProfileKeyCredentialRequest.d.ts +1 -2
- package/dist/zkgroup/profiles/ProfileKeyCredentialRequestContext.d.ts +1 -2
- package/dist/zkgroup/profiles/ProfileKeyVersion.d.ts +1 -2
- package/dist/zkgroup/profiles/ProfileKeyVersion.js +4 -2
- package/dist/zkgroup/profiles/ServerZkProfileOperations.d.ts +1 -2
- package/dist/zkgroup/receipts/ClientZkReceiptOperations.d.ts +2 -3
- package/dist/zkgroup/receipts/ReceiptCredential.d.ts +1 -2
- package/dist/zkgroup/receipts/ReceiptCredentialPresentation.d.ts +1 -2
- package/dist/zkgroup/receipts/ReceiptCredentialRequest.d.ts +1 -2
- package/dist/zkgroup/receipts/ReceiptCredentialRequestContext.d.ts +1 -2
- package/dist/zkgroup/receipts/ReceiptCredentialResponse.d.ts +1 -2
- package/dist/zkgroup/receipts/ReceiptSerial.d.ts +1 -2
- package/dist/zkgroup/receipts/ServerZkReceiptOperations.d.ts +1 -2
- package/package.json +2 -2
- package/prebuilds/darwin-arm64/@signalapp+libsignal-client.node +0 -0
- package/prebuilds/darwin-x64/@signalapp+libsignal-client.node +0 -0
- package/prebuilds/linux-arm64/@signalapp+libsignal-client.node +0 -0
- package/prebuilds/linux-x64/@signalapp+libsignal-client.node +0 -0
- package/prebuilds/win32-arm64/@signalapp+libsignal-client.node +0 -0
- package/prebuilds/win32-x64/@signalapp+libsignal-client.node +0 -0
package/Native.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
//
|
|
2
|
-
// Copyright 2020
|
|
2
|
+
// Copyright 2020 Signal Messenger, LLC.
|
|
3
3
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
4
4
|
//
|
|
5
5
|
|
|
6
6
|
// WARNING: this file was automatically generated
|
|
7
7
|
|
|
8
|
-
type Uuid =
|
|
8
|
+
type Uuid = Uint8Array;
|
|
9
9
|
|
|
10
10
|
/// A Native.Timestamp may be measured in seconds or in milliseconds;
|
|
11
11
|
/// what's important is that it's an integer less than Number.MAX_SAFE_INTEGER.
|
|
@@ -28,7 +28,7 @@ type ChatResponse = {
|
|
|
28
28
|
status: number;
|
|
29
29
|
message: string | undefined;
|
|
30
30
|
headers: ReadonlyArray<[string, string]>;
|
|
31
|
-
body:
|
|
31
|
+
body: Uint8Array | undefined;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
type ChatServiceDebugInfo = {
|
|
@@ -116,15 +116,15 @@ type SenderKeyStore = {
|
|
|
116
116
|
};
|
|
117
117
|
|
|
118
118
|
type InputStream = {
|
|
119
|
-
_read(amount: number): Promise<
|
|
119
|
+
_read(amount: number): Promise<Uint8Array>;
|
|
120
120
|
_skip(amount: number): Promise<void>;
|
|
121
121
|
};
|
|
122
122
|
|
|
123
|
-
type SyncInputStream =
|
|
123
|
+
type SyncInputStream = Uint8Array;
|
|
124
124
|
|
|
125
125
|
type ChatListener = {
|
|
126
126
|
_incoming_message(
|
|
127
|
-
envelope:
|
|
127
|
+
envelope: Uint8Array,
|
|
128
128
|
timestamp: number,
|
|
129
129
|
ack: ServerMessageAck
|
|
130
130
|
): void;
|
|
@@ -161,8 +161,8 @@ type CheckSvr2CredentialsResponse = Map<
|
|
|
161
161
|
|
|
162
162
|
type SignedPublicPreKey = {
|
|
163
163
|
keyId: number;
|
|
164
|
-
publicKey:
|
|
165
|
-
signature:
|
|
164
|
+
publicKey: Uint8Array;
|
|
165
|
+
signature: Uint8Array;
|
|
166
166
|
};
|
|
167
167
|
|
|
168
168
|
type Wrapper<T> = Readonly<{
|
|
@@ -181,78 +181,78 @@ type CancellablePromise<T> = Promise<T> & {
|
|
|
181
181
|
};
|
|
182
182
|
|
|
183
183
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
184
|
-
type Serialized<T> =
|
|
184
|
+
type Serialized<T> = Uint8Array;
|
|
185
185
|
|
|
186
186
|
export function registerErrors(errorsModule: Record<string, unknown>): void;
|
|
187
187
|
|
|
188
188
|
export const enum LogLevel { Error = 1, Warn, Info, Debug, Trace }
|
|
189
|
-
export function AccountEntropyPool_DeriveBackupKey(accountEntropy: AccountEntropyPool):
|
|
190
|
-
export function AccountEntropyPool_DeriveSvrKey(accountEntropy: AccountEntropyPool):
|
|
189
|
+
export function AccountEntropyPool_DeriveBackupKey(accountEntropy: AccountEntropyPool): Uint8Array;
|
|
190
|
+
export function AccountEntropyPool_DeriveSvrKey(accountEntropy: AccountEntropyPool): Uint8Array;
|
|
191
191
|
export function AccountEntropyPool_Generate(): string;
|
|
192
192
|
export function AccountEntropyPool_IsValid(accountEntropy: string): boolean;
|
|
193
|
-
export function Aes256GcmSiv_Decrypt(aesGcmSiv: Wrapper<Aes256GcmSiv>, ctext:
|
|
194
|
-
export function Aes256GcmSiv_Encrypt(aesGcmSivObj: Wrapper<Aes256GcmSiv>, ptext:
|
|
195
|
-
export function Aes256GcmSiv_New(key:
|
|
196
|
-
export function AuthCredentialPresentation_CheckValidContents(presentationBytes:
|
|
197
|
-
export function AuthCredentialPresentation_GetPniCiphertext(presentationBytes:
|
|
198
|
-
export function AuthCredentialPresentation_GetRedemptionTime(presentationBytes:
|
|
199
|
-
export function AuthCredentialPresentation_GetUuidCiphertext(presentationBytes:
|
|
200
|
-
export function AuthCredentialWithPniResponse_CheckValidContents(bytes:
|
|
201
|
-
export function AuthCredentialWithPni_CheckValidContents(bytes:
|
|
193
|
+
export function Aes256GcmSiv_Decrypt(aesGcmSiv: Wrapper<Aes256GcmSiv>, ctext: Uint8Array, nonce: Uint8Array, associatedData: Uint8Array): Uint8Array;
|
|
194
|
+
export function Aes256GcmSiv_Encrypt(aesGcmSivObj: Wrapper<Aes256GcmSiv>, ptext: Uint8Array, nonce: Uint8Array, associatedData: Uint8Array): Uint8Array;
|
|
195
|
+
export function Aes256GcmSiv_New(key: Uint8Array): Aes256GcmSiv;
|
|
196
|
+
export function AuthCredentialPresentation_CheckValidContents(presentationBytes: Uint8Array): void;
|
|
197
|
+
export function AuthCredentialPresentation_GetPniCiphertext(presentationBytes: Uint8Array): Serialized<UuidCiphertext>;
|
|
198
|
+
export function AuthCredentialPresentation_GetRedemptionTime(presentationBytes: Uint8Array): Timestamp;
|
|
199
|
+
export function AuthCredentialPresentation_GetUuidCiphertext(presentationBytes: Uint8Array): Serialized<UuidCiphertext>;
|
|
200
|
+
export function AuthCredentialWithPniResponse_CheckValidContents(bytes: Uint8Array): void;
|
|
201
|
+
export function AuthCredentialWithPni_CheckValidContents(bytes: Uint8Array): void;
|
|
202
202
|
export function AuthenticatedChatConnection_connect(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>, username: string, password: string, receiveStories: boolean): CancellablePromise<AuthenticatedChatConnection>;
|
|
203
203
|
export function AuthenticatedChatConnection_disconnect(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<AuthenticatedChatConnection>): CancellablePromise<void>;
|
|
204
204
|
export function AuthenticatedChatConnection_info(chat: Wrapper<AuthenticatedChatConnection>): ChatConnectionInfo;
|
|
205
205
|
export function AuthenticatedChatConnection_init_listener(chat: Wrapper<AuthenticatedChatConnection>, listener: ChatListener): void;
|
|
206
206
|
export function AuthenticatedChatConnection_preconnect(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>): CancellablePromise<void>;
|
|
207
207
|
export function AuthenticatedChatConnection_send(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<AuthenticatedChatConnection>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): CancellablePromise<ChatResponse>;
|
|
208
|
-
export function BackupAuthCredentialPresentation_CheckValidContents(presentationBytes:
|
|
209
|
-
export function BackupAuthCredentialPresentation_GetBackupId(presentationBytes:
|
|
210
|
-
export function BackupAuthCredentialPresentation_GetBackupLevel(presentationBytes:
|
|
211
|
-
export function BackupAuthCredentialPresentation_GetType(presentationBytes:
|
|
212
|
-
export function BackupAuthCredentialPresentation_Verify(presentationBytes:
|
|
213
|
-
export function BackupAuthCredentialRequestContext_CheckValidContents(contextBytes:
|
|
214
|
-
export function BackupAuthCredentialRequestContext_GetRequest(contextBytes:
|
|
215
|
-
export function BackupAuthCredentialRequestContext_New(backupKey:
|
|
216
|
-
export function BackupAuthCredentialRequestContext_ReceiveResponse(contextBytes:
|
|
217
|
-
export function BackupAuthCredentialRequest_CheckValidContents(requestBytes:
|
|
218
|
-
export function BackupAuthCredentialRequest_IssueDeterministic(requestBytes:
|
|
219
|
-
export function BackupAuthCredentialResponse_CheckValidContents(responseBytes:
|
|
220
|
-
export function BackupAuthCredential_CheckValidContents(paramsBytes:
|
|
221
|
-
export function BackupAuthCredential_GetBackupId(credentialBytes:
|
|
222
|
-
export function BackupAuthCredential_GetBackupLevel(credentialBytes:
|
|
223
|
-
export function BackupAuthCredential_GetType(credentialBytes:
|
|
224
|
-
export function BackupAuthCredential_PresentDeterministic(credentialBytes:
|
|
225
|
-
export function BackupKey_DeriveBackupId(backupKey:
|
|
226
|
-
export function BackupKey_DeriveEcKey(backupKey:
|
|
227
|
-
export function BackupKey_DeriveLocalBackupMetadataKey(backupKey:
|
|
228
|
-
export function BackupKey_DeriveMediaEncryptionKey(backupKey:
|
|
229
|
-
export function BackupKey_DeriveMediaId(backupKey:
|
|
230
|
-
export function BackupKey_DeriveThumbnailTransitEncryptionKey(backupKey:
|
|
208
|
+
export function BackupAuthCredentialPresentation_CheckValidContents(presentationBytes: Uint8Array): void;
|
|
209
|
+
export function BackupAuthCredentialPresentation_GetBackupId(presentationBytes: Uint8Array): Uint8Array;
|
|
210
|
+
export function BackupAuthCredentialPresentation_GetBackupLevel(presentationBytes: Uint8Array): number;
|
|
211
|
+
export function BackupAuthCredentialPresentation_GetType(presentationBytes: Uint8Array): number;
|
|
212
|
+
export function BackupAuthCredentialPresentation_Verify(presentationBytes: Uint8Array, now: Timestamp, serverParamsBytes: Uint8Array): void;
|
|
213
|
+
export function BackupAuthCredentialRequestContext_CheckValidContents(contextBytes: Uint8Array): void;
|
|
214
|
+
export function BackupAuthCredentialRequestContext_GetRequest(contextBytes: Uint8Array): Uint8Array;
|
|
215
|
+
export function BackupAuthCredentialRequestContext_New(backupKey: Uint8Array, uuid: Uuid): Uint8Array;
|
|
216
|
+
export function BackupAuthCredentialRequestContext_ReceiveResponse(contextBytes: Uint8Array, responseBytes: Uint8Array, expectedRedemptionTime: Timestamp, paramsBytes: Uint8Array): Uint8Array;
|
|
217
|
+
export function BackupAuthCredentialRequest_CheckValidContents(requestBytes: Uint8Array): void;
|
|
218
|
+
export function BackupAuthCredentialRequest_IssueDeterministic(requestBytes: Uint8Array, redemptionTime: Timestamp, backupLevel: number, credentialType: number, paramsBytes: Uint8Array, randomness: Uint8Array): Uint8Array;
|
|
219
|
+
export function BackupAuthCredentialResponse_CheckValidContents(responseBytes: Uint8Array): void;
|
|
220
|
+
export function BackupAuthCredential_CheckValidContents(paramsBytes: Uint8Array): void;
|
|
221
|
+
export function BackupAuthCredential_GetBackupId(credentialBytes: Uint8Array): Uint8Array;
|
|
222
|
+
export function BackupAuthCredential_GetBackupLevel(credentialBytes: Uint8Array): number;
|
|
223
|
+
export function BackupAuthCredential_GetType(credentialBytes: Uint8Array): number;
|
|
224
|
+
export function BackupAuthCredential_PresentDeterministic(credentialBytes: Uint8Array, serverParamsBytes: Uint8Array, randomness: Uint8Array): Uint8Array;
|
|
225
|
+
export function BackupKey_DeriveBackupId(backupKey: Uint8Array, aci: Uint8Array): Uint8Array;
|
|
226
|
+
export function BackupKey_DeriveEcKey(backupKey: Uint8Array, aci: Uint8Array): PrivateKey;
|
|
227
|
+
export function BackupKey_DeriveLocalBackupMetadataKey(backupKey: Uint8Array): Uint8Array;
|
|
228
|
+
export function BackupKey_DeriveMediaEncryptionKey(backupKey: Uint8Array, mediaId: Uint8Array): Uint8Array;
|
|
229
|
+
export function BackupKey_DeriveMediaId(backupKey: Uint8Array, mediaName: string): Uint8Array;
|
|
230
|
+
export function BackupKey_DeriveThumbnailTransitEncryptionKey(backupKey: Uint8Array, mediaId: Uint8Array): Uint8Array;
|
|
231
231
|
export function BridgedStringMap_insert(map: Wrapper<BridgedStringMap>, key: string, value: string): void;
|
|
232
232
|
export function BridgedStringMap_new(initialCapacity: number): BridgedStringMap;
|
|
233
|
-
export function CallLinkAuthCredentialPresentation_CheckValidContents(presentationBytes:
|
|
234
|
-
export function CallLinkAuthCredentialPresentation_GetUserId(presentationBytes:
|
|
235
|
-
export function CallLinkAuthCredentialPresentation_Verify(presentationBytes:
|
|
236
|
-
export function CallLinkAuthCredentialResponse_CheckValidContents(responseBytes:
|
|
237
|
-
export function CallLinkAuthCredentialResponse_IssueDeterministic(userId:
|
|
238
|
-
export function CallLinkAuthCredentialResponse_Receive(responseBytes:
|
|
239
|
-
export function CallLinkAuthCredential_CheckValidContents(credentialBytes:
|
|
240
|
-
export function CallLinkAuthCredential_PresentDeterministic(credentialBytes:
|
|
241
|
-
export function CallLinkPublicParams_CheckValidContents(paramsBytes:
|
|
242
|
-
export function CallLinkSecretParams_CheckValidContents(paramsBytes:
|
|
243
|
-
export function CallLinkSecretParams_DecryptUserId(paramsBytes:
|
|
244
|
-
export function CallLinkSecretParams_DeriveFromRootKey(rootKey:
|
|
245
|
-
export function CallLinkSecretParams_EncryptUserId(paramsBytes:
|
|
246
|
-
export function CallLinkSecretParams_GetPublicParams(paramsBytes:
|
|
247
|
-
export function Cds2ClientState_New(mrenclave:
|
|
233
|
+
export function CallLinkAuthCredentialPresentation_CheckValidContents(presentationBytes: Uint8Array): void;
|
|
234
|
+
export function CallLinkAuthCredentialPresentation_GetUserId(presentationBytes: Uint8Array): Serialized<UuidCiphertext>;
|
|
235
|
+
export function CallLinkAuthCredentialPresentation_Verify(presentationBytes: Uint8Array, now: Timestamp, serverParamsBytes: Uint8Array, callLinkParamsBytes: Uint8Array): void;
|
|
236
|
+
export function CallLinkAuthCredentialResponse_CheckValidContents(responseBytes: Uint8Array): void;
|
|
237
|
+
export function CallLinkAuthCredentialResponse_IssueDeterministic(userId: Uint8Array, redemptionTime: Timestamp, paramsBytes: Uint8Array, randomness: Uint8Array): Uint8Array;
|
|
238
|
+
export function CallLinkAuthCredentialResponse_Receive(responseBytes: Uint8Array, userId: Uint8Array, redemptionTime: Timestamp, paramsBytes: Uint8Array): Uint8Array;
|
|
239
|
+
export function CallLinkAuthCredential_CheckValidContents(credentialBytes: Uint8Array): void;
|
|
240
|
+
export function CallLinkAuthCredential_PresentDeterministic(credentialBytes: Uint8Array, userId: Uint8Array, redemptionTime: Timestamp, serverParamsBytes: Uint8Array, callLinkParamsBytes: Uint8Array, randomness: Uint8Array): Uint8Array;
|
|
241
|
+
export function CallLinkPublicParams_CheckValidContents(paramsBytes: Uint8Array): void;
|
|
242
|
+
export function CallLinkSecretParams_CheckValidContents(paramsBytes: Uint8Array): void;
|
|
243
|
+
export function CallLinkSecretParams_DecryptUserId(paramsBytes: Uint8Array, userId: Serialized<UuidCiphertext>): Uint8Array;
|
|
244
|
+
export function CallLinkSecretParams_DeriveFromRootKey(rootKey: Uint8Array): Uint8Array;
|
|
245
|
+
export function CallLinkSecretParams_EncryptUserId(paramsBytes: Uint8Array, userId: Uint8Array): Serialized<UuidCiphertext>;
|
|
246
|
+
export function CallLinkSecretParams_GetPublicParams(paramsBytes: Uint8Array): Uint8Array;
|
|
247
|
+
export function Cds2ClientState_New(mrenclave: Uint8Array, attestationMsg: Uint8Array, currentTimestamp: Timestamp): SgxClientState;
|
|
248
248
|
export function CdsiLookup_complete(asyncRuntime: Wrapper<TokioAsyncContext>, lookup: Wrapper<CdsiLookup>): CancellablePromise<LookupResponse>;
|
|
249
249
|
export function CdsiLookup_new(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>, username: string, password: string, request: Wrapper<LookupRequest>): CancellablePromise<CdsiLookup>;
|
|
250
|
-
export function CdsiLookup_token(lookup: Wrapper<CdsiLookup>):
|
|
250
|
+
export function CdsiLookup_token(lookup: Wrapper<CdsiLookup>): Uint8Array;
|
|
251
251
|
export function ChatConnectionInfo_description(connectionInfo: Wrapper<ChatConnectionInfo>): string;
|
|
252
252
|
export function ChatConnectionInfo_ip_version(connectionInfo: Wrapper<ChatConnectionInfo>): number;
|
|
253
253
|
export function ChatConnectionInfo_local_port(connectionInfo: Wrapper<ChatConnectionInfo>): number;
|
|
254
254
|
export function CiphertextMessage_FromPlaintextContent(m: Wrapper<PlaintextContent>): CiphertextMessage;
|
|
255
|
-
export function CiphertextMessage_Serialize(obj: Wrapper<CiphertextMessage>):
|
|
255
|
+
export function CiphertextMessage_Serialize(obj: Wrapper<CiphertextMessage>): Uint8Array;
|
|
256
256
|
export function CiphertextMessage_Type(msg: Wrapper<CiphertextMessage>): number;
|
|
257
257
|
export function ComparableBackup_GetComparableString(backup: Wrapper<ComparableBackup>): string;
|
|
258
258
|
export function ComparableBackup_GetUnknownFields(backup: Wrapper<ComparableBackup>): string[];
|
|
@@ -266,188 +266,188 @@ export function ConnectionManager_set_ipv6_enabled(connectionManager: Wrapper<Co
|
|
|
266
266
|
export function ConnectionManager_set_proxy(connectionManager: Wrapper<ConnectionManager>, proxy: Wrapper<ConnectionProxyConfig>): void;
|
|
267
267
|
export function ConnectionManager_set_remote_config(connectionManager: Wrapper<ConnectionManager>, remoteConfig: Wrapper<BridgedStringMap>): void;
|
|
268
268
|
export function ConnectionProxyConfig_new(scheme: string, host: string, port: number, username: string | null, password: string | null): ConnectionProxyConfig;
|
|
269
|
-
export function CreateCallLinkCredentialPresentation_CheckValidContents(presentationBytes:
|
|
270
|
-
export function CreateCallLinkCredentialPresentation_Verify(presentationBytes:
|
|
271
|
-
export function CreateCallLinkCredentialRequestContext_CheckValidContents(contextBytes:
|
|
272
|
-
export function CreateCallLinkCredentialRequestContext_GetRequest(contextBytes:
|
|
273
|
-
export function CreateCallLinkCredentialRequestContext_NewDeterministic(roomId:
|
|
274
|
-
export function CreateCallLinkCredentialRequestContext_ReceiveResponse(contextBytes:
|
|
275
|
-
export function CreateCallLinkCredentialRequest_CheckValidContents(requestBytes:
|
|
276
|
-
export function CreateCallLinkCredentialRequest_IssueDeterministic(requestBytes:
|
|
277
|
-
export function CreateCallLinkCredentialResponse_CheckValidContents(responseBytes:
|
|
278
|
-
export function CreateCallLinkCredential_CheckValidContents(paramsBytes:
|
|
279
|
-
export function CreateCallLinkCredential_PresentDeterministic(credentialBytes:
|
|
280
|
-
export function CreateOTP(username: string, secret:
|
|
269
|
+
export function CreateCallLinkCredentialPresentation_CheckValidContents(presentationBytes: Uint8Array): void;
|
|
270
|
+
export function CreateCallLinkCredentialPresentation_Verify(presentationBytes: Uint8Array, roomId: Uint8Array, now: Timestamp, serverParamsBytes: Uint8Array, callLinkParamsBytes: Uint8Array): void;
|
|
271
|
+
export function CreateCallLinkCredentialRequestContext_CheckValidContents(contextBytes: Uint8Array): void;
|
|
272
|
+
export function CreateCallLinkCredentialRequestContext_GetRequest(contextBytes: Uint8Array): Uint8Array;
|
|
273
|
+
export function CreateCallLinkCredentialRequestContext_NewDeterministic(roomId: Uint8Array, randomness: Uint8Array): Uint8Array;
|
|
274
|
+
export function CreateCallLinkCredentialRequestContext_ReceiveResponse(contextBytes: Uint8Array, responseBytes: Uint8Array, userId: Uint8Array, paramsBytes: Uint8Array): Uint8Array;
|
|
275
|
+
export function CreateCallLinkCredentialRequest_CheckValidContents(requestBytes: Uint8Array): void;
|
|
276
|
+
export function CreateCallLinkCredentialRequest_IssueDeterministic(requestBytes: Uint8Array, userId: Uint8Array, timestamp: Timestamp, paramsBytes: Uint8Array, randomness: Uint8Array): Uint8Array;
|
|
277
|
+
export function CreateCallLinkCredentialResponse_CheckValidContents(responseBytes: Uint8Array): void;
|
|
278
|
+
export function CreateCallLinkCredential_CheckValidContents(paramsBytes: Uint8Array): void;
|
|
279
|
+
export function CreateCallLinkCredential_PresentDeterministic(credentialBytes: Uint8Array, roomId: Uint8Array, userId: Uint8Array, serverParamsBytes: Uint8Array, callLinkParamsBytes: Uint8Array, randomness: Uint8Array): Uint8Array;
|
|
280
|
+
export function CreateOTP(username: string, secret: Uint8Array): string;
|
|
281
281
|
export function CreateOTPFromBase64(username: string, secret: string): string;
|
|
282
|
-
export function DecryptionErrorMessage_Deserialize(data:
|
|
283
|
-
export function DecryptionErrorMessage_ExtractFromSerializedContent(bytes:
|
|
284
|
-
export function DecryptionErrorMessage_ForOriginalMessage(originalBytes:
|
|
282
|
+
export function DecryptionErrorMessage_Deserialize(data: Uint8Array): DecryptionErrorMessage;
|
|
283
|
+
export function DecryptionErrorMessage_ExtractFromSerializedContent(bytes: Uint8Array): DecryptionErrorMessage;
|
|
284
|
+
export function DecryptionErrorMessage_ForOriginalMessage(originalBytes: Uint8Array, originalType: number, originalTimestamp: Timestamp, originalSenderDeviceId: number): DecryptionErrorMessage;
|
|
285
285
|
export function DecryptionErrorMessage_GetDeviceId(obj: Wrapper<DecryptionErrorMessage>): number;
|
|
286
286
|
export function DecryptionErrorMessage_GetRatchetKey(m: Wrapper<DecryptionErrorMessage>): PublicKey | null;
|
|
287
287
|
export function DecryptionErrorMessage_GetTimestamp(obj: Wrapper<DecryptionErrorMessage>): Timestamp;
|
|
288
|
-
export function DecryptionErrorMessage_Serialize(obj: Wrapper<DecryptionErrorMessage>):
|
|
289
|
-
export function ExpiringProfileKeyCredentialResponse_CheckValidContents(buffer:
|
|
290
|
-
export function ExpiringProfileKeyCredential_CheckValidContents(buffer:
|
|
288
|
+
export function DecryptionErrorMessage_Serialize(obj: Wrapper<DecryptionErrorMessage>): Uint8Array;
|
|
289
|
+
export function ExpiringProfileKeyCredentialResponse_CheckValidContents(buffer: Uint8Array): void;
|
|
290
|
+
export function ExpiringProfileKeyCredential_CheckValidContents(buffer: Uint8Array): void;
|
|
291
291
|
export function ExpiringProfileKeyCredential_GetExpirationTime(credential: Serialized<ExpiringProfileKeyCredential>): Timestamp;
|
|
292
292
|
export function Fingerprint_DisplayString(obj: Wrapper<Fingerprint>): string;
|
|
293
|
-
export function Fingerprint_New(iterations: number, version: number, localIdentifier:
|
|
294
|
-
export function Fingerprint_ScannableEncoding(obj: Wrapper<Fingerprint>):
|
|
295
|
-
export function GenericServerPublicParams_CheckValidContents(paramsBytes:
|
|
296
|
-
export function GenericServerSecretParams_CheckValidContents(paramsBytes:
|
|
297
|
-
export function GenericServerSecretParams_GenerateDeterministic(randomness:
|
|
298
|
-
export function GenericServerSecretParams_GetPublicParams(paramsBytes:
|
|
299
|
-
export function GroupCipher_DecryptMessage(sender: Wrapper<ProtocolAddress>, message:
|
|
300
|
-
export function GroupCipher_EncryptMessage(sender: Wrapper<ProtocolAddress>, distributionId: Uuid, message:
|
|
301
|
-
export function GroupMasterKey_CheckValidContents(buffer:
|
|
302
|
-
export function GroupPublicParams_CheckValidContents(buffer:
|
|
303
|
-
export function GroupPublicParams_GetGroupIdentifier(groupPublicParams: Serialized<GroupPublicParams>):
|
|
304
|
-
export function GroupSecretParams_CheckValidContents(buffer:
|
|
305
|
-
export function GroupSecretParams_DecryptBlobWithPadding(params: Serialized<GroupSecretParams>, ciphertext:
|
|
306
|
-
export function GroupSecretParams_DecryptProfileKey(params: Serialized<GroupSecretParams>, profileKey: Serialized<ProfileKeyCiphertext>, userId:
|
|
307
|
-
export function GroupSecretParams_DecryptServiceId(params: Serialized<GroupSecretParams>, ciphertext: Serialized<UuidCiphertext>):
|
|
293
|
+
export function Fingerprint_New(iterations: number, version: number, localIdentifier: Uint8Array, localKey: Wrapper<PublicKey>, remoteIdentifier: Uint8Array, remoteKey: Wrapper<PublicKey>): Fingerprint;
|
|
294
|
+
export function Fingerprint_ScannableEncoding(obj: Wrapper<Fingerprint>): Uint8Array;
|
|
295
|
+
export function GenericServerPublicParams_CheckValidContents(paramsBytes: Uint8Array): void;
|
|
296
|
+
export function GenericServerSecretParams_CheckValidContents(paramsBytes: Uint8Array): void;
|
|
297
|
+
export function GenericServerSecretParams_GenerateDeterministic(randomness: Uint8Array): Uint8Array;
|
|
298
|
+
export function GenericServerSecretParams_GetPublicParams(paramsBytes: Uint8Array): Uint8Array;
|
|
299
|
+
export function GroupCipher_DecryptMessage(sender: Wrapper<ProtocolAddress>, message: Uint8Array, store: SenderKeyStore): Promise<Uint8Array>;
|
|
300
|
+
export function GroupCipher_EncryptMessage(sender: Wrapper<ProtocolAddress>, distributionId: Uuid, message: Uint8Array, store: SenderKeyStore): Promise<CiphertextMessage>;
|
|
301
|
+
export function GroupMasterKey_CheckValidContents(buffer: Uint8Array): void;
|
|
302
|
+
export function GroupPublicParams_CheckValidContents(buffer: Uint8Array): void;
|
|
303
|
+
export function GroupPublicParams_GetGroupIdentifier(groupPublicParams: Serialized<GroupPublicParams>): Uint8Array;
|
|
304
|
+
export function GroupSecretParams_CheckValidContents(buffer: Uint8Array): void;
|
|
305
|
+
export function GroupSecretParams_DecryptBlobWithPadding(params: Serialized<GroupSecretParams>, ciphertext: Uint8Array): Uint8Array;
|
|
306
|
+
export function GroupSecretParams_DecryptProfileKey(params: Serialized<GroupSecretParams>, profileKey: Serialized<ProfileKeyCiphertext>, userId: Uint8Array): Serialized<ProfileKey>;
|
|
307
|
+
export function GroupSecretParams_DecryptServiceId(params: Serialized<GroupSecretParams>, ciphertext: Serialized<UuidCiphertext>): Uint8Array;
|
|
308
308
|
export function GroupSecretParams_DeriveFromMasterKey(masterKey: Serialized<GroupMasterKey>): Serialized<GroupSecretParams>;
|
|
309
|
-
export function GroupSecretParams_EncryptBlobWithPaddingDeterministic(params: Serialized<GroupSecretParams>, randomness:
|
|
310
|
-
export function GroupSecretParams_EncryptProfileKey(params: Serialized<GroupSecretParams>, profileKey: Serialized<ProfileKey>, userId:
|
|
311
|
-
export function GroupSecretParams_EncryptServiceId(params: Serialized<GroupSecretParams>, serviceId:
|
|
312
|
-
export function GroupSecretParams_GenerateDeterministic(randomness:
|
|
309
|
+
export function GroupSecretParams_EncryptBlobWithPaddingDeterministic(params: Serialized<GroupSecretParams>, randomness: Uint8Array, plaintext: Uint8Array, paddingLen: number): Uint8Array;
|
|
310
|
+
export function GroupSecretParams_EncryptProfileKey(params: Serialized<GroupSecretParams>, profileKey: Serialized<ProfileKey>, userId: Uint8Array): Serialized<ProfileKeyCiphertext>;
|
|
311
|
+
export function GroupSecretParams_EncryptServiceId(params: Serialized<GroupSecretParams>, serviceId: Uint8Array): Serialized<UuidCiphertext>;
|
|
312
|
+
export function GroupSecretParams_GenerateDeterministic(randomness: Uint8Array): Serialized<GroupSecretParams>;
|
|
313
313
|
export function GroupSecretParams_GetMasterKey(params: Serialized<GroupSecretParams>): Serialized<GroupMasterKey>;
|
|
314
314
|
export function GroupSecretParams_GetPublicParams(params: Serialized<GroupSecretParams>): Serialized<GroupPublicParams>;
|
|
315
|
-
export function GroupSendDerivedKeyPair_CheckValidContents(bytes:
|
|
316
|
-
export function GroupSendDerivedKeyPair_ForExpiration(expiration: Timestamp, serverParams: Wrapper<ServerSecretParams>):
|
|
317
|
-
export function GroupSendEndorsement_CallLinkParams_ToToken(endorsement:
|
|
318
|
-
export function GroupSendEndorsement_CheckValidContents(bytes:
|
|
319
|
-
export function GroupSendEndorsement_Combine(endorsements:
|
|
320
|
-
export function GroupSendEndorsement_Remove(endorsement:
|
|
321
|
-
export function GroupSendEndorsement_ToToken(endorsement:
|
|
322
|
-
export function GroupSendEndorsementsResponse_CheckValidContents(bytes:
|
|
323
|
-
export function GroupSendEndorsementsResponse_GetExpiration(responseBytes:
|
|
324
|
-
export function GroupSendEndorsementsResponse_IssueDeterministic(concatenatedGroupMemberCiphertexts:
|
|
325
|
-
export function GroupSendEndorsementsResponse_ReceiveAndCombineWithCiphertexts(responseBytes:
|
|
326
|
-
export function GroupSendEndorsementsResponse_ReceiveAndCombineWithServiceIds(responseBytes:
|
|
327
|
-
export function GroupSendFullToken_CheckValidContents(bytes:
|
|
328
|
-
export function GroupSendFullToken_GetExpiration(token:
|
|
329
|
-
export function GroupSendFullToken_Verify(token:
|
|
330
|
-
export function GroupSendToken_CheckValidContents(bytes:
|
|
331
|
-
export function GroupSendToken_ToFullToken(token:
|
|
332
|
-
export function HKDF_DeriveSecrets(outputLength: number, ikm:
|
|
333
|
-
export function HsmEnclaveClient_CompleteHandshake(cli: Wrapper<HsmEnclaveClient>, handshakeReceived:
|
|
334
|
-
export function HsmEnclaveClient_EstablishedRecv(cli: Wrapper<HsmEnclaveClient>, receivedCiphertext:
|
|
335
|
-
export function HsmEnclaveClient_EstablishedSend(cli: Wrapper<HsmEnclaveClient>, plaintextToSend:
|
|
336
|
-
export function HsmEnclaveClient_InitialRequest(obj: Wrapper<HsmEnclaveClient>):
|
|
337
|
-
export function HsmEnclaveClient_New(trustedPublicKey:
|
|
315
|
+
export function GroupSendDerivedKeyPair_CheckValidContents(bytes: Uint8Array): void;
|
|
316
|
+
export function GroupSendDerivedKeyPair_ForExpiration(expiration: Timestamp, serverParams: Wrapper<ServerSecretParams>): Uint8Array;
|
|
317
|
+
export function GroupSendEndorsement_CallLinkParams_ToToken(endorsement: Uint8Array, callLinkSecretParamsSerialized: Uint8Array): Uint8Array;
|
|
318
|
+
export function GroupSendEndorsement_CheckValidContents(bytes: Uint8Array): void;
|
|
319
|
+
export function GroupSendEndorsement_Combine(endorsements: Uint8Array[]): Uint8Array;
|
|
320
|
+
export function GroupSendEndorsement_Remove(endorsement: Uint8Array, toRemove: Uint8Array): Uint8Array;
|
|
321
|
+
export function GroupSendEndorsement_ToToken(endorsement: Uint8Array, groupParams: Serialized<GroupSecretParams>): Uint8Array;
|
|
322
|
+
export function GroupSendEndorsementsResponse_CheckValidContents(bytes: Uint8Array): void;
|
|
323
|
+
export function GroupSendEndorsementsResponse_GetExpiration(responseBytes: Uint8Array): Timestamp;
|
|
324
|
+
export function GroupSendEndorsementsResponse_IssueDeterministic(concatenatedGroupMemberCiphertexts: Uint8Array, keyPair: Uint8Array, randomness: Uint8Array): Uint8Array;
|
|
325
|
+
export function GroupSendEndorsementsResponse_ReceiveAndCombineWithCiphertexts(responseBytes: Uint8Array, concatenatedGroupMemberCiphertexts: Uint8Array, localUserCiphertext: Uint8Array, now: Timestamp, serverParams: Wrapper<ServerPublicParams>): Uint8Array[];
|
|
326
|
+
export function GroupSendEndorsementsResponse_ReceiveAndCombineWithServiceIds(responseBytes: Uint8Array, groupMembers: Uint8Array, localUser: Uint8Array, now: Timestamp, groupParams: Serialized<GroupSecretParams>, serverParams: Wrapper<ServerPublicParams>): Uint8Array[];
|
|
327
|
+
export function GroupSendFullToken_CheckValidContents(bytes: Uint8Array): void;
|
|
328
|
+
export function GroupSendFullToken_GetExpiration(token: Uint8Array): Timestamp;
|
|
329
|
+
export function GroupSendFullToken_Verify(token: Uint8Array, userIds: Uint8Array, now: Timestamp, keyPair: Uint8Array): void;
|
|
330
|
+
export function GroupSendToken_CheckValidContents(bytes: Uint8Array): void;
|
|
331
|
+
export function GroupSendToken_ToFullToken(token: Uint8Array, expiration: Timestamp): Uint8Array;
|
|
332
|
+
export function HKDF_DeriveSecrets(outputLength: number, ikm: Uint8Array, label: Uint8Array | null, salt: Uint8Array | null): Uint8Array;
|
|
333
|
+
export function HsmEnclaveClient_CompleteHandshake(cli: Wrapper<HsmEnclaveClient>, handshakeReceived: Uint8Array): void;
|
|
334
|
+
export function HsmEnclaveClient_EstablishedRecv(cli: Wrapper<HsmEnclaveClient>, receivedCiphertext: Uint8Array): Uint8Array;
|
|
335
|
+
export function HsmEnclaveClient_EstablishedSend(cli: Wrapper<HsmEnclaveClient>, plaintextToSend: Uint8Array): Uint8Array;
|
|
336
|
+
export function HsmEnclaveClient_InitialRequest(obj: Wrapper<HsmEnclaveClient>): Uint8Array;
|
|
337
|
+
export function HsmEnclaveClient_New(trustedPublicKey: Uint8Array, trustedCodeHashes: Uint8Array): HsmEnclaveClient;
|
|
338
338
|
export function HttpRequest_add_header(request: Wrapper<HttpRequest>, name: string, value: string): void;
|
|
339
|
-
export function HttpRequest_new(method: string, path: string, bodyAsSlice:
|
|
340
|
-
export function IdentityKeyPair_Deserialize(buffer:
|
|
341
|
-
export function IdentityKeyPair_Serialize(publicKey: Wrapper<PublicKey>, privateKey: Wrapper<PrivateKey>):
|
|
342
|
-
export function IdentityKeyPair_SignAlternateIdentity(publicKey: Wrapper<PublicKey>, privateKey: Wrapper<PrivateKey>, otherIdentity: Wrapper<PublicKey>):
|
|
343
|
-
export function IdentityKey_VerifyAlternateIdentity(publicKey: Wrapper<PublicKey>, otherIdentity: Wrapper<PublicKey>, signature:
|
|
339
|
+
export function HttpRequest_new(method: string, path: string, bodyAsSlice: Uint8Array | null): HttpRequest;
|
|
340
|
+
export function IdentityKeyPair_Deserialize(buffer: Uint8Array): {publicKey:PublicKey,privateKey:PrivateKey};
|
|
341
|
+
export function IdentityKeyPair_Serialize(publicKey: Wrapper<PublicKey>, privateKey: Wrapper<PrivateKey>): Uint8Array;
|
|
342
|
+
export function IdentityKeyPair_SignAlternateIdentity(publicKey: Wrapper<PublicKey>, privateKey: Wrapper<PrivateKey>, otherIdentity: Wrapper<PublicKey>): Uint8Array;
|
|
343
|
+
export function IdentityKey_VerifyAlternateIdentity(publicKey: Wrapper<PublicKey>, otherIdentity: Wrapper<PublicKey>, signature: Uint8Array): boolean;
|
|
344
344
|
export function IncrementalMac_CalculateChunkSize(dataSize: number): number;
|
|
345
|
-
export function IncrementalMac_Finalize(mac: Wrapper<IncrementalMac>):
|
|
346
|
-
export function IncrementalMac_Initialize(key:
|
|
347
|
-
export function IncrementalMac_Update(mac: Wrapper<IncrementalMac>, bytes:
|
|
348
|
-
export function KeyTransparency_AciSearchKey(aci:
|
|
349
|
-
export function KeyTransparency_Distinguished(asyncRuntime: Wrapper<TokioAsyncContext>, environment: number, chatConnection: Wrapper<UnauthenticatedChatConnection>, lastDistinguishedTreeHead:
|
|
350
|
-
export function KeyTransparency_E164SearchKey(e164: string):
|
|
351
|
-
export function KeyTransparency_Monitor(asyncRuntime: Wrapper<TokioAsyncContext>, environment: number, chatConnection: Wrapper<UnauthenticatedChatConnection>, aci:
|
|
352
|
-
export function KeyTransparency_Search(asyncRuntime: Wrapper<TokioAsyncContext>, environment: number, chatConnection: Wrapper<UnauthenticatedChatConnection>, aci:
|
|
353
|
-
export function KeyTransparency_UsernameHashSearchKey(hash:
|
|
345
|
+
export function IncrementalMac_Finalize(mac: Wrapper<IncrementalMac>): Uint8Array;
|
|
346
|
+
export function IncrementalMac_Initialize(key: Uint8Array, chunkSize: number): IncrementalMac;
|
|
347
|
+
export function IncrementalMac_Update(mac: Wrapper<IncrementalMac>, bytes: Uint8Array, offset: number, length: number): Uint8Array;
|
|
348
|
+
export function KeyTransparency_AciSearchKey(aci: Uint8Array): Uint8Array;
|
|
349
|
+
export function KeyTransparency_Distinguished(asyncRuntime: Wrapper<TokioAsyncContext>, environment: number, chatConnection: Wrapper<UnauthenticatedChatConnection>, lastDistinguishedTreeHead: Uint8Array | null): CancellablePromise<Uint8Array>;
|
|
350
|
+
export function KeyTransparency_E164SearchKey(e164: string): Uint8Array;
|
|
351
|
+
export function KeyTransparency_Monitor(asyncRuntime: Wrapper<TokioAsyncContext>, environment: number, chatConnection: Wrapper<UnauthenticatedChatConnection>, aci: Uint8Array, aciIdentityKey: Wrapper<PublicKey>, e164: string | null, unidentifiedAccessKey: Uint8Array | null, usernameHash: Uint8Array | null, accountData: Uint8Array | null, lastDistinguishedTreeHead: Uint8Array): CancellablePromise<Uint8Array>;
|
|
352
|
+
export function KeyTransparency_Search(asyncRuntime: Wrapper<TokioAsyncContext>, environment: number, chatConnection: Wrapper<UnauthenticatedChatConnection>, aci: Uint8Array, aciIdentityKey: Wrapper<PublicKey>, e164: string | null, unidentifiedAccessKey: Uint8Array | null, usernameHash: Uint8Array | null, accountData: Uint8Array | null, lastDistinguishedTreeHead: Uint8Array): CancellablePromise<Uint8Array>;
|
|
353
|
+
export function KeyTransparency_UsernameHashSearchKey(hash: Uint8Array): Uint8Array;
|
|
354
354
|
export function KyberKeyPair_Generate(): KyberKeyPair;
|
|
355
355
|
export function KyberKeyPair_GetPublicKey(keyPair: Wrapper<KyberKeyPair>): KyberPublicKey;
|
|
356
356
|
export function KyberKeyPair_GetSecretKey(keyPair: Wrapper<KyberKeyPair>): KyberSecretKey;
|
|
357
|
-
export function KyberPreKeyRecord_Deserialize(data:
|
|
357
|
+
export function KyberPreKeyRecord_Deserialize(data: Uint8Array): KyberPreKeyRecord;
|
|
358
358
|
export function KyberPreKeyRecord_GetId(obj: Wrapper<KyberPreKeyRecord>): number;
|
|
359
359
|
export function KyberPreKeyRecord_GetKeyPair(obj: Wrapper<KyberPreKeyRecord>): KyberKeyPair;
|
|
360
360
|
export function KyberPreKeyRecord_GetPublicKey(obj: Wrapper<KyberPreKeyRecord>): KyberPublicKey;
|
|
361
361
|
export function KyberPreKeyRecord_GetSecretKey(obj: Wrapper<KyberPreKeyRecord>): KyberSecretKey;
|
|
362
|
-
export function KyberPreKeyRecord_GetSignature(obj: Wrapper<KyberPreKeyRecord>):
|
|
362
|
+
export function KyberPreKeyRecord_GetSignature(obj: Wrapper<KyberPreKeyRecord>): Uint8Array;
|
|
363
363
|
export function KyberPreKeyRecord_GetTimestamp(obj: Wrapper<KyberPreKeyRecord>): Timestamp;
|
|
364
|
-
export function KyberPreKeyRecord_New(id: number, timestamp: Timestamp, keyPair: Wrapper<KyberKeyPair>, signature:
|
|
365
|
-
export function KyberPreKeyRecord_Serialize(obj: Wrapper<KyberPreKeyRecord>):
|
|
366
|
-
export function KyberPublicKey_Deserialize(data:
|
|
364
|
+
export function KyberPreKeyRecord_New(id: number, timestamp: Timestamp, keyPair: Wrapper<KyberKeyPair>, signature: Uint8Array): KyberPreKeyRecord;
|
|
365
|
+
export function KyberPreKeyRecord_Serialize(obj: Wrapper<KyberPreKeyRecord>): Uint8Array;
|
|
366
|
+
export function KyberPublicKey_Deserialize(data: Uint8Array): KyberPublicKey;
|
|
367
367
|
export function KyberPublicKey_Equals(lhs: Wrapper<KyberPublicKey>, rhs: Wrapper<KyberPublicKey>): boolean;
|
|
368
|
-
export function KyberPublicKey_Serialize(obj: Wrapper<KyberPublicKey>):
|
|
369
|
-
export function KyberSecretKey_Deserialize(data:
|
|
370
|
-
export function KyberSecretKey_Serialize(obj: Wrapper<KyberSecretKey>):
|
|
371
|
-
export function LookupRequest_addAciAndAccessKey(request: Wrapper<LookupRequest>, aci:
|
|
368
|
+
export function KyberPublicKey_Serialize(obj: Wrapper<KyberPublicKey>): Uint8Array;
|
|
369
|
+
export function KyberSecretKey_Deserialize(data: Uint8Array): KyberSecretKey;
|
|
370
|
+
export function KyberSecretKey_Serialize(obj: Wrapper<KyberSecretKey>): Uint8Array;
|
|
371
|
+
export function LookupRequest_addAciAndAccessKey(request: Wrapper<LookupRequest>, aci: Uint8Array, accessKey: Uint8Array): void;
|
|
372
372
|
export function LookupRequest_addE164(request: Wrapper<LookupRequest>, e164: string): void;
|
|
373
373
|
export function LookupRequest_addPreviousE164(request: Wrapper<LookupRequest>, e164: string): void;
|
|
374
374
|
export function LookupRequest_new(): LookupRequest;
|
|
375
|
-
export function LookupRequest_setToken(request: Wrapper<LookupRequest>, token:
|
|
376
|
-
export function MessageBackupKey_FromAccountEntropyPool(accountEntropy: AccountEntropyPool, aci:
|
|
377
|
-
export function MessageBackupKey_FromBackupKeyAndBackupId(backupKey:
|
|
378
|
-
export function MessageBackupKey_GetAesKey(key: Wrapper<MessageBackupKey>):
|
|
379
|
-
export function MessageBackupKey_GetHmacKey(key: Wrapper<MessageBackupKey>):
|
|
375
|
+
export function LookupRequest_setToken(request: Wrapper<LookupRequest>, token: Uint8Array): void;
|
|
376
|
+
export function MessageBackupKey_FromAccountEntropyPool(accountEntropy: AccountEntropyPool, aci: Uint8Array): MessageBackupKey;
|
|
377
|
+
export function MessageBackupKey_FromBackupKeyAndBackupId(backupKey: Uint8Array, backupId: Uint8Array): MessageBackupKey;
|
|
378
|
+
export function MessageBackupKey_GetAesKey(key: Wrapper<MessageBackupKey>): Uint8Array;
|
|
379
|
+
export function MessageBackupKey_GetHmacKey(key: Wrapper<MessageBackupKey>): Uint8Array;
|
|
380
380
|
export function MessageBackupValidator_Validate(key: Wrapper<MessageBackupKey>, firstStream: InputStream, secondStream: InputStream, len: bigint, purpose: number): Promise<MessageBackupValidationOutcome>;
|
|
381
|
-
export function MinidumpToJSONString(buffer:
|
|
381
|
+
export function MinidumpToJSONString(buffer: Uint8Array): string;
|
|
382
382
|
export function Mp4Sanitizer_Sanitize(input: InputStream, len: bigint): Promise<SanitizedMetadata>;
|
|
383
|
-
export function OnlineBackupValidator_AddFrame(backup: Wrapper<OnlineBackupValidator>, frame:
|
|
383
|
+
export function OnlineBackupValidator_AddFrame(backup: Wrapper<OnlineBackupValidator>, frame: Uint8Array): void;
|
|
384
384
|
export function OnlineBackupValidator_Finalize(backup: Wrapper<OnlineBackupValidator>): void;
|
|
385
|
-
export function OnlineBackupValidator_New(backupInfoFrame:
|
|
386
|
-
export function PlaintextContent_Deserialize(data:
|
|
385
|
+
export function OnlineBackupValidator_New(backupInfoFrame: Uint8Array, purpose: number): OnlineBackupValidator;
|
|
386
|
+
export function PlaintextContent_Deserialize(data: Uint8Array): PlaintextContent;
|
|
387
387
|
export function PlaintextContent_FromDecryptionErrorMessage(m: Wrapper<DecryptionErrorMessage>): PlaintextContent;
|
|
388
|
-
export function PlaintextContent_GetBody(obj: Wrapper<PlaintextContent>):
|
|
389
|
-
export function PlaintextContent_Serialize(obj: Wrapper<PlaintextContent>):
|
|
388
|
+
export function PlaintextContent_GetBody(obj: Wrapper<PlaintextContent>): Uint8Array;
|
|
389
|
+
export function PlaintextContent_Serialize(obj: Wrapper<PlaintextContent>): Uint8Array;
|
|
390
390
|
export function PreKeyBundle_GetDeviceId(obj: Wrapper<PreKeyBundle>): number;
|
|
391
391
|
export function PreKeyBundle_GetIdentityKey(p: Wrapper<PreKeyBundle>): PublicKey;
|
|
392
|
-
export function PreKeyBundle_GetKyberPreKeyId(
|
|
392
|
+
export function PreKeyBundle_GetKyberPreKeyId(obj: Wrapper<PreKeyBundle>): number;
|
|
393
393
|
export function PreKeyBundle_GetKyberPreKeyPublic(bundle: Wrapper<PreKeyBundle>): KyberPublicKey;
|
|
394
|
-
export function PreKeyBundle_GetKyberPreKeySignature(
|
|
394
|
+
export function PreKeyBundle_GetKyberPreKeySignature(obj: Wrapper<PreKeyBundle>): Uint8Array;
|
|
395
395
|
export function PreKeyBundle_GetPreKeyId(obj: Wrapper<PreKeyBundle>): number | null;
|
|
396
396
|
export function PreKeyBundle_GetPreKeyPublic(obj: Wrapper<PreKeyBundle>): PublicKey | null;
|
|
397
397
|
export function PreKeyBundle_GetRegistrationId(obj: Wrapper<PreKeyBundle>): number;
|
|
398
398
|
export function PreKeyBundle_GetSignedPreKeyId(obj: Wrapper<PreKeyBundle>): number;
|
|
399
399
|
export function PreKeyBundle_GetSignedPreKeyPublic(obj: Wrapper<PreKeyBundle>): PublicKey;
|
|
400
|
-
export function PreKeyBundle_GetSignedPreKeySignature(obj: Wrapper<PreKeyBundle>):
|
|
401
|
-
export function PreKeyBundle_New(registrationId: number, deviceId: number, prekeyId: number | null, prekey: Wrapper<PublicKey> | null, signedPrekeyId: number, signedPrekey: Wrapper<PublicKey>, signedPrekeySignature:
|
|
402
|
-
export function PreKeyRecord_Deserialize(data:
|
|
400
|
+
export function PreKeyBundle_GetSignedPreKeySignature(obj: Wrapper<PreKeyBundle>): Uint8Array;
|
|
401
|
+
export function PreKeyBundle_New(registrationId: number, deviceId: number, prekeyId: number | null, prekey: Wrapper<PublicKey> | null, signedPrekeyId: number, signedPrekey: Wrapper<PublicKey>, signedPrekeySignature: Uint8Array, identityKey: Wrapper<PublicKey>, kyberPrekeyId: number, kyberPrekey: Wrapper<KyberPublicKey>, kyberPrekeySignature: Uint8Array): PreKeyBundle;
|
|
402
|
+
export function PreKeyRecord_Deserialize(data: Uint8Array): PreKeyRecord;
|
|
403
403
|
export function PreKeyRecord_GetId(obj: Wrapper<PreKeyRecord>): number;
|
|
404
404
|
export function PreKeyRecord_GetPrivateKey(obj: Wrapper<PreKeyRecord>): PrivateKey;
|
|
405
405
|
export function PreKeyRecord_GetPublicKey(obj: Wrapper<PreKeyRecord>): PublicKey;
|
|
406
406
|
export function PreKeyRecord_New(id: number, pubKey: Wrapper<PublicKey>, privKey: Wrapper<PrivateKey>): PreKeyRecord;
|
|
407
|
-
export function PreKeyRecord_Serialize(obj: Wrapper<PreKeyRecord>):
|
|
408
|
-
export function PreKeySignalMessage_Deserialize(data:
|
|
407
|
+
export function PreKeyRecord_Serialize(obj: Wrapper<PreKeyRecord>): Uint8Array;
|
|
408
|
+
export function PreKeySignalMessage_Deserialize(data: Uint8Array): PreKeySignalMessage;
|
|
409
409
|
export function PreKeySignalMessage_GetPreKeyId(obj: Wrapper<PreKeySignalMessage>): number | null;
|
|
410
410
|
export function PreKeySignalMessage_GetRegistrationId(obj: Wrapper<PreKeySignalMessage>): number;
|
|
411
411
|
export function PreKeySignalMessage_GetSignedPreKeyId(obj: Wrapper<PreKeySignalMessage>): number;
|
|
412
412
|
export function PreKeySignalMessage_GetVersion(obj: Wrapper<PreKeySignalMessage>): number;
|
|
413
413
|
export function PreKeySignalMessage_New(messageVersion: number, registrationId: number, preKeyId: number | null, signedPreKeyId: number, baseKey: Wrapper<PublicKey>, identityKey: Wrapper<PublicKey>, signalMessage: Wrapper<SignalMessage>): PreKeySignalMessage;
|
|
414
|
-
export function PreKeySignalMessage_Serialize(obj: Wrapper<PreKeySignalMessage>):
|
|
415
|
-
export function PrivateKey_Agree(privateKey: Wrapper<PrivateKey>, publicKey: Wrapper<PublicKey>):
|
|
416
|
-
export function PrivateKey_Deserialize(data:
|
|
414
|
+
export function PreKeySignalMessage_Serialize(obj: Wrapper<PreKeySignalMessage>): Uint8Array;
|
|
415
|
+
export function PrivateKey_Agree(privateKey: Wrapper<PrivateKey>, publicKey: Wrapper<PublicKey>): Uint8Array;
|
|
416
|
+
export function PrivateKey_Deserialize(data: Uint8Array): PrivateKey;
|
|
417
417
|
export function PrivateKey_Generate(): PrivateKey;
|
|
418
418
|
export function PrivateKey_GetPublicKey(k: Wrapper<PrivateKey>): PublicKey;
|
|
419
|
-
export function PrivateKey_Serialize(obj: Wrapper<PrivateKey>):
|
|
420
|
-
export function PrivateKey_Sign(key: Wrapper<PrivateKey>, message:
|
|
421
|
-
export function ProfileKeyCiphertext_CheckValidContents(buffer:
|
|
422
|
-
export function ProfileKeyCommitment_CheckValidContents(buffer:
|
|
423
|
-
export function ProfileKeyCredentialPresentation_CheckValidContents(presentationBytes:
|
|
424
|
-
export function ProfileKeyCredentialPresentation_GetProfileKeyCiphertext(presentationBytes:
|
|
425
|
-
export function ProfileKeyCredentialPresentation_GetUuidCiphertext(presentationBytes:
|
|
426
|
-
export function ProfileKeyCredentialRequestContext_CheckValidContents(buffer:
|
|
419
|
+
export function PrivateKey_Serialize(obj: Wrapper<PrivateKey>): Uint8Array;
|
|
420
|
+
export function PrivateKey_Sign(key: Wrapper<PrivateKey>, message: Uint8Array): Uint8Array;
|
|
421
|
+
export function ProfileKeyCiphertext_CheckValidContents(buffer: Uint8Array): void;
|
|
422
|
+
export function ProfileKeyCommitment_CheckValidContents(buffer: Uint8Array): void;
|
|
423
|
+
export function ProfileKeyCredentialPresentation_CheckValidContents(presentationBytes: Uint8Array): void;
|
|
424
|
+
export function ProfileKeyCredentialPresentation_GetProfileKeyCiphertext(presentationBytes: Uint8Array): Serialized<ProfileKeyCiphertext>;
|
|
425
|
+
export function ProfileKeyCredentialPresentation_GetUuidCiphertext(presentationBytes: Uint8Array): Serialized<UuidCiphertext>;
|
|
426
|
+
export function ProfileKeyCredentialRequestContext_CheckValidContents(buffer: Uint8Array): void;
|
|
427
427
|
export function ProfileKeyCredentialRequestContext_GetRequest(context: Serialized<ProfileKeyCredentialRequestContext>): Serialized<ProfileKeyCredentialRequest>;
|
|
428
|
-
export function ProfileKeyCredentialRequest_CheckValidContents(buffer:
|
|
429
|
-
export function ProfileKey_CheckValidContents(buffer:
|
|
430
|
-
export function ProfileKey_DeriveAccessKey(profileKey: Serialized<ProfileKey>):
|
|
431
|
-
export function ProfileKey_GetCommitment(profileKey: Serialized<ProfileKey>, userId:
|
|
432
|
-
export function ProfileKey_GetProfileKeyVersion(profileKey: Serialized<ProfileKey>, userId:
|
|
428
|
+
export function ProfileKeyCredentialRequest_CheckValidContents(buffer: Uint8Array): void;
|
|
429
|
+
export function ProfileKey_CheckValidContents(buffer: Uint8Array): void;
|
|
430
|
+
export function ProfileKey_DeriveAccessKey(profileKey: Serialized<ProfileKey>): Uint8Array;
|
|
431
|
+
export function ProfileKey_GetCommitment(profileKey: Serialized<ProfileKey>, userId: Uint8Array): Serialized<ProfileKeyCommitment>;
|
|
432
|
+
export function ProfileKey_GetProfileKeyVersion(profileKey: Serialized<ProfileKey>, userId: Uint8Array): Uint8Array;
|
|
433
433
|
export function ProtocolAddress_DeviceId(obj: Wrapper<ProtocolAddress>): number;
|
|
434
434
|
export function ProtocolAddress_Name(obj: Wrapper<ProtocolAddress>): string;
|
|
435
435
|
export function ProtocolAddress_New(name: string, deviceId: number): ProtocolAddress;
|
|
436
436
|
export function PublicKey_Compare(key1: Wrapper<PublicKey>, key2: Wrapper<PublicKey>): number;
|
|
437
|
-
export function PublicKey_Deserialize(data:
|
|
437
|
+
export function PublicKey_Deserialize(data: Uint8Array): PublicKey;
|
|
438
438
|
export function PublicKey_Equals(lhs: Wrapper<PublicKey>, rhs: Wrapper<PublicKey>): boolean;
|
|
439
|
-
export function PublicKey_GetPublicKeyBytes(obj: Wrapper<PublicKey>):
|
|
440
|
-
export function PublicKey_Serialize(obj: Wrapper<PublicKey>):
|
|
441
|
-
export function PublicKey_Verify(key: Wrapper<PublicKey>, message:
|
|
442
|
-
export function ReceiptCredentialPresentation_CheckValidContents(buffer:
|
|
439
|
+
export function PublicKey_GetPublicKeyBytes(obj: Wrapper<PublicKey>): Uint8Array;
|
|
440
|
+
export function PublicKey_Serialize(obj: Wrapper<PublicKey>): Uint8Array;
|
|
441
|
+
export function PublicKey_Verify(key: Wrapper<PublicKey>, message: Uint8Array, signature: Uint8Array): boolean;
|
|
442
|
+
export function ReceiptCredentialPresentation_CheckValidContents(buffer: Uint8Array): void;
|
|
443
443
|
export function ReceiptCredentialPresentation_GetReceiptExpirationTime(presentation: Serialized<ReceiptCredentialPresentation>): Timestamp;
|
|
444
444
|
export function ReceiptCredentialPresentation_GetReceiptLevel(presentation: Serialized<ReceiptCredentialPresentation>): bigint;
|
|
445
|
-
export function ReceiptCredentialPresentation_GetReceiptSerial(presentation: Serialized<ReceiptCredentialPresentation>):
|
|
446
|
-
export function ReceiptCredentialRequestContext_CheckValidContents(buffer:
|
|
445
|
+
export function ReceiptCredentialPresentation_GetReceiptSerial(presentation: Serialized<ReceiptCredentialPresentation>): Uint8Array;
|
|
446
|
+
export function ReceiptCredentialRequestContext_CheckValidContents(buffer: Uint8Array): void;
|
|
447
447
|
export function ReceiptCredentialRequestContext_GetRequest(requestContext: Serialized<ReceiptCredentialRequestContext>): Serialized<ReceiptCredentialRequest>;
|
|
448
|
-
export function ReceiptCredentialRequest_CheckValidContents(buffer:
|
|
449
|
-
export function ReceiptCredentialResponse_CheckValidContents(buffer:
|
|
450
|
-
export function ReceiptCredential_CheckValidContents(buffer:
|
|
448
|
+
export function ReceiptCredentialRequest_CheckValidContents(buffer: Uint8Array): void;
|
|
449
|
+
export function ReceiptCredentialResponse_CheckValidContents(buffer: Uint8Array): void;
|
|
450
|
+
export function ReceiptCredential_CheckValidContents(buffer: Uint8Array): void;
|
|
451
451
|
export function ReceiptCredential_GetReceiptExpirationTime(receiptCredential: Serialized<ReceiptCredential>): Timestamp;
|
|
452
452
|
export function ReceiptCredential_GetReceiptLevel(receiptCredential: Serialized<ReceiptCredential>): bigint;
|
|
453
453
|
export function RegisterAccountRequest_Create(): RegisterAccountRequest;
|
|
@@ -459,13 +459,13 @@ export function RegisterAccountRequest_SetSkipDeviceTransfer(registerAccount: Wr
|
|
|
459
459
|
export function RegisterAccountResponse_GetEntitlementBackupExpirationSeconds(response: Wrapper<RegisterAccountResponse>): bigint | null;
|
|
460
460
|
export function RegisterAccountResponse_GetEntitlementBackupLevel(response: Wrapper<RegisterAccountResponse>): bigint | null;
|
|
461
461
|
export function RegisterAccountResponse_GetEntitlementBadges(response: Wrapper<RegisterAccountResponse>): RegisterResponseBadge[];
|
|
462
|
-
export function RegisterAccountResponse_GetIdentity(response: Wrapper<RegisterAccountResponse>, identityType: number):
|
|
462
|
+
export function RegisterAccountResponse_GetIdentity(response: Wrapper<RegisterAccountResponse>, identityType: number): Uint8Array;
|
|
463
463
|
export function RegisterAccountResponse_GetNumber(response: Wrapper<RegisterAccountResponse>): string;
|
|
464
464
|
export function RegisterAccountResponse_GetReregistration(response: Wrapper<RegisterAccountResponse>): boolean;
|
|
465
465
|
export function RegisterAccountResponse_GetStorageCapable(response: Wrapper<RegisterAccountResponse>): boolean;
|
|
466
|
-
export function RegisterAccountResponse_GetUsernameHash(response: Wrapper<RegisterAccountResponse>):
|
|
466
|
+
export function RegisterAccountResponse_GetUsernameHash(response: Wrapper<RegisterAccountResponse>): Uint8Array | null;
|
|
467
467
|
export function RegisterAccountResponse_GetUsernameLinkHandle(response: Wrapper<RegisterAccountResponse>): Uuid | null;
|
|
468
|
-
export function RegistrationAccountAttributes_Create(recoveryPassword:
|
|
468
|
+
export function RegistrationAccountAttributes_Create(recoveryPassword: Uint8Array, aciRegistrationId: number, pniRegistrationId: number, registrationLock: string | null, unidentifiedAccessKey: Uint8Array, unrestrictedUnidentifiedAccess: boolean, capabilities: string[], discoverableByPhoneNumber: boolean): RegistrationAccountAttributes;
|
|
469
469
|
export function RegistrationService_CheckSvr2Credentials(asyncRuntime: Wrapper<TokioAsyncContext>, service: Wrapper<RegistrationService>, svrTokens: string[]): CancellablePromise<CheckSvr2CredentialsResponse>;
|
|
470
470
|
export function RegistrationService_CreateSession(asyncRuntime: Wrapper<TokioAsyncContext>, createSession: RegistrationCreateSessionRequest, connectChat: ConnectChatBridge): CancellablePromise<RegistrationService>;
|
|
471
471
|
export function RegistrationService_RegisterAccount(asyncRuntime: Wrapper<TokioAsyncContext>, service: Wrapper<RegistrationService>, registerAccount: Wrapper<RegisterAccountRequest>, accountAttributes: Wrapper<RegistrationAccountAttributes>): CancellablePromise<RegisterAccountResponse>;
|
|
@@ -486,122 +486,122 @@ export function RegistrationSession_GetRequestedInformation(session: Wrapper<Reg
|
|
|
486
486
|
export function RegistrationSession_GetVerified(session: Wrapper<RegistrationSession>): boolean;
|
|
487
487
|
export function SanitizedMetadata_GetDataLen(sanitized: Wrapper<SanitizedMetadata>): bigint;
|
|
488
488
|
export function SanitizedMetadata_GetDataOffset(sanitized: Wrapper<SanitizedMetadata>): bigint;
|
|
489
|
-
export function SanitizedMetadata_GetMetadata(sanitized: Wrapper<SanitizedMetadata>):
|
|
490
|
-
export function ScannableFingerprint_Compare(fprint1:
|
|
489
|
+
export function SanitizedMetadata_GetMetadata(sanitized: Wrapper<SanitizedMetadata>): Uint8Array;
|
|
490
|
+
export function ScannableFingerprint_Compare(fprint1: Uint8Array, fprint2: Uint8Array): boolean;
|
|
491
491
|
export function SealedSenderDecryptionResult_GetDeviceId(obj: Wrapper<SealedSenderDecryptionResult>): number;
|
|
492
492
|
export function SealedSenderDecryptionResult_GetSenderE164(obj: Wrapper<SealedSenderDecryptionResult>): string | null;
|
|
493
493
|
export function SealedSenderDecryptionResult_GetSenderUuid(obj: Wrapper<SealedSenderDecryptionResult>): string;
|
|
494
|
-
export function SealedSenderDecryptionResult_Message(obj: Wrapper<SealedSenderDecryptionResult>):
|
|
495
|
-
export function SealedSenderMultiRecipientMessage_Parse(buffer:
|
|
496
|
-
export function SealedSender_DecryptMessage(message:
|
|
497
|
-
export function SealedSender_DecryptToUsmc(ctext:
|
|
498
|
-
export function SealedSender_Encrypt(destination: Wrapper<ProtocolAddress>, content: Wrapper<UnidentifiedSenderMessageContent>, identityKeyStore: IdentityKeyStore): Promise<
|
|
499
|
-
export function SealedSender_MultiRecipientEncrypt(recipients: Wrapper<ProtocolAddress>[], recipientSessions: Wrapper<SessionRecord>[], excludedRecipients:
|
|
500
|
-
export function SealedSender_MultiRecipientMessageForSingleRecipient(encodedMultiRecipientMessage:
|
|
501
|
-
export function SenderCertificate_Deserialize(data:
|
|
502
|
-
export function SenderCertificate_GetCertificate(obj: Wrapper<SenderCertificate>):
|
|
494
|
+
export function SealedSenderDecryptionResult_Message(obj: Wrapper<SealedSenderDecryptionResult>): Uint8Array;
|
|
495
|
+
export function SealedSenderMultiRecipientMessage_Parse(buffer: Uint8Array): SealedSenderMultiRecipientMessage;
|
|
496
|
+
export function SealedSender_DecryptMessage(message: Uint8Array, trustRoot: Wrapper<PublicKey>, timestamp: Timestamp, localE164: string | null, localUuid: string, localDeviceId: number, sessionStore: SessionStore, identityStore: IdentityKeyStore, prekeyStore: PreKeyStore, signedPrekeyStore: SignedPreKeyStore, kyberPrekeyStore: KyberPreKeyStore, usePqRatchet: boolean): Promise<SealedSenderDecryptionResult>;
|
|
497
|
+
export function SealedSender_DecryptToUsmc(ctext: Uint8Array, identityStore: IdentityKeyStore): Promise<UnidentifiedSenderMessageContent>;
|
|
498
|
+
export function SealedSender_Encrypt(destination: Wrapper<ProtocolAddress>, content: Wrapper<UnidentifiedSenderMessageContent>, identityKeyStore: IdentityKeyStore): Promise<Uint8Array>;
|
|
499
|
+
export function SealedSender_MultiRecipientEncrypt(recipients: Wrapper<ProtocolAddress>[], recipientSessions: Wrapper<SessionRecord>[], excludedRecipients: Uint8Array, content: Wrapper<UnidentifiedSenderMessageContent>, identityKeyStore: IdentityKeyStore): Promise<Uint8Array>;
|
|
500
|
+
export function SealedSender_MultiRecipientMessageForSingleRecipient(encodedMultiRecipientMessage: Uint8Array): Uint8Array;
|
|
501
|
+
export function SenderCertificate_Deserialize(data: Uint8Array): SenderCertificate;
|
|
502
|
+
export function SenderCertificate_GetCertificate(obj: Wrapper<SenderCertificate>): Uint8Array;
|
|
503
503
|
export function SenderCertificate_GetDeviceId(obj: Wrapper<SenderCertificate>): number;
|
|
504
504
|
export function SenderCertificate_GetExpiration(obj: Wrapper<SenderCertificate>): Timestamp;
|
|
505
505
|
export function SenderCertificate_GetKey(obj: Wrapper<SenderCertificate>): PublicKey;
|
|
506
506
|
export function SenderCertificate_GetSenderE164(obj: Wrapper<SenderCertificate>): string | null;
|
|
507
507
|
export function SenderCertificate_GetSenderUuid(obj: Wrapper<SenderCertificate>): string;
|
|
508
|
-
export function SenderCertificate_GetSerialized(obj: Wrapper<SenderCertificate>):
|
|
508
|
+
export function SenderCertificate_GetSerialized(obj: Wrapper<SenderCertificate>): Uint8Array;
|
|
509
509
|
export function SenderCertificate_GetServerCertificate(cert: Wrapper<SenderCertificate>): ServerCertificate;
|
|
510
|
-
export function SenderCertificate_GetSignature(obj: Wrapper<SenderCertificate>):
|
|
510
|
+
export function SenderCertificate_GetSignature(obj: Wrapper<SenderCertificate>): Uint8Array;
|
|
511
511
|
export function SenderCertificate_New(senderUuid: string, senderE164: string | null, senderDeviceId: number, senderKey: Wrapper<PublicKey>, expiration: Timestamp, signerCert: Wrapper<ServerCertificate>, signerKey: Wrapper<PrivateKey>): SenderCertificate;
|
|
512
512
|
export function SenderCertificate_Validate(cert: Wrapper<SenderCertificate>, key: Wrapper<PublicKey>, time: Timestamp): boolean;
|
|
513
513
|
export function SenderKeyDistributionMessage_Create(sender: Wrapper<ProtocolAddress>, distributionId: Uuid, store: SenderKeyStore): Promise<SenderKeyDistributionMessage>;
|
|
514
|
-
export function SenderKeyDistributionMessage_Deserialize(data:
|
|
514
|
+
export function SenderKeyDistributionMessage_Deserialize(data: Uint8Array): SenderKeyDistributionMessage;
|
|
515
515
|
export function SenderKeyDistributionMessage_GetChainId(obj: Wrapper<SenderKeyDistributionMessage>): number;
|
|
516
|
-
export function SenderKeyDistributionMessage_GetChainKey(obj: Wrapper<SenderKeyDistributionMessage>):
|
|
516
|
+
export function SenderKeyDistributionMessage_GetChainKey(obj: Wrapper<SenderKeyDistributionMessage>): Uint8Array;
|
|
517
517
|
export function SenderKeyDistributionMessage_GetDistributionId(obj: Wrapper<SenderKeyDistributionMessage>): Uuid;
|
|
518
518
|
export function SenderKeyDistributionMessage_GetIteration(obj: Wrapper<SenderKeyDistributionMessage>): number;
|
|
519
|
-
export function SenderKeyDistributionMessage_New(messageVersion: number, distributionId: Uuid, chainId: number, iteration: number, chainkey:
|
|
519
|
+
export function SenderKeyDistributionMessage_New(messageVersion: number, distributionId: Uuid, chainId: number, iteration: number, chainkey: Uint8Array, pk: Wrapper<PublicKey>): SenderKeyDistributionMessage;
|
|
520
520
|
export function SenderKeyDistributionMessage_Process(sender: Wrapper<ProtocolAddress>, senderKeyDistributionMessage: Wrapper<SenderKeyDistributionMessage>, store: SenderKeyStore): Promise<void>;
|
|
521
|
-
export function SenderKeyDistributionMessage_Serialize(obj: Wrapper<SenderKeyDistributionMessage>):
|
|
522
|
-
export function SenderKeyMessage_Deserialize(data:
|
|
521
|
+
export function SenderKeyDistributionMessage_Serialize(obj: Wrapper<SenderKeyDistributionMessage>): Uint8Array;
|
|
522
|
+
export function SenderKeyMessage_Deserialize(data: Uint8Array): SenderKeyMessage;
|
|
523
523
|
export function SenderKeyMessage_GetChainId(obj: Wrapper<SenderKeyMessage>): number;
|
|
524
|
-
export function SenderKeyMessage_GetCipherText(obj: Wrapper<SenderKeyMessage>):
|
|
524
|
+
export function SenderKeyMessage_GetCipherText(obj: Wrapper<SenderKeyMessage>): Uint8Array;
|
|
525
525
|
export function SenderKeyMessage_GetDistributionId(obj: Wrapper<SenderKeyMessage>): Uuid;
|
|
526
526
|
export function SenderKeyMessage_GetIteration(obj: Wrapper<SenderKeyMessage>): number;
|
|
527
|
-
export function SenderKeyMessage_New(messageVersion: number, distributionId: Uuid, chainId: number, iteration: number, ciphertext:
|
|
528
|
-
export function SenderKeyMessage_Serialize(obj: Wrapper<SenderKeyMessage>):
|
|
527
|
+
export function SenderKeyMessage_New(messageVersion: number, distributionId: Uuid, chainId: number, iteration: number, ciphertext: Uint8Array, pk: Wrapper<PrivateKey>): SenderKeyMessage;
|
|
528
|
+
export function SenderKeyMessage_Serialize(obj: Wrapper<SenderKeyMessage>): Uint8Array;
|
|
529
529
|
export function SenderKeyMessage_VerifySignature(skm: Wrapper<SenderKeyMessage>, pubkey: Wrapper<PublicKey>): boolean;
|
|
530
|
-
export function SenderKeyRecord_Deserialize(data:
|
|
531
|
-
export function SenderKeyRecord_Serialize(obj: Wrapper<SenderKeyRecord>):
|
|
532
|
-
export function ServerCertificate_Deserialize(data:
|
|
533
|
-
export function ServerCertificate_GetCertificate(obj: Wrapper<ServerCertificate>):
|
|
530
|
+
export function SenderKeyRecord_Deserialize(data: Uint8Array): SenderKeyRecord;
|
|
531
|
+
export function SenderKeyRecord_Serialize(obj: Wrapper<SenderKeyRecord>): Uint8Array;
|
|
532
|
+
export function ServerCertificate_Deserialize(data: Uint8Array): ServerCertificate;
|
|
533
|
+
export function ServerCertificate_GetCertificate(obj: Wrapper<ServerCertificate>): Uint8Array;
|
|
534
534
|
export function ServerCertificate_GetKey(obj: Wrapper<ServerCertificate>): PublicKey;
|
|
535
535
|
export function ServerCertificate_GetKeyId(obj: Wrapper<ServerCertificate>): number;
|
|
536
|
-
export function ServerCertificate_GetSerialized(obj: Wrapper<ServerCertificate>):
|
|
537
|
-
export function ServerCertificate_GetSignature(obj: Wrapper<ServerCertificate>):
|
|
536
|
+
export function ServerCertificate_GetSerialized(obj: Wrapper<ServerCertificate>): Uint8Array;
|
|
537
|
+
export function ServerCertificate_GetSignature(obj: Wrapper<ServerCertificate>): Uint8Array;
|
|
538
538
|
export function ServerCertificate_New(keyId: number, serverKey: Wrapper<PublicKey>, trustRoot: Wrapper<PrivateKey>): ServerCertificate;
|
|
539
539
|
export function ServerMessageAck_SendStatus(ack: Wrapper<ServerMessageAck>, status: number): void;
|
|
540
|
-
export function ServerPublicParams_CreateAuthCredentialWithPniPresentationDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness:
|
|
541
|
-
export function ServerPublicParams_CreateExpiringProfileKeyCredentialPresentationDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness:
|
|
542
|
-
export function ServerPublicParams_CreateProfileKeyCredentialRequestContextDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness:
|
|
543
|
-
export function ServerPublicParams_CreateReceiptCredentialPresentationDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness:
|
|
544
|
-
export function ServerPublicParams_CreateReceiptCredentialRequestContextDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness:
|
|
545
|
-
export function ServerPublicParams_Deserialize(buffer:
|
|
546
|
-
export function ServerPublicParams_GetEndorsementPublicKey(params: Wrapper<ServerPublicParams>):
|
|
547
|
-
export function ServerPublicParams_ReceiveAuthCredentialWithPniAsServiceId(params: Wrapper<ServerPublicParams>, aci:
|
|
540
|
+
export function ServerPublicParams_CreateAuthCredentialWithPniPresentationDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness: Uint8Array, groupSecretParams: Serialized<GroupSecretParams>, authCredentialWithPniBytes: Uint8Array): Uint8Array;
|
|
541
|
+
export function ServerPublicParams_CreateExpiringProfileKeyCredentialPresentationDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness: Uint8Array, groupSecretParams: Serialized<GroupSecretParams>, profileKeyCredential: Serialized<ExpiringProfileKeyCredential>): Uint8Array;
|
|
542
|
+
export function ServerPublicParams_CreateProfileKeyCredentialRequestContextDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness: Uint8Array, userId: Uint8Array, profileKey: Serialized<ProfileKey>): Serialized<ProfileKeyCredentialRequestContext>;
|
|
543
|
+
export function ServerPublicParams_CreateReceiptCredentialPresentationDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness: Uint8Array, receiptCredential: Serialized<ReceiptCredential>): Serialized<ReceiptCredentialPresentation>;
|
|
544
|
+
export function ServerPublicParams_CreateReceiptCredentialRequestContextDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness: Uint8Array, receiptSerial: Uint8Array): Serialized<ReceiptCredentialRequestContext>;
|
|
545
|
+
export function ServerPublicParams_Deserialize(buffer: Uint8Array): ServerPublicParams;
|
|
546
|
+
export function ServerPublicParams_GetEndorsementPublicKey(params: Wrapper<ServerPublicParams>): Uint8Array;
|
|
547
|
+
export function ServerPublicParams_ReceiveAuthCredentialWithPniAsServiceId(params: Wrapper<ServerPublicParams>, aci: Uint8Array, pni: Uint8Array, redemptionTime: Timestamp, authCredentialWithPniResponseBytes: Uint8Array): Uint8Array;
|
|
548
548
|
export function ServerPublicParams_ReceiveExpiringProfileKeyCredential(serverPublicParams: Wrapper<ServerPublicParams>, requestContext: Serialized<ProfileKeyCredentialRequestContext>, response: Serialized<ExpiringProfileKeyCredentialResponse>, currentTimeInSeconds: Timestamp): Serialized<ExpiringProfileKeyCredential>;
|
|
549
549
|
export function ServerPublicParams_ReceiveReceiptCredential(serverPublicParams: Wrapper<ServerPublicParams>, requestContext: Serialized<ReceiptCredentialRequestContext>, response: Serialized<ReceiptCredentialResponse>): Serialized<ReceiptCredential>;
|
|
550
|
-
export function ServerPublicParams_Serialize(handle: Wrapper<ServerPublicParams>):
|
|
551
|
-
export function ServerPublicParams_VerifySignature(serverPublicParams: Wrapper<ServerPublicParams>, message:
|
|
552
|
-
export function ServerSecretParams_Deserialize(buffer:
|
|
553
|
-
export function ServerSecretParams_GenerateDeterministic(randomness:
|
|
550
|
+
export function ServerPublicParams_Serialize(handle: Wrapper<ServerPublicParams>): Uint8Array;
|
|
551
|
+
export function ServerPublicParams_VerifySignature(serverPublicParams: Wrapper<ServerPublicParams>, message: Uint8Array, notarySignature: Uint8Array): void;
|
|
552
|
+
export function ServerSecretParams_Deserialize(buffer: Uint8Array): ServerSecretParams;
|
|
553
|
+
export function ServerSecretParams_GenerateDeterministic(randomness: Uint8Array): ServerSecretParams;
|
|
554
554
|
export function ServerSecretParams_GetPublicParams(params: Wrapper<ServerSecretParams>): ServerPublicParams;
|
|
555
|
-
export function ServerSecretParams_IssueAuthCredentialWithPniZkcDeterministic(serverSecretParams: Wrapper<ServerSecretParams>, randomness:
|
|
556
|
-
export function ServerSecretParams_IssueExpiringProfileKeyCredentialDeterministic(serverSecretParams: Wrapper<ServerSecretParams>, randomness:
|
|
557
|
-
export function ServerSecretParams_IssueReceiptCredentialDeterministic(serverSecretParams: Wrapper<ServerSecretParams>, randomness:
|
|
558
|
-
export function ServerSecretParams_Serialize(handle: Wrapper<ServerSecretParams>):
|
|
559
|
-
export function ServerSecretParams_SignDeterministic(params: Wrapper<ServerSecretParams>, randomness:
|
|
560
|
-
export function ServerSecretParams_VerifyAuthCredentialPresentation(serverSecretParams: Wrapper<ServerSecretParams>, groupPublicParams: Serialized<GroupPublicParams>, presentationBytes:
|
|
561
|
-
export function ServerSecretParams_VerifyProfileKeyCredentialPresentation(serverSecretParams: Wrapper<ServerSecretParams>, groupPublicParams: Serialized<GroupPublicParams>, presentationBytes:
|
|
555
|
+
export function ServerSecretParams_IssueAuthCredentialWithPniZkcDeterministic(serverSecretParams: Wrapper<ServerSecretParams>, randomness: Uint8Array, aci: Uint8Array, pni: Uint8Array, redemptionTime: Timestamp): Uint8Array;
|
|
556
|
+
export function ServerSecretParams_IssueExpiringProfileKeyCredentialDeterministic(serverSecretParams: Wrapper<ServerSecretParams>, randomness: Uint8Array, request: Serialized<ProfileKeyCredentialRequest>, userId: Uint8Array, commitment: Serialized<ProfileKeyCommitment>, expirationInSeconds: Timestamp): Serialized<ExpiringProfileKeyCredentialResponse>;
|
|
557
|
+
export function ServerSecretParams_IssueReceiptCredentialDeterministic(serverSecretParams: Wrapper<ServerSecretParams>, randomness: Uint8Array, request: Serialized<ReceiptCredentialRequest>, receiptExpirationTime: Timestamp, receiptLevel: bigint): Serialized<ReceiptCredentialResponse>;
|
|
558
|
+
export function ServerSecretParams_Serialize(handle: Wrapper<ServerSecretParams>): Uint8Array;
|
|
559
|
+
export function ServerSecretParams_SignDeterministic(params: Wrapper<ServerSecretParams>, randomness: Uint8Array, message: Uint8Array): Uint8Array;
|
|
560
|
+
export function ServerSecretParams_VerifyAuthCredentialPresentation(serverSecretParams: Wrapper<ServerSecretParams>, groupPublicParams: Serialized<GroupPublicParams>, presentationBytes: Uint8Array, currentTimeInSeconds: Timestamp): void;
|
|
561
|
+
export function ServerSecretParams_VerifyProfileKeyCredentialPresentation(serverSecretParams: Wrapper<ServerSecretParams>, groupPublicParams: Serialized<GroupPublicParams>, presentationBytes: Uint8Array, currentTimeInSeconds: Timestamp): void;
|
|
562
562
|
export function ServerSecretParams_VerifyReceiptCredentialPresentation(serverSecretParams: Wrapper<ServerSecretParams>, presentation: Serialized<ReceiptCredentialPresentation>): void;
|
|
563
|
-
export function ServiceId_ParseFromServiceIdBinary(input:
|
|
564
|
-
export function ServiceId_ParseFromServiceIdString(input: string):
|
|
565
|
-
export function ServiceId_ServiceIdBinary(value:
|
|
566
|
-
export function ServiceId_ServiceIdLog(value:
|
|
567
|
-
export function ServiceId_ServiceIdString(value:
|
|
563
|
+
export function ServiceId_ParseFromServiceIdBinary(input: Uint8Array): Uint8Array;
|
|
564
|
+
export function ServiceId_ParseFromServiceIdString(input: string): Uint8Array;
|
|
565
|
+
export function ServiceId_ServiceIdBinary(value: Uint8Array): Uint8Array;
|
|
566
|
+
export function ServiceId_ServiceIdLog(value: Uint8Array): string;
|
|
567
|
+
export function ServiceId_ServiceIdString(value: Uint8Array): string;
|
|
568
568
|
export function SessionBuilder_ProcessPreKeyBundle(bundle: Wrapper<PreKeyBundle>, protocolAddress: Wrapper<ProtocolAddress>, sessionStore: SessionStore, identityKeyStore: IdentityKeyStore, now: Timestamp, usePqRatchet: boolean): Promise<void>;
|
|
569
|
-
export function SessionCipher_DecryptPreKeySignalMessage(message: Wrapper<PreKeySignalMessage>, protocolAddress: Wrapper<ProtocolAddress>, sessionStore: SessionStore, identityKeyStore: IdentityKeyStore, prekeyStore: PreKeyStore, signedPrekeyStore: SignedPreKeyStore, kyberPrekeyStore: KyberPreKeyStore, usePqRatchet: boolean): Promise<
|
|
570
|
-
export function SessionCipher_DecryptSignalMessage(message: Wrapper<SignalMessage>, protocolAddress: Wrapper<ProtocolAddress>, sessionStore: SessionStore, identityKeyStore: IdentityKeyStore): Promise<
|
|
571
|
-
export function SessionCipher_EncryptMessage(ptext:
|
|
569
|
+
export function SessionCipher_DecryptPreKeySignalMessage(message: Wrapper<PreKeySignalMessage>, protocolAddress: Wrapper<ProtocolAddress>, sessionStore: SessionStore, identityKeyStore: IdentityKeyStore, prekeyStore: PreKeyStore, signedPrekeyStore: SignedPreKeyStore, kyberPrekeyStore: KyberPreKeyStore, usePqRatchet: boolean): Promise<Uint8Array>;
|
|
570
|
+
export function SessionCipher_DecryptSignalMessage(message: Wrapper<SignalMessage>, protocolAddress: Wrapper<ProtocolAddress>, sessionStore: SessionStore, identityKeyStore: IdentityKeyStore): Promise<Uint8Array>;
|
|
571
|
+
export function SessionCipher_EncryptMessage(ptext: Uint8Array, protocolAddress: Wrapper<ProtocolAddress>, sessionStore: SessionStore, identityKeyStore: IdentityKeyStore, now: Timestamp): Promise<CiphertextMessage>;
|
|
572
572
|
export function SessionRecord_ArchiveCurrentState(sessionRecord: Wrapper<SessionRecord>): void;
|
|
573
573
|
export function SessionRecord_CurrentRatchetKeyMatches(s: Wrapper<SessionRecord>, key: Wrapper<PublicKey>): boolean;
|
|
574
|
-
export function SessionRecord_Deserialize(data:
|
|
574
|
+
export function SessionRecord_Deserialize(data: Uint8Array): SessionRecord;
|
|
575
575
|
export function SessionRecord_GetLocalRegistrationId(obj: Wrapper<SessionRecord>): number;
|
|
576
576
|
export function SessionRecord_GetRemoteRegistrationId(obj: Wrapper<SessionRecord>): number;
|
|
577
577
|
export function SessionRecord_HasUsableSenderChain(s: Wrapper<SessionRecord>, now: Timestamp): boolean;
|
|
578
|
-
export function SessionRecord_Serialize(obj: Wrapper<SessionRecord>):
|
|
579
|
-
export function SgxClientState_CompleteHandshake(cli: Wrapper<SgxClientState>, handshakeReceived:
|
|
580
|
-
export function SgxClientState_EstablishedRecv(cli: Wrapper<SgxClientState>, receivedCiphertext:
|
|
581
|
-
export function SgxClientState_EstablishedSend(cli: Wrapper<SgxClientState>, plaintextToSend:
|
|
582
|
-
export function SgxClientState_InitialRequest(obj: Wrapper<SgxClientState>):
|
|
578
|
+
export function SessionRecord_Serialize(obj: Wrapper<SessionRecord>): Uint8Array;
|
|
579
|
+
export function SgxClientState_CompleteHandshake(cli: Wrapper<SgxClientState>, handshakeReceived: Uint8Array): void;
|
|
580
|
+
export function SgxClientState_EstablishedRecv(cli: Wrapper<SgxClientState>, receivedCiphertext: Uint8Array): Uint8Array;
|
|
581
|
+
export function SgxClientState_EstablishedSend(cli: Wrapper<SgxClientState>, plaintextToSend: Uint8Array): Uint8Array;
|
|
582
|
+
export function SgxClientState_InitialRequest(obj: Wrapper<SgxClientState>): Uint8Array;
|
|
583
583
|
export function SignalMedia_CheckAvailable(): void;
|
|
584
|
-
export function SignalMessage_Deserialize(data:
|
|
585
|
-
export function SignalMessage_GetBody(obj: Wrapper<SignalMessage>):
|
|
584
|
+
export function SignalMessage_Deserialize(data: Uint8Array): SignalMessage;
|
|
585
|
+
export function SignalMessage_GetBody(obj: Wrapper<SignalMessage>): Uint8Array;
|
|
586
586
|
export function SignalMessage_GetCounter(obj: Wrapper<SignalMessage>): number;
|
|
587
587
|
export function SignalMessage_GetMessageVersion(obj: Wrapper<SignalMessage>): number;
|
|
588
|
-
export function SignalMessage_GetPqRatchet(msg: Wrapper<SignalMessage>):
|
|
589
|
-
export function SignalMessage_GetSerialized(obj: Wrapper<SignalMessage>):
|
|
590
|
-
export function SignalMessage_New(messageVersion: number, macKey:
|
|
591
|
-
export function SignalMessage_VerifyMac(msg: Wrapper<SignalMessage>, senderIdentityKey: Wrapper<PublicKey>, receiverIdentityKey: Wrapper<PublicKey>, macKey:
|
|
592
|
-
export function SignedPreKeyRecord_Deserialize(data:
|
|
588
|
+
export function SignalMessage_GetPqRatchet(msg: Wrapper<SignalMessage>): Uint8Array;
|
|
589
|
+
export function SignalMessage_GetSerialized(obj: Wrapper<SignalMessage>): Uint8Array;
|
|
590
|
+
export function SignalMessage_New(messageVersion: number, macKey: Uint8Array, senderRatchetKey: Wrapper<PublicKey>, counter: number, previousCounter: number, ciphertext: Uint8Array, senderIdentityKey: Wrapper<PublicKey>, receiverIdentityKey: Wrapper<PublicKey>, pqRatchet: Uint8Array): SignalMessage;
|
|
591
|
+
export function SignalMessage_VerifyMac(msg: Wrapper<SignalMessage>, senderIdentityKey: Wrapper<PublicKey>, receiverIdentityKey: Wrapper<PublicKey>, macKey: Uint8Array): boolean;
|
|
592
|
+
export function SignedPreKeyRecord_Deserialize(data: Uint8Array): SignedPreKeyRecord;
|
|
593
593
|
export function SignedPreKeyRecord_GetId(obj: Wrapper<SignedPreKeyRecord>): number;
|
|
594
594
|
export function SignedPreKeyRecord_GetPrivateKey(obj: Wrapper<SignedPreKeyRecord>): PrivateKey;
|
|
595
595
|
export function SignedPreKeyRecord_GetPublicKey(obj: Wrapper<SignedPreKeyRecord>): PublicKey;
|
|
596
|
-
export function SignedPreKeyRecord_GetSignature(obj: Wrapper<SignedPreKeyRecord>):
|
|
596
|
+
export function SignedPreKeyRecord_GetSignature(obj: Wrapper<SignedPreKeyRecord>): Uint8Array;
|
|
597
597
|
export function SignedPreKeyRecord_GetTimestamp(obj: Wrapper<SignedPreKeyRecord>): Timestamp;
|
|
598
|
-
export function SignedPreKeyRecord_New(id: number, timestamp: Timestamp, pubKey: Wrapper<PublicKey>, privKey: Wrapper<PrivateKey>, signature:
|
|
599
|
-
export function SignedPreKeyRecord_Serialize(obj: Wrapper<SignedPreKeyRecord>):
|
|
598
|
+
export function SignedPreKeyRecord_New(id: number, timestamp: Timestamp, pubKey: Wrapper<PublicKey>, privKey: Wrapper<PrivateKey>, signature: Uint8Array): SignedPreKeyRecord;
|
|
599
|
+
export function SignedPreKeyRecord_Serialize(obj: Wrapper<SignedPreKeyRecord>): Uint8Array;
|
|
600
600
|
export function TESTING_BridgedStringMap_dump_to_json(map: Wrapper<BridgedStringMap>): string;
|
|
601
601
|
export function TESTING_CdsiLookupErrorConvert(errorDescription: string): void;
|
|
602
602
|
export function TESTING_CdsiLookupResponseConvert(asyncRuntime: Wrapper<TokioAsyncContext>): CancellablePromise<LookupResponse>;
|
|
603
603
|
export function TESTING_ChatConnectErrorConvert(errorDescription: string): void;
|
|
604
|
-
export function TESTING_ChatRequestGetBody(request: Wrapper<HttpRequest>):
|
|
604
|
+
export function TESTING_ChatRequestGetBody(request: Wrapper<HttpRequest>): Uint8Array;
|
|
605
605
|
export function TESTING_ChatRequestGetHeaderNames(request: Wrapper<HttpRequest>): string[];
|
|
606
606
|
export function TESTING_ChatRequestGetHeaderValue(request: Wrapper<HttpRequest>, headerName: string): string;
|
|
607
607
|
export function TESTING_ChatRequestGetMethod(request: Wrapper<HttpRequest>): string;
|
|
@@ -609,7 +609,7 @@ export function TESTING_ChatRequestGetPath(request: Wrapper<HttpRequest>): strin
|
|
|
609
609
|
export function TESTING_ChatResponseConvert(bodyPresent: boolean): ChatResponse;
|
|
610
610
|
export function TESTING_ChatSendErrorConvert(errorDescription: string): void;
|
|
611
611
|
export function TESTING_ConnectionManager_isUsingProxy(manager: Wrapper<ConnectionManager>): number;
|
|
612
|
-
export function TESTING_ConnectionManager_newLocalOverride(userAgent: string, chatPort: number, cdsiPort: number, svr2Port: number, rootCertificateDer:
|
|
612
|
+
export function TESTING_ConnectionManager_newLocalOverride(userAgent: string, chatPort: number, cdsiPort: number, svr2Port: number, rootCertificateDer: Uint8Array): ConnectionManager;
|
|
613
613
|
export function TESTING_ConvertOptionalUuid(present: boolean): Uuid | null;
|
|
614
614
|
export function TESTING_ErrorOnBorrowAsync(_input: null): Promise<void>;
|
|
615
615
|
export function TESTING_ErrorOnBorrowIo(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _input: null): CancellablePromise<void>;
|
|
@@ -623,10 +623,10 @@ export function TESTING_FakeChatConnection_TakeRemote(chat: Wrapper<FakeChatConn
|
|
|
623
623
|
export function TESTING_FakeChatConnection_TakeUnauthenticatedChat(chat: Wrapper<FakeChatConnection>): UnauthenticatedChatConnection;
|
|
624
624
|
export function TESTING_FakeChatRemoteEnd_InjectConnectionInterrupted(chat: Wrapper<FakeChatRemoteEnd>): void;
|
|
625
625
|
export function TESTING_FakeChatRemoteEnd_ReceiveIncomingRequest(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<FakeChatRemoteEnd>): CancellablePromise<FakeChatSentRequest | null>;
|
|
626
|
-
export function TESTING_FakeChatRemoteEnd_SendRawServerRequest(chat: Wrapper<FakeChatRemoteEnd>, bytes:
|
|
627
|
-
export function TESTING_FakeChatRemoteEnd_SendRawServerResponse(chat: Wrapper<FakeChatRemoteEnd>, bytes:
|
|
626
|
+
export function TESTING_FakeChatRemoteEnd_SendRawServerRequest(chat: Wrapper<FakeChatRemoteEnd>, bytes: Uint8Array): void;
|
|
627
|
+
export function TESTING_FakeChatRemoteEnd_SendRawServerResponse(chat: Wrapper<FakeChatRemoteEnd>, bytes: Uint8Array): void;
|
|
628
628
|
export function TESTING_FakeChatRemoteEnd_SendServerResponse(chat: Wrapper<FakeChatRemoteEnd>, response: Wrapper<FakeChatResponse>): void;
|
|
629
|
-
export function TESTING_FakeChatResponse_Create(id: bigint, status: number, message: string, headers: string[], body:
|
|
629
|
+
export function TESTING_FakeChatResponse_Create(id: bigint, status: number, message: string, headers: string[], body: Uint8Array | null): FakeChatResponse;
|
|
630
630
|
export function TESTING_FakeChatSentRequest_RequestId(request: Wrapper<FakeChatSentRequest>): bigint;
|
|
631
631
|
export function TESTING_FakeChatSentRequest_TakeHttpRequest(request: Wrapper<FakeChatSentRequest>): HttpRequest;
|
|
632
632
|
export function TESTING_FakeChatServer_Create(): FakeChatServer;
|
|
@@ -639,7 +639,7 @@ export function TESTING_FutureIncrementOnCancel(asyncRuntime: Wrapper<TokioAsync
|
|
|
639
639
|
export function TESTING_FutureProducesOtherPointerType(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, input: string): CancellablePromise<OtherTestingHandleType>;
|
|
640
640
|
export function TESTING_FutureProducesPointerType(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, input: number): CancellablePromise<TestingHandleType>;
|
|
641
641
|
export function TESTING_FutureSuccess(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, input: number): CancellablePromise<number>;
|
|
642
|
-
export function TESTING_InputStreamReadIntoZeroLengthSlice(capsAlphabetInput: InputStream): Promise<
|
|
642
|
+
export function TESTING_InputStreamReadIntoZeroLengthSlice(capsAlphabetInput: InputStream): Promise<Uint8Array>;
|
|
643
643
|
export function TESTING_JoinStringArray(array: string[], joinWith: string): string;
|
|
644
644
|
export function TESTING_KeyTransChatSendError(): void;
|
|
645
645
|
export function TESTING_KeyTransFatalVerificationFailure(): void;
|
|
@@ -658,7 +658,7 @@ export function TESTING_PanicOnLoadSync(_needsCleanup: null, _input: null): void
|
|
|
658
658
|
export function TESTING_PanicOnReturnAsync(_needsCleanup: null): Promise<null>;
|
|
659
659
|
export function TESTING_PanicOnReturnIo(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _needsCleanup: null): CancellablePromise<null>;
|
|
660
660
|
export function TESTING_PanicOnReturnSync(_needsCleanup: null): null;
|
|
661
|
-
export function TESTING_ProcessBytestringArray(input:
|
|
661
|
+
export function TESTING_ProcessBytestringArray(input: Uint8Array[]): Uint8Array[];
|
|
662
662
|
export function TESTING_RegisterAccountResponse_CreateTestValue(): RegisterAccountResponse;
|
|
663
663
|
export function TESTING_RegistrationService_CheckSvr2CredentialsErrorConvert(errorDescription: string): void;
|
|
664
664
|
export function TESTING_RegistrationService_CheckSvr2CredentialsResponseConvert(): CheckSvr2CredentialsResponse;
|
|
@@ -686,25 +686,25 @@ export function UnauthenticatedChatConnection_disconnect(asyncRuntime: Wrapper<T
|
|
|
686
686
|
export function UnauthenticatedChatConnection_info(chat: Wrapper<UnauthenticatedChatConnection>): ChatConnectionInfo;
|
|
687
687
|
export function UnauthenticatedChatConnection_init_listener(chat: Wrapper<UnauthenticatedChatConnection>, listener: ChatListener): void;
|
|
688
688
|
export function UnauthenticatedChatConnection_send(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<UnauthenticatedChatConnection>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): CancellablePromise<ChatResponse>;
|
|
689
|
-
export function UnidentifiedSenderMessageContent_Deserialize(data:
|
|
689
|
+
export function UnidentifiedSenderMessageContent_Deserialize(data: Uint8Array): UnidentifiedSenderMessageContent;
|
|
690
690
|
export function UnidentifiedSenderMessageContent_GetContentHint(m: Wrapper<UnidentifiedSenderMessageContent>): number;
|
|
691
|
-
export function UnidentifiedSenderMessageContent_GetContents(obj: Wrapper<UnidentifiedSenderMessageContent>):
|
|
692
|
-
export function UnidentifiedSenderMessageContent_GetGroupId(obj: Wrapper<UnidentifiedSenderMessageContent>):
|
|
691
|
+
export function UnidentifiedSenderMessageContent_GetContents(obj: Wrapper<UnidentifiedSenderMessageContent>): Uint8Array;
|
|
692
|
+
export function UnidentifiedSenderMessageContent_GetGroupId(obj: Wrapper<UnidentifiedSenderMessageContent>): Uint8Array | null;
|
|
693
693
|
export function UnidentifiedSenderMessageContent_GetMsgType(m: Wrapper<UnidentifiedSenderMessageContent>): number;
|
|
694
694
|
export function UnidentifiedSenderMessageContent_GetSenderCert(m: Wrapper<UnidentifiedSenderMessageContent>): SenderCertificate;
|
|
695
|
-
export function UnidentifiedSenderMessageContent_New(message: Wrapper<CiphertextMessage>, sender: Wrapper<SenderCertificate>, contentHint: number, groupId:
|
|
696
|
-
export function UnidentifiedSenderMessageContent_Serialize(obj: Wrapper<UnidentifiedSenderMessageContent>):
|
|
697
|
-
export function UsernameLink_Create(username: string, entropy:
|
|
698
|
-
export function UsernameLink_DecryptUsername(entropy:
|
|
695
|
+
export function UnidentifiedSenderMessageContent_New(message: Wrapper<CiphertextMessage>, sender: Wrapper<SenderCertificate>, contentHint: number, groupId: Uint8Array | null): UnidentifiedSenderMessageContent;
|
|
696
|
+
export function UnidentifiedSenderMessageContent_Serialize(obj: Wrapper<UnidentifiedSenderMessageContent>): Uint8Array;
|
|
697
|
+
export function UsernameLink_Create(username: string, entropy: Uint8Array | null): Uint8Array;
|
|
698
|
+
export function UsernameLink_DecryptUsername(entropy: Uint8Array, encryptedUsername: Uint8Array): string;
|
|
699
699
|
export function Username_CandidatesFrom(nickname: string, minLen: number, maxLen: number): string[];
|
|
700
|
-
export function Username_Hash(username: string):
|
|
701
|
-
export function Username_HashFromParts(nickname: string, discriminator: string, minLen: number, maxLen: number):
|
|
702
|
-
export function Username_Proof(username: string, randomness:
|
|
703
|
-
export function Username_Verify(proof:
|
|
704
|
-
export function UuidCiphertext_CheckValidContents(buffer:
|
|
700
|
+
export function Username_Hash(username: string): Uint8Array;
|
|
701
|
+
export function Username_HashFromParts(nickname: string, discriminator: string, minLen: number, maxLen: number): Uint8Array;
|
|
702
|
+
export function Username_Proof(username: string, randomness: Uint8Array): Uint8Array;
|
|
703
|
+
export function Username_Verify(proof: Uint8Array, hash: Uint8Array): void;
|
|
704
|
+
export function UuidCiphertext_CheckValidContents(buffer: Uint8Array): void;
|
|
705
705
|
export function ValidatingMac_Finalize(mac: Wrapper<ValidatingMac>): number;
|
|
706
|
-
export function ValidatingMac_Initialize(key:
|
|
707
|
-
export function ValidatingMac_Update(mac: Wrapper<ValidatingMac>, bytes:
|
|
706
|
+
export function ValidatingMac_Initialize(key: Uint8Array, chunkSize: number, digests: Uint8Array): ValidatingMac;
|
|
707
|
+
export function ValidatingMac_Update(mac: Wrapper<ValidatingMac>, bytes: Uint8Array, offset: number, length: number): number;
|
|
708
708
|
export function WebpSanitizer_Sanitize(input: SyncInputStream): void;
|
|
709
709
|
export function initLogger(maxLevel: LogLevel, callback: (level: LogLevel, target: string, file: string | null, line: number | null, message: string) => void): void
|
|
710
710
|
export function test_only_fn_returns_123(): number;
|