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/browser.js CHANGED
@@ -135,7 +135,7 @@ var Campaign = /*#__PURE__*/function () {
135
135
  key: "create",
136
136
  value: function () {
137
137
  var _create = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee() {
138
- var _this$data, _this$data2, _this$data3, _this$data4, _this$data5, _this$data6, _this$data7, _this$data8;
138
+ var _this$data, _this$data2, _this$data3, _this$data4, _this$data5, _this$data6, _this$data7, _this$data8, _this$data9;
139
139
 
140
140
  var body, result;
141
141
  return _regeneratorRuntime__default['default'].wrap(function _callee$(_context) {
@@ -147,11 +147,12 @@ var Campaign = /*#__PURE__*/function () {
147
147
  message_template: (_this$data = this.data) === null || _this$data === void 0 ? void 0 : _this$data.message_template,
148
148
  segment_ids: (_this$data2 = this.data) === null || _this$data2 === void 0 ? void 0 : _this$data2.segment_ids,
149
149
  sender_id: (_this$data3 = this.data) === null || _this$data3 === void 0 ? void 0 : _this$data3.sender_id,
150
- channel_template: (_this$data4 = this.data) === null || _this$data4 === void 0 ? void 0 : _this$data4.channel_template,
151
- create_channels: (_this$data5 = this.data) === null || _this$data5 === void 0 ? void 0 : _this$data5.create_channels,
152
- description: (_this$data6 = this.data) === null || _this$data6 === void 0 ? void 0 : _this$data6.description,
153
- name: (_this$data7 = this.data) === null || _this$data7 === void 0 ? void 0 : _this$data7.name,
154
- user_ids: (_this$data8 = this.data) === null || _this$data8 === void 0 ? void 0 : _this$data8.user_ids
150
+ sender_mode: (_this$data4 = this.data) === null || _this$data4 === void 0 ? void 0 : _this$data4.sender_mode,
151
+ channel_template: (_this$data5 = this.data) === null || _this$data5 === void 0 ? void 0 : _this$data5.channel_template,
152
+ create_channels: (_this$data6 = this.data) === null || _this$data6 === void 0 ? void 0 : _this$data6.create_channels,
153
+ description: (_this$data7 = this.data) === null || _this$data7 === void 0 ? void 0 : _this$data7.description,
154
+ name: (_this$data8 = this.data) === null || _this$data8 === void 0 ? void 0 : _this$data8.name,
155
+ user_ids: (_this$data9 = this.data) === null || _this$data9 === void 0 ? void 0 : _this$data9.user_ids
155
156
  };
156
157
  _context.next = 3;
157
158
  return this.client.createCampaign(body);
@@ -7429,6 +7430,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
7429
7430
  /**
7430
7431
  * Response Types
7431
7432
  */
7433
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
7432
7434
  // TODO: Figure out a way to strongly type set and unset.
7433
7435
  // Thumb URL(thumb_url) is added considering video attachments as the backend will return the thumbnail in the response.
7434
7436
 
@@ -7603,7 +7605,43 @@ var DEFAULT_PAGE_LIMIT = 50;
7603
7605
  var DEFAULT_SORT = [{
7604
7606
  created_at: -1
7605
7607
  }];
7606
- var MARK_AS_READ_THROTTLE_TIMEOUT = 1000;
7608
+ var MARK_AS_READ_THROTTLE_TIMEOUT = 1000; // TODO: remove this once we move to API v2
7609
+
7610
+ var THREAD_RESPONSE_RESERVED_KEYS = {
7611
+ channel: true,
7612
+ channel_cid: true,
7613
+ created_at: true,
7614
+ created_by_user_id: true,
7615
+ parent_message_id: true,
7616
+ title: true,
7617
+ updated_at: true,
7618
+ latest_replies: true,
7619
+ active_participant_count: true,
7620
+ deleted_at: true,
7621
+ last_message_at: true,
7622
+ participant_count: true,
7623
+ reply_count: true,
7624
+ read: true,
7625
+ thread_participants: true,
7626
+ created_by: true,
7627
+ parent_message: true
7628
+ }; // TODO: remove this once we move to API v2
7629
+
7630
+ var constructCustomDataObject = function constructCustomDataObject(threadData) {
7631
+ var custom = {};
7632
+
7633
+ for (var key in threadData) {
7634
+ if (THREAD_RESPONSE_RESERVED_KEYS[key]) {
7635
+ continue;
7636
+ }
7637
+
7638
+ var customKey = key;
7639
+ custom[customKey] = threadData[customKey];
7640
+ }
7641
+
7642
+ return custom;
7643
+ };
7644
+
7607
7645
  var Thread = /*#__PURE__*/function () {
7608
7646
  function Thread(_ref) {
7609
7647
  var _this = this,
@@ -7611,7 +7649,7 @@ var Thread = /*#__PURE__*/function () {
7611
7649
  _threadData$reply_cou;
7612
7650
 
7613
7651
  var client = _ref.client,
7614
- threadData = _ref.threadData;
7652
+ _threadData = _ref.threadData;
7615
7653
 
7616
7654
  _classCallCheck__default['default'](this, Thread);
7617
7655
 
@@ -7725,6 +7763,8 @@ var Thread = /*#__PURE__*/function () {
7725
7763
  return;
7726
7764
  }
7727
7765
 
7766
+ _this.unsubscribeFunctions.add(_this.subscribeThreadUpdated());
7767
+
7728
7768
  _this.unsubscribeFunctions.add(_this.subscribeMarkActiveThreadRead());
7729
7769
 
7730
7770
  _this.unsubscribeFunctions.add(_this.subscribeReloadActiveStaleThread());
@@ -7740,6 +7780,24 @@ var Thread = /*#__PURE__*/function () {
7740
7780
  _this.unsubscribeFunctions.add(_this.subscribeMessageUpdated());
7741
7781
  });
7742
7782
 
7783
+ _defineProperty__default['default'](this, "subscribeThreadUpdated", function () {
7784
+ return _this.client.on('thread.updated', function (event) {
7785
+ if (!event.thread || event.thread.parent_message_id !== _this.id) {
7786
+ return;
7787
+ }
7788
+
7789
+ var threadData = event.thread;
7790
+
7791
+ _this.state.partialNext({
7792
+ title: threadData.title,
7793
+ updatedAt: new Date(threadData.updated_at),
7794
+ deletedAt: threadData.deleted_at ? new Date(threadData.deleted_at) : null,
7795
+ // TODO: use threadData.custom once we move to API v2
7796
+ custom: constructCustomDataObject(threadData)
7797
+ });
7798
+ }).unsubscribe;
7799
+ });
7800
+
7743
7801
  _defineProperty__default['default'](this, "subscribeMarkActiveThreadRead", function () {
7744
7802
  return _this.state.subscribeWithSelector(function (nextValue) {
7745
7803
  return {
@@ -8167,12 +8225,12 @@ var Thread = /*#__PURE__*/function () {
8167
8225
  };
8168
8226
  }());
8169
8227
 
8170
- var _channel = client.channel(threadData.channel.type, threadData.channel.id, {
8171
- name: threadData.channel.name
8228
+ var _channel = client.channel(_threadData.channel.type, _threadData.channel.id, {
8229
+ name: _threadData.channel.name
8172
8230
  });
8173
8231
 
8174
8232
  _channel._hydrateMembers({
8175
- members: (_threadData$channel$m = threadData.channel.members) !== null && _threadData$channel$m !== void 0 ? _threadData$channel$m : [],
8233
+ members: (_threadData$channel$m = _threadData.channel.members) !== null && _threadData$channel$m !== void 0 ? _threadData$channel$m : [],
8176
8234
  overrideCurrentState: false
8177
8235
  }); // For when read object is undefined and due to that unreadMessageCount for
8178
8236
  // the current user isn't being incremented on message.new
@@ -8186,21 +8244,26 @@ var Thread = /*#__PURE__*/function () {
8186
8244
  last_read: new Date().toISOString()
8187
8245
  }] : [];
8188
8246
  this.state = new StateStore({
8247
+ // local only
8189
8248
  active: false,
8190
- channel: _channel,
8191
- createdAt: new Date(threadData.created_at),
8192
- deletedAt: threadData.deleted_at ? new Date(threadData.deleted_at) : null,
8193
8249
  isLoading: false,
8194
8250
  isStateStale: false,
8195
- pagination: repliesPaginationFromInitialThread(threadData),
8196
- parentMessage: formatMessage(threadData.parent_message),
8197
- participants: threadData.thread_participants,
8198
- read: formatReadState(!threadData.read || threadData.read.length === 0 ? placeholderReadResponse : threadData.read),
8199
- replies: threadData.latest_replies.map(formatMessage),
8200
- replyCount: (_threadData$reply_cou = threadData.reply_count) !== null && _threadData$reply_cou !== void 0 ? _threadData$reply_cou : 0,
8201
- updatedAt: threadData.updated_at ? new Date(threadData.updated_at) : null
8251
+ // 99.9% should never change
8252
+ channel: _channel,
8253
+ createdAt: new Date(_threadData.created_at),
8254
+ // rest
8255
+ deletedAt: _threadData.deleted_at ? new Date(_threadData.deleted_at) : null,
8256
+ pagination: repliesPaginationFromInitialThread(_threadData),
8257
+ parentMessage: formatMessage(_threadData.parent_message),
8258
+ participants: _threadData.thread_participants,
8259
+ read: formatReadState(!_threadData.read || _threadData.read.length === 0 ? placeholderReadResponse : _threadData.read),
8260
+ replies: _threadData.latest_replies.map(formatMessage),
8261
+ replyCount: (_threadData$reply_cou = _threadData.reply_count) !== null && _threadData$reply_cou !== void 0 ? _threadData$reply_cou : 0,
8262
+ updatedAt: _threadData.updated_at ? new Date(_threadData.updated_at) : null,
8263
+ title: _threadData.title,
8264
+ custom: constructCustomDataObject(_threadData)
8202
8265
  });
8203
- this.id = threadData.parent_message_id;
8266
+ this.id = _threadData.parent_message_id;
8204
8267
  this.client = client;
8205
8268
  }
8206
8269
 
@@ -14674,36 +14737,40 @@ var StreamChat = /*#__PURE__*/function () {
14674
14737
  }, {
14675
14738
  key: "queryThreads",
14676
14739
  value: function () {
14677
- var _queryThreads = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee64(options) {
14740
+ var _queryThreads = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee64() {
14678
14741
  var _this5 = this;
14679
14742
 
14680
- var opts, res;
14743
+ var options,
14744
+ optionsWithDefaults,
14745
+ response,
14746
+ _args64 = arguments;
14681
14747
  return _regeneratorRuntime__default['default'].wrap(function _callee64$(_context64) {
14682
14748
  while (1) {
14683
14749
  switch (_context64.prev = _context64.next) {
14684
14750
  case 0:
14685
- opts = _objectSpread({
14751
+ options = _args64.length > 0 && _args64[0] !== undefined ? _args64[0] : {};
14752
+ optionsWithDefaults = _objectSpread({
14686
14753
  limit: 10,
14687
14754
  participant_limit: 10,
14688
14755
  reply_limit: 3,
14689
14756
  watch: true
14690
14757
  }, options);
14691
- _context64.next = 3;
14692
- return this.post(this.baseURL + "/threads", opts);
14758
+ _context64.next = 4;
14759
+ return this.post("".concat(this.baseURL, "/threads"), optionsWithDefaults);
14693
14760
 
14694
- case 3:
14695
- res = _context64.sent;
14761
+ case 4:
14762
+ response = _context64.sent;
14696
14763
  return _context64.abrupt("return", {
14697
- threads: res.threads.map(function (thread) {
14764
+ threads: response.threads.map(function (thread) {
14698
14765
  return new Thread({
14699
14766
  client: _this5,
14700
14767
  threadData: thread
14701
14768
  });
14702
14769
  }),
14703
- next: res.next
14770
+ next: response.next
14704
14771
  });
14705
14772
 
14706
- case 5:
14773
+ case 6:
14707
14774
  case "end":
14708
14775
  return _context64.stop();
14709
14776
  }
@@ -14711,7 +14778,7 @@ var StreamChat = /*#__PURE__*/function () {
14711
14778
  }, _callee64, this);
14712
14779
  }));
14713
14780
 
14714
- function queryThreads(_x88) {
14781
+ function queryThreads() {
14715
14782
  return _queryThreads.apply(this, arguments);
14716
14783
  }
14717
14784
 
@@ -14734,8 +14801,8 @@ var StreamChat = /*#__PURE__*/function () {
14734
14801
  value: function () {
14735
14802
  var _getThread = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee65(messageId) {
14736
14803
  var options,
14737
- opts,
14738
- res,
14804
+ optionsWithDefaults,
14805
+ response,
14739
14806
  _args65 = arguments;
14740
14807
  return _regeneratorRuntime__default['default'].wrap(function _callee65$(_context65) {
14741
14808
  while (1) {
@@ -14748,22 +14815,22 @@ var StreamChat = /*#__PURE__*/function () {
14748
14815
  break;
14749
14816
  }
14750
14817
 
14751
- throw Error('Please specify the message id when calling partialUpdateThread');
14818
+ throw Error('Please specify the messageId when calling getThread');
14752
14819
 
14753
14820
  case 3:
14754
- opts = _objectSpread({
14821
+ optionsWithDefaults = _objectSpread({
14755
14822
  participant_limit: 100,
14756
14823
  reply_limit: 3,
14757
14824
  watch: true
14758
14825
  }, options);
14759
14826
  _context65.next = 6;
14760
- return this.get(this.baseURL + "/threads/".concat(encodeURIComponent(messageId)), opts);
14827
+ return this.get("".concat(this.baseURL, "/threads/").concat(encodeURIComponent(messageId)), optionsWithDefaults);
14761
14828
 
14762
14829
  case 6:
14763
- res = _context65.sent;
14830
+ response = _context65.sent;
14764
14831
  return _context65.abrupt("return", new Thread({
14765
14832
  client: this,
14766
- threadData: res.thread
14833
+ threadData: response.thread
14767
14834
  }));
14768
14835
 
14769
14836
  case 8:
@@ -14774,7 +14841,7 @@ var StreamChat = /*#__PURE__*/function () {
14774
14841
  }, _callee65, this);
14775
14842
  }));
14776
14843
 
14777
- function getThread(_x89) {
14844
+ function getThread(_x88) {
14778
14845
  return _getThread.apply(this, arguments);
14779
14846
  }
14780
14847
 
@@ -14809,7 +14876,7 @@ var StreamChat = /*#__PURE__*/function () {
14809
14876
  case 2:
14810
14877
  // check for reserved fields from ThreadResponse type within partialThreadObject's set and unset.
14811
14878
  // Throw error if any of the reserved field is found.
14812
- reservedThreadFields = ['created_at', 'id', 'last_message_at', 'type', 'updated_at', 'user', 'reply_count', 'participants', 'channel'];
14879
+ reservedThreadFields = ['created_at', 'id', 'last_message_at', 'type', 'updated_at', 'user', 'reply_count', 'participants', 'channel', 'custom'];
14813
14880
  _context66.t0 = _regeneratorRuntime__default['default'].keys(_objectSpread(_objectSpread({}, partialThreadObject.set), partialThreadObject.unset));
14814
14881
 
14815
14882
  case 4:
@@ -14833,7 +14900,7 @@ var StreamChat = /*#__PURE__*/function () {
14833
14900
 
14834
14901
  case 10:
14835
14902
  _context66.next = 12;
14836
- return this.patch(this.baseURL + "/threads/".concat(encodeURIComponent(messageId)), partialThreadObject);
14903
+ return this.patch("".concat(this.baseURL, "/threads/").concat(encodeURIComponent(messageId)), partialThreadObject);
14837
14904
 
14838
14905
  case 12:
14839
14906
  return _context66.abrupt("return", _context66.sent);
@@ -14846,7 +14913,7 @@ var StreamChat = /*#__PURE__*/function () {
14846
14913
  }, _callee66, this);
14847
14914
  }));
14848
14915
 
14849
- function partialUpdateThread(_x90, _x91) {
14916
+ function partialUpdateThread(_x89, _x90) {
14850
14917
  return _partialUpdateThread.apply(this, arguments);
14851
14918
  }
14852
14919
 
@@ -14855,7 +14922,7 @@ var StreamChat = /*#__PURE__*/function () {
14855
14922
  }, {
14856
14923
  key: "getUserAgent",
14857
14924
  value: function getUserAgent() {
14858
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.49.0");
14925
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.51.0");
14859
14926
  }
14860
14927
  }, {
14861
14928
  key: "setUserAgent",
@@ -15095,7 +15162,7 @@ var StreamChat = /*#__PURE__*/function () {
15095
15162
  }, _callee67, this);
15096
15163
  }));
15097
15164
 
15098
- function sendUserCustomEvent(_x92, _x93) {
15165
+ function sendUserCustomEvent(_x91, _x92) {
15099
15166
  return _sendUserCustomEvent.apply(this, arguments);
15100
15167
  }
15101
15168
 
@@ -15213,7 +15280,7 @@ var StreamChat = /*#__PURE__*/function () {
15213
15280
  }, _callee68, this);
15214
15281
  }));
15215
15282
 
15216
- function createSegment(_x94, _x95, _x96) {
15283
+ function createSegment(_x93, _x94, _x95) {
15217
15284
  return _createSegment.apply(this, arguments);
15218
15285
  }
15219
15286
 
@@ -15248,7 +15315,7 @@ var StreamChat = /*#__PURE__*/function () {
15248
15315
  }, _callee69, this);
15249
15316
  }));
15250
15317
 
15251
- function createUserSegment(_x97, _x98) {
15318
+ function createUserSegment(_x96, _x97) {
15252
15319
  return _createUserSegment.apply(this, arguments);
15253
15320
  }
15254
15321
 
@@ -15283,7 +15350,7 @@ var StreamChat = /*#__PURE__*/function () {
15283
15350
  }, _callee70, this);
15284
15351
  }));
15285
15352
 
15286
- function createChannelSegment(_x99, _x100) {
15353
+ function createChannelSegment(_x98, _x99) {
15287
15354
  return _createChannelSegment.apply(this, arguments);
15288
15355
  }
15289
15356
 
@@ -15308,7 +15375,7 @@ var StreamChat = /*#__PURE__*/function () {
15308
15375
  }, _callee71, this);
15309
15376
  }));
15310
15377
 
15311
- function getSegment(_x101) {
15378
+ function getSegment(_x100) {
15312
15379
  return _getSegment.apply(this, arguments);
15313
15380
  }
15314
15381
 
@@ -15342,7 +15409,7 @@ var StreamChat = /*#__PURE__*/function () {
15342
15409
  }, _callee72, this);
15343
15410
  }));
15344
15411
 
15345
- function updateSegment(_x102, _x103) {
15412
+ function updateSegment(_x101, _x102) {
15346
15413
  return _updateSegment.apply(this, arguments);
15347
15414
  }
15348
15415
 
@@ -15380,7 +15447,7 @@ var StreamChat = /*#__PURE__*/function () {
15380
15447
  }, _callee73, this);
15381
15448
  }));
15382
15449
 
15383
- function addSegmentTargets(_x104, _x105) {
15450
+ function addSegmentTargets(_x103, _x104) {
15384
15451
  return _addSegmentTargets.apply(this, arguments);
15385
15452
  }
15386
15453
 
@@ -15415,7 +15482,7 @@ var StreamChat = /*#__PURE__*/function () {
15415
15482
  }, _callee74, this);
15416
15483
  }));
