@stream-io/node-sdk 0.7.6 → 0.7.8

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/dist/index.cjs.js CHANGED
@@ -2900,6 +2900,7 @@ decoders.StoriesFeedUpdatedEvent = (input) => {
2900
2900
  const typeMappings = {
2901
2901
  created_at: { type: 'DatetimeType', isSingle: true },
2902
2902
  received_at: { type: 'DatetimeType', isSingle: true },
2903
+ activities: { type: 'ActivityResponse', isSingle: false },
2903
2904
  aggregated_activities: {
2904
2905
  type: 'AggregatedActivityResponse',
2905
2906
  isSingle: false,
@@ -6668,7 +6669,7 @@ class ApiClient {
6668
6669
  const headers = {
6669
6670
  Authorization: this.apiConfig.token,
6670
6671
  'stream-auth-type': 'jwt',
6671
- 'X-Stream-Client': 'stream-node-' + "0.7.6",
6672
+ 'X-Stream-Client': 'stream-node-' + "0.7.8",
6672
6673
  'Accept-Encoding': 'gzip',
6673
6674
  'x-client-request-id': clientRequestId,
6674
6675
  };
@@ -7510,6 +7511,17 @@ class FeedsApi {
7510
7511
  decoders.GetFeedVisibilityResponse?.(response.body);
7511
7512
  return { ...response.body, metadata: response.metadata };
7512
7513
  }
7514
+ async updateFeedVisibility(request) {
7515
+ const pathParams = {
7516
+ name: request?.name,
7517
+ };
7518
+ const body = {
7519
+ grants: request?.grants,
7520
+ };
7521
+ const response = await this.apiClient.sendRequest('PUT', '/api/v2/feeds/feed_visibilities/{name}', pathParams, undefined, body, 'application/json');
7522
+ decoders.UpdateFeedVisibilityResponse?.(response.body);
7523
+ return { ...response.body, metadata: response.metadata };
7524
+ }
7513
7525
  async createFeedsBatch(request) {
7514
7526
  const body = {
7515
7527
  feeds: request?.feeds,