Generated Node SDK contract markers and devdock example#422
Draft
kvz wants to merge 6 commits into
Draft
Conversation
This was referenced Jun 2, 2026
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.
Experimental Status
Experimental work: this PR is part of the API2 contract/generated SDK effort and is intentionally kept as a Draft while the generated surface is validated.
Why
API2 now generates TypeScript SDK endpoint and feature methods from contract data. This companion PR gives that generator real Node SDK marker regions to rewrite and compare, plus a checked-in example that proves the generated surface works as consumer code against devdock.
What changed
createTusAssemblyinput from genericscenario.preparations[]instead of the removed API2 compatibility field.createTusAssembly()andwaitForAssembly()inpackages/node/src/Transloadit.ts.packages/node/src/Transloadit.ts.packages/node/examples/api2-devdock-tus-assembly/main.ts.packages/node/examples/api2-devdock-template-lifecycle/main.ts.Companion PRs
Validation
api2/bin/cli.ts contracts sdks --no-motd --target transloadit --platform typescript --sdk-root ../node-sdk --rewrite-sdk --compare-existingnode --check packages/node/examples/api2-devdock-template-lifecycle/main.tsyarn biome check packages/node/examples/api2-devdock-template-lifecycle/main.tscore/bin/devdock.ts exec tstrun system/sdk_examples/typescript-transloadit-examples.test.ts -vv --max-time-per-test 480yarn workspace @transloadit/node checkTransloadit Companion PRs