stream-chat 8.50.0 → 8.51.0

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.js CHANGED
@@ -7436,6 +7436,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
7436
7436
  /**
7437
7437
  * Response Types
7438
7438
  */
7439
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
7439
7440
  // TODO: Figure out a way to strongly type set and unset.
7440
7441
  // Thumb URL(thumb_url) is added considering video attachments as the backend will return the thumbnail in the response.
7441
7442
 
@@ -7610,7 +7611,43 @@ var DEFAULT_PAGE_LIMIT = 50;
7610
7611
  var DEFAULT_SORT = [{
7611
7612
  created_at: -1
7612
7613
  }];
7613
- var MARK_AS_READ_THROTTLE_TIMEOUT = 1000;
7614
+ var MARK_AS_READ_THROTTLE_TIMEOUT = 1000; // TODO: remove this once we move to API v2
7615
+
7616
+ var THREAD_RESPONSE_RESERVED_KEYS = {
7617
+ channel: true,
7618
+ channel_cid: true,
7619
+ created_at: true,
7620
+ created_by_user_id: true,
7621
+ parent_message_id: true,
7622
+ title: true,
7623
+ updated_at: true,
7624
+ latest_replies: true,
7625
+ active_participant_count: true,
7626
+ deleted_at: true,
7627
+ last_message_at: true,
7628
+ participant_count: true,
7629
+ reply_count: true,
7630
+ read: true,
7631
+ thread_participants: true,
7632
+ created_by: true,
7633
+ parent_message: true
7634
+ }; // TODO: remove this once we move to API v2
7635
+
7636
+ var constructCustomDataObject = function constructCustomDataObject(threadData) {
7637
+ var custom = {};
7638
+
7639
+ for (var key in threadData) {
7640
+ if (THREAD_RESPONSE_RESERVED_KEYS[key]) {
7641
+ continue;
7642
+ }
7643
+
7644
+ var customKey = key;
7645
+ custom[customKey] = threadData[customKey];
7646
+ }
7647
+
7648
+ return custom;
7649
+ };
7650
+
7614
7651
  var Thread = /*#__PURE__*/function () {
7615
7652
  function Thread(_ref) {
7616
7653
  var _this = this,
@@ -7618,7 +7655,7 @@ var Thread = /*#__PURE__*/function () {
7618
7655
  _threadData$reply_cou;
7619
7656
 
7620
7657
  var client = _ref.client,
7621
- threadData = _ref.threadData;
7658
+ _threadData = _ref.threadData;
7622
7659
 
7623
7660
  _classCallCheck__default['default'](this, Thread);
7624
7661
 
@@ -7732,6 +7769,8 @@ var Thread = /*#__PURE__*/function () {
7732
7769
  return;
7733
7770
  }
7734
7771
 
7772
+ _this.unsubscribeFunctions.add(_this.subscribeThreadUpdated());
7773
+
7735
7774
  _this.unsubscribeFunctions.add(_this.subscribeMarkActiveThreadRead());
7736
7775
 
7737
7776
  _this.unsubscribeFunctions.add(_this.subscribeReloadActiveStaleThread());
@@ -7747,6 +7786,24 @@ var Thread = /*#__PURE__*/function () {
7747
7786
  _this.unsubscribeFunctions.add(_this.subscribeMessageUpdated());
7748
7787
  });
7749
7788
 
7789
+ _defineProperty__default['default'](this, "subscribeThreadUpdated", function () {
7790
+ return _this.client.on('thread.updated', function (event) {
7791
+ if (!event.thread || event.thread.parent_message_id !== _this.id) {
7792
+ return;
7793
+ }
7794
+
7795
+ var threadData = event.thread;
7796
+
7797
+ _this.state.partialNext({
7798
+ title: threadData.title,
7799
+ updatedAt: new Date(threadData.updated_at),
7800
+ deletedAt: threadData.deleted_at ? new Date(threadData.deleted_at) : null,
7801
+ // TODO: use threadData.custom once we move to API v2
7802
+ custom: constructCustomDataObject(threadData)
7803
+ });
7804
+ }).unsubscribe;
7805
+ });
7806
+
7750
7807
  _defineProperty__default['default'](this, "subscribeMarkActiveThreadRead", function () {
7751
7808
  return _this.state.subscribeWithSelector(function (nextValue) {
7752
7809
  return {
@@ -8174,12 +8231,12 @@ var Thread = /*#__PURE__*/function () {
8174
8231
  };
8175
8232
  }());
8176
8233
 
8177
- var _channel = client.channel(threadData.channel.type, threadData.channel.id, {
8178
- name: threadData.channel.name
8234
+ var _channel = client.channel(_threadData.channel.type, _threadData.channel.id, {
8235
+ name: _threadData.channel.name
8179
8236
  });
8180
8237
 
8181
8238
  _channel._hydrateMembers({
8182
- members: (_threadData$channel$m = threadData.channel.members) !== null && _threadData$channel$m !== void 0 ? _threadData$channel$m : [],
8239
+ members: (_threadData$channel$m = _threadData.channel.members) !== null && _threadData$channel$m !== void 0 ? _threadData$channel$m : [],
8183
8240
  overrideCurrentState: false
8184
8241
  }); // For when read object is undefined and due to that unreadMessageCount for
8185
8242
  // the current user isn't being incremented on message.new
@@ -8193,21 +8250,26 @@ var Thread = /*#__PURE__*/function () {
8193
8250
  last_read: new Date().toISOString()
8194
8251
  }] : [];
8195
8252
  this.state = new StateStore({
8253
+ // local only
8196
8254
  active: false,
8197
- channel: _channel,
8198
- createdAt: new Date(threadData.created_at),
8199
- deletedAt: threadData.deleted_at ? new Date(threadData.deleted_at) : null,
8200
8255
  isLoading: false,
8201
8256
  isStateStale: false,
8202
- pagination: repliesPaginationFromInitialThread(threadData),
8203
- parentMessage: formatMessage(threadData.parent_message),
8204
- participants: threadData.thread_participants,
8205
- read: formatReadState(!threadData.read || threadData.read.length === 0 ? placeholderReadResponse : threadData.read),
8206
- replies: threadData.latest_replies.map(formatMessage),
8207
- replyCount: (_threadData$reply_cou = threadData.reply_count) !== null && _threadData$reply_cou !== void 0 ? _threadData$reply_cou : 0,
8208
- updatedAt: threadData.updated_at ? new Date(threadData.updated_at) : null
8257
+ // 99.9% should never change
8258
+ channel: _channel,
8259
+ createdAt: new Date(_threadData.created_at),
8260
+ // rest
8261
+ deletedAt: _threadData.deleted_at ? new Date(_threadData.deleted_at) : null,
8262
+ pagination: repliesPaginationFromInitialThread(_threadData),
8263
+ parentMessage: formatMessage(_threadData.parent_message),
8264
+ participants: _threadData.thread_participants,
8265
+ read: formatReadState(!_threadData.read || _threadData.read.length === 0 ? placeholderReadResponse : _threadData.read),
8266
+ replies: _threadData.latest_replies.map(formatMessage),
8267
+ replyCount: (_threadData$reply_cou = _threadData.reply_count) !== null && _threadData$reply_cou !== void 0 ? _threadData$reply_cou : 0,
8268
+ updatedAt: _threadData.updated_at ? new Date(_threadData.updated_at) : null,
8269
+ title: _threadData.title,
8270
+ custom: constructCustomDataObject(_threadData)
8209
8271
  });
8210
- this.id = threadData.parent_message_id;
8272
+ this.id = _threadData.parent_message_id;
8211
8273
  this.client = client;
8212
8274
  }
8213
8275
 
@@ -14681,36 +14743,40 @@ var StreamChat = /*#__PURE__*/function () {
14681
14743
  }, {
14682
14744
  key: "queryThreads",
14683
14745
  value: function () {
14684
- var _queryThreads = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee64(options) {
14746
+ var _queryThreads = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee64() {
14685
14747
  var _this5 = this;
14686
14748
 
14687
- var opts, res;
14749
+ var options,
14750
+ optionsWithDefaults,
14751
+ response,
14752
+ _args64 = arguments;
14688
14753
  return _regeneratorRuntime__default['default'].wrap(function _callee64$(_context64) {
14689
14754
  while (1) {
14690
14755
  switch (_context64.prev = _context64.next) {
14691
14756
  case 0:
14692
- opts = _objectSpread({
14757
+ options = _args64.length > 0 && _args64[0] !== undefined ? _args64[0] : {};
14758
+ optionsWithDefaults = _objectSpread({
14693
14759
  limit: 10,
14694
14760
  participant_limit: 10,
14695
14761
  reply_limit: 3,
14696
14762
  watch: true
14697
14763
  }, options);
14698
- _context64.next = 3;
14699
- return this.post(this.baseURL + "/threads", opts);
14764
+ _context64.next = 4;
14765
+ return this.post("".concat(this.baseURL, "/threads"), optionsWithDefaults);
14700
14766
 
14701
- case 3:
14702
- res = _context64.sent;
14767
+ case 4:
14768
+ response = _context64.sent;
14703
14769
  return _context64.abrupt("return", {
14704
- threads: res.threads.map(function (thread) {
14770
+ threads: response.threads.map(function (thread) {
14705
14771
  return new Thread({
14706
14772
  client: _this5,
14707
14773
  threadData: thread
14708
14774
  });
14709
14775
  }),
14710
- next: res.next
14776
+ next: response.next
14711
14777
  });
14712
14778
 
14713
- case 5:
14779
+ case 6:
14714
14780
  case "end":
14715
14781
  return _context64.stop();
14716
14782
  }
@@ -14718,7 +14784,7 @@ var StreamChat = /*#__PURE__*/function () {
14718
14784
  }, _callee64, this);
14719
14785
  }));
14720
14786
 
14721
- function queryThreads(_x88) {
14787
+ function queryThreads() {
14722
14788
  return _queryThreads.apply(this, arguments);
14723
14789
  }
14724
14790
 
@@ -14741,8 +14807,8 @@ var StreamChat = /*#__PURE__*/function () {
14741
14807
  value: function () {
14742
14808
  var _getThread = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee65(messageId) {
14743
14809
  var options,
14744
- opts,
14745
- res,
14810
+ optionsWithDefaults,
14811
+ response,
14746
14812
  _args65 = arguments;
14747
14813
  return _regeneratorRuntime__default['default'].wrap(function _callee65$(_context65) {
14748
14814
  while (1) {
@@ -14755,22 +14821,22 @@ var StreamChat = /*#__PURE__*/function () {
14755
14821
  break;
14756
14822
  }
14757
14823
 
14758
- throw Error('Please specify the message id when calling partialUpdateThread');
14824
+ throw Error('Please specify the messageId when calling getThread');
14759
14825
 
14760
14826
  case 3:
14761
- opts = _objectSpread({
14827
+ optionsWithDefaults = _objectSpread({
14762
14828
  participant_limit: 100,
14763
14829
  reply_limit: 3,
14764
14830
  watch: true
14765
14831
  }, options);
14766
14832
  _context65.next = 6;
14767
- return this.get(this.baseURL + "/threads/".concat(encodeURIComponent(messageId)), opts);
14833
+ return this.get("".concat(this.baseURL, "/threads/").concat(encodeURIComponent(messageId)), optionsWithDefaults);
14768
14834
 
14769
14835
  case 6:
14770
- res = _context65.sent;
14836
+ response = _context65.sent;
14771
14837
  return _context65.abrupt("return", new Thread({
14772
14838
  client: this,
14773
- threadData: res.thread
14839
+ threadData: response.thread
14774
14840
  }));
14775
14841
 
14776
14842
  case 8:
@@ -14781,7 +14847,7 @@ var StreamChat = /*#__PURE__*/function () {
14781
14847
  }, _callee65, this);
14782
14848
  }));
14783
14849
 
14784
- function getThread(_x89) {
14850
+ function getThread(_x88) {
14785
14851
  return _getThread.apply(this, arguments);
14786
14852
  }
14787
14853
 
@@ -14816,7 +14882,7 @@ var StreamChat = /*#__PURE__*/function () {
14816
14882
  case 2:
14817
14883
  // check for reserved fields from ThreadResponse type within partialThreadObject's set and unset.
14818
14884
  // Throw error if any of the reserved field is found.
14819
- reservedThreadFields = ['created_at', 'id', 'last_message_at', 'type', 'updated_at', 'user', 'reply_count', 'participants', 'channel'];
14885
+ reservedThreadFields = ['created_at', 'id', 'last_message_at', 'type', 'updated_at', 'user', 'reply_count', 'participants', 'channel', 'custom'];
14820
14886
  _context66.t0 = _regeneratorRuntime__default['default'].keys(_objectSpread(_objectSpread({}, partialThreadObject.set), partialThreadObject.unset));
14821
14887
 
14822
14888
  case 4:
@@ -14840,7 +14906,7 @@ var StreamChat = /*#__PURE__*/function () {
14840
14906
 
14841
14907
  case 10:
14842
14908
  _context66.next = 12;
14843
- return this.patch(this.baseURL + "/threads/".concat(encodeURIComponent(messageId)), partialThreadObject);
14909
+ return this.patch("".concat(this.baseURL, "/threads/").concat(encodeURIComponent(messageId)), partialThreadObject);
14844
14910
 
14845
14911
  case 12:
14846
14912
  return _context66.abrupt("return", _context66.sent);
@@ -14853,7 +14919,7 @@ var StreamChat = /*#__PURE__*/function () {
14853
14919
  }, _callee66, this);
14854
14920
  }));
14855
14921
 
14856
- function partialUpdateThread(_x90, _x91) {
14922
+ function partialUpdateThread(_x89, _x90) {
14857
14923
  return _partialUpdateThread.apply(this, arguments);
14858
14924
  }
14859
14925
 
@@ -14862,7 +14928,7 @@ var StreamChat = /*#__PURE__*/function () {
14862
14928
  }, {
14863
14929
  key: "getUserAgent",
14864
14930
  value: function getUserAgent() {
14865
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.50.0");
14931
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.51.0");
14866
14932
  }
14867
14933
  }, {
14868
14934
  key: "setUserAgent",
@@ -15102,7 +15168,7 @@ var StreamChat = /*#__PURE__*/function () {
15102
15168
  }, _callee67, this);
15103
15169
  }));
15104
15170
 
15105
- function sendUserCustomEvent(_x92, _x93) {
15171
+ function sendUserCustomEvent(_x91, _x92) {
15106
15172
  return _sendUserCustomEvent.apply(this, arguments);
15107
15173
  }
15108
15174
 
@@ -15220,7 +15286,7 @@ var StreamChat = /*#__PURE__*/function () {
15220
15286
  }, _callee68, this);
15221
15287
  }));
15222
15288
 
15223
- function createSegment(_x94, _x95, _x96) {
15289
+ function createSegment(_x93, _x94, _x95) {
15224
15290
  return _createSegment.apply(this, arguments);
15225
15291
  }
15226
15292
 
@@ -15255,7 +15321,7 @@ var StreamChat = /*#__PURE__*/function () {
15255
15321
  }, _callee69, this);
15256
15322
  }));
15257
15323
 
15258
- function createUserSegment(_x97, _x98) {
15324
+ function createUserSegment(_x96, _x97) {
15259
15325
  return _createUserSegment.apply(this, arguments);
15260
15326
  }
15261
15327
 
@@ -15290,7 +15356,7 @@ var StreamChat = /*#__PURE__*/function () {
15290
15356
  }, _callee70, this);
15291
15357
  }));
15292
15358
 
15293
- function createChannelSegment(_x99, _x100) {
15359
+ function createChannelSegment(_x98, _x99) {
15294
15360
  return _createChannelSegment.apply(this, arguments);
15295
15361
  }
15296
15362
 
@@ -15315,7 +15381,7 @@ var StreamChat = /*#__PURE__*/function () {
15315
15381
  }, _callee71, this);
15316
15382
  }));
15317
15383
 
15318
- function getSegment(_x101) {
15384
+ function getSegment(_x100) {
15319
15385
  return _getSegment.apply(this, arguments);
15320
15386
  }
15321
15387
 
@@ -15349,7 +15415,7 @@ var StreamChat = /*#__PURE__*/function () {
15349
15415
  }, _callee72, this);
15350
15416
  }));
15351
15417
 
15352
- function updateSegment(_x102, _x103) {
15418
+ function updateSegment(_x101, _x102) {
15353
15419
  return _updateSegment.apply(this, arguments);
15354
15420
  }
15355
15421
 
@@ -15387,7 +15453,7 @@ var StreamChat = /*#__PURE__*/function () {
15387
15453
  }, _callee73, this);
15388
15454
  }));
15389
15455
 
15390
- function addSegmentTargets(_x104, _x105) {
15456
+ function addSegmentTargets(_x103, _x104) {
15391
15457
  return _addSegmentTargets.apply(this, arguments);
15392
15458
  }
15393
15459
 
@@ -15422,7 +15488,7 @@ var StreamChat = /*#__PURE__*/function () {
15422
15488
  }, _callee74, this);
15423
15489
  }));
15424
15490
 
15425
- function querySegmentTargets(_x106) {
15491
+ function querySegmentTargets(_x105) {
15426
15492
  return _querySegmentTargets.apply(this, arguments);
15427
15493
  }
15428
15494
 
@@ -15460,7 +15526,7 @@ var StreamChat = /*#__PURE__*/function () {
15460
15526
  }, _callee75, this);
15461
15527
  }));
15462
15528
 
15463
- function removeSegmentTargets(_x107, _x108) {
15529
+ function removeSegmentTargets(_x106, _x107) {
15464
15530
  return _removeSegmentTargets.apply(this, arguments);
15465
15531
  }
15466
15532
 
@@ -15500,7 +15566,7 @@ var StreamChat = /*#__PURE__*/function () {
15500
15566
  }, _callee76, this);
