Skip to content

docs(funding): note /v2/funding is now in the OpenAPI spec#315

Open
joalavedra wants to merge 1 commit into
openfort-xyz:mainfrom
joalavedra:docs/funding-openapi-note
Open

docs(funding): note /v2/funding is now in the OpenAPI spec#315
joalavedra wants to merge 1 commit into
openfort-xyz:mainfrom
joalavedra:docs/funding-openapi-note

Conversation

@joalavedra

Copy link
Copy Markdown
Contributor

What

Corrects the FundingApi doc comment: the /v2/funding endpoints are now in the published OpenAPI spec (verified against api.openfort.io/api-docs/swagger.json — tag Funding; operationIds createFundingSession, SetPaymentMethod, getFundingSession, CreatePayLink, ListChains; fundingSession schema). The old comment said they weren't yet.

Why / follow-up

packages/internal/openapi-clients is generated from that spec but is stale — it predates funding, so BackendApiClients has no FundingApi and sdk/src/api/funding.ts hand-rolls the calls. Regenerating the client (make generate-backend-openapi) will produce a FundingApi, after which this wrapper can delegate to BackendApiClients.fundingApi while keeping the clientSecret memory + ergonomics. This PR just makes the comment accurate and points at that path; the regen + delegation is a follow-up (it needs the Docker/Java generator toolchain).

Comment-only change. Funding unit tests pass (7/7); biome clean.

🤖 Generated with Claude Code

The funding endpoints (tag Funding) are now published in the API's OpenAPI
spec, so regenerating @openfort/openapi-clients yields a FundingApi and this
hand-rolled wrapper can delegate to BackendApiClients.fundingApi.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

@joalavedra is attempting to deploy a commit to the openfort Team on Vercel.

A member of the Team first needs to authorize it.

@pkg-pr-new

pkg-pr-new Bot commented Jun 23, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@openfort/openfort-js@315

commit: fdba5dd

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