@stream-io/node-sdk 0.7.21 → 0.7.22

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
@@ -426,7 +426,7 @@ decoders.BookmarkFolderResponse = (input) => {
426
426
  const typeMappings = {
427
427
  created_at: { type: 'DatetimeType', isSingle: true },
428
428
  updated_at: { type: 'DatetimeType', isSingle: true },
429
- user: { type: 'UserResponseCommonFields', isSingle: true },
429
+ user: { type: 'UserResponse', isSingle: true },
430
430
  };
431
431
  return decode(typeMappings, input);
432
432
  };
@@ -444,7 +444,7 @@ decoders.BookmarkResponse = (input) => {
444
444
  created_at: { type: 'DatetimeType', isSingle: true },
445
445
  updated_at: { type: 'DatetimeType', isSingle: true },
446
446
  activity: { type: 'ActivityResponse', isSingle: true },
447
- user: { type: 'UserResponseCommonFields', isSingle: true },
447
+ user: { type: 'UserResponse', isSingle: true },
448
448
  folder: { type: 'BookmarkFolderResponse', isSingle: true },
449
449
  };
450
450
  return decode(typeMappings, input);
@@ -929,6 +929,24 @@ decoders.Channel = (input) => {
929
929
  };
930
930
  return decode(typeMappings, input);
931
931
  };
932
+ decoders.ChannelBatchUpdatedCompletedEvent = (input) => {
933
+ const typeMappings = {
934
+ batch_created_at: { type: 'DatetimeType', isSingle: true },
935
+ created_at: { type: 'DatetimeType', isSingle: true },
936
+ finished_at: { type: 'DatetimeType', isSingle: true },
937
+ received_at: { type: 'DatetimeType', isSingle: true },
938
+ };
939
+ return decode(typeMappings, input);
940
+ };
941
+ decoders.ChannelBatchUpdatedStartedEvent = (input) => {
942
+ const typeMappings = {
943
+ batch_created_at: { type: 'DatetimeType', isSingle: true },
944
+ created_at: { type: 'DatetimeType', isSingle: true },
945
+ finished_at: { type: 'DatetimeType', isSingle: true },
946
+ received_at: { type: 'DatetimeType', isSingle: true },
947
+ };
948
+ return decode(typeMappings, input);
949
+ };
932
950
  decoders.ChannelConfig = (input) => {
933
951
  const typeMappings = {
934
952
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -4904,6 +4922,9 @@ class VideoApi {
4904
4922
  }
4905
4923
  async queryCallSessionParticipantStats(request) {
4906
4924
  const queryParams = {
4925
+ limit: request?.limit,
4926
+ prev: request?.prev,
4927
+ next: request?.next,
4907
4928
  sort: request?.sort,
4908
4929
  filter_conditions: request?.filter_conditions,
4909
4930
  };
@@ -7037,7 +7058,7 @@ class ApiClient {
7037
7058
  const headers = {
7038
7059
  Authorization: this.apiConfig.token,
7039
7060
  'stream-auth-type': 'jwt',
7040
- 'X-Stream-Client': 'stream-node-' + "0.7.21",
7061
+ 'X-Stream-Client': 'stream-node-' + "0.7.22",
7041
7062
  'Accept-Encoding': 'gzip',
7042
7063
  'x-client-request-id': clientRequestId,
7043
7064
  };
@@ -7485,11 +7506,11 @@ class FeedsApi {
7485
7506
  }
7486
7507
  async addComment(request) {
7487
7508
  const body = {
7488
- object_id: request?.object_id,
7489
- object_type: request?.object_type,
7490
7509
  comment: request?.comment,
7491
7510
  create_notification_activity: request?.create_notification_activity,
7492
7511
  id: request?.id,
7512
+ object_id: request?.object_id,
7513
+ object_type: request?.object_type,
7493
7514
  parent_id: request?.parent_id,
7494
7515
  skip_enrich_url: request?.skip_enrich_url,
7495
7516
  skip_push: request?.skip_push,
@@ -7661,6 +7682,7 @@ class FeedsApi {
7661
7682
  feed_id: request?.feed_id,
7662
7683
  };
7663
7684
  const body = {
7685
+ id_around: request?.id_around,
7664
7686
  limit: request?.limit,
7665
7687
  next: request?.next,
7666
7688
  prev: request?.prev,
@@ -8137,7 +8159,10 @@ class FeedsApi {
8137
8159
  const pathParams = {
8138
8160
  user_id: request?.user_id,
8139
8161
  };
8140
- const response = await this.apiClient.sendRequest('DELETE', '/api/v2/feeds/users/{user_id}/delete', pathParams, undefined);
8162
+ const body = {
8163
+ hard_delete: request?.hard_delete,
8164
+ };
8165
+ const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/users/{user_id}/delete', pathParams, undefined, body, 'application/json');
8141
8166
  decoders.DeleteFeedUserDataResponse?.(response.body);
8142
8167
  return { ...response.body, metadata: response.metadata };
8143
8168
  }