Skip to content

introduce LiveKitAPI construct, added smoke tests#1220

Merged
davidzhao merged 13 commits into
mainfrom
dz/api-tests
Jul 7, 2026
Merged

introduce LiveKitAPI construct, added smoke tests#1220
davidzhao merged 13 commits into
mainfrom
dz/api-tests

Conversation

@davidzhao

Copy link
Copy Markdown
Member
  • simpler constructor for interacting with various services
  • ability to be used without api key/token, but with just a secret
  • full smoke tests to ensure correct token permissions, request encoding
  • added missing SIP APIs, achieves parity with other SDKs

davidzhao added 2 commits July 6, 2026 11:20
- simpler constructor for interacting with various services
- ability to be used without api key/token, but with just a secret
- full smoke tests to ensure correct token permissions, request encoding
- added missing SIP APIs, achieves parity with other SDKs
@davidzhao davidzhao requested a review from ladvoc as a code owner July 6, 2026 09:24
@davidzhao davidzhao requested a review from lukasIO July 6, 2026 09:24
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Changeset

The following package versions will be affected by this PR:

Package Bump
libwebrtc patch
livekit patch
livekit-api minor
livekit-datatrack patch
livekit-ffi patch

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

Comment thread livekit-api/src/services/mod.rs Outdated
Comment thread livekit-api/src/services/mod.rs Outdated
Comment on lines +83 to +84
let token = if let Some(token) = &self.token {
token.clone()

@1egoman 1egoman Jul 6, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: same comment as I left on the node one, it might be nice to have an "token expired" event here and some way a user can regenerate the token before continuing with making the request.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know that this makes a difference.. the server will be the authority here and it'll specify all the reasons why the token is incorrect.

client-side clocks could be desynced, so it's possible for the client to think it's not expired, but for the server to indicate that it is.. or vice versa.

Comment thread livekit-api/src/services/twirp_client.rs Outdated
Comment thread livekit-api/Cargo.toml
Comment thread livekit-api/src/services/livekit_api.rs
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@davidzhao

Copy link
Copy Markdown
Member Author

@ladvoc @1egoman PTAL

Comment thread livekit-api/src/services/livekit_api.rs Outdated
@davidzhao davidzhao merged commit 3dafb1d into main Jul 7, 2026
29 checks passed
@davidzhao davidzhao deleted the dz/api-tests branch July 7, 2026 19:12
@knope-bot knope-bot Bot mentioned this pull request Jul 7, 2026
ladvoc pushed a commit that referenced this pull request Jul 9, 2026
> [!IMPORTANT]
> Merging this pull request will create these releases

# livekit-api 0.5.5 (2026-07-09)
## Features

- feat: auto failover APIs with LK Cloud - #1196 (@davidzhao)
- introduce LiveKitAPI construct, added smoke tests - #1220 (@davidzhao)
# livekit-datatrack 0.1.10 (2026-07-09)
## Fixes

- Handle data track SID reassignment
- introduce LiveKitAPI construct, added smoke tests - #1220 (@davidzhao)
# webrtc-sys 0.3.37 (2026-07-09)
## Fixes

- Fix malformed RTC error handling
# libwebrtc 0.3.40 (2026-07-09)
## Fixes

- Fix malformed RTC error handling
- introduce LiveKitAPI construct, added smoke tests - #1220 (@davidzhao)
# livekit 0.7.51 (2026-07-09)
## Fixes

- feat: auto failover APIs with LK Cloud - #1196 (@davidzhao)
- Fix for dynacast error - #1213 (@MaxHeimbrock)
- Fix malformed RTC error handling
- Handle data track SID reassignment
- introduce LiveKitAPI construct, added smoke tests - #1220 (@davidzhao)
- Turn single peerconnection on by default - #1206 (@cnderrauber)
# livekit-ffi 0.12.69 (2026-07-09)
## Fixes

- feat: auto failover APIs with LK Cloud - #1196 (@davidzhao)
- Fix for dynacast error - #1213 (@MaxHeimbrock)
- Fix malformed RTC error handling
- Handle data track SID reassignment
- introduce LiveKitAPI construct, added smoke tests - #1220 (@davidzhao)
- Turn single peerconnection on by default - #1206 (@cnderrauber)
# livekit-uniffi 0.1.4 (2026-07-09)
## Features

- Add a Dart bindings target. Bumps the crate's UniFFI dependency from
0.30 to 0.31 to match the bindgen.

Co-authored-by: knope-bot[bot] <152252888+knope-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants