Skip to content

feat!: add GetChannel endpoint#70

Merged
mogita merged 2 commits into
mainfrom
feat/cha-3741-add-getchannel-endpoint
Jul 15, 2026
Merged

feat!: add GetChannel endpoint#70
mogita merged 2 commits into
mainfrom
feat/cha-3741-add-getchannel-endpoint

Conversation

@mogita

@mogita mogita commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

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

  • client.chat().getChannel(type, id, request) (and getChannel(type, id)) fetches a channel by CID without creating it (404 if it does not exist). Returns StreamRequest<ChannelStateResponse>. Includes a channel-level wrapper.

Breaking changes

Regeneration also syncs accumulated spec drift. Two fields 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

  • ./gradlew clean spotlessApply build -x test passes (run 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.

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 merged commit 3ecf42c into main Jul 15, 2026
4 checks passed
@github-actions github-actions Bot mentioned 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