@signalapp/ringrtc 2.29.1 → 2.31.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.
@@ -18,7 +18,10 @@ export interface PeekInfo {
18
18
  creator?: GroupCallUserId;
19
19
  eraId?: string;
20
20
  maxDevices?: number;
21
+ /** @deprecated Use {@link #deviceCountIncludingPendingDevices} and {@link #deviceCountExcludingPendingDevices} as appropriate */
21
22
  deviceCount: number;
23
+ deviceCountIncludingPendingDevices: number;
24
+ deviceCountExcludingPendingDevices: number;
22
25
  pendingUsers: Array<GroupCallUserId>;
23
26
  }
24
27
  export declare enum PeekStatusCodes {
@@ -165,6 +168,7 @@ export declare class RingRTCType {
165
168
  * Possible failure codes include:
166
169
  * - 401: the room does not exist (and this is the wrong API to create a new room)
167
170
  * - 403: the admin passkey is incorrect
171
+ * - 409: the room is currently in use, so restrictions cannot be changed at the moment
168
172
  *
169
173
  * This request is idempotent; if it fails due to a network issue, it is safe to retry.
170
174
  *
@@ -327,7 +331,8 @@ export declare enum ConnectionState {
327
331
  export declare enum JoinState {
328
332
  NotJoined = 0,
329
333
  Joining = 1,
330
- Joined = 2
334
+ Pending = 2,
335
+ Joined = 3
331
336
  }
332
337
  export declare enum GroupCallEndReason {
333
338
  DeviceExplicitlyDisconnected = 0,
@@ -639,6 +639,7 @@ class RingRTCType {
639
639
  * Possible failure codes include:
640
640
  * - 401: the room does not exist (and this is the wrong API to create a new room)
641
641
  * - 403: the admin passkey is incorrect
642
+ * - 409: the room is currently in use, so restrictions cannot be changed at the moment
642
643
  *
643
644
  * This request is idempotent; if it fails due to a network issue, it is safe to retry.
644
645
  *
@@ -730,7 +731,13 @@ class RingRTCType {
730
731
  return result.value;
731
732
  }
732
733
  else {
733
- return { devices: [], deviceCount: 0, pendingUsers: [] };
734
+ return {
735
+ devices: [],
736
+ deviceCount: 0,
737
+ deviceCountIncludingPendingDevices: 0,
738
+ deviceCountExcludingPendingDevices: 0,
739
+ pendingUsers: [],
740
+ };
734
741
  }
735
742
  });
736
743
  }
@@ -1336,7 +1343,8 @@ var JoinState;
1336
1343
  (function (JoinState) {
1337
1344
  JoinState[JoinState["NotJoined"] = 0] = "NotJoined";
1338
1345
  JoinState[JoinState["Joining"] = 1] = "Joining";
1339
- JoinState[JoinState["Joined"] = 2] = "Joined";
1346
+ JoinState[JoinState["Pending"] = 2] = "Pending";
1347
+ JoinState[JoinState["Joined"] = 3] = "Joined";
1340
1348
  })(JoinState = exports.JoinState || (exports.JoinState = {}));
1341
1349
  // If not ended purposely by the user, gives the reason why a group call ended.
1342
1350
  var GroupCallEndReason;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalapp/ringrtc",
3
- "version": "2.29.1",
3
+ "version": "2.31.1",
4
4
  "description": "Signal Messenger voice and video calling library.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "config": {
25
25
  "prebuildUrl": "https://build-artifacts.signal.org/libraries/ringrtc-desktop-build-v${npm_package_version}.tar.gz",
26
- "prebuildChecksum": "6f6d9cbbccb3e1e63cbf1c0d0ba81fe23ab80b116febc2595773bbdaf12930cc"
26
+ "prebuildChecksum": "6cd281113e43b3e2228428033dca8241fc7d4d2ba4cdeb6a95491d0f523f7619"
27
27
  },
28
28
  "author": "",
29
29
  "license": "AGPL-3.0-only",