@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.
@@ -1971,6 +1971,18 @@ class FeedsApi {
1971
1971
  decoders.RejectFeedMemberInviteResponse?.(response.body);
1972
1972
  return { ...response.body, metadata: response.metadata };
1973
1973
  }
1974
+ async stopWatchingFeed(request) {
1975
+ const queryParams = {
1976
+ connection_id: request?.connection_id,
1977
+ };
1978
+ const pathParams = {
1979
+ feed_group_id: request?.feed_group_id,
1980
+ feed_id: request?.feed_id,
1981
+ };
1982
+ const response = await this.apiClient.sendRequest('DELETE', '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/watch', pathParams, queryParams);
1983
+ decoders.Response?.(response.body);
1984
+ return { ...response.body, metadata: response.metadata };
1985
+ }
1974
1986
  async getFollowSuggestions(request) {
1975
1987
  const queryParams = {
1976
1988
  limit: request?.limit,
@@ -3801,6 +3813,13 @@ class FeedApi {
3801
3813
  ...request,
3802
3814
  });
3803
3815
  }
3816
+ stopWatching(request) {
3817
+ return this.feedsApi.stopWatchingFeed({
3818
+ feed_id: this.id,
3819
+ feed_group_id: this.group,
3820
+ ...request,
3821
+ });
3822
+ }
3804
3823
  }
3805
3824
 
3806
3825
  const addActivitiesToState = (newActivities, activities, position) => {