Skip to content

feat!: add GetChannel endpoint#51

Merged
mogita merged 1 commit into
masterfrom
feat/cha-3741-add-getchannel-endpoint
Jul 15, 2026
Merged

feat!: add GetChannel endpoint#51
mogita merged 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.

Update (CHA-3386): Regenerated against current chat master. This PR now also renames the shadowed moderation CallResponse schema to ModerationCallResponse (video CallResponse unchanged) — an additional intentional breaking change.

Regenerate from chat at the CHA-3386 commit. Adds the read-only GetChannel
endpoint and renames the shadowed moderation CallResponse to
ModerationCallResponse. Updates hand-written feed integration tests for the
getOrCreateFeed language/translate_text query params.

BREAKING CHANGE: renames moderation CallResponse to ModerationCallResponse (video CallResponse keeps its name); drops non-functional internal ModerationSettings fields no longer in the spec.
@mogita mogita force-pushed the feat/cha-3741-add-getchannel-endpoint branch from 0b69ed3 to 5b95ead Compare July 15, 2026 11:23
@mogita mogita merged commit ffb396f into master Jul 15, 2026
6 of 7 checks passed
@mogita mogita deleted the feat/cha-3741-add-getchannel-endpoint branch July 15, 2026 13:57
github-actions Bot added a commit that referenced this pull request Jul 15, 2026
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