3.66.6

(fix): Fix TS2322 type error in generated serialization files when enableForwardCompatibleEnums is enabled. The enum schema builder now uses forwardCompatibleEnum_ which correctly widens the parsed type to string, matching the widened API type.

3.66.5

(fix): Fix generated wire tests for SSE endpoints with protocol-discriminated unions. The expected event assertion no longer wraps the deserialized data in a duplicate discriminant key (which produced TS2783 “specified more than once” errors under strict typecheck). When the example puts the discriminant inside the data payload and leaves the SSE event line empty, the discriminant is now promoted onto the event line before being stripped from the data, so the mocked wire body matches what the runtime SDK produces.

3.66.4

(fix): Fix undiscriminated-union query parameters so the list variant is sent as repeated keys (?key=a&key=b) instead of a URL-encoded JSON blob. Mirrors the Go fix in #15526.