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.es.js CHANGED
@@ -7408,6 +7408,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
7408
7408
  /**
7409
7409
  * Response Types
7410
7410
  */
7411
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
7411
7412
  // TODO: Figure out a way to strongly type set and unset.
7412
7413
  // Thumb URL(thumb_url) is added considering video attachments as the backend will return the thumbnail in the response.
7413
7414
 
@@ -7582,7 +7583,43 @@ var DEFAULT_PAGE_LIMIT = 50;
7582
7583
  var DEFAULT_SORT = [{
7583
7584
  created_at: -1
7584
7585
  }];
7585
- var MARK_AS_READ_THROTTLE_TIMEOUT = 1000;
7586
+ var MARK_AS_READ_THROTTLE_TIMEOUT = 1000; // TODO: remove this once we move to API v2
7587
+
7588
+ var THREAD_RESPONSE_RESERVED_KEYS = {
7589
+ channel: true,
7590
+ channel_cid: true,
7591
+ created_at: true,
7592
+ created_by_user_id: true,
7593
+ parent_message_id: true,
7594
+ title: true,
7595
+ updated_at: true,
7596
+ latest_replies: true,
7597
+ active_participant_count: true,
7598
+ deleted_at: true,
7599
+ last_message_at: true,
7600
+ participant_count: true,
7601
+ reply_count: true,
7602
+ read: true,
7603
+ thread_participants: true,
7604
+ created_by: true,
7605
+ parent_message: true
7606
+ }; // TODO: remove this once we move to API v2
7607
+
7608
+ var constructCustomDataObject = function constructCustomDataObject(threadData) {
7609
+ var custom = {};
7610
+
7611
+ for (var key in threadData) {
7612
+ if (THREAD_RESPONSE_RESERVED_KEYS[key]) {
7613
+ continue;
7614
+ }
7615
+
7616
+ var customKey = key;
7617
+ custom[customKey] = threadData[customKey];
7618
+ }
7619
+
7620
+ return custom;
7621
+ };
7622
+
7586
7623
  var Thread = /*#__PURE__*/function () {
7587
7624
  function Thread(_ref) {
7588
7625
  var _this = this,
@@ -7590,7 +7627,7 @@ var Thread = /*#__PURE__*/function () {
7590
7627
  _threadData$reply_cou;
7591
7628
 
7592
7629
  var client = _ref.client,
7593
- threadData = _ref.threadData;
7630
+ _threadData = _ref.threadData;
7594
7631
 
7595
7632
  _classCallCheck(this, Thread);
7596
7633
 
@@ -7704,6 +7741,8 @@ var Thread = /*#__PURE__*/function () {
7704
7741
  return;
7705
7742
  }
7706
7743
 
7744
+ _this.unsubscribeFunctions.add(_this.subscribeThreadUpdated());
7745
+
7707
7746
  _this.unsubscribeFunctions.add(_this.subscribeMarkActiveThreadRead());
7708
7747
 
7709
7748
  _this.unsubscribeFunctions.add(_this.subscribeReloadActiveStaleThread());
@@ -7719,6 +7758,24 @@ var Thread = /*#__PURE__*/function () {
7719
7758
  _this.unsubscribeFunctions.add(_this.subscribeMessageUpdated());
7720
7759
  });
7721
7760
 
7761
+ _defineProperty(this, "subscribeThreadUpdated", function () {
7762
+ return _this.client.on('thread.updated', function (event) {
7763
+ if (!event.thread || event.thread.parent_message_id !== _this.id) {
7764
+ return;
7765
+ }
7766
+
7767
+ var threadData = event.thread;
7768
+
7769
+ _this.state.partialNext({
7770
+ title: threadData.title,
7771
+ updatedAt: new Date(threadData.updated_at),
7772
+ deletedAt: threadData.deleted_at ? new Date(threadData.deleted_at) : null,
7773
+ // TODO: use threadData.custom once we move to API v2
7774
+ custom: constructCustomDataObject(threadData)
7775
+ });
7776
+ }).unsubscribe;
7777
+ });
7778
+
7722
7779
  _defineProperty(this, "subscribeMarkActiveThreadRead", function () {
7723
7780
  return _this.state.subscribeWithSelector(function (nextValue) {
7724
7781
  return {
@@ -8146,12 +8203,12 @@ var Thread = /*#__PURE__*/function () {
8146
8203
  };
8147
8204
  }());
8148
8205
 
8149
- var _channel = client.channel(threadData.channel.type, threadData.channel.id, {
8150
- name: threadData.channel.name
8206
+ var _channel = client.channel(_threadData.channel.type, _threadData.channel.id, {
8207
+ name: _threadData.channel.name
8151
8208
  });
8152
8209
 
8153
8210
  _channel._hydrateMembers({
8154
- members: (_threadData$channel$m = threadData.channel.members) !== null && _threadData$channel$m !== void 0 ? _threadData$channel$m : [],
8211
+ members: (_threadData$channel$m = _threadData.channel.members) !== null && _threadData$channel$m !== void 0 ? _threadData$channel$m : [],
8155
8212
  overrideCurrentState: false
8156
8213
  }); // For when read object is undefined and due to that unreadMessageCount for
8157
8214
  // the current user isn't being incremented on message.new
@@ -8165,21 +8222,26 @@ var Thread = /*#__PURE__*/function () {
8165
8222
  last_read: new Date().toISOString()
8166
8223
  }] : [];
8167
8224
  this.state = new StateStore({
8225
+ // local only
8168
8226
  active: false,
8169
- channel: _channel,
8170
- createdAt: new Date(threadData.created_at),
8171
- deletedAt: threadData.deleted_at ? new Date(threadData.deleted_at) : null,
8172
8227
  isLoading: false,
8173
8228
  isStateStale: false,
8174
- pagination: repliesPaginationFromInitialThread(threadData),
8175
- parentMessage: formatMessage(threadData.parent_message),
8176
- participants: threadData.thread_participants,
8177
- read: formatReadState(!threadData.read || threadData.read.length === 0 ? placeholderReadResponse : threadData.read),
8178
- replies: threadData.latest_replies.map(formatMessage),
8179
- replyCount: (_threadData$reply_cou = threadData.reply_count) !== null && _threadData$reply_cou !== void 0 ? _threadData$reply_cou : 0,
8180
- updatedAt: threadData.updated_at ? new Date(threadData.updated_at) : null
8229
+ // 99.9% should never change
8230
+ channel: _channel,
8231
+ createdAt: new Date(_threadData.created_at),
8232
+ // rest
8233
+ deletedAt: _threadData.deleted_at ? new Date(_threadData.deleted_at) : null,
8234
+ pagination: repliesPaginationFromInitialThread(_threadData),
8235
+ parentMessage: formatMessage(_threadData.parent_message),
8236
+ participants: _threadData.thread_participants,
8237
+ read: formatReadState(!_threadData.read || _threadData.read.length === 0 ? placeholderReadResponse : _threadData.read),
8238
+ replies: _threadData.latest_replies.map(formatMessage),
8239
+ replyCount: (_threadData$reply_cou = _threadData.reply_count) !== null && _threadData$reply_cou !== void 0 ? _threadData$reply_cou : 0,
8240
+ updatedAt: _threadData.updated_at ? new Date(_threadData.updated_at) : null,
8241
+ title: _threadData.title,
8242
+ custom: constructCustomDataObject(_threadData)
8181
8243
  });
8182
- this.id = threadData.parent_message_id;
8244
+ this.id = _threadData.parent_message_id;
8183
8245
  this.client = client;
8184
8246
  }
8185
8247
 
@@ -14653,36 +14715,40 @@ var StreamChat = /*#__PURE__*/function () {
14653
14715
  }, {
14654
14716
  key: "queryThreads",
14655
14717
  value: function () {
14656
- var _queryThreads = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(options) {
14718
+ var _queryThreads = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64() {
14657
14719
  var _this5 = this;
14658
14720
 
14659
- var opts, res;
14721
+ var options,
14722
+ optionsWithDefaults,
14723
+ response,
14724
+ _args64 = arguments;
14660
14725
  return _regeneratorRuntime.wrap(function _callee64$(_context64) {
14661
14726
  while (1) {
14662
14727
  switch (_context64.prev = _context64.next) {
14663
14728
  case 0:
14664
- opts = _objectSpread({
14729
+ options = _args64.length > 0 && _args64[0] !== undefined ? _args64[0] : {};
14730
+ optionsWithDefaults = _objectSpread({
14665
14731
  limit: 10,
14666
14732
  participant_limit: 10,
14667
14733
  reply_limit: 3,
14668
14734
  watch: true
14669
14735
  }, options);
14670
- _context64.next = 3;
14671
- return this.post(this.baseURL + "/threads", opts);
14736
+ _context64.next = 4;
14737
+ return this.post("".concat(this.baseURL, "/threads"), optionsWithDefaults);
14672
14738
 
14673
- case 3:
14674
- res = _context64.sent;
14739
+ case 4:
14740
+ response = _context64.sent;
14675
14741
  return _context64.abrupt("return", {
14676
- threads: res.threads.map(function (thread) {
14742
+ threads: response.threads.map(function (thread) {
14677
14743
  return new Thread({
14678
14744
  client: _this5,
14679
14745
  threadData: thread
14680
14746
  });
14681
14747
  }),
14682
- next: res.next
14748
+ next: response.next
14683
14749
  });
14684
14750
 
14685
- case 5:
14751
+ case 6:
14686
14752
  case "end":
14687
14753
  return _context64.stop();
14688
14754
  }
@@ -14690,7 +14756,7 @@ var StreamChat = /*#__PURE__*/function () {
14690
14756
  }, _callee64, this);
14691
14757
  }));
14692
14758
 
14693
- function queryThreads(_x88) {
14759
+ function queryThreads() {
14694
14760
  return _queryThreads.apply(this, arguments);
14695
14761
  }
14696
14762
 
@@ -14713,8 +14779,8 @@ var StreamChat = /*#__PURE__*/function () {
14713
14779
  value: function () {
14714
14780
  var _getThread = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(messageId) {
14715
14781
  var options,
14716
- opts,
14717
- res,
14782
+ optionsWithDefaults,
14783
+ response,
14718
14784
  _args65 = arguments;
14719
14785
  return _regeneratorRuntime.wrap(function _callee65$(_context65) {
14720
14786
  while (1) {
@@ -14727,22 +14793,22 @@ var StreamChat = /*#__PURE__*/function () {
14727
14793
  break;
14728
14794
  }
14729
14795
 
14730
- throw Error('Please specify the message id when calling partialUpdateThread');
14796
+ throw Error('Please specify the messageId when calling getThread');
14731
14797
 
14732
14798
  case 3:
14733
- opts = _objectSpread({
14799
+ optionsWithDefaults = _objectSpread({
14734
14800
  participant_limit: 100,
14735
14801
  reply_limit: 3,
14736
14802
  watch: true
14737
14803
  }, options);
14738
14804
  _context65.next = 6;
14739
- return this.get(this.baseURL + "/threads/".concat(encodeURIComponent(messageId)), opts);
14805
+ return this.get("".concat(this.baseURL, "/threads/").concat(encodeURIComponent(messageId)), optionsWithDefaults);
14740
14806
 
14741
14807
  case 6:
14742
- res = _context65.sent;
14808
+ response = _context65.sent;
14743
14809
  return _context65.abrupt("return", new Thread({
14744
14810
  client: this,
14745
- threadData: res.thread
14811
+ threadData: response.thread
14746
14812
  }));
14747
14813
 
14748
14814
  case 8:
@@ -14753,7 +14819,7 @@ var StreamChat = /*#__PURE__*/function () {
14753
14819
  }, _callee65, this);
14754
14820
  }));
14755
14821
 
14756
- function getThread(_x89) {
14822
+ function getThread(_x88) {
14757
14823
  return _getThread.apply(this, arguments);
14758
14824
  }
14759
14825
 
@@ -14788,7 +14854,7 @@ var StreamChat = /*#__PURE__*/function () {
14788
14854
  case 2:
14789
14855
  // check for reserved fields from ThreadResponse type within partialThreadObject's set and unset.
14790
14856
  // Throw error if any of the reserved field is found.
14791
- reservedThreadFields = ['created_at', 'id', 'last_message_at', 'type', 'updated_at', 'user', 'reply_count', 'participants', 'channel'];
14857
+ reservedThreadFields = ['created_at', 'id', 'last_message_at', 'type', 'updated_at', 'user', 'reply_count', 'participants', 'channel', 'custom'];
14792
14858
  _context66.t0 = _regeneratorRuntime.keys(_objectSpread(_objectSpread({}, partialThreadObject.set), partialThreadObject.unset));
14793
14859
 
14794
14860
  case 4:
@@ -14812,7 +14878,7 @@ var StreamChat = /*#__PURE__*/function () {
14812
14878
 
14813
14879
  case 10:
14814
14880
  _context66.next = 12;
14815
- return this.patch(this.baseURL + "/threads/".concat(encodeURIComponent(messageId)), partialThreadObject);
14881
+ return this.patch("".concat(this.baseURL, "/threads/").concat(encodeURIComponent(messageId)), partialThreadObject);
14816
14882
 
14817
14883
  case 12:
14818
14884
  return _context66.abrupt("return", _context66.sent);
@@ -14825,7 +14891,7 @@ var StreamChat = /*#__PURE__*/function () {
14825
14891
  }, _callee66, this);
14826
14892
  }));
14827
14893
 
14828
- function partialUpdateThread(_x90, _x91) {
14894
+ function partialUpdateThread(_x89, _x90) {
14829
14895
  return _partialUpdateThread.apply(this, arguments);
14830
14896
  }
14831
14897
 
@@ -14834,7 +14900,7 @@ var StreamChat = /*#__PURE__*/function () {
14834
14900
  }, {
14835
14901
  key: "getUserAgent",
14836
14902
  value: function getUserAgent() {
14837
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.50.0");
14903
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.51.0");
14838
14904
  }
14839
14905
  }, {
14840
14906
  key: "setUserAgent",
@@ -15074,7 +15140,7 @@ var StreamChat = /*#__PURE__*/function () {
15074
15140
  }, _callee67, this);
15075
15141
  }));
15076
15142
 
15077
- function sendUserCustomEvent(_x92, _x93) {
15143
+ function sendUserCustomEvent(_x91, _x92) {
15078
15144
  return _sendUserCustomEvent.apply(this, arguments);
15079
15145
  }
15080
15146
 
@@ -15192,7 +15258,7 @@ var StreamChat = /*#__PURE__*/function () {
15192
15258
  }, _callee68, this);
15193
15259
  }));
15194
15260
 
15195
- function createSegment(_x94, _x95, _x96) {
15261
+ function createSegment(_x93, _x94, _x95) {
15196
15262
  return _createSegment.apply(this, arguments);
15197
15263
  }
15198
15264
 
@@ -15227,7 +15293,7 @@ var StreamChat = /*#__PURE__*/function () {
15227
15293
  }, _callee69, this);
15228
15294
  }));
15229
15295
 
15230
- function createUserSegment(_x97, _x98) {
15296
+ function createUserSegment(_x96, _x97) {
15231
15297
  return _createUserSegment.apply(this, arguments);
15232
15298
  }
15233
15299
 
@@ -15262,7 +15328,7 @@ var StreamChat = /*#__PURE__*/function () {
15262
15328
  }, _callee70, this);
15263
15329
  }));
15264
15330
 
15265
- function createChannelSegment(_x99, _x100) {
15331
+ function createChannelSegment(_x98, _x99) {
15266
15332
  return _createChannelSegment.apply(this, arguments);
15267
15333
  }
15268
15334
 
@@ -15287,7 +15353,7 @@ var StreamChat = /*#__PURE__*/function () {
15287
15353
  }, _callee71, this);
15288
15354
  }));
15289
15355
 
15290
- function getSegment(_x101) {
15356
+ function getSegment(_x100) {
15291
15357
  return _getSegment.apply(this, arguments);
15292
15358
  }
15293
15359
 
@@ -15321,7 +15387,7 @@ var StreamChat = /*#__PURE__*/function () {
15321
15387
  }, _callee72, this);
15322
15388
  }));
15323
15389
 
15324
- function updateSegment(_x102, _x103) {
15390
+ function updateSegment(_x101, _x102) {
15325
15391
  return _updateSegment.apply(this, arguments);
15326
15392
  }
15327
15393
 
@@ -15359,7 +15425,7 @@ var StreamChat = /*#__PURE__*/function () {
15359
15425
  }, _callee73, this);
15360
15426
  }));
15361
15427
 
15362
- function addSegmentTargets(_x104, _x105) {
15428
+ function addSegmentTargets(_x103, _x104) {
15363
15429
  return _addSegmentTargets.apply(this, arguments);
15364
15430
  }
15365
15431
 
@@ -15394,7 +15460,7 @@ var StreamChat = /*#__PURE__*/function () {
15394
15460
  }, _callee74, this);
15395
15461
  }));
15396
15462
 
15397
- function querySegmentTargets(_x106) {
15463
+ function querySegmentTargets(_x105) {
15398
15464
  return _querySegmentTargets.apply(this, arguments);
15399
15465
  }
15400
15466
 
@@ -15432,7 +15498,7 @@ var StreamChat = /*#__PURE__*/function () {
15432
15498
  }, _callee75, this);
15433
15499
  }));
15434
15500
 
15435
- function removeSegmentTargets(_x107, _x108) {
15501
+ function removeSegmentTargets(_x106, _x107) {
15436
15502
  return _removeSegmentTargets.apply(this, arguments);
15437
15503
  }
15438
15504
 
@@ -15472,7 +15538,7 @@ var StreamChat = /*#__PURE__*/function () {
15472
15538
  }, _callee76, this);
