@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.es.mjs CHANGED
@@ -2881,6 +2881,7 @@ decoders.StoriesFeedUpdatedEvent = (input) => {
2881
2881
  const typeMappings = {
2882
2882
  created_at: { type: 'DatetimeType', isSingle: true },
2883
2883
  received_at: { type: 'DatetimeType', isSingle: true },
2884
+ activities: { type: 'ActivityResponse', isSingle: false },
2884
2885
  aggregated_activities: {
2885
2886
  type: 'AggregatedActivityResponse',
2886
2887
  isSingle: false,
@@ -6649,7 +6650,7 @@ class ApiClient {
6649
6650
  const headers = {
6650
6651
  Authorization: this.apiConfig.token,
6651
6652
  'stream-auth-type': 'jwt',
6652
- 'X-Stream-Client': 'stream-node-' + "0.7.6",
6653
+ 'X-Stream-Client': 'stream-node-' + "0.7.8",
6653
6654
  'Accept-Encoding': 'gzip',
6654
6655
  'x-client-request-id': clientRequestId,
6655
6656
  };
@@ -7491,6 +7492,17 @@ class FeedsApi {
7491
7492
  decoders.GetFeedVisibilityResponse?.(response.body);
7492
7493
  return { ...response.body, metadata: response.metadata };
7493
7494
  }
7495
+ async updateFeedVisibility(request) {
7496
+ const pathParams = {
7497
+ name: request?.name,
7498
+ };
7499
+ const body = {
7500
+ grants: request?.grants,
7501
+ };
7502
+ const response = await this.apiClient.sendRequest('PUT', '/api/v2/feeds/feed_visibilities/{name}', pathParams, undefined, body, 'application/json');
7503
+ decoders.UpdateFeedVisibilityResponse?.(response.body);
7504
+ return { ...response.body, metadata: response.metadata };
7505
+ }
7494
7506
  async createFeedsBatch(request) {
7495
7507
  const body = {
7496
7508
  feeds: request?.feeds,