Skip to content

Conversation

@austin-denoble
Copy link
Contributor

@austin-denoble austin-denoble commented Dec 22, 2025

Problem

We're upgrading the TypeScript client to the latest version of Pinecone APIs: 2025-10. In order to do that, we need to regenerate the code under /pinecone-generated-ts-fetch/ off of the latest specifications.

Solution

  • Bump the generate:openapi script in package.json to call ./codegen/build-oas.sh with version 2025-10.
  • Run generation and replace code inside of /pinecone-generated-ts-fetch/.
  • Update SDK wrapper code to align with generated changes:
    • Pass X_PINECONE_API_VERSION explicitly at all call sites.
    • Replace usages of explicit enums with string comparison where necessary.
    • We've made a lot of structural changes to the upstream specs, so there are a number of types that need tweaking in various places.
  • Refactoring and updating some of our unit tests to handle types a bit better.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Infrastructure change (CI configs, etc)
  • Non-code change (docs, etc)
  • None of the above: (explain here)

Test Plan

Make sure existing CI unit & integration tests are passing with all the changes to the generated code + wrapper.


@austin-denoble austin-denoble marked this pull request as ready for review January 6, 2026 19:33
@austin-denoble austin-denoble merged commit 6b8c924 into main Jan 6, 2026
74 of 82 checks passed
@austin-denoble austin-denoble deleted the adenoble/regenerate-2025-10-core branch January 6, 2026 20:08
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