stream-chat 8.53.0 → 8.54.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.
package/dist/browser.js CHANGED
@@ -15037,7 +15037,7 @@ var StreamChat = /*#__PURE__*/function () {
15037
15037
  }, {
15038
15038
  key: "getUserAgent",
15039
15039
  value: function getUserAgent() {
15040
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.53.0");
15040
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.54.0");
15041
15041
  }
15042
15042
  }, {
15043
15043
  key: "setUserAgent",
@@ -15283,30 +15283,81 @@ var StreamChat = /*#__PURE__*/function () {
15283
15283
 
15284
15284
  return sendUserCustomEvent;
15285
15285
  }()
15286
+ /**
15287
+ * Creates a new block list
15288
+ *
15289
+ * @param {BlockList} blockList - The block list to create
15290
+ * @param {string} blockList.name - The name of the block list
15291
+ * @param {string[]} blockList.words - List of words to block
15292
+ * @param {string} [blockList.team] - Team ID the block list belongs to
15293
+ *
15294
+ * @returns {Promise<APIResponse>} The server response
15295
+ */
15296
+
15286
15297
  }, {
15287
15298
  key: "createBlockList",
15288
15299
  value: function createBlockList(blockList) {
15289
15300
  return this.post("".concat(this.baseURL, "/blocklists"), blockList);
15290
15301
  }
15302
+ /**
15303
+ * Lists all block lists
15304
+ *
15305
+ * @param {Object} [data] - Query parameters
15306
+ * @param {string} [data.team] - Team ID to filter block lists by
15307
+ *
15308
+ * @returns {Promise<APIResponse & {blocklists: BlockListResponse[]}>} Response containing array of block lists
15309
+ */
15310
+
15291
15311
  }, {
15292
15312
  key: "listBlockLists",
15293
- value: function listBlockLists() {
15294
- return this.get("".concat(this.baseURL, "/blocklists"));
15313
+ value: function listBlockLists(data) {
15314
+ return this.get("".concat(this.baseURL, "/blocklists"), data);
15295
15315
  }
15316
+ /**
15317
+ * Gets a specific block list
15318
+ *
15319
+ * @param {string} name - The name of the block list to retrieve
15320
+ * @param {Object} [data] - Query parameters
15321
+ * @param {string} [data.team] - Team ID that blocklist belongs to
15322
+ *
15323
+ * @returns {Promise<APIResponse & {blocklist: BlockListResponse}>} Response containing the block list
15324
+ */
15325
+
15296
15326
  }, {
15297
15327
  key: "getBlockList",
15298
- value: function getBlockList(name) {
15299
- return this.get("".concat(this.baseURL, "/blocklists/").concat(encodeURIComponent(name)));
15328
+ value: function getBlockList(name, data) {
15329
+ return this.get("".concat(this.baseURL, "/blocklists/").concat(encodeURIComponent(name)), data);
15300
15330
  }
15331
+ /**
15332
+ * Updates an existing block list
15333
+ *
15334
+ * @param {string} name - The name of the block list to update
15335
+ * @param {Object} data - The update data
15336
+ * @param {string[]} data.words - New list of words to block
15337
+ * @param {string} [data.team] - Team ID that blocklist belongs to
15338
+ *
15339
+ * @returns {Promise<APIResponse>} The server response
15340
+ */
15341
+
15301
15342
  }, {
15302
15343
  key: "updateBlockList",
15303
15344
  value: function updateBlockList(name, data) {
15304
15345
  return this.put("".concat(this.baseURL, "/blocklists/").concat(encodeURIComponent(name)), data);
15305
15346
  }
15347
+ /**
15348
+ * Deletes a block list
15349
+ *
15350
+ * @param {string} name - The name of the block list to delete
15351
+ * @param {Object} [data] - Query parameters
15352
+ * @param {string} [data.team] - Team ID that blocklist belongs to
15353
+ *
15354
+ * @returns {Promise<APIResponse>} The server response
15355
+ */
15356
+
15306
15357
  }, {
15307
15358
  key: "deleteBlockList",
15308
- value: function deleteBlockList(name) {
15309
- return this.delete("".concat(this.baseURL, "/blocklists/").concat(encodeURIComponent(name)));
15359
+ value: function deleteBlockList(name, data) {
15360
+ return this.delete("".concat(this.baseURL, "/blocklists/").concat(encodeURIComponent(name)), data);
15310
15361
  }
15311
15362
  }, {
15312
15363
  key: "exportChannels",