15473
15539
  }));
15474
15540
 
15475
- function querySegments(_x109, _x110) {
15541
+ function querySegments(_x108, _x109) {
15476
15542
  return _querySegments.apply(this, arguments);
15477
15543
  }
15478
15544
 
@@ -15505,7 +15571,7 @@ var StreamChat = /*#__PURE__*/function () {
15505
15571
  }, _callee77, this);
15506
15572
  }));
15507
15573
 
15508
- function deleteSegment(_x111) {
15574
+ function deleteSegment(_x110) {
15509
15575
  return _deleteSegment.apply(this, arguments);
15510
15576
  }
15511
15577
 
@@ -15539,7 +15605,7 @@ var StreamChat = /*#__PURE__*/function () {
15539
15605
  }, _callee78, this);
15540
15606
  }));
15541
15607
 
15542
- function segmentTargetExists(_x112, _x113) {
15608
+ function segmentTargetExists(_x111, _x112) {
15543
15609
  return _segmentTargetExists.apply(this, arguments);
15544
15610
  }
15545
15611
 
@@ -15572,7 +15638,7 @@ var StreamChat = /*#__PURE__*/function () {
15572
15638
  }, _callee79, this);
15573
15639
  }));
15574
15640
 
15575
- function createCampaign(_x114) {
15641
+ function createCampaign(_x113) {
15576
15642
  return _createCampaign.apply(this, arguments);
15577
15643
  }
15578
15644
 
@@ -15597,7 +15663,7 @@ var StreamChat = /*#__PURE__*/function () {
15597
15663
  }, _callee80, this);
