@opencxh/domain 1.85.0 → 1.86.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.
@@ -332,6 +332,25 @@ export interface CallStateChange {
332
332
  userId: string;
333
333
  inCall: boolean;
334
334
  }
335
+ /**
336
+ * One ICE server entry. Structurally a subset of the browser's `RTCIceServer`,
337
+ * but kept DOM-free so the comm server can build it too (server tsconfig has no
338
+ * DOM lib). The client passes these straight to `new RTCPeerConnection`.
339
+ */
340
+ export interface IceServerConfig {
341
+ urls: string | string[];
342
+ username?: string;
343
+ credential?: string;
344
+ }
345
+ /**
346
+ * Response of `GET /webrtc/ice`: the STUN list plus TURN servers with
347
+ * short-lived (per-user, time-limited) credentials, and how long they last.
348
+ */
349
+ export interface IceConfigResponse {
350
+ iceServers: IceServerConfig[];
351
+ /** Seconds the TURN credentials remain valid. */
352
+ ttl: number;
353
+ }
335
354
  /** What the callee receives over SSE — same envelope, server stamps `from`. */
336
355
  export interface WebRtcSignalEvent extends WebRtcSignalRequest {
337
356
  /** Sender userId, stamped by the relay from the authenticated subject. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencxh/domain",
3
- "version": "1.85.0",
3
+ "version": "1.86.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",