stream-chat 8.36.0 → 8.37.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.
@@ -11547,7 +11547,7 @@ var StreamChat = /*#__PURE__*/function () {
11547
11547
  }, {
11548
11548
  key: "getUserAgent",
11549
11549
  value: function getUserAgent() {
11550
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.36.0");
11550
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.37.0");
11551
11551
  }
11552
11552
  }, {
11553
11553
  key: "setUserAgent",
@@ -13581,6 +13581,49 @@ var StreamChat = /*#__PURE__*/function () {
13581
13581
 
13582
13582
  return queryMessageHistory;
13583
13583
  }()
13584
+ /**
13585
+ * updateFlags - reviews/unflags flagged message
13586
+ *
13587
+ * @param {string[]} message_ids list of message IDs
13588
+ * @param {string} options Option object in case user ID is set to review all the flagged messages by the user
13589
+ * @param {string} reviewed_by user ID who reviewed the flagged message
13590
+ * @returns {APIResponse}
13591
+ */
13592
+
13593
+ }, {
13594
+ key: "updateFlags",
13595
+ value: function () {
13596
+ var _updateFlags = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee114(message_ids, reviewed_by) {
13597
+ var options,
13598
+ _args114 = arguments;
13599
+ return _regeneratorRuntime.wrap(function _callee114$(_context114) {
13600
+ while (1) {
13601
+ switch (_context114.prev = _context114.next) {
13602
+ case 0:
13603
+ options = _args114.length > 2 && _args114[2] !== undefined ? _args114[2] : {};
13604
+ _context114.next = 3;
13605
+ return this.post(this.baseURL + '/automod/v1/moderation/update_flags', _objectSpread({
13606
+ message_ids: message_ids,
13607
+ reviewed_by: reviewed_by
13608
+ }, options));
13609
+
13610
+ case 3:
13611
+ return _context114.abrupt("return", _context114.sent);
13612
+
13613
+ case 4:
13614
+ case "end":
13615
+ return _context114.stop();
13616
+ }
13617
+ }
13618
+ }, _callee114, this);
13619
+ }));
13620
+
13621
+ function updateFlags(_x163, _x164) {
13622
+ return _updateFlags.apply(this, arguments);
13623
+ }
13624
+
13625
+ return updateFlags;
13626
+ }()
13584
13627
  }], [{
13585
13628
  key: "getInstance",
13586
13629
  value: function getInstance(key, secretOrOptions, options) {