Skip to content

feat: regenerate OpenAPI clients from latest spec - #392

Merged
oliverlaz merged 2 commits into
mainfrom
feat/regenerate-openapi
Nov 13, 2026
Merged

oliverlaz merged 2 commits into
mainfrom
feat/regenerate-openapi

Conversation

@oliverlaz

Copy link
Copy Markdown
Member

Summary

Regenerates the API clients from the latest server-side spec (GetStream/chat master 7c7ffabb20) and includes the path-param encoding fix from #361.

New endpoints

  • Common: searchAll
  • Moderation: listAgentFeedback, submitAgentFeedback, getAgentReviewStatus, countReviewQueue
  • Moderation config versioning: saveConfigVersion, listConfigVersions, getConfigVersion, publishConfigVersion
  • listImports() now takes an optional request object (backwards compatible)

Model changes

30 new interfaces/types. All changes to existing types are additive (widened unions or new optional fields), for example:

  • ModerationEngineConfig: provider gains 'stream', model gains new values, new reasoning_effort and strictness fields
  • ActivitySelectorType gains 'friends_engaged'
  • Moderation action types gain 'agent_recommendation'

Path params

  • getConfigVersion / publishConfigVersion are the first endpoints with a numeric path param (version, int32 in the spec). ApiClient.sendRequest now accepts Record<string, string | number> for path params.
  • Path param values are now percent-encoded with encodeURIComponent (from fix: percent-encode path parameters in sendRequest #361), so values containing /, ?, # or % stay within one path segment. Values with : (e.g. feed ids) are sent as %3A, matching stream-py and getstream-go.
  • The test from fix: percent-encode path parameters in sendRequest #361 is moved to __tests__/integration/path-params.test.ts, since Vitest only collects tests from that folder, and gains a numeric-param case.

Supersedes #361.

Testing

  • yarn build, yarn lint and Prettier are clean
  • yarn test: 362 passed, 42 skipped

oliverlaz and others added 2 commits November 13, 2026 10:57
Adds new endpoints (searchAll, moderation agent feedback/review status,
review queue count, moderation config versioning) and extends models.

ApiClient.sendRequest now accepts numeric path params, needed by the new
getConfigVersion/publishConfigVersion endpoints whose `version` path
param is an integer in the spec.
Path parameter values are now encoded with encodeURIComponent before they
replace their {name} token, so values containing /, ?, # or % stay within
a single path segment. Numeric values (e.g. moderation config `version`)
are encoded the same way.

Based on #361. The test lives in __tests__/integration so Vitest picks it
up, and covers numeric path params as well.
@oliverlaz
oliverlaz requested a review from szuperaz as a code owner November 13, 2026 10:04
@oliverlaz
oliverlaz merged commit 315e419 into main Nov 13, 2026
10 checks passed
@oliverlaz
oliverlaz deleted the feat/regenerate-openapi branch November 13, 2026 10:06
oliverlaz pushed a commit that referenced this pull request Nov 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.9.2](v0.9.1...v0.9.2)
(2026-11-13)


### Features

* regenerate OpenAPI clients from latest spec
([#392](#392))
([315e419](315e419))

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