-
Notifications
You must be signed in to change notification settings - Fork 1
Add latest OpenAPI network code (31.10.2025) #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
PR checklist ✅All required conditions are satisfied:
🎉 Great job! This PR is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the SDK to align with API changes related to feed suggestions, moderation actions, and various model properties. The changes introduce new data types and update existing models to better represent the API responses.
- Introduces
FeedSuggestionDatawrapper to separate suggestion metadata from feed data - Adds support for new moderation action types (
block,delete_comment,shadow_block) and activity feedback events - Updates model field names and types to match API schema changes (e.g.,
FeedGroupproperty names,AppResponseFieldsstructure)
Reviewed Changes
Copilot reviewed 45 out of 45 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| ProfileViewModel.kt | Maps feed suggestions to extract feed data from the new wrapper type |
| WSEvent.kt | Adds activity feedback event handler |
| SubmitActionRequest.kt | Adds new moderation action types (block, delete_comment, shadow_block) |
| StoriesFeedUpdatedEvent.kt | Swaps interface order and method implementations; adds activities field |
| ShadowBlockActionRequest.kt | Converts from empty class to data class with reason field |
| ReviewQueueItemResponse.kt | Adds latest moderator action and v3 entity fields |
| PollVote*FeedEvent.kt | Swaps interface order and method implementations |
| ModerationMarkReviewedEvent.kt | Swaps interface order and method implementations |
| GetFollowSuggestionsResponse.kt | Changes suggestions type and adds algorithm field |
| FeedSuggestionResponse.kt | New model for feed suggestion response with metadata |
| FeedMemberRemovedEvent.kt | Swaps interface order and method implementations |
| FeedGroup.kt | Updates JSON property names from PascalCase to snake_case |
| Delete*Request.kt | Adds optional reason field to deletion requests |
| BlockActionRequest.kt | Fixes incorrect class definition |
| AppResponseFields.kt | Replaces region/shard with id/placement |
| Activity*Event.kt | Swaps interface order and method implementations |
| ActivitySelectorConfig.kt | Adds cutoff_window field |
| ActivityResponse.kt | Moves hidden field to required and adds preview/moderation_action |
| ActivityFeedbackRequest.kt | Removes fields that were moved to event payload |
| ActivityFeedback*Payload/Event.kt | New models for activity feedback events |
| Serializer.kt | Registers action adapter for feedback payload |
| Test files | Updates tests to use new data structures |
| FeedSuggestionData.kt | New public API model for feed suggestions |
| FeedSuggestionOperations.kt | Conversion logic for feed suggestion responses |
| Feed.kt | Updates return type for queryFollowSuggestions |
| FeedsRepository*.kt | Updates repository interface and implementation |
| FeedImpl.kt | Updates return type for queryFollowSuggestions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...ndroid-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityResponse.kt
Show resolved
Hide resolved
...ndroid-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityResponse.kt
Show resolved
Hide resolved
SDK Size Comparison 📏
|
737281b to
655b5c4
Compare
|



Goal
Generate latest code, particularly to get the new models for the activity feedback feature.
Implementation
There were some breaking changes in some models. Two important ones:
api.getFollowSuggestions's response now contains a list ofFeedSuggestionResponseinstead ofFeedResponse, so I added the corresponding model and updated the referenceshiddenproperty they didn't have beforeTesting
Launch the sample and verify it works, especially the follow suggestions in the profile.
Checklist