feat: regenerate with the flat sendRequest response and no default JSON content type - #357
Merged
Merged
Conversation
szuperaz
approved these changes
Sep 29, 2026
JimmyPettersson85
pushed a commit
that referenced
this pull request
Sep 29, 2026
🤖 I have created a release *beep* *boop* --- ## [0.8.9](v0.8.8...v0.8.9) (2026-09-29) ### Features * [FEEDS-1965] add top_level_comment_count to feeds getActivity and getComments ([#359](#359)) ([bf251c5](bf251c5)) * regenerate with the flat sendRequest response and no default JSON content type ([#357](#357)) ([9d50ab4](9d50ab4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎫 Ticket: https://linear.app/stream/issue/CHA-5610
💡 Overview
Regenerates the feeds client with the TypeScript generator from https://github.com/GetStream/chat/pull/17574 and adapts ApiClient to its new contract.
Flat sendRequest response. ApiClient.sendRequest now resolves to StreamResponse ({ ...body, metadata }). Generated methods decode that object in place and return it, instead of rebuilding { ...response.body, metadata: response.metadata } in every method (302 sites in FeedsApi and ModerationApi).
No explicit 'application/json'. Generated calls no longer pass the JSON content type (98 sites). sendRequest already defaults to it (requestContentType ?? 'application/json'), so the header on the wire is unchanged. multipart/form-data uploads still pass theirs.