diff --git a/.changeset/livekitapi-unified-client.md b/.changeset/livekitapi-unified-client.md deleted file mode 100644 index 7a24c360..00000000 --- a/.changeset/livekitapi-unified-client.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-server-sdk': minor ---- - -Add `LiveKitAPI`, a unified entry point that exposes every server API through a property (`api.room`, `api.egress`, `api.ingress`, `api.sip`, `api.agentDispatch`, `api.connector`). It can be constructed with an API key and secret, or with a pre-signed token (no secret required, so it can run client-side), and falls back to the `LIVEKIT_URL`, `LIVEKIT_API_KEY`, `LIVEKIT_API_SECRET`, and `LIVEKIT_TOKEN` environment variables. Individual clients also accept a `token` via `ClientOptions`. diff --git a/.changeset/sip-call-error.md b/.changeset/sip-call-error.md deleted file mode 100644 index 1a2a0dc6..00000000 --- a/.changeset/sip-call-error.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-server-sdk': minor ---- - -Add `SipCallError`, a `TwirpError` subclass thrown by `SipClient.createSipParticipant` / `transferSipParticipant` when a call fails with a SIP status. It exposes the SIP response code and reason as `sipStatusCode` / `sipStatus` getters, while other error metadata remains available via `metadata`. diff --git a/.changeset/tidy-lions-repair.md b/.changeset/tidy-lions-repair.md deleted file mode 100644 index 60af82fb..00000000 --- a/.changeset/tidy-lions-repair.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@livekit/rtc-node': patch ---- - -Fix AudioSource.waitForPlayout resolving immediately with audio still queued. The internal playout promise could be left resolved ("latched") by the drain timer firing during a gap between captures, or by clearQueue()/pause; a later waitForPlayout() then consumed the stale resolution and reported playout complete ~queueSizeMs early, clipping the tail of agent speech on every turn in downstream consumers. The waiter is now discarded when released and lazily re-created on the next captureFrame, mirroring python-sdks. As part of this, waitForPlayout() now resolves immediately when no audio is queued instead of blocking until the next release. diff --git a/.changeset/wet-dryers-matter.md b/.changeset/wet-dryers-matter.md deleted file mode 100644 index f888d3ce..00000000 --- a/.changeset/wet-dryers-matter.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"livekit-server-sdk": patch ---- - -feat: auto failover APIs with LK Cloud diff --git a/examples/agent-dispatch/CHANGELOG.md b/examples/agent-dispatch/CHANGELOG.md index ebb1e513..c4b816cf 100644 --- a/examples/agent-dispatch/CHANGELOG.md +++ b/examples/agent-dispatch/CHANGELOG.md @@ -1,5 +1,12 @@ # agent-dispatch +## 0.0.31 + +### Patch Changes + +- Updated dependencies [[`a04fabf`](https://github.com/livekit/node-sdks/commit/a04fabf154885f05a3caa05e064d329e4e1cff01), [`a04fabf`](https://github.com/livekit/node-sdks/commit/a04fabf154885f05a3caa05e064d329e4e1cff01), [`0016ecd`](https://github.com/livekit/node-sdks/commit/0016ecd9c244e43a118014dd5e92f6a733477567)]: + - livekit-server-sdk@2.17.0 + ## 0.0.30 ### Patch Changes diff --git a/examples/agent-dispatch/package.json b/examples/agent-dispatch/package.json index 9ce6d72b..79546c3d 100644 --- a/examples/agent-dispatch/package.json +++ b/examples/agent-dispatch/package.json @@ -1,6 +1,6 @@ { "name": "agent-dispatch", - "version": "0.0.30", + "version": "0.0.31", "description": "An example demonstrating dispatching agents with an API call", "private": true, "author": "LiveKit", diff --git a/packages/livekit-rtc/CHANGELOG.md b/packages/livekit-rtc/CHANGELOG.md index 800d614b..2faa4a0f 100644 --- a/packages/livekit-rtc/CHANGELOG.md +++ b/packages/livekit-rtc/CHANGELOG.md @@ -1,5 +1,11 @@ # @livekit/rtc-node +## 0.13.31 + +### Patch Changes + +- Fix AudioSource.waitForPlayout resolving immediately with audio still queued. The internal playout promise could be left resolved ("latched") by the drain timer firing during a gap between captures, or by clearQueue()/pause; a later waitForPlayout() then consumed the stale resolution and reported playout complete ~queueSizeMs early, clipping the tail of agent speech on every turn in downstream consumers. The waiter is now discarded when released and lazily re-created on the next captureFrame, mirroring python-sdks. As part of this, waitForPlayout() now resolves immediately when no audio is queued instead of blocking until the next release. - [#693](https://github.com/livekit/node-sdks/pull/693) ([@chenghao-mou](https://github.com/chenghao-mou)) + ## 0.13.30 ### Patch Changes diff --git a/packages/livekit-rtc/package.json b/packages/livekit-rtc/package.json index 9f8a6ce0..b4ce7c47 100644 --- a/packages/livekit-rtc/package.json +++ b/packages/livekit-rtc/package.json @@ -3,7 +3,7 @@ "description": "LiveKit RTC Node", "license": "Apache-2.0", "author": "LiveKit", - "version": "0.13.30", + "version": "0.13.31", "main": "dist/index.js", "require": "dist/index.cjs", "types": "dist/index.d.ts", diff --git a/packages/livekit-server-sdk/CHANGELOG.md b/packages/livekit-server-sdk/CHANGELOG.md index 05550536..2f03e240 100644 --- a/packages/livekit-server-sdk/CHANGELOG.md +++ b/packages/livekit-server-sdk/CHANGELOG.md @@ -1,5 +1,17 @@ # livekit-server-sdk +## 2.17.0 + +### Minor Changes + +- Add `LiveKitAPI`, a unified entry point that exposes every server API through a property (`api.room`, `api.egress`, `api.ingress`, `api.sip`, `api.agentDispatch`, `api.connector`). It can be constructed with an API key and secret, or with a pre-signed token (no secret required, so it can run client-side), and falls back to the `LIVEKIT_URL`, `LIVEKIT_API_KEY`, `LIVEKIT_API_SECRET`, and `LIVEKIT_TOKEN` environment variables. Individual clients also accept a `token` via `ClientOptions`. - [#695](https://github.com/livekit/node-sdks/pull/695) ([@davidzhao](https://github.com/davidzhao)) + +- Add `SipCallError`, a `TwirpError` subclass thrown by `SipClient.createSipParticipant` / `transferSipParticipant` when a call fails with a SIP status. It exposes the SIP response code and reason as `sipStatusCode` / `sipStatus` getters, while other error metadata remains available via `metadata`. - [#695](https://github.com/livekit/node-sdks/pull/695) ([@davidzhao](https://github.com/davidzhao)) + +### Patch Changes + +- feat: auto failover APIs with LK Cloud - [#686](https://github.com/livekit/node-sdks/pull/686) ([@davidzhao](https://github.com/davidzhao)) + ## 2.16.0 ### Minor Changes diff --git a/packages/livekit-server-sdk/package.json b/packages/livekit-server-sdk/package.json index fa2f2612..48c3b0fe 100644 --- a/packages/livekit-server-sdk/package.json +++ b/packages/livekit-server-sdk/package.json @@ -1,6 +1,6 @@ { "name": "livekit-server-sdk", - "version": "2.16.0", + "version": "2.17.0", "description": "Server-side SDK for LiveKit", "main": "dist/index.js", "require": "dist/index.cjs",