15417
15484
 
15418
- function querySegmentTargets(_x106) {
15485
+ function querySegmentTargets(_x105) {
15419
15486
  return _querySegmentTargets.apply(this, arguments);
15420
15487
  }
15421
15488
 
@@ -15453,7 +15520,7 @@ var StreamChat = /*#__PURE__*/function () {
15453
15520
  }, _callee75, this);
15454
15521
  }));
15455
15522
 
15456
- function removeSegmentTargets(_x107, _x108) {
15523
+ function removeSegmentTargets(_x106, _x107) {
15457
15524
  return _removeSegmentTargets.apply(this, arguments);
15458
15525
  }
15459
15526
 
@@ -15493,7 +15560,7 @@ var StreamChat = /*#__PURE__*/function () {
15493
15560
  }, _callee76, this);
15494
15561
  }));
15495
15562
 
15496
- function querySegments(_x109, _x110) {
15563
+ function querySegments(_x108, _x109) {
15497
15564
  return _querySegments.apply(this, arguments);
15498
15565
  }
15499
15566
 
@@ -15526,7 +15593,7 @@ var StreamChat = /*#__PURE__*/function () {
15526
15593
  }, _callee77, this);
15527
15594
  }));
15528
15595
 
15529
- function deleteSegment(_x111) {
15596
+ function deleteSegment(_x110) {
15530
15597
  return _deleteSegment.apply(this, arguments);
15531
15598
  }
15532
15599
 
@@ -15560,7 +15627,7 @@ var StreamChat = /*#__PURE__*/function () {
15560
15627
  }, _callee78, this);
15561
15628
  }));
15562
15629
 
15563
- function segmentTargetExists(_x112, _x113) {
15630
+ function segmentTargetExists(_x111, _x112) {
15564
15631
  return _segmentTargetExists.apply(this, arguments);
15565
15632
  }
15566
15633
 
@@ -15593,7 +15660,7 @@ var StreamChat = /*#__PURE__*/function () {
15593
15660
  }, _callee79, this);
15594
15661
  }));
15595
15662
 
15596
- function createCampaign(_x114) {
15663
+ function createCampaign(_x113) {
15597
15664
  return _createCampaign.apply(this, arguments);
15598
15665
  }
15599
15666
 
@@ -15618,7 +15685,7 @@ var StreamChat = /*#__PURE__*/function () {
15618
15685
  }, _callee80, this);
15619
15686
  }));
15620
15687
 
15621
- function getCampaign(_x115) {
15688
+ function getCampaign(_x114) {
15622
15689
  return _getCampaign.apply(this, arguments);
15623
15690
  }
15624
15691
 
@@ -15646,7 +15713,7 @@ var StreamChat = /*#__PURE__*/function () {
15646
15713
  }, _callee81, this);
15647
15714
  }));
15648
15715
 
15649
- function startCampaign(_x116, _x117) {
15716
+ function startCampaign(_x115, _x116) {
15650
15717
  return _startCampaign.apply(this, arguments);
15651
15718
  }
15652
15719
 
@@ -15685,7 +15752,7 @@ var StreamChat = /*#__PURE__*/function () {
15685
15752
  }, _callee82, this);
15686
15753
  }));
15687
15754
 
15688
- function queryCampaigns(_x118, _x119, _x120) {
15755
+ function queryCampaigns(_x117, _x118, _x119) {
15689
15756
  return _queryCampaigns.apply(this, arguments);
15690
15757
  }
15691
15758
 
@@ -15719,7 +15786,7 @@ var StreamChat = /*#__PURE__*/function () {
15719
15786
  }, _callee83, this);
15720
15787
  }));
15721
15788
 
15722
- function updateCampaign(_x121, _x122) {
15789
+ function updateCampaign(_x120, _x121) {
15723
15790
  return _updateCampaign.apply(this, arguments);
15724
15791
  }
15725
15792
 
@@ -15752,7 +15819,7 @@ var StreamChat = /*#__PURE__*/function () {
15752
15819
  }, _callee84, this);
15753
15820
  }));
15754
15821
 
15755
- function deleteCampaign(_x123) {
15822
+ function deleteCampaign(_x122) {
15756
15823
  return _deleteCampaign.apply(this, arguments);
15757
15824
  }
15758
15825
 
@@ -15785,7 +15852,7 @@ var StreamChat = /*#__PURE__*/function () {
15785
15852
  }, _callee85, this);
15786
15853
  }));
15787
15854
 
15788
- function stopCampaign(_x124) {
15855
+ function stopCampaign(_x123) {
15789
15856
  return _stopCampaign.apply(this, arguments);
15790
15857
  }
15791
15858
 
@@ -15818,7 +15885,7 @@ var StreamChat = /*#__PURE__*/function () {
15818
15885
  }, _callee86, this);
15819
15886
  }));
15820
15887
 
15821
- function enrichURL(_x125) {
15888
+ function enrichURL(_x124) {
15822
15889
  return _enrichURL.apply(this, arguments);
15823
15890
  }
15824
15891
 
@@ -15850,7 +15917,7 @@ var StreamChat = /*#__PURE__*/function () {
15850
15917
  }, _callee87, this);
15851
15918
  }));
15852
15919
 
15853
- function getTask(_x126) {
15920
+ function getTask(_x125) {
15854
15921
  return _getTask.apply(this, arguments);
15855
15922
  }
15856
15923
 
@@ -15892,7 +15959,7 @@ var StreamChat = /*#__PURE__*/function () {
15892
15959
  }, _callee88, this);
15893
15960
  }));
15894
15961
 
15895
- function deleteChannels(_x127) {
15962
+ function deleteChannels(_x126) {
15896
15963
  return _deleteChannels.apply(this, arguments);
15897
15964
  }
15898
15965
 
@@ -15959,7 +16026,7 @@ var StreamChat = /*#__PURE__*/function () {
15959
16026
  }, _callee89, this);
15960
16027
  }));
15961
16028
 
15962
- function deleteUsers(_x128) {
16029
+ function deleteUsers(_x127) {
15963
16030
  return _deleteUsers.apply(this, arguments);
15964
16031
  }
15965
16032
 
@@ -16001,7 +16068,7 @@ var StreamChat = /*#__PURE__*/function () {
16001
16068
  }, _callee90, this);
16002
16069
  }));
16003
16070
 
16004
- function _createImportURL(_x129) {
16071
+ function _createImportURL(_x128) {
16005
16072
  return _createImportURL2.apply(this, arguments);
16006
16073
  }
16007
16074
 
@@ -16049,7 +16116,7 @@ var StreamChat = /*#__PURE__*/function () {
16049
16116
  }, _callee91, this);
16050
16117
  }));
16051
16118
 
16052
- function _createImport(_x130) {
16119
+ function _createImport(_x129) {
16053
16120
  return _createImport2.apply(this, arguments);
16054
16121
  }
16055
16122
 
@@ -16090,7 +16157,7 @@ var StreamChat = /*#__PURE__*/function () {
16090
16157
  }, _callee92, this);
16091
16158
  }));
16092
16159
 
16093
- function _getImport(_x131) {
16160
+ function _getImport(_x130) {
16094
16161
  return _getImport2.apply(this, arguments);
16095
16162
  }
16096
16163
 
@@ -16131,7 +16198,7 @@ var StreamChat = /*#__PURE__*/function () {
16131
16198
  }, _callee93, this);
16132
16199
  }));
16133
16200
 
16134
- function _listImports(_x132) {
16201
+ function _listImports(_x131) {
16135
16202
  return _listImports2.apply(this, arguments);
16136
16203
  }
16137
16204
 
@@ -16171,7 +16238,7 @@ var StreamChat = /*#__PURE__*/function () {
16171
16238
  }, _callee94, this);
16172
16239
  }));
16173
16240
 
16174
- function upsertPushProvider(_x133) {
16241
+ function upsertPushProvider(_x132) {
16175
16242
  return _upsertPushProvider.apply(this, arguments);
16176
16243
  }
16177
16244
 
@@ -16211,7 +16278,7 @@ var StreamChat = /*#__PURE__*/function () {
16211
16278
  }, _callee95, this);
16212
16279
  }));
16213
16280
 
16214
- function deletePushProvider(_x134) {
16281
+ function deletePushProvider(_x133) {
16215
16282
  return _deletePushProvider.apply(this, arguments);
16216
16283
  }
16217
16284
 
@@ -16291,7 +16358,7 @@ var StreamChat = /*#__PURE__*/function () {
16291
16358
  }, _callee97, this);
16292
16359
  }));
16293
16360
 
16294
- function commitMessage(_x135) {
16361
+ function commitMessage(_x134) {
16295
16362
  return _commitMessage.apply(this, arguments);
16296
16363
  }
16297
16364
 
@@ -16328,7 +16395,7 @@ var StreamChat = /*#__PURE__*/function () {
16328
16395
  }, _callee98, this);
16329
16396
  }));
16330
16397
 
16331
- function createPoll(_x136, _x137) {
16398
+ function createPoll(_x135, _x136) {
16332
16399
  return _createPoll.apply(this, arguments);
16333
16400
  }
16334
16401
 
@@ -16365,7 +16432,7 @@ var StreamChat = /*#__PURE__*/function () {
16365
16432
  }, _callee99, this);
16366
16433
  }));
16367
16434
 
16368
- function getPoll(_x138, _x139) {
16435
+ function getPoll(_x137, _x138) {
16369
16436
  return _getPoll.apply(this, arguments);
16370
16437
  }
16371
16438
 
@@ -16402,7 +16469,7 @@ var StreamChat = /*#__PURE__*/function () {
16402
16469
  }, _callee100, this);
16403
16470
  }));
16404
16471
 
16405
- function updatePoll(_x140, _x141) {
16472
+ function updatePoll(_x139, _x140) {
16406
16473
  return _updatePoll.apply(this, arguments);
16407
16474
  }
16408
16475
 
@@ -16441,7 +16508,7 @@ var StreamChat = /*#__PURE__*/function () {
16441
16508
  }, _callee101, this);
16442
16509
  }));
16443
16510
 
16444
- function partialUpdatePoll(_x142, _x143, _x144) {
16511
+ function partialUpdatePoll(_x141, _x142, _x143) {
16445
16512
  return _partialUpdatePoll.apply(this, arguments);
16446
16513
  }
16447
16514
 
@@ -16478,7 +16545,7 @@ var StreamChat = /*#__PURE__*/function () {
16478
16545
  }, _callee102, this);
16479
16546
  }));
16480
16547
 
16481
- function deletePoll(_x145, _x146) {
16548
+ function deletePoll(_x144, _x145) {
16482
16549
  return _deletePoll.apply(this, arguments);
16483
16550
  }
16484
16551
 
@@ -16513,7 +16580,7 @@ var StreamChat = /*#__PURE__*/function () {
16513
16580
  }, _callee103, this);
16514
16581
  }));
16515
16582
 
16516
- function closePoll(_x147, _x148) {
16583
+ function closePoll(_x146, _x147) {
16517
16584
  return _closePoll.apply(this, arguments);
16518
16585
  }
16519
16586
 
@@ -16551,7 +16618,7 @@ var StreamChat = /*#__PURE__*/function () {
16551
16618
  }, _callee104, this);
16552
16619
  }));
16553
16620
 
16554
- function createPollOption(_x149, _x150, _x151) {
16621
+ function createPollOption(_x148, _x149, _x150) {
16555
16622
  return _createPollOption.apply(this, arguments);
16556
16623
  }
16557
16624
 
@@ -16589,7 +16656,7 @@ var StreamChat = /*#__PURE__*/function () {
16589
16656
  }, _callee105, this);
16590
16657
  }));
16591
16658
 
16592
- function getPollOption(_x152, _x153, _x154) {
16659
+ function getPollOption(_x151, _x152, _x153) {
16593
16660
  return _getPollOption.apply(this, arguments);
16594
16661
  }
16595
16662
 
@@ -16627,7 +16694,7 @@ var StreamChat = /*#__PURE__*/function () {
16627
16694
  }, _callee106, this);
16628
16695
  }));
16629
16696
 
16630
- function updatePollOption(_x155, _x156, _x157) {
16697
+ function updatePollOption(_x154, _x155, _x156) {
16631
16698
  return _updatePollOption.apply(this, arguments);
16632
16699
  }
16633
16700
 
@@ -16665,7 +16732,7 @@ var StreamChat = /*#__PURE__*/function () {
16665
16732
  }, _callee107, this);
16666
16733
  }));
16667
16734
 
16668
- function deletePollOption(_x158, _x159, _x160) {
16735
+ function deletePollOption(_x157, _x158, _x159) {
16669
16736
  return _deletePollOption.apply(this, arguments);
16670
16737
  }
16671
16738
 
@@ -16706,7 +16773,7 @@ var StreamChat = /*#__PURE__*/function () {
16706
16773
  }, _callee108, this);
16707
16774
  }));
16708
16775
 
16709
- function castPollVote(_x161, _x162, _x163, _x164) {
16776
+ function castPollVote(_x160, _x161, _x162, _x163) {
16710
16777
  return _castPollVote.apply(this, arguments);
16711
16778
  }
16712
16779
 
@@ -16740,7 +16807,7 @@ var StreamChat = /*#__PURE__*/function () {
16740
16807
  }, _callee109, this);
16741
16808
  }));
16742
16809
 
16743
- function addPollAnswer(_x165, _x166, _x167, _x168) {
16810
+ function addPollAnswer(_x164, _x165, _x166, _x167) {
16744
16811
  return _addPollAnswer.apply(this, arguments);
16745
16812
  }
16746
16813
 
@@ -16770,7 +16837,7 @@ var StreamChat = /*#__PURE__*/function () {
16770
16837
  }, _callee110, this);
16771
16838
  }));
16772
16839
 
16773
- function removePollVote(_x169, _x170, _x171, _x172) {
16840
+ function removePollVote(_x168, _x169, _x170, _x171) {
16774
16841
  return _removePollVote.apply(this, arguments);
16775
16842
  }
16776
16843
 
@@ -16873,7 +16940,7 @@ var StreamChat = /*#__PURE__*/function () {
16873
16940
  }, _callee112, this);
16874
16941
  }));
16875
16942
 
16876
- function queryPollVotes(_x173) {
16943
+ function queryPollVotes(_x172) {
16877
16944
  return _queryPollVotes.apply(this, arguments);
16878
16945
  }
16879
16946
 
@@ -16927,7 +16994,7 @@ var StreamChat = /*#__PURE__*/function () {
16927
16994
  }, _callee113, this);
16928
16995
  }));
16929
16996
 
16930
- function queryPollAnswers(_x174) {
16997
+ function queryPollAnswers(_x173) {
16931
16998
  return _queryPollAnswers.apply(this, arguments);
16932
16999
  }
16933
17000
 
@@ -17016,7 +17083,7 @@ var StreamChat = /*#__PURE__*/function () {
17016
17083
  }, _callee115, this);
17017
17084
  }));
17018
17085
 
17019
- function updateFlags(_x175, _x176) {
17086
+ function updateFlags(_x174, _x175) {
17020
17087
  return _updateFlags.apply(this, arguments);
17021
17088
  }
17022
17089
 
@@ -17082,6 +17149,7 @@ var EVENT_MAP = {
17082
17149
  'reaction.deleted': true,
17083
17150
  'reaction.new': true,
17084
17151
  'reaction.updated': true,
17152
+ 'thread.updated': true,
17085
17153
  'typing.start': true,
17086
17154
  'typing.stop': true,
17087
17155
  'user.banned': true,