15598
15664
  }));
15599
15665
 
15600
- function getCampaign(_x115) {
15666
+ function getCampaign(_x114) {
15601
15667
  return _getCampaign.apply(this, arguments);
15602
15668
  }
15603
15669
 
@@ -15625,7 +15691,7 @@ var StreamChat = /*#__PURE__*/function () {
15625
15691
  }, _callee81, this);
15626
15692
  }));
15627
15693
 
15628
- function startCampaign(_x116, _x117) {
15694
+ function startCampaign(_x115, _x116) {
15629
15695
  return _startCampaign.apply(this, arguments);
15630
15696
  }
15631
15697
 
@@ -15664,7 +15730,7 @@ var StreamChat = /*#__PURE__*/function () {
15664
15730
  }, _callee82, this);
15665
15731
  }));
15666
15732
 
15667
- function queryCampaigns(_x118, _x119, _x120) {
15733
+ function queryCampaigns(_x117, _x118, _x119) {
15668
15734
  return _queryCampaigns.apply(this, arguments);
15669
15735
  }
15670
15736
 
@@ -15698,7 +15764,7 @@ var StreamChat = /*#__PURE__*/function () {
15698
15764
  }, _callee83, this);
15699
15765
  }));
15700
15766
 
15701
- function updateCampaign(_x121, _x122) {
15767
+ function updateCampaign(_x120, _x121) {
15702
15768
  return _updateCampaign.apply(this, arguments);
15703
15769
  }
15704
15770
 
@@ -15731,7 +15797,7 @@ var StreamChat = /*#__PURE__*/function () {
15731
15797
  }, _callee84, this);
