Repository navigation
feat: [CHA-6444] regenerate client from openapi-v240.2.1 - #122
Merged
Merged
Conversation
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.
Ticket
CHA-6444
Problem
queryDeletedChannels(POST /api/v2/chat/channels/deleted) is live, but 11.0.0 was generated fromopenapi-v239.93.2, which predates it.Solution
Regenerate from chat
v240.2.1, whose spec is identical to protocolopenapi-v240.2.1, with the Java empty-enum-constant fix from GetStream/chat#20015 applied to the generator. New methods:queryDeletedChannels,getHistoryWindowTeams,setHistoryWindowTeams,deleteHistoryWindowTeams,cancelExportFeeds.ExportFeedsAppRequestgains optionalincludeDeletedandtypes.Additive only: no removed classes, no changed method signatures,
SortParamTypeunchanged. This is a minor.How to verify
./gradlew spotlessCheck buildpasses (295 unit tests).Note
Low Risk
OpenAPI regeneration with only new APIs and optional model fields; no breaking signature changes in the published client.
Overview
Regenerates the SDK from openapi-v240.2.1, bringing the Java client in line with APIs that already exist on the server. The change set is additive: new request/response types and optional fields only; no removed types or altered existing method signatures.
Chat gains
queryDeletedChannels(POST /api/v2/chat/channels/deleted) plus server-side history window team helpers:getHistoryWindowTeams,setHistoryWindowTeams, anddeleteHistoryWindowTeams. Feeds addscancelExportFeedsand expands export requests (include_deleted,types,activity_ids). Webhooks now deserializefeeds.export.error/feeds.export.success(including newAsyncExportFeedsSuccessEvent).Generated models pick up moderation and product tweaks: multi-country
country_codes(withcountry_codedeprecated on analyze/check), moderation engine config, richer fork/channel and rule-triggered event fields, feed rankingviewer_location_radius_km, activityreasons/include_reasons, and related optional properties on existing DTOs.Reviewed by Cursor Bugbot for commit 42ad504. Bugbot is set up for automated code reviews on this repo. Configure here.
BEGIN_COMMIT_OVERRIDE
feat: add cancelExportFeeds
feat: add deleteHistoryWindowTeams
feat: add getHistoryWindowTeams
feat: add queryDeletedChannels
feat: add setHistoryWindowTeams
feat: add webhook event AsyncExportFeedsSuccessEvent
feat: add ocr_severity_rules to AIImageConfig
feat: add reasons to ActivityResponse
feat: add viewer_location_radius_km to ActivitySelectorConfig
feat: add viewer_location_radius_km to ActivitySelectorConfigResponse
feat: add country_codes to AnalyzeRequest
feat: add explicit_urls_only to BlockListConfig
feat: add language, translated to CallTranscription
feat: add failed_reason, oldest_source_message_id, truncated to ChannelForkResponse
feat: add failed_reason, oldest_source_message_id, truncated to ChannelForkSummary
feat: add fork to ChannelResponse
feat: add country_codes to CheckRequest
feat: add engine to ConfigResponse
feat: add include_reasons to EnrichmentOptions
feat: add include_deleted, types to ExportFeedsAppRequest
feat: add activity_ids, include_deleted to ExportFeedsByTypeRequest
feat: add reason to MarkReviewedRequestPayload
feat: add country_codes to ModerationPayload
feat: add channel_cid, matched_labels, severity to ModerationRulesTriggeredEvent
feat: add reason to RestoreActionRequestPayload
feat: add country_codes to ReviewQueueItemResponse
feat: add engine to UpsertConfigRequest
END_COMMIT_OVERRIDE