@open-dy/ai_coding_sdk 1.0.23 → 1.0.25

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.
@@ -29,7 +29,7 @@ export interface VideoPackResponse {
29
29
  * - Path: `/dy_open_api/v1/video/pack/`
30
30
  * - Capability: `dy.open.aweme.video.pack`
31
31
  * - Scope: `aweme.video.pack`
32
- * - 需要用户授权: 是
32
+ * - 需要用户授权: 否
33
33
  *
34
34
  * @remarks 获取视频的基本信息摘要、作者信息、锚点信息等字段,不合规视频会被过滤。
35
35
  */
@@ -8,7 +8,7 @@ const core_1 = require("../core");
8
8
  * - Path: `/dy_open_api/v1/video/pack/`
9
9
  * - Capability: `dy.open.aweme.video.pack`
10
10
  * - Scope: `aweme.video.pack`
11
- * - 需要用户授权: 是
11
+ * - 需要用户授权: 否
12
12
  *
13
13
  * @remarks 获取视频的基本信息摘要、作者信息、锚点信息等字段,不合规视频会被过滤。
14
14
  */
@@ -18,6 +18,5 @@ async function getVideoPack(params, options) {
18
18
  method: 'GET',
19
19
  queryParams: params,
20
20
  domain: 'open.douyin.com',
21
- requiresUserAuth: true,
22
21
  }, options);
23
22
  }
@@ -56,12 +56,7 @@ export interface TextCensorResult {
56
56
  /** 审核命中结果 */
57
57
  predicts?: TextCensorPredict[];
58
58
  }
59
- export interface TextCensorResponse {
60
- /** 日志 ID */
61
- log_id?: string;
62
- /** 文本审核结果列表 */
63
- data?: TextCensorResult[];
64
- }
59
+ export type TextCensorResponse = TextCensorResult[];
65
60
  /**
66
61
  * 检测文本是否包含违法违规内容 V2
67
62
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-dy/ai_coding_sdk",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "AI Coding SDK — 抖音开放平台 OpenAPI 客户端与工具集",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,6 +9,7 @@
9
9
  ],
10
10
  "scripts": {
11
11
  "build": "tsc",
12
+ "test": "vitest run",
12
13
  "prepublishOnly": "tsc"
13
14
  },
14
15
  "publishConfig": {
@@ -22,8 +23,9 @@
22
23
  ],
23
24
  "license": "Apache-2.0",
24
25
  "devDependencies": {
26
+ "@types/node": "^20.0.0",
25
27
  "typescript": "^5.0.0",
26
- "@types/node": "^20.0.0"
28
+ "vitest": "^3.2.7"
27
29
  },
28
30
  "exports": {
29
31
  ".": {