@open-dy/ai_coding_sdk 1.0.20 → 1.0.22

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.
@@ -18,3 +18,5 @@ export { getUserPublicInfo } from './public-info';
18
18
  export type { UserPublicInfo, UserPublicInfoParams, UserPublicInfoResponse } from './public-info';
19
19
  export { getRealNameInfo } from './realname';
20
20
  export type { AgeRange, RealNameInfoData, RealNameInfoParams } from './realname';
21
+ export { getUserInterest } from './user-interest';
22
+ export type { UserInterestParams, UserInterestResponse } from './user-interest';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRealNameInfo = exports.getUserPublicInfo = exports.getUserConstellation = exports.getUserHashMobile = exports.getRelatedId = exports.getAffiliateId = exports.getUserShareData = exports.getUserProfileData = exports.getUserLikeData = exports.getUserItemData = exports.getUserFansData = exports.getUserCommentData = exports.getUserCertLabelsInfo = exports.getAIUserProfile = exports.getAIUserItemList = exports.getAIUserDataInfo = void 0;
3
+ exports.getUserInterest = exports.getRealNameInfo = exports.getUserPublicInfo = exports.getUserConstellation = exports.getUserHashMobile = exports.getRelatedId = exports.getAffiliateId = exports.getUserShareData = exports.getUserProfileData = exports.getUserLikeData = exports.getUserItemData = exports.getUserFansData = exports.getUserCommentData = exports.getUserCertLabelsInfo = exports.getAIUserProfile = exports.getAIUserItemList = exports.getAIUserDataInfo = void 0;
4
4
  var ai_data_1 = require("./ai_data");
5
5
  Object.defineProperty(exports, "getAIUserDataInfo", { enumerable: true, get: function () { return ai_data_1.getAIUserDataInfo; } });
6
6
  var ai_items_1 = require("./ai_items");
@@ -27,3 +27,5 @@ var public_info_1 = require("./public-info");
27
27
  Object.defineProperty(exports, "getUserPublicInfo", { enumerable: true, get: function () { return public_info_1.getUserPublicInfo; } });
28
28
  var realname_1 = require("./realname");
29
29
  Object.defineProperty(exports, "getRealNameInfo", { enumerable: true, get: function () { return realname_1.getRealNameInfo; } });
30
+ var user_interest_1 = require("./user-interest");
31
+ Object.defineProperty(exports, "getUserInterest", { enumerable: true, get: function () { return user_interest_1.getUserInterest; } });
@@ -0,0 +1,20 @@
1
+ import type { CallOptions, OpenAPIResponse } from '../core';
2
+ export interface UserInterestParams {
3
+ /** 抖音 user_id */
4
+ uid: string;
5
+ }
6
+ export interface UserInterestResponse {
7
+ /** 长期兴趣标签 */
8
+ long_interest?: string;
9
+ /** 短期兴趣标签 */
10
+ short_interest?: string;
11
+ }
12
+ /**
13
+ * 获取用户兴趣标签
14
+ *
15
+ * - Path: `/dy_open_api/ai_platform/data/query_user_interest/`
16
+ * - Capability: `dy.open.aweme.dy.user_interest`
17
+ * - Scope: `aweme.dy.user_interest`
18
+ * - 需要用户授权: 否(按表格 F 列配置)
19
+ */
20
+ export declare function getUserInterest(params: UserInterestParams, options?: CallOptions): Promise<OpenAPIResponse<UserInterestResponse>>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getUserInterest = getUserInterest;
4
+ const core_1 = require("../core");
5
+ /**
6
+ * 获取用户兴趣标签
7
+ *
8
+ * - Path: `/dy_open_api/ai_platform/data/query_user_interest/`
9
+ * - Capability: `dy.open.aweme.dy.user_interest`
10
+ * - Scope: `aweme.dy.user_interest`
11
+ * - 需要用户授权: 否(按表格 F 列配置)
12
+ */
13
+ async function getUserInterest(params, options) {
14
+ return (0, core_1.callOpenAPI)({
15
+ path: '/dy_open_api/ai_platform/data/query_user_interest/',
16
+ method: 'POST',
17
+ body: params,
18
+ domain: 'open.douyin.com',
19
+ }, options);
20
+ }
@@ -1,4 +1,71 @@
1
1
  import type { CallOptions, OpenAPIResponse } from '../core';
