@signalapp/ringrtc 2.67.0 → 2.67.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.
@@ -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
- ## libsignal-account-keys 0.1.0, libsignal-core 0.1.0, mrp 2.67.0, protobuf 2.67.0, ringrtc 2.67.0, regex-aot 0.1.0, partial-default-derive 0.1.0, partial-default 0.1.0
672
+ ## libsignal-account-keys 0.1.0, libsignal-core 0.1.0, libsignal-debug 0.89.2, mrp 2.67.2, protobuf 2.67.2, ringrtc 2.67.2, regex-aot 0.1.0, partial-default-derive 0.1.0, partial-default 0.1.0
673
673
 
674
674
  ```
675
675
  GNU AFFERO GENERAL PUBLIC LICENSE
@@ -1531,7 +1531,7 @@ limitations under the License.
1531
1531
 
1532
1532
  ```
1533
1533
 
1534
- ## hax-lib-macros 0.3.6, hax-lib 0.3.6, libcrux-intrinsics 0.0.5, libcrux-platform 0.0.3, libcrux-secrets 0.0.5, libcrux-sha3 0.0.6, libcrux-traits 0.0.5
1534
+ ## hax-lib-macros 0.3.6, hax-lib 0.3.6, libcrux-intrinsics 0.0.6, libcrux-platform 0.0.3, libcrux-secrets 0.0.5, libcrux-sha3 0.0.8, libcrux-traits 0.0.6
1535
1535
 
1536
1536
  ```
1537
1537
  Apache License
@@ -4141,7 +4141,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4141
4141
  SOFTWARE.
4142
4142
  ```
4143
4143
 
4144
- ## hpke-rs-crypto 0.6.0, hpke-rs 0.6.0
4144
+ ## hpke-rs-crypto 0.6.1, hpke-rs 0.6.1
4145
4145
 
4146
4146
  ```
4147
4147
  Mozilla Public License Version 2.0
@@ -6713,6 +6713,277 @@ simplified BSD license.
6713
6713
 
6714
6714
  ```
6715
6715
 