15501
15567
  }));
15502
15568
 
15503
- function querySegments(_x109, _x110) {
15569
+ function querySegments(_x108, _x109) {
15504
15570
  return _querySegments.apply(this, arguments);
15505
15571
  }
15506
15572
 
@@ -15533,7 +15599,7 @@ var StreamChat = /*#__PURE__*/function () {
15533
15599
  }, _callee77, this);
15534
15600
  }));
15535
15601
 
15536
- function deleteSegment(_x111) {
15602
+ function deleteSegment(_x110) {
15537
15603
  return _deleteSegment.apply(this, arguments);
15538
15604
  }
15539
15605
 
@@ -15567,7 +15633,7 @@ var StreamChat = /*#__PURE__*/function () {
15567
15633
  }, _callee78, this);
15568
15634
  }));
15569
15635
 
15570
- function segmentTargetExists(_x112, _x113) {
15636
+ function segmentTargetExists(_x111, _x112) {
15571
15637
  return _segmentTargetExists.apply(this, arguments);
15572
15638
  }
15573
15639
 
@@ -15600,7 +15666,7 @@ var StreamChat = /*#__PURE__*/function () {
15600
15666
  }, _callee79, this);
15601
15667
  }));
15602
15668
 
15603
- function createCampaign(_x114) {
15669
+ function createCampaign(_x113) {
15604
15670
  return _createCampaign.apply(this, arguments);
15605
15671
  }
15606
15672
 
@@ -15625,7 +15691,7 @@ var StreamChat = /*#__PURE__*/function () {
15625
15691
  }, _callee80, this);
