Repository navigation
feat: [CHA-5981] regenerate client from openapi-v240.7.1 - #124
Merged
Merged
Conversation
Adds per-channel-type retention rules: channelType on SetRetentionPolicyRequest and DeleteRetentionPolicyRequest, channelTypeRule / channelTypeRules on the set and get responses, ChannelTypeRuleResponse and RetentionPolicyType.INACTIVE_CHANNELS_BY_TYPE. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
getConfigVersion and publishConfigVersion are the first endpoints with an integer path parameter; Map.of mixed String and Integer values and did not compile against StreamRequest's Map<String, String>. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ianb-gs
approved these changes
Nov 9, 2026
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.
TLDR
Adds per-channel-type retention rules to the Java SDK. The API supports
channel_typeon retention policies since chat v240.5.1, but 11.1.0 was generated fromopenapi-v240.2.1, so Java users can't set it yet. Additive only, so this is a minor.Ticket
CHA-5981
Solution
Regenerated with chat's generator from chat tag
v240.7.1(published as protocolopenapi-v240.7.1), followinggenerate.shstep by step, thenspotlessApply.Retention changes:
SetRetentionPolicyRequestandDeleteRetentionPolicyRequestgain optionalchannelType.SetRetentionPolicyResponsegainschannelTypeRule,GetRetentionPolicyResponsegainschannelTypeRules, newChannelTypeRuleResponse.RetentionPolicyType.INACTIVE_CHANNELS_BY_TYPE.RetentionRunResponsegainschannelType.Other spec changes since
openapi-v240.2.1, also additive:searchAll, Feeds config versions (get/list/save/publishConfigVersion),getNotificationStatus, For You feed config fields, moderation event fields.ListPolicyTestSetsRequestandV2DeleteTemplateRequestwere empty classes and now carry fields.No removed classes, no changed method signatures.
How to verify
./gradlew spotlessCheck build. Not built locally (the toolchain needs JDK 21, not installed here);spotlessApplyran clean.🤖 Generated with Claude Code
Note
Low Risk
Generated-only, backward-compatible additions with no removed APIs or changed method signatures.
Overview
Regenerates the Java SDK from openapi-v240.7.1, adding API surface that was missing since the prior v240.2.1 generation. Changes are additive (new optional fields, new types, new methods); existing method signatures are unchanged.
Retention gains per-channel-type inactive channel rules: optional
channel_typeon set/delete requests,channel_type_rules/channel_type_ruleon get/set responses,RetentionPolicyType.INACTIVE_CHANNELS_BY_TYPE, andchannel_typeon retention run records.Chat adds
searchAll(POST /api/v2/chat/search/all) with request/response section models for unified message/user/channel search.Moderation adds config versioning:
saveConfigVersion,listConfigVersions,getConfigVersion, andpublishConfigVersion, pluspublished_versionon config models.Feeds adds
getNotificationStatuson feed instances; feed models pick up friends_engaged selector options, For You dwell/exploration config, activity position / metrics fields, and related selector constants.Smaller spec syncs include call
extra_opts, ban/unban flags, moderation event payload fields, and query params on previously empty request DTOs (ListPolicyTestSetsRequest,V2DeleteTemplateRequest).Reviewed by Cursor Bugbot for commit 25a4259. Bugbot is set up for automated code reviews on this repo. Configure here.
BEGIN_COMMIT_OVERRIDE
feat: add searchAll
feat: add getConfigVersion, listConfigVersions, saveConfigVersion and publishConfigVersion
feat: add getNotificationStatus
feat: add channel_type to SetRetentionPolicyRequest and DeleteRetentionPolicyRequest
feat: add channel_type_rule to SetRetentionPolicyResponse and channel_type_rules to GetRetentionPolicyResponse
feat: add channel_type to RetentionRunResponse
feat: add inactive-channels-by-type to RetentionPolicyType
feat: add limit and offset to ListPolicyTestSets
feat: add name to V2DeleteTemplate
feat: add friend_type, max_friends, min_friends and reaction_types to ActivitySelectorConfig and ActivitySelectorConfigResponse
feat: add friends_engaged to ActivitySelectorType
feat: add dwell and exploration to ForYouConfig
feat: add position to ActivityResponse
feat: add dwell_ms, position and request_id to TrackActivityMetricsEvent
feat: add request_id to GetOrCreateFeedResponse
feat: add published_version to ConfigResponse and ModerationConfig
feat: add extra_opts to CallSettingsResponse
feat: add moderation_payload to ModerationCheckCompletedEvent
feat: add restore_shadowed_messages to UnbanActionRequestPayload
feat: add ban_from_future_channels to UserBannedEvent
END_COMMIT_OVERRIDE