6716
+ ## perfetto
6717
+
6718
+ ```
6719
+ Apache License
6720
+ Version 2.0, January 2004
6721
+ http://www.apache.org/licenses/
6722
+
6723
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6724
+
6725
+ 1. Definitions.
6726
+
6727
+ "License" shall mean the terms and conditions for use, reproduction,
6728
+ and distribution as defined by Sections 1 through 9 of this document.
6729
+
6730
+ "Licensor" shall mean the copyright owner or entity authorized by
6731
+ the copyright owner that is granting the License.
6732
+
6733
+ "Legal Entity" shall mean the union of the acting entity and all
6734
+ other entities that control, are controlled by, or are under common
6735
+ control with that entity. For the purposes of this definition,
6736
+ "control" means (i) the power, direct or indirect, to cause the
6737
+ direction or management of such entity, whether by contract or
6738
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
6739
+ outstanding shares, or (iii) beneficial ownership of such entity.
6740
+
6741
+ "You" (or "Your") shall mean an individual or Legal Entity
6742
+ exercising permissions granted by this License.
6743
+
6744
+ "Source" form shall mean the preferred form for making modifications,
6745
+ including but not limited to software source code, documentation
6746
+ source, and configuration files.
6747
+
6748
+ "Object" form shall mean any form resulting from mechanical
6749
+ transformation or translation of a Source form, including but
6750
+ not limited to compiled object code, generated documentation,
6751
+ and conversions to other media types.
6752
+
6753
+ "Work" shall mean the work of authorship, whether in Source or
6754
+ Object form, made available under the License, as indicated by a
6755
+ copyright notice that is included in or attached to the work
6756
+ (an example is provided in the Appendix below).
6757
+
6758
+ "Derivative Works" shall mean any work, whether in Source or Object
6759
+ form, that is based on (or derived from) the Work and for which the
6760
+ editorial revisions, annotations, elaborations, or other modifications
6761
+ represent, as a whole, an original work of authorship. For the purposes
6762
+ of this License, Derivative Works shall not include works that remain
6763
+ separable from, or merely link (or bind by name) to the interfaces of,
6764
+ the Work and Derivative Works thereof.
6765
+
6766
+ "Contribution" shall mean any work of authorship, including
6767
+ the original version of the Work and any modifications or additions
6768
+ to that Work or Derivative Works thereof, that is intentionally
6769
+ submitted to Licensor for inclusion in the Work by the copyright owner
6770
+ or by an individual or Legal Entity authorized to submit on behalf of
6771
+ the copyright owner. For the purposes of this definition, "submitted"
6772
+ means any form of electronic, verbal, or written communication sent
6773
+ to the Licensor or its representatives, including but not limited to
6774
+ communication on electronic mailing lists, source code control systems,
6775
+ and issue tracking systems that are managed by, or on behalf of, the
6776
+ Licensor for the purpose of discussing and improving the Work, but
6777
+ excluding communication that is conspicuously marked or otherwise
6778
+ designated in writing by the copyright owner as "Not a Contribution."
6779
+
6780
+ "Contributor" shall mean Licensor and any individual or Legal Entity
6781
+ on behalf of whom a Contribution has been received by Licensor and
6782
+ subsequently incorporated within the Work.
6783
+
6784
+ 2. Grant of Copyright License. Subject to the terms and conditions of
6785
+ this License, each Contributor hereby grants to You a perpetual,
6786
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
6787
+ copyright license to reproduce, prepare Derivative Works of,
6788
+ publicly display, publicly perform, sublicense, and distribute the
6789
+ Work and such Derivative Works in Source or Object form.
6790
+
6791
+ 3. Grant of Patent License. Subject to the terms and conditions of
6792
+ this License, each Contributor hereby grants to You a perpetual,
6793
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
6794
+ (except as stated in this section) patent license to make, have made,
6795
+ use, offer to sell, sell, import, and otherwise transfer the Work,
6796
+ where such license applies only to those patent claims licensable
6797
+ by such Contributor that are necessarily infringed by their
6798
+ Contribution(s) alone or by combination of their Contribution(s)
6799
+ with the Work to which such Contribution(s) was submitted. If You
6800
+ institute patent litigation against any entity (including a
6801
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
6802
+ or a Contribution incorporated within the Work constitutes direct
6803
+ or contributory patent infringement, then any patent licenses
6804
+ granted to You under this License for that Work shall terminate
6805
+ as of the date such litigation is filed.
6806
+
6807
+ 4. Redistribution. You may reproduce and distribute copies of the
6808
+ Work or Derivative Works thereof in any medium, with or without
6809
+ modifications, and in Source or Object form, provided that You
6810
+ meet the following conditions:
6811
+
6812
+ (a) You must give any other recipients of the Work or
6813
+ Derivative Works a copy of this License; and
6814
+
6815
+ (b) You must cause any modified files to carry prominent notices
6816
+ stating that You changed the files; and
6817
+
6818
+ (c) You must retain, in the Source form of any Derivative Works
6819
+ that You distribute, all copyright, patent, trademark, and
6820
+ attribution notices from the Source form of the Work,
6821
+ excluding those notices that do not pertain to any part of
6822
+ the Derivative Works; and
6823
+
6824
+ (d) If the Work includes a "NOTICE" text file as part of its
6825
+ distribution, then any Derivative Works that You distribute must
6826
+ include a readable copy of the attribution notices contained
6827
+ within such NOTICE file, excluding those notices that do not
6828
+ pertain to any part of the Derivative Works, in at least one
6829
+ of the following places: within a NOTICE text file distributed
6830
+ as part of the Derivative Works; within the Source form or
6831
+ documentation, if provided along with the Derivative Works; or,
6832
+ within a display generated by the Derivative Works, if and
6833
+ wherever such third-party notices normally appear. The contents
6834
+ of the NOTICE file are for informational purposes only and
6835
+ do not modify the License. You may add Your own attribution
6836
+ notices within Derivative Works that You distribute, alongside
6837
+ or as an addendum to the NOTICE text from the Work, provided
6838
+ that such additional attribution notices cannot be construed
6839
+ as modifying the License.
6840
+
6841
+ You may add Your own copyright statement to Your modifications and
6842
+ may provide additional or different license terms and conditions
6843
+ for use, reproduction, or distribution of Your modifications, or
6844
+ for any such Derivative Works as a whole, provided Your use,
6845
+ reproduction, and distribution of the Work otherwise complies with
6846
+ the conditions stated in this License.
6847
+
6848
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
6849
+ any Contribution intentionally submitted for inclusion in the Work
6850
+ by You to the Licensor shall be under the terms and conditions of
6851
+ this License, without any additional terms or conditions.
6852
+ Notwithstanding the above, nothing herein shall supersede or modify
6853
+ the terms of any separate license agreement you may have executed
6854
+ with Licensor regarding such Contributions.
6855
+
6856
+ 6. Trademarks. This License does not grant permission to use the trade
6857
+ names, trademarks, service marks, or product names of the Licensor,
6858
+ except as required for reasonable and customary use in describing the
6859
+ origin of the Work and reproducing the content of the NOTICE file.
6860
+
6861
+ 7. Disclaimer of Warranty. Unless required by applicable law or
6862
+ agreed to in writing, Licensor provides the Work (and each
6863
+ Contributor provides its Contributions) on an "AS IS" BASIS,
6864
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
6865
+ implied, including, without limitation, any warranties or conditions
6866
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
6867
+ PARTICULAR PURPOSE. You are solely responsible for determining the
6868
+ appropriateness of using or redistributing the Work and assume any
6869
+ risks associated with Your exercise of permissions under this License.
6870
+
6871
+ 8. Limitation of Liability. In no event and under no legal theory,
6872
+ whether in tort (including negligence), contract, or otherwise,
6873
+ unless required by applicable law (such as deliberate and grossly
6874
+ negligent acts) or agreed to in writing, shall any Contributor be
6875
+ liable to You for damages, including any direct, indirect, special,
6876
+ incidental, or consequential damages of any character arising as a
6877
+ result of this License or out of the use or inability to use the
6878
+ Work (including but not limited to damages for loss of goodwill,
6879
+ work stoppage, computer failure or malfunction, or any and all
6880
+ other commercial damages or losses), even if such Contributor
6881
+ has been advised of the possibility of such damages.
6882
+
6883
+ 9. Accepting Warranty or Additional Liability. While redistributing
6884
+ the Work or Derivative Works thereof, You may choose to offer,
6885
+ and charge a fee for, acceptance of support, warranty, indemnity,
6886
+ or other liability obligations and/or rights consistent with this
6887
+ License. However, in accepting such obligations, You may act only
6888
+ on Your own behalf and on Your sole responsibility, not on behalf
6889
+ of any other Contributor, and only if You agree to indemnify,
6890
+ defend, and hold each Contributor harmless for any liability
6891
+ incurred by, or claims asserted against, such Contributor by reason
6892
+ of your accepting any such warranty or additional liability.
6893
+
6894
+ END OF TERMS AND CONDITIONS
6895
+
6896
+ ------------------
6897
+
6898
+ Files: * except those files noted below
6899
+
6900
+ Copyright (c) 2017, The Android Open Source Project
6901
+
6902
+ Licensed under the Apache License, Version 2.0 (the "License");
6903
+ you may not use this file except in compliance with the License.
6904
+
6905
+ Unless required by applicable law or agreed to in writing, software
6906
+ distributed under the License is distributed on an "AS IS" BASIS,
6907
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
6908
+ See the License for the specific language governing permissions and
6909
+ limitations under the License.
6910
+
6911
+
6912
+ ------------------
6913
+
6914
+ Files: src/trace_processor/perfetto_sql/stdlib/chromium/*, protos/third_party/chromium/*, test/trace_processor/diff_tests/stdlib/chrome/*
6915
+
6916
+ Copyright 2015 The Chromium Authors
6917
+
6918
+ Redistribution and use in source and binary forms, with or without
6919
+ modification, are permitted provided that the following conditions are
6920
+ met:
6921
+
6922
+ * Redistributions of source code must retain the above copyright
6923
+ notice, this list of conditions and the following disclaimer.
6924
+ * Redistributions in binary form must reproduce the above
6925
+ copyright notice, this list of conditions and the following disclaimer
6926
+ in the documentation and/or other materials provided with the
6927
+ distribution.
6928
+ * Neither the name of Google LLC nor the names of its
6929
+ contributors may be used to endorse or promote products derived from
6930
+ this software without specific prior written permission.
6931
+
6932
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
6933
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
6934
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
6935
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
6936
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
6937
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
6938
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
6939
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
6940
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
6941
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
6942
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6943
+
6944
+
6945
+ ------------------
6946
+
6947
+ Files: src/trace_processor/perfetto_sql/preprocessor/preprocessor_grammar.{c, h}
6948
+
6949
+ The author disclaims copyright to this source code. In place of a legal notice, here is a blessing:
6950
+
6951
+ May you do good and not evil.
6952
+ May you find forgiveness for yourself and forgive others.
6953
+ May you share freely, never taking more than you give.
6954
+
6955
+
6956
+ ------------------
6957
+
6958
+ Files: src/base/intrusive_tree.cc
6959
+
6960
+ $OpenBSD: tree.h,v 1.31 2023/03/08 04:43:09 guenther Exp $
6961
+
6962
+ Copyright 2002 Niels Provos <provos@citi.umich.edu>
6963
+ All rights reserved.
6964
+
6965
+ Redistribution and use in source and binary forms, with or without
6966
+ modification, are permitted provided that the following conditions
6967
+ are met:
6968
+ 1. Redistributions of source code must retain the above copyright
6969
+ notice, this list of conditions and the following disclaimer.
6970
+ 2. Redistributions in binary form must reproduce the above copyright
6971
+ notice, this list of conditions and the following disclaimer in the
6972
+ documentation and/or other materials provided with the distribution.
6973
+
6974
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
6975
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
6976
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
6977
+ IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
6978
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
6979
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
6980
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
6981
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
6982
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
6983
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6984
+
6985
+ ```
6986
+
6716
6987
  ## pffft