15732
15798
  }));
15733
15799
 
15734
- function deleteCampaign(_x123) {
15800
+ function deleteCampaign(_x122) {
15735
15801
  return _deleteCampaign.apply(this, arguments);
15736
15802
  }
15737
15803
 
@@ -15764,7 +15830,7 @@ var StreamChat = /*#__PURE__*/function () {
15764
15830
  }, _callee85, this);
15765
15831
  }));
15766
15832
 
15767
- function stopCampaign(_x124) {
15833
+ function stopCampaign(_x123) {
15768
15834
  return _stopCampaign.apply(this, arguments);
15769
15835
  }
15770
15836
 
@@ -15797,7 +15863,7 @@ var StreamChat = /*#__PURE__*/function () {
15797
15863
  }, _callee86, this);
15798
15864
  }));
15799
15865
 
15800
- function enrichURL(_x125) {
15866
+ function enrichURL(_x124) {
15801
15867
  return _enrichURL.apply(this, arguments);
15802
15868
  }
15803
15869
 
@@ -15829,7 +15895,7 @@ var StreamChat = /*#__PURE__*/function () {
15829
15895
  }, _callee87, this);
15830
15896
  }));
15831
15897
 
15832
- function getTask(_x126) {
15898
+ function getTask(_x125) {
15833
15899
  return _getTask.apply(this, arguments);
15834
15900
  }
15835
15901
 
@@ -15871,7 +15937,7 @@ var StreamChat = /*#__PURE__*/function () {
15871
15937
  }, _callee88, this);
