@stream-io/feeds-client 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2244,6 +2244,18 @@ class FeedsApi {
2244
2244
  decoders.RejectFeedMemberInviteResponse?.(response.body);
2245
2245
  return { ...response.body, metadata: response.metadata };
2246
2246
  }
2247
+ async stopWatchingFeed(request) {
2248
+ const queryParams = {
2249
+ connection_id: request?.connection_id,
2250
+ };
2251
+ const pathParams = {
2252
+ feed_group_id: request?.feed_group_id,
2253
+ feed_id: request?.feed_id,
2254
+ };
2255
+ const response = await this.apiClient.sendRequest('DELETE', '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/watch', pathParams, queryParams);
2256
+ decoders.Response?.(response.body);
2257
+ return { ...response.body, metadata: response.metadata };
2258
+ }
2247
2259
  async getFollowSuggestions(request) {
2248
2260
  const queryParams = {
2249
2261
  limit: request?.limit,
@@ -3793,6 +3805,13 @@ class FeedApi {
3793
3805
  ...request,
3794
3806
  });
3795
3807
  }
3808
+ stopWatching(request) {
3809
+ return this.feedsApi.stopWatchingFeed({
3810
+ feed_id: this.id,
3811
+ feed_group_id: this.group,
3812
+ ...request,
3813
+ });
3814
+ }
3796
3815
  }
3797
3816
 
3798
3817
  const addActivitiesToState = (newActivities, activities, position) => {