Add missing transit commands, export commands object, fix commands TypeScript type#282
Merged
aviadhahami merged 2 commits intomasterfrom Mar 12, 2026
Merged
Conversation
…fix TypeScript types Addresses issue #198: - Add rewrapData, transitCreateKey, transitReadKey, transitListKeys, transitDeleteKey commands - Export commands object on client for extensibility - Fix TypeScript type for commands option from Array to object - Add TypeScript declarations for new methods - Add unit tests for new functionality - Regenerate features.md Co-authored-by: aviadhahami <7353632+aviadhahami@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [NODE-198] Research needs and implement solution
Add missing transit commands, export commands object, fix commands TypeScript type
Mar 12, 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.
Issue #198 reported missing
rewrapandkeystransit endpoints, no way to access the built-in commands object for extension, and an incorrect TypeScript type for thecommandsconfig option (Array<...>instead of an object map).New transit commands
rewrapData—POST /transit/rewrap/{{name}}transitCreateKey—POST /transit/keys/{{name}}transitReadKey—GET /transit/keys/{{name}}transitListKeys—LIST /transit/keystransitDeleteKey—DELETE /transit/keys/{{name}}Export commands for extensibility
client.commandsnow exposes the commands object, so users can inspect or extend it without importingsrc/commands.jsdirectly.Fix TypeScript types
Added
commandsproperty and all new method signatures to theclientinterface.Usage
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.