@agent-wechat/agent-wechat 2.7.1 → 2.8.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -8
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1449,13 +1449,9 @@ var NativeWeChatClient = class {
1449
1449
  acceptContactRequest(accountId, requestId, input, key2, signal) {
1450
1450
  return this.contactMutation(accountId, `contact-requests/${id(requestId)}/accept`, "POST", typeof input === "string" ? { expectedVersion: input } : input, key2, "accept_request", signal);
1451
1451
  }
1452
- /** Read existing relationship privacy; requires the account's admin scope. */
1453
- contactPrivacy(accountId, username, signal) {
1454
- return this.request(`v1/accounts/${id(accountId)}/contacts/${id(username)}/privacy`, { signal });
1455
- }
1456
- /** Save privacy once against the inspected version; retain the original key after uncertainty. */
1452
+ /** Save privacy or the remark once against the inspected version; retain the original key after uncertainty. */
1457
1453
  updateContact(accountId, username, input, key2, signal) {
1458
- return this.contactMutation(accountId, `contacts/${id(username)}`, "PATCH", input, key2, "update_privacy", signal);
1454
+ return this.contactMutation(accountId, `contacts/${id(username)}`, "PATCH", input, key2, input.remark !== void 0 ? "update_remark" : "update_privacy", signal);
1459
1455
  }
1460
1456
  /** Delete this account's local request history; no server rejection or cancellation. */
1461
1457
  deleteContactRequest(accountId, requestId, expectedVersion, key2, signal) {
@@ -1523,8 +1519,8 @@ var NativeWeChatClient = class {
1523
1519
  }
1524
1520
  return { bytes: await this.readBounded(response, 16 * 1024 * 1024), contentType: type, etag: response.headers.get("etag") };
1525
1521
  }
1526
- refreshContact(accountId, username) {
1527
- return this.request(`v1/accounts/${id(accountId)}/contacts/${id(username)}/refresh`, { method: "POST", body: "{}" });
1522
+ refreshContact(accountId, username, signal) {
1523
+ return this.request(`v1/accounts/${id(accountId)}/contacts/${id(username)}/refresh`, { method: "POST", body: "{}", signal });
1528
1524
  }
1529
1525
  refreshGroup(accountId, roomId) {
1530
1526
  return this.request(`v1/accounts/${id(accountId)}/groups/${id(roomId)}/refresh`, { method: "POST", body: "{}" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-wechat/agent-wechat",
3
- "version": "2.7.1",
3
+ "version": "2.8.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [
@@ -13,7 +13,7 @@
13
13
  "esbuild": "^0.25.0",
14
14
  "openclaw": "2026.11.4",
15
15
  "typescript": "^5.4.5",
16
- "@agent-wechat/shared": "2.1.0"
16
+ "@agent-wechat/shared": "2.2.0"
17
17
  },
18
18
  "openclaw": {
19
19
  "extensions": [