3.14.1

(fix): Fix wire test failures by pruning union base properties from expected JSON. The Java generator does not generate base properties for union types, so wire test expectations now exclude these fields to match actual SDK serialization behavior.

3.14.0

(feat): Add support for WebSocket channels with bidirectional communication. Generated WebSocket clients provide automatic reconnection with exponential backoff, strongly-typed message handlers, and message queuing during disconnections. Clients are accessible via factory methods in subpackage clients.

1// Create WebSocket client with path and query parameters
2RealtimeWebSocketClient ws = client.realtime().realtimeWebSocket(
3 "session-123",
4 Optional.of("gpt-4"),
5 Optional.of(0)
6);
7
8// Register handlers and connect
9ws.onReceive(message -> System.out.println("Received: " + message.getAlpha()));
10ws.onConnected(() -> System.out.println("Connected!"));
11ws.connect().get();
12
13// Send typed messages
14ws.sendSend(SendEvent.builder()
15 .sendText("Hello WebSocket!")
16 .sendParam(42)
17 .build());