@droponair/sdk-js 0.23.2 → 0.24.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/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ This project follows [Semantic Versioning](https://semver.org/).
6
6
 
7
7
  ---
8
8
 
9
+ ## [0.24.0], 2026-07-30
10
+
11
+ ### Added
12
+
13
+ - **`rejectGroupCall(callId, groupId)`** - decline an incoming group-call invite (sends `GROUP_CALL_REJECTED`). Brings the JS SDK to parity with the Android, iOS, and Unity SDKs, which already exposed it.
14
+
15
+ ---
16
+
9
17
  ## [0.23.2], 2026-06-04
10
18
 
11
19
  ### Fixed
package/README.md CHANGED
@@ -294,6 +294,7 @@ client.onMessage(async (msg) => {
294
294
  |--------|---------|-------------|
295
295
  | `startGroupCall(groupId)` | `Promise<string>` | Start a group call, returns callId |
296
296
  | `joinGroupCall(callId, groupId)` | `Promise<void>` | Join an active group call |
297
+ | `rejectGroupCall(callId, groupId)` | `Promise<void>` | Decline an incoming group call invite |
297
298
  | `leaveGroupCall(callId)` | `Promise<void>` | Leave a group call |
298
299
  | `endGroupCall(callId)` | `Promise<void>` | End a group call for all |
299
300
  | `sendGroupCallSignal(type, callId, groupId, targetUserId, payload)` | `void` | Send SDP/ICE to a peer |
@@ -292,6 +292,8 @@ export declare class MessagingClient implements DropOnAirClient {
292
292
  onGroupMessage(callback: GroupMessageCallback): () => void;
293
293
  startGroupCall(groupId: string): Promise<string>;
294
294
  joinGroupCall(callId: string, groupId: string): Promise<void>;
295
+ /** Decline an incoming group-call invite. */
296
+ rejectGroupCall(callId: string, groupId: string): Promise<void>;
295
297
  leaveGroupCall(callId: string): Promise<void>;
296
298
  endGroupCall(callId: string): Promise<void>;
297
299
  sendGroupCallSignal(type: 'GROUP_CALL_SDP_OFFER' | 'GROUP_CALL_SDP_ANSWER' | 'GROUP_CALL_ICE_CANDIDATE', callId: string, groupId: string, targetUserId: string, payload: string): void;
@@ -1280,6 +1280,10 @@ class MessagingClient {
1280
1280
  async joinGroupCall(callId, groupId) {
1281
1281
  this.sendGroupCallFrame({ type: 'GROUP_CALL_JOIN', callId, groupId });
1282
1282
  }
1283
+ /** Decline an incoming group-call invite. */
1284
+ async rejectGroupCall(callId, groupId) {
1285
+ this.sendGroupCallFrame({ type: 'GROUP_CALL_REJECTED', callId, groupId });
1286
+ }
1283
1287
  async leaveGroupCall(callId) {
1284
1288
  this.sendGroupCallFrame({ type: 'GROUP_CALL_LEAVE', callId, groupId: '' });
1285
1289
  }
package/dist/version.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * MINOR, additive feature (e.g. multi-device payloads, new call event type)
8
8
  * PATCH, bug-fix / perf improvement with no wire or API change
9
9
  */
10
- export declare const SDK_VERSION = "0.23.2";
10
+ export declare const SDK_VERSION = "0.24.0";
11
11
  /**
12
12
  * Binary encrypted-payload format version.
13
13
  * Included as the first byte of every encrypted payload so receivers can
package/dist/version.js CHANGED
@@ -10,7 +10,7 @@ exports.PROTOCOL_VERSION = exports.PAYLOAD_FORMAT_VERSION = exports.SDK_VERSION
10
10
  * MINOR, additive feature (e.g. multi-device payloads, new call event type)
11
11
  * PATCH, bug-fix / perf improvement with no wire or API change
12
12
  */
13
- exports.SDK_VERSION = '0.23.2';
13
+ exports.SDK_VERSION = '0.24.0';
14
14
  /**
15
15
  * Binary encrypted-payload format version.
16
16
  * Included as the first byte of every encrypted payload so receivers can
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@droponair/sdk-js",
3
- "version": "0.23.2",
3
+ "version": "0.24.0",
4
4
  "description": "DropOnAir SDK for end-to-end encrypted messaging",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",