15626
15692
  }));
15627
15693
 
15628
- function getCampaign(_x115) {
15694
+ function getCampaign(_x114) {
15629
15695
  return _getCampaign.apply(this, arguments);
15630
15696
  }
15631
15697
 
@@ -15653,7 +15719,7 @@ var StreamChat = /*#__PURE__*/function () {
15653
15719
  }, _callee81, this);
15654
15720
  }));
15655
15721
 
15656
- function startCampaign(_x116, _x117) {
15722
+ function startCampaign(_x115, _x116) {
15657
15723
  return _startCampaign.apply(this, arguments);
15658
15724
  }
15659
15725
 
@@ -15692,7 +15758,7 @@ var StreamChat = /*#__PURE__*/function () {
15692
15758
  }, _callee82, this);
15693
15759
  }));
15694
15760
 
15695
- function queryCampaigns(_x118, _x119, _x120) {
15761
+ function queryCampaigns(_x117, _x118, _x119) {
15696
15762
  return _queryCampaigns.apply(this, arguments);
15697
15763
  }
15698
15764
 
@@ -15726,7 +15792,7 @@ var StreamChat = /*#__PURE__*/function () {
15726
15792
  }, _callee83, this);
15727
15793
  }));
15728
15794
 
15729
- function updateCampaign(_x121, _x122) {
15795
+ function updateCampaign(_x120, _x121) {
15730
15796
  return _updateCampaign.apply(this, arguments);
15731
15797
  }
15732
15798
 
@@ -15759,7 +15825,7 @@ var StreamChat = /*#__PURE__*/function () {
15759
15825
  }, _callee84, this);
