stream-chat 8.12.4 → 8.13.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.
@@ -7403,6 +7403,48 @@ var StreamChat = /*#__PURE__*/function () {
7403
7403
 
7404
7404
  return testSQSSettings;
7405
7405
  }()
7406
+ /**
7407
+ * testSNSSettings - Tests that the given or configured SNS configuration is valid
7408
+ *
7409
+ * @param {TestSNSDataInput} [data] Overrides SNS settings for testing if needed
7410
+ * IE: {
7411
+ sns_key: 'auth_key',
7412
+ sns_secret: 'auth_secret',
7413
+ sns_topic_arn: 'topic_to_publish_to',
7414
+ }
7415
+ */
7416
+
7417
+ }, {
7418
+ key: "testSNSSettings",
7419
+ value: function () {
7420
+ var _testSNSSettings = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
7421
+ var data,
7422
+ _args14 = arguments;
7423
+ return _regeneratorRuntime.wrap(function _callee14$(_context14) {
7424
+ while (1) {
7425
+ switch (_context14.prev = _context14.next) {
7426
+ case 0:
7427
+ data = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {};
7428
+ _context14.next = 3;
7429
+ return this.post(this.baseURL + '/check_sns', data);
7430
+
7431
+ case 3:
7432
+ return _context14.abrupt("return", _context14.sent);
7433
+
7434
+ case 4:
7435
+ case "end":
7436
+ return _context14.stop();
7437
+ }
7438
+ }
7439
+ }, _callee14, this);
7440
+ }));
7441
+
7442
+ function testSNSSettings() {
7443
+ return _testSNSSettings.apply(this, arguments);
7444
+ }
7445
+
7446
+ return testSNSSettings;
7447
+ }()
7406
7448
  /**
7407
7449
  * Disconnects the websocket and removes the user from client.
7408
7450
  *
@@ -7421,47 +7463,47 @@ var StreamChat = /*#__PURE__*/function () {
7421
7463
  * @return {ConnectAPIResponse<StreamChatGenerics>} Returns a promise that resolves when the connection is setup
7422
7464
  */
7423
7465
  function () {
7424
- var _setGuestUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14(user) {
7466
+ var _setGuestUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(user) {
7425
7467
  var response, _response$user, guestUser;
7426
7468
 
7427
- return _regeneratorRuntime.wrap(function _callee14$(_context14) {
7469
+ return _regeneratorRuntime.wrap(function _callee15$(_context15) {
7428
7470
  while (1) {
7429
- switch (_context14.prev = _context14.next) {
7471
+ switch (_context15.prev = _context15.next) {
7430
7472
  case 0:
7431
7473
  this.anonymous = true;
7432
- _context14.prev = 1;
7433
- _context14.next = 4;
7474
+ _context15.prev = 1;
7475
+ _context15.next = 4;
7434
7476
  return this.post(this.baseURL + '/guest', {
7435
7477
  user: user
7436
7478
  });
7437
7479
 
7438
7480
  case 4:
7439
- response = _context14.sent;
7440
- _context14.next = 11;
7481
+ response = _context15.sent;
7482
+ _context15.next = 11;
7441
7483
  break;
7442
7484
 
7443
7485
  case 7:
7444
- _context14.prev = 7;
7445
- _context14.t0 = _context14["catch"](1);
7486
+ _context15.prev = 7;
7487
+ _context15.t0 = _context15["catch"](1);
7446
7488
  this.anonymous = false;
7447
- throw _context14.t0;
7489
+ throw _context15.t0;
7448
7490
 
7449
7491
  case 11:
7450
7492
  this.anonymous = false; // eslint-disable-next-line @typescript-eslint/no-unused-vars
7451
7493
 
7452
7494
  _response$user = response.user, _response$user.created_at, _response$user.updated_at, _response$user.last_active, _response$user.online, guestUser = _objectWithoutProperties(_response$user, _excluded);
7453
- _context14.next = 15;
7495
+ _context15.next = 15;
7454
7496
  return this.connectUser(guestUser, response.access_token);
7455
7497
 
7456
7498
  case 15:
7457
- return _context14.abrupt("return", _context14.sent);
7499
+ return _context15.abrupt("return", _context15.sent);
7458
7500
 
7459
7501
  case 16:
7460
7502
  case "end":
7461
- return _context14.stop();
7503
+ return _context15.stop();
7462
7504
  }
7463
7505
  }
7464
- }, _callee14, this, [[1, 7]]);
7506
+ }, _callee15, this, [[1, 7]]);
7465
7507
  }));
7466
7508
 
7467
7509
  function setGuestUser(_x15) {
@@ -7769,13 +7811,13 @@ var StreamChat = /*#__PURE__*/function () {
7769
7811
  * @private
7770
7812
  */
7771
7813
  function () {
7772
- var _connect = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15() {
7773
- return _regeneratorRuntime.wrap(function _callee15$(_context15) {
7814
+ var _connect = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16() {
7815
+ return _regeneratorRuntime.wrap(function _callee16$(_context16) {
7774
7816
  while (1) {
7775
- switch (_context15.prev = _context15.next) {
7817
+ switch (_context16.prev = _context16.next) {
7776
7818
  case 0:
7777
7819
  if (!(!this.userID || !this._user)) {
7778
- _context15.next = 2;
7820
+ _context16.next = 2;
7779
7821
  break;
7780
7822
  }
7781
7823
 
@@ -7783,7 +7825,7 @@ var StreamChat = /*#__PURE__*/function () {
7783
7825
 
7784
7826
  case 2:
7785
7827
  if (this.wsBaseURL) {
7786
- _context15.next = 4;
7828
+ _context16.next = 4;
7787
7829
  break;
7788
7830
  }
7789
7831
 
@@ -7791,7 +7833,7 @@ var StreamChat = /*#__PURE__*/function () {
7791
7833
 
7792
7834
  case 4:
7793
7835
  if (this.clientID) {
7794
- _context15.next = 6;
7836
+ _context16.next = 6;
7795
7837
  break;
7796
7838
  }
7797
7839
 
@@ -7813,32 +7855,32 @@ var StreamChat = /*#__PURE__*/function () {
7813
7855
  });
7814
7856
  }
7815
7857
 
7816
- _context15.prev = 8;
7858
+ _context16.prev = 8;
7817
7859
 
7818
7860
  if (!this.wsFallback) {
7819
- _context15.next = 13;
7861
+ _context16.next = 13;
7820
7862
  break;
7821
7863
  }
7822
7864
 
7823
- _context15.next = 12;
7865
+ _context16.next = 12;
7824
7866
  return this.wsFallback.connect();
7825
7867
 
7826
7868
  case 12:
7827
- return _context15.abrupt("return", _context15.sent);
7869
+ return _context16.abrupt("return", _context16.sent);
7828
7870
 
7829
7871
  case 13:
7830
- _context15.next = 15;
7872
+ _context16.next = 15;
7831
7873
  return this.wsConnection.connect(this.options.enableWSFallback ? this.defaultWSTimeoutWithFallback : this.defaultWSTimeout);
7832
7874
 
7833
7875
  case 15:
7834
- return _context15.abrupt("return", _context15.sent);
7876
+ return _context16.abrupt("return", _context16.sent);
7835
7877
 
7836
7878
  case 18:
7837
- _context15.prev = 18;
7838
- _context15.t0 = _context15["catch"](8);
7879
+ _context16.prev = 18;
7880
+ _context16.t0 = _context16["catch"](8);
7839
7881
 
7840
- if (!(this.options.enableWSFallback && isWSFailure(_context15.t0) && isOnline())) {
7841
- _context15.next = 29;
7882
+ if (!(this.options.enableWSFallback && isWSFailure(_context16.t0) && isOnline())) {
7883
+ _context16.next = 29;
7842
7884
  break;
7843
7885
  }
7844
7886
 
@@ -7857,21 +7899,21 @@ var StreamChat = /*#__PURE__*/function () {
7857
7899
  this.wsFallback = new WSConnectionFallback({
7858
7900
  client: this
7859
7901
  });
7860
- _context15.next = 28;
7902
+ _context16.next = 28;
7861
7903
  return this.wsFallback.connect();
7862
7904
 
7863
7905
  case 28:
7864
- return _context15.abrupt("return", _context15.sent);
7906
+ return _context16.abrupt("return", _context16.sent);
7865
7907
 
7866
7908
  case 29:
7867
- throw _context15.t0;
7909
+ throw _context16.t0;
7868
7910
 
7869
7911
  case 30:
7870
7912
  case "end":
7871
- return _context15.stop();
7913
+ return _context16.stop();
7872
7914
  }
7873
7915
  }
7874
- }, _callee15, this, [[8, 18]]);
7916
+ }, _callee16, this, [[8, 18]]);
7875
7917
  }));
7876
7918
 
7877
7919
  function connect() {
@@ -7921,23 +7963,23 @@ var StreamChat = /*#__PURE__*/function () {
7921
7963
  }, {
7922
7964
  key: "queryUsers",
7923
7965
  value: function () {
7924
- var _queryUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16(filterConditions) {
7966
+ var _queryUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17(filterConditions) {
7925
7967
  var sort,
7926
7968
  options,
7927
7969
  defaultOptions,
7928
7970
  data,
7929
- _args16 = arguments;
7930
- return _regeneratorRuntime.wrap(function _callee16$(_context16) {
7971
+ _args17 = arguments;
7972
+ return _regeneratorRuntime.wrap(function _callee17$(_context17) {
7931
7973
  while (1) {
7932
- switch (_context16.prev = _context16.next) {
7974
+ switch (_context17.prev = _context17.next) {
7933
7975
  case 0:
7934
- sort = _args16.length > 1 && _args16[1] !== undefined ? _args16[1] : [];
7935
- options = _args16.length > 2 && _args16[2] !== undefined ? _args16[2] : {};
7976
+ sort = _args17.length > 1 && _args17[1] !== undefined ? _args17[1] : [];
7977
+ options = _args17.length > 2 && _args17[2] !== undefined ? _args17[2] : {};
7936
7978
  defaultOptions = {
7937
7979
  presence: false
7938
7980
  }; // Make sure we wait for the connect promise if there is a pending one
7939
7981
 
7940
- _context16.next = 5;
7982
+ _context17.next = 5;
7941
7983
  return this.wsPromise;
7942
7984
 
7943
7985
  case 5:
@@ -7946,7 +7988,7 @@ var StreamChat = /*#__PURE__*/function () {
7946
7988
  } // Return a list of users
7947
7989
 
7948
7990
 
7949
- _context16.next = 8;
7991
+ _context17.next = 8;
7950
7992
  return this.get(this.baseURL + '/users', {
7951
7993
  payload: _objectSpread(_objectSpread({
7952
7994
  filter_conditions: filterConditions,
@@ -7955,16 +7997,16 @@ var StreamChat = /*#__PURE__*/function () {
7955
7997
  });
7956
7998
 
7957
7999
  case 8:
7958
- data = _context16.sent;
8000
+ data = _context17.sent;
7959
8001
  this.state.updateUsers(data.users);
7960
- return _context16.abrupt("return", data);
8002
+ return _context17.abrupt("return", data);
7961
8003
 
7962
8004
  case 11:
7963
8005
  case "end":
7964
- return _context16.stop();
8006
+ return _context17.stop();
7965
8007
  }
7966
8008
  }
7967
- }, _callee16, this);
8009
+ }, _callee17, this);
7968
8010
  }));
7969
8011
 
7970
8012
  function queryUsers(_x16) {
@@ -7986,19 +8028,19 @@ var StreamChat = /*#__PURE__*/function () {
7986
8028
  }, {
7987
8029
  key: "queryBannedUsers",
7988
8030
  value: function () {
7989
- var _queryBannedUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17() {
8031
+ var _queryBannedUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18() {
7990
8032
  var filterConditions,
7991
8033
  sort,
7992
8034
  options,
7993
- _args17 = arguments;
7994
- return _regeneratorRuntime.wrap(function _callee17$(_context17) {
8035
+ _args18 = arguments;
8036
+ return _regeneratorRuntime.wrap(function _callee18$(_context18) {
7995
8037
  while (1) {
7996
- switch (_context17.prev = _context17.next) {
8038
+ switch (_context18.prev = _context18.next) {
7997
8039
  case 0:
7998
- filterConditions = _args17.length > 0 && _args17[0] !== undefined ? _args17[0] : {};
7999
- sort = _args17.length > 1 && _args17[1] !== undefined ? _args17[1] : [];
8000
- options = _args17.length > 2 && _args17[2] !== undefined ? _args17[2] : {};
8001
- _context17.next = 5;
8040
+ filterConditions = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : {};
8041
+ sort = _args18.length > 1 && _args18[1] !== undefined ? _args18[1] : [];
8042
+ options = _args18.length > 2 && _args18[2] !== undefined ? _args18[2] : {};
8043
+ _context18.next = 5;
8002
8044
  return this.get(this.baseURL + '/query_banned_users', {
8003
8045
  payload: _objectSpread({
8004
8046
  filter_conditions: filterConditions,
@@ -8007,14 +8049,14 @@ var StreamChat = /*#__PURE__*/function () {
8007
8049
  });
8008
8050
 
8009
8051
  case 5:
8010
- return _context17.abrupt("return", _context17.sent);
8052
+ return _context18.abrupt("return", _context18.sent);
8011
8053
 
8012
8054
  case 6:
8013
8055
  case "end":
8014
- return _context17.stop();
8056
+ return _context18.stop();
8015
8057
  }
8016
8058
  }
8017
- }, _callee17, this);
8059
+ }, _callee18, this);
8018
8060
  }));
8019
8061
 
8020
8062
  function queryBannedUsers() {
@@ -8035,17 +8077,17 @@ var StreamChat = /*#__PURE__*/function () {
8035
8077
  }, {
8036
8078
  key: "queryMessageFlags",
8037
8079
  value: function () {
8038
- var _queryMessageFlags = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18() {
8080
+ var _queryMessageFlags = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19() {
8039
8081
  var filterConditions,
8040
8082
  options,
8041
- _args18 = arguments;
8042
- return _regeneratorRuntime.wrap(function _callee18$(_context18) {
8083
+ _args19 = arguments;
8084
+ return _regeneratorRuntime.wrap(function _callee19$(_context19) {
8043
8085
  while (1) {
8044
- switch (_context18.prev = _context18.next) {
8086
+ switch (_context19.prev = _context19.next) {
8045
8087
  case 0:
8046
- filterConditions = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : {};
8047
- options = _args18.length > 1 && _args18[1] !== undefined ? _args18[1] : {};
8048
- _context18.next = 4;
8088
+ filterConditions = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {};
8089
+ options = _args19.length > 1 && _args19[1] !== undefined ? _args19[1] : {};
8090
+ _context19.next = 4;
8049
8091
  return this.get(this.baseURL + '/moderation/flags/message', {
8050
8092
  payload: _objectSpread({
8051
8093
  filter_conditions: filterConditions
@@ -8053,14 +8095,14 @@ var StreamChat = /*#__PURE__*/function () {
8053
8095
  });
8054
8096
 
8055
8097
  case 4:
8056
- return _context18.abrupt("return", _context18.sent);
8098
+ return _context19.abrupt("return", _context19.sent);
8057
8099
 
8058
8100
  case 5:
8059
8101
  case "end":
8060
- return _context18.stop();
8102
+ return _context19.stop();
8061
8103
  }
8062
8104
  }
8063
- }, _callee18, this);
8105
+ }, _callee19, this);
8064
8106
  }));
8065
8107
 
8066
8108
  function queryMessageFlags() {
@@ -8085,28 +8127,28 @@ var StreamChat = /*#__PURE__*/function () {
8085
8127
  }, {
8086
8128
  key: "queryChannels",
8087
8129
  value: function () {
8088
- var _queryChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19(filterConditions) {
8130
+ var _queryChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20(filterConditions) {
8089
8131
  var sort,
8090
8132
  options,
8091
8133
  stateOptions,
8092
8134
  defaultOptions,
8093
8135
  payload,
8094
8136
  data,
8095
- _args19 = arguments;
8096
- return _regeneratorRuntime.wrap(function _callee19$(_context19) {
8137
+ _args20 = arguments;
8138
+ return _regeneratorRuntime.wrap(function _callee20$(_context20) {
8097
8139
  while (1) {
8098
- switch (_context19.prev = _context19.next) {
8140
+ switch (_context20.prev = _context20.next) {
8099
8141
  case 0:
8100
- sort = _args19.length > 1 && _args19[1] !== undefined ? _args19[1] : [];
8101
- options = _args19.length > 2 && _args19[2] !== undefined ? _args19[2] : {};
8102
- stateOptions = _args19.length > 3 && _args19[3] !== undefined ? _args19[3] : {};
8142
+ sort = _args20.length > 1 && _args20[1] !== undefined ? _args20[1] : [];
8143
+ options = _args20.length > 2 && _args20[2] !== undefined ? _args20[2] : {};
8144
+ stateOptions = _args20.length > 3 && _args20[3] !== undefined ? _args20[3] : {};
8103
8145
  defaultOptions = {
8104
8146
  state: true,
8105
8147
  watch: true,
8106
8148
  presence: false
8107
8149
  }; // Make sure we wait for the connect promise if there is a pending one
8108
8150
 
8109
- _context19.next = 6;
8151
+ _context20.next = 6;
8110
8152
  return this.wsPromise;
8111
8153
 
8112
8154
  case 6:
@@ -8119,11 +8161,11 @@ var StreamChat = /*#__PURE__*/function () {
8119
8161
  filter_conditions: filterConditions,
8120
8162
  sort: normalizeQuerySort(sort)
8121
8163
  }, defaultOptions), options);
8122
- _context19.next = 10;
8164
+ _context20.next = 10;
8123
8165
  return this.post(this.baseURL + '/channels', payload);
8124
8166
 
8125
8167
  case 10:
8126
- data = _context19.sent;
8168
+ data = _context20.sent;
8127
8169
  this.dispatchEvent({
8128
8170
  type: 'channels.queried',
8129
8171
  queriedChannels: {
@@ -8131,14 +8173,14 @@ var StreamChat = /*#__PURE__*/function () {
8131
8173
  isLatestMessageSet: true
8132
8174
  }
8133
8175
  });
8134
- return _context19.abrupt("return", this.hydrateActiveChannels(data.channels, stateOptions));
8176
+ return _context20.abrupt("return", this.hydrateActiveChannels(data.channels, stateOptions));
8135
8177
 
8136
8178
  case 13:
8137
8179
  case "end":
8138
- return _context19.stop();
8180
+ return _context20.stop();
8139
8181
  }
8140
8182
  }
8141
- }, _callee19, this);
8183
+ }, _callee20, this);
8142
8184
  }));
8143
8185
 
8144
8186
  function queryChannels(_x17) {
@@ -8215,18 +8257,18 @@ var StreamChat = /*#__PURE__*/function () {
8215
8257
  }, {
8216
8258
  key: "search",
8217
8259
  value: function () {
8218
- var _search = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20(filterConditions, query) {
8260
+ var _search = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21(filterConditions, query) {
8219
8261
  var options,
8220
8262
  payload,
8221
- _args20 = arguments;
8222
- return _regeneratorRuntime.wrap(function _callee20$(_context20) {
8263
+ _args21 = arguments;
8264
+ return _regeneratorRuntime.wrap(function _callee21$(_context21) {
8223
8265
  while (1) {
8224
- switch (_context20.prev = _context20.next) {
8266
+ switch (_context21.prev = _context21.next) {
8225
8267
  case 0:
8226
- options = _args20.length > 2 && _args20[2] !== undefined ? _args20[2] : {};
8268
+ options = _args21.length > 2 && _args21[2] !== undefined ? _args21[2] : {};
8227
8269
 
8228
8270
  if (!(options.offset && options.next)) {
8229
- _context20.next = 3;
8271
+ _context21.next = 3;
8230
8272
  break;
8231
8273
  }
8232
8274
 
@@ -8240,46 +8282,46 @@ var StreamChat = /*#__PURE__*/function () {
8240
8282
  });
8241
8283
 
8242
8284
  if (!(typeof query === 'string')) {
8243
- _context20.next = 8;
8285
+ _context21.next = 8;
8244
8286
  break;
8245
8287
  }
8246
8288
 
8247
8289
  payload.query = query;
8248
- _context20.next = 13;
8290
+ _context21.next = 13;
8249
8291
  break;
8250
8292
 
8251
8293
  case 8:
8252
8294
  if (!(_typeof(query) === 'object')) {
8253
- _context20.next = 12;
8295
+ _context21.next = 12;
8254
8296
  break;
8255
8297
  }
8256
8298
 
8257
8299
  payload.message_filter_conditions = query;
8258
- _context20.next = 13;
8300
+ _context21.next = 13;
8259
8301
  break;
8260
8302
 
8261
8303
  case 12:
8262
8304
  throw Error("Invalid type ".concat(_typeof(query), " for query parameter"));
8263
8305
 
8264
8306
  case 13:
8265
- _context20.next = 15;
8307
+ _context21.next = 15;
8266
8308
  return this.wsPromise;
8267
8309
 
8268
8310
  case 15:
8269
- _context20.next = 17;
8311
+ _context21.next = 17;
8270
8312
  return this.get(this.baseURL + '/search', {
8271
8313
  payload: payload
8272
8314
  });
8273
8315
 
8274
8316
  case 17:
8275
- return _context20.abrupt("return", _context20.sent);
8317
+ return _context21.abrupt("return", _context21.sent);
8276
8318
 
8277
8319
  case 18:
8278
8320
  case "end":
8279
- return _context20.stop();
8321
+ return _context21.stop();
8280
8322
  }
8281
8323
  }
8282
- }, _callee20, this);
8324
+ }, _callee21, this);
8283
8325
  }));
8284
8326
 
8285
8327
  function search(_x18, _x19) {
@@ -8321,12 +8363,12 @@ var StreamChat = /*#__PURE__*/function () {
8321
8363
  }, {
8322
8364
  key: "addDevice",
8323
8365
  value: function () {
8324
- var _addDevice = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21(id, push_provider, userID, push_provider_name) {
8325
- return _regeneratorRuntime.wrap(function _callee21$(_context21) {
8366
+ var _addDevice = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(id, push_provider, userID, push_provider_name) {
8367
+ return _regeneratorRuntime.wrap(function _callee22$(_context22) {
8326
8368
  while (1) {
8327
- switch (_context21.prev = _context21.next) {
8369
+ switch (_context22.prev = _context22.next) {
8328
8370
  case 0:
8329
- _context21.next = 2;
8371
+ _context22.next = 2;
8330
8372
  return this.post(this.baseURL + '/devices', _objectSpread(_objectSpread({
8331
8373
  id: id,
8332
8374
  push_provider: push_provider
@@ -8337,14 +8379,14 @@ var StreamChat = /*#__PURE__*/function () {
8337
8379
  } : {}));
8338
8380
 
8339
8381
  case 2:
8340
- return _context21.abrupt("return", _context21.sent);
8382
+ return _context22.abrupt("return", _context22.sent);
8341
8383
 
8342
8384
  case 3:
8343
8385
  case "end":
8344
- return _context21.stop();
8386
+ return _context22.stop();
8345
8387
  }
8346
8388
  }
8347
- }, _callee21, this);
8389
+ }, _callee22, this);
8348
8390
  }));
8349
8391
 
8350
8392
  function addDevice(_x20, _x21, _x22, _x23) {
@@ -8364,25 +8406,25 @@ var StreamChat = /*#__PURE__*/function () {
8364
8406
  }, {
8365
8407
  key: "getDevices",
8366
8408
  value: function () {
8367
- var _getDevices = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(userID) {
8368
- return _regeneratorRuntime.wrap(function _callee22$(_context22) {
8409
+ var _getDevices = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(userID) {
8410
+ return _regeneratorRuntime.wrap(function _callee23$(_context23) {
8369
8411
  while (1) {
8370
- switch (_context22.prev = _context22.next) {
8412
+ switch (_context23.prev = _context23.next) {
8371
8413
  case 0:
8372
- _context22.next = 2;
8414
+ _context23.next = 2;
8373
8415
  return this.get(this.baseURL + '/devices', userID ? {
8374
8416
  user_id: userID
8375
8417
  } : {});
8376
8418
 
8377
8419
  case 2:
8378
- return _context22.abrupt("return", _context22.sent);
8420
+ return _context23.abrupt("return", _context23.sent);
8379
8421
 
8380
8422
  case 3:
8381
8423
  case "end":
8382
- return _context22.stop();
8424
+ return _context23.stop();
8383
8425
  }
8384
8426
  }
8385
- }, _callee22, this);
8427
+ }, _callee23, this);
8386
8428
  }));
8387
8429
 
8388
8430
  function getDevices(_x24) {
@@ -8394,25 +8436,25 @@ var StreamChat = /*#__PURE__*/function () {
8394
8436
  }, {
8395
8437
  key: "getUnreadCount",
8396
8438
  value: function () {
8397
- var _getUnreadCount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(userID) {
8398
- return _regeneratorRuntime.wrap(function _callee23$(_context23) {
8439
+ var _getUnreadCount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(userID) {
8440
+ return _regeneratorRuntime.wrap(function _callee24$(_context24) {
8399
8441
  while (1) {
8400
- switch (_context23.prev = _context23.next) {
8442
+ switch (_context24.prev = _context24.next) {
8401
8443
  case 0:
8402
- _context23.next = 2;
8444
+ _context24.next = 2;
8403
8445
  return this.get(this.baseURL + '/unread', userID ? {
8404
8446
  user_id: userID
8405
8447
  } : {});
8406
8448
 
8407
8449
  case 2:
8408
- return _context23.abrupt("return", _context23.sent);
8450
+ return _context24.abrupt("return", _context24.sent);
8409
8451
 
8410
8452
  case 3:
8411
8453
  case "end":
8412
- return _context23.stop();
8454
+ return _context24.stop();
8413
8455
  }
8414
8456
  }
8415
- }, _callee23, this);
8457
+ }, _callee24, this);
8416
8458
  }));
8417
8459
 
8418
8460
  function getUnreadCount(_x25) {
@@ -8432,12 +8474,12 @@ var StreamChat = /*#__PURE__*/function () {
8432
8474
  }, {
8433
8475
  key: "removeDevice",
8434
8476
  value: function () {
8435
- var _removeDevice = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(id, userID) {
8436
- return _regeneratorRuntime.wrap(function _callee24$(_context24) {
8477
+ var _removeDevice = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(id, userID) {
8478
+ return _regeneratorRuntime.wrap(function _callee25$(_context25) {
8437
8479
  while (1) {
8438
- switch (_context24.prev = _context24.next) {
8480
+ switch (_context25.prev = _context25.next) {
8439
8481
  case 0:
8440
- _context24.next = 2;
8482
+ _context25.next = 2;
8441
8483
  return this.delete(this.baseURL + '/devices', _objectSpread({
8442
8484
  id: id
8443
8485
  }, userID ? {
@@ -8445,14 +8487,14 @@ var StreamChat = /*#__PURE__*/function () {
8445
8487
  } : {}));
8446
8488
 
8447
8489
  case 2:
8448
- return _context24.abrupt("return", _context24.sent);
8490
+ return _context25.abrupt("return", _context25.sent);
8449
8491
 
8450
8492
  case 3:
8451
8493
  case "end":
8452
- return _context24.stop();
8494
+ return _context25.stop();
8453
8495
  }
8454
8496
  }
8455
- }, _callee24, this);
8497
+ }, _callee25, this);
8456
8498
  }));
8457
8499
 
8458
8500
  function removeDevice(_x26, _x27) {
@@ -8472,15 +8514,15 @@ var StreamChat = /*#__PURE__*/function () {
8472
8514
  }, {
8473
8515
  key: "getRateLimits",
8474
8516
  value: function () {
8475
- var _getRateLimits = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(params) {
8517
+ var _getRateLimits = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(params) {
8476
8518
  var _ref7, serverSide, web, android, ios, endpoints;
8477
8519
 
8478
- return _regeneratorRuntime.wrap(function _callee25$(_context25) {
8520
+ return _regeneratorRuntime.wrap(function _callee26$(_context26) {
8479
8521
  while (1) {
8480
- switch (_context25.prev = _context25.next) {
8522
+ switch (_context26.prev = _context26.next) {
8481
8523
  case 0:
8482
8524
  _ref7 = params || {}, serverSide = _ref7.serverSide, web = _ref7.web, android = _ref7.android, ios = _ref7.ios, endpoints = _ref7.endpoints;
8483
- return _context25.abrupt("return", this.get(this.baseURL + '/rate_limits', {
8525
+ return _context26.abrupt("return", this.get(this.baseURL + '/rate_limits', {
8484
8526
  server_side: serverSide,
8485
8527
  web: web,
8486
8528
  android: android,
@@ -8490,10 +8532,10 @@ var StreamChat = /*#__PURE__*/function () {
8490
8532
 
8491
8533
  case 2:
8492
8534
  case "end":
8493
- return _context25.stop();
8535
+ return _context26.stop();
8494
8536
  }
8495
8537
  }
8496
- }, _callee25, this);
8538
+ }, _callee26, this);
8497
8539
  }));
8498
8540
 
8499
8541
  function getRateLimits(_x28) {
@@ -8587,23 +8629,23 @@ var StreamChat = /*#__PURE__*/function () {
8587
8629
  * @return {Promise<{ users: { [key: string]: UserResponse<StreamChatGenerics> } }>} list of updated users
8588
8630
  */
8589
8631
  function () {
8590
- var _partialUpdateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(partialUserObject) {
8591
- return _regeneratorRuntime.wrap(function _callee26$(_context26) {
8632
+ var _partialUpdateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(partialUserObject) {
8633
+ return _regeneratorRuntime.wrap(function _callee27$(_context27) {
8592
8634
  while (1) {
8593
- switch (_context26.prev = _context26.next) {
8635
+ switch (_context27.prev = _context27.next) {
8594
8636
  case 0:
8595
- _context26.next = 2;
8637
+ _context27.next = 2;
8596
8638
  return this.partialUpdateUsers([partialUserObject]);
8597
8639
 
8598
8640
  case 2:
8599
- return _context26.abrupt("return", _context26.sent);
8641
+ return _context27.abrupt("return", _context27.sent);
8600
8642
 
8601
8643
  case 3:
8602
8644
  case "end":
8603
- return _context26.stop();
8645
+ return _context27.stop();
8604
8646
  }
8605
8647
  }
8606
- }, _callee26, this);
8648
+ }, _callee27, this);
8607
8649
  }));
8608
8650
 
8609
8651
  function partialUpdateUser(_x29) {
@@ -8623,29 +8665,29 @@ var StreamChat = /*#__PURE__*/function () {
8623
8665
  }, {
8624
8666
  key: "upsertUsers",
8625
8667
  value: function () {
8626
- var _upsertUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(users) {
8668
+ var _upsertUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(users) {
8627
8669
  var userMap, _iterator4, _step4, userObject;
8628
8670
 
8629
- return _regeneratorRuntime.wrap(function _callee27$(_context27) {
8671
+ return _regeneratorRuntime.wrap(function _callee28$(_context28) {
8630
8672
  while (1) {
8631
- switch (_context27.prev = _context27.next) {
8673
+ switch (_context28.prev = _context28.next) {
8632
8674
  case 0:
8633
8675
  userMap = {};
8634
8676
  _iterator4 = _createForOfIteratorHelper(users);
8635
- _context27.prev = 2;
8677
+ _context28.prev = 2;
8636
8678
 
8637
8679
  _iterator4.s();
8638
8680
 
8639
8681
  case 4:
8640
8682
  if ((_step4 = _iterator4.n()).done) {
8641
- _context27.next = 11;
8683
+ _context28.next = 11;
8642
8684
  break;
8643
8685
  }
8644
8686
 
8645
8687
  userObject = _step4.value;
8646
8688
 
8647
8689
  if (userObject.id) {
8648
- _context27.next = 8;
8690
+ _context28.next = 8;
8649
8691
  break;
8650
8692
  }
8651
8693
 
@@ -8655,41 +8697,41 @@ var StreamChat = /*#__PURE__*/function () {
8655
8697
  userMap[userObject.id] = userObject;
8656
8698
 
8657
8699
  case 9:
8658
- _context27.next = 4;
8700
+ _context28.next = 4;
8659
8701
  break;
8660
8702
 
8661
8703
  case 11:
8662
- _context27.next = 16;
8704
+ _context28.next = 16;
8663
8705
  break;
8664
8706
 
8665
8707
  case 13:
8666
- _context27.prev = 13;
8667
- _context27.t0 = _context27["catch"](2);
8708
+ _context28.prev = 13;
8709
+ _context28.t0 = _context28["catch"](2);
8668
8710
 
8669
- _iterator4.e(_context27.t0);
8711
+ _iterator4.e(_context28.t0);
8670
8712
 
8671
8713
  case 16:
8672
- _context27.prev = 16;
8714
+ _context28.prev = 16;
8673
8715
 
8674
8716
  _iterator4.f();
8675
8717
 
8676
- return _context27.finish(16);
8718
+ return _context28.finish(16);
8677
8719
 
8678
8720
  case 19:
8679
- _context27.next = 21;
8721
+ _context28.next = 21;
8680
8722
  return this.post(this.baseURL + '/users', {
8681
8723
  users: userMap
8682
8724
  });
8683
8725
 
8684
8726
  case 21:
8685
- return _context27.abrupt("return", _context27.sent);
8727
+ return _context28.abrupt("return", _context28.sent);
8686
8728
 
8687
8729
  case 22:
8688
8730
  case "end":
8689
- return _context27.stop();
8731
+ return _context28.stop();
8690
8732
  }
8691
8733
  }
8692
- }, _callee27, this, [[2, 13, 16, 19]]);
8734
+ }, _callee28, this, [[2, 13, 16, 19]]);
8693
8735
  }));
8694
8736
 
8695
8737
  function upsertUsers(_x30) {
@@ -8740,69 +8782,69 @@ var StreamChat = /*#__PURE__*/function () {
8740
8782
  * @return {Promise<{ users: { [key: string]: UserResponse<StreamChatGenerics> } }>}
8741
8783
  */
8742
8784
  function () {
8743
- var _partialUpdateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(users) {
8785
+ var _partialUpdateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29(users) {
8744
8786
  var _iterator5, _step5, userObject;
8745
8787
 
8746
- return _regeneratorRuntime.wrap(function _callee28$(_context28) {
8788
+ return _regeneratorRuntime.wrap(function _callee29$(_context29) {
8747
8789
  while (1) {
8748
- switch (_context28.prev = _context28.next) {
8790
+ switch (_context29.prev = _context29.next) {
8749
8791
  case 0:
8750
8792
  _iterator5 = _createForOfIteratorHelper(users);
8751
- _context28.prev = 1;
8793
+ _context29.prev = 1;
8752
8794
 
8753
8795
  _iterator5.s();
8754
8796
 
8755
8797
  case 3:
8756
8798
  if ((_step5 = _iterator5.n()).done) {
8757
- _context28.next = 9;
8799
+ _context29.next = 9;
8758
8800
  break;
8759
8801
  }
8760
8802
 
8761
8803
  userObject = _step5.value;
8762
8804
 
8763
8805
  if (userObject.id) {
8764
- _context28.next = 7;
8806
+ _context29.next = 7;
8765
8807
  break;
8766
8808
  }
8767
8809
 
8768
8810
  throw Error('User ID is required when updating a user');
8769
8811
 
8770
8812
  case 7:
8771
- _context28.next = 3;
8813
+ _context29.next = 3;
8772
8814
  break;
8773
8815
 
8774
8816
  case 9:
8775
- _context28.next = 14;
8817
+ _context29.next = 14;
8776
8818
  break;
8777
8819
 
8778
8820
  case 11:
8779
- _context28.prev = 11;
8780
- _context28.t0 = _context28["catch"](1);
8821
+ _context29.prev = 11;
8822
+ _context29.t0 = _context29["catch"](1);
8781
8823
 
8782
- _iterator5.e(_context28.t0);
8824
+ _iterator5.e(_context29.t0);
8783
8825
 
8784
8826
  case 14:
8785
- _context28.prev = 14;
8827
+ _context29.prev = 14;
8786
8828
 
8787
8829
  _iterator5.f();
8788
8830
 
8789
- return _context28.finish(14);
8831
+ return _context29.finish(14);
8790
8832
 
8791
8833
  case 17:
8792
- _context28.next = 19;
8834
+ _context29.next = 19;
8793
8835
  return this.patch(this.baseURL + '/users', {
8794
8836
  users: users
8795
8837
  });
8796
8838
 
8797
8839
  case 19:
8798
- return _context28.abrupt("return", _context28.sent);
8840
+ return _context29.abrupt("return", _context29.sent);
8799
8841
 
8800
8842
  case 20:
8801
8843
  case "end":
8802
- return _context28.stop();
8844
+ return _context29.stop();
8803
8845
  }
8804
8846
  }
8805
- }, _callee28, this, [[1, 11, 14, 17]]);
8847
+ }, _callee29, this, [[1, 11, 14, 17]]);
8806
8848
  }));
8807
8849
 
8808
8850
  function partialUpdateUsers(_x31) {
@@ -8814,23 +8856,23 @@ var StreamChat = /*#__PURE__*/function () {
8814
8856
  }, {
8815
8857
  key: "deleteUser",
8816
8858
  value: function () {
8817
- var _deleteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29(userID, params) {
8818
- return _regeneratorRuntime.wrap(function _callee29$(_context29) {
8859
+ var _deleteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(userID, params) {
8860
+ return _regeneratorRuntime.wrap(function _callee30$(_context30) {
8819
8861
  while (1) {
8820
- switch (_context29.prev = _context29.next) {
8862
+ switch (_context30.prev = _context30.next) {
8821
8863
  case 0:
8822
- _context29.next = 2;
8864
+ _context30.next = 2;
8823
8865
  return this.delete(this.baseURL + "/users/".concat(userID), params);
8824
8866
 
8825
8867
  case 2:
8826
- return _context29.abrupt("return", _context29.sent);
8868
+ return _context30.abrupt("return", _context30.sent);
8827
8869
 
8828
8870
  case 3:
8829
8871
  case "end":
8830
- return _context29.stop();
8872
+ return _context30.stop();
8831
8873
  }
8832
8874
  }
8833
- }, _callee29, this);
8875
+ }, _callee30, this);
8834
8876
  }));
8835
8877
 
8836
8878
  function deleteUser(_x32, _x33) {
@@ -8850,25 +8892,25 @@ var StreamChat = /*#__PURE__*/function () {
8850
8892
  }, {
8851
8893
  key: "restoreUsers",
8852
8894
  value: function () {
8853
- var _restoreUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(user_ids) {
8854
- return _regeneratorRuntime.wrap(function _callee30$(_context30) {
8895
+ var _restoreUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(user_ids) {
8896
+ return _regeneratorRuntime.wrap(function _callee31$(_context31) {
8855
8897
  while (1) {
8856
- switch (_context30.prev = _context30.next) {
8898
+ switch (_context31.prev = _context31.next) {
8857
8899
  case 0:
8858
- _context30.next = 2;
8900
+ _context31.next = 2;
8859
8901
  return this.post(this.baseURL + "/users/restore", {
8860
8902
  user_ids: user_ids
8861
8903
  });
8862
8904
 
8863
8905
  case 2:
8864
- return _context30.abrupt("return", _context30.sent);
8906
+ return _context31.abrupt("return", _context31.sent);
8865
8907
 
8866
8908
  case 3:
8867
8909
  case "end":
8868
- return _context30.stop();
8910
+ return _context31.stop();
8869
8911
  }
8870
8912
  }
8871
- }, _callee30, this);
8913
+ }, _callee31, this);
8872
8914
  }));
8873
8915
 
8874
8916
  function restoreUsers(_x34) {
@@ -8889,23 +8931,23 @@ var StreamChat = /*#__PURE__*/function () {
8889
8931
  }, {
8890
8932
  key: "reactivateUser",
8891
8933
  value: function () {
8892
- var _reactivateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(userID, options) {
8893
- return _regeneratorRuntime.wrap(function _callee31$(_context31) {
8934
+ var _reactivateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(userID, options) {
8935
+ return _regeneratorRuntime.wrap(function _callee32$(_context32) {
8894
8936
  while (1) {
8895
- switch (_context31.prev = _context31.next) {
8937
+ switch (_context32.prev = _context32.next) {
8896
8938
  case 0:
8897
- _context31.next = 2;
8939
+ _context32.next = 2;
8898
8940
  return this.post(this.baseURL + "/users/".concat(userID, "/reactivate"), _objectSpread({}, options));
8899
8941
 
8900
8942
  case 2:
8901
- return _context31.abrupt("return", _context31.sent);
8943
+ return _context32.abrupt("return", _context32.sent);
8902
8944
 
8903
8945
  case 3:
8904
8946
  case "end":
8905
- return _context31.stop();
8947
+ return _context32.stop();
8906
8948
  }
8907
8949
  }
8908
- }, _callee31, this);
8950
+ }, _callee32, this);
8909
8951
  }));
8910
8952
 
8911
8953
  function reactivateUser(_x35, _x36) {
@@ -8926,25 +8968,25 @@ var StreamChat = /*#__PURE__*/function () {
8926
8968
  }, {
8927
8969
  key: "reactivateUsers",
8928
8970
  value: function () {
8929
- var _reactivateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(user_ids, options) {
8930
- return _regeneratorRuntime.wrap(function _callee32$(_context32) {
8971
+ var _reactivateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(user_ids, options) {
8972
+ return _regeneratorRuntime.wrap(function _callee33$(_context33) {
8931
8973
  while (1) {
8932
- switch (_context32.prev = _context32.next) {
8974
+ switch (_context33.prev = _context33.next) {
8933
8975
  case 0:
8934
- _context32.next = 2;
8976
+ _context33.next = 2;
8935
8977
  return this.post(this.baseURL + "/users/reactivate", _objectSpread({
8936
8978
  user_ids: user_ids
8937
8979
  }, options));
8938
8980
 
8939
8981
  case 2:
8940
- return _context32.abrupt("return", _context32.sent);
8982
+ return _context33.abrupt("return", _context33.sent);
8941
8983
 
8942
8984
  case 3:
8943
8985
  case "end":
8944
- return _context32.stop();
8986
+ return _context33.stop();
8945
8987
  }
8946
8988
  }
8947
- }, _callee32, this);
8989
+ }, _callee33, this);
8948
8990
  }));
8949
8991
 
8950
8992
  function reactivateUsers(_x37, _x38) {
@@ -8965,23 +9007,23 @@ var StreamChat = /*#__PURE__*/function () {
8965
9007
  }, {
8966
9008
  key: "deactivateUser",
8967
9009
  value: function () {
8968
- var _deactivateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(userID, options) {
8969
- return _regeneratorRuntime.wrap(function _callee33$(_context33) {
9010
+ var _deactivateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(userID, options) {
9011
+ return _regeneratorRuntime.wrap(function _callee34$(_context34) {
8970
9012
  while (1) {
8971
- switch (_context33.prev = _context33.next) {
9013
+ switch (_context34.prev = _context34.next) {
8972
9014
  case 0:
8973
- _context33.next = 2;
9015
+ _context34.next = 2;
8974
9016
  return this.post(this.baseURL + "/users/".concat(userID, "/deactivate"), _objectSpread({}, options));
8975
9017
 
8976
9018
  case 2:
8977
- return _context33.abrupt("return", _context33.sent);
9019
+ return _context34.abrupt("return", _context34.sent);
8978
9020
 
8979
9021
  case 3:
8980
9022
  case "end":
8981
- return _context33.stop();
9023
+ return _context34.stop();
8982
9024
  }
8983
9025
  }
8984
- }, _callee33, this);
9026
+ }, _callee34, this);
8985
9027
  }));
8986
9028
 
8987
9029
  function deactivateUser(_x39, _x40) {
@@ -9002,25 +9044,25 @@ var StreamChat = /*#__PURE__*/function () {
9002
9044
  }, {
9003
9045
  key: "deactivateUsers",
9004
9046
  value: function () {
9005
- var _deactivateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(user_ids, options) {
9006
- return _regeneratorRuntime.wrap(function _callee34$(_context34) {
9047
+ var _deactivateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(user_ids, options) {
9048
+ return _regeneratorRuntime.wrap(function _callee35$(_context35) {
9007
9049
  while (1) {
9008
- switch (_context34.prev = _context34.next) {
9050
+ switch (_context35.prev = _context35.next) {
9009
9051
  case 0:
9010
- _context34.next = 2;
9052
+ _context35.next = 2;
9011
9053
  return this.post(this.baseURL + "/users/deactivate", _objectSpread({
9012
9054
  user_ids: user_ids
9013
9055
  }, options));
9014
9056
 
9015
9057
  case 2:
9016
- return _context34.abrupt("return", _context34.sent);
9058
+ return _context35.abrupt("return", _context35.sent);
9017
9059
 
9018
9060
  case 3:
9019
9061
  case "end":
9020
- return _context34.stop();
9062
+ return _context35.stop();
9021
9063
  }
9022
9064
  }
9023
- }, _callee34, this);
9065
+ }, _callee35, this);
9024
9066
  }));
9025
9067
 
9026
9068
  function deactivateUsers(_x41, _x42) {
@@ -9032,23 +9074,23 @@ var StreamChat = /*#__PURE__*/function () {
9032
9074
  }, {
9033
9075
  key: "exportUser",
9034
9076
  value: function () {
9035
- var _exportUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(userID, options) {
9036
- return _regeneratorRuntime.wrap(function _callee35$(_context35) {
9077
+ var _exportUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(userID, options) {
9078
+ return _regeneratorRuntime.wrap(function _callee36$(_context36) {
9037
9079
  while (1) {
9038
- switch (_context35.prev = _context35.next) {
9080
+ switch (_context36.prev = _context36.next) {
9039
9081
  case 0:
9040
- _context35.next = 2;
9082
+ _context36.next = 2;
9041
9083
  return this.get(this.baseURL + "/users/".concat(userID, "/export"), _objectSpread({}, options));
9042
9084
 
9043
9085
  case 2:
9044
- return _context35.abrupt("return", _context35.sent);
9086
+ return _context36.abrupt("return", _context36.sent);
9045
9087
 
9046
9088
  case 3:
9047
9089
  case "end":
9048
- return _context35.stop();
9090
+ return _context36.stop();
9049
9091
  }
9050
9092
  }
9051
- }, _callee35, this);
9093
+ }, _callee36, this);
9052
9094
  }));
9053
9095
 
9054
9096
  function exportUser(_x43, _x44) {
@@ -9067,25 +9109,25 @@ var StreamChat = /*#__PURE__*/function () {
9067
9109
  }, {
9068
9110
  key: "banUser",
9069
9111
  value: function () {
9070
- var _banUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(targetUserID, options) {
9071
- return _regeneratorRuntime.wrap(function _callee36$(_context36) {
9112
+ var _banUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(targetUserID, options) {
9113
+ return _regeneratorRuntime.wrap(function _callee37$(_context37) {
9072
9114
  while (1) {
9073
- switch (_context36.prev = _context36.next) {
9115
+ switch (_context37.prev = _context37.next) {
9074
9116
  case 0:
9075
- _context36.next = 2;
9117
+ _context37.next = 2;
9076
9118
  return this.post(this.baseURL + '/moderation/ban', _objectSpread({
9077
9119
  target_user_id: targetUserID
9078
9120
  }, options));
9079
9121
 
9080
9122
  case 2:
9081
- return _context36.abrupt("return", _context36.sent);
9123
+ return _context37.abrupt("return", _context37.sent);
9082
9124
 
9083
9125
  case 3:
9084
9126
  case "end":
9085
- return _context36.stop();
9127
+ return _context37.stop();
9086
9128
  }
9087
9129
  }
9088
- }, _callee36, this);
9130
+ }, _callee37, this);
9089
9131
  }));
9090
9132
 
9091
9133
  function banUser(_x45, _x46) {
@@ -9104,25 +9146,25 @@ var StreamChat = /*#__PURE__*/function () {
9104
9146
  }, {
9105
9147
  key: "unbanUser",
9106
9148
  value: function () {
9107
- var _unbanUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(targetUserID, options) {
9108
- return _regeneratorRuntime.wrap(function _callee37$(_context37) {
9149
+ var _unbanUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(targetUserID, options) {
9150
+ return _regeneratorRuntime.wrap(function _callee38$(_context38) {
9109
9151
  while (1) {
9110
- switch (_context37.prev = _context37.next) {
9152
+ switch (_context38.prev = _context38.next) {
9111
9153
  case 0:
9112
- _context37.next = 2;
9154
+ _context38.next = 2;
9113
9155
  return this.delete(this.baseURL + '/moderation/ban', _objectSpread({
9114
9156
  target_user_id: targetUserID
9115
9157
  }, options));
9116
9158
 
9117
9159
  case 2:
9118
- return _context37.abrupt("return", _context37.sent);
9160
+ return _context38.abrupt("return", _context38.sent);
9119
9161
 
9120
9162
  case 3:
9121
9163
  case "end":
9122
- return _context37.stop();
9164
+ return _context38.stop();
9123
9165
  }
9124
9166
  }
9125
- }, _callee37, this);
9167
+ }, _callee38, this);
9126
9168
  }));
9127
9169
 
9128
9170
  function unbanUser(_x47, _x48) {
@@ -9141,25 +9183,25 @@ var StreamChat = /*#__PURE__*/function () {
9141
9183
  }, {
9142
9184
  key: "shadowBan",
9143
9185
  value: function () {
9144
- var _shadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(targetUserID, options) {
9145
- return _regeneratorRuntime.wrap(function _callee38$(_context38) {
9186
+ var _shadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(targetUserID, options) {
9187
+ return _regeneratorRuntime.wrap(function _callee39$(_context39) {
9146
9188
  while (1) {
9147
- switch (_context38.prev = _context38.next) {
9189
+ switch (_context39.prev = _context39.next) {
9148
9190
  case 0:
9149
- _context38.next = 2;
9191
+ _context39.next = 2;
9150
9192
  return this.banUser(targetUserID, _objectSpread({
9151
9193
  shadow: true
9152
9194
  }, options));
9153
9195
 
9154
9196
  case 2:
9155
- return _context38.abrupt("return", _context38.sent);
9197
+ return _context39.abrupt("return", _context39.sent);
9156
9198
 
9157
9199
  case 3:
9158
9200
  case "end":
9159
- return _context38.stop();
9201
+ return _context39.stop();
9160
9202
  }
9161
9203
  }
9162
- }, _callee38, this);
9204
+ }, _callee39, this);
9163
9205
  }));
9164
9206
 
9165
9207
  function shadowBan(_x49, _x50) {
@@ -9178,25 +9220,25 @@ var StreamChat = /*#__PURE__*/function () {
9178
9220
  }, {
9179
9221
  key: "removeShadowBan",
9180
9222
  value: function () {
9181
- var _removeShadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(targetUserID, options) {
9182
- return _regeneratorRuntime.wrap(function _callee39$(_context39) {
9223
+ var _removeShadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(targetUserID, options) {
9224
+ return _regeneratorRuntime.wrap(function _callee40$(_context40) {
9183
9225
  while (1) {
9184
- switch (_context39.prev = _context39.next) {
9226
+ switch (_context40.prev = _context40.next) {
9185
9227
  case 0:
9186
- _context39.next = 2;
9228
+ _context40.next = 2;
9187
9229
  return this.unbanUser(targetUserID, _objectSpread({
9188
9230
  shadow: true
9189
9231
  }, options));
9190
9232
 
9191
9233
  case 2:
9192
- return _context39.abrupt("return", _context39.sent);
9234
+ return _context40.abrupt("return", _context40.sent);
9193
9235
 
9194
9236
  case 3:
9195
9237
  case "end":
9196
- return _context39.stop();
9238
+ return _context40.stop();
9197
9239
  }
9198
9240
  }
9199
- }, _callee39, this);
9241
+ }, _callee40, this);
9200
9242
  }));
9201
9243
 
9202
9244
  function removeShadowBan(_x51, _x52) {
@@ -9216,15 +9258,15 @@ var StreamChat = /*#__PURE__*/function () {
9216
9258
  }, {
9217
9259
  key: "muteUser",
9218
9260
  value: function () {
9219
- var _muteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(targetID, userID) {
9261
+ var _muteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(targetID, userID) {
9220
9262
  var options,
9221
- _args40 = arguments;
9222
- return _regeneratorRuntime.wrap(function _callee40$(_context40) {
9263
+ _args41 = arguments;
9264
+ return _regeneratorRuntime.wrap(function _callee41$(_context41) {
9223
9265
  while (1) {
9224
- switch (_context40.prev = _context40.next) {
9266
+ switch (_context41.prev = _context41.next) {
9225
9267
  case 0:
9226
- options = _args40.length > 2 && _args40[2] !== undefined ? _args40[2] : {};
9227
- _context40.next = 3;
9268
+ options = _args41.length > 2 && _args41[2] !== undefined ? _args41[2] : {};
9269
+ _context41.next = 3;
9228
9270
  return this.post(this.baseURL + '/moderation/mute', _objectSpread(_objectSpread({
9229
9271
  target_id: targetID
9230
9272
  }, userID ? {
@@ -9232,14 +9274,14 @@ var StreamChat = /*#__PURE__*/function () {
9232
9274
  } : {}), options));
9233
9275
 
9234
9276
  case 3:
9235
- return _context40.abrupt("return", _context40.sent);
9277
+ return _context41.abrupt("return", _context41.sent);
9236
9278
 
9237
9279
  case 4:
9238
9280
  case "end":
9239
- return _context40.stop();
9281
+ return _context41.stop();
9240
9282
  }
9241
9283
  }
9242
- }, _callee40, this);
9284
+ }, _callee41, this);
9243
9285
  }));
9244
9286
 
9245
9287
  function muteUser(_x53, _x54) {
@@ -9258,12 +9300,12 @@ var StreamChat = /*#__PURE__*/function () {
9258
9300
  }, {
9259
9301
  key: "unmuteUser",
9260
9302
  value: function () {
9261
- var _unmuteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(targetID, currentUserID) {
9262
- return _regeneratorRuntime.wrap(function _callee41$(_context41) {
9303
+ var _unmuteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(targetID, currentUserID) {
9304
+ return _regeneratorRuntime.wrap(function _callee42$(_context42) {
9263
9305
  while (1) {
9264
- switch (_context41.prev = _context41.next) {
9306
+ switch (_context42.prev = _context42.next) {
9265
9307
  case 0:
9266
- _context41.next = 2;
9308
+ _context42.next = 2;
9267
9309
  return this.post(this.baseURL + '/moderation/unmute', _objectSpread({
9268
9310
  target_id: targetID
9269
9311
  }, currentUserID ? {
@@ -9271,14 +9313,14 @@ var StreamChat = /*#__PURE__*/function () {
9271
9313
  } : {}));
9272
9314
 
9273
9315
  case 2:
9274
- return _context41.abrupt("return", _context41.sent);
9316
+ return _context42.abrupt("return", _context42.sent);
9275
9317
 
9276
9318
  case 3:
9277
9319
  case "end":
9278
- return _context41.stop();
9320
+ return _context42.stop();
9279
9321
  }
9280
9322
  }
9281
- }, _callee41, this);
9323
+ }, _callee42, this);
9282
9324
  }));
9283
9325
 
9284
9326
  function unmuteUser(_x55, _x56) {
@@ -9316,28 +9358,28 @@ var StreamChat = /*#__PURE__*/function () {
9316
9358
  }, {
9317
9359
  key: "flagMessage",
9318
9360
  value: function () {
9319
- var _flagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(targetMessageID) {
9361
+ var _flagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(targetMessageID) {
9320
9362
  var options,
9321
- _args42 = arguments;
9322
- return _regeneratorRuntime.wrap(function _callee42$(_context42) {
9363
+ _args43 = arguments;
9364
+ return _regeneratorRuntime.wrap(function _callee43$(_context43) {
9323
9365
  while (1) {
9324
- switch (_context42.prev = _context42.next) {
9366
+ switch (_context43.prev = _context43.next) {
9325
9367
  case 0:
9326
- options = _args42.length > 1 && _args42[1] !== undefined ? _args42[1] : {};
9327
- _context42.next = 3;
9368
+ options = _args43.length > 1 && _args43[1] !== undefined ? _args43[1] : {};
9369
+ _context43.next = 3;
9328
9370
  return this.post(this.baseURL + '/moderation/flag', _objectSpread({
9329
9371
  target_message_id: targetMessageID
9330
9372
  }, options));
9331
9373
 
9332
9374
  case 3:
9333
- return _context42.abrupt("return", _context42.sent);
9375
+ return _context43.abrupt("return", _context43.sent);
9334
9376
 
9335
9377
  case 4:
9336
9378
  case "end":
9337
- return _context42.stop();
9379
+ return _context43.stop();
9338
9380
  }
9339
9381
  }
9340
- }, _callee42, this);
9382
+ }, _callee43, this);
9341
9383
  }));
9342
9384
 
9343
9385
  function flagMessage(_x57) {
@@ -9356,28 +9398,28 @@ var StreamChat = /*#__PURE__*/function () {
9356
9398
  }, {
9357
9399
  key: "flagUser",
9358
9400
  value: function () {
9359
- var _flagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(targetID) {
9401
+ var _flagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(targetID) {
9360
9402
  var options,
9361
- _args43 = arguments;
9362
- return _regeneratorRuntime.wrap(function _callee43$(_context43) {
9403
+ _args44 = arguments;
9404
+ return _regeneratorRuntime.wrap(function _callee44$(_context44) {
9363
9405
  while (1) {
9364
- switch (_context43.prev = _context43.next) {
9406
+ switch (_context44.prev = _context44.next) {
9365
9407
  case 0:
9366
- options = _args43.length > 1 && _args43[1] !== undefined ? _args43[1] : {};
9367
- _context43.next = 3;
9408
+ options = _args44.length > 1 && _args44[1] !== undefined ? _args44[1] : {};
9409
+ _context44.next = 3;
9368
9410
  return this.post(this.baseURL + '/moderation/flag', _objectSpread({
9369
9411
  target_user_id: targetID
9370
9412
  }, options));
9371
9413
 
9372
9414
  case 3:
9373
- return _context43.abrupt("return", _context43.sent);
9415
+ return _context44.abrupt("return", _context44.sent);
9374
9416
 
9375
9417
  case 4:
9376
9418
  case "end":
9377
- return _context43.stop();
9419
+ return _context44.stop();
9378
9420
  }
9379
9421
  }
9380
- }, _callee43, this);
9422
+ }, _callee44, this);
9381
9423
  }));
9382
9424
 
9383
9425
  function flagUser(_x58) {
@@ -9396,28 +9438,28 @@ var StreamChat = /*#__PURE__*/function () {
9396
9438
  }, {
9397
9439
  key: "unflagMessage",
9398
9440
  value: function () {
9399
- var _unflagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(targetMessageID) {
9441
+ var _unflagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(targetMessageID) {
9400
9442
  var options,
9401
- _args44 = arguments;
9402
- return _regeneratorRuntime.wrap(function _callee44$(_context44) {
9443
+ _args45 = arguments;
9444
+ return _regeneratorRuntime.wrap(function _callee45$(_context45) {
9403
9445
  while (1) {
9404
- switch (_context44.prev = _context44.next) {
9446
+ switch (_context45.prev = _context45.next) {
9405
9447
  case 0:
9406
- options = _args44.length > 1 && _args44[1] !== undefined ? _args44[1] : {};
9407
- _context44.next = 3;
9448
+ options = _args45.length > 1 && _args45[1] !== undefined ? _args45[1] : {};
9449
+ _context45.next = 3;
9408
9450
  return this.post(this.baseURL + '/moderation/unflag', _objectSpread({
9409
9451
  target_message_id: targetMessageID
9410
9452
  }, options));
9411
9453
 
9412
9454
  case 3:
9413
- return _context44.abrupt("return", _context44.sent);
9455
+ return _context45.abrupt("return", _context45.sent);
9414
9456
 
9415
9457
  case 4:
9416
9458
  case "end":
9417
- return _context44.stop();
9459
+ return _context45.stop();
9418
9460
  }
9419
9461
  }
9420
- }, _callee44, this);
9462
+ }, _callee45, this);
9421
9463
  }));
9422
9464
 
9423
9465
  function unflagMessage(_x59) {
@@ -9436,28 +9478,28 @@ var StreamChat = /*#__PURE__*/function () {
9436
9478
  }, {
9437
9479
  key: "unflagUser",
9438
9480
  value: function () {
9439
- var _unflagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(targetID) {
9481
+ var _unflagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(targetID) {
9440
9482
  var options,
9441
- _args45 = arguments;
9442
- return _regeneratorRuntime.wrap(function _callee45$(_context45) {
9483
+ _args46 = arguments;
9484
+ return _regeneratorRuntime.wrap(function _callee46$(_context46) {
9443
9485
  while (1) {
9444
- switch (_context45.prev = _context45.next) {
9486
+ switch (_context46.prev = _context46.next) {
9445
9487
  case 0:
9446
- options = _args45.length > 1 && _args45[1] !== undefined ? _args45[1] : {};
9447
- _context45.next = 3;
9488
+ options = _args46.length > 1 && _args46[1] !== undefined ? _args46[1] : {};
9489
+ _context46.next = 3;
9448
9490
  return this.post(this.baseURL + '/moderation/unflag', _objectSpread({
9449
9491
  target_user_id: targetID
9450
9492
  }, options));
9451
9493
 
9452
9494
  case 3:
9453
- return _context45.abrupt("return", _context45.sent);
9495
+ return _context46.abrupt("return", _context46.sent);
9454
9496
 
9455
9497
  case 4:
9456
9498
  case "end":
9457
- return _context45.stop();
9499
+ return _context46.stop();
9458
9500
  }
9459
9501
  }
9460
- }, _callee45, this);
9502
+ }, _callee46, this);
9461
9503
  }));
9462
9504
 
9463
9505
  function unflagUser(_x60) {
@@ -9477,26 +9519,26 @@ var StreamChat = /*#__PURE__*/function () {
9477
9519
  }, {
9478
9520
  key: "getCallToken",
9479
9521
  value: function () {
9480
- var _getCallToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(callID) {
9522
+ var _getCallToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(callID) {
9481
9523
  var options,
9482
- _args46 = arguments;
9483
- return _regeneratorRuntime.wrap(function _callee46$(_context46) {
9524
+ _args47 = arguments;
9525
+ return _regeneratorRuntime.wrap(function _callee47$(_context47) {
9484
9526
  while (1) {
9485
- switch (_context46.prev = _context46.next) {
9527
+ switch (_context47.prev = _context47.next) {
9486
9528
  case 0:
9487
- options = _args46.length > 1 && _args46[1] !== undefined ? _args46[1] : {};
9488
- _context46.next = 3;
9529
+ options = _args47.length > 1 && _args47[1] !== undefined ? _args47[1] : {};
9530
+ _context47.next = 3;
9489
9531
  return this.post(this.baseURL + "/calls/".concat(callID), _objectSpread({}, options));
9490
9532
 
9491
9533
  case 3:
9492
- return _context46.abrupt("return", _context46.sent);
9534
+ return _context47.abrupt("return", _context47.sent);
9493
9535
 
9494
9536
  case 4:
9495
9537
  case "end":
9496
- return _context46.stop();
9538
+ return _context47.stop();
9497
9539
  }
9498
9540
  }
9499
- }, _callee46, this);
9541
+ }, _callee47, this);
9500
9542
  }));
9501
9543
 
9502
9544
  function getCallToken(_x61) {
@@ -9522,30 +9564,30 @@ var StreamChat = /*#__PURE__*/function () {
9522
9564
  }, {
9523
9565
  key: "_queryFlags",
9524
9566
  value: function () {
9525
- var _queryFlags2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47() {
9567
+ var _queryFlags2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48() {
9526
9568
  var filterConditions,
9527
9569
  options,
9528
- _args47 = arguments;
9529
- return _regeneratorRuntime.wrap(function _callee47$(_context47) {
9570
+ _args48 = arguments;
9571
+ return _regeneratorRuntime.wrap(function _callee48$(_context48) {
9530
9572
  while (1) {
9531
- switch (_context47.prev = _context47.next) {
9573
+ switch (_context48.prev = _context48.next) {
9532
9574
  case 0:
9533
- filterConditions = _args47.length > 0 && _args47[0] !== undefined ? _args47[0] : {};
9534
- options = _args47.length > 1 && _args47[1] !== undefined ? _args47[1] : {};
9535
- _context47.next = 4;
9575
+ filterConditions = _args48.length > 0 && _args48[0] !== undefined ? _args48[0] : {};
9576
+ options = _args48.length > 1 && _args48[1] !== undefined ? _args48[1] : {};
9577
+ _context48.next = 4;
9536
9578
  return this.post(this.baseURL + '/moderation/flags', _objectSpread({
9537
9579
  filter_conditions: filterConditions
9538
9580
  }, options));
9539
9581
 
9540
9582
  case 4:
9541
- return _context47.abrupt("return", _context47.sent);
9583
+ return _context48.abrupt("return", _context48.sent);
9542
9584
 
9543
9585
  case 5:
9544
9586
  case "end":
9545
- return _context47.stop();
9587
+ return _context48.stop();
9546
9588
  }
9547
9589
  }
9548
- }, _callee47, this);
9590
+ }, _callee48, this);
9549
9591
  }));
9550
9592
 
9551
9593
  function _queryFlags() {
@@ -9571,30 +9613,30 @@ var StreamChat = /*#__PURE__*/function () {
9571
9613
  }, {
9572
9614
  key: "_queryFlagReports",
9573
9615
  value: function () {
9574
- var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48() {
9616
+ var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49() {
9575
9617
  var filterConditions,
9576
9618
  options,
9577
- _args48 = arguments;
9578
- return _regeneratorRuntime.wrap(function _callee48$(_context48) {
9619
+ _args49 = arguments;
9620
+ return _regeneratorRuntime.wrap(function _callee49$(_context49) {
9579
9621
  while (1) {
9580
- switch (_context48.prev = _context48.next) {
9622
+ switch (_context49.prev = _context49.next) {
9581
9623
  case 0:
9582
- filterConditions = _args48.length > 0 && _args48[0] !== undefined ? _args48[0] : {};
9583
- options = _args48.length > 1 && _args48[1] !== undefined ? _args48[1] : {};
9584
- _context48.next = 4;
9624
+ filterConditions = _args49.length > 0 && _args49[0] !== undefined ? _args49[0] : {};
9625
+ options = _args49.length > 1 && _args49[1] !== undefined ? _args49[1] : {};
9626
+ _context49.next = 4;
9585
9627
  return this.post(this.baseURL + '/moderation/reports', _objectSpread({
9586
9628
  filter_conditions: filterConditions
9587
9629
  }, options));
9588
9630
 
9589
9631
  case 4:
9590
- return _context48.abrupt("return", _context48.sent);
9632
+ return _context49.abrupt("return", _context49.sent);
9591
9633
 
9592
9634
  case 5:
9593
9635
  case "end":
9594
- return _context48.stop();
9636
+ return _context49.stop();
9595
9637
  }
9596
9638
  }
9597
- }, _callee48, this);
9639
+ }, _callee49, this);
9598
9640
  }));
9599
9641
 
9600
9642
  function _queryFlagReports() {
@@ -9621,28 +9663,28 @@ var StreamChat = /*#__PURE__*/function () {
9621
9663
  }, {
9622
9664
  key: "_reviewFlagReport",
9623
9665
  value: function () {
9624
- var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(id, reviewResult) {
9666
+ var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(id, reviewResult) {
9625
9667
  var options,
9626
- _args49 = arguments;
9627
- return _regeneratorRuntime.wrap(function _callee49$(_context49) {
9668
+ _args50 = arguments;
9669
+ return _regeneratorRuntime.wrap(function _callee50$(_context50) {
9628
9670
  while (1) {
9629
- switch (_context49.prev = _context49.next) {
9671
+ switch (_context50.prev = _context50.next) {
9630
9672
  case 0:
9631
- options = _args49.length > 2 && _args49[2] !== undefined ? _args49[2] : {};
9632
- _context49.next = 3;
9673
+ options = _args50.length > 2 && _args50[2] !== undefined ? _args50[2] : {};
9674
+ _context50.next = 3;
9633
9675
  return this.patch(this.baseURL + "/moderation/reports/".concat(id), _objectSpread({
9634
9676
  review_result: reviewResult
9635
9677
  }, options));
9636
9678
 
9637
9679
  case 3:
9638
- return _context49.abrupt("return", _context49.sent);
9680
+ return _context50.abrupt("return", _context50.sent);
9639
9681
 
9640
9682
  case 4:
9641
9683
  case "end":
9642
- return _context49.stop();
9684
+ return _context50.stop();
9643
9685
  }
9644
9686
  }
9645
- }, _callee49, this);
9687
+ }, _callee50, this);
9646
9688
  }));
9647
9689
 
9648
9690
  function _reviewFlagReport(_x62, _x63) {
@@ -9663,28 +9705,28 @@ var StreamChat = /*#__PURE__*/function () {
9663
9705
  }, {
9664
9706
  key: "unblockMessage",
9665
9707
  value: function () {
9666
- var _unblockMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(targetMessageID) {
9708
+ var _unblockMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(targetMessageID) {
9667
9709
  var options,
9668
- _args50 = arguments;
9669
- return _regeneratorRuntime.wrap(function _callee50$(_context50) {
9710
+ _args51 = arguments;
9711
+ return _regeneratorRuntime.wrap(function _callee51$(_context51) {
9670
9712
  while (1) {
9671
- switch (_context50.prev = _context50.next) {
9713
+ switch (_context51.prev = _context51.next) {
9672
9714
  case 0:
9673
- options = _args50.length > 1 && _args50[1] !== undefined ? _args50[1] : {};
9674
- _context50.next = 3;
9715
+ options = _args51.length > 1 && _args51[1] !== undefined ? _args51[1] : {};
9716
+ _context51.next = 3;
9675
9717
  return this.post(this.baseURL + '/moderation/unblock_message', _objectSpread({
9676
9718
  target_message_id: targetMessageID
9677
9719
  }, options));
9678
9720
 
9679
9721
  case 3:
9680
- return _context50.abrupt("return", _context50.sent);
9722
+ return _context51.abrupt("return", _context51.sent);
9681
9723
 
9682
9724
  case 4:
9683
9725
  case "end":
9684
- return _context50.stop();
9726
+ return _context51.stop();
9685
9727
  }
9686
9728
  }
9687
- }, _callee50, this);
9729
+ }, _callee51, this);
9688
9730
  }));
9689
9731
 
9690
9732
  function unblockMessage(_x64) {
@@ -9706,23 +9748,23 @@ var StreamChat = /*#__PURE__*/function () {
9706
9748
  * @return {Promise<APIResponse>}
9707
9749
  */
9708
9750
  function () {
9709
- var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51() {
9751
+ var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52() {
9710
9752
  var data,
9711
- _args51 = arguments;
9712
- return _regeneratorRuntime.wrap(function _callee51$(_context51) {
9753
+ _args52 = arguments;
9754
+ return _regeneratorRuntime.wrap(function _callee52$(_context52) {
9713
9755
  while (1) {
9714
- switch (_context51.prev = _context51.next) {
9756
+ switch (_context52.prev = _context52.next) {
9715
9757
  case 0:
9716
- data = _args51.length > 0 && _args51[0] !== undefined ? _args51[0] : {};
9717
- _context51.next = 3;
9758
+ data = _args52.length > 0 && _args52[0] !== undefined ? _args52[0] : {};
9759
+ _context52.next = 3;
9718
9760
  return this.post(this.baseURL + '/channels/read', _objectSpread({}, data));
9719
9761
 
9720
9762
  case 3:
9721
9763
  case "end":
9722
- return _context51.stop();
9764
+ return _context52.stop();
9723
9765
  }
9724
9766
  }
9725
- }, _callee51, this);
9767
+ }, _callee52, this);
9726
9768
  }));
9727
9769
 
9728
9770
  function markChannelsRead() {
@@ -9797,25 +9839,25 @@ var StreamChat = /*#__PURE__*/function () {
9797
9839
  }, {
9798
9840
  key: "translateMessage",
9799
9841
  value: function () {
9800
- var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(messageId, language) {
9801
- return _regeneratorRuntime.wrap(function _callee52$(_context52) {
9842
+ var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(messageId, language) {
9843
+ return _regeneratorRuntime.wrap(function _callee53$(_context53) {
9802
9844
  while (1) {
9803
- switch (_context52.prev = _context52.next) {
9845
+ switch (_context53.prev = _context53.next) {
9804
9846
  case 0:
9805
- _context52.next = 2;
9847
+ _context53.next = 2;
9806
9848
  return this.post(this.baseURL + "/messages/".concat(messageId, "/translate"), {
9807
9849
  language: language
9808
9850
  });
9809
9851
 
9810
9852
  case 2:
9811
- return _context52.abrupt("return", _context52.sent);
9853
+ return _context53.abrupt("return", _context53.sent);
9812
9854
 
9813
9855
  case 3:
9814
9856
  case "end":
9815
- return _context52.stop();
9857
+ return _context53.stop();
9816
9858
  }
9817
9859
  }
9818
- }, _callee52, this);
9860
+ }, _callee53, this);
9819
9861
  }));
9820
9862
 
9821
9863
  function translateMessage(_x65, _x66) {
@@ -9920,14 +9962,14 @@ var StreamChat = /*#__PURE__*/function () {
9920
9962
  }, {
9921
9963
  key: "updateMessage",
9922
9964
  value: function () {
9923
- var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(message, userId, options) {
9965
+ var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(message, userId, options) {
9924
9966
  var clonedMessage, reservedMessageFields;
9925
- return _regeneratorRuntime.wrap(function _callee53$(_context53) {
9967
+ return _regeneratorRuntime.wrap(function _callee54$(_context54) {
9926
9968
  while (1) {
9927
- switch (_context53.prev = _context53.next) {
9969
+ switch (_context54.prev = _context54.next) {
9928
9970
  case 0:
9929
9971
  if (message.id) {
9930
- _context53.next = 2;
9972
+ _context54.next = 2;
9931
9973
  break;
9932
9974
  }
9933
9975
 
@@ -9964,20 +10006,20 @@ var StreamChat = /*#__PURE__*/function () {
9964
10006
  });
9965
10007
  }
9966
10008
 
9967
- _context53.next = 10;
10009
+ _context54.next = 10;
9968
10010
  return this.post(this.baseURL + "/messages/".concat(message.id), _objectSpread({
9969
10011
  message: clonedMessage
9970
10012
  }, options));
9971
10013
 
9972
10014
  case 10:
9973
- return _context53.abrupt("return", _context53.sent);
10015
+ return _context54.abrupt("return", _context54.sent);
9974
10016
 
9975
10017
  case 11:
9976
10018
  case "end":
9977
- return _context53.stop();
10019
+ return _context54.stop();
9978
10020
  }
9979
10021
  }
9980
- }, _callee53, this);
10022
+ }, _callee54, this);
9981
10023
  }));
9982
10024
 
9983
10025
  function updateMessage(_x67, _x68, _x69) {
@@ -10003,14 +10045,14 @@ var StreamChat = /*#__PURE__*/function () {
10003
10045
  }, {
10004
10046
  key: "partialUpdateMessage",
10005
10047
  value: function () {
10006
- var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(id, partialMessageObject, userId, options) {
10048
+ var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(id, partialMessageObject, userId, options) {
10007
10049
  var user;
10008
- return _regeneratorRuntime.wrap(function _callee54$(_context54) {
10050
+ return _regeneratorRuntime.wrap(function _callee55$(_context55) {
10009
10051
  while (1) {
10010
- switch (_context54.prev = _context54.next) {
10052
+ switch (_context55.prev = _context55.next) {
10011
10053
  case 0:
10012
10054
  if (id) {
10013
- _context54.next = 2;
10055
+ _context55.next = 2;
10014
10056
  break;
10015
10057
  }
10016
10058
 
@@ -10025,20 +10067,20 @@ var StreamChat = /*#__PURE__*/function () {
10025
10067
  };
10026
10068
  }
10027
10069
 
10028
- _context54.next = 6;
10070
+ _context55.next = 6;
10029
10071
  return this.put(this.baseURL + "/messages/".concat(id), _objectSpread(_objectSpread(_objectSpread({}, partialMessageObject), options), {}, {
10030
10072
  user: user
10031
10073
  }));
10032
10074
 
10033
10075
  case 6:
10034
- return _context54.abrupt("return", _context54.sent);
10076
+ return _context55.abrupt("return", _context55.sent);
10035
10077
 
10036
10078
  case 7:
10037
10079
  case "end":
10038
- return _context54.stop();
10080
+ return _context55.stop();
10039
10081
  }
10040
10082
  }
10041
- }, _callee54, this);
10083
+ }, _callee55, this);
10042
10084
  }));
10043
10085
 
10044
10086
  function partialUpdateMessage(_x70, _x71, _x72, _x73) {
@@ -10050,11 +10092,11 @@ var StreamChat = /*#__PURE__*/function () {
10050
10092
  }, {
10051
10093
  key: "deleteMessage",
10052
10094
  value: function () {
10053
- var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(messageID, hardDelete) {
10095
+ var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(messageID, hardDelete) {
10054
10096
  var params;
10055
- return _regeneratorRuntime.wrap(function _callee55$(_context55) {
10097
+ return _regeneratorRuntime.wrap(function _callee56$(_context56) {
10056
10098
  while (1) {
10057
- switch (_context55.prev = _context55.next) {
10099
+ switch (_context56.prev = _context56.next) {
10058
10100
  case 0:
10059
10101
  params = {};
10060
10102
 
@@ -10064,18 +10106,18 @@ var StreamChat = /*#__PURE__*/function () {
10064
10106
  };
10065
10107
  }
10066
10108
 
10067
- _context55.next = 4;
10109
+ _context56.next = 4;
10068
10110
  return this.delete(this.baseURL + "/messages/".concat(messageID), params);
10069
10111
 
10070
10112
  case 4:
10071
- return _context55.abrupt("return", _context55.sent);
10113
+ return _context56.abrupt("return", _context56.sent);
10072
10114
 
10073
10115
  case 5:
10074
10116
  case "end":
10075
- return _context55.stop();
10117
+ return _context56.stop();
10076
10118
  }
10077
10119
  }
10078
- }, _callee55, this);
10120
+ }, _callee56, this);
10079
10121
  }));
10080
10122
 
10081
10123
  function deleteMessage(_x74, _x75) {
@@ -10087,23 +10129,23 @@ var StreamChat = /*#__PURE__*/function () {
10087
10129
  }, {
10088
10130
  key: "getMessage",
10089
10131
  value: function () {
10090
- var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(messageID) {
10091
- return _regeneratorRuntime.wrap(function _callee56$(_context56) {
10132
+ var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(messageID) {
10133
+ return _regeneratorRuntime.wrap(function _callee57$(_context57) {
10092
10134
  while (1) {
10093
- switch (_context56.prev = _context56.next) {
10135
+ switch (_context57.prev = _context57.next) {
10094
10136
  case 0:
10095
- _context56.next = 2;
10137
+ _context57.next = 2;
10096
10138
  return this.get(this.baseURL + "/messages/".concat(encodeURIComponent(messageID)));
10097
10139
 
10098
10140
  case 2:
10099
- return _context56.abrupt("return", _context56.sent);
10141
+ return _context57.abrupt("return", _context57.sent);
10100
10142
 
10101
10143
  case 3:
10102
10144
  case "end":
10103
- return _context56.stop();
10145
+ return _context57.stop();
10104
10146
  }
10105
10147
  }
10106
- }, _callee56, this);
10148
+ }, _callee57, this);
10107
10149
  }));
10108
10150
 
10109
10151
  function getMessage(_x76) {
@@ -10115,7 +10157,7 @@ var StreamChat = /*#__PURE__*/function () {
10115
10157
  }, {
10116
10158
  key: "getUserAgent",
10117
10159
  value: function getUserAgent() {
10118
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.12.4");
10160
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.13.0");
10119
10161
  }
10120
10162
  }, {
10121
10163
  key: "setUserAgent",
@@ -10334,25 +10376,25 @@ var StreamChat = /*#__PURE__*/function () {
10334
10376
  }, {
10335
10377
  key: "sendUserCustomEvent",
10336
10378
  value: function () {
10337
- var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(targetUserID, event) {
10338
- return _regeneratorRuntime.wrap(function _callee57$(_context57) {
10379
+ var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(targetUserID, event) {
10380
+ return _regeneratorRuntime.wrap(function _callee58$(_context58) {
10339
10381
  while (1) {
10340
- switch (_context57.prev = _context57.next) {
10382
+ switch (_context58.prev = _context58.next) {
10341
10383
  case 0:
10342
- _context57.next = 2;
10384
+ _context58.next = 2;
10343
10385
  return this.post("".concat(this.baseURL, "/users/").concat(targetUserID, "/event"), {
10344
10386
  event: event
10345
10387
  });
10346
10388
 
10347
10389
  case 2:
10348
- return _context57.abrupt("return", _context57.sent);
10390
+ return _context58.abrupt("return", _context58.sent);
10349
10391
 
10350
10392
  case 3:
10351
10393
  case "end":
10352
- return _context57.stop();
10394
+ return _context58.stop();
10353
10395
  }
10354
10396
  }
10355
- }, _callee57, this);
10397
+ }, _callee58, this);
10356
10398
  }));
10357
10399
 
10358
10400
  function sendUserCustomEvent(_x77, _x78) {
@@ -10423,29 +10465,29 @@ var StreamChat = /*#__PURE__*/function () {
10423
10465
  }, {
10424
10466
  key: "createSegment",
10425
10467
  value: function () {
10426
- var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(params) {
10468
+ var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(params) {
10427
10469
  var _yield$this$post, segment;
10428
10470
 
10429
- return _regeneratorRuntime.wrap(function _callee58$(_context58) {
10471
+ return _regeneratorRuntime.wrap(function _callee59$(_context59) {
10430
10472
  while (1) {
10431
- switch (_context58.prev = _context58.next) {
10473
+ switch (_context59.prev = _context59.next) {
10432
10474
  case 0:
10433
- _context58.next = 2;
10475
+ _context59.next = 2;
10434
10476
  return this.post(this.baseURL + "/segments", {
10435
10477
  segment: params
10436
10478
  });
10437
10479
 
10438
10480
  case 2:
10439
- _yield$this$post = _context58.sent;
10481
+ _yield$this$post = _context59.sent;
10440
10482
  segment = _yield$this$post.segment;
10441
- return _context58.abrupt("return", segment);
10483
+ return _context59.abrupt("return", segment);
10442
10484
 
10443
10485
  case 5:
10444
10486
  case "end":
10445
- return _context58.stop();
10487
+ return _context59.stop();
10446
10488
  }
10447
10489
  }
10448
- }, _callee58, this);
10490
+ }, _callee59, this);
10449
10491
  }));
10450
10492
 
10451
10493
  function createSegment(_x79) {
@@ -10464,15 +10506,15 @@ var StreamChat = /*#__PURE__*/function () {
10464
10506
  }, {
10465
10507
  key: "querySegments",
10466
10508
  value: function () {
10467
- var _querySegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(filters) {
10509
+ var _querySegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(filters) {
10468
10510
  var options,
10469
- _args59 = arguments;
10470
- return _regeneratorRuntime.wrap(function _callee59$(_context59) {
10511
+ _args60 = arguments;
10512
+ return _regeneratorRuntime.wrap(function _callee60$(_context60) {
10471
10513
  while (1) {
10472
- switch (_context59.prev = _context59.next) {
10514
+ switch (_context60.prev = _context60.next) {
10473
10515
  case 0:
10474
- options = _args59.length > 1 && _args59[1] !== undefined ? _args59[1] : {};
10475
- _context59.next = 3;
10516
+ options = _args60.length > 1 && _args60[1] !== undefined ? _args60[1] : {};
10517
+ _context60.next = 3;
10476
10518
  return this.get(this.baseURL + "/segments", {
10477
10519
  payload: _objectSpread({
10478
10520
  filter_conditions: filters
@@ -10480,14 +10522,14 @@ var StreamChat = /*#__PURE__*/function () {
10480
10522
  });
10481
10523
 
10482
10524
  case 3:
10483
- return _context59.abrupt("return", _context59.sent);
10525
+ return _context60.abrupt("return", _context60.sent);
10484
10526
 
10485
10527
  case 4:
10486
10528
  case "end":
10487
- return _context59.stop();
10529
+ return _context60.stop();
10488
10530
  }
10489
10531
  }
10490
- }, _callee59, this);
10532
+ }, _callee60, this);
10491
10533
  }));
10492
10534
 
10493
10535
  function querySegments(_x80) {
@@ -10508,29 +10550,29 @@ var StreamChat = /*#__PURE__*/function () {
10508
10550
  }, {
10509
10551
  key: "updateSegment",
10510
10552
  value: function () {
10511
- var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(id, params) {
10553
+ var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(id, params) {
10512
10554
  var _yield$this$put, segment;
10513
10555
 
10514
- return _regeneratorRuntime.wrap(function _callee60$(_context60) {
10556
+ return _regeneratorRuntime.wrap(function _callee61$(_context61) {
10515
10557
  while (1) {
10516
- switch (_context60.prev = _context60.next) {
10558
+ switch (_context61.prev = _context61.next) {
10517
10559
  case 0:
10518
- _context60.next = 2;
10560
+ _context61.next = 2;
10519
10561
  return this.put(this.baseURL + "/segments/".concat(id), {
10520
10562
  segment: params
10521
10563
  });
10522
10564
 
10523
10565
  case 2:
10524
- _yield$this$put = _context60.sent;
10566
+ _yield$this$put = _context61.sent;
10525
10567
  segment = _yield$this$put.segment;
10526
- return _context60.abrupt("return", segment);
10568
+ return _context61.abrupt("return", segment);
10527
10569
 
10528
10570
  case 5:
10529
10571
  case "end":
10530
- return _context60.stop();
10572
+ return _context61.stop();
10531
10573
  }
10532
10574
  }
10533
- }, _callee60, this);
10575
+ }, _callee61, this);
10534
10576
  }));
10535
10577
 
10536
10578
  function updateSegment(_x81, _x82) {
@@ -10550,19 +10592,19 @@ var StreamChat = /*#__PURE__*/function () {
10550
10592
  }, {
10551
10593
  key: "deleteSegment",
10552
10594
  value: function () {
10553
- var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(id) {
10554
- return _regeneratorRuntime.wrap(function _callee61$(_context61) {
10595
+ var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(id) {
10596
+ return _regeneratorRuntime.wrap(function _callee62$(_context62) {
10555
10597
  while (1) {
10556
- switch (_context61.prev = _context61.next) {
10598
+ switch (_context62.prev = _context62.next) {
10557
10599
  case 0:
10558
- return _context61.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
10600
+ return _context62.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
10559
10601
 
10560
10602
  case 1:
10561
10603
  case "end":
10562
- return _context61.stop();
10604
+ return _context62.stop();
10563
10605
  }
10564
10606
  }
10565
- }, _callee61, this);
10607
+ }, _callee62, this);
10566
10608
  }));
10567
10609
 
10568
10610
  function deleteSegment(_x83) {
@@ -10582,29 +10624,29 @@ var StreamChat = /*#__PURE__*/function () {
10582
10624
  }, {
10583
10625
  key: "createCampaign",
10584
10626
  value: function () {
10585
- var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(params) {
10627
+ var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(params) {
10586
10628
  var _yield$this$post2, campaign;
10587
10629
 
10588
- return _regeneratorRuntime.wrap(function _callee62$(_context62) {
10630
+ return _regeneratorRuntime.wrap(function _callee63$(_context63) {
10589
10631
  while (1) {
10590
- switch (_context62.prev = _context62.next) {
10632
+ switch (_context63.prev = _context63.next) {
10591
10633
  case 0:
10592
- _context62.next = 2;
10634
+ _context63.next = 2;
10593
10635
  return this.post(this.baseURL + "/campaigns", {
10594
10636
  campaign: params
10595
10637
  });
10596
10638
 
10597
10639
  case 2:
10598
- _yield$this$post2 = _context62.sent;
10640
+ _yield$this$post2 = _context63.sent;
10599
10641
  campaign = _yield$this$post2.campaign;
10600
- return _context62.abrupt("return", campaign);
10642
+ return _context63.abrupt("return", campaign);
10601
10643
 
10602
10644
  case 5:
10603
10645
  case "end":
10604
- return _context62.stop();
10646
+ return _context63.stop();
10605
10647
  }
10606
10648
  }
10607
- }, _callee62, this);
10649
+ }, _callee63, this);
10608
10650
  }));
10609
10651
 
10610
10652
  function createCampaign(_x84) {
@@ -10623,15 +10665,15 @@ var StreamChat = /*#__PURE__*/function () {
10623
10665
  }, {
10624
10666
  key: "queryCampaigns",
10625
10667
  value: function () {
10626
- var _queryCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(filters) {
10668
+ var _queryCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(filters) {
10627
10669
  var options,
10628
- _args63 = arguments;
10629
- return _regeneratorRuntime.wrap(function _callee63$(_context63) {
10670
+ _args64 = arguments;
10671
+ return _regeneratorRuntime.wrap(function _callee64$(_context64) {
10630
10672
  while (1) {
10631
- switch (_context63.prev = _context63.next) {
10673
+ switch (_context64.prev = _context64.next) {
10632
10674
  case 0:
10633
- options = _args63.length > 1 && _args63[1] !== undefined ? _args63[1] : {};
10634
- _context63.next = 3;
10675
+ options = _args64.length > 1 && _args64[1] !== undefined ? _args64[1] : {};
10676
+ _context64.next = 3;
10635
10677
  return this.get(this.baseURL + "/campaigns", {
10636
10678
  payload: _objectSpread({
10637
10679
  filter_conditions: filters
@@ -10639,14 +10681,14 @@ var StreamChat = /*#__PURE__*/function () {
10639
10681
  });
10640
10682
 
10641
10683
  case 3:
10642
- return _context63.abrupt("return", _context63.sent);
10684
+ return _context64.abrupt("return", _context64.sent);
10643
10685
 
10644
10686
  case 4:
10645
10687
  case "end":
10646
- return _context63.stop();
10688
+ return _context64.stop();
10647
10689
  }
10648
10690
  }
10649
- }, _callee63, this);
10691
+ }, _callee64, this);
10650
10692
  }));
10651
10693
 
10652
10694
  function queryCampaigns(_x85) {
@@ -10667,29 +10709,29 @@ var StreamChat = /*#__PURE__*/function () {
10667
10709
  }, {
10668
10710
  key: "updateCampaign",
10669
10711
  value: function () {
10670
- var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(id, params) {
10712
+ var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(id, params) {
10671
10713
  var _yield$this$put2, campaign;
10672
10714
 
10673
- return _regeneratorRuntime.wrap(function _callee64$(_context64) {
10715
+ return _regeneratorRuntime.wrap(function _callee65$(_context65) {
10674
10716
  while (1) {
10675
- switch (_context64.prev = _context64.next) {
10717
+ switch (_context65.prev = _context65.next) {
10676
10718
  case 0:
10677
- _context64.next = 2;
10719
+ _context65.next = 2;
10678
10720
  return this.put(this.baseURL + "/campaigns/".concat(id), {
10679
10721
  campaign: params
10680
10722
  });
10681
10723
 
10682
10724
  case 2:
10683
- _yield$this$put2 = _context64.sent;
10725
+ _yield$this$put2 = _context65.sent;
10684
10726
  campaign = _yield$this$put2.campaign;
10685
- return _context64.abrupt("return", campaign);
10727
+ return _context65.abrupt("return", campaign);
10686
10728
 
10687
10729
  case 5:
10688
10730
  case "end":
10689
- return _context64.stop();
10731
+ return _context65.stop();
10690
10732
  }
10691
10733
  }
10692
- }, _callee64, this);
10734
+ }, _callee65, this);
10693
10735
  }));
10694
10736
 
10695
10737
  function updateCampaign(_x86, _x87) {
@@ -10709,22 +10751,22 @@ var StreamChat = /*#__PURE__*/function () {
10709
10751
  }, {
10710
10752
  key: "deleteCampaign",
10711
10753
  value: function () {
10712
- var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(id) {
10754
+ var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(id) {
10713
10755
  var params,
10714
- _args65 = arguments;
10715
- return _regeneratorRuntime.wrap(function _callee65$(_context65) {
10756
+ _args66 = arguments;
10757
+ return _regeneratorRuntime.wrap(function _callee66$(_context66) {
10716
10758
  while (1) {
10717
- switch (_context65.prev = _context65.next) {
10759
+ switch (_context66.prev = _context66.next) {
10718
10760
  case 0:
10719
- params = _args65.length > 1 && _args65[1] !== undefined ? _args65[1] : {};
10720
- return _context65.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id), params));
10761
+ params = _args66.length > 1 && _args66[1] !== undefined ? _args66[1] : {};
10762
+ return _context66.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id), params));
10721
10763
 
10722
10764
  case 2:
10723
10765
  case "end":
10724
- return _context65.stop();
10766
+ return _context66.stop();
10725
10767
  }
10726
10768
  }
10727
- }, _callee65, this);
10769
+ }, _callee66, this);
10728
10770
  }));
10729
10771
 
10730
10772
  function deleteCampaign(_x88) {
@@ -10745,30 +10787,30 @@ var StreamChat = /*#__PURE__*/function () {
10745
10787
  }, {
10746
10788
  key: "scheduleCampaign",
10747
10789
  value: function () {
10748
- var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(id, params) {
10790
+ var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(id, params) {
10749
10791
  var scheduledFor, _yield$this$patch, campaign;
10750
10792
 
10751
- return _regeneratorRuntime.wrap(function _callee66$(_context66) {
10793
+ return _regeneratorRuntime.wrap(function _callee67$(_context67) {
10752
10794
  while (1) {
10753
- switch (_context66.prev = _context66.next) {
10795
+ switch (_context67.prev = _context67.next) {
10754
10796
  case 0:
10755
10797
  scheduledFor = params.scheduledFor;
10756
- _context66.next = 3;
10798
+ _context67.next = 3;
10757
10799
  return this.patch(this.baseURL + "/campaigns/".concat(id, "/schedule"), {
10758
10800
  scheduled_for: scheduledFor
10759
10801
  });
10760
10802
 
10761
10803
  case 3:
10762
- _yield$this$patch = _context66.sent;
10804
+ _yield$this$patch = _context67.sent;
10763
10805
  campaign = _yield$this$patch.campaign;
10764
- return _context66.abrupt("return", campaign);
10806
+ return _context67.abrupt("return", campaign);
10765
10807
 
10766
10808
  case 6:
10767
10809
  case "end":
10768
- return _context66.stop();
10810
+ return _context67.stop();
10769
10811
  }
10770
10812
  }
10771
- }, _callee66, this);
10813
+ }, _callee67, this);
10772
10814
  }));
10773
10815
 
10774
10816
  function scheduleCampaign(_x89, _x90) {
@@ -10788,27 +10830,27 @@ var StreamChat = /*#__PURE__*/function () {
10788
10830
  }, {
10789
10831
  key: "stopCampaign",
10790
10832
  value: function () {
10791
- var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(id) {
10833
+ var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(id) {
10792
10834
  var _yield$this$patch2, campaign;
10793
10835
 
10794
- return _regeneratorRuntime.wrap(function _callee67$(_context67) {
10836
+ return _regeneratorRuntime.wrap(function _callee68$(_context68) {
10795
10837
  while (1) {
10796
- switch (_context67.prev = _context67.next) {
10838
+ switch (_context68.prev = _context68.next) {
10797
10839
  case 0:
10798
- _context67.next = 2;
10840
+ _context68.next = 2;
10799
10841
  return this.patch(this.baseURL + "/campaigns/".concat(id, "/stop"));
10800
10842
 
10801
10843
  case 2:
10802
- _yield$this$patch2 = _context67.sent;
10844
+ _yield$this$patch2 = _context68.sent;
10803
10845
  campaign = _yield$this$patch2.campaign;
10804
- return _context67.abrupt("return", campaign);
10846
+ return _context68.abrupt("return", campaign);
10805
10847
 
10806
10848
  case 5:
10807
10849
  case "end":
10808
- return _context67.stop();
10850
+ return _context68.stop();
10809
10851
  }
10810
10852
  }
10811
- }, _callee67, this);
10853
+ }, _callee68, this);
10812
10854
  }));
10813
10855
 
10814
10856
  function stopCampaign(_x91) {
@@ -10828,27 +10870,27 @@ var StreamChat = /*#__PURE__*/function () {
10828
10870
  }, {
10829
10871
  key: "resumeCampaign",
10830
10872
  value: function () {
10831
- var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(id) {
10873
+ var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(id) {
10832
10874
  var _yield$this$patch3, campaign;
10833
10875
 
10834
- return _regeneratorRuntime.wrap(function _callee68$(_context68) {
10876
+ return _regeneratorRuntime.wrap(function _callee69$(_context69) {
10835
10877
  while (1) {
10836
- switch (_context68.prev = _context68.next) {
10878
+ switch (_context69.prev = _context69.next) {
10837
10879
  case 0:
10838
- _context68.next = 2;
10880
+ _context69.next = 2;
10839
10881
  return this.patch(this.baseURL + "/campaigns/".concat(id, "/resume"));
10840
10882
 
10841
10883
  case 2:
10842
- _yield$this$patch3 = _context68.sent;
10884
+ _yield$this$patch3 = _context69.sent;
10843
10885
  campaign = _yield$this$patch3.campaign;
10844
- return _context68.abrupt("return", campaign);
10886
+ return _context69.abrupt("return", campaign);
10845
10887
 
10846
10888
  case 5:
10847
10889
  case "end":
10848
- return _context68.stop();
10890
+ return _context69.stop();
10849
10891
  }
10850
10892
  }
10851
- }, _callee68, this);
10893
+ }, _callee69, this);
10852
10894
  }));
10853
10895
 
10854
10896
  function resumeCampaign(_x92) {
@@ -10869,27 +10911,27 @@ var StreamChat = /*#__PURE__*/function () {
10869
10911
  }, {
10870
10912
  key: "testCampaign",
10871
10913
  value: function () {
10872
- var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(id, params) {
10914
+ var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(id, params) {
10873
10915
  var users;
10874
- return _regeneratorRuntime.wrap(function _callee69$(_context69) {
10916
+ return _regeneratorRuntime.wrap(function _callee70$(_context70) {
10875
10917
  while (1) {
10876
- switch (_context69.prev = _context69.next) {
10918
+ switch (_context70.prev = _context70.next) {
10877
10919
  case 0:
10878
10920
  users = params.users;
10879
- _context69.next = 3;
10921
+ _context70.next = 3;
10880
10922
  return this.post(this.baseURL + "/campaigns/".concat(id, "/test"), {
10881
10923
  users: users
10882
10924
  });
10883
10925
 
10884
10926
  case 3:
10885
- return _context69.abrupt("return", _context69.sent);
10927
+ return _context70.abrupt("return", _context70.sent);
10886
10928
 
10887
10929
  case 4:
10888
10930
  case "end":
10889
- return _context69.stop();
10931
+ return _context70.stop();
10890
10932
  }
10891
10933
  }
10892
- }, _callee69, this);
10934
+ }, _callee70, this);
10893
10935
  }));
10894
10936
 
10895
10937
  function testCampaign(_x93, _x94) {
@@ -10908,15 +10950,15 @@ var StreamChat = /*#__PURE__*/function () {
10908
10950
  }, {
10909
10951
  key: "queryRecipients",
10910
10952
  value: function () {
10911
- var _queryRecipients = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(filters) {
10953
+ var _queryRecipients = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(filters) {
10912
10954
  var options,
10913
- _args70 = arguments;
10914
- return _regeneratorRuntime.wrap(function _callee70$(_context70) {
10955
+ _args71 = arguments;
10956
+ return _regeneratorRuntime.wrap(function _callee71$(_context71) {
10915
10957
  while (1) {
10916
- switch (_context70.prev = _context70.next) {
10958
+ switch (_context71.prev = _context71.next) {
10917
10959
  case 0:
10918
- options = _args70.length > 1 && _args70[1] !== undefined ? _args70[1] : {};
10919
- _context70.next = 3;
10960
+ options = _args71.length > 1 && _args71[1] !== undefined ? _args71[1] : {};
10961
+ _context71.next = 3;
10920
10962
  return this.get(this.baseURL + "/recipients", {
10921
10963
  payload: _objectSpread({
10922
10964
  filter_conditions: filters
@@ -10924,14 +10966,14 @@ var StreamChat = /*#__PURE__*/function () {
10924
10966
  });
10925
10967
 
10926
10968
  case 3:
10927
- return _context70.abrupt("return", _context70.sent);
10969
+ return _context71.abrupt("return", _context71.sent);
10928
10970
 
10929
10971
  case 4:
10930
10972
  case "end":
10931
- return _context70.stop();
10973
+ return _context71.stop();
10932
10974
  }
10933
10975
  }
10934
- }, _callee70, this);
10976
+ }, _callee71, this);
10935
10977
  }));
10936
10978
 
10937
10979
  function queryRecipients(_x95) {
@@ -10950,21 +10992,21 @@ var StreamChat = /*#__PURE__*/function () {
10950
10992
  }, {
10951
10993
  key: "enrichURL",
10952
10994
  value: function () {
10953
- var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(url) {
10954
- return _regeneratorRuntime.wrap(function _callee71$(_context71) {
10995
+ var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(url) {
10996
+ return _regeneratorRuntime.wrap(function _callee72$(_context72) {
10955
10997
  while (1) {
10956
- switch (_context71.prev = _context71.next) {
10998
+ switch (_context72.prev = _context72.next) {
10957
10999
  case 0:
10958
- return _context71.abrupt("return", this.get(this.baseURL + "/og", {
11000
+ return _context72.abrupt("return", this.get(this.baseURL + "/og", {
10959
11001
  url: url
10960
11002
  }));
10961
11003
 
10962
11004
  case 1:
10963
11005
  case "end":
10964
- return _context71.stop();
11006
+ return _context72.stop();
10965
11007
  }
10966
11008
  }
10967
- }, _callee71, this);
11009
+ }, _callee72, this);
10968
11010
  }));
10969
11011
 
10970
11012
  function enrichURL(_x96) {
@@ -10984,19 +11026,19 @@ var StreamChat = /*#__PURE__*/function () {
10984
11026
  }, {
10985
11027
  key: "getTask",
10986
11028
  value: function () {
10987
- var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(id) {
10988
- return _regeneratorRuntime.wrap(function _callee72$(_context72) {
11029
+ var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(id) {
11030
+ return _regeneratorRuntime.wrap(function _callee73$(_context73) {
10989
11031
  while (1) {
10990
- switch (_context72.prev = _context72.next) {
11032
+ switch (_context73.prev = _context73.next) {
10991
11033
  case 0:
10992
- return _context72.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
11034
+ return _context73.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
10993
11035
 
10994
11036
  case 1:
10995
11037
  case "end":
10996
- return _context72.stop();
11038
+ return _context73.stop();
10997
11039
  }
10998
11040
  }
10999
- }, _callee72, this);
11041
+ }, _callee73, this);
11000
11042
  }));
11001
11043
 
11002
11044
  function getTask(_x97) {
@@ -11017,28 +11059,28 @@ var StreamChat = /*#__PURE__*/function () {
11017
11059
  }, {
11018
11060
  key: "deleteChannels",
11019
11061
  value: function () {
11020
- var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(cids) {
11062
+ var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(cids) {
11021
11063
  var options,
11022
- _args73 = arguments;
11023
- return _regeneratorRuntime.wrap(function _callee73$(_context73) {
11064
+ _args74 = arguments;
11065
+ return _regeneratorRuntime.wrap(function _callee74$(_context74) {
11024
11066
  while (1) {
11025
- switch (_context73.prev = _context73.next) {
11067
+ switch (_context74.prev = _context74.next) {
11026
11068
  case 0:
11027
- options = _args73.length > 1 && _args73[1] !== undefined ? _args73[1] : {};
11028
- _context73.next = 3;
11069
+ options = _args74.length > 1 && _args74[1] !== undefined ? _args74[1] : {};
11070
+ _context74.next = 3;
11029
11071
  return this.post(this.baseURL + "/channels/delete", _objectSpread({
11030
11072
  cids: cids
11031
11073
  }, options));
11032
11074
 
11033
11075
  case 3:
11034
- return _context73.abrupt("return", _context73.sent);
11076
+ return _context74.abrupt("return", _context74.sent);
11035
11077
 
11036
11078
  case 4:
11037
11079
  case "end":
11038
- return _context73.stop();
11080
+ return _context74.stop();
11039
11081
  }
11040
11082
  }
11041
- }, _callee73, this);
11083
+ }, _callee74, this);
11042
11084
  }));
11043
11085
 
11044
11086
  function deleteChannels(_x98) {
@@ -11059,13 +11101,13 @@ var StreamChat = /*#__PURE__*/function () {
11059
11101
  }, {
11060
11102
  key: "deleteUsers",
11061
11103
  value: function () {
11062
- var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(user_ids, options) {
11063
- return _regeneratorRuntime.wrap(function _callee74$(_context74) {
11104
+ var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(user_ids, options) {
11105
+ return _regeneratorRuntime.wrap(function _callee75$(_context75) {
11064
11106
  while (1) {
11065
- switch (_context74.prev = _context74.next) {
11107
+ switch (_context75.prev = _context75.next) {
11066
11108
  case 0:
11067
11109
  if (!((options === null || options === void 0 ? void 0 : options.user) !== 'soft' && (options === null || options === void 0 ? void 0 : options.user) !== 'hard')) {
11068
- _context74.next = 2;
11110
+ _context75.next = 2;
11069
11111
  break;
11070
11112
  }
11071
11113
 
@@ -11073,7 +11115,7 @@ var StreamChat = /*#__PURE__*/function () {
11073
11115
 
11074
11116
  case 2:
11075
11117
  if (!(options.messages !== undefined && options.messages !== 'soft' && options.messages !== 'hard')) {
11076
- _context74.next = 4;
11118
+ _context75.next = 4;
11077
11119
  break;
11078
11120
  }
11079
11121
 
@@ -11081,27 +11123,27 @@ var StreamChat = /*#__PURE__*/function () {
11081
11123
 
11082
11124
  case 4:
11083
11125
  if (!(options.conversations !== undefined && options.conversations !== 'soft' && options.conversations !== 'hard')) {
11084
- _context74.next = 6;
11126
+ _context75.next = 6;
11085
11127
  break;
11086
11128
  }
11087
11129
 
11088
11130
  throw new Error('Invalid delete user options. conversations must be one of [soft hard]');
11089
11131
 
11090
11132
  case 6:
11091
- _context74.next = 8;
11133
+ _context75.next = 8;
11092
11134
  return this.post(this.baseURL + "/users/delete", _objectSpread({
11093
11135
  user_ids: user_ids
11094
11136
  }, options));
11095
11137
 
11096
11138
  case 8:
11097
- return _context74.abrupt("return", _context74.sent);
11139
+ return _context75.abrupt("return", _context75.sent);
11098
11140
 
11099
11141
  case 9:
11100
11142
  case "end":
11101
- return _context74.stop();
11143
+ return _context75.stop();
11102
11144
  }
11103
11145
  }
11104
- }, _callee74, this);
11146
+ }, _callee75, this);
11105
11147
  }));
11106
11148
 
11107
11149
  function deleteUsers(_x99, _x100) {
@@ -11125,25 +11167,25 @@ var StreamChat = /*#__PURE__*/function () {
11125
11167
  }, {
11126
11168
  key: "_createImportURL",
11127
11169
  value: function () {
11128
- var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(filename) {
11129
- return _regeneratorRuntime.wrap(function _callee75$(_context75) {
11170
+ var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(filename) {
11171
+ return _regeneratorRuntime.wrap(function _callee76$(_context76) {
11130
11172
  while (1) {
11131
- switch (_context75.prev = _context75.next) {
11173
+ switch (_context76.prev = _context76.next) {
11132
11174
  case 0:
11133
- _context75.next = 2;
11175
+ _context76.next = 2;
11134
11176
  return this.post(this.baseURL + "/import_urls", {
11135
11177
  filename: filename
11136
11178
  });
11137
11179
 
11138
11180
  case 2:
11139
- return _context75.abrupt("return", _context75.sent);
11181
+ return _context76.abrupt("return", _context76.sent);
11140
11182
 
11141
11183
  case 3:
11142
11184
  case "end":
11143
- return _context75.stop();
11185
+ return _context76.stop();
11144
11186
  }
11145
11187
  }
11146
- }, _callee75, this);
11188
+ }, _callee76, this);
11147
11189
  }));
11148
11190
 
11149
11191
  function _createImportURL(_x101) {
@@ -11168,30 +11210,30 @@ var StreamChat = /*#__PURE__*/function () {
11168
11210
  }, {
11169
11211
  key: "_createImport",
11170
11212
  value: function () {
11171
- var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(path) {
11213
+ var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77(path) {
11172
11214
  var options,
11173
- _args76 = arguments;
11174
- return _regeneratorRuntime.wrap(function _callee76$(_context76) {
11215
+ _args77 = arguments;
11216
+ return _regeneratorRuntime.wrap(function _callee77$(_context77) {
11175
11217
  while (1) {
11176
- switch (_context76.prev = _context76.next) {
11218
+ switch (_context77.prev = _context77.next) {
11177
11219
  case 0:
11178
- options = _args76.length > 1 && _args76[1] !== undefined ? _args76[1] : {
11220
+ options = _args77.length > 1 && _args77[1] !== undefined ? _args77[1] : {
11179
11221
  mode: 'upsert'
11180
11222
  };
11181
- _context76.next = 3;
11223
+ _context77.next = 3;
11182
11224
  return this.post(this.baseURL + "/imports", _objectSpread({
11183
11225
  path: path
11184
11226
  }, options));
11185
11227
 
11186
11228
  case 3:
11187
- return _context76.abrupt("return", _context76.sent);
11229
+ return _context77.abrupt("return", _context77.sent);
11188
11230
 
11189
11231
  case 4:
11190
11232
  case "end":
11191
- return _context76.stop();
11233
+ return _context77.stop();
11192
11234
  }
11193
11235
  }
11194
- }, _callee76, this);
11236
+ }, _callee77, this);
11195
11237
  }));
11196
11238
 
11197
11239
  function _createImport(_x102) {
@@ -11216,23 +11258,23 @@ var StreamChat = /*#__PURE__*/function () {
11216
11258
  }, {
11217
11259
  key: "_getImport",
11218
11260
  value: function () {
11219
- var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77(id) {
11220
- return _regeneratorRuntime.wrap(function _callee77$(_context77) {
11261
+ var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee78(id) {
11262
+ return _regeneratorRuntime.wrap(function _callee78$(_context78) {
11221
11263
  while (1) {
11222
- switch (_context77.prev = _context77.next) {
11264
+ switch (_context78.prev = _context78.next) {
11223
11265
  case 0:
11224
- _context77.next = 2;
11266
+ _context78.next = 2;
11225
11267
  return this.get(this.baseURL + "/imports/".concat(id));
11226
11268
 
11227
11269
  case 2:
11228
- return _context77.abrupt("return", _context77.sent);
11270
+ return _context78.abrupt("return", _context78.sent);
11229
11271
 
11230
11272
  case 3:
11231
11273
  case "end":
11232
- return _context77.stop();
11274
+ return _context78.stop();
11233
11275
  }
11234
11276
  }
11235
- }, _callee77, this);
11277
+ }, _callee78, this);
11236
11278
  }));
11237
11279
 
11238
11280
  function _getImport(_x103) {
@@ -11257,23 +11299,23 @@ var StreamChat = /*#__PURE__*/function () {
11257
11299
  }, {
11258
11300
  key: "_listImports",
11259
11301
  value: function () {
11260
- var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee78(options) {
11261
- return _regeneratorRuntime.wrap(function _callee78$(_context78) {
11302
+ var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(options) {
11303
+ return _regeneratorRuntime.wrap(function _callee79$(_context79) {
11262
11304
  while (1) {
11263
- switch (_context78.prev = _context78.next) {
11305
+ switch (_context79.prev = _context79.next) {
11264
11306
  case 0:
11265
- _context78.next = 2;
11307
+ _context79.next = 2;
11266
11308
  return this.get(this.baseURL + "/imports", options);
11267
11309
 
11268
11310
  case 2:
11269
- return _context78.abrupt("return", _context78.sent);
11311
+ return _context79.abrupt("return", _context79.sent);
11270
11312
 
11271
11313
  case 3:
11272
11314
  case "end":
11273
- return _context78.stop();
11315
+ return _context79.stop();
11274
11316
  }
11275
11317
  }
11276
- }, _callee78, this);
11318
+ }, _callee79, this);
11277
11319
  }));
11278
11320
 
11279
11321
  function _listImports(_x104) {
@@ -11295,25 +11337,25 @@ var StreamChat = /*#__PURE__*/function () {
11295
11337
  }, {
11296
11338
  key: "upsertPushProvider",
11297
11339
  value: function () {
11298
- var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(pushProvider) {
11299
- return _regeneratorRuntime.wrap(function _callee79$(_context79) {
11340
+ var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee80(pushProvider) {
11341
+ return _regeneratorRuntime.wrap(function _callee80$(_context80) {
11300
11342
  while (1) {
11301
- switch (_context79.prev = _context79.next) {
11343
+ switch (_context80.prev = _context80.next) {
11302
11344
  case 0:
11303
- _context79.next = 2;
11345
+ _context80.next = 2;
11304
11346
  return this.post(this.baseURL + "/push_providers", {
11305
11347
  push_provider: pushProvider
11306
11348
  });
11307
11349
 
11308
11350
  case 2:
11309
- return _context79.abrupt("return", _context79.sent);
11351
+ return _context80.abrupt("return", _context80.sent);
11310
11352
 
11311
11353
  case 3:
11312
11354
  case "end":
11313
- return _context79.stop();
11355
+ return _context80.stop();
11314
11356
  }
11315
11357
  }
11316
- }, _callee79, this);
11358
+ }, _callee80, this);
11317
11359
  }));
11318
11360
 
11319
11361
  function upsertPushProvider(_x105) {
@@ -11335,25 +11377,25 @@ var StreamChat = /*#__PURE__*/function () {
11335
11377
  }, {
11336
11378
  key: "deletePushProvider",
11337
11379
  value: function () {
11338
- var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee80(_ref10) {
11380
+ var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee81(_ref10) {
11339
11381
  var type, name;
11340
- return _regeneratorRuntime.wrap(function _callee80$(_context80) {
11382
+ return _regeneratorRuntime.wrap(function _callee81$(_context81) {
11341
11383
  while (1) {
11342
- switch (_context80.prev = _context80.next) {
11384
+ switch (_context81.prev = _context81.next) {
11343
11385
  case 0:
11344
11386
  type = _ref10.type, name = _ref10.name;
11345
- _context80.next = 3;
11387
+ _context81.next = 3;
11346
11388
  return this.delete(this.baseURL + "/push_providers/".concat(type, "/").concat(name));
11347
11389
 
11348
11390
  case 3:
11349
- return _context80.abrupt("return", _context80.sent);
11391
+ return _context81.abrupt("return", _context81.sent);
11350
11392
 
11351
11393
  case 4:
11352
11394
  case "end":
11353
- return _context80.stop();
11395
+ return _context81.stop();
11354
11396
  }
11355
11397
  }
11356
- }, _callee80, this);
11398
+ }, _callee81, this);
11357
11399
  }));
11358
11400
 
11359
11401
  function deletePushProvider(_x106) {
@@ -11373,23 +11415,23 @@ var StreamChat = /*#__PURE__*/function () {
11373
11415
  }, {
11374
11416
  key: "listPushProviders",
11375
11417
  value: function () {
11376
- var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee81() {
11377
- return _regeneratorRuntime.wrap(function _callee81$(_context81) {
11418
+ var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee82() {
11419
+ return _regeneratorRuntime.wrap(function _callee82$(_context82) {
11378
11420
  while (1) {
11379
- switch (_context81.prev = _context81.next) {
11421
+ switch (_context82.prev = _context82.next) {
11380
11422
  case 0:
11381
- _context81.next = 2;
11423
+ _context82.next = 2;
11382
11424
  return this.get(this.baseURL + "/push_providers");
11383
11425
 
11384
11426
  case 2:
11385
- return _context81.abrupt("return", _context81.sent);
11427
+ return _context82.abrupt("return", _context82.sent);
11386
11428
 
11387
11429
  case 3:
11388
11430
  case "end":
11389
- return _context81.stop();
11431
+ return _context82.stop();
11390
11432
  }
11391
11433
  }
11392
- }, _callee81, this);
11434
+ }, _callee82, this);
11393
11435
  }));
11394
11436
 
11395
11437
  function listPushProviders() {
@@ -11417,23 +11459,23 @@ var StreamChat = /*#__PURE__*/function () {
11417
11459
  }, {
11418
11460
  key: "commitMessage",
11419
11461
  value: function () {
11420
- var _commitMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee82(id) {
11421
- return _regeneratorRuntime.wrap(function _callee82$(_context82) {
11462
+ var _commitMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee83(id) {
11463
+ return _regeneratorRuntime.wrap(function _callee83$(_context83) {
11422
11464
  while (1) {
11423
- switch (_context82.prev = _context82.next) {
11465
+ switch (_context83.prev = _context83.next) {
11424
11466
  case 0:
11425
- _context82.next = 2;
11467
+ _context83.next = 2;
11426
11468
  return this.post(this.baseURL + "/messages/".concat(id, "/commit"));
11427
11469
 
11428
11470
  case 2:
11429
- return _context82.abrupt("return", _context82.sent);
11471
+ return _context83.abrupt("return", _context83.sent);
11430
11472
 
11431
11473
  case 3:
11432
11474
  case "end":
11433
- return _context82.stop();
11475
+ return _context83.stop();
11434
11476
  }
11435
11477
  }
11436
- }, _callee82, this);
11478
+ }, _callee83, this);
11437
11479
  }));
11438
11480
 
11439
11481
  function commitMessage(_x107) {