15872
15938
  }));
15873
15939
 
15874
- function deleteChannels(_x127) {
15940
+ function deleteChannels(_x126) {
15875
15941
  return _deleteChannels.apply(this, arguments);
15876
15942
  }
15877
15943
 
@@ -15938,7 +16004,7 @@ var StreamChat = /*#__PURE__*/function () {
15938
16004
  }, _callee89, this);
15939
16005
  }));
15940
16006
 
15941
- function deleteUsers(_x128) {
16007
+ function deleteUsers(_x127) {
15942
16008
  return _deleteUsers.apply(this, arguments);
15943
16009
  }
15944
16010
 
@@ -15980,7 +16046,7 @@ var StreamChat = /*#__PURE__*/function () {
15980
16046
  }, _callee90, this);
15981
16047
  }));
15982
16048
 
15983
- function _createImportURL(_x129) {
16049
+ function _createImportURL(_x128) {
15984
16050
  return _createImportURL2.apply(this, arguments);
15985
16051
  }
15986
16052
 
@@ -16028,7 +16094,7 @@ var StreamChat = /*#__PURE__*/function () {
16028
16094
  }, _callee91, this);
16029
16095
  }));
16030
16096
 
16031
- function _createImport(_x130) {
16097
+ function _createImport(_x129) {
16032
16098
  return _createImport2.apply(this, arguments);
16033
16099
  }
16034
16100
 
@@ -16069,7 +16135,7 @@ var StreamChat = /*#__PURE__*/function () {
16069
16135
  }, _callee92, this);
16070
16136
  }));
16071
16137
 
16072
- function _getImport(_x131) {
16138
+ function _getImport(_x130) {
16073
16139
  return _getImport2.apply(this, arguments);
16074
16140
  }
16075
16141
 
@@ -16110,7 +16176,7 @@ var StreamChat = /*#__PURE__*/function () {
16110
16176
  }, _callee93, this);
16111
16177
  }));
16112
16178
 
16113
- function _listImports(_x132) {
16179
+ function _listImports(_x131) {
16114
16180
  return _listImports2.apply(this, arguments);
16115
16181
  }
16116
16182
 
@@ -16150,7 +16216,7 @@ var StreamChat = /*#__PURE__*/function () {
16150
16216
  }, _callee94, this);
16151
16217
  }));
16152
16218
 
16153
- function upsertPushProvider(_x133) {
16219
+ function upsertPushProvider(_x132) {
16154
16220
  return _upsertPushProvider.apply(this, arguments);
16155
16221
  }
16156
16222
 
@@ -16190,7 +16256,7 @@ var StreamChat = /*#__PURE__*/function () {
16190
16256
  }, _callee95, this);
16191
16257
  }));
16192
16258
 
16193
- function deletePushProvider(_x134) {
16259
+ function deletePushProvider(_x133) {
16194
16260
  return _deletePushProvider.apply(this, arguments);
16195
16261
  }
16196
16262
 
@@ -16270,7 +16336,7 @@ var StreamChat = /*#__PURE__*/function () {
16270
16336
  }, _callee97, this);
16271
16337
  }));
16272
16338
 
16273
- function commitMessage(_x135) {
16339
+ function commitMessage(_x134) {
16274
16340
  return _commitMessage.apply(this, arguments);
16275
16341
  }
16276
16342
 
@@ -16307,7 +16373,7 @@ var StreamChat = /*#__PURE__*/function () {
16307
16373
  }, _callee98, this);
16308
16374
  }));
16309
16375
 
16310
- function createPoll(_x136, _x137) {
16376
+ function createPoll(_x135, _x136) {
16311
16377
  return _createPoll.apply(this, arguments);
16312
16378
  }
16313
16379
 
@@ -16344,7 +16410,7 @@ var StreamChat = /*#__PURE__*/function () {
16344
16410
  }, _callee99, this);
16345
16411
  }));
16346
16412
 
16347
- function getPoll(_x138, _x139) {
16413
+ function getPoll(_x137, _x138) {
16348
16414
  return _getPoll.apply(this, arguments);
16349
16415
  }
16350
16416
 
@@ -16381,7 +16447,7 @@ var StreamChat = /*#__PURE__*/function () {
16381
16447
  }, _callee100, this);
16382
16448
  }));
16383
16449
 
16384
- function updatePoll(_x140, _x141) {
16450
+ function updatePoll(_x139, _x140) {
16385
16451
  return _updatePoll.apply(this, arguments);
16386
16452
  }
16387
16453
 
@@ -16420,7 +16486,7 @@ var StreamChat = /*#__PURE__*/function () {
16420
16486
  }, _callee101, this);
16421
16487
  }));
16422
16488
 
16423
- function partialUpdatePoll(_x142, _x143, _x144) {
16489
+ function partialUpdatePoll(_x141, _x142, _x143) {
16424
16490
  return _partialUpdatePoll.apply(this, arguments);
16425
16491
  }
16426
16492
 
@@ -16457,7 +16523,7 @@ var StreamChat = /*#__PURE__*/function () {
16457
16523
  }, _callee102, this);
16458
16524
  }));
16459
16525
 
16460
- function deletePoll(_x145, _x146) {
16526
+ function deletePoll(_x144, _x145) {
16461
16527
  return _deletePoll.apply(this, arguments);
16462
16528
  }
16463
16529
 
@@ -16492,7 +16558,7 @@ var StreamChat = /*#__PURE__*/function () {
16492
16558
  }, _callee103, this);
16493
16559
  }));
16494
16560
 
16495
- function closePoll(_x147, _x148) {
16561
+ function closePoll(_x146, _x147) {
16496
16562
  return _closePoll.apply(this, arguments);
16497
16563
  }
16498
16564
 
@@ -16530,7 +16596,7 @@ var StreamChat = /*#__PURE__*/function () {
16530
16596
  }, _callee104, this);
16531
16597
  }));
16532
16598
 
16533
- function createPollOption(_x149, _x150, _x151) {
16599
+ function createPollOption(_x148, _x149, _x150) {
16534
16600
  return _createPollOption.apply(this, arguments);
16535
16601
  }
16536
16602
 
@@ -16568,7 +16634,7 @@ var StreamChat = /*#__PURE__*/function () {
16568
16634
  }, _callee105, this);
16569
16635
  }));
16570
16636
 
16571
- function getPollOption(_x152, _x153, _x154) {
16637
+ function getPollOption(_x151, _x152, _x153) {
16572
16638
  return _getPollOption.apply(this, arguments);
16573
16639
  }
16574
16640
 
@@ -16606,7 +16672,7 @@ var StreamChat = /*#__PURE__*/function () {
16606
16672
  }, _callee106, this);
16607
16673
  }));
16608
16674
 
16609
- function updatePollOption(_x155, _x156, _x157) {
16675
+ function updatePollOption(_x154, _x155, _x156) {
16610
16676
  return _updatePollOption.apply(this, arguments);
16611
16677
  }
16612
16678
 
@@ -16644,7 +16710,7 @@ var StreamChat = /*#__PURE__*/function () {
16644
16710
  }, _callee107, this);
16645
16711
  }));
16646
16712
 
16647
- function deletePollOption(_x158, _x159, _x160) {
16713
+ function deletePollOption(_x157, _x158, _x159) {
16648
16714
  return _deletePollOption.apply(this, arguments);
16649
16715
  }
16650
16716
 
@@ -16685,7 +16751,7 @@ var StreamChat = /*#__PURE__*/function () {
16685
16751
  }, _callee108, this);
16686
16752
  }));
16687
16753
 
16688
- function castPollVote(_x161, _x162, _x163, _x164) {
16754
+ function castPollVote(_x160, _x161, _x162, _x163) {
16689
16755
  return _castPollVote.apply(this, arguments);
16690
16756
  }
16691
16757
 
@@ -16719,7 +16785,7 @@ var StreamChat = /*#__PURE__*/function () {
16719
16785
  }, _callee109, this);
16720
16786
  }));
16721
16787
 
16722
- function addPollAnswer(_x165, _x166, _x167, _x168) {
16788
+ function addPollAnswer(_x164, _x165, _x166, _x167) {
16723
16789
  return _addPollAnswer.apply(this, arguments);
16724
16790
  }
16725
16791
 
@@ -16749,7 +16815,7 @@ var StreamChat = /*#__PURE__*/function () {
16749
16815
  }, _callee110, this);
16750
16816
  }));
16751
16817
 
16752
- function removePollVote(_x169, _x170, _x171, _x172) {
16818
+ function removePollVote(_x168, _x169, _x170, _x171) {
16753
16819
  return _removePollVote.apply(this, arguments);
16754
16820
  }
16755
16821
 
@@ -16852,7 +16918,7 @@ var StreamChat = /*#__PURE__*/function () {
16852
16918
  }, _callee112, this);
16853
16919
  }));
16854
16920
 
16855
- function queryPollVotes(_x173) {
16921
+ function queryPollVotes(_x172) {
16856
16922
  return _queryPollVotes.apply(this, arguments);
16857
16923
  }
16858
16924
 
@@ -16906,7 +16972,7 @@ var StreamChat = /*#__PURE__*/function () {
16906
16972
  }, _callee113, this);
16907
16973
  }));
16908
16974
 
16909
- function queryPollAnswers(_x174) {
16975
+ function queryPollAnswers(_x173) {
16910
16976
  return _queryPollAnswers.apply(this, arguments);
16911
16977
  }
16912
16978
 
@@ -16995,7 +17061,7 @@ var StreamChat = /*#__PURE__*/function () {
16995
17061
  }, _callee115, this);
16996
17062
  }));
16997
17063
 
16998
- function updateFlags(_x175, _x176) {
17064
+ function updateFlags(_x174, _x175) {
16999
17065
  return _updateFlags.apply(this, arguments);
17000
17066
  }
17001
17067
 
@@ -17061,6 +17127,7 @@ var EVENT_MAP = {
17061
17127
  'reaction.deleted': true,
17062
17128
  'reaction.new': true,
17063
17129
  'reaction.updated': true,
17130
+ 'thread.updated': true,
17064
17131
  'typing.start': true,
17065
17132
  'typing.stop': true,
17066
17133
  'user.banned': true,