Repository navigation
feat: add javascript sdk generated from the same schemas - #2
Open
taimoor-ahmed-1 wants to merge 1 commit into
Open
taimoor-ahmed-1 wants to merge 1 commit into
taimoor-ahmed-1 wants to merge 1 commit into
Conversation
Adds a javascript/ package generated with @hey-api/openapi-ts from the filtered schema that filter_schema.py already produces for the python SDK, plus a hand-written OAuth2 client-credentials helper mirroring auth.py. regen_sdk_js.sh mirrors regen_sdk.sh and the weekly workflow regenerates both. src/generated/ is committed, matching how the python package is handled. The generator inlines its own axios client, so axios is the only runtime dependency and createClient is re-exported for MFEs that already have an authenticated axios instance. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
taimoor-ahmed-1
force-pushed
the
feat/js_sdk
branch
from
October 6, 2026 09:09
d6c7ca9 to
a36ab2b
Compare
Collaborator
|
Heads-up: the Python SDK now resolves calls from the service root (#3) — generated paths carry their own |
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.
Adds a JavaScript/TypeScript SDK, generated from the same schemas as the Python one.
javascript/package, generated with@hey-api/openapi-tsintosrc/generated/, which is committed the way the Python package isregen_sdk_js.shmirrorsregen_sdk.shand reusesfilter_schema.py, so both SDKs cover the sameopenedx-platform-sdktagged operationssrc/auth.tsis hand-written and mirrorsauth.py: OAuth2 client_credentials,JWTprefix, auto refresh,getStudioClient()/getLmsClient()regenerate_sdk.ymlnow regenerates both SDKs in the weekly runGenerated from the schemas now committed at
docs/in the platform: 16 paths, 27 components, 23 operations. Rerunning the generator reproducessrc/generated/byte for byte, so the weekly workflow only opens a PR on real schema changes.Verified: typecheck, eslint, 7 auth tests, and the dual CJS/ESM build all pass.
Two things worth a look:
@hey-api/client-axiosis gone andaxiosis the only runtime dependency.createClientis re-exported for MFEs that already hold an authenticated axios instance.engines.nodeis>=20, which the generator requires.🤖 Generated with Claude Code