@zhin.js/adapter-dingtalk 1.1.11 → 1.1.14
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/CHANGELOG.md +38 -0
- package/lib/protocol.js +1 -1
- package/package.json +15 -15
- package/src/protocol.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# @zhin.js/adapter-dingtalk
|
|
2
2
|
|
|
3
|
+
## 1.1.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [974fa85]
|
|
8
|
+
- Updated dependencies [1e9b3d6]
|
|
9
|
+
- @zhin.js/core@1.1.49
|
|
10
|
+
|
|
11
|
+
## 1.1.13
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [db06de8]
|
|
16
|
+
- @zhin.js/core@1.1.48
|
|
17
|
+
|
|
18
|
+
## 1.1.12
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- fbfefb7: Share segments accept `data.platform` (the song's music service: qq, netease, kugou, kuwo, migu). icqq maps it to the matching music app id when `config.appid` is absent and offers it to the Agent; adapters that cannot render share app metadata reject it like `audio` and `config`.
|
|
23
|
+
- Updated dependencies [1a11207]
|
|
24
|
+
- Updated dependencies [9943df6]
|
|
25
|
+
- Updated dependencies [5be09ae]
|
|
26
|
+
- Updated dependencies [a3ab153]
|
|
27
|
+
- Updated dependencies [e8f7309]
|
|
28
|
+
- Updated dependencies [5afc18f]
|
|
29
|
+
- Updated dependencies [d3563d9]
|
|
30
|
+
- Updated dependencies [c618eb7]
|
|
31
|
+
- Updated dependencies [fbfefb7]
|
|
32
|
+
- @zhin.js/tool@1.1.8
|
|
33
|
+
- @zhin.js/core@1.1.47
|
|
34
|
+
- @zhin.js/adapter@1.1.21
|
|
35
|
+
- @zhin.js/feature-kit@1.1.7
|
|
36
|
+
- @zhin.js/im-contract@1.1.5
|
|
37
|
+
- @zhin.js/agent-feature@1.1.8
|
|
38
|
+
- @zhin.js/skill@1.1.8
|
|
39
|
+
- @zhin.js/host-http@1.1.8
|
|
40
|
+
|
|
3
41
|
## 1.1.11
|
|
4
42
|
|
|
5
43
|
### Patch Changes
|
package/lib/protocol.js
CHANGED
|
@@ -185,7 +185,7 @@ export function formatOutboundBody(payload) {
|
|
|
185
185
|
case 'reply':
|
|
186
186
|
throw new EndpointDeliveryError('unsupported_operation', 'DingTalk native quoted replies are not implemented', 'not_sent');
|
|
187
187
|
case 'share': {
|
|
188
|
-
if (['audio', 'artist', 'duration', 'config'].some(key => data[key] !== undefined)) {
|
|
188
|
+
if (['audio', 'artist', 'duration', 'platform', 'config'].some(key => data[key] !== undefined)) {
|
|
189
189
|
throw new EndpointDeliveryError('unsupported_operation', 'dingtalk rich share metadata is not implemented', 'not_sent');
|
|
190
190
|
}
|
|
191
191
|
let url;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/adapter-dingtalk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
4
4
|
"description": "Zhin.js DingTalk (钉钉) adapter for Plugin Runtime (HTTP webhook)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -33,24 +33,24 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"ws": "^8.18.3",
|
|
36
|
-
"@zhin.js/adapter": "1.1.
|
|
37
|
-
"@zhin.js/agent-feature": "1.1.
|
|
38
|
-
"@zhin.js/core": "1.1.
|
|
39
|
-
"@zhin.js/
|
|
40
|
-
"@zhin.js/
|
|
41
|
-
"@zhin.js/im-contract": "1.1.
|
|
36
|
+
"@zhin.js/adapter": "1.1.21",
|
|
37
|
+
"@zhin.js/agent-feature": "1.1.8",
|
|
38
|
+
"@zhin.js/core": "1.1.49",
|
|
39
|
+
"@zhin.js/feature-kit": "1.1.7",
|
|
40
|
+
"@zhin.js/host-http": "1.1.8",
|
|
41
|
+
"@zhin.js/im-contract": "1.1.5",
|
|
42
42
|
"@zhin.js/logger": "1.1.2",
|
|
43
|
-
"@zhin.js/skill": "1.1.
|
|
44
|
-
"@zhin.js/tool": "1.1.
|
|
43
|
+
"@zhin.js/skill": "1.1.8",
|
|
44
|
+
"@zhin.js/tool": "1.1.8"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"zod": "^4.0.0",
|
|
48
|
-
"@zhin.js/adapter": "^1.1.
|
|
49
|
-
"@zhin.js/command": "^1.1.
|
|
50
|
-
"@zhin.js/core": "^1.1.
|
|
51
|
-
"@zhin.js/host-http": "^1.1.
|
|
48
|
+
"@zhin.js/adapter": "^1.1.21",
|
|
49
|
+
"@zhin.js/command": "^1.1.9",
|
|
50
|
+
"@zhin.js/core": "^1.1.49",
|
|
51
|
+
"@zhin.js/host-http": "^1.1.8",
|
|
52
52
|
"@zhin.js/permission": "^1.1.7",
|
|
53
|
-
"zhin.js": "^1.1.
|
|
53
|
+
"zhin.js": "^1.1.14"
|
|
54
54
|
},
|
|
55
55
|
"peerDependenciesMeta": {
|
|
56
56
|
"@zhin.js/command": {
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"vitest": "^4.1.10",
|
|
70
70
|
"zod": "^4.4.3",
|
|
71
71
|
"@types/ws": "^8.18.1",
|
|
72
|
-
"zhin.js": "1.1.
|
|
72
|
+
"zhin.js": "1.1.14"
|
|
73
73
|
},
|
|
74
74
|
"files": [
|
|
75
75
|
"adapters",
|
package/src/protocol.ts
CHANGED
|
@@ -296,7 +296,7 @@ export function formatOutboundBody(payload: unknown): DingTalkSendBody {
|
|
|
296
296
|
case 'reply':
|
|
297
297
|
throw new EndpointDeliveryError('unsupported_operation', 'DingTalk native quoted replies are not implemented', 'not_sent');
|
|
298
298
|
case 'share': {
|
|
299
|
-
if (['audio', 'artist', 'duration', 'config'].some(key => data[key] !== undefined)) {
|
|
299
|
+
if (['audio', 'artist', 'duration', 'platform', 'config'].some(key => data[key] !== undefined)) {
|
|
300
300
|
throw new EndpointDeliveryError('unsupported_operation', 'dingtalk rich share metadata is not implemented', 'not_sent');
|
|
301
301
|
}
|
|
302
302
|
let url: URL;
|