Upgrade @vapi-ai/server-sdk to ^1.2.2#6
Open
mhar-vapi wants to merge 1 commit into
Open
Conversation
The SDK's 1.x line changed `assistants.update` from `(id, body)` to a
single request object with the id inline, and exposes named DTO types
under the `Vapi` namespace. Bump the package.json template to ^1.2.2,
switch the bootstrap script to `Vapi.CreateAssistantDto` /
`Vapi.UpdateAssistantDto`, and call the new `update({ id, ...body })`
shape. Skill metadata bumped to 1.1.
Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
package.jsontemplate invapi-bootstrap-frameworkfrom@vapi-ai/server-sdk ^0.5.2to^1.2.2.src/bootstrap.tsfor the SDK 1.x API: import theVapinamespace, type the build output asVapi.CreateAssistantDto, and callassistants.update({ id, ...body })(the 1.x signature) instead ofupdate(id, body).versionfrom1.0to1.1.Test plan
ROUGH_DRAFT.mdandbun install— confirm@vapi-ai/server-sdk@1.2.xlands innode_modules.bun run bootstrap(first run) — confirm assistants get created and ids print as before..env.localand re-run — confirmUpdated ...for every tuple (exercises the newupdate({ id, ...body })path).bun tsc --noEmit(or whatever the project uses) — confirm no type errors from the SDK 1.x bump.Made with Cursor