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