stream-chat 8.1.3 → 8.2.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.
@@ -8682,7 +8682,7 @@ var StreamChat = /*#__PURE__*/function () {
8682
8682
  *
8683
8683
  * @param {string[]} user_ids which users to restore
8684
8684
  *
8685
- * @return {APIResponse} A task ID
8685
+ * @return {APIResponse} An API response
8686
8686
  */
8687
8687
 
8688
8688
  }, {
@@ -8715,6 +8715,15 @@ var StreamChat = /*#__PURE__*/function () {
8715
8715
 
8716
8716
  return restoreUsers;
8717
8717
  }()
8718
+ /**
8719
+ * reactivateUser - Reactivate one user
8720
+ *
8721
+ * @param {string} userID which user to reactivate
8722
+ * @param {ReactivateUserOptions} [options]
8723
+ *
8724
+ * @return {UserResponse} Reactivated user
8725
+ */
8726
+
8718
8727
  }, {
8719
8728
  key: "reactivateUser",
8720
8729
  value: function () {
@@ -8743,16 +8752,27 @@ var StreamChat = /*#__PURE__*/function () {
8743
8752
 
8744
8753
  return reactivateUser;
8745
8754
  }()
8755
+ /**
8756
+ * reactivateUsers - Reactivate many users asynchronously
8757
+ *
8758
+ * @param {string[]} user_ids which users to reactivate
8759
+ * @param {ReactivateUsersOptions} [options]
8760
+ *
8761
+ * @return {TaskResponse} A task ID
8762
+ */
8763
+
8746
8764
  }, {
8747
- key: "deactivateUser",
8765
+ key: "reactivateUsers",
8748
8766
  value: function () {
8749
- var _deactivateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(userID, options) {
8767
+ var _reactivateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(user_ids, options) {
8750
8768
  return _regeneratorRuntime.wrap(function _callee31$(_context31) {
8751
8769
  while (1) {
8752
8770
  switch (_context31.prev = _context31.next) {
8753
8771
  case 0:
8754
8772
  _context31.next = 2;
8755
- return this.post(this.baseURL + "/users/".concat(userID, "/deactivate"), _objectSpread({}, options));
8773
+ return this.post(this.baseURL + "/users/reactivate", _objectSpread({
8774
+ user_ids: user_ids
8775
+ }, options));
8756
8776
 
8757
8777
  case 2:
8758
8778
  return _context31.abrupt("return", _context31.sent);
@@ -8765,22 +8785,31 @@ var StreamChat = /*#__PURE__*/function () {
8765
8785
  }, _callee31, this);
8766
8786
  }));
8767
8787
 
8768
- function deactivateUser(_x36, _x37) {
8769
- return _deactivateUser.apply(this, arguments);
8788
+ function reactivateUsers(_x36, _x37) {
8789
+ return _reactivateUsers.apply(this, arguments);
8770
8790
  }
8771
8791
 
8772
- return deactivateUser;
8792
+ return reactivateUsers;
8773
8793
  }()
8794
+ /**
8795
+ * deactivateUser - Deactivate one user
8796
+ *
8797
+ * @param {string} userID which user to deactivate
8798
+ * @param {DeactivateUsersOptions} [options]
8799
+ *
8800
+ * @return {UserResponse} Deactivated user
8801
+ */
8802
+
8774
8803
  }, {
8775
- key: "exportUser",
8804
+ key: "deactivateUser",
8776
8805
  value: function () {
8777
- var _exportUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(userID, options) {
8806
+ var _deactivateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(userID, options) {
8778
8807
  return _regeneratorRuntime.wrap(function _callee32$(_context32) {
8779
8808
  while (1) {
8780
8809
  switch (_context32.prev = _context32.next) {
8781
8810
  case 0:
8782
8811
  _context32.next = 2;
8783
- return this.get(this.baseURL + "/users/".concat(userID, "/export"), _objectSpread({}, options));
8812
+ return this.post(this.baseURL + "/users/".concat(userID, "/deactivate"), _objectSpread({}, options));
8784
8813
 
8785
8814
  case 2:
8786
8815
  return _context32.abrupt("return", _context32.sent);
@@ -8793,7 +8822,74 @@ var StreamChat = /*#__PURE__*/function () {
8793
8822
  }, _callee32, this);
8794
8823
  }));
8795
8824
 
8796
- function exportUser(_x38, _x39) {
8825
+ function deactivateUser(_x38, _x39) {
8826
+ return _deactivateUser.apply(this, arguments);
8827
+ }
8828
+
8829
+ return deactivateUser;
8830
+ }()
8831
+ /**
8832
+ * deactivateUsers - Deactivate many users asynchronously
8833
+ *
8834
+ * @param {string[]} user_ids which users to deactivate
8835
+ * @param {DeactivateUsersOptions} [options]
8836
+ *
8837
+ * @return {TaskResponse} A task ID
8838
+ */
8839
+
8840
+ }, {
8841
+ key: "deactivateUsers",
8842
+ value: function () {
8843
+ var _deactivateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(user_ids, options) {
8844
+ return _regeneratorRuntime.wrap(function _callee33$(_context33) {
8845
+ while (1) {
8846
+ switch (_context33.prev = _context33.next) {
8847
+ case 0:
8848
+ _context33.next = 2;
8849
+ return this.post(this.baseURL + "/users/deactivate", _objectSpread({
8850
+ user_ids: user_ids
8851
+ }, options));
8852
+
8853
+ case 2:
8854
+ return _context33.abrupt("return", _context33.sent);
8855
+
8856
+ case 3:
8857
+ case "end":
8858
+ return _context33.stop();
8859
+ }
8860
+ }
8861
+ }, _callee33, this);
8862
+ }));
8863
+
8864
+ function deactivateUsers(_x40, _x41) {
8865
+ return _deactivateUsers.apply(this, arguments);
8866
+ }
8867
+
8868
+ return deactivateUsers;
8869
+ }()
8870
+ }, {
8871
+ key: "exportUser",
8872
+ value: function () {
8873
+ var _exportUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(userID, options) {
8874
+ return _regeneratorRuntime.wrap(function _callee34$(_context34) {
8875
+ while (1) {
8876
+ switch (_context34.prev = _context34.next) {
8877
+ case 0:
8878
+ _context34.next = 2;
8879
+ return this.get(this.baseURL + "/users/".concat(userID, "/export"), _objectSpread({}, options));
8880
+
8881
+ case 2:
8882
+ return _context34.abrupt("return", _context34.sent);
8883
+
8884
+ case 3:
8885
+ case "end":
8886
+ return _context34.stop();
8887
+ }
8888
+ }
8889
+ }, _callee34, this);
8890
+ }));
8891
+
8892
+ function exportUser(_x42, _x43) {
8797
8893
  return _exportUser.apply(this, arguments);
8798
8894
  }
8799
8895
 
@@ -8809,28 +8905,28 @@ var StreamChat = /*#__PURE__*/function () {
8809
8905
  }, {
8810
8906
  key: "banUser",
8811
8907
  value: function () {
8812
- var _banUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(targetUserID, options) {
8813
- return _regeneratorRuntime.wrap(function _callee33$(_context33) {
8908
+ var _banUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(targetUserID, options) {
8909
+ return _regeneratorRuntime.wrap(function _callee35$(_context35) {
8814
8910
  while (1) {
8815
- switch (_context33.prev = _context33.next) {
8911
+ switch (_context35.prev = _context35.next) {
8816
8912
  case 0:
8817
- _context33.next = 2;
8913
+ _context35.next = 2;
8818
8914
  return this.post(this.baseURL + '/moderation/ban', _objectSpread({
8819
8915
  target_user_id: targetUserID
8820
8916
  }, options));
8821
8917
 
8822
8918
  case 2:
8823
- return _context33.abrupt("return", _context33.sent);
8919
+ return _context35.abrupt("return", _context35.sent);
8824
8920
 
8825
8921
  case 3:
8826
8922
  case "end":
8827
- return _context33.stop();
8923
+ return _context35.stop();
8828
8924
  }
8829
8925
  }
8830
- }, _callee33, this);
8926
+ }, _callee35, this);
8831
8927
  }));
8832
8928
 
8833
- function banUser(_x40, _x41) {
8929
+ function banUser(_x44, _x45) {
8834
8930
  return _banUser.apply(this, arguments);
8835
8931
  }
8836
8932
 
@@ -8846,28 +8942,28 @@ var StreamChat = /*#__PURE__*/function () {
8846
8942
  }, {
8847
8943
  key: "unbanUser",
8848
8944
  value: function () {
8849
- var _unbanUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(targetUserID, options) {
8850
- return _regeneratorRuntime.wrap(function _callee34$(_context34) {
8945
+ var _unbanUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(targetUserID, options) {
8946
+ return _regeneratorRuntime.wrap(function _callee36$(_context36) {
8851
8947
  while (1) {
8852
- switch (_context34.prev = _context34.next) {
8948
+ switch (_context36.prev = _context36.next) {
8853
8949
  case 0:
8854
- _context34.next = 2;
8950
+ _context36.next = 2;
8855
8951
  return this.delete(this.baseURL + '/moderation/ban', _objectSpread({
8856
8952
  target_user_id: targetUserID
8857
8953
  }, options));
8858
8954
 
8859
8955
  case 2:
8860
- return _context34.abrupt("return", _context34.sent);
8956
+ return _context36.abrupt("return", _context36.sent);
8861
8957
 
8862
8958
  case 3:
8863
8959
  case "end":
8864
- return _context34.stop();
8960
+ return _context36.stop();
8865
8961
  }
8866
8962
  }
8867
- }, _callee34, this);
8963
+ }, _callee36, this);
8868
8964
  }));
8869
8965
 
8870
- function unbanUser(_x42, _x43) {
8966
+ function unbanUser(_x46, _x47) {
8871
8967
  return _unbanUser.apply(this, arguments);
8872
8968
  }
8873
8969
 
@@ -8883,28 +8979,28 @@ var StreamChat = /*#__PURE__*/function () {
8883
8979
  }, {
8884
8980
  key: "shadowBan",
8885
8981
  value: function () {
8886
- var _shadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(targetUserID, options) {
8887
- return _regeneratorRuntime.wrap(function _callee35$(_context35) {
8982
+ var _shadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(targetUserID, options) {
8983
+ return _regeneratorRuntime.wrap(function _callee37$(_context37) {
8888
8984
  while (1) {
8889
- switch (_context35.prev = _context35.next) {
8985
+ switch (_context37.prev = _context37.next) {
8890
8986
  case 0:
8891
- _context35.next = 2;
8987
+ _context37.next = 2;
8892
8988
  return this.banUser(targetUserID, _objectSpread({
8893
8989
  shadow: true
8894
8990
  }, options));
8895
8991
 
8896
8992
  case 2:
8897
- return _context35.abrupt("return", _context35.sent);
8993
+ return _context37.abrupt("return", _context37.sent);
8898
8994
 
8899
8995
  case 3:
8900
8996
  case "end":
8901
- return _context35.stop();
8997
+ return _context37.stop();
8902
8998
  }
8903
8999
  }
8904
- }, _callee35, this);
9000
+ }, _callee37, this);
8905
9001
  }));
8906
9002
 
8907
- function shadowBan(_x44, _x45) {
9003
+ function shadowBan(_x48, _x49) {
8908
9004
  return _shadowBan.apply(this, arguments);
8909
9005
  }
8910
9006
 
@@ -8920,28 +9016,28 @@ var StreamChat = /*#__PURE__*/function () {
8920
9016
  }, {
8921
9017
  key: "removeShadowBan",
8922
9018
  value: function () {
8923
- var _removeShadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(targetUserID, options) {
8924
- return _regeneratorRuntime.wrap(function _callee36$(_context36) {
9019
+ var _removeShadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(targetUserID, options) {
9020
+ return _regeneratorRuntime.wrap(function _callee38$(_context38) {
8925
9021
  while (1) {
8926
- switch (_context36.prev = _context36.next) {
9022
+ switch (_context38.prev = _context38.next) {
8927
9023
  case 0:
8928
- _context36.next = 2;
9024
+ _context38.next = 2;
8929
9025
  return this.unbanUser(targetUserID, _objectSpread({
8930
9026
  shadow: true
8931
9027
  }, options));
8932
9028
 
8933
9029
  case 2:
8934
- return _context36.abrupt("return", _context36.sent);
9030
+ return _context38.abrupt("return", _context38.sent);
8935
9031
 
8936
9032
  case 3:
8937
9033
  case "end":
8938
- return _context36.stop();
9034
+ return _context38.stop();
8939
9035
  }
8940
9036
  }
8941
- }, _callee36, this);
9037
+ }, _callee38, this);
8942
9038
  }));
8943
9039
 
8944
- function removeShadowBan(_x46, _x47) {
9040
+ function removeShadowBan(_x50, _x51) {
8945
9041
  return _removeShadowBan.apply(this, arguments);
8946
9042
  }
8947
9043
 
@@ -8958,15 +9054,15 @@ var StreamChat = /*#__PURE__*/function () {
8958
9054
  }, {
8959
9055
  key: "muteUser",
8960
9056
  value: function () {
8961
- var _muteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(targetID, userID) {
9057
+ var _muteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(targetID, userID) {
8962
9058
  var options,
8963
- _args37 = arguments;
8964
- return _regeneratorRuntime.wrap(function _callee37$(_context37) {
9059
+ _args39 = arguments;
9060
+ return _regeneratorRuntime.wrap(function _callee39$(_context39) {
8965
9061
  while (1) {
8966
- switch (_context37.prev = _context37.next) {
9062
+ switch (_context39.prev = _context39.next) {
8967
9063
  case 0:
8968
- options = _args37.length > 2 && _args37[2] !== undefined ? _args37[2] : {};
8969
- _context37.next = 3;
9064
+ options = _args39.length > 2 && _args39[2] !== undefined ? _args39[2] : {};
9065
+ _context39.next = 3;
8970
9066
  return this.post(this.baseURL + '/moderation/mute', _objectSpread(_objectSpread({
8971
9067
  target_id: targetID
8972
9068
  }, userID ? {
@@ -8974,17 +9070,17 @@ var StreamChat = /*#__PURE__*/function () {
8974
9070
  } : {}), options));
8975
9071
 
8976
9072
  case 3:
8977
- return _context37.abrupt("return", _context37.sent);
9073
+ return _context39.abrupt("return", _context39.sent);
8978
9074
 
8979
9075
  case 4:
8980
9076
  case "end":
8981
- return _context37.stop();
9077
+ return _context39.stop();
8982
9078
  }
8983
9079
  }
8984
- }, _callee37, this);
9080
+ }, _callee39, this);
8985
9081
  }));
8986
9082
 
8987
- function muteUser(_x48, _x49) {
9083
+ function muteUser(_x52, _x53) {
8988
9084
  return _muteUser.apply(this, arguments);
8989
9085
  }
8990
9086
 
@@ -9000,12 +9096,12 @@ var StreamChat = /*#__PURE__*/function () {
9000
9096
  }, {
9001
9097
  key: "unmuteUser",
9002
9098
  value: function () {
9003
- var _unmuteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(targetID, currentUserID) {
9004
- return _regeneratorRuntime.wrap(function _callee38$(_context38) {
9099
+ var _unmuteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(targetID, currentUserID) {
9100
+ return _regeneratorRuntime.wrap(function _callee40$(_context40) {
9005
9101
  while (1) {
9006
- switch (_context38.prev = _context38.next) {
9102
+ switch (_context40.prev = _context40.next) {
9007
9103
  case 0:
9008
- _context38.next = 2;
9104
+ _context40.next = 2;
9009
9105
  return this.post(this.baseURL + '/moderation/unmute', _objectSpread({
9010
9106
  target_id: targetID
9011
9107
  }, currentUserID ? {
@@ -9013,17 +9109,17 @@ var StreamChat = /*#__PURE__*/function () {
9013
9109
  } : {}));
9014
9110
 
9015
9111
  case 2:
9016
- return _context38.abrupt("return", _context38.sent);
9112
+ return _context40.abrupt("return", _context40.sent);
9017
9113
 
9018
9114
  case 3:
9019
9115
  case "end":
9020
- return _context38.stop();
9116
+ return _context40.stop();
9021
9117
  }
9022
9118
  }
9023
- }, _callee38, this);
9119
+ }, _callee40, this);
9024
9120
  }));
9025
9121
 
9026
- function unmuteUser(_x50, _x51) {
9122
+ function unmuteUser(_x54, _x55) {
9027
9123
  return _unmuteUser.apply(this, arguments);
9028
9124
  }
9029
9125
 
@@ -9058,31 +9154,31 @@ var StreamChat = /*#__PURE__*/function () {
9058
9154
  }, {
9059
9155
  key: "flagMessage",
9060
9156
  value: function () {
9061
- var _flagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(targetMessageID) {
9157
+ var _flagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(targetMessageID) {
9062
9158
  var options,
9063
- _args39 = arguments;
9064
- return _regeneratorRuntime.wrap(function _callee39$(_context39) {
9159
+ _args41 = arguments;
9160
+ return _regeneratorRuntime.wrap(function _callee41$(_context41) {
9065
9161
  while (1) {
9066
- switch (_context39.prev = _context39.next) {
9162
+ switch (_context41.prev = _context41.next) {
9067
9163
  case 0:
9068
- options = _args39.length > 1 && _args39[1] !== undefined ? _args39[1] : {};
9069
- _context39.next = 3;
9164
+ options = _args41.length > 1 && _args41[1] !== undefined ? _args41[1] : {};
9165
+ _context41.next = 3;
9070
9166
  return this.post(this.baseURL + '/moderation/flag', _objectSpread({
9071
9167
  target_message_id: targetMessageID
9072
9168
  }, options));
9073
9169
 
9074
9170
  case 3:
9075
- return _context39.abrupt("return", _context39.sent);
9171
+ return _context41.abrupt("return", _context41.sent);
9076
9172
 
9077
9173
  case 4:
9078
9174
  case "end":
9079
- return _context39.stop();
9175
+ return _context41.stop();
9080
9176
  }
9081
9177
  }
9082
- }, _callee39, this);
9178
+ }, _callee41, this);
9083
9179
  }));
9084
9180
 
9085
- function flagMessage(_x52) {
9181
+ function flagMessage(_x56) {
9086
9182
  return _flagMessage.apply(this, arguments);
9087
9183
  }
9088
9184
 
@@ -9098,31 +9194,31 @@ var StreamChat = /*#__PURE__*/function () {
9098
9194
  }, {
9099
9195
  key: "flagUser",
9100
9196
  value: function () {
9101
- var _flagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(targetID) {
9197
+ var _flagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(targetID) {
9102
9198
  var options,
9103
- _args40 = arguments;
9104
- return _regeneratorRuntime.wrap(function _callee40$(_context40) {
9199
+ _args42 = arguments;
9200
+ return _regeneratorRuntime.wrap(function _callee42$(_context42) {
9105
9201
  while (1) {
9106
- switch (_context40.prev = _context40.next) {
9202
+ switch (_context42.prev = _context42.next) {
9107
9203
  case 0:
9108
- options = _args40.length > 1 && _args40[1] !== undefined ? _args40[1] : {};
9109
- _context40.next = 3;
9204
+ options = _args42.length > 1 && _args42[1] !== undefined ? _args42[1] : {};
9205
+ _context42.next = 3;
9110
9206
  return this.post(this.baseURL + '/moderation/flag', _objectSpread({
9111
9207
  target_user_id: targetID
9112
9208
  }, options));
9113
9209
 
9114
9210
  case 3:
9115
- return _context40.abrupt("return", _context40.sent);
9211
+ return _context42.abrupt("return", _context42.sent);
9116
9212
 
9117
9213
  case 4:
9118
9214
  case "end":
9119
- return _context40.stop();
9215
+ return _context42.stop();
9120
9216
  }
9121
9217
  }
9122
- }, _callee40, this);
9218
+ }, _callee42, this);
9123
9219
  }));
9124
9220
 
9125
- function flagUser(_x53) {
9221
+ function flagUser(_x57) {
9126
9222
  return _flagUser.apply(this, arguments);
9127
9223
  }
9128
9224
 
@@ -9138,31 +9234,31 @@ var StreamChat = /*#__PURE__*/function () {
9138
9234
  }, {
9139
9235
  key: "unflagMessage",
9140
9236
  value: function () {
9141
- var _unflagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(targetMessageID) {
9237
+ var _unflagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(targetMessageID) {
9142
9238
  var options,
9143
- _args41 = arguments;
9144
- return _regeneratorRuntime.wrap(function _callee41$(_context41) {
9239
+ _args43 = arguments;
9240
+ return _regeneratorRuntime.wrap(function _callee43$(_context43) {
9145
9241
  while (1) {
9146
- switch (_context41.prev = _context41.next) {
9242
+ switch (_context43.prev = _context43.next) {
9147
9243
  case 0:
9148
- options = _args41.length > 1 && _args41[1] !== undefined ? _args41[1] : {};
9149
- _context41.next = 3;
9244
+ options = _args43.length > 1 && _args43[1] !== undefined ? _args43[1] : {};
9245
+ _context43.next = 3;
9150
9246
  return this.post(this.baseURL + '/moderation/unflag', _objectSpread({
9151
9247
  target_message_id: targetMessageID
9152
9248
  }, options));
9153
9249
 
9154
9250
  case 3:
9155
- return _context41.abrupt("return", _context41.sent);
9251
+ return _context43.abrupt("return", _context43.sent);
9156
9252
 
9157
9253
  case 4:
9158
9254
  case "end":
9159
- return _context41.stop();
9255
+ return _context43.stop();
9160
9256
  }
9161
9257
  }
9162
- }, _callee41, this);
9258
+ }, _callee43, this);
9163
9259
  }));
9164
9260
 
9165
- function unflagMessage(_x54) {
9261
+ function unflagMessage(_x58) {
9166
9262
  return _unflagMessage.apply(this, arguments);
9167
9263
  }
9168
9264
 
@@ -9178,31 +9274,31 @@ var StreamChat = /*#__PURE__*/function () {
9178
9274
  }, {
9179
9275
  key: "unflagUser",
9180
9276
  value: function () {
9181
- var _unflagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(targetID) {
9277
+ var _unflagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(targetID) {
9182
9278
  var options,
9183
- _args42 = arguments;
9184
- return _regeneratorRuntime.wrap(function _callee42$(_context42) {
9279
+ _args44 = arguments;
9280
+ return _regeneratorRuntime.wrap(function _callee44$(_context44) {
9185
9281
  while (1) {
9186
- switch (_context42.prev = _context42.next) {
9282
+ switch (_context44.prev = _context44.next) {
9187
9283
  case 0:
9188
- options = _args42.length > 1 && _args42[1] !== undefined ? _args42[1] : {};
9189
- _context42.next = 3;
9284
+ options = _args44.length > 1 && _args44[1] !== undefined ? _args44[1] : {};
9285
+ _context44.next = 3;
9190
9286
  return this.post(this.baseURL + '/moderation/unflag', _objectSpread({
9191
9287
  target_user_id: targetID
9192
9288
  }, options));
9193
9289
 
9194
9290
  case 3:
9195
- return _context42.abrupt("return", _context42.sent);
9291
+ return _context44.abrupt("return", _context44.sent);
9196
9292
 
9197
9293
  case 4:
9198
9294
  case "end":
9199
- return _context42.stop();
9295
+ return _context44.stop();
9200
9296
  }
9201
9297
  }
9202
- }, _callee42, this);
9298
+ }, _callee44, this);
9203
9299
  }));
9204
9300
 
9205
- function unflagUser(_x55) {
9301
+ function unflagUser(_x59) {
9206
9302
  return _unflagUser.apply(this, arguments);
9207
9303
  }
9208
9304
 
@@ -9219,29 +9315,29 @@ var StreamChat = /*#__PURE__*/function () {
9219
9315
  }, {
9220
9316
  key: "getCallToken",
9221
9317
  value: function () {
9222
- var _getCallToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(callID) {
9318
+ var _getCallToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(callID) {
9223
9319
  var options,
9224
- _args43 = arguments;
9225
- return _regeneratorRuntime.wrap(function _callee43$(_context43) {
9320
+ _args45 = arguments;
9321
+ return _regeneratorRuntime.wrap(function _callee45$(_context45) {
9226
9322
  while (1) {
9227
- switch (_context43.prev = _context43.next) {
9323
+ switch (_context45.prev = _context45.next) {
9228
9324
  case 0:
9229
- options = _args43.length > 1 && _args43[1] !== undefined ? _args43[1] : {};
9230
- _context43.next = 3;
9325
+ options = _args45.length > 1 && _args45[1] !== undefined ? _args45[1] : {};
9326
+ _context45.next = 3;
9231
9327
  return this.post(this.baseURL + "/calls/".concat(callID), _objectSpread({}, options));
9232
9328
 
9233
9329
  case 3:
9234
- return _context43.abrupt("return", _context43.sent);
9330
+ return _context45.abrupt("return", _context45.sent);
9235
9331
 
9236
9332
  case 4:
9237
9333
  case "end":
9238
- return _context43.stop();
9334
+ return _context45.stop();
9239
9335
  }
9240
9336
  }
9241
- }, _callee43, this);
9337
+ }, _callee45, this);
9242
9338
  }));
9243
9339
 
9244
- function getCallToken(_x56) {
9340
+ function getCallToken(_x60) {
9245
9341
  return _getCallToken.apply(this, arguments);
9246
9342
  }
9247
9343
 
@@ -9264,30 +9360,30 @@ var StreamChat = /*#__PURE__*/function () {
9264
9360
  }, {
9265
9361
  key: "_queryFlags",
9266
9362
  value: function () {
9267
- var _queryFlags2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44() {
9363
+ var _queryFlags2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46() {
9268
9364
  var filterConditions,
9269
9365
  options,
9270
- _args44 = arguments;
9271
- return _regeneratorRuntime.wrap(function _callee44$(_context44) {
9366
+ _args46 = arguments;
9367
+ return _regeneratorRuntime.wrap(function _callee46$(_context46) {
9272
9368
  while (1) {
9273
- switch (_context44.prev = _context44.next) {
9369
+ switch (_context46.prev = _context46.next) {
9274
9370
  case 0:
9275
- filterConditions = _args44.length > 0 && _args44[0] !== undefined ? _args44[0] : {};
9276
- options = _args44.length > 1 && _args44[1] !== undefined ? _args44[1] : {};
9277
- _context44.next = 4;
9371
+ filterConditions = _args46.length > 0 && _args46[0] !== undefined ? _args46[0] : {};
9372
+ options = _args46.length > 1 && _args46[1] !== undefined ? _args46[1] : {};
9373
+ _context46.next = 4;
9278
9374
  return this.post(this.baseURL + '/moderation/flags', _objectSpread({
9279
9375
  filter_conditions: filterConditions
9280
9376
  }, options));
9281
9377
 
9282
9378
  case 4:
9283
- return _context44.abrupt("return", _context44.sent);
9379
+ return _context46.abrupt("return", _context46.sent);
9284
9380
 
9285
9381
  case 5:
9286
9382
  case "end":
9287
- return _context44.stop();
9383
+ return _context46.stop();
9288
9384
  }
9289
9385
  }
9290
- }, _callee44, this);
9386
+ }, _callee46, this);
9291
9387
  }));
9292
9388
 
9293
9389
  function _queryFlags() {
@@ -9313,30 +9409,30 @@ var StreamChat = /*#__PURE__*/function () {
9313
9409
  }, {
9314
9410
  key: "_queryFlagReports",
9315
9411
  value: function () {
9316
- var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45() {
9412
+ var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47() {
9317
9413
  var filterConditions,
9318
9414
  options,
9319
- _args45 = arguments;
9320
- return _regeneratorRuntime.wrap(function _callee45$(_context45) {
9415
+ _args47 = arguments;
9416
+ return _regeneratorRuntime.wrap(function _callee47$(_context47) {
9321
9417
  while (1) {
9322
- switch (_context45.prev = _context45.next) {
9418
+ switch (_context47.prev = _context47.next) {
9323
9419
  case 0:
9324
- filterConditions = _args45.length > 0 && _args45[0] !== undefined ? _args45[0] : {};
9325
- options = _args45.length > 1 && _args45[1] !== undefined ? _args45[1] : {};
9326
- _context45.next = 4;
9420
+ filterConditions = _args47.length > 0 && _args47[0] !== undefined ? _args47[0] : {};
9421
+ options = _args47.length > 1 && _args47[1] !== undefined ? _args47[1] : {};
9422
+ _context47.next = 4;
9327
9423
  return this.post(this.baseURL + '/moderation/reports', _objectSpread({
9328
9424
  filter_conditions: filterConditions
9329
9425
  }, options));
9330
9426
 
9331
9427
  case 4:
9332
- return _context45.abrupt("return", _context45.sent);
9428
+ return _context47.abrupt("return", _context47.sent);
9333
9429
 
9334
9430
  case 5:
9335
9431
  case "end":
9336
- return _context45.stop();
9432
+ return _context47.stop();
9337
9433
  }
9338
9434
  }
9339
- }, _callee45, this);
9435
+ }, _callee47, this);
9340
9436
  }));
9341
9437
 
9342
9438
  function _queryFlagReports() {
@@ -9363,31 +9459,31 @@ var StreamChat = /*#__PURE__*/function () {
9363
9459
  }, {
9364
9460
  key: "_reviewFlagReport",
9365
9461
  value: function () {
9366
- var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(id, reviewResult) {
9462
+ var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(id, reviewResult) {
9367
9463
  var options,
9368
- _args46 = arguments;
9369
- return _regeneratorRuntime.wrap(function _callee46$(_context46) {
9464
+ _args48 = arguments;
9465
+ return _regeneratorRuntime.wrap(function _callee48$(_context48) {
9370
9466
  while (1) {
9371
- switch (_context46.prev = _context46.next) {
9467
+ switch (_context48.prev = _context48.next) {
9372
9468
  case 0:
9373
- options = _args46.length > 2 && _args46[2] !== undefined ? _args46[2] : {};
9374
- _context46.next = 3;
9469
+ options = _args48.length > 2 && _args48[2] !== undefined ? _args48[2] : {};
9470
+ _context48.next = 3;
9375
9471
  return this.patch(this.baseURL + "/moderation/reports/".concat(id), _objectSpread({
9376
9472
  review_result: reviewResult
9377
9473
  }, options));
9378
9474
 
9379
9475
  case 3:
9380
- return _context46.abrupt("return", _context46.sent);
9476
+ return _context48.abrupt("return", _context48.sent);
9381
9477
 
9382
9478
  case 4:
9383
9479
  case "end":
9384
- return _context46.stop();
9480
+ return _context48.stop();
9385
9481
  }
9386
9482
  }
9387
- }, _callee46, this);
9483
+ }, _callee48, this);
9388
9484
  }));
9389
9485
 
9390
- function _reviewFlagReport(_x57, _x58) {
9486
+ function _reviewFlagReport(_x61, _x62) {
9391
9487
  return _reviewFlagReport2.apply(this, arguments);
9392
9488
  }
9393
9489
 
@@ -9409,31 +9505,31 @@ var StreamChat = /*#__PURE__*/function () {
9409
9505
  }, {
9410
9506
  key: "_unblockMessage",
9411
9507
  value: function () {
9412
- var _unblockMessage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(targetMessageID) {
9508
+ var _unblockMessage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(targetMessageID) {
9413
9509
  var options,
9414
- _args47 = arguments;
9415
- return _regeneratorRuntime.wrap(function _callee47$(_context47) {
9510
+ _args49 = arguments;
9511
+ return _regeneratorRuntime.wrap(function _callee49$(_context49) {
9416
9512
  while (1) {
9417
- switch (_context47.prev = _context47.next) {
9513
+ switch (_context49.prev = _context49.next) {
9418
9514
  case 0:
9419
- options = _args47.length > 1 && _args47[1] !== undefined ? _args47[1] : {};
9420
- _context47.next = 3;
9515
+ options = _args49.length > 1 && _args49[1] !== undefined ? _args49[1] : {};
9516
+ _context49.next = 3;
9421
9517
  return this.post(this.baseURL + '/moderation/unblock_message', _objectSpread({
9422
9518
  target_message_id: targetMessageID
9423
9519
  }, options));
9424
9520
 
9425
9521
  case 3:
9426
- return _context47.abrupt("return", _context47.sent);
9522
+ return _context49.abrupt("return", _context49.sent);
9427
9523
 
9428
9524
  case 4:
9429
9525
  case "end":
9430
- return _context47.stop();
9526
+ return _context49.stop();
9431
9527
  }
9432
9528
  }
9433
- }, _callee47, this);
9529
+ }, _callee49, this);
9434
9530
  }));
9435
9531
 
9436
- function _unblockMessage(_x59) {
9532
+ function _unblockMessage(_x63) {
9437
9533
  return _unblockMessage2.apply(this, arguments);
9438
9534
  }
9439
9535
 
@@ -9460,23 +9556,23 @@ var StreamChat = /*#__PURE__*/function () {
9460
9556
  * @return {Promise<APIResponse>}
9461
9557
  */
9462
9558
  function () {
9463
- var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48() {
9559
+ var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50() {
9464
9560
  var data,
9465
- _args48 = arguments;
9466
- return _regeneratorRuntime.wrap(function _callee48$(_context48) {
9561
+ _args50 = arguments;
9562
+ return _regeneratorRuntime.wrap(function _callee50$(_context50) {
9467
9563
  while (1) {
9468
- switch (_context48.prev = _context48.next) {
9564
+ switch (_context50.prev = _context50.next) {
9469
9565
  case 0:
9470
- data = _args48.length > 0 && _args48[0] !== undefined ? _args48[0] : {};
9471
- _context48.next = 3;
9566
+ data = _args50.length > 0 && _args50[0] !== undefined ? _args50[0] : {};
9567
+ _context50.next = 3;
9472
9568
  return this.post(this.baseURL + '/channels/read', _objectSpread({}, data));
9473
9569
 
9474
9570
  case 3:
9475
9571
  case "end":
9476
- return _context48.stop();
9572
+ return _context50.stop();
9477
9573
  }
9478
9574
  }
9479
- }, _callee48, this);
9575
+ }, _callee50, this);
9480
9576
  }));
9481
9577
 
9482
9578
  function markChannelsRead() {
@@ -9551,28 +9647,28 @@ var StreamChat = /*#__PURE__*/function () {
9551
9647
  }, {
9552
9648
  key: "translateMessage",
9553
9649
  value: function () {
9554
- var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(messageId, language) {
9555
- return _regeneratorRuntime.wrap(function _callee49$(_context49) {
9650
+ var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(messageId, language) {
9651
+ return _regeneratorRuntime.wrap(function _callee51$(_context51) {
9556
9652
  while (1) {
9557
- switch (_context49.prev = _context49.next) {
9653
+ switch (_context51.prev = _context51.next) {
9558
9654
  case 0:
9559
- _context49.next = 2;
9655
+ _context51.next = 2;
9560
9656
  return this.post(this.baseURL + "/messages/".concat(messageId, "/translate"), {
9561
9657
  language: language
9562
9658
  });
9563
9659
 
9564
9660
  case 2:
9565
- return _context49.abrupt("return", _context49.sent);
9661
+ return _context51.abrupt("return", _context51.sent);
9566
9662
 
9567
9663
  case 3:
9568
9664
  case "end":
9569
- return _context49.stop();
9665
+ return _context51.stop();
9570
9666
  }
9571
9667
  }
9572
- }, _callee49, this);
9668
+ }, _callee51, this);
9573
9669
  }));
9574
9670
 
9575
- function translateMessage(_x60, _x61) {
9671
+ function translateMessage(_x64, _x65) {
9576
9672
  return _translateMessage.apply(this, arguments);
9577
9673
  }
9578
9674
 
@@ -9674,14 +9770,14 @@ var StreamChat = /*#__PURE__*/function () {
9674
9770
  }, {
9675
9771
  key: "updateMessage",
9676
9772
  value: function () {
9677
- var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(message, userId, options) {
9773
+ var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(message, userId, options) {
9678
9774
  var clonedMessage, reservedMessageFields;
9679
- return _regeneratorRuntime.wrap(function _callee50$(_context50) {
9775
+ return _regeneratorRuntime.wrap(function _callee52$(_context52) {
9680
9776
  while (1) {
9681
- switch (_context50.prev = _context50.next) {
9777
+ switch (_context52.prev = _context52.next) {
9682
9778
  case 0:
9683
9779
  if (message.id) {
9684
- _context50.next = 2;
9780
+ _context52.next = 2;
9685
9781
  break;
9686
9782
  }
9687
9783
 
@@ -9718,23 +9814,23 @@ var StreamChat = /*#__PURE__*/function () {
9718
9814
  });
9719
9815
  }
9720
9816
 
9721
- _context50.next = 10;
9817
+ _context52.next = 10;
9722
9818
  return this.post(this.baseURL + "/messages/".concat(message.id), _objectSpread({
9723
9819
  message: clonedMessage
9724
9820
  }, options));
9725
9821
 
9726
9822
  case 10:
9727
- return _context50.abrupt("return", _context50.sent);
9823
+ return _context52.abrupt("return", _context52.sent);
9728
9824
 
9729
9825
  case 11:
9730
9826
  case "end":
9731
- return _context50.stop();
9827
+ return _context52.stop();
9732
9828
  }
9733
9829
  }
9734
- }, _callee50, this);
9830
+ }, _callee52, this);
9735
9831
  }));
9736
9832
 
9737
- function updateMessage(_x62, _x63, _x64) {
9833
+ function updateMessage(_x66, _x67, _x68) {
9738
9834
  return _updateMessage.apply(this, arguments);
9739
9835
  }
9740
9836
 
@@ -9757,14 +9853,14 @@ var StreamChat = /*#__PURE__*/function () {
9757
9853
  }, {
9758
9854
  key: "partialUpdateMessage",
9759
9855
  value: function () {
9760
- var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(id, partialMessageObject, userId, options) {
9856
+ var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(id, partialMessageObject, userId, options) {
9761
9857
  var user;
9762
- return _regeneratorRuntime.wrap(function _callee51$(_context51) {
9858
+ return _regeneratorRuntime.wrap(function _callee53$(_context53) {
9763
9859
  while (1) {
9764
- switch (_context51.prev = _context51.next) {
9860
+ switch (_context53.prev = _context53.next) {
9765
9861
  case 0:
9766
9862
  if (id) {
9767
- _context51.next = 2;
9863
+ _context53.next = 2;
9768
9864
  break;
9769
9865
  }
9770
9866
 
@@ -9779,23 +9875,23 @@ var StreamChat = /*#__PURE__*/function () {
9779
9875
  };
9780
9876
  }
9781
9877
 
9782
- _context51.next = 6;
9878
+ _context53.next = 6;
9783
9879
  return this.put(this.baseURL + "/messages/".concat(id), _objectSpread(_objectSpread(_objectSpread({}, partialMessageObject), options), {}, {
9784
9880
  user: user
9785
9881
  }));
9786
9882
 
9787
9883
  case 6:
9788
- return _context51.abrupt("return", _context51.sent);
9884
+ return _context53.abrupt("return", _context53.sent);
9789
9885
 
9790
9886
  case 7:
9791
9887
  case "end":
9792
- return _context51.stop();
9888
+ return _context53.stop();
9793
9889
  }
9794
9890
  }
9795
- }, _callee51, this);
9891
+ }, _callee53, this);
9796
9892
  }));
9797
9893
 
9798
- function partialUpdateMessage(_x65, _x66, _x67, _x68) {
9894
+ function partialUpdateMessage(_x69, _x70, _x71, _x72) {
9799
9895
  return _partialUpdateMessage.apply(this, arguments);
9800
9896
  }
9801
9897
 
@@ -9804,11 +9900,11 @@ var StreamChat = /*#__PURE__*/function () {
9804
9900
  }, {
9805
9901
  key: "deleteMessage",
9806
9902
  value: function () {
9807
- var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(messageID, hardDelete) {
9903
+ var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(messageID, hardDelete) {
9808
9904
  var params;
9809
- return _regeneratorRuntime.wrap(function _callee52$(_context52) {
9905
+ return _regeneratorRuntime.wrap(function _callee54$(_context54) {
9810
9906
  while (1) {
9811
- switch (_context52.prev = _context52.next) {
9907
+ switch (_context54.prev = _context54.next) {
9812
9908
  case 0:
9813
9909
  params = {};
9814
9910
 
@@ -9818,21 +9914,21 @@ var StreamChat = /*#__PURE__*/function () {
9818
9914
  };
9819
9915
  }
9820
9916
 
9821
- _context52.next = 4;
9917
+ _context54.next = 4;
9822
9918
  return this.delete(this.baseURL + "/messages/".concat(messageID), params);
9823
9919
 
9824
9920
  case 4:
9825
- return _context52.abrupt("return", _context52.sent);
9921
+ return _context54.abrupt("return", _context54.sent);
9826
9922
 
9827
9923
  case 5:
9828
9924
  case "end":
9829
- return _context52.stop();
9925
+ return _context54.stop();
9830
9926
  }
9831
9927
  }
9832
- }, _callee52, this);
9928
+ }, _callee54, this);
9833
9929
  }));
9834
9930
 
9835
- function deleteMessage(_x69, _x70) {
9931
+ function deleteMessage(_x73, _x74) {
9836
9932
  return _deleteMessage.apply(this, arguments);
9837
9933
  }
9838
9934
 
@@ -9841,26 +9937,26 @@ var StreamChat = /*#__PURE__*/function () {
9841
9937
  }, {
9842
9938
  key: "getMessage",
9843
9939
  value: function () {
9844
- var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(messageID) {
9845
- return _regeneratorRuntime.wrap(function _callee53$(_context53) {
9940
+ var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(messageID) {
9941
+ return _regeneratorRuntime.wrap(function _callee55$(_context55) {
9846
9942
  while (1) {
9847
- switch (_context53.prev = _context53.next) {
9943
+ switch (_context55.prev = _context55.next) {
9848
9944
  case 0:
9849
- _context53.next = 2;
9945
+ _context55.next = 2;
9850
9946
  return this.get(this.baseURL + "/messages/".concat(messageID));
9851
9947
 
9852
9948
  case 2:
9853
- return _context53.abrupt("return", _context53.sent);
9949
+ return _context55.abrupt("return", _context55.sent);
9854
9950
 
9855
9951
  case 3:
9856
9952
  case "end":
9857
- return _context53.stop();
9953
+ return _context55.stop();
9858
9954
  }
9859
9955
  }
9860
- }, _callee53, this);
9956
+ }, _callee55, this);
9861
9957
  }));
9862
9958
 
9863
- function getMessage(_x71) {
9959
+ function getMessage(_x75) {
9864
9960
  return _getMessage.apply(this, arguments);
9865
9961
  }
9866
9962
 
@@ -9869,7 +9965,7 @@ var StreamChat = /*#__PURE__*/function () {
9869
9965
  }, {
9870
9966
  key: "getUserAgent",
9871
9967
  value: function getUserAgent() {
9872
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.1.3");
9968
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.2.0");
9873
9969
  }
9874
9970
  }, {
9875
9971
  key: "setUserAgent",
@@ -10076,28 +10172,28 @@ var StreamChat = /*#__PURE__*/function () {
10076
10172
  }, {
10077
10173
  key: "sendUserCustomEvent",
10078
10174
  value: function () {
10079
- var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(targetUserID, event) {
10080
- return _regeneratorRuntime.wrap(function _callee54$(_context54) {
10175
+ var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(targetUserID, event) {
10176
+ return _regeneratorRuntime.wrap(function _callee56$(_context56) {
10081
10177
  while (1) {
10082
- switch (_context54.prev = _context54.next) {
10178
+ switch (_context56.prev = _context56.next) {
10083
10179
  case 0:
10084
- _context54.next = 2;
10180
+ _context56.next = 2;
10085
10181
  return this.post("".concat(this.baseURL, "/users/").concat(targetUserID, "/event"), {
10086
10182
  event: event
10087
10183
  });
10088
10184
 
10089
10185
  case 2:
10090
- return _context54.abrupt("return", _context54.sent);
10186
+ return _context56.abrupt("return", _context56.sent);
10091
10187
 
10092
10188
  case 3:
10093
10189
  case "end":
10094
- return _context54.stop();
10190
+ return _context56.stop();
10095
10191
  }
10096
10192
  }
10097
- }, _callee54, this);
10193
+ }, _callee56, this);
10098
10194
  }));
10099
10195
 
10100
- function sendUserCustomEvent(_x72, _x73) {
10196
+ function sendUserCustomEvent(_x76, _x77) {
10101
10197
  return _sendUserCustomEvent.apply(this, arguments);
10102
10198
  }
10103
10199
 
@@ -10165,32 +10261,32 @@ var StreamChat = /*#__PURE__*/function () {
10165
10261
  }, {
10166
10262
  key: "createSegment",
10167
10263
  value: function () {
10168
- var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(params) {
10264
+ var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(params) {
10169
10265
  var _yield$this$post, segment;
10170
10266
 
10171
- return _regeneratorRuntime.wrap(function _callee55$(_context55) {
10267
+ return _regeneratorRuntime.wrap(function _callee57$(_context57) {
10172
10268
  while (1) {
10173
- switch (_context55.prev = _context55.next) {
10269
+ switch (_context57.prev = _context57.next) {
10174
10270
  case 0:
10175
- _context55.next = 2;
10271
+ _context57.next = 2;
10176
10272
  return this.post(this.baseURL + "/segments", {
10177
10273
  segment: params
10178
10274
  });
10179
10275
 
10180
10276
  case 2:
10181
- _yield$this$post = _context55.sent;
10277
+ _yield$this$post = _context57.sent;
10182
10278
  segment = _yield$this$post.segment;
10183
- return _context55.abrupt("return", segment);
10279
+ return _context57.abrupt("return", segment);
10184
10280
 
10185
10281
  case 5:
10186
10282
  case "end":
10187
- return _context55.stop();
10283
+ return _context57.stop();
10188
10284
  }
10189
10285
  }
10190
- }, _callee55, this);
10286
+ }, _callee57, this);
10191
10287
  }));
10192
10288
 
10193
- function createSegment(_x74) {
10289
+ function createSegment(_x78) {
10194
10290
  return _createSegment.apply(this, arguments);
10195
10291
  }
10196
10292
 
@@ -10206,15 +10302,15 @@ var StreamChat = /*#__PURE__*/function () {
10206
10302
  }, {
10207
10303
  key: "querySegments",
10208
10304
  value: function () {
10209
- var _querySegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(filters) {
10305
+ var _querySegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(filters) {
10210
10306
  var options,
10211
- _args56 = arguments;
10212
- return _regeneratorRuntime.wrap(function _callee56$(_context56) {
10307
+ _args58 = arguments;
10308
+ return _regeneratorRuntime.wrap(function _callee58$(_context58) {
10213
10309
  while (1) {
10214
- switch (_context56.prev = _context56.next) {
10310
+ switch (_context58.prev = _context58.next) {
10215
10311
  case 0:
10216
- options = _args56.length > 1 && _args56[1] !== undefined ? _args56[1] : {};
10217
- _context56.next = 3;
10312
+ options = _args58.length > 1 && _args58[1] !== undefined ? _args58[1] : {};
10313
+ _context58.next = 3;
10218
10314
  return this.get(this.baseURL + "/segments", {
10219
10315
  payload: _objectSpread({
10220
10316
  filter_conditions: filters
@@ -10222,17 +10318,17 @@ var StreamChat = /*#__PURE__*/function () {
10222
10318
  });
10223
10319
 
10224
10320
  case 3:
10225
- return _context56.abrupt("return", _context56.sent);
10321
+ return _context58.abrupt("return", _context58.sent);
10226
10322
 
10227
10323
  case 4:
10228
10324
  case "end":
10229
- return _context56.stop();
10325
+ return _context58.stop();
10230
10326
  }
10231
10327
  }
10232
- }, _callee56, this);
10328
+ }, _callee58, this);
10233
10329
  }));
10234
10330
 
10235
- function querySegments(_x75) {
10331
+ function querySegments(_x79) {
10236
10332
  return _querySegments.apply(this, arguments);
10237
10333
  }
10238
10334
 
@@ -10250,32 +10346,32 @@ var StreamChat = /*#__PURE__*/function () {
10250
10346
  }, {
10251
10347
  key: "updateSegment",
10252
10348
  value: function () {
10253
- var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(id, params) {
10349
+ var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(id, params) {
10254
10350
  var _yield$this$put, segment;
10255
10351
 
10256
- return _regeneratorRuntime.wrap(function _callee57$(_context57) {
10352
+ return _regeneratorRuntime.wrap(function _callee59$(_context59) {
10257
10353
  while (1) {
10258
- switch (_context57.prev = _context57.next) {
10354
+ switch (_context59.prev = _context59.next) {
10259
10355
  case 0:
10260
- _context57.next = 2;
10356
+ _context59.next = 2;
10261
10357
  return this.put(this.baseURL + "/segments/".concat(id), {
10262
10358
  segment: params
10263
10359
  });
10264
10360
 
10265
10361
  case 2:
10266
- _yield$this$put = _context57.sent;
10362
+ _yield$this$put = _context59.sent;
10267
10363
  segment = _yield$this$put.segment;
10268
- return _context57.abrupt("return", segment);
10364
+ return _context59.abrupt("return", segment);
10269
10365
 
10270
10366
  case 5:
10271
10367
  case "end":
10272
- return _context57.stop();
10368
+ return _context59.stop();
10273
10369
  }
10274
10370
  }
10275
- }, _callee57, this);
10371
+ }, _callee59, this);
10276
10372
  }));
10277
10373
 
10278
- function updateSegment(_x76, _x77) {
10374
+ function updateSegment(_x80, _x81) {
10279
10375
  return _updateSegment.apply(this, arguments);
10280
10376
  }
10281
10377
 
@@ -10292,22 +10388,22 @@ var StreamChat = /*#__PURE__*/function () {
10292
10388
  }, {
10293
10389
  key: "deleteSegment",
10294
10390
  value: function () {
10295
- var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(id) {
10296
- return _regeneratorRuntime.wrap(function _callee58$(_context58) {
10391
+ var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(id) {
10392
+ return _regeneratorRuntime.wrap(function _callee60$(_context60) {
10297
10393
  while (1) {
10298
- switch (_context58.prev = _context58.next) {
10394
+ switch (_context60.prev = _context60.next) {
10299
10395
  case 0:
10300
- return _context58.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
10396
+ return _context60.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
10301
10397
 
10302
10398
  case 1:
10303
10399
  case "end":
10304
- return _context58.stop();
10400
+ return _context60.stop();
10305
10401
  }
10306
10402
  }
10307
- }, _callee58, this);
10403
+ }, _callee60, this);
10308
10404
  }));
10309
10405
 
10310
- function deleteSegment(_x78) {
10406
+ function deleteSegment(_x82) {
10311
10407
  return _deleteSegment.apply(this, arguments);
10312
10408
  }
10313
10409
 
@@ -10324,32 +10420,32 @@ var StreamChat = /*#__PURE__*/function () {
10324
10420
  }, {
10325
10421
  key: "createCampaign",
10326
10422
  value: function () {
10327
- var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(params) {
10423
+ var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(params) {
10328
10424
  var _yield$this$post2, campaign;
10329
10425
 
10330
- return _regeneratorRuntime.wrap(function _callee59$(_context59) {
10426
+ return _regeneratorRuntime.wrap(function _callee61$(_context61) {
10331
10427
  while (1) {
10332
- switch (_context59.prev = _context59.next) {
10428
+ switch (_context61.prev = _context61.next) {
10333
10429
  case 0:
10334
- _context59.next = 2;
10430
+ _context61.next = 2;
10335
10431
  return this.post(this.baseURL + "/campaigns", {
10336
10432
  campaign: params
10337
10433
  });
10338
10434
 
10339
10435
  case 2:
10340
- _yield$this$post2 = _context59.sent;
10436
+ _yield$this$post2 = _context61.sent;
10341
10437
  campaign = _yield$this$post2.campaign;
10342
- return _context59.abrupt("return", campaign);
10438
+ return _context61.abrupt("return", campaign);
10343
10439
 
10344
10440
  case 5:
10345
10441
  case "end":
10346
- return _context59.stop();
10442
+ return _context61.stop();
10347
10443
  }
10348
10444
  }
10349
- }, _callee59, this);
10445
+ }, _callee61, this);
10350
10446
  }));
10351
10447
 
10352
- function createCampaign(_x79) {
10448
+ function createCampaign(_x83) {
10353
10449
  return _createCampaign.apply(this, arguments);
10354
10450
  }
10355
10451
 
@@ -10365,15 +10461,15 @@ var StreamChat = /*#__PURE__*/function () {
10365
10461
  }, {
10366
10462
  key: "queryCampaigns",
10367
10463
  value: function () {
10368
- var _queryCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(filters) {
10464
+ var _queryCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(filters) {
10369
10465
  var options,
10370
- _args60 = arguments;
10371
- return _regeneratorRuntime.wrap(function _callee60$(_context60) {
10466
+ _args62 = arguments;
10467
+ return _regeneratorRuntime.wrap(function _callee62$(_context62) {
10372
10468
  while (1) {
10373
- switch (_context60.prev = _context60.next) {
10469
+ switch (_context62.prev = _context62.next) {
10374
10470
  case 0:
10375
- options = _args60.length > 1 && _args60[1] !== undefined ? _args60[1] : {};
10376
- _context60.next = 3;
10471
+ options = _args62.length > 1 && _args62[1] !== undefined ? _args62[1] : {};
10472
+ _context62.next = 3;
10377
10473
  return this.get(this.baseURL + "/campaigns", {
10378
10474
  payload: _objectSpread({
10379
10475
  filter_conditions: filters
@@ -10381,17 +10477,17 @@ var StreamChat = /*#__PURE__*/function () {
10381
10477
  });
10382
10478
 
10383
10479
  case 3:
10384
- return _context60.abrupt("return", _context60.sent);
10480
+ return _context62.abrupt("return", _context62.sent);
10385
10481
 
10386
10482
  case 4:
10387
10483
  case "end":
10388
- return _context60.stop();
10484
+ return _context62.stop();
10389
10485
  }
10390
10486
  }
10391
- }, _callee60, this);
10487
+ }, _callee62, this);
10392
10488
  }));
10393
10489
 
10394
- function queryCampaigns(_x80) {
10490
+ function queryCampaigns(_x84) {
10395
10491
  return _queryCampaigns.apply(this, arguments);
10396
10492
  }
10397
10493
 
@@ -10409,32 +10505,32 @@ var StreamChat = /*#__PURE__*/function () {
10409
10505
  }, {
10410
10506
  key: "updateCampaign",
10411
10507
  value: function () {
10412
- var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(id, params) {
10508
+ var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(id, params) {
10413
10509
  var _yield$this$put2, campaign;
10414
10510
 
10415
- return _regeneratorRuntime.wrap(function _callee61$(_context61) {
10511
+ return _regeneratorRuntime.wrap(function _callee63$(_context63) {
10416
10512
  while (1) {
10417
- switch (_context61.prev = _context61.next) {
10513
+ switch (_context63.prev = _context63.next) {
10418
10514
  case 0:
10419
- _context61.next = 2;
10515
+ _context63.next = 2;
10420
10516
  return this.put(this.baseURL + "/campaigns/".concat(id), {
10421
10517
  campaign: params
10422
10518
  });
10423
10519
 
10424
10520
  case 2:
10425
- _yield$this$put2 = _context61.sent;
10521
+ _yield$this$put2 = _context63.sent;
10426
10522
  campaign = _yield$this$put2.campaign;
10427
- return _context61.abrupt("return", campaign);
10523
+ return _context63.abrupt("return", campaign);
10428
10524
 
10429
10525
  case 5:
10430
10526
  case "end":
10431
- return _context61.stop();
10527
+ return _context63.stop();
10432
10528
  }
10433
10529
  }
10434
- }, _callee61, this);
10530
+ }, _callee63, this);
10435
10531
  }));
10436
10532
 
10437
- function updateCampaign(_x81, _x82) {
10533
+ function updateCampaign(_x85, _x86) {
10438
10534
  return _updateCampaign.apply(this, arguments);
10439
10535
  }
10440
10536
 
@@ -10451,25 +10547,25 @@ var StreamChat = /*#__PURE__*/function () {
10451
10547
  }, {
10452
10548
  key: "deleteCampaign",
10453
10549
  value: function () {
10454
- var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(id) {
10550
+ var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(id) {
10455
10551
  var params,
10456
- _args62 = arguments;
10457
- return _regeneratorRuntime.wrap(function _callee62$(_context62) {
10552
+ _args64 = arguments;
10553
+ return _regeneratorRuntime.wrap(function _callee64$(_context64) {
10458
10554
  while (1) {
10459
- switch (_context62.prev = _context62.next) {
10555
+ switch (_context64.prev = _context64.next) {
10460
10556
  case 0:
10461
- params = _args62.length > 1 && _args62[1] !== undefined ? _args62[1] : {};
10462
- return _context62.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id), params));
10557
+ params = _args64.length > 1 && _args64[1] !== undefined ? _args64[1] : {};
10558
+ return _context64.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id), params));
10463
10559
 
10464
10560
  case 2:
10465
10561
  case "end":
10466
- return _context62.stop();
10562
+ return _context64.stop();
10467
10563
  }
10468
10564
  }
10469
- }, _callee62, this);
10565
+ }, _callee64, this);
10470
10566
  }));
10471
10567
 
10472
- function deleteCampaign(_x83) {
10568
+ function deleteCampaign(_x87) {
10473
10569
  return _deleteCampaign.apply(this, arguments);
10474
10570
  }
10475
10571
 
@@ -10487,33 +10583,33 @@ var StreamChat = /*#__PURE__*/function () {
10487
10583
  }, {
10488
10584
  key: "scheduleCampaign",
10489
10585
  value: function () {
10490
- var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(id, params) {
10586
+ var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(id, params) {
10491
10587
  var scheduledFor, _yield$this$patch, campaign;
10492
10588
 
10493
- return _regeneratorRuntime.wrap(function _callee63$(_context63) {
10589
+ return _regeneratorRuntime.wrap(function _callee65$(_context65) {
10494
10590
  while (1) {
10495
- switch (_context63.prev = _context63.next) {
10591
+ switch (_context65.prev = _context65.next) {
10496
10592
  case 0:
10497
10593
  scheduledFor = params.scheduledFor;
10498
- _context63.next = 3;
10594
+ _context65.next = 3;
10499
10595
  return this.patch(this.baseURL + "/campaigns/".concat(id, "/schedule"), {
10500
10596
  scheduled_for: scheduledFor
10501
10597
  });
10502
10598
 
10503
10599
  case 3:
10504
- _yield$this$patch = _context63.sent;
10600
+ _yield$this$patch = _context65.sent;
10505
10601
  campaign = _yield$this$patch.campaign;
10506
- return _context63.abrupt("return", campaign);
10602
+ return _context65.abrupt("return", campaign);
10507
10603
 
10508
10604
  case 6:
10509
10605
  case "end":
10510
- return _context63.stop();
10606
+ return _context65.stop();
10511
10607
  }
10512
10608
  }
10513
- }, _callee63, this);
10609
+ }, _callee65, this);
10514
10610
  }));
10515
10611
 
10516
- function scheduleCampaign(_x84, _x85) {
10612
+ function scheduleCampaign(_x88, _x89) {
10517
10613
  return _scheduleCampaign.apply(this, arguments);
10518
10614
  }
10519
10615
 
@@ -10530,30 +10626,30 @@ var StreamChat = /*#__PURE__*/function () {
10530
10626
  }, {
10531
10627
  key: "stopCampaign",
10532
10628
  value: function () {
10533
- var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(id) {
10629
+ var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(id) {
10534
10630
  var _yield$this$patch2, campaign;
10535
10631
 
10536
- return _regeneratorRuntime.wrap(function _callee64$(_context64) {
10632
+ return _regeneratorRuntime.wrap(function _callee66$(_context66) {
10537
10633
  while (1) {
10538
- switch (_context64.prev = _context64.next) {
10634
+ switch (_context66.prev = _context66.next) {
10539
10635
  case 0:
10540
- _context64.next = 2;
10636
+ _context66.next = 2;
10541
10637
  return this.patch(this.baseURL + "/campaigns/".concat(id, "/stop"));
10542
10638
 
10543
10639
  case 2:
10544
- _yield$this$patch2 = _context64.sent;
10640
+ _yield$this$patch2 = _context66.sent;
10545
10641
  campaign = _yield$this$patch2.campaign;
10546
- return _context64.abrupt("return", campaign);
10642
+ return _context66.abrupt("return", campaign);
10547
10643
 
10548
10644
  case 5:
10549
10645
  case "end":
10550
- return _context64.stop();
10646
+ return _context66.stop();
10551
10647
  }
10552
10648
  }
10553
- }, _callee64, this);
10649
+ }, _callee66, this);
10554
10650
  }));
10555
10651
 
10556
- function stopCampaign(_x86) {
10652
+ function stopCampaign(_x90) {
10557
10653
  return _stopCampaign.apply(this, arguments);
10558
10654
  }
10559
10655
 
@@ -10570,30 +10666,30 @@ var StreamChat = /*#__PURE__*/function () {
10570
10666
  }, {
10571
10667
  key: "resumeCampaign",
10572
10668
  value: function () {
10573
- var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(id) {
10669
+ var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(id) {
10574
10670
  var _yield$this$patch3, campaign;
10575
10671
 
10576
- return _regeneratorRuntime.wrap(function _callee65$(_context65) {
10672
+ return _regeneratorRuntime.wrap(function _callee67$(_context67) {
10577
10673
  while (1) {
10578
- switch (_context65.prev = _context65.next) {
10674
+ switch (_context67.prev = _context67.next) {
10579
10675
  case 0:
10580
- _context65.next = 2;
10676
+ _context67.next = 2;
10581
10677
  return this.patch(this.baseURL + "/campaigns/".concat(id, "/resume"));
10582
10678
 
10583
10679
  case 2:
10584
- _yield$this$patch3 = _context65.sent;
10680
+ _yield$this$patch3 = _context67.sent;
10585
10681
  campaign = _yield$this$patch3.campaign;
10586
- return _context65.abrupt("return", campaign);
10682
+ return _context67.abrupt("return", campaign);
10587
10683
 
10588
10684
  case 5:
10589
10685
  case "end":
10590
- return _context65.stop();
10686
+ return _context67.stop();
10591
10687
  }
10592
10688
  }
10593
- }, _callee65, this);
10689
+ }, _callee67, this);
10594
10690
  }));
10595
10691
 
10596
- function resumeCampaign(_x87) {
10692
+ function resumeCampaign(_x91) {
10597
10693
  return _resumeCampaign.apply(this, arguments);
10598
10694
  }
10599
10695
 
@@ -10611,30 +10707,30 @@ var StreamChat = /*#__PURE__*/function () {
10611
10707
  }, {
10612
10708
  key: "testCampaign",
10613
10709
  value: function () {
10614
- var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(id, params) {
10710
+ var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(id, params) {
10615
10711
  var users;
10616
- return _regeneratorRuntime.wrap(function _callee66$(_context66) {
10712
+ return _regeneratorRuntime.wrap(function _callee68$(_context68) {
10617
10713
  while (1) {
10618
- switch (_context66.prev = _context66.next) {
10714
+ switch (_context68.prev = _context68.next) {
10619
10715
  case 0:
10620
10716
  users = params.users;
10621
- _context66.next = 3;
10717
+ _context68.next = 3;
10622
10718
  return this.post(this.baseURL + "/campaigns/".concat(id, "/test"), {
10623
10719
  users: users
10624
10720
  });
10625
10721
 
10626
10722
  case 3:
10627
- return _context66.abrupt("return", _context66.sent);
10723
+ return _context68.abrupt("return", _context68.sent);
10628
10724
 
10629
10725
  case 4:
10630
10726
  case "end":
10631
- return _context66.stop();
10727
+ return _context68.stop();
10632
10728
  }
10633
10729
  }
10634
- }, _callee66, this);
10730
+ }, _callee68, this);
10635
10731
  }));
10636
10732
 
10637
- function testCampaign(_x88, _x89) {
10733
+ function testCampaign(_x92, _x93) {
10638
10734
  return _testCampaign.apply(this, arguments);
10639
10735
  }
10640
10736
 
@@ -10650,15 +10746,15 @@ var StreamChat = /*#__PURE__*/function () {
10650
10746
  }, {
10651
10747
  key: "queryRecipients",
10652
10748
  value: function () {
10653
- var _queryRecipients = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(filters) {
10749
+ var _queryRecipients = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(filters) {
10654
10750
  var options,
10655
- _args67 = arguments;
10656
- return _regeneratorRuntime.wrap(function _callee67$(_context67) {
10751
+ _args69 = arguments;
10752
+ return _regeneratorRuntime.wrap(function _callee69$(_context69) {
10657
10753
  while (1) {
10658
- switch (_context67.prev = _context67.next) {
10754
+ switch (_context69.prev = _context69.next) {
10659
10755
  case 0:
10660
- options = _args67.length > 1 && _args67[1] !== undefined ? _args67[1] : {};
10661
- _context67.next = 3;
10756
+ options = _args69.length > 1 && _args69[1] !== undefined ? _args69[1] : {};
10757
+ _context69.next = 3;
10662
10758
  return this.get(this.baseURL + "/recipients", {
10663
10759
  payload: _objectSpread({
10664
10760
  filter_conditions: filters
@@ -10666,17 +10762,17 @@ var StreamChat = /*#__PURE__*/function () {
10666
10762
  });
10667
10763
 
10668
10764
  case 3:
10669
- return _context67.abrupt("return", _context67.sent);
10765
+ return _context69.abrupt("return", _context69.sent);
10670
10766
 
10671
10767
  case 4:
10672
10768
  case "end":
10673
- return _context67.stop();
10769
+ return _context69.stop();
10674
10770
  }
10675
10771
  }
10676
- }, _callee67, this);
10772
+ }, _callee69, this);
10677
10773
  }));
10678
10774
 
10679
- function queryRecipients(_x90) {
10775
+ function queryRecipients(_x94) {
10680
10776
  return _queryRecipients.apply(this, arguments);
10681
10777
  }
10682
10778
 
@@ -10692,24 +10788,24 @@ var StreamChat = /*#__PURE__*/function () {
10692
10788
  }, {
10693
10789
  key: "enrichURL",
10694
10790
  value: function () {
10695
- var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(url) {
10696
- return _regeneratorRuntime.wrap(function _callee68$(_context68) {
10791
+ var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(url) {
10792
+ return _regeneratorRuntime.wrap(function _callee70$(_context70) {
10697
10793
  while (1) {
10698
- switch (_context68.prev = _context68.next) {
10794
+ switch (_context70.prev = _context70.next) {
10699
10795
  case 0:
10700
- return _context68.abrupt("return", this.get(this.baseURL + "/og", {
10796
+ return _context70.abrupt("return", this.get(this.baseURL + "/og", {
10701
10797
  url: url
10702
10798
  }));
10703
10799
 
10704
10800
  case 1:
10705
10801
  case "end":
10706
- return _context68.stop();
10802
+ return _context70.stop();
10707
10803
  }
10708
10804
  }
10709
- }, _callee68, this);
10805
+ }, _callee70, this);
10710
10806
  }));
10711
10807
 
10712
- function enrichURL(_x91) {
10808
+ function enrichURL(_x95) {
10713
10809
  return _enrichURL.apply(this, arguments);
10714
10810
  }
10715
10811
 
@@ -10726,22 +10822,22 @@ var StreamChat = /*#__PURE__*/function () {
10726
10822
  }, {
10727
10823
  key: "getTask",
10728
10824
  value: function () {
10729
- var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(id) {
10730
- return _regeneratorRuntime.wrap(function _callee69$(_context69) {
10825
+ var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(id) {
10826
+ return _regeneratorRuntime.wrap(function _callee71$(_context71) {
10731
10827
  while (1) {
10732
- switch (_context69.prev = _context69.next) {
10828
+ switch (_context71.prev = _context71.next) {
10733
10829
  case 0:
10734
- return _context69.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
10830
+ return _context71.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
10735
10831
 
10736
10832
  case 1:
10737
10833
  case "end":
10738
- return _context69.stop();
10834
+ return _context71.stop();
10739
10835
  }
10740
10836
  }
10741
- }, _callee69, this);
10837
+ }, _callee71, this);
10742
10838
  }));
10743
10839
 
10744
- function getTask(_x92) {
10840
+ function getTask(_x96) {
10745
10841
  return _getTask.apply(this, arguments);
10746
10842
  }
10747
10843
 
@@ -10759,31 +10855,31 @@ var StreamChat = /*#__PURE__*/function () {
10759
10855
  }, {
10760
10856
  key: "deleteChannels",
10761
10857
  value: function () {
10762
- var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(cids) {
10858
+ var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(cids) {
10763
10859
  var options,
10764
- _args70 = arguments;
10765
- return _regeneratorRuntime.wrap(function _callee70$(_context70) {
10860
+ _args72 = arguments;
10861
+ return _regeneratorRuntime.wrap(function _callee72$(_context72) {
10766
10862
  while (1) {
10767
- switch (_context70.prev = _context70.next) {
10863
+ switch (_context72.prev = _context72.next) {
10768
10864
  case 0:
10769
- options = _args70.length > 1 && _args70[1] !== undefined ? _args70[1] : {};
10770
- _context70.next = 3;
10865
+ options = _args72.length > 1 && _args72[1] !== undefined ? _args72[1] : {};
10866
+ _context72.next = 3;
10771
10867
  return this.post(this.baseURL + "/channels/delete", _objectSpread({
10772
10868
  cids: cids
10773
10869
  }, options));
10774
10870
 
10775
10871
  case 3:
10776
- return _context70.abrupt("return", _context70.sent);
10872
+ return _context72.abrupt("return", _context72.sent);
10777
10873
 
10778
10874
  case 4:
10779
10875
  case "end":
10780
- return _context70.stop();
10876
+ return _context72.stop();
10781
10877
  }
10782
10878
  }
10783
- }, _callee70, this);
10879
+ }, _callee72, this);
10784
10880
  }));
10785
10881
 
10786
- function deleteChannels(_x93) {
10882
+ function deleteChannels(_x97) {
10787
10883
  return _deleteChannels.apply(this, arguments);
10788
10884
  }
10789
10885
 
@@ -10795,19 +10891,19 @@ var StreamChat = /*#__PURE__*/function () {
10795
10891
  * @param {string[]} user_ids which users to delete
10796
10892
  * @param {DeleteUserOptions} options Configuration how to delete users
10797
10893
  *
10798
- * @return {APIResponse} A task ID
10894
+ * @return {TaskResponse} A task ID
10799
10895
  */
10800
10896
 
10801
10897
  }, {
10802
10898
  key: "deleteUsers",
10803
10899
  value: function () {
10804
- var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(user_ids, options) {
10805
- return _regeneratorRuntime.wrap(function _callee71$(_context71) {
10900
+ var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(user_ids, options) {
10901
+ return _regeneratorRuntime.wrap(function _callee73$(_context73) {
10806
10902
  while (1) {
10807
- switch (_context71.prev = _context71.next) {
10903
+ switch (_context73.prev = _context73.next) {
10808
10904
  case 0:
10809
10905
  if (!((options === null || options === void 0 ? void 0 : options.user) !== 'soft' && (options === null || options === void 0 ? void 0 : options.user) !== 'hard')) {
10810
- _context71.next = 2;
10906
+ _context73.next = 2;
10811
10907
  break;
10812
10908
  }
10813
10909
 
@@ -10815,7 +10911,7 @@ var StreamChat = /*#__PURE__*/function () {
10815
10911
 
10816
10912
  case 2:
10817
10913
  if (!(options.messages !== undefined && options.messages !== 'soft' && options.messages !== 'hard')) {
10818
- _context71.next = 4;
10914
+ _context73.next = 4;
10819
10915
  break;
10820
10916
  }
10821
10917
 
@@ -10823,30 +10919,30 @@ var StreamChat = /*#__PURE__*/function () {
10823
10919
 
10824
10920
  case 4:
10825
10921
  if (!(options.conversations !== undefined && options.conversations !== 'soft' && options.conversations !== 'hard')) {
10826
- _context71.next = 6;
10922
+ _context73.next = 6;
10827
10923
  break;
10828
10924
  }
10829
10925
 
10830
10926
  throw new Error('Invalid delete user options. conversations must be one of [soft hard]');
10831
10927
 
10832
10928
  case 6:
10833
- _context71.next = 8;
10929
+ _context73.next = 8;
10834
10930
  return this.post(this.baseURL + "/users/delete", _objectSpread({
10835
10931
  user_ids: user_ids
10836
10932
  }, options));
10837
10933
 
10838
10934
  case 8:
10839
- return _context71.abrupt("return", _context71.sent);
10935
+ return _context73.abrupt("return", _context73.sent);
10840
10936
 
10841
10937
  case 9:
10842
10938
  case "end":
10843
- return _context71.stop();
10939
+ return _context73.stop();
10844
10940
  }
10845
10941
  }
10846
- }, _callee71, this);
10942
+ }, _callee73, this);
10847
10943
  }));
10848
10944
 
10849
- function deleteUsers(_x94, _x95) {
10945
+ function deleteUsers(_x98, _x99) {
10850
10946
  return _deleteUsers.apply(this, arguments);
10851
10947
  }
10852
10948
 
@@ -10867,28 +10963,28 @@ var StreamChat = /*#__PURE__*/function () {
10867
10963
  }, {
10868
10964
  key: "_createImportURL",
10869
10965
  value: function () {
10870
- var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(filename) {
10871
- return _regeneratorRuntime.wrap(function _callee72$(_context72) {
10966
+ var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(filename) {
10967
+ return _regeneratorRuntime.wrap(function _callee74$(_context74) {
10872
10968
  while (1) {
10873
- switch (_context72.prev = _context72.next) {
10969
+ switch (_context74.prev = _context74.next) {
10874
10970
  case 0:
10875
- _context72.next = 2;
10971
+ _context74.next = 2;
10876
10972
  return this.post(this.baseURL + "/import_urls", {
10877
10973
  filename: filename
10878
10974
  });
10879
10975
 
10880
10976
  case 2:
10881
- return _context72.abrupt("return", _context72.sent);
10977
+ return _context74.abrupt("return", _context74.sent);
10882
10978
 
10883
10979
  case 3:
10884
10980
  case "end":
10885
- return _context72.stop();
10981
+ return _context74.stop();
10886
10982
  }
10887
10983
  }
10888
- }, _callee72, this);
10984
+ }, _callee74, this);
10889
10985
  }));
10890
10986
 
10891
- function _createImportURL(_x96) {
10987
+ function _createImportURL(_x100) {
10892
10988
  return _createImportURL2.apply(this, arguments);
10893
10989
  }
10894
10990
 
@@ -10910,33 +11006,33 @@ var StreamChat = /*#__PURE__*/function () {
10910
11006
  }, {
10911
11007
  key: "_createImport",
10912
11008
  value: function () {
10913
- var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(path) {
11009
+ var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(path) {
10914
11010
  var options,
10915
- _args73 = arguments;
10916
- return _regeneratorRuntime.wrap(function _callee73$(_context73) {
11011
+ _args75 = arguments;
11012
+ return _regeneratorRuntime.wrap(function _callee75$(_context75) {
10917
11013
  while (1) {
10918
- switch (_context73.prev = _context73.next) {
11014
+ switch (_context75.prev = _context75.next) {
10919
11015
  case 0:
10920
- options = _args73.length > 1 && _args73[1] !== undefined ? _args73[1] : {
11016
+ options = _args75.length > 1 && _args75[1] !== undefined ? _args75[1] : {
10921
11017
  mode: 'upsert'
10922
11018
  };
10923
- _context73.next = 3;
11019
+ _context75.next = 3;
10924
11020
  return this.post(this.baseURL + "/imports", _objectSpread({
10925
11021
  path: path
10926
11022
  }, options));
10927
11023
 
10928
11024
  case 3:
10929
- return _context73.abrupt("return", _context73.sent);
11025
+ return _context75.abrupt("return", _context75.sent);
10930
11026
 
10931
11027
  case 4:
10932
11028
  case "end":
10933
- return _context73.stop();
11029
+ return _context75.stop();
10934
11030
  }
10935
11031
  }
10936
- }, _callee73, this);
11032
+ }, _callee75, this);
10937
11033
  }));
10938
11034
 
10939
- function _createImport(_x97) {
11035
+ function _createImport(_x101) {
10940
11036
  return _createImport2.apply(this, arguments);
10941
11037
  }
10942
11038
 
@@ -10958,26 +11054,26 @@ var StreamChat = /*#__PURE__*/function () {
10958
11054
  }, {
10959
11055
  key: "_getImport",
10960
11056
  value: function () {
10961
- var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(id) {
10962
- return _regeneratorRuntime.wrap(function _callee74$(_context74) {
11057
+ var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(id) {
11058
+ return _regeneratorRuntime.wrap(function _callee76$(_context76) {
10963
11059
  while (1) {
10964
- switch (_context74.prev = _context74.next) {
11060
+ switch (_context76.prev = _context76.next) {
10965
11061
  case 0:
10966
- _context74.next = 2;
11062
+ _context76.next = 2;
10967
11063
  return this.get(this.baseURL + "/imports/".concat(id));
10968
11064
 
10969
11065
  case 2:
10970
- return _context74.abrupt("return", _context74.sent);
11066
+ return _context76.abrupt("return", _context76.sent);
10971
11067
 
10972
11068
  case 3:
10973
11069
  case "end":
10974
- return _context74.stop();
11070
+ return _context76.stop();
10975
11071
  }
10976
11072
  }
10977
- }, _callee74, this);
11073
+ }, _callee76, this);
10978
11074
  }));
10979
11075
 
10980
- function _getImport(_x98) {
11076
+ function _getImport(_x102) {
10981
11077
  return _getImport2.apply(this, arguments);
10982
11078
  }
10983
11079
 
@@ -10999,26 +11095,26 @@ var StreamChat = /*#__PURE__*/function () {
10999
11095
  }, {
11000
11096
  key: "_listImports",
11001
11097
  value: function () {
11002
- var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(options) {
11003
- return _regeneratorRuntime.wrap(function _callee75$(_context75) {
11098
+ var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77(options) {
11099
+ return _regeneratorRuntime.wrap(function _callee77$(_context77) {
11004
11100
  while (1) {
11005
- switch (_context75.prev = _context75.next) {
11101
+ switch (_context77.prev = _context77.next) {
11006
11102
  case 0:
11007
- _context75.next = 2;
11103
+ _context77.next = 2;
11008
11104
  return this.get(this.baseURL + "/imports", options);
11009
11105
 
11010
11106
  case 2:
11011
- return _context75.abrupt("return", _context75.sent);
11107
+ return _context77.abrupt("return", _context77.sent);
11012
11108
 
11013
11109
  case 3:
11014
11110
  case "end":
11015
- return _context75.stop();
11111
+ return _context77.stop();
11016
11112
  }
11017
11113
  }
11018
- }, _callee75, this);
11114
+ }, _callee77, this);
11019
11115
  }));
11020
11116
 
11021
- function _listImports(_x99) {
11117
+ function _listImports(_x103) {
11022
11118
  return _listImports2.apply(this, arguments);
11023
11119
  }
11024
11120
 
@@ -11037,28 +11133,28 @@ var StreamChat = /*#__PURE__*/function () {
11037
11133
  }, {
11038
11134
  key: "upsertPushProvider",
11039
11135
  value: function () {
11040
- var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(pushProvider) {
11041
- return _regeneratorRuntime.wrap(function _callee76$(_context76) {
11136
+ var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee78(pushProvider) {
11137
+ return _regeneratorRuntime.wrap(function _callee78$(_context78) {
11042
11138
  while (1) {
11043
- switch (_context76.prev = _context76.next) {
11139
+ switch (_context78.prev = _context78.next) {
11044
11140
  case 0:
11045
- _context76.next = 2;
11141
+ _context78.next = 2;
11046
11142
  return this.post(this.baseURL + "/push_providers", {
11047
11143
  push_provider: pushProvider
11048
11144
  });
11049
11145
 
11050
11146
  case 2:
11051
- return _context76.abrupt("return", _context76.sent);
11147
+ return _context78.abrupt("return", _context78.sent);
11052
11148
 
11053
11149
  case 3:
11054
11150
  case "end":
11055
- return _context76.stop();
11151
+ return _context78.stop();
11056
11152
  }
11057
11153
  }
11058
- }, _callee76, this);
11154
+ }, _callee78, this);
11059
11155
  }));
11060
11156
 
11061
- function upsertPushProvider(_x100) {
11157
+ function upsertPushProvider(_x104) {
11062
11158
  return _upsertPushProvider.apply(this, arguments);
11063
11159
  }
11064
11160
 
@@ -11077,28 +11173,28 @@ var StreamChat = /*#__PURE__*/function () {
11077
11173
  }, {
11078
11174
  key: "deletePushProvider",
11079
11175
  value: function () {
11080
- var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77(_ref9) {
11176
+ var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(_ref9) {
11081
11177
  var type, name;
11082
- return _regeneratorRuntime.wrap(function _callee77$(_context77) {
11178
+ return _regeneratorRuntime.wrap(function _callee79$(_context79) {
11083
11179
  while (1) {
11084
- switch (_context77.prev = _context77.next) {
11180
+ switch (_context79.prev = _context79.next) {
11085
11181
  case 0:
11086
11182
  type = _ref9.type, name = _ref9.name;
11087
- _context77.next = 3;
11183
+ _context79.next = 3;
11088
11184
  return this.delete(this.baseURL + "/push_providers/".concat(type, "/").concat(name));
11089
11185
 
11090
11186
  case 3:
11091
- return _context77.abrupt("return", _context77.sent);
11187
+ return _context79.abrupt("return", _context79.sent);
11092
11188
 
11093
11189
  case 4:
11094
11190
  case "end":
11095
- return _context77.stop();
11191
+ return _context79.stop();
11096
11192
  }
11097
11193
  }
11098
- }, _callee77, this);
11194
+ }, _callee79, this);
11099
11195
  }));
11100
11196
 
11101
- function deletePushProvider(_x101) {
11197
+ function deletePushProvider(_x105) {
11102
11198
  return _deletePushProvider.apply(this, arguments);
11103
11199
  }
11104
11200
 
@@ -11115,23 +11211,23 @@ var StreamChat = /*#__PURE__*/function () {
11115
11211
  }, {
11116
11212
  key: "listPushProviders",
11117
11213
  value: function () {
11118
- var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee78() {
11119
- return _regeneratorRuntime.wrap(function _callee78$(_context78) {
11214
+ var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee80() {
11215
+ return _regeneratorRuntime.wrap(function _callee80$(_context80) {
11120
11216
  while (1) {
11121
- switch (_context78.prev = _context78.next) {
11217
+ switch (_context80.prev = _context80.next) {
11122
11218
  case 0:
11123
- _context78.next = 2;
11219
+ _context80.next = 2;
11124
11220
  return this.get(this.baseURL + "/push_providers");
11125
11221
 
11126
11222
  case 2:
11127
- return _context78.abrupt("return", _context78.sent);
11223
+ return _context80.abrupt("return", _context80.sent);
11128
11224
 
11129
11225
  case 3:
11130
11226
  case "end":
11131
- return _context78.stop();
11227
+ return _context80.stop();
11132
11228
  }
11133
11229
  }
11134
- }, _callee78, this);
11230
+ }, _callee80, this);
11135
11231
  }));
11136
11232
 
11137
11233
  function listPushProviders() {
@@ -11159,26 +11255,26 @@ var StreamChat = /*#__PURE__*/function () {
11159
11255
  }, {
11160
11256
  key: "commitMessage",
11161
11257
  value: function () {
11162
- var _commitMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(id) {
11163
- return _regeneratorRuntime.wrap(function _callee79$(_context79) {
11258
+ var _commitMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee81(id) {
11259
+ return _regeneratorRuntime.wrap(function _callee81$(_context81) {
11164
11260
  while (1) {
11165
- switch (_context79.prev = _context79.next) {
11261
+ switch (_context81.prev = _context81.next) {
11166
11262
  case 0:
11167
- _context79.next = 2;
11263
+ _context81.next = 2;
11168
11264
  return this.post(this.baseURL + "/messages/".concat(id, "/commit"));
11169
11265
 
11170
11266
  case 2:
11171
- return _context79.abrupt("return", _context79.sent);
11267
+ return _context81.abrupt("return", _context81.sent);
11172
11268
 
11173
11269
  case 3:
11174
11270
  case "end":
11175
- return _context79.stop();
11271
+ return _context81.stop();
11176
11272
  }
11177
11273
  }
11178
- }, _callee79, this);
11274
+ }, _callee81, this);
11179
11275
  }));
11180
11276
 
11181
- function commitMessage(_x102) {
11277
+ function commitMessage(_x106) {
11182
11278
  return _commitMessage.apply(this, arguments);
11183
11279
  }
11184
11280