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