feat!: add GetChannel endpoint#51
Open
mogita wants to merge 1 commit into
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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). ReturnsStreamResponse(ChannelStateResponse). Exposed via the existingChatTrait, no wiring changes needed.Breaking changes
Regeneration also syncs accumulated spec drift. Two
ModerationDashboardPreferencesproperties are removed because they are no longer in the API spec:analyze_max_image_size_byteswebhook_header_client_request_id_keyThese 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+phpstanrun clean on generated code during generation.