15760
15826
  }));
15761
15827
 
15762
- function deleteCampaign(_x123) {
15828
+ function deleteCampaign(_x122) {
15763
15829
  return _deleteCampaign.apply(this, arguments);
15764
15830
  }
15765
15831
 
@@ -15792,7 +15858,7 @@ var StreamChat = /*#__PURE__*/function () {
15792
15858
  }, _callee85, this);
15793
15859
  }));
15794
15860
 
15795
- function stopCampaign(_x124) {
15861
+ function stopCampaign(_x123) {
15796
15862
  return _stopCampaign.apply(this, arguments);
15797
15863
  }
15798
15864
 
@@ -15825,7 +15891,7 @@ var StreamChat = /*#__PURE__*/function () {
15825
15891
  }, _callee86, this);
15826
15892
  }));
15827
15893
 
15828
- function enrichURL(_x125) {
15894
+ function enrichURL(_x124) {
15829
15895
  return _enrichURL.apply(this, arguments);
15830
15896
  }
15831
15897
 
@@ -15857,7 +15923,7 @@ var StreamChat = /*#__PURE__*/function () {
15857
15923
  }, _callee87, this);
15858
15924
  }));
15859
15925
 
15860
- function getTask(_x126) {
15926
+ function getTask(_x125) {
15861
15927
  return _getTask.apply(this, arguments);
15862
15928
  }
15863
15929
 
@@ -15899,7 +15965,7 @@ var StreamChat = /*#__PURE__*/function () {
15899
15965
  }, _callee88, this);
15900
15966
  }));
15901
15967
 
15902
- function deleteChannels(_x127) {
15968
+ function deleteChannels(_x126) {
15903
15969
  return _deleteChannels.apply(this, arguments);
15904
15970
  }
15905
15971
 
@@ -15966,7 +16032,7 @@ var StreamChat = /*#__PURE__*/function () {
15966
16032
  }, _callee89, this);
15967
16033
  }));
15968
16034
 
15969
- function deleteUsers(_x128) {
16035
+ function deleteUsers(_x127) {
15970
16036
  return _deleteUsers.apply(this, arguments);
15971
16037
  }
15972
16038
 
@@ -16008,7 +16074,7 @@ var StreamChat = /*#__PURE__*/function () {
16008
16074
  }, _callee90, this);
16009
16075
  }));
16010
16076
 
16011
- function _createImportURL(_x129) {
16077
+ function _createImportURL(_x128) {
16012
16078
  return _createImportURL2.apply(this, arguments);
16013
16079
  }
16014
16080
 
@@ -16056,7 +16122,7 @@ var StreamChat = /*#__PURE__*/function () {
16056
16122
  }, _callee91, this);
16057
16123
  }));
16058
16124
 
16059
- function _createImport(_x130) {
16125
+ function _createImport(_x129) {
16060
16126
  return _createImport2.apply(this, arguments);
16061
16127
  }
16062
16128
 
@@ -16097,7 +16163,7 @@ var StreamChat = /*#__PURE__*/function () {
16097
16163
  }, _callee92, this);
16098
16164
  }));
16099
16165
 
16100
- function _getImport(_x131) {
16166
+ function _getImport(_x130) {
16101
16167
  return _getImport2.apply(this, arguments);
16102
16168
  }
16103
16169
 
@@ -16138,7 +16204,7 @@ var StreamChat = /*#__PURE__*/function () {
16138
16204
  }, _callee93, this);
16139
16205
  }));
16140
16206
 
16141
- function _listImports(_x132) {
16207
+ function _listImports(_x131) {
16142
16208
  return _listImports2.apply(this, arguments);
16143
16209
  }
16144
16210
 
@@ -16178,7 +16244,7 @@ var StreamChat = /*#__PURE__*/function () {
16178
16244
  }, _callee94, this);
16179
16245
  }));
16180
16246
 
16181
- function upsertPushProvider(_x133) {
16247
+ function upsertPushProvider(_x132) {
16182
16248
  return _upsertPushProvider.apply(this, arguments);
16183
16249
  }
16184
16250
 
@@ -16218,7 +16284,7 @@ var StreamChat = /*#__PURE__*/function () {
16218
16284
  }, _callee95, this);
16219
16285
  }));
16220
16286
 
16221
- function deletePushProvider(_x134) {
16287
+ function deletePushProvider(_x133) {
16222
16288
  return _deletePushProvider.apply(this, arguments);
16223
16289
  }
16224
16290
 
@@ -16298,7 +16364,7 @@ var StreamChat = /*#__PURE__*/function () {
16298
16364
  }, _callee97, this);
16299
16365
  }));
16300
16366
 
16301
- function commitMessage(_x135) {
16367
+ function commitMessage(_x134) {
16302
16368
  return _commitMessage.apply(this, arguments);
16303
16369
  }
16304
16370
 
@@ -16335,7 +16401,7 @@ var StreamChat = /*#__PURE__*/function () {
16335
16401
  }, _callee98, this);
16336
16402
  }));
16337
16403
 
16338
- function createPoll(_x136, _x137) {
16404
+ function createPoll(_x135, _x136) {
16339
16405
  return _createPoll.apply(this, arguments);
16340
16406
  }
16341
16407
 
@@ -16372,7 +16438,7 @@ var StreamChat = /*#__PURE__*/function () {
16372
16438
  }, _callee99, this);
16373
16439
  }));
16374
16440
 
16375
- function getPoll(_x138, _x139) {
16441
+ function getPoll(_x137, _x138) {
16376
16442
  return _getPoll.apply(this, arguments);
16377
16443
  }
16378
16444
 
@@ -16409,7 +16475,7 @@ var StreamChat = /*#__PURE__*/function () {
16409
16475
  }, _callee100, this);
16410
16476
  }));
16411
16477
 
16412
- function updatePoll(_x140, _x141) {
16478
+ function updatePoll(_x139, _x140) {
16413
16479
  return _updatePoll.apply(this, arguments);
16414
16480
  }
16415
16481
 
@@ -16448,7 +16514,7 @@ var StreamChat = /*#__PURE__*/function () {
16448
16514
  }, _callee101, this);
16449
16515
  }));
16450
16516
 
16451
- function partialUpdatePoll(_x142, _x143, _x144) {
16517
+ function partialUpdatePoll(_x141, _x142, _x143) {
16452
16518
  return _partialUpdatePoll.apply(this, arguments);
16453
16519
  }
16454
16520
 
@@ -16485,7 +16551,7 @@ var StreamChat = /*#__PURE__*/function () {
16485
16551
  }, _callee102, this);
16486
16552
  }));
16487
16553
 
16488
- function deletePoll(_x145, _x146) {
16554
+ function deletePoll(_x144, _x145) {
16489
16555
  return _deletePoll.apply(this, arguments);
16490
16556
  }
16491
16557
 
@@ -16520,7 +16586,7 @@ var StreamChat = /*#__PURE__*/function () {
16520
16586
  }, _callee103, this);
16521
16587
  }));
16522
16588
 
16523
- function closePoll(_x147, _x148) {
16589
+ function closePoll(_x146, _x147) {
16524
16590
  return _closePoll.apply(this, arguments);
16525
16591
  }
16526
16592
 
@@ -16558,7 +16624,7 @@ var StreamChat = /*#__PURE__*/function () {
16558
16624
  }, _callee104, this);
16559
16625
  }));
16560
16626
 
16561
- function createPollOption(_x149, _x150, _x151) {
16627
+ function createPollOption(_x148, _x149, _x150) {
16562
16628
  return _createPollOption.apply(this, arguments);
16563
16629
  }
16564
16630
 
@@ -16596,7 +16662,7 @@ var StreamChat = /*#__PURE__*/function () {
16596
16662
  }, _callee105, this);
