@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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.1.7](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.1.6...@stream-io/feeds-client-0.1.7) (2025-07-22)
6
+
7
+
8
+ * increase timeouts ([55e77db](https://github.com/GetStream/stream-feeds-js/commit/55e77db1be59e6a03fcd1908db584c1c2102bbca))
9
+
10
+
11
+ ### Features
12
+
13
+ * [FEEDS-588]add stopWatchingFeed endpoint ([#72](https://github.com/GetStream/stream-feeds-js/issues/72)) ([f9a7b87](https://github.com/GetStream/stream-feeds-js/commit/f9a7b87c4c9da08582941f489ee18d22e25cf81a))
14
+
5
15
  ## [0.1.6](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.1.5...@stream-io/feeds-client-0.1.6) (2025-07-22)
6
16
 
7
17
 
@@ -2246,6 +2246,18 @@ class FeedsApi {
2246
2246
  decoders.RejectFeedMemberInviteResponse?.(response.body);
2247
2247
  return { ...response.body, metadata: response.metadata };
2248
2248
  }
2249
+ async stopWatchingFeed(request) {
2250
+ const queryParams = {
2251
+ connection_id: request?.connection_id,
2252
+ };
2253
+ const pathParams = {
2254
+ feed_group_id: request?.feed_group_id,
2255
+ feed_id: request?.feed_id,
2256
+ };
2257
+ const response = await this.apiClient.sendRequest('DELETE', '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/watch', pathParams, queryParams);
2258
+ decoders.Response?.(response.body);
2259
+ return { ...response.body, metadata: response.metadata };
2260
+ }
2249
2261
  async getFollowSuggestions(request) {
2250
2262
  const queryParams = {
2251
2263
  limit: request?.limit,
@@ -3795,6 +3807,13 @@ class FeedApi {
3795
3807
  ...request,
3796
3808
  });
3797
3809
  }
3810
+ stopWatching(request) {
3811
+ return this.feedsApi.stopWatchingFeed({
3812
+ feed_id: this.id,
3813
+ feed_group_id: this.group,
3814
+ ...request,
3815
+ });
3816
+ }
3798
3817
  }
3799
3818
 
3800
3819
  const addActivitiesToState = (newActivities, activities, position) => {