@agent-wechat/agent-wechat 1.0.0-beta.19 → 1.0.0-beta.20

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 +5 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -418,6 +418,11 @@ var NativeWeChatClient = class {
418
418
  setThreadMuted(accountId, threadId2, muted, key, signal) {
419
419
  return this.groupMutation(accountId, `threads/${id(threadId2)}/notifications`, "PUT", { muted }, key, "mute", threadId2, signal);
420
420
  }
421
+ setThreadPinned(accountId, threadId2, pinned, key, signal) {
422
+ if (typeof pinned !== "boolean")
423
+ throw new Error("Thread pinned state must be a boolean");
424
+ return this.groupMutation(accountId, `threads/${id(threadId2)}/pin`, "PUT", { pinned }, key, "pin", threadId2, signal);
425
+ }
421
426
  groupMutationByKey(accountId, key, signal) {
422
427
  return this.request(`v1/accounts/${id(accountId)}/group-mutations/by-idempotency-key?${new URLSearchParams({ key })}`, { signal });
423
428
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-wechat/agent-wechat",
3
- "version": "1.0.0-beta.19",
3
+ "version": "1.0.0-beta.20",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -11,7 +11,7 @@
11
11
  "esbuild": "^0.25.0",
12
12
  "openclaw": "2026.10.7",
13
13
  "typescript": "^5.4.5",
14
- "@agent-wechat/shared": "1.0.0-beta.5"
14
+ "@agent-wechat/shared": "1.0.0-beta.6"
15
15
  },
16
16
  "openclaw": {
17
17
  "extensions": [