@signalapp/ringrtc 2.67.0 → 2.67.1

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, mrp 2.67.1, protobuf 2.67.1, ringrtc 2.67.1, 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
@@ -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.1",
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": "1406b73d783a89c4950f299d18298b24705f5a67b66a7de91b1070fc3a1e149a"
37
37
  },
38
38
  "author": "",
39
39
  "license": "AGPL-3.0-only",