@signalapp/libsignal-client 0.85.0 → 0.85.2

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.
Files changed (105) hide show
  1. package/dist/AccountKeys.js +1 -1
  2. package/dist/Address.d.ts +1 -1
  3. package/dist/Address.js +1 -1
  4. package/dist/EcKeys.d.ts +1 -1
  5. package/dist/EcKeys.js +1 -1
  6. package/dist/Errors.d.ts +1 -1
  7. package/dist/MessageBackup.d.ts +1 -1
  8. package/dist/MessageBackup.js +1 -1
  9. package/dist/Minidump.js +1 -1
  10. package/dist/Mp4Sanitizer.d.ts +1 -1
  11. package/dist/Mp4Sanitizer.js +1 -1
  12. package/dist/Native.d.ts +365 -0
  13. package/dist/Native.js +14 -0
  14. package/dist/SealedSenderMultiRecipientMessage.d.ts +1 -1
  15. package/dist/SealedSenderMultiRecipientMessage.js +1 -1
  16. package/dist/WebpSanitizer.js +1 -1
  17. package/dist/acknowledgments.md +1 -1
  18. package/dist/incremental_mac.js +1 -1
  19. package/dist/index.d.ts +3 -2
  20. package/dist/index.js +2 -1
  21. package/dist/internal.d.ts +1 -1
  22. package/dist/internal.js +1 -1
  23. package/dist/io.d.ts +1 -1
  24. package/dist/net/CDSI.d.ts +1 -1
  25. package/dist/net/CDSI.js +1 -1
  26. package/dist/net/Chat.d.ts +7 -6
  27. package/dist/net/Chat.js +4 -3
  28. package/dist/net/FakeChat.d.ts +31 -0
  29. package/dist/net/FakeChat.js +67 -0
  30. package/dist/net/KeyTransparency.d.ts +1 -1
  31. package/dist/net/KeyTransparency.js +1 -1
  32. package/dist/net/Registration.d.ts +5 -4
  33. package/dist/net/Registration.js +8 -4
  34. package/dist/net/SvrB.d.ts +1 -1
  35. package/dist/net/SvrB.js +1 -1
  36. package/dist/net/chat/UnauthMessagesService.js +1 -1
  37. package/dist/net/chat/UnauthUsernamesService.d.ts +19 -0
  38. package/dist/net/chat/UnauthUsernamesService.js +6 -1
  39. package/dist/net.d.ts +1 -1
  40. package/dist/net.js +1 -1
  41. package/dist/usernames.js +1 -1
  42. package/dist/uuid.d.ts +1 -0
  43. package/dist/uuid.js +6 -0
  44. package/dist/zkgroup/GenericServerPublicParams.js +1 -1
  45. package/dist/zkgroup/GenericServerSecretParams.js +1 -1
  46. package/dist/zkgroup/ServerPublicParams.d.ts +1 -1
  47. package/dist/zkgroup/ServerPublicParams.js +1 -1
  48. package/dist/zkgroup/ServerSecretParams.d.ts +1 -1
  49. package/dist/zkgroup/ServerSecretParams.js +1 -1
  50. package/dist/zkgroup/auth/AuthCredentialPresentation.js +1 -1
  51. package/dist/zkgroup/auth/AuthCredentialWithPni.js +1 -1
  52. package/dist/zkgroup/auth/AuthCredentialWithPniResponse.js +1 -1
  53. package/dist/zkgroup/auth/ClientZkAuthOperations.js +1 -1
  54. package/dist/zkgroup/auth/ServerZkAuthOperations.js +1 -1
  55. package/dist/zkgroup/backups/BackupAuthCredential.js +1 -1
  56. package/dist/zkgroup/backups/BackupAuthCredentialPresentation.js +1 -1
  57. package/dist/zkgroup/backups/BackupAuthCredentialRequest.js +1 -1
  58. package/dist/zkgroup/backups/BackupAuthCredentialRequestContext.js +1 -1
  59. package/dist/zkgroup/backups/BackupAuthCredentialResponse.js +1 -1
  60. package/dist/zkgroup/calllinks/CallLinkAuthCredential.js +1 -1
  61. package/dist/zkgroup/calllinks/CallLinkAuthCredentialPresentation.js +1 -1
  62. package/dist/zkgroup/calllinks/CallLinkAuthCredentialResponse.js +1 -1
  63. package/dist/zkgroup/calllinks/CallLinkPublicParams.js +1 -1
  64. package/dist/zkgroup/calllinks/CallLinkSecretParams.js +1 -1
  65. package/dist/zkgroup/calllinks/CreateCallLinkCredential.js +1 -1
  66. package/dist/zkgroup/calllinks/CreateCallLinkCredentialPresentation.js +1 -1
  67. package/dist/zkgroup/calllinks/CreateCallLinkCredentialRequest.js +1 -1
  68. package/dist/zkgroup/calllinks/CreateCallLinkCredentialRequestContext.js +1 -1
  69. package/dist/zkgroup/calllinks/CreateCallLinkCredentialResponse.js +1 -1
  70. package/dist/zkgroup/groups/ClientZkGroupCipher.js +1 -1
  71. package/dist/zkgroup/groups/GroupPublicParams.js +1 -1
  72. package/dist/zkgroup/groups/GroupSecretParams.js +1 -1
  73. package/dist/zkgroup/groups/ProfileKeyCiphertext.js +1 -1
  74. package/dist/zkgroup/groups/UuidCiphertext.js +1 -1
  75. package/dist/zkgroup/groupsend/GroupSendDerivedKeyPair.js +1 -1
  76. package/dist/zkgroup/groupsend/GroupSendEndorsement.js +1 -1
  77. package/dist/zkgroup/groupsend/GroupSendEndorsementsResponse.js +1 -1
  78. package/dist/zkgroup/groupsend/GroupSendFullToken.js +1 -1
  79. package/dist/zkgroup/groupsend/GroupSendToken.js +1 -1
  80. package/dist/zkgroup/internal/ByteArray.js +1 -1
  81. package/dist/zkgroup/profiles/ClientZkProfileOperations.js +1 -1
  82. package/dist/zkgroup/profiles/ExpiringProfileKeyCredential.js +1 -1
  83. package/dist/zkgroup/profiles/ExpiringProfileKeyCredentialResponse.js +1 -1
  84. package/dist/zkgroup/profiles/ProfileKey.js +1 -1
  85. package/dist/zkgroup/profiles/ProfileKeyCommitment.js +1 -1
  86. package/dist/zkgroup/profiles/ProfileKeyCredentialPresentation.js +1 -1
  87. package/dist/zkgroup/profiles/ProfileKeyCredentialRequest.js +1 -1
  88. package/dist/zkgroup/profiles/ProfileKeyCredentialRequestContext.js +1 -1
  89. package/dist/zkgroup/profiles/ServerZkProfileOperations.js +1 -1
  90. package/dist/zkgroup/receipts/ClientZkReceiptOperations.js +1 -1
  91. package/dist/zkgroup/receipts/ReceiptCredential.js +1 -1
  92. package/dist/zkgroup/receipts/ReceiptCredentialPresentation.js +1 -1
  93. package/dist/zkgroup/receipts/ReceiptCredentialRequest.js +1 -1
  94. package/dist/zkgroup/receipts/ReceiptCredentialRequestContext.js +1 -1
  95. package/dist/zkgroup/receipts/ReceiptCredentialResponse.js +1 -1
  96. package/dist/zkgroup/receipts/ServerZkReceiptOperations.js +1 -1
  97. package/package.json +4 -3
  98. package/prebuilds/darwin-arm64/@signalapp+libsignal-client.node +0 -0
  99. package/prebuilds/darwin-x64/@signalapp+libsignal-client.node +0 -0
  100. package/prebuilds/linux-arm64/@signalapp+libsignal-client.node +0 -0
  101. package/prebuilds/linux-x64/@signalapp+libsignal-client.node +0 -0
  102. package/prebuilds/win32-arm64/@signalapp+libsignal-client.node +0 -0
  103. package/prebuilds/win32-x64/@signalapp+libsignal-client.node +0 -0
  104. package/Native.d.ts +0 -817
  105. package/Native.js +0 -9
package/Native.d.ts DELETED
@@ -1,817 +0,0 @@
1
- //
2
- // Copyright 2020 Signal Messenger, LLC.
3
- // SPDX-License-Identifier: AGPL-3.0-only
4
- //
5
-
6
- // WARNING: this file was automatically generated
7
-
8
- type Uuid = Uint8Array;
9
-
10
- /// A Native.Timestamp may be measured in seconds or in milliseconds;
11
- /// what's important is that it's an integer less than Number.MAX_SAFE_INTEGER.
12
- type Timestamp = number;
13
-
14
- // Rust code produces or consumes values that conform to these interface
15
- // definitions. They must be kept in sync to prevent bridging errors.
16
-
17
- type LookupResponse = {
18
- entries: Map<string, LookupResponseEntry>;
19
- debugPermitsUsed: number;
20
- };
21
-
22
- type LookupResponseEntry = {
23
- readonly aci: string | undefined;
24
- readonly pni: string | undefined;
25
- };
26
-
27
- type ChatResponse = {
28
- status: number;
29
- message: string | undefined;
30
- headers: ReadonlyArray<[string, string]>;
31
- body: Uint8Array | undefined;
32
- };
33
-
34
- type ChatServiceDebugInfo = {
35
- ipType: number;
36
- durationMillis: number;
37
- connectionInfo: string;
38
- };
39
-
40
- type ResponseAndDebugInfo = {
41
- response: ChatResponse;
42
- debugInfo: ChatServiceDebugInfo;
43
- };
44
-
45
- type SealedSenderMultiRecipientMessageRecipient = {
46
- deviceIds: number[];
47
- registrationIds: number[];
48
- rangeOffset: number;
49
- rangeLen: number;
50
- };
51
-
52
- type SealedSenderMultiRecipientMessage = {
53
- recipientMap: {
54
- [serviceId: string]: SealedSenderMultiRecipientMessageRecipient;
55
- };
56
- excludedRecipients: string[];
57
- offsetOfSharedData: number;
58
- };
59
-
60
- enum IdentityChange {
61
- // This must be kept in sync with the Rust enum of the same name.
62
- NewOrUnchanged = 0,
63
- ReplacedExisting = 1,
64
- }
65
-
66
- type IdentityKeyStore = {
67
- _getIdentityKey: () => Promise<PrivateKey>;
68
- _getLocalRegistrationId: () => Promise<number>;
69
- _saveIdentity: (
70
- name: ProtocolAddress,
71
- key: PublicKey
72
- ) => Promise<IdentityChange>;
73
- _isTrustedIdentity: (
74
- name: ProtocolAddress,
75
- key: PublicKey,
76
- sending: boolean
77
- ) => Promise<boolean>;
78
- _getIdentity: (name: ProtocolAddress) => Promise<PublicKey | null>;
79
- };
80
-
81
- type SessionStore = {
82
- _saveSession: (addr: ProtocolAddress, record: SessionRecord) => Promise<void>;
83
- _getSession: (addr: ProtocolAddress) => Promise<SessionRecord | null>;
84
- };
85
-
86
- type PreKeyStore = {
87
- _savePreKey: (preKeyId: number, record: PreKeyRecord) => Promise<void>;
88
- _getPreKey: (preKeyId: number) => Promise<PreKeyRecord>;
89
- _removePreKey: (preKeyId: number) => Promise<void>;
90
- };
91
-
92
- type SignedPreKeyStore = {
93
- _saveSignedPreKey: (
94
- signedPreKeyId: number,
95
- record: SignedPreKeyRecord
96
- ) => Promise<void>;
97
- _getSignedPreKey: (signedPreKeyId: number) => Promise<SignedPreKeyRecord>;
98
- };
99
-
100
- type KyberPreKeyStore = {
101
- _saveKyberPreKey: (
102
- kyberPreKeyId: number,
103
- record: KyberPreKeyRecord
104
- ) => Promise<void>;
105
- _getKyberPreKey: (kyberPreKeyId: number) => Promise<KyberPreKeyRecord>;
106
- _markKyberPreKeyUsed: (
107
- kyberPreKeyId: number,
108
- signedPreKeyId: number,
109
- baseKey: PublicKey
110
- ) => Promise<void>;
111
- };
112
-
113
- type SenderKeyStore = {
114
- _saveSenderKey: (
115
- sender: ProtocolAddress,
116
- distributionId: Uuid,
117
- record: SenderKeyRecord
118
- ) => Promise<void>;
119
- _getSenderKey: (
120
- sender: ProtocolAddress,
121
- distributionId: Uuid
122
- ) => Promise<SenderKeyRecord | null>;
123
- };
124
-
125
- type InputStream = {
126
- _read: (amount: number) => Promise<Uint8Array>;
127
- _skip: (amount: number) => Promise<void>;
128
- };
129
-
130
- type SyncInputStream = Uint8Array;
131
-
132
- type ChatListener = {
133
- _incoming_message: (
134
- envelope: Uint8Array,
135
- timestamp: number,
136
- ack: ServerMessageAck
137
- ) => void;
138
- _queue_empty: () => void;
139
- _received_alerts: (alerts: string[]) => void;
140
- _connection_interrupted: (
141
- // A LibSignalError or null, but not naming the type to avoid circular import dependencies.
142
- reason: Error | null
143
- ) => void;
144
- };
145
-
146
- type ChallengeOption = 'pushChallenge' | 'captcha';
147
-
148
- type RegistrationPushTokenType = 'apn' | 'fcm';
149
-
150
- type RegistrationCreateSessionRequest = {
151
- number: string;
152
- push_token?: string;
153
- push_token_type?: RegistrationPushTokenType;
154
- mcc?: string;
155
- mnc?: string;
156
- };
157
-
158
- type RegisterResponseBadge = {
159
- id: string;
160
- visible: boolean;
161
- expirationSeconds: number;
162
- };
163
-
164
- type CheckSvr2CredentialsResponse = Map<
165
- string,
166
- 'match' | 'no-match' | 'invalid'
167
- >;
168
-
169
- type SignedPublicPreKey = {
170
- keyId: number;
171
- publicKey: Uint8Array;
172
- signature: Uint8Array;
173
- };
174
-
175
- type Wrapper<T> = Readonly<{
176
- _nativeHandle: T;
177
- }>;
178
-
179
- type MessageBackupValidationOutcome = {
180
- errorMessage: string | null;
181
- unknownFieldMessages: Array<string>;
182
- };
183
-
184
- type AccountEntropyPool = string;
185
-
186
- type CancellablePromise<T> = Promise<T> & {
187
- _cancellationToken: bigint;
188
- };
189
-
190
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
191
- type Serialized<T> = Uint8Array;
192
-
193
- export function registerErrors(errorsModule: Record<string, unknown>): void;
194
-
195
- export const enum LogLevel { Error = 1, Warn, Info, Debug, Trace }
196
- export function AccountEntropyPool_DeriveBackupKey(accountEntropy: AccountEntropyPool): Uint8Array;
197
- export function AccountEntropyPool_DeriveSvrKey(accountEntropy: AccountEntropyPool): Uint8Array;
198
- export function AccountEntropyPool_Generate(): string;
199
- export function AccountEntropyPool_IsValid(accountEntropy: string): boolean;
200
- export function Aes256GcmSiv_Decrypt(aesGcmSiv: Wrapper<Aes256GcmSiv>, ctext: Uint8Array, nonce: Uint8Array, associatedData: Uint8Array): Uint8Array;
201
- export function Aes256GcmSiv_Encrypt(aesGcmSivObj: Wrapper<Aes256GcmSiv>, ptext: Uint8Array, nonce: Uint8Array, associatedData: Uint8Array): Uint8Array;
202
- export function Aes256GcmSiv_New(key: Uint8Array): Aes256GcmSiv;
203
- export function AuthCredentialPresentation_CheckValidContents(presentationBytes: Uint8Array): void;
204
- export function AuthCredentialPresentation_GetPniCiphertext(presentationBytes: Uint8Array): Serialized<UuidCiphertext>;
205
- export function AuthCredentialPresentation_GetRedemptionTime(presentationBytes: Uint8Array): Timestamp;
206
- export function AuthCredentialPresentation_GetUuidCiphertext(presentationBytes: Uint8Array): Serialized<UuidCiphertext>;
207
- export function AuthCredentialWithPniResponse_CheckValidContents(bytes: Uint8Array): void;
208
- export function AuthCredentialWithPni_CheckValidContents(bytes: Uint8Array): void;
209
- export function AuthenticatedChatConnection_connect(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>, username: string, password: string, receiveStories: boolean, languages: string[]): CancellablePromise<AuthenticatedChatConnection>;
210
- export function AuthenticatedChatConnection_disconnect(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<AuthenticatedChatConnection>): CancellablePromise<void>;
211
- export function AuthenticatedChatConnection_info(chat: Wrapper<AuthenticatedChatConnection>): ChatConnectionInfo;
212
- export function AuthenticatedChatConnection_init_listener(chat: Wrapper<AuthenticatedChatConnection>, listener: ChatListener): void;
213
- export function AuthenticatedChatConnection_preconnect(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>): CancellablePromise<void>;
214
- export function AuthenticatedChatConnection_send(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<AuthenticatedChatConnection>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): CancellablePromise<ChatResponse>;
215
- export function BackupAuthCredentialPresentation_CheckValidContents(presentationBytes: Uint8Array): void;
216
- export function BackupAuthCredentialPresentation_GetBackupId(presentationBytes: Uint8Array): Uint8Array;
217
- export function BackupAuthCredentialPresentation_GetBackupLevel(presentationBytes: Uint8Array): number;
218
- export function BackupAuthCredentialPresentation_GetType(presentationBytes: Uint8Array): number;
219
- export function BackupAuthCredentialPresentation_Verify(presentationBytes: Uint8Array, now: Timestamp, serverParamsBytes: Uint8Array): void;
220
- export function BackupAuthCredentialRequestContext_CheckValidContents(contextBytes: Uint8Array): void;
221
- export function BackupAuthCredentialRequestContext_GetRequest(contextBytes: Uint8Array): Uint8Array;
222
- export function BackupAuthCredentialRequestContext_New(backupKey: Uint8Array, uuid: Uuid): Uint8Array;
223
- export function BackupAuthCredentialRequestContext_ReceiveResponse(contextBytes: Uint8Array, responseBytes: Uint8Array, expectedRedemptionTime: Timestamp, paramsBytes: Uint8Array): Uint8Array;
224
- export function BackupAuthCredentialRequest_CheckValidContents(requestBytes: Uint8Array): void;
225
- export function BackupAuthCredentialRequest_IssueDeterministic(requestBytes: Uint8Array, redemptionTime: Timestamp, backupLevel: number, credentialType: number, paramsBytes: Uint8Array, randomness: Uint8Array): Uint8Array;
226
- export function BackupAuthCredentialResponse_CheckValidContents(responseBytes: Uint8Array): void;
227
- export function BackupAuthCredential_CheckValidContents(paramsBytes: Uint8Array): void;
228
- export function BackupAuthCredential_GetBackupId(credentialBytes: Uint8Array): Uint8Array;
229
- export function BackupAuthCredential_GetBackupLevel(credentialBytes: Uint8Array): number;
230
- export function BackupAuthCredential_GetType(credentialBytes: Uint8Array): number;
231
- export function BackupAuthCredential_PresentDeterministic(credentialBytes: Uint8Array, serverParamsBytes: Uint8Array, randomness: Uint8Array): Uint8Array;
232
- export function BackupJsonExporter_ExportFrames(exporter: Wrapper<BackupJsonExporter>, frames: Uint8Array): string;
233
- export function BackupJsonExporter_Finish(exporter: Wrapper<BackupJsonExporter>): string;
234
- export function BackupJsonExporter_GetInitialChunk(exporter: Wrapper<BackupJsonExporter>): string;
235
- export function BackupJsonExporter_New(backupInfo: Uint8Array, shouldValidate: boolean): BackupJsonExporter;
236
- export function BackupKey_DeriveBackupId(backupKey: Uint8Array, aci: Uint8Array): Uint8Array;
237
- export function BackupKey_DeriveEcKey(backupKey: Uint8Array, aci: Uint8Array): PrivateKey;
238
- export function BackupKey_DeriveLocalBackupMetadataKey(backupKey: Uint8Array): Uint8Array;
239
- export function BackupKey_DeriveMediaEncryptionKey(backupKey: Uint8Array, mediaId: Uint8Array): Uint8Array;
240
- export function BackupKey_DeriveMediaId(backupKey: Uint8Array, mediaName: string): Uint8Array;
241
- export function BackupKey_DeriveThumbnailTransitEncryptionKey(backupKey: Uint8Array, mediaId: Uint8Array): Uint8Array;
242
- export function BackupRestoreResponse_GetForwardSecrecyToken(response: Wrapper<BackupRestoreResponse>): Uint8Array;
243
- export function BackupRestoreResponse_GetNextBackupSecretData(response: Wrapper<BackupRestoreResponse>): Uint8Array;
244
- export function BackupStoreResponse_GetForwardSecrecyToken(response: Wrapper<BackupStoreResponse>): Uint8Array;
245
- export function BackupStoreResponse_GetNextBackupSecretData(response: Wrapper<BackupStoreResponse>): Uint8Array;
246
- export function BackupStoreResponse_GetOpaqueMetadata(response: Wrapper<BackupStoreResponse>): Uint8Array;
247
- export function BridgedStringMap_insert(map: Wrapper<BridgedStringMap>, key: string, value: string): void;
248
- export function BridgedStringMap_new(initialCapacity: number): BridgedStringMap;
249
- export function CallLinkAuthCredentialPresentation_CheckValidContents(presentationBytes: Uint8Array): void;
250
- export function CallLinkAuthCredentialPresentation_GetUserId(presentationBytes: Uint8Array): Serialized<UuidCiphertext>;
251
- export function CallLinkAuthCredentialPresentation_Verify(presentationBytes: Uint8Array, now: Timestamp, serverParamsBytes: Uint8Array, callLinkParamsBytes: Uint8Array): void;
252
- export function CallLinkAuthCredentialResponse_CheckValidContents(responseBytes: Uint8Array): void;
253
- export function CallLinkAuthCredentialResponse_IssueDeterministic(userId: Uint8Array, redemptionTime: Timestamp, paramsBytes: Uint8Array, randomness: Uint8Array): Uint8Array;
254
- export function CallLinkAuthCredentialResponse_Receive(responseBytes: Uint8Array, userId: Uint8Array, redemptionTime: Timestamp, paramsBytes: Uint8Array): Uint8Array;
255
- export function CallLinkAuthCredential_CheckValidContents(credentialBytes: Uint8Array): void;
256
- export function CallLinkAuthCredential_PresentDeterministic(credentialBytes: Uint8Array, userId: Uint8Array, redemptionTime: Timestamp, serverParamsBytes: Uint8Array, callLinkParamsBytes: Uint8Array, randomness: Uint8Array): Uint8Array;
257
- export function CallLinkPublicParams_CheckValidContents(paramsBytes: Uint8Array): void;
258
- export function CallLinkSecretParams_CheckValidContents(paramsBytes: Uint8Array): void;
259
- export function CallLinkSecretParams_DecryptUserId(paramsBytes: Uint8Array, userId: Serialized<UuidCiphertext>): Uint8Array;
260
- export function CallLinkSecretParams_DeriveFromRootKey(rootKey: Uint8Array): Uint8Array;
261
- export function CallLinkSecretParams_EncryptUserId(paramsBytes: Uint8Array, userId: Uint8Array): Serialized<UuidCiphertext>;
262
- export function CallLinkSecretParams_GetPublicParams(paramsBytes: Uint8Array): Uint8Array;
263
- export function Cds2ClientState_New(mrenclave: Uint8Array, attestationMsg: Uint8Array, currentTimestamp: Timestamp): SgxClientState;
264
- export function CdsiLookup_complete(asyncRuntime: Wrapper<TokioAsyncContext>, lookup: Wrapper<CdsiLookup>): CancellablePromise<LookupResponse>;
265
- export function CdsiLookup_new(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>, username: string, password: string, request: Wrapper<LookupRequest>): CancellablePromise<CdsiLookup>;
266
- export function CdsiLookup_token(lookup: Wrapper<CdsiLookup>): Uint8Array;
267
- export function ChatConnectionInfo_description(connectionInfo: Wrapper<ChatConnectionInfo>): string;
268
- export function ChatConnectionInfo_ip_version(connectionInfo: Wrapper<ChatConnectionInfo>): number;
269
- export function ChatConnectionInfo_local_port(connectionInfo: Wrapper<ChatConnectionInfo>): number;
270
- export function CiphertextMessage_FromPlaintextContent(m: Wrapper<PlaintextContent>): CiphertextMessage;
271
- export function CiphertextMessage_Serialize(obj: Wrapper<CiphertextMessage>): Uint8Array;
272
- export function CiphertextMessage_Type(msg: Wrapper<CiphertextMessage>): number;
273
- export function ComparableBackup_GetComparableString(backup: Wrapper<ComparableBackup>): string;
274
- export function ComparableBackup_GetUnknownFields(backup: Wrapper<ComparableBackup>): string[];
275
- export function ComparableBackup_ReadUnencrypted(stream: InputStream, len: bigint, purpose: number): Promise<ComparableBackup>;
276
- export function ConnectionManager_clear_proxy(connectionManager: Wrapper<ConnectionManager>): void;
277
- export function ConnectionManager_new(environment: number, userAgent: string, remoteConfig: Wrapper<BridgedStringMap>, buildVariant: number): ConnectionManager;
278
- export function ConnectionManager_on_network_change(connectionManager: Wrapper<ConnectionManager>): void;
279
- export function ConnectionManager_set_censorship_circumvention_enabled(connectionManager: Wrapper<ConnectionManager>, enabled: boolean): void;
280
- export function ConnectionManager_set_invalid_proxy(connectionManager: Wrapper<ConnectionManager>): void;
281
- export function ConnectionManager_set_ipv6_enabled(connectionManager: Wrapper<ConnectionManager>, ipv6Enabled: boolean): void;
282
- export function ConnectionManager_set_proxy(connectionManager: Wrapper<ConnectionManager>, proxy: Wrapper<ConnectionProxyConfig>): void;
283
- export function ConnectionManager_set_remote_config(connectionManager: Wrapper<ConnectionManager>, remoteConfig: Wrapper<BridgedStringMap>, buildVariant: number): void;
284
- export function ConnectionProxyConfig_new(scheme: string, host: string, port: number, username: string | null, password: string | null): ConnectionProxyConfig;
285
- export function CreateCallLinkCredentialPresentation_CheckValidContents(presentationBytes: Uint8Array): void;
286
- export function CreateCallLinkCredentialPresentation_Verify(presentationBytes: Uint8Array, roomId: Uint8Array, now: Timestamp, serverParamsBytes: Uint8Array, callLinkParamsBytes: Uint8Array): void;
287
- export function CreateCallLinkCredentialRequestContext_CheckValidContents(contextBytes: Uint8Array): void;
288
- export function CreateCallLinkCredentialRequestContext_GetRequest(contextBytes: Uint8Array): Uint8Array;
289
- export function CreateCallLinkCredentialRequestContext_NewDeterministic(roomId: Uint8Array, randomness: Uint8Array): Uint8Array;
290
- export function CreateCallLinkCredentialRequestContext_ReceiveResponse(contextBytes: Uint8Array, responseBytes: Uint8Array, userId: Uint8Array, paramsBytes: Uint8Array): Uint8Array;
291
- export function CreateCallLinkCredentialRequest_CheckValidContents(requestBytes: Uint8Array): void;
292
- export function CreateCallLinkCredentialRequest_IssueDeterministic(requestBytes: Uint8Array, userId: Uint8Array, timestamp: Timestamp, paramsBytes: Uint8Array, randomness: Uint8Array): Uint8Array;
293
- export function CreateCallLinkCredentialResponse_CheckValidContents(responseBytes: Uint8Array): void;
294
- export function CreateCallLinkCredential_CheckValidContents(paramsBytes: Uint8Array): void;
295
- export function CreateCallLinkCredential_PresentDeterministic(credentialBytes: Uint8Array, roomId: Uint8Array, userId: Uint8Array, serverParamsBytes: Uint8Array, callLinkParamsBytes: Uint8Array, randomness: Uint8Array): Uint8Array;
296
- export function DecryptionErrorMessage_Deserialize(data: Uint8Array): DecryptionErrorMessage;
297
- export function DecryptionErrorMessage_ExtractFromSerializedContent(bytes: Uint8Array): DecryptionErrorMessage;
298
- export function DecryptionErrorMessage_ForOriginalMessage(originalBytes: Uint8Array, originalType: number, originalTimestamp: Timestamp, originalSenderDeviceId: number): DecryptionErrorMessage;
299
- export function DecryptionErrorMessage_GetDeviceId(obj: Wrapper<DecryptionErrorMessage>): number;
300
- export function DecryptionErrorMessage_GetRatchetKey(m: Wrapper<DecryptionErrorMessage>): PublicKey | null;
301
- export function DecryptionErrorMessage_GetTimestamp(obj: Wrapper<DecryptionErrorMessage>): Timestamp;
302
- export function DecryptionErrorMessage_Serialize(obj: Wrapper<DecryptionErrorMessage>): Uint8Array;
303
- export function ExpiringProfileKeyCredentialResponse_CheckValidContents(buffer: Uint8Array): void;
304
- export function ExpiringProfileKeyCredential_CheckValidContents(buffer: Uint8Array): void;
305
- export function ExpiringProfileKeyCredential_GetExpirationTime(credential: Serialized<ExpiringProfileKeyCredential>): Timestamp;
306
- export function Fingerprint_DisplayString(obj: Wrapper<Fingerprint>): string;
307
- export function Fingerprint_New(iterations: number, version: number, localIdentifier: Uint8Array, localKey: Wrapper<PublicKey>, remoteIdentifier: Uint8Array, remoteKey: Wrapper<PublicKey>): Fingerprint;
308
- export function Fingerprint_ScannableEncoding(obj: Wrapper<Fingerprint>): Uint8Array;
309
- export function GenericServerPublicParams_CheckValidContents(paramsBytes: Uint8Array): void;
310
- export function GenericServerSecretParams_CheckValidContents(paramsBytes: Uint8Array): void;
311
- export function GenericServerSecretParams_GenerateDeterministic(randomness: Uint8Array): Uint8Array;
312
- export function GenericServerSecretParams_GetPublicParams(paramsBytes: Uint8Array): Uint8Array;
313
- export function GroupCipher_DecryptMessage(sender: Wrapper<ProtocolAddress>, message: Uint8Array, store: SenderKeyStore): Promise<Uint8Array>;
314
- export function GroupCipher_EncryptMessage(sender: Wrapper<ProtocolAddress>, distributionId: Uuid, message: Uint8Array, store: SenderKeyStore): Promise<CiphertextMessage>;
315
- export function GroupMasterKey_CheckValidContents(buffer: Uint8Array): void;
316
- export function GroupPublicParams_CheckValidContents(buffer: Uint8Array): void;
317
- export function GroupPublicParams_GetGroupIdentifier(groupPublicParams: Serialized<GroupPublicParams>): Uint8Array;
318
- export function GroupSecretParams_CheckValidContents(buffer: Uint8Array): void;
319
- export function GroupSecretParams_DecryptBlobWithPadding(params: Serialized<GroupSecretParams>, ciphertext: Uint8Array): Uint8Array;
320
- export function GroupSecretParams_DecryptProfileKey(params: Serialized<GroupSecretParams>, profileKey: Serialized<ProfileKeyCiphertext>, userId: Uint8Array): Serialized<ProfileKey>;
321
- export function GroupSecretParams_DecryptServiceId(params: Serialized<GroupSecretParams>, ciphertext: Serialized<UuidCiphertext>): Uint8Array;
322
- export function GroupSecretParams_DeriveFromMasterKey(masterKey: Serialized<GroupMasterKey>): Serialized<GroupSecretParams>;
323
- export function GroupSecretParams_EncryptBlobWithPaddingDeterministic(params: Serialized<GroupSecretParams>, randomness: Uint8Array, plaintext: Uint8Array, paddingLen: number): Uint8Array;
324
- export function GroupSecretParams_EncryptProfileKey(params: Serialized<GroupSecretParams>, profileKey: Serialized<ProfileKey>, userId: Uint8Array): Serialized<ProfileKeyCiphertext>;
325
- export function GroupSecretParams_EncryptServiceId(params: Serialized<GroupSecretParams>, serviceId: Uint8Array): Serialized<UuidCiphertext>;
326
- export function GroupSecretParams_GenerateDeterministic(randomness: Uint8Array): Serialized<GroupSecretParams>;
327
- export function GroupSecretParams_GetMasterKey(params: Serialized<GroupSecretParams>): Serialized<GroupMasterKey>;
328
- export function GroupSecretParams_GetPublicParams(params: Serialized<GroupSecretParams>): Serialized<GroupPublicParams>;
329
- export function GroupSendDerivedKeyPair_CheckValidContents(bytes: Uint8Array): void;
330
- export function GroupSendDerivedKeyPair_ForExpiration(expiration: Timestamp, serverParams: Wrapper<ServerSecretParams>): Uint8Array;
331
- export function GroupSendEndorsement_CallLinkParams_ToToken(endorsement: Uint8Array, callLinkSecretParamsSerialized: Uint8Array): Uint8Array;
332
- export function GroupSendEndorsement_CheckValidContents(bytes: Uint8Array): void;
333
- export function GroupSendEndorsement_Combine(endorsements: Uint8Array[]): Uint8Array;
334
- export function GroupSendEndorsement_Remove(endorsement: Uint8Array, toRemove: Uint8Array): Uint8Array;
335
- export function GroupSendEndorsement_ToToken(endorsement: Uint8Array, groupParams: Serialized<GroupSecretParams>): Uint8Array;
336
- export function GroupSendEndorsementsResponse_CheckValidContents(bytes: Uint8Array): void;
337
- export function GroupSendEndorsementsResponse_GetExpiration(responseBytes: Uint8Array): Timestamp;
338
- export function GroupSendEndorsementsResponse_IssueDeterministic(concatenatedGroupMemberCiphertexts: Uint8Array, keyPair: Uint8Array, randomness: Uint8Array): Uint8Array;
339
- export function GroupSendEndorsementsResponse_ReceiveAndCombineWithCiphertexts(responseBytes: Uint8Array, concatenatedGroupMemberCiphertexts: Uint8Array, localUserCiphertext: Uint8Array, now: Timestamp, serverParams: Wrapper<ServerPublicParams>): Uint8Array[];
340
- export function GroupSendEndorsementsResponse_ReceiveAndCombineWithServiceIds(responseBytes: Uint8Array, groupMembers: Uint8Array, localUser: Uint8Array, now: Timestamp, groupParams: Serialized<GroupSecretParams>, serverParams: Wrapper<ServerPublicParams>): Uint8Array[];
341
- export function GroupSendFullToken_CheckValidContents(bytes: Uint8Array): void;
342
- export function GroupSendFullToken_GetExpiration(token: Uint8Array): Timestamp;
343
- export function GroupSendFullToken_Verify(token: Uint8Array, userIds: Uint8Array, now: Timestamp, keyPair: Uint8Array): void;
344
- export function GroupSendToken_CheckValidContents(bytes: Uint8Array): void;
345
- export function GroupSendToken_ToFullToken(token: Uint8Array, expiration: Timestamp): Uint8Array;
346
- export function HKDF_DeriveSecrets(outputLength: number, ikm: Uint8Array, label: Uint8Array | null, salt: Uint8Array | null): Uint8Array;
347
- export function HsmEnclaveClient_CompleteHandshake(cli: Wrapper<HsmEnclaveClient>, handshakeReceived: Uint8Array): void;
348
- export function HsmEnclaveClient_EstablishedRecv(cli: Wrapper<HsmEnclaveClient>, receivedCiphertext: Uint8Array): Uint8Array;
349
- export function HsmEnclaveClient_EstablishedSend(cli: Wrapper<HsmEnclaveClient>, plaintextToSend: Uint8Array): Uint8Array;
350
- export function HsmEnclaveClient_InitialRequest(obj: Wrapper<HsmEnclaveClient>): Uint8Array;
351
- export function HsmEnclaveClient_New(trustedPublicKey: Uint8Array, trustedCodeHashes: Uint8Array): HsmEnclaveClient;
352
- export function HttpRequest_add_header(request: Wrapper<HttpRequest>, name: string, value: string): void;
353
- export function HttpRequest_new(method: string, path: string, bodyAsSlice: Uint8Array | null): HttpRequest;
354
- export function IdentityKeyPair_Deserialize(input: Uint8Array): [PublicKey, PrivateKey];
355
- export function IdentityKeyPair_Serialize(publicKey: Wrapper<PublicKey>, privateKey: Wrapper<PrivateKey>): Uint8Array;
356
- export function IdentityKeyPair_SignAlternateIdentity(publicKey: Wrapper<PublicKey>, privateKey: Wrapper<PrivateKey>, otherIdentity: Wrapper<PublicKey>): Uint8Array;
357
- export function IdentityKey_VerifyAlternateIdentity(publicKey: Wrapper<PublicKey>, otherIdentity: Wrapper<PublicKey>, signature: Uint8Array): boolean;
358
- export function IncrementalMac_CalculateChunkSize(dataSize: number): number;
359
- export function IncrementalMac_Finalize(mac: Wrapper<IncrementalMac>): Uint8Array;
360
- export function IncrementalMac_Initialize(key: Uint8Array, chunkSize: number): IncrementalMac;
361
- export function IncrementalMac_Update(mac: Wrapper<IncrementalMac>, bytes: Uint8Array, offset: number, length: number): Uint8Array;
362
- export function KeyTransparency_AciSearchKey(aci: Uint8Array): Uint8Array;
363
- export function KeyTransparency_Distinguished(asyncRuntime: Wrapper<TokioAsyncContext>, environment: number, chatConnection: Wrapper<UnauthenticatedChatConnection>, lastDistinguishedTreeHead: Uint8Array | null): CancellablePromise<Uint8Array>;
364
- export function KeyTransparency_E164SearchKey(e164: string): Uint8Array;
365
- 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, isSelfMonitor: boolean): CancellablePromise<Uint8Array>;
366
- 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>;
367
- export function KeyTransparency_UsernameHashSearchKey(hash: Uint8Array): Uint8Array;
368
- export function KyberKeyPair_Generate(): KyberKeyPair;
369
- export function KyberKeyPair_GetPublicKey(keyPair: Wrapper<KyberKeyPair>): KyberPublicKey;
370
- export function KyberKeyPair_GetSecretKey(keyPair: Wrapper<KyberKeyPair>): KyberSecretKey;
371
- export function KyberPreKeyRecord_Deserialize(data: Uint8Array): KyberPreKeyRecord;
372
- export function KyberPreKeyRecord_GetId(obj: Wrapper<KyberPreKeyRecord>): number;
373
- export function KyberPreKeyRecord_GetKeyPair(obj: Wrapper<KyberPreKeyRecord>): KyberKeyPair;
374
- export function KyberPreKeyRecord_GetPublicKey(obj: Wrapper<KyberPreKeyRecord>): KyberPublicKey;
375
- export function KyberPreKeyRecord_GetSecretKey(obj: Wrapper<KyberPreKeyRecord>): KyberSecretKey;
376
- export function KyberPreKeyRecord_GetSignature(obj: Wrapper<KyberPreKeyRecord>): Uint8Array;
377
- export function KyberPreKeyRecord_GetTimestamp(obj: Wrapper<KyberPreKeyRecord>): Timestamp;
378
- export function KyberPreKeyRecord_New(id: number, timestamp: Timestamp, keyPair: Wrapper<KyberKeyPair>, signature: Uint8Array): KyberPreKeyRecord;
379
- export function KyberPreKeyRecord_Serialize(obj: Wrapper<KyberPreKeyRecord>): Uint8Array;
380
- export function KyberPublicKey_Deserialize(data: Uint8Array): KyberPublicKey;
381
- export function KyberPublicKey_Equals(lhs: Wrapper<KyberPublicKey>, rhs: Wrapper<KyberPublicKey>): boolean;
382
- export function KyberPublicKey_Serialize(obj: Wrapper<KyberPublicKey>): Uint8Array;
383
- export function KyberSecretKey_Deserialize(data: Uint8Array): KyberSecretKey;
384
- export function KyberSecretKey_Serialize(obj: Wrapper<KyberSecretKey>): Uint8Array;
385
- export function LookupRequest_addAciAndAccessKey(request: Wrapper<LookupRequest>, aci: Uint8Array, accessKey: Uint8Array): void;
386
- export function LookupRequest_addE164(request: Wrapper<LookupRequest>, e164: string): void;
387
- export function LookupRequest_addPreviousE164(request: Wrapper<LookupRequest>, e164: string): void;
388
- export function LookupRequest_new(): LookupRequest;
389
- export function LookupRequest_setToken(request: Wrapper<LookupRequest>, token: Uint8Array): void;
390
- export function MessageBackupKey_FromAccountEntropyPool(accountEntropy: AccountEntropyPool, aci: Uint8Array, forwardSecrecyToken: Uint8Array | null): MessageBackupKey;
391
- export function MessageBackupKey_FromBackupKeyAndBackupId(backupKey: Uint8Array, backupId: Uint8Array, forwardSecrecyToken: Uint8Array | null): MessageBackupKey;
392
- export function MessageBackupKey_GetAesKey(key: Wrapper<MessageBackupKey>): Uint8Array;
393
- export function MessageBackupKey_GetHmacKey(key: Wrapper<MessageBackupKey>): Uint8Array;
394
- export function MessageBackupValidator_Validate(key: Wrapper<MessageBackupKey>, firstStream: InputStream, secondStream: InputStream, len: bigint, purpose: number): Promise<MessageBackupValidationOutcome>;
395
- export function MinidumpToJSONString(buffer: Uint8Array): string;
396
- export function Mp4Sanitizer_Sanitize(input: InputStream, len: bigint): Promise<SanitizedMetadata>;
397
- export function OnlineBackupValidator_AddFrame(backup: Wrapper<OnlineBackupValidator>, frame: Uint8Array): void;
398
- export function OnlineBackupValidator_Finalize(backup: Wrapper<OnlineBackupValidator>): void;
399
- export function OnlineBackupValidator_New(backupInfoFrame: Uint8Array, purpose: number): OnlineBackupValidator;
400
- export function PlaintextContent_Deserialize(data: Uint8Array): PlaintextContent;
401
- export function PlaintextContent_FromDecryptionErrorMessage(m: Wrapper<DecryptionErrorMessage>): PlaintextContent;
402
- export function PlaintextContent_GetBody(obj: Wrapper<PlaintextContent>): Uint8Array;
403
- export function PlaintextContent_Serialize(obj: Wrapper<PlaintextContent>): Uint8Array;
404
- export function PreKeyBundle_GetDeviceId(obj: Wrapper<PreKeyBundle>): number;
405
- export function PreKeyBundle_GetIdentityKey(p: Wrapper<PreKeyBundle>): PublicKey;
406
- export function PreKeyBundle_GetKyberPreKeyId(obj: Wrapper<PreKeyBundle>): number;
407
- export function PreKeyBundle_GetKyberPreKeyPublic(bundle: Wrapper<PreKeyBundle>): KyberPublicKey;
408
- export function PreKeyBundle_GetKyberPreKeySignature(obj: Wrapper<PreKeyBundle>): Uint8Array;
409
- export function PreKeyBundle_GetPreKeyId(obj: Wrapper<PreKeyBundle>): number | null;
410
- export function PreKeyBundle_GetPreKeyPublic(obj: Wrapper<PreKeyBundle>): PublicKey | null;
411
- export function PreKeyBundle_GetRegistrationId(obj: Wrapper<PreKeyBundle>): number;
412
- export function PreKeyBundle_GetSignedPreKeyId(obj: Wrapper<PreKeyBundle>): number;
413
- export function PreKeyBundle_GetSignedPreKeyPublic(obj: Wrapper<PreKeyBundle>): PublicKey;
414
- export function PreKeyBundle_GetSignedPreKeySignature(obj: Wrapper<PreKeyBundle>): Uint8Array;
415
- 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;
416
- export function PreKeyRecord_Deserialize(data: Uint8Array): PreKeyRecord;
417
- export function PreKeyRecord_GetId(obj: Wrapper<PreKeyRecord>): number;
418
- export function PreKeyRecord_GetPrivateKey(obj: Wrapper<PreKeyRecord>): PrivateKey;
419
- export function PreKeyRecord_GetPublicKey(obj: Wrapper<PreKeyRecord>): PublicKey;
420
- export function PreKeyRecord_New(id: number, pubKey: Wrapper<PublicKey>, privKey: Wrapper<PrivateKey>): PreKeyRecord;
421
- export function PreKeyRecord_Serialize(obj: Wrapper<PreKeyRecord>): Uint8Array;
422
- export function PreKeySignalMessage_Deserialize(data: Uint8Array): PreKeySignalMessage;
423
- export function PreKeySignalMessage_GetPreKeyId(obj: Wrapper<PreKeySignalMessage>): number | null;
424
- export function PreKeySignalMessage_GetRegistrationId(obj: Wrapper<PreKeySignalMessage>): number;
425
- export function PreKeySignalMessage_GetSignedPreKeyId(obj: Wrapper<PreKeySignalMessage>): number;
426
- export function PreKeySignalMessage_GetVersion(obj: Wrapper<PreKeySignalMessage>): number;
427
- export function PreKeySignalMessage_New(messageVersion: number, registrationId: number, preKeyId: number | null, signedPreKeyId: number, baseKey: Wrapper<PublicKey>, identityKey: Wrapper<PublicKey>, signalMessage: Wrapper<SignalMessage>): PreKeySignalMessage;
428
- export function PreKeySignalMessage_Serialize(obj: Wrapper<PreKeySignalMessage>): Uint8Array;
429
- export function PrivateKey_Agree(privateKey: Wrapper<PrivateKey>, publicKey: Wrapper<PublicKey>): Uint8Array;
430
- export function PrivateKey_Deserialize(data: Uint8Array): PrivateKey;
431
- export function PrivateKey_Generate(): PrivateKey;
432
- export function PrivateKey_GetPublicKey(k: Wrapper<PrivateKey>): PublicKey;
433
- export function PrivateKey_HpkeOpen(sk: Wrapper<PrivateKey>, ciphertext: Uint8Array, info: Uint8Array, associatedData: Uint8Array): Uint8Array;
434
- export function PrivateKey_Serialize(obj: Wrapper<PrivateKey>): Uint8Array;
435
- export function PrivateKey_Sign(key: Wrapper<PrivateKey>, message: Uint8Array): Uint8Array;
436
- export function ProfileKeyCiphertext_CheckValidContents(buffer: Uint8Array): void;
437
- export function ProfileKeyCommitment_CheckValidContents(buffer: Uint8Array): void;
438
- export function ProfileKeyCredentialPresentation_CheckValidContents(presentationBytes: Uint8Array): void;
439
- export function ProfileKeyCredentialPresentation_GetProfileKeyCiphertext(presentationBytes: Uint8Array): Serialized<ProfileKeyCiphertext>;
440
- export function ProfileKeyCredentialPresentation_GetUuidCiphertext(presentationBytes: Uint8Array): Serialized<UuidCiphertext>;
441
- export function ProfileKeyCredentialRequestContext_CheckValidContents(buffer: Uint8Array): void;
442
- export function ProfileKeyCredentialRequestContext_GetRequest(context: Serialized<ProfileKeyCredentialRequestContext>): Serialized<ProfileKeyCredentialRequest>;
443
- export function ProfileKeyCredentialRequest_CheckValidContents(buffer: Uint8Array): void;
444
- export function ProfileKey_CheckValidContents(buffer: Uint8Array): void;
445
- export function ProfileKey_DeriveAccessKey(profileKey: Serialized<ProfileKey>): Uint8Array;
446
- export function ProfileKey_GetCommitment(profileKey: Serialized<ProfileKey>, userId: Uint8Array): Serialized<ProfileKeyCommitment>;
447
- export function ProfileKey_GetProfileKeyVersion(profileKey: Serialized<ProfileKey>, userId: Uint8Array): Uint8Array;
448
- export function ProtocolAddress_DeviceId(obj: Wrapper<ProtocolAddress>): number;
449
- export function ProtocolAddress_Name(obj: Wrapper<ProtocolAddress>): string;
450
- export function ProtocolAddress_New(name: string, deviceId: number): ProtocolAddress;
451
- export function PublicKey_Compare(key1: Wrapper<PublicKey>, key2: Wrapper<PublicKey>): number;
452
- export function PublicKey_Deserialize(data: Uint8Array): PublicKey;
453
- export function PublicKey_Equals(lhs: Wrapper<PublicKey>, rhs: Wrapper<PublicKey>): boolean;
454
- export function PublicKey_GetPublicKeyBytes(obj: Wrapper<PublicKey>): Uint8Array;
455
- export function PublicKey_HpkeSeal(pk: Wrapper<PublicKey>, plaintext: Uint8Array, info: Uint8Array, associatedData: Uint8Array): Uint8Array;
456
- export function PublicKey_Serialize(obj: Wrapper<PublicKey>): Uint8Array;
457
- export function PublicKey_Verify(key: Wrapper<PublicKey>, message: Uint8Array, signature: Uint8Array): boolean;
458
- export function ReceiptCredentialPresentation_CheckValidContents(buffer: Uint8Array): void;
459
- export function ReceiptCredentialPresentation_GetReceiptExpirationTime(presentation: Serialized<ReceiptCredentialPresentation>): Timestamp;
460
- export function ReceiptCredentialPresentation_GetReceiptLevel(presentation: Serialized<ReceiptCredentialPresentation>): bigint;
461
- export function ReceiptCredentialPresentation_GetReceiptSerial(presentation: Serialized<ReceiptCredentialPresentation>): Uint8Array;
462
- export function ReceiptCredentialRequestContext_CheckValidContents(buffer: Uint8Array): void;
463
- export function ReceiptCredentialRequestContext_GetRequest(requestContext: Serialized<ReceiptCredentialRequestContext>): Serialized<ReceiptCredentialRequest>;
464
- export function ReceiptCredentialRequest_CheckValidContents(buffer: Uint8Array): void;
465
- export function ReceiptCredentialResponse_CheckValidContents(buffer: Uint8Array): void;
466
- export function ReceiptCredential_CheckValidContents(buffer: Uint8Array): void;
467
- export function ReceiptCredential_GetReceiptExpirationTime(receiptCredential: Serialized<ReceiptCredential>): Timestamp;
468
- export function ReceiptCredential_GetReceiptLevel(receiptCredential: Serialized<ReceiptCredential>): bigint;
469
- export function RegisterAccountRequest_Create(): RegisterAccountRequest;
470
- export function RegisterAccountRequest_SetAccountPassword(registerAccount: Wrapper<RegisterAccountRequest>, accountPassword: string): void;
471
- export function RegisterAccountRequest_SetIdentityPqLastResortPreKey(registerAccount: Wrapper<RegisterAccountRequest>, identityType: number, pqLastResortPreKey: SignedPublicPreKey): void;
472
- export function RegisterAccountRequest_SetIdentityPublicKey(registerAccount: Wrapper<RegisterAccountRequest>, identityType: number, identityKey: Wrapper<PublicKey>): void;
473
- export function RegisterAccountRequest_SetIdentitySignedPreKey(registerAccount: Wrapper<RegisterAccountRequest>, identityType: number, signedPreKey: SignedPublicPreKey): void;
474
- export function RegisterAccountRequest_SetSkipDeviceTransfer(registerAccount: Wrapper<RegisterAccountRequest>): void;
475
- export function RegisterAccountResponse_GetEntitlementBackupExpirationSeconds(response: Wrapper<RegisterAccountResponse>): bigint | null;
476
- export function RegisterAccountResponse_GetEntitlementBackupLevel(response: Wrapper<RegisterAccountResponse>): bigint | null;
477
- export function RegisterAccountResponse_GetEntitlementBadges(response: Wrapper<RegisterAccountResponse>): RegisterResponseBadge[];
478
- export function RegisterAccountResponse_GetIdentity(response: Wrapper<RegisterAccountResponse>, identityType: number): Uint8Array;
479
- export function RegisterAccountResponse_GetNumber(response: Wrapper<RegisterAccountResponse>): string;
480
- export function RegisterAccountResponse_GetReregistration(response: Wrapper<RegisterAccountResponse>): boolean;
481
- export function RegisterAccountResponse_GetStorageCapable(response: Wrapper<RegisterAccountResponse>): boolean;
482
- export function RegisterAccountResponse_GetUsernameHash(response: Wrapper<RegisterAccountResponse>): Uint8Array | null;
483
- export function RegisterAccountResponse_GetUsernameLinkHandle(response: Wrapper<RegisterAccountResponse>): Uuid | null;
484
- export function RegistrationAccountAttributes_Create(recoveryPassword: Uint8Array, aciRegistrationId: number, pniRegistrationId: number, registrationLock: string | null, unidentifiedAccessKey: Uint8Array, unrestrictedUnidentifiedAccess: boolean, capabilities: string[], discoverableByPhoneNumber: boolean): RegistrationAccountAttributes;
485
- export function RegistrationService_CheckSvr2Credentials(asyncRuntime: Wrapper<TokioAsyncContext>, service: Wrapper<RegistrationService>, svrTokens: string[]): CancellablePromise<CheckSvr2CredentialsResponse>;
486
- export function RegistrationService_CreateSession(asyncRuntime: Wrapper<TokioAsyncContext>, createSession: RegistrationCreateSessionRequest, connectChat: ConnectChatBridge): CancellablePromise<RegistrationService>;
487
- export function RegistrationService_RegisterAccount(asyncRuntime: Wrapper<TokioAsyncContext>, service: Wrapper<RegistrationService>, registerAccount: Wrapper<RegisterAccountRequest>, accountAttributes: Wrapper<RegistrationAccountAttributes>): CancellablePromise<RegisterAccountResponse>;
488
- export function RegistrationService_RegistrationSession(service: Wrapper<RegistrationService>): RegistrationSession;
489
- export function RegistrationService_RequestVerificationCode(asyncRuntime: Wrapper<TokioAsyncContext>, service: Wrapper<RegistrationService>, transport: string, client: string, languages: string[]): CancellablePromise<void>;
490
- export function RegistrationService_ReregisterAccount(asyncRuntime: Wrapper<TokioAsyncContext>, connectChat: ConnectChatBridge, number: string, registerAccount: Wrapper<RegisterAccountRequest>, accountAttributes: Wrapper<RegistrationAccountAttributes>): CancellablePromise<RegisterAccountResponse>;
491
- export function RegistrationService_ResumeSession(asyncRuntime: Wrapper<TokioAsyncContext>, sessionId: string, number: string, connectChat: ConnectChatBridge): CancellablePromise<RegistrationService>;
492
- export function RegistrationService_SessionId(service: Wrapper<RegistrationService>): string;
493
- export function RegistrationService_SubmitCaptcha(asyncRuntime: Wrapper<TokioAsyncContext>, service: Wrapper<RegistrationService>, captchaValue: string): CancellablePromise<void>;
494
- export function RegistrationService_SubmitVerificationCode(asyncRuntime: Wrapper<TokioAsyncContext>, service: Wrapper<RegistrationService>, code: string): CancellablePromise<void>;
495
- export function RegistrationSession_GetAllowedToRequestCode(session: Wrapper<RegistrationSession>): boolean;
496
- export function RegistrationSession_GetNextCallSeconds(session: Wrapper<RegistrationSession>): number | null;
497
- export function RegistrationSession_GetNextSmsSeconds(session: Wrapper<RegistrationSession>): number | null;
498
- export function RegistrationSession_GetNextVerificationAttemptSeconds(session: Wrapper<RegistrationSession>): number | null;
499
- export function RegistrationSession_GetRequestedInformation(session: Wrapper<RegistrationSession>): ChallengeOption[];
500
- export function RegistrationSession_GetVerified(session: Wrapper<RegistrationSession>): boolean;
501
- export function SanitizedMetadata_GetDataLen(sanitized: Wrapper<SanitizedMetadata>): bigint;
502
- export function SanitizedMetadata_GetDataOffset(sanitized: Wrapper<SanitizedMetadata>): bigint;
503
- export function SanitizedMetadata_GetMetadata(sanitized: Wrapper<SanitizedMetadata>): Uint8Array;
504
- export function ScannableFingerprint_Compare(fprint1: Uint8Array, fprint2: Uint8Array): boolean;
505
- export function SealedSenderDecryptionResult_GetDeviceId(obj: Wrapper<SealedSenderDecryptionResult>): number;
506
- export function SealedSenderDecryptionResult_GetSenderE164(obj: Wrapper<SealedSenderDecryptionResult>): string | null;
507
- export function SealedSenderDecryptionResult_GetSenderUuid(obj: Wrapper<SealedSenderDecryptionResult>): string;
508
- export function SealedSenderDecryptionResult_Message(obj: Wrapper<SealedSenderDecryptionResult>): Uint8Array;
509
- export function SealedSenderMultiRecipientMessage_Parse(buffer: Uint8Array): SealedSenderMultiRecipientMessage;
510
- 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): Promise<SealedSenderDecryptionResult>;
511
- export function SealedSender_DecryptToUsmc(ctext: Uint8Array, identityStore: IdentityKeyStore): Promise<UnidentifiedSenderMessageContent>;
512
- export function SealedSender_Encrypt(destination: Wrapper<ProtocolAddress>, content: Wrapper<UnidentifiedSenderMessageContent>, identityKeyStore: IdentityKeyStore): Promise<Uint8Array>;
513
- export function SealedSender_MultiRecipientEncrypt(recipients: Wrapper<ProtocolAddress>[], recipientSessions: Wrapper<SessionRecord>[], excludedRecipients: Uint8Array, content: Wrapper<UnidentifiedSenderMessageContent>, identityKeyStore: IdentityKeyStore): Promise<Uint8Array>;
514
- export function SealedSender_MultiRecipientMessageForSingleRecipient(encodedMultiRecipientMessage: Uint8Array): Uint8Array;
515
- export function SecureValueRecoveryForBackups_CreateNewBackupChain(environment: number, backupKey: Uint8Array): Uint8Array;
516
- export function SecureValueRecoveryForBackups_RemoveBackup(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>, username: string, password: string): CancellablePromise<void>;
517
- export function SecureValueRecoveryForBackups_RestoreBackupFromServer(asyncRuntime: Wrapper<TokioAsyncContext>, backupKey: Uint8Array, metadata: Uint8Array, connectionManager: Wrapper<ConnectionManager>, username: string, password: string): CancellablePromise<BackupRestoreResponse>;
518
- export function SecureValueRecoveryForBackups_StoreBackup(asyncRuntime: Wrapper<TokioAsyncContext>, backupKey: Uint8Array, previousSecretData: Uint8Array, connectionManager: Wrapper<ConnectionManager>, username: string, password: string): CancellablePromise<BackupStoreResponse>;
519
- export function SenderCertificate_Deserialize(data: Uint8Array): SenderCertificate;
520
- export function SenderCertificate_GetCertificate(obj: Wrapper<SenderCertificate>): Uint8Array;
521
- export function SenderCertificate_GetDeviceId(obj: Wrapper<SenderCertificate>): number;
522
- export function SenderCertificate_GetExpiration(obj: Wrapper<SenderCertificate>): Timestamp;
523
- export function SenderCertificate_GetKey(obj: Wrapper<SenderCertificate>): PublicKey;
524
- export function SenderCertificate_GetSenderE164(obj: Wrapper<SenderCertificate>): string | null;
525
- export function SenderCertificate_GetSenderUuid(obj: Wrapper<SenderCertificate>): string;
526
- export function SenderCertificate_GetSerialized(obj: Wrapper<SenderCertificate>): Uint8Array;
527
- export function SenderCertificate_GetServerCertificate(cert: Wrapper<SenderCertificate>): ServerCertificate;
528
- export function SenderCertificate_GetSignature(obj: Wrapper<SenderCertificate>): Uint8Array;
529
- export function SenderCertificate_New(senderUuid: string, senderE164: string | null, senderDeviceId: number, senderKey: Wrapper<PublicKey>, expiration: Timestamp, signerCert: Wrapper<ServerCertificate>, signerKey: Wrapper<PrivateKey>): SenderCertificate;
530
- export function SenderCertificate_Validate(cert: Wrapper<SenderCertificate>, trustRoots: Wrapper<PublicKey>[], time: Timestamp): boolean;
531
- export function SenderKeyDistributionMessage_Create(sender: Wrapper<ProtocolAddress>, distributionId: Uuid, store: SenderKeyStore): Promise<SenderKeyDistributionMessage>;
532
- export function SenderKeyDistributionMessage_Deserialize(data: Uint8Array): SenderKeyDistributionMessage;
533
- export function SenderKeyDistributionMessage_GetChainId(obj: Wrapper<SenderKeyDistributionMessage>): number;
534
- export function SenderKeyDistributionMessage_GetChainKey(obj: Wrapper<SenderKeyDistributionMessage>): Uint8Array;
535
- export function SenderKeyDistributionMessage_GetDistributionId(obj: Wrapper<SenderKeyDistributionMessage>): Uuid;
536
- export function SenderKeyDistributionMessage_GetIteration(obj: Wrapper<SenderKeyDistributionMessage>): number;
537
- export function SenderKeyDistributionMessage_New(messageVersion: number, distributionId: Uuid, chainId: number, iteration: number, chainkey: Uint8Array, pk: Wrapper<PublicKey>): SenderKeyDistributionMessage;
538
- export function SenderKeyDistributionMessage_Process(sender: Wrapper<ProtocolAddress>, senderKeyDistributionMessage: Wrapper<SenderKeyDistributionMessage>, store: SenderKeyStore): Promise<void>;
539
- export function SenderKeyDistributionMessage_Serialize(obj: Wrapper<SenderKeyDistributionMessage>): Uint8Array;
540
- export function SenderKeyMessage_Deserialize(data: Uint8Array): SenderKeyMessage;
541
- export function SenderKeyMessage_GetChainId(obj: Wrapper<SenderKeyMessage>): number;
542
- export function SenderKeyMessage_GetCipherText(obj: Wrapper<SenderKeyMessage>): Uint8Array;
543
- export function SenderKeyMessage_GetDistributionId(obj: Wrapper<SenderKeyMessage>): Uuid;
544
- export function SenderKeyMessage_GetIteration(obj: Wrapper<SenderKeyMessage>): number;
545
- export function SenderKeyMessage_New(messageVersion: number, distributionId: Uuid, chainId: number, iteration: number, ciphertext: Uint8Array, pk: Wrapper<PrivateKey>): SenderKeyMessage;
546
- export function SenderKeyMessage_Serialize(obj: Wrapper<SenderKeyMessage>): Uint8Array;
547
- export function SenderKeyMessage_VerifySignature(skm: Wrapper<SenderKeyMessage>, pubkey: Wrapper<PublicKey>): boolean;
548
- export function SenderKeyRecord_Deserialize(data: Uint8Array): SenderKeyRecord;
549
- export function SenderKeyRecord_Serialize(obj: Wrapper<SenderKeyRecord>): Uint8Array;
550
- export function ServerCertificate_Deserialize(data: Uint8Array): ServerCertificate;
551
- export function ServerCertificate_GetCertificate(obj: Wrapper<ServerCertificate>): Uint8Array;
552
- export function ServerCertificate_GetKey(obj: Wrapper<ServerCertificate>): PublicKey;
553
- export function ServerCertificate_GetKeyId(obj: Wrapper<ServerCertificate>): number;
554
- export function ServerCertificate_GetSerialized(obj: Wrapper<ServerCertificate>): Uint8Array;
555
- export function ServerCertificate_GetSignature(obj: Wrapper<ServerCertificate>): Uint8Array;
556
- export function ServerCertificate_New(keyId: number, serverKey: Wrapper<PublicKey>, trustRoot: Wrapper<PrivateKey>): ServerCertificate;
557
- export function ServerMessageAck_SendStatus(ack: Wrapper<ServerMessageAck>, status: number): void;
558
- export function ServerPublicParams_CreateAuthCredentialWithPniPresentationDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness: Uint8Array, groupSecretParams: Serialized<GroupSecretParams>, authCredentialWithPniBytes: Uint8Array): Uint8Array;
559
- export function ServerPublicParams_CreateExpiringProfileKeyCredentialPresentationDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness: Uint8Array, groupSecretParams: Serialized<GroupSecretParams>, profileKeyCredential: Serialized<ExpiringProfileKeyCredential>): Uint8Array;
560
- export function ServerPublicParams_CreateProfileKeyCredentialRequestContextDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness: Uint8Array, userId: Uint8Array, profileKey: Serialized<ProfileKey>): Serialized<ProfileKeyCredentialRequestContext>;
561
- export function ServerPublicParams_CreateReceiptCredentialPresentationDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness: Uint8Array, receiptCredential: Serialized<ReceiptCredential>): Serialized<ReceiptCredentialPresentation>;
562
- export function ServerPublicParams_CreateReceiptCredentialRequestContextDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness: Uint8Array, receiptSerial: Uint8Array): Serialized<ReceiptCredentialRequestContext>;
563
- export function ServerPublicParams_Deserialize(buffer: Uint8Array): ServerPublicParams;
564
- export function ServerPublicParams_GetEndorsementPublicKey(params: Wrapper<ServerPublicParams>): Uint8Array;
565
- export function ServerPublicParams_ReceiveAuthCredentialWithPniAsServiceId(params: Wrapper<ServerPublicParams>, aci: Uint8Array, pni: Uint8Array, redemptionTime: Timestamp, authCredentialWithPniResponseBytes: Uint8Array): Uint8Array;
566
- export function ServerPublicParams_ReceiveExpiringProfileKeyCredential(serverPublicParams: Wrapper<ServerPublicParams>, requestContext: Serialized<ProfileKeyCredentialRequestContext>, response: Serialized<ExpiringProfileKeyCredentialResponse>, currentTimeInSeconds: Timestamp): Serialized<ExpiringProfileKeyCredential>;
567
- export function ServerPublicParams_ReceiveReceiptCredential(serverPublicParams: Wrapper<ServerPublicParams>, requestContext: Serialized<ReceiptCredentialRequestContext>, response: Serialized<ReceiptCredentialResponse>): Serialized<ReceiptCredential>;
568
- export function ServerPublicParams_Serialize(handle: Wrapper<ServerPublicParams>): Uint8Array;
569
- export function ServerPublicParams_VerifySignature(serverPublicParams: Wrapper<ServerPublicParams>, message: Uint8Array, notarySignature: Uint8Array): void;
570
- export function ServerSecretParams_Deserialize(buffer: Uint8Array): ServerSecretParams;
571
- export function ServerSecretParams_GenerateDeterministic(randomness: Uint8Array): ServerSecretParams;
572
- export function ServerSecretParams_GetPublicParams(params: Wrapper<ServerSecretParams>): ServerPublicParams;
573
- export function ServerSecretParams_IssueAuthCredentialWithPniZkcDeterministic(serverSecretParams: Wrapper<ServerSecretParams>, randomness: Uint8Array, aci: Uint8Array, pni: Uint8Array, redemptionTime: Timestamp): Uint8Array;
574
- export function ServerSecretParams_IssueExpiringProfileKeyCredentialDeterministic(serverSecretParams: Wrapper<ServerSecretParams>, randomness: Uint8Array, request: Serialized<ProfileKeyCredentialRequest>, userId: Uint8Array, commitment: Serialized<ProfileKeyCommitment>, expirationInSeconds: Timestamp): Serialized<ExpiringProfileKeyCredentialResponse>;
575
- export function ServerSecretParams_IssueReceiptCredentialDeterministic(serverSecretParams: Wrapper<ServerSecretParams>, randomness: Uint8Array, request: Serialized<ReceiptCredentialRequest>, receiptExpirationTime: Timestamp, receiptLevel: bigint): Serialized<ReceiptCredentialResponse>;
576
- export function ServerSecretParams_Serialize(handle: Wrapper<ServerSecretParams>): Uint8Array;
577
- export function ServerSecretParams_SignDeterministic(params: Wrapper<ServerSecretParams>, randomness: Uint8Array, message: Uint8Array): Uint8Array;
578
- export function ServerSecretParams_VerifyAuthCredentialPresentation(serverSecretParams: Wrapper<ServerSecretParams>, groupPublicParams: Serialized<GroupPublicParams>, presentationBytes: Uint8Array, currentTimeInSeconds: Timestamp): void;
579
- export function ServerSecretParams_VerifyProfileKeyCredentialPresentation(serverSecretParams: Wrapper<ServerSecretParams>, groupPublicParams: Serialized<GroupPublicParams>, presentationBytes: Uint8Array, currentTimeInSeconds: Timestamp): void;
580
- export function ServerSecretParams_VerifyReceiptCredentialPresentation(serverSecretParams: Wrapper<ServerSecretParams>, presentation: Serialized<ReceiptCredentialPresentation>): void;
581
- export function ServiceId_ParseFromServiceIdBinary(input: Uint8Array): Uint8Array;
582
- export function ServiceId_ParseFromServiceIdString(input: string): Uint8Array;
583
- export function ServiceId_ServiceIdBinary(value: Uint8Array): Uint8Array;
584
- export function ServiceId_ServiceIdLog(value: Uint8Array): string;
585
- export function ServiceId_ServiceIdString(value: Uint8Array): string;
586
- export function SessionBuilder_ProcessPreKeyBundle(bundle: Wrapper<PreKeyBundle>, protocolAddress: Wrapper<ProtocolAddress>, sessionStore: SessionStore, identityKeyStore: IdentityKeyStore, now: Timestamp): Promise<void>;
587
- export function SessionCipher_DecryptPreKeySignalMessage(message: Wrapper<PreKeySignalMessage>, protocolAddress: Wrapper<ProtocolAddress>, sessionStore: SessionStore, identityKeyStore: IdentityKeyStore, prekeyStore: PreKeyStore, signedPrekeyStore: SignedPreKeyStore, kyberPrekeyStore: KyberPreKeyStore): Promise<Uint8Array>;
588
- export function SessionCipher_DecryptSignalMessage(message: Wrapper<SignalMessage>, protocolAddress: Wrapper<ProtocolAddress>, sessionStore: SessionStore, identityKeyStore: IdentityKeyStore): Promise<Uint8Array>;
589
- export function SessionCipher_EncryptMessage(ptext: Uint8Array, protocolAddress: Wrapper<ProtocolAddress>, sessionStore: SessionStore, identityKeyStore: IdentityKeyStore, now: Timestamp): Promise<CiphertextMessage>;
590
- export function SessionRecord_ArchiveCurrentState(sessionRecord: Wrapper<SessionRecord>): void;
591
- export function SessionRecord_CurrentRatchetKeyMatches(s: Wrapper<SessionRecord>, key: Wrapper<PublicKey>): boolean;
592
- export function SessionRecord_Deserialize(data: Uint8Array): SessionRecord;
593
- export function SessionRecord_GetLocalRegistrationId(obj: Wrapper<SessionRecord>): number;
594
- export function SessionRecord_GetRemoteRegistrationId(obj: Wrapper<SessionRecord>): number;
595
- export function SessionRecord_HasUsableSenderChain(s: Wrapper<SessionRecord>, now: Timestamp): boolean;
596
- export function SessionRecord_Serialize(obj: Wrapper<SessionRecord>): Uint8Array;
597
- export function SgxClientState_CompleteHandshake(cli: Wrapper<SgxClientState>, handshakeReceived: Uint8Array): void;
598
- export function SgxClientState_EstablishedRecv(cli: Wrapper<SgxClientState>, receivedCiphertext: Uint8Array): Uint8Array;
599
- export function SgxClientState_EstablishedSend(cli: Wrapper<SgxClientState>, plaintextToSend: Uint8Array): Uint8Array;
600
- export function SgxClientState_InitialRequest(obj: Wrapper<SgxClientState>): Uint8Array;
601
- export function SignalMedia_CheckAvailable(): void;
602
- export function SignalMessage_Deserialize(data: Uint8Array): SignalMessage;
603
- export function SignalMessage_GetBody(obj: Wrapper<SignalMessage>): Uint8Array;
604
- export function SignalMessage_GetCounter(obj: Wrapper<SignalMessage>): number;
605
- export function SignalMessage_GetMessageVersion(obj: Wrapper<SignalMessage>): number;
606
- export function SignalMessage_GetPqRatchet(msg: Wrapper<SignalMessage>): Uint8Array;
607
- export function SignalMessage_GetSerialized(obj: Wrapper<SignalMessage>): Uint8Array;
608
- 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;
609
- export function SignalMessage_VerifyMac(msg: Wrapper<SignalMessage>, senderIdentityKey: Wrapper<PublicKey>, receiverIdentityKey: Wrapper<PublicKey>, macKey: Uint8Array): boolean;
610
- export function SignedPreKeyRecord_Deserialize(data: Uint8Array): SignedPreKeyRecord;
611
- export function SignedPreKeyRecord_GetId(obj: Wrapper<SignedPreKeyRecord>): number;
612
- export function SignedPreKeyRecord_GetPrivateKey(obj: Wrapper<SignedPreKeyRecord>): PrivateKey;
613
- export function SignedPreKeyRecord_GetPublicKey(obj: Wrapper<SignedPreKeyRecord>): PublicKey;
614
- export function SignedPreKeyRecord_GetSignature(obj: Wrapper<SignedPreKeyRecord>): Uint8Array;
615
- export function SignedPreKeyRecord_GetTimestamp(obj: Wrapper<SignedPreKeyRecord>): Timestamp;
616
- export function SignedPreKeyRecord_New(id: number, timestamp: Timestamp, pubKey: Wrapper<PublicKey>, privKey: Wrapper<PrivateKey>, signature: Uint8Array): SignedPreKeyRecord;
617
- export function SignedPreKeyRecord_Serialize(obj: Wrapper<SignedPreKeyRecord>): Uint8Array;
618
- export function TESTING_BridgedStringMap_dump_to_json(map: Wrapper<BridgedStringMap>): string;
619
- export function TESTING_CdsiLookupErrorConvert(errorDescription: string): void;
620
- export function TESTING_CdsiLookupResponseConvert(asyncRuntime: Wrapper<TokioAsyncContext>): CancellablePromise<LookupResponse>;
621
- export function TESTING_ChatConnectErrorConvert(errorDescription: string): void;
622
- export function TESTING_ChatRequestGetBody(request: Wrapper<HttpRequest>): Uint8Array;
623
- export function TESTING_ChatRequestGetHeaderNames(request: Wrapper<HttpRequest>): string[];
624
- export function TESTING_ChatRequestGetHeaderValue(request: Wrapper<HttpRequest>, headerName: string): string;
625
- export function TESTING_ChatRequestGetMethod(request: Wrapper<HttpRequest>): string;
626
- export function TESTING_ChatRequestGetPath(request: Wrapper<HttpRequest>): string;
627
- export function TESTING_ChatResponseConvert(bodyPresent: boolean): ChatResponse;
628
- export function TESTING_ChatSendErrorConvert(errorDescription: string): void;
629
- export function TESTING_ConnectionManager_isUsingProxy(manager: Wrapper<ConnectionManager>): number;
630
- export function TESTING_ConnectionManager_newLocalOverride(userAgent: string, chatPort: number, cdsiPort: number, svr2Port: number, svrBPort: number, rootCertificateDer: Uint8Array): ConnectionManager;
631
- export function TESTING_ConvertOptionalUuid(present: boolean): Uuid | null;
632
- export function TESTING_CreateOTP(username: string, secret: Uint8Array): string;
633
- export function TESTING_CreateOTPFromBase64(username: string, secret: string): string;
634
- export function TESTING_ErrorOnBorrowAsync(_input: null): Promise<void>;
635
- export function TESTING_ErrorOnBorrowIo(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _input: null): CancellablePromise<void>;
636
- export function TESTING_ErrorOnBorrowSync(_input: null): void;
637
- export function TESTING_ErrorOnReturnAsync(_needsCleanup: null): Promise<null>;
638
- export function TESTING_ErrorOnReturnIo(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _needsCleanup: null): CancellablePromise<null>;
639
- export function TESTING_ErrorOnReturnSync(_needsCleanup: null): null;
640
- export function TESTING_FakeChatConnection_Create(tokio: Wrapper<TokioAsyncContext>, listener: ChatListener, alertsJoinedByNewlines: string): FakeChatConnection;
641
- export function TESTING_FakeChatConnection_TakeAuthenticatedChat(chat: Wrapper<FakeChatConnection>): AuthenticatedChatConnection;
642
- export function TESTING_FakeChatConnection_TakeRemote(chat: Wrapper<FakeChatConnection>): FakeChatRemoteEnd;
643
- export function TESTING_FakeChatConnection_TakeUnauthenticatedChat(chat: Wrapper<FakeChatConnection>): UnauthenticatedChatConnection;
644
- export function TESTING_FakeChatRemoteEnd_InjectConnectionInterrupted(chat: Wrapper<FakeChatRemoteEnd>): void;
645
- export function TESTING_FakeChatRemoteEnd_ReceiveIncomingRequest(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<FakeChatRemoteEnd>): CancellablePromise<[HttpRequest, bigint] | null>;
646
- export function TESTING_FakeChatRemoteEnd_SendRawServerRequest(chat: Wrapper<FakeChatRemoteEnd>, bytes: Uint8Array): void;
647
- export function TESTING_FakeChatRemoteEnd_SendRawServerResponse(chat: Wrapper<FakeChatRemoteEnd>, bytes: Uint8Array): void;
648
- export function TESTING_FakeChatRemoteEnd_SendServerResponse(chat: Wrapper<FakeChatRemoteEnd>, response: Wrapper<FakeChatResponse>): void;
649
- export function TESTING_FakeChatResponse_Create(id: bigint, status: number, message: string, headers: string[], body: Uint8Array | null): FakeChatResponse;
650
- export function TESTING_FakeChatServer_Create(): FakeChatServer;
651
- export function TESTING_FakeChatServer_GetNextRemote(asyncRuntime: Wrapper<TokioAsyncContext>, server: Wrapper<FakeChatServer>): CancellablePromise<FakeChatRemoteEnd>;
652
- export function TESTING_FakeRegistrationSession_CreateSession(asyncRuntime: Wrapper<TokioAsyncContext>, createSession: RegistrationCreateSessionRequest, chat: Wrapper<FakeChatServer>): CancellablePromise<RegistrationService>;
653
- export function TESTING_FutureCancellationCounter_Create(initialValue: number): TestingFutureCancellationCounter;
654
- export function TESTING_FutureCancellationCounter_WaitForCount(asyncRuntime: Wrapper<TokioAsyncContext>, count: Wrapper<TestingFutureCancellationCounter>, target: number): CancellablePromise<void>;
655
- export function TESTING_FutureFailure(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _input: number): CancellablePromise<number>;
656
- export function TESTING_FutureIncrementOnCancel(asyncRuntime: Wrapper<TokioAsyncContext>, _guard: TestingFutureCancellationGuard): CancellablePromise<void>;
657
- export function TESTING_FutureProducesOtherPointerType(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, input: string): CancellablePromise<OtherTestingHandleType>;
658
- export function TESTING_FutureProducesPointerType(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, input: number): CancellablePromise<TestingHandleType>;
659
- export function TESTING_FutureSuccess(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, input: number): CancellablePromise<number>;
660
- export function TESTING_InputStreamReadIntoZeroLengthSlice(capsAlphabetInput: InputStream): Promise<Uint8Array>;
661
- export function TESTING_JoinStringArray(array: string[], joinWith: string): string;
662
- export function TESTING_KeyTransChatSendError(): void;
663
- export function TESTING_KeyTransFatalVerificationFailure(): void;
664
- export function TESTING_KeyTransNonFatalVerificationFailure(): void;
665
- export function TESTING_NonSuspendingBackgroundThreadRuntime_New(): NonSuspendingBackgroundThreadRuntime;
666
- export function TESTING_OtherTestingHandleType_getValue(handle: Wrapper<OtherTestingHandleType>): string;
667
- export function TESTING_PanicInBodyAsync(_input: null): Promise<void>;
668
- export function TESTING_PanicInBodyIo(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _input: null): CancellablePromise<void>;
669
- export function TESTING_PanicInBodySync(_input: null): void;
670
- export function TESTING_PanicOnBorrowAsync(_input: null): Promise<void>;
671
- export function TESTING_PanicOnBorrowIo(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _input: null): CancellablePromise<void>;
672
- export function TESTING_PanicOnBorrowSync(_input: null): void;
673
- export function TESTING_PanicOnLoadAsync(_needsCleanup: null, _input: null): Promise<void>;
674
- export function TESTING_PanicOnLoadIo(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _needsCleanup: null, _input: null): CancellablePromise<void>;
675
- export function TESTING_PanicOnLoadSync(_needsCleanup: null, _input: null): void;
676
- export function TESTING_PanicOnReturnAsync(_needsCleanup: null): Promise<null>;
677
- export function TESTING_PanicOnReturnIo(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _needsCleanup: null): CancellablePromise<null>;
678
- export function TESTING_PanicOnReturnSync(_needsCleanup: null): null;
679
- export function TESTING_ProcessBytestringArray(input: Uint8Array[]): Uint8Array[];
680
- export function TESTING_RegisterAccountResponse_CreateTestValue(): RegisterAccountResponse;
681
- export function TESTING_RegistrationService_CheckSvr2CredentialsErrorConvert(errorDescription: string): void;
682
- export function TESTING_RegistrationService_CheckSvr2CredentialsResponseConvert(): CheckSvr2CredentialsResponse;
683
- export function TESTING_RegistrationService_CreateSessionErrorConvert(errorDescription: string): void;
684
- export function TESTING_RegistrationService_RegisterAccountErrorConvert(errorDescription: string): void;
685
- export function TESTING_RegistrationService_RequestVerificationCodeErrorConvert(errorDescription: string): void;
686
- export function TESTING_RegistrationService_ResumeSessionErrorConvert(errorDescription: string): void;
687
- export function TESTING_RegistrationService_SubmitVerificationErrorConvert(errorDescription: string): void;
688
- export function TESTING_RegistrationService_UpdateSessionErrorConvert(errorDescription: string): void;
689
- export function TESTING_RegistrationSessionInfoConvert(): RegistrationSession;
690
- export function TESTING_ReturnPair(): [number, string];
691
- export function TESTING_ReturnStringArray(): string[];
692
- export function TESTING_RoundTripI32(input: number): number;
693
- export function TESTING_RoundTripU16(input: number): number;
694
- export function TESTING_RoundTripU32(input: number): number;
695
- export function TESTING_RoundTripU64(input: bigint): bigint;
696
- export function TESTING_RoundTripU8(input: number): number;
697
- export function TESTING_ServerMessageAck_Create(): ServerMessageAck;
698
- export function TESTING_SignedPublicPreKey_CheckBridgesCorrectly(sourcePublicKey: Wrapper<PublicKey>, signedPreKey: SignedPublicPreKey): void;
699
- export function TESTING_TestingHandleType_getValue(handle: Wrapper<TestingHandleType>): number;
700
- export function TESTING_TokioAsyncContext_FutureSuccessBytes(asyncRuntime: Wrapper<TokioAsyncContext>, count: number): CancellablePromise<Uint8Array>;
701
- export function TESTING_TokioAsyncContext_NewSingleThreaded(): TokioAsyncContext;
702
- export function TESTING_TokioAsyncFuture(asyncRuntime: Wrapper<TokioAsyncContext>, input: number): CancellablePromise<number>;
703
- export function TestingSemaphore_AddPermits(semaphore: Wrapper<TestingSemaphore>, permits: number): void;
704
- export function TestingSemaphore_New(initial: number): TestingSemaphore;
705
- export function TestingValueHolder_Get(holder: Wrapper<TestingValueHolder>): number;
706
- export function TestingValueHolder_New(value: number): TestingValueHolder;
707
- export function TokioAsyncContext_cancel(context: Wrapper<TokioAsyncContext>, rawCancellationId: bigint): void;
708
- export function TokioAsyncContext_new(): TokioAsyncContext;
709
- export function UnauthenticatedChatConnection_connect(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>, languages: string[]): CancellablePromise<UnauthenticatedChatConnection>;
710
- export function UnauthenticatedChatConnection_disconnect(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<UnauthenticatedChatConnection>): CancellablePromise<void>;
711
- export function UnauthenticatedChatConnection_info(chat: Wrapper<UnauthenticatedChatConnection>): ChatConnectionInfo;
712
- export function UnauthenticatedChatConnection_init_listener(chat: Wrapper<UnauthenticatedChatConnection>, listener: ChatListener): void;
713
- export function UnauthenticatedChatConnection_look_up_username_hash(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<UnauthenticatedChatConnection>, hash: Uint8Array): CancellablePromise<Uuid | null>;
714
- export function UnauthenticatedChatConnection_send(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<UnauthenticatedChatConnection>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): CancellablePromise<ChatResponse>;
715
- export function UnauthenticatedChatConnection_send_multi_recipient_message(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<UnauthenticatedChatConnection>, payload: Uint8Array, timestamp: Timestamp, auth: Uint8Array|null, onlineOnly: boolean, isUrgent: boolean): CancellablePromise<Uint8Array[]>;
716
- export function UnidentifiedSenderMessageContent_Deserialize(data: Uint8Array): UnidentifiedSenderMessageContent;
717
- export function UnidentifiedSenderMessageContent_GetContentHint(m: Wrapper<UnidentifiedSenderMessageContent>): number;
718
- export function UnidentifiedSenderMessageContent_GetContents(obj: Wrapper<UnidentifiedSenderMessageContent>): Uint8Array;
719
- export function UnidentifiedSenderMessageContent_GetGroupId(obj: Wrapper<UnidentifiedSenderMessageContent>): Uint8Array | null;
720
- export function UnidentifiedSenderMessageContent_GetMsgType(m: Wrapper<UnidentifiedSenderMessageContent>): number;
721
- export function UnidentifiedSenderMessageContent_GetSenderCert(m: Wrapper<UnidentifiedSenderMessageContent>): SenderCertificate;
722
- export function UnidentifiedSenderMessageContent_New(message: Wrapper<CiphertextMessage>, sender: Wrapper<SenderCertificate>, contentHint: number, groupId: Uint8Array | null): UnidentifiedSenderMessageContent;
723
- export function UnidentifiedSenderMessageContent_Serialize(obj: Wrapper<UnidentifiedSenderMessageContent>): Uint8Array;
724
- export function UsernameLink_Create(username: string, entropy: Uint8Array | null): Uint8Array;
725
- export function UsernameLink_DecryptUsername(entropy: Uint8Array, encryptedUsername: Uint8Array): string;
726
- export function Username_CandidatesFrom(nickname: string, minLen: number, maxLen: number): string[];
727
- export function Username_Hash(username: string): Uint8Array;
728
- export function Username_HashFromParts(nickname: string, discriminator: string, minLen: number, maxLen: number): Uint8Array;
729
- export function Username_Proof(username: string, randomness: Uint8Array): Uint8Array;
730
- export function Username_Verify(proof: Uint8Array, hash: Uint8Array): void;
731
- export function UuidCiphertext_CheckValidContents(buffer: Uint8Array): void;
732
- export function ValidatingMac_Finalize(mac: Wrapper<ValidatingMac>): number;
733
- export function ValidatingMac_Initialize(key: Uint8Array, chunkSize: number, digests: Uint8Array): ValidatingMac | null;
734
- export function ValidatingMac_Update(mac: Wrapper<ValidatingMac>, bytes: Uint8Array, offset: number, length: number): number;
735
- export function WebpSanitizer_Sanitize(input: SyncInputStream): void;
736
- export function initLogger(maxLevel: LogLevel, callback: (level: LogLevel, target: string, file: string | null, line: number | null, message: string) => void): void
737
- export function test_only_fn_returns_123(): number;
738
- interface Aes256GcmSiv { readonly __type: unique symbol; }
739
- interface AuthenticatedChatConnection { readonly __type: unique symbol; }
740
- interface BackupJsonExporter { readonly __type: unique symbol; }
741
- interface BackupRestoreResponse { readonly __type: unique symbol; }
742
- interface BackupStoreResponse { readonly __type: unique symbol; }
743
- interface BridgedStringMap { readonly __type: unique symbol; }
744
- interface CdsiLookup { readonly __type: unique symbol; }
745
- interface ChatConnectionInfo { readonly __type: unique symbol; }
746
- interface CiphertextMessage { readonly __type: unique symbol; }
747
- interface ComparableBackup { readonly __type: unique symbol; }
748
- interface ConnectionManager { readonly __type: unique symbol; }
749
- interface ConnectionProxyConfig { readonly __type: unique symbol; }
750
- interface DecryptionErrorMessage { readonly __type: unique symbol; }
751
- interface ExpiringProfileKeyCredential { readonly __type: unique symbol; }
752
- interface ExpiringProfileKeyCredentialResponse { readonly __type: unique symbol; }
753
- interface FakeChatConnection { readonly __type: unique symbol; }
754
- interface FakeChatRemoteEnd { readonly __type: unique symbol; }
755
- interface FakeChatResponse { readonly __type: unique symbol; }
756
- interface FakeChatServer { readonly __type: unique symbol; }
757
- interface Fingerprint { readonly __type: unique symbol; }
758
- interface GroupMasterKey { readonly __type: unique symbol; }
759
- interface GroupPublicParams { readonly __type: unique symbol; }
760
- interface GroupSecretParams { readonly __type: unique symbol; }
761
- interface HsmEnclaveClient { readonly __type: unique symbol; }
762
- interface HttpRequest { readonly __type: unique symbol; }
763
- interface IncrementalMac { readonly __type: unique symbol; }
764
- interface KyberKeyPair { readonly __type: unique symbol; }
765
- interface KyberPreKeyRecord { readonly __type: unique symbol; }
766
- interface KyberPublicKey { readonly __type: unique symbol; }
767
- interface KyberSecretKey { readonly __type: unique symbol; }
768
- interface LookupRequest { readonly __type: unique symbol; }
769
- interface MessageBackupKey { readonly __type: unique symbol; }
770
- interface NonSuspendingBackgroundThreadRuntime { readonly __type: unique symbol; }
771
- interface OnlineBackupValidator { readonly __type: unique symbol; }
772
- interface OtherTestingHandleType { readonly __type: unique symbol; }
773
- interface PlaintextContent { readonly __type: unique symbol; }
774
- interface PreKeyBundle { readonly __type: unique symbol; }
775
- interface PreKeyRecord { readonly __type: unique symbol; }
776
- interface PreKeySignalMessage { readonly __type: unique symbol; }
777
- interface PrivateKey { readonly __type: unique symbol; }
778
- interface ProfileKey { readonly __type: unique symbol; }
779
- interface ProfileKeyCiphertext { readonly __type: unique symbol; }
780
- interface ProfileKeyCommitment { readonly __type: unique symbol; }
781
- interface ProfileKeyCredentialRequest { readonly __type: unique symbol; }
782
- interface ProfileKeyCredentialRequestContext { readonly __type: unique symbol; }
783
- interface ProtocolAddress { readonly __type: unique symbol; }
784
- interface PublicKey { readonly __type: unique symbol; }
785
- interface ReceiptCredential { readonly __type: unique symbol; }
786
- interface ReceiptCredentialPresentation { readonly __type: unique symbol; }
787
- interface ReceiptCredentialRequest { readonly __type: unique symbol; }
788
- interface ReceiptCredentialRequestContext { readonly __type: unique symbol; }
789
- interface ReceiptCredentialResponse { readonly __type: unique symbol; }
790
- interface RegisterAccountRequest { readonly __type: unique symbol; }
791
- interface RegisterAccountResponse { readonly __type: unique symbol; }
792
- interface RegistrationAccountAttributes { readonly __type: unique symbol; }
793
- interface RegistrationService { readonly __type: unique symbol; }
794
- interface RegistrationSession { readonly __type: unique symbol; }
795
- interface SanitizedMetadata { readonly __type: unique symbol; }
796
- interface SealedSenderDecryptionResult { readonly __type: unique symbol; }
797
- interface SenderCertificate { readonly __type: unique symbol; }
798
- interface SenderKeyDistributionMessage { readonly __type: unique symbol; }
799
- interface SenderKeyMessage { readonly __type: unique symbol; }
800
- interface SenderKeyRecord { readonly __type: unique symbol; }
801
- interface ServerCertificate { readonly __type: unique symbol; }
802
- interface ServerMessageAck { readonly __type: unique symbol; }
803
- interface ServerPublicParams { readonly __type: unique symbol; }
804
- interface ServerSecretParams { readonly __type: unique symbol; }
805
- interface SessionRecord { readonly __type: unique symbol; }
806
- interface SgxClientState { readonly __type: unique symbol; }
807
- interface SignalMessage { readonly __type: unique symbol; }
808
- interface SignedPreKeyRecord { readonly __type: unique symbol; }
809
- interface TestingFutureCancellationCounter { readonly __type: unique symbol; }
810
- interface TestingHandleType { readonly __type: unique symbol; }
811
- interface TestingSemaphore { readonly __type: unique symbol; }
812
- interface TestingValueHolder { readonly __type: unique symbol; }
813
- interface TokioAsyncContext { readonly __type: unique symbol; }
814
- interface UnauthenticatedChatConnection { readonly __type: unique symbol; }
815
- interface UnidentifiedSenderMessageContent { readonly __type: unique symbol; }
816
- interface UuidCiphertext { readonly __type: unique symbol; }
817
- interface ValidatingMac { readonly __type: unique symbol; }