Skip to content

chore(public): regenerate the Public API client - #1078

Merged
Topherhindman merged 1 commit into
mainfrom
chore/regen-public-api-client
Oct 23, 2026
Merged

Topherhindman merged 1 commit into
mainfrom
chore/regen-public-api-client

Conversation

@Topherhindman

@Topherhindman Topherhindman commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • each …Response gains JSONDefault *GoogleRpcStatus; GoogleRpcStatus and GoogleProtobufAny are new;
  • WorkspaceServiceUpdateProject and its types are gone;
  • the server's proto comment cleanup roughly halves the doc comments;
  • the oneOf helpers of a few protocol messages (AutoTrackEgress, the egress outputs, chat and transcript items, metric points) lose their empty last variant.

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.
  • Regenerating from prod's spec (https://beta-api.livekit.cloud/v0/openapi, the generator's default) after the deploy produces an identical oapi.gen.go.

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
@Topherhindman
Topherhindman merged commit a0a2a6d into main Oct 23, 2026
25 checks passed
@Topherhindman
Topherhindman deleted the chore/regen-public-api-client branch October 23, 2026 17:18
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