2
+ /**
3
+ * 视频评论列表 - 请求参数
4
+ */
5
+ export interface VideoCommentListParams {
6
+ /** 分页游标 */
7
+ cursor?: number;
8
+ /** 视频 ID */
9
+ item_id: string;
10
+ /** 评论 ID(用于获取指定评论的回复) */
11
+ comment_id?: string;
12
+ }
13
+ /**
14
+ * 视频评论中的用户信息
15
+ */
16
+ export interface VideoCommentUser {
17
+ /** 用户昵称 */
18
+ nickname: string;
19
+ /** 用户头像 URL */
20
+ avatar: string;
21
+ }
22
+ /**
23
+ * 视频评论列表中的单条评论
24
+ */
25
+ export interface VideoCommentItem {
26
+ /** 评论 ID */
27
+ comment_id: string;
28
+ /** 评论内容 */
29
+ text: string;
30
+ /** 视频 ID */
31
+ item_id: string;
32
+ /** 评论用户信息 */
33
+ user: VideoCommentUser;
34
+ /** 创建时间(时间戳,秒) */
35
+ create_time: number;
36
+ /** 点赞数 */
37
+ digg_count: number;
38
+ /** 评论状态 */
39
+ status: number;
40
+ /** 是否为热门评论 */
41
+ is_hot: boolean;
42
+ /** 标签类型 */
43
+ label_type: number;
44
+ /** 作者是否已赞 */
45
+ is_author_digged: boolean;
46
+ /** 回复评论总数 */
47
+ reply_comment_total: number;
48
+ /** 回复 ID */
49
+ reply_id: string;
50
+ /** 标签文本 */
51
+ label_text: string;
52
+ }
53
+ /**
54
+ * 视频评论列表 - 响应
55
+ */
56
+ export interface VideoCommentListResponse {
57
+ /** 评论列表 */
58
+ comments: VideoCommentItem[];
59
+ /** 分页游标 */
60
+ cursor: number;
61
+ /** 是否有更多数据 */
62
+ has_more: boolean;
63
+ }
64
+ /**
65
+ * 获取视频评论列表(dy.open.dy.aweme.video_comment)
66
+ * 基于视频 ID,获取视频下的公开评论内容。
67
+ */
68
+ export declare function getVideoCommentList(params: VideoCommentListParams, options?: CallOptions): Promise<OpenAPIResponse<VideoCommentListResponse>>;
2
69
  export interface CommentSearchParams {
3
70
  /** 搜索关键词 */
4
71
  keyword: string;
@@ -1,7 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getVideoCommentList = getVideoCommentList;
3
4
  exports.searchComment = searchComment;
4
5
  const core_1 = require("../core");
6
+ /**
7
+ * 获取视频评论列表(dy.open.dy.aweme.video_comment)
8
+ * 基于视频 ID,获取视频下的公开评论内容。
9
+ */
10
+ async function getVideoCommentList(params, options) {
11
+ return (0, core_1.callOpenAPI)({
12
+ path: '/dy_open_api/video/comment/',
13
+ method: 'POST',
14
+ body: params,
15
+ domain: 'open.douyin.com',
16
+ }, options);
17
+ }
5
18
  /**
6
19
  * 评论搜索
7
20
  */
@@ -1,2 +1,2 @@
1
- export { searchComment } from './comment';
2
- export type { CommentSearchItem, CommentSearchParams, CommentSearchResponse } from './comment';
1
+ export { getVideoCommentList, searchComment } from './comment';
2
+ export type { CommentSearchItem, CommentSearchParams, CommentSearchResponse, VideoCommentItem, VideoCommentListParams, VideoCommentListResponse, VideoCommentUser } from './comment';
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchComment = void 0;
3
+ exports.searchComment = exports.getVideoCommentList = void 0;
4
4
  // 评论相关 OpenAPI
5
5
  var comment_1 = require("./comment");
6
+ Object.defineProperty(exports, "getVideoCommentList", { enumerable: true, get: function () { return comment_1.getVideoCommentList; } });
6
7
  Object.defineProperty(exports, "searchComment", { enumerable: true, get: function () { return comment_1.searchComment; } });
@@ -1,9 +1,9 @@
1
- export { getAffiliateId, getAIUserDataInfo, getAIUserItemList, getAIUserProfile, getRealNameInfo, getRelatedId, getUserCertLabelsInfo, getUserCommentData, getUserConstellation, getUserFansData, getUserHashMobile, getUserItemData, getUserLikeData, getUserProfileData, getUserPublicInfo, getUserShareData } from './account';
2
- export type { AIUserBase, AIUserDataInfoParams, AIUserDataInfoResponse, AIUserInfo, AIUserItem, AIUserItemListParams, AIUserItemListResponse, AIUserProfileParams, AIUserProfileResponse, AgeRange, ConstellationResponse, GetRelatedIdRequest, GetRelatedIdResponse, HomepageDailyResult, HomepageDataParams, HomepageDateType, HomepageItemParams, HomepageResultResponse, RealNameInfoData, RealNameInfoParams, UserCertLabelInfo, UserCertLabelsInfoParams, UserCertLabelsInfoResponse, UserCertLabelStyle, UserHashMobileParams, UserHashMobileResponse, UserPublicInfo, UserPublicInfoParams, UserPublicInfoResponse } from './account';
1
+ export { getAffiliateId, getAIUserDataInfo, getAIUserItemList, getAIUserProfile, getRealNameInfo, getRelatedId, getUserCertLabelsInfo, getUserCommentData, getUserConstellation, getUserFansData, getUserHashMobile, getUserInterest, getUserItemData, getUserLikeData, getUserProfileData, getUserPublicInfo, getUserShareData } from './account';
2
+ export type { AIUserBase, AIUserDataInfoParams, AIUserDataInfoResponse, AIUserInfo, AIUserItem, AIUserItemListParams, AIUserItemListResponse, AIUserProfileParams, AIUserProfileResponse, AgeRange, ConstellationResponse, GetRelatedIdRequest, GetRelatedIdResponse, HomepageDailyResult, HomepageDataParams, HomepageDateType, HomepageItemParams, HomepageResultResponse, RealNameInfoData, RealNameInfoParams, UserCertLabelInfo, UserCertLabelsInfoParams, UserCertLabelsInfoResponse, UserCertLabelStyle, UserHashMobileParams, UserHashMobileResponse, UserInterestParams, UserInterestResponse, UserPublicInfo, UserPublicInfoParams, UserPublicInfoResponse } from './account';
3
3
  export { createActivity, modifyActivity, queryActivityInfo, queryActivityUserCompletionStatus } from './business';
4
4
  export type { ActivityTaskInfo, ActivityUserTaskStatus, CreateActivityRequest, CreateActivityResponse, ModifyActivityRequest, ModifyActivityResponse, QueryActivityInfoRequest, QueryActivityInfoResponse, QueryActivityUserCompletionStatusRequest, QueryActivityUserCompletionStatusResponse } from './business';
5
- export { searchComment } from './comment';
6
- export type { CommentSearchItem, CommentSearchParams, CommentSearchResponse } from './comment';
5
+ export { getVideoCommentList, searchComment } from './comment';
6
+ export type { CommentSearchItem, CommentSearchParams, CommentSearchResponse, VideoCommentItem, VideoCommentListParams, VideoCommentListResponse, VideoCommentUser } from './comment';
7
7
  export { getFeed, getFollowFeed, getFollowHotWord, getHighQualityText, getRecommend, getVideoPack } from './content';
8
8
  export type { FeedItem, FeedResponse, FollowFeedItem, FollowFeedResponse, HighQualityTextParams, HighQualityTextResponse, HotWordItem, HotWordResponse, HotWordUrl, RecommendItem, RecommendRequest, RecommendResponse, VideoPackItem, VideoPackParams, VideoPackResponse } from './content';
9
9
  export { callOpenAPI } from './core';
@@ -14,8 +14,8 @@ export { getRoomRealTimeData, queryRoomData } from './live';
14
14
  export type { RoomDataQueryParams, RoomDataQueryRequest, RoomDataQueryResponse, RoomRealTimeQueryParams, RoomRealTimeRequest, RoomRealTimeResponse } from './live';
15
15
  export { getMusicCollectionList } from './music';
16
16
  export type { MusicCollectionItem, MusicCollectionListParams, MusicCollectionListResponse } from './music';
17
- export { getUserBasicData, getUserFollowing, topicSearch } from './platform';
18
- export type { FollowingListData, FollowingListParams, FollowingListResponse, FollowingUser, TopicSearchParams, TopicSearchResponse, UserBasicDataParams, UserBasicDataResponse, UserInfo } from './platform';
17
+ export { censorImage, censorText, getUserBasicData, getUserFollowing, topicSearch } from './platform';
18
+ export type { FollowingListData, FollowingListParams, FollowingListResponse, FollowingUser, ImageCensorParams, ImageCensorPredict, ImageCensorResponse, TextCensorParams, TextCensorPredict, TextCensorResponse, TextCensorResult, TopicSearchParams, TopicSearchResponse, UserBasicDataParams, UserBasicDataResponse, UserInfo } from './platform';
19
19
  export { checkFans, getFansFavourite, getFansProfile, getFansSource, getFriendList, getUserFansProfile } from './relation';
20
20
  export type { DistributionItem, FansCheckParams, FansCheckResponse, FansDataParams, FansFavouriteItem, FansFavouriteResponse, FansProfileResponse, FansSourceResponse, FriendListParams, FriendListResponse, FriendUser } from './relation';
21
21
  export { searchExperience, searchGeneral, searchLive, searchMusic, searchPoi, searchUser, searchVideo, searchVision } from './search';
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchVision = exports.searchVideo = exports.searchUser = exports.searchPoi = exports.searchMusic = exports.searchLive = exports.searchGeneral = exports.searchExperience = exports.getUserFansProfile = exports.getFriendList = exports.getFansSource = exports.getFansProfile = exports.getFansFavourite = exports.checkFans = exports.topicSearch = exports.getUserFollowing = exports.getUserBasicData = exports.getMusicCollectionList = exports.queryRoomData = exports.getRoomRealTimeData = exports.getHotList = exports.callOpenAPI = exports.getVideoPack = exports.getRecommend = exports.getHighQualityText = exports.getFollowHotWord = exports.getFollowFeed = exports.getFeed = exports.searchComment = exports.queryActivityUserCompletionStatus = exports.queryActivityInfo = exports.modifyActivity = exports.createActivity = exports.getUserShareData = exports.getUserPublicInfo = exports.getUserProfileData = exports.getUserLikeData = exports.getUserItemData = exports.getUserHashMobile = exports.getUserFansData = exports.getUserConstellation = exports.getUserCommentData = exports.getUserCertLabelsInfo = exports.getRelatedId = exports.getRealNameInfo = exports.getAIUserProfile = exports.getAIUserItemList = exports.getAIUserDataInfo = exports.getAffiliateId = void 0;
3
+ exports.searchPoi = exports.searchMusic = exports.searchLive = exports.searchGeneral = exports.searchExperience = exports.getUserFansProfile = exports.getFriendList = exports.getFansSource = exports.getFansProfile = exports.getFansFavourite = exports.checkFans = exports.topicSearch = exports.getUserFollowing = exports.getUserBasicData = exports.censorText = exports.censorImage = exports.getMusicCollectionList = exports.queryRoomData = exports.getRoomRealTimeData = exports.getHotList = exports.callOpenAPI = exports.getVideoPack = exports.getRecommend = exports.getHighQualityText = exports.getFollowHotWord = exports.getFollowFeed = exports.getFeed = exports.searchComment = exports.getVideoCommentList = exports.queryActivityUserCompletionStatus = exports.queryActivityInfo = exports.modifyActivity = exports.createActivity = exports.getUserShareData = exports.getUserPublicInfo = exports.getUserProfileData = exports.getUserLikeData = exports.getUserItemData = exports.getUserInterest = exports.getUserHashMobile = exports.getUserFansData = exports.getUserConstellation = exports.getUserCommentData = exports.getUserCertLabelsInfo = exports.getRelatedId = exports.getRealNameInfo = exports.getAIUserProfile = exports.getAIUserItemList = exports.getAIUserDataInfo = exports.getAffiliateId = void 0;
4
+ exports.searchVision = exports.searchVideo = exports.searchUser = void 0;
4
5
  var account_1 = require("./account");
5
6
  Object.defineProperty(exports, "getAffiliateId", { enumerable: true, get: function () { return account_1.getAffiliateId; } });
6
7
  Object.defineProperty(exports, "getAIUserDataInfo", { enumerable: true, get: function () { return account_1.getAIUserDataInfo; } });
@@ -13,6 +14,7 @@ Object.defineProperty(exports, "getUserCommentData", { enumerable: true, get: fu
13
14
  Object.defineProperty(exports, "getUserConstellation", { enumerable: true, get: function () { return account_1.getUserConstellation; } });
14
15
  Object.defineProperty(exports, "getUserFansData", { enumerable: true, get: function () { return account_1.getUserFansData; } });
15
16
  Object.defineProperty(exports, "getUserHashMobile", { enumerable: true, get: function () { return account_1.getUserHashMobile; } });
17
+ Object.defineProperty(exports, "getUserInterest", { enumerable: true, get: function () { return account_1.getUserInterest; } });
16
18
  Object.defineProperty(exports, "getUserItemData", { enumerable: true, get: function () { return account_1.getUserItemData; } });
17
19
  Object.defineProperty(exports, "getUserLikeData", { enumerable: true, get: function () { return account_1.getUserLikeData; } });
18
20
  Object.defineProperty(exports, "getUserProfileData", { enumerable: true, get: function () { return account_1.getUserProfileData; } });
@@ -24,6 +26,7 @@ Object.defineProperty(exports, "modifyActivity", { enumerable: true, get: functi
24
26
  Object.defineProperty(exports, "queryActivityInfo", { enumerable: true, get: function () { return business_1.queryActivityInfo; } });
25
27
  Object.defineProperty(exports, "queryActivityUserCompletionStatus", { enumerable: true, get: function () { return business_1.queryActivityUserCompletionStatus; } });
26
28
  var comment_1 = require("./comment");
29
+ Object.defineProperty(exports, "getVideoCommentList", { enumerable: true, get: function () { return comment_1.getVideoCommentList; } });
27
30
  Object.defineProperty(exports, "searchComment", { enumerable: true, get: function () { return comment_1.searchComment; } });
28
31
  var content_1 = require("./content");
29
32
  Object.defineProperty(exports, "getFeed", { enumerable: true, get: function () { return content_1.getFeed; } });
@@ -42,6 +45,8 @@ Object.defineProperty(exports, "queryRoomData", { enumerable: true, get: functio
42
45
  var music_1 = require("./music");
43
46
  Object.defineProperty(exports, "getMusicCollectionList", { enumerable: true, get: function () { return music_1.getMusicCollectionList; } });
44
47
  var platform_1 = require("./platform");
48
+ Object.defineProperty(exports, "censorImage", { enumerable: true, get: function () { return platform_1.censorImage; } });
49
+ Object.defineProperty(exports, "censorText", { enumerable: true, get: function () { return platform_1.censorText; } });
45
50
  Object.defineProperty(exports, "getUserBasicData", { enumerable: true, get: function () { return platform_1.getUserBasicData; } });
46
51
  Object.defineProperty(exports, "getUserFollowing", { enumerable: true, get: function () { return platform_1.getUserFollowing; } });
47
52
  Object.defineProperty(exports, "topicSearch", { enumerable: true, get: function () { return platform_1.topicSearch; } });
@@ -0,0 +1,73 @@
1
+ import type { CallOptions, OpenAPIResponse } from '../core';
2
+ export interface ImageCensorParams {
3
+ /** 小程序 app_id */
4
+ app_id: string;
5
+ /** 图片链接,与 `image_data` 二选一 */
6
+ image?: string;
7
+ /** base64 编码图片数据,与 `image` 二选一 */
8
+ image_data?: string;
9
+ }
10
+ export interface ImageCensorPredict {
11
+ /** 模型名称 */
12
+ model_name?: string;
13
+ /** 是否命中 */
14
+ hit?: boolean;
15
+ }
16
+ export interface ImageCensorResponse {
17
+ /** 日志 ID */
18
+ log_id?: string;
19
+ /** 图片审核结果 */
20
+ predicts?: ImageCensorPredict[];
21
+ }
22
+ /**
23
+ * 检测图片是否包含违法违规内容 V2
24
+ *
25
+ * - Path: `/api/apps/v1/censor/image/`
26
+ * - Capability: `ma.openapi.pictureDetectV2`
27
+ * - Scope: `apps.cencor.image`
28
+ * - 需要用户授权: 否(按表格 F 列配置)
29
+ */
30
+ export declare function censorImage(params: ImageCensorParams, options?: CallOptions): Promise<OpenAPIResponse<ImageCensorResponse>>;
31
+ export interface TextCensorParams {
32
+ /** 小程序 app_id */
33
+ app_id: string;
34
+ /** 待检测文本列表 */
35
+ content: string[];
36
+ }
37
+ export interface TextCensorPredict {
38
+ /** 命中目标 */
39
+ target?: string;
40
+ /** 置信度 */
41
+ prob?: number;
42
+ /** 是否命中 */
43
+ hit?: boolean;
44
+ /** 模型名称 */
45
+ model_name?: string;
46
+ }
47
+ export interface TextCensorResult {
48
+ /** 结果码 */
49
+ code?: number;
50
+ /** 数据 ID */
51
+ data_id?: string;
52
+ /** 结果描述 */
53
+ msg?: string;
54
+ /** 任务 ID */
55
+ task_id?: string;
56
+ /** 审核命中结果 */
57
+ predicts?: TextCensorPredict[];
58
+ }
59
+ export interface TextCensorResponse {
60
+ /** 日志 ID */
61
+ log_id?: string;
62
+ /** 文本审核结果列表 */
63
+ data?: TextCensorResult[];
64
+ }
65
+ /**
66
+ * 检测文本是否包含违法违规内容 V2
67
+ *
68
+ * - Path: `/api/apps/v1/censor/text/`
69
+ * - Capability: `dy.open.ma.openapi.textDetectV2`
70
+ * - Scope: `apps.censor.text`
71
+ * - 需要用户授权: 否(按表格 F 列配置)
72
+ */
73
+ export declare function censorText(params: TextCensorParams, options?: CallOptions): Promise<OpenAPIResponse<TextCensorResponse>>;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.censorImage = censorImage;
4
+ exports.censorText = censorText;
5
+ const core_1 = require("../core");
6
+ /**
7
+ * 检测图片是否包含违法违规内容 V2
8
+ *
9
+ * - Path: `/api/apps/v1/censor/image/`
10
+ * - Capability: `ma.openapi.pictureDetectV2`
11
+ * - Scope: `apps.cencor.image`
12
+ * - 需要用户授权: 否(按表格 F 列配置)
13
+ */
14
+ async function censorImage(params, options) {
15
+ return (0, core_1.callOpenAPI)({
16
+ path: '/api/apps/v1/censor/image/',
17
+ method: 'POST',
18
+ body: params,
19
+ domain: 'open.douyin.com',
20
+ }, options);
21
+ }
22
+ /**
23
+ * 检测文本是否包含违法违规内容 V2
24
+ *
25
+ * - Path: `/api/apps/v1/censor/text/`
26
+ * - Capability: `dy.open.ma.openapi.textDetectV2`
27
+ * - Scope: `apps.censor.text`
28
+ * - 需要用户授权: 否(按表格 F 列配置)
29
+ */
30
+ async function censorText(params, options) {
31
+ return (0, core_1.callOpenAPI)({
32
+ path: '/api/apps/v1/censor/text/',
33
+ method: 'POST',
34
+ body: params,
35
+ domain: 'open.douyin.com',
36
+ }, options);
37
+ }
@@ -1,5 +1,7 @@
1
1
  export { topicSearch } from './topic';
2
2
  export type { TopicSearchParams, TopicSearchResponse } from './topic';
3
+ export { censorImage, censorText } from './censor';
4
+ export type { ImageCensorParams, ImageCensorPredict, ImageCensorResponse, TextCensorParams, TextCensorPredict, TextCensorResponse, TextCensorResult } from './censor';
3
5
  export { getUserFollowing } from './following';
4
6
  export type { FollowingListParams, FollowingListResponse, FollowingListData, FollowingUser } from './following';
5
7
  export { getUserBasicData } from './user-basic';
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getUserBasicData = exports.getUserFollowing = exports.topicSearch = void 0;
3
+ exports.getUserBasicData = exports.getUserFollowing = exports.censorText = exports.censorImage = exports.topicSearch = void 0;
4
4
  var topic_1 = require("./topic");
5
5
  Object.defineProperty(exports, "topicSearch", { enumerable: true, get: function () { return topic_1.topicSearch; } });
6
+ var censor_1 = require("./censor");
7
+ Object.defineProperty(exports, "censorImage", { enumerable: true, get: function () { return censor_1.censorImage; } });
8
+ Object.defineProperty(exports, "censorText", { enumerable: true, get: function () { return censor_1.censorText; } });
6
9
  var following_1 = require("./following");
7
10
  Object.defineProperty(exports, "getUserFollowing", { enumerable: true, get: function () { return following_1.getUserFollowing; } });
8
11
  var user_basic_1 = require("./user-basic");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-dy/ai_coding_sdk",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "AI Coding SDK — 抖音开放平台 OpenAPI 客户端与工具集",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",