@stream-io/node-sdk 0.7.58 → 0.7.60

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
@@ -586,6 +586,18 @@ decoders.BanResponse = (input) => {
586
586
  };
587
587
  return decode(typeMappings, input);
588
588
  };
589
+ decoders.BatchQueryActivityReactionsResponse = (input) => {
590
+ const typeMappings = {
591
+ reactions: { type: 'FeedsReactionResponse', isSingle: false },
592
+ };
593
+ return decode(typeMappings, input);
594
+ };
595
+ decoders.BatchQueryCommentReactionsResponse = (input) => {
596
+ const typeMappings = {
597
+ reactions: { type: 'FeedsReactionResponse', isSingle: false },
598
+ };
599
+ return decode(typeMappings, input);
600
+ };
589
601
  decoders.BlockListResponse = (input) => {
590
602
  const typeMappings = {
591
603
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -4309,6 +4321,7 @@ class CommonApi {
4309
4321
  async_url_enrich_enabled: request?.async_url_enrich_enabled,
4310
4322
  auto_translation_enabled: request?.auto_translation_enabled,
4311
4323
  before_message_send_hook_url: request?.before_message_send_hook_url,
4324
+ before_message_send_hook_attempt_timeout_ms: request?.before_message_send_hook_attempt_timeout_ms,
4312
4325
  cdn_expiration_seconds: request?.cdn_expiration_seconds,
4313
4326
  channel_hide_members_only: request?.channel_hide_members_only,
4314
4327
  custom_action_handler_url: request?.custom_action_handler_url,
@@ -8158,7 +8171,7 @@ class ApiClient {
8158
8171
  const headers = {
8159
8172
  Authorization: this.apiConfig.token,
8160
8173
  'stream-auth-type': 'jwt',
8161
- 'X-Stream-Client': 'stream-node-' + "0.7.58",
8174
+ 'X-Stream-Client': 'stream-node-' + "0.7.60",
8162
8175
  'Accept-Encoding': 'gzip',
8163
8176
  'x-client-request-id': clientRequestId,
8164
8177
  };
@@ -8341,6 +8354,21 @@ class FeedsApi {
8341
8354
  decoders.QueryActivitiesResponse?.(response.body);
8342
8355
  return { ...response.body, metadata: response.metadata };
8343
8356
  }
8357
+ async batchQueryActivityReactions(request) {
8358
+ const body = {
8359
+ activity_ids: request?.activity_ids,
8360
+ limit: request?.limit,
8361
+ next: request?.next,
8362
+ prev: request?.prev,
8363
+ user_id: request?.user_id,
8364
+ sort: request?.sort,
8365
+ filter: request?.filter,
8366
+ user: request?.user,
8367
+ };
8368
+ const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/activities/reactions/query', undefined, undefined, body, 'application/json');
8369
+ decoders.BatchQueryActivityReactionsResponse?.(response.body);
8370
+ return { ...response.body, metadata: response.metadata };
8371
+ }
8344
8372
  async deleteBookmark(request) {
8345
8373
  const queryParams = {
8346
8374
  folder_id: request?.folder_id,
@@ -8732,6 +8760,21 @@ class FeedsApi {
8732
8760
  decoders.QueryCommentsResponse?.(response.body);
8733
8761
  return { ...response.body, metadata: response.metadata };
8734
8762
  }
8763
+ async batchQueryCommentReactions(request) {
8764
+ const body = {
8765
+ comment_ids: request?.comment_ids,
8766
+ limit: request?.limit,
8767
+ next: request?.next,
8768
+ prev: request?.prev,
8769
+ user_id: request?.user_id,
8770
+ sort: request?.sort,
8771
+ filter: request?.filter,
8772
+ user: request?.user,
8773
+ };
8774
+ const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/comments/reactions/query', undefined, undefined, body, 'application/json');
8775
+ decoders.BatchQueryCommentReactionsResponse?.(response.body);
8776
+ return { ...response.body, metadata: response.metadata };
8777
+ }
8735
8778
  async deleteCommentBookmark(request) {
8736
8779
  const queryParams = {
8737
8780
  folder_id: request?.folder_id,
@@ -9582,6 +9625,17 @@ class FeedsApi {
9582
9625
  decoders.ExportFeedUserDataResponse?.(response.body);
9583
9626
  return { ...response.body, metadata: response.metadata };
9584
9627
  }
9628
+ async getUserInterests(request) {
9629
+ const queryParams = {
9630
+ limit: request?.limit,
9631
+ };
9632
+ const pathParams = {
9633
+ user_id: request?.user_id,
9634
+ };
9635
+ const response = await this.apiClient.sendRequest('GET', '/api/v2/feeds/users/{user_id}/interests', pathParams, queryParams);
9636
+ decoders.GetUserInterestsResponse?.(response.body);
9637
+ return { ...response.body, metadata: response.metadata };
9638
+ }
9585
9639
  }
9586
9640
 
9587
9641
  class FeedApi {