stream-chat 8.10.0 → 8.11.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
@@ -3642,6 +3642,7 @@ var Channel = /*#__PURE__*/function () {
3642
3642
  channelState.read[event.user.id] = {
3643
3643
  // because in client.ts the handleEvent call that flows to this sets this `event.received_at = new Date();`
3644
3644
  last_read: new Date(event.created_at),
3645
+ last_read_message_id: event.last_read_message_id,
3645
3646
  user: event.user,
3646
3647
  unread_messages: 0
3647
3648
  };
@@ -7936,7 +7937,7 @@ var StreamChat = /*#__PURE__*/function () {
7936
7937
  *
7937
7938
  * @param {BannedUsersFilters} filterConditions MongoDB style filter conditions
7938
7939
  * @param {BannedUsersSort} sort Sort options [{created_at: 1}].
7939
- * @param {BannedUsersPaginationOptions} options Option object, {limit: 10, offset:0}
7940
+ * @param {BannedUsersPaginationOptions} options Option object, {limit: 10, offset:0, exclude_expired_bans: true}
7940
7941
  *
7941
7942
  * @return {Promise<BannedUsersResponse<StreamChatGenerics>>} Ban Query Response
7942
7943
  */
@@ -8349,36 +8350,6 @@ var StreamChat = /*#__PURE__*/function () {
8349
8350
 
8350
8351
  return getDevices;
8351
8352
  }()
8352
- }, {
8353
- key: "getUnreadCount",
8354
- value: function () {
8355
- var _getUnreadCount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(userID) {
8356
- return _regeneratorRuntime.wrap(function _callee23$(_context23) {
8357
- while (1) {
8358
- switch (_context23.prev = _context23.next) {
8359
- case 0:
8360
- _context23.next = 2;
8361
- return this.get(this.baseURL + '/unread', userID ? {
8362
- user_id: userID
8363
- } : {});
8364
-
8365
- case 2:
8366
- return _context23.abrupt("return", _context23.sent);
8367
-
8368
- case 3:
8369
- case "end":
8370
- return _context23.stop();
8371
- }
8372
- }
8373
- }, _callee23, this);
8374
- }));
8375
-
8376
- function getUnreadCount(_x25) {
8377
- return _getUnreadCount.apply(this, arguments);
8378
- }
8379
-
8380
- return getUnreadCount;
8381
- }()
8382
8353
  /**
8383
8354
  * removeDevice - Removes the device with the given id. Clientside users can only delete their own devices
8384
8355
  *
@@ -8390,12 +8361,12 @@ var StreamChat = /*#__PURE__*/function () {
8390
8361
  }, {
8391
8362
  key: "removeDevice",
8392
8363
  value: function () {
8393
- var _removeDevice = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(id, userID) {
8394
- return _regeneratorRuntime.wrap(function _callee24$(_context24) {
8364
+ var _removeDevice = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(id, userID) {
8365
+ return _regeneratorRuntime.wrap(function _callee23$(_context23) {
8395
8366
  while (1) {
8396
- switch (_context24.prev = _context24.next) {
8367
+ switch (_context23.prev = _context23.next) {
8397
8368
  case 0:
8398
- _context24.next = 2;
8369
+ _context23.next = 2;
8399
8370
  return this.delete(this.baseURL + '/devices', _objectSpread({
8400
8371
  id: id
8401
8372
  }, userID ? {
@@ -8403,17 +8374,17 @@ var StreamChat = /*#__PURE__*/function () {
8403
8374
  } : {}));
8404
8375
 
8405
8376
  case 2:
8406
- return _context24.abrupt("return", _context24.sent);
8377
+ return _context23.abrupt("return", _context23.sent);
8407
8378
 
8408
8379
  case 3:
8409
8380
  case "end":
8410
- return _context24.stop();
8381
+ return _context23.stop();
8411
8382
  }
8412
8383
  }
8413
- }, _callee24, this);
8384
+ }, _callee23, this);
8414
8385
  }));
8415
8386
 
8416
- function removeDevice(_x26, _x27) {
8387
+ function removeDevice(_x25, _x26) {
8417
8388
  return _removeDevice.apply(this, arguments);
8418
8389
  }
8419
8390
 
@@ -8430,15 +8401,15 @@ var StreamChat = /*#__PURE__*/function () {
8430
8401
  }, {
8431
8402
  key: "getRateLimits",
8432
8403
  value: function () {
8433
- var _getRateLimits = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(params) {
8404
+ var _getRateLimits = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(params) {
8434
8405
  var _ref7, serverSide, web, android, ios, endpoints;
8435
8406
 
8436
- return _regeneratorRuntime.wrap(function _callee25$(_context25) {
8407
+ return _regeneratorRuntime.wrap(function _callee24$(_context24) {
8437
8408
  while (1) {
8438
- switch (_context25.prev = _context25.next) {
8409
+ switch (_context24.prev = _context24.next) {
8439
8410
  case 0:
8440
8411
  _ref7 = params || {}, serverSide = _ref7.serverSide, web = _ref7.web, android = _ref7.android, ios = _ref7.ios, endpoints = _ref7.endpoints;
8441
- return _context25.abrupt("return", this.get(this.baseURL + '/rate_limits', {
8412
+ return _context24.abrupt("return", this.get(this.baseURL + '/rate_limits', {
8442
8413
  server_side: serverSide,
8443
8414
  web: web,
8444
8415
  android: android,
@@ -8448,13 +8419,13 @@ var StreamChat = /*#__PURE__*/function () {
8448
8419
 
8449
8420
  case 2:
8450
8421
  case "end":
8451
- return _context25.stop();
8422
+ return _context24.stop();
8452
8423
  }
8453
8424
  }
8454
- }, _callee25, this);
8425
+ }, _callee24, this);
8455
8426
  }));
8456
8427
 
8457
- function getRateLimits(_x28) {
8428
+ function getRateLimits(_x27) {
8458
8429
  return _getRateLimits.apply(this, arguments);
8459
8430
  }
8460
8431
 
@@ -8538,26 +8509,26 @@ var StreamChat = /*#__PURE__*/function () {
8538
8509
  * @return {Promise<{ users: { [key: string]: UserResponse<StreamChatGenerics> } }>} list of updated users
8539
8510
  */
8540
8511
  function () {
8541
- var _partialUpdateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(partialUserObject) {
8542
- return _regeneratorRuntime.wrap(function _callee26$(_context26) {
8512
+ var _partialUpdateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(partialUserObject) {
8513
+ return _regeneratorRuntime.wrap(function _callee25$(_context25) {
8543
8514
  while (1) {
8544
- switch (_context26.prev = _context26.next) {
8515
+ switch (_context25.prev = _context25.next) {
8545
8516
  case 0:
8546
- _context26.next = 2;
8517
+ _context25.next = 2;
8547
8518
  return this.partialUpdateUsers([partialUserObject]);
8548
8519
 
8549
8520
  case 2:
8550
- return _context26.abrupt("return", _context26.sent);
8521
+ return _context25.abrupt("return", _context25.sent);
8551
8522
 
8552
8523
  case 3:
8553
8524
  case "end":
8554
- return _context26.stop();
8525
+ return _context25.stop();
8555
8526
  }
8556
8527
  }
8557
- }, _callee26, this);
8528
+ }, _callee25, this);
8558
8529
  }));
8559
8530
 
8560
- function partialUpdateUser(_x29) {
8531
+ function partialUpdateUser(_x28) {
8561
8532
  return _partialUpdateUser.apply(this, arguments);
8562
8533
  }
8563
8534
 
@@ -8574,29 +8545,29 @@ var StreamChat = /*#__PURE__*/function () {
8574
8545
  }, {
8575
8546
  key: "upsertUsers",
8576
8547
  value: function () {
8577
- var _upsertUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(users) {
8548
+ var _upsertUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(users) {
8578
8549
  var userMap, _iterator4, _step4, userObject;
8579
8550
 
8580
- return _regeneratorRuntime.wrap(function _callee27$(_context27) {
8551
+ return _regeneratorRuntime.wrap(function _callee26$(_context26) {
8581
8552
  while (1) {
8582
- switch (_context27.prev = _context27.next) {
8553
+ switch (_context26.prev = _context26.next) {
8583
8554
  case 0:
8584
8555
  userMap = {};
8585
8556
  _iterator4 = _createForOfIteratorHelper(users);
8586
- _context27.prev = 2;
8557
+ _context26.prev = 2;
8587
8558
 
8588
8559
  _iterator4.s();
8589
8560
 
8590
8561
  case 4:
8591
8562
  if ((_step4 = _iterator4.n()).done) {
8592
- _context27.next = 11;
8563
+ _context26.next = 11;
8593
8564
  break;
8594
8565
  }
8595
8566
 
8596
8567
  userObject = _step4.value;
8597
8568
 
8598
8569
  if (userObject.id) {
8599
- _context27.next = 8;
8570
+ _context26.next = 8;
8600
8571
  break;
8601
8572
  }
8602
8573
 
@@ -8606,44 +8577,44 @@ var StreamChat = /*#__PURE__*/function () {
8606
8577
  userMap[userObject.id] = userObject;
8607
8578
 
8608
8579
  case 9:
8609
- _context27.next = 4;
8580
+ _context26.next = 4;
8610
8581
  break;
8611
8582
 
8612
8583
  case 11:
8613
- _context27.next = 16;
8584
+ _context26.next = 16;
8614
8585
  break;
8615
8586
 
8616
8587
  case 13:
8617
- _context27.prev = 13;
8618
- _context27.t0 = _context27["catch"](2);
8588
+ _context26.prev = 13;
8589
+ _context26.t0 = _context26["catch"](2);
8619
8590
 
8620
- _iterator4.e(_context27.t0);
8591
+ _iterator4.e(_context26.t0);
8621
8592
 
8622
8593
  case 16:
8623
- _context27.prev = 16;
8594
+ _context26.prev = 16;
8624
8595
 
8625
8596
  _iterator4.f();
8626
8597
 
8627
- return _context27.finish(16);
8598
+ return _context26.finish(16);
8628
8599
 
8629
8600
  case 19:
8630
- _context27.next = 21;
8601
+ _context26.next = 21;
8631
8602
  return this.post(this.baseURL + '/users', {
8632
8603
  users: userMap
8633
8604
  });
8634
8605
 
8635
8606
  case 21:
8636
- return _context27.abrupt("return", _context27.sent);
8607
+ return _context26.abrupt("return", _context26.sent);
8637
8608
 
8638
8609
  case 22:
8639
8610
  case "end":
8640
- return _context27.stop();
8611
+ return _context26.stop();
8641
8612
  }
8642
8613
  }
8643
- }, _callee27, this, [[2, 13, 16, 19]]);
8614
+ }, _callee26, this, [[2, 13, 16, 19]]);
8644
8615
  }));
8645
8616
 
8646
- function upsertUsers(_x30) {
8617
+ function upsertUsers(_x29) {
8647
8618
  return _upsertUsers.apply(this, arguments);
8648
8619
  }
8649
8620
 
@@ -8691,72 +8662,72 @@ var StreamChat = /*#__PURE__*/function () {
8691
8662
  * @return {Promise<{ users: { [key: string]: UserResponse<StreamChatGenerics> } }>}
8692
8663
  */
8693
8664
  function () {
8694
- var _partialUpdateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(users) {
8665
+ var _partialUpdateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(users) {
8695
8666
  var _iterator5, _step5, userObject;
8696
8667
 
8697
- return _regeneratorRuntime.wrap(function _callee28$(_context28) {
8668
+ return _regeneratorRuntime.wrap(function _callee27$(_context27) {
8698
8669
  while (1) {
8699
- switch (_context28.prev = _context28.next) {
8670
+ switch (_context27.prev = _context27.next) {
8700
8671
  case 0:
8701
8672
  _iterator5 = _createForOfIteratorHelper(users);
8702
- _context28.prev = 1;
8673
+ _context27.prev = 1;
8703
8674
 
8704
8675
  _iterator5.s();
8705
8676
 
8706
8677
  case 3:
8707
8678
  if ((_step5 = _iterator5.n()).done) {
8708
- _context28.next = 9;
8679
+ _context27.next = 9;
8709
8680
  break;
8710
8681
  }
8711
8682
 
8712
8683
  userObject = _step5.value;
8713
8684
 
8714
8685
  if (userObject.id) {
8715
- _context28.next = 7;
8686
+ _context27.next = 7;
8716
8687
  break;
8717
8688
  }
8718
8689
 
8719
8690
  throw Error('User ID is required when updating a user');
8720
8691
 
8721
8692
  case 7:
8722
- _context28.next = 3;
8693
+ _context27.next = 3;
8723
8694
  break;
8724
8695
 
8725
8696
  case 9:
8726
- _context28.next = 14;
8697
+ _context27.next = 14;
8727
8698
  break;
8728
8699
 
8729
8700
  case 11:
8730
- _context28.prev = 11;
8731
- _context28.t0 = _context28["catch"](1);
8701
+ _context27.prev = 11;
8702
+ _context27.t0 = _context27["catch"](1);
8732
8703
 
8733
- _iterator5.e(_context28.t0);
8704
+ _iterator5.e(_context27.t0);
8734
8705
 
8735
8706
  case 14:
8736
- _context28.prev = 14;
8707
+ _context27.prev = 14;
8737
8708
 
8738
8709
  _iterator5.f();
8739
8710
 
8740
- return _context28.finish(14);
8711
+ return _context27.finish(14);
8741
8712
 
8742
8713
  case 17:
8743
- _context28.next = 19;
8714
+ _context27.next = 19;
8744
8715
  return this.patch(this.baseURL + '/users', {
8745
8716
  users: users
8746
8717
  });
8747
8718
 
8748
8719
  case 19:
8749
- return _context28.abrupt("return", _context28.sent);
8720
+ return _context27.abrupt("return", _context27.sent);
8750
8721
 
8751
8722
  case 20:
8752
8723
  case "end":
8753
- return _context28.stop();
8724
+ return _context27.stop();
8754
8725
  }
8755
8726
  }
8756
- }, _callee28, this, [[1, 11, 14, 17]]);
8727
+ }, _callee27, this, [[1, 11, 14, 17]]);
8757
8728
  }));
8758
8729
 
8759
- function partialUpdateUsers(_x31) {
8730
+ function partialUpdateUsers(_x30) {
8760
8731
  return _partialUpdateUsers.apply(this, arguments);
8761
8732
  }
8762
8733
 
@@ -8765,26 +8736,26 @@ var StreamChat = /*#__PURE__*/function () {
8765
8736
  }, {
8766
8737
  key: "deleteUser",
8767
8738
  value: function () {
8768
- var _deleteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29(userID, params) {
8769
- return _regeneratorRuntime.wrap(function _callee29$(_context29) {
8739
+ var _deleteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(userID, params) {
8740
+ return _regeneratorRuntime.wrap(function _callee28$(_context28) {
8770
8741
  while (1) {
8771
- switch (_context29.prev = _context29.next) {
8742
+ switch (_context28.prev = _context28.next) {
8772
8743
  case 0:
8773
- _context29.next = 2;
8744
+ _context28.next = 2;
8774
8745
  return this.delete(this.baseURL + "/users/".concat(userID), params);
8775
8746
 
8776
8747
  case 2:
8777
- return _context29.abrupt("return", _context29.sent);
8748
+ return _context28.abrupt("return", _context28.sent);
8778
8749
 
8779
8750
  case 3:
8780
8751
  case "end":
8781
- return _context29.stop();
8752
+ return _context28.stop();
8782
8753
  }
8783
8754
  }
8784
- }, _callee29, this);
8755
+ }, _callee28, this);
8785
8756
  }));
8786
8757
 
8787
- function deleteUser(_x32, _x33) {
8758
+ function deleteUser(_x31, _x32) {
8788
8759
  return _deleteUser.apply(this, arguments);
8789
8760
  }
8790
8761
 
@@ -8801,28 +8772,28 @@ var StreamChat = /*#__PURE__*/function () {
8801
8772
  }, {
8802
8773
  key: "restoreUsers",
8803
8774
  value: function () {
8804
- var _restoreUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(user_ids) {
8805
- return _regeneratorRuntime.wrap(function _callee30$(_context30) {
8775
+ var _restoreUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29(user_ids) {
8776
+ return _regeneratorRuntime.wrap(function _callee29$(_context29) {
8806
8777
  while (1) {
8807
- switch (_context30.prev = _context30.next) {
8778
+ switch (_context29.prev = _context29.next) {
8808
8779
  case 0:
8809
- _context30.next = 2;
8780
+ _context29.next = 2;
8810
8781
  return this.post(this.baseURL + "/users/restore", {
8811
8782
  user_ids: user_ids
8812
8783
  });
8813
8784
 
8814
8785
  case 2:
8815
- return _context30.abrupt("return", _context30.sent);
8786
+ return _context29.abrupt("return", _context29.sent);
8816
8787
 
8817
8788
  case 3:
8818
8789
  case "end":
8819
- return _context30.stop();
8790
+ return _context29.stop();
8820
8791
  }
8821
8792
  }
8822
- }, _callee30, this);
8793
+ }, _callee29, this);
8823
8794
  }));
8824
8795
 
8825
- function restoreUsers(_x34) {
8796
+ function restoreUsers(_x33) {
8826
8797
  return _restoreUsers.apply(this, arguments);
8827
8798
  }
8828
8799
 
@@ -8840,26 +8811,26 @@ var StreamChat = /*#__PURE__*/function () {
8840
8811
  }, {
8841
8812
  key: "reactivateUser",
8842
8813
  value: function () {
8843
- var _reactivateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(userID, options) {
8844
- return _regeneratorRuntime.wrap(function _callee31$(_context31) {
8814
+ var _reactivateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(userID, options) {
8815
+ return _regeneratorRuntime.wrap(function _callee30$(_context30) {
8845
8816
  while (1) {
8846
- switch (_context31.prev = _context31.next) {
8817
+ switch (_context30.prev = _context30.next) {
8847
8818
  case 0:
8848
- _context31.next = 2;
8819
+ _context30.next = 2;
8849
8820
  return this.post(this.baseURL + "/users/".concat(userID, "/reactivate"), _objectSpread({}, options));
8850
8821
 
8851
8822
  case 2:
8852
- return _context31.abrupt("return", _context31.sent);
8823
+ return _context30.abrupt("return", _context30.sent);
8853
8824
 
8854
8825
  case 3:
8855
8826
  case "end":
8856
- return _context31.stop();
8827
+ return _context30.stop();
8857
8828
  }
8858
8829
  }
8859
- }, _callee31, this);
8830
+ }, _callee30, this);
8860
8831
  }));
8861
8832
 
8862
- function reactivateUser(_x35, _x36) {
8833
+ function reactivateUser(_x34, _x35) {
8863
8834
  return _reactivateUser.apply(this, arguments);
8864
8835
  }
8865
8836
 
@@ -8877,28 +8848,28 @@ var StreamChat = /*#__PURE__*/function () {
8877
8848
  }, {
8878
8849
  key: "reactivateUsers",
8879
8850
  value: function () {
8880
- var _reactivateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(user_ids, options) {
8881
- return _regeneratorRuntime.wrap(function _callee32$(_context32) {
8851
+ var _reactivateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(user_ids, options) {
8852
+ return _regeneratorRuntime.wrap(function _callee31$(_context31) {
8882
8853
  while (1) {
8883
- switch (_context32.prev = _context32.next) {
8854
+ switch (_context31.prev = _context31.next) {
8884
8855
  case 0:
8885
- _context32.next = 2;
8856
+ _context31.next = 2;
8886
8857
  return this.post(this.baseURL + "/users/reactivate", _objectSpread({
8887
8858
  user_ids: user_ids
8888
8859
  }, options));
8889
8860
 
8890
8861
  case 2:
8891
- return _context32.abrupt("return", _context32.sent);
8862
+ return _context31.abrupt("return", _context31.sent);
8892
8863
 
8893
8864
  case 3:
8894
8865
  case "end":
8895
- return _context32.stop();
8866
+ return _context31.stop();
8896
8867
  }
8897
8868
  }
8898
- }, _callee32, this);
8869
+ }, _callee31, this);
8899
8870
  }));
8900
8871
 
8901
- function reactivateUsers(_x37, _x38) {
8872
+ function reactivateUsers(_x36, _x37) {
8902
8873
  return _reactivateUsers.apply(this, arguments);
8903
8874
  }
8904
8875
 
@@ -8916,26 +8887,26 @@ var StreamChat = /*#__PURE__*/function () {
8916
8887
  }, {
8917
8888
  key: "deactivateUser",
8918
8889
  value: function () {
8919
- var _deactivateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(userID, options) {
8920
- return _regeneratorRuntime.wrap(function _callee33$(_context33) {
8890
+ var _deactivateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(userID, options) {
8891
+ return _regeneratorRuntime.wrap(function _callee32$(_context32) {
8921
8892
  while (1) {
8922
- switch (_context33.prev = _context33.next) {
8893
+ switch (_context32.prev = _context32.next) {
8923
8894
  case 0:
8924
- _context33.next = 2;
8895
+ _context32.next = 2;
8925
8896
  return this.post(this.baseURL + "/users/".concat(userID, "/deactivate"), _objectSpread({}, options));
8926
8897
 
8927
8898
  case 2:
8928
- return _context33.abrupt("return", _context33.sent);
8899
+ return _context32.abrupt("return", _context32.sent);
8929
8900
 
8930
8901
  case 3:
8931
8902
  case "end":
8932
- return _context33.stop();
8903
+ return _context32.stop();
8933
8904
  }
8934
8905
  }
8935
- }, _callee33, this);
8906
+ }, _callee32, this);
8936
8907
  }));
8937
8908
 
8938
- function deactivateUser(_x39, _x40) {
8909
+ function deactivateUser(_x38, _x39) {
8939
8910
  return _deactivateUser.apply(this, arguments);
8940
8911
  }
8941
8912
 
@@ -8953,28 +8924,28 @@ var StreamChat = /*#__PURE__*/function () {
8953
8924
  }, {
8954
8925
  key: "deactivateUsers",
8955
8926
  value: function () {
8956
- var _deactivateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(user_ids, options) {
8957
- return _regeneratorRuntime.wrap(function _callee34$(_context34) {
8927
+ var _deactivateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(user_ids, options) {
8928
+ return _regeneratorRuntime.wrap(function _callee33$(_context33) {
8958
8929
  while (1) {
8959
- switch (_context34.prev = _context34.next) {
8930
+ switch (_context33.prev = _context33.next) {
8960
8931
  case 0:
8961
- _context34.next = 2;
8932
+ _context33.next = 2;
8962
8933
  return this.post(this.baseURL + "/users/deactivate", _objectSpread({
8963
8934
  user_ids: user_ids
8964
8935
  }, options));
8965
8936
 
8966
8937
  case 2:
8967
- return _context34.abrupt("return", _context34.sent);
8938
+ return _context33.abrupt("return", _context33.sent);
8968
8939
 
8969
8940
  case 3:
8970
8941
  case "end":
8971
- return _context34.stop();
8942
+ return _context33.stop();
8972
8943
  }
8973
8944
  }
8974
- }, _callee34, this);
8945
+ }, _callee33, this);
8975
8946
  }));
8976
8947
 
8977
- function deactivateUsers(_x41, _x42) {
8948
+ function deactivateUsers(_x40, _x41) {
8978
8949
  return _deactivateUsers.apply(this, arguments);
8979
8950
  }
8980
8951
 
@@ -8983,26 +8954,26 @@ var StreamChat = /*#__PURE__*/function () {
8983
8954
  }, {
8984
8955
  key: "exportUser",
8985
8956
  value: function () {
8986
- var _exportUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(userID, options) {
8987
- return _regeneratorRuntime.wrap(function _callee35$(_context35) {
8957
+ var _exportUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(userID, options) {
8958
+ return _regeneratorRuntime.wrap(function _callee34$(_context34) {
8988
8959
  while (1) {
8989
- switch (_context35.prev = _context35.next) {
8960
+ switch (_context34.prev = _context34.next) {
8990
8961
  case 0:
8991
- _context35.next = 2;
8962
+ _context34.next = 2;
8992
8963
  return this.get(this.baseURL + "/users/".concat(userID, "/export"), _objectSpread({}, options));
8993
8964
 
8994
8965
  case 2:
8995
- return _context35.abrupt("return", _context35.sent);
8966
+ return _context34.abrupt("return", _context34.sent);
8996
8967
 
8997
8968
  case 3:
8998
8969
  case "end":
8999
- return _context35.stop();
8970
+ return _context34.stop();
9000
8971
  }
9001
8972
  }
9002
- }, _callee35, this);
8973
+ }, _callee34, this);
9003
8974
  }));
9004
8975
 
9005
- function exportUser(_x43, _x44) {
8976
+ function exportUser(_x42, _x43) {
9006
8977
  return _exportUser.apply(this, arguments);
9007
8978
  }
9008
8979
 
@@ -9018,28 +8989,28 @@ var StreamChat = /*#__PURE__*/function () {
9018
8989
  }, {
9019
8990
  key: "banUser",
9020
8991
  value: function () {
9021
- var _banUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(targetUserID, options) {
9022
- return _regeneratorRuntime.wrap(function _callee36$(_context36) {
8992
+ var _banUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(targetUserID, options) {
8993
+ return _regeneratorRuntime.wrap(function _callee35$(_context35) {
9023
8994
  while (1) {
9024
- switch (_context36.prev = _context36.next) {
8995
+ switch (_context35.prev = _context35.next) {
9025
8996
  case 0:
9026
- _context36.next = 2;
8997
+ _context35.next = 2;
9027
8998
  return this.post(this.baseURL + '/moderation/ban', _objectSpread({
9028
8999
  target_user_id: targetUserID
9029
9000
  }, options));
9030
9001
 
9031
9002
  case 2:
9032
- return _context36.abrupt("return", _context36.sent);
9003
+ return _context35.abrupt("return", _context35.sent);
9033
9004
 
9034
9005
  case 3:
9035
9006
  case "end":
9036
- return _context36.stop();
9007
+ return _context35.stop();
9037
9008
  }
9038
9009
  }
9039
- }, _callee36, this);
9010
+ }, _callee35, this);
9040
9011
  }));
9041
9012
 
9042
- function banUser(_x45, _x46) {
9013
+ function banUser(_x44, _x45) {
9043
9014
  return _banUser.apply(this, arguments);
9044
9015
  }
9045
9016
 
@@ -9055,28 +9026,28 @@ var StreamChat = /*#__PURE__*/function () {
9055
9026
  }, {
9056
9027
  key: "unbanUser",
9057
9028
  value: function () {
9058
- var _unbanUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(targetUserID, options) {
9059
- return _regeneratorRuntime.wrap(function _callee37$(_context37) {
9029
+ var _unbanUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(targetUserID, options) {
9030
+ return _regeneratorRuntime.wrap(function _callee36$(_context36) {
9060
9031
  while (1) {
9061
- switch (_context37.prev = _context37.next) {
9032
+ switch (_context36.prev = _context36.next) {
9062
9033
  case 0:
9063
- _context37.next = 2;
9034
+ _context36.next = 2;
9064
9035
  return this.delete(this.baseURL + '/moderation/ban', _objectSpread({
9065
9036
  target_user_id: targetUserID
9066
9037
  }, options));
9067
9038
 
9068
9039
  case 2:
9069
- return _context37.abrupt("return", _context37.sent);
9040
+ return _context36.abrupt("return", _context36.sent);
9070
9041
 
9071
9042
  case 3:
9072
9043
  case "end":
9073
- return _context37.stop();
9044
+ return _context36.stop();
9074
9045
  }
9075
9046
  }
9076
- }, _callee37, this);
9047
+ }, _callee36, this);
9077
9048
  }));
9078
9049
 
9079
- function unbanUser(_x47, _x48) {
9050
+ function unbanUser(_x46, _x47) {
9080
9051
  return _unbanUser.apply(this, arguments);
9081
9052
  }
9082
9053
 
@@ -9092,28 +9063,28 @@ var StreamChat = /*#__PURE__*/function () {
9092
9063
  }, {
9093
9064
  key: "shadowBan",
9094
9065
  value: function () {
9095
- var _shadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(targetUserID, options) {
9096
- return _regeneratorRuntime.wrap(function _callee38$(_context38) {
9066
+ var _shadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(targetUserID, options) {
9067
+ return _regeneratorRuntime.wrap(function _callee37$(_context37) {
9097
9068
  while (1) {
9098
- switch (_context38.prev = _context38.next) {
9069
+ switch (_context37.prev = _context37.next) {
9099
9070
  case 0:
9100
- _context38.next = 2;
9071
+ _context37.next = 2;
9101
9072
  return this.banUser(targetUserID, _objectSpread({
9102
9073
  shadow: true
9103
9074
  }, options));
9104
9075
 
9105
9076
  case 2:
9106
- return _context38.abrupt("return", _context38.sent);
9077
+ return _context37.abrupt("return", _context37.sent);
9107
9078
 
9108
9079
  case 3:
9109
9080
  case "end":
9110
- return _context38.stop();
9081
+ return _context37.stop();
9111
9082
  }
9112
9083
  }
9113
- }, _callee38, this);
9084
+ }, _callee37, this);
9114
9085
  }));
9115
9086
 
9116
- function shadowBan(_x49, _x50) {
9087
+ function shadowBan(_x48, _x49) {
9117
9088
  return _shadowBan.apply(this, arguments);
9118
9089
  }
9119
9090
 
@@ -9129,28 +9100,28 @@ var StreamChat = /*#__PURE__*/function () {
9129
9100
  }, {
9130
9101
  key: "removeShadowBan",
9131
9102
  value: function () {
9132
- var _removeShadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(targetUserID, options) {
9133
- return _regeneratorRuntime.wrap(function _callee39$(_context39) {
9103
+ var _removeShadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(targetUserID, options) {
9104
+ return _regeneratorRuntime.wrap(function _callee38$(_context38) {
9134
9105
  while (1) {
9135
- switch (_context39.prev = _context39.next) {
9106
+ switch (_context38.prev = _context38.next) {
9136
9107
  case 0:
9137
- _context39.next = 2;
9108
+ _context38.next = 2;
9138
9109
  return this.unbanUser(targetUserID, _objectSpread({
9139
9110
  shadow: true
9140
9111
  }, options));
9141
9112
 
9142
9113
  case 2:
9143
- return _context39.abrupt("return", _context39.sent);
9114
+ return _context38.abrupt("return", _context38.sent);
9144
9115
 
9145
9116
  case 3:
9146
9117
  case "end":
9147
- return _context39.stop();
9118
+ return _context38.stop();
9148
9119
  }
9149
9120
  }
9150
- }, _callee39, this);
9121
+ }, _callee38, this);
9151
9122
  }));
9152
9123
 
9153
- function removeShadowBan(_x51, _x52) {
9124
+ function removeShadowBan(_x50, _x51) {
9154
9125
  return _removeShadowBan.apply(this, arguments);
9155
9126
  }
9156
9127
 
@@ -9167,15 +9138,15 @@ var StreamChat = /*#__PURE__*/function () {
9167
9138
  }, {
9168
9139
  key: "muteUser",
9169
9140
  value: function () {
9170
- var _muteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(targetID, userID) {
9141
+ var _muteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(targetID, userID) {
9171
9142
  var options,
9172
- _args40 = arguments;
9173
- return _regeneratorRuntime.wrap(function _callee40$(_context40) {
9143
+ _args39 = arguments;
9144
+ return _regeneratorRuntime.wrap(function _callee39$(_context39) {
9174
9145
  while (1) {
9175
- switch (_context40.prev = _context40.next) {
9146
+ switch (_context39.prev = _context39.next) {
9176
9147
  case 0:
9177
- options = _args40.length > 2 && _args40[2] !== undefined ? _args40[2] : {};
9178
- _context40.next = 3;
9148
+ options = _args39.length > 2 && _args39[2] !== undefined ? _args39[2] : {};
9149
+ _context39.next = 3;
9179
9150
  return this.post(this.baseURL + '/moderation/mute', _objectSpread(_objectSpread({
9180
9151
  target_id: targetID
9181
9152
  }, userID ? {
@@ -9183,17 +9154,17 @@ var StreamChat = /*#__PURE__*/function () {
9183
9154
  } : {}), options));
9184
9155
 
9185
9156
  case 3:
9186
- return _context40.abrupt("return", _context40.sent);
9157
+ return _context39.abrupt("return", _context39.sent);
9187
9158
 
9188
9159
  case 4:
9189
9160
  case "end":
9190
- return _context40.stop();
9161
+ return _context39.stop();
9191
9162
  }
9192
9163
  }
9193
- }, _callee40, this);
9164
+ }, _callee39, this);
9194
9165
  }));
9195
9166
 
9196
- function muteUser(_x53, _x54) {
9167
+ function muteUser(_x52, _x53) {
9197
9168
  return _muteUser.apply(this, arguments);
9198
9169
  }
9199
9170
 
@@ -9209,12 +9180,12 @@ var StreamChat = /*#__PURE__*/function () {
9209
9180
  }, {
9210
9181
  key: "unmuteUser",
9211
9182
  value: function () {
9212
- var _unmuteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(targetID, currentUserID) {
9213
- return _regeneratorRuntime.wrap(function _callee41$(_context41) {
9183
+ var _unmuteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(targetID, currentUserID) {
9184
+ return _regeneratorRuntime.wrap(function _callee40$(_context40) {
9214
9185
  while (1) {
9215
- switch (_context41.prev = _context41.next) {
9186
+ switch (_context40.prev = _context40.next) {
9216
9187
  case 0:
9217
- _context41.next = 2;
9188
+ _context40.next = 2;
9218
9189
  return this.post(this.baseURL + '/moderation/unmute', _objectSpread({
9219
9190
  target_id: targetID
9220
9191
  }, currentUserID ? {
@@ -9222,17 +9193,17 @@ var StreamChat = /*#__PURE__*/function () {
9222
9193
  } : {}));
9223
9194
 
9224
9195
  case 2:
9225
- return _context41.abrupt("return", _context41.sent);
9196
+ return _context40.abrupt("return", _context40.sent);
9226
9197
 
9227
9198
  case 3:
9228
9199
  case "end":
9229
- return _context41.stop();
9200
+ return _context40.stop();
9230
9201
  }
9231
9202
  }
9232
- }, _callee41, this);
9203
+ }, _callee40, this);
9233
9204
  }));
9234
9205
 
9235
- function unmuteUser(_x55, _x56) {
9206
+ function unmuteUser(_x54, _x55) {
9236
9207
  return _unmuteUser.apply(this, arguments);
9237
9208
  }
9238
9209
 
@@ -9267,31 +9238,31 @@ var StreamChat = /*#__PURE__*/function () {
9267
9238
  }, {
9268
9239
  key: "flagMessage",
9269
9240
  value: function () {
9270
- var _flagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(targetMessageID) {
9241
+ var _flagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(targetMessageID) {
9271
9242
  var options,
9272
- _args42 = arguments;
9273
- return _regeneratorRuntime.wrap(function _callee42$(_context42) {
9243
+ _args41 = arguments;
9244
+ return _regeneratorRuntime.wrap(function _callee41$(_context41) {
9274
9245
  while (1) {
9275
- switch (_context42.prev = _context42.next) {
9246
+ switch (_context41.prev = _context41.next) {
9276
9247
  case 0:
9277
- options = _args42.length > 1 && _args42[1] !== undefined ? _args42[1] : {};
9278
- _context42.next = 3;
9248
+ options = _args41.length > 1 && _args41[1] !== undefined ? _args41[1] : {};
9249
+ _context41.next = 3;
9279
9250
  return this.post(this.baseURL + '/moderation/flag', _objectSpread({
9280
9251
  target_message_id: targetMessageID
9281
9252
  }, options));
9282
9253
 
9283
9254
  case 3:
9284
- return _context42.abrupt("return", _context42.sent);
9255
+ return _context41.abrupt("return", _context41.sent);
9285
9256
 
9286
9257
  case 4:
9287
9258
  case "end":
9288
- return _context42.stop();
9259
+ return _context41.stop();
9289
9260
  }
9290
9261
  }
9291
- }, _callee42, this);
9262
+ }, _callee41, this);
9292
9263
  }));
9293
9264
 
9294
- function flagMessage(_x57) {
9265
+ function flagMessage(_x56) {
9295
9266
  return _flagMessage.apply(this, arguments);
9296
9267
  }
9297
9268
 
@@ -9307,31 +9278,31 @@ var StreamChat = /*#__PURE__*/function () {
9307
9278
  }, {
9308
9279
  key: "flagUser",
9309
9280
  value: function () {
9310
- var _flagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(targetID) {
9281
+ var _flagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(targetID) {
9311
9282
  var options,
9312
- _args43 = arguments;
9313
- return _regeneratorRuntime.wrap(function _callee43$(_context43) {
9283
+ _args42 = arguments;
9284
+ return _regeneratorRuntime.wrap(function _callee42$(_context42) {
9314
9285
  while (1) {
9315
- switch (_context43.prev = _context43.next) {
9286
+ switch (_context42.prev = _context42.next) {
9316
9287
  case 0:
9317
- options = _args43.length > 1 && _args43[1] !== undefined ? _args43[1] : {};
9318
- _context43.next = 3;
9288
+ options = _args42.length > 1 && _args42[1] !== undefined ? _args42[1] : {};
9289
+ _context42.next = 3;
9319
9290
  return this.post(this.baseURL + '/moderation/flag', _objectSpread({
9320
9291
  target_user_id: targetID
9321
9292
  }, options));
9322
9293
 
9323
9294
  case 3:
9324
- return _context43.abrupt("return", _context43.sent);
9295
+ return _context42.abrupt("return", _context42.sent);
9325
9296
 
9326
9297
  case 4:
9327
9298
  case "end":
9328
- return _context43.stop();
9299
+ return _context42.stop();
9329
9300
  }
9330
9301
  }
9331
- }, _callee43, this);
9302
+ }, _callee42, this);
9332
9303
  }));
9333
9304
 
9334
- function flagUser(_x58) {
9305
+ function flagUser(_x57) {
9335
9306
  return _flagUser.apply(this, arguments);
9336
9307
  }
9337
9308
 
@@ -9347,31 +9318,31 @@ var StreamChat = /*#__PURE__*/function () {
9347
9318
  }, {
9348
9319
  key: "unflagMessage",
9349
9320
  value: function () {
9350
- var _unflagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(targetMessageID) {
9321
+ var _unflagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(targetMessageID) {
9351
9322
  var options,
9352
- _args44 = arguments;
9353
- return _regeneratorRuntime.wrap(function _callee44$(_context44) {
9323
+ _args43 = arguments;
9324
+ return _regeneratorRuntime.wrap(function _callee43$(_context43) {
9354
9325
  while (1) {
9355
- switch (_context44.prev = _context44.next) {
9326
+ switch (_context43.prev = _context43.next) {
9356
9327
  case 0:
9357
- options = _args44.length > 1 && _args44[1] !== undefined ? _args44[1] : {};
9358
- _context44.next = 3;
9328
+ options = _args43.length > 1 && _args43[1] !== undefined ? _args43[1] : {};
9329
+ _context43.next = 3;
9359
9330
  return this.post(this.baseURL + '/moderation/unflag', _objectSpread({
9360
9331
  target_message_id: targetMessageID
9361
9332
  }, options));
9362
9333
 
9363
9334
  case 3:
9364
- return _context44.abrupt("return", _context44.sent);
9335
+ return _context43.abrupt("return", _context43.sent);
9365
9336
 
9366
9337
  case 4:
9367
9338
  case "end":
9368
- return _context44.stop();
9339
+ return _context43.stop();
9369
9340
  }
9370
9341
  }
9371
- }, _callee44, this);
9342
+ }, _callee43, this);
9372
9343
  }));
9373
9344
 
9374
- function unflagMessage(_x59) {
9345
+ function unflagMessage(_x58) {
9375
9346
  return _unflagMessage.apply(this, arguments);
9376
9347
  }
9377
9348
 
@@ -9387,31 +9358,31 @@ var StreamChat = /*#__PURE__*/function () {
9387
9358
  }, {
9388
9359
  key: "unflagUser",
9389
9360
  value: function () {
9390
- var _unflagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(targetID) {
9361
+ var _unflagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(targetID) {
9391
9362
  var options,
9392
- _args45 = arguments;
9393
- return _regeneratorRuntime.wrap(function _callee45$(_context45) {
9363
+ _args44 = arguments;
9364
+ return _regeneratorRuntime.wrap(function _callee44$(_context44) {
9394
9365
  while (1) {
9395
- switch (_context45.prev = _context45.next) {
9366
+ switch (_context44.prev = _context44.next) {
9396
9367
  case 0:
9397
- options = _args45.length > 1 && _args45[1] !== undefined ? _args45[1] : {};
9398
- _context45.next = 3;
9368
+ options = _args44.length > 1 && _args44[1] !== undefined ? _args44[1] : {};
9369
+ _context44.next = 3;
9399
9370
  return this.post(this.baseURL + '/moderation/unflag', _objectSpread({
9400
9371
  target_user_id: targetID
9401
9372
  }, options));
9402
9373
 
9403
9374
  case 3:
9404
- return _context45.abrupt("return", _context45.sent);
9375
+ return _context44.abrupt("return", _context44.sent);
9405
9376
 
9406
9377
  case 4:
9407
9378
  case "end":
9408
- return _context45.stop();
9379
+ return _context44.stop();
9409
9380
  }
9410
9381
  }
9411
- }, _callee45, this);
9382
+ }, _callee44, this);
9412
9383
  }));
9413
9384
 
9414
- function unflagUser(_x60) {
9385
+ function unflagUser(_x59) {
9415
9386
  return _unflagUser.apply(this, arguments);
9416
9387
  }
9417
9388
 
@@ -9428,29 +9399,29 @@ var StreamChat = /*#__PURE__*/function () {
9428
9399
  }, {
9429
9400
  key: "getCallToken",
9430
9401
  value: function () {
9431
- var _getCallToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(callID) {
9402
+ var _getCallToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(callID) {
9432
9403
  var options,
9433
- _args46 = arguments;
9434
- return _regeneratorRuntime.wrap(function _callee46$(_context46) {
9404
+ _args45 = arguments;
9405
+ return _regeneratorRuntime.wrap(function _callee45$(_context45) {
9435
9406
  while (1) {
9436
- switch (_context46.prev = _context46.next) {
9407
+ switch (_context45.prev = _context45.next) {
9437
9408
  case 0:
9438
- options = _args46.length > 1 && _args46[1] !== undefined ? _args46[1] : {};
9439
- _context46.next = 3;
9409
+ options = _args45.length > 1 && _args45[1] !== undefined ? _args45[1] : {};
9410
+ _context45.next = 3;
9440
9411
  return this.post(this.baseURL + "/calls/".concat(callID), _objectSpread({}, options));
9441
9412
 
9442
9413
  case 3:
9443
- return _context46.abrupt("return", _context46.sent);
9414
+ return _context45.abrupt("return", _context45.sent);
9444
9415
 
9445
9416
  case 4:
9446
9417
  case "end":
9447
- return _context46.stop();
9418
+ return _context45.stop();
9448
9419
  }
9449
9420
  }
9450
- }, _callee46, this);
9421
+ }, _callee45, this);
9451
9422
  }));
9452
9423
 
9453
- function getCallToken(_x61) {
9424
+ function getCallToken(_x60) {
9454
9425
  return _getCallToken.apply(this, arguments);
9455
9426
  }
9456
9427
 
@@ -9473,30 +9444,30 @@ var StreamChat = /*#__PURE__*/function () {
9473
9444
  }, {
9474
9445
  key: "_queryFlags",
9475
9446
  value: function () {
9476
- var _queryFlags2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47() {
9447
+ var _queryFlags2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46() {
9477
9448
  var filterConditions,
9478
9449
  options,
9479
- _args47 = arguments;
9480
- return _regeneratorRuntime.wrap(function _callee47$(_context47) {
9450
+ _args46 = arguments;
9451
+ return _regeneratorRuntime.wrap(function _callee46$(_context46) {
9481
9452
  while (1) {
9482
- switch (_context47.prev = _context47.next) {
9453
+ switch (_context46.prev = _context46.next) {
9483
9454
  case 0:
9484
- filterConditions = _args47.length > 0 && _args47[0] !== undefined ? _args47[0] : {};
9485
- options = _args47.length > 1 && _args47[1] !== undefined ? _args47[1] : {};
9486
- _context47.next = 4;
9455
+ filterConditions = _args46.length > 0 && _args46[0] !== undefined ? _args46[0] : {};
9456
+ options = _args46.length > 1 && _args46[1] !== undefined ? _args46[1] : {};
9457
+ _context46.next = 4;
9487
9458
  return this.post(this.baseURL + '/moderation/flags', _objectSpread({
9488
9459
  filter_conditions: filterConditions
9489
9460
  }, options));
9490
9461
 
9491
9462
  case 4:
9492
- return _context47.abrupt("return", _context47.sent);
9463
+ return _context46.abrupt("return", _context46.sent);
9493
9464
 
9494
9465
  case 5:
9495
9466
  case "end":
9496
- return _context47.stop();
9467
+ return _context46.stop();
9497
9468
  }
9498
9469
  }
9499
- }, _callee47, this);
9470
+ }, _callee46, this);
9500
9471
  }));
9501
9472
 
9502
9473
  function _queryFlags() {
@@ -9522,30 +9493,30 @@ var StreamChat = /*#__PURE__*/function () {
9522
9493
  }, {
9523
9494
  key: "_queryFlagReports",
9524
9495
  value: function () {
9525
- var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48() {
9496
+ var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47() {
9526
9497
  var filterConditions,
9527
9498
  options,
9528
- _args48 = arguments;
9529
- return _regeneratorRuntime.wrap(function _callee48$(_context48) {
9499
+ _args47 = arguments;
9500
+ return _regeneratorRuntime.wrap(function _callee47$(_context47) {
9530
9501
  while (1) {
9531
- switch (_context48.prev = _context48.next) {
9502
+ switch (_context47.prev = _context47.next) {
9532
9503
  case 0:
9533
- filterConditions = _args48.length > 0 && _args48[0] !== undefined ? _args48[0] : {};
9534
- options = _args48.length > 1 && _args48[1] !== undefined ? _args48[1] : {};
9535
- _context48.next = 4;
9504
+ filterConditions = _args47.length > 0 && _args47[0] !== undefined ? _args47[0] : {};
9505
+ options = _args47.length > 1 && _args47[1] !== undefined ? _args47[1] : {};
9506
+ _context47.next = 4;
9536
9507
  return this.post(this.baseURL + '/moderation/reports', _objectSpread({
9537
9508
  filter_conditions: filterConditions
9538
9509
  }, options));
9539
9510
 
9540
9511
  case 4:
9541
- return _context48.abrupt("return", _context48.sent);
9512
+ return _context47.abrupt("return", _context47.sent);
9542
9513
 
9543
9514
  case 5:
9544
9515
  case "end":
9545
- return _context48.stop();
9516
+ return _context47.stop();
9546
9517
  }
9547
9518
  }
9548
- }, _callee48, this);
9519
+ }, _callee47, this);
9549
9520
  }));
9550
9521
 
9551
9522
  function _queryFlagReports() {
@@ -9572,31 +9543,31 @@ var StreamChat = /*#__PURE__*/function () {
9572
9543
  }, {
9573
9544
  key: "_reviewFlagReport",
9574
9545
  value: function () {
9575
- var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(id, reviewResult) {
9546
+ var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(id, reviewResult) {
9576
9547
  var options,
9577
- _args49 = arguments;
9578
- return _regeneratorRuntime.wrap(function _callee49$(_context49) {
9548
+ _args48 = arguments;
9549
+ return _regeneratorRuntime.wrap(function _callee48$(_context48) {
9579
9550
  while (1) {
9580
- switch (_context49.prev = _context49.next) {
9551
+ switch (_context48.prev = _context48.next) {
9581
9552
  case 0:
9582
- options = _args49.length > 2 && _args49[2] !== undefined ? _args49[2] : {};
9583
- _context49.next = 3;
9553
+ options = _args48.length > 2 && _args48[2] !== undefined ? _args48[2] : {};
9554
+ _context48.next = 3;
9584
9555
  return this.patch(this.baseURL + "/moderation/reports/".concat(id), _objectSpread({
9585
9556
  review_result: reviewResult
9586
9557
  }, options));
9587
9558
 
9588
9559
  case 3:
9589
- return _context49.abrupt("return", _context49.sent);
9560
+ return _context48.abrupt("return", _context48.sent);
9590
9561
 
9591
9562
  case 4:
9592
9563
  case "end":
9593
- return _context49.stop();
9564
+ return _context48.stop();
9594
9565
  }
9595
9566
  }
9596
- }, _callee49, this);
9567
+ }, _callee48, this);
9597
9568
  }));
9598
9569
 
9599
- function _reviewFlagReport(_x62, _x63) {
9570
+ function _reviewFlagReport(_x61, _x62) {
9600
9571
  return _reviewFlagReport2.apply(this, arguments);
9601
9572
  }
9602
9573
 
@@ -9618,31 +9589,31 @@ var StreamChat = /*#__PURE__*/function () {
9618
9589
  }, {
9619
9590
  key: "_unblockMessage",
9620
9591
  value: function () {
9621
- var _unblockMessage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(targetMessageID) {
9592
+ var _unblockMessage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(targetMessageID) {
9622
9593
  var options,
9623
- _args50 = arguments;
9624
- return _regeneratorRuntime.wrap(function _callee50$(_context50) {
9594
+ _args49 = arguments;
9595
+ return _regeneratorRuntime.wrap(function _callee49$(_context49) {
9625
9596
  while (1) {
9626
- switch (_context50.prev = _context50.next) {
9597
+ switch (_context49.prev = _context49.next) {
9627
9598
  case 0:
9628
- options = _args50.length > 1 && _args50[1] !== undefined ? _args50[1] : {};
9629
- _context50.next = 3;
9599
+ options = _args49.length > 1 && _args49[1] !== undefined ? _args49[1] : {};
9600
+ _context49.next = 3;
9630
9601
  return this.post(this.baseURL + '/moderation/unblock_message', _objectSpread({
9631
9602
  target_message_id: targetMessageID
9632
9603
  }, options));
9633
9604
 
9634
9605
  case 3:
9635
- return _context50.abrupt("return", _context50.sent);
9606
+ return _context49.abrupt("return", _context49.sent);
9636
9607
 
9637
9608
  case 4:
9638
9609
  case "end":
9639
- return _context50.stop();
9610
+ return _context49.stop();
9640
9611
  }
9641
9612
  }
9642
- }, _callee50, this);
9613
+ }, _callee49, this);
9643
9614
  }));
9644
9615
 
9645
- function _unblockMessage(_x64) {
9616
+ function _unblockMessage(_x63) {
9646
9617
  return _unblockMessage2.apply(this, arguments);
9647
9618
  }
9648
9619
 
@@ -9669,23 +9640,23 @@ var StreamChat = /*#__PURE__*/function () {
9669
9640
  * @return {Promise<APIResponse>}
9670
9641
  */
9671
9642
  function () {
9672
- var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51() {
9643
+ var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50() {
9673
9644
  var data,
9674
- _args51 = arguments;
9675
- return _regeneratorRuntime.wrap(function _callee51$(_context51) {
9645
+ _args50 = arguments;
9646
+ return _regeneratorRuntime.wrap(function _callee50$(_context50) {
9676
9647
  while (1) {
9677
- switch (_context51.prev = _context51.next) {
9648
+ switch (_context50.prev = _context50.next) {
9678
9649
  case 0:
9679
- data = _args51.length > 0 && _args51[0] !== undefined ? _args51[0] : {};
9680
- _context51.next = 3;
9650
+ data = _args50.length > 0 && _args50[0] !== undefined ? _args50[0] : {};
9651
+ _context50.next = 3;
9681
9652
  return this.post(this.baseURL + '/channels/read', _objectSpread({}, data));
9682
9653
 
9683
9654
  case 3:
9684
9655
  case "end":
9685
- return _context51.stop();
9656
+ return _context50.stop();
9686
9657
  }
9687
9658
  }
9688
- }, _callee51, this);
9659
+ }, _callee50, this);
9689
9660
  }));
9690
9661
 
9691
9662
  function markChannelsRead() {
@@ -9760,28 +9731,28 @@ var StreamChat = /*#__PURE__*/function () {
9760
9731
  }, {
9761
9732
  key: "translateMessage",
9762
9733
  value: function () {
9763
- var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(messageId, language) {
9764
- return _regeneratorRuntime.wrap(function _callee52$(_context52) {
9734
+ var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(messageId, language) {
9735
+ return _regeneratorRuntime.wrap(function _callee51$(_context51) {
9765
9736
  while (1) {
9766
- switch (_context52.prev = _context52.next) {
9737
+ switch (_context51.prev = _context51.next) {
9767
9738
  case 0:
9768
- _context52.next = 2;
9739
+ _context51.next = 2;
9769
9740
  return this.post(this.baseURL + "/messages/".concat(messageId, "/translate"), {
9770
9741
  language: language
9771
9742
  });
9772
9743
 
9773
9744
  case 2:
9774
- return _context52.abrupt("return", _context52.sent);
9745
+ return _context51.abrupt("return", _context51.sent);
9775
9746
 
9776
9747
  case 3:
9777
9748
  case "end":
9778
- return _context52.stop();
9749
+ return _context51.stop();
9779
9750
  }
9780
9751
  }
9781
- }, _callee52, this);
9752
+ }, _callee51, this);
9782
9753
  }));
9783
9754
 
9784
- function translateMessage(_x65, _x66) {
9755
+ function translateMessage(_x64, _x65) {
9785
9756
  return _translateMessage.apply(this, arguments);
9786
9757
  }
9787
9758
 
@@ -9883,14 +9854,14 @@ var StreamChat = /*#__PURE__*/function () {
9883
9854
  }, {
9884
9855
  key: "updateMessage",
9885
9856
  value: function () {
9886
- var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(message, userId, options) {
9857
+ var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(message, userId, options) {
9887
9858
  var clonedMessage, reservedMessageFields;
9888
- return _regeneratorRuntime.wrap(function _callee53$(_context53) {
9859
+ return _regeneratorRuntime.wrap(function _callee52$(_context52) {
9889
9860
  while (1) {
9890
- switch (_context53.prev = _context53.next) {
9861
+ switch (_context52.prev = _context52.next) {
9891
9862
  case 0:
9892
9863
  if (message.id) {
9893
- _context53.next = 2;
9864
+ _context52.next = 2;
9894
9865
  break;
9895
9866
  }
9896
9867
 
@@ -9927,23 +9898,23 @@ var StreamChat = /*#__PURE__*/function () {
9927
9898
  });
9928
9899
  }
9929
9900
 
9930
- _context53.next = 10;
9901
+ _context52.next = 10;
9931
9902
  return this.post(this.baseURL + "/messages/".concat(message.id), _objectSpread({
9932
9903
  message: clonedMessage
9933
9904
  }, options));
9934
9905
 
9935
9906
  case 10:
9936
- return _context53.abrupt("return", _context53.sent);
9907
+ return _context52.abrupt("return", _context52.sent);
9937
9908
 
9938
9909
  case 11:
9939
9910
  case "end":
9940
- return _context53.stop();
9911
+ return _context52.stop();
9941
9912
  }
9942
9913
  }
9943
- }, _callee53, this);
9914
+ }, _callee52, this);
9944
9915
  }));
9945
9916
 
9946
- function updateMessage(_x67, _x68, _x69) {
9917
+ function updateMessage(_x66, _x67, _x68) {
9947
9918
  return _updateMessage.apply(this, arguments);
9948
9919
  }
9949
9920
 
@@ -9966,14 +9937,14 @@ var StreamChat = /*#__PURE__*/function () {
9966
9937
  }, {
9967
9938
  key: "partialUpdateMessage",
9968
9939
  value: function () {
9969
- var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(id, partialMessageObject, userId, options) {
9940
+ var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(id, partialMessageObject, userId, options) {
9970
9941
  var user;
9971
- return _regeneratorRuntime.wrap(function _callee54$(_context54) {
9942
+ return _regeneratorRuntime.wrap(function _callee53$(_context53) {
9972
9943
  while (1) {
9973
- switch (_context54.prev = _context54.next) {
9944
+ switch (_context53.prev = _context53.next) {
9974
9945
  case 0:
9975
9946
  if (id) {
9976
- _context54.next = 2;
9947
+ _context53.next = 2;
9977
9948
  break;
9978
9949
  }
9979
9950
 
@@ -9988,23 +9959,23 @@ var StreamChat = /*#__PURE__*/function () {
9988
9959
  };
9989
9960
  }
9990
9961
 
9991
- _context54.next = 6;
9962
+ _context53.next = 6;
9992
9963
  return this.put(this.baseURL + "/messages/".concat(id), _objectSpread(_objectSpread(_objectSpread({}, partialMessageObject), options), {}, {
9993
9964
  user: user
9994
9965
  }));
9995
9966
 
9996
9967
  case 6:
9997
- return _context54.abrupt("return", _context54.sent);
9968
+ return _context53.abrupt("return", _context53.sent);
9998
9969
 
9999
9970
  case 7:
10000
9971
  case "end":
10001
- return _context54.stop();
9972
+ return _context53.stop();
10002
9973
  }
10003
9974
  }
10004
- }, _callee54, this);
9975
+ }, _callee53, this);
10005
9976
  }));
10006
9977
 
10007
- function partialUpdateMessage(_x70, _x71, _x72, _x73) {
9978
+ function partialUpdateMessage(_x69, _x70, _x71, _x72) {
10008
9979
  return _partialUpdateMessage.apply(this, arguments);
10009
9980
  }
10010
9981
 
@@ -10013,11 +9984,11 @@ var StreamChat = /*#__PURE__*/function () {
10013
9984
  }, {
10014
9985
  key: "deleteMessage",
10015
9986
  value: function () {
10016
- var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(messageID, hardDelete) {
9987
+ var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(messageID, hardDelete) {
10017
9988
  var params;
10018
- return _regeneratorRuntime.wrap(function _callee55$(_context55) {
9989
+ return _regeneratorRuntime.wrap(function _callee54$(_context54) {
10019
9990
  while (1) {
10020
- switch (_context55.prev = _context55.next) {
9991
+ switch (_context54.prev = _context54.next) {
10021
9992
  case 0:
10022
9993
  params = {};
10023
9994
 
@@ -10027,21 +9998,21 @@ var StreamChat = /*#__PURE__*/function () {
10027
9998
  };
10028
9999
  }
10029
10000
 
10030
- _context55.next = 4;
10001
+ _context54.next = 4;
10031
10002
  return this.delete(this.baseURL + "/messages/".concat(messageID), params);
10032
10003
 
10033
10004
  case 4:
10034
- return _context55.abrupt("return", _context55.sent);
10005
+ return _context54.abrupt("return", _context54.sent);
10035
10006
 
10036
10007
  case 5:
10037
10008
  case "end":
10038
- return _context55.stop();
10009
+ return _context54.stop();
10039
10010
  }
10040
10011
  }
10041
- }, _callee55, this);
10012
+ }, _callee54, this);
10042
10013
  }));
10043
10014
 
10044
- function deleteMessage(_x74, _x75) {
10015
+ function deleteMessage(_x73, _x74) {
10045
10016
  return _deleteMessage.apply(this, arguments);
10046
10017
  }
10047
10018
 
@@ -10050,26 +10021,26 @@ var StreamChat = /*#__PURE__*/function () {
10050
10021
  }, {
10051
10022
  key: "getMessage",
10052
10023
  value: function () {
10053
- var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(messageID) {
10054
- return _regeneratorRuntime.wrap(function _callee56$(_context56) {
10024
+ var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(messageID) {
10025
+ return _regeneratorRuntime.wrap(function _callee55$(_context55) {
10055
10026
  while (1) {
10056
- switch (_context56.prev = _context56.next) {
10027
+ switch (_context55.prev = _context55.next) {
10057
10028
  case 0:
10058
- _context56.next = 2;
10059
- return this.get(this.baseURL + "/messages/".concat(messageID));
10029
+ _context55.next = 2;
10030
+ return this.get(this.baseURL + "/messages/".concat(encodeURIComponent(messageID)));
10060
10031
 
10061
10032
  case 2:
10062
- return _context56.abrupt("return", _context56.sent);
10033
+ return _context55.abrupt("return", _context55.sent);
10063
10034
 
10064
10035
  case 3:
10065
10036
  case "end":
10066
- return _context56.stop();
10037
+ return _context55.stop();
10067
10038
  }
10068
10039
  }
10069
- }, _callee56, this);
10040
+ }, _callee55, this);
10070
10041
  }));
10071
10042
 
10072
- function getMessage(_x76) {
10043
+ function getMessage(_x75) {
10073
10044
  return _getMessage.apply(this, arguments);
10074
10045
  }
10075
10046
 
@@ -10078,7 +10049,7 @@ var StreamChat = /*#__PURE__*/function () {
10078
10049
  }, {
10079
10050
  key: "getUserAgent",
10080
10051
  value: function getUserAgent() {
10081
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.10.0");
10052
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.11.0");
10082
10053
  }
10083
10054
  }, {
10084
10055
  key: "setUserAgent",
@@ -10297,28 +10268,28 @@ var StreamChat = /*#__PURE__*/function () {
10297
10268
  }, {
10298
10269
  key: "sendUserCustomEvent",
10299
10270
  value: function () {
10300
- var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(targetUserID, event) {
10301
- return _regeneratorRuntime.wrap(function _callee57$(_context57) {
10271
+ var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(targetUserID, event) {
10272
+ return _regeneratorRuntime.wrap(function _callee56$(_context56) {
10302
10273
  while (1) {
10303
- switch (_context57.prev = _context57.next) {
10274
+ switch (_context56.prev = _context56.next) {
10304
10275
  case 0:
10305
- _context57.next = 2;
10276
+ _context56.next = 2;
10306
10277
  return this.post("".concat(this.baseURL, "/users/").concat(targetUserID, "/event"), {
10307
10278
  event: event
10308
10279
  });
10309
10280
 
10310
10281
  case 2:
10311
- return _context57.abrupt("return", _context57.sent);
10282
+ return _context56.abrupt("return", _context56.sent);
10312
10283
 
10313
10284
  case 3:
10314
10285
  case "end":
10315
- return _context57.stop();
10286
+ return _context56.stop();
10316
10287
  }
10317
10288
  }
10318
- }, _callee57, this);
10289
+ }, _callee56, this);
10319
10290
  }));
10320
10291
 
10321
- function sendUserCustomEvent(_x77, _x78) {
10292
+ function sendUserCustomEvent(_x76, _x77) {
10322
10293
  return _sendUserCustomEvent.apply(this, arguments);
10323
10294
  }
10324
10295
 
@@ -10386,32 +10357,32 @@ var StreamChat = /*#__PURE__*/function () {
10386
10357
  }, {
10387
10358
  key: "createSegment",
10388
10359
  value: function () {
10389
- var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(params) {
10360
+ var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(params) {
10390
10361
  var _yield$this$post, segment;
10391
10362
 
10392
- return _regeneratorRuntime.wrap(function _callee58$(_context58) {
10363
+ return _regeneratorRuntime.wrap(function _callee57$(_context57) {
10393
10364
  while (1) {
10394
- switch (_context58.prev = _context58.next) {
10365
+ switch (_context57.prev = _context57.next) {
10395
10366
  case 0:
10396
- _context58.next = 2;
10367
+ _context57.next = 2;
10397
10368
  return this.post(this.baseURL + "/segments", {
10398
10369
  segment: params
10399
10370
  });
10400
10371
 
10401
10372
  case 2:
10402
- _yield$this$post = _context58.sent;
10373
+ _yield$this$post = _context57.sent;
10403
10374
  segment = _yield$this$post.segment;
10404
- return _context58.abrupt("return", segment);
10375
+ return _context57.abrupt("return", segment);
10405
10376
 
10406
10377
  case 5:
10407
10378
  case "end":
10408
- return _context58.stop();
10379
+ return _context57.stop();
10409
10380
  }
10410
10381
  }
10411
- }, _callee58, this);
10382
+ }, _callee57, this);
10412
10383
  }));
10413
10384
 
10414
- function createSegment(_x79) {
10385
+ function createSegment(_x78) {
10415
10386
  return _createSegment.apply(this, arguments);
10416
10387
  }
10417
10388
 
@@ -10427,15 +10398,15 @@ var StreamChat = /*#__PURE__*/function () {
10427
10398
  }, {
10428
10399
  key: "querySegments",
10429
10400
  value: function () {
10430
- var _querySegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(filters) {
10401
+ var _querySegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(filters) {
10431
10402
  var options,
10432
- _args59 = arguments;
10433
- return _regeneratorRuntime.wrap(function _callee59$(_context59) {
10403
+ _args58 = arguments;
10404
+ return _regeneratorRuntime.wrap(function _callee58$(_context58) {
10434
10405
  while (1) {
10435
- switch (_context59.prev = _context59.next) {
10406
+ switch (_context58.prev = _context58.next) {
10436
10407
  case 0:
10437
- options = _args59.length > 1 && _args59[1] !== undefined ? _args59[1] : {};
10438
- _context59.next = 3;
10408
+ options = _args58.length > 1 && _args58[1] !== undefined ? _args58[1] : {};
10409
+ _context58.next = 3;
10439
10410
  return this.get(this.baseURL + "/segments", {
10440
10411
  payload: _objectSpread({
10441
10412
  filter_conditions: filters
@@ -10443,17 +10414,17 @@ var StreamChat = /*#__PURE__*/function () {
10443
10414
  });
10444
10415
 
10445
10416
  case 3:
10446
- return _context59.abrupt("return", _context59.sent);
10417
+ return _context58.abrupt("return", _context58.sent);
10447
10418
 
10448
10419
  case 4:
10449
10420
  case "end":
10450
- return _context59.stop();
10421
+ return _context58.stop();
10451
10422
  }
10452
10423
  }
10453
- }, _callee59, this);
10424
+ }, _callee58, this);
10454
10425
  }));
10455
10426
 
10456
- function querySegments(_x80) {
10427
+ function querySegments(_x79) {
10457
10428
  return _querySegments.apply(this, arguments);
10458
10429
  }
10459
10430
 
@@ -10471,32 +10442,32 @@ var StreamChat = /*#__PURE__*/function () {
10471
10442
  }, {
10472
10443
  key: "updateSegment",
10473
10444
  value: function () {
10474
- var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(id, params) {
10445
+ var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(id, params) {
10475
10446
  var _yield$this$put, segment;
10476
10447
 
10477
- return _regeneratorRuntime.wrap(function _callee60$(_context60) {
10448
+ return _regeneratorRuntime.wrap(function _callee59$(_context59) {
10478
10449
  while (1) {
10479
- switch (_context60.prev = _context60.next) {
10450
+ switch (_context59.prev = _context59.next) {
10480
10451
  case 0:
10481
- _context60.next = 2;
10452
+ _context59.next = 2;
10482
10453
  return this.put(this.baseURL + "/segments/".concat(id), {
10483
10454
  segment: params
10484
10455
  });
10485
10456
 
10486
10457
  case 2:
10487
- _yield$this$put = _context60.sent;
10458
+ _yield$this$put = _context59.sent;
10488
10459
  segment = _yield$this$put.segment;
10489
- return _context60.abrupt("return", segment);
10460
+ return _context59.abrupt("return", segment);
10490
10461
 
10491
10462
  case 5:
10492
10463
  case "end":
10493
- return _context60.stop();
10464
+ return _context59.stop();
10494
10465
  }
10495
10466
  }
10496
- }, _callee60, this);
10467
+ }, _callee59, this);
10497
10468
  }));
10498
10469
 
10499
- function updateSegment(_x81, _x82) {
10470
+ function updateSegment(_x80, _x81) {
10500
10471
  return _updateSegment.apply(this, arguments);
10501
10472
  }
10502
10473
 
@@ -10513,22 +10484,22 @@ var StreamChat = /*#__PURE__*/function () {
10513
10484
  }, {
10514
10485
  key: "deleteSegment",
10515
10486
  value: function () {
10516
- var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(id) {
10517
- return _regeneratorRuntime.wrap(function _callee61$(_context61) {
10487
+ var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(id) {
10488
+ return _regeneratorRuntime.wrap(function _callee60$(_context60) {
10518
10489
  while (1) {
10519
- switch (_context61.prev = _context61.next) {
10490
+ switch (_context60.prev = _context60.next) {
10520
10491
  case 0:
10521
- return _context61.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
10492
+ return _context60.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
10522
10493
 
10523
10494
  case 1:
10524
10495
  case "end":
10525
- return _context61.stop();
10496
+ return _context60.stop();
10526
10497
  }
10527
10498
  }
10528
- }, _callee61, this);
10499
+ }, _callee60, this);
10529
10500
  }));
10530
10501
 
10531
- function deleteSegment(_x83) {
10502
+ function deleteSegment(_x82) {
10532
10503
  return _deleteSegment.apply(this, arguments);
10533
10504
  }
10534
10505
 
@@ -10545,32 +10516,32 @@ var StreamChat = /*#__PURE__*/function () {
10545
10516
  }, {
10546
10517
  key: "createCampaign",
10547
10518
  value: function () {
10548
- var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(params) {
10519
+ var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(params) {
10549
10520
  var _yield$this$post2, campaign;
10550
10521
 
10551
- return _regeneratorRuntime.wrap(function _callee62$(_context62) {
10522
+ return _regeneratorRuntime.wrap(function _callee61$(_context61) {
10552
10523
  while (1) {
10553
- switch (_context62.prev = _context62.next) {
10524
+ switch (_context61.prev = _context61.next) {
10554
10525
  case 0:
10555
- _context62.next = 2;
10526
+ _context61.next = 2;
10556
10527
  return this.post(this.baseURL + "/campaigns", {
10557
10528
  campaign: params
10558
10529
  });
10559
10530
 
10560
10531
  case 2:
10561
- _yield$this$post2 = _context62.sent;
10532
+ _yield$this$post2 = _context61.sent;
10562
10533
  campaign = _yield$this$post2.campaign;
10563
- return _context62.abrupt("return", campaign);
10534
+ return _context61.abrupt("return", campaign);
10564
10535
 
10565
10536
  case 5:
10566
10537
  case "end":
10567
- return _context62.stop();
10538
+ return _context61.stop();
10568
10539
  }
10569
10540
  }
10570
- }, _callee62, this);
10541
+ }, _callee61, this);
10571
10542
  }));
10572
10543
 
10573
- function createCampaign(_x84) {
10544
+ function createCampaign(_x83) {
10574
10545
  return _createCampaign.apply(this, arguments);
10575
10546
  }
10576
10547
 
@@ -10586,15 +10557,15 @@ var StreamChat = /*#__PURE__*/function () {
10586
10557
  }, {
10587
10558
  key: "queryCampaigns",
10588
10559
  value: function () {
10589
- var _queryCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(filters) {
10560
+ var _queryCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(filters) {
10590
10561
  var options,
10591
- _args63 = arguments;
10592
- return _regeneratorRuntime.wrap(function _callee63$(_context63) {
10562
+ _args62 = arguments;
10563
+ return _regeneratorRuntime.wrap(function _callee62$(_context62) {
10593
10564
  while (1) {
10594
- switch (_context63.prev = _context63.next) {
10565
+ switch (_context62.prev = _context62.next) {
10595
10566
  case 0:
10596
- options = _args63.length > 1 && _args63[1] !== undefined ? _args63[1] : {};
10597
- _context63.next = 3;
10567
+ options = _args62.length > 1 && _args62[1] !== undefined ? _args62[1] : {};
10568
+ _context62.next = 3;
10598
10569
  return this.get(this.baseURL + "/campaigns", {
10599
10570
  payload: _objectSpread({
10600
10571
  filter_conditions: filters
@@ -10602,17 +10573,17 @@ var StreamChat = /*#__PURE__*/function () {
10602
10573
  });
10603
10574
 
10604
10575
  case 3:
10605
- return _context63.abrupt("return", _context63.sent);
10576
+ return _context62.abrupt("return", _context62.sent);
10606
10577
 
10607
10578
  case 4:
10608
10579
  case "end":
10609
- return _context63.stop();
10580
+ return _context62.stop();
10610
10581
  }
10611
10582
  }
10612
- }, _callee63, this);
10583
+ }, _callee62, this);
10613
10584
  }));
10614
10585
 
10615
- function queryCampaigns(_x85) {
10586
+ function queryCampaigns(_x84) {
10616
10587
  return _queryCampaigns.apply(this, arguments);
10617
10588
  }
10618
10589
 
@@ -10630,32 +10601,32 @@ var StreamChat = /*#__PURE__*/function () {
10630
10601
  }, {
10631
10602
  key: "updateCampaign",
10632
10603
  value: function () {
10633
- var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(id, params) {
10604
+ var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(id, params) {
10634
10605
  var _yield$this$put2, campaign;
10635
10606
 
10636
- return _regeneratorRuntime.wrap(function _callee64$(_context64) {
10607
+ return _regeneratorRuntime.wrap(function _callee63$(_context63) {
10637
10608
  while (1) {
10638
- switch (_context64.prev = _context64.next) {
10609
+ switch (_context63.prev = _context63.next) {
10639
10610
  case 0:
10640
- _context64.next = 2;
10611
+ _context63.next = 2;
10641
10612
  return this.put(this.baseURL + "/campaigns/".concat(id), {
10642
10613
  campaign: params
10643
10614
  });
10644
10615
 
10645
10616
  case 2:
10646
- _yield$this$put2 = _context64.sent;
10617
+ _yield$this$put2 = _context63.sent;
10647
10618
  campaign = _yield$this$put2.campaign;
10648
- return _context64.abrupt("return", campaign);
10619
+ return _context63.abrupt("return", campaign);
10649
10620
 
10650
10621
  case 5:
10651
10622
  case "end":
10652
- return _context64.stop();
10623
+ return _context63.stop();
10653
10624
  }
10654
10625
  }
10655
- }, _callee64, this);
10626
+ }, _callee63, this);
10656
10627
  }));
10657
10628
 
10658
- function updateCampaign(_x86, _x87) {
10629
+ function updateCampaign(_x85, _x86) {
10659
10630
  return _updateCampaign.apply(this, arguments);
10660
10631
  }
10661
10632
 
@@ -10672,25 +10643,25 @@ var StreamChat = /*#__PURE__*/function () {
10672
10643
  }, {
10673
10644
  key: "deleteCampaign",
10674
10645
  value: function () {
10675
- var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(id) {
10646
+ var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(id) {
10676
10647
  var params,
10677
- _args65 = arguments;
10678
- return _regeneratorRuntime.wrap(function _callee65$(_context65) {
10648
+ _args64 = arguments;
10649
+ return _regeneratorRuntime.wrap(function _callee64$(_context64) {
10679
10650
  while (1) {
10680
- switch (_context65.prev = _context65.next) {
10651
+ switch (_context64.prev = _context64.next) {
10681
10652
  case 0:
10682
- params = _args65.length > 1 && _args65[1] !== undefined ? _args65[1] : {};
10683
- return _context65.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id), params));
10653
+ params = _args64.length > 1 && _args64[1] !== undefined ? _args64[1] : {};
10654
+ return _context64.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id), params));
10684
10655
 
10685
10656
  case 2:
10686
10657
  case "end":
10687
- return _context65.stop();
10658
+ return _context64.stop();
10688
10659
  }
10689
10660
  }
10690
- }, _callee65, this);
10661
+ }, _callee64, this);
10691
10662
  }));
10692
10663
 
10693
- function deleteCampaign(_x88) {
10664
+ function deleteCampaign(_x87) {
10694
10665
  return _deleteCampaign.apply(this, arguments);
10695
10666
  }
10696
10667
 
@@ -10708,33 +10679,33 @@ var StreamChat = /*#__PURE__*/function () {
10708
10679
  }, {
10709
10680
  key: "scheduleCampaign",
10710
10681
  value: function () {
10711
- var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(id, params) {
10682
+ var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(id, params) {
10712
10683
  var scheduledFor, _yield$this$patch, campaign;
10713
10684
 
10714
- return _regeneratorRuntime.wrap(function _callee66$(_context66) {
10685
+ return _regeneratorRuntime.wrap(function _callee65$(_context65) {
10715
10686
  while (1) {
10716
- switch (_context66.prev = _context66.next) {
10687
+ switch (_context65.prev = _context65.next) {
10717
10688
  case 0:
10718
10689
  scheduledFor = params.scheduledFor;
10719
- _context66.next = 3;
10690
+ _context65.next = 3;
10720
10691
  return this.patch(this.baseURL + "/campaigns/".concat(id, "/schedule"), {
10721
10692
  scheduled_for: scheduledFor
10722
10693
  });
10723
10694
 
10724
10695
  case 3:
10725
- _yield$this$patch = _context66.sent;
10696
+ _yield$this$patch = _context65.sent;
10726
10697
  campaign = _yield$this$patch.campaign;
10727
- return _context66.abrupt("return", campaign);
10698
+ return _context65.abrupt("return", campaign);
10728
10699
 
10729
10700
  case 6:
10730
10701
  case "end":
10731
- return _context66.stop();
10702
+ return _context65.stop();
10732
10703
  }
10733
10704
  }
10734
- }, _callee66, this);
10705
+ }, _callee65, this);
10735
10706
  }));
10736
10707
 
10737
- function scheduleCampaign(_x89, _x90) {
10708
+ function scheduleCampaign(_x88, _x89) {
10738
10709
  return _scheduleCampaign.apply(this, arguments);
10739
10710
  }
10740
10711
 
@@ -10751,30 +10722,30 @@ var StreamChat = /*#__PURE__*/function () {
10751
10722
  }, {
10752
10723
  key: "stopCampaign",
10753
10724
  value: function () {
10754
- var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(id) {
10725
+ var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(id) {
10755
10726
  var _yield$this$patch2, campaign;
10756
10727
 
10757
- return _regeneratorRuntime.wrap(function _callee67$(_context67) {
10728
+ return _regeneratorRuntime.wrap(function _callee66$(_context66) {
10758
10729
  while (1) {
10759
- switch (_context67.prev = _context67.next) {
10730
+ switch (_context66.prev = _context66.next) {
10760
10731
  case 0:
10761
- _context67.next = 2;
10732
+ _context66.next = 2;
10762
10733
  return this.patch(this.baseURL + "/campaigns/".concat(id, "/stop"));
10763
10734
 
10764
10735
  case 2:
10765
- _yield$this$patch2 = _context67.sent;
10736
+ _yield$this$patch2 = _context66.sent;
10766
10737
  campaign = _yield$this$patch2.campaign;
10767
- return _context67.abrupt("return", campaign);
10738
+ return _context66.abrupt("return", campaign);
10768
10739
 
10769
10740
  case 5:
10770
10741
  case "end":
10771
- return _context67.stop();
10742
+ return _context66.stop();
10772
10743
  }
10773
10744
  }
10774
- }, _callee67, this);
10745
+ }, _callee66, this);
10775
10746
  }));
10776
10747
 
10777
- function stopCampaign(_x91) {
10748
+ function stopCampaign(_x90) {
10778
10749
  return _stopCampaign.apply(this, arguments);
10779
10750
  }
10780
10751
 
@@ -10791,30 +10762,30 @@ var StreamChat = /*#__PURE__*/function () {
10791
10762
  }, {
10792
10763
  key: "resumeCampaign",
10793
10764
  value: function () {
10794
- var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(id) {
10765
+ var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(id) {
10795
10766
  var _yield$this$patch3, campaign;
10796
10767
 
10797
- return _regeneratorRuntime.wrap(function _callee68$(_context68) {
10768
+ return _regeneratorRuntime.wrap(function _callee67$(_context67) {
10798
10769
  while (1) {
10799
- switch (_context68.prev = _context68.next) {
10770
+ switch (_context67.prev = _context67.next) {
10800
10771
  case 0:
10801
- _context68.next = 2;
10772
+ _context67.next = 2;
10802
10773
  return this.patch(this.baseURL + "/campaigns/".concat(id, "/resume"));
10803
10774
 
10804
10775
  case 2:
10805
- _yield$this$patch3 = _context68.sent;
10776
+ _yield$this$patch3 = _context67.sent;
10806
10777
  campaign = _yield$this$patch3.campaign;
10807
- return _context68.abrupt("return", campaign);
10778
+ return _context67.abrupt("return", campaign);
10808
10779
 
10809
10780
  case 5:
10810
10781
  case "end":
10811
- return _context68.stop();
10782
+ return _context67.stop();
10812
10783
  }
10813
10784
  }
10814
- }, _callee68, this);
10785
+ }, _callee67, this);
10815
10786
  }));
10816
10787
 
10817
- function resumeCampaign(_x92) {
10788
+ function resumeCampaign(_x91) {
10818
10789
  return _resumeCampaign.apply(this, arguments);
10819
10790
  }
10820
10791
 
@@ -10832,30 +10803,30 @@ var StreamChat = /*#__PURE__*/function () {
10832
10803
  }, {
10833
10804
  key: "testCampaign",
10834
10805
  value: function () {
10835
- var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(id, params) {
10806
+ var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(id, params) {
10836
10807
  var users;
10837
- return _regeneratorRuntime.wrap(function _callee69$(_context69) {
10808
+ return _regeneratorRuntime.wrap(function _callee68$(_context68) {
10838
10809
  while (1) {
10839
- switch (_context69.prev = _context69.next) {
10810
+ switch (_context68.prev = _context68.next) {
10840
10811
  case 0:
10841
10812
  users = params.users;
10842
- _context69.next = 3;
10813
+ _context68.next = 3;
10843
10814
  return this.post(this.baseURL + "/campaigns/".concat(id, "/test"), {
10844
10815
  users: users
10845
10816
  });
10846
10817
 
10847
10818
  case 3:
10848
- return _context69.abrupt("return", _context69.sent);
10819
+ return _context68.abrupt("return", _context68.sent);
10849
10820
 
10850
10821
  case 4:
10851
10822
  case "end":
10852
- return _context69.stop();
10823
+ return _context68.stop();
10853
10824
  }
10854
10825
  }
10855
- }, _callee69, this);
10826
+ }, _callee68, this);
10856
10827
  }));
10857
10828
 
10858
- function testCampaign(_x93, _x94) {
10829
+ function testCampaign(_x92, _x93) {
10859
10830
  return _testCampaign.apply(this, arguments);
10860
10831
  }
10861
10832
 
@@ -10871,15 +10842,15 @@ var StreamChat = /*#__PURE__*/function () {
10871
10842
  }, {
10872
10843
  key: "queryRecipients",
10873
10844
  value: function () {
10874
- var _queryRecipients = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(filters) {
10845
+ var _queryRecipients = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(filters) {
10875
10846
  var options,
10876
- _args70 = arguments;
10877
- return _regeneratorRuntime.wrap(function _callee70$(_context70) {
10847
+ _args69 = arguments;
10848
+ return _regeneratorRuntime.wrap(function _callee69$(_context69) {
10878
10849
  while (1) {
10879
- switch (_context70.prev = _context70.next) {
10850
+ switch (_context69.prev = _context69.next) {
10880
10851
  case 0:
10881
- options = _args70.length > 1 && _args70[1] !== undefined ? _args70[1] : {};
10882
- _context70.next = 3;
10852
+ options = _args69.length > 1 && _args69[1] !== undefined ? _args69[1] : {};
10853
+ _context69.next = 3;
10883
10854
  return this.get(this.baseURL + "/recipients", {
10884
10855
  payload: _objectSpread({
10885
10856
  filter_conditions: filters
@@ -10887,17 +10858,17 @@ var StreamChat = /*#__PURE__*/function () {
10887
10858
  });
10888
10859
 
10889
10860
  case 3:
10890
- return _context70.abrupt("return", _context70.sent);
10861
+ return _context69.abrupt("return", _context69.sent);
10891
10862
 
10892
10863
  case 4:
10893
10864
  case "end":
10894
- return _context70.stop();
10865
+ return _context69.stop();
10895
10866
  }
10896
10867
  }
10897
- }, _callee70, this);
10868
+ }, _callee69, this);
10898
10869
  }));
10899
10870
 
10900
- function queryRecipients(_x95) {
10871
+ function queryRecipients(_x94) {
10901
10872
  return _queryRecipients.apply(this, arguments);
10902
10873
  }
10903
10874
 
@@ -10913,24 +10884,24 @@ var StreamChat = /*#__PURE__*/function () {
10913
10884
  }, {
10914
10885
  key: "enrichURL",
10915
10886
  value: function () {
10916
- var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(url) {
10917
- return _regeneratorRuntime.wrap(function _callee71$(_context71) {
10887
+ var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(url) {
10888
+ return _regeneratorRuntime.wrap(function _callee70$(_context70) {
10918
10889
  while (1) {
10919
- switch (_context71.prev = _context71.next) {
10890
+ switch (_context70.prev = _context70.next) {
10920
10891
  case 0:
10921
- return _context71.abrupt("return", this.get(this.baseURL + "/og", {
10892
+ return _context70.abrupt("return", this.get(this.baseURL + "/og", {
10922
10893
  url: url
10923
10894
  }));
10924
10895
 
10925
10896
  case 1:
10926
10897
  case "end":
10927
- return _context71.stop();
10898
+ return _context70.stop();
10928
10899
  }
10929
10900
  }
10930
- }, _callee71, this);
10901
+ }, _callee70, this);
10931
10902
  }));
10932
10903
 
10933
- function enrichURL(_x96) {
10904
+ function enrichURL(_x95) {
10934
10905
  return _enrichURL.apply(this, arguments);
10935
10906
  }
10936
10907
 
@@ -10947,22 +10918,22 @@ var StreamChat = /*#__PURE__*/function () {
10947
10918
  }, {
10948
10919
  key: "getTask",
10949
10920
  value: function () {
10950
- var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(id) {
10951
- return _regeneratorRuntime.wrap(function _callee72$(_context72) {
10921
+ var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(id) {
10922
+ return _regeneratorRuntime.wrap(function _callee71$(_context71) {
10952
10923
  while (1) {
10953
- switch (_context72.prev = _context72.next) {
10924
+ switch (_context71.prev = _context71.next) {
10954
10925
  case 0:
10955
- return _context72.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
10926
+ return _context71.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
10956
10927
 
10957
10928
  case 1:
10958
10929
  case "end":
10959
- return _context72.stop();
10930
+ return _context71.stop();
10960
10931
  }
10961
10932
  }
10962
- }, _callee72, this);
10933
+ }, _callee71, this);
10963
10934
  }));
10964
10935
 
10965
- function getTask(_x97) {
10936
+ function getTask(_x96) {
10966
10937
  return _getTask.apply(this, arguments);
10967
10938
  }
10968
10939
 
@@ -10980,31 +10951,31 @@ var StreamChat = /*#__PURE__*/function () {
10980
10951
  }, {
10981
10952
  key: "deleteChannels",
10982
10953
  value: function () {
10983
- var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(cids) {
10954
+ var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(cids) {
10984
10955
  var options,
10985
- _args73 = arguments;
10986
- return _regeneratorRuntime.wrap(function _callee73$(_context73) {
10956
+ _args72 = arguments;
10957
+ return _regeneratorRuntime.wrap(function _callee72$(_context72) {
10987
10958
  while (1) {
10988
- switch (_context73.prev = _context73.next) {
10959
+ switch (_context72.prev = _context72.next) {
10989
10960
  case 0:
10990
- options = _args73.length > 1 && _args73[1] !== undefined ? _args73[1] : {};
10991
- _context73.next = 3;
10961
+ options = _args72.length > 1 && _args72[1] !== undefined ? _args72[1] : {};
10962
+ _context72.next = 3;
10992
10963
  return this.post(this.baseURL + "/channels/delete", _objectSpread({
10993
10964
  cids: cids
10994
10965
  }, options));
10995
10966
 
10996
10967
  case 3:
10997
- return _context73.abrupt("return", _context73.sent);
10968
+ return _context72.abrupt("return", _context72.sent);
10998
10969
 
10999
10970
  case 4:
11000
10971
  case "end":
11001
- return _context73.stop();
10972
+ return _context72.stop();
11002
10973
  }
11003
10974
  }
11004
- }, _callee73, this);
10975
+ }, _callee72, this);
11005
10976
  }));
11006
10977
 
11007
- function deleteChannels(_x98) {
10978
+ function deleteChannels(_x97) {
11008
10979
  return _deleteChannels.apply(this, arguments);
11009
10980
  }
11010
10981
 
@@ -11022,13 +10993,13 @@ var StreamChat = /*#__PURE__*/function () {
11022
10993
  }, {
11023
10994
  key: "deleteUsers",
11024
10995
  value: function () {
11025
- var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(user_ids, options) {
11026
- return _regeneratorRuntime.wrap(function _callee74$(_context74) {
10996
+ var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(user_ids, options) {
10997
+ return _regeneratorRuntime.wrap(function _callee73$(_context73) {
11027
10998
  while (1) {
11028
- switch (_context74.prev = _context74.next) {
10999
+ switch (_context73.prev = _context73.next) {
11029
11000
  case 0:
11030
11001
  if (!((options === null || options === void 0 ? void 0 : options.user) !== 'soft' && (options === null || options === void 0 ? void 0 : options.user) !== 'hard')) {
11031
- _context74.next = 2;
11002
+ _context73.next = 2;
11032
11003
  break;
11033
11004
  }
11034
11005
 
@@ -11036,7 +11007,7 @@ var StreamChat = /*#__PURE__*/function () {
11036
11007
 
11037
11008
  case 2:
11038
11009
  if (!(options.messages !== undefined && options.messages !== 'soft' && options.messages !== 'hard')) {
11039
- _context74.next = 4;
11010
+ _context73.next = 4;
11040
11011
  break;
11041
11012
  }
11042
11013
 
@@ -11044,30 +11015,30 @@ var StreamChat = /*#__PURE__*/function () {
11044
11015
 
11045
11016
  case 4:
11046
11017
  if (!(options.conversations !== undefined && options.conversations !== 'soft' && options.conversations !== 'hard')) {
11047
- _context74.next = 6;
11018
+ _context73.next = 6;
11048
11019
  break;
11049
11020
  }
11050
11021
 
11051
11022
  throw new Error('Invalid delete user options. conversations must be one of [soft hard]');
11052
11023
 
11053
11024
  case 6:
11054
- _context74.next = 8;
11025
+ _context73.next = 8;
11055
11026
  return this.post(this.baseURL + "/users/delete", _objectSpread({
11056
11027
  user_ids: user_ids
11057
11028
  }, options));
11058
11029
 
11059
11030
  case 8:
11060
- return _context74.abrupt("return", _context74.sent);
11031
+ return _context73.abrupt("return", _context73.sent);
11061
11032
 
11062
11033
  case 9:
11063
11034
  case "end":
11064
- return _context74.stop();
11035
+ return _context73.stop();
11065
11036
  }
11066
11037
  }
11067
- }, _callee74, this);
11038
+ }, _callee73, this);
11068
11039
  }));
11069
11040
 
11070
- function deleteUsers(_x99, _x100) {
11041
+ function deleteUsers(_x98, _x99) {
11071
11042
  return _deleteUsers.apply(this, arguments);
11072
11043
  }
11073
11044
 
@@ -11088,28 +11059,28 @@ var StreamChat = /*#__PURE__*/function () {
11088
11059
  }, {
11089
11060
  key: "_createImportURL",
11090
11061
  value: function () {
11091
- var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(filename) {
11092
- return _regeneratorRuntime.wrap(function _callee75$(_context75) {
11062
+ var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(filename) {
11063
+ return _regeneratorRuntime.wrap(function _callee74$(_context74) {
11093
11064
  while (1) {
11094
- switch (_context75.prev = _context75.next) {
11065
+ switch (_context74.prev = _context74.next) {
11095
11066
  case 0:
11096
- _context75.next = 2;
11067
+ _context74.next = 2;
11097
11068
  return this.post(this.baseURL + "/import_urls", {
11098
11069
  filename: filename
11099
11070
  });
11100
11071
 
11101
11072
  case 2:
11102
- return _context75.abrupt("return", _context75.sent);
11073
+ return _context74.abrupt("return", _context74.sent);
11103
11074
 
11104
11075
  case 3:
11105
11076
  case "end":
11106
- return _context75.stop();
11077
+ return _context74.stop();
11107
11078
  }
11108
11079
  }
11109
- }, _callee75, this);
11080
+ }, _callee74, this);
11110
11081
  }));
11111
11082
 
11112
- function _createImportURL(_x101) {
11083
+ function _createImportURL(_x100) {
11113
11084
  return _createImportURL2.apply(this, arguments);
11114
11085
  }
11115
11086
 
@@ -11131,33 +11102,33 @@ var StreamChat = /*#__PURE__*/function () {
11131
11102
  }, {
11132
11103
  key: "_createImport",
11133
11104
  value: function () {
11134
- var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(path) {
11105
+ var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(path) {
11135
11106
  var options,
11136
- _args76 = arguments;
11137
- return _regeneratorRuntime.wrap(function _callee76$(_context76) {
11107
+ _args75 = arguments;
11108
+ return _regeneratorRuntime.wrap(function _callee75$(_context75) {
11138
11109
  while (1) {
11139
- switch (_context76.prev = _context76.next) {
11110
+ switch (_context75.prev = _context75.next) {
11140
11111
  case 0:
11141
- options = _args76.length > 1 && _args76[1] !== undefined ? _args76[1] : {
11112
+ options = _args75.length > 1 && _args75[1] !== undefined ? _args75[1] : {
11142
11113
  mode: 'upsert'
11143
11114
  };
11144
- _context76.next = 3;
11115
+ _context75.next = 3;
11145
11116
  return this.post(this.baseURL + "/imports", _objectSpread({
11146
11117
  path: path
11147
11118
  }, options));
11148
11119
 
11149
11120
  case 3:
11150
- return _context76.abrupt("return", _context76.sent);
11121
+ return _context75.abrupt("return", _context75.sent);
11151
11122
 
11152
11123
  case 4:
11153
11124
  case "end":
11154
- return _context76.stop();
11125
+ return _context75.stop();
11155
11126
  }
11156
11127
  }
11157
- }, _callee76, this);
11128
+ }, _callee75, this);
11158
11129
  }));
11159
11130
 
11160
- function _createImport(_x102) {
11131
+ function _createImport(_x101) {
11161
11132
  return _createImport2.apply(this, arguments);
11162
11133
  }
11163
11134
 
@@ -11179,26 +11150,26 @@ var StreamChat = /*#__PURE__*/function () {
11179
11150
  }, {
11180
11151
  key: "_getImport",
11181
11152
  value: function () {
11182
- var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77(id) {
11183
- return _regeneratorRuntime.wrap(function _callee77$(_context77) {
11153
+ var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(id) {
11154
+ return _regeneratorRuntime.wrap(function _callee76$(_context76) {
11184
11155
  while (1) {
11185
- switch (_context77.prev = _context77.next) {
11156
+ switch (_context76.prev = _context76.next) {
11186
11157
  case 0:
11187
- _context77.next = 2;
11158
+ _context76.next = 2;
11188
11159
  return this.get(this.baseURL + "/imports/".concat(id));
11189
11160
 
11190
11161
  case 2:
11191
- return _context77.abrupt("return", _context77.sent);
11162
+ return _context76.abrupt("return", _context76.sent);
11192
11163
 
11193
11164
  case 3:
11194
11165
  case "end":
11195
- return _context77.stop();
11166
+ return _context76.stop();
11196
11167
  }
11197
11168
  }
11198
- }, _callee77, this);
11169
+ }, _callee76, this);
11199
11170
  }));
11200
11171
 
11201
- function _getImport(_x103) {
11172
+ function _getImport(_x102) {
11202
11173
  return _getImport2.apply(this, arguments);
11203
11174
  }
11204
11175
 
@@ -11220,26 +11191,26 @@ var StreamChat = /*#__PURE__*/function () {
11220
11191
  }, {
11221
11192
  key: "_listImports",
11222
11193
  value: function () {
11223
- var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee78(options) {
11224
- return _regeneratorRuntime.wrap(function _callee78$(_context78) {
11194
+ var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77(options) {
11195
+ return _regeneratorRuntime.wrap(function _callee77$(_context77) {
11225
11196
  while (1) {
11226
- switch (_context78.prev = _context78.next) {
11197
+ switch (_context77.prev = _context77.next) {
11227
11198
  case 0:
11228
- _context78.next = 2;
11199
+ _context77.next = 2;
11229
11200
  return this.get(this.baseURL + "/imports", options);
11230
11201
 
11231
11202
  case 2:
11232
- return _context78.abrupt("return", _context78.sent);
11203
+ return _context77.abrupt("return", _context77.sent);
11233
11204
 
11234
11205
  case 3:
11235
11206
  case "end":
11236
- return _context78.stop();
11207
+ return _context77.stop();
11237
11208
  }
11238
11209
  }
11239
- }, _callee78, this);
11210
+ }, _callee77, this);
11240
11211
  }));
11241
11212
 
11242
- function _listImports(_x104) {
11213
+ function _listImports(_x103) {
11243
11214
  return _listImports2.apply(this, arguments);
11244
11215
  }
11245
11216
 
@@ -11258,28 +11229,28 @@ var StreamChat = /*#__PURE__*/function () {
11258
11229
  }, {
11259
11230
  key: "upsertPushProvider",
11260
11231
  value: function () {
11261
- var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(pushProvider) {
11262
- return _regeneratorRuntime.wrap(function _callee79$(_context79) {
11232
+ var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee78(pushProvider) {
11233
+ return _regeneratorRuntime.wrap(function _callee78$(_context78) {
11263
11234
  while (1) {
11264
- switch (_context79.prev = _context79.next) {
11235
+ switch (_context78.prev = _context78.next) {
11265
11236
  case 0:
11266
- _context79.next = 2;
11237
+ _context78.next = 2;
11267
11238
  return this.post(this.baseURL + "/push_providers", {
11268
11239
  push_provider: pushProvider
11269
11240
  });
11270
11241
 
11271
11242
  case 2:
11272
- return _context79.abrupt("return", _context79.sent);
11243
+ return _context78.abrupt("return", _context78.sent);
11273
11244
 
11274
11245
  case 3:
11275
11246
  case "end":
11276
- return _context79.stop();
11247
+ return _context78.stop();
11277
11248
  }
11278
11249
  }
11279
- }, _callee79, this);
11250
+ }, _callee78, this);
11280
11251
  }));
11281
11252
 
11282
- function upsertPushProvider(_x105) {
11253
+ function upsertPushProvider(_x104) {
11283
11254
  return _upsertPushProvider.apply(this, arguments);
11284
11255
  }
11285
11256
 
@@ -11298,28 +11269,28 @@ var StreamChat = /*#__PURE__*/function () {
11298
11269
  }, {
11299
11270
  key: "deletePushProvider",
11300
11271
  value: function () {
11301
- var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee80(_ref10) {
11272
+ var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(_ref10) {
11302
11273
  var type, name;
11303
- return _regeneratorRuntime.wrap(function _callee80$(_context80) {
11274
+ return _regeneratorRuntime.wrap(function _callee79$(_context79) {
11304
11275
  while (1) {
11305
- switch (_context80.prev = _context80.next) {
11276
+ switch (_context79.prev = _context79.next) {
11306
11277
  case 0:
11307
11278
  type = _ref10.type, name = _ref10.name;
11308
- _context80.next = 3;
11279
+ _context79.next = 3;
11309
11280
  return this.delete(this.baseURL + "/push_providers/".concat(type, "/").concat(name));
11310
11281
 
11311
11282
  case 3:
11312
- return _context80.abrupt("return", _context80.sent);
11283
+ return _context79.abrupt("return", _context79.sent);
11313
11284
 
11314
11285
  case 4:
11315
11286
  case "end":
11316
- return _context80.stop();
11287
+ return _context79.stop();
11317
11288
  }
11318
11289
  }
11319
- }, _callee80, this);
11290
+ }, _callee79, this);
11320
11291
  }));
11321
11292
 
11322
- function deletePushProvider(_x106) {
11293
+ function deletePushProvider(_x105) {
11323
11294
  return _deletePushProvider.apply(this, arguments);
11324
11295
  }
11325
11296
 
@@ -11336,23 +11307,23 @@ var StreamChat = /*#__PURE__*/function () {
11336
11307
  }, {
11337
11308
  key: "listPushProviders",
11338
11309
  value: function () {
11339
- var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee81() {
11340
- return _regeneratorRuntime.wrap(function _callee81$(_context81) {
11310
+ var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee80() {
11311
+ return _regeneratorRuntime.wrap(function _callee80$(_context80) {
11341
11312
  while (1) {
11342
- switch (_context81.prev = _context81.next) {
11313
+ switch (_context80.prev = _context80.next) {
11343
11314
  case 0:
11344
- _context81.next = 2;
11315
+ _context80.next = 2;
11345
11316
  return this.get(this.baseURL + "/push_providers");
11346
11317
 
11347
11318
  case 2:
11348
- return _context81.abrupt("return", _context81.sent);
11319
+ return _context80.abrupt("return", _context80.sent);
11349
11320
 
11350
11321
  case 3:
11351
11322
  case "end":
11352
- return _context81.stop();
11323
+ return _context80.stop();
11353
11324
  }
11354
11325
  }
11355
- }, _callee81, this);
11326
+ }, _callee80, this);
11356
11327
  }));
11357
11328
 
11358
11329
  function listPushProviders() {
@@ -11380,26 +11351,26 @@ var StreamChat = /*#__PURE__*/function () {
11380
11351
  }, {
11381
11352
  key: "commitMessage",
11382
11353
  value: function () {
11383
- var _commitMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee82(id) {
11384
- return _regeneratorRuntime.wrap(function _callee82$(_context82) {
11354
+ var _commitMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee81(id) {
11355
+ return _regeneratorRuntime.wrap(function _callee81$(_context81) {
11385
11356
  while (1) {
11386
- switch (_context82.prev = _context82.next) {
11357
+ switch (_context81.prev = _context81.next) {
11387
11358
  case 0:
11388
- _context82.next = 2;
11359
+ _context81.next = 2;
11389
11360
  return this.post(this.baseURL + "/messages/".concat(id, "/commit"));
11390
11361
 
11391
11362
  case 2:
11392
- return _context82.abrupt("return", _context82.sent);
11363
+ return _context81.abrupt("return", _context81.sent);
11393
11364
 
11394
11365
  case 3:
11395
11366
  case "end":
11396
- return _context82.stop();
11367
+ return _context81.stop();
11397
11368
  }
11398
11369
  }
11399
- }, _callee82, this);
11370
+ }, _callee81, this);
11400
11371
  }));
11401
11372
 
11402
- function commitMessage(_x107) {
11373
+ function commitMessage(_x106) {
11403
11374
  return _commitMessage.apply(this, arguments);
11404
11375
  }
11405
11376