Skip to content

feat!: add GetChannel endpoint#51

Open
mogita wants to merge 1 commit into
masterfrom
feat/cha-3741-add-getchannel-endpoint
Open

feat!: add GetChannel endpoint#51
mogita wants to merge 1 commit into
masterfrom
feat/cha-3741-add-getchannel-endpoint

Conversation

@mogita

@mogita mogita commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

Regenerates the SDK from the current API spec. Adds the read-only GetChannel endpoint:

  • $client->chat()->getChannel($type, $id, $state, $messagesLimit, $membersLimit, $watchersLimit) fetches a channel by CID without creating it (404 if it does not exist). Returns StreamResponse (ChannelStateResponse). Exposed via the existing ChatTrait, no wiring changes needed.

Breaking changes

Regeneration also syncs accumulated spec drift. Two ModerationDashboardPreferences properties are removed because they are no longer in the API spec:

  • analyze_max_image_size_bytes
  • webhook_header_client_request_id_key

These had no server-side binding and were non-functional, so removing them has no runtime impact, but it is source-breaking for code referencing them. Warrants a major version bump at release.

Test plan

  • php-cs-fixer + phpstan run clean on generated code during generation.
  • Tests run in CI.

Regenerate SDK from the current API spec. Adds the read-only getChannel method
(exposed via the existing ChatTrait) returning StreamResponse.

BREAKING CHANGE: removes 2 properties (analyze_max_image_size_bytes, webhook_header_client_request_id_key) no longer present in the API spec. They had no server-side binding and were non-functional; no runtime impact.
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