gewe-openclaw 2026.3.13 → 2026.3.23

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 (44) hide show
  1. package/README.md +455 -3
  2. package/index.ts +39 -1
  3. package/package.json +12 -1
  4. package/skills/gewe-agent-tools/SKILL.md +113 -0
  5. package/skills/gewe-channel-rules/SKILL.md +7 -0
  6. package/src/accounts.ts +51 -5
  7. package/src/api-tools.ts +1264 -0
  8. package/src/api.ts +37 -2
  9. package/src/binary-command.ts +65 -0
  10. package/src/channel-actions.ts +536 -0
  11. package/src/channel-allowlist.ts +150 -0
  12. package/src/channel-directory.ts +419 -0
  13. package/src/channel-status.ts +186 -0
  14. package/src/channel.ts +155 -58
  15. package/src/config-edit.ts +94 -0
  16. package/src/config-schema.ts +78 -3
  17. package/src/contacts-api.ts +113 -0
  18. package/src/delivery.ts +502 -62
  19. package/src/directory-cache.ts +164 -0
  20. package/src/gewe-account-api.ts +27 -0
  21. package/src/group-allowlist-tool.ts +242 -0
  22. package/src/group-binding-tool.ts +154 -0
  23. package/src/group-binding.ts +405 -0
  24. package/src/groups-api.ts +146 -0
  25. package/src/inbound-batch.ts +5 -2
  26. package/src/inbound.ts +248 -41
  27. package/src/media-server.ts +73 -93
  28. package/src/moments-api.ts +138 -0
  29. package/src/monitor.ts +81 -24
  30. package/src/onboarding.ts +9 -4
  31. package/src/openclaw-compat.ts +1070 -0
  32. package/src/pairing-store.ts +478 -0
  33. package/src/personal-api.ts +45 -0
  34. package/src/policy.ts +130 -22
  35. package/src/quote-context-cache.ts +97 -0
  36. package/src/reply-options.ts +101 -2
  37. package/src/s3.ts +1 -1
  38. package/src/send.ts +235 -16
  39. package/src/setup-wizard-types.ts +162 -0
  40. package/src/setup-wizard.ts +464 -0
  41. package/src/silk.ts +2 -1
  42. package/src/state-paths.ts +55 -14
  43. package/src/types.ts +66 -7
  44. package/src/xml.ts +158 -0
@@ -0,0 +1,113 @@
1
+ import {
2
+ createGeweAccountMethod,
3
+ type GeweApiObject,
4
+ type GeweApiList as GeweContactList,
5
+ } from "./gewe-account-api.js";
6
+
7
+ export type GeweContactsCatalog = {
8
+ friends?: string[];
9
+ chatrooms?: string[];
10
+ ghs?: string[];
11
+ } & GeweApiObject;
12
+
13
+ export type GeweContactProfile = {
14
+ userName?: string | null;
15
+ wxid?: string | null;
16
+ nickName?: string | null;
17
+ remark?: string | null;
18
+ alias?: string | null;
19
+ [key: string]: unknown;
20
+ };
21
+
22
+ export const uploadPhoneAddressListGewe = createGeweAccountMethod<{
23
+ phones: string[];
24
+ opType: number;
25
+ }>("/gewe/v2/api/contacts/uploadPhoneAddressList");
26
+
27
+ export const deleteFriendGewe = createGeweAccountMethod<{
28
+ wxid: string;
29
+ }>("/gewe/v2/api/contacts/deleteFriend");
30
+
31
+ export const syncImContactsGewe =
32
+ createGeweAccountMethod<Record<string, never>, GeweContactList>("/gewe/v2/api/im/sync");
33
+
34
+ export const searchImContactGewe = createGeweAccountMethod<{
35
+ scene: number;
36
+ content: string;
37
+ }>("/gewe/v2/api/im/search");
38
+
39
+ export const searchContactGewe = createGeweAccountMethod<{
40
+ contactsInfo: string;
41
+ }>("/gewe/v2/api/contacts/search");
42
+
43
+ export const checkRelationGewe = createGeweAccountMethod<{
44
+ wxids: string[];
45
+ }>("/gewe/v2/api/contacts/checkRelation");
46
+
47
+ export const addImContactGewe = createGeweAccountMethod<{
48
+ v3: string;
49
+ v4: string;
50
+ }>("/gewe/v2/api/im/add");
51
+
52
+ export const addContactsGewe = createGeweAccountMethod<{
53
+ scene: number;
54
+ option: number;
55
+ v3: string;
56
+ v4: string;
57
+ content: string;
58
+ }>("/gewe/v2/api/contacts/addContacts");
59
+
60
+ export const getImContactDetailGewe = createGeweAccountMethod<{
61
+ toUserName: string;
62
+ }>("/gewe/v2/api/im/detail");
63
+
64
+ export const getPhoneAddressListGewe = createGeweAccountMethod<{
65
+ phones?: string[];
66
+ }>("/gewe/v2/api/contacts/getPhoneAddressList");
67
+
68
+ export const getBriefInfoGewe = createGeweAccountMethod<{
69
+ wxids: string[];
70
+ }, GeweContactProfile[]>("/gewe/v2/api/contacts/getBriefInfo");
71
+
72
+ export const getDetailInfoGewe = createGeweAccountMethod<{
73
+ wxids: string[];
74
+ }, GeweContactProfile[]>("/gewe/v2/api/contacts/getDetailInfo");
75
+
76
+ export const fetchContactsListGewe =
77
+ createGeweAccountMethod<Record<string, never>, GeweContactsCatalog>(
78
+ "/gewe/v2/api/contacts/fetchContactsList",
79
+ );
80
+
81
+ export const fetchContactsListCacheGewe =
82
+ createGeweAccountMethod<Record<string, never>, GeweContactsCatalog>(
83
+ "/gewe/v2/api/contacts/fetchContactsListCache",
84
+ );
85
+
86
+ export const setFriendPermissionsGewe = createGeweAccountMethod<{
87
+ wxid: string;
88
+ onlyChat: boolean;
89
+ }>("/gewe/v2/api/contacts/setFriendPermissions");
90
+
91
+ export const setFriendRemarkGewe = createGeweAccountMethod<{
92
+ wxid: string;
93
+ remark: string;
94
+ }>("/gewe/v2/api/contacts/setFriendRemark");
95
+
96
+ export const geweContactsApi = {
97
+ uploadPhoneAddressList: uploadPhoneAddressListGewe,
98
+ deleteFriend: deleteFriendGewe,
99
+ syncImContacts: syncImContactsGewe,
100
+ searchImContact: searchImContactGewe,
101
+ searchContact: searchContactGewe,
102
+ checkRelation: checkRelationGewe,
103
+ addImContact: addImContactGewe,
104
+ addContacts: addContactsGewe,
105
+ getImContactDetail: getImContactDetailGewe,
106
+ getPhoneAddressList: getPhoneAddressListGewe,
107
+ getBriefInfo: getBriefInfoGewe,
108
+ getDetailInfo: getDetailInfoGewe,
109
+ fetchContactsList: fetchContactsListGewe,
110
+ fetchContactsListCache: fetchContactsListCacheGewe,
111
+ setFriendPermissions: setFriendPermissionsGewe,
112
+ setFriendRemark: setFriendRemarkGewe,
113
+ };