Skip to content

Automate stainless.yml resource sync - #603

Open
areina wants to merge 1 commit into
openapi/update-20261002-161008from
toni/rest-api-updates
Open

areina wants to merge 1 commit into
openapi/update-20261002-161008from
toni/rest-api-updates

Conversation

@areina

@areina areina commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Describe your changes

stainless.yml has to be hand-updated by someone every time the API spec changes. This change replaces that manual step with a script.

  • Add a script to sync stainless.yml resource mappings from the spec
  • Remove the manual update script, now replaced by the sync script
  • Remove a stale resource mapping for endpoints that no longer exist
  • Update docs for the new flow

Local pnpm install/pnpm build were broken while building this (stale vite patch, patch config pnpm no longer reads), so those got fixed along the way:

  • Update the vite patch to match the version we actually use
  • Clean up patch/dependency config so install doesn't warn

Affected pages

None

Related Issues

None

Checklist before requesting a review

  • - This is ready for review. If not, raise as a draft PR
  • - I have reviewed my changes.
  • - I have confirmed the content is technically accurate.
  • - I have tested any code that is added or updated on the latest available version.
  • - I have confirmed the content is free of typos or grammar errors.
  • - I have verified all images and videos are clear and match production (or dev for unreleased features).
  • - I have checked the component kitchen sink for any visual breakage (only needed if you changed components, styles, or dependencies). A link to this PR's own preview appears under Affected pages once the build deploys.
  • - This references a feature that is public. If not, add a note and we can schedule the merge for after the feature release.

stainless.yml has to be hand-updated by someone every time the API spec
changes. This change replaces that manual step with a script.

- Add a script to sync stainless.yml resource mappings from the spec
- Remove the manual update script, now replaced by the sync script
- Remove a stale resource mapping for endpoints that no longer exist
- Update docs for the new flow

Local pnpm install/pnpm build were broken while building this (stale
vite patch, patch config pnpm no longer reads), so those got fixed along
the way:

- Update the vite patch to match the version we actually use
- Clean up patch/dependency config so install doesn't warn
@areina
areina added this pull request to stack #604 October 2, 2026 16:19
@areina
areina requested a review from a team October 2, 2026 16:19
@vercel

vercel Bot commented Oct 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tiger-data-docs Error Error Oct 2, 2026 4:19pm UTC

Comment thread stainless/stainless.yml
methods:
retrieve_info: get /auth/info

analytics:

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.

this doesn't need to be exposed

Comment thread stainless/stainless.yml
set_environment: post /projects/{project_id}/services/{service_id}/setEnvironment
logs: get /projects/{project_id}/services/{service_id}/logs
set_ha: post /projects/{project_id}/services/{service_id}/setHA
rename: post /projects/{project_id}/services/{service_id}/rename

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.

these were missing

Comment thread stainless/stainless.yml
enable_pooler: post /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/enablePooler
disable_pooler: post /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/disablePooler
set_environment: post /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/setEnvironment
metrics:

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.

these were published recently

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

⚠️ Checklist Incomplete

Please complete all checklist items in the PR description before requesting review.

Unchecked items:

  • This is ready for review
  • I have reviewed my changes
  • I have confirmed the content is technically accurate
  • I have tested any code that is added or updated
  • I have confirmed the content is free of typos or grammar errors
  • I have verified all images and videos are clear and match production
  • This references a feature that is public

Tip: If an item isn't relevant to your PR, mark it as checked and add "n/a" next to it.

This branch had an error being deployed

1 failed deployment
Preview — d83c9c9c Deployed Oct 2, 2026 by vercel[bot]
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.

1 participant