stream-chat 8.10.0 → 8.11.0

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