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