@signalapp/libsignal-client 0.46.0 → 0.46.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.
- package/Native.d.ts +2 -0
- package/dist/acknowledgments.md +136 -2
- package/dist/net.d.ts +23 -2
- package/dist/net.js +27 -2
- package/package.json +1 -1
- package/prebuilds/darwin-arm64/node.napi.node +0 -0
- package/prebuilds/darwin-x64/node.napi.node +0 -0
- package/prebuilds/linux-arm64/node.napi.node +0 -0
- package/prebuilds/linux-x64/node.napi.node +0 -0
- package/prebuilds/win32-arm64/node.napi.node +0 -0
- package/prebuilds/win32-x64/node.napi.node +0 -0
package/Native.d.ts
CHANGED
|
@@ -168,6 +168,8 @@ export function Cds2ClientState_New(mrenclave: Buffer, attestationMsg: Buffer, c
|
|
|
168
168
|
export function CdsiLookup_complete(asyncRuntime: Wrapper<TokioAsyncContext>, lookup: Wrapper<CdsiLookup>): Promise<LookupResponse>;
|
|
169
169
|
export function CdsiLookup_new(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>, username: string, password: string, request: Wrapper<LookupRequest>): Promise<CdsiLookup>;
|
|
170
170
|
export function CdsiLookup_token(lookup: Wrapper<CdsiLookup>): Buffer;
|
|
171
|
+
export function ChatService_auth_send(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<Chat>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): Promise<ChatResponse>;
|
|
172
|
+
export function ChatService_auth_send_and_debug(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<Chat>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): Promise<ResponseAndDebugInfo>;
|
|
171
173
|
export function ChatService_connect_auth(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<Chat>): Promise<ChatServiceDebugInfo>;
|
|
172
174
|
export function ChatService_connect_unauth(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<Chat>): Promise<ChatServiceDebugInfo>;
|
|
173
175
|
export function ChatService_disconnect(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<Chat>): Promise<void>;
|
package/dist/acknowledgments.md
CHANGED
|
@@ -669,7 +669,7 @@ For more information on this, and how to apply and follow the GNU AGPL, see
|
|
|
669
669
|
|
|
670
670
|
```
|
|
671
671
|
|
|
672
|
-
## attest 0.1.0, device-transfer 0.1.0, libsignal-bridge 0.1.0, libsignal-bridge-macros 0.1.0, libsignal-core 0.1.0, libsignal-ffi 0.46.
|
|
672
|
+
## attest 0.1.0, device-transfer 0.1.0, libsignal-bridge 0.1.0, libsignal-bridge-macros 0.1.0, libsignal-core 0.1.0, libsignal-ffi 0.46.2, libsignal-jni 0.46.2, libsignal-message-backup 0.1.0, libsignal-message-backup-io 0.1.0, libsignal-message-backup-macros 0.1.0, libsignal-net 0.1.0, libsignal-node 0.46.2, libsignal-protocol 0.1.0, libsignal-svr3 0.1.0, poksho 0.7.0, signal-crypto 0.1.0, signal-media 0.1.0, signal-neon-futures 0.1.0, signal-neon-futures-tests 0.1.0, signal-pin 0.1.0, usernames 0.1.0, zkcredential 0.1.0, zkgroup 0.9.0
|
|
673
673
|
|
|
674
674
|
```
|
|
675
675
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
|
@@ -3006,6 +3006,31 @@ DEALINGS IN THE SOFTWARE.
|
|
|
3006
3006
|
|
|
3007
3007
|
```
|
|
3008
3008
|
|
|
3009
|
+
## hyper 1.3.1
|
|
3010
|
+
|
|
3011
|
+
```
|
|
3012
|
+
Copyright (c) 2014-2021 Sean McArthur
|
|
3013
|
+
|
|
3014
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3015
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
3016
|
+
in the Software without restriction, including without limitation the rights
|
|
3017
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
3018
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
3019
|
+
furnished to do so, subject to the following conditions:
|
|
3020
|
+
|
|
3021
|
+
The above copyright notice and this permission notice shall be included in
|
|
3022
|
+
all copies or substantial portions of the Software.
|
|
3023
|
+
|
|
3024
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
3025
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
3026
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
3027
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
3028
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
3029
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
3030
|
+
THE SOFTWARE.
|
|
3031
|
+
|
|
3032
|
+
```
|
|
3033
|
+
|
|
3009
3034
|
## either 1.10.0, itertools 0.11.0, itertools 0.12.1, petgraph 0.6.4
|
|
3010
3035
|
|
|
3011
3036
|
```
|
|
@@ -4211,6 +4236,37 @@ SOFTWARE.
|
|
|
4211
4236
|
|
|
4212
4237
|
```
|
|
4213
4238
|
|
|
4239
|
+
## h2 0.4.4
|
|
4240
|
+
|
|
4241
|
+
```
|
|
4242
|
+
Copyright (c) 2017 h2 authors
|
|
4243
|
+
|
|
4244
|
+
Permission is hereby granted, free of charge, to any
|
|
4245
|
+
person obtaining a copy of this software and associated
|
|
4246
|
+
documentation files (the "Software"), to deal in the
|
|
4247
|
+
Software without restriction, including without
|
|
4248
|
+
limitation the rights to use, copy, modify, merge,
|
|
4249
|
+
publish, distribute, sublicense, and/or sell copies of
|
|
4250
|
+
the Software, and to permit persons to whom the Software
|
|
4251
|
+
is furnished to do so, subject to the following
|
|
4252
|
+
conditions:
|
|
4253
|
+
|
|
4254
|
+
The above copyright notice and this permission notice
|
|
4255
|
+
shall be included in all copies or substantial portions
|
|
4256
|
+
of the Software.
|
|
4257
|
+
|
|
4258
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
4259
|
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
4260
|
+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
4261
|
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
4262
|
+
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
4263
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
4264
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
4265
|
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
4266
|
+
DEALINGS IN THE SOFTWARE.
|
|
4267
|
+
|
|
4268
|
+
```
|
|
4269
|
+
|
|
4214
4270
|
## http 1.1.0
|
|
4215
4271
|
|
|
4216
4272
|
```
|
|
@@ -4458,6 +4514,32 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
|
4458
4514
|
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
4459
4515
|
DEALINGS IN THE SOFTWARE.
|
|
4460
4516
|
|
|
4517
|
+
```
|
|
4518
|
+
|
|
4519
|
+
## want 0.3.1
|
|
4520
|
+
|
|
4521
|
+
```
|
|
4522
|
+
Copyright (c) 2018-2019 Sean McArthur
|
|
4523
|
+
|
|
4524
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4525
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
4526
|
+
in the Software without restriction, including without limitation the rights
|
|
4527
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
4528
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
4529
|
+
furnished to do so, subject to the following conditions:
|
|
4530
|
+
|
|
4531
|
+
The above copyright notice and this permission notice shall be included in
|
|
4532
|
+
all copies or substantial portions of the Software.
|
|
4533
|
+
|
|
4534
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
4535
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
4536
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
4537
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
4538
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
4539
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
4540
|
+
THE SOFTWARE.
|
|
4541
|
+
|
|
4542
|
+
|
|
4461
4543
|
```
|
|
4462
4544
|
|
|
4463
4545
|
## block-buffer 0.10.4, block-padding 0.3.3
|
|
@@ -4552,6 +4634,33 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
|
4552
4634
|
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
4553
4635
|
DEALINGS IN THE SOFTWARE.
|
|
4554
4636
|
|
|
4637
|
+
```
|
|
4638
|
+
|
|
4639
|
+
## try-lock 0.2.5
|
|
4640
|
+
|
|
4641
|
+
```
|
|
4642
|
+
Copyright (c) 2018-2023 Sean McArthur
|
|
4643
|
+
Copyright (c) 2016 Alex Crichton
|
|
4644
|
+
|
|
4645
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4646
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
4647
|
+
in the Software without restriction, including without limitation the rights
|
|
4648
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
4649
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
4650
|
+
furnished to do so, subject to the following conditions:
|
|
4651
|
+
|
|
4652
|
+
The above copyright notice and this permission notice shall be included in
|
|
4653
|
+
all copies or substantial portions of the Software.
|
|
4654
|
+
|
|
4655
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
4656
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
4657
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
4658
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
4659
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
4660
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
4661
|
+
THE SOFTWARE.
|
|
4662
|
+
|
|
4663
|
+
|
|
4555
4664
|
```
|
|
4556
4665
|
|
|
4557
4666
|
## opaque-debug 0.3.1
|
|
@@ -5358,7 +5467,32 @@ SOFTWARE.
|
|
|
5358
5467
|
|
|
5359
5468
|
```
|
|
5360
5469
|
|
|
5361
|
-
##
|
|
5470
|
+
## hyper-util 0.1.3
|
|
5471
|
+
|
|
5472
|
+
```
|
|
5473
|
+
Copyright (c) 2023 Sean McArthur
|
|
5474
|
+
|
|
5475
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5476
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5477
|
+
in the Software without restriction, including without limitation the rights
|
|
5478
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
5479
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
5480
|
+
furnished to do so, subject to the following conditions:
|
|
5481
|
+
|
|
5482
|
+
The above copyright notice and this permission notice shall be included in
|
|
5483
|
+
all copies or substantial portions of the Software.
|
|
5484
|
+
|
|
5485
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
5486
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
5487
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
5488
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
5489
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
5490
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
5491
|
+
THE SOFTWARE.
|
|
5492
|
+
|
|
5493
|
+
```
|
|
5494
|
+
|
|
5495
|
+
## tokio 1.36.0, tokio-macros 2.2.0, tokio-stream 0.1.14, tokio-util 0.7.10
|
|
5362
5496
|
|
|
5363
5497
|
```
|
|
5364
5498
|
Copyright (c) 2023 Tokio Contributors
|
package/dist/net.d.ts
CHANGED
|
@@ -77,15 +77,34 @@ export declare class ChatService {
|
|
|
77
77
|
* In addition to the response, an object containing debug information about the request flow is
|
|
78
78
|
* returned.
|
|
79
79
|
*
|
|
80
|
-
* @throws {ChatServiceInactive} if you haven't called {@link #connectUnauthenticated()}
|
|
80
|
+
* @throws {ChatServiceInactive} if you haven't called {@link #connectUnauthenticated()} (as a
|
|
81
|
+
* rejection of the promise).
|
|
81
82
|
*/
|
|
82
83
|
unauthenticatedFetchAndDebug(chatRequest: ChatRequest): Promise<Native.ResponseAndDebugInfo>;
|
|
83
84
|
/**
|
|
84
85
|
* Sends request to the Chat Service over an unauthenticated channel.
|
|
85
86
|
*
|
|
86
|
-
* @throws {ChatServiceInactive} if you haven't called {@link #connectUnauthenticated()}
|
|
87
|
+
* @throws {ChatServiceInactive} if you haven't called {@link #connectUnauthenticated()} (as a
|
|
88
|
+
* rejection of the promise).
|
|
87
89
|
*/
|
|
88
90
|
unauthenticatedFetch(chatRequest: ChatRequest): Promise<Native.ChatResponse>;
|
|
91
|
+
/**
|
|
92
|
+
* Sends request to the Chat Service over an authenticated channel.
|
|
93
|
+
*
|
|
94
|
+
* In addition to the response, an object containing debug information about the request flow is
|
|
95
|
+
* returned.
|
|
96
|
+
*
|
|
97
|
+
* @throws {ChatServiceInactive} if you haven't called {@link #connectAuthenticated()} (as a
|
|
98
|
+
* rejection of the promise).
|
|
99
|
+
*/
|
|
100
|
+
authenticatedFetchAndDebug(chatRequest: ChatRequest): Promise<Native.ResponseAndDebugInfo>;
|
|
101
|
+
/**
|
|
102
|
+
* Sends request to the Chat Service over an authenticated channel.
|
|
103
|
+
*
|
|
104
|
+
* @throws {ChatServiceInactive} if you haven't called {@link #connectAuthenticated()} (as a
|
|
105
|
+
* rejection of the promise).
|
|
106
|
+
*/
|
|
107
|
+
authenticatedFetch(chatRequest: ChatRequest): Promise<Native.ChatResponse>;
|
|
89
108
|
static buildHttpRequest(chatRequest: ChatRequest): {
|
|
90
109
|
_nativeHandle: Native.HttpRequest;
|
|
91
110
|
};
|
|
@@ -114,6 +133,8 @@ export declare class Net {
|
|
|
114
133
|
* Sets a domain name and port to be used to proxy all new outgoing
|
|
115
134
|
* connections. The proxy can be overridden by calling this method again or
|
|
116
135
|
* unset by calling {@link #clearProxy}.
|
|
136
|
+
*
|
|
137
|
+
* Throws if the host or port is structurally invalid, such as a port that doesn't fit in u16.
|
|
117
138
|
*/
|
|
118
139
|
setProxy(host: string, port: number): void;
|
|
119
140
|
/**
|
package/dist/net.js
CHANGED
|
@@ -67,7 +67,8 @@ class ChatService {
|
|
|
67
67
|
* In addition to the response, an object containing debug information about the request flow is
|
|
68
68
|
* returned.
|
|
69
69
|
*
|
|
70
|
-
* @throws {ChatServiceInactive} if you haven't called {@link #connectUnauthenticated()}
|
|
70
|
+
* @throws {ChatServiceInactive} if you haven't called {@link #connectUnauthenticated()} (as a
|
|
71
|
+
* rejection of the promise).
|
|
71
72
|
*/
|
|
72
73
|
async unauthenticatedFetchAndDebug(chatRequest) {
|
|
73
74
|
return await Native.ChatService_unauth_send_and_debug(this.asyncContext, this.chatService, ChatService.buildHttpRequest(chatRequest), chatRequest.timeoutMillis ?? DEFAULT_CHAT_REQUEST_TIMEOUT_MILLIS);
|
|
@@ -75,11 +76,33 @@ class ChatService {
|
|
|
75
76
|
/**
|
|
76
77
|
* Sends request to the Chat Service over an unauthenticated channel.
|
|
77
78
|
*
|
|
78
|
-
* @throws {ChatServiceInactive} if you haven't called {@link #connectUnauthenticated()}
|
|
79
|
+
* @throws {ChatServiceInactive} if you haven't called {@link #connectUnauthenticated()} (as a
|
|
80
|
+
* rejection of the promise).
|
|
79
81
|
*/
|
|
80
82
|
async unauthenticatedFetch(chatRequest) {
|
|
81
83
|
return await Native.ChatService_unauth_send(this.asyncContext, this.chatService, ChatService.buildHttpRequest(chatRequest), chatRequest.timeoutMillis ?? DEFAULT_CHAT_REQUEST_TIMEOUT_MILLIS);
|
|
82
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Sends request to the Chat Service over an authenticated channel.
|
|
87
|
+
*
|
|
88
|
+
* In addition to the response, an object containing debug information about the request flow is
|
|
89
|
+
* returned.
|
|
90
|
+
*
|
|
91
|
+
* @throws {ChatServiceInactive} if you haven't called {@link #connectAuthenticated()} (as a
|
|
92
|
+
* rejection of the promise).
|
|
93
|
+
*/
|
|
94
|
+
async authenticatedFetchAndDebug(chatRequest) {
|
|
95
|
+
return await Native.ChatService_auth_send_and_debug(this.asyncContext, this.chatService, ChatService.buildHttpRequest(chatRequest), chatRequest.timeoutMillis ?? DEFAULT_CHAT_REQUEST_TIMEOUT_MILLIS);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Sends request to the Chat Service over an authenticated channel.
|
|
99
|
+
*
|
|
100
|
+
* @throws {ChatServiceInactive} if you haven't called {@link #connectAuthenticated()} (as a
|
|
101
|
+
* rejection of the promise).
|
|
102
|
+
*/
|
|
103
|
+
async authenticatedFetch(chatRequest) {
|
|
104
|
+
return await Native.ChatService_auth_send(this.asyncContext, this.chatService, ChatService.buildHttpRequest(chatRequest), chatRequest.timeoutMillis ?? DEFAULT_CHAT_REQUEST_TIMEOUT_MILLIS);
|
|
105
|
+
}
|
|
83
106
|
static buildHttpRequest(chatRequest) {
|
|
84
107
|
const { verb, path, body, headers } = chatRequest;
|
|
85
108
|
const bodyBuffer = body !== undefined ? Buffer.from(body) : null;
|
|
@@ -120,6 +143,8 @@ class Net {
|
|
|
120
143
|
* Sets a domain name and port to be used to proxy all new outgoing
|
|
121
144
|
* connections. The proxy can be overridden by calling this method again or
|
|
122
145
|
* unset by calling {@link #clearProxy}.
|
|
146
|
+
*
|
|
147
|
+
* Throws if the host or port is structurally invalid, such as a port that doesn't fit in u16.
|
|
123
148
|
*/
|
|
124
149
|
setProxy(host, port) {
|
|
125
150
|
Native.ConnectionManager_set_proxy(this.connectionManager, host, port);
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|