16597
16663
  }));
16598
16664
 
16599
- function getPollOption(_x152, _x153, _x154) {
16665
+ function getPollOption(_x151, _x152, _x153) {
16600
16666
  return _getPollOption.apply(this, arguments);
16601
16667
  }
16602
16668
 
@@ -16634,7 +16700,7 @@ var StreamChat = /*#__PURE__*/function () {
16634
16700
  }, _callee106, this);
16635
16701
  }));
16636
16702
 
16637
- function updatePollOption(_x155, _x156, _x157) {
16703
+ function updatePollOption(_x154, _x155, _x156) {
16638
16704
  return _updatePollOption.apply(this, arguments);
16639
16705
  }
16640
16706
 
@@ -16672,7 +16738,7 @@ var StreamChat = /*#__PURE__*/function () {
16672
16738
  }, _callee107, this);
16673
16739
  }));
16674
16740
 
16675
- function deletePollOption(_x158, _x159, _x160) {
16741
+ function deletePollOption(_x157, _x158, _x159) {
16676
16742
  return _deletePollOption.apply(this, arguments);
16677
16743
  }
16678
16744
 
@@ -16713,7 +16779,7 @@ var StreamChat = /*#__PURE__*/function () {
16713
16779
  }, _callee108, this);
16714
16780
  }));
16715
16781
 
16716
- function castPollVote(_x161, _x162, _x163, _x164) {
16782
+ function castPollVote(_x160, _x161, _x162, _x163) {
16717
16783
  return _castPollVote.apply(this, arguments);
16718
16784
  }
16719
16785
 
@@ -16747,7 +16813,7 @@ var StreamChat = /*#__PURE__*/function () {
16747
16813
  }, _callee109, this);
16748
16814
  }));
16749
16815
 
16750
- function addPollAnswer(_x165, _x166, _x167, _x168) {
16816
+ function addPollAnswer(_x164, _x165, _x166, _x167) {
16751
16817
  return _addPollAnswer.apply(this, arguments);
16752
16818
  }
16753
16819
 
@@ -16777,7 +16843,7 @@ var StreamChat = /*#__PURE__*/function () {
16777
16843
  }, _callee110, this);
16778
16844
  }));
16779
16845
 
16780
- function removePollVote(_x169, _x170, _x171, _x172) {
16846
+ function removePollVote(_x168, _x169, _x170, _x171) {
16781
16847
  return _removePollVote.apply(this, arguments);
16782
16848
  }
16783
16849
 
@@ -16880,7 +16946,7 @@ var StreamChat = /*#__PURE__*/function () {
16880
16946
  }, _callee112, this);
16881
16947
  }));
16882
16948
 
16883
- function queryPollVotes(_x173) {
16949
+ function queryPollVotes(_x172) {
16884
16950
  return _queryPollVotes.apply(this, arguments);
16885
16951
  }
16886
16952
 
@@ -16934,7 +17000,7 @@ var StreamChat = /*#__PURE__*/function () {
16934
17000
  }, _callee113, this);
16935
17001
  }));
16936
17002
 
16937
- function queryPollAnswers(_x174) {
17003
+ function queryPollAnswers(_x173) {
16938
17004
  return _queryPollAnswers.apply(this, arguments);
16939
17005
  }
16940
17006
 
@@ -17023,7 +17089,7 @@ var StreamChat = /*#__PURE__*/function () {
17023
17089
  }, _callee115, this);
17024
17090
  }));
17025
17091
 
17026
- function updateFlags(_x175, _x176) {
17092
+ function updateFlags(_x174, _x175) {
17027
17093
  return _updateFlags.apply(this, arguments);
17028
17094
  }
17029
17095
 
@@ -17089,6 +17155,7 @@ var EVENT_MAP = {
17089
17155
  'reaction.deleted': true,
17090
17156
  'reaction.new': true,
17091
17157
  'reaction.updated': true,
17158
+ 'thread.updated': true,
17092
17159
  'typing.start': true,
17093
17160
  'typing.stop': true,
17094
17161
  'user.banned': true,