Releases: cadenya/widgets-sdk
Release list
v1.4.0
v1.3.0
1.3.0
Adds client.session.renewWidget({ workspaceId }), which sends POST /v1/workspaces/{workspaceId}/session:renew to the configured widget host using the current widget-session bearer. No session ID is sent and the request has no body.
The response and exported WidgetSessionCredentials type contain sessionId, host, token, tokenExpiresAt, and sessionExpiresAt, matching creation credentials from @cadenya/cadenya@1.5.0 without a management SDK dependency.
Renewal requires a valid token with 60 seconds of expiry drift; hard session expiry has no tolerance. This generated SDK exposes the RPC; it does not schedule automatic renewal or replace sessions.
Structured server errors remain available through APIError.status, code, and details. The browser User-Agent suppression and conversation heartbeat behavior are preserved. Known backend structured unary-error and revoked-reconnect reason issues remain tracked separately; this package does not resolve them.
Backend prerequisite: the renewal and required-identity changes through cadenya/cadenya#419 (504a85b8). Production deployment readiness was verified before release.
v1.2.0
v1.1.1
Fixes
- Browser and worker clients no longer add an SDK User-Agent header, avoiding Safari CORS preflight rejection. Node clients retain the SDK header; explicit headers and authorization remain supported.
- Nested query objects serialize to dot-delimited query parameters, with repeated array values and circular-reference rejection.
Regenerated with Redwood v0.3.3. Public resource signatures and types are unchanged.
npm install @cadenya/widgets@1.1.1v1.1.0
Adds WidgetFinalizedEvent to the widget event vocabulary: widgets can now
back agents with structured output, and a finalized conversation delivers
the extracted output through the event stream instead of ending silently.