Skip to content

feat: regenerate with the flat sendRequest response and no default JSON content type - #357

Merged
jdimovska merged 1 commit into
mainfrom
regenerate-api
Sep 29, 2026
Merged

jdimovska merged 1 commit into
mainfrom
regenerate-api

Conversation

@jdimovska

Copy link
Copy Markdown
Contributor

🎫 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.

@jdimovska
jdimovska merged commit 9d50ab4 into main Sep 29, 2026
19 of 25 checks passed
@jdimovska
jdimovska deleted the regenerate-api branch September 29, 2026 12:41
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants