Skip to content

Conversation

@xsahil03x
Copy link
Member

Description of the pull request

This PR regenerates the client-side API models and endpoints, incorporating numerous additions and breaking changes from a recent backend API update.

Breaking Changes

  • queryFollowSuggestions: The method signature and return type have changed. It now returns a Result<List<FeedSuggestionData>> instead of Result<List<FeedData>>. The new FeedSuggestionData model includes additional metadata like reason, recommendationScore, and algorithmScores.
  • FeedsReactionData.id: The logic for generating a reaction's unique ID has been updated to correctly include the commentId when present, ensuring proper identification for comment reactions.

Features

  • Collections API: Added full support for the Collections API, including new request/response models and endpoints for creating, reading, updating, and deleting collections (CreateCollections, ReadCollections, UpdateCollections, DeleteCollections).
  • ActivityData Enhancements: Added hidden and preview boolean fields to the ActivityData model to support content hiding and previewing functionalities.
  • FeedSuggestionData Model: Introduced a new FeedSuggestionData model to encapsulate feed suggestions, providing richer context with algorithmic scores and reasons.
  • Moderation and Deletion Reasons: Added an optional reason field to various deletion and moderation requests (DeleteActivityRequest, DeleteCommentRequest, DeleteReactionRequest, DeleteUserRequest, BlockActionRequest, ShadowBlockActionRequest) to provide context for moderation actions.

Other Key Changes

  • API Model Updates:
    • ActivityRequest and UpdateActivityRequest now include collectionRefs, restrictReplies, and skipEnrichUrl.
    • ActivityResponse now includes collections, moderationAction, preview, hidden, and restrictReplies.
    • ChannelMemberResponse and related models have been significantly expanded with new fields like banned, createdAt, custom, role, and more.
    • ChannelResponse and Channel models now include filterTags.
    • Introduced ActivityFeedbackEvent for real-time feedback updates.
    • Deprecated muteUser and report from ActivityFeedbackRequest.
  • Endpoint and Request Adjustments:
    • Made addCommentRequest in the addComment endpoint nullable.
    • Removed the deprecated activitySelectorOptions from FeedQuery and GetOrCreateFeedRequest.
  • Testing: Added tests for the new queryFollowSuggestions functionality to validate the handling of FeedSuggestionData.

This PR regenerates the client-side API models and endpoints, incorporating numerous additions and breaking changes from a recent backend API update.

### Breaking Changes
- **`queryFollowSuggestions`:** The method signature and return type have changed. It now returns a `Result<List<FeedSuggestionData>>` instead of `Result<List<FeedData>>`. The new `FeedSuggestionData` model includes additional metadata like `reason`, `recommendationScore`, and `algorithmScores`.
- **`FeedsReactionData.id`:** The logic for generating a reaction's unique ID has been updated to correctly include the `commentId` when present, ensuring proper identification for comment reactions.

### Features
- **Collections API:** Added full support for the Collections API, including new request/response models and endpoints for creating, reading, updating, and deleting collections (`CreateCollections`, `ReadCollections`, `UpdateCollections`, `DeleteCollections`).
- **`ActivityData` Enhancements:** Added `hidden` and `preview` boolean fields to the `ActivityData` model to support content hiding and previewing functionalities.
- **`FeedSuggestionData` Model:** Introduced a new `FeedSuggestionData` model to encapsulate feed suggestions, providing richer context with algorithmic scores and reasons.
- **Moderation and Deletion Reasons:** Added an optional `reason` field to various deletion and moderation requests (`DeleteActivityRequest`, `DeleteCommentRequest`, `DeleteReactionRequest`, `DeleteUserRequest`, `BlockActionRequest`, `ShadowBlockActionRequest`) to provide context for moderation actions.

### Other Key Changes
- **API Model Updates:**
  - `ActivityRequest` and `UpdateActivityRequest` now include `collectionRefs`, `restrictReplies`, and `skipEnrichUrl`.
  - `ActivityResponse` now includes `collections`, `moderationAction`, `preview`, `hidden`, and `restrictReplies`.
  - `ChannelMemberResponse` and related models have been significantly expanded with new fields like `banned`, `createdAt`, `custom`, `role`, and more.
  - `ChannelResponse` and `Channel` models now include `filterTags`.
  - Introduced `ActivityFeedbackEvent` for real-time feedback updates.
  - Deprecated `muteUser` and `report` from `ActivityFeedbackRequest`.
- **Endpoint and Request Adjustments:**
  - Made `addCommentRequest` in the `addComment` endpoint nullable.
  - Removed the deprecated `activitySelectorOptions` from `FeedQuery` and `GetOrCreateFeedRequest`.
- **Testing:** Added tests for the new `queryFollowSuggestions` functionality to validate the handling of `FeedSuggestionData`.
@xsahil03x xsahil03x requested a review from a team as a code owner November 21, 2025 22:33
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.

2 participants