stream-chat 8.12.0 → 8.12.1

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