@signalapp/libsignal-client 0.67.3 → 0.67.6

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
@@ -168,6 +168,7 @@ export function AuthenticatedChatConnection_connect(asyncRuntime: Wrapper<TokioA
168
168
  export function AuthenticatedChatConnection_disconnect(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<AuthenticatedChatConnection>): CancellablePromise<void>;
169
169
  export function AuthenticatedChatConnection_info(chat: Wrapper<AuthenticatedChatConnection>): ChatConnectionInfo;
170
170
  export function AuthenticatedChatConnection_init_listener(chat: Wrapper<AuthenticatedChatConnection>, listener: ChatListener): void;
171
+ export function AuthenticatedChatConnection_preconnect(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>): CancellablePromise<void>;
171
172
  export function AuthenticatedChatConnection_send(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<AuthenticatedChatConnection>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): CancellablePromise<ChatResponse>;
172
173
  export function BackupAuthCredentialPresentation_CheckValidContents(presentationBytes: Buffer): void;
173
174
  export function BackupAuthCredentialPresentation_GetBackupId(presentationBytes: Buffer): Buffer;
@@ -519,14 +520,16 @@ export function SignedPreKeyRecord_New(id: number, timestamp: Timestamp, pubKey:
519
520
  export function SignedPreKeyRecord_Serialize(obj: Wrapper<SignedPreKeyRecord>): Buffer;
520
521
  export function TESTING_CdsiLookupErrorConvert(errorDescription: string): void;
521
522
  export function TESTING_CdsiLookupResponseConvert(asyncRuntime: Wrapper<TokioAsyncContext>): CancellablePromise<LookupResponse>;
523
+ export function TESTING_ChatConnectErrorConvert(errorDescription: string): void;
522
524
  export function TESTING_ChatRequestGetBody(request: Wrapper<HttpRequest>): Buffer;
525
+ export function TESTING_ChatRequestGetHeaderNames(request: Wrapper<HttpRequest>): string[];
523
526
  export function TESTING_ChatRequestGetHeaderValue(request: Wrapper<HttpRequest>, headerName: string): string;
524
527
  export function TESTING_ChatRequestGetMethod(request: Wrapper<HttpRequest>): string;
525
528
  export function TESTING_ChatRequestGetPath(request: Wrapper<HttpRequest>): string;
526
529
  export function TESTING_ChatResponseConvert(bodyPresent: boolean): ChatResponse;
527
- export function TESTING_ChatServiceErrorConvert(errorDescription: string): void;
530
+ export function TESTING_ChatSendErrorConvert(errorDescription: string): void;
528
531
  export function TESTING_ConnectionManager_isUsingProxy(manager: Wrapper<ConnectionManager>): number;
529
- export function TESTING_ConnectionManager_newLocalOverride(userAgent: string, chatPort: number, cdsiPort: number, svr2Port: number, svr3SgxPort: number, svr3NitroPort: number, svr3Tpm2SnpPort: number, rootCertificateDer: Buffer): ConnectionManager;
532
+ export function TESTING_ConnectionManager_newLocalOverride(userAgent: string, chatPort: number, cdsiPort: number, svr2Port: number, rootCertificateDer: Buffer): ConnectionManager;
530
533
  export function TESTING_ErrorOnBorrowAsync(_input: null): Promise<void>;
531
534
  export function TESTING_ErrorOnBorrowIo(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _input: null): CancellablePromise<void>;
532
535
  export function TESTING_ErrorOnBorrowSync(_input: null): void;
@@ -536,6 +539,7 @@ export function TESTING_ErrorOnReturnSync(_needsCleanup: null): null;
536
539
  export function TESTING_FakeChatConnection_Create(tokio: Wrapper<TokioAsyncContext>, listener: ChatListener, alertsJoinedByNewlines: string): FakeChatConnection;
537
540
  export function TESTING_FakeChatConnection_TakeAuthenticatedChat(chat: Wrapper<FakeChatConnection>): AuthenticatedChatConnection;
538
541
  export function TESTING_FakeChatConnection_TakeRemote(chat: Wrapper<FakeChatConnection>): FakeChatRemoteEnd;
542
+ export function TESTING_FakeChatConnection_TakeUnauthenticatedChat(chat: Wrapper<FakeChatConnection>): UnauthenticatedChatConnection;
539
543
  export function TESTING_FakeChatRemoteEnd_InjectConnectionInterrupted(chat: Wrapper<FakeChatRemoteEnd>): void;
540
544
  export function TESTING_FakeChatRemoteEnd_ReceiveIncomingRequest(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<FakeChatRemoteEnd>): CancellablePromise<FakeChatSentRequest | null>;
541
545
  export function TESTING_FakeChatRemoteEnd_SendRawServerRequest(chat: Wrapper<FakeChatRemoteEnd>, bytes: Buffer): void;