Skip to content

feat!: [FLU-1105] regenerate the client from the current OpenAPI spec - #79

Merged
itsmeadi merged 1 commit into
masterfrom
feat/regen-openapi-v240
Nov 2, 2026
Merged

itsmeadi merged 1 commit into
masterfrom
feat/regen-openapi-v240

Conversation

@itsmeadi

@itsmeadi itsmeadi commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Ticket

Summary

Regenerates the client from the v2 serverside spec (releases/v2/serverside-api.yaml) at chat master e04fd5778f. The generator binary includes the fix from GetStream/chat#20015, so SortParamType now has EMPTY = '' in place of the nameless public const = ''; that broke the earlier regen.

Also adds src/GeneratedModels/MultipartRequest.php, a hand-written empty marker interface. Generated upload models (FileUploadRequest, ImageUploadRequest, UploadChannelRequest, UploadChannelFileRequest) now implements MultipartRequest, and nothing defined it.

Webhook fixtures were regenerated too. Their payloads are unchanged; only the gzip encoding differs.

Breaking changes

  • getActivity() takes a new $skipOwnFollowings before $userID, so positional callers that pass $userID and later arguments must update.
  • stopCampaign($id) and commitMessage($id) no longer take $requestData. PHP ignores extra positional arguments, but a named requestData: argument now fails.

Everything else is additive: new models, endpoints and optional parameters.

Tests

  • make lint (PHPStan) reports no errors.
  • ./vendor/bin/phpunit tests --exclude-group integration: 327 tests, all pass.
  • php -l passes on every changed file.

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@itsmeadi
itsmeadi merged commit 461f507 into master Nov 2, 2026
8 checks passed
@itsmeadi
itsmeadi deleted the feat/regen-openapi-v240 branch November 2, 2026 21:53
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.

1 participant