Skip to content

feat: Add API-key installation support to Pipes#1649

Merged
gjtorikian merged 1 commit into
mainfrom
pipes-regen
Jul 1, 2026
Merged

feat: Add API-key installation support to Pipes#1649
gjtorikian merged 1 commit into
mainfrom
pipes-regen

Conversation

@gjtorikian

Copy link
Copy Markdown
Contributor

Summary

  • Regenerate the Pipes module from the latest OpenAPI spec (oagen).
  • Add updateDataIntegrationApiKey() — upserts an API-key installation for an integration/user via PUT /data-integrations/{slug}/api-key, rotating the stored key if one already exists.
  • Add createDataIntegrationCredential() — vends credentials for a connected account via POST /data-integrations/{slug}/credentials, branching on the installation's auth_method (OAuth returns a refreshed access token; API-key returns the stored secret).
  • Surface auth_method on connected accounts and provider list entries, with supporting credential/error interfaces and serializers.
  • Simplify getAccessToken() to take GetAccessTokenOptions directly (rename get-access-token.interfaceget-access-token-options.interface) and document the new 422 response.
  • Regenerate fixtures and update pipes.spec.ts to cover the new endpoints.

Test plan

  • npm test -- src/pipes/pipes.spec.ts passes
  • npm run build / typecheck succeeds with the regenerated interfaces
  • Spot-check that no hand-maintained Pipes code was clobbered by regen

@gjtorikian gjtorikian requested review from a team as code owners June 30, 2026 18:55
@gjtorikian gjtorikian requested a review from stanleyphu June 30, 2026 18:55
@gjtorikian gjtorikian merged commit 6e6996d into main Jul 1, 2026
7 checks passed
@gjtorikian gjtorikian deleted the pipes-regen branch July 1, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants