3.57.2

(fix): Fix map types with unknown/any value types to not include spurious | undefined. Previously, map<string, UnknownType> generated Record<string, UnknownType | undefined> instead of Record<string, UnknownType>. The | undefined is now correctly omitted from map value types.

3.57.1

(fix): Fix passthrough fetch() method producing 404s when the SDK environment is an object (e.g. { base: string; production: string }) instead of a plain string URL. The generated code now resolves the environment supplier inline and projects object environments to their .base property, instead of passing the raw object to makePassthroughRequest where it would be stringified as [object Object].

3.57.0

(feat): Expose an optional protocols field on RealtimeClient.ConnectArgs for WebSocket subprotocol negotiation. The ReconnectingWebSocket constructor already accepted a protocols parameter but it was hardcoded to an empty array. Browser callers can now authenticate via subprotocols (e.g. xai-client-secret.<token>) where custom headers are forbidden by the browser security model.

3.56.4

(fix): Remove baseUrl from generated tsconfig.base.json files. Setting baseUrl to src was unnecessary alongside rootDir and caused unexpected module resolution side effects in some project setups.

3.56.3

(fix): Fix TypeScript SDK generator crash when generating WebSocket clients for AsyncAPI specs that define a named server (e.g. servers.production) with a single-URL environment. The baseUrlId assigned by the Fern IR converter is now silently ignored for single-URL environments since there is only one URL to resolve to.

3.56.2

(chore): Rename the shouldGenerateWebsocketClients configuration option to generateWebSocketClients. The old name is still accepted as a deprecated fallback for backwards compatibility.