@signalapp/libsignal-client
Advanced tools
Comparing version
@@ -80,5 +80,5 @@ import type { ReadonlyDeep } from 'type-fest'; | ||
* @param options.languages If provided, a list of languages in Accept-Language syntax to apply | ||
* to all requests made on this connection. | ||
* to all requests made on this connection. Note that "quality weighting" can be left out; the | ||
* Signal server will always consider the list to be in priority order. | ||
* @param options.abortSignal an {@link AbortSignal} that will cancel the connection attempt. | ||
* @returns the connected listener, if the connection succeeds. | ||
*/ | ||
@@ -91,2 +91,13 @@ connectUnauthenticatedChat(listener: ConnectionEventsListener, options?: { | ||
* Creates a new instance of {@link AuthenticatedChatConnection}. | ||
* | ||
* @param username the identifier for the local device | ||
* @param password the password for the local device | ||
* @param receiveStories whether or not the local user has Stories enabled, so the server can | ||
* filter them out ahead of time | ||
* @param listener the listener for incoming events. | ||
* @param options additional options to pass through. | ||
* @param options.languages If provided, a list of languages in Accept-Language syntax to apply | ||
* to all requests made on this connection. Note that "quality weighting" can be left out; the | ||
* Signal server will always consider the list to be in priority order. | ||
* @param options.abortSignal an {@link AbortSignal} that will cancel the connection attempt. | ||
*/ | ||
@@ -93,0 +104,0 @@ connectAuthenticatedChat(username: string, password: string, receiveStories: boolean, listener: ChatServiceListener, options?: { |
@@ -91,5 +91,5 @@ "use strict"; | ||
* @param options.languages If provided, a list of languages in Accept-Language syntax to apply | ||
* to all requests made on this connection. | ||
* to all requests made on this connection. Note that "quality weighting" can be left out; the | ||
* Signal server will always consider the list to be in priority order. | ||
* @param options.abortSignal an {@link AbortSignal} that will cancel the connection attempt. | ||
* @returns the connected listener, if the connection succeeds. | ||
*/ | ||
@@ -102,2 +102,13 @@ async connectUnauthenticatedChat(listener, options) { | ||
* Creates a new instance of {@link AuthenticatedChatConnection}. | ||
* | ||
* @param username the identifier for the local device | ||
* @param password the password for the local device | ||
* @param receiveStories whether or not the local user has Stories enabled, so the server can | ||
* filter them out ahead of time | ||
* @param listener the listener for incoming events. | ||
* @param options additional options to pass through. | ||
* @param options.languages If provided, a list of languages in Accept-Language syntax to apply | ||
* to all requests made on this connection. Note that "quality weighting" can be left out; the | ||
* Signal server will always consider the list to be in priority order. | ||
* @param options.abortSignal an {@link AbortSignal} that will cancel the connection attempt. | ||
*/ | ||
@@ -104,0 +115,0 @@ connectAuthenticatedChat(username, password, receiveStories, listener, options) { |
@@ -84,2 +84,12 @@ import type { ReadonlyDeep } from 'type-fest'; | ||
}>; | ||
/** | ||
* Request that a verification code be sent via the given transport method. | ||
* | ||
* With the websocket transport, this makes a POST request to | ||
* `/v1/verification/session/{sessionId}/code`. | ||
* | ||
* The `languages` parameter should be a list of languages in Accept-Language syntax. Note that | ||
* "quality weighting" can be left out; the Signal server will always consider the list to be in | ||
* priority order. | ||
*/ | ||
requestVerification({ transport, client, languages, }: { | ||
@@ -86,0 +96,0 @@ transport: 'sms' | 'voice'; |
@@ -79,2 +79,12 @@ "use strict"; | ||
} | ||
/** | ||
* Request that a verification code be sent via the given transport method. | ||
* | ||
* With the websocket transport, this makes a POST request to | ||
* `/v1/verification/session/{sessionId}/code`. | ||
* | ||
* The `languages` parameter should be a list of languages in Accept-Language syntax. Note that | ||
* "quality weighting" can be left out; the Signal server will always consider the list to be in | ||
* priority order. | ||
*/ | ||
async requestVerification({ transport, client, languages = [], }) { | ||
@@ -81,0 +91,0 @@ await Native.RegistrationService_RequestVerificationCode(this.tokioAsyncContext, this, transport, client, languages); |
{ | ||
"name": "@signalapp/libsignal-client", | ||
"version": "0.76.3", | ||
"version": "0.76.4", | ||
"license": "AGPL-3.0-only", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
108064349
0.04%8041
0.53%