Skip to content

feat(server-sdk): expose ingress enabled option on createIngress/updateIngress#692

Open
stefanking-difference wants to merge 1 commit into
livekit:mainfrom
stefanking-difference:feat/ingress-enabled-option
Open

feat(server-sdk): expose ingress enabled option on createIngress/updateIngress#692
stefanking-difference wants to merge 1 commit into
livekit:mainfrom
stefanking-difference:feat/ingress-enabled-option

Conversation

@stefanking-difference

Copy link
Copy Markdown

What

Adds an enabled?: boolean option to CreateIngressOptions and UpdateIngressOptions, and maps it into the underlying CreateIngressRequest / UpdateIngressRequest.

Why

The enabled field already exists on the protobuf messages (added in livekit/protocol#935) and is enforced by the ingress service (livekit/ingress#319), but the Node server SDK never surfaced it through the typed options. To disable an ingress session without deleting it — so the stream key survives — callers currently have to bypass the SDK and send a raw Twirp UpdateIngress (or use the lk CLI). This closes that gap so enabled is settable through the normal typed API, mirroring how enableTranscoding is handled.

Suggested by LiveKit's Developer Solutions Engineer in a support thread about non-destructive ingress disabling.

Changes

  • CreateIngressOptions.enabled?: boolean + mapped into CreateIngressRequest
  • UpdateIngressOptions.enabled?: boolean + mapped into UpdateIngressRequest
  • changeset (patch)

Testing

  • pnpm --filter livekit-server-sdk build — clean (declaration emit; enabled type-checks against @livekit/protocol@1.48.0)
  • pnpm --filter livekit-server-sdk test — 12/12 passing
  • prettier --check and eslint clean on the changed file

…ress

The `enabled` field already exists on the protobuf CreateIngressRequest/UpdateIngressRequest (protocol#935) and is enforced by the ingress service (ingress#319), but was not surfaced through the typed CreateIngressOptions/UpdateIngressOptions, so callers had to send it via raw Twirp. Expose it in both option types and map it into the requests. Setting enabled=false rejects new connection attempts while preserving the stream key.
@changeset-bot

changeset-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4b0e227

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
livekit-server-sdk Patch
agent-dispatch Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@CLAassistant

CLAassistant commented Jul 1, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@devin-ai-integration devin-ai-integration Bot left a comment

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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

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.

2 participants