Repository navigation
chore(public): regenerate the Public API client - #1078
Merged
Merged
Conversation
Picks up livekit/public-api-server#98, which makes the spec a client contract. Every operation now declares its error response, a google.rpc.Status, so each generated response gains a JSONDefault *GoogleRpcStatus, and GoogleRpcStatus and GoogleProtobufAny are new types. Nothing hand-written reads them yet. #98 also deletes WorkspaceService.UpdateProject, so its client methods and types are gone. lk workspace project update no longer calls it (#1071). Also picks up the server's proto comment cleanup, which roughly halves the doc comments, and the oneOf helpers of a few protocol messages (AutoTrackEgress, the egress outputs, chat and transcript items, metric points) losing their empty last variant. Nothing hand-written uses those either. Generated from livekit/public-api-server@4cfd5cf
JackNDwyer
approved these changes
Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The openapi spec was recently made so that it can be a client contract: every operation now declares its error response, a
google.rpc.Status. lk's client was last generated on 2026-10-13, before that, so it has no type for an error. With one, tests can build the Public API's error bodies from the spec instead of hand-written JSON, and a change to their shape fails a regeneration rather than drifting.#98 also deletes
WorkspaceService.UpdateProject. Its only caller moved off it in #1071, so the regenerated client compiles.What changed
Only
pkg/public/oapi/oapi.gen.go:…ResponsegainsJSONDefault *GoogleRpcStatus;GoogleRpcStatusandGoogleProtobufAnyare new;WorkspaceServiceUpdateProjectand its types are gone;Nothing hand-written reads the new types yet, or used the removed ones.
Testing
go build ./...,go vet ./...,go test -count=1 ./...and golangci-lint pass.https://beta-api.livekit.cloud/v0/openapi, the generator's default) after the deploy produces an identicaloapi.gen.go.