@signalapp/libsignal-client 0.43.0 → 0.45.0
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 +35 -32
- package/dist/acknowledgments.md +45 -153
- package/dist/net.d.ts +55 -16
- package/dist/net.js +77 -33
- package/dist/zkgroup/ServerPublicParams.d.ts +5 -4
- package/dist/zkgroup/ServerPublicParams.js +11 -4
- package/dist/zkgroup/ServerSecretParams.d.ts +5 -4
- package/dist/zkgroup/ServerSecretParams.js +12 -5
- package/dist/zkgroup/auth/ClientZkAuthOperations.d.ts +0 -9
- package/dist/zkgroup/auth/ClientZkAuthOperations.js +2 -13
- package/dist/zkgroup/auth/ServerZkAuthOperations.d.ts +0 -2
- package/dist/zkgroup/auth/ServerZkAuthOperations.js +3 -10
- package/dist/zkgroup/backups/BackupAuthCredential.d.ts +2 -0
- package/dist/zkgroup/backups/BackupAuthCredential.js +8 -0
- package/dist/zkgroup/backups/BackupAuthCredentialRequest.d.ts +3 -2
- package/dist/zkgroup/backups/BackupAuthCredentialRequest.js +4 -4
- package/dist/zkgroup/backups/BackupAuthCredentialRequestContext.d.ts +1 -1
- package/dist/zkgroup/backups/BackupAuthCredentialRequestContext.js +2 -2
- package/dist/zkgroup/backups/BackupLevel.d.ts +5 -0
- package/dist/zkgroup/backups/BackupLevel.js +14 -0
- package/dist/zkgroup/groupsend/GroupSendDerivedKeyPair.js +1 -1
- package/dist/zkgroup/groupsend/GroupSendEndorsementsResponse.js +2 -2
- package/dist/zkgroup/index.d.ts +1 -0
- package/dist/zkgroup/index.js +3 -1
- package/dist/zkgroup/profiles/ClientZkProfileOperations.js +3 -3
- package/dist/zkgroup/profiles/ServerZkProfileOperations.js +2 -2
- package/dist/zkgroup/receipts/ClientZkReceiptOperations.js +3 -3
- package/dist/zkgroup/receipts/ServerZkReceiptOperations.js +2 -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
|
@@ -29,7 +29,6 @@ interface ChatResponse {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
interface ChatServiceDebugInfo {
|
|
32
|
-
connectionReused: boolean;
|
|
33
32
|
reconnectCount: number;
|
|
34
33
|
ipType: number;
|
|
35
34
|
durationMillis: number;
|
|
@@ -115,9 +114,9 @@ export abstract class InputStream {
|
|
|
115
114
|
|
|
116
115
|
export abstract class SyncInputStream extends Buffer {}
|
|
117
116
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
117
|
+
type Wrapper<T> = Readonly<{
|
|
118
|
+
_nativeHandle: T;
|
|
119
|
+
}>;
|
|
121
120
|
|
|
122
121
|
interface MessageBackupValidationOutcome {
|
|
123
122
|
errorMessage: string | null;
|
|
@@ -144,12 +143,13 @@ export function BackupAuthCredentialPresentation_Verify(presentationBytes: Buffe
|
|
|
144
143
|
export function BackupAuthCredentialRequestContext_CheckValidContents(contextBytes: Buffer): void;
|
|
145
144
|
export function BackupAuthCredentialRequestContext_GetRequest(contextBytes: Buffer): Buffer;
|
|
146
145
|
export function BackupAuthCredentialRequestContext_New(backupKey: Buffer, uuid: Uuid): Buffer;
|
|
147
|
-
export function BackupAuthCredentialRequestContext_ReceiveResponse(contextBytes: Buffer, responseBytes: Buffer,
|
|
146
|
+
export function BackupAuthCredentialRequestContext_ReceiveResponse(contextBytes: Buffer, responseBytes: Buffer, expectedRedemptionTime: Timestamp, paramsBytes: Buffer): Buffer;
|
|
148
147
|
export function BackupAuthCredentialRequest_CheckValidContents(requestBytes: Buffer): void;
|
|
149
|
-
export function BackupAuthCredentialRequest_IssueDeterministic(requestBytes: Buffer, redemptionTime: Timestamp,
|
|
148
|
+
export function BackupAuthCredentialRequest_IssueDeterministic(requestBytes: Buffer, redemptionTime: Timestamp, backupLevel: number, paramsBytes: Buffer, randomness: Buffer): Buffer;
|
|
150
149
|
export function BackupAuthCredentialResponse_CheckValidContents(responseBytes: Buffer): void;
|
|
151
150
|
export function BackupAuthCredential_CheckValidContents(paramsBytes: Buffer): void;
|
|
152
151
|
export function BackupAuthCredential_GetBackupId(credentialBytes: Buffer): Buffer;
|
|
152
|
+
export function BackupAuthCredential_GetBackupLevel(credentialBytes: Buffer): number;
|
|
153
153
|
export function BackupAuthCredential_PresentDeterministic(credentialBytes: Buffer, serverParamsBytes: Buffer, randomness: Buffer): Buffer;
|
|
154
154
|
export function CallLinkAuthCredentialPresentation_CheckValidContents(presentationBytes: Buffer): void;
|
|
155
155
|
export function CallLinkAuthCredentialPresentation_GetUserId(presentationBytes: Buffer): Serialized<UuidCiphertext>;
|
|
@@ -177,7 +177,10 @@ export function ChatService_unauth_send_and_debug(asyncRuntime: Wrapper<TokioAsy
|
|
|
177
177
|
export function CiphertextMessage_FromPlaintextContent(m: Wrapper<PlaintextContent>): CiphertextMessage;
|
|
178
178
|
export function CiphertextMessage_Serialize(obj: Wrapper<CiphertextMessage>): Buffer;
|
|
179
179
|
export function CiphertextMessage_Type(msg: Wrapper<CiphertextMessage>): number;
|
|
180
|
+
export function ConnectionManager_clear_proxy(connectionManager: Wrapper<ConnectionManager>): void;
|
|
180
181
|
export function ConnectionManager_new(environment: number): ConnectionManager;
|
|
182
|
+
export function ConnectionManager_set_ipv6_enabled(connectionManager: Wrapper<ConnectionManager>, ipv6Enabled: boolean): void;
|
|
183
|
+
export function ConnectionManager_set_proxy(connectionManager: Wrapper<ConnectionManager>, host: string, port: number): void;
|
|
181
184
|
export function CreateCallLinkCredentialPresentation_CheckValidContents(presentationBytes: Buffer): void;
|
|
182
185
|
export function CreateCallLinkCredentialPresentation_Verify(presentationBytes: Buffer, roomId: Buffer, now: Timestamp, serverParamsBytes: Buffer, callLinkParamsBytes: Buffer): void;
|
|
183
186
|
export function CreateCallLinkCredentialRequestContext_CheckValidContents(contextBytes: Buffer): void;
|
|
@@ -225,7 +228,7 @@ export function GroupSecretParams_GenerateDeterministic(randomness: Buffer): Ser
|
|
|
225
228
|
export function GroupSecretParams_GetMasterKey(params: Serialized<GroupSecretParams>): Serialized<GroupMasterKey>;
|
|
226
229
|
export function GroupSecretParams_GetPublicParams(params: Serialized<GroupSecretParams>): Serialized<GroupPublicParams>;
|
|
227
230
|
export function GroupSendDerivedKeyPair_CheckValidContents(bytes: Buffer): void;
|
|
228
|
-
export function GroupSendDerivedKeyPair_ForExpiration(expiration: Timestamp, serverParams:
|
|
231
|
+
export function GroupSendDerivedKeyPair_ForExpiration(expiration: Timestamp, serverParams: Wrapper<ServerSecretParams>): Buffer;
|
|
229
232
|
export function GroupSendEndorsement_CheckValidContents(bytes: Buffer): void;
|
|
230
233
|
export function GroupSendEndorsement_Combine(endorsements: Buffer[]): Buffer;
|
|
231
234
|
export function GroupSendEndorsement_Remove(endorsement: Buffer, toRemove: Buffer): Buffer;
|
|
@@ -233,8 +236,8 @@ export function GroupSendEndorsement_ToToken(endorsement: Buffer, groupParams: S
|
|
|
233
236
|
export function GroupSendEndorsementsResponse_CheckValidContents(bytes: Buffer): void;
|
|
234
237
|
export function GroupSendEndorsementsResponse_GetExpiration(responseBytes: Buffer): Timestamp;
|
|
235
238
|
export function GroupSendEndorsementsResponse_IssueDeterministic(concatenatedGroupMemberCiphertexts: Buffer, keyPair: Buffer, randomness: Buffer): Buffer;
|
|
236
|
-
export function GroupSendEndorsementsResponse_ReceiveAndCombineWithCiphertexts(responseBytes: Buffer, concatenatedGroupMemberCiphertexts: Buffer, localUserCiphertext: Buffer, now: Timestamp, serverParams:
|
|
237
|
-
export function GroupSendEndorsementsResponse_ReceiveAndCombineWithServiceIds(responseBytes: Buffer, groupMembers: Buffer, localUser: Buffer, now: Timestamp, groupParams: Serialized<GroupSecretParams>, serverParams:
|
|
239
|
+
export function GroupSendEndorsementsResponse_ReceiveAndCombineWithCiphertexts(responseBytes: Buffer, concatenatedGroupMemberCiphertexts: Buffer, localUserCiphertext: Buffer, now: Timestamp, serverParams: Wrapper<ServerPublicParams>): Buffer[];
|
|
240
|
+
export function GroupSendEndorsementsResponse_ReceiveAndCombineWithServiceIds(responseBytes: Buffer, groupMembers: Buffer, localUser: Buffer, now: Timestamp, groupParams: Serialized<GroupSecretParams>, serverParams: Wrapper<ServerPublicParams>): Buffer[];
|
|
238
241
|
export function GroupSendFullToken_CheckValidContents(bytes: Buffer): void;
|
|
239
242
|
export function GroupSendFullToken_GetExpiration(token: Buffer): Timestamp;
|
|
240
243
|
export function GroupSendFullToken_Verify(token: Buffer, userIds: Buffer, now: Timestamp, keyPair: Buffer): void;
|
|
@@ -402,29 +405,29 @@ export function ServerCertificate_GetKeyId(obj: Wrapper<ServerCertificate>): num
|
|
|
402
405
|
export function ServerCertificate_GetSerialized(obj: Wrapper<ServerCertificate>): Buffer;
|
|
403
406
|
export function ServerCertificate_GetSignature(obj: Wrapper<ServerCertificate>): Buffer;
|
|
404
407
|
export function ServerCertificate_New(keyId: number, serverKey: Wrapper<PublicKey>, trustRoot: Wrapper<PrivateKey>): ServerCertificate;
|
|
405
|
-
export function
|
|
406
|
-
export function
|
|
407
|
-
export function
|
|
408
|
-
export function
|
|
409
|
-
export function
|
|
410
|
-
export function
|
|
411
|
-
export function
|
|
412
|
-
export function
|
|
413
|
-
export function
|
|
414
|
-
export function
|
|
415
|
-
export function ServerPublicParams_VerifySignature(serverPublicParams:
|
|
416
|
-
export function
|
|
417
|
-
export function ServerSecretParams_GenerateDeterministic(randomness: Buffer):
|
|
418
|
-
export function ServerSecretParams_GetPublicParams(params:
|
|
419
|
-
export function
|
|
420
|
-
export function
|
|
421
|
-
export function
|
|
422
|
-
export function
|
|
423
|
-
export function
|
|
424
|
-
export function ServerSecretParams_SignDeterministic(params:
|
|
425
|
-
export function ServerSecretParams_VerifyAuthCredentialPresentation(serverSecretParams:
|
|
426
|
-
export function ServerSecretParams_VerifyProfileKeyCredentialPresentation(serverSecretParams:
|
|
427
|
-
export function ServerSecretParams_VerifyReceiptCredentialPresentation(serverSecretParams:
|
|
408
|
+
export function ServerPublicParams_CreateAuthCredentialWithPniPresentationDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness: Buffer, groupSecretParams: Serialized<GroupSecretParams>, authCredentialWithPniBytes: Buffer): Buffer;
|
|
409
|
+
export function ServerPublicParams_CreateExpiringProfileKeyCredentialPresentationDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness: Buffer, groupSecretParams: Serialized<GroupSecretParams>, profileKeyCredential: Serialized<ExpiringProfileKeyCredential>): Buffer;
|
|
410
|
+
export function ServerPublicParams_CreateProfileKeyCredentialRequestContextDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness: Buffer, userId: Buffer, profileKey: Serialized<ProfileKey>): Serialized<ProfileKeyCredentialRequestContext>;
|
|
411
|
+
export function ServerPublicParams_CreateReceiptCredentialPresentationDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness: Buffer, receiptCredential: Serialized<ReceiptCredential>): Serialized<ReceiptCredentialPresentation>;
|
|
412
|
+
export function ServerPublicParams_CreateReceiptCredentialRequestContextDeterministic(serverPublicParams: Wrapper<ServerPublicParams>, randomness: Buffer, receiptSerial: Buffer): Serialized<ReceiptCredentialRequestContext>;
|
|
413
|
+
export function ServerPublicParams_Deserialize(buffer: Buffer): ServerPublicParams;
|
|
414
|
+
export function ServerPublicParams_ReceiveAuthCredentialWithPniAsServiceId(params: Wrapper<ServerPublicParams>, aci: Buffer, pni: Buffer, redemptionTime: Timestamp, authCredentialWithPniResponseBytes: Buffer): Buffer;
|
|
415
|
+
export function ServerPublicParams_ReceiveExpiringProfileKeyCredential(serverPublicParams: Wrapper<ServerPublicParams>, requestContext: Serialized<ProfileKeyCredentialRequestContext>, response: Serialized<ExpiringProfileKeyCredentialResponse>, currentTimeInSeconds: Timestamp): Serialized<ExpiringProfileKeyCredential>;
|
|
416
|
+
export function ServerPublicParams_ReceiveReceiptCredential(serverPublicParams: Wrapper<ServerPublicParams>, requestContext: Serialized<ReceiptCredentialRequestContext>, response: Serialized<ReceiptCredentialResponse>): Serialized<ReceiptCredential>;
|
|
417
|
+
export function ServerPublicParams_Serialize(handle: Wrapper<ServerPublicParams>): Buffer;
|
|
418
|
+
export function ServerPublicParams_VerifySignature(serverPublicParams: Wrapper<ServerPublicParams>, message: Buffer, notarySignature: Buffer): void;
|
|
419
|
+
export function ServerSecretParams_Deserialize(buffer: Buffer): ServerSecretParams;
|
|
420
|
+
export function ServerSecretParams_GenerateDeterministic(randomness: Buffer): ServerSecretParams;
|
|
421
|
+
export function ServerSecretParams_GetPublicParams(params: Wrapper<ServerSecretParams>): ServerPublicParams;
|
|
422
|
+
export function ServerSecretParams_IssueAuthCredentialWithPniAsServiceIdDeterministic(serverSecretParams: Wrapper<ServerSecretParams>, randomness: Buffer, aci: Buffer, pni: Buffer, redemptionTime: Timestamp): Buffer;
|
|
423
|
+
export function ServerSecretParams_IssueAuthCredentialWithPniZkcDeterministic(serverSecretParams: Wrapper<ServerSecretParams>, randomness: Buffer, aci: Buffer, pni: Buffer, redemptionTime: Timestamp): Buffer;
|
|
424
|
+
export function ServerSecretParams_IssueExpiringProfileKeyCredentialDeterministic(serverSecretParams: Wrapper<ServerSecretParams>, randomness: Buffer, request: Serialized<ProfileKeyCredentialRequest>, userId: Buffer, commitment: Serialized<ProfileKeyCommitment>, expirationInSeconds: Timestamp): Serialized<ExpiringProfileKeyCredentialResponse>;
|
|
425
|
+
export function ServerSecretParams_IssueReceiptCredentialDeterministic(serverSecretParams: Wrapper<ServerSecretParams>, randomness: Buffer, request: Serialized<ReceiptCredentialRequest>, receiptExpirationTime: Timestamp, receiptLevel: bigint): Serialized<ReceiptCredentialResponse>;
|
|
426
|
+
export function ServerSecretParams_Serialize(handle: Wrapper<ServerSecretParams>): Buffer;
|
|
427
|
+
export function ServerSecretParams_SignDeterministic(params: Wrapper<ServerSecretParams>, randomness: Buffer, message: Buffer): Buffer;
|
|
428
|
+
export function ServerSecretParams_VerifyAuthCredentialPresentation(serverSecretParams: Wrapper<ServerSecretParams>, groupPublicParams: Serialized<GroupPublicParams>, presentationBytes: Buffer, currentTimeInSeconds: Timestamp): void;
|
|
429
|
+
export function ServerSecretParams_VerifyProfileKeyCredentialPresentation(serverSecretParams: Wrapper<ServerSecretParams>, groupPublicParams: Serialized<GroupPublicParams>, presentationBytes: Buffer, currentTimeInSeconds: Timestamp): void;
|
|
430
|
+
export function ServerSecretParams_VerifyReceiptCredentialPresentation(serverSecretParams: Wrapper<ServerSecretParams>, presentation: Serialized<ReceiptCredentialPresentation>): void;
|
|
428
431
|
export function ServiceId_ParseFromServiceIdBinary(input: Buffer): Buffer;
|
|
429
432
|
export function ServiceId_ParseFromServiceIdString(input: string): Buffer;
|
|
430
433
|
export function ServiceId_ServiceIdBinary(value: Buffer): Buffer;
|
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.
|
|
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.45.0, libsignal-jni 0.45.0, libsignal-message-backup 0.1.0, libsignal-message-backup-macros 0.1.0, libsignal-net 0.1.0, libsignal-node 0.45.0, 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
|
|
@@ -1922,7 +1922,7 @@ limitations under the License.
|
|
|
1922
1922
|
|
|
1923
1923
|
```
|
|
1924
1924
|
|
|
1925
|
-
## boring
|
|
1925
|
+
## boring 4.6.0
|
|
1926
1926
|
|
|
1927
1927
|
```
|
|
1928
1928
|
Copyright 2011-2017 Google Inc.
|
|
@@ -1976,7 +1976,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
1976
1976
|
|
|
1977
1977
|
```
|
|
1978
1978
|
|
|
1979
|
-
## bindgen 0.
|
|
1979
|
+
## bindgen 0.68.1
|
|
1980
1980
|
|
|
1981
1981
|
```
|
|
1982
1982
|
BSD 3-Clause License
|
|
@@ -2377,7 +2377,7 @@ express Statement of Purpose.
|
|
|
2377
2377
|
|
|
2378
2378
|
```
|
|
2379
2379
|
|
|
2380
|
-
## boring-sys
|
|
2380
|
+
## boring-sys 4.6.0
|
|
2381
2381
|
|
|
2382
2382
|
```
|
|
2383
2383
|
/* Copyright (c) 2015, Google Inc.
|
|
@@ -2685,7 +2685,7 @@ DEALINGS IN THE SOFTWARE.
|
|
|
2685
2685
|
|
|
2686
2686
|
```
|
|
2687
2687
|
|
|
2688
|
-
## boring-sys
|
|
2688
|
+
## boring-sys 4.6.0
|
|
2689
2689
|
|
|
2690
2690
|
```
|
|
2691
2691
|
Copyright (c) 2014 Alex Crichton
|
|
@@ -2925,31 +2925,6 @@ DEALINGS IN THE SOFTWARE.
|
|
|
2925
2925
|
|
|
2926
2926
|
```
|
|
2927
2927
|
|
|
2928
|
-
## hyper 1.2.0
|
|
2929
|
-
|
|
2930
|
-
```
|
|
2931
|
-
Copyright (c) 2014-2021 Sean McArthur
|
|
2932
|
-
|
|
2933
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2934
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
2935
|
-
in the Software without restriction, including without limitation the rights
|
|
2936
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2937
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
2938
|
-
furnished to do so, subject to the following conditions:
|
|
2939
|
-
|
|
2940
|
-
The above copyright notice and this permission notice shall be included in
|
|
2941
|
-
all copies or substantial portions of the Software.
|
|
2942
|
-
|
|
2943
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2944
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2945
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2946
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2947
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2948
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
2949
|
-
THE SOFTWARE.
|
|
2950
|
-
|
|
2951
|
-
```
|
|
2952
|
-
|
|
2953
2928
|
## either 1.10.0, itertools 0.11.0, itertools 0.12.1, petgraph 0.6.4
|
|
2954
2929
|
|
|
2955
2930
|
```
|
|
@@ -3270,7 +3245,7 @@ DEALINGS IN THE SOFTWARE.
|
|
|
3270
3245
|
|
|
3271
3246
|
```
|
|
3272
3247
|
|
|
3273
|
-
## boring-sys
|
|
3248
|
+
## boring-sys 4.6.0
|
|
3274
3249
|
|
|
3275
3250
|
```
|
|
3276
3251
|
Copyright (c) 2015-2016 the fiat-crypto authors (see
|
|
@@ -3627,7 +3602,7 @@ DEALINGS IN THE SOFTWARE.
|
|
|
3627
3602
|
|
|
3628
3603
|
```
|
|
3629
3604
|
|
|
3630
|
-
##
|
|
3605
|
+
## rustc_version 0.4.0
|
|
3631
3606
|
|
|
3632
3607
|
```
|
|
3633
3608
|
Copyright (c) 2016 The Rust Project Developers
|
|
@@ -3658,6 +3633,38 @@ DEALINGS IN THE SOFTWARE.
|
|
|
3658
3633
|
|
|
3659
3634
|
```
|
|
3660
3635
|
|
|
3636
|
+
## humantime 2.1.0
|
|
3637
|
+
|
|
3638
|
+
```
|
|
3639
|
+
Copyright (c) 2016 The humantime Developers
|
|
3640
|
+
|
|
3641
|
+
Includes parts of http date with the following copyright:
|
|
3642
|
+
Copyright (c) 2016 Pyfisch
|
|
3643
|
+
|
|
3644
|
+
Includes portions of musl libc with the following copyright:
|
|
3645
|
+
Copyright © 2005-2013 Rich Felker
|
|
3646
|
+
|
|
3647
|
+
|
|
3648
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3649
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
3650
|
+
in the Software without restriction, including without limitation the rights
|
|
3651
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
3652
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
3653
|
+
furnished to do so, subject to the following conditions:
|
|
3654
|
+
|
|
3655
|
+
The above copyright notice and this permission notice shall be included in all
|
|
3656
|
+
copies or substantial portions of the Software.
|
|
3657
|
+
|
|
3658
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
3659
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
3660
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
3661
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
3662
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
3663
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
3664
|
+
SOFTWARE.
|
|
3665
|
+
|
|
3666
|
+
```
|
|
3667
|
+
|
|
3661
3668
|
## log-panics 2.1.0
|
|
3662
3669
|
|
|
3663
3670
|
```
|
|
@@ -3683,7 +3690,7 @@ SOFTWARE.
|
|
|
3683
3690
|
|
|
3684
3691
|
```
|
|
3685
3692
|
|
|
3686
|
-
## tokio-boring
|
|
3693
|
+
## tokio-boring 4.6.0
|
|
3687
3694
|
|
|
3688
3695
|
```
|
|
3689
3696
|
Copyright (c) 2016 Tokio contributors
|
|
@@ -4097,37 +4104,6 @@ SOFTWARE.
|
|
|
4097
4104
|
|
|
4098
4105
|
```
|
|
4099
4106
|
|
|
4100
|
-
## h2 0.4.2
|
|
4101
|
-
|
|
4102
|
-
```
|
|
4103
|
-
Copyright (c) 2017 h2 authors
|
|
4104
|
-
|
|
4105
|
-
Permission is hereby granted, free of charge, to any
|
|
4106
|
-
person obtaining a copy of this software and associated
|
|
4107
|
-
documentation files (the "Software"), to deal in the
|
|
4108
|
-
Software without restriction, including without
|
|
4109
|
-
limitation the rights to use, copy, modify, merge,
|
|
4110
|
-
publish, distribute, sublicense, and/or sell copies of
|
|
4111
|
-
the Software, and to permit persons to whom the Software
|
|
4112
|
-
is furnished to do so, subject to the following
|
|
4113
|
-
conditions:
|
|
4114
|
-
|
|
4115
|
-
The above copyright notice and this permission notice
|
|
4116
|
-
shall be included in all copies or substantial portions
|
|
4117
|
-
of the Software.
|
|
4118
|
-
|
|
4119
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
4120
|
-
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
4121
|
-
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
4122
|
-
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
4123
|
-
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
4124
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
4125
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
4126
|
-
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
4127
|
-
DEALINGS IN THE SOFTWARE.
|
|
4128
|
-
|
|
4129
|
-
```
|
|
4130
|
-
|
|
4131
4107
|
## http 1.1.0
|
|
4132
4108
|
|
|
4133
4109
|
```
|
|
@@ -4159,37 +4135,6 @@ DEALINGS IN THE SOFTWARE.
|
|
|
4159
4135
|
|
|
4160
4136
|
```
|
|
4161
4137
|
|
|
4162
|
-
## signal-hook-registry 1.4.1
|
|
4163
|
-
|
|
4164
|
-
```
|
|
4165
|
-
Copyright (c) 2017 tokio-jsonrpc developers
|
|
4166
|
-
|
|
4167
|
-
Permission is hereby granted, free of charge, to any
|
|
4168
|
-
person obtaining a copy of this software and associated
|
|
4169
|
-
documentation files (the "Software"), to deal in the
|
|
4170
|
-
Software without restriction, including without
|
|
4171
|
-
limitation the rights to use, copy, modify, merge,
|
|
4172
|
-
publish, distribute, sublicense, and/or sell copies of
|
|
4173
|
-
the Software, and to permit persons to whom the Software
|
|
4174
|
-
is furnished to do so, subject to the following
|
|
4175
|
-
conditions:
|
|
4176
|
-
|
|
4177
|
-
The above copyright notice and this permission notice
|
|
4178
|
-
shall be included in all copies or substantial portions
|
|
4179
|
-
of the Software.
|
|
4180
|
-
|
|
4181
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
4182
|
-
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
4183
|
-
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
4184
|
-
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
4185
|
-
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
4186
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
4187
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
4188
|
-
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
4189
|
-
DEALINGS IN THE SOFTWARE.
|
|
4190
|
-
|
|
4191
|
-
```
|
|
4192
|
-
|
|
4193
4138
|
## aes 0.8.4
|
|
4194
4139
|
|
|
4195
4140
|
```
|
|
@@ -4406,32 +4351,6 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
|
4406
4351
|
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
4407
4352
|
DEALINGS IN THE SOFTWARE.
|
|
4408
4353
|
|
|
4409
|
-
```
|
|
4410
|
-
|
|
4411
|
-
## want 0.3.1
|
|
4412
|
-
|
|
4413
|
-
```
|
|
4414
|
-
Copyright (c) 2018-2019 Sean McArthur
|
|
4415
|
-
|
|
4416
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4417
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
4418
|
-
in the Software without restriction, including without limitation the rights
|
|
4419
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
4420
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
4421
|
-
furnished to do so, subject to the following conditions:
|
|
4422
|
-
|
|
4423
|
-
The above copyright notice and this permission notice shall be included in
|
|
4424
|
-
all copies or substantial portions of the Software.
|
|
4425
|
-
|
|
4426
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
4427
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
4428
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
4429
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
4430
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
4431
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
4432
|
-
THE SOFTWARE.
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
4354
|
```
|
|
4436
4355
|
|
|
4437
4356
|
## block-buffer 0.10.4, block-padding 0.3.3
|
|
@@ -4526,33 +4445,6 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
|
4526
4445
|
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
4527
4446
|
DEALINGS IN THE SOFTWARE.
|
|
4528
4447
|
|
|
4529
|
-
```
|
|
4530
|
-
|
|
4531
|
-
## try-lock 0.2.5
|
|
4532
|
-
|
|
4533
|
-
```
|
|
4534
|
-
Copyright (c) 2018-2023 Sean McArthur
|
|
4535
|
-
Copyright (c) 2016 Alex Crichton
|
|
4536
|
-
|
|
4537
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4538
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
4539
|
-
in the Software without restriction, including without limitation the rights
|
|
4540
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
4541
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
4542
|
-
furnished to do so, subject to the following conditions:
|
|
4543
|
-
|
|
4544
|
-
The above copyright notice and this permission notice shall be included in
|
|
4545
|
-
all copies or substantial portions of the Software.
|
|
4546
|
-
|
|
4547
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
4548
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
4549
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
4550
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
4551
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
4552
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
4553
|
-
THE SOFTWARE.
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
4448
|
```
|
|
4557
4449
|
|
|
4558
4450
|
## opaque-debug 0.3.1
|
|
@@ -5384,7 +5276,7 @@ SOFTWARE.
|
|
|
5384
5276
|
|
|
5385
5277
|
```
|
|
5386
5278
|
|
|
5387
|
-
## anstream 0.6.13, anstyle-query 1.0.2, clap 4.4.18, colorchoice 1.0.0, toml_datetime 0.6.5, toml_edit 0.19.15
|
|
5279
|
+
## anstream 0.6.13, anstyle-query 1.0.2, clap 4.4.18, colorchoice 1.0.0, env_logger 0.10.2, toml_datetime 0.6.5, toml_edit 0.19.15
|
|
5388
5280
|
|
|
5389
5281
|
```
|
|
5390
5282
|
Copyright (c) Individual contributors
|
|
@@ -6114,7 +6006,7 @@ DEALINGS IN THE SOFTWARE.
|
|
|
6114
6006
|
|
|
6115
6007
|
```
|
|
6116
6008
|
|
|
6117
|
-
## adler 1.0.2, anyhow 1.0.80, async-trait 0.1.77, dyn-clone 1.0.17, fastrand 2.0.1, home 0.5.9, itoa 1.0.10, linkme 0.3.25, linkme-impl 0.3.25, linux-raw-sys 0.4.13, minimal-lexical 0.2.1, num_enum 0.6.1, num_enum_derive 0.6.1, once_cell 1.19.0, paste 1.0.14, pin-project-lite 0.2.13, prettyplease 0.2.16, proc-macro-crate 1.3.1, proc-macro2 1.0.78, quote 1.0.35, rustc-hash 1.1.0, rustix 0.38.31, rustversion 1.0.14, semver 1.0.22, send_wrapper 0.6.0, serde 1.0.197, serde_derive 1.0.197, serde_json 1.0.114, syn 1.0.109, syn 2.0.52, syn-mid 0.6.0, thiserror 1.0.57, thiserror-impl 1.0.57, unicode-ident 1.0.12, utf-8 0.7.6
|
|
6009
|
+
## adler 1.0.2, anyhow 1.0.80, async-trait 0.1.77, dyn-clone 1.0.17, fastrand 2.0.1, home 0.5.9, is-terminal 0.4.12, itoa 1.0.10, linkme 0.3.25, linkme-impl 0.3.25, linux-raw-sys 0.4.13, minimal-lexical 0.2.1, num_enum 0.6.1, num_enum_derive 0.6.1, once_cell 1.19.0, paste 1.0.14, pin-project-lite 0.2.13, prettyplease 0.2.16, proc-macro-crate 1.3.1, proc-macro2 1.0.78, quote 1.0.35, rustc-hash 1.1.0, rustix 0.38.31, rustversion 1.0.14, semver 1.0.22, send_wrapper 0.6.0, serde 1.0.197, serde_derive 1.0.197, serde_json 1.0.114, syn 1.0.109, syn 2.0.52, syn-mid 0.6.0, thiserror 1.0.57, thiserror-impl 1.0.57, unicode-ident 1.0.12, utf-8 0.7.6
|
|
6118
6010
|
|
|
6119
6011
|
```
|
|
6120
6012
|
Permission is hereby granted, free of charge, to any
|
|
@@ -6313,7 +6205,7 @@ THE SOFTWARE.
|
|
|
6313
6205
|
|
|
6314
6206
|
```
|
|
6315
6207
|
|
|
6316
|
-
## aho-corasick 1.1.2, byteorder 1.5.0, memchr 2.7.1, walkdir 2.5.0
|
|
6208
|
+
## aho-corasick 1.1.2, byteorder 1.5.0, memchr 2.7.1, termcolor 1.4.1, walkdir 2.5.0
|
|
6317
6209
|
|
|
6318
6210
|
```
|
|
6319
6211
|
The MIT License (MIT)
|
|
@@ -6424,7 +6316,7 @@ THE SOFTWARE.
|
|
|
6424
6316
|
|
|
6425
6317
|
```
|
|
6426
6318
|
|
|
6427
|
-
## security-framework 2.
|
|
6319
|
+
## security-framework 2.10.0, security-framework-sys 2.10.0
|
|
6428
6320
|
|
|
6429
6321
|
```
|
|
6430
6322
|
The MIT License (MIT)
|
|
@@ -6806,7 +6698,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
6806
6698
|
SOFTWARE.
|
|
6807
6699
|
```
|
|
6808
6700
|
|
|
6809
|
-
## boring-sys
|
|
6701
|
+
## boring-sys 4.6.0
|
|
6810
6702
|
|
|
6811
6703
|
```
|
|
6812
6704
|
/* ====================================================================
|
package/dist/net.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import type { ReadonlyDeep } from 'type-fest';
|
|
3
3
|
import * as Native from '../Native';
|
|
4
|
+
import { Wrapper } from '../Native';
|
|
4
5
|
export declare enum Environment {
|
|
5
6
|
Staging = 0,
|
|
6
7
|
Production = 1
|
|
@@ -33,31 +34,34 @@ export type ChatRequest = Readonly<{
|
|
|
33
34
|
body?: Uint8Array;
|
|
34
35
|
timeoutMillis?: number;
|
|
35
36
|
}>;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
type TokioAsyncContext = Wrapper<Native.TokioAsyncContext>;
|
|
38
|
+
type ConnectionManager = Wrapper<Native.ConnectionManager>;
|
|
39
|
+
/**
|
|
40
|
+
* Provides API methods to connect and communicate with the Chat Service.
|
|
41
|
+
* Before using either authenticated or unauthenticated channels,
|
|
42
|
+
* a corresponding `connect*` method must be called.
|
|
43
|
+
* It's also important to call {@link #disconnect()} method when the instance is no longer needed.
|
|
44
|
+
*/
|
|
45
|
+
export declare class ChatService {
|
|
46
|
+
private readonly asyncContext;
|
|
47
|
+
private readonly chatService;
|
|
48
|
+
constructor(asyncContext: TokioAsyncContext, connectionManager: ConnectionManager);
|
|
45
49
|
/**
|
|
46
50
|
* Initiates termination of the underlying connection to the Chat Service. After the service is
|
|
47
51
|
* disconnected, it will not attempt to automatically reconnect until you call
|
|
48
|
-
* {@link
|
|
52
|
+
* {@link #connectAuthenticated()} and/or {@link #connectUnauthenticated()}.
|
|
49
53
|
*
|
|
50
|
-
* Note: the same instance of
|
|
54
|
+
* Note: the same instance of `ChatService` can be reused after `disconnect()` was
|
|
51
55
|
* called.
|
|
52
56
|
*/
|
|
53
|
-
|
|
57
|
+
disconnect(): Promise<void>;
|
|
54
58
|
/**
|
|
55
59
|
* Initiates establishing of the underlying unauthenticated connection to the Chat Service. Once
|
|
56
60
|
* the service is connected, all the requests will be using the established connection. Also, if
|
|
57
61
|
* the connection is lost for any reason other than the call to {@link #disconnect()}, an
|
|
58
62
|
* automatic reconnect attempt will be made.
|
|
59
63
|
*/
|
|
60
|
-
|
|
64
|
+
connectUnauthenticated(): Promise<Native.ChatServiceDebugInfo>;
|
|
61
65
|
/**
|
|
62
66
|
* Initiates establishing of the underlying authenticated connection to the Chat Service. Once the
|
|
63
67
|
* service is connected, all the requests will be using the established connection. Also, if the
|
|
@@ -66,25 +70,59 @@ export declare class Net {
|
|
|
66
70
|
*
|
|
67
71
|
* Calling this method will result in starting to accept incoming requests from the Chat Service.
|
|
68
72
|
*/
|
|
69
|
-
|
|
73
|
+
connectAuthenticated(): Promise<Native.ChatServiceDebugInfo>;
|
|
70
74
|
/**
|
|
71
75
|
* Sends request to the Chat Service over an unauthenticated channel.
|
|
72
76
|
*
|
|
73
77
|
* In addition to the response, an object containing debug information about the request flow is
|
|
74
78
|
* returned.
|
|
75
79
|
*
|
|
76
|
-
* @throws {ChatServiceInactive} if you haven't called {@link
|
|
80
|
+
* @throws {ChatServiceInactive} if you haven't called {@link #connectUnauthenticated()}.
|
|
77
81
|
*/
|
|
78
82
|
unauthenticatedFetchAndDebug(chatRequest: ChatRequest): Promise<Native.ResponseAndDebugInfo>;
|
|
79
83
|
/**
|
|
80
84
|
* Sends request to the Chat Service over an unauthenticated channel.
|
|
81
85
|
*
|
|
82
|
-
* @throws {ChatServiceInactive} if you haven't called {@link
|
|
86
|
+
* @throws {ChatServiceInactive} if you haven't called {@link #connectUnauthenticated()}.
|
|
83
87
|
*/
|
|
84
88
|
unauthenticatedFetch(chatRequest: ChatRequest): Promise<Native.ChatResponse>;
|
|
85
89
|
static buildHttpRequest(chatRequest: ChatRequest): {
|
|
86
90
|
_nativeHandle: Native.HttpRequest;
|
|
87
91
|
};
|
|
92
|
+
}
|
|
93
|
+
export declare class Net {
|
|
94
|
+
private readonly asyncContext;
|
|
95
|
+
private readonly connectionManager;
|
|
96
|
+
/**
|
|
97
|
+
* Instance of the {@link Svr3Client} to access SVR3.
|
|
98
|
+
*/
|
|
99
|
+
svr3: Svr3Client;
|
|
100
|
+
constructor(env: Environment);
|
|
101
|
+
/**
|
|
102
|
+
* Creates a new instance of {@link ChatService}.
|
|
103
|
+
*/
|
|
104
|
+
newChatService(): ChatService;
|
|
105
|
+
/**
|
|
106
|
+
* Enables/disables IPv6 for all new connections (until changed).
|
|
107
|
+
*
|
|
108
|
+
* The flag is `true` by default.
|
|
109
|
+
*/
|
|
110
|
+
setIpv6Enabled(ipv6Enabled: boolean): void;
|
|
111
|
+
/**
|
|
112
|
+
* Sets the proxy host to be used for all new connections (until overridden).
|
|
113
|
+
*
|
|
114
|
+
* Sets a domain name and port to be used to proxy all new outgoing
|
|
115
|
+
* connections. The proxy can be overridden by calling this method again or
|
|
116
|
+
* unset by calling {@link #clearProxy}.
|
|
117
|
+
*/
|
|
118
|
+
setProxy(host: string, port: number): void;
|
|
119
|
+
/**
|
|
120
|
+
* Ensures that future connections will be made directly, not through a proxy.
|
|
121
|
+
*
|
|
122
|
+
* Clears any proxy configuration set via {@link #setProxy}. If none was set, calling this
|
|
123
|
+
* method is a no-op.
|
|
124
|
+
*/
|
|
125
|
+
clearProxy(): void;
|
|
88
126
|
cdsiLookup({ username, password }: Readonly<ServiceAuth>, { e164s, acisAndAccessKeys, returnAcisWithoutUaks, }: ReadonlyDeep<CDSRequestOptionsType>): Promise<CDSResponseType<string, string>>;
|
|
89
127
|
}
|
|
90
128
|
/**
|
|
@@ -180,3 +218,4 @@ export interface Svr3Client {
|
|
|
180
218
|
*/
|
|
181
219
|
restore(password: string, shareSet: Buffer, auth: Readonly<ServiceAuth>): Promise<Buffer>;
|
|
182
220
|
}
|
|
221
|
+
export {};
|