Skip to content

feat: regenerate SDK from latest chat OpenAPI spec#65

Merged
mogita merged 1 commit into
masterfrom
feat/regenerate-from-chat-oas
Jun 22, 2026
Merged

feat: regenerate SDK from latest chat OpenAPI spec#65
mogita merged 1 commit into
masterfrom
feat/regenerate-from-chat-oas

Conversation

@mogita

@mogita mogita commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Regenerates the chat, common, feeds, moderation, and video clients and their models from the current chat OpenAPI spec.

Versioning

version.rb is intentionally left at 7.1.1. The release workflow derives the bump from this PR's feat: title (no BREAKING CHANGE marker) and writes version.rb + tags v7.2.0 automatically on merge. This is the same changeset already shipped in getstream-php v7.4.0, so a minor bump matches precedent.

Added

  • New endpoints: Moderation#analyze, #bulk_action_appeals, #get_setup_session, #upsert_setup_session; Feeds#get_or_create_follow, #get_or_create_unfollow, #get_user_interests; Chat#create_segment, #update_segment, #add_segment_targets; Common#cancel_import_v2_task; Video#report_client_call_event, plus the request/response models backing them.
  • New webhook events moderation.image_analysis.complete and moderation.text_analysis.complete.

Changed (compatibility note)

  • Models::FlagResponse now represents the full flag record (created_at, target_message, target_user, reason, details, custom, etc.). The moderation flag-action acknowledgement, carrying item_id and duration, moved to the new Models::FlagItemResponse, which Moderation#flag now returns. This resolves an upstream OpenAPI name collision where the acknowledgement was shadowing the rich record. The /api/v2/moderation/flag wire response is unchanged, so code reading item_id/duration off the parsed response is unaffected; only code referencing the FlagResponse model class for those fields needs to switch to FlagItemResponse.
  • ChannelInput#config_overrides and ChannelDataUpdate#config_overrides are now typed as ChannelConfigOverrides instead of the full ChannelConfig.
  • LLMRule#description and TargetResolution#bitrate are now optional.

Tests

  • make test: 283 examples, 0 failures.
  • make lint (rubocop): 39 files, no offenses.

Regenerate the chat, common, feeds, moderation, and video clients and their
models from the current chat OpenAPI spec. The release workflow derives the
minor bump from this PR's feat: title and writes version.rb on merge, so the
version file is intentionally left untouched here.

New endpoints: Moderation#analyze, #bulk_action_appeals, #get_setup_session,
#upsert_setup_session; Feeds#get_or_create_follow, #get_or_create_unfollow,
#get_user_interests; Chat#create_segment, #update_segment, #add_segment_targets;
Common#cancel_import_v2_task; Video#report_client_call_event. Plus the new
moderation.image_analysis.complete and moderation.text_analysis.complete
webhook events.

Resolves an upstream OpenAPI name collision: FlagResponse now maps to the full
flag record, and the moderation flag-action acknowledgement (item_id, duration)
moves to the new FlagItemResponse model, which Moderation#flag now returns. The
/api/v2/moderation/flag wire response is unchanged. Matches the same changeset
already shipped in getstream-php v7.4.0, so released as a minor bump.
@mogita mogita force-pushed the feat/regenerate-from-chat-oas branch from 0604a22 to df85e7a Compare June 22, 2026 12:32
@mogita mogita merged commit 00f7365 into master Jun 22, 2026
7 checks passed
@mogita mogita deleted the feat/regenerate-from-chat-oas branch June 22, 2026 12:36
github-actions Bot added a commit that referenced this pull request Jun 22, 2026
mogita added a commit that referenced this pull request Jun 22, 2026
* fix: derive release bump only from the title bang marker

The release workflow scanned the PR title and body for the substring
"BREAKING CHANGE" and forced a major bump on any match. Prose that merely
mentioned the phrase, including a sentence stating there was no breaking
change, tripped it: PR #65 was intended as a minor (7.2.0) but cut 8.0.0.

Treat the `!` marker in the conventional-commits title (e.g. `feat!:`) as the
sole breaking-change signal and stop reading the PR body entirely. Drop the
now-unused --body / --body-file options and the body plumbing in release.yml.

* docs: align README release rules with title-only bump

The Release Process section claimed a "BREAKING CHANGE" mention in the PR
body/title forces a major bump. The workflow now derives the bump from the
title's `!` marker only and ignores the body. Update the rules accordingly.
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