@zhin.js/adapter-douyin-live 0.1.0 → 0.1.1

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.
@@ -9,11 +9,18 @@ export { DouyinLiveEndpoint } from "../../lib/endpoint.js";
9
9
  export default defineAdapter({
10
10
  capabilities: ['inbound', 'outbound', 'liveDanmaku'],
11
11
  // 弹幕只支持纯文本;平台没有「回复」字段,mention 折叠进正文 `@昵称`。
12
- segments: {
13
- supported: ['text', 'mention'],
14
- html: 'text',
15
- markdown: 'text',
16
- interactive: 'text',
12
+ profile: {
13
+ default: {
14
+ messaging: {
15
+ segments: {
16
+ supported: ['text', 'mention'],
17
+ html: 'text',
18
+ markdown: 'text',
19
+ interactive: 'text',
20
+ },
21
+ },
22
+ delivery: { send: true, spool: true },
23
+ },
17
24
  },
18
25
  createAdapter: context => new DouyinLiveAdapter(context),
19
26
  });
@@ -12,11 +12,18 @@ export type { DouyinLiveEndpointOptions } from '../../src/endpoint.js';
12
12
  export default defineAdapter<DouyinLiveEndpointConfig>({
13
13
  capabilities: ['inbound', 'outbound', 'liveDanmaku'],
14
14
  // 弹幕只支持纯文本;平台没有「回复」字段,mention 折叠进正文 `@昵称`。
15
- segments: {
16
- supported: ['text', 'mention'],
17
- html: 'text',
18
- markdown: 'text',
19
- interactive: 'text',
15
+ profile: {
16
+ default: {
17
+ messaging: {
18
+ segments: {
19
+ supported: ['text', 'mention'],
20
+ html: 'text',
21
+ markdown: 'text',
22
+ interactive: 'text',
23
+ },
24
+ },
25
+ delivery: { send: true, spool: true },
26
+ },
20
27
  },
21
28
  createAdapter: context => new DouyinLiveAdapter(context),
22
29
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/adapter-douyin-live",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Zhin.js Douyin live danmaku adapter for Plugin Runtime (Experimental; unofficial webcast WebSocket, listen-only by default, one reply per danmaku window)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -34,16 +34,16 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "ws": "^8.21.1",
37
- "@zhin.js/feature-kit": "1.1.11",
38
- "@zhin.js/im-contract": "1.1.10",
39
- "@zhin.js/logger": "1.1.2",
40
- "@zhin.js/core": "1.1.55",
41
- "@zhin.js/adapter": "1.1.27"
37
+ "@zhin.js/adapter": "1.1.28",
38
+ "@zhin.js/core": "1.1.56",
39
+ "@zhin.js/feature-kit": "1.1.12",
40
+ "@zhin.js/im-contract": "1.1.11",
41
+ "@zhin.js/logger": "1.1.2"
42
42
  },
43
43
  "peerDependencies": {
44
- "@zhin.js/adapter": "^1.1.27",
45
- "@zhin.js/core": "^1.1.55",
46
- "zhin.js": "^1.1.20"
44
+ "@zhin.js/adapter": "^1.1.28",
45
+ "@zhin.js/core": "^1.1.56",
46
+ "zhin.js": "^1.1.21"
47
47
  },
48
48
  "peerDependenciesMeta": {
49
49
  "zhin.js": {
@@ -55,7 +55,7 @@
55
55
  "@types/ws": "^8.18.1",
56
56
  "typescript": "^6.0.3",
57
57
  "vitest": "^4.1.10",
58
- "zhin.js": "1.1.20"
58
+ "zhin.js": "1.1.21"
59
59
  },
60
60
  "files": [
61
61
  "adapters",