Repository navigation
Sync TypeScript Server SDK docs - #830
Open
hey-august wants to merge 16 commits into
Open
hey-august wants to merge 16 commits into
hey-august wants to merge 16 commits into
Conversation
…256 webhook helpers
…prefabs, and Relay reference to 3.7.1
Contributor
…g, and requireArgs
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.
Description
@signalwire/sdkv3.7.1. It was synced to an unreleased commit between 2.0.5 and 3.5.0.AgentBase.addPerCallConfig,onCallStart,onCallEnd,mount;FunctionResult.changeVoice,rpcAiGlobalData;ChatGateway;HandoffRouter;AIChatClient.rawPost; the capabilities helpers; the post-prompt helpers;validateWebhookSignatureSha256; thesw-tsdocsCLI.onSummary,validateBasicAuth,enableMcpServer,defineContexts,addLanguage,hold,rpcAiMessage,tap,joinConference,pay,SemanticGate(visualInput), Bedrock, LiveWire, prefabs, skills,swaig-test, environment variables, serverless,AgentServer, Relaystream/userEvent.body()sets the webhook'sparams, which is sent as a POST body. A webhook'soutput,expressions, andforeachread response fields from the root (${temp}) and arguments as${input.args.x}, so 20 examples change.@signalwire/sdk@2.0.5to3.7.1and fixes the samples 3.x breaks:calling.dial,transfer,stream/streamStop,phoneNumbers.setRelayTopic, andfabric.tokens.createSubscriberToken;swmlScripts.createtakescontentsas a string; listdatais optional.ringbackitems; typedcall.deviceand collect results;record()'s missingmax_length.enter_queue,stream,stop_stream, andconnect's stream settings fail the SDK's schema validation, so those samples skip validation for that verb only, as the rule's builder-gap convention says.sdk-source-sync.jsonto the v3.7.1 tag commit.mdx-capability-guides.md: the TypeScript pin is now 3.7.1, and a new rule requires each pinned Server SDK version to match the release recorded insdk-source-sync.json, bumped together in one PR.visual_inputfrom 3.7.1.Notes for reviewers
@signalwire/sdk@2.0.5: Add Transcribe Calls guide #829, Add send and receive messages guide #819, Add Text-to-speech on a call guide #789, Add AI sidecar guide to the SWML guides #783. Each needs the 3.7.1 pin and the same sample fixes before or after merge.transfer_after_bridgeonenter_queue, which the platform doesn't. This repo's generatedspecs/swml/tsp-outputstill lists that field too, though the.tspsource was updated.streamandstop_streamverbs andconnect'scodec,realtime, andname.record()'s type omitsmax_length, which the platform honors.SwmlBuilder.build()returns a type thatcalling.dial'sswmloption rejects under--strict, and that option's type isn't exported. Samples passJSON.parse(builder.render()).dialmaxDurationis in minutes. The platform reads seconds, and the reference keeps seconds.joannawas replaced withtiffanyin the examples, since the valid Bedrock voices aretiffany,matthew,amy,lupe, andcarlos.WebServiceandServerlessAdapter.createCgiHandlerhave no TypeScript reference pages; that gap predates this sync. The Python reference may have the same DataMap template issue; out of scope here.Preview
Guides:
Reference (main entry points):
Type of Change
Related Issues
Follow-up to #829, which pins
@signalwire/sdk@2.0.5and notes that this PR bumps the pin and syncs the TypeScript reference.Testing
Behavior verified against the platform and the API spec.
tsc --strictagainst an installed@signalwire/sdk@3.7.1. One existing JavaScript sample (call streaming, Hono server) has acheckJs-only type mismatch under both 2.0.5 and 3.7.1; it runs as-is.yarn fern-md-check: all MDX files valid.Tests
Checklist
🤖 Generated with Claude Code