6717
6988
 
6718
6989
  ```
@@ -6859,6 +7130,44 @@ SOFTWARE.
6859
7130
  */
6860
7131
 
6861
7132
 
7133
+ ```
7134
+
7135
+ ## protobuf
7136
+
7137
+ ```
7138
+ Copyright 2008 Google Inc. All rights reserved.
7139
+
7140
+ Redistribution and use in source and binary forms, with or without
7141
+ modification, are permitted provided that the following conditions are
7142
+ met:
7143
+
7144
+ * Redistributions of source code must retain the above copyright
7145
+ notice, this list of conditions and the following disclaimer.
7146
+ * Redistributions in binary form must reproduce the above
7147
+ copyright notice, this list of conditions and the following disclaimer
7148
+ in the documentation and/or other materials provided with the
7149
+ distribution.
7150
+ * Neither the name of Google Inc. nor the names of its
7151
+ contributors may be used to endorse or promote products derived from
7152
+ this software without specific prior written permission.
7153
+
7154
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
7155
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
7156
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
7157
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
7158
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
7159
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
7160
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
7161
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
7162
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
7163
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
7164
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7165
+
7166
+ Code generated by the Protocol Buffer compiler is owned by the owner
7167
+ of the input file used when generating it. This code is not
7168
+ standalone and requires a support library to be linked with it. This
7169
+ support library is itself covered by the above license.
7170
+
6862
7171
  ```
6863
7172
 
6864
7173
  ## rnnoise
@@ -6898,19 +7207,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6898
7207
 
6899
7208
  ```
6900
7209
 
6901
- ## sigslot
6902
-
6903
- ```
6904
- // sigslot.h: Signal/Slot classes
6905
- //
6906
- // Written by Sarah Thompson (sarah@telergy.com) 2002.
6907
- //
6908
- // License: Public domain. You are free to use this code however you like, with
6909
- // the proviso that the author takes on no responsibility or liability for any
6910
- // use.
6911
-
6912
- ```
6913
-
6914
7210
  ## spl_sqrt_floor
6915
7211
 
6916
7212
  ```
@@ -1,11 +1,11 @@
1
1
  export declare class CallLinkRootKey {
2
- readonly bytes: Uint8Array;
3
- constructor(bytes: Uint8Array);
2
+ readonly bytes: Uint8Array<ArrayBuffer>;
3
+ constructor(bytes: Uint8Array<ArrayBuffer>);
4
4
  static parse(str: string): CallLinkRootKey;
5
- static fromBytes(bytes: Uint8Array): CallLinkRootKey;
5
+ static fromBytes(bytes: Uint8Array<ArrayBuffer>): CallLinkRootKey;
6
6
  static generate(): CallLinkRootKey;
7
- static generateAdminPassKey(): Uint8Array;
8
- deriveRoomId(): Uint8Array;
7
+ static generateAdminPassKey(): Uint8Array<ArrayBuffer>;
8
+ deriveRoomId(): Uint8Array<ArrayBuffer>;
9
9
  toString(): string;
10
10
  }
11
11
  export declare class CallLinkState {
@@ -67,7 +67,7 @@ export declare class CallSummary {
67
67
  * Raw call telemetry data containing periodic internal/opaque values for the
68
68
  * last few seconds of the call, or undefined if unavailable.
69
69
  */
70
- readonly rawStats: Uint8Array | undefined;
70
+ readonly rawStats: Uint8Array<ArrayBuffer> | undefined;
71
71
  /**
72
72
  * Textual description of raw telemetry data, or undefined if unavailable.
73
73
  */
@@ -5,8 +5,8 @@ export declare function callIdFromRingId(ringId: bigint): CallId;
5
5
  declare class Config {
6
6
  field_trials: Record<string, string> | undefined;
7
7
  }
8
- type GroupId = Uint8Array;
9
- type GroupCallUserId = Uint8Array;
8
+ type GroupId = Uint8Array<ArrayBuffer>;
9
+ type GroupCallUserId = Uint8Array<ArrayBuffer>;
10
10
  export interface PeekDeviceInfo {
11
11
  demuxId: number;
12
12
  userId?: GroupCallUserId;
@@ -74,7 +74,7 @@ interface RawCallLinkState {
74
74
  rawRestrictions: number;
75
75
  revoked: boolean;
76
76
  expiration: Date;
77
- rootKey: Uint8Array;
77
+ rootKey: Uint8Array<ArrayBuffer>;
78
78
  }
79
79
  export type EmptyObj = Record<PropertyKey, never>;
80
80
  export type HttpResult<T> = {
@@ -102,22 +102,22 @@ export declare class RingRTCType {
102
102
  handleLogMessage: ((level: CallLogLevel, fileName: string, line: number, message: string) => void) | null;
103
103
  handleSendHttpRequest: ((requestId: number, url: string, method: HttpMethod, headers: {
104
104
  [name: string]: string;
105
- }, body: Uint8Array | undefined) => void) | null;
106
- handleSendCallMessage: ((recipientUuid: Uint8Array, message: Uint8Array, urgency: CallMessageUrgency) => void) | null;
107
- handleSendCallMessageToGroup: ((groupId: GroupId, message: Uint8Array, urgency: CallMessageUrgency, overrideRecipients: Array<Uint8Array>) => void) | null;
108
- handleSendCallMessageToAdhocGroup: ((message: Uint8Array, urgency: CallMessageUrgency, expiration: Date, recipientsAndEndorsements: Array<{
109
- recipientId: Uint8Array;
110
- endorsement: Uint8Array;
105
+ }, body: Uint8Array<ArrayBuffer> | undefined) => void) | null;
106
+ handleSendCallMessage: ((recipientUuid: Uint8Array<ArrayBuffer>, message: Uint8Array<ArrayBuffer>, urgency: CallMessageUrgency) => void) | null;
107
+ handleSendCallMessageToGroup: ((groupId: GroupId, message: Uint8Array<ArrayBuffer>, urgency: CallMessageUrgency, overrideRecipients: Array<Uint8Array<ArrayBuffer>>) => void) | null;
108
+ handleSendCallMessageToAdhocGroup: ((message: Uint8Array<ArrayBuffer>, urgency: CallMessageUrgency, expiration: Date, recipientsAndEndorsements: Array<{
109
+ recipientId: Uint8Array<ArrayBuffer>;
110
+ endorsement: Uint8Array<ArrayBuffer>;
111
111
  }>) => void) | null;
112
112
  handleGroupCallRingUpdate: ((groupId: GroupId, ringId: bigint, sender: GroupCallUserId, update: RingUpdate) => void) | null;
113
113
  handleRtcStatsReport: ((reportJson: string) => void) | null;
114
114
  constructor();
115
115
  setConfig(config: Config): void;
116
- setSelfUuid(uuid: Uint8Array): void;
116
+ setSelfUuid(uuid: Uint8Array<ArrayBuffer>): void;
117
117
  addAsset(assetGroup: string, asset: {
118
118
  filePath: string;
119
119
  } | {
120
- content: Uint8Array;
120
+ content: Uint8Array<ArrayBuffer>;
121
121
  }): void;
122
122
  startOutgoingCall(remoteUserId: UserId, isVideoCall: boolean, localDeviceId: DeviceId): Call;
123
123
  cancelGroupRing(groupId: GroupId, ringId: bigint, reason: RingCancelReason | null): void;
@@ -133,10 +133,10 @@ export declare class RingRTCType {
133
133
  onNetworkRouteChanged(remoteUserId: UserId, localNetworkAdapterType: NetworkAdapterType): void;
134
134
  onAudioLevels(remoteUserId: UserId, capturedLevel: RawAudioLevel, receivedLevel: RawAudioLevel): void;
135
135
  onLowBandwidthForVideo(remoteUserId: UserId, recovered: boolean): void;
136
- renderVideoFrame(width: number, height: number, buffer: Uint8Array): void;
137
- onSendOffer(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean, offerType: OfferType, opaque: Uint8Array): void;
138
- onSendAnswer(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean, opaque: Uint8Array): void;
139
- onSendIceCandidates(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean, candidates: Array<Uint8Array>): void;
136
+ renderVideoFrame(width: number, height: number, buffer: Uint8Array<ArrayBuffer>): void;
137
+ onSendOffer(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean, offerType: OfferType, opaque: Uint8Array<ArrayBuffer>): void;
138
+ onSendAnswer(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean, opaque: Uint8Array<ArrayBuffer>): void;
139
+ onSendIceCandidates(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean, candidates: Array<Uint8Array<ArrayBuffer>>): void;
140
140
  onSendHangup(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean, hangupType: HangupType, deviceId: DeviceId | null): void;
141
141
  onSendBusy(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean): void;
142
142
  private sendSignaling;
@@ -150,7 +150,7 @@ export declare class RingRTCType {
150
150
  * Expected failure codes include:
151
151
  * - 404: the room does not exist (or expired so long ago that it has been removed from the server)
152
152
  */
153
- readCallLink(sfuUrl: string, authCredentialPresentation: Uint8Array, linkRootKey: CallLinkRootKey): Promise<HttpResult<CallLinkState>>;
153
+ readCallLink(sfuUrl: string, authCredentialPresentation: Uint8Array<ArrayBuffer>, linkRootKey: CallLinkRootKey): Promise<HttpResult<CallLinkState>>;
154
154
  /**
155
155
  * Asynchronous request to create a new call link.
156
156
  *
@@ -187,7 +187,7 @@ export declare class RingRTCType {
187
187
  * @param adminPasskey - the arbitrary passkey to use for the new room
188
188
  * @param callLinkPublicParams - the serialized CallLinkPublicParams for the new room
189
189
  */
190
- createCallLink(sfuUrl: string, createCredentialPresentation: Uint8Array, linkRootKey: CallLinkRootKey, adminPasskey: Uint8Array, callLinkPublicParams: Uint8Array, restrictions: Exclude<CallLinkRestrictions, CallLinkRestrictions.Unknown>): Promise<HttpResult<CallLinkState>>;
190
+ createCallLink(sfuUrl: string, createCredentialPresentation: Uint8Array<ArrayBuffer>, linkRootKey: CallLinkRootKey, adminPasskey: Uint8Array<ArrayBuffer>, callLinkPublicParams: Uint8Array<ArrayBuffer>, restrictions: Exclude<CallLinkRestrictions, CallLinkRestrictions.Unknown>): Promise<HttpResult<CallLinkState>>;
191
191
  /**
192
192
  * Asynchronous request to update a call link's name.
193
193
  *
@@ -203,7 +203,7 @@ export declare class RingRTCType {
203
203
  * @param adminPasskey - the passkey specified when the link was created
204
204
  * @param newName - the new name to use
205
205
  */
206
- updateCallLinkName(sfuUrl: string, authCredentialPresentation: Uint8Array, linkRootKey: CallLinkRootKey, adminPasskey: Uint8Array, newName: string): Promise<HttpResult<CallLinkState>>;
206
+ updateCallLinkName(sfuUrl: string, authCredentialPresentation: Uint8Array<ArrayBuffer>, linkRootKey: CallLinkRootKey, adminPasskey: Uint8Array<ArrayBuffer>, newName: string): Promise<HttpResult<CallLinkState>>;
207
207
  /**
208
208
  * Asynchronous request to update a call link's restrictions.
209
209
  *
@@ -220,7 +220,7 @@ export declare class RingRTCType {
220
220
  * @param adminPasskey - the passkey specified when the link was created
221
221
  * @param restrictions - the new restrictions to use
222
222
  */
223
- updateCallLinkRestrictions(sfuUrl: string, authCredentialPresentation: Uint8Array, linkRootKey: CallLinkRootKey, adminPasskey: Uint8Array, restrictions: Exclude<CallLinkRestrictions, CallLinkRestrictions.Unknown>): Promise<HttpResult<CallLinkState>>;
223
+ updateCallLinkRestrictions(sfuUrl: string, authCredentialPresentation: Uint8Array<ArrayBuffer>, linkRootKey: CallLinkRootKey, adminPasskey: Uint8Array<ArrayBuffer>, restrictions: Exclude<CallLinkRestrictions, CallLinkRestrictions.Unknown>): Promise<HttpResult<CallLinkState>>;
224
224
  /**
225
225
  * Asynchronous request to delete a call link.
226
226
  *
@@ -235,14 +235,14 @@ export declare class RingRTCType {
235
235
  * @param linkRootKey - the root key for the call link
236
236
  * @param adminPasskey - the passkey specified when the link was created
237
237
  */
238
- deleteCallLink(sfuUrl: string, authCredentialPresentation: Uint8Array, linkRootKey: CallLinkRootKey, adminPasskey: Uint8Array): Promise<HttpResult<undefined>>;
239
- receivedHttpResponse(requestId: number, status: number, body: Uint8Array): void;
238
+ deleteCallLink(sfuUrl: string, authCredentialPresentation: Uint8Array<ArrayBuffer>, linkRootKey: CallLinkRootKey, adminPasskey: Uint8Array<ArrayBuffer>): Promise<HttpResult<undefined>>;
239
+ receivedHttpResponse(requestId: number, status: number, body: Uint8Array<ArrayBuffer>): void;
240
240
  httpRequestFailed(requestId: number, debugInfo: string | undefined): void;
241
- getGroupCall(groupId: GroupId, sfuUrl: string, hkdfExtraInfo: Uint8Array, audioLevelsIntervalMillis: number | undefined, dredDuration: number | undefined, observer: GroupCallObserver): GroupCall | undefined;
242
- getCallLinkCall(sfuUrl: string, endorsementPublicKey: Uint8Array, authCredentialPresentation: Uint8Array, rootKey: CallLinkRootKey, adminPasskey: Uint8Array | undefined, hkdfExtraInfo: Uint8Array, audioLevelsIntervalMillis: number | undefined, dredDuration: number | undefined, observer: GroupCallObserver): GroupCall | undefined;
243
- peekGroupCall(sfuUrl: string, membershipProof: Uint8Array, groupMembers: Array<GroupMemberInfo>): Promise<PeekInfo>;
241
+ getGroupCall(groupId: GroupId, sfuUrl: string, hkdfExtraInfo: Uint8Array<ArrayBuffer>, audioLevelsIntervalMillis: number | undefined, dredDuration: number | undefined, observer: GroupCallObserver): GroupCall | undefined;
242
+ getCallLinkCall(sfuUrl: string, endorsementPublicKey: Uint8Array<ArrayBuffer>, authCredentialPresentation: Uint8Array<ArrayBuffer>, rootKey: CallLinkRootKey, adminPasskey: Uint8Array<ArrayBuffer> | undefined, hkdfExtraInfo: Uint8Array<ArrayBuffer>, audioLevelsIntervalMillis: number | undefined, dredDuration: number | undefined, observer: GroupCallObserver): GroupCall | undefined;
243
+ peekGroupCall(sfuUrl: string, membershipProof: Uint8Array<ArrayBuffer>, groupMembers: Array<GroupMemberInfo>): Promise<PeekInfo>;
244
244
  setMicrophoneWarmupEnabled(warmup: boolean): void;
245
- peekCallLinkCall(sfuUrl: string, authCredentialPresentation: Uint8Array, rootKey: CallLinkRootKey): Promise<HttpResult<PeekInfo>>;
245
+ peekCallLinkCall(sfuUrl: string, authCredentialPresentation: Uint8Array<ArrayBuffer>, rootKey: CallLinkRootKey): Promise<HttpResult<PeekInfo>>;
246
246
  requestMembershipProof(clientId: GroupCallClientId): void;
247
247
  requestGroupMembers(clientId: GroupCallClientId): void;
248
248
  handleConnectionStateChanged(clientId: GroupCallClientId, connectionState: ConnectionState): void;
@@ -271,23 +271,23 @@ export declare class RingRTCType {
271
271
  logInfo(message: string): void;
272
272
  handleCallingMessage(message: CallingMessage, options: {
273
273
  remoteUserId: UserId;
274
- remoteUuid?: Uint8Array;
274
+ remoteUuid?: Uint8Array<ArrayBuffer>;
275
275
  remoteDeviceId: DeviceId;
276
276
  localDeviceId: DeviceId;
277
277
  ageSec: number;
278
278
  receivedAtCounter: number;
279
279
  receivedAtDate: number;
280
- senderIdentityKey: Uint8Array;
281
- receiverIdentityKey: Uint8Array;
280
+ senderIdentityKey: Uint8Array<ArrayBuffer>;
281
+ receiverIdentityKey: Uint8Array<ArrayBuffer>;
282
282
  }): void;
283
283
  sendHttpRequest(requestId: number, url: string, method: HttpMethod, headers: {
284
284
  [name: string]: string;
285
- }, body: Uint8Array | undefined): void;
286
- sendCallMessage(recipientUuid: Uint8Array, message: Uint8Array, urgency: CallMessageUrgency): void;
287
- sendCallMessageToGroup(groupId: GroupId, message: Uint8Array, urgency: CallMessageUrgency, overrideRecipients: Array<Uint8Array>): void;
288
- sendCallMessageToAdhocGroup(message: Uint8Array, urgency: CallMessageUrgency, expiration: Date, recipientsAndEndorsements: Array<{
289
- recipientId: Uint8Array;
290
- endorsement: Uint8Array;
285
+ }, body: Uint8Array<ArrayBuffer> | undefined): void;
286
+ sendCallMessage(recipientUuid: Uint8Array<ArrayBuffer>, message: Uint8Array<ArrayBuffer>, urgency: CallMessageUrgency): void;
287
+ sendCallMessageToGroup(groupId: GroupId, message: Uint8Array<ArrayBuffer>, urgency: CallMessageUrgency, overrideRecipients: Array<Uint8Array<ArrayBuffer>>): void;
288
+ sendCallMessageToAdhocGroup(message: Uint8Array<ArrayBuffer>, urgency: CallMessageUrgency, expiration: Date, recipientsAndEndorsements: Array<{
289
+ recipientId: Uint8Array<ArrayBuffer>;
290
+ endorsement: Uint8Array<ArrayBuffer>;
291
291
  }>): void;
292
292
  get call(): Call | null;
293
293
  getCall(callId: CallId): Call | null;
@@ -341,7 +341,7 @@ export interface VideoFrameSender {
341
341
  * @param format - The pixel format of the video data
342
342
  * @param buffer - The raw video frame data
343
343
  */
344
- sendVideoFrame(width: number, height: number, format: VideoPixelFormatEnum, buffer: Uint8Array): void;
344
+ sendVideoFrame(width: number, height: number, format: VideoPixelFormatEnum, buffer: Uint8Array<ArrayBuffer>): void;
345
345
  }
346
346
  /**
347
347
  * Interface for retrieving received video frames from the RingRTC library.
@@ -363,7 +363,7 @@ export interface VideoFrameSource {
363
363
  *
364
364
  * Returns undefined if no new frame is available
365
365
  */
366
- receiveVideoFrame(buffer: Uint8Array, maxWidth: number, maxHeight: number): [number, number] | undefined;
366
+ receiveVideoFrame(buffer: Uint8Array<ArrayBuffer>, maxWidth: number, maxHeight: number): [number, number] | undefined;
367
367
  }
368
368
  export declare class Call {
369
369
  private readonly _callManager;
@@ -400,7 +400,7 @@ export declare class Call {
400
400
  * @param recovered - whether there is enough bandwidth to send video reliably
401
401
  */
402
402
  handleLowBandwidthForVideo?: (recovered: boolean) => void;
403
- renderVideoFrame?: (width: number, height: number, buffer: Uint8Array) => void;
403
+ renderVideoFrame?: (width: number, height: number, buffer: Uint8Array<ArrayBuffer>) => void;
404
404
  constructor(callManager: CallManager, remoteUserId: UserId, callId: CallId, isIncoming: boolean, isVideoCall: boolean, state: CallState);
405
405
  get remoteUserId(): UserId;
406
406
  get isIncoming(): boolean;
@@ -419,8 +419,8 @@ export declare class Call {
419
419
  setOutgoingAudioMuted(muted: boolean): void;
420
420
  setOutgoingVideoMuted(muted: boolean): void;
421
421
  setOutgoingVideoIsScreenShare(isScreenShare: boolean): void;
422
- sendVideoFrame(width: number, height: number, format: VideoPixelFormatEnum, buffer: Uint8Array): void;
423
- receiveVideoFrame(buffer: Uint8Array, maxWidth: number, maxHeight: number): [number, number] | undefined;
422
+ sendVideoFrame(width: number, height: number, format: VideoPixelFormatEnum, buffer: Uint8Array<ArrayBuffer>): void;
423
+ receiveVideoFrame(buffer: Uint8Array<ArrayBuffer>, maxWidth: number, maxHeight: number): [number, number] | undefined;
424
424
  updateDataMode(dataMode: DataMode): void;
425
425
  }
426
426
  export type GroupCallClientId = number;
@@ -473,7 +473,7 @@ export declare class LocalDeviceState {
473
473
  }
474
474
  export declare class RemoteDeviceState {
475
475
  demuxId: number;
476
- userId: Uint8Array;
476
+ userId: Uint8Array<ArrayBuffer>;
477
477
  mediaKeysReceived: boolean;
478
478
  audioMuted: boolean | undefined;
479
479
  videoMuted: boolean | undefined;
@@ -485,12 +485,12 @@ export declare class RemoteDeviceState {
485
485
  speakerTime: string;
486
486
  forwardingVideo: boolean | undefined;
487
487
  isHigherResolutionPending: boolean;
488
- constructor(demuxId: number, userId: Uint8Array, addedTime: string, speakerTime: string, mediaKeysReceived: boolean);
488
+ constructor(demuxId: number, userId: Uint8Array<ArrayBuffer>, addedTime: string, speakerTime: string, mediaKeysReceived: boolean);
489
489
  }
490
490
  export declare class GroupMemberInfo {
491
- userId: Uint8Array;
492
- userIdCipherText: Uint8Array;
493
- constructor(userId: Uint8Array, userIdCipherText: Uint8Array);
491
+ userId: Uint8Array<ArrayBuffer>;
492
+ userIdCipherText: Uint8Array<ArrayBuffer>;
493
+ constructor(userId: Uint8Array<ArrayBuffer>, userIdCipherText: Uint8Array<ArrayBuffer>);
494
494
  }
495
495
  export declare class VideoRequest {
496
496
  demuxId: number;
@@ -549,12 +549,12 @@ export declare class GroupCall {
549
549
  resendMediaKeys(): void;
550
550
  setDataMode(dataMode: DataMode): void;
551
551
  requestVideo(resolutions: Array<VideoRequest>, activeSpeakerHeight: number): void;
552
- approveUser(otherUserId: Uint8Array): void;
553
- denyUser(otherUserId: Uint8Array): void;
552
+ approveUser(otherUserId: Uint8Array<ArrayBuffer>): void;
553
+ denyUser(otherUserId: Uint8Array<ArrayBuffer>): void;
554
554
  removeClient(otherClientDemuxId: number): void;
555
555
  blockClient(otherClientDemuxId: number): void;
556
556
  setGroupMembers(members: Array<GroupMemberInfo>): void;
557
- setMembershipProof(proof: Uint8Array): void;
557
+ setMembershipProof(proof: Uint8Array<ArrayBuffer>): void;
558
558
  requestMembershipProof(): void;
559
559
  requestGroupMembers(): void;
560
560
  handleConnectionStateChanged(connectionState: ConnectionState): void;
@@ -567,7 +567,7 @@ export declare class GroupCall {
567
567
  handleRemoteDevicesChanged(remoteDeviceStates: Array<RemoteDeviceState>): void;
568
568
  handlePeekChanged(info: PeekInfo): void;
569
569
  handleEnded(reason: CallEndReason, summary: CallSummary): void;
570
- sendVideoFrame(width: number, height: number, format: VideoPixelFormatEnum, buffer: Uint8Array): void;
570
+ sendVideoFrame(width: number, height: number, format: VideoPixelFormatEnum, buffer: Uint8Array<ArrayBuffer>): void;
571
571
  getVideoSource(remoteDemuxId: number): GroupCallVideoFrameSource;
572
572
  setRemoteAspectRatio(remoteDemuxId: number, aspectRatio: number): void;
573
573
  setRtcStatsInterval(intervalMillis: number): void;
@@ -580,7 +580,7 @@ declare class GroupCallVideoFrameSource {
580
580
  private readonly _groupCall;
581
581
  private readonly _remoteDemuxId;
582
582
  constructor(callManager: CallManager, groupCall: GroupCall, remoteDemuxId: number);
583
- receiveVideoFrame(buffer: Uint8Array, maxWidth: number, maxHeight: number): [number, number] | undefined;
583
+ receiveVideoFrame(buffer: Uint8Array<ArrayBuffer>, maxWidth: number, maxHeight: number): [number, number] | undefined;
584
584
  }
585
585
  export type UserId = string;
586
586
  export type DeviceId = number;
@@ -597,8 +597,8 @@ export declare class CallingMessage {
597
597
  export declare class OfferMessage {
598
598
  callId: CallId;
599
599
  type: OfferType;
600
- opaque: Uint8Array;
601
- constructor(callId: CallId, type: OfferType, opaque: Uint8Array);
600
+ opaque: Uint8Array<ArrayBuffer>;
601
+ constructor(callId: CallId, type: OfferType, opaque: Uint8Array<ArrayBuffer>);
602
602
  }
603
603
  export declare enum OfferType {
604
604
  AudioCall = 0,
@@ -606,13 +606,13 @@ export declare enum OfferType {
606
606
  }
607
607
  export declare class AnswerMessage {
608
608
  callId: CallId;
609
- opaque: Uint8Array;
610
- constructor(callId: CallId, opaque: Uint8Array);
609
+ opaque: Uint8Array<ArrayBuffer>;
610
+ constructor(callId: CallId, opaque: Uint8Array<ArrayBuffer>);
611
611
  }
612
612
  export declare class IceCandidateMessage {
613
613
  callId: CallId;
614
- opaque: Uint8Array;
615
- constructor(callId: CallId, opaque: Uint8Array);
614
+ opaque: Uint8Array<ArrayBuffer>;
615
+ constructor(callId: CallId, opaque: Uint8Array<ArrayBuffer>);
616
616
  }
617
617
  export declare class BusyMessage {
618
618
  callId: CallId;
@@ -625,7 +625,7 @@ export declare class HangupMessage {
625
625
  constructor(callId: CallId, type: HangupType, deviceId: DeviceId);
626
626
  }
627
627
  export declare class OpaqueMessage {
628
- data?: Uint8Array;
628
+ data?: Uint8Array<ArrayBuffer>;
629
629
  }
630
630
  export declare enum HangupType {
631
631
  Normal = 0,
@@ -644,8 +644,8 @@ export declare enum RingCancelReason {
644
644
  }
645
645
  export interface CallManager {
646
646
  setConfig(config: Config): void;
647
- setSelfUuid(uuid: Uint8Array): void;
648
- addAsset(assetGroup: string, filePath: string | null, content: Uint8Array | null): void;
647
+ setSelfUuid(uuid: Uint8Array<ArrayBuffer>): void;
648
+ addAsset(assetGroup: string, filePath: string | null, content: Uint8Array<ArrayBuffer> | null): void;
649
649
  createOutgoingCall(remoteUserId: UserId, isVideoCall: boolean, localDeviceId: DeviceId): CallId;
650
650
  proceed(callId: CallId, iceServers: Array<IceServer>, hideIp: boolean, dataMode: DataMode, audioLevelsIntervalMillis: number, dredDuration: number): void;
651
651
  accept(callId: CallId): void;
@@ -659,18 +659,18 @@ export interface CallManager {
659
659
  setOutgoingVideoEnabled(enabled: boolean): void;
660
660
  setOutgoingVideoIsScreenShare(enabled: boolean): void;
661
661
  updateDataMode(dataMode: DataMode): void;
662
- sendVideoFrame(width: number, height: number, format: VideoPixelFormatEnum, buffer: Uint8Array): void;
663
- receiveVideoFrame(buffer: Uint8Array, maxWidth: number, maxHeight: number): [number, number] | undefined;
664
- receivedOffer(remoteUserId: UserId, remoteDeviceId: DeviceId, localDeviceId: DeviceId, messageAgeSec: number, callId: CallId, offerType: OfferType, opaque: Uint8Array, senderIdentityKey: Uint8Array, receiverIdentityKey: Uint8Array): void;
665
- receivedAnswer(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, opaque: Uint8Array, senderIdentityKey: Uint8Array, receiverIdentityKey: Uint8Array): void;
666
- receivedIceCandidates(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, candidates: Array<Uint8Array>): void;
662
+ sendVideoFrame(width: number, height: number, format: VideoPixelFormatEnum, buffer: Uint8Array<ArrayBuffer>): void;
663
+ receiveVideoFrame(buffer: Uint8Array<ArrayBuffer>, maxWidth: number, maxHeight: number): [number, number] | undefined;
664
+ receivedOffer(remoteUserId: UserId, remoteDeviceId: DeviceId, localDeviceId: DeviceId, messageAgeSec: number, callId: CallId, offerType: OfferType, opaque: Uint8Array<ArrayBuffer>, senderIdentityKey: Uint8Array<ArrayBuffer>, receiverIdentityKey: Uint8Array<ArrayBuffer>): void;
665
+ receivedAnswer(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, opaque: Uint8Array<ArrayBuffer>, senderIdentityKey: Uint8Array<ArrayBuffer>, receiverIdentityKey: Uint8Array<ArrayBuffer>): void;
666
+ receivedIceCandidates(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, candidates: Array<Uint8Array<ArrayBuffer>>): void;
667
667
  receivedHangup(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, hangupType: HangupType, hangupDeviceId: DeviceId | null): void;
668
668
  receivedBusy(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId): void;
669
- receivedCallMessage(remoteUserId: Uint8Array, remoteDeviceId: DeviceId, localDeviceId: DeviceId, data: Uint8Array, messageAgeSec: number): void;
670
- receivedHttpResponse(requestId: number, status: number, body: Uint8Array): void;
669
+ receivedCallMessage(remoteUserId: Uint8Array<ArrayBuffer>, remoteDeviceId: DeviceId, localDeviceId: DeviceId, data: Uint8Array<ArrayBuffer>, messageAgeSec: number): void;
670
+ receivedHttpResponse(requestId: number, status: number, body: Uint8Array<ArrayBuffer>): void;
671
671
  httpRequestFailed(requestId: number, debugInfo: string | undefined): void;
672
- createGroupCallClient(groupId: GroupId, sfuUrl: string, hkdfExtraInfo: Uint8Array, audioLevelsIntervalMillis: number, dredDuration: number): GroupCallClientId;
673
- createCallLinkCallClient(sfuUrl: string, endorsementPublicKey: Uint8Array, authCredentialPresentation: Uint8Array, linkRootKey: Uint8Array, adminPasskey: Uint8Array | undefined, hkdfExtraInfo: Uint8Array, audioLevelsIntervalMillis: number, dredDuration: number): GroupCallClientId;
672
+ createGroupCallClient(groupId: GroupId, sfuUrl: string, hkdfExtraInfo: Uint8Array<ArrayBuffer>, audioLevelsIntervalMillis: number, dredDuration: number): GroupCallClientId;
673
+ createCallLinkCallClient(sfuUrl: string, endorsementPublicKey: Uint8Array<ArrayBuffer>, authCredentialPresentation: Uint8Array<ArrayBuffer>, linkRootKey: Uint8Array<ArrayBuffer>, adminPasskey: Uint8Array<ArrayBuffer> | undefined, hkdfExtraInfo: Uint8Array<ArrayBuffer>, audioLevelsIntervalMillis: number, dredDuration: number): GroupCallClientId;
674
674
  deleteGroupCallClient(clientId: GroupCallClientId): void;
675
675
  connect(clientId: GroupCallClientId): void;
676
676
  join(clientId: GroupCallClientId): void;
@@ -682,26 +682,26 @@ export interface CallManager {
682
682
  setOutgoingVideoMuted(clientId: GroupCallClientId, muted: boolean): void;
683
683
  setPresenting(clientId: GroupCallClientId, presenting: boolean): void;
684
684
  setOutgoingGroupCallVideoIsScreenShare(clientId: GroupCallClientId, isScreenShare: boolean): void;
685
- groupRing(clientId: GroupCallClientId, recipient: Uint8Array | undefined): void;
685
+ groupRing(clientId: GroupCallClientId, recipient: Uint8Array<ArrayBuffer> | undefined): void;
686
686
  groupReact(clientId: GroupCallClientId, value: string): void;
687
687
  groupRaiseHand(clientId: GroupCallClientId, raise: boolean): void;
688
688
  resendMediaKeys(clientId: GroupCallClientId): void;
689
689
  setDataMode(clientId: GroupCallClientId, dataMode: DataMode): void;
690
690
  requestVideo(clientId: GroupCallClientId, resolutions: Array<VideoRequest>, activeSpeakerHeight: number): void;
691
- approveUser(clientId: GroupCallClientId, otherUserId: Uint8Array): void;
692
- denyUser(clientId: GroupCallClientId, otherUserId: Uint8Array): void;
691
+ approveUser(clientId: GroupCallClientId, otherUserId: Uint8Array<ArrayBuffer>): void;
692
+ denyUser(clientId: GroupCallClientId, otherUserId: Uint8Array<ArrayBuffer>): void;
693
693
  removeClient(clientId: GroupCallClientId, otherClientDemuxId: number): void;
694
694
  blockClient(clientId: GroupCallClientId, otherClientDemuxId: number): void;
695
695
  setGroupMembers(clientId: GroupCallClientId, members: Array<GroupMemberInfo>): void;
696
- setMembershipProof(clientId: GroupCallClientId, proof: Uint8Array): void;
697
- receiveGroupCallVideoFrame(clientId: GroupCallClientId, remoteDemuxId: number, buffer: Uint8Array, maxWidth: number, maxHeight: number): [number, number] | undefined;
696
+ setMembershipProof(clientId: GroupCallClientId, proof: Uint8Array<ArrayBuffer>): void;
697
+ receiveGroupCallVideoFrame(clientId: GroupCallClientId, remoteDemuxId: number, buffer: Uint8Array<ArrayBuffer>, maxWidth: number, maxHeight: number): [number, number] | undefined;
698
698
  setRtcStatsInterval(clientId: GroupCallClientId, intervalMillis: number): void;
699
- readCallLink(requestId: number, sfuUrl: string, authCredentialPresentation: Uint8Array, linkRootKey: Uint8Array): void;
700
- createCallLink(requestId: number, sfuUrl: string, createCredentialPresentation: Uint8Array, linkRootKey: Uint8Array, adminPasskey: Uint8Array, callLinkPublicParams: Uint8Array, restrictions: number | undefined): void;
701
- updateCallLink(requestId: number, sfuUrl: string, authCredentialPresentation: Uint8Array, linkRootKey: Uint8Array, adminPasskey: Uint8Array, newName: string | undefined, newRestrictions: number | undefined, newRevoked: boolean | undefined): void;
702
- deleteCallLink(requestId: number, sfuUrl: string, authCredentialPresentation: Uint8Array, linkRootKey: Uint8Array, adminPasskey: Uint8Array): void;
703
- peekGroupCall(requestId: number, sfu_url: string, membership_proof: Uint8Array, group_members: Array<GroupMemberInfo>): void;
704
- peekCallLinkCall(requestId: number, sfuUrl: string, authCredentialPresentation: Uint8Array, linkRootKey: Uint8Array): void;
699
+ readCallLink(requestId: number, sfuUrl: string, authCredentialPresentation: Uint8Array<ArrayBuffer>, linkRootKey: Uint8Array<ArrayBuffer>): void;
700
+ createCallLink(requestId: number, sfuUrl: string, createCredentialPresentation: Uint8Array<ArrayBuffer>, linkRootKey: Uint8Array<ArrayBuffer>, adminPasskey: Uint8Array<ArrayBuffer>, callLinkPublicParams: Uint8Array<ArrayBuffer>, restrictions: number | undefined): void;
701
+ updateCallLink(requestId: number, sfuUrl: string, authCredentialPresentation: Uint8Array<ArrayBuffer>, linkRootKey: Uint8Array<ArrayBuffer>, adminPasskey: Uint8Array<ArrayBuffer>, newName: string | undefined, newRestrictions: number | undefined, newRevoked: boolean | undefined): void;
702
+ deleteCallLink(requestId: number, sfuUrl: string, authCredentialPresentation: Uint8Array<ArrayBuffer>, linkRootKey: Uint8Array<ArrayBuffer>, adminPasskey: Uint8Array<ArrayBuffer>): void;
703
+ peekGroupCall(requestId: number, sfu_url: string, membership_proof: Uint8Array<ArrayBuffer>, group_members: Array<GroupMemberInfo>): void;
704
+ peekCallLinkCall(requestId: number, sfuUrl: string, authCredentialPresentation: Uint8Array<ArrayBuffer>, linkRootKey: Uint8Array<ArrayBuffer>): void;
705
705
  getAudioInputs(): Array<AudioDevice>;
706
706
  setAudioInput(index: number): void;
707
707
  getAudioOutputs(): Array<AudioDevice>;
@@ -716,20 +716,20 @@ export interface CallManagerCallbacks {
716
716
  onRemoteAudioEnabled(remoteUserId: UserId, enabled: boolean): void;
717
717
  onRemoteVideoEnabled(remoteUserId: UserId, enabled: boolean): void;
718
718
  onRemoteSharingScreen(remoteUserId: UserId, enabled: boolean): void;
719
- onSendOffer(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean, mediaType: number, opaque: Uint8Array): void;
720
- onSendAnswer(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean, opaque: Uint8Array): void;
721
- onSendIceCandidates(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean, candidates: Array<Uint8Array>): void;
719
+ onSendOffer(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean, mediaType: number, opaque: Uint8Array<ArrayBuffer>): void;
720
+ onSendAnswer(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean, opaque: Uint8Array<ArrayBuffer>): void;
721
+ onSendIceCandidates(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean, candidates: Array<Uint8Array<ArrayBuffer>>): void;
722
722
  onSendHangup(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean, HangupType: HangupType, hangupDeviceId: DeviceId | null): void;
723
723
  onSendBusy(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean): void;
724
- sendCallMessage(recipientUuid: Uint8Array, message: Uint8Array, urgency: CallMessageUrgency): void;
725
- sendCallMessageToGroup(groupId: GroupId, message: Uint8Array, urgency: CallMessageUrgency, overrideRecipients: Array<Uint8Array>): void;
726
- sendCallMessageToAdhocGroup(message: Uint8Array, urgency: CallMessageUrgency, expiration: Date, recipientsAndEndorsements: Array<{
727
- recipientId: Uint8Array;
728
- endorsement: Uint8Array;
724
+ sendCallMessage(recipientUuid: Uint8Array<ArrayBuffer>, message: Uint8Array<ArrayBuffer>, urgency: CallMessageUrgency): void;
725
+ sendCallMessageToGroup(groupId: GroupId, message: Uint8Array<ArrayBuffer>, urgency: CallMessageUrgency, overrideRecipients: Array<Uint8Array<ArrayBuffer>>): void;
726
+ sendCallMessageToAdhocGroup(message: Uint8Array<ArrayBuffer>, urgency: CallMessageUrgency, expiration: Date, recipientsAndEndorsements: Array<{
727
+ recipientId: Uint8Array<ArrayBuffer>;
728
+ endorsement: Uint8Array<ArrayBuffer>;
729
729
  }>): void;
730
730
  sendHttpRequest(requestId: number, url: string, method: HttpMethod, headers: {
731
731
  [name: string]: string;
732
- }, body: Uint8Array | undefined): void;
732
+ }, body: Uint8Array<ArrayBuffer> | undefined): void;
733
733
  requestMembershipProof(clientId: GroupCallClientId): void;
734
734
  requestGroupMembers(clientId: GroupCallClientId): void;
735
735
  handleConnectionStateChanged(clientId: GroupCallClientId, connectionState: ConnectionState): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalapp/ringrtc",
3
- "version": "2.67.0",
3
+ "version": "2.67.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/signalapp/ringrtc.git",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "config": {
35
35
  "prebuildUrl": "https://build-artifacts.signal.org/libraries/ringrtc-desktop-build-v${npm_package_version}.tar.gz",
36
- "prebuildChecksum": "463a1792e18f13a39acdc07cd16ee9bcb9294bba4af3ef76bc778620e469a590"
36
+ "prebuildChecksum": "f7ab2c808e6b51fdc977fd664ce8d6ad170594981ada126d137bb174a127ac5a"
37
37
  },
38
38
  "author": "",
39
39
  "license": "AGPL-3.0-only",