stream-chat 5.0.1 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -88,7 +88,7 @@ var decodeBase64 = function decodeBase64(s) {
88
88
 
89
89
  var https = null;
90
90
 
91
- function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
91
+ function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
92
92
 
93
93
  function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$7(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
94
94
 
@@ -311,6 +311,12 @@ var ChannelState = /*#__PURE__*/function () {
311
311
  for (var i = 0; i < newMessages.length; i += 1) {
312
312
  var _this$_channel;
313
313
 
314
+ var isFromShadowBannedUser = newMessages[i].shadowed;
315
+
316
+ if (isFromShadowBannedUser) {
317
+ continue;
318
+ }
319
+
314
320
  var message = this.formatMessage(newMessages[i]);
315
321
 
316
322
  if (message.user && (_this$_channel = this._channel) !== null && _this$_channel !== void 0 && _this$_channel.cid) {
@@ -700,7 +706,7 @@ var ChannelState = /*#__PURE__*/function () {
700
706
  return ChannelState;
701
707
  }();
702
708
 
703
- function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
709
+ function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
704
710
 
705
711
  function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
706
712
 
@@ -708,6 +714,7 @@ var EVENT_MAP = {
708
714
  'channel.created': true,
709
715
  'channel.deleted': true,
710
716
  'channel.hidden': true,
717
+ 'channel.kicked': true,
711
718
  'channel.muted': true,
712
719
  'channel.truncated': true,
713
720
  'channel.unmuted': true,
@@ -757,7 +764,7 @@ var isValidEventType = function isValidEventType(eventType) {
757
764
  return IS_VALID_EVENT_MAP_TYPE[eventType] || false;
758
765
  };
759
766
 
760
- function _createForOfIteratorHelper$3(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function (_e) { function e(_x) { return _e.apply(this, arguments); } e.toString = function () { return _e.toString(); }; return e; }(function (e) { throw e; }), f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function (_e2) { function e(_x2) { return _e2.apply(this, arguments); } e.toString = function () { return _e2.toString(); }; return e; }(function (e) { didErr = true; err = e; }), f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
767
+ function _createForOfIteratorHelper$3(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function (_e) { function e(_x) { return _e.apply(this, arguments); } e.toString = function () { return _e.toString(); }; return e; }(function (e) { throw e; }), f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function (_e2) { function e(_x2) { return _e2.apply(this, arguments); } e.toString = function () { return _e2.toString(); }; return e; }(function (e) { didErr = true; err = e; }), f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
761
768
 
762
769
  function _unsupportedIterableToArray$3(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$3(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen); }
763
770
 
@@ -803,6 +810,10 @@ function isFileWebAPI(uri) {
803
810
  return typeof window !== 'undefined' && 'File' in window && uri instanceof File;
804
811
  }
805
812
 
813
+ function isBlobWebAPI(uri) {
814
+ return typeof window !== 'undefined' && 'Blob' in window && uri instanceof Blob;
815
+ }
816
+
806
817
  function isOwnUser(user) {
807
818
  return (user === null || user === void 0 ? void 0 : user.total_unread_count) !== undefined;
808
819
  }
@@ -822,7 +833,7 @@ function isOwnUserBaseProperty(property) {
822
833
  function addFileToFormData(uri, name, contentType) {
823
834
  var data = new FormData();
824
835
 
825
- if (isReadableStream(uri) || isBuffer(uri) || isFileWebAPI(uri)) {
836
+ if (isReadableStream(uri) || isBuffer(uri) || isFileWebAPI(uri) || isBlobWebAPI(uri)) {
826
837
  if (name) data.append('file', uri, name);else data.append('file', uri);
827
838
  } else {
828
839
  data.append('file', {
@@ -983,13 +994,13 @@ function removeConnectionEventListeners(cb) {
983
994
  }
984
995
  }
985
996
 
986
- function _createForOfIteratorHelper$2(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
997
+ function _createForOfIteratorHelper$2(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
987
998
 
988
999
  function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }
989
1000
 
990
1001
  function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
991
1002
 
992
- function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
1003
+ function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
993
1004
 
994
1005
  function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$5(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
995
1006
 
@@ -2574,6 +2585,50 @@ var Channel = /*#__PURE__*/function () {
2574
2585
 
2575
2586
  return getReplies;
2576
2587
  }()
2588
+ /**
2589
+ * getPinnedMessages - List list pinned messages of the channel
2590
+ *
2591
+ * @param {PinnedMessagePaginationOptions & { user?: UserResponse<UserType>; user_id?: string }} options Pagination params, ie {limit:10, id_lte: 10}
2592
+ * @param {PinnedMessagesSort} sort defines sorting direction of pinned messages
2593
+ *
2594
+ * @return {Promise<GetRepliesAPIResponse<AttachmentType, ChannelType, CommandType, MessageType, ReactionType, UserType>>} A response with a list of messages
2595
+ */
2596
+
2597
+ }, {
2598
+ key: "getPinnedMessages",
2599
+ value: function () {
2600
+ var _getPinnedMessages = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(options) {
2601
+ var sort,
2602
+ _args30 = arguments;
2603
+ return _regeneratorRuntime.wrap(function _callee30$(_context30) {
2604
+ while (1) {
2605
+ switch (_context30.prev = _context30.next) {
2606
+ case 0:
2607
+ sort = _args30.length > 1 && _args30[1] !== undefined ? _args30[1] : [];
2608
+ _context30.next = 3;
2609
+ return this.getClient().get(this.getClient().baseURL + "/channels/".concat(this.type, "/").concat(this.id, "/pinned_messages"), {
2610
+ payload: _objectSpread$5(_objectSpread$5({}, options), {}, {
2611
+ sort: normalizeQuerySort(sort)
2612
+ })
2613
+ });
2614
+
2615
+ case 3:
2616
+ return _context30.abrupt("return", _context30.sent);
2617
+
2618
+ case 4:
2619
+ case "end":
2620
+ return _context30.stop();
2621
+ }
2622
+ }
2623
+ }, _callee30, this);
2624
+ }));
2625
+
2626
+ function getPinnedMessages(_x29) {
2627
+ return _getPinnedMessages.apply(this, arguments);
2628
+ }
2629
+
2630
+ return getPinnedMessages;
2631
+ }()
2577
2632
  /**
2578
2633
  * getReactions - List the reactions, supports pagination
2579
2634
  *
@@ -2701,13 +2756,13 @@ var Channel = /*#__PURE__*/function () {
2701
2756
  * @return {Promise<ChannelAPIResponse<AttachmentType, ChannelType, CommandType, MessageType, ReactionType, UserType>>} Returns a query response
2702
2757
  */
2703
2758
  function () {
2704
- var _query = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(options) {
2759
+ var _query = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(options) {
2705
2760
  var queryURL, state, membersStr, tempChannelCid;
2706
- return _regeneratorRuntime.wrap(function _callee30$(_context30) {
2761
+ return _regeneratorRuntime.wrap(function _callee31$(_context31) {
2707
2762
  while (1) {
2708
- switch (_context30.prev = _context30.next) {
2763
+ switch (_context31.prev = _context31.next) {
2709
2764
  case 0:
2710
- _context30.next = 2;
2765
+ _context31.next = 2;
2711
2766
  return this.getClient().wsPromise;
2712
2767
 
2713
2768
  case 2:
@@ -2717,14 +2772,14 @@ var Channel = /*#__PURE__*/function () {
2717
2772
  queryURL += "/".concat(this.id);
2718
2773
  }
2719
2774
 
2720
- _context30.next = 6;
2775
+ _context31.next = 6;
2721
2776
  return this.getClient().post(queryURL + '/query', _objectSpread$5({
2722
2777
  data: this._data,
2723
2778
  state: true
2724
2779
  }, options));
2725
2780
 
2726
2781
  case 6:
2727
- state = _context30.sent;
2782
+ state = _context31.sent;
2728
2783
 
2729
2784
  // update the channel id if it was missing
2730
2785
  if (!this.id) {
@@ -2754,17 +2809,17 @@ var Channel = /*#__PURE__*/function () {
2754
2809
 
2755
2810
  this._initializeState(state);
2756
2811
 
2757
- return _context30.abrupt("return", state);
2812
+ return _context31.abrupt("return", state);
2758
2813
 
2759
2814
  case 11:
2760
2815
  case "end":
2761
- return _context30.stop();
2816
+ return _context31.stop();
2762
2817
  }
2763
2818
  }
2764
- }, _callee30, this);
2819
+ }, _callee31, this);
2765
2820
  }));
2766
2821
 
2767
- function query(_x29) {
2822
+ function query(_x30) {
2768
2823
  return _query.apply(this, arguments);
2769
2824
  }
2770
2825
 
@@ -2781,31 +2836,31 @@ var Channel = /*#__PURE__*/function () {
2781
2836
  }, {
2782
2837
  key: "banUser",
2783
2838
  value: function () {
2784
- var _banUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(targetUserID, options) {
2785
- return _regeneratorRuntime.wrap(function _callee31$(_context31) {
2839
+ var _banUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(targetUserID, options) {
2840
+ return _regeneratorRuntime.wrap(function _callee32$(_context32) {
2786
2841
  while (1) {
2787
- switch (_context31.prev = _context31.next) {
2842
+ switch (_context32.prev = _context32.next) {
2788
2843
  case 0:
2789
2844
  this._checkInitialized();
2790
2845
 
2791
- _context31.next = 3;
2846
+ _context32.next = 3;
2792
2847
  return this.getClient().banUser(targetUserID, _objectSpread$5(_objectSpread$5({}, options), {}, {
2793
2848
  type: this.type,
2794
2849
  id: this.id
2795
2850
  }));
2796
2851
 
2797
2852
  case 3:
2798
- return _context31.abrupt("return", _context31.sent);
2853
+ return _context32.abrupt("return", _context32.sent);
2799
2854
 
2800
2855
  case 4:
2801
2856
  case "end":
2802
- return _context31.stop();
2857
+ return _context32.stop();
2803
2858
  }
2804
2859
  }
2805
- }, _callee31, this);
2860
+ }, _callee32, this);
2806
2861
  }));
2807
2862
 
2808
- function banUser(_x30, _x31) {
2863
+ function banUser(_x31, _x32) {
2809
2864
  return _banUser.apply(this, arguments);
2810
2865
  }
2811
2866
 
@@ -2823,34 +2878,34 @@ var Channel = /*#__PURE__*/function () {
2823
2878
  }, {
2824
2879
  key: "hide",
2825
2880
  value: function () {
2826
- var _hide = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32() {
2881
+ var _hide = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33() {
2827
2882
  var userId,
2828
2883
  clearHistory,
2829
- _args32 = arguments;
2830
- return _regeneratorRuntime.wrap(function _callee32$(_context32) {
2884
+ _args33 = arguments;
2885
+ return _regeneratorRuntime.wrap(function _callee33$(_context33) {
2831
2886
  while (1) {
2832
- switch (_context32.prev = _context32.next) {
2887
+ switch (_context33.prev = _context33.next) {
2833
2888
  case 0:
2834
- userId = _args32.length > 0 && _args32[0] !== undefined ? _args32[0] : null;
2835
- clearHistory = _args32.length > 1 && _args32[1] !== undefined ? _args32[1] : false;
2889
+ userId = _args33.length > 0 && _args33[0] !== undefined ? _args33[0] : null;
2890
+ clearHistory = _args33.length > 1 && _args33[1] !== undefined ? _args33[1] : false;
2836
2891
 
2837
2892
  this._checkInitialized();
2838
2893
 
2839
- _context32.next = 5;
2894
+ _context33.next = 5;
2840
2895
  return this.getClient().post("".concat(this._channelURL(), "/hide"), {
2841
2896
  user_id: userId,
2842
2897
  clear_history: clearHistory
2843
2898
  });
2844
2899
 
2845
2900
  case 5:
2846
- return _context32.abrupt("return", _context32.sent);
2901
+ return _context33.abrupt("return", _context33.sent);
2847
2902
 
2848
2903
  case 6:
2849
2904
  case "end":
2850
- return _context32.stop();
2905
+ return _context33.stop();
2851
2906
  }
2852
2907
  }
2853
- }, _callee32, this);
2908
+ }, _callee33, this);
2854
2909
  }));
2855
2910
 
2856
2911
  function hide() {
@@ -2869,31 +2924,31 @@ var Channel = /*#__PURE__*/function () {
2869
2924
  }, {
2870
2925
  key: "show",
2871
2926
  value: function () {
2872
- var _show = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33() {
2927
+ var _show = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34() {
2873
2928
  var userId,
2874
- _args33 = arguments;
2875
- return _regeneratorRuntime.wrap(function _callee33$(_context33) {
2929
+ _args34 = arguments;
2930
+ return _regeneratorRuntime.wrap(function _callee34$(_context34) {
2876
2931
  while (1) {
2877
- switch (_context33.prev = _context33.next) {
2932
+ switch (_context34.prev = _context34.next) {
2878
2933
  case 0:
2879
- userId = _args33.length > 0 && _args33[0] !== undefined ? _args33[0] : null;
2934
+ userId = _args34.length > 0 && _args34[0] !== undefined ? _args34[0] : null;
2880
2935
 
2881
2936
  this._checkInitialized();
2882
2937
 
2883
- _context33.next = 4;
2938
+ _context34.next = 4;
2884
2939
  return this.getClient().post("".concat(this._channelURL(), "/show"), {
2885
2940
  user_id: userId
2886
2941
  });
2887
2942
 
2888
2943
  case 4:
2889
- return _context33.abrupt("return", _context33.sent);
2944
+ return _context34.abrupt("return", _context34.sent);
2890
2945
 
2891
2946
  case 5:
2892
2947
  case "end":
2893
- return _context33.stop();
2948
+ return _context34.stop();
2894
2949
  }
2895
2950
  }
2896
- }, _callee33, this);
2951
+ }, _callee34, this);
2897
2952
  }));
2898
2953
 
2899
2954
  function show() {
@@ -2912,31 +2967,31 @@ var Channel = /*#__PURE__*/function () {
2912
2967
  }, {
2913
2968
  key: "unbanUser",
2914
2969
  value: function () {
2915
- var _unbanUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(targetUserID) {
2916
- return _regeneratorRuntime.wrap(function _callee34$(_context34) {
2970
+ var _unbanUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(targetUserID) {
2971
+ return _regeneratorRuntime.wrap(function _callee35$(_context35) {
2917
2972
  while (1) {
2918
- switch (_context34.prev = _context34.next) {
2973
+ switch (_context35.prev = _context35.next) {
2919
2974
  case 0:
2920
2975
  this._checkInitialized();
2921
2976
 
2922
- _context34.next = 3;
2977
+ _context35.next = 3;
2923
2978
  return this.getClient().unbanUser(targetUserID, {
2924
2979
  type: this.type,
2925
2980
  id: this.id
2926
2981
  });
2927
2982
 
2928
2983
  case 3:
2929
- return _context34.abrupt("return", _context34.sent);
2984
+ return _context35.abrupt("return", _context35.sent);
2930
2985
 
2931
2986
  case 4:
2932
2987
  case "end":
2933
- return _context34.stop();
2988
+ return _context35.stop();
2934
2989
  }
2935
2990
  }
2936
- }, _callee34, this);
2991
+ }, _callee35, this);
2937
2992
  }));
2938
2993
 
2939
- function unbanUser(_x32) {
2994
+ function unbanUser(_x33) {
2940
2995
  return _unbanUser.apply(this, arguments);
2941
2996
  }
2942
2997
 
@@ -2953,31 +3008,31 @@ var Channel = /*#__PURE__*/function () {
2953
3008
  }, {
2954
3009
  key: "shadowBan",
2955
3010
  value: function () {
2956
- var _shadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(targetUserID, options) {
2957
- return _regeneratorRuntime.wrap(function _callee35$(_context35) {
3011
+ var _shadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(targetUserID, options) {
3012
+ return _regeneratorRuntime.wrap(function _callee36$(_context36) {
2958
3013
  while (1) {
2959
- switch (_context35.prev = _context35.next) {
3014
+ switch (_context36.prev = _context36.next) {
2960
3015
  case 0:
2961
3016
  this._checkInitialized();
2962
3017
 
2963
- _context35.next = 3;
3018
+ _context36.next = 3;
2964
3019
  return this.getClient().shadowBan(targetUserID, _objectSpread$5(_objectSpread$5({}, options), {}, {
2965
3020
  type: this.type,
2966
3021
  id: this.id
2967
3022
  }));
2968
3023
 
2969
3024
  case 3:
2970
- return _context35.abrupt("return", _context35.sent);
3025
+ return _context36.abrupt("return", _context36.sent);
2971
3026
 
2972
3027
  case 4:
2973
3028
  case "end":
2974
- return _context35.stop();
3029
+ return _context36.stop();
2975
3030
  }
2976
3031
  }
2977
- }, _callee35, this);
3032
+ }, _callee36, this);
2978
3033
  }));
2979
3034
 
2980
- function shadowBan(_x33, _x34) {
3035
+ function shadowBan(_x34, _x35) {
2981
3036
  return _shadowBan.apply(this, arguments);
2982
3037
  }
2983
3038
 
@@ -2993,31 +3048,31 @@ var Channel = /*#__PURE__*/function () {
2993
3048
  }, {
2994
3049
  key: "removeShadowBan",
2995
3050
  value: function () {
2996
- var _removeShadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(targetUserID) {
2997
- return _regeneratorRuntime.wrap(function _callee36$(_context36) {
3051
+ var _removeShadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(targetUserID) {
3052
+ return _regeneratorRuntime.wrap(function _callee37$(_context37) {
2998
3053
  while (1) {
2999
- switch (_context36.prev = _context36.next) {
3054
+ switch (_context37.prev = _context37.next) {
3000
3055
  case 0:
3001
3056
  this._checkInitialized();
3002
3057
 
3003
- _context36.next = 3;
3058
+ _context37.next = 3;
3004
3059
  return this.getClient().removeShadowBan(targetUserID, {
3005
3060
  type: this.type,
3006
3061
  id: this.id
3007
3062
  });
3008
3063
 
3009
3064
  case 3:
3010
- return _context36.abrupt("return", _context36.sent);
3065
+ return _context37.abrupt("return", _context37.sent);
3011
3066
 
3012
3067
  case 4:
3013
3068
  case "end":
3014
- return _context36.stop();
3069
+ return _context37.stop();
3015
3070
  }
3016
3071
  }
3017
- }, _callee36, this);
3072
+ }, _callee37, this);
3018
3073
  }));
3019
3074
 
3020
- function removeShadowBan(_x35) {
3075
+ function removeShadowBan(_x36) {
3021
3076
  return _removeShadowBan.apply(this, arguments);
3022
3077
  }
3023
3078
 
@@ -3219,7 +3274,16 @@ var Channel = /*#__PURE__*/function () {
3219
3274
 
3220
3275
  case 'channel.truncated':
3221
3276
  channelState.clearMessages();
3222
- channelState.unreadCount = 0;
3277
+ channelState.unreadCount = 0; // system messages don't increment unread counts
3278
+
3279
+ if (event.message) {
3280
+ channelState.addMessageSorted(event.message);
3281
+
3282
+ if (event.message.pinned) {
3283
+ channelState.addPinnedMessage(event.message);
3284
+ }
3285
+ }
3286
+
3223
3287
  break;
3224
3288
 
3225
3289
  case 'member.added':
@@ -3239,7 +3303,12 @@ var Channel = /*#__PURE__*/function () {
3239
3303
 
3240
3304
  case 'channel.updated':
3241
3305
  if (event.channel) {
3242
- channel.data = event.channel;
3306
+ var _event$channel$hidden, _event$channel, _channel$data, _event$channel$own_ca, _event$channel2, _channel$data2;
3307
+
3308
+ channel.data = _objectSpread$5(_objectSpread$5({}, event.channel), {}, {
3309
+ hidden: (_event$channel$hidden = (_event$channel = event.channel) === null || _event$channel === void 0 ? void 0 : _event$channel.hidden) !== null && _event$channel$hidden !== void 0 ? _event$channel$hidden : (_channel$data = channel.data) === null || _channel$data === void 0 ? void 0 : _channel$data.hidden,
3310
+ own_capabilities: (_event$channel$own_ca = (_event$channel2 = event.channel) === null || _event$channel2 === void 0 ? void 0 : _event$channel2.own_capabilities) !== null && _event$channel$own_ca !== void 0 ? _event$channel$own_ca : (_channel$data2 = channel.data) === null || _channel$data2 === void 0 ? void 0 : _channel$data2.own_capabilities
3311
+ });
3243
3312
  }
3244
3313
 
3245
3314
  break;
@@ -3426,7 +3495,7 @@ var Channel = /*#__PURE__*/function () {
3426
3495
  return Channel;
3427
3496
  }();
3428
3497
 
3429
- function _createForOfIteratorHelper$1(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
3498
+ function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
3430
3499
 
3431
3500
  function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
3432
3501
 
@@ -3501,7 +3570,7 @@ var ClientState = /*#__PURE__*/function () {
3501
3570
  return ClientState;
3502
3571
  }();
3503
3572
 
3504
- function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
3573
+ function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
3505
3574
 
3506
3575
  function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
3507
3576
  var InsightMetrics = function InsightMetrics() {
@@ -3615,7 +3684,7 @@ function buildWsSuccessAfterFailureInsight(connection) {
3615
3684
  return buildWsBaseInsight(connection);
3616
3685
  }
3617
3686
 
3618
- function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
3687
+ function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
3619
3688
 
3620
3689
  function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
3621
3690
 
@@ -4537,7 +4606,7 @@ var jwt = null;
4537
4606
 
4538
4607
  var crypto$1 = null;
4539
4608
 
4540
- function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
4609
+ function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
4541
4610
 
4542
4611
  function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
4543
4612
 
@@ -4946,7 +5015,7 @@ function isWSFailure(err) {
4946
5015
  }
4947
5016
  }
4948
5017
 
4949
- function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
5018
+ function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
4950
5019
 
4951
5020
  function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
4952
5021
  var ConnectionState;
@@ -5223,7 +5292,7 @@ var WSConnectionFallback = /*#__PURE__*/function () {
5223
5292
  })));
5224
5293
 
5225
5294
  _defineProperty(this, "isHealthy", function () {
5226
- return _this.connectionID && _this.state === ConnectionState.Connected;
5295
+ return !!_this.connectionID && _this.state === ConnectionState.Connected;
5227
5296
  });
5228
5297
 
5229
5298
  _defineProperty(this, "disconnect", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
@@ -5322,13 +5391,15 @@ var WSConnectionFallback = /*#__PURE__*/function () {
5322
5391
  return WSConnectionFallback;
5323
5392
  }();
5324
5393
 
5325
- function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
5394
+ var _excluded = ["created_at", "updated_at", "last_active", "online"];
5395
+
5396
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
5326
5397
 
5327
5398
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5328
5399
 
5329
5400
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
5330
5401
 
5331
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
5402
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
5332
5403
 
5333
5404
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
5334
5405
 
@@ -6633,7 +6704,7 @@ var StreamChat = /*#__PURE__*/function () {
6633
6704
  case 11:
6634
6705
  this.anonymous = false; // eslint-disable-next-line @typescript-eslint/no-unused-vars
6635
6706
 
6636
- _response$user = response.user, _response$user.created_at, _response$user.updated_at, _response$user.last_active, _response$user.online, guestUser = _objectWithoutProperties(_response$user, ["created_at", "updated_at", "last_active", "online"]);
6707
+ _response$user = response.user, _response$user.created_at, _response$user.updated_at, _response$user.last_active, _response$user.online, guestUser = _objectWithoutProperties(_response$user, _excluded);
6637
6708
  _context14.next = 15;
6638
6709
  return this.connectUser(guestUser, response.access_token);
6639
6710
 
@@ -8461,6 +8532,101 @@ var StreamChat = /*#__PURE__*/function () {
8461
8532
 
8462
8533
  return unflagUser;
8463
8534
  }()
8535
+ /**
8536
+ * _queryFlagReports - Query flag reports.
8537
+ *
8538
+ * Note: Do not use this.
8539
+ * It is present for internal usage only.
8540
+ * This function can, and will, break and/or be removed at any point in time.
8541
+ *
8542
+ * @param {FlagReportsFilters} filterConditions MongoDB style filter conditions
8543
+ * @param {FlagReportsPaginationOptions} options Option object, {limit: 10, offset:0}
8544
+ *
8545
+ * @return {Promise<FlagReportsResponse<ChannelType, CommandType, UserType>>} Flag Reports Response
8546
+ */
8547
+
8548
+ }, {
8549
+ key: "_queryFlagReports",
8550
+ value: function () {
8551
+ var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42() {
8552
+ var filterConditions,
8553
+ options,
8554
+ _args42 = arguments;
8555
+ return _regeneratorRuntime.wrap(function _callee42$(_context42) {
8556
+ while (1) {
8557
+ switch (_context42.prev = _context42.next) {
8558
+ case 0:
8559
+ filterConditions = _args42.length > 0 && _args42[0] !== undefined ? _args42[0] : {};
8560
+ options = _args42.length > 1 && _args42[1] !== undefined ? _args42[1] : {};
8561
+ _context42.next = 4;
8562
+ return this.post(this.baseURL + '/moderation/reports', _objectSpread({
8563
+ filter_conditions: filterConditions
8564
+ }, options));
8565
+
8566
+ case 4:
8567
+ return _context42.abrupt("return", _context42.sent);
8568
+
8569
+ case 5:
8570
+ case "end":
8571
+ return _context42.stop();
8572
+ }
8573
+ }
8574
+ }, _callee42, this);
8575
+ }));
8576
+
8577
+ function _queryFlagReports() {
8578
+ return _queryFlagReports2.apply(this, arguments);
8579
+ }
8580
+
8581
+ return _queryFlagReports;
8582
+ }()
8583
+ /**
8584
+ * _reviewFlagReport - review flag report
8585
+ *
8586
+ * Note: Do not use this.
8587
+ * It is present for internal usage only.
8588
+ * This function can, and will, break and/or be removed at any point in time.
8589
+ *
8590
+ * @param {string} [id] flag report to review
8591
+ * @param {string} [reviewResult] flag report review result
8592
+ * @param {string} [options.user_id] currentUserID, only used with serverside auth
8593
+ * @param {string} [options.review_details] custom information about review result
8594
+ * @returns {Promise<ReviewFlagReportResponse>>}
8595
+ */
8596
+
8597
+ }, {
8598
+ key: "_reviewFlagReport",
8599
+ value: function () {
8600
+ var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(id, reviewResult) {
8601
+ var options,
8602
+ _args43 = arguments;
8603
+ return _regeneratorRuntime.wrap(function _callee43$(_context43) {
8604
+ while (1) {
8605
+ switch (_context43.prev = _context43.next) {
8606
+ case 0:
8607
+ options = _args43.length > 2 && _args43[2] !== undefined ? _args43[2] : {};
8608
+ _context43.next = 3;
8609
+ return this.patch(this.baseURL + "/moderation/reports/".concat(id), _objectSpread({
8610
+ review_result: reviewResult
8611
+ }, options));
8612
+
8613
+ case 3:
8614
+ return _context43.abrupt("return", _context43.sent);
8615
+
8616
+ case 4:
8617
+ case "end":
8618
+ return _context43.stop();
8619
+ }
8620
+ }
8621
+ }, _callee43, this);
8622
+ }));
8623
+
8624
+ function _reviewFlagReport(_x54, _x55) {
8625
+ return _reviewFlagReport2.apply(this, arguments);
8626
+ }
8627
+
8628
+ return _reviewFlagReport;
8629
+ }()
8464
8630
  /**
8465
8631
  * @deprecated use markChannelsRead instead
8466
8632
  *
@@ -8482,23 +8648,23 @@ var StreamChat = /*#__PURE__*/function () {
8482
8648
  * @return {Promise<APIResponse>}
8483
8649
  */
8484
8650
  function () {
8485
- var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42() {
8651
+ var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44() {
8486
8652
  var data,
8487
- _args42 = arguments;
8488
- return _regeneratorRuntime.wrap(function _callee42$(_context42) {
8653
+ _args44 = arguments;
8654
+ return _regeneratorRuntime.wrap(function _callee44$(_context44) {
8489
8655
  while (1) {
8490
- switch (_context42.prev = _context42.next) {
8656
+ switch (_context44.prev = _context44.next) {
8491
8657
  case 0:
8492
- data = _args42.length > 0 && _args42[0] !== undefined ? _args42[0] : {};
8493
- _context42.next = 3;
8658
+ data = _args44.length > 0 && _args44[0] !== undefined ? _args44[0] : {};
8659
+ _context44.next = 3;
8494
8660
  return this.post(this.baseURL + '/channels/read', _objectSpread({}, data));
8495
8661
 
8496
8662
  case 3:
8497
8663
  case "end":
8498
- return _context42.stop();
8664
+ return _context44.stop();
8499
8665
  }
8500
8666
  }
8501
- }, _callee42, this);
8667
+ }, _callee44, this);
8502
8668
  }));
8503
8669
 
8504
8670
  function markChannelsRead() {
@@ -8573,28 +8739,28 @@ var StreamChat = /*#__PURE__*/function () {
8573
8739
  }, {
8574
8740
  key: "translateMessage",
8575
8741
  value: function () {
8576
- var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(messageId, language) {
8577
- return _regeneratorRuntime.wrap(function _callee43$(_context43) {
8742
+ var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(messageId, language) {
8743
+ return _regeneratorRuntime.wrap(function _callee45$(_context45) {
8578
8744
  while (1) {
8579
- switch (_context43.prev = _context43.next) {
8745
+ switch (_context45.prev = _context45.next) {
8580
8746
  case 0:
8581
- _context43.next = 2;
8747
+ _context45.next = 2;
8582
8748
  return this.post(this.baseURL + "/messages/".concat(messageId, "/translate"), {
8583
8749
  language: language
8584
8750
  });
8585
8751
 
8586
8752
  case 2:
8587
- return _context43.abrupt("return", _context43.sent);
8753
+ return _context45.abrupt("return", _context45.sent);
8588
8754
 
8589
8755
  case 3:
8590
8756
  case "end":
8591
- return _context43.stop();
8757
+ return _context45.stop();
8592
8758
  }
8593
8759
  }
8594
- }, _callee43, this);
8760
+ }, _callee45, this);
8595
8761
  }));
8596
8762
 
8597
- function translateMessage(_x54, _x55) {
8763
+ function translateMessage(_x56, _x57) {
8598
8764
  return _translateMessage.apply(this, arguments);
8599
8765
  }
8600
8766
 
@@ -8608,7 +8774,7 @@ var StreamChat = /*#__PURE__*/function () {
8608
8774
  }, {
8609
8775
  key: "_normalizeExpiration",
8610
8776
  value: function _normalizeExpiration(timeoutOrExpirationDate) {
8611
- var pinExpires;
8777
+ var pinExpires = null;
8612
8778
 
8613
8779
  if (typeof timeoutOrExpirationDate === 'number') {
8614
8780
  var now = new Date();
@@ -8649,20 +8815,22 @@ var StreamChat = /*#__PURE__*/function () {
8649
8815
  * pinMessage - pins the message
8650
8816
  * @param {string | { id: string }} messageOrMessageId message object or message id
8651
8817
  * @param {undefined|null|number|string|Date} timeoutOrExpirationDate expiration date or timeout. Use number type to set timeout in seconds, string or Date to set exact expiration date
8652
- * @param {string | { id: string }} [userId]
8818
+ * @param {undefined|string | { id: string }} [pinnedBy] who will appear as a user who pinned a message. Only for server-side use. Provide `undefined` when pinning message client-side
8819
+ * @param {undefined|number|string|Date} pinnedAt date when message should be pinned. It affects the order of pinned messages. Use negative number to set relative time in the past, string or Date to set exact date of pin
8653
8820
  */
8654
8821
 
8655
8822
  }, {
8656
8823
  key: "pinMessage",
8657
- value: function pinMessage(messageOrMessageId, timeoutOrExpirationDate, userId) {
8824
+ value: function pinMessage(messageOrMessageId, timeoutOrExpirationDate, pinnedBy, pinnedAt) {
8658
8825
  var messageId = this._validateAndGetMessageId(messageOrMessageId, 'Please specify the message id when calling unpinMessage');
8659
8826
 
8660
8827
  return this.partialUpdateMessage(messageId, {
8661
8828
  set: {
8662
8829
  pinned: true,
8663
- pin_expires: this._normalizeExpiration(timeoutOrExpirationDate)
8830
+ pin_expires: this._normalizeExpiration(timeoutOrExpirationDate),
8831
+ pinned_at: this._normalizeExpiration(pinnedAt)
8664
8832
  }
8665
- }, userId);
8833
+ }, pinnedBy);
8666
8834
  }
8667
8835
  /**
8668
8836
  * unpinMessage - unpins the message that was previously pinned
@@ -8694,14 +8862,14 @@ var StreamChat = /*#__PURE__*/function () {
8694
8862
  }, {
8695
8863
  key: "updateMessage",
8696
8864
  value: function () {
8697
- var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(message, userId, options) {
8865
+ var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(message, userId, options) {
8698
8866
  var clonedMessage, reservedMessageFields;
8699
- return _regeneratorRuntime.wrap(function _callee44$(_context44) {
8867
+ return _regeneratorRuntime.wrap(function _callee46$(_context46) {
8700
8868
  while (1) {
8701
- switch (_context44.prev = _context44.next) {
8869
+ switch (_context46.prev = _context46.next) {
8702
8870
  case 0:
8703
8871
  if (message.id) {
8704
- _context44.next = 2;
8872
+ _context46.next = 2;
8705
8873
  break;
8706
8874
  }
8707
8875
 
@@ -8738,23 +8906,23 @@ var StreamChat = /*#__PURE__*/function () {
8738
8906
  });
8739
8907
  }
8740
8908
 
8741
- _context44.next = 10;
8909
+ _context46.next = 10;
8742
8910
  return this.post(this.baseURL + "/messages/".concat(message.id), _objectSpread({
8743
8911
  message: clonedMessage
8744
8912
  }, options));
8745
8913
 
8746
8914
  case 10:
8747
- return _context44.abrupt("return", _context44.sent);
8915
+ return _context46.abrupt("return", _context46.sent);
8748
8916
 
8749
8917
  case 11:
8750
8918
  case "end":
8751
- return _context44.stop();
8919
+ return _context46.stop();
8752
8920
  }
8753
8921
  }
8754
- }, _callee44, this);
8922
+ }, _callee46, this);
8755
8923
  }));
8756
8924
 
8757
- function updateMessage(_x56, _x57, _x58) {
8925
+ function updateMessage(_x58, _x59, _x60) {
8758
8926
  return _updateMessage.apply(this, arguments);
8759
8927
  }
8760
8928
 
@@ -8777,14 +8945,14 @@ var StreamChat = /*#__PURE__*/function () {
8777
8945
  }, {
8778
8946
  key: "partialUpdateMessage",
8779
8947
  value: function () {
8780
- var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(id, partialMessageObject, userId, options) {
8948
+ var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(id, partialMessageObject, userId, options) {
8781
8949
  var user;
8782
- return _regeneratorRuntime.wrap(function _callee45$(_context45) {
8950
+ return _regeneratorRuntime.wrap(function _callee47$(_context47) {
8783
8951
  while (1) {
8784
- switch (_context45.prev = _context45.next) {
8952
+ switch (_context47.prev = _context47.next) {
8785
8953
  case 0:
8786
8954
  if (id) {
8787
- _context45.next = 2;
8955
+ _context47.next = 2;
8788
8956
  break;
8789
8957
  }
8790
8958
 
@@ -8799,23 +8967,23 @@ var StreamChat = /*#__PURE__*/function () {
8799
8967
  };
8800
8968
  }
8801
8969
 
8802
- _context45.next = 6;
8970
+ _context47.next = 6;
8803
8971
  return this.put(this.baseURL + "/messages/".concat(id), _objectSpread(_objectSpread(_objectSpread({}, partialMessageObject), options), {}, {
8804
8972
  user: user
8805
8973
  }));
8806
8974
 
8807
8975
  case 6:
8808
- return _context45.abrupt("return", _context45.sent);
8976
+ return _context47.abrupt("return", _context47.sent);
8809
8977
 
8810
8978
  case 7:
8811
8979
  case "end":
8812
- return _context45.stop();
8980
+ return _context47.stop();
8813
8981
  }
8814
8982
  }
8815
- }, _callee45, this);
8983
+ }, _callee47, this);
8816
8984
  }));
8817
8985
 
8818
- function partialUpdateMessage(_x59, _x60, _x61, _x62) {
8986
+ function partialUpdateMessage(_x61, _x62, _x63, _x64) {
8819
8987
  return _partialUpdateMessage.apply(this, arguments);
8820
8988
  }
8821
8989
 
@@ -8824,11 +8992,11 @@ var StreamChat = /*#__PURE__*/function () {
8824
8992
  }, {
8825
8993
  key: "deleteMessage",
8826
8994
  value: function () {
8827
- var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(messageID, hardDelete) {
8995
+ var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(messageID, hardDelete) {
8828
8996
  var params;
8829
- return _regeneratorRuntime.wrap(function _callee46$(_context46) {
8997
+ return _regeneratorRuntime.wrap(function _callee48$(_context48) {
8830
8998
  while (1) {
8831
- switch (_context46.prev = _context46.next) {
8999
+ switch (_context48.prev = _context48.next) {
8832
9000
  case 0:
8833
9001
  params = {};
8834
9002
 
@@ -8838,21 +9006,21 @@ var StreamChat = /*#__PURE__*/function () {
8838
9006
  };
8839
9007
  }
8840
9008
 
8841
- _context46.next = 4;
9009
+ _context48.next = 4;
8842
9010
  return this.delete(this.baseURL + "/messages/".concat(messageID), params);
8843
9011
 
8844
9012
  case 4:
8845
- return _context46.abrupt("return", _context46.sent);
9013
+ return _context48.abrupt("return", _context48.sent);
8846
9014
 
8847
9015
  case 5:
8848
9016
  case "end":
8849
- return _context46.stop();
9017
+ return _context48.stop();
8850
9018
  }
8851
9019
  }
8852
- }, _callee46, this);
9020
+ }, _callee48, this);
8853
9021
  }));
8854
9022
 
8855
- function deleteMessage(_x63, _x64) {
9023
+ function deleteMessage(_x65, _x66) {
8856
9024
  return _deleteMessage.apply(this, arguments);
8857
9025
  }
8858
9026
 
@@ -8861,26 +9029,26 @@ var StreamChat = /*#__PURE__*/function () {
8861
9029
  }, {
8862
9030
  key: "getMessage",
8863
9031
  value: function () {
8864
- var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(messageID) {
8865
- return _regeneratorRuntime.wrap(function _callee47$(_context47) {
9032
+ var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(messageID) {
9033
+ return _regeneratorRuntime.wrap(function _callee49$(_context49) {
8866
9034
  while (1) {
8867
- switch (_context47.prev = _context47.next) {
9035
+ switch (_context49.prev = _context49.next) {
8868
9036
  case 0:
8869
- _context47.next = 2;
9037
+ _context49.next = 2;
8870
9038
  return this.get(this.baseURL + "/messages/".concat(messageID));
8871
9039
 
8872
9040
  case 2:
8873
- return _context47.abrupt("return", _context47.sent);
9041
+ return _context49.abrupt("return", _context49.sent);
8874
9042
 
8875
9043
  case 3:
8876
9044
  case "end":
8877
- return _context47.stop();
9045
+ return _context49.stop();
8878
9046
  }
8879
9047
  }
8880
- }, _callee47, this);
9048
+ }, _callee49, this);
8881
9049
  }));
8882
9050
 
8883
- function getMessage(_x65) {
9051
+ function getMessage(_x67) {
8884
9052
  return _getMessage.apply(this, arguments);
8885
9053
  }
8886
9054
 
@@ -8889,7 +9057,7 @@ var StreamChat = /*#__PURE__*/function () {
8889
9057
  }, {
8890
9058
  key: "getUserAgent",
8891
9059
  value: function getUserAgent() {
8892
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "5.0.1");
9060
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "5.2.0");
8893
9061
  }
8894
9062
  }, {
8895
9063
  key: "setUserAgent",
@@ -9084,28 +9252,28 @@ var StreamChat = /*#__PURE__*/function () {
9084
9252
  }, {
9085
9253
  key: "sendUserCustomEvent",
9086
9254
  value: function () {
9087
- var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(targetUserID, event) {
9088
- return _regeneratorRuntime.wrap(function _callee48$(_context48) {
9255
+ var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(targetUserID, event) {
9256
+ return _regeneratorRuntime.wrap(function _callee50$(_context50) {
9089
9257
  while (1) {
9090
- switch (_context48.prev = _context48.next) {
9258
+ switch (_context50.prev = _context50.next) {
9091
9259
  case 0:
9092
- _context48.next = 2;
9260
+ _context50.next = 2;
9093
9261
  return this.post("".concat(this.baseURL, "/users/").concat(targetUserID, "/event"), {
9094
9262
  event: event
9095
9263
  });
9096
9264
 
9097
9265
  case 2:
9098
- return _context48.abrupt("return", _context48.sent);
9266
+ return _context50.abrupt("return", _context50.sent);
9099
9267
 
9100
9268
  case 3:
9101
9269
  case "end":
9102
- return _context48.stop();
9270
+ return _context50.stop();
9103
9271
  }
9104
9272
  }
9105
- }, _callee48, this);
9273
+ }, _callee50, this);
9106
9274
  }));
9107
9275
 
9108
- function sendUserCustomEvent(_x66, _x67) {
9276
+ function sendUserCustomEvent(_x68, _x69) {
9109
9277
  return _sendUserCustomEvent.apply(this, arguments);
9110
9278
  }
9111
9279
 
@@ -9147,6 +9315,11 @@ var StreamChat = /*#__PURE__*/function () {
9147
9315
 
9148
9316
  return this.post("".concat(this.baseURL, "/export_channels"), payload);
9149
9317
  }
9318
+ }, {
9319
+ key: "exportUsers",
9320
+ value: function exportUsers(request) {
9321
+ return this.post("".concat(this.baseURL, "/export/users"), request);
9322
+ }
9150
9323
  }, {
9151
9324
  key: "exportChannel",
9152
9325
  value: function exportChannel(request, options) {
@@ -9168,32 +9341,32 @@ var StreamChat = /*#__PURE__*/function () {
9168
9341
  }, {
9169
9342
  key: "createSegment",
9170
9343
  value: function () {
9171
- var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(params) {
9344
+ var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(params) {
9172
9345
  var _yield$this$post, segment;
9173
9346
 
9174
- return _regeneratorRuntime.wrap(function _callee49$(_context49) {
9347
+ return _regeneratorRuntime.wrap(function _callee51$(_context51) {
9175
9348
  while (1) {
9176
- switch (_context49.prev = _context49.next) {
9349
+ switch (_context51.prev = _context51.next) {
9177
9350
  case 0:
9178
- _context49.next = 2;
9351
+ _context51.next = 2;
9179
9352
  return this.post(this.baseURL + "/segments", {
9180
9353
  segment: params
9181
9354
  });
9182
9355
 
9183
9356
  case 2:
9184
- _yield$this$post = _context49.sent;
9357
+ _yield$this$post = _context51.sent;
9185
9358
  segment = _yield$this$post.segment;
9186
- return _context49.abrupt("return", segment);
9359
+ return _context51.abrupt("return", segment);
9187
9360
 
9188
9361
  case 5:
9189
9362
  case "end":
9190
- return _context49.stop();
9363
+ return _context51.stop();
9191
9364
  }
9192
9365
  }
9193
- }, _callee49, this);
9366
+ }, _callee51, this);
9194
9367
  }));
9195
9368
 
9196
- function createSegment(_x68) {
9369
+ function createSegment(_x70) {
9197
9370
  return _createSegment.apply(this, arguments);
9198
9371
  }
9199
9372
 
@@ -9210,30 +9383,30 @@ var StreamChat = /*#__PURE__*/function () {
9210
9383
  }, {
9211
9384
  key: "getSegment",
9212
9385
  value: function () {
9213
- var _getSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(id) {
9386
+ var _getSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(id) {
9214
9387
  var _yield$this$get, segment;
9215
9388
 
9216
- return _regeneratorRuntime.wrap(function _callee50$(_context50) {
9389
+ return _regeneratorRuntime.wrap(function _callee52$(_context52) {
9217
9390
  while (1) {
9218
- switch (_context50.prev = _context50.next) {
9391
+ switch (_context52.prev = _context52.next) {
9219
9392
  case 0:
9220
- _context50.next = 2;
9393
+ _context52.next = 2;
9221
9394
  return this.get(this.baseURL + "/segments/".concat(id));
9222
9395
 
9223
9396
  case 2:
9224
- _yield$this$get = _context50.sent;
9397
+ _yield$this$get = _context52.sent;
9225
9398
  segment = _yield$this$get.segment;
9226
- return _context50.abrupt("return", segment);
9399
+ return _context52.abrupt("return", segment);
9227
9400
 
9228
9401
  case 5:
9229
9402
  case "end":
9230
- return _context50.stop();
9403
+ return _context52.stop();
9231
9404
  }
9232
9405
  }
9233
- }, _callee50, this);
9406
+ }, _callee52, this);
9234
9407
  }));
9235
9408
 
9236
- function getSegment(_x69) {
9409
+ function getSegment(_x71) {
9237
9410
  return _getSegment.apply(this, arguments);
9238
9411
  }
9239
9412
 
@@ -9249,30 +9422,30 @@ var StreamChat = /*#__PURE__*/function () {
9249
9422
  }, {
9250
9423
  key: "listSegments",
9251
9424
  value: function () {
9252
- var _listSegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(options) {
9425
+ var _listSegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(options) {
9253
9426
  var _yield$this$get2, segments;
9254
9427
 
9255
- return _regeneratorRuntime.wrap(function _callee51$(_context51) {
9428
+ return _regeneratorRuntime.wrap(function _callee53$(_context53) {
9256
9429
  while (1) {
9257
- switch (_context51.prev = _context51.next) {
9430
+ switch (_context53.prev = _context53.next) {
9258
9431
  case 0:
9259
- _context51.next = 2;
9432
+ _context53.next = 2;
9260
9433
  return this.get(this.baseURL + "/segments", options);
9261
9434
 
9262
9435
  case 2:
9263
- _yield$this$get2 = _context51.sent;
9436
+ _yield$this$get2 = _context53.sent;
9264
9437
  segments = _yield$this$get2.segments;
9265
- return _context51.abrupt("return", segments);
9438
+ return _context53.abrupt("return", segments);
9266
9439
 
9267
9440
  case 5:
9268
9441
  case "end":
9269
- return _context51.stop();
9442
+ return _context53.stop();
9270
9443
  }
9271
9444
  }
9272
- }, _callee51, this);
9445
+ }, _callee53, this);
9273
9446
  }));
9274
9447
 
9275
- function listSegments(_x70) {
9448
+ function listSegments(_x72) {
9276
9449
  return _listSegments.apply(this, arguments);
9277
9450
  }
9278
9451
 
@@ -9290,32 +9463,32 @@ var StreamChat = /*#__PURE__*/function () {
9290
9463
  }, {
9291
9464
  key: "updateSegment",
9292
9465
  value: function () {
9293
- var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(id, params) {
9466
+ var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(id, params) {
9294
9467
  var _yield$this$put, segment;
9295
9468
 
9296
- return _regeneratorRuntime.wrap(function _callee52$(_context52) {
9469
+ return _regeneratorRuntime.wrap(function _callee54$(_context54) {
9297
9470
  while (1) {
9298
- switch (_context52.prev = _context52.next) {
9471
+ switch (_context54.prev = _context54.next) {
9299
9472
  case 0:
9300
- _context52.next = 2;
9473
+ _context54.next = 2;
9301
9474
  return this.put(this.baseURL + "/segments/".concat(id), {
9302
9475
  segment: params
9303
9476
  });
9304
9477
 
9305
9478
  case 2:
9306
- _yield$this$put = _context52.sent;
9479
+ _yield$this$put = _context54.sent;
9307
9480
  segment = _yield$this$put.segment;
9308
- return _context52.abrupt("return", segment);
9481
+ return _context54.abrupt("return", segment);
9309
9482
 
9310
9483
  case 5:
9311
9484
  case "end":
9312
- return _context52.stop();
9485
+ return _context54.stop();
9313
9486
  }
9314
9487
  }
9315
- }, _callee52, this);
9488
+ }, _callee54, this);
9316
9489
  }));
9317
9490
 
9318
- function updateSegment(_x71, _x72) {
9491
+ function updateSegment(_x73, _x74) {
9319
9492
  return _updateSegment.apply(this, arguments);
9320
9493
  }
9321
9494
 
@@ -9332,22 +9505,22 @@ var StreamChat = /*#__PURE__*/function () {
9332
9505
  }, {
9333
9506
  key: "deleteSegment",
9334
9507
  value: function () {
9335
- var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(id) {
9336
- return _regeneratorRuntime.wrap(function _callee53$(_context53) {
9508
+ var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(id) {
9509
+ return _regeneratorRuntime.wrap(function _callee55$(_context55) {
9337
9510
  while (1) {
9338
- switch (_context53.prev = _context53.next) {
9511
+ switch (_context55.prev = _context55.next) {
9339
9512
  case 0:
9340
- return _context53.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
9513
+ return _context55.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
9341
9514
 
9342
9515
  case 1:
9343
9516
  case "end":
9344
- return _context53.stop();
9517
+ return _context55.stop();
9345
9518
  }
9346
9519
  }
9347
- }, _callee53, this);
9520
+ }, _callee55, this);
9348
9521
  }));
9349
9522
 
9350
- function deleteSegment(_x73) {
9523
+ function deleteSegment(_x75) {
9351
9524
  return _deleteSegment.apply(this, arguments);
9352
9525
  }
9353
9526
 
@@ -9364,32 +9537,32 @@ var StreamChat = /*#__PURE__*/function () {
9364
9537
  }, {
9365
9538
  key: "createCampaign",
9366
9539
  value: function () {
9367
- var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(params) {
9540
+ var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(params) {
9368
9541
  var _yield$this$post2, campaign;
9369
9542
 
9370
- return _regeneratorRuntime.wrap(function _callee54$(_context54) {
9543
+ return _regeneratorRuntime.wrap(function _callee56$(_context56) {
9371
9544
  while (1) {
9372
- switch (_context54.prev = _context54.next) {
9545
+ switch (_context56.prev = _context56.next) {
9373
9546
  case 0:
9374
- _context54.next = 2;
9547
+ _context56.next = 2;
9375
9548
  return this.post(this.baseURL + "/campaigns", {
9376
9549
  campaign: params
9377
9550
  });
9378
9551
 
9379
9552
  case 2:
9380
- _yield$this$post2 = _context54.sent;
9553
+ _yield$this$post2 = _context56.sent;
9381
9554
  campaign = _yield$this$post2.campaign;
9382
- return _context54.abrupt("return", campaign);
9555
+ return _context56.abrupt("return", campaign);
9383
9556
 
9384
9557
  case 5:
9385
9558
  case "end":
9386
- return _context54.stop();
9559
+ return _context56.stop();
9387
9560
  }
9388
9561
  }
9389
- }, _callee54, this);
9562
+ }, _callee56, this);
9390
9563
  }));
9391
9564
 
9392
- function createCampaign(_x74) {
9565
+ function createCampaign(_x76) {
9393
9566
  return _createCampaign.apply(this, arguments);
9394
9567
  }
9395
9568
 
@@ -9406,30 +9579,30 @@ var StreamChat = /*#__PURE__*/function () {
9406
9579
  }, {
9407
9580
  key: "getCampaign",
9408
9581
  value: function () {
9409
- var _getCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(id) {
9582
+ var _getCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(id) {
9410
9583
  var _yield$this$get3, campaign;
9411
9584
 
9412
- return _regeneratorRuntime.wrap(function _callee55$(_context55) {
9585
+ return _regeneratorRuntime.wrap(function _callee57$(_context57) {
9413
9586
  while (1) {
9414
- switch (_context55.prev = _context55.next) {
9587
+ switch (_context57.prev = _context57.next) {
9415
9588
  case 0:
9416
- _context55.next = 2;
9589
+ _context57.next = 2;
9417
9590
  return this.get(this.baseURL + "/campaigns/".concat(id));
9418
9591
 
9419
9592
  case 2:
9420
- _yield$this$get3 = _context55.sent;
9593
+ _yield$this$get3 = _context57.sent;
9421
9594
  campaign = _yield$this$get3.campaign;
9422
- return _context55.abrupt("return", campaign);
9595
+ return _context57.abrupt("return", campaign);
9423
9596
 
9424
9597
  case 5:
9425
9598
  case "end":
9426
- return _context55.stop();
9599
+ return _context57.stop();
9427
9600
  }
9428
9601
  }
9429
- }, _callee55, this);
9602
+ }, _callee57, this);
9430
9603
  }));
9431
9604
 
9432
- function getCampaign(_x75) {
9605
+ function getCampaign(_x77) {
9433
9606
  return _getCampaign.apply(this, arguments);
9434
9607
  }
9435
9608
 
@@ -9445,30 +9618,30 @@ var StreamChat = /*#__PURE__*/function () {
9445
9618
  }, {
9446
9619
  key: "listCampaigns",
9447
9620
  value: function () {
9448
- var _listCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(options) {
9621
+ var _listCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(options) {
9449
9622
  var _yield$this$get4, campaigns;
9450
9623
 
9451
- return _regeneratorRuntime.wrap(function _callee56$(_context56) {
9624
+ return _regeneratorRuntime.wrap(function _callee58$(_context58) {
9452
9625
  while (1) {
9453
- switch (_context56.prev = _context56.next) {
9626
+ switch (_context58.prev = _context58.next) {
9454
9627
  case 0:
9455
- _context56.next = 2;
9628
+ _context58.next = 2;
9456
9629
  return this.get(this.baseURL + "/campaigns", options);
9457
9630
 
9458
9631
  case 2:
9459
- _yield$this$get4 = _context56.sent;
9632
+ _yield$this$get4 = _context58.sent;
9460
9633
  campaigns = _yield$this$get4.campaigns;
9461
- return _context56.abrupt("return", campaigns);
9634
+ return _context58.abrupt("return", campaigns);
9462
9635
 
9463
9636
  case 5:
9464
9637
  case "end":
9465
- return _context56.stop();
9638
+ return _context58.stop();
9466
9639
  }
9467
9640
  }
9468
- }, _callee56, this);
9641
+ }, _callee58, this);
9469
9642
  }));
9470
9643
 
9471
- function listCampaigns(_x76) {
9644
+ function listCampaigns(_x78) {
9472
9645
  return _listCampaigns.apply(this, arguments);
9473
9646
  }
9474
9647
 
@@ -9486,32 +9659,32 @@ var StreamChat = /*#__PURE__*/function () {
9486
9659
  }, {
9487
9660
  key: "updateCampaign",
9488
9661
  value: function () {
9489
- var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(id, params) {
9662
+ var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(id, params) {
9490
9663
  var _yield$this$put2, campaign;
9491
9664
 
9492
- return _regeneratorRuntime.wrap(function _callee57$(_context57) {
9665
+ return _regeneratorRuntime.wrap(function _callee59$(_context59) {
9493
9666
  while (1) {
9494
- switch (_context57.prev = _context57.next) {
9667
+ switch (_context59.prev = _context59.next) {
9495
9668
  case 0:
9496
- _context57.next = 2;
9669
+ _context59.next = 2;
9497
9670
  return this.put(this.baseURL + "/campaigns/".concat(id), {
9498
9671
  campaign: params
9499
9672
  });
9500
9673
 
9501
9674
  case 2:
9502
- _yield$this$put2 = _context57.sent;
9675
+ _yield$this$put2 = _context59.sent;
9503
9676
  campaign = _yield$this$put2.campaign;
9504
- return _context57.abrupt("return", campaign);
9677
+ return _context59.abrupt("return", campaign);
9505
9678
 
9506
9679
  case 5:
9507
9680
  case "end":
9508
- return _context57.stop();
9681
+ return _context59.stop();
9509
9682
  }
9510
9683
  }
9511
- }, _callee57, this);
9684
+ }, _callee59, this);
9512
9685
  }));
9513
9686
 
9514
- function updateCampaign(_x77, _x78) {
9687
+ function updateCampaign(_x79, _x80) {
9515
9688
  return _updateCampaign.apply(this, arguments);
9516
9689
  }
9517
9690
 
@@ -9528,22 +9701,22 @@ var StreamChat = /*#__PURE__*/function () {
9528
9701
  }, {
9529
9702
  key: "deleteCampaign",
9530
9703
  value: function () {
9531
- var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(id) {
9532
- return _regeneratorRuntime.wrap(function _callee58$(_context58) {
9704
+ var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(id) {
9705
+ return _regeneratorRuntime.wrap(function _callee60$(_context60) {
9533
9706
  while (1) {
9534
- switch (_context58.prev = _context58.next) {
9707
+ switch (_context60.prev = _context60.next) {
9535
9708
  case 0:
9536
- return _context58.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id)));
9709
+ return _context60.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id)));
9537
9710
 
9538
9711
  case 1:
9539
9712
  case "end":
9540
- return _context58.stop();
9713
+ return _context60.stop();
9541
9714
  }
9542
9715
  }
9543
- }, _callee58, this);
9716
+ }, _callee60, this);
9544
9717
  }));
9545
9718
 
9546
- function deleteCampaign(_x79) {
9719
+ function deleteCampaign(_x81) {
9547
9720
  return _deleteCampaign.apply(this, arguments);
9548
9721
  }
9549
9722
 
@@ -9561,33 +9734,33 @@ var StreamChat = /*#__PURE__*/function () {
9561
9734
  }, {
9562
9735
  key: "scheduleCampaign",
9563
9736
  value: function () {
9564
- var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(id, params) {
9737
+ var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(id, params) {
9565
9738
  var sendAt, _yield$this$patch, campaign;
9566
9739
 
9567
- return _regeneratorRuntime.wrap(function _callee59$(_context59) {
9740
+ return _regeneratorRuntime.wrap(function _callee61$(_context61) {
9568
9741
  while (1) {
9569
- switch (_context59.prev = _context59.next) {
9742
+ switch (_context61.prev = _context61.next) {
9570
9743
  case 0:
9571
9744
  sendAt = params.sendAt;
9572
- _context59.next = 3;
9745
+ _context61.next = 3;
9573
9746
  return this.patch(this.baseURL + "/campaigns/".concat(id, "/schedule"), {
9574
9747
  send_at: sendAt
9575
9748
  });
9576
9749
 
9577
9750
  case 3:
9578
- _yield$this$patch = _context59.sent;
9751
+ _yield$this$patch = _context61.sent;
9579
9752
  campaign = _yield$this$patch.campaign;
9580
- return _context59.abrupt("return", campaign);
9753
+ return _context61.abrupt("return", campaign);
9581
9754
 
9582
9755
  case 6:
9583
9756
  case "end":
9584
- return _context59.stop();
9757
+ return _context61.stop();
9585
9758
  }
9586
9759
  }
9587
- }, _callee59, this);
9760
+ }, _callee61, this);
9588
9761
  }));
9589
9762
 
9590
- function scheduleCampaign(_x80, _x81) {
9763
+ function scheduleCampaign(_x82, _x83) {
9591
9764
  return _scheduleCampaign.apply(this, arguments);
9592
9765
  }
9593
9766
 
@@ -9604,30 +9777,30 @@ var StreamChat = /*#__PURE__*/function () {
9604
9777
  }, {
9605
9778
  key: "stopCampaign",
9606
9779
  value: function () {
9607
- var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(id) {
9780
+ var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(id) {
9608
9781
  var _yield$this$patch2, campaign;
9609
9782
 
9610
- return _regeneratorRuntime.wrap(function _callee60$(_context60) {
9783
+ return _regeneratorRuntime.wrap(function _callee62$(_context62) {
9611
9784
  while (1) {
9612
- switch (_context60.prev = _context60.next) {
9785
+ switch (_context62.prev = _context62.next) {
9613
9786
  case 0:
9614
- _context60.next = 2;
9787
+ _context62.next = 2;
9615
9788
  return this.patch(this.baseURL + "/campaigns/".concat(id, "/stop"));
9616
9789
 
9617
9790
  case 2:
9618
- _yield$this$patch2 = _context60.sent;
9791
+ _yield$this$patch2 = _context62.sent;
9619
9792
  campaign = _yield$this$patch2.campaign;
9620
- return _context60.abrupt("return", campaign);
9793
+ return _context62.abrupt("return", campaign);
9621
9794
 
9622
9795
  case 5:
9623
9796
  case "end":
9624
- return _context60.stop();
9797
+ return _context62.stop();
9625
9798
  }
9626
9799
  }
9627
- }, _callee60, this);
9800
+ }, _callee62, this);
9628
9801
  }));
9629
9802
 
9630
- function stopCampaign(_x82) {
9803
+ function stopCampaign(_x84) {
9631
9804
  return _stopCampaign.apply(this, arguments);
9632
9805
  }
9633
9806
 
@@ -9644,30 +9817,30 @@ var StreamChat = /*#__PURE__*/function () {
9644
9817
  }, {
9645
9818
  key: "resumeCampaign",
9646
9819
  value: function () {
9647
- var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(id) {
9820
+ var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(id) {
9648
9821
  var _yield$this$patch3, campaign;
9649
9822
 
9650
- return _regeneratorRuntime.wrap(function _callee61$(_context61) {
9823
+ return _regeneratorRuntime.wrap(function _callee63$(_context63) {
9651
9824
  while (1) {
9652
- switch (_context61.prev = _context61.next) {
9825
+ switch (_context63.prev = _context63.next) {
9653
9826
  case 0:
9654
- _context61.next = 2;
9827
+ _context63.next = 2;
9655
9828
  return this.patch(this.baseURL + "/campaigns/".concat(id, "/resume"));
9656
9829
 
9657
9830
  case 2:
9658
- _yield$this$patch3 = _context61.sent;
9831
+ _yield$this$patch3 = _context63.sent;
9659
9832
  campaign = _yield$this$patch3.campaign;
9660
- return _context61.abrupt("return", campaign);
9833
+ return _context63.abrupt("return", campaign);
9661
9834
 
9662
9835
  case 5:
9663
9836
  case "end":
9664
- return _context61.stop();
9837
+ return _context63.stop();
9665
9838
  }
9666
9839
  }
9667
- }, _callee61, this);
9840
+ }, _callee63, this);
9668
9841
  }));
9669
9842
 
9670
- function resumeCampaign(_x83) {
9843
+ function resumeCampaign(_x85) {
9671
9844
  return _resumeCampaign.apply(this, arguments);
9672
9845
  }
9673
9846
 
@@ -9684,33 +9857,33 @@ var StreamChat = /*#__PURE__*/function () {
9684
9857
  }, {
9685
9858
  key: "testCampaign",
9686
9859
  value: function () {
9687
- var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(id, params) {
9860
+ var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(id, params) {
9688
9861
  var users, _yield$this$post3, campaign;
9689
9862
 
9690
- return _regeneratorRuntime.wrap(function _callee62$(_context62) {
9863
+ return _regeneratorRuntime.wrap(function _callee64$(_context64) {
9691
9864
  while (1) {
9692
- switch (_context62.prev = _context62.next) {
9865
+ switch (_context64.prev = _context64.next) {
9693
9866
  case 0:
9694
9867
  users = params.users;
9695
- _context62.next = 3;
9868
+ _context64.next = 3;
9696
9869
  return this.post(this.baseURL + "/campaigns/".concat(id, "/test"), {
9697
9870
  users: users
9698
9871
  });
9699
9872
 
9700
9873
  case 3:
9701
- _yield$this$post3 = _context62.sent;
9874
+ _yield$this$post3 = _context64.sent;
9702
9875
  campaign = _yield$this$post3.campaign;
9703
- return _context62.abrupt("return", campaign);
9876
+ return _context64.abrupt("return", campaign);
9704
9877
 
9705
9878
  case 6:
9706
9879
  case "end":
9707
- return _context62.stop();
9880
+ return _context64.stop();
9708
9881
  }
9709
9882
  }
9710
- }, _callee62, this);
9883
+ }, _callee64, this);
9711
9884
  }));
9712
9885
 
9713
- function testCampaign(_x84, _x85) {
9886
+ function testCampaign(_x86, _x87) {
9714
9887
  return _testCampaign.apply(this, arguments);
9715
9888
  }
9716
9889
 
@@ -9726,24 +9899,24 @@ var StreamChat = /*#__PURE__*/function () {
9726
9899
  }, {
9727
9900
  key: "enrichURL",
9728
9901
  value: function () {
9729
- var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(url) {
9730
- return _regeneratorRuntime.wrap(function _callee63$(_context63) {
9902
+ var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(url) {
9903
+ return _regeneratorRuntime.wrap(function _callee65$(_context65) {
9731
9904
  while (1) {
9732
- switch (_context63.prev = _context63.next) {
9905
+ switch (_context65.prev = _context65.next) {
9733
9906
  case 0:
9734
- return _context63.abrupt("return", this.get(this.baseURL + "/og", {
9907
+ return _context65.abrupt("return", this.get(this.baseURL + "/og", {
9735
9908
  url: url
9736
9909
  }));
9737
9910
 
9738
9911
  case 1:
9739
9912
  case "end":
9740
- return _context63.stop();
9913
+ return _context65.stop();
9741
9914
  }
9742
9915
  }
9743
- }, _callee63, this);
9916
+ }, _callee65, this);
9744
9917
  }));
9745
9918
 
9746
- function enrichURL(_x86) {
9919
+ function enrichURL(_x88) {
9747
9920
  return _enrichURL.apply(this, arguments);
9748
9921
  }
9749
9922
 
@@ -9760,22 +9933,22 @@ var StreamChat = /*#__PURE__*/function () {
9760
9933
  }, {
9761
9934
  key: "getTask",
9762
9935
  value: function () {
9763
- var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(id) {
9764
- return _regeneratorRuntime.wrap(function _callee64$(_context64) {
9936
+ var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(id) {
9937
+ return _regeneratorRuntime.wrap(function _callee66$(_context66) {
9765
9938
  while (1) {
9766
- switch (_context64.prev = _context64.next) {
9939
+ switch (_context66.prev = _context66.next) {
9767
9940
  case 0:
9768
- return _context64.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
9941
+ return _context66.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
9769
9942
 
9770
9943
  case 1:
9771
9944
  case "end":
9772
- return _context64.stop();
9945
+ return _context66.stop();
9773
9946
  }
9774
9947
  }
9775
- }, _callee64, this);
9948
+ }, _callee66, this);
9776
9949
  }));
9777
9950
 
9778
- function getTask(_x87) {
9951
+ function getTask(_x89) {
9779
9952
  return _getTask.apply(this, arguments);
9780
9953
  }
9781
9954
 
@@ -9793,31 +9966,31 @@ var StreamChat = /*#__PURE__*/function () {
9793
9966
  }, {
9794
9967
  key: "deleteChannels",
9795
9968
  value: function () {
9796
- var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(cids) {
9969
+ var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(cids) {
9797
9970
  var options,
9798
- _args65 = arguments;
9799
- return _regeneratorRuntime.wrap(function _callee65$(_context65) {
9971
+ _args67 = arguments;
9972
+ return _regeneratorRuntime.wrap(function _callee67$(_context67) {
9800
9973
  while (1) {
9801
- switch (_context65.prev = _context65.next) {
9974
+ switch (_context67.prev = _context67.next) {
9802
9975
  case 0:
9803
- options = _args65.length > 1 && _args65[1] !== undefined ? _args65[1] : {};
9804
- _context65.next = 3;
9976
+ options = _args67.length > 1 && _args67[1] !== undefined ? _args67[1] : {};
9977
+ _context67.next = 3;
9805
9978
  return this.post(this.baseURL + "/channels/delete", _objectSpread({
9806
9979
  cids: cids
9807
9980
  }, options));
9808
9981
 
9809
9982
  case 3:
9810
- return _context65.abrupt("return", _context65.sent);
9983
+ return _context67.abrupt("return", _context67.sent);
9811
9984
 
9812
9985
  case 4:
9813
9986
  case "end":
9814
- return _context65.stop();
9987
+ return _context67.stop();
9815
9988
  }
9816
9989
  }
9817
- }, _callee65, this);
9990
+ }, _callee67, this);
9818
9991
  }));
9819
9992
 
9820
- function deleteChannels(_x88) {
9993
+ function deleteChannels(_x90) {
9821
9994
  return _deleteChannels.apply(this, arguments);
9822
9995
  }
9823
9996
 
@@ -9835,13 +10008,13 @@ var StreamChat = /*#__PURE__*/function () {
9835
10008
  }, {
9836
10009
  key: "deleteUsers",
9837
10010
  value: function () {
9838
- var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(user_ids, options) {
9839
- return _regeneratorRuntime.wrap(function _callee66$(_context66) {
10011
+ var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(user_ids, options) {
10012
+ return _regeneratorRuntime.wrap(function _callee68$(_context68) {
9840
10013
  while (1) {
9841
- switch (_context66.prev = _context66.next) {
10014
+ switch (_context68.prev = _context68.next) {
9842
10015
  case 0:
9843
10016
  if (!((options === null || options === void 0 ? void 0 : options.user) !== 'soft' && (options === null || options === void 0 ? void 0 : options.user) !== 'hard')) {
9844
- _context66.next = 2;
10017
+ _context68.next = 2;
9845
10018
  break;
9846
10019
  }
9847
10020
 
@@ -9849,7 +10022,7 @@ var StreamChat = /*#__PURE__*/function () {
9849
10022
 
9850
10023
  case 2:
9851
10024
  if (!(options.messages !== undefined && options.messages !== 'soft' && options.messages !== 'hard')) {
9852
- _context66.next = 4;
10025
+ _context68.next = 4;
9853
10026
  break;
9854
10027
  }
9855
10028
 
@@ -9857,30 +10030,30 @@ var StreamChat = /*#__PURE__*/function () {
9857
10030
 
9858
10031
  case 4:
9859
10032
  if (!(options.conversations !== undefined && options.conversations !== 'soft' && options.conversations !== 'hard')) {
9860
- _context66.next = 6;
10033
+ _context68.next = 6;
9861
10034
  break;
9862
10035
  }
9863
10036
 
9864
10037
  throw new Error('Invalid delete user options. conversations must be one of [soft hard]');
9865
10038
 
9866
10039
  case 6:
9867
- _context66.next = 8;
10040
+ _context68.next = 8;
9868
10041
  return this.post(this.baseURL + "/users/delete", _objectSpread({
9869
10042
  user_ids: user_ids
9870
10043
  }, options));
9871
10044
 
9872
10045
  case 8:
9873
- return _context66.abrupt("return", _context66.sent);
10046
+ return _context68.abrupt("return", _context68.sent);
9874
10047
 
9875
10048
  case 9:
9876
10049
  case "end":
9877
- return _context66.stop();
10050
+ return _context68.stop();
9878
10051
  }
9879
10052
  }
9880
- }, _callee66, this);
10053
+ }, _callee68, this);
9881
10054
  }));
9882
10055
 
9883
- function deleteUsers(_x89, _x90) {
10056
+ function deleteUsers(_x91, _x92) {
9884
10057
  return _deleteUsers.apply(this, arguments);
9885
10058
  }
9886
10059