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