Skip to content

v1.3.0

Choose a tag to compare

@github-actions github-actions released this 17 Sep 20:37
2b0b00f

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.

Implementation · Full diff