chore(console): [SAS-161] Regenerate API types and fix unrelated breakage.#37754
Merged
leedqin merged 1 commit intoJul 21, 2026
Conversation
…x the region/self-managed-subscription breakage it surfaces.
leedqin
approved these changes
Jul 21, 2026
leedqin
left a comment
Contributor
There was a problem hiding this comment.
LGTM! Thank you for doing this. Please merge this and rebase before the other billing PR :)
leedqin
deleted the
rjimeno/sas-161-regenerate-console-api-types-and-fix-unrelated-breakage-it
branch
July 21, 2026 19:41
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.
Summary
yarn gen:apiagainst currentcloud/mainpicks up thenameandusagefields SAS-141/SAS-145 added to the cost-breakdown response, but also pulls in ~6 other commits of unrelated API drift that accumulated in the same window. This is that regen plus the resulting fixes, landed as its own focused change so it doesn't drag unrelated region/environment-API changes into a billing-UI PR.cloudGlobalApi.ts:Regionstype alias repointed to the schema's renamedPaginated_Region;getSelfManagedSubscription's path param renameduseCaseId→environmentId, matching the backend's own rename.upToDate(region "up to date" Kubernetes condition) went from optional to required. Added a"True"default at the 3 sites that construct these objects without a real value: the region mock builder, the fabricated self-managed/impersonation environment, and 2 test fixtures.redocly.yaml), so the diff doesn't spuriously delete headers from 3 files.Unblocks SAS-142 (render account display names) and SAS-159 (render per-cluster usage), both otherwise stuck waiting on these regenerated types.
Test plan
yarn typecheckpassesyarn lintpassesyarn test --run— 722 passed, 1 skipped, 130 filesLinear: SAS-161