feat(devex): add a typescript sdk package with a typed ledger client - #312
Merged
Conversation
Add sdk/typescript, a hand-written typed fetch client over the REST API that works in node and the browser with no runtime dependencies. The first surface covers the ledger account reads, with bearer auth applied only when a token is set, the id path segment encoded, and a typed FincoreError carrying the status on a non-2xx response. The package is private with no publish script, so nothing is pushed to a registry, and a dedicated workflow typechecks, tests and builds it. Types mirror the web client exactly. Closes #305
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.
E-09 DevEx #305 (F-09.3) - a TypeScript SDK package.
What
New sdk/typescript/, a hand-written typed fetch client over the REST API (isomorphic - node + browser via global fetch, zero runtime deps), mirroring the Kotlin SDK #304 and web/src/api/client.ts:
Hand-written over openapi-generator: no codegen toolchain, reviewable, clean-room. Scope is a minimal first surface; broader operations are a follow-up (pairs with #310).
Evidence (node v24 local)
npm run typecheck (covers src + test) clean; 4 vitest tests pass; npm run build emits src-only dist/*.d.ts.
Gate chain
Closes #305