@zhin.js/adapter-lark 1.1.25 → 1.1.26

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @zhin.js/adapter-lark
2
2
 
3
+ ## 1.1.26
4
+
5
+ ### Patch Changes
6
+
7
+ - 0d76a7c: Overhaul Console interactive workbenches, platform-specific adapter account onboarding/login flows, DeclarativePageView visual/interactive capabilities, and official utility plugin Console pages.
8
+ - Updated dependencies [0d76a7c]
9
+ - @zhin.js/adapter@1.1.32
10
+ - @zhin.js/core@1.1.60
11
+
3
12
  ## 1.1.25
4
13
 
5
14
  ### Patch Changes
@@ -4,7 +4,7 @@
4
4
  import type { AdapterConsoleField } from 'zhin.js/adapter';
5
5
  export declare const larkConsoleSpec: {
6
6
  readonly adapterKey: "lark";
7
- readonly adapterDisplayName: "Lark";
7
+ readonly adapterDisplayName: "飞书 / Lark";
8
8
  readonly fields: readonly AdapterConsoleField[];
9
9
  readonly docsUrl: "https://zhin.js.org/adapters/lark";
10
10
  readonly readPermission: "lark:read";
@@ -1,13 +1,77 @@
1
1
  export const larkConsoleSpec = {
2
2
  adapterKey: 'lark',
3
- adapterDisplayName: 'Lark',
3
+ adapterDisplayName: '飞书 / Lark',
4
4
  fields: [
5
- { key: 'appId', required: true, env: true, description: '飞书 App ID', descriptionI18n: { en: 'Lark app ID' } },
6
- { key: 'appSecret', required: true, env: true, description: '飞书 App Secret', descriptionI18n: { en: 'Lark app secret' } },
7
- { key: 'encryptKey', env: true, description: '事件加密 key', descriptionI18n: { en: 'Event encryption key' } },
8
- { key: 'verificationToken', env: true, description: '事件验证 token', descriptionI18n: { en: 'Event verification token' } },
9
- { key: 'streaming', type: 'boolean', description: '生成时逐步显示回复', descriptionI18n: { en: 'Show replies progressively while generating' } },
10
- { key: 'streamingIntervalMs', type: 'number', description: '回复更新间隔(毫秒)', descriptionI18n: { en: 'Reply update interval in milliseconds' } },
5
+ {
6
+ key: 'appId',
7
+ required: true,
8
+ env: true,
9
+ label: '飞书 App ID',
10
+ labelI18n: { en: 'Lark App ID' },
11
+ group: '企业应用凭证',
12
+ groupI18n: { en: 'Enterprise App Credentials' },
13
+ placeholder: 'cli_a1b2c3d4e5f6g7h8',
14
+ description: '飞书开放平台企业自建应用的 App ID',
15
+ descriptionI18n: { en: 'Lark app ID' },
16
+ },
17
+ {
18
+ key: 'appSecret',
19
+ required: true,
20
+ env: true,
21
+ label: '飞书 App Secret',
22
+ labelI18n: { en: 'Lark App Secret' },
23
+ group: '企业应用凭证',
24
+ groupI18n: { en: 'Enterprise App Credentials' },
25
+ placeholder: '开放平台生成的 App Secret',
26
+ placeholderI18n: { en: 'App Secret from Lark Developer Console' },
27
+ description: '飞书开放平台企业自建应用的 App Secret',
28
+ descriptionI18n: { en: 'Lark app secret' },
29
+ },
30
+ {
31
+ key: 'encryptKey',
32
+ env: true,
33
+ label: 'Encrypt Key (事件加密密钥)',
34
+ labelI18n: { en: 'Event Encrypt Key' },
35
+ group: '事件回调与加解密',
36
+ groupI18n: { en: 'Event Callback & Encryption' },
37
+ placeholder: '留空则不启用消息加密',
38
+ placeholderI18n: { en: 'Optional event encryption key' },
39
+ description: '事件订阅加密密钥(Encrypt Key)',
40
+ descriptionI18n: { en: 'Event encryption key' },
41
+ },
42
+ {
43
+ key: 'verificationToken',
44
+ env: true,
45
+ label: 'Verification Token (验证令牌)',
46
+ labelI18n: { en: 'Verification Token' },
47
+ group: '事件回调与加解密',
48
+ groupI18n: { en: 'Event Callback & Encryption' },
49
+ placeholder: '事件订阅 Verification Token',
50
+ placeholderI18n: { en: 'Optional event verification token' },
51
+ description: '事件订阅验证令牌(Verification Token)',
52
+ descriptionI18n: { en: 'Event verification token' },
53
+ },
54
+ {
55
+ key: 'streaming',
56
+ type: 'boolean',
57
+ label: '卡片流式回复',
58
+ labelI18n: { en: 'Streaming Reply' },
59
+ group: '流式回复',
60
+ groupI18n: { en: 'Streaming Reply' },
61
+ description: '生成时逐步显示回复',
62
+ descriptionI18n: { en: 'Show replies progressively while generating' },
63
+ },
64
+ {
65
+ key: 'streamingIntervalMs',
66
+ type: 'number',
67
+ label: '流式刷新间隔 (ms)',
68
+ labelI18n: { en: 'Streaming Interval (ms)' },
69
+ group: '流式回复',
70
+ groupI18n: { en: 'Streaming Reply' },
71
+ placeholder: '500',
72
+ description: '回复更新间隔(毫秒)',
73
+ descriptionI18n: { en: 'Reply update interval in milliseconds' },
74
+ },
11
75
  ],
12
76
  docsUrl: 'https://zhin.js.org/adapters/lark',
13
77
  readPermission: 'lark:read',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/adapter-lark",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
4
4
  "description": "Zhin.js Lark/Feishu adapter (HTTP webhook and WebSocket long connection)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -35,10 +35,10 @@
35
35
  "dependencies": {
36
36
  "@larksuiteoapi/node-sdk": "^1.67.0",
37
37
  "undici": "6.29.1",
38
- "@zhin.js/adapter": "1.1.31",
38
+ "@zhin.js/adapter": "1.1.32",
39
39
  "@zhin.js/agent-feature": "1.1.16",
40
40
  "@zhin.js/console-contract": "1.1.5",
41
- "@zhin.js/core": "1.1.59",
41
+ "@zhin.js/core": "1.1.60",
42
42
  "@zhin.js/feature-kit": "1.1.15",
43
43
  "@zhin.js/host-http": "1.1.17",
44
44
  "@zhin.js/im-contract": "1.1.13",
@@ -49,12 +49,12 @@
49
49
  },
50
50
  "peerDependencies": {
51
51
  "zod": "^4.0.0",
52
- "@zhin.js/adapter": "^1.1.31",
52
+ "@zhin.js/adapter": "^1.1.32",
53
53
  "@zhin.js/command": "^1.1.17",
54
- "@zhin.js/core": "^1.1.59",
54
+ "@zhin.js/core": "^1.1.60",
55
55
  "@zhin.js/host-http": "^1.1.17",
56
56
  "@zhin.js/permission": "^1.1.15",
57
- "zhin.js": "^1.1.24"
57
+ "zhin.js": "^1.1.25"
58
58
  },
59
59
  "peerDependenciesMeta": {
60
60
  "@zhin.js/command": {
@@ -72,7 +72,7 @@
72
72
  "typescript": "^6.0.3",
73
73
  "vitest": "^4.1.10",
74
74
  "zod": "^4.4.3",
75
- "zhin.js": "1.1.24"
75
+ "zhin.js": "1.1.25"
76
76
  },
77
77
  "files": [
78
78
  "adapters",
@@ -5,14 +5,78 @@ import type { AdapterConsoleField } from 'zhin.js/adapter';
5
5
 
6
6
  export const larkConsoleSpec = {
7
7
  adapterKey: 'lark',
8
- adapterDisplayName: 'Lark',
8
+ adapterDisplayName: '飞书 / Lark',
9
9
  fields: [
10
- { key: 'appId', required: true, env: true, description: '飞书 App ID', descriptionI18n: { en: 'Lark app ID' } },
11
- { key: 'appSecret', required: true, env: true, description: '飞书 App Secret', descriptionI18n: { en: 'Lark app secret' } },
12
- { key: 'encryptKey', env: true, description: '事件加密 key', descriptionI18n: { en: 'Event encryption key' } },
13
- { key: 'verificationToken', env: true, description: '事件验证 token', descriptionI18n: { en: 'Event verification token' } },
14
- { key: 'streaming', type: 'boolean', description: '生成时逐步显示回复', descriptionI18n: { en: 'Show replies progressively while generating' } },
15
- { key: 'streamingIntervalMs', type: 'number', description: '回复更新间隔(毫秒)', descriptionI18n: { en: 'Reply update interval in milliseconds' } },
10
+ {
11
+ key: 'appId',
12
+ required: true,
13
+ env: true,
14
+ label: '飞书 App ID',
15
+ labelI18n: { en: 'Lark App ID' },
16
+ group: '企业应用凭证',
17
+ groupI18n: { en: 'Enterprise App Credentials' },
18
+ placeholder: 'cli_a1b2c3d4e5f6g7h8',
19
+ description: '飞书开放平台企业自建应用的 App ID',
20
+ descriptionI18n: { en: 'Lark app ID' },
21
+ },
22
+ {
23
+ key: 'appSecret',
24
+ required: true,
25
+ env: true,
26
+ label: '飞书 App Secret',
27
+ labelI18n: { en: 'Lark App Secret' },
28
+ group: '企业应用凭证',
29
+ groupI18n: { en: 'Enterprise App Credentials' },
30
+ placeholder: '开放平台生成的 App Secret',
31
+ placeholderI18n: { en: 'App Secret from Lark Developer Console' },
32
+ description: '飞书开放平台企业自建应用的 App Secret',
33
+ descriptionI18n: { en: 'Lark app secret' },
34
+ },
35
+ {
36
+ key: 'encryptKey',
37
+ env: true,
38
+ label: 'Encrypt Key (事件加密密钥)',
39
+ labelI18n: { en: 'Event Encrypt Key' },
40
+ group: '事件回调与加解密',
41
+ groupI18n: { en: 'Event Callback & Encryption' },
42
+ placeholder: '留空则不启用消息加密',
43
+ placeholderI18n: { en: 'Optional event encryption key' },
44
+ description: '事件订阅加密密钥(Encrypt Key)',
45
+ descriptionI18n: { en: 'Event encryption key' },
46
+ },
47
+ {
48
+ key: 'verificationToken',
49
+ env: true,
50
+ label: 'Verification Token (验证令牌)',
51
+ labelI18n: { en: 'Verification Token' },
52
+ group: '事件回调与加解密',
53
+ groupI18n: { en: 'Event Callback & Encryption' },
54
+ placeholder: '事件订阅 Verification Token',
55
+ placeholderI18n: { en: 'Optional event verification token' },
56
+ description: '事件订阅验证令牌(Verification Token)',
57
+ descriptionI18n: { en: 'Event verification token' },
58
+ },
59
+ {
60
+ key: 'streaming',
61
+ type: 'boolean',
62
+ label: '卡片流式回复',
63
+ labelI18n: { en: 'Streaming Reply' },
64
+ group: '流式回复',
65
+ groupI18n: { en: 'Streaming Reply' },
66
+ description: '生成时逐步显示回复',
67
+ descriptionI18n: { en: 'Show replies progressively while generating' },
68
+ },
69
+ {
70
+ key: 'streamingIntervalMs',
71
+ type: 'number',
72
+ label: '流式刷新间隔 (ms)',
73
+ labelI18n: { en: 'Streaming Interval (ms)' },
74
+ group: '流式回复',
75
+ groupI18n: { en: 'Streaming Reply' },
76
+ placeholder: '500',
77
+ description: '回复更新间隔(毫秒)',
78
+ descriptionI18n: { en: 'Reply update interval in milliseconds' },
79
+ },
16
80
  ] as readonly AdapterConsoleField[],
17
81
  docsUrl: 'https://zhin.js.org/adapters/lark',
18
82
  readPermission: 'lark:read',