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