@signalapp/ringrtc 2.54.1 → 2.55.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/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
|
-
## libsignal-account-keys 0.1.0, libsignal-core 0.1.0, mrp 2.
|
|
672
|
+
## libsignal-account-keys 0.1.0, libsignal-core 0.1.0, mrp 2.55.0, protobuf 2.55.0, ringrtc 2.55.0, regex-aot 0.1.0, partial-default-derive 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:
|
|
2
|
+
readonly bytes: Uint8Array;
|
|
3
3
|
private constructor();
|
|
4
4
|
static parse(str: string): CallLinkRootKey;
|
|
5
|
-
static fromBytes(bytes:
|
|
5
|
+
static fromBytes(bytes: Uint8Array): CallLinkRootKey;
|
|
6
6
|
static generate(): CallLinkRootKey;
|
|
7
|
-
static generateAdminPassKey():
|
|
8
|
-
deriveRoomId():
|
|
7
|
+
static generateAdminPassKey(): Uint8Array;
|
|
8
|
+
deriveRoomId(): Uint8Array;
|
|
9
9
|
toString(): string;
|
|
10
10
|
}
|
|
11
11
|
export declare class CallLinkState {
|
|
@@ -4,7 +4,7 @@ export declare function callIdFromRingId(ringId: bigint): CallId;
|
|
|
4
4
|
declare class Config {
|
|
5
5
|
field_trials: Record<string, string> | undefined;
|
|
6
6
|
}
|
|
7
|
-
type GroupId =
|
|
7
|
+
type GroupId = Uint8Array;
|
|
8
8
|
type GroupCallUserId = Buffer;
|
|
9
9
|
export interface PeekDeviceInfo {
|
|
10
10
|
demuxId: number;
|
|
@@ -101,8 +101,8 @@ export declare class RingRTCType {
|
|
|
101
101
|
[name: string]: string;
|
|
102
102
|
}, body: Buffer | undefined) => void) | null;
|
|
103
103
|
handleSendCallMessage: ((recipientUuid: Buffer, message: Buffer, urgency: CallMessageUrgency) => void) | null;
|
|
104
|
-
handleSendCallMessageToGroup: ((groupId:
|
|
105
|
-
handleGroupCallRingUpdate: ((groupId:
|
|
104
|
+
handleSendCallMessageToGroup: ((groupId: GroupId, message: Buffer, urgency: CallMessageUrgency, overrideRecipients: Array<Buffer>) => void) | null;
|
|
105
|
+
handleGroupCallRingUpdate: ((groupId: GroupId, ringId: bigint, sender: Buffer, update: RingUpdate) => void) | null;
|
|
106
106
|
handleRtcStatsReport: ((reportJson: string) => void) | null;
|
|
107
107
|
constructor();
|
|
108
108
|
setConfig(config: Config): void;
|
|
@@ -138,7 +138,7 @@ export declare class RingRTCType {
|
|
|
138
138
|
* Expected failure codes include:
|
|
139
139
|
* - 404: the room does not exist (or expired so long ago that it has been removed from the server)
|
|
140
140
|
*/
|
|
141
|
-
readCallLink(sfuUrl: string, authCredentialPresentation:
|
|
141
|
+
readCallLink(sfuUrl: string, authCredentialPresentation: Uint8Array, linkRootKey: CallLinkRootKey, epoch: CallLinkEpoch | undefined): Promise<HttpResult<CallLinkState>>;
|
|
142
142
|
/**
|
|
143
143
|
* Asynchronous request to create a new call link.
|
|
144
144
|
*
|
|
@@ -175,7 +175,7 @@ export declare class RingRTCType {
|
|
|
175
175
|
* @param adminPasskey - the arbitrary passkey to use for the new room
|
|
176
176
|
* @param callLinkPublicParams - the serialized CallLinkPublicParams for the new room
|
|
177
177
|
*/
|
|
178
|
-
createCallLink(sfuUrl: string, createCredentialPresentation:
|
|
178
|
+
createCallLink(sfuUrl: string, createCredentialPresentation: Uint8Array, linkRootKey: CallLinkRootKey, adminPasskey: Uint8Array, callLinkPublicParams: Uint8Array, restrictions: Exclude<CallLinkRestrictions, CallLinkRestrictions.Unknown>): Promise<HttpResult<CallLinkState>>;
|
|
179
179
|
/**
|
|
180
180
|
* Asynchronous request to update a call link's name.
|
|
181
181
|
*
|
|
@@ -192,7 +192,7 @@ export declare class RingRTCType {
|
|
|
192
192
|
* @param adminPasskey - the passkey specified when the link was created
|
|
193
193
|
* @param newName - the new name to use
|
|
194
194
|
*/
|
|
195
|
-
updateCallLinkName(sfuUrl: string, authCredentialPresentation:
|
|
195
|
+
updateCallLinkName(sfuUrl: string, authCredentialPresentation: Uint8Array, linkRootKey: CallLinkRootKey, epoch: CallLinkEpoch | undefined, adminPasskey: Uint8Array, newName: string): Promise<HttpResult<CallLinkState>>;
|
|
196
196
|
/**
|
|
197
197
|
* Asynchronous request to update a call link's restrictions.
|
|
198
198
|
*
|
|
@@ -210,7 +210,7 @@ export declare class RingRTCType {
|
|
|
210
210
|
* @param adminPasskey - the passkey specified when the link was created
|
|
211
211
|
* @param restrictions - the new restrictions to use
|
|
212
212
|
*/
|
|
213
|
-
updateCallLinkRestrictions(sfuUrl: string, authCredentialPresentation:
|
|
213
|
+
updateCallLinkRestrictions(sfuUrl: string, authCredentialPresentation: Uint8Array, linkRootKey: CallLinkRootKey, epoch: CallLinkEpoch | undefined, adminPasskey: Uint8Array, restrictions: Exclude<CallLinkRestrictions, CallLinkRestrictions.Unknown>): Promise<HttpResult<CallLinkState>>;
|
|
214
214
|
/**
|
|
215
215
|
* Asynchronous request to delete a call link.
|
|
216
216
|
*
|
|
@@ -226,13 +226,13 @@ export declare class RingRTCType {
|
|
|
226
226
|
* @param epoch - the optional call link epoch
|
|
227
227
|
* @param adminPasskey - the passkey specified when the link was created
|
|
228
228
|
*/
|
|
229
|
-
deleteCallLink(sfuUrl: string, authCredentialPresentation:
|
|
229
|
+
deleteCallLink(sfuUrl: string, authCredentialPresentation: Uint8Array, linkRootKey: CallLinkRootKey, epoch: CallLinkEpoch | undefined, adminPasskey: Uint8Array): Promise<HttpResult<undefined>>;
|
|
230
230
|
receivedHttpResponse(requestId: number, status: number, body: Buffer): void;
|
|
231
231
|
httpRequestFailed(requestId: number, debugInfo: string | undefined): void;
|
|
232
|
-
getGroupCall(groupId:
|
|
233
|
-
getCallLinkCall(sfuUrl: string, endorsementPublicKey:
|
|
232
|
+
getGroupCall(groupId: GroupId, sfuUrl: string, hkdfExtraInfo: Uint8Array, audioLevelsIntervalMillis: number | undefined, observer: GroupCallObserver): GroupCall | undefined;
|
|
233
|
+
getCallLinkCall(sfuUrl: string, endorsementPublicKey: Uint8Array, authCredentialPresentation: Uint8Array, rootKey: CallLinkRootKey, epoch: CallLinkEpoch | undefined, adminPasskey: Uint8Array | undefined, hkdfExtraInfo: Uint8Array, audioLevelsIntervalMillis: number | undefined, observer: GroupCallObserver): GroupCall | undefined;
|
|
234
234
|
peekGroupCall(sfuUrl: string, membershipProof: Buffer, groupMembers: Array<GroupMemberInfo>): Promise<PeekInfo>;
|
|
235
|
-
peekCallLinkCall(sfuUrl: string, authCredentialPresentation:
|
|
235
|
+
peekCallLinkCall(sfuUrl: string, authCredentialPresentation: Uint8Array, rootKey: CallLinkRootKey, epoch: CallLinkEpoch | undefined): Promise<HttpResult<PeekInfo>>;
|
|
236
236
|
requestMembershipProof(clientId: GroupCallClientId): void;
|
|
237
237
|
requestGroupMembers(clientId: GroupCallClientId): void;
|
|
238
238
|
handleConnectionStateChanged(clientId: GroupCallClientId, connectionState: ConnectionState): void;
|
|
@@ -265,14 +265,14 @@ export declare class RingRTCType {
|
|
|
265
265
|
ageSec: number;
|
|
266
266
|
receivedAtCounter: number;
|
|
267
267
|
receivedAtDate: number;
|
|
268
|
-
senderIdentityKey:
|
|
269
|
-
receiverIdentityKey:
|
|
268
|
+
senderIdentityKey: Uint8Array;
|
|
269
|
+
receiverIdentityKey: Uint8Array;
|
|
270
270
|
}): void;
|
|
271
271
|
sendHttpRequest(requestId: number, url: string, method: HttpMethod, headers: {
|
|
272
272
|
[name: string]: string;
|
|
273
273
|
}, body: Buffer | undefined): void;
|
|
274
274
|
sendCallMessage(recipientUuid: Buffer, message: Buffer, urgency: CallMessageUrgency): void;
|
|
275
|
-
sendCallMessageToGroup(groupId:
|
|
275
|
+
sendCallMessageToGroup(groupId: GroupId, message: Buffer, urgency: CallMessageUrgency, overrideRecipients: Array<Buffer>): void;
|
|
276
276
|
get call(): Call | null;
|
|
277
277
|
getCall(callId: CallId): Call | null;
|
|
278
278
|
accept(callId: CallId): void;
|
|
@@ -666,16 +666,16 @@ export interface CallManager {
|
|
|
666
666
|
updateDataMode(dataMode: DataMode): void;
|
|
667
667
|
sendVideoFrame(width: number, height: number, format: VideoPixelFormatEnum, buffer: Buffer): void;
|
|
668
668
|
receiveVideoFrame(buffer: Buffer, maxWidth: number, maxHeight: number): [number, number] | undefined;
|
|
669
|
-
receivedOffer(remoteUserId: UserId, remoteDeviceId: DeviceId, localDeviceId: DeviceId, messageAgeSec: number, callId: CallId, offerType: OfferType, opaque: Buffer, senderIdentityKey:
|
|
670
|
-
receivedAnswer(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, opaque: Buffer, senderIdentityKey:
|
|
669
|
+
receivedOffer(remoteUserId: UserId, remoteDeviceId: DeviceId, localDeviceId: DeviceId, messageAgeSec: number, callId: CallId, offerType: OfferType, opaque: Buffer, senderIdentityKey: Uint8Array, receiverIdentityKey: Uint8Array): void;
|
|
670
|
+
receivedAnswer(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, opaque: Buffer, senderIdentityKey: Uint8Array, receiverIdentityKey: Uint8Array): void;
|
|
671
671
|
receivedIceCandidates(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, candidates: Array<Buffer>): void;
|
|
672
672
|
receivedHangup(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, hangupType: HangupType, hangupDeviceId: DeviceId | null): void;
|
|
673
673
|
receivedBusy(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId): void;
|
|
674
674
|
receivedCallMessage(remoteUserId: Buffer, remoteDeviceId: DeviceId, localDeviceId: DeviceId, data: Buffer, messageAgeSec: number): void;
|
|
675
675
|
receivedHttpResponse(requestId: number, status: number, body: Buffer): void;
|
|
676
676
|
httpRequestFailed(requestId: number, debugInfo: string | undefined): void;
|
|
677
|
-
createGroupCallClient(groupId:
|
|
678
|
-
createCallLinkCallClient(sfuUrl: string, endorsementPublicKey:
|
|
677
|
+
createGroupCallClient(groupId: GroupId, sfuUrl: string, hkdfExtraInfo: Uint8Array, audioLevelsIntervalMillis: number): GroupCallClientId;
|
|
678
|
+
createCallLinkCallClient(sfuUrl: string, endorsementPublicKey: Uint8Array, authCredentialPresentation: Uint8Array, linkRootKey: Uint8Array, epoch: number | undefined, adminPasskey: Uint8Array | undefined, hkdfExtraInfo: Uint8Array, audioLevelsIntervalMillis: number): GroupCallClientId;
|
|
679
679
|
deleteGroupCallClient(clientId: GroupCallClientId): void;
|
|
680
680
|
connect(clientId: GroupCallClientId): void;
|
|
681
681
|
join(clientId: GroupCallClientId): void;
|
|
@@ -701,12 +701,12 @@ export interface CallManager {
|
|
|
701
701
|
setMembershipProof(clientId: GroupCallClientId, proof: Buffer): void;
|
|
702
702
|
receiveGroupCallVideoFrame(clientId: GroupCallClientId, remoteDemuxId: number, buffer: Buffer, maxWidth: number, maxHeight: number): [number, number] | undefined;
|
|
703
703
|
setRtcStatsInterval(clientId: GroupCallClientId, intervalMillis: number): void;
|
|
704
|
-
readCallLink(requestId: number, sfuUrl: string, authCredentialPresentation:
|
|
705
|
-
createCallLink(requestId: number, sfuUrl: string, createCredentialPresentation:
|
|
706
|
-
updateCallLink(requestId: number, sfuUrl: string, authCredentialPresentation:
|
|
707
|
-
deleteCallLink(requestId: number, sfuUrl: string, authCredentialPresentation:
|
|
704
|
+
readCallLink(requestId: number, sfuUrl: string, authCredentialPresentation: Uint8Array, linkRootKey: Uint8Array, epoch: number | undefined): void;
|
|
705
|
+
createCallLink(requestId: number, sfuUrl: string, createCredentialPresentation: Uint8Array, linkRootKey: Uint8Array, adminPasskey: Uint8Array, callLinkPublicParams: Uint8Array, restrictions: number | undefined): void;
|
|
706
|
+
updateCallLink(requestId: number, sfuUrl: string, authCredentialPresentation: Uint8Array, linkRootKey: Uint8Array, epoch: number | undefined, adminPasskey: Uint8Array, newName: string | undefined, newRestrictions: number | undefined, newRevoked: boolean | undefined): void;
|
|
707
|
+
deleteCallLink(requestId: number, sfuUrl: string, authCredentialPresentation: Uint8Array, linkRootKey: Uint8Array, epoch: number | undefined, adminPasskey: Uint8Array): void;
|
|
708
708
|
peekGroupCall(requestId: number, sfu_url: string, membership_proof: Buffer, group_members: Array<GroupMemberInfo>): void;
|
|
709
|
-
peekCallLinkCall(requestId: number, sfuUrl: string, authCredentialPresentation:
|
|
709
|
+
peekCallLinkCall(requestId: number, sfuUrl: string, authCredentialPresentation: Uint8Array, linkRootKey: Uint8Array, epoch: number | undefined): void;
|
|
710
710
|
getAudioInputs(): Array<AudioDevice>;
|
|
711
711
|
setAudioInput(index: number): void;
|
|
712
712
|
getAudioOutputs(): Array<AudioDevice>;
|
|
@@ -726,7 +726,7 @@ export interface CallManagerCallbacks {
|
|
|
726
726
|
onSendHangup(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean, HangupType: HangupType, hangupDeviceId: DeviceId | null): void;
|
|
727
727
|
onSendBusy(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean): void;
|
|
728
728
|
sendCallMessage(recipientUuid: Buffer, message: Buffer, urgency: CallMessageUrgency): void;
|
|
729
|
-
sendCallMessageToGroup(groupId:
|
|
729
|
+
sendCallMessageToGroup(groupId: GroupId, message: Buffer, urgency: CallMessageUrgency, overrideRecipients: Array<Buffer>): void;
|
|
730
730
|
sendHttpRequest(requestId: number, url: string, method: HttpMethod, headers: {
|
|
731
731
|
[name: string]: string;
|
|
732
732
|
}, body: Buffer | undefined): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signalapp/ringrtc",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.55.0",
|
|
4
4
|
"description": "Signal Messenger voice and video calling library.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"config": {
|
|
27
27
|
"prebuildUrl": "https://build-artifacts.signal.org/libraries/ringrtc-desktop-build-v${npm_package_version}.tar.gz",
|
|
28
|
-
"prebuildChecksum": "
|
|
28
|
+
"prebuildChecksum": "4040556cd6392527bb2d2a89d49d6586e0895f310c1cf2c20869d4b463c21ec5"
|
|
29
29
|
},
|
|
30
30
|
"author": "",
|
|
31
31
|
"license": "AGPL-3.0-only",
|