@signalapp/libsignal-client 0.69.0 → 0.69.1

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 CHANGED
@@ -195,6 +195,8 @@ export function BackupKey_DeriveLocalBackupMetadataKey(backupKey: Buffer): Buffe
195
195
  export function BackupKey_DeriveMediaEncryptionKey(backupKey: Buffer, mediaId: Buffer): Buffer;
196
196
  export function BackupKey_DeriveMediaId(backupKey: Buffer, mediaName: string): Buffer;
197
197
  export function BackupKey_DeriveThumbnailTransitEncryptionKey(backupKey: Buffer, mediaId: Buffer): Buffer;
198
+ export function BridgedStringMap_insert(map: Wrapper<BridgedStringMap>, key: string, value: string): void;
199
+ export function BridgedStringMap_new(initialCapacity: number): BridgedStringMap;
198
200
  export function CallLinkAuthCredentialPresentation_CheckValidContents(presentationBytes: Buffer): void;
199
201
  export function CallLinkAuthCredentialPresentation_GetUserId(presentationBytes: Buffer): Serialized<UuidCiphertext>;
200
202
  export function CallLinkAuthCredentialPresentation_Verify(presentationBytes: Buffer, now: Timestamp, serverParamsBytes: Buffer, callLinkParamsBytes: Buffer): void;
@@ -207,6 +209,7 @@ export function CallLinkPublicParams_CheckValidContents(paramsBytes: Buffer): vo
207
209
  export function CallLinkSecretParams_CheckValidContents(paramsBytes: Buffer): void;
208
210
  export function CallLinkSecretParams_DecryptUserId(paramsBytes: Buffer, userId: Serialized<UuidCiphertext>): Buffer;
209
211
  export function CallLinkSecretParams_DeriveFromRootKey(rootKey: Buffer): Buffer;
212
+ export function CallLinkSecretParams_EncryptUserId(paramsBytes: Buffer, userId: Buffer): Serialized<UuidCiphertext>;
210
213
  export function CallLinkSecretParams_GetPublicParams(paramsBytes: Buffer): Buffer;
211
214
  export function Cds2ClientState_New(mrenclave: Buffer, attestationMsg: Buffer, currentTimestamp: Timestamp): SgxClientState;
212
215
  export function CdsiLookup_complete(asyncRuntime: Wrapper<TokioAsyncContext>, lookup: Wrapper<CdsiLookup>): CancellablePromise<LookupResponse>;
@@ -222,12 +225,13 @@ export function ComparableBackup_GetComparableString(backup: Wrapper<ComparableB
222
225
  export function ComparableBackup_GetUnknownFields(backup: Wrapper<ComparableBackup>): string[];
223
226
  export function ComparableBackup_ReadUnencrypted(stream: InputStream, len: bigint, purpose: number): Promise<ComparableBackup>;
224
227
  export function ConnectionManager_clear_proxy(connectionManager: Wrapper<ConnectionManager>): void;
225
- export function ConnectionManager_new(environment: number, userAgent: string): ConnectionManager;
228
+ export function ConnectionManager_new(environment: number, userAgent: string, remoteConfig: Wrapper<BridgedStringMap>): ConnectionManager;
226
229
  export function ConnectionManager_on_network_change(connectionManager: Wrapper<ConnectionManager>): void;
227
230
  export function ConnectionManager_set_censorship_circumvention_enabled(connectionManager: Wrapper<ConnectionManager>, enabled: boolean): void;
228
231
  export function ConnectionManager_set_invalid_proxy(connectionManager: Wrapper<ConnectionManager>): void;
229
232
  export function ConnectionManager_set_ipv6_enabled(connectionManager: Wrapper<ConnectionManager>, ipv6Enabled: boolean): void;
230
233
  export function ConnectionManager_set_proxy(connectionManager: Wrapper<ConnectionManager>, proxy: Wrapper<ConnectionProxyConfig>): void;
234
+ export function ConnectionManager_set_remote_config(connectionManager: Wrapper<ConnectionManager>, remoteConfig: Wrapper<BridgedStringMap>): void;
231
235
  export function ConnectionProxyConfig_new(scheme: string, host: string, port: number, username: string | null, password: string | null): ConnectionProxyConfig;
232
236
  export function CreateCallLinkCredentialPresentation_CheckValidContents(presentationBytes: Buffer): void;
233
237
  export function CreateCallLinkCredentialPresentation_Verify(presentationBytes: Buffer, roomId: Buffer, now: Timestamp, serverParamsBytes: Buffer, callLinkParamsBytes: Buffer): void;
@@ -277,6 +281,7 @@ export function GroupSecretParams_GetMasterKey(params: Serialized<GroupSecretPar
277
281
  export function GroupSecretParams_GetPublicParams(params: Serialized<GroupSecretParams>): Serialized<GroupPublicParams>;
278
282
  export function GroupSendDerivedKeyPair_CheckValidContents(bytes: Buffer): void;
279
283
  export function GroupSendDerivedKeyPair_ForExpiration(expiration: Timestamp, serverParams: Wrapper<ServerSecretParams>): Buffer;
284
+ export function GroupSendEndorsement_CallLinkParams_ToToken(endorsement: Buffer, callLinkSecretParamsSerialized: Buffer): Buffer;
280
285
  export function GroupSendEndorsement_CheckValidContents(bytes: Buffer): void;
281
286
  export function GroupSendEndorsement_Combine(endorsements: Buffer[]): Buffer;
282
287
  export function GroupSendEndorsement_Remove(endorsement: Buffer, toRemove: Buffer): Buffer;
@@ -534,6 +539,7 @@ export function SignedPreKeyRecord_GetSignature(obj: Wrapper<SignedPreKeyRecord>
534
539
  export function SignedPreKeyRecord_GetTimestamp(obj: Wrapper<SignedPreKeyRecord>): Timestamp;
535
540
  export function SignedPreKeyRecord_New(id: number, timestamp: Timestamp, pubKey: Wrapper<PublicKey>, privKey: Wrapper<PrivateKey>, signature: Buffer): SignedPreKeyRecord;
536
541
  export function SignedPreKeyRecord_Serialize(obj: Wrapper<SignedPreKeyRecord>): Buffer;
542
+ export function TESTING_BridgedStringMap_dump_to_json(map: Wrapper<BridgedStringMap>): string;
537
543
  export function TESTING_CdsiLookupErrorConvert(errorDescription: string): void;
538
544
  export function TESTING_CdsiLookupResponseConvert(asyncRuntime: Wrapper<TokioAsyncContext>): CancellablePromise<LookupResponse>;
539
545
  export function TESTING_ChatConnectErrorConvert(errorDescription: string): void;
@@ -560,13 +566,19 @@ export function TESTING_FakeChatRemoteEnd_InjectConnectionInterrupted(chat: Wrap
560
566
  export function TESTING_FakeChatRemoteEnd_ReceiveIncomingRequest(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<FakeChatRemoteEnd>): CancellablePromise<FakeChatSentRequest | null>;
561
567
  export function TESTING_FakeChatRemoteEnd_SendRawServerRequest(chat: Wrapper<FakeChatRemoteEnd>, bytes: Buffer): void;
562
568
  export function TESTING_FakeChatRemoteEnd_SendRawServerResponse(chat: Wrapper<FakeChatRemoteEnd>, bytes: Buffer): void;
569
+ export function TESTING_FakeChatRemoteEnd_SendServerResponse(chat: Wrapper<FakeChatRemoteEnd>, response: Wrapper<FakeChatResponse>): void;
570
+ export function TESTING_FakeChatResponse_Create(id: bigint, status: number, message: string, headers: string[], body: Buffer | null): FakeChatResponse;
563
571
  export function TESTING_FakeChatSentRequest_RequestId(request: Wrapper<FakeChatSentRequest>): bigint;
564
572
  export function TESTING_FakeChatSentRequest_TakeHttpRequest(request: Wrapper<FakeChatSentRequest>): HttpRequest;
573
+ export function TESTING_FakeChatServer_Create(): FakeChatServer;
574
+ export function TESTING_FakeChatServer_GetNextRemote(asyncRuntime: Wrapper<TokioAsyncContext>, server: Wrapper<FakeChatServer>): CancellablePromise<FakeChatRemoteEnd>;
575
+ export function TESTING_FakeRegistrationSession_CreateSession(asyncRuntime: Wrapper<TokioAsyncContext>, createSession: CreateSession, chat: Wrapper<FakeChatServer>): CancellablePromise<RegistrationService>;
565
576
  export function TESTING_FutureFailure(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _input: number): CancellablePromise<number>;
566
577
  export function TESTING_FutureProducesOtherPointerType(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, input: string): CancellablePromise<OtherTestingHandleType>;
567
578
  export function TESTING_FutureProducesPointerType(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, input: number): CancellablePromise<TestingHandleType>;
568
579
  export function TESTING_FutureSuccess(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, input: number): CancellablePromise<number>;
569
580
  export function TESTING_InputStreamReadIntoZeroLengthSlice(capsAlphabetInput: InputStream): Promise<Buffer>;
581
+ export function TESTING_JoinStringArray(array: string[], joinWith: string): string;
570
582
  export function TESTING_NonSuspendingBackgroundThreadRuntime_New(): NonSuspendingBackgroundThreadRuntime;
571
583
  export function TESTING_OnlyCompletesByCancellation(asyncRuntime: Wrapper<TokioAsyncContext>): CancellablePromise<void>;
572
584
  export function TESTING_OtherTestingHandleType_getValue(handle: Wrapper<OtherTestingHandleType>): string;
@@ -628,6 +640,7 @@ export function initLogger(maxLevel: LogLevel, callback: (level: LogLevel, targe
628
640
  export function test_only_fn_returns_123(): number;
629
641
  interface Aes256GcmSiv { readonly __type: unique symbol; }
630
642
  interface AuthenticatedChatConnection { readonly __type: unique symbol; }
643
+ interface BridgedStringMap { readonly __type: unique symbol; }
631
644
  interface CdsiLookup { readonly __type: unique symbol; }
632
645
  interface ChatConnectionInfo { readonly __type: unique symbol; }
633
646
  interface CiphertextMessage { readonly __type: unique symbol; }
@@ -640,7 +653,9 @@ interface ExpiringProfileKeyCredential { readonly __type: unique symbol; }
640
653
  interface ExpiringProfileKeyCredentialResponse { readonly __type: unique symbol; }
641
654
  interface FakeChatConnection { readonly __type: unique symbol; }
642
655
  interface FakeChatRemoteEnd { readonly __type: unique symbol; }
656
+ interface FakeChatResponse { readonly __type: unique symbol; }
643
657
  interface FakeChatSentRequest { readonly __type: unique symbol; }
658
+ interface FakeChatServer { readonly __type: unique symbol; }
644
659
  interface Fingerprint { readonly __type: unique symbol; }
645
660
  interface GroupMasterKey { readonly __type: unique symbol; }
646
661
  interface GroupPublicParams { readonly